auditize 0.2.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. auditize/__init__.py +4 -0
  2. auditize/__main__.py +212 -0
  3. auditize/apikey/__init__.py +0 -0
  4. auditize/apikey/api.py +143 -0
  5. auditize/apikey/api_models.py +84 -0
  6. auditize/apikey/models.py +17 -0
  7. auditize/apikey/service.py +103 -0
  8. auditize/app/__init__.py +48 -0
  9. auditize/app/app_api.py +42 -0
  10. auditize/app/app_static.py +25 -0
  11. auditize/app/cors.py +15 -0
  12. auditize/auth/__init__.py +0 -0
  13. auditize/auth/api.py +83 -0
  14. auditize/auth/authorizer.py +204 -0
  15. auditize/auth/constants.py +2 -0
  16. auditize/auth/jwt.py +102 -0
  17. auditize/config.py +191 -0
  18. auditize/data/html/assets/favicon-CmRhlul4.png +0 -0
  19. auditize/data/html/assets/index-BBo2OJ_i.js +316 -0
  20. auditize/data/html/assets/index-XfLvnFsA.css +1 -0
  21. auditize/data/html/auditize-web-component.mjs +32947 -0
  22. auditize/data/html/index.html +17 -0
  23. auditize/database.py +105 -0
  24. auditize/exceptions.py +56 -0
  25. auditize/helpers/__init__.py +0 -0
  26. auditize/helpers/api/__init__.py +0 -0
  27. auditize/helpers/api/errors.py +155 -0
  28. auditize/helpers/api/validators.py +10 -0
  29. auditize/helpers/datetime.py +42 -0
  30. auditize/helpers/email.py +22 -0
  31. auditize/i18n/__init__.py +7 -0
  32. auditize/i18n/detection.py +24 -0
  33. auditize/i18n/lang.py +9 -0
  34. auditize/i18n/translations/en.json +45 -0
  35. auditize/i18n/translations/fr.json +45 -0
  36. auditize/i18n/translator.py +38 -0
  37. auditize/log/__init__.py +0 -0
  38. auditize/log/api.py +559 -0
  39. auditize/log/api_models.py +422 -0
  40. auditize/log/db.py +118 -0
  41. auditize/log/models.py +92 -0
  42. auditize/log/service/__init__.py +31 -0
  43. auditize/log/service/consolidation.py +515 -0
  44. auditize/log/service/csv.py +161 -0
  45. auditize/log/service/main.py +216 -0
  46. auditize/log_filter/__init__.py +0 -0
  47. auditize/log_filter/api.py +115 -0
  48. auditize/log_filter/api_models.py +187 -0
  49. auditize/log_filter/models.py +28 -0
  50. auditize/log_filter/service.py +92 -0
  51. auditize/log_i18n_profile/__init__.py +0 -0
  52. auditize/log_i18n_profile/api.py +137 -0
  53. auditize/log_i18n_profile/api_models.py +74 -0
  54. auditize/log_i18n_profile/models.py +74 -0
  55. auditize/log_i18n_profile/service.py +103 -0
  56. auditize/openapi.py +157 -0
  57. auditize/permissions/__init__.py +0 -0
  58. auditize/permissions/api_models.py +172 -0
  59. auditize/permissions/assertions.py +128 -0
  60. auditize/permissions/models.py +97 -0
  61. auditize/permissions/operations.py +269 -0
  62. auditize/permissions/service.py +12 -0
  63. auditize/repo/__init__.py +0 -0
  64. auditize/repo/api.py +253 -0
  65. auditize/repo/api_models.py +141 -0
  66. auditize/repo/models.py +45 -0
  67. auditize/repo/service.py +232 -0
  68. auditize/resource/__init__.py +0 -0
  69. auditize/resource/api_models.py +27 -0
  70. auditize/resource/models.py +13 -0
  71. auditize/resource/pagination/__init__.py +0 -0
  72. auditize/resource/pagination/cursor/__init__.py +0 -0
  73. auditize/resource/pagination/cursor/api_models.py +48 -0
  74. auditize/resource/pagination/cursor/service.py +93 -0
  75. auditize/resource/pagination/page/__init__.py +0 -0
  76. auditize/resource/pagination/page/api_models.py +60 -0
  77. auditize/resource/pagination/page/models.py +17 -0
  78. auditize/resource/pagination/page/service.py +29 -0
  79. auditize/resource/service.py +82 -0
  80. auditize/scheduler.py +15 -0
  81. auditize/user/__init__.py +0 -0
  82. auditize/user/api.py +224 -0
  83. auditize/user/api_models.py +156 -0
  84. auditize/user/models.py +32 -0
  85. auditize/user/service.py +220 -0
  86. auditize-0.2.1.dist-info/METADATA +100 -0
  87. auditize-0.2.1.dist-info/RECORD +90 -0
  88. auditize-0.2.1.dist-info/WHEEL +5 -0
  89. auditize-0.2.1.dist-info/entry_points.txt +2 -0
  90. auditize-0.2.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,316 @@
1
+ var $N=Object.defineProperty;var Ax=e=>{throw TypeError(e)};var FN=(e,t,n)=>t in e?$N(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ht=(e,t,n)=>FN(e,typeof t!="symbol"?t+"":t,n),mm=(e,t,n)=>t.has(e)||Ax("Cannot "+n);var z=(e,t,n)=>(mm(e,t,"read from private field"),n?n.call(e):t.get(e)),je=(e,t,n)=>t.has(e)?Ax("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ge=(e,t,n,r)=>(mm(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Pe=(e,t,n)=>(mm(e,t,"access private method"),n);var Ld=(e,t,n,r)=>({set _(o){ge(e,t,o,n)},get _(){return z(e,t,r)}});function DC(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var $u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Js(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var MC={exports:{}},Ep={},_C={exports:{}},Be={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Fu=Symbol.for("react.element"),IN=Symbol.for("react.portal"),zN=Symbol.for("react.fragment"),VN=Symbol.for("react.strict_mode"),BN=Symbol.for("react.profiler"),UN=Symbol.for("react.provider"),HN=Symbol.for("react.context"),WN=Symbol.for("react.forward_ref"),KN=Symbol.for("react.suspense"),qN=Symbol.for("react.memo"),YN=Symbol.for("react.lazy"),Ox=Symbol.iterator;function GN(e){return e===null||typeof e!="object"?null:(e=Ox&&e[Ox]||e["@@iterator"],typeof e=="function"?e:null)}var AC={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},OC=Object.assign,$C={};function Wl(e,t,n){this.props=e,this.context=t,this.refs=$C,this.updater=n||AC}Wl.prototype.isReactComponent={};Wl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Wl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function FC(){}FC.prototype=Wl.prototype;function wv(e,t,n){this.props=e,this.context=t,this.refs=$C,this.updater=n||AC}var Sv=wv.prototype=new FC;Sv.constructor=wv;OC(Sv,Wl.prototype);Sv.isPureReactComponent=!0;var $x=Array.isArray,IC=Object.prototype.hasOwnProperty,Cv={current:null},zC={key:!0,ref:!0,__self:!0,__source:!0};function VC(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)IC.call(t,r)&&!zC.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:Fu,type:e,key:s,ref:i,props:o,_owner:Cv.current}}function QN(e,t){return{$$typeof:Fu,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ev(e){return typeof e=="object"&&e!==null&&e.$$typeof===Fu}function XN(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Fx=/\/+/g;function gm(e,t){return typeof e=="object"&&e!==null&&e.key!=null?XN(""+e.key):t.toString(36)}function uf(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Fu:case IN:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+gm(i,0):r,$x(o)?(n="",e!=null&&(n=e.replace(Fx,"$&/")+"/"),uf(o,t,n,"",function(c){return c})):o!=null&&(Ev(o)&&(o=QN(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Fx,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",$x(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+gm(s,a);i+=uf(s,t,n,l,o)}else if(l=GN(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+gm(s,a++),i+=uf(s,t,n,l,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Dd(e,t,n){if(e==null)return e;var r=[],o=0;return uf(e,r,"","",function(s){return t.call(n,s,o++)}),r}function JN(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Rn={current:null},df={transition:null},ZN={ReactCurrentDispatcher:Rn,ReactCurrentBatchConfig:df,ReactCurrentOwner:Cv};function BC(){throw Error("act(...) is not supported in production builds of React.")}Be.Children={map:Dd,forEach:function(e,t,n){Dd(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Dd(e,function(){t++}),t},toArray:function(e){return Dd(e,function(t){return t})||[]},only:function(e){if(!Ev(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Be.Component=Wl;Be.Fragment=zN;Be.Profiler=BN;Be.PureComponent=wv;Be.StrictMode=VN;Be.Suspense=KN;Be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ZN;Be.act=BC;Be.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=OC({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=Cv.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)IC.call(t,l)&&!zC.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:Fu,type:e.type,key:o,ref:s,props:r,_owner:i}};Be.createContext=function(e){return e={$$typeof:HN,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:UN,_context:e},e.Consumer=e};Be.createElement=VC;Be.createFactory=function(e){var t=VC.bind(null,e);return t.type=e,t};Be.createRef=function(){return{current:null}};Be.forwardRef=function(e){return{$$typeof:WN,render:e}};Be.isValidElement=Ev;Be.lazy=function(e){return{$$typeof:YN,_payload:{_status:-1,_result:e},_init:JN}};Be.memo=function(e,t){return{$$typeof:qN,type:e,compare:t===void 0?null:t}};Be.startTransition=function(e){var t=df.transition;df.transition={};try{e()}finally{df.transition=t}};Be.unstable_act=BC;Be.useCallback=function(e,t){return Rn.current.useCallback(e,t)};Be.useContext=function(e){return Rn.current.useContext(e)};Be.useDebugValue=function(){};Be.useDeferredValue=function(e){return Rn.current.useDeferredValue(e)};Be.useEffect=function(e,t){return Rn.current.useEffect(e,t)};Be.useId=function(){return Rn.current.useId()};Be.useImperativeHandle=function(e,t,n){return Rn.current.useImperativeHandle(e,t,n)};Be.useInsertionEffect=function(e,t){return Rn.current.useInsertionEffect(e,t)};Be.useLayoutEffect=function(e,t){return Rn.current.useLayoutEffect(e,t)};Be.useMemo=function(e,t){return Rn.current.useMemo(e,t)};Be.useReducer=function(e,t,n){return Rn.current.useReducer(e,t,n)};Be.useRef=function(e){return Rn.current.useRef(e)};Be.useState=function(e){return Rn.current.useState(e)};Be.useSyncExternalStore=function(e,t,n){return Rn.current.useSyncExternalStore(e,t,n)};Be.useTransition=function(){return Rn.current.useTransition()};Be.version="18.3.1";_C.exports=Be;var v=_C.exports;const Ht=Js(v),UC=DC({__proto__:null,default:Ht},[v]);/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var e4=v,t4=Symbol.for("react.element"),n4=Symbol.for("react.fragment"),r4=Object.prototype.hasOwnProperty,o4=e4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s4={key:!0,ref:!0,__self:!0,__source:!0};function HC(e,t,n){var r,o={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)r4.call(t,r)&&!s4.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:t4,type:e,key:s,ref:i,props:o,_owner:o4.current}}Ep.Fragment=n4;Ep.jsx=HC;Ep.jsxs=HC;MC.exports=Ep;var u=MC.exports,Rg={},WC={exports:{}},or={},KC={exports:{}},qC={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */(function(e){function t(R,D){var $=R.length;R.push(D);e:for(;0<$;){var A=$-1>>>1,B=R[A];if(0<o(B,D))R[A]=D,R[$]=B,$=A;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var D=R[0],$=R.pop();if($!==D){R[0]=$;e:for(var A=0,B=R.length,G=B>>>1;A<G;){var ne=2*(A+1)-1,Z=R[ne],oe=ne+1,ae=R[oe];if(0>o(Z,$))oe<B&&0>o(ae,Z)?(R[A]=ae,R[oe]=$,A=oe):(R[A]=Z,R[ne]=$,A=ne);else if(oe<B&&0>o(ae,$))R[A]=ae,R[oe]=$,A=oe;else break e}}return D}function o(R,D){var $=R.sortIndex-D.sortIndex;return $!==0?$:R.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],c=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,w=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(R){for(var D=n(c);D!==null;){if(D.callback===null)r(c);else if(D.startTime<=R)r(c),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(c)}}function S(R){if(g=!1,b(R),!m)if(n(l)!==null)m=!0,P(k);else{var D=n(c);D!==null&&L(S,D.startTime-R)}}function k(R,D){m=!1,g&&(g=!1,y(C),C=-1),h=!0;var $=p;try{for(b(D),f=n(l);f!==null&&(!(f.expirationTime>D)||R&&!_());){var A=f.callback;if(typeof A=="function"){f.callback=null,p=f.priorityLevel;var B=A(f.expirationTime<=D);D=e.unstable_now(),typeof B=="function"?f.callback=B:f===n(l)&&r(l),b(D)}else r(l);f=n(l)}if(f!==null)var G=!0;else{var ne=n(c);ne!==null&&L(S,ne.startTime-D),G=!1}return G}finally{f=null,p=$,h=!1}}var E=!1,j=null,C=-1,T=5,N=-1;function _(){return!(e.unstable_now()-N<T)}function I(){if(j!==null){var R=e.unstable_now();N=R;var D=!0;try{D=j(!0,R)}finally{D?U():(E=!1,j=null)}}else E=!1}var U;if(typeof x=="function")U=function(){x(I)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,M=O.port2;O.port1.onmessage=I,U=function(){M.postMessage(null)}}else U=function(){w(I,0)};function P(R){j=R,E||(E=!0,U())}function L(R,D){C=w(function(){R(e.unstable_now())},D)}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(){m||h||(m=!0,P(k))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(R){switch(p){case 1:case 2:case 3:var D=3;break;default:D=p}var $=p;p=D;try{return R()}finally{p=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,D){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var $=p;p=R;try{return D()}finally{p=$}},e.unstable_scheduleCallback=function(R,D,$){var A=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?A+$:A):$=A,R){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=$+B,R={id:d++,callback:D,priorityLevel:R,startTime:$,expirationTime:B,sortIndex:-1},$>A?(R.sortIndex=$,t(c,R),n(l)===null&&R===n(c)&&(g?(y(C),C=-1):g=!0,L(S,$-A))):(R.sortIndex=B,t(l,R),m||h||(m=!0,P(k))),R},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(R){var D=p;return function(){var $=p;p=D;try{return R.apply(this,arguments)}finally{p=$}}}})(qC);KC.exports=qC;var i4=KC.exports;/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var a4=v,nr=i4;function re(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var YC=new Set,ou={};function na(e,t){Pl(e,t),Pl(e+"Capture",t)}function Pl(e,t){for(ou[e]=t,e=0;e<t.length;e++)YC.add(t[e])}var Io=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pg=Object.prototype.hasOwnProperty,l4=/^[: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]*$/,Ix={},zx={};function c4(e){return Pg.call(zx,e)?!0:Pg.call(Ix,e)?!1:l4.test(e)?zx[e]=!0:(Ix[e]=!0,!1)}function u4(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function d4(e,t,n,r){if(t===null||typeof t>"u"||u4(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 Pn(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var ln={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ln[e]=new Pn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ln[t]=new Pn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ln[e]=new Pn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ln[e]=new Pn(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){ln[e]=new Pn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ln[e]=new Pn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ln[e]=new Pn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ln[e]=new Pn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ln[e]=new Pn(e,5,!1,e.toLowerCase(),null,!1,!1)});var kv=/[\-:]([a-z])/g;function jv(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(kv,jv);ln[t]=new Pn(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(kv,jv);ln[t]=new Pn(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(kv,jv);ln[t]=new Pn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ln[e]=new Pn(e,1,!1,e.toLowerCase(),null,!1,!1)});ln.xlinkHref=new Pn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ln[e]=new Pn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Rv(e,t,n,r){var o=ln.hasOwnProperty(t)?ln[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(d4(t,n,o,r)&&(n=null),r||o===null?c4(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Yo=a4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Md=Symbol.for("react.element"),Ia=Symbol.for("react.portal"),za=Symbol.for("react.fragment"),Pv=Symbol.for("react.strict_mode"),Tg=Symbol.for("react.profiler"),GC=Symbol.for("react.provider"),QC=Symbol.for("react.context"),Tv=Symbol.for("react.forward_ref"),Ng=Symbol.for("react.suspense"),Lg=Symbol.for("react.suspense_list"),Nv=Symbol.for("react.memo"),xs=Symbol.for("react.lazy"),XC=Symbol.for("react.offscreen"),Vx=Symbol.iterator;function gc(e){return e===null||typeof e!="object"?null:(e=Vx&&e[Vx]||e["@@iterator"],typeof e=="function"?e:null)}var Nt=Object.assign,ym;function Ac(e){if(ym===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ym=t&&t[1]||""}return`
34
+ `+ym+e}var vm=!1;function xm(e,t){if(!e||vm)return"";vm=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
35
+ `),s=r.stack.split(`
36
+ `),i=o.length-1,a=s.length-1;1<=i&&0<=a&&o[i]!==s[a];)a--;for(;1<=i&&0<=a;i--,a--)if(o[i]!==s[a]){if(i!==1||a!==1)do if(i--,a--,0>a||o[i]!==s[a]){var l=`
37
+ `+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{vm=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ac(e):""}function f4(e){switch(e.tag){case 5:return Ac(e.type);case 16:return Ac("Lazy");case 13:return Ac("Suspense");case 19:return Ac("SuspenseList");case 0:case 2:case 15:return e=xm(e.type,!1),e;case 11:return e=xm(e.type.render,!1),e;case 1:return e=xm(e.type,!0),e;default:return""}}function Dg(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 za:return"Fragment";case Ia:return"Portal";case Tg:return"Profiler";case Pv:return"StrictMode";case Ng:return"Suspense";case Lg:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case QC:return(e.displayName||"Context")+".Consumer";case GC:return(e._context.displayName||"Context")+".Provider";case Tv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Nv:return t=e.displayName||null,t!==null?t:Dg(e.type)||"Memo";case xs:t=e._payload,e=e._init;try{return Dg(e(t))}catch{}}return null}function p4(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Dg(t);case 8:return t===Pv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ks(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function JC(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function h4(e){var t=JC(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _d(e){e._valueTracker||(e._valueTracker=h4(e))}function ZC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=JC(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Df(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 Mg(e,t){var n=t.checked;return Nt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Bx(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ks(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function e2(e,t){t=t.checked,t!=null&&Rv(e,"checked",t,!1)}function _g(e,t){e2(e,t);var n=Ks(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ag(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ag(e,t.type,Ks(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ux(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ag(e,t,n){(t!=="number"||Df(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Oc=Array.isArray;function nl(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ks(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Og(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(re(91));return Nt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Hx(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(re(92));if(Oc(n)){if(1<n.length)throw Error(re(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ks(n)}}function t2(e,t){var n=Ks(t.value),r=Ks(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Wx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function n2(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 $g(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?n2(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ad,r2=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ad=Ad||document.createElement("div"),Ad.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ad.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function su(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},m4=["Webkit","ms","Moz","O"];Object.keys(qc).forEach(function(e){m4.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qc[t]=qc[e]})});function o2(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||qc.hasOwnProperty(e)&&qc[e]?(""+t).trim():t+"px"}function s2(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=o2(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var g4=Nt({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 Fg(e,t){if(t){if(g4[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(re(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(re(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(re(61))}if(t.style!=null&&typeof t.style!="object")throw Error(re(62))}}function Ig(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var zg=null;function Lv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vg=null,rl=null,ol=null;function Kx(e){if(e=Vu(e)){if(typeof Vg!="function")throw Error(re(280));var t=e.stateNode;t&&(t=Tp(t),Vg(e.stateNode,e.type,t))}}function i2(e){rl?ol?ol.push(e):ol=[e]:rl=e}function a2(){if(rl){var e=rl,t=ol;if(ol=rl=null,Kx(e),t)for(e=0;e<t.length;e++)Kx(t[e])}}function l2(e,t){return e(t)}function c2(){}var bm=!1;function u2(e,t,n){if(bm)return e(t,n);bm=!0;try{return l2(e,t,n)}finally{bm=!1,(rl!==null||ol!==null)&&(c2(),a2())}}function iu(e,t){var n=e.stateNode;if(n===null)return null;var r=Tp(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(re(231,t,typeof n));return n}var Bg=!1;if(Io)try{var yc={};Object.defineProperty(yc,"passive",{get:function(){Bg=!0}}),window.addEventListener("test",yc,yc),window.removeEventListener("test",yc,yc)}catch{Bg=!1}function y4(e,t,n,r,o,s,i,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Yc=!1,Mf=null,_f=!1,Ug=null,v4={onError:function(e){Yc=!0,Mf=e}};function x4(e,t,n,r,o,s,i,a,l){Yc=!1,Mf=null,y4.apply(v4,arguments)}function b4(e,t,n,r,o,s,i,a,l){if(x4.apply(this,arguments),Yc){if(Yc){var c=Mf;Yc=!1,Mf=null}else throw Error(re(198));_f||(_f=!0,Ug=c)}}function ra(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function d2(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function qx(e){if(ra(e)!==e)throw Error(re(188))}function w4(e){var t=e.alternate;if(!t){if(t=ra(e),t===null)throw Error(re(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return qx(o),e;if(s===r)return qx(o),t;s=s.sibling}throw Error(re(188))}if(n.return!==r.return)n=o,r=s;else{for(var i=!1,a=o.child;a;){if(a===n){i=!0,n=o,r=s;break}if(a===r){i=!0,r=o,n=s;break}a=a.sibling}if(!i){for(a=s.child;a;){if(a===n){i=!0,n=s,r=o;break}if(a===r){i=!0,r=s,n=o;break}a=a.sibling}if(!i)throw Error(re(189))}}if(n.alternate!==r)throw Error(re(190))}if(n.tag!==3)throw Error(re(188));return n.stateNode.current===n?e:t}function f2(e){return e=w4(e),e!==null?p2(e):null}function p2(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=p2(e);if(t!==null)return t;e=e.sibling}return null}var h2=nr.unstable_scheduleCallback,Yx=nr.unstable_cancelCallback,S4=nr.unstable_shouldYield,C4=nr.unstable_requestPaint,Ot=nr.unstable_now,E4=nr.unstable_getCurrentPriorityLevel,Dv=nr.unstable_ImmediatePriority,m2=nr.unstable_UserBlockingPriority,Af=nr.unstable_NormalPriority,k4=nr.unstable_LowPriority,g2=nr.unstable_IdlePriority,kp=null,mo=null;function j4(e){if(mo&&typeof mo.onCommitFiberRoot=="function")try{mo.onCommitFiberRoot(kp,e,void 0,(e.current.flags&128)===128)}catch{}}var zr=Math.clz32?Math.clz32:T4,R4=Math.log,P4=Math.LN2;function T4(e){return e>>>=0,e===0?32:31-(R4(e)/P4|0)|0}var Od=64,$d=4194304;function $c(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Of(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=$c(a):(s&=i,s!==0&&(r=$c(s)))}else i=n&~o,i!==0?r=$c(i):s!==0&&(r=$c(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-zr(t),o=1<<n,r|=e[n],t&=~o;return r}function N4(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function L4(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-zr(s),a=1<<i,l=o[i];l===-1?(!(a&n)||a&r)&&(o[i]=N4(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function Hg(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function y2(){var e=Od;return Od<<=1,!(Od&4194240)&&(Od=64),e}function wm(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Iu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-zr(t),e[t]=n}function D4(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-zr(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function Mv(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-zr(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Ze=0;function v2(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var x2,_v,b2,w2,S2,Wg=!1,Fd=[],$s=null,Fs=null,Is=null,au=new Map,lu=new Map,Ss=[],M4="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Gx(e,t){switch(e){case"focusin":case"focusout":$s=null;break;case"dragenter":case"dragleave":Fs=null;break;case"mouseover":case"mouseout":Is=null;break;case"pointerover":case"pointerout":au.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":lu.delete(t.pointerId)}}function vc(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=Vu(t),t!==null&&_v(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function _4(e,t,n,r,o){switch(t){case"focusin":return $s=vc($s,e,t,n,r,o),!0;case"dragenter":return Fs=vc(Fs,e,t,n,r,o),!0;case"mouseover":return Is=vc(Is,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return au.set(s,vc(au.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,lu.set(s,vc(lu.get(s)||null,e,t,n,r,o)),!0}return!1}function C2(e){var t=Ri(e.target);if(t!==null){var n=ra(t);if(n!==null){if(t=n.tag,t===13){if(t=d2(n),t!==null){e.blockedOn=t,S2(e.priority,function(){b2(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ff(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kg(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);zg=r,n.target.dispatchEvent(r),zg=null}else return t=Vu(n),t!==null&&_v(t),e.blockedOn=n,!1;t.shift()}return!0}function Qx(e,t,n){ff(e)&&n.delete(t)}function A4(){Wg=!1,$s!==null&&ff($s)&&($s=null),Fs!==null&&ff(Fs)&&(Fs=null),Is!==null&&ff(Is)&&(Is=null),au.forEach(Qx),lu.forEach(Qx)}function xc(e,t){e.blockedOn===t&&(e.blockedOn=null,Wg||(Wg=!0,nr.unstable_scheduleCallback(nr.unstable_NormalPriority,A4)))}function cu(e){function t(o){return xc(o,e)}if(0<Fd.length){xc(Fd[0],e);for(var n=1;n<Fd.length;n++){var r=Fd[n];r.blockedOn===e&&(r.blockedOn=null)}}for($s!==null&&xc($s,e),Fs!==null&&xc(Fs,e),Is!==null&&xc(Is,e),au.forEach(t),lu.forEach(t),n=0;n<Ss.length;n++)r=Ss[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ss.length&&(n=Ss[0],n.blockedOn===null);)C2(n),n.blockedOn===null&&Ss.shift()}var sl=Yo.ReactCurrentBatchConfig,$f=!0;function O4(e,t,n,r){var o=Ze,s=sl.transition;sl.transition=null;try{Ze=1,Av(e,t,n,r)}finally{Ze=o,sl.transition=s}}function $4(e,t,n,r){var o=Ze,s=sl.transition;sl.transition=null;try{Ze=4,Av(e,t,n,r)}finally{Ze=o,sl.transition=s}}function Av(e,t,n,r){if($f){var o=Kg(e,t,n,r);if(o===null)Lm(e,t,r,Ff,n),Gx(e,r);else if(_4(o,e,t,n,r))r.stopPropagation();else if(Gx(e,r),t&4&&-1<M4.indexOf(e)){for(;o!==null;){var s=Vu(o);if(s!==null&&x2(s),s=Kg(e,t,n,r),s===null&&Lm(e,t,r,Ff,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else Lm(e,t,r,null,n)}}var Ff=null;function Kg(e,t,n,r){if(Ff=null,e=Lv(r),e=Ri(e),e!==null)if(t=ra(e),t===null)e=null;else if(n=t.tag,n===13){if(e=d2(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ff=e,null}function E2(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(E4()){case Dv:return 1;case m2:return 4;case Af:case k4:return 16;case g2:return 536870912;default:return 16}default:return 16}}var _s=null,Ov=null,pf=null;function k2(){if(pf)return pf;var e,t=Ov,n=t.length,r,o="value"in _s?_s.value:_s.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[s-r];r++);return pf=o.slice(e,1<r?1-r:void 0)}function hf(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Id(){return!0}function Xx(){return!1}function sr(e){function t(n,r,o,s,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Id:Xx,this.isPropagationStopped=Xx,this}return Nt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Id)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Id)},persist:function(){},isPersistent:Id}),t}var Kl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$v=sr(Kl),zu=Nt({},Kl,{view:0,detail:0}),F4=sr(zu),Sm,Cm,bc,jp=Nt({},zu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fv,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==bc&&(bc&&e.type==="mousemove"?(Sm=e.screenX-bc.screenX,Cm=e.screenY-bc.screenY):Cm=Sm=0,bc=e),Sm)},movementY:function(e){return"movementY"in e?e.movementY:Cm}}),Jx=sr(jp),I4=Nt({},jp,{dataTransfer:0}),z4=sr(I4),V4=Nt({},zu,{relatedTarget:0}),Em=sr(V4),B4=Nt({},Kl,{animationName:0,elapsedTime:0,pseudoElement:0}),U4=sr(B4),H4=Nt({},Kl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),W4=sr(H4),K4=Nt({},Kl,{data:0}),Zx=sr(K4),q4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Y4={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},G4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Q4(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=G4[e])?!!t[e]:!1}function Fv(){return Q4}var X4=Nt({},zu,{key:function(e){if(e.key){var t=q4[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=hf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Y4[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fv,charCode:function(e){return e.type==="keypress"?hf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?hf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),J4=sr(X4),Z4=Nt({},jp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),eb=sr(Z4),eL=Nt({},zu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fv}),tL=sr(eL),nL=Nt({},Kl,{propertyName:0,elapsedTime:0,pseudoElement:0}),rL=sr(nL),oL=Nt({},jp,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),sL=sr(oL),iL=[9,13,27,32],Iv=Io&&"CompositionEvent"in window,Gc=null;Io&&"documentMode"in document&&(Gc=document.documentMode);var aL=Io&&"TextEvent"in window&&!Gc,j2=Io&&(!Iv||Gc&&8<Gc&&11>=Gc),tb=" ",nb=!1;function R2(e,t){switch(e){case"keyup":return iL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function P2(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Va=!1;function lL(e,t){switch(e){case"compositionend":return P2(t);case"keypress":return t.which!==32?null:(nb=!0,tb);case"textInput":return e=t.data,e===tb&&nb?null:e;default:return null}}function cL(e,t){if(Va)return e==="compositionend"||!Iv&&R2(e,t)?(e=k2(),pf=Ov=_s=null,Va=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return j2&&t.locale!=="ko"?null:t.data;default:return null}}var uL={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function rb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!uL[e.type]:t==="textarea"}function T2(e,t,n,r){i2(r),t=If(t,"onChange"),0<t.length&&(n=new $v("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Qc=null,uu=null;function dL(e){z2(e,0)}function Rp(e){var t=Ha(e);if(ZC(t))return e}function fL(e,t){if(e==="change")return t}var N2=!1;if(Io){var km;if(Io){var jm="oninput"in document;if(!jm){var ob=document.createElement("div");ob.setAttribute("oninput","return;"),jm=typeof ob.oninput=="function"}km=jm}else km=!1;N2=km&&(!document.documentMode||9<document.documentMode)}function sb(){Qc&&(Qc.detachEvent("onpropertychange",L2),uu=Qc=null)}function L2(e){if(e.propertyName==="value"&&Rp(uu)){var t=[];T2(t,uu,e,Lv(e)),u2(dL,t)}}function pL(e,t,n){e==="focusin"?(sb(),Qc=t,uu=n,Qc.attachEvent("onpropertychange",L2)):e==="focusout"&&sb()}function hL(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Rp(uu)}function mL(e,t){if(e==="click")return Rp(t)}function gL(e,t){if(e==="input"||e==="change")return Rp(t)}function yL(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Hr=typeof Object.is=="function"?Object.is:yL;function du(e,t){if(Hr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Pg.call(t,o)||!Hr(e[o],t[o]))return!1}return!0}function ib(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ab(e,t){var n=ib(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ib(n)}}function D2(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?D2(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function M2(){for(var e=window,t=Df();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Df(e.document)}return t}function zv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function vL(e){var t=M2(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&D2(n.ownerDocument.documentElement,n)){if(r!==null&&zv(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=ab(n,s);var i=ab(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var xL=Io&&"documentMode"in document&&11>=document.documentMode,Ba=null,qg=null,Xc=null,Yg=!1;function lb(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Yg||Ba==null||Ba!==Df(r)||(r=Ba,"selectionStart"in r&&zv(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Xc&&du(Xc,r)||(Xc=r,r=If(qg,"onSelect"),0<r.length&&(t=new $v("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ba)))}function zd(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ua={animationend:zd("Animation","AnimationEnd"),animationiteration:zd("Animation","AnimationIteration"),animationstart:zd("Animation","AnimationStart"),transitionend:zd("Transition","TransitionEnd")},Rm={},_2={};Io&&(_2=document.createElement("div").style,"AnimationEvent"in window||(delete Ua.animationend.animation,delete Ua.animationiteration.animation,delete Ua.animationstart.animation),"TransitionEvent"in window||delete Ua.transitionend.transition);function Pp(e){if(Rm[e])return Rm[e];if(!Ua[e])return e;var t=Ua[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in _2)return Rm[e]=t[n];return e}var A2=Pp("animationend"),O2=Pp("animationiteration"),$2=Pp("animationstart"),F2=Pp("transitionend"),I2=new Map,cb="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Zs(e,t){I2.set(e,t),na(t,[e])}for(var Pm=0;Pm<cb.length;Pm++){var Tm=cb[Pm],bL=Tm.toLowerCase(),wL=Tm[0].toUpperCase()+Tm.slice(1);Zs(bL,"on"+wL)}Zs(A2,"onAnimationEnd");Zs(O2,"onAnimationIteration");Zs($2,"onAnimationStart");Zs("dblclick","onDoubleClick");Zs("focusin","onFocus");Zs("focusout","onBlur");Zs(F2,"onTransitionEnd");Pl("onMouseEnter",["mouseout","mouseover"]);Pl("onMouseLeave",["mouseout","mouseover"]);Pl("onPointerEnter",["pointerout","pointerover"]);Pl("onPointerLeave",["pointerout","pointerover"]);na("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));na("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));na("onBeforeInput",["compositionend","keypress","textInput","paste"]);na("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));na("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));na("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),SL=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fc));function ub(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,b4(r,t,void 0,e),e.currentTarget=null}function z2(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==s&&o.isPropagationStopped())break e;ub(o,a,c),s=l}else for(i=0;i<r.length;i++){if(a=r[i],l=a.instance,c=a.currentTarget,a=a.listener,l!==s&&o.isPropagationStopped())break e;ub(o,a,c),s=l}}}if(_f)throw e=Ug,_f=!1,Ug=null,e}function mt(e,t){var n=t[Zg];n===void 0&&(n=t[Zg]=new Set);var r=e+"__bubble";n.has(r)||(V2(t,e,2,!1),n.add(r))}function Nm(e,t,n){var r=0;t&&(r|=4),V2(n,e,r,t)}var Vd="_reactListening"+Math.random().toString(36).slice(2);function fu(e){if(!e[Vd]){e[Vd]=!0,YC.forEach(function(n){n!=="selectionchange"&&(SL.has(n)||Nm(n,!1,e),Nm(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Vd]||(t[Vd]=!0,Nm("selectionchange",!1,t))}}function V2(e,t,n,r){switch(E2(t)){case 1:var o=O4;break;case 4:o=$4;break;default:o=Av}n=o.bind(null,t,n,e),o=void 0,!Bg||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Lm(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;i=i.return}for(;a!==null;){if(i=Ri(a),i===null)return;if(l=i.tag,l===5||l===6){r=s=i;continue e}a=a.parentNode}}r=r.return}u2(function(){var c=s,d=Lv(n),f=[];e:{var p=I2.get(e);if(p!==void 0){var h=$v,m=e;switch(e){case"keypress":if(hf(n)===0)break e;case"keydown":case"keyup":h=J4;break;case"focusin":m="focus",h=Em;break;case"focusout":m="blur",h=Em;break;case"beforeblur":case"afterblur":h=Em;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Jx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=z4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=tL;break;case A2:case O2:case $2:h=U4;break;case F2:h=rL;break;case"scroll":h=F4;break;case"wheel":h=sL;break;case"copy":case"cut":case"paste":h=W4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=eb}var g=(t&4)!==0,w=!g&&e==="scroll",y=g?p!==null?p+"Capture":null:p;g=[];for(var x=c,b;x!==null;){b=x;var S=b.stateNode;if(b.tag===5&&S!==null&&(b=S,y!==null&&(S=iu(x,y),S!=null&&g.push(pu(x,S,b)))),w)break;x=x.return}0<g.length&&(p=new h(p,m,null,n,d),f.push({event:p,listeners:g}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",p&&n!==zg&&(m=n.relatedTarget||n.fromElement)&&(Ri(m)||m[zo]))break e;if((h||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,h?(m=n.relatedTarget||n.toElement,h=c,m=m?Ri(m):null,m!==null&&(w=ra(m),m!==w||m.tag!==5&&m.tag!==6)&&(m=null)):(h=null,m=c),h!==m)){if(g=Jx,S="onMouseLeave",y="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(g=eb,S="onPointerLeave",y="onPointerEnter",x="pointer"),w=h==null?p:Ha(h),b=m==null?p:Ha(m),p=new g(S,x+"leave",h,n,d),p.target=w,p.relatedTarget=b,S=null,Ri(d)===c&&(g=new g(y,x+"enter",m,n,d),g.target=b,g.relatedTarget=w,S=g),w=S,h&&m)t:{for(g=h,y=m,x=0,b=g;b;b=Ea(b))x++;for(b=0,S=y;S;S=Ea(S))b++;for(;0<x-b;)g=Ea(g),x--;for(;0<b-x;)y=Ea(y),b--;for(;x--;){if(g===y||y!==null&&g===y.alternate)break t;g=Ea(g),y=Ea(y)}g=null}else g=null;h!==null&&db(f,p,h,g,!1),m!==null&&w!==null&&db(f,w,m,g,!0)}}e:{if(p=c?Ha(c):window,h=p.nodeName&&p.nodeName.toLowerCase(),h==="select"||h==="input"&&p.type==="file")var k=fL;else if(rb(p))if(N2)k=gL;else{k=hL;var E=pL}else(h=p.nodeName)&&h.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(k=mL);if(k&&(k=k(e,c))){T2(f,k,n,d);break e}E&&E(e,p,c),e==="focusout"&&(E=p._wrapperState)&&E.controlled&&p.type==="number"&&Ag(p,"number",p.value)}switch(E=c?Ha(c):window,e){case"focusin":(rb(E)||E.contentEditable==="true")&&(Ba=E,qg=c,Xc=null);break;case"focusout":Xc=qg=Ba=null;break;case"mousedown":Yg=!0;break;case"contextmenu":case"mouseup":case"dragend":Yg=!1,lb(f,n,d);break;case"selectionchange":if(xL)break;case"keydown":case"keyup":lb(f,n,d)}var j;if(Iv)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Va?R2(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(j2&&n.locale!=="ko"&&(Va||C!=="onCompositionStart"?C==="onCompositionEnd"&&Va&&(j=k2()):(_s=d,Ov="value"in _s?_s.value:_s.textContent,Va=!0)),E=If(c,C),0<E.length&&(C=new Zx(C,e,null,n,d),f.push({event:C,listeners:E}),j?C.data=j:(j=P2(n),j!==null&&(C.data=j)))),(j=aL?lL(e,n):cL(e,n))&&(c=If(c,"onBeforeInput"),0<c.length&&(d=new Zx("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:c}),d.data=j))}z2(f,t)})}function pu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function If(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=iu(e,n),s!=null&&r.unshift(pu(e,s,o)),s=iu(e,t),s!=null&&r.push(pu(e,s,o))),e=e.return}return r}function Ea(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function db(e,t,n,r,o){for(var s=t._reactName,i=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,o?(l=iu(n,s),l!=null&&i.unshift(pu(n,l,a))):o||(l=iu(n,s),l!=null&&i.push(pu(n,l,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var CL=/\r\n?/g,EL=/\u0000|\uFFFD/g;function fb(e){return(typeof e=="string"?e:""+e).replace(CL,`
38
+ `).replace(EL,"")}function Bd(e,t,n){if(t=fb(t),fb(e)!==t&&n)throw Error(re(425))}function zf(){}var Gg=null,Qg=null;function Xg(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Jg=typeof setTimeout=="function"?setTimeout:void 0,kL=typeof clearTimeout=="function"?clearTimeout:void 0,pb=typeof Promise=="function"?Promise:void 0,jL=typeof queueMicrotask=="function"?queueMicrotask:typeof pb<"u"?function(e){return pb.resolve(null).then(e).catch(RL)}:Jg;function RL(e){setTimeout(function(){throw e})}function Dm(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),cu(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);cu(t)}function zs(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function hb(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ql=Math.random().toString(36).slice(2),uo="__reactFiber$"+ql,hu="__reactProps$"+ql,zo="__reactContainer$"+ql,Zg="__reactEvents$"+ql,PL="__reactListeners$"+ql,TL="__reactHandles$"+ql;function Ri(e){var t=e[uo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[zo]||n[uo]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hb(e);e!==null;){if(n=e[uo])return n;e=hb(e)}return t}e=n,n=e.parentNode}return null}function Vu(e){return e=e[uo]||e[zo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ha(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(re(33))}function Tp(e){return e[hu]||null}var ey=[],Wa=-1;function ei(e){return{current:e}}function yt(e){0>Wa||(e.current=ey[Wa],ey[Wa]=null,Wa--)}function ct(e,t){Wa++,ey[Wa]=e.current,e.current=t}var qs={},gn=ei(qs),_n=ei(!1),Wi=qs;function Tl(e,t){var n=e.type.contextTypes;if(!n)return qs;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function An(e){return e=e.childContextTypes,e!=null}function Vf(){yt(_n),yt(gn)}function mb(e,t,n){if(gn.current!==qs)throw Error(re(168));ct(gn,t),ct(_n,n)}function B2(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(re(108,p4(e)||"Unknown",o));return Nt({},n,r)}function Bf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qs,Wi=gn.current,ct(gn,e),ct(_n,_n.current),!0}function gb(e,t,n){var r=e.stateNode;if(!r)throw Error(re(169));n?(e=B2(e,t,Wi),r.__reactInternalMemoizedMergedChildContext=e,yt(_n),yt(gn),ct(gn,e)):yt(_n),ct(_n,n)}var No=null,Np=!1,Mm=!1;function U2(e){No===null?No=[e]:No.push(e)}function NL(e){Np=!0,U2(e)}function ti(){if(!Mm&&No!==null){Mm=!0;var e=0,t=Ze;try{var n=No;for(Ze=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}No=null,Np=!1}catch(o){throw No!==null&&(No=No.slice(e+1)),h2(Dv,ti),o}finally{Ze=t,Mm=!1}}return null}var Ka=[],qa=0,Uf=null,Hf=0,dr=[],fr=0,Ki=null,Do=1,Mo="";function bi(e,t){Ka[qa++]=Hf,Ka[qa++]=Uf,Uf=e,Hf=t}function H2(e,t,n){dr[fr++]=Do,dr[fr++]=Mo,dr[fr++]=Ki,Ki=e;var r=Do;e=Mo;var o=32-zr(r)-1;r&=~(1<<o),n+=1;var s=32-zr(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Do=1<<32-zr(t)+o|n<<o|r,Mo=s+e}else Do=1<<s|n<<o|r,Mo=e}function Vv(e){e.return!==null&&(bi(e,1),H2(e,1,0))}function Bv(e){for(;e===Uf;)Uf=Ka[--qa],Ka[qa]=null,Hf=Ka[--qa],Ka[qa]=null;for(;e===Ki;)Ki=dr[--fr],dr[fr]=null,Mo=dr[--fr],dr[fr]=null,Do=dr[--fr],dr[fr]=null}var er=null,Qn=null,Ct=!1,$r=null;function W2(e,t){var n=pr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function yb(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,er=e,Qn=zs(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,er=e,Qn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ki!==null?{id:Do,overflow:Mo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=pr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,er=e,Qn=null,!0):!1;default:return!1}}function ty(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ny(e){if(Ct){var t=Qn;if(t){var n=t;if(!yb(e,t)){if(ty(e))throw Error(re(418));t=zs(n.nextSibling);var r=er;t&&yb(e,t)?W2(r,n):(e.flags=e.flags&-4097|2,Ct=!1,er=e)}}else{if(ty(e))throw Error(re(418));e.flags=e.flags&-4097|2,Ct=!1,er=e}}}function vb(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;er=e}function Ud(e){if(e!==er)return!1;if(!Ct)return vb(e),Ct=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Xg(e.type,e.memoizedProps)),t&&(t=Qn)){if(ty(e))throw K2(),Error(re(418));for(;t;)W2(e,t),t=zs(t.nextSibling)}if(vb(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(re(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Qn=zs(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Qn=null}}else Qn=er?zs(e.stateNode.nextSibling):null;return!0}function K2(){for(var e=Qn;e;)e=zs(e.nextSibling)}function Nl(){Qn=er=null,Ct=!1}function Uv(e){$r===null?$r=[e]:$r.push(e)}var LL=Yo.ReactCurrentBatchConfig;function wc(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(re(309));var r=n.stateNode}if(!r)throw Error(re(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var a=o.refs;i===null?delete a[s]:a[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(re(284));if(!n._owner)throw Error(re(290,e))}return e}function Hd(e,t){throw e=Object.prototype.toString.call(t),Error(re(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function xb(e){var t=e._init;return t(e._payload)}function q2(e){function t(y,x){if(e){var b=y.deletions;b===null?(y.deletions=[x],y.flags|=16):b.push(x)}}function n(y,x){if(!e)return null;for(;x!==null;)t(y,x),x=x.sibling;return null}function r(y,x){for(y=new Map;x!==null;)x.key!==null?y.set(x.key,x):y.set(x.index,x),x=x.sibling;return y}function o(y,x){return y=Hs(y,x),y.index=0,y.sibling=null,y}function s(y,x,b){return y.index=b,e?(b=y.alternate,b!==null?(b=b.index,b<x?(y.flags|=2,x):b):(y.flags|=2,x)):(y.flags|=1048576,x)}function i(y){return e&&y.alternate===null&&(y.flags|=2),y}function a(y,x,b,S){return x===null||x.tag!==6?(x=zm(b,y.mode,S),x.return=y,x):(x=o(x,b),x.return=y,x)}function l(y,x,b,S){var k=b.type;return k===za?d(y,x,b.props.children,S,b.key):x!==null&&(x.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===xs&&xb(k)===x.type)?(S=o(x,b.props),S.ref=wc(y,x,b),S.return=y,S):(S=wf(b.type,b.key,b.props,null,y.mode,S),S.ref=wc(y,x,b),S.return=y,S)}function c(y,x,b,S){return x===null||x.tag!==4||x.stateNode.containerInfo!==b.containerInfo||x.stateNode.implementation!==b.implementation?(x=Vm(b,y.mode,S),x.return=y,x):(x=o(x,b.children||[]),x.return=y,x)}function d(y,x,b,S,k){return x===null||x.tag!==7?(x=Bi(b,y.mode,S,k),x.return=y,x):(x=o(x,b),x.return=y,x)}function f(y,x,b){if(typeof x=="string"&&x!==""||typeof x=="number")return x=zm(""+x,y.mode,b),x.return=y,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Md:return b=wf(x.type,x.key,x.props,null,y.mode,b),b.ref=wc(y,null,x),b.return=y,b;case Ia:return x=Vm(x,y.mode,b),x.return=y,x;case xs:var S=x._init;return f(y,S(x._payload),b)}if(Oc(x)||gc(x))return x=Bi(x,y.mode,b,null),x.return=y,x;Hd(y,x)}return null}function p(y,x,b,S){var k=x!==null?x.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return k!==null?null:a(y,x,""+b,S);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Md:return b.key===k?l(y,x,b,S):null;case Ia:return b.key===k?c(y,x,b,S):null;case xs:return k=b._init,p(y,x,k(b._payload),S)}if(Oc(b)||gc(b))return k!==null?null:d(y,x,b,S,null);Hd(y,b)}return null}function h(y,x,b,S,k){if(typeof S=="string"&&S!==""||typeof S=="number")return y=y.get(b)||null,a(x,y,""+S,k);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Md:return y=y.get(S.key===null?b:S.key)||null,l(x,y,S,k);case Ia:return y=y.get(S.key===null?b:S.key)||null,c(x,y,S,k);case xs:var E=S._init;return h(y,x,b,E(S._payload),k)}if(Oc(S)||gc(S))return y=y.get(b)||null,d(x,y,S,k,null);Hd(x,S)}return null}function m(y,x,b,S){for(var k=null,E=null,j=x,C=x=0,T=null;j!==null&&C<b.length;C++){j.index>C?(T=j,j=null):T=j.sibling;var N=p(y,j,b[C],S);if(N===null){j===null&&(j=T);break}e&&j&&N.alternate===null&&t(y,j),x=s(N,x,C),E===null?k=N:E.sibling=N,E=N,j=T}if(C===b.length)return n(y,j),Ct&&bi(y,C),k;if(j===null){for(;C<b.length;C++)j=f(y,b[C],S),j!==null&&(x=s(j,x,C),E===null?k=j:E.sibling=j,E=j);return Ct&&bi(y,C),k}for(j=r(y,j);C<b.length;C++)T=h(j,y,C,b[C],S),T!==null&&(e&&T.alternate!==null&&j.delete(T.key===null?C:T.key),x=s(T,x,C),E===null?k=T:E.sibling=T,E=T);return e&&j.forEach(function(_){return t(y,_)}),Ct&&bi(y,C),k}function g(y,x,b,S){var k=gc(b);if(typeof k!="function")throw Error(re(150));if(b=k.call(b),b==null)throw Error(re(151));for(var E=k=null,j=x,C=x=0,T=null,N=b.next();j!==null&&!N.done;C++,N=b.next()){j.index>C?(T=j,j=null):T=j.sibling;var _=p(y,j,N.value,S);if(_===null){j===null&&(j=T);break}e&&j&&_.alternate===null&&t(y,j),x=s(_,x,C),E===null?k=_:E.sibling=_,E=_,j=T}if(N.done)return n(y,j),Ct&&bi(y,C),k;if(j===null){for(;!N.done;C++,N=b.next())N=f(y,N.value,S),N!==null&&(x=s(N,x,C),E===null?k=N:E.sibling=N,E=N);return Ct&&bi(y,C),k}for(j=r(y,j);!N.done;C++,N=b.next())N=h(j,y,C,N.value,S),N!==null&&(e&&N.alternate!==null&&j.delete(N.key===null?C:N.key),x=s(N,x,C),E===null?k=N:E.sibling=N,E=N);return e&&j.forEach(function(I){return t(y,I)}),Ct&&bi(y,C),k}function w(y,x,b,S){if(typeof b=="object"&&b!==null&&b.type===za&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Md:e:{for(var k=b.key,E=x;E!==null;){if(E.key===k){if(k=b.type,k===za){if(E.tag===7){n(y,E.sibling),x=o(E,b.props.children),x.return=y,y=x;break e}}else if(E.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===xs&&xb(k)===E.type){n(y,E.sibling),x=o(E,b.props),x.ref=wc(y,E,b),x.return=y,y=x;break e}n(y,E);break}else t(y,E);E=E.sibling}b.type===za?(x=Bi(b.props.children,y.mode,S,b.key),x.return=y,y=x):(S=wf(b.type,b.key,b.props,null,y.mode,S),S.ref=wc(y,x,b),S.return=y,y=S)}return i(y);case Ia:e:{for(E=b.key;x!==null;){if(x.key===E)if(x.tag===4&&x.stateNode.containerInfo===b.containerInfo&&x.stateNode.implementation===b.implementation){n(y,x.sibling),x=o(x,b.children||[]),x.return=y,y=x;break e}else{n(y,x);break}else t(y,x);x=x.sibling}x=Vm(b,y.mode,S),x.return=y,y=x}return i(y);case xs:return E=b._init,w(y,x,E(b._payload),S)}if(Oc(b))return m(y,x,b,S);if(gc(b))return g(y,x,b,S);Hd(y,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,x!==null&&x.tag===6?(n(y,x.sibling),x=o(x,b),x.return=y,y=x):(n(y,x),x=zm(b,y.mode,S),x.return=y,y=x),i(y)):n(y,x)}return w}var Ll=q2(!0),Y2=q2(!1),Wf=ei(null),Kf=null,Ya=null,Hv=null;function Wv(){Hv=Ya=Kf=null}function Kv(e){var t=Wf.current;yt(Wf),e._currentValue=t}function ry(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function il(e,t){Kf=e,Hv=Ya=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Mn=!0),e.firstContext=null)}function yr(e){var t=e._currentValue;if(Hv!==e)if(e={context:e,memoizedValue:t,next:null},Ya===null){if(Kf===null)throw Error(re(308));Ya=e,Kf.dependencies={lanes:0,firstContext:e}}else Ya=Ya.next=e;return t}var Pi=null;function qv(e){Pi===null?Pi=[e]:Pi.push(e)}function G2(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,qv(t)):(n.next=o.next,o.next=n),t.interleaved=n,Vo(e,r)}function Vo(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var bs=!1;function Yv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Q2(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ao(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vs(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ye&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Vo(e,n)}return o=r.interleaved,o===null?(t.next=t,qv(r)):(t.next=o.next,o.next=t),r.interleaved=t,Vo(e,n)}function mf(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Mv(e,n)}}function bb(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function qf(e,t,n,r){var o=e.updateQueue;bs=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,c=l.next;l.next=null,i===null?s=c:i.next=c,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==i&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(s!==null){var f=o.baseState;i=0,d=c=l=null,a=s;do{var p=a.lane,h=a.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,g=a;switch(p=t,h=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){f=m.call(h,f,p);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,p=typeof m=="function"?m.call(h,f,p):m,p==null)break e;f=Nt({},f,p);break e;case 2:bs=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[a]:p.push(a))}else h={eventTime:h,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=h,l=f):d=d.next=h,i|=p;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;p=a,a=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(d===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Yi|=i,e.lanes=i,e.memoizedState=f}}function wb(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(re(191,o));o.call(r)}}}var Bu={},go=ei(Bu),mu=ei(Bu),gu=ei(Bu);function Ti(e){if(e===Bu)throw Error(re(174));return e}function Gv(e,t){switch(ct(gu,t),ct(mu,e),ct(go,Bu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:$g(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=$g(t,e)}yt(go),ct(go,t)}function Dl(){yt(go),yt(mu),yt(gu)}function X2(e){Ti(gu.current);var t=Ti(go.current),n=$g(t,e.type);t!==n&&(ct(mu,e),ct(go,n))}function Qv(e){mu.current===e&&(yt(go),yt(mu))}var Rt=ei(0);function Yf(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _m=[];function Xv(){for(var e=0;e<_m.length;e++)_m[e]._workInProgressVersionPrimary=null;_m.length=0}var gf=Yo.ReactCurrentDispatcher,Am=Yo.ReactCurrentBatchConfig,qi=0,Pt=null,Bt=null,Qt=null,Gf=!1,Jc=!1,yu=0,DL=0;function cn(){throw Error(re(321))}function Jv(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Hr(e[n],t[n]))return!1;return!0}function Zv(e,t,n,r,o,s){if(qi=s,Pt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,gf.current=e===null||e.memoizedState===null?OL:$L,e=n(r,o),Jc){s=0;do{if(Jc=!1,yu=0,25<=s)throw Error(re(301));s+=1,Qt=Bt=null,t.updateQueue=null,gf.current=FL,e=n(r,o)}while(Jc)}if(gf.current=Qf,t=Bt!==null&&Bt.next!==null,qi=0,Qt=Bt=Pt=null,Gf=!1,t)throw Error(re(300));return e}function e0(){var e=yu!==0;return yu=0,e}function oo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qt===null?Pt.memoizedState=Qt=e:Qt=Qt.next=e,Qt}function vr(){if(Bt===null){var e=Pt.alternate;e=e!==null?e.memoizedState:null}else e=Bt.next;var t=Qt===null?Pt.memoizedState:Qt.next;if(t!==null)Qt=t,Bt=e;else{if(e===null)throw Error(re(310));Bt=e,e={memoizedState:Bt.memoizedState,baseState:Bt.baseState,baseQueue:Bt.baseQueue,queue:Bt.queue,next:null},Qt===null?Pt.memoizedState=Qt=e:Qt=Qt.next=e}return Qt}function vu(e,t){return typeof t=="function"?t(e):t}function Om(e){var t=vr(),n=t.queue;if(n===null)throw Error(re(311));n.lastRenderedReducer=e;var r=Bt,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var i=o.next;o.next=s.next,s.next=i}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var a=i=null,l=null,c=s;do{var d=c.lane;if((qi&d)===d)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=f,i=r):l=l.next=f,Pt.lanes|=d,Yi|=d}c=c.next}while(c!==null&&c!==s);l===null?i=r:l.next=a,Hr(r,t.memoizedState)||(Mn=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,Pt.lanes|=s,Yi|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function $m(e){var t=vr(),n=t.queue;if(n===null)throw Error(re(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do s=e(s,i.action),i=i.next;while(i!==o);Hr(s,t.memoizedState)||(Mn=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function J2(){}function Z2(e,t){var n=Pt,r=vr(),o=t(),s=!Hr(r.memoizedState,o);if(s&&(r.memoizedState=o,Mn=!0),r=r.queue,t0(nE.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Qt!==null&&Qt.memoizedState.tag&1){if(n.flags|=2048,xu(9,tE.bind(null,n,r,o,t),void 0,null),Xt===null)throw Error(re(349));qi&30||eE(n,t,o)}return o}function eE(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Pt.updateQueue,t===null?(t={lastEffect:null,stores:null},Pt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function tE(e,t,n,r){t.value=n,t.getSnapshot=r,rE(t)&&oE(e)}function nE(e,t,n){return n(function(){rE(t)&&oE(e)})}function rE(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Hr(e,n)}catch{return!0}}function oE(e){var t=Vo(e,1);t!==null&&Vr(t,e,1,-1)}function Sb(e){var t=oo();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vu,lastRenderedState:e},t.queue=e,e=e.dispatch=AL.bind(null,Pt,e),[t.memoizedState,e]}function xu(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Pt.updateQueue,t===null?(t={lastEffect:null,stores:null},Pt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function sE(){return vr().memoizedState}function yf(e,t,n,r){var o=oo();Pt.flags|=e,o.memoizedState=xu(1|t,n,void 0,r===void 0?null:r)}function Lp(e,t,n,r){var o=vr();r=r===void 0?null:r;var s=void 0;if(Bt!==null){var i=Bt.memoizedState;if(s=i.destroy,r!==null&&Jv(r,i.deps)){o.memoizedState=xu(t,n,s,r);return}}Pt.flags|=e,o.memoizedState=xu(1|t,n,s,r)}function Cb(e,t){return yf(8390656,8,e,t)}function t0(e,t){return Lp(2048,8,e,t)}function iE(e,t){return Lp(4,2,e,t)}function aE(e,t){return Lp(4,4,e,t)}function lE(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function cE(e,t,n){return n=n!=null?n.concat([e]):null,Lp(4,4,lE.bind(null,t,e),n)}function n0(){}function uE(e,t){var n=vr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Jv(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function dE(e,t){var n=vr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Jv(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function fE(e,t,n){return qi&21?(Hr(n,t)||(n=y2(),Pt.lanes|=n,Yi|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Mn=!0),e.memoizedState=n)}function ML(e,t){var n=Ze;Ze=n!==0&&4>n?n:4,e(!0);var r=Am.transition;Am.transition={};try{e(!1),t()}finally{Ze=n,Am.transition=r}}function pE(){return vr().memoizedState}function _L(e,t,n){var r=Us(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hE(e))mE(t,n);else if(n=G2(e,t,n,r),n!==null){var o=En();Vr(n,e,r,o),gE(n,t,r)}}function AL(e,t,n){var r=Us(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hE(e))mE(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,a=s(i,n);if(o.hasEagerState=!0,o.eagerState=a,Hr(a,i)){var l=t.interleaved;l===null?(o.next=o,qv(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=G2(e,t,o,r),n!==null&&(o=En(),Vr(n,e,r,o),gE(n,t,r))}}function hE(e){var t=e.alternate;return e===Pt||t!==null&&t===Pt}function mE(e,t){Jc=Gf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gE(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Mv(e,n)}}var Qf={readContext:yr,useCallback:cn,useContext:cn,useEffect:cn,useImperativeHandle:cn,useInsertionEffect:cn,useLayoutEffect:cn,useMemo:cn,useReducer:cn,useRef:cn,useState:cn,useDebugValue:cn,useDeferredValue:cn,useTransition:cn,useMutableSource:cn,useSyncExternalStore:cn,useId:cn,unstable_isNewReconciler:!1},OL={readContext:yr,useCallback:function(e,t){return oo().memoizedState=[e,t===void 0?null:t],e},useContext:yr,useEffect:Cb,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yf(4194308,4,lE.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yf(4194308,4,e,t)},useInsertionEffect:function(e,t){return yf(4,2,e,t)},useMemo:function(e,t){var n=oo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=oo();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=_L.bind(null,Pt,e),[r.memoizedState,e]},useRef:function(e){var t=oo();return e={current:e},t.memoizedState=e},useState:Sb,useDebugValue:n0,useDeferredValue:function(e){return oo().memoizedState=e},useTransition:function(){var e=Sb(!1),t=e[0];return e=ML.bind(null,e[1]),oo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Pt,o=oo();if(Ct){if(n===void 0)throw Error(re(407));n=n()}else{if(n=t(),Xt===null)throw Error(re(349));qi&30||eE(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Cb(nE.bind(null,r,s,e),[e]),r.flags|=2048,xu(9,tE.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=oo(),t=Xt.identifierPrefix;if(Ct){var n=Mo,r=Do;n=(r&~(1<<32-zr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=yu++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=DL++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},$L={readContext:yr,useCallback:uE,useContext:yr,useEffect:t0,useImperativeHandle:cE,useInsertionEffect:iE,useLayoutEffect:aE,useMemo:dE,useReducer:Om,useRef:sE,useState:function(){return Om(vu)},useDebugValue:n0,useDeferredValue:function(e){var t=vr();return fE(t,Bt.memoizedState,e)},useTransition:function(){var e=Om(vu)[0],t=vr().memoizedState;return[e,t]},useMutableSource:J2,useSyncExternalStore:Z2,useId:pE,unstable_isNewReconciler:!1},FL={readContext:yr,useCallback:uE,useContext:yr,useEffect:t0,useImperativeHandle:cE,useInsertionEffect:iE,useLayoutEffect:aE,useMemo:dE,useReducer:$m,useRef:sE,useState:function(){return $m(vu)},useDebugValue:n0,useDeferredValue:function(e){var t=vr();return Bt===null?t.memoizedState=e:fE(t,Bt.memoizedState,e)},useTransition:function(){var e=$m(vu)[0],t=vr().memoizedState;return[e,t]},useMutableSource:J2,useSyncExternalStore:Z2,useId:pE,unstable_isNewReconciler:!1};function Mr(e,t){if(e&&e.defaultProps){t=Nt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function oy(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Nt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Dp={isMounted:function(e){return(e=e._reactInternals)?ra(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=En(),o=Us(e),s=Ao(r,o);s.payload=t,n!=null&&(s.callback=n),t=Vs(e,s,o),t!==null&&(Vr(t,e,o,r),mf(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=En(),o=Us(e),s=Ao(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Vs(e,s,o),t!==null&&(Vr(t,e,o,r),mf(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=En(),r=Us(e),o=Ao(n,r);o.tag=2,t!=null&&(o.callback=t),t=Vs(e,o,r),t!==null&&(Vr(t,e,r,n),mf(t,e,r))}};function Eb(e,t,n,r,o,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,i):t.prototype&&t.prototype.isPureReactComponent?!du(n,r)||!du(o,s):!0}function yE(e,t,n){var r=!1,o=qs,s=t.contextType;return typeof s=="object"&&s!==null?s=yr(s):(o=An(t)?Wi:gn.current,r=t.contextTypes,s=(r=r!=null)?Tl(e,o):qs),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Dp,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function kb(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Dp.enqueueReplaceState(t,t.state,null)}function sy(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Yv(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=yr(s):(s=An(t)?Wi:gn.current,o.context=Tl(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(oy(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Dp.enqueueReplaceState(o,o.state,null),qf(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Ml(e,t){try{var n="",r=t;do n+=f4(r),r=r.return;while(r);var o=n}catch(s){o=`
39
+ Error generating stack: `+s.message+`
40
+ `+s.stack}return{value:e,source:t,stack:o,digest:null}}function Fm(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function iy(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var IL=typeof WeakMap=="function"?WeakMap:Map;function vE(e,t,n){n=Ao(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Jf||(Jf=!0,gy=r),iy(e,t)},n}function xE(e,t,n){n=Ao(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){iy(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){iy(e,t),typeof r!="function"&&(Bs===null?Bs=new Set([this]):Bs.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function jb(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new IL;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=ZL.bind(null,e,t,n),t.then(e,e))}function Rb(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Pb(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ao(-1,1),t.tag=2,Vs(n,t,1))),n.lanes|=1),e)}var zL=Yo.ReactCurrentOwner,Mn=!1;function Cn(e,t,n,r){t.child=e===null?Y2(t,null,n,r):Ll(t,e.child,n,r)}function Tb(e,t,n,r,o){n=n.render;var s=t.ref;return il(t,o),r=Zv(e,t,n,r,s,o),n=e0(),e!==null&&!Mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Bo(e,t,o)):(Ct&&n&&Vv(t),t.flags|=1,Cn(e,t,r,o),t.child)}function Nb(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!u0(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,bE(e,t,s,r,o)):(e=wf(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:du,n(i,r)&&e.ref===t.ref)return Bo(e,t,o)}return t.flags|=1,e=Hs(s,r),e.ref=t.ref,e.return=t,t.child=e}function bE(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(du(s,r)&&e.ref===t.ref)if(Mn=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(Mn=!0);else return t.lanes=e.lanes,Bo(e,t,o)}return ay(e,t,n,r,o)}function wE(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ct(Qa,Yn),Yn|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ct(Qa,Yn),Yn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ct(Qa,Yn),Yn|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ct(Qa,Yn),Yn|=r;return Cn(e,t,o,n),t.child}function SE(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ay(e,t,n,r,o){var s=An(n)?Wi:gn.current;return s=Tl(t,s),il(t,o),n=Zv(e,t,n,r,s,o),r=e0(),e!==null&&!Mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Bo(e,t,o)):(Ct&&r&&Vv(t),t.flags|=1,Cn(e,t,n,o),t.child)}function Lb(e,t,n,r,o){if(An(n)){var s=!0;Bf(t)}else s=!1;if(il(t,o),t.stateNode===null)vf(e,t),yE(t,n,r),sy(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,c=n.contextType;typeof c=="object"&&c!==null?c=yr(c):(c=An(n)?Wi:gn.current,c=Tl(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||l!==c)&&kb(t,i,r,c),bs=!1;var p=t.memoizedState;i.state=p,qf(t,r,i,o),l=t.memoizedState,a!==r||p!==l||_n.current||bs?(typeof d=="function"&&(oy(t,n,d,r),l=t.memoizedState),(a=bs||Eb(t,n,a,r,p,l,c))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Q2(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Mr(t.type,a),i.props=c,f=t.pendingProps,p=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=yr(l):(l=An(n)?Wi:gn.current,l=Tl(t,l));var h=n.getDerivedStateFromProps;(d=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==f||p!==l)&&kb(t,i,r,l),bs=!1,p=t.memoizedState,i.state=p,qf(t,r,i,o);var m=t.memoizedState;a!==f||p!==m||_n.current||bs?(typeof h=="function"&&(oy(t,n,h,r),m=t.memoizedState),(c=bs||Eb(t,n,c,r,p,m,l)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,m,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,m,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=l,r=c):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return ly(e,t,n,r,s,o)}function ly(e,t,n,r,o,s){SE(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&gb(t,n,!1),Bo(e,t,s);r=t.stateNode,zL.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Ll(t,e.child,null,s),t.child=Ll(t,null,a,s)):Cn(e,t,a,s),t.memoizedState=r.state,o&&gb(t,n,!0),t.child}function CE(e){var t=e.stateNode;t.pendingContext?mb(e,t.pendingContext,t.pendingContext!==t.context):t.context&&mb(e,t.context,!1),Gv(e,t.containerInfo)}function Db(e,t,n,r,o){return Nl(),Uv(o),t.flags|=256,Cn(e,t,n,r),t.child}var cy={dehydrated:null,treeContext:null,retryLane:0};function uy(e){return{baseLanes:e,cachePool:null,transitions:null}}function EE(e,t,n){var r=t.pendingProps,o=Rt.current,s=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ct(Rt,o&1),e===null)return ny(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=Ap(i,r,0,null),e=Bi(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=uy(n),t.memoizedState=cy,e):r0(t,i));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return VL(e,t,i,r,a,o,n);if(s){s=r.fallback,i=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Hs(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?s=Hs(a,s):(s=Bi(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,i=e.child.memoizedState,i=i===null?uy(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=cy,r}return s=e.child,e=s.sibling,r=Hs(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function r0(e,t){return t=Ap({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Wd(e,t,n,r){return r!==null&&Uv(r),Ll(t,e.child,null,n),e=r0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function VL(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=Fm(Error(re(422))),Wd(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Ap({mode:"visible",children:r.children},o,0,null),s=Bi(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Ll(t,e.child,null,i),t.child.memoizedState=uy(i),t.memoizedState=cy,s);if(!(t.mode&1))return Wd(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(re(419)),r=Fm(s,r,void 0),Wd(e,t,i,r)}if(a=(i&e.childLanes)!==0,Mn||a){if(r=Xt,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,Vo(e,o),Vr(r,e,o,-1))}return c0(),r=Fm(Error(re(421))),Wd(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=eD.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,Qn=zs(o.nextSibling),er=t,Ct=!0,$r=null,e!==null&&(dr[fr++]=Do,dr[fr++]=Mo,dr[fr++]=Ki,Do=e.id,Mo=e.overflow,Ki=t),t=r0(t,r.children),t.flags|=4096,t)}function Mb(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ry(e.return,t,n)}function Im(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function kE(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(Cn(e,t,r.children,n),r=Rt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Mb(e,n,t);else if(e.tag===19)Mb(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ct(Rt,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Yf(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Im(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Yf(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Im(t,!0,n,null,s);break;case"together":Im(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function vf(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Bo(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Yi|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(re(153));if(t.child!==null){for(e=t.child,n=Hs(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Hs(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function BL(e,t,n){switch(t.tag){case 3:CE(t),Nl();break;case 5:X2(t);break;case 1:An(t.type)&&Bf(t);break;case 4:Gv(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ct(Wf,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ct(Rt,Rt.current&1),t.flags|=128,null):n&t.child.childLanes?EE(e,t,n):(ct(Rt,Rt.current&1),e=Bo(e,t,n),e!==null?e.sibling:null);ct(Rt,Rt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return kE(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ct(Rt,Rt.current),r)break;return null;case 22:case 23:return t.lanes=0,wE(e,t,n)}return Bo(e,t,n)}var jE,dy,RE,PE;jE=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};dy=function(){};RE=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ti(go.current);var s=null;switch(n){case"input":o=Mg(e,o),r=Mg(e,r),s=[];break;case"select":o=Nt({},o,{value:void 0}),r=Nt({},r,{value:void 0}),s=[];break;case"textarea":o=Og(e,o),r=Og(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=zf)}Fg(n,r);var i;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var a=o[c];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(ou.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var l=r[c];if(a=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(s||(s=[]),s.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(ou.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&mt("scroll",e),s||a===l||(s=[])):(s=s||[]).push(c,l))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};PE=function(e,t,n,r){n!==r&&(t.flags|=4)};function Sc(e,t){if(!Ct)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function un(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function UL(e,t,n){var r=t.pendingProps;switch(Bv(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return un(t),null;case 1:return An(t.type)&&Vf(),un(t),null;case 3:return r=t.stateNode,Dl(),yt(_n),yt(gn),Xv(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ud(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,$r!==null&&(xy($r),$r=null))),dy(e,t),un(t),null;case 5:Qv(t);var o=Ti(gu.current);if(n=t.type,e!==null&&t.stateNode!=null)RE(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(re(166));return un(t),null}if(e=Ti(go.current),Ud(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[uo]=t,r[hu]=s,e=(t.mode&1)!==0,n){case"dialog":mt("cancel",r),mt("close",r);break;case"iframe":case"object":case"embed":mt("load",r);break;case"video":case"audio":for(o=0;o<Fc.length;o++)mt(Fc[o],r);break;case"source":mt("error",r);break;case"img":case"image":case"link":mt("error",r),mt("load",r);break;case"details":mt("toggle",r);break;case"input":Bx(r,s),mt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},mt("invalid",r);break;case"textarea":Hx(r,s),mt("invalid",r)}Fg(n,s),o=null;for(var i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Bd(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Bd(r.textContent,a,e),o=["children",""+a]):ou.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&mt("scroll",r)}switch(n){case"input":_d(r),Ux(r,s,!0);break;case"textarea":_d(r),Wx(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=zf)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=n2(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[uo]=t,e[hu]=r,jE(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ig(n,r),n){case"dialog":mt("cancel",e),mt("close",e),o=r;break;case"iframe":case"object":case"embed":mt("load",e),o=r;break;case"video":case"audio":for(o=0;o<Fc.length;o++)mt(Fc[o],e);o=r;break;case"source":mt("error",e),o=r;break;case"img":case"image":case"link":mt("error",e),mt("load",e),o=r;break;case"details":mt("toggle",e),o=r;break;case"input":Bx(e,r),o=Mg(e,r),mt("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Nt({},r,{value:void 0}),mt("invalid",e);break;case"textarea":Hx(e,r),o=Og(e,r),mt("invalid",e);break;default:o=r}Fg(n,o),a=o;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?s2(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&r2(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&su(e,l):typeof l=="number"&&su(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(ou.hasOwnProperty(s)?l!=null&&s==="onScroll"&&mt("scroll",e):l!=null&&Rv(e,s,l,i))}switch(n){case"input":_d(e),Ux(e,r,!1);break;case"textarea":_d(e),Wx(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ks(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?nl(e,!!r.multiple,s,!1):r.defaultValue!=null&&nl(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=zf)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return un(t),null;case 6:if(e&&t.stateNode!=null)PE(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(re(166));if(n=Ti(gu.current),Ti(go.current),Ud(t)){if(r=t.stateNode,n=t.memoizedProps,r[uo]=t,(s=r.nodeValue!==n)&&(e=er,e!==null))switch(e.tag){case 3:Bd(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Bd(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[uo]=t,t.stateNode=r}return un(t),null;case 13:if(yt(Rt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ct&&Qn!==null&&t.mode&1&&!(t.flags&128))K2(),Nl(),t.flags|=98560,s=!1;else if(s=Ud(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(re(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(re(317));s[uo]=t}else Nl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;un(t),s=!1}else $r!==null&&(xy($r),$r=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Rt.current&1?Wt===0&&(Wt=3):c0())),t.updateQueue!==null&&(t.flags|=4),un(t),null);case 4:return Dl(),dy(e,t),e===null&&fu(t.stateNode.containerInfo),un(t),null;case 10:return Kv(t.type._context),un(t),null;case 17:return An(t.type)&&Vf(),un(t),null;case 19:if(yt(Rt),s=t.memoizedState,s===null)return un(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)Sc(s,!1);else{if(Wt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Yf(e),i!==null){for(t.flags|=128,Sc(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ct(Rt,Rt.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ot()>_l&&(t.flags|=128,r=!0,Sc(s,!1),t.lanes=4194304)}else{if(!r)if(e=Yf(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Sc(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!Ct)return un(t),null}else 2*Ot()-s.renderingStartTime>_l&&n!==1073741824&&(t.flags|=128,r=!0,Sc(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ot(),t.sibling=null,n=Rt.current,ct(Rt,r?n&1|2:n&1),t):(un(t),null);case 22:case 23:return l0(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Yn&1073741824&&(un(t),t.subtreeFlags&6&&(t.flags|=8192)):un(t),null;case 24:return null;case 25:return null}throw Error(re(156,t.tag))}function HL(e,t){switch(Bv(t),t.tag){case 1:return An(t.type)&&Vf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Dl(),yt(_n),yt(gn),Xv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Qv(t),null;case 13:if(yt(Rt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(re(340));Nl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return yt(Rt),null;case 4:return Dl(),null;case 10:return Kv(t.type._context),null;case 22:case 23:return l0(),null;case 24:return null;default:return null}}var Kd=!1,fn=!1,WL=typeof WeakSet=="function"?WeakSet:Set,ve=null;function Ga(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Mt(e,t,r)}else n.current=null}function fy(e,t,n){try{n()}catch(r){Mt(e,t,r)}}var _b=!1;function KL(e,t){if(Gg=$f,e=M2(),zv(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||o!==0&&f.nodeType!==3||(a=i+o),f!==s||r!==0&&f.nodeType!==3||(l=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===o&&(a=i),p===s&&++d===r&&(l=i),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qg={focusedElem:e,selectionRange:n},$f=!1,ve=t;ve!==null;)if(t=ve,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ve=e;else for(;ve!==null;){t=ve;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,w=m.memoizedState,y=t.stateNode,x=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:Mr(t.type,g),w);y.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(re(163))}}catch(S){Mt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,ve=e;break}ve=t.return}return m=_b,_b=!1,m}function Zc(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&fy(t,n,s)}o=o.next}while(o!==r)}}function Mp(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function py(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function TE(e){var t=e.alternate;t!==null&&(e.alternate=null,TE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[uo],delete t[hu],delete t[Zg],delete t[PL],delete t[TL])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function NE(e){return e.tag===5||e.tag===3||e.tag===4}function Ab(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||NE(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function hy(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=zf));else if(r!==4&&(e=e.child,e!==null))for(hy(e,t,n),e=e.sibling;e!==null;)hy(e,t,n),e=e.sibling}function my(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(my(e,t,n),e=e.sibling;e!==null;)my(e,t,n),e=e.sibling}var rn=null,Ar=!1;function hs(e,t,n){for(n=n.child;n!==null;)LE(e,t,n),n=n.sibling}function LE(e,t,n){if(mo&&typeof mo.onCommitFiberUnmount=="function")try{mo.onCommitFiberUnmount(kp,n)}catch{}switch(n.tag){case 5:fn||Ga(n,t);case 6:var r=rn,o=Ar;rn=null,hs(e,t,n),rn=r,Ar=o,rn!==null&&(Ar?(e=rn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):rn.removeChild(n.stateNode));break;case 18:rn!==null&&(Ar?(e=rn,n=n.stateNode,e.nodeType===8?Dm(e.parentNode,n):e.nodeType===1&&Dm(e,n),cu(e)):Dm(rn,n.stateNode));break;case 4:r=rn,o=Ar,rn=n.stateNode.containerInfo,Ar=!0,hs(e,t,n),rn=r,Ar=o;break;case 0:case 11:case 14:case 15:if(!fn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&fy(n,t,i),o=o.next}while(o!==r)}hs(e,t,n);break;case 1:if(!fn&&(Ga(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Mt(n,t,a)}hs(e,t,n);break;case 21:hs(e,t,n);break;case 22:n.mode&1?(fn=(r=fn)||n.memoizedState!==null,hs(e,t,n),fn=r):hs(e,t,n);break;default:hs(e,t,n)}}function Ob(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new WL),t.forEach(function(r){var o=tD.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Dr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:rn=a.stateNode,Ar=!1;break e;case 3:rn=a.stateNode.containerInfo,Ar=!0;break e;case 4:rn=a.stateNode.containerInfo,Ar=!0;break e}a=a.return}if(rn===null)throw Error(re(160));LE(s,i,o),rn=null,Ar=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(c){Mt(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)DE(t,e),t=t.sibling}function DE(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Dr(t,e),ro(e),r&4){try{Zc(3,e,e.return),Mp(3,e)}catch(g){Mt(e,e.return,g)}try{Zc(5,e,e.return)}catch(g){Mt(e,e.return,g)}}break;case 1:Dr(t,e),ro(e),r&512&&n!==null&&Ga(n,n.return);break;case 5:if(Dr(t,e),ro(e),r&512&&n!==null&&Ga(n,n.return),e.flags&32){var o=e.stateNode;try{su(o,"")}catch(g){Mt(e,e.return,g)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&e2(o,s),Ig(a,i);var c=Ig(a,s);for(i=0;i<l.length;i+=2){var d=l[i],f=l[i+1];d==="style"?s2(o,f):d==="dangerouslySetInnerHTML"?r2(o,f):d==="children"?su(o,f):Rv(o,d,f,c)}switch(a){case"input":_g(o,s);break;case"textarea":t2(o,s);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var h=s.value;h!=null?nl(o,!!s.multiple,h,!1):p!==!!s.multiple&&(s.defaultValue!=null?nl(o,!!s.multiple,s.defaultValue,!0):nl(o,!!s.multiple,s.multiple?[]:"",!1))}o[hu]=s}catch(g){Mt(e,e.return,g)}}break;case 6:if(Dr(t,e),ro(e),r&4){if(e.stateNode===null)throw Error(re(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(g){Mt(e,e.return,g)}}break;case 3:if(Dr(t,e),ro(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{cu(t.containerInfo)}catch(g){Mt(e,e.return,g)}break;case 4:Dr(t,e),ro(e);break;case 13:Dr(t,e),ro(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(i0=Ot())),r&4&&Ob(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(fn=(c=fn)||d,Dr(t,e),fn=c):Dr(t,e),ro(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(ve=e,d=e.child;d!==null;){for(f=ve=d;ve!==null;){switch(p=ve,h=p.child,p.tag){case 0:case 11:case 14:case 15:Zc(4,p,p.return);break;case 1:Ga(p,p.return);var m=p.stateNode;if(typeof m.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Mt(r,n,g)}}break;case 5:Ga(p,p.return);break;case 22:if(p.memoizedState!==null){Fb(f);continue}}h!==null?(h.return=p,ve=h):Fb(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{o=f.stateNode,c?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=f.stateNode,l=f.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=o2("display",i))}catch(g){Mt(e,e.return,g)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(g){Mt(e,e.return,g)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Dr(t,e),ro(e),r&4&&Ob(e);break;case 21:break;default:Dr(t,e),ro(e)}}function ro(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(NE(n)){var r=n;break e}n=n.return}throw Error(re(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(su(o,""),r.flags&=-33);var s=Ab(e);my(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,a=Ab(e);hy(e,a,i);break;default:throw Error(re(161))}}catch(l){Mt(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qL(e,t,n){ve=e,ME(e)}function ME(e,t,n){for(var r=(e.mode&1)!==0;ve!==null;){var o=ve,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||Kd;if(!i){var a=o.alternate,l=a!==null&&a.memoizedState!==null||fn;a=Kd;var c=fn;if(Kd=i,(fn=l)&&!c)for(ve=o;ve!==null;)i=ve,l=i.child,i.tag===22&&i.memoizedState!==null?Ib(o):l!==null?(l.return=i,ve=l):Ib(o);for(;s!==null;)ve=s,ME(s),s=s.sibling;ve=o,Kd=a,fn=c}$b(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,ve=s):$b(e)}}function $b(e){for(;ve!==null;){var t=ve;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:fn||Mp(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!fn)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Mr(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&wb(t,s,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}wb(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&cu(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(re(163))}fn||t.flags&512&&py(t)}catch(p){Mt(t,t.return,p)}}if(t===e){ve=null;break}if(n=t.sibling,n!==null){n.return=t.return,ve=n;break}ve=t.return}}function Fb(e){for(;ve!==null;){var t=ve;if(t===e){ve=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ve=n;break}ve=t.return}}function Ib(e){for(;ve!==null;){var t=ve;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Mp(4,t)}catch(l){Mt(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){Mt(t,o,l)}}var s=t.return;try{py(t)}catch(l){Mt(t,s,l)}break;case 5:var i=t.return;try{py(t)}catch(l){Mt(t,i,l)}}}catch(l){Mt(t,t.return,l)}if(t===e){ve=null;break}var a=t.sibling;if(a!==null){a.return=t.return,ve=a;break}ve=t.return}}var YL=Math.ceil,Xf=Yo.ReactCurrentDispatcher,o0=Yo.ReactCurrentOwner,mr=Yo.ReactCurrentBatchConfig,Ye=0,Xt=null,Vt=null,sn=0,Yn=0,Qa=ei(0),Wt=0,bu=null,Yi=0,_p=0,s0=0,eu=null,Dn=null,i0=0,_l=1/0,To=null,Jf=!1,gy=null,Bs=null,qd=!1,As=null,Zf=0,tu=0,yy=null,xf=-1,bf=0;function En(){return Ye&6?Ot():xf!==-1?xf:xf=Ot()}function Us(e){return e.mode&1?Ye&2&&sn!==0?sn&-sn:LL.transition!==null?(bf===0&&(bf=y2()),bf):(e=Ze,e!==0||(e=window.event,e=e===void 0?16:E2(e.type)),e):1}function Vr(e,t,n,r){if(50<tu)throw tu=0,yy=null,Error(re(185));Iu(e,n,r),(!(Ye&2)||e!==Xt)&&(e===Xt&&(!(Ye&2)&&(_p|=n),Wt===4&&Cs(e,sn)),On(e,r),n===1&&Ye===0&&!(t.mode&1)&&(_l=Ot()+500,Np&&ti()))}function On(e,t){var n=e.callbackNode;L4(e,t);var r=Of(e,e===Xt?sn:0);if(r===0)n!==null&&Yx(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Yx(n),t===1)e.tag===0?NL(zb.bind(null,e)):U2(zb.bind(null,e)),jL(function(){!(Ye&6)&&ti()}),n=null;else{switch(v2(r)){case 1:n=Dv;break;case 4:n=m2;break;case 16:n=Af;break;case 536870912:n=g2;break;default:n=Af}n=VE(n,_E.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function _E(e,t){if(xf=-1,bf=0,Ye&6)throw Error(re(327));var n=e.callbackNode;if(al()&&e.callbackNode!==n)return null;var r=Of(e,e===Xt?sn:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ep(e,r);else{t=r;var o=Ye;Ye|=2;var s=OE();(Xt!==e||sn!==t)&&(To=null,_l=Ot()+500,Vi(e,t));do try{XL();break}catch(a){AE(e,a)}while(!0);Wv(),Xf.current=s,Ye=o,Vt!==null?t=0:(Xt=null,sn=0,t=Wt)}if(t!==0){if(t===2&&(o=Hg(e),o!==0&&(r=o,t=vy(e,o))),t===1)throw n=bu,Vi(e,0),Cs(e,r),On(e,Ot()),n;if(t===6)Cs(e,r);else{if(o=e.current.alternate,!(r&30)&&!GL(o)&&(t=ep(e,r),t===2&&(s=Hg(e),s!==0&&(r=s,t=vy(e,s))),t===1))throw n=bu,Vi(e,0),Cs(e,r),On(e,Ot()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(re(345));case 2:wi(e,Dn,To);break;case 3:if(Cs(e,r),(r&130023424)===r&&(t=i0+500-Ot(),10<t)){if(Of(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){En(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Jg(wi.bind(null,e,Dn,To),t);break}wi(e,Dn,To);break;case 4:if(Cs(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-zr(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}if(r=o,r=Ot()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*YL(r/1960))-r,10<r){e.timeoutHandle=Jg(wi.bind(null,e,Dn,To),r);break}wi(e,Dn,To);break;case 5:wi(e,Dn,To);break;default:throw Error(re(329))}}}return On(e,Ot()),e.callbackNode===n?_E.bind(null,e):null}function vy(e,t){var n=eu;return e.current.memoizedState.isDehydrated&&(Vi(e,t).flags|=256),e=ep(e,t),e!==2&&(t=Dn,Dn=n,t!==null&&xy(t)),e}function xy(e){Dn===null?Dn=e:Dn.push.apply(Dn,e)}function GL(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!Hr(s(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Cs(e,t){for(t&=~s0,t&=~_p,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-zr(t),r=1<<n;e[n]=-1,t&=~r}}function zb(e){if(Ye&6)throw Error(re(327));al();var t=Of(e,0);if(!(t&1))return On(e,Ot()),null;var n=ep(e,t);if(e.tag!==0&&n===2){var r=Hg(e);r!==0&&(t=r,n=vy(e,r))}if(n===1)throw n=bu,Vi(e,0),Cs(e,t),On(e,Ot()),n;if(n===6)throw Error(re(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wi(e,Dn,To),On(e,Ot()),null}function a0(e,t){var n=Ye;Ye|=1;try{return e(t)}finally{Ye=n,Ye===0&&(_l=Ot()+500,Np&&ti())}}function Gi(e){As!==null&&As.tag===0&&!(Ye&6)&&al();var t=Ye;Ye|=1;var n=mr.transition,r=Ze;try{if(mr.transition=null,Ze=1,e)return e()}finally{Ze=r,mr.transition=n,Ye=t,!(Ye&6)&&ti()}}function l0(){Yn=Qa.current,yt(Qa)}function Vi(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,kL(n)),Vt!==null)for(n=Vt.return;n!==null;){var r=n;switch(Bv(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Vf();break;case 3:Dl(),yt(_n),yt(gn),Xv();break;case 5:Qv(r);break;case 4:Dl();break;case 13:yt(Rt);break;case 19:yt(Rt);break;case 10:Kv(r.type._context);break;case 22:case 23:l0()}n=n.return}if(Xt=e,Vt=e=Hs(e.current,null),sn=Yn=t,Wt=0,bu=null,s0=_p=Yi=0,Dn=eu=null,Pi!==null){for(t=0;t<Pi.length;t++)if(n=Pi[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var i=s.next;s.next=o,r.next=i}n.pending=r}Pi=null}return e}function AE(e,t){do{var n=Vt;try{if(Wv(),gf.current=Qf,Gf){for(var r=Pt.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Gf=!1}if(qi=0,Qt=Bt=Pt=null,Jc=!1,yu=0,o0.current=null,n===null||n.return===null){Wt=1,bu=t,Vt=null;break}e:{var s=e,i=n.return,a=n,l=t;if(t=sn,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=Rb(i);if(h!==null){h.flags&=-257,Pb(h,i,a,s,t),h.mode&1&&jb(s,c,t),t=h,l=c;var m=t.updateQueue;if(m===null){var g=new Set;g.add(l),t.updateQueue=g}else m.add(l);break e}else{if(!(t&1)){jb(s,c,t),c0();break e}l=Error(re(426))}}else if(Ct&&a.mode&1){var w=Rb(i);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Pb(w,i,a,s,t),Uv(Ml(l,a));break e}}s=l=Ml(l,a),Wt!==4&&(Wt=2),eu===null?eu=[s]:eu.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var y=vE(s,l,t);bb(s,y);break e;case 1:a=l;var x=s.type,b=s.stateNode;if(!(s.flags&128)&&(typeof x.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Bs===null||!Bs.has(b)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=xE(s,a,t);bb(s,S);break e}}s=s.return}while(s!==null)}FE(n)}catch(k){t=k,Vt===n&&n!==null&&(Vt=n=n.return);continue}break}while(!0)}function OE(){var e=Xf.current;return Xf.current=Qf,e===null?Qf:e}function c0(){(Wt===0||Wt===3||Wt===2)&&(Wt=4),Xt===null||!(Yi&268435455)&&!(_p&268435455)||Cs(Xt,sn)}function ep(e,t){var n=Ye;Ye|=2;var r=OE();(Xt!==e||sn!==t)&&(To=null,Vi(e,t));do try{QL();break}catch(o){AE(e,o)}while(!0);if(Wv(),Ye=n,Xf.current=r,Vt!==null)throw Error(re(261));return Xt=null,sn=0,Wt}function QL(){for(;Vt!==null;)$E(Vt)}function XL(){for(;Vt!==null&&!S4();)$E(Vt)}function $E(e){var t=zE(e.alternate,e,Yn);e.memoizedProps=e.pendingProps,t===null?FE(e):Vt=t,o0.current=null}function FE(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=HL(n,t),n!==null){n.flags&=32767,Vt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Wt=6,Vt=null;return}}else if(n=UL(n,t,Yn),n!==null){Vt=n;return}if(t=t.sibling,t!==null){Vt=t;return}Vt=t=e}while(t!==null);Wt===0&&(Wt=5)}function wi(e,t,n){var r=Ze,o=mr.transition;try{mr.transition=null,Ze=1,JL(e,t,n,r)}finally{mr.transition=o,Ze=r}return null}function JL(e,t,n,r){do al();while(As!==null);if(Ye&6)throw Error(re(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(re(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(D4(e,s),e===Xt&&(Vt=Xt=null,sn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||qd||(qd=!0,VE(Af,function(){return al(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=mr.transition,mr.transition=null;var i=Ze;Ze=1;var a=Ye;Ye|=4,o0.current=null,KL(e,n),DE(n,e),vL(Qg),$f=!!Gg,Qg=Gg=null,e.current=n,qL(n),C4(),Ye=a,Ze=i,mr.transition=s}else e.current=n;if(qd&&(qd=!1,As=e,Zf=o),s=e.pendingLanes,s===0&&(Bs=null),j4(n.stateNode),On(e,Ot()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Jf)throw Jf=!1,e=gy,gy=null,e;return Zf&1&&e.tag!==0&&al(),s=e.pendingLanes,s&1?e===yy?tu++:(tu=0,yy=e):tu=0,ti(),null}function al(){if(As!==null){var e=v2(Zf),t=mr.transition,n=Ze;try{if(mr.transition=null,Ze=16>e?16:e,As===null)var r=!1;else{if(e=As,As=null,Zf=0,Ye&6)throw Error(re(331));var o=Ye;for(Ye|=4,ve=e.current;ve!==null;){var s=ve,i=s.child;if(ve.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(ve=c;ve!==null;){var d=ve;switch(d.tag){case 0:case 11:case 15:Zc(8,d,s)}var f=d.child;if(f!==null)f.return=d,ve=f;else for(;ve!==null;){d=ve;var p=d.sibling,h=d.return;if(TE(d),d===c){ve=null;break}if(p!==null){p.return=h,ve=p;break}ve=h}}}var m=s.alternate;if(m!==null){var g=m.child;if(g!==null){m.child=null;do{var w=g.sibling;g.sibling=null,g=w}while(g!==null)}}ve=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,ve=i;else e:for(;ve!==null;){if(s=ve,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Zc(9,s,s.return)}var y=s.sibling;if(y!==null){y.return=s.return,ve=y;break e}ve=s.return}}var x=e.current;for(ve=x;ve!==null;){i=ve;var b=i.child;if(i.subtreeFlags&2064&&b!==null)b.return=i,ve=b;else e:for(i=x;ve!==null;){if(a=ve,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Mp(9,a)}}catch(k){Mt(a,a.return,k)}if(a===i){ve=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,ve=S;break e}ve=a.return}}if(Ye=o,ti(),mo&&typeof mo.onPostCommitFiberRoot=="function")try{mo.onPostCommitFiberRoot(kp,e)}catch{}r=!0}return r}finally{Ze=n,mr.transition=t}}return!1}function Vb(e,t,n){t=Ml(n,t),t=vE(e,t,1),e=Vs(e,t,1),t=En(),e!==null&&(Iu(e,1,t),On(e,t))}function Mt(e,t,n){if(e.tag===3)Vb(e,e,n);else for(;t!==null;){if(t.tag===3){Vb(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Bs===null||!Bs.has(r))){e=Ml(n,e),e=xE(t,e,1),t=Vs(t,e,1),e=En(),t!==null&&(Iu(t,1,e),On(t,e));break}}t=t.return}}function ZL(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=En(),e.pingedLanes|=e.suspendedLanes&n,Xt===e&&(sn&n)===n&&(Wt===4||Wt===3&&(sn&130023424)===sn&&500>Ot()-i0?Vi(e,0):s0|=n),On(e,t)}function IE(e,t){t===0&&(e.mode&1?(t=$d,$d<<=1,!($d&130023424)&&($d=4194304)):t=1);var n=En();e=Vo(e,t),e!==null&&(Iu(e,t,n),On(e,n))}function eD(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),IE(e,n)}function tD(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(re(314))}r!==null&&r.delete(t),IE(e,n)}var zE;zE=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_n.current)Mn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Mn=!1,BL(e,t,n);Mn=!!(e.flags&131072)}else Mn=!1,Ct&&t.flags&1048576&&H2(t,Hf,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;vf(e,t),e=t.pendingProps;var o=Tl(t,gn.current);il(t,n),o=Zv(null,t,r,e,o,n);var s=e0();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,An(r)?(s=!0,Bf(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Yv(t),o.updater=Dp,t.stateNode=o,o._reactInternals=t,sy(t,r,e,n),t=ly(null,t,r,!0,s,n)):(t.tag=0,Ct&&s&&Vv(t),Cn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(vf(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=rD(r),e=Mr(r,e),o){case 0:t=ay(null,t,r,e,n);break e;case 1:t=Lb(null,t,r,e,n);break e;case 11:t=Tb(null,t,r,e,n);break e;case 14:t=Nb(null,t,r,Mr(r.type,e),n);break e}throw Error(re(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mr(r,o),ay(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mr(r,o),Lb(e,t,r,o,n);case 3:e:{if(CE(t),e===null)throw Error(re(387));r=t.pendingProps,s=t.memoizedState,o=s.element,Q2(e,t),qf(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Ml(Error(re(423)),t),t=Db(e,t,r,n,o);break e}else if(r!==o){o=Ml(Error(re(424)),t),t=Db(e,t,r,n,o);break e}else for(Qn=zs(t.stateNode.containerInfo.firstChild),er=t,Ct=!0,$r=null,n=Y2(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Nl(),r===o){t=Bo(e,t,n);break e}Cn(e,t,r,n)}t=t.child}return t;case 5:return X2(t),e===null&&ny(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,Xg(r,o)?i=null:s!==null&&Xg(r,s)&&(t.flags|=32),SE(e,t),Cn(e,t,i,n),t.child;case 6:return e===null&&ny(t),null;case 13:return EE(e,t,n);case 4:return Gv(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ll(t,null,r,n):Cn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mr(r,o),Tb(e,t,r,o,n);case 7:return Cn(e,t,t.pendingProps,n),t.child;case 8:return Cn(e,t,t.pendingProps.children,n),t.child;case 12:return Cn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,ct(Wf,r._currentValue),r._currentValue=i,s!==null)if(Hr(s.value,i)){if(s.children===o.children&&!_n.current){t=Bo(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){i=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=Ao(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),ry(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(re(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),ry(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}Cn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,il(t,n),o=yr(o),r=r(o),t.flags|=1,Cn(e,t,r,n),t.child;case 14:return r=t.type,o=Mr(r,t.pendingProps),o=Mr(r.type,o),Nb(e,t,r,o,n);case 15:return bE(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mr(r,o),vf(e,t),t.tag=1,An(r)?(e=!0,Bf(t)):e=!1,il(t,n),yE(t,r,o),sy(t,r,o,n),ly(null,t,r,!0,e,n);case 19:return kE(e,t,n);case 22:return wE(e,t,n)}throw Error(re(156,t.tag))};function VE(e,t){return h2(e,t)}function nD(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pr(e,t,n,r){return new nD(e,t,n,r)}function u0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function rD(e){if(typeof e=="function")return u0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Tv)return 11;if(e===Nv)return 14}return 2}function Hs(e,t){var n=e.alternate;return n===null?(n=pr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function wf(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")u0(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case za:return Bi(n.children,o,s,t);case Pv:i=8,o|=8;break;case Tg:return e=pr(12,n,t,o|2),e.elementType=Tg,e.lanes=s,e;case Ng:return e=pr(13,n,t,o),e.elementType=Ng,e.lanes=s,e;case Lg:return e=pr(19,n,t,o),e.elementType=Lg,e.lanes=s,e;case XC:return Ap(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case GC:i=10;break e;case QC:i=9;break e;case Tv:i=11;break e;case Nv:i=14;break e;case xs:i=16,r=null;break e}throw Error(re(130,e==null?e:typeof e,""))}return t=pr(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Bi(e,t,n,r){return e=pr(7,e,r,t),e.lanes=n,e}function Ap(e,t,n,r){return e=pr(22,e,r,t),e.elementType=XC,e.lanes=n,e.stateNode={isHidden:!1},e}function zm(e,t,n){return e=pr(6,e,null,t),e.lanes=n,e}function Vm(e,t,n){return t=pr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oD(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=wm(0),this.expirationTimes=wm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wm(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function d0(e,t,n,r,o,s,i,a,l){return e=new oD(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=pr(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yv(s),e}function sD(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ia,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function BE(e){if(!e)return qs;e=e._reactInternals;e:{if(ra(e)!==e||e.tag!==1)throw Error(re(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(An(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(re(171))}if(e.tag===1){var n=e.type;if(An(n))return B2(e,n,t)}return t}function UE(e,t,n,r,o,s,i,a,l){return e=d0(n,r,!0,e,o,s,i,a,l),e.context=BE(null),n=e.current,r=En(),o=Us(n),s=Ao(r,o),s.callback=t??null,Vs(n,s,o),e.current.lanes=o,Iu(e,o,r),On(e,r),e}function Op(e,t,n,r){var o=t.current,s=En(),i=Us(o);return n=BE(n),t.context===null?t.context=n:t.pendingContext=n,t=Ao(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Vs(o,t,i),e!==null&&(Vr(e,o,i,s),mf(e,o,i)),i}function tp(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Bb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function f0(e,t){Bb(e,t),(e=e.alternate)&&Bb(e,t)}function iD(){return null}var HE=typeof reportError=="function"?reportError:function(e){console.error(e)};function p0(e){this._internalRoot=e}$p.prototype.render=p0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(re(409));Op(e,t,null,null)};$p.prototype.unmount=p0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gi(function(){Op(null,e,null,null)}),t[zo]=null}};function $p(e){this._internalRoot=e}$p.prototype.unstable_scheduleHydration=function(e){if(e){var t=w2();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ss.length&&t!==0&&t<Ss[n].priority;n++);Ss.splice(n,0,e),n===0&&C2(e)}};function h0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Fp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ub(){}function aD(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var c=tp(i);s.call(c)}}var i=UE(t,r,e,0,null,!1,!1,"",Ub);return e._reactRootContainer=i,e[zo]=i.current,fu(e.nodeType===8?e.parentNode:e),Gi(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var c=tp(l);a.call(c)}}var l=d0(e,0,!1,null,null,!1,!1,"",Ub);return e._reactRootContainer=l,e[zo]=l.current,fu(e.nodeType===8?e.parentNode:e),Gi(function(){Op(t,l,n,r)}),l}function Ip(e,t,n,r,o){var s=n._reactRootContainer;if(s){var i=s;if(typeof o=="function"){var a=o;o=function(){var l=tp(i);a.call(l)}}Op(t,i,e,o)}else i=aD(n,t,e,o,r);return tp(i)}x2=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=$c(t.pendingLanes);n!==0&&(Mv(t,n|1),On(t,Ot()),!(Ye&6)&&(_l=Ot()+500,ti()))}break;case 13:Gi(function(){var r=Vo(e,1);if(r!==null){var o=En();Vr(r,e,1,o)}}),f0(e,1)}};_v=function(e){if(e.tag===13){var t=Vo(e,134217728);if(t!==null){var n=En();Vr(t,e,134217728,n)}f0(e,134217728)}};b2=function(e){if(e.tag===13){var t=Us(e),n=Vo(e,t);if(n!==null){var r=En();Vr(n,e,t,r)}f0(e,t)}};w2=function(){return Ze};S2=function(e,t){var n=Ze;try{return Ze=e,t()}finally{Ze=n}};Vg=function(e,t,n){switch(t){case"input":if(_g(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Tp(r);if(!o)throw Error(re(90));ZC(r),_g(r,o)}}}break;case"textarea":t2(e,n);break;case"select":t=n.value,t!=null&&nl(e,!!n.multiple,t,!1)}};l2=a0;c2=Gi;var lD={usingClientEntryPoint:!1,Events:[Vu,Ha,Tp,i2,a2,a0]},Cc={findFiberByHostInstance:Ri,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},cD={bundleType:Cc.bundleType,version:Cc.version,rendererPackageName:Cc.rendererPackageName,rendererConfig:Cc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Yo.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=f2(e),e===null?null:e.stateNode},findFiberByHostInstance:Cc.findFiberByHostInstance||iD,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yd.isDisabled&&Yd.supportsFiber)try{kp=Yd.inject(cD),mo=Yd}catch{}}or.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lD;or.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h0(t))throw Error(re(200));return sD(e,t,null,n)};or.createRoot=function(e,t){if(!h0(e))throw Error(re(299));var n=!1,r="",o=HE;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=d0(e,1,!1,null,null,n,!1,r,o),e[zo]=t.current,fu(e.nodeType===8?e.parentNode:e),new p0(t)};or.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(re(188)):(e=Object.keys(e).join(","),Error(re(268,e)));return e=f2(t),e=e===null?null:e.stateNode,e};or.flushSync=function(e){return Gi(e)};or.hydrate=function(e,t,n){if(!Fp(t))throw Error(re(200));return Ip(null,e,t,!0,n)};or.hydrateRoot=function(e,t,n){if(!h0(e))throw Error(re(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=HE;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=UE(t,null,e,1,n??null,o,!1,s,i),e[zo]=t.current,fu(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new $p(t)};or.render=function(e,t,n){if(!Fp(t))throw Error(re(200));return Ip(null,e,t,!1,n)};or.unmountComponentAtNode=function(e){if(!Fp(e))throw Error(re(40));return e._reactRootContainer?(Gi(function(){Ip(null,null,e,!1,function(){e._reactRootContainer=null,e[zo]=null})}),!0):!1};or.unstable_batchedUpdates=a0;or.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Fp(n))throw Error(re(200));if(e==null||e._reactInternals===void 0)throw Error(re(38));return Ip(e,t,n,!1,r)};or.version="18.3.1-next-f1338f8080-20240426";function WE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(WE)}catch(e){console.error(e)}}WE(),WC.exports=or;var Yl=WC.exports;const Xa=Js(Yl),uD=DC({__proto__:null,default:Xa},[Yl]);var Hb=Yl;Rg.createRoot=Hb.createRoot,Rg.hydrateRoot=Hb.hydrateRoot;var fo=function(){return fo=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},fo.apply(this,arguments)};function KE(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function dD(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Sf="right-scroll-bar-position",Cf="width-before-scroll-bar",fD="with-scroll-bars-hidden",pD="--removed-body-scroll-bar-size";function Bm(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function hD(e,t){var n=v.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var mD=typeof window<"u"?v.useLayoutEffect:v.useEffect,Wb=new WeakMap;function gD(e,t){var n=hD(null,function(r){return e.forEach(function(o){return Bm(o,r)})});return mD(function(){var r=Wb.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Bm(a,null)}),s.forEach(function(a){o.has(a)||Bm(a,i)})}Wb.set(n,e)},[e]),n}function yD(e){return e}function vD(e,t){t===void 0&&(t=yD);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var d=i;i=[],d.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(d){i.push(d),c()},filter:function(d){return i=i.filter(d),n}}}};return o}function xD(e){e===void 0&&(e={});var t=vD(null);return t.options=fo({async:!0,ssr:!1},e),t}var qE=function(e){var t=e.sideCar,n=KE(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,fo({},n))};qE.isSideCarExport=!0;function bD(e,t){return e.useMedium(t),qE}var YE=xD(),Um=function(){},zp=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:Um,onWheelCapture:Um,onTouchMoveCapture:Um}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noIsolation,m=e.inert,g=e.allowPinchZoom,w=e.as,y=w===void 0?"div":w,x=e.gapMode,b=KE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,k=gD([n,t]),E=fo(fo({},b),o);return v.createElement(v.Fragment,null,d&&v.createElement(S,{sideCar:YE,removeScrollBar:c,shards:f,noIsolation:h,inert:m,setCallbacks:s,allowPinchZoom:!!g,lockRef:n,gapMode:x}),i?v.cloneElement(v.Children.only(a),fo(fo({},E),{ref:k})):v.createElement(y,fo({},E,{className:l,ref:k}),a))});zp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};zp.classNames={fullWidth:Cf,zeroRight:Sf};var wD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function SD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=wD();return t&&e.setAttribute("nonce",t),e}function CD(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ED(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var kD=function(){var e=0,t=null;return{add:function(n){e==0&&(t=SD())&&(CD(t,n),ED(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},jD=function(){var e=kD();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},GE=function(){var e=jD(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},RD={left:0,top:0,right:0,gap:0},Hm=function(e){return parseInt(e||"",10)||0},PD=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Hm(n),Hm(r),Hm(o)]},TD=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return RD;var t=PD(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ND=GE(),ll="data-scroll-locked",LD=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
41
+ .`.concat(fD,` {
42
+ overflow: hidden `).concat(r,`;
43
+ padding-right: `).concat(a,"px ").concat(r,`;
44
+ }
45
+ body[`).concat(ll,`] {
46
+ overflow: hidden `).concat(r,`;
47
+ overscroll-behavior: contain;
48
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
49
+ padding-left: `.concat(o,`px;
50
+ padding-top: `).concat(s,`px;
51
+ padding-right: `).concat(i,`px;
52
+ margin-left:0;
53
+ margin-top:0;
54
+ margin-right: `).concat(a,"px ").concat(r,`;
55
+ `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
56
+ }
57
+
58
+ .`).concat(Sf,` {
59
+ right: `).concat(a,"px ").concat(r,`;
60
+ }
61
+
62
+ .`).concat(Cf,` {
63
+ margin-right: `).concat(a,"px ").concat(r,`;
64
+ }
65
+
66
+ .`).concat(Sf," .").concat(Sf,` {
67
+ right: 0 `).concat(r,`;
68
+ }
69
+
70
+ .`).concat(Cf," .").concat(Cf,` {
71
+ margin-right: 0 `).concat(r,`;
72
+ }
73
+
74
+ body[`).concat(ll,`] {
75
+ `).concat(pD,": ").concat(a,`px;
76
+ }
77
+ `)},Kb=function(){var e=parseInt(document.body.getAttribute(ll)||"0",10);return isFinite(e)?e:0},DD=function(){v.useEffect(function(){return document.body.setAttribute(ll,(Kb()+1).toString()),function(){var e=Kb()-1;e<=0?document.body.removeAttribute(ll):document.body.setAttribute(ll,e.toString())}},[])},MD=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;DD();var s=v.useMemo(function(){return TD(o)},[o]);return v.createElement(ND,{styles:LD(s,!t,o,n?"":"!important")})},by=!1;if(typeof window<"u")try{var Gd=Object.defineProperty({},"passive",{get:function(){return by=!0,!0}});window.addEventListener("test",Gd,Gd),window.removeEventListener("test",Gd,Gd)}catch{by=!1}var ka=by?{passive:!1}:!1,_D=function(e){return e.tagName==="TEXTAREA"},QE=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!_D(e)&&n[t]==="visible")},AD=function(e){return QE(e,"overflowY")},OD=function(e){return QE(e,"overflowX")},qb=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=XE(e,r);if(o){var s=JE(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},$D=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},FD=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},XE=function(e,t){return e==="v"?AD(t):OD(t)},JE=function(e,t){return e==="v"?$D(t):FD(t)},ID=function(e,t){return e==="h"&&t==="rtl"?-1:1},zD=function(e,t,n,r,o){var s=ID(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),c=!1,d=i>0,f=0,p=0;do{var h=JE(e,a),m=h[0],g=h[1],w=h[2],y=g-w-s*m;(m||y)&&XE(e,a)&&(f+=y,p+=m),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(Math.abs(f)<1||!o)||!d&&(Math.abs(p)<1||!o))&&(c=!0),c},Qd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Yb=function(e){return[e.deltaX,e.deltaY]},Gb=function(e){return e&&"current"in e?e.current:e},VD=function(e,t){return e[0]===t[0]&&e[1]===t[1]},BD=function(e){return`
78
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
79
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
80
+ `)},UD=0,ja=[];function HD(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(UD++)[0],s=v.useState(GE)[0],i=v.useRef(e);v.useEffect(function(){i.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=dD([e.lockRef.current],(e.shards||[]).map(Gb),!0).filter(Boolean);return g.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=v.useCallback(function(g,w){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var y=Qd(g),x=n.current,b="deltaX"in g?g.deltaX:x[0]-y[0],S="deltaY"in g?g.deltaY:x[1]-y[1],k,E=g.target,j=Math.abs(b)>Math.abs(S)?"h":"v";if("touches"in g&&j==="h"&&E.type==="range")return!1;var C=qb(j,E);if(!C)return!0;if(C?k=j:(k=j==="v"?"h":"v",C=qb(j,E)),!C)return!1;if(!r.current&&"changedTouches"in g&&(b||S)&&(r.current=k),!k)return!0;var T=r.current||k;return zD(T,w,g,T==="h"?b:S,!0)},[]),l=v.useCallback(function(g){var w=g;if(!(!ja.length||ja[ja.length-1]!==s)){var y="deltaY"in w?Yb(w):Qd(w),x=t.current.filter(function(k){return k.name===w.type&&(k.target===w.target||w.target===k.shadowParent)&&VD(k.delta,y)})[0];if(x&&x.should){w.cancelable&&w.preventDefault();return}if(!x){var b=(i.current.shards||[]).map(Gb).filter(Boolean).filter(function(k){return k.contains(w.target)}),S=b.length>0?a(w,b[0]):!i.current.noIsolation;S&&w.cancelable&&w.preventDefault()}}},[]),c=v.useCallback(function(g,w,y,x){var b={name:g,delta:w,target:y,should:x,shadowParent:WD(y)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(S){return S!==b})},1)},[]),d=v.useCallback(function(g){n.current=Qd(g),r.current=void 0},[]),f=v.useCallback(function(g){c(g.type,Yb(g),g.target,a(g,e.lockRef.current))},[]),p=v.useCallback(function(g){c(g.type,Qd(g),g.target,a(g,e.lockRef.current))},[]);v.useEffect(function(){return ja.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,ka),document.addEventListener("touchmove",l,ka),document.addEventListener("touchstart",d,ka),function(){ja=ja.filter(function(g){return g!==s}),document.removeEventListener("wheel",l,ka),document.removeEventListener("touchmove",l,ka),document.removeEventListener("touchstart",d,ka)}},[]);var h=e.removeScrollBar,m=e.inert;return v.createElement(v.Fragment,null,m?v.createElement(s,{styles:BD(o)}):null,h?v.createElement(MD,{gapMode:e.gapMode}):null)}function WD(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const KD=bD(YE,HD);var Vp=v.forwardRef(function(e,t){return v.createElement(zp,fo({},e,{ref:t,sideCar:KD}))});Vp.classNames=zp.classNames;function an(e){return Object.keys(e)}function Wm(e){return e&&typeof e=="object"&&!Array.isArray(e)}function m0(e,t){const n={...e},r=t;return Wm(e)&&Wm(t)&&Object.keys(t).forEach(o=>{Wm(r[o])&&o in e?n[o]=m0(n[o],r[o]):n[o]=r[o]}),n}function qD(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function YD(e){var t;return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:(t=e.match(/^calc\((.*?)\)$/))==null?void 0:t[1].split("*")[0].trim()}function wy(e){const t=YD(e);return typeof t=="number"?t:typeof t=="string"?t.includes("calc")||t.includes("var")?t:t.includes("px")?Number(t.replace("px","")):t.includes("rem")?Number(t.replace("rem",""))*16:t.includes("em")?Number(t.replace("em",""))*16:Number(t):NaN}function Km(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function ZE(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r==="0")return`0${e}`;if(typeof r=="number"){const o=`${r/16}${e}`;return t?Km(o):o}if(typeof r=="string"){if(r===""||r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map(s=>n(s)).join(",");if(r.includes(" "))return r.split(" ").map(s=>n(s)).join(" ");if(r.includes(e))return t?Km(r):r;const o=r.replace("px","");if(!Number.isNaN(Number(o))){const s=`${Number(o)/16}${e}`;return t?Km(s):s}}return r}return n}const H=ZE("rem",{shouldScale:!0}),np=ZE("em");function Bp(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function ek(e){return typeof e=="number"?!0:typeof e=="string"?e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!==""?!0:/[0-9]/.test(e.trim().replace("-","")[0]):!1}function Go(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==v.Fragment:!1}function ir(e){const t=v.createContext(null);return[({children:o,value:s})=>u.jsx(t.Provider,{value:s,children:o}),()=>{const o=v.useContext(t);if(o===null)throw new Error(e);return o}]}function Uu(e=null){const t=v.createContext(e);return[({children:o,value:s})=>u.jsx(t.Provider,{value:s,children:o}),()=>v.useContext(t)]}function Qb(e,t){return n=>{if(typeof n!="string"||n.trim().length===0)throw new Error(t);return`${e}-${n}`}}function Al(e,t){let n=e;for(;(n=n.parentElement)&&!n.matches(t););return n}function GD(e,t,n){for(let r=e-1;r>=0;r-=1)if(!t[r].disabled)return r;if(n){for(let r=t.length-1;r>-1;r-=1)if(!t[r].disabled)return r}return e}function QD(e,t,n){for(let r=e+1;r<t.length;r+=1)if(!t[r].disabled)return r;if(n){for(let r=0;r<t.length;r+=1)if(!t[r].disabled)return r}return e}function XD(e,t,n){return Al(e,n)===Al(t,n)}function tk({parentSelector:e,siblingSelector:t,onKeyDown:n,loop:r=!0,activateOnFocus:o=!1,dir:s="rtl",orientation:i}){return a=>{var m;n==null||n(a);const l=Array.from(((m=Al(a.currentTarget,e))==null?void 0:m.querySelectorAll(t))||[]).filter(g=>XD(a.currentTarget,g,e)),c=l.findIndex(g=>a.currentTarget===g),d=QD(c,l,r),f=GD(c,l,r),p=s==="rtl"?f:d,h=s==="rtl"?d:f;switch(a.key){case"ArrowRight":{i==="horizontal"&&(a.stopPropagation(),a.preventDefault(),l[p].focus(),o&&l[p].click());break}case"ArrowLeft":{i==="horizontal"&&(a.stopPropagation(),a.preventDefault(),l[h].focus(),o&&l[h].click());break}case"ArrowUp":{i==="vertical"&&(a.stopPropagation(),a.preventDefault(),l[f].focus(),o&&l[f].click());break}case"ArrowDown":{i==="vertical"&&(a.stopPropagation(),a.preventDefault(),l[d].focus(),o&&l[d].click());break}case"Home":{a.stopPropagation(),a.preventDefault(),!l[0].disabled&&l[0].focus();break}case"End":{a.stopPropagation(),a.preventDefault();const g=l.length-1;!l[g].disabled&&l[g].focus();break}}}}const JD={app:100,modal:200,popover:300,overlay:400,max:9999};function Bn(e){return JD[e]}const ZD=()=>{};function e3(e,t={active:!0}){return typeof e!="function"||!t.active?t.onKeyDown||ZD:n=>{var r;n.key==="Escape"&&(e(n),(r=t.onTrigger)==null||r.call(t))}}function Le(e,t="size",n=!0){if(e!==void 0)return ek(e)?n?H(e):e:`var(--${t}-${e})`}function Wr(e){return Le(e,"mantine-spacing")}function wt(e){return e===void 0?"var(--mantine-radius-default)":Le(e,"mantine-radius")}function Jt(e){return Le(e,"mantine-font-size")}function t3(e){return Le(e,"mantine-line-height",!1)}function g0(e){if(e)return Le(e,"mantine-shadow",!1)}function Xn(e,t){return n=>{e==null||e(n),t==null||t(n)}}function y0(e,t){return e in t.breakpoints?wy(t.breakpoints[e]):wy(e)}function Xb(e,t){const n=e.map(r=>({value:r,px:y0(r,t)}));return n.sort((r,o)=>r.px-o.px),n}function n3(e,t,n){var r;return n?Array.from(((r=Al(n,t))==null?void 0:r.querySelectorAll(e))||[]).findIndex(o=>o===n):null}function r3(){const[e,t]=v.useState(-1);return[e,{setHovered:t,resetHovered:()=>t(-1)}]}function Ic(e,t,n){return t===void 0&&n===void 0?e:t!==void 0&&n===void 0?Math.max(e,t):Math.min(t===void 0&&n!==void 0?e:Math.max(e,t),n)}function cl(){return`mantine-${Math.random().toString(36).slice(2,11)}`}function Ei(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Hu(e,t){const n=Ei(e),r=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),v.useCallback((...o)=>{window.clearTimeout(r.current),r.current=window.setTimeout(()=>n(...o),t)},[n,t])}const Jb=["mousedown","touchstart"];function nk(e,t,n){const r=v.useRef();return v.useEffect(()=>{const o=s=>{const{target:i}=s??{};if(Array.isArray(n)){const a=(i==null?void 0:i.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(i)&&i.tagName!=="HTML";n.every(c=>!!c&&!s.composedPath().includes(c))&&!a&&e()}else r.current&&!r.current.contains(i)&&e()};return(t||Jb).forEach(s=>document.addEventListener(s,o)),()=>{(t||Jb).forEach(s=>document.removeEventListener(s,o))}},[r,e,n]),r}function o3({timeout:e=2e3}={}){const[t,n]=v.useState(null),[r,o]=v.useState(!1),[s,i]=v.useState(null),a=d=>{window.clearTimeout(s),i(window.setTimeout(()=>o(!1),e)),o(d)};return{copy:d=>{"clipboard"in navigator?navigator.clipboard.writeText(d).then(()=>a(!0)).catch(f=>n(f)):n(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{o(!1),n(null),window.clearTimeout(s)},error:t,copied:r}}function s3(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function i3(e,t){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function rk(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,o]=v.useState(n?t:i3(e)),s=v.useRef();return v.useEffect(()=>{if("matchMedia"in window)return s.current=window.matchMedia(e),o(s.current.matches),s3(s.current,i=>o(i.matches))},[e]),r}const ni=typeof document<"u"?v.useLayoutEffect:v.useEffect;function ri(e){ni(()=>{typeof e=="string"&&e.trim().length>0&&(document.title=e.trim())},[e])}function xr(e,t){const n=v.useRef(!1);v.useEffect(()=>()=>{n.current=!1},[]),v.useEffect(()=>{if(n.current)return e();n.current=!0},t)}function ok({opened:e,shouldReturnFocus:t=!0}){const n=v.useRef(),r=()=>{var o;n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&((o=n.current)==null||o.focus({preventScroll:!0}))};return xr(()=>{let o=-1;const s=i=>{i.key==="Tab"&&window.clearTimeout(o)};return document.addEventListener("keydown",s),e?n.current=document.activeElement:t&&(o=window.setTimeout(r,10)),()=>{window.clearTimeout(o),document.removeEventListener("keydown",s)}},[e,t]),r}function a3(e,t="body > :not(script)"){const n=cl(),r=Array.from(document.querySelectorAll(t)).map(o=>{var l;if((l=o==null?void 0:o.shadowRoot)!=null&&l.contains(e)||o.contains(e))return;const s=o.getAttribute("aria-hidden"),i=o.getAttribute("data-hidden"),a=o.getAttribute("data-focus-id");return o.setAttribute("data-focus-id",n),s===null||s==="false"?o.setAttribute("aria-hidden","true"):!i&&!a&&o.setAttribute("data-hidden",s),{node:o,ariaHidden:i||null}});return()=>{r.forEach(o=>{!o||n!==o.node.getAttribute("data-focus-id")||(o.ariaHidden===null?o.node.removeAttribute("aria-hidden"):o.node.setAttribute("aria-hidden",o.ariaHidden),o.node.removeAttribute("data-focus-id"),o.node.removeAttribute("data-hidden"))})}}const l3=/input|select|textarea|button|object/,sk="a, input, select, textarea, button, object, [tabindex]";function c3(e){return e.style.display==="none"}function u3(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let n=e;for(;n&&!(n===document.body||n.nodeType===11);){if(c3(n))return!1;n=n.parentNode}return!0}function ik(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function Sy(e){const t=e.nodeName.toLowerCase(),n=!Number.isNaN(ik(e));return(l3.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&u3(e)}function ak(e){const t=ik(e);return(Number.isNaN(t)||t>=0)&&Sy(e)}function d3(e){return Array.from(e.querySelectorAll(sk)).filter(ak)}function f3(e,t){const n=d3(e);if(!n.length){t.preventDefault();return}const r=n[t.shiftKey?0:n.length-1],o=e.getRootNode();let s=r===o.activeElement||e===o.activeElement;const i=o.activeElement;if(i.tagName==="INPUT"&&i.getAttribute("type")==="radio"&&(s=n.filter(d=>d.getAttribute("type")==="radio"&&d.getAttribute("name")===i.getAttribute("name")).includes(r)),!s)return;t.preventDefault();const l=n[t.shiftKey?n.length-1:0];l&&l.focus()}function p3(e=!0){const t=v.useRef(),n=v.useRef(null),r=s=>{let i=s.querySelector("[data-autofocus]");if(!i){const a=Array.from(s.querySelectorAll(sk));i=a.find(ak)||a.find(Sy)||null,!i&&Sy(s)&&(i=s)}i&&i.focus({preventScroll:!0})},o=v.useCallback(s=>{if(e){if(s===null){n.current&&(n.current(),n.current=null);return}n.current=a3(s),t.current!==s&&(s?(setTimeout(()=>{s.getRootNode()&&r(s)}),t.current=s):t.current=null)}},[e]);return v.useEffect(()=>{if(!e)return;t.current&&setTimeout(()=>r(t.current));const s=i=>{i.key==="Tab"&&t.current&&f3(t.current,i)};return document.addEventListener("keydown",s),()=>{document.removeEventListener("keydown",s),n.current&&n.current()}},[e]),o}const h3=e=>(e+1)%1e6;function m3(){const[,e]=v.useReducer(h3,0);return e}const g3=Ht.useId||(()=>{});function y3(){const e=g3();return e?`mantine-${e.replace(/:/g,"")}`:""}function Un(e){const t=y3(),[n,r]=v.useState(t);return ni(()=>{r(cl())},[]),typeof e=="string"?e:typeof window>"u"?t:n}function Ys(e,t,n){v.useEffect(()=>(window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)),[e,t])}function v3(e,t="use-local-storage"){try{return JSON.stringify(e)}catch{throw new Error(`@mantine/hooks ${t}: Failed to serialize the value`)}}function x3(e){try{return e&&JSON.parse(e)}catch{return e}}function b3(e){return{getItem:o=>{try{return window[e].getItem(o)}catch{return console.warn("use-local-storage: Failed to get value from storage, localStorage is blocked"),null}},setItem:(o,s)=>{try{window[e].setItem(o,s)}catch{console.warn("use-local-storage: Failed to set value to storage, localStorage is blocked")}},removeItem:o=>{try{window[e].removeItem(o)}catch{console.warn("use-local-storage: Failed to remove value from storage, localStorage is blocked")}}}}function w3(e,t){const n="mantine-local-storage",{getItem:r,setItem:o,removeItem:s}=b3(e);return function({key:a,defaultValue:l,getInitialValueInEffect:c=!0,deserialize:d=x3,serialize:f=p=>v3(p,t)}){const p=v.useCallback(y=>{let x;try{x=typeof window>"u"||!(e in window)||window[e]===null||!!y}catch{x=!0}if(x)return l;const b=r(a);return b!==null?d(b):l},[a,l]),[h,m]=v.useState(p(c)),g=v.useCallback(y=>{y instanceof Function?m(x=>{const b=y(x);return o(a,f(b)),window.dispatchEvent(new CustomEvent(n,{detail:{key:a,value:y(x)}})),b}):(o(a,f(y)),window.dispatchEvent(new CustomEvent(n,{detail:{key:a,value:y}})),m(y))},[a]),w=v.useCallback(()=>{s(a),window.dispatchEvent(new CustomEvent(n,{detail:{key:a,value:l}}))},[]);return Ys("storage",y=>{y.storageArea===window[e]&&y.key===a&&m(d(y.newValue??void 0))}),Ys(n,y=>{y.detail.key===a&&m(y.detail.value)}),v.useEffect(()=>{l!==void 0&&h===void 0&&g(l)},[l,h,g]),v.useEffect(()=>{const y=p();y!==void 0&&g(y)},[]),[h===void 0?l:h,g,w]}}function ul(e){return w3("localStorage","use-local-storage")(e)}function Up(e,t){typeof e=="function"?e(t):typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function lk(...e){return t=>{e.forEach(n=>Up(n,t))}}function Lt(...e){return v.useCallback(lk(...e),e)}function Zt({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){const[o,s]=v.useState(t!==void 0?t:n),i=(a,...l)=>{s(a),r==null||r(a,...l)};return e!==void 0?[e,r,!0]:[o,i,!1]}function ms(e,t){const n=t-e+1;return Array.from({length:n},(r,o)=>o+e)}const Xd="dots";function S3({total:e,siblings:t=1,boundaries:n=1,page:r,initialPage:o=1,onChange:s}){const i=Math.max(Math.trunc(e),0),[a,l]=Zt({value:r,onChange:s,defaultValue:o,finalValue:o}),c=g=>{g<=0?l(1):g>i?l(i):l(g)},d=()=>c(a+1),f=()=>c(a-1),p=()=>c(1),h=()=>c(i);return{range:v.useMemo(()=>{if(t*2+3+n*2>=i)return ms(1,i);const w=Math.max(a-t,n),y=Math.min(a+t,i-n),x=w>n+2,b=y<i-(n+1);if(!x&&b){const S=t*2+n+2;return[...ms(1,S),Xd,...ms(i-(n-1),i)]}if(x&&!b){const S=n+1+2*t;return[...ms(1,n),Xd,...ms(i-S,i)]}return[...ms(1,n),Xd,...ms(w,y),Xd,...ms(i-n+1,i)]},[i,t,a]),active:a,setPage:c,next:d,previous:f,first:p,last:h}}function Hp(e,t){return rk("(prefers-reduced-motion: reduce)",e,t)}const C3={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function E3(e){const t=v.useRef(0),n=v.useRef(null),[r,o]=v.useState(C3),s=v.useMemo(()=>typeof window<"u"?new ResizeObserver(i=>{const a=i[0];a&&(cancelAnimationFrame(t.current),t.current=requestAnimationFrame(()=>{n.current&&o(a.contentRect)}))}):null,[]);return v.useEffect(()=>(n.current&&(s==null||s.observe(n.current,e)),()=>{s==null||s.disconnect(),t.current&&cancelAnimationFrame(t.current)}),[n.current]),[n,r]}const Zb={passive:!0};function k3(){const[e,t]=v.useState({width:0,height:0}),n=v.useCallback(()=>{t({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return Ys("resize",n,Zb),Ys("orientationchange",n,Zb),v.useEffect(n,[]),e}function qm(){return typeof window<"u"?{x:window.pageXOffset,y:window.pageYOffset}:{x:0,y:0}}function j3({x:e,y:t}){if(typeof window<"u"){const n={behavior:"smooth"};typeof e=="number"&&(n.left=e),typeof t=="number"&&(n.top=t),window.scrollTo(n)}}function R3(){const[e,t]=v.useState({x:0,y:0});return Ys("scroll",()=>t(qm())),Ys("resize",()=>t(qm())),v.useEffect(()=>{t(qm())},[]),[e,j3]}function zn(e=!1,t){const{onOpen:n,onClose:r}={},[o,s]=v.useState(e),i=v.useCallback(()=>{s(c=>c||(n==null||n(),!0))},[n]),a=v.useCallback(()=>{s(c=>c&&(r==null||r(),!1))},[r]),l=v.useCallback(()=>{o?a():i()},[a,i,o]);return[o,{open:i,close:a,toggle:l}]}function ew(e,t,n={autoInvoke:!1}){const r=v.useRef(null),o=v.useCallback((...i)=>{r.current||(r.current=window.setTimeout(()=>{e(i),r.current=null},t))},[t]),s=v.useCallback(()=>{r.current&&(window.clearTimeout(r.current),r.current=null)},[]);return v.useEffect(()=>(n.autoInvoke&&o(),s),[s,o]),{start:o,clear:s}}function P3(e){const t=v.useRef();return v.useEffect(()=>{t.current=e},[e]),t.current}function T3(e,t){window.dispatchEvent(new CustomEvent(e,{detail:t}))}function N3(e){function t(r){const o=Object.keys(r).reduce((s,i)=>(s[`${e}:${i}`]=a=>r[i](a.detail),s),{});ni(()=>(Object.keys(o).forEach(s=>{window.removeEventListener(s,o[s]),window.addEventListener(s,o[s])}),()=>Object.keys(o).forEach(s=>{window.removeEventListener(s,o[s])})),[o])}function n(r){return(...o)=>T3(`${e}:${String(r)}`,o[0])}return[t,n]}function ck(e){const t=new Map;return(...n)=>{const r=JSON.stringify(n);if(t.has(r))return t.get(r);const o=e(...n);return t.set(r,o),o}}function uk(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=uk(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function De(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=uk(e))&&(r&&(r+=" "),r+=t);return r}const L3={};function D3(e){const t={};return e.forEach(n=>{Object.entries(n).forEach(([r,o])=>{t[r]?t[r]=De(t[r],o):t[r]=o})}),t}function Wp({theme:e,classNames:t,props:n,stylesCtx:r}){const s=(Array.isArray(t)?t:[t]).map(i=>typeof i=="function"?i(e,n,r):i||L3);return D3(s)}function rp({theme:e,styles:t,props:n,stylesCtx:r}){return(Array.isArray(t)?t:[t]).reduce((s,i)=>typeof i=="function"?{...s,...i(e,n,r)}:{...s,...i},{})}const dk=v.createContext(null);function oi(){const e=v.useContext(dk);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function M3(){return oi().cssVariablesResolver}function _3(){return oi().classNamesPrefix}function v0(){return oi().getStyleNonce}function A3(){return oi().withStaticClasses}function O3(){return oi().headless}function $3(){var e;return(e=oi().stylesTransform)==null?void 0:e.sx}function F3(){var e;return(e=oi().stylesTransform)==null?void 0:e.styles}function I3(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function z3(e){let t=e.replace("#","");if(t.length===3){const i=t.split("");t=[i[0],i[0],i[1],i[1],i[2],i[2]].join("")}if(t.length===8){const i=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:i}}const n=parseInt(t,16),r=n>>16&255,o=n>>8&255,s=n&255;return{r,g:o,b:s,a:1}}function V3(e){const[t,n,r,o]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:o||1}}function B3(e){const t=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=e.match(t);if(!n)return{r:0,g:0,b:0,a:1};const r=parseInt(n[1],10),o=parseInt(n[2],10)/100,s=parseInt(n[3],10)/100,i=n[5]?parseFloat(n[5]):void 0,a=(1-Math.abs(2*s-1))*o,l=r/60,c=a*(1-Math.abs(l%2-1)),d=s-a/2;let f,p,h;return l>=0&&l<1?(f=a,p=c,h=0):l>=1&&l<2?(f=c,p=a,h=0):l>=2&&l<3?(f=0,p=a,h=c):l>=3&&l<4?(f=0,p=c,h=a):l>=4&&l<5?(f=c,p=0,h=a):(f=a,p=0,h=c),{r:Math.round((f+d)*255),g:Math.round((p+d)*255),b:Math.round((h+d)*255),a:i||1}}function x0(e){return I3(e)?z3(e):e.startsWith("rgb")?V3(e):e.startsWith("hsl")?B3(e):{r:0,g:0,b:0,a:1}}function Jd(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${t*100}%)`;const{r:n,g:r,b:o,a:s}=x0(e),i=1-t,a=l=>Math.round(l*i);return`rgba(${a(n)}, ${a(r)}, ${a(o)}, ${s})`}function wu(e,t){return typeof e.primaryShade=="number"?e.primaryShade:t==="dark"?e.primaryShade.dark:e.primaryShade.light}function Ym(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function U3(e){const t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function H3(e){if(e.startsWith("oklch("))return(U3(e)||0)/100;const{r:t,g:n,b:r}=x0(e),o=t/255,s=n/255,i=r/255,a=Ym(o),l=Ym(s),c=Ym(i);return .2126*a+.7152*l+.0722*c}function Ec(e,t=.179){return e.startsWith("var(")?!1:H3(e)>t}function Yr({color:e,theme:t,colorScheme:n}){if(typeof e!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e==="bright")return{color:e,value:n==="dark"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Ec(n==="dark"?t.white:t.black,t.luminanceThreshold),variable:"--mantine-color-bright"};if(e==="dimmed")return{color:e,value:n==="dark"?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Ec(n==="dark"?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:"--mantine-color-dimmed"};if(e==="white"||e==="black")return{color:e,value:e==="white"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Ec(e==="white"?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};const[r,o]=e.split("."),s=o?Number(o):void 0,i=r in t.colors;if(i){const a=s!==void 0?t.colors[r][s]:t.colors[r][wu(t,n||"light")];return{color:r,value:a,shade:s,isThemeColor:i,isLight:Ec(a,t.luminanceThreshold),variable:o?`--mantine-color-${r}-${s}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:i,isLight:Ec(e,t.luminanceThreshold),shade:s,variable:void 0}}function vt(e,t){const n=Yr({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function Cy(e,t){const n={from:(e==null?void 0:e.from)||t.defaultGradient.from,to:(e==null?void 0:e.to)||t.defaultGradient.to,deg:(e==null?void 0:e.deg)||t.defaultGradient.deg||0},r=vt(n.from,t),o=vt(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${o} 100%)`}function so(e,t){if(typeof e!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(")){const s=(1-t)*100;return`color-mix(in srgb, ${e}, transparent ${s}%)`}if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(")",` / ${t})`);const{r:n,g:r,b:o}=x0(e);return`rgba(${n}, ${r}, ${o}, ${t})`}const Ra=so,W3=({color:e,theme:t,variant:n,gradient:r,autoContrast:o})=>{const s=Yr({color:e,theme:t}),i=typeof o=="boolean"?o:t.autoContrast;if(n==="filled"){const a=i&&s.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return s.isThemeColor?s.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:a,border:`${H(1)} solid transparent`}:{background:`var(--mantine-color-${s.color}-${s.shade})`,hover:`var(--mantine-color-${s.color}-${s.shade===9?8:s.shade+1})`,color:a,border:`${H(1)} solid transparent`}:{background:e,hover:Jd(e,.1),color:a,border:`${H(1)} solid transparent`}}if(n==="light"){if(s.isThemeColor){if(s.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${H(1)} solid transparent`};const a=t.colors[s.color][s.shade];return{background:so(a,.1),hover:so(a,.12),color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${H(1)} solid transparent`}}return{background:so(e,.1),hover:so(e,.12),color:e,border:`${H(1)} solid transparent`}}if(n==="outline")return s.isThemeColor?s.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${H(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:so(t.colors[s.color][s.shade],.05),color:`var(--mantine-color-${s.color}-${s.shade})`,border:`${H(1)} solid var(--mantine-color-${s.color}-${s.shade})`}:{background:"transparent",hover:so(e,.05),color:e,border:`${H(1)} solid ${e}`};if(n==="subtle"){if(s.isThemeColor){if(s.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${H(1)} solid transparent`};const a=t.colors[s.color][s.shade];return{background:"transparent",hover:so(a,.12),color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${H(1)} solid transparent`}}return{background:"transparent",hover:so(e,.12),color:e,border:`${H(1)} solid transparent`}}return n==="transparent"?s.isThemeColor?s.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${H(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${H(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${H(1)} solid transparent`}:n==="white"?s.isThemeColor?s.shade===void 0?{background:"var(--mantine-color-white)",hover:Jd(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${H(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Jd(t.white,.01),color:`var(--mantine-color-${s.color}-${s.shade})`,border:`${H(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Jd(t.white,.01),color:e,border:`${H(1)} solid transparent`}:n==="gradient"?{background:Cy(r,t),hover:Cy(r,t),color:"var(--mantine-color-white)",border:"none"}:n==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${H(1)} solid var(--mantine-color-default-border)`}:{}},K3={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},tw="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",b0={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:K3,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:W3,autoContrast:!1,luminanceThreshold:.3,fontFamily:tw,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:tw,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:H(34),lineHeight:"1.3"},h2:{fontSize:H(26),lineHeight:"1.35"},h3:{fontSize:H(22),lineHeight:"1.4"},h4:{fontSize:H(18),lineHeight:"1.45"},h5:{fontSize:H(16),lineHeight:"1.5"},h6:{fontSize:H(14),lineHeight:"1.5"}}},fontSizes:{xs:H(12),sm:H(14),md:H(16),lg:H(18),xl:H(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:H(2),sm:H(4),md:H(8),lg:H(16),xl:H(32)},spacing:{xs:H(10),sm:H(12),md:H(16),lg:H(20),xl:H(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${H(1)} ${H(3)} rgba(0, 0, 0, 0.05), 0 ${H(1)} ${H(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${H(1)} ${H(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${H(10)} ${H(15)} ${H(-5)}, rgba(0, 0, 0, 0.04) 0 ${H(7)} ${H(7)} ${H(-5)}`,md:`0 ${H(1)} ${H(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${H(20)} ${H(25)} ${H(-5)}, rgba(0, 0, 0, 0.04) 0 ${H(10)} ${H(10)} ${H(-5)}`,lg:`0 ${H(1)} ${H(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${H(28)} ${H(23)} ${H(-7)}, rgba(0, 0, 0, 0.04) 0 ${H(12)} ${H(12)} ${H(-7)}`,xl:`0 ${H(1)} ${H(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${H(36)} ${H(28)} ${H(-7)}, rgba(0, 0, 0, 0.04) 0 ${H(17)} ${H(17)} ${H(-7)}`},other:{},components:{}};function nw(e){return e==="auto"||e==="dark"||e==="light"}function q3({key:e="mantine-color-scheme-value"}={}){let t;return{get:n=>{if(typeof window>"u")return n;try{const r=window.localStorage.getItem(e);return nw(r)?r:n}catch{return n}},set:n=>{try{window.localStorage.setItem(e,n)}catch(r){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",r)}},subscribe:n=>{t=r=>{r.storageArea===window.localStorage&&r.key===e&&nw(r.newValue)&&n(r.newValue)},window.addEventListener("storage",t)},unsubscribe:()=>{window.removeEventListener("storage",t)},clear:()=>{window.localStorage.removeItem(e)}}}const Y3="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",rw="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function Gm(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function ow(e){if(!(e.primaryColor in e.colors))throw new Error(Y3);if(typeof e.primaryShade=="object"&&(!Gm(e.primaryShade.dark)||!Gm(e.primaryShade.light)))throw new Error(rw);if(typeof e.primaryShade=="number"&&!Gm(e.primaryShade))throw new Error(rw)}function G3(e,t){var r;if(!t)return ow(e),e;const n=m0(e,t);return t.fontFamily&&!((r=t.headings)!=null&&r.fontFamily)&&(n.headings.fontFamily=t.fontFamily),ow(n),n}const w0=v.createContext(null),Q3=()=>v.useContext(w0)||b0;function en(){const e=v.useContext(w0);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function fk({theme:e,children:t,inherit:n=!0}){const r=Q3(),o=v.useMemo(()=>G3(n?r:b0,e),[e,r,n]);return u.jsx(w0.Provider,{value:o,children:t})}fk.displayName="@mantine/core/MantineThemeProvider";function X3(){const e=en(),t=v0(),n=an(e.breakpoints).reduce((r,o)=>{const s=e.breakpoints[o].includes("px"),i=wy(e.breakpoints[o]),a=s?`${i-.1}px`:np(i-.1),l=s?`${i}px`:np(i);return`${r}@media (max-width: ${a}) {.mantine-visible-from-${o} {display: none !important;}}@media (min-width: ${l}) {.mantine-hidden-from-${o} {display: none !important;}}`},"");return u.jsx("style",{"data-mantine-styles":"classes",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:n}})}function Qm(e){return Object.entries(e).map(([t,n])=>`${t}: ${n};`).join("")}function kc(e,t){return(Array.isArray(e)?e:[e]).reduce((r,o)=>`${o}{${r}}`,t)}function J3(e,t){const n=Qm(e.variables),r=n?kc(t,n):"",o=Qm(e.dark),s=Qm(e.light),i=o?kc(t===":host"?`${t}([data-mantine-color-scheme="dark"])`:`${t}[data-mantine-color-scheme="dark"]`,o):"",a=s?kc(t===":host"?`${t}([data-mantine-color-scheme="light"])`:`${t}[data-mantine-color-scheme="light"]`,s):"";return`${r}${i}${a}`}function oa({color:e,theme:t,autoContrast:n}){return(typeof n=="boolean"?n:t.autoContrast)&&Yr({color:e||t.primaryColor,theme:t}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function sw(e,t){return oa({color:e.colors[e.primaryColor][wu(e,t)],theme:e,autoContrast:null})}function Zd({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:o=!0}){if(!e.colors[t])return{};if(n==="light"){const a=wu(e,"light"),l={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:Ra(e.colors[t][a],.1),[`--mantine-color-${r}-light-hover`]:Ra(e.colors[t][a],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-outline-hover`]:Ra(e.colors[t][a],.05)};return o?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...l}:l}const s=wu(e,"dark"),i={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${s})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${s===9?8:s+1})`,[`--mantine-color-${r}-light`]:Ra(e.colors[t][Math.max(0,s-2)],.15),[`--mantine-color-${r}-light-hover`]:Ra(e.colors[t][Math.max(0,s-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(s-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(s-4,0)})`,[`--mantine-color-${r}-outline-hover`]:Ra(e.colors[t][Math.max(s-4,0)],.05)};return o?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...i}:i}function Z3(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function Pa(e,t,n){an(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}const pk=e=>{const t=wu(e,"light"),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:H(e.defaultRadius),r={variables:{"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-color-scheme":"light dark","--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-primary-color-contrast":sw(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)"},dark:{"--mantine-primary-color-contrast":sw(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)"}};Pa(r.variables,e.breakpoints,"breakpoint"),Pa(r.variables,e.spacing,"spacing"),Pa(r.variables,e.fontSizes,"font-size"),Pa(r.variables,e.lineHeights,"line-height"),Pa(r.variables,e.shadows,"shadow"),Pa(r.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((s,i)=>{r.variables[`--mantine-primary-color-${i}`]=`var(--mantine-color-${e.primaryColor}-${i})`}),an(e.colors).forEach(s=>{const i=e.colors[s];if(Z3(i)){Object.assign(r.light,Zd({theme:e,name:i.name,color:i.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,Zd({theme:e,name:i.name,color:i.dark,colorScheme:"dark",withColorValues:!0}));return}i.forEach((a,l)=>{r.variables[`--mantine-color-${s}-${l}`]=a}),Object.assign(r.light,Zd({theme:e,color:s,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,Zd({theme:e,color:s,colorScheme:"dark",withColorValues:!1}))});const o=e.headings.sizes;return an(o).forEach(s=>{r.variables[`--mantine-${s}-font-size`]=o[s].fontSize,r.variables[`--mantine-${s}-line-height`]=o[s].lineHeight,r.variables[`--mantine-${s}-font-weight`]=o[s].fontWeight||e.headings.fontWeight}),r};function eM({theme:e,generator:t}){const n=pk(e),r=t==null?void 0:t(e);return r?m0(n,r):n}const Xm=pk(b0);function tM(e){const t={variables:{},light:{},dark:{}};return an(e.variables).forEach(n=>{Xm.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),an(e.light).forEach(n=>{Xm.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),an(e.dark).forEach(n=>{Xm.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function nM(e){return`
81
+ ${e}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }
82
+ ${e}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }
83
+ `}function hk({cssVariablesSelector:e,deduplicateCssVariables:t}){const n=en(),r=v0(),o=M3(),s=eM({theme:n,generator:o}),i=e===":root"&&t,a=i?tM(s):s,l=J3(a,e);return l?u.jsx("style",{"data-mantine-styles":!0,nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:`${l}${i?"":nM(e)}`}}):null}hk.displayName="@mantine/CssVariables";function rM(){const e=console.error;console.error=(...t)=>{t.length>1&&typeof t[0]=="string"&&t[0].toLowerCase().includes("extra attributes from the server")&&typeof t[1]=="string"&&t[1].toLowerCase().includes("data-mantine-color-scheme")||e(...t)}}function Ta(e,t){var r;const n=e!=="auto"?e:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";(r=t())==null||r.setAttribute("data-mantine-color-scheme",n)}function oM({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){const o=v.useRef(),[s,i]=v.useState(()=>e.get(t)),a=r||s,l=v.useCallback(d=>{r||(Ta(d,n),i(d),e.set(d))},[e.set,a,r]),c=v.useCallback(()=>{i(t),Ta(t,n),e.clear()},[e.clear,t]);return v.useEffect(()=>(e.subscribe(l),e.unsubscribe),[e.subscribe,e.unsubscribe]),ni(()=>{Ta(e.get(t),n)},[]),v.useEffect(()=>{var f;if(r)return Ta(r,n),()=>{};r===void 0&&Ta(s,n),o.current=window.matchMedia("(prefers-color-scheme: dark)");const d=p=>{s==="auto"&&Ta(p.matches?"dark":"light",n)};return(f=o.current)==null||f.addEventListener("change",d),()=>{var p;return(p=o.current)==null?void 0:p.removeEventListener("change",d)}},[s,r]),{colorScheme:a,setColorScheme:l,clearColorScheme:c}}function sM({respectReducedMotion:e,getRootElement:t}){ni(()=>{var n;e&&((n=t())==null||n.setAttribute("data-respect-reduced-motion","true"))},[e])}rM();function mk({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:o=!0,deduplicateCssVariables:s=!0,withCssVariables:i=!0,cssVariablesSelector:a=":root",classNamesPrefix:l="mantine",colorSchemeManager:c=q3(),defaultColorScheme:d="light",getRootElement:f=()=>document.documentElement,cssVariablesResolver:p,forceColorScheme:h,stylesTransform:m}){const{colorScheme:g,setColorScheme:w,clearColorScheme:y}=oM({defaultColorScheme:d,forceColorScheme:h,manager:c,getRootElement:f});return sM({respectReducedMotion:(e==null?void 0:e.respectReducedMotion)||!1,getRootElement:f}),u.jsx(dk.Provider,{value:{colorScheme:g,setColorScheme:w,clearColorScheme:y,getRootElement:f,classNamesPrefix:l,getStyleNonce:n,cssVariablesResolver:p,cssVariablesSelector:a,withStaticClasses:r,stylesTransform:m},children:u.jsxs(fk,{theme:e,children:[i&&u.jsx(hk,{cssVariablesSelector:a,deduplicateCssVariables:s}),o&&u.jsx(X3,{}),t]})})}mk.displayName="@mantine/core/MantineProvider";function Qo({classNames:e,styles:t,props:n,stylesCtx:r}){const o=en();return{resolvedClassNames:Wp({theme:o,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:rp({theme:o,styles:t,props:n,stylesCtx:r||void 0})}}const iM={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function aM({theme:e,options:t,unstyled:n}){return De((t==null?void 0:t.focusable)&&!n&&(e.focusClassName||iM[e.focusRing]),(t==null?void 0:t.active)&&!n&&e.activeClassName)}function lM({selector:e,stylesCtx:t,options:n,props:r,theme:o}){return Wp({theme:o,classNames:n==null?void 0:n.classNames,props:(n==null?void 0:n.props)||r,stylesCtx:t})[e]}function iw({selector:e,stylesCtx:t,theme:n,classNames:r,props:o}){return Wp({theme:n,classNames:r,props:o,stylesCtx:t})[e]}function cM({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function uM({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function dM({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(o=>`${t}-${o}-${n}`)}function fM({themeName:e,theme:t,selector:n,props:r,stylesCtx:o}){return e.map(s=>{var i,a;return(a=Wp({theme:t,classNames:(i=t.components[s])==null?void 0:i.classNames,props:r,stylesCtx:o}))==null?void 0:a[n]})}function pM({options:e,classes:t,selector:n,unstyled:r}){return e!=null&&e.variant&&!r?t[`${n}--${e.variant}`]:void 0}function hM({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:o,classNames:s,classes:i,unstyled:a,className:l,rootSelector:c,props:d,stylesCtx:f,withStaticClasses:p,headless:h,transformedStyles:m}){return De(aM({theme:e,options:t,unstyled:a||h}),fM({theme:e,themeName:n,selector:r,props:d,stylesCtx:f}),pM({options:t,classes:i,selector:r,unstyled:a}),iw({selector:r,stylesCtx:f,theme:e,classNames:s,props:d}),iw({selector:r,stylesCtx:f,theme:e,classNames:m,props:d}),lM({selector:r,stylesCtx:f,options:t,props:d,theme:e}),cM({rootSelector:c,selector:r,className:l}),uM({selector:r,classes:i,unstyled:a||h}),p&&!h&&dM({themeName:n,classNamesPrefix:o,selector:r,withStaticClass:t==null?void 0:t.withStaticClass}),t==null?void 0:t.className)}function mM({theme:e,themeName:t,props:n,stylesCtx:r,selector:o}){return t.map(s=>{var i;return rp({theme:e,styles:(i=e.components[s])==null?void 0:i.styles,props:n,stylesCtx:r})[o]}).reduce((s,i)=>({...s,...i}),{})}function Ey({style:e,theme:t}){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...Ey({style:r,theme:t})}),{}):typeof e=="function"?e(t):e??{}}function gM(e){return e.reduce((t,n)=>(n&&Object.keys(n).forEach(r=>{t[r]={...t[r],...Bp(n[r])}}),t),{})}function yM({vars:e,varsResolver:t,theme:n,props:r,stylesCtx:o,selector:s,themeName:i,headless:a}){var l;return(l=gM([a?{}:t==null?void 0:t(n,r,o),...i.map(c=>{var d,f,p;return(p=(f=(d=n.components)==null?void 0:d[c])==null?void 0:f.vars)==null?void 0:p.call(f,n,r,o)}),e==null?void 0:e(n,r,o)]))==null?void 0:l[s]}function vM({theme:e,themeName:t,selector:n,options:r,props:o,stylesCtx:s,rootSelector:i,styles:a,style:l,vars:c,varsResolver:d,headless:f,withStylesTransform:p}){return{...!p&&mM({theme:e,themeName:t,props:o,stylesCtx:s,selector:n}),...!p&&rp({theme:e,styles:a,props:o,stylesCtx:s})[n],...!p&&rp({theme:e,styles:r==null?void 0:r.styles,props:(r==null?void 0:r.props)||o,stylesCtx:s})[n],...yM({theme:e,props:o,stylesCtx:s,vars:c,varsResolver:d,selector:n,themeName:t,headless:f}),...i===n?Ey({style:l,theme:e}):null,...Ey({style:r==null?void 0:r.style,theme:e})}}function xM({props:e,stylesCtx:t,themeName:n}){var i;const r=en(),o=(i=F3())==null?void 0:i();return{getTransformedStyles:a=>o?[...a.map(c=>o(c,{props:e,theme:r,ctx:t})),...n.map(c=>{var d;return o((d=r.components[c])==null?void 0:d.styles,{props:e,theme:r,ctx:t})})].filter(Boolean):[],withStylesTransform:!!o}}function pe({name:e,classes:t,props:n,stylesCtx:r,className:o,style:s,rootSelector:i="root",unstyled:a,classNames:l,styles:c,vars:d,varsResolver:f}){const p=en(),h=_3(),m=A3(),g=O3(),w=(Array.isArray(e)?e:[e]).filter(b=>b),{withStylesTransform:y,getTransformedStyles:x}=xM({props:n,stylesCtx:r,themeName:w});return(b,S)=>({className:hM({theme:p,options:S,themeName:w,selector:b,classNamesPrefix:h,classNames:l,classes:t,unstyled:a,className:o,rootSelector:i,props:n,stylesCtx:r,withStaticClasses:m,headless:g,transformedStyles:x([S==null?void 0:S.styles,c])}),style:vM({theme:p,themeName:w,selector:b,options:S,props:n,stylesCtx:r,rootSelector:i,styles:c,style:s,vars:d,varsResolver:f,headless:g,withStylesTransform:y})})}function Gl(e,t){return typeof e=="boolean"?e:t.autoContrast}function K(e,t,n){var i;const r=en(),o=(i=r.components[e])==null?void 0:i.defaultProps,s=typeof o=="function"?o(r):o;return{...t,...s,...Bp(n)}}function Jm(e){return an(e).reduce((t,n)=>e[n]!==void 0?`${t}${qD(n)}:${e[n]};`:t,"").trim()}function bM({selector:e,styles:t,media:n,container:r}){const o=t?Jm(t):"",s=Array.isArray(n)?n.map(a=>`@media${a.query}{${e}{${Jm(a.styles)}}}`):[],i=Array.isArray(r)?r.map(a=>`@container ${a.query}{${e}{${Jm(a.styles)}}}`):[];return`${o?`${e}{${o}}`:""}${s.join("")}${i.join("")}`.trim()}function S0(e){const t=v0();return u.jsx("style",{"data-mantine-styles":"inline",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:bM(e)}})}function si(e){const{m:t,mx:n,my:r,mt:o,mb:s,ml:i,mr:a,me:l,ms:c,p:d,px:f,py:p,pt:h,pb:m,pl:g,pr:w,pe:y,ps:x,bd:b,bg:S,c:k,opacity:E,ff:j,fz:C,fw:T,lts:N,ta:_,lh:I,fs:U,tt:O,td:M,w:P,miw:L,maw:R,h:D,mih:$,mah:A,bgsz:B,bgp:G,bgr:ne,bga:Z,pos:oe,top:ae,left:ue,bottom:be,right:fe,inset:_e,display:he,flex:Se,hiddenFrom:le,visibleFrom:Te,lightHidden:et,darkHidden:te,sx:se,...we}=e;return{styleProps:Bp({m:t,mx:n,my:r,mt:o,mb:s,ml:i,mr:a,me:l,ms:c,p:d,px:f,py:p,pt:h,pb:m,pl:g,pr:w,pe:y,ps:x,bd:b,bg:S,c:k,opacity:E,ff:j,fz:C,fw:T,lts:N,ta:_,lh:I,fs:U,tt:O,td:M,w:P,miw:L,maw:R,h:D,mih:$,mah:A,bgsz:B,bgp:G,bgr:ne,bga:Z,pos:oe,top:ae,left:ue,bottom:be,right:fe,inset:_e,display:he,flex:Se,hiddenFrom:le,visibleFrom:Te,lightHidden:et,darkHidden:te,sx:se}),rest:we}}const wM={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"identity",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function C0(e,t){const n=Yr({color:e,theme:t});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function SM(e,t){const n=Yr({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:C0(e,t)}function CM(e,t){if(typeof e=="number")return H(e);if(typeof e=="string"){const[n,r,...o]=e.split(" ").filter(i=>i.trim()!=="");let s=`${H(n)}`;return r&&(s+=` ${r}`),o.length>0&&(s+=` ${C0(o.join(" "),t)}`),s.trim()}return e}const aw={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function EM(e){return typeof e=="string"&&e in aw?aw[e]:e}const kM=["h1","h2","h3","h4","h5","h6"];function jM(e,t){return typeof e=="string"&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&kM.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?H(e):e}function RM(e){return e}const PM=["h1","h2","h3","h4","h5","h6"];function TM(e,t){return typeof e=="string"&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&PM.includes(e)?`var(--mantine-${e}-line-height)`:e}function NM(e){return typeof e=="number"?H(e):e}function LM(e,t){if(typeof e=="number")return H(e);if(typeof e=="string"){const n=e.replace("-","");if(!(n in t.spacing))return H(e);const r=`--mantine-spacing-${n}`;return e.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return e}const Zm={color:C0,textColor:SM,fontSize:jM,spacing:LM,identity:RM,size:NM,lineHeight:TM,fontFamily:EM,border:CM};function lw(e){return e.replace("(min-width: ","").replace("em)","")}function DM({media:e,...t}){const r=Object.keys(e).sort((o,s)=>Number(lw(o))-Number(lw(s))).map(o=>({query:o,styles:e[o]}));return{...t,media:r}}function MM(e){if(typeof e!="object"||e===null)return!1;const t=Object.keys(e);return!(t.length===1&&t[0]==="base")}function _M(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function AM(e){return typeof e=="object"&&e!==null?an(e).filter(t=>t!=="base"):[]}function OM(e,t){return typeof e=="object"&&e!==null&&t in e?e[t]:e}function gk({styleProps:e,data:t,theme:n}){return DM(an(e).reduce((r,o)=>{if(o==="hiddenFrom"||o==="visibleFrom"||o==="sx")return r;const s=t[o],i=Array.isArray(s.property)?s.property:[s.property],a=_M(e[o]);if(!MM(e[o]))return i.forEach(c=>{r.inlineStyles[c]=Zm[s.type](a,n)}),r;r.hasResponsiveStyles=!0;const l=AM(e[o]);return i.forEach(c=>{a&&(r.styles[c]=Zm[s.type](a,n)),l.forEach(d=>{const f=`(min-width: ${n.breakpoints[d]})`;r.media[f]={...r.media[f],[c]:Zm[s.type](OM(e[o],d),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function yk(){return`__m__-${v.useId().replace(/:/g,"")}`}function E0(e,t){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...E0(r,t)}),{}):typeof e=="function"?e(t):e??{}}function vk(e){return e.startsWith("data-")?e:`data-${e}`}function $M(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return r===void 0||r===""||r===!1||r===null||(t[vk(n)]=e[n]),t},{})}function xk(e){return e?typeof e=="string"?{[vk(e)]:!0}:Array.isArray(e)?[...e].reduce((t,n)=>({...t,...xk(n)}),{}):$M(e):null}function ky(e,t){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...ky(r,t)}),{}):typeof e=="function"?e(t):e??{}}function FM({theme:e,style:t,vars:n,styleProps:r}){const o=ky(t,e),s=ky(n,e);return{...o,...s,...r}}const bk=v.forwardRef(({component:e,style:t,__vars:n,className:r,variant:o,mod:s,size:i,hiddenFrom:a,visibleFrom:l,lightHidden:c,darkHidden:d,renderRoot:f,__size:p,...h},m)=>{var C;const g=en(),w=e||"div",{styleProps:y,rest:x}=si(h),b=$3(),S=(C=b==null?void 0:b())==null?void 0:C(y.sx),k=yk(),E=gk({styleProps:y,theme:g,data:wM}),j={ref:m,style:FM({theme:g,style:t,vars:n,styleProps:E.inlineStyles}),className:De(r,S,{[k]:E.hasResponsiveStyles,"mantine-light-hidden":c,"mantine-dark-hidden":d,[`mantine-hidden-from-${a}`]:a,[`mantine-visible-from-${l}`]:l}),"data-variant":o,"data-size":ek(i)?void 0:i||void 0,size:p,...xk(s),...x};return u.jsxs(u.Fragment,{children:[E.hasResponsiveStyles&&u.jsx(S0,{selector:`.${k}`,styles:E.styles,media:E.media}),typeof f=="function"?f(j):u.jsx(w,{...j})]})});bk.displayName="@mantine/core/Box";const Y=bk;function wk(e){return e}function Q(e){const t=v.forwardRef(e);return t.extend=wk,t.withProps=n=>{const r=v.forwardRef((o,s)=>u.jsx(t,{...n,...o,ref:s}));return r.extend=t.extend,r.displayName=`WithProps(${t.displayName})`,r},t}function yn(e){const t=v.forwardRef(e);return t.withProps=n=>{const r=v.forwardRef((o,s)=>u.jsx(t,{...n,...o,ref:s}));return r.extend=t.extend,r.displayName=`WithProps(${t.displayName})`,r},t.extend=wk,t}const IM=v.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function ii(){return v.useContext(IM)}function zM(e){if(!e||typeof e=="string")return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function eg(e){return e!=null&&e.current?e.current.scrollHeight:"auto"}const jc=typeof window<"u"&&window.requestAnimationFrame;function VM({transitionDuration:e,transitionTimingFunction:t="ease",onTransitionEnd:n=()=>{},opened:r}){const o=v.useRef(null),s=0,i={display:"none",height:0,overflow:"hidden"},[a,l]=v.useState(r?{}:i),c=m=>{Yl.flushSync(()=>l(m))},d=m=>{c(g=>({...g,...m}))};function f(m){const g=e||zM(m);return{transition:`height ${g}ms ${t}, opacity ${g}ms ${t}`}}xr(()=>{typeof jc=="function"&&jc(r?()=>{d({willChange:"height",display:"block",overflow:"hidden"}),jc(()=>{const m=eg(o);d({...f(m),height:m})})}:()=>{const m=eg(o);d({...f(m),willChange:"height",height:m}),jc(()=>d({height:s,overflow:"hidden"}))})},[r]);const p=m=>{if(!(m.target!==o.current||m.propertyName!=="height"))if(r){const g=eg(o);g===a.height?c({}):d({height:g}),n()}else a.height===s&&(c(i),n())};function h({style:m={},refKey:g="ref",...w}={}){const y=w[g];return{"aria-hidden":!r,...w,[g]:lk(o,y),onTransitionEnd:p,style:{boxSizing:"border-box",...m,...a}}}return h}const BM={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},Sk=Q((e,t)=>{const{children:n,in:r,transitionDuration:o,transitionTimingFunction:s,style:i,onTransitionEnd:a,animateOpacity:l,...c}=K("Collapse",BM,e),d=en(),f=Hp(),h=(d.respectReducedMotion?f:!1)?0:o,m=VM({opened:r,transitionDuration:h,transitionTimingFunction:s,onTransitionEnd:a});return h===0?r?u.jsx(Y,{...c,children:n}):null:u.jsx(Y,{...m({style:{opacity:r||!l?1:0,transition:l?`opacity ${h}ms ${s}`:"none",...E0(i,d)},ref:t,...c}),children:n})});Sk.displayName="@mantine/core/Collapse";const[UM,wr]=ir("ScrollArea.Root component was not found in tree");function Ol(e,t){const n=Ei(t);ni(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}const HM=v.forwardRef((e,t)=>{const{style:n,...r}=e,o=wr(),[s,i]=v.useState(0),[a,l]=v.useState(0),c=!!(s&&a);return Ol(o.scrollbarX,()=>{var f;const d=((f=o.scrollbarX)==null?void 0:f.offsetHeight)||0;o.onCornerHeightChange(d),l(d)}),Ol(o.scrollbarY,()=>{var f;const d=((f=o.scrollbarY)==null?void 0:f.offsetWidth)||0;o.onCornerWidthChange(d),i(d)}),c?u.jsx("div",{...r,ref:t,style:{...n,width:s,height:a}}):null}),WM=v.forwardRef((e,t)=>{const n=wr(),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?u.jsx(HM,{...e,ref:t}):null}),KM={scrollHideDelay:1e3,type:"hover"},Ck=v.forwardRef((e,t)=>{const n=K("ScrollAreaRoot",KM,e),{type:r,scrollHideDelay:o,scrollbars:s,...i}=n,[a,l]=v.useState(null),[c,d]=v.useState(null),[f,p]=v.useState(null),[h,m]=v.useState(null),[g,w]=v.useState(null),[y,x]=v.useState(0),[b,S]=v.useState(0),[k,E]=v.useState(!1),[j,C]=v.useState(!1),T=Lt(t,N=>l(N));return u.jsx(UM,{value:{type:r,scrollHideDelay:o,scrollArea:a,viewport:c,onViewportChange:d,content:f,onContentChange:p,scrollbarX:h,onScrollbarXChange:m,scrollbarXEnabled:k,onScrollbarXEnabledChange:E,scrollbarY:g,onScrollbarYChange:w,scrollbarYEnabled:j,onScrollbarYEnabledChange:C,onCornerWidthChange:x,onCornerHeightChange:S},children:u.jsx(Y,{...i,ref:T,__vars:{"--sa-corner-width":s!=="xy"?"0px":`${y}px`,"--sa-corner-height":s!=="xy"?"0px":`${b}px`}})})});Ck.displayName="@mantine/core/ScrollAreaRoot";function Ek(e,t){const n=e/t;return Number.isNaN(n)?0:n}function Kp(e){const t=Ek(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function kk(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function qM(e,[t,n]){return Math.min(n,Math.max(t,e))}function cw(e,t,n="ltr"){const r=Kp(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-o,i=t.content-t.viewport,a=s-r,l=n==="ltr"?[0,i]:[i*-1,0],c=qM(e,l);return kk([0,i],[0,a])(c)}function YM(e,t,n,r="ltr"){const o=Kp(n),s=o/2,i=t||s,a=o-i,l=n.scrollbar.paddingStart+i,c=n.scrollbar.size-n.scrollbar.paddingEnd-a,d=n.content-n.viewport,f=r==="ltr"?[0,d]:[d*-1,0];return kk([l,c],f)(e)}function jk(e,t){return e>0&&e<t}function op(e){return e?parseInt(e,10):0}function Ui(e,t,{checkForDefaultPrevented:n=!0}={}){return r=>{e==null||e(r),(n===!1||!r.defaultPrevented)&&(t==null||t(r))}}const[GM,Rk]=ir("ScrollAreaScrollbar was not found in tree"),Pk=v.forwardRef((e,t)=>{const{sizes:n,hasThumb:r,onThumbChange:o,onThumbPointerUp:s,onThumbPointerDown:i,onThumbPositionChange:a,onDragScroll:l,onWheelScroll:c,onResize:d,...f}=e,p=wr(),[h,m]=v.useState(null),g=Lt(t,C=>m(C)),w=v.useRef(null),y=v.useRef(""),{viewport:x}=p,b=n.content-n.viewport,S=Ei(c),k=Ei(a),E=Hu(d,10),j=C=>{if(w.current){const T=C.clientX-w.current.left,N=C.clientY-w.current.top;l({x:T,y:N})}};return v.useEffect(()=>{const C=T=>{const N=T.target;(h==null?void 0:h.contains(N))&&S(T,b)};return document.addEventListener("wheel",C,{passive:!1}),()=>document.removeEventListener("wheel",C,{passive:!1})},[x,h,b,S]),v.useEffect(k,[n,k]),Ol(h,E),Ol(p.content,E),u.jsx(GM,{value:{scrollbar:h,hasThumb:r,onThumbChange:Ei(o),onThumbPointerUp:Ei(s),onThumbPositionChange:k,onThumbPointerDown:Ei(i)},children:u.jsx("div",{...f,ref:g,"data-mantine-scrollbar":!0,style:{position:"absolute",...f.style},onPointerDown:Ui(e.onPointerDown,C=>{C.preventDefault(),C.button===0&&(C.target.setPointerCapture(C.pointerId),w.current=h.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",j(C))}),onPointerMove:Ui(e.onPointerMove,j),onPointerUp:Ui(e.onPointerUp,C=>{C.preventDefault();const T=C.target;T.hasPointerCapture(C.pointerId)&&T.releasePointerCapture(C.pointerId),document.body.style.webkitUserSelect=y.current,w.current=null})})})}),QM=v.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,style:o,...s}=e,i=wr(),[a,l]=v.useState(),c=v.useRef(null),d=Lt(t,c,i.onScrollbarXChange);return v.useEffect(()=>{c.current&&l(getComputedStyle(c.current))},[c]),u.jsx(Pk,{"data-orientation":"horizontal",...s,ref:d,sizes:n,style:{...o,"--sa-thumb-width":`${Kp(n)}px`},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,p)=>{if(i.viewport){const h=i.viewport.scrollLeft+f.deltaX;e.onWheelScroll(h),jk(h,p)&&f.preventDefault()}},onResize:()=>{c.current&&i.viewport&&a&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:op(a.paddingLeft),paddingEnd:op(a.paddingRight)}})}})}),XM=v.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,style:o,...s}=e,i=wr(),[a,l]=v.useState(),c=v.useRef(null),d=Lt(t,c,i.onScrollbarYChange);return v.useEffect(()=>{c.current&&l(window.getComputedStyle(c.current))},[]),u.jsx(Pk,{...s,"data-orientation":"vertical",ref:d,sizes:n,style:{"--sa-thumb-height":`${Kp(n)}px`,...o},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,p)=>{if(i.viewport){const h=i.viewport.scrollTop+f.deltaY;e.onWheelScroll(h),jk(h,p)&&f.preventDefault()}},onResize:()=>{c.current&&i.viewport&&a&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:op(a.paddingTop),paddingEnd:op(a.paddingBottom)}})}})}),k0=v.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,{dir:o}=ii(),s=wr(),i=v.useRef(null),a=v.useRef(0),[l,c]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=Ek(l.viewport,l.content),f={...r,sizes:l,onSizesChange:c,hasThumb:d>0&&d<1,onThumbChange:h=>{i.current=h},onThumbPointerUp:()=>{a.current=0},onThumbPointerDown:h=>{a.current=h}},p=(h,m)=>YM(h,a.current,l,m);return n==="horizontal"?u.jsx(QM,{...f,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const h=s.viewport.scrollLeft,m=cw(h,l,o);i.current.style.transform=`translate3d(${m}px, 0, 0)`}},onWheelScroll:h=>{s.viewport&&(s.viewport.scrollLeft=h)},onDragScroll:h=>{s.viewport&&(s.viewport.scrollLeft=p(h,o))}}):n==="vertical"?u.jsx(XM,{...f,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const h=s.viewport.scrollTop,m=cw(h,l);l.scrollbar.size===0?i.current.style.opacity="0":i.current.style.opacity="1",i.current.style.transform=`translate3d(0, ${m}px, 0)`}},onWheelScroll:h=>{s.viewport&&(s.viewport.scrollTop=h)},onDragScroll:h=>{s.viewport&&(s.viewport.scrollTop=p(h))}}):null}),Tk=v.forwardRef((e,t)=>{const n=wr(),{forceMount:r,...o}=e,[s,i]=v.useState(!1),a=e.orientation==="horizontal",l=Hu(()=>{if(n.viewport){const c=n.viewport.offsetWidth<n.viewport.scrollWidth,d=n.viewport.offsetHeight<n.viewport.scrollHeight;i(a?c:d)}},10);return Ol(n.viewport,l),Ol(n.content,l),r||s?u.jsx(k0,{"data-state":s?"visible":"hidden",...o,ref:t}):null}),JM=v.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=wr(),[s,i]=v.useState(!1);return v.useEffect(()=>{const{scrollArea:a}=o;let l=0;if(a){const c=()=>{window.clearTimeout(l),i(!0)},d=()=>{l=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return a.addEventListener("pointerenter",c),a.addEventListener("pointerleave",d),()=>{window.clearTimeout(l),a.removeEventListener("pointerenter",c),a.removeEventListener("pointerleave",d)}}},[o.scrollArea,o.scrollHideDelay]),n||s?u.jsx(Tk,{"data-state":s?"visible":"hidden",...r,ref:t}):null}),ZM=v.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=wr(),s=e.orientation==="horizontal",[i,a]=v.useState("hidden"),l=Hu(()=>a("idle"),100);return v.useEffect(()=>{if(i==="idle"){const c=window.setTimeout(()=>a("hidden"),o.scrollHideDelay);return()=>window.clearTimeout(c)}},[i,o.scrollHideDelay]),v.useEffect(()=>{const{viewport:c}=o,d=s?"scrollLeft":"scrollTop";if(c){let f=c[d];const p=()=>{const h=c[d];f!==h&&(a("scrolling"),l()),f=h};return c.addEventListener("scroll",p),()=>c.removeEventListener("scroll",p)}},[o.viewport,s,l]),n||i!=="hidden"?u.jsx(k0,{"data-state":i==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:Ui(e.onPointerEnter,()=>a("interacting")),onPointerLeave:Ui(e.onPointerLeave,()=>a("idle"))}):null}),uw=v.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=wr(),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:i}=o,a=e.orientation==="horizontal";return v.useEffect(()=>(a?s(!0):i(!0),()=>{a?s(!1):i(!1)}),[a,s,i]),o.type==="hover"?u.jsx(JM,{...r,ref:t,forceMount:n}):o.type==="scroll"?u.jsx(ZM,{...r,ref:t,forceMount:n}):o.type==="auto"?u.jsx(Tk,{...r,ref:t,forceMount:n}):o.type==="always"?u.jsx(k0,{...r,ref:t}):null});function e_(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const s={left:e.scrollLeft,top:e.scrollTop},i=n.left!==s.left,a=n.top!==s.top;(i||a)&&t(),n=s,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)}const t_=v.forwardRef((e,t)=>{const{style:n,...r}=e,o=wr(),s=Rk(),{onThumbPositionChange:i}=s,a=Lt(t,d=>s.onThumbChange(d)),l=v.useRef(),c=Hu(()=>{l.current&&(l.current(),l.current=void 0)},100);return v.useEffect(()=>{const{viewport:d}=o;if(d){const f=()=>{if(c(),!l.current){const p=e_(d,i);l.current=p,i()}};return i(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[o.viewport,c,i]),u.jsx("div",{"data-state":s.hasThumb?"visible":"hidden",...r,ref:a,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:Ui(e.onPointerDownCapture,d=>{const p=d.target.getBoundingClientRect(),h=d.clientX-p.left,m=d.clientY-p.top;s.onThumbPointerDown({x:h,y:m})}),onPointerUp:Ui(e.onPointerUp,s.onThumbPointerUp)})}),dw=v.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Rk();return n||o.hasThumb?u.jsx(t_,{ref:t,...r}):null}),Nk=v.forwardRef(({children:e,style:t,...n},r)=>{const o=wr(),s=Lt(r,o.onViewportChange);return u.jsx(Y,{...n,ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...t},children:u.jsx("div",{style:{minWidth:"100%",display:"table"},ref:o.onContentChange,children:e})})});Nk.displayName="@mantine/core/ScrollAreaViewport";var j0={root:"m_d57069b5",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const Lk={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},n_=(e,{scrollbarSize:t})=>({root:{"--scrollarea-scrollbar-size":H(t)}}),Gr=Q((e,t)=>{const n=K("ScrollArea",Lk,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,scrollbarSize:l,vars:c,type:d,scrollHideDelay:f,viewportProps:p,viewportRef:h,onScrollPositionChange:m,children:g,offsetScrollbars:w,scrollbars:y,onBottomReached:x,onTopReached:b,...S}=n,[k,E]=v.useState(!1),j=pe({name:"ScrollArea",props:n,classes:j0,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:c,varsResolver:n_});return u.jsxs(Ck,{type:d==="never"?"always":d,scrollHideDelay:f,ref:t,scrollbars:y,...j("root"),...S,children:[u.jsx(Nk,{...p,...j("viewport",{style:p==null?void 0:p.style}),ref:h,"data-offset-scrollbars":w===!0?"xy":w||void 0,"data-scrollbars":y||void 0,onScroll:C=>{var I;(I=p==null?void 0:p.onScroll)==null||I.call(p,C),m==null||m({x:C.currentTarget.scrollLeft,y:C.currentTarget.scrollTop});const{scrollTop:T,scrollHeight:N,clientHeight:_}=C.currentTarget;T-(N-_)===0&&(x==null||x()),T===0&&(b==null||b())},children:g}),(y==="xy"||y==="x")&&u.jsx(uw,{...j("scrollbar"),orientation:"horizontal","data-hidden":d==="never"||void 0,forceMount:!0,onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),children:u.jsx(dw,{...j("thumb")})}),(y==="xy"||y==="y")&&u.jsx(uw,{...j("scrollbar"),orientation:"vertical","data-hidden":d==="never"||void 0,forceMount:!0,onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),children:u.jsx(dw,{...j("thumb")})}),u.jsx(WM,{...j("corner"),"data-hovered":k||void 0,"data-hidden":d==="never"||void 0})]})});Gr.displayName="@mantine/core/ScrollArea";const R0=Q((e,t)=>{const{children:n,classNames:r,styles:o,scrollbarSize:s,scrollHideDelay:i,type:a,dir:l,offsetScrollbars:c,viewportRef:d,onScrollPositionChange:f,unstyled:p,variant:h,viewportProps:m,scrollbars:g,style:w,vars:y,onBottomReached:x,...b}=K("ScrollAreaAutosize",Lk,e);return u.jsx(Y,{...b,ref:t,style:[{display:"flex",overflow:"auto"},w],children:u.jsx(Y,{style:{display:"flex",flexDirection:"column",flex:1},children:u.jsx(Gr,{classNames:r,styles:o,scrollHideDelay:i,scrollbarSize:s,type:a,dir:l,offsetScrollbars:c,viewportRef:d,onScrollPositionChange:f,unstyled:p,variant:h,viewportProps:m,vars:y,scrollbars:g,onBottomReached:x,children:n})})})});Gr.classes=j0;R0.displayName="@mantine/core/ScrollAreaAutosize";R0.classes=j0;Gr.Autosize=R0;var Dk={root:"m_87cf2631"};const r_={__staticSelector:"UnstyledButton"},Kt=yn((e,t)=>{const n=K("UnstyledButton",r_,e),{className:r,component:o="button",__staticSelector:s,unstyled:i,classNames:a,styles:l,style:c,...d}=n,f=pe({name:s,props:n,classes:Dk,className:r,style:c,classNames:a,styles:l,unstyled:i});return u.jsx(Y,{...f("root",{focusable:!0}),component:o,ref:t,type:o==="button"?"button":void 0,...d})});Kt.classes=Dk;Kt.displayName="@mantine/core/UnstyledButton";var Mk={root:"m_515a97f8"};const o_={},P0=Q((e,t)=>{const n=K("VisuallyHidden",o_,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,...c}=n,d=pe({name:"VisuallyHidden",classes:Mk,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a});return u.jsx(Y,{component:"span",ref:t,...d("root"),...c})});P0.classes=Mk;P0.displayName="@mantine/core/VisuallyHidden";var _k={root:"m_1b7284a3"};const s_={},i_=(e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:wt(t),"--paper-shadow":g0(n)}}),T0=yn((e,t)=>{const n=K("Paper",s_,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,withBorder:l,vars:c,radius:d,shadow:f,variant:p,mod:h,...m}=n,g=pe({name:"Paper",props:n,classes:_k,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:c,varsResolver:i_});return u.jsx(Y,{ref:t,mod:[{"data-with-border":l},h],...g("root"),variant:p,...m})});T0.classes=_k;T0.displayName="@mantine/core/Paper";function Ql(e){return Ak(e)?(e.nodeName||"").toLowerCase():"#document"}function $n(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xo(e){var t;return(t=(Ak(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ak(e){return e instanceof Node||e instanceof $n(e).Node}function gt(e){return e instanceof Element||e instanceof $n(e).Element}function rr(e){return e instanceof HTMLElement||e instanceof $n(e).HTMLElement}function jy(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $n(e).ShadowRoot}function Wu(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=br(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function a_(e){return["table","td","th"].includes(Ql(e))}function qp(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function N0(e){const t=L0(),n=gt(e)?br(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function l_(e){let t=Uo(e);for(;rr(t)&&!Gs(t);){if(N0(t))return t;if(qp(t))return null;t=Uo(t)}return null}function L0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Gs(e){return["html","body","#document"].includes(Ql(e))}function br(e){return $n(e).getComputedStyle(e)}function Yp(e){return gt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Uo(e){if(Ql(e)==="html")return e;const t=e.assignedSlot||e.parentNode||jy(e)&&e.host||Xo(e);return jy(t)?t.host:t}function Ok(e){const t=Uo(e);return Gs(t)?e.ownerDocument?e.ownerDocument.body:e.body:rr(t)&&Wu(t)?t:Ok(t)}function Oo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ok(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=$n(o);if(s){const a=Ry(i);return t.concat(i,i.visualViewport||[],Wu(o)?o:[],a&&n?Oo(a):[])}return t.concat(o,Oo(o,[],n))}function Ry(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function fw(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Su(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&jy(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function $k(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Fk(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function c_(e){return f_()?!1:!pw()&&e.width===0&&e.height===0||pw()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function u_(){return/apple/i.test(navigator.vendor)}function pw(){const e=/android/i;return e.test($k())||e.test(Fk())}function d_(){return $k().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function f_(){return Fk().includes("jsdom/")}function Py(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function p_(e){return"nativeEvent"in e}function h_(e){return e.matches("html,body")}function Ni(e){return(e==null?void 0:e.ownerDocument)||document}function tg(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function Oa(e){return"composedPath"in e?e.composedPath()[0]:e.target}const m_="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function g_(e){return rr(e)&&e.matches(m_)}const Jn=Math.min,pn=Math.max,sp=Math.round,ef=Math.floor,Qs=e=>({x:e,y:e}),y_={left:"right",right:"left",bottom:"top",top:"bottom"},v_={start:"end",end:"start"};function Ty(e,t,n){return pn(e,Jn(t,n))}function Ho(e,t){return typeof e=="function"?e(t):e}function Kr(e){return e.split("-")[0]}function Xl(e){return e.split("-")[1]}function D0(e){return e==="x"?"y":"x"}function M0(e){return e==="y"?"height":"width"}function Wo(e){return["top","bottom"].includes(Kr(e))?"y":"x"}function _0(e){return D0(Wo(e))}function x_(e,t,n){n===void 0&&(n=!1);const r=Xl(e),o=_0(e),s=M0(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=ip(i)),[i,ip(i)]}function b_(e){const t=ip(e);return[Ny(e),t,Ny(t)]}function Ny(e){return e.replace(/start|end/g,t=>v_[t])}function w_(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:i;default:return[]}}function S_(e,t,n,r){const o=Xl(e);let s=w_(Kr(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Ny)))),s}function ip(e){return e.replace(/left|right|bottom|top/g,t=>y_[t])}function C_(e){return{top:0,right:0,bottom:0,left:0,...e}}function A0(e){return typeof e!="number"?C_(e):{top:e,right:e,bottom:e,left:e}}function $l(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function hw(e,t,n){let{reference:r,floating:o}=e;const s=Wo(t),i=_0(t),a=M0(i),l=Kr(t),c=s==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let h;switch(l){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Xl(t)){case"start":h[i]-=p*(n&&c?-1:1);break;case"end":h[i]+=p*(n&&c?-1:1);break}return h}const E_=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=hw(c,r,l),p=r,h={},m=0;for(let g=0;g<a.length;g++){const{name:w,fn:y}=a[g],{x,y:b,data:S,reset:k}=await y({x:d,y:f,initialPlacement:r,placement:p,strategy:o,middlewareData:h,rects:c,platform:i,elements:{reference:e,floating:t}});d=x??d,f=b??f,h={...h,[w]:{...h[w],...S}},k&&m<=50&&(m++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(c=k.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:d,y:f}=hw(c,p,l)),g=-1)}return{x:d,y:f,placement:p,strategy:o,middlewareData:h}};async function O0(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=Ho(t,e),m=A0(h),w=a[p?f==="floating"?"reference":"floating":f],y=$l(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),x=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(b))?await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1}:{x:1,y:1},k=$l(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:b,strategy:l}):x);return{top:(y.top-k.top+m.top)/S.y,bottom:(k.bottom-y.bottom+m.bottom)/S.y,left:(y.left-k.left+m.left)/S.x,right:(k.right-y.right+m.right)/S.x}}const k_=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=Ho(e,t)||{};if(c==null)return{};const f=A0(d),p={x:n,y:r},h=_0(o),m=M0(h),g=await i.getDimensions(c),w=h==="y",y=w?"top":"left",x=w?"bottom":"right",b=w?"clientHeight":"clientWidth",S=s.reference[m]+s.reference[h]-p[h]-s.floating[m],k=p[h]-s.reference[h],E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let j=E?E[b]:0;(!j||!await(i.isElement==null?void 0:i.isElement(E)))&&(j=a.floating[b]||s.floating[m]);const C=S/2-k/2,T=j/2-g[m]/2-1,N=Jn(f[y],T),_=Jn(f[x],T),I=N,U=j-g[m]-_,O=j/2-g[m]/2+C,M=Ty(I,O,U),P=!l.arrow&&Xl(o)!=null&&O!==M&&s.reference[m]/2-(O<I?N:_)-g[m]/2<0,L=P?O<I?O-I:O-U:0;return{[h]:p[h]+L,data:{[h]:M,centerOffset:O-M-L,...P&&{alignmentOffset:L}},reset:P}}}),j_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...w}=Ho(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=Kr(o),x=Wo(a),b=Kr(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),k=p||(b||!g?[ip(a)]:b_(a)),E=m!=="none";!p&&E&&k.push(...S_(a,g,m,S));const j=[a,...k],C=await O0(t,w),T=[];let N=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&T.push(C[y]),f){const O=x_(o,i,S);T.push(C[O[0]],C[O[1]])}if(N=[...N,{placement:o,overflows:T}],!T.every(O=>O<=0)){var _,I;const O=(((_=s.flip)==null?void 0:_.index)||0)+1,M=j[O];if(M)return{data:{index:O,overflows:N},reset:{placement:M}};let P=(I=N.filter(L=>L.overflows[0]<=0).sort((L,R)=>L.overflows[1]-R.overflows[1])[0])==null?void 0:I.placement;if(!P)switch(h){case"bestFit":{var U;const L=(U=N.filter(R=>{if(E){const D=Wo(R.placement);return D===x||D==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(D=>D>0).reduce((D,$)=>D+$,0)]).sort((R,D)=>R[1]-D[1])[0])==null?void 0:U[0];L&&(P=L);break}case"initialPlacement":P=a;break}if(o!==P)return{reset:{placement:P}}}return{}}}};function Ik(e){const t=Jn(...e.map(s=>s.left)),n=Jn(...e.map(s=>s.top)),r=pn(...e.map(s=>s.right)),o=pn(...e.map(s=>s.bottom));return{x:t,y:n,width:r-t,height:o-n}}function R_(e){const t=e.slice().sort((o,s)=>o.y-s.y),n=[];let r=null;for(let o=0;o<t.length;o++){const s=t[o];!r||s.y-r.y>r.height/2?n.push([s]):n[n.length-1].push(s),r=s}return n.map(o=>$l(Ik(o)))}const P_=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:s,strategy:i}=t,{padding:a=2,x:l,y:c}=Ho(e,t),d=Array.from(await(s.getClientRects==null?void 0:s.getClientRects(r.reference))||[]),f=R_(d),p=$l(Ik(d)),h=A0(a);function m(){if(f.length===2&&f[0].left>f[1].right&&l!=null&&c!=null)return f.find(w=>l>w.left-h.left&&l<w.right+h.right&&c>w.top-h.top&&c<w.bottom+h.bottom)||p;if(f.length>=2){if(Wo(n)==="y"){const N=f[0],_=f[f.length-1],I=Kr(n)==="top",U=N.top,O=_.bottom,M=I?N.left:_.left,P=I?N.right:_.right,L=P-M,R=O-U;return{top:U,bottom:O,left:M,right:P,width:L,height:R,x:M,y:U}}const w=Kr(n)==="left",y=pn(...f.map(N=>N.right)),x=Jn(...f.map(N=>N.left)),b=f.filter(N=>w?N.left===x:N.right===y),S=b[0].top,k=b[b.length-1].bottom,E=x,j=y,C=j-E,T=k-S;return{top:S,bottom:k,left:E,right:j,width:C,height:T,x:E,y:S}}return p}const g=await s.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:i});return o.reference.x!==g.reference.x||o.reference.y!==g.reference.y||o.reference.width!==g.reference.width||o.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}};async function T_(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Kr(n),a=Xl(n),l=Wo(n)==="y",c=["left","top"].includes(i)?-1:1,d=s&&l?-1:1,f=Ho(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof m=="number"&&(h=a==="end"?m*-1:m),l?{x:h*d,y:p*c}:{x:p*c,y:h*d}}const N_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await T_(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},L_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:w=>{let{x:y,y:x}=w;return{x:y,y:x}}},...l}=Ho(e,t),c={x:n,y:r},d=await O0(t,l),f=Wo(Kr(o)),p=D0(f);let h=c[p],m=c[f];if(s){const w=p==="y"?"top":"left",y=p==="y"?"bottom":"right",x=h+d[w],b=h-d[y];h=Ty(x,h,b)}if(i){const w=f==="y"?"top":"left",y=f==="y"?"bottom":"right",x=m+d[w],b=m-d[y];m=Ty(x,m,b)}const g=a.fn({...t,[p]:h,[f]:m});return{...g,data:{x:g.x-n,y:g.y-r}}}}},D_=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Ho(e,t),d={x:n,y:r},f=Wo(o),p=D0(f);let h=d[p],m=d[f];const g=Ho(a,t),w=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const b=p==="y"?"height":"width",S=s.reference[p]-s.floating[b]+w.mainAxis,k=s.reference[p]+s.reference[b]-w.mainAxis;h<S?h=S:h>k&&(h=k)}if(c){var y,x;const b=p==="y"?"width":"height",S=["top","left"].includes(Kr(o)),k=s.reference[f]-s.floating[b]+(S&&((y=i.offset)==null?void 0:y[f])||0)+(S?0:w.crossAxis),E=s.reference[f]+s.reference[b]+(S?0:((x=i.offset)==null?void 0:x[f])||0)-(S?w.crossAxis:0);m<k?m=k:m>E&&(m=E)}return{[p]:h,[f]:m}}}},M_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:s}=t,{apply:i=()=>{},...a}=Ho(e,t),l=await O0(t,a),c=Kr(n),d=Xl(n),f=Wo(n)==="y",{width:p,height:h}=r.floating;let m,g;c==="top"||c==="bottom"?(m=c,g=d===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(g=c,m=d==="end"?"top":"bottom");const w=h-l.top-l.bottom,y=p-l.left-l.right,x=Jn(h-l[m],w),b=Jn(p-l[g],y),S=!t.middlewareData.shift;let k=x,E=b;if(f?E=d||S?Jn(b,y):y:k=d||S?Jn(x,w):w,S&&!d){const C=pn(l.left,0),T=pn(l.right,0),N=pn(l.top,0),_=pn(l.bottom,0);f?E=p-2*(C!==0||T!==0?C+T:pn(l.left,l.right)):k=h-2*(N!==0||_!==0?N+_:pn(l.top,l.bottom))}await i({...t,availableWidth:E,availableHeight:k});const j=await o.getDimensions(s.floating);return p!==j.width||h!==j.height?{reset:{rects:!0}}:{}}}};function zk(e){const t=br(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=rr(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=sp(n)!==s||sp(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function $0(e){return gt(e)?e:e.contextElement}function dl(e){const t=$0(e);if(!rr(t))return Qs(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=zk(t);let i=(s?sp(n.width):n.width)/r,a=(s?sp(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const __=Qs(0);function Vk(e){const t=$n(e);return!L0()||!t.visualViewport?__:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function A_(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==$n(e)?!1:t}function Qi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=$0(e);let i=Qs(1);t&&(r?gt(r)&&(i=dl(r)):i=dl(e));const a=A_(s,n,r)?Vk(s):Qs(0);let l=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,d=o.width/i.x,f=o.height/i.y;if(s){const p=$n(s),h=r&&gt(r)?$n(r):r;let m=p,g=Ry(m);for(;g&&r&&h!==m;){const w=dl(g),y=g.getBoundingClientRect(),x=br(g),b=y.left+(g.clientLeft+parseFloat(x.paddingLeft))*w.x,S=y.top+(g.clientTop+parseFloat(x.paddingTop))*w.y;l*=w.x,c*=w.y,d*=w.x,f*=w.y,l+=b,c+=S,m=$n(g),g=Ry(m)}}return $l({width:d,height:f,x:l,y:c})}function O_(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Xo(r),a=t?qp(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=Qs(1);const d=Qs(0),f=rr(r);if((f||!f&&!s)&&((Ql(r)!=="body"||Wu(i))&&(l=Yp(r)),rr(r))){const p=Qi(r);c=dl(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x,y:n.y*c.y-l.scrollTop*c.y+d.y}}function $_(e){return Array.from(e.getClientRects())}function Bk(e){return Qi(Xo(e)).left+Yp(e).scrollLeft}function F_(e){const t=Xo(e),n=Yp(e),r=e.ownerDocument.body,o=pn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=pn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Bk(e);const a=-n.scrollTop;return br(r).direction==="rtl"&&(i+=pn(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function I_(e,t){const n=$n(e),r=Xo(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const c=L0();(!c||c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a,y:l}}function z_(e,t){const n=Qi(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=rr(e)?dl(e):Qs(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,c=r*s.y;return{width:i,height:a,x:l,y:c}}function mw(e,t,n){let r;if(t==="viewport")r=I_(e,n);else if(t==="document")r=F_(Xo(e));else if(gt(t))r=z_(t,n);else{const o=Vk(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return $l(r)}function Uk(e,t){const n=Uo(e);return n===t||!gt(n)||Gs(n)?!1:br(n).position==="fixed"||Uk(n,t)}function V_(e,t){const n=t.get(e);if(n)return n;let r=Oo(e,[],!1).filter(a=>gt(a)&&Ql(a)!=="body"),o=null;const s=br(e).position==="fixed";let i=s?Uo(e):e;for(;gt(i)&&!Gs(i);){const a=br(i),l=N0(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Wu(i)&&!l&&Uk(e,i))?r=r.filter(d=>d!==i):o=a,i=Uo(i)}return t.set(e,r),r}function B_(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?qp(t)?[]:V_(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((c,d)=>{const f=mw(t,d,o);return c.top=pn(f.top,c.top),c.right=Jn(f.right,c.right),c.bottom=Jn(f.bottom,c.bottom),c.left=pn(f.left,c.left),c},mw(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function U_(e){const{width:t,height:n}=zk(e);return{width:t,height:n}}function H_(e,t,n){const r=rr(t),o=Xo(t),s=n==="fixed",i=Qi(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Qs(0);if(r||!r&&!s)if((Ql(t)!=="body"||Wu(o))&&(a=Yp(t)),r){const f=Qi(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else o&&(l.x=Bk(o));const c=i.left+a.scrollLeft-l.x,d=i.top+a.scrollTop-l.y;return{x:c,y:d,width:i.width,height:i.height}}function ng(e){return br(e).position==="static"}function gw(e,t){return!rr(e)||br(e).position==="fixed"?null:t?t(e):e.offsetParent}function Hk(e,t){const n=$n(e);if(qp(e))return n;if(!rr(e)){let o=Uo(e);for(;o&&!Gs(o);){if(gt(o)&&!ng(o))return o;o=Uo(o)}return n}let r=gw(e,t);for(;r&&a_(r)&&ng(r);)r=gw(r,t);return r&&Gs(r)&&ng(r)&&!N0(r)?n:r||l_(e)||n}const W_=async function(e){const t=this.getOffsetParent||Hk,n=this.getDimensions,r=await n(e.floating);return{reference:H_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function K_(e){return br(e).direction==="rtl"}const q_={convertOffsetParentRelativeRectToViewportRelativeRect:O_,getDocumentElement:Xo,getClippingRect:B_,getOffsetParent:Hk,getElementRects:W_,getClientRects:$_,getDimensions:U_,getScale:dl,isElement:gt,isRTL:K_};function Y_(e,t){let n=null,r;const o=Xo(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const{left:c,top:d,width:f,height:p}=e.getBoundingClientRect();if(a||t(),!f||!p)return;const h=ef(d),m=ef(o.clientWidth-(c+f)),g=ef(o.clientHeight-(d+p)),w=ef(c),x={rootMargin:-h+"px "+-m+"px "+-g+"px "+-w+"px",threshold:pn(0,Jn(1,l))||1};let b=!0;function S(k){const E=k[0].intersectionRatio;if(E!==l){if(!b)return i();E?i(!1,E):r=setTimeout(()=>{i(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(S,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return i(!0),s}function G_(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=$0(e),d=o||s?[...c?Oo(c):[],...Oo(t)]:[];d.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const f=c&&a?Y_(c,n):null;let p=-1,h=null;i&&(h=new ResizeObserver(y=>{let[x]=y;x&&x.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var b;(b=h)==null||b.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let m,g=l?Qi(e):null;l&&w();function w(){const y=Qi(e);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&n(),g=y,m=requestAnimationFrame(w)}return n(),()=>{var y;d.forEach(x=>{o&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),f==null||f(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(m)}}const Q_=N_,X_=L_,J_=j_,Z_=M_,yw=k_,eA=P_,tA=D_,nA=(e,t,n)=>{const r=new Map,o={platform:q_,...n},s={...o.platform,_c:r};return E_(e,t,{...o,platform:s})};var Ef=typeof document<"u"?v.useLayoutEffect:v.useEffect;function ap(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ap(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!ap(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Wk(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function vw(e,t){const n=Wk(e);return Math.round(t*n)/n}function xw(e){const t=v.useRef(e);return Ef(()=>{t.current=e}),t}function rA(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,f]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=v.useState(r);ap(p,r)||h(r);const[m,g]=v.useState(null),[w,y]=v.useState(null),x=v.useCallback(L=>{L!==E.current&&(E.current=L,g(L))},[]),b=v.useCallback(L=>{L!==j.current&&(j.current=L,y(L))},[]),S=s||m,k=i||w,E=v.useRef(null),j=v.useRef(null),C=v.useRef(d),T=l!=null,N=xw(l),_=xw(o),I=v.useCallback(()=>{if(!E.current||!j.current)return;const L={placement:t,strategy:n,middleware:p};_.current&&(L.platform=_.current),nA(E.current,j.current,L).then(R=>{const D={...R,isPositioned:!0};U.current&&!ap(C.current,D)&&(C.current=D,Yl.flushSync(()=>{f(D)}))})},[p,t,n,_]);Ef(()=>{c===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,f(L=>({...L,isPositioned:!1})))},[c]);const U=v.useRef(!1);Ef(()=>(U.current=!0,()=>{U.current=!1}),[]),Ef(()=>{if(S&&(E.current=S),k&&(j.current=k),S&&k){if(N.current)return N.current(S,k,I);I()}},[S,k,I,N,T]);const O=v.useMemo(()=>({reference:E,floating:j,setReference:x,setFloating:b}),[x,b]),M=v.useMemo(()=>({reference:S,floating:k}),[S,k]),P=v.useMemo(()=>{const L={position:n,left:0,top:0};if(!M.floating)return L;const R=vw(M.floating,d.x),D=vw(M.floating,d.y);return a?{...L,transform:"translate("+R+"px, "+D+"px)",...Wk(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:D}},[n,a,M.floating,d.x,d.y]);return v.useMemo(()=>({...d,update:I,refs:O,elements:M,floatingStyles:P}),[d,I,O,M,P])}const oA=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?yw({element:r.current,padding:o}).fn(n):{}:r?yw({element:r,padding:o}).fn(n):{}}}},Kk=(e,t)=>({...Q_(e),options:[e,t]}),F0=(e,t)=>({...X_(e),options:[e,t]}),bw=(e,t)=>({...tA(e),options:[e,t]}),Ly=(e,t)=>({...J_(e),options:[e,t]}),sA=(e,t)=>({...Z_(e),options:[e,t]}),Dy=(e,t)=>({...eA(e),options:[e,t]}),qk=(e,t)=>({...oA(e),options:[e,t]}),Yk={...UC},iA=Yk.useInsertionEffect,aA=iA||(e=>e());function Es(e){const t=v.useRef(()=>{});return aA(()=>{t.current=e}),v.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}var yo=typeof document<"u"?v.useLayoutEffect:v.useEffect;let ww=!1,lA=0;const Sw=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+lA++;function cA(){const[e,t]=v.useState(()=>ww?Sw():void 0);return yo(()=>{e==null&&t(Sw())},[]),v.useEffect(()=>{ww=!0},[]),e}const uA=Yk.useId,Gk=uA||cA;function dA(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const fA=v.createContext(null),pA=v.createContext(null),I0=()=>{var e;return((e=v.useContext(fA))==null?void 0:e.id)||null},z0=()=>v.useContext(pA);function V0(e){return"data-floating-ui-"+e}function rg(e){const t=v.useRef(e);return yo(()=>{t.current=e}),t}const Cw=V0("safe-polygon");function kf(e,t,n){return n&&!Py(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function hA(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:s,elements:i}=e,{enabled:a=!0,delay:l=0,handleClose:c=null,mouseOnly:d=!1,restMs:f=0,move:p=!0}=t,h=z0(),m=I0(),g=rg(c),w=rg(l),y=rg(n),x=v.useRef(),b=v.useRef(-1),S=v.useRef(),k=v.useRef(-1),E=v.useRef(!0),j=v.useRef(!1),C=v.useRef(()=>{}),T=v.useCallback(()=>{var M;const P=(M=o.current.openEvent)==null?void 0:M.type;return(P==null?void 0:P.includes("mouse"))&&P!=="mousedown"},[o]);v.useEffect(()=>{if(!a)return;function M(P){let{open:L}=P;L||(clearTimeout(b.current),clearTimeout(k.current),E.current=!0)}return s.on("openchange",M),()=>{s.off("openchange",M)}},[a,s]),v.useEffect(()=>{if(!a||!g.current||!n)return;function M(L){T()&&r(!1,L,"hover")}const P=Ni(i.floating).documentElement;return P.addEventListener("mouseleave",M),()=>{P.removeEventListener("mouseleave",M)}},[i.floating,n,r,a,g,T]);const N=v.useCallback(function(M,P,L){P===void 0&&(P=!0),L===void 0&&(L="hover");const R=kf(w.current,"close",x.current);R&&!S.current?(clearTimeout(b.current),b.current=window.setTimeout(()=>r(!1,M,L),R)):P&&(clearTimeout(b.current),r(!1,M,L))},[w,r]),_=Es(()=>{C.current(),S.current=void 0}),I=Es(()=>{if(j.current){const M=Ni(i.floating).body;M.style.pointerEvents="",M.removeAttribute(Cw),j.current=!1}});v.useEffect(()=>{if(!a)return;function M(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function P($){if(clearTimeout(b.current),E.current=!1,d&&!Py(x.current)||f>0&&!kf(w.current,"open"))return;const A=kf(w.current,"open",x.current);A?b.current=window.setTimeout(()=>{y.current||r(!0,$,"hover")},A):r(!0,$,"hover")}function L($){if(M())return;C.current();const A=Ni(i.floating);if(clearTimeout(k.current),g.current&&o.current.floatingContext){n||clearTimeout(b.current),S.current=g.current({...o.current.floatingContext,tree:h,x:$.clientX,y:$.clientY,onClose(){I(),_(),N($,!0,"safe-polygon")}});const G=S.current;A.addEventListener("mousemove",G),C.current=()=>{A.removeEventListener("mousemove",G)};return}(x.current==="touch"?!Su(i.floating,$.relatedTarget):!0)&&N($)}function R($){M()||o.current.floatingContext&&(g.current==null||g.current({...o.current.floatingContext,tree:h,x:$.clientX,y:$.clientY,onClose(){I(),_(),N($)}})($))}if(gt(i.domReference)){var D;const $=i.domReference;return n&&$.addEventListener("mouseleave",R),(D=i.floating)==null||D.addEventListener("mouseleave",R),p&&$.addEventListener("mousemove",P,{once:!0}),$.addEventListener("mouseenter",P),$.addEventListener("mouseleave",L),()=>{var A;n&&$.removeEventListener("mouseleave",R),(A=i.floating)==null||A.removeEventListener("mouseleave",R),p&&$.removeEventListener("mousemove",P),$.removeEventListener("mouseenter",P),$.removeEventListener("mouseleave",L)}}},[i,a,e,d,f,p,N,_,I,r,n,y,h,w,g,o]),yo(()=>{var M;if(a&&n&&(M=g.current)!=null&&M.__options.blockPointerEvents&&T()){j.current=!0;const L=i.floating;if(gt(i.domReference)&&L){var P;const R=Ni(i.floating).body;R.setAttribute(Cw,"");const D=i.domReference,$=h==null||(P=h.nodesRef.current.find(A=>A.id===m))==null||(P=P.context)==null?void 0:P.elements.floating;return $&&($.style.pointerEvents=""),R.style.pointerEvents="none",D.style.pointerEvents="auto",L.style.pointerEvents="auto",()=>{R.style.pointerEvents="",D.style.pointerEvents="",L.style.pointerEvents=""}}}},[a,n,m,i,h,g,T]),yo(()=>{n||(x.current=void 0,_(),I())},[n,_,I]),v.useEffect(()=>()=>{_(),clearTimeout(b.current),clearTimeout(k.current),I()},[a,i.domReference,_,I]);const U=v.useMemo(()=>{function M(P){x.current=P.pointerType}return{onPointerDown:M,onPointerEnter:M,onMouseMove(P){const{nativeEvent:L}=P;function R(){!E.current&&!y.current&&r(!0,L,"hover")}d&&!Py(x.current)||n||f===0||(clearTimeout(k.current),x.current==="touch"?R():k.current=window.setTimeout(R,f))}}},[d,r,n,y,f]),O=v.useMemo(()=>({onMouseEnter(){clearTimeout(b.current)},onMouseLeave(M){N(M.nativeEvent,!1)}}),[N]);return v.useMemo(()=>a?{reference:U,floating:O}:{},[a,U,O])}const My=()=>{},Qk=v.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:My,setState:My,isInstantPhase:!1}),Xk=()=>v.useContext(Qk);function mA(e){const{children:t,delay:n,timeoutMs:r=0}=e,[o,s]=v.useReducer((l,c)=>({...l,...c}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),i=v.useRef(null),a=v.useCallback(l=>{s({currentId:l})},[]);return yo(()=>{o.currentId?i.current===null?i.current=o.currentId:o.isInstantPhase||s({isInstantPhase:!0}):(o.isInstantPhase&&s({isInstantPhase:!1}),i.current=null)},[o.currentId,o.isInstantPhase]),v.createElement(Qk.Provider,{value:v.useMemo(()=>({...o,setState:s,setCurrentId:a}),[o,a])},t)}function gA(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,floatingId:o}=e,{id:s}=t,i=s??o,a=Xk(),{currentId:l,setCurrentId:c,initialDelay:d,setState:f,timeoutMs:p}=a;return yo(()=>{l&&(f({delay:{open:1,close:kf(d,"close")}}),l!==i&&r(!1))},[i,r,f,l,d]),yo(()=>{function h(){r(!1),f({delay:d,currentId:null})}if(l&&!n&&l===i){if(p){const m=window.setTimeout(h,p);return()=>{clearTimeout(m)}}h()}},[n,f,l,i,r,d,p]),yo(()=>{c===My||!n||c(i)},[n,c,i]),a}function og(e,t){let n=e.filter(o=>{var s;return o.parentId===t&&((s=o.context)==null?void 0:s.open)}),r=n;for(;r.length;)r=e.filter(o=>{var s;return(s=r)==null?void 0:s.some(i=>{var a;return o.parentId===i.id&&((a=o.context)==null?void 0:a.open)})}),n=n.concat(r);return n}const yA="data-floating-ui-focusable",vA={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},xA={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ew=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function bA(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:s}=e,{enabled:i=!0,escapeKey:a=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:d=!1,referencePressEvent:f="pointerdown",ancestorScroll:p=!1,bubbles:h,capture:m}=t,g=z0(),w=Es(typeof l=="function"?l:()=>!1),y=typeof l=="function"?w:l,x=v.useRef(!1),b=v.useRef(!1),{escapeKey:S,outsidePress:k}=Ew(h),{escapeKey:E,outsidePress:j}=Ew(m),C=Es(O=>{var M;if(!n||!i||!a||O.key!=="Escape")return;const P=(M=s.current.floatingContext)==null?void 0:M.nodeId,L=g?og(g.nodesRef.current,P):[];if(!S&&(O.stopPropagation(),L.length>0)){let R=!0;if(L.forEach(D=>{var $;if(($=D.context)!=null&&$.open&&!D.context.dataRef.current.__escapeKeyBubbles){R=!1;return}}),!R)return}r(!1,p_(O)?O.nativeEvent:O,"escape-key")}),T=Es(O=>{var M;const P=()=>{var L;C(O),(L=Oa(O))==null||L.removeEventListener("keydown",P)};(M=Oa(O))==null||M.addEventListener("keydown",P)}),N=Es(O=>{var M;const P=x.current;x.current=!1;const L=b.current;if(b.current=!1,c==="click"&&L||P||typeof y=="function"&&!y(O))return;const R=Oa(O),D="["+V0("inert")+"]",$=Ni(o.floating).querySelectorAll(D);let A=gt(R)?R:null;for(;A&&!Gs(A);){const Z=Uo(A);if(Gs(Z)||!gt(Z))break;A=Z}if($.length&&gt(R)&&!h_(R)&&!Su(R,o.floating)&&Array.from($).every(Z=>!Su(A,Z)))return;if(rr(R)&&U){const Z=R.clientWidth>0&&R.scrollWidth>R.clientWidth,oe=R.clientHeight>0&&R.scrollHeight>R.clientHeight;let ae=oe&&O.offsetX>R.clientWidth;if(oe&&br(R).direction==="rtl"&&(ae=O.offsetX<=R.offsetWidth-R.clientWidth),ae||Z&&O.offsetY>R.clientHeight)return}const B=(M=s.current.floatingContext)==null?void 0:M.nodeId,G=g&&og(g.nodesRef.current,B).some(Z=>{var oe;return tg(O,(oe=Z.context)==null?void 0:oe.elements.floating)});if(tg(O,o.floating)||tg(O,o.domReference)||G)return;const ne=g?og(g.nodesRef.current,B):[];if(ne.length>0){let Z=!0;if(ne.forEach(oe=>{var ae;if((ae=oe.context)!=null&&ae.open&&!oe.context.dataRef.current.__outsidePressBubbles){Z=!1;return}}),!Z)return}r(!1,O,"outside-press")}),_=Es(O=>{var M;const P=()=>{var L;N(O),(L=Oa(O))==null||L.removeEventListener(c,P)};(M=Oa(O))==null||M.addEventListener(c,P)});v.useEffect(()=>{if(!n||!i)return;s.current.__escapeKeyBubbles=S,s.current.__outsidePressBubbles=k;function O(L){r(!1,L,"ancestor-scroll")}const M=Ni(o.floating);a&&M.addEventListener("keydown",E?T:C,E),y&&M.addEventListener(c,j?_:N,j);let P=[];return p&&(gt(o.domReference)&&(P=Oo(o.domReference)),gt(o.floating)&&(P=P.concat(Oo(o.floating))),!gt(o.reference)&&o.reference&&o.reference.contextElement&&(P=P.concat(Oo(o.reference.contextElement)))),P=P.filter(L=>{var R;return L!==((R=M.defaultView)==null?void 0:R.visualViewport)}),P.forEach(L=>{L.addEventListener("scroll",O,{passive:!0})}),()=>{a&&M.removeEventListener("keydown",E?T:C,E),y&&M.removeEventListener(c,j?_:N,j),P.forEach(L=>{L.removeEventListener("scroll",O)})}},[s,o,a,y,c,n,r,p,i,S,k,C,E,T,N,j,_]),v.useEffect(()=>{x.current=!1},[y,c]);const I=v.useMemo(()=>({onKeyDown:C,[vA[f]]:O=>{d&&r(!1,O.nativeEvent,"reference-press")}}),[C,r,d,f]),U=v.useMemo(()=>({onKeyDown:C,onMouseDown(){b.current=!0},onMouseUp(){b.current=!0},[xA[c]]:()=>{x.current=!0}}),[C,c]);return v.useMemo(()=>i?{reference:I,floating:U}:{},[i,I,U])}function wA(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Gk(),s=v.useRef({}),[i]=v.useState(()=>dA()),a=I0()!=null,[l,c]=v.useState(r.reference),d=Es((h,m,g)=>{s.current.openEvent=h?m:void 0,i.emit("openchange",{open:h,event:m,reason:g,nested:a}),n==null||n(h,m,g)}),f=v.useMemo(()=>({setPositionReference:c}),[]),p=v.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return v.useMemo(()=>({dataRef:s,open:t,onOpenChange:d,elements:p,events:i,floatingId:o,refs:f}),[t,d,p,i,o,f])}function B0(e){e===void 0&&(e={});const{nodeId:t}=e,n=wA({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[s,i]=v.useState(null),[a,l]=v.useState(null),d=(o==null?void 0:o.reference)||s,f=v.useRef(null),p=z0();yo(()=>{d&&(f.current=d)},[d]);const h=rA({...e,elements:{...o,...a&&{reference:a}}}),m=v.useCallback(b=>{const S=gt(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),contextElement:b}:b;l(S),h.refs.setReference(S)},[h.refs]),g=v.useCallback(b=>{(gt(b)||b===null)&&(f.current=b,i(b)),(gt(h.refs.reference.current)||h.refs.reference.current===null||b!==null&&!gt(b))&&h.refs.setReference(b)},[h.refs]),w=v.useMemo(()=>({...h.refs,setReference:g,setPositionReference:m,domReference:f}),[h.refs,g,m]),y=v.useMemo(()=>({...h.elements,domReference:d}),[h.elements,d]),x=v.useMemo(()=>({...h,...r,refs:w,elements:y,nodeId:t}),[h,w,y,t,r]);return yo(()=>{r.dataRef.current.floatingContext=x;const b=p==null?void 0:p.nodesRef.current.find(S=>S.id===t);b&&(b.context=x)}),v.useMemo(()=>({...h,context:x,refs:w,elements:y}),[h,w,y,x])}function SA(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:s,elements:i}=e,{enabled:a=!0,visibleOnly:l=!0}=t,c=v.useRef(!1),d=v.useRef(),f=v.useRef(!0);v.useEffect(()=>{if(!a)return;const h=$n(i.domReference);function m(){!n&&rr(i.domReference)&&i.domReference===fw(Ni(i.domReference))&&(c.current=!0)}function g(){f.current=!0}return h.addEventListener("blur",m),h.addEventListener("keydown",g,!0),()=>{h.removeEventListener("blur",m),h.removeEventListener("keydown",g,!0)}},[i.domReference,n,a]),v.useEffect(()=>{if(!a)return;function h(m){let{reason:g}=m;(g==="reference-press"||g==="escape-key")&&(c.current=!0)}return o.on("openchange",h),()=>{o.off("openchange",h)}},[o,a]),v.useEffect(()=>()=>{clearTimeout(d.current)},[]);const p=v.useMemo(()=>({onPointerDown(h){c_(h.nativeEvent)||(f.current=!1)},onMouseLeave(){c.current=!1},onFocus(h){if(c.current)return;const m=Oa(h.nativeEvent);if(l&&gt(m))try{if(u_()&&d_())throw Error();if(!m.matches(":focus-visible"))return}catch{if(!f.current&&!g_(m))return}r(!0,h.nativeEvent,"focus")},onBlur(h){c.current=!1;const m=h.relatedTarget,g=h.nativeEvent,w=gt(m)&&m.hasAttribute(V0("focus-guard"))&&m.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{var y;const x=fw(i.domReference?i.domReference.ownerDocument:document);!m&&x===i.domReference||Su((y=s.current.floatingContext)==null?void 0:y.refs.floating.current,x)||Su(i.domReference,x)||w||r(!1,g,"focus")})}}),[s,i.domReference,r,l]);return v.useMemo(()=>a?{reference:p}:{},[a,p])}const kw="active",jw="selected";function sg(e,t,n){const r=new Map,o=n==="item";let s=e;if(o&&e){const{[kw]:i,[jw]:a,...l}=e;s=l}return{...n==="floating"&&{tabIndex:-1,[yA]:""},...s,...t.map(i=>{const a=i?i[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((i,a)=>(a&&Object.entries(a).forEach(l=>{let[c,d]=l;if(!(o&&[kw,jw].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof d=="function"){var f;(f=r.get(c))==null||f.push(d),i[c]=function(){for(var p,h=arguments.length,m=new Array(h),g=0;g<h;g++)m[g]=arguments[g];return(p=r.get(c))==null?void 0:p.map(w=>w(...m)).find(w=>w!==void 0)}}}else i[c]=d}),i),{})}}function CA(e){e===void 0&&(e=[]);const t=e.map(a=>a==null?void 0:a.reference),n=e.map(a=>a==null?void 0:a.floating),r=e.map(a=>a==null?void 0:a.item),o=v.useCallback(a=>sg(a,e,"reference"),t),s=v.useCallback(a=>sg(a,e,"floating"),n),i=v.useCallback(a=>sg(a,e,"item"),r);return v.useMemo(()=>({getReferenceProps:o,getFloatingProps:s,getItemProps:i}),[o,s,i])}const EA=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function kA(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:o}=e,{enabled:s=!0,role:i="dialog"}=t,a=(n=EA.get(i))!=null?n:i,l=Gk(),d=I0()!=null,f=v.useMemo(()=>a==="tooltip"||i==="label"?{["aria-"+(i==="label"?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":a==="alertdialog"?"dialog":a,"aria-controls":r?o:void 0,...a==="listbox"&&{role:"combobox"},...a==="menu"&&{id:l},...a==="menu"&&d&&{role:"menuitem"},...i==="select"&&{"aria-autocomplete":"none"},...i==="combobox"&&{"aria-autocomplete":"list"}},[a,o,d,r,l,i]),p=v.useMemo(()=>{const m={id:o,...a&&{role:a}};return a==="tooltip"||i==="label"?m:{...m,...a==="menu"&&{"aria-labelledby":l}}},[a,o,l,i]),h=v.useCallback(m=>{let{active:g,selected:w}=m;const y={role:"option",...g&&{id:o+"-option"}};switch(i){case"select":return{...y,"aria-selected":g&&w};case"combobox":return{...y,...g&&{"aria-selected":!0}}}return{}},[o,i]);return v.useMemo(()=>s?{reference:f,floating:p,item:h}:{},[s,f,p,h])}function Jk(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){const[n,r]=t.split("-"),o=n==="right"?"left":"right";return r===void 0?o:`${o}-${r}`}return t}function Rw(e,t,n,r){return e==="center"||r==="center"?{top:t}:e==="end"?{bottom:n}:e==="start"?{top:n}:{}}function Pw(e,t,n,r,o){return e==="center"||r==="center"?{left:t}:e==="end"?{[o==="ltr"?"right":"left"]:n}:e==="start"?{[o==="ltr"?"left":"right"]:n}:{}}const jA={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function RA({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,arrowX:s,arrowY:i,dir:a}){const[l,c="center"]=e.split("-"),d={width:t,height:t,transform:"rotate(45deg)",position:"absolute",[jA[l]]:r},f=-t/2;return l==="left"?{...d,...Rw(c,i,n,o),right:f,borderLeftColor:"transparent",borderBottomColor:"transparent"}:l==="right"?{...d,...Rw(c,i,n,o),left:f,borderRightColor:"transparent",borderTopColor:"transparent"}:l==="top"?{...d,...Pw(c,s,n,o,a),bottom:f,borderTopColor:"transparent",borderLeftColor:"transparent"}:l==="bottom"?{...d,...Pw(c,s,n,o,a),top:f,borderBottomColor:"transparent",borderRightColor:"transparent"}:{}}const U0=v.forwardRef(({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,visible:s,arrowX:i,arrowY:a,style:l,...c},d)=>{const{dir:f}=ii();return s?u.jsx("div",{...c,ref:d,style:{...l,...RA({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,dir:f,arrowX:i,arrowY:a})}}):null});U0.displayName="@mantine/core/FloatingArrow";const[PA,Zk]=ir("Popover component was not found in the tree");function Ku({children:e,active:t=!0,refProp:n="ref",innerRef:r}){const o=p3(t),s=Lt(o,r);return Go(e)?v.cloneElement(e,{[n]:s}):e}function ej(e){return u.jsx(P0,{tabIndex:-1,"data-autofocus":!0,...e})}Ku.displayName="@mantine/core/FocusTrap";ej.displayName="@mantine/core/FocusTrapInitialFocus";Ku.InitialFocus=ej;function TA(e){const t=document.createElement("div");return t.setAttribute("data-portal","true"),typeof e.className=="string"&&t.classList.add(...e.className.split(" ").filter(Boolean)),typeof e.style=="object"&&Object.assign(t.style,e.style),typeof e.id=="string"&&t.setAttribute("id",e.id),t}const NA={},tj=v.forwardRef((e,t)=>{const{children:n,target:r,...o}=K("Portal",NA,e),[s,i]=v.useState(!1),a=v.useRef(null);return ni(()=>(i(!0),a.current=r?typeof r=="string"?document.querySelector(r):r:TA(o),Up(t,a.current),!r&&a.current&&document.body.appendChild(a.current),()=>{!r&&a.current&&document.body.removeChild(a.current)}),[r]),!s||!a.current?null:Yl.createPortal(u.jsx(u.Fragment,{children:n}),a.current)});tj.displayName="@mantine/core/Portal";function sa({withinPortal:e=!0,children:t,...n}){return e?u.jsx(tj,{...n,children:t}):u.jsx(u.Fragment,{children:t})}sa.displayName="@mantine/core/OptionalPortal";const Rc=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${H(e==="bottom"?10:-10)})`},transitionProperty:"transform, opacity"}),tf={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:`translateY(${H(30)}`},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:`translateY(${H(-30)}`},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:`translateX(${H(30)}`},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:`translateX(${H(-30)}`},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(${H(-20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(${H(20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${H(20)}) rotate(-5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${H(20)}) rotate(5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...Rc("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...Rc("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...Rc("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...Rc("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...Rc("top"),common:{transformOrigin:"top right"}}},Tw={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function LA({transition:e,state:t,duration:n,timingFunction:r}){const o={transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e=="string"?e in tf?{transitionProperty:tf[e].transitionProperty,...o,...tf[e].common,...tf[e][Tw[t]]}:{}:{transitionProperty:e.transitionProperty,...o,...e.common,...e[Tw[t]]}}function DA({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:o,onExit:s,onEntered:i,onExited:a,enterDelay:l,exitDelay:c}){const d=en(),f=Hp(),p=d.respectReducedMotion?f:!1,[h,m]=v.useState(p?0:e),[g,w]=v.useState(r?"entered":"exited"),y=v.useRef(-1),x=v.useRef(-1),b=v.useRef(-1),S=E=>{const j=E?o:s,C=E?i:a;window.clearTimeout(y.current);const T=p?0:E?e:t;m(T),T===0?(typeof j=="function"&&j(),typeof C=="function"&&C(),w(E?"entered":"exited")):b.current=requestAnimationFrame(()=>{Xa.flushSync(()=>{w(E?"pre-entering":"pre-exiting")}),b.current=requestAnimationFrame(()=>{typeof j=="function"&&j(),w(E?"entering":"exiting"),y.current=window.setTimeout(()=>{typeof C=="function"&&C(),w(E?"entered":"exited")},T)})})},k=E=>{if(window.clearTimeout(x.current),typeof(E?l:c)!="number"){S(E);return}x.current=window.setTimeout(()=>{S(E)},E?l:c)};return xr(()=>{k(r)},[r]),v.useEffect(()=>()=>{window.clearTimeout(y.current),cancelAnimationFrame(b.current)},[]),{transitionDuration:h,transitionStatus:g,transitionTimingFunction:n||"ease"}}function Jo({keepMounted:e,transition:t="fade",duration:n=250,exitDuration:r=n,mounted:o,children:s,timingFunction:i="ease",onExit:a,onEntered:l,onEnter:c,onExited:d,enterDelay:f,exitDelay:p}){const{transitionDuration:h,transitionStatus:m,transitionTimingFunction:g}=DA({mounted:o,exitDuration:r,duration:n,timingFunction:i,onExit:a,onEntered:l,onEnter:c,onExited:d,enterDelay:f,exitDelay:p});return h===0?o?u.jsx(u.Fragment,{children:s({})}):e?s({display:"none"}):null:m==="exited"?e?s({display:"none"}):null:u.jsx(u.Fragment,{children:s(LA({transition:t,duration:h,state:m,timingFunction:g}))})}Jo.displayName="@mantine/core/Transition";var nj={dropdown:"m_38a85659",arrow:"m_a31dc6c1"};const MA={},qu=Q((e,t)=>{var w,y,x,b;const n=K("PopoverDropdown",MA,e),{className:r,style:o,vars:s,children:i,onKeyDownCapture:a,variant:l,classNames:c,styles:d,...f}=n,p=Zk(),h=ok({opened:p.opened,shouldReturnFocus:p.returnFocus}),m=p.withRoles?{"aria-labelledby":p.getTargetId(),id:p.getDropdownId(),role:"dialog",tabIndex:-1}:{},g=Lt(t,p.floating);return p.disabled?null:u.jsx(sa,{...p.portalProps,withinPortal:p.withinPortal,children:u.jsx(Jo,{mounted:p.opened,...p.transitionProps,transition:((w=p.transitionProps)==null?void 0:w.transition)||"fade",duration:((y=p.transitionProps)==null?void 0:y.duration)??150,keepMounted:p.keepMounted,exitDuration:typeof((x=p.transitionProps)==null?void 0:x.exitDuration)=="number"?p.transitionProps.exitDuration:(b=p.transitionProps)==null?void 0:b.duration,children:S=>u.jsx(Ku,{active:p.trapFocus&&p.opened,innerRef:g,children:u.jsxs(Y,{...m,...f,variant:l,onKeyDownCapture:e3(p.onClose,{active:p.closeOnEscape,onTrigger:h,onKeyDown:a}),"data-position":p.placement,"data-fixed":p.floatingStrategy==="fixed"||void 0,...p.getStyles("dropdown",{className:r,props:n,classNames:c,styles:d,style:[{...S,zIndex:p.zIndex,top:p.y??0,left:p.x??0,width:p.width==="target"?void 0:H(p.width)},o]}),children:[i,u.jsx(U0,{ref:p.arrowRef,arrowX:p.arrowX,arrowY:p.arrowY,visible:p.withArrow,position:p.placement,arrowSize:p.arrowSize,arrowRadius:p.arrowRadius,arrowOffset:p.arrowOffset,arrowPosition:p.arrowPosition,...p.getStyles("arrow",{props:n,classNames:c,styles:d})})]})})})})});qu.classes=nj;qu.displayName="@mantine/core/PopoverDropdown";const _A={refProp:"ref",popupType:"dialog"},Gp=Q((e,t)=>{const{children:n,refProp:r,popupType:o,...s}=K("PopoverTarget",_A,e);if(!Go(n))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const i=s,a=Zk(),l=Lt(a.reference,n.ref,t),c=a.withRoles?{"aria-haspopup":o,"aria-expanded":a.opened,"aria-controls":a.getDropdownId(),id:a.getTargetId()}:{};return v.cloneElement(n,{...i,...c,...a.targetProps,className:De(a.targetProps.className,i.className,n.props.className),[r]:l,...a.controlled?null:{onClick:a.onToggle}})});Gp.displayName="@mantine/core/PopoverTarget";function rj({opened:e,floating:t,position:n,positionDependencies:r}){const[o,s]=v.useState(0);v.useEffect(()=>{if(t.refs.reference.current&&t.refs.floating.current)return G_(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference.current,t.refs.floating.current,e,o,n]),xr(()=>{t.update()},r),xr(()=>{s(i=>i+1)},[e])}function AA(e){if(e===void 0)return{shift:!0,flip:!0};const t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function OA(e,t){const n=AA(e.middlewares),r=[Kk(e.offset)];return n.shift&&r.push(F0(typeof n.shift=="boolean"?{limiter:bw(),padding:5}:{limiter:bw(),padding:5,...n.shift})),n.flip&&r.push(typeof n.flip=="boolean"?Ly():Ly(n.flip)),n.inline&&r.push(typeof n.inline=="boolean"?Dy():Dy(n.inline)),r.push(qk({element:e.arrowRef,padding:e.arrowOffset})),(n.size||e.width==="target")&&r.push(sA({...typeof n.size=="boolean"?{}:n.size,apply({rects:o,availableWidth:s,availableHeight:i,...a}){var d;const c=((d=t().refs.floating.current)==null?void 0:d.style)??{};n.size&&(typeof n.size=="object"&&n.size.apply?n.size.apply({rects:o,availableWidth:s,availableHeight:i,...a}):Object.assign(c,{maxWidth:`${s}px`,maxHeight:`${i}px`})),e.width==="target"&&Object.assign(c,{width:`${o.reference.width}px`})}})),r}function $A(e){const[t,n]=Zt({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=()=>{var i;t&&((i=e.onClose)==null||i.call(e),n(!1))},o=()=>{var i,a;t?((i=e.onClose)==null||i.call(e),n(!1)):((a=e.onOpen)==null||a.call(e),n(!0))},s=B0({strategy:e.strategy,placement:e.position,middleware:OA(e,()=>s)});return rj({opened:e.opened,position:e.position,positionDependencies:e.positionDependencies||[],floating:s}),xr(()=>{var i;(i=e.onPositionChange)==null||i.call(e,s.placement)},[s.placement]),xr(()=>{var i,a;e.opened?(a=e.onOpen)==null||a.call(e):(i=e.onClose)==null||i.call(e)},[e.opened]),{floating:s,controlled:typeof e.opened=="boolean",opened:t,onClose:r,onToggle:o}}const FA={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:Bn("popover"),__staticSelector:"Popover",width:"max-content"},IA=(e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:wt(t),"--popover-shadow":g0(n)}});function At(e){var te,se,we,ke,Ie,Oe;const t=K("Popover",FA,e),{children:n,position:r,offset:o,onPositionChange:s,positionDependencies:i,opened:a,transitionProps:l,width:c,middlewares:d,withArrow:f,arrowSize:p,arrowOffset:h,arrowRadius:m,arrowPosition:g,unstyled:w,classNames:y,styles:x,closeOnClickOutside:b,withinPortal:S,portalProps:k,closeOnEscape:E,clickOutsideEvents:j,trapFocus:C,onClose:T,onOpen:N,onChange:_,zIndex:I,radius:U,shadow:O,id:M,defaultOpened:P,__staticSelector:L,withRoles:R,disabled:D,returnFocus:$,variant:A,keepMounted:B,vars:G,floatingStrategy:ne,...Z}=t,oe=pe({name:L,props:t,classes:nj,classNames:y,styles:x,unstyled:w,rootSelector:"dropdown",vars:G,varsResolver:IA}),ae=v.useRef(null),[ue,be]=v.useState(null),[fe,_e]=v.useState(null),{dir:he}=ii(),Se=Un(M),le=$A({middlewares:d,width:c,position:Jk(he,r),offset:typeof o=="number"?o+(f?p/2:0):o,arrowRef:ae,arrowOffset:h,onPositionChange:s,positionDependencies:i,opened:a,defaultOpened:P,onChange:_,onOpen:N,onClose:T,strategy:ne});nk(()=>b&&le.onClose(),j,[ue,fe]);const Te=v.useCallback(ee=>{be(ee),le.floating.refs.setReference(ee)},[le.floating.refs.setReference]),et=v.useCallback(ee=>{_e(ee),le.floating.refs.setFloating(ee)},[le.floating.refs.setFloating]);return u.jsx(PA,{value:{returnFocus:$,disabled:D,controlled:le.controlled,reference:Te,floating:et,x:le.floating.x,y:le.floating.y,arrowX:(we=(se=(te=le.floating)==null?void 0:te.middlewareData)==null?void 0:se.arrow)==null?void 0:we.x,arrowY:(Oe=(Ie=(ke=le.floating)==null?void 0:ke.middlewareData)==null?void 0:Ie.arrow)==null?void 0:Oe.y,opened:le.opened,arrowRef:ae,transitionProps:l,width:c,withArrow:f,arrowSize:p,arrowOffset:h,arrowRadius:m,arrowPosition:g,placement:le.floating.placement,trapFocus:C,withinPortal:S,portalProps:k,zIndex:I,radius:U,shadow:O,closeOnEscape:E,onClose:le.onClose,onToggle:le.onToggle,getTargetId:()=>`${Se}-target`,getDropdownId:()=>`${Se}-dropdown`,withRoles:R,targetProps:Z,__staticSelector:L,classNames:y,styles:x,unstyled:w,variant:A,keepMounted:B,getStyles:oe,floatingStrategy:ne},children:n})}At.Target=Gp;At.Dropdown=qu;At.displayName="@mantine/core/Popover";At.extend=e=>e;var Ir={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const zA=v.forwardRef(({className:e,...t},n)=>u.jsxs(Y,{component:"span",className:De(Ir.barsLoader,e),...t,ref:n,children:[u.jsx("span",{className:Ir.bar}),u.jsx("span",{className:Ir.bar}),u.jsx("span",{className:Ir.bar})]})),VA=v.forwardRef(({className:e,...t},n)=>u.jsxs(Y,{component:"span",className:De(Ir.dotsLoader,e),...t,ref:n,children:[u.jsx("span",{className:Ir.dot}),u.jsx("span",{className:Ir.dot}),u.jsx("span",{className:Ir.dot})]})),BA=v.forwardRef(({className:e,...t},n)=>u.jsx(Y,{component:"span",className:De(Ir.ovalLoader,e),...t,ref:n})),oj={bars:zA,oval:BA,dots:VA},UA={loaders:oj,type:"oval"},HA=(e,{size:t,color:n})=>({root:{"--loader-size":Le(t,"loader-size"),"--loader-color":n?vt(n,e):void 0}}),Zo=Q((e,t)=>{const n=K("Loader",UA,e),{size:r,color:o,type:s,vars:i,className:a,style:l,classNames:c,styles:d,unstyled:f,loaders:p,variant:h,children:m,...g}=n,w=pe({name:"Loader",props:n,classes:Ir,className:a,style:l,classNames:c,styles:d,unstyled:f,vars:i,varsResolver:HA});return m?u.jsx(Y,{...w("root"),ref:t,...g,children:m}):u.jsx(Y,{...w("root"),ref:t,component:p[s],variant:h,size:r,...g})});Zo.defaultLoaders=oj;Zo.classes=Ir;Zo.displayName="@mantine/core/Loader";var Qp={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21"};const Nw={orientation:"horizontal"},WA=(e,{borderWidth:t})=>({group:{"--ai-border-width":H(t)}}),H0=Q((e,t)=>{const n=K("ActionIconGroup",Nw,e),{className:r,style:o,classNames:s,styles:i,unstyled:a,orientation:l,vars:c,borderWidth:d,variant:f,mod:p,...h}=K("ActionIconGroup",Nw,e),m=pe({name:"ActionIconGroup",props:n,classes:Qp,className:r,style:o,classNames:s,styles:i,unstyled:a,vars:c,varsResolver:WA,rootSelector:"group"});return u.jsx(Y,{...m("group"),ref:t,variant:f,mod:[{"data-orientation":l},p],role:"group",...h})});H0.classes=Qp;H0.displayName="@mantine/core/ActionIconGroup";const KA={},qA=(e,{size:t,radius:n,variant:r,gradient:o,color:s,autoContrast:i})=>{const a=e.variantColorResolver({color:s||e.primaryColor,theme:e,gradient:o,variant:r||"filled",autoContrast:i});return{root:{"--ai-size":Le(t,"ai-size"),"--ai-radius":n===void 0?void 0:wt(n),"--ai-bg":s||r?a.background:void 0,"--ai-hover":s||r?a.hover:void 0,"--ai-hover-color":s||r?a.hoverColor:void 0,"--ai-color":a.color,"--ai-bd":s||r?a.border:void 0}}},Yt=yn((e,t)=>{const n=K("ActionIcon",KA,e),{className:r,unstyled:o,variant:s,classNames:i,styles:a,style:l,loading:c,loaderProps:d,size:f,color:p,radius:h,__staticSelector:m,gradient:g,vars:w,children:y,disabled:x,"data-disabled":b,autoContrast:S,mod:k,...E}=n,j=pe({name:["ActionIcon",m],props:n,className:r,style:l,classes:Qp,classNames:i,styles:a,unstyled:o,vars:w,varsResolver:qA});return u.jsxs(Kt,{...j("root",{active:!x&&!c&&!b}),...E,unstyled:o,variant:s,size:f,disabled:x||c,ref:t,mod:[{loading:c,disabled:x||b},k],children:[u.jsx(Jo,{mounted:!!c,transition:"slide-down",duration:150,children:C=>u.jsx(Y,{component:"span",...j("loader",{style:C}),"aria-hidden":!0,children:u.jsx(Zo,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...d})})}),u.jsx(Y,{component:"span",mod:{loading:c},...j("icon"),children:y})]})});Yt.classes=Qp;Yt.displayName="@mantine/core/ActionIcon";Yt.Group=H0;const sj=v.forwardRef(({size:e="var(--cb-icon-size, 70%)",style:t,...n},r)=>u.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:e,height:e},ref:r,...n,children:u.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));sj.displayName="@mantine/core/CloseIcon";var ij={root:"m_86a44da5","root--subtle":"m_220c80f2"};const YA={variant:"subtle"},GA=(e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":Le(t,"cb-size"),"--cb-radius":n===void 0?void 0:wt(n),"--cb-icon-size":H(r)}}),Sr=yn((e,t)=>{const n=K("CloseButton",YA,e),{iconSize:r,children:o,vars:s,radius:i,className:a,classNames:l,style:c,styles:d,unstyled:f,"data-disabled":p,disabled:h,variant:m,icon:g,mod:w,...y}=n,x=pe({name:"CloseButton",props:n,className:a,style:c,classes:ij,classNames:l,styles:d,unstyled:f,vars:s,varsResolver:GA});return u.jsxs(Kt,{ref:t,...y,unstyled:f,variant:m,disabled:h,mod:[{disabled:h||p},w],...x("root",{variant:m,active:!h&&!p}),children:[g||u.jsx(sj,{}),o]})});Sr.classes=ij;Sr.displayName="@mantine/core/CloseButton";function QA(e){return v.Children.toArray(e).filter(Boolean)}var aj={root:"m_4081bf90"};const XA={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},JA=(e,{grow:t,preventGrowOverflow:n,gap:r,align:o,justify:s,wrap:i},{childWidth:a})=>({root:{"--group-child-width":t&&n?a:void 0,"--group-gap":Wr(r),"--group-align":o,"--group-justify":s,"--group-wrap":i}}),Ge=Q((e,t)=>{const n=K("Group",XA,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,children:l,gap:c,align:d,justify:f,wrap:p,grow:h,preventGrowOverflow:m,vars:g,variant:w,__size:y,mod:x,...b}=n,S=QA(l),k=S.length,E=Wr(c??"md"),C={childWidth:`calc(${100/k}% - (${E} - ${E} / ${k}))`},T=pe({name:"Group",props:n,stylesCtx:C,className:o,style:s,classes:aj,classNames:r,styles:i,unstyled:a,vars:g,varsResolver:JA});return u.jsx(Y,{...T("root"),ref:t,variant:w,mod:[{grow:h},x],size:y,...b,children:S})});Ge.classes=aj;Ge.displayName="@mantine/core/Group";var lj={root:"m_9814e45f"};const ZA={zIndex:Bn("modal")},eO=(e,{gradient:t,color:n,backgroundOpacity:r,blur:o,radius:s,zIndex:i})=>({root:{"--overlay-bg":t||(n!==void 0||r!==void 0)&&so(n||"#000",r??.6)||void 0,"--overlay-filter":o?`blur(${H(o)})`:void 0,"--overlay-radius":s===void 0?void 0:wt(s),"--overlay-z-index":i==null?void 0:i.toString()}}),Cu=yn((e,t)=>{const n=K("Overlay",ZA,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,fixed:c,center:d,children:f,radius:p,zIndex:h,gradient:m,blur:g,color:w,backgroundOpacity:y,mod:x,...b}=n,S=pe({name:"Overlay",props:n,classes:lj,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:eO});return u.jsx(Y,{ref:t,...S("root"),mod:[{center:d,fixed:c},x],...b,children:f})});Cu.classes=lj;Cu.displayName="@mantine/core/Overlay";const[tO,es]=ir("ModalBase component was not found in tree");function nO({opened:e,transitionDuration:t}){const[n,r]=v.useState(e),o=v.useRef(),i=Hp()?0:t;return v.useEffect(()=>(e?(r(!0),window.clearTimeout(o.current)):i===0?r(!1):o.current=window.setTimeout(()=>r(!1),i),()=>window.clearTimeout(o.current)),[e,i]),n}function rO({id:e,transitionProps:t,opened:n,trapFocus:r,closeOnEscape:o,onClose:s,returnFocus:i}){const a=Un(e),[l,c]=v.useState(!1),[d,f]=v.useState(!1),p=typeof(t==null?void 0:t.duration)=="number"?t==null?void 0:t.duration:200,h=nO({opened:n,transitionDuration:p});return Ys("keydown",m=>{var g;m.key==="Escape"&&o&&n&&((g=m.target)==null?void 0:g.getAttribute("data-mantine-stop-propagation"))!=="true"&&s()},{capture:!0}),ok({opened:n,shouldReturnFocus:r&&i}),{_id:a,titleMounted:l,bodyMounted:d,shouldLockScroll:h,setTitleMounted:c,setBodyMounted:f}}const cj=v.forwardRef(({keepMounted:e,opened:t,onClose:n,id:r,transitionProps:o,trapFocus:s,closeOnEscape:i,returnFocus:a,closeOnClickOutside:l,withinPortal:c,portalProps:d,lockScroll:f,children:p,zIndex:h,shadow:m,padding:g,__vars:w,unstyled:y,removeScrollProps:x,...b},S)=>{const{_id:k,titleMounted:E,bodyMounted:j,shouldLockScroll:C,setTitleMounted:T,setBodyMounted:N}=rO({id:r,transitionProps:o,opened:t,trapFocus:s,closeOnEscape:i,onClose:n,returnFocus:a}),{key:_,...I}=x||{};return u.jsx(sa,{...d,withinPortal:c,children:u.jsx(tO,{value:{opened:t,onClose:n,closeOnClickOutside:l,transitionProps:{...o,keepMounted:e},getTitleId:()=>`${k}-title`,getBodyId:()=>`${k}-body`,titleMounted:E,bodyMounted:j,setTitleMounted:T,setBodyMounted:N,trapFocus:s,closeOnEscape:i,zIndex:h,unstyled:y},children:u.jsx(Vp,{enabled:C&&f,...I,children:u.jsx(Y,{ref:S,...b,__vars:{...w,"--mb-z-index":(h||Bn("modal")).toString(),"--mb-shadow":g0(m),"--mb-padding":Wr(g)},children:p})},_)})})});function oO(){const e=es();return v.useEffect(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var Fl={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};const W0=v.forwardRef(({className:e,...t},n)=>{const r=oO(),o=es();return u.jsx(Y,{ref:n,...t,id:r,className:De({[Fl.body]:!o.unstyled},e)})});W0.displayName="@mantine/core/ModalBaseBody";const K0=v.forwardRef(({className:e,onClick:t,...n},r)=>{const o=es();return u.jsx(Sr,{ref:r,...n,onClick:s=>{o.onClose(),t==null||t(s)},className:De({[Fl.close]:!o.unstyled},e),unstyled:o.unstyled})});K0.displayName="@mantine/core/ModalBaseCloseButton";const uj=v.forwardRef(({transitionProps:e,className:t,innerProps:n,onKeyDown:r,style:o,...s},i)=>{const a=es();return u.jsx(Jo,{mounted:a.opened,transition:"pop",...a.transitionProps,...e,children:l=>u.jsx("div",{...n,className:De({[Fl.inner]:!a.unstyled},n.className),children:u.jsx(Ku,{active:a.opened&&a.trapFocus,innerRef:i,children:u.jsx(T0,{...s,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":a.bodyMounted?a.getBodyId():void 0,"aria-labelledby":a.titleMounted?a.getTitleId():void 0,style:[o,l],className:De({[Fl.content]:!a.unstyled},t),unstyled:a.unstyled,children:s.children})})})})}),q0=v.forwardRef(({className:e,...t},n)=>{const r=es();return u.jsx(Y,{component:"header",ref:n,className:De({[Fl.header]:!r.unstyled},e),...t})});q0.displayName="@mantine/core/ModalBaseHeader";const sO={duration:200,timingFunction:"ease",transition:"fade"};function iO(e){const t=es();return{...sO,...t.transitionProps,...e}}const Y0=v.forwardRef(({onClick:e,transitionProps:t,style:n,...r},o)=>{const s=es(),i=iO(t);return u.jsx(Jo,{mounted:s.opened,...i,transition:"fade",children:a=>u.jsx(Cu,{ref:o,fixed:!0,style:[n,a],zIndex:s.zIndex,unstyled:s.unstyled,onClick:l=>{e==null||e(l),s.closeOnClickOutside&&s.onClose()},...r})})});Y0.displayName="@mantine/core/ModalBaseOverlay";function aO(){const e=es();return v.useEffect(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}const G0=v.forwardRef(({className:e,...t},n)=>{const r=aO(),o=es();return u.jsx(Y,{component:"h2",ref:n,className:De({[Fl.title]:!o.unstyled},e),...t,id:r})});G0.displayName="@mantine/core/ModalBaseTitle";function dj({children:e}){return u.jsx(u.Fragment,{children:e})}const[lO,Yu]=Uu({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var Cr={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const Lw={},cO=(e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${Jt(t)} - ${H(2)})`}}),Xp=Q((e,t)=>{const n=K("InputDescription",Lw,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,size:c,__staticSelector:d,__inheritStyles:f=!0,variant:p,...h}=K("InputDescription",Lw,n),m=Yu(),g=pe({name:["InputWrapper",d],props:n,classes:Cr,className:o,style:s,classNames:r,styles:i,unstyled:a,rootSelector:"description",vars:l,varsResolver:cO}),w=f&&(m==null?void 0:m.getStyles)||g;return u.jsx(Y,{component:"p",ref:t,variant:p,size:c,...w("description",m!=null&&m.getStyles?{className:o,style:s}:void 0),...h})});Xp.classes=Cr;Xp.displayName="@mantine/core/InputDescription";const uO={},dO=(e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${Jt(t)} - ${H(2)})`}}),Jp=Q((e,t)=>{const n=K("InputError",uO,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,size:c,__staticSelector:d,__inheritStyles:f=!0,variant:p,...h}=n,m=pe({name:["InputWrapper",d],props:n,classes:Cr,className:o,style:s,classNames:r,styles:i,unstyled:a,rootSelector:"error",vars:l,varsResolver:dO}),g=Yu(),w=f&&(g==null?void 0:g.getStyles)||m;return u.jsx(Y,{component:"p",ref:t,variant:p,size:c,...w("error",g!=null&&g.getStyles?{className:o,style:s}:void 0),...h})});Jp.classes=Cr;Jp.displayName="@mantine/core/InputError";const Dw={labelElement:"label"},fO=(e,{size:t})=>({label:{"--input-label-size":Jt(t),"--input-asterisk-color":void 0}}),Zp=Q((e,t)=>{const n=K("InputLabel",Dw,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,labelElement:c,size:d,required:f,htmlFor:p,onMouseDown:h,children:m,__staticSelector:g,variant:w,mod:y,...x}=K("InputLabel",Dw,n),b=pe({name:["InputWrapper",g],props:n,classes:Cr,className:o,style:s,classNames:r,styles:i,unstyled:a,rootSelector:"label",vars:l,varsResolver:fO}),S=Yu(),k=(S==null?void 0:S.getStyles)||b;return u.jsxs(Y,{...k("label",S!=null&&S.getStyles?{className:o,style:s}:void 0),component:c,variant:w,size:d,ref:t,htmlFor:c==="label"?p:void 0,mod:[{required:f},y],onMouseDown:E=>{h==null||h(E),!E.defaultPrevented&&E.detail>1&&E.preventDefault()},...x,children:[m,f&&u.jsx("span",{...k("required"),"aria-hidden":!0,children:" *"})]})});Zp.classes=Cr;Zp.displayName="@mantine/core/InputLabel";const Mw={},Q0=Q((e,t)=>{const n=K("InputPlaceholder",Mw,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,__staticSelector:c,variant:d,error:f,mod:p,...h}=K("InputPlaceholder",Mw,n),m=pe({name:["InputPlaceholder",c],props:n,classes:Cr,className:o,style:s,classNames:r,styles:i,unstyled:a,rootSelector:"placeholder"});return u.jsx(Y,{...m("placeholder"),mod:[{error:!!f},p],component:"span",variant:d,ref:t,...h})});Q0.classes=Cr;Q0.displayName="@mantine/core/InputPlaceholder";function pO(e,{hasDescription:t,hasError:n}){const r=e.findIndex(l=>l==="input"),o=e.slice(0,r),s=e.slice(r+1),i=t&&o.includes("description")||n&&o.includes("error");return{offsetBottom:t&&s.includes("description")||n&&s.includes("error"),offsetTop:i}}const hO={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},mO=(e,{size:t})=>({label:{"--input-label-size":Jt(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${Jt(t)} - ${H(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${Jt(t)} - ${H(2)})`}}),X0=Q((e,t)=>{const n=K("InputWrapper",hO,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,size:c,variant:d,__staticSelector:f,inputContainer:p,inputWrapperOrder:h,label:m,error:g,description:w,labelProps:y,descriptionProps:x,errorProps:b,labelElement:S,children:k,withAsterisk:E,id:j,required:C,__stylesApiProps:T,mod:N,..._}=n,I=pe({name:["InputWrapper",f],props:T||n,classes:Cr,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:mO}),U={size:c,variant:d,__staticSelector:f},O=Un(j),M=typeof E=="boolean"?E:C,P=(b==null?void 0:b.id)||`${O}-error`,L=(x==null?void 0:x.id)||`${O}-description`,R=O,D=!!g&&typeof g!="boolean",$=!!w,A=`${D?P:""} ${$?L:""}`,B=A.trim().length>0?A.trim():void 0,G=(y==null?void 0:y.id)||`${O}-label`,ne=m&&u.jsx(Zp,{labelElement:S,id:G,htmlFor:R,required:M,...U,...y,children:m},"label"),Z=$&&u.jsx(Xp,{...x,...U,size:(x==null?void 0:x.size)||U.size,id:(x==null?void 0:x.id)||L,children:w},"description"),oe=u.jsx(v.Fragment,{children:p(k)},"input"),ae=D&&v.createElement(Jp,{...b,...U,size:(b==null?void 0:b.size)||U.size,key:"error",id:(b==null?void 0:b.id)||P},g),ue=h.map(be=>{switch(be){case"label":return ne;case"input":return oe;case"description":return Z;case"error":return ae;default:return null}});return u.jsx(lO,{value:{getStyles:I,describedBy:B,inputId:R,labelId:G,...pO(h,{hasDescription:$,hasError:D})},children:u.jsx(Y,{ref:t,variant:d,size:c,mod:[{error:!!g},N],...I("root"),..._,children:ue})})});X0.classes=Cr;X0.displayName="@mantine/core/InputWrapper";const gO={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},yO=(e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":Le(t.size,"input-height"),"--input-fz":Jt(t.size),"--input-radius":t.radius===void 0?void 0:wt(t.radius),"--input-left-section-width":t.leftSectionWidth!==void 0?H(t.leftSectionWidth):void 0,"--input-right-section-width":t.rightSectionWidth!==void 0?H(t.rightSectionWidth):void 0,"--input-padding-y":t.multiline?Le(t.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}}),st=yn((e,t)=>{const n=K("Input",gO,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,required:l,__staticSelector:c,__stylesApiProps:d,size:f,wrapperProps:p,error:h,disabled:m,leftSection:g,leftSectionProps:w,leftSectionWidth:y,rightSection:x,rightSectionProps:b,rightSectionWidth:S,rightSectionPointerEvents:k,leftSectionPointerEvents:E,variant:j,vars:C,pointer:T,multiline:N,radius:_,id:I,withAria:U,withErrorStyles:O,mod:M,inputSize:P,...L}=n,{styleProps:R,rest:D}=si(L),$=Yu(),A={offsetBottom:$==null?void 0:$.offsetBottom,offsetTop:$==null?void 0:$.offsetTop},B=pe({name:["Input",c],props:d||n,classes:Cr,className:o,style:s,classNames:r,styles:i,unstyled:a,stylesCtx:A,rootSelector:"wrapper",vars:C,varsResolver:yO}),G=U?{required:l,disabled:m,"aria-invalid":!!h,"aria-describedby":$==null?void 0:$.describedBy,id:($==null?void 0:$.inputId)||I}:{};return u.jsxs(Y,{...B("wrapper"),...R,...p,mod:[{error:!!h&&O,pointer:T,disabled:m,multiline:N,"data-with-right-section":!!x,"data-with-left-section":!!g},M],variant:j,size:f,children:[g&&u.jsx("div",{...w,"data-position":"left",...B("section",{className:w==null?void 0:w.className,style:w==null?void 0:w.style}),children:g}),u.jsx(Y,{component:"input",...D,...G,ref:t,required:l,mod:{disabled:m,error:!!h&&O},variant:j,__size:P,...B("input")}),x&&u.jsx("div",{...b,"data-position":"right",...B("section",{className:b==null?void 0:b.className,style:b==null?void 0:b.style}),children:x})]})});st.classes=Cr;st.Wrapper=X0;st.Label=Zp;st.Error=Jp;st.Description=Xp;st.Placeholder=Q0;st.displayName="@mantine/core/Input";function fj(e,t,n){const r=K(e,t,n),{label:o,description:s,error:i,required:a,classNames:l,styles:c,className:d,unstyled:f,__staticSelector:p,__stylesApiProps:h,errorProps:m,labelProps:g,descriptionProps:w,wrapperProps:y,id:x,size:b,style:S,inputContainer:k,inputWrapperOrder:E,withAsterisk:j,variant:C,vars:T,mod:N,..._}=r,{styleProps:I,rest:U}=si(_),O={label:o,description:s,error:i,required:a,classNames:l,className:d,__staticSelector:p,__stylesApiProps:h||r,errorProps:m,labelProps:g,descriptionProps:w,unstyled:f,styles:c,size:b,style:S,inputContainer:k,inputWrapperOrder:E,withAsterisk:j,variant:C,id:x,mod:N,...y};return{...U,classNames:l,styles:c,unstyled:f,wrapperProps:{...O,...I},inputProps:{required:a,classNames:l,styles:c,unstyled:f,size:b,__staticSelector:p,__stylesApiProps:h||r,error:i,variant:C,id:x}}}const vO={__staticSelector:"InputBase",withAria:!0},ar=yn((e,t)=>{const{inputProps:n,wrapperProps:r,...o}=fj("InputBase",vO,e);return u.jsx(st.Wrapper,{...r,children:u.jsx(st,{...n,...o,ref:t})})});ar.classes={...st.classes,...st.Wrapper.classes};ar.displayName="@mantine/core/InputBase";const xO={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var pj={root:"m_8bffd616"};const bO={},bo=yn((e,t)=>{const n=K("Flex",bO,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,gap:c,rowGap:d,columnGap:f,align:p,justify:h,wrap:m,direction:g,...w}=n,y=pe({name:"Flex",classes:pj,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l}),x=en(),b=yk(),S=gk({styleProps:{gap:c,rowGap:d,columnGap:f,align:p,justify:h,wrap:m,direction:g},theme:x,data:xO});return u.jsxs(u.Fragment,{children:[S.hasResponsiveStyles&&u.jsx(S0,{selector:`.${b}`,styles:S.styles,media:S.media}),u.jsx(Y,{ref:t,...y("root",{className:b,style:Bp(S.inlineStyles)}),...w})]})});bo.classes=pj;bo.displayName="@mantine/core/Flex";function _y({style:e,size:t=16,...n}){return u.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:H(t),height:H(t),display:"block"},...n,children:u.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}_y.displayName="@mantine/core/AccordionChevron";var hj={root:"m_7f854edf"};const wO={position:{bottom:0,right:0},zIndex:Bn("modal"),withinPortal:!0},SO=(e,{zIndex:t,position:n})=>({root:{"--affix-z-index":t==null?void 0:t.toString(),"--affix-top":H(n==null?void 0:n.top),"--affix-left":H(n==null?void 0:n.left),"--affix-bottom":H(n==null?void 0:n.bottom),"--affix-right":H(n==null?void 0:n.right)}}),J0=Q((e,t)=>{const n=K("Affix",wO,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,portalProps:c,zIndex:d,withinPortal:f,position:p,...h}=n,m=pe({name:"Affix",classes:hj,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:SO});return u.jsx(sa,{...c,withinPortal:f,children:u.jsx(Y,{ref:t,...m("root"),...h})})});J0.classes=hj;J0.displayName="@mantine/core/Affix";var mj={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const CO={},EO=(e,{radius:t,color:n,variant:r,autoContrast:o})=>{const s=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||"light",autoContrast:o});return{root:{"--alert-radius":t===void 0?void 0:wt(t),"--alert-bg":n||r?s.background:void 0,"--alert-color":s.color,"--alert-bd":n||r?s.border:void 0}}},eh=Q((e,t)=>{const n=K("Alert",CO,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,radius:c,color:d,title:f,children:p,id:h,icon:m,withCloseButton:g,onClose:w,closeButtonLabel:y,variant:x,autoContrast:b,...S}=n,k=pe({name:"Alert",classes:mj,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:EO}),E=Un(h),j=f&&`${E}-title`||void 0,C=`${E}-body`;return u.jsx(Y,{id:E,...k("root",{variant:x}),variant:x,ref:t,...S,role:"alert","aria-describedby":C,"aria-labelledby":j,children:u.jsxs("div",{...k("wrapper"),children:[m&&u.jsx("div",{...k("icon"),children:m}),u.jsxs("div",{...k("body"),children:[f&&u.jsx("div",{...k("title"),"data-with-close-button":g||void 0,children:u.jsx("span",{id:j,...k("label"),children:f})}),p&&u.jsx("div",{id:C,...k("message"),"data-variant":x,children:p})]}),g&&u.jsx(Sr,{...k("closeButton"),onClick:w,variant:"transparent",size:16,iconSize:16,"aria-label":y,unstyled:a})]})})});eh.classes=mj;eh.displayName="@mantine/core/Alert";var gj={root:"m_b6d8b162"};function kO(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const jO={inherit:!1},RO=(e,{variant:t,lineClamp:n,gradient:r,size:o,color:s})=>({root:{"--text-fz":Jt(o),"--text-lh":t3(o),"--text-gradient":t==="gradient"?Cy(r,e):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":s?vt(s,e):void 0}}),xt=yn((e,t)=>{const n=K("Text",jO,e),{lineClamp:r,truncate:o,inline:s,inherit:i,gradient:a,span:l,__staticSelector:c,vars:d,className:f,style:p,classNames:h,styles:m,unstyled:g,variant:w,mod:y,size:x,...b}=n,S=pe({name:["Text",c],props:n,classes:gj,className:f,style:p,classNames:h,styles:m,unstyled:g,vars:d,varsResolver:RO});return u.jsx(Y,{...S("root",{focusable:!0}),ref:t,component:l?"span":"p",variant:w,mod:[{"data-truncate":kO(o),"data-line-clamp":typeof r=="number","data-inline":s,"data-inherit":i},y],size:x,...b})});xt.classes=gj;xt.displayName="@mantine/core/Text";var yj={root:"m_849cf0da"};const PO={underline:"hover"},ts=yn((e,t)=>{const{underline:n,className:r,unstyled:o,mod:s,...i}=K("Anchor",PO,e);return u.jsx(xt,{component:"a",ref:t,className:De({[yj.root]:!o},r),...i,mod:[{underline:n},s],__staticSelector:"Anchor",unstyled:o})});ts.classes=yj;ts.displayName="@mantine/core/Anchor";const[TO,Jl]=ir("AppShell was not found in tree");var ai={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const NO={},Z0=Q((e,t)=>{const n=K("AppShellAside",NO,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,withBorder:c,zIndex:d,mod:f,...p}=n,h=Jl();return h.disabled?null:u.jsx(Y,{component:"aside",ref:t,mod:[{"with-border":c??h.withBorder},f],...h.getStyles("aside",{className:o,classNames:r,styles:i,style:s}),...p,__vars:{"--app-shell-aside-z-index":`calc(${d??h.zIndex} + 1)`}})});Z0.classes=ai;Z0.displayName="@mantine/core/AppShellAside";const LO={},e1=Q((e,t)=>{var m;const n=K("AppShellFooter",LO,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,withBorder:c,zIndex:d,mod:f,...p}=n,h=Jl();return h.disabled?null:u.jsx(Y,{component:"footer",ref:t,mod:[{"with-border":c??h.withBorder},f],...h.getStyles("footer",{className:De({[Vp.classNames.zeroRight]:h.offsetScrollbars},o),classNames:r,styles:i,style:s}),...p,__vars:{"--app-shell-footer-z-index":(m=d??h.zIndex)==null?void 0:m.toString()}})});e1.classes=ai;e1.displayName="@mantine/core/AppShellFooter";const DO={},t1=Q((e,t)=>{var m;const n=K("AppShellHeader",DO,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,withBorder:c,zIndex:d,mod:f,...p}=n,h=Jl();return h.disabled?null:u.jsx(Y,{component:"header",ref:t,mod:[{"with-border":c??h.withBorder},f],...h.getStyles("header",{className:De({[Vp.classNames.zeroRight]:h.offsetScrollbars},o),classNames:r,styles:i,style:s}),...p,__vars:{"--app-shell-header-z-index":(m=d??h.zIndex)==null?void 0:m.toString()}})});t1.classes=ai;t1.displayName="@mantine/core/AppShellHeader";const MO={},n1=Q((e,t)=>{const n=K("AppShellMain",MO,e),{classNames:r,className:o,style:s,styles:i,vars:a,...l}=n,c=Jl();return u.jsx(Y,{component:"main",ref:t,...c.getStyles("main",{className:o,style:s,classNames:r,styles:i}),...l})});n1.classes=ai;n1.displayName="@mantine/core/AppShellMain";function Gu(e){return typeof e=="object"?e.base:e}function Qu(e){const t=typeof e=="object"&&e!==null&&typeof e.base<"u"&&Object.keys(e).length===1;return typeof e=="number"||typeof e=="string"||t}function Xu(e){return!(typeof e!="object"||e===null||Object.keys(e).length===1&&"base"in e)}function _O({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,aside:r,theme:o}){var l,c,d;const s=r==null?void 0:r.width,i="translateX(var(--app-shell-aside-width))",a="translateX(calc(var(--app-shell-aside-width) * -1))";if(r!=null&&r.breakpoint&&!((l=r==null?void 0:r.collapsed)!=null&&l.mobile)&&(n[r==null?void 0:r.breakpoint]=n[r==null?void 0:r.breakpoint]||{},n[r==null?void 0:r.breakpoint]["--app-shell-aside-width"]="100%",n[r==null?void 0:r.breakpoint]["--app-shell-aside-offset"]="0px"),Qu(s)){const f=H(Gu(s));e["--app-shell-aside-width"]=f,e["--app-shell-aside-offset"]=f}if(Xu(s)&&(typeof s.base<"u"&&(e["--app-shell-aside-width"]=H(s.base),e["--app-shell-aside-offset"]=H(s.base)),an(s).forEach(f=>{f!=="base"&&(t[f]=t[f]||{},t[f]["--app-shell-aside-width"]=H(s[f]),t[f]["--app-shell-aside-offset"]=H(s[f]))})),(c=r==null?void 0:r.collapsed)!=null&&c.desktop){const f=r.breakpoint;t[f]=t[f]||{},t[f]["--app-shell-aside-transform"]=i,t[f]["--app-shell-aside-transform-rtl"]=a,t[f]["--app-shell-aside-offset"]="0px !important"}if((d=r==null?void 0:r.collapsed)!=null&&d.mobile){const f=y0(r.breakpoint,o)-.1;n[f]=n[f]||{},n[f]["--app-shell-aside-width"]="100%",n[f]["--app-shell-aside-offset"]="0px",n[f]["--app-shell-aside-transform"]=i,n[f]["--app-shell-aside-transform-rtl"]=a}}function AO({baseStyles:e,minMediaStyles:t,footer:n}){const r=n==null?void 0:n.height,o="translateY(var(--app-shell-footer-height))",s=(n==null?void 0:n.offset)??!0;if(Qu(r)){const i=H(Gu(r));e["--app-shell-footer-height"]=i,s&&(e["--app-shell-footer-offset"]=i)}Xu(r)&&(typeof r.base<"u"&&(e["--app-shell-footer-height"]=H(r.base),s&&(e["--app-shell-footer-offset"]=H(r.base))),an(r).forEach(i=>{i!=="base"&&(t[i]=t[i]||{},t[i]["--app-shell-footer-height"]=H(r[i]),s&&(t[i]["--app-shell-footer-offset"]=H(r[i])))})),n!=null&&n.collapsed&&(e["--app-shell-footer-transform"]=o,e["--app-shell-footer-offset"]="0px !important")}function OO({baseStyles:e,minMediaStyles:t,header:n}){const r=n==null?void 0:n.height,o="translateY(calc(var(--app-shell-header-height) * -1))",s=(n==null?void 0:n.offset)??!0;if(Qu(r)){const i=H(Gu(r));e["--app-shell-header-height"]=i,s&&(e["--app-shell-header-offset"]=i)}Xu(r)&&(typeof r.base<"u"&&(e["--app-shell-header-height"]=H(r.base),s&&(e["--app-shell-header-offset"]=H(r.base))),an(r).forEach(i=>{i!=="base"&&(t[i]=t[i]||{},t[i]["--app-shell-header-height"]=H(r[i]),s&&(t[i]["--app-shell-header-offset"]=H(r[i])))})),n!=null&&n.collapsed&&(e["--app-shell-header-transform"]=o,e["--app-shell-header-offset"]="0px !important")}function $O({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,navbar:r,theme:o}){var l,c,d;const s=r==null?void 0:r.width,i="translateX(calc(var(--app-shell-navbar-width) * -1))",a="translateX(var(--app-shell-navbar-width))";if(r!=null&&r.breakpoint&&!((l=r==null?void 0:r.collapsed)!=null&&l.mobile)&&(n[r==null?void 0:r.breakpoint]=n[r==null?void 0:r.breakpoint]||{},n[r==null?void 0:r.breakpoint]["--app-shell-navbar-width"]="100%",n[r==null?void 0:r.breakpoint]["--app-shell-navbar-offset"]="0px"),Qu(s)){const f=H(Gu(s));e["--app-shell-navbar-width"]=f,e["--app-shell-navbar-offset"]=f}if(Xu(s)&&(typeof s.base<"u"&&(e["--app-shell-navbar-width"]=H(s.base),e["--app-shell-navbar-offset"]=H(s.base)),an(s).forEach(f=>{f!=="base"&&(t[f]=t[f]||{},t[f]["--app-shell-navbar-width"]=H(s[f]),t[f]["--app-shell-navbar-offset"]=H(s[f]))})),(c=r==null?void 0:r.collapsed)!=null&&c.desktop){const f=r.breakpoint;t[f]=t[f]||{},t[f]["--app-shell-navbar-transform"]=i,t[f]["--app-shell-navbar-transform-rtl"]=a,t[f]["--app-shell-navbar-offset"]="0px !important"}if((d=r==null?void 0:r.collapsed)!=null&&d.mobile){const f=y0(r.breakpoint,o)-.1;n[f]=n[f]||{},n[f]["--app-shell-navbar-width"]="100%",n[f]["--app-shell-navbar-offset"]="0px",n[f]["--app-shell-navbar-transform"]=i,n[f]["--app-shell-navbar-transform-rtl"]=a}}function ig(e){return Number(e)===0?"0px":Wr(e)}function FO({padding:e,baseStyles:t,minMediaStyles:n}){Qu(e)&&(t["--app-shell-padding"]=ig(Gu(e))),Xu(e)&&(e.base&&(t["--app-shell-padding"]=ig(e.base)),an(e).forEach(r=>{r!=="base"&&(n[r]=n[r]||{},n[r]["--app-shell-padding"]=ig(e[r]))}))}function IO({navbar:e,header:t,footer:n,aside:r,padding:o,theme:s}){const i={},a={},l={};$O({baseStyles:l,minMediaStyles:i,maxMediaStyles:a,navbar:e,theme:s}),_O({baseStyles:l,minMediaStyles:i,maxMediaStyles:a,aside:r,theme:s}),OO({baseStyles:l,minMediaStyles:i,header:t}),AO({baseStyles:l,minMediaStyles:i,footer:n}),FO({baseStyles:l,minMediaStyles:i,padding:o});const c=Xb(an(i),s).map(p=>({query:`(min-width: ${np(p.px)})`,styles:i[p.value]})),d=Xb(an(a),s).map(p=>({query:`(max-width: ${np(p.px)})`,styles:a[p.value]})),f=[...c,...d];return{baseStyles:l,media:f}}function zO({navbar:e,header:t,aside:n,footer:r,padding:o}){const s=en(),i=oi(),{media:a,baseStyles:l}=IO({navbar:e,header:t,footer:r,aside:n,padding:o,theme:s});return u.jsx(S0,{media:a,styles:l,selector:i.cssVariablesSelector})}const VO={},r1=Q((e,t)=>{const n=K("AppShellNavbar",VO,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,withBorder:c,zIndex:d,mod:f,...p}=n,h=Jl();return h.disabled?null:u.jsx(Y,{component:"nav",ref:t,mod:[{"with-border":c??h.withBorder},f],...h.getStyles("navbar",{className:o,classNames:r,styles:i,style:s}),...p,__vars:{"--app-shell-navbar-z-index":`calc(${d??h.zIndex} + 1)`}})});r1.classes=ai;r1.displayName="@mantine/core/AppShellNavbar";const BO={},o1=yn((e,t)=>{const n=K("AppShellSection",BO,e),{classNames:r,className:o,style:s,styles:i,vars:a,grow:l,mod:c,...d}=n,f=Jl();return u.jsx(Y,{ref:t,mod:[{grow:l},c],...f.getStyles("section",{className:o,style:s,classNames:r,styles:i}),...d})});o1.classes=ai;o1.displayName="@mantine/core/AppShellSection";function UO({transitionDuration:e,disabled:t}){const[n,r]=v.useState(!0),o=v.useRef(),s=v.useRef();return Ys("resize",()=>{r(!0),clearTimeout(o.current),o.current=window.setTimeout(()=>r(!1),200)}),ni(()=>{v.startTransition(()=>{r(!0),clearTimeout(s.current),s.current=window.setTimeout(()=>r(!1),e||0)})},[t,e]),n}const HO={withBorder:!0,offsetScrollbars:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:Bn("app")},WO=(e,{transitionDuration:t,transitionTimingFunction:n})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":n}}),Br=Q((e,t)=>{const n=K("AppShell",HO,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,navbar:c,withBorder:d,padding:f,transitionDuration:p,transitionTimingFunction:h,header:m,zIndex:g,layout:w,disabled:y,aside:x,footer:b,offsetScrollbars:S,mod:k,...E}=n,j=pe({name:"AppShell",classes:ai,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:WO}),C=UO({disabled:y,transitionDuration:p});return u.jsxs(TO,{value:{getStyles:j,withBorder:d,zIndex:g,disabled:y,offsetScrollbars:S},children:[u.jsx(zO,{navbar:c,header:m,aside:x,footer:b,padding:f}),u.jsx(Y,{ref:t,...j("root"),mod:[{resizing:C,layout:w,disabled:y},k],...E})]})});Br.classes=ai;Br.displayName="@mantine/core/AppShell";Br.Navbar=r1;Br.Header=t1;Br.Main=n1;Br.Aside=Z0;Br.Footer=e1;Br.Section=o1;function vj(e){return typeof e=="string"?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:typeof e=="number"?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map(t=>vj(t))}:e}function KO(e){return e?e.map(t=>vj(t)):[]}function xj(e){return e.reduce((t,n)=>"group"in n?{...t,...xj(n.items)}:(t[n.value]=n,t),{})}var Vn={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const qO={error:null},YO=(e,{size:t})=>({chevron:{"--combobox-chevron-size":Le(t,"combobox-chevron-size")}}),s1=Q((e,t)=>{const n=K("ComboboxChevron",qO,e),{size:r,error:o,style:s,className:i,classNames:a,styles:l,unstyled:c,vars:d,mod:f,...p}=n,h=pe({name:"ComboboxChevron",classes:Vn,props:n,style:s,className:i,classNames:a,styles:l,unstyled:c,vars:d,varsResolver:YO,rootSelector:"chevron"});return u.jsx(Y,{component:"svg",...p,...h("chevron"),size:r,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:o},f],ref:t,children:u.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});s1.classes=Vn;s1.displayName="@mantine/core/ComboboxChevron";const[GO,Er]=ir("Combobox component was not found in tree"),bj=v.forwardRef(({size:e,onMouseDown:t,onClick:n,onClear:r,...o},s)=>u.jsx(Sr,{ref:s,size:e||"sm",variant:"transparent",tabIndex:-1,"aria-hidden":!0,...o,onMouseDown:i=>{i.preventDefault(),t==null||t(i)},onClick:i=>{r(),n==null||n(i)}}));bj.displayName="@mantine/core/ComboboxClearButton";const QO={},i1=Q((e,t)=>{const{classNames:n,styles:r,className:o,style:s,hidden:i,...a}=K("ComboboxDropdown",QO,e),l=Er();return u.jsx(At.Dropdown,{...a,ref:t,role:"presentation","data-hidden":i||void 0,...l.getStyles("dropdown",{className:o,style:s,classNames:n,styles:r})})});i1.classes=Vn;i1.displayName="@mantine/core/ComboboxDropdown";const XO={refProp:"ref"},wj=Q((e,t)=>{const{children:n,refProp:r}=K("ComboboxDropdownTarget",XO,e);if(Er(),!Go(n))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return u.jsx(At.Target,{ref:t,refProp:r,children:n})});wj.displayName="@mantine/core/ComboboxDropdownTarget";const JO={},a1=Q((e,t)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,...a}=K("ComboboxEmpty",JO,e),l=Er();return u.jsx(Y,{ref:t,...l.getStyles("empty",{className:r,classNames:n,styles:s,style:o}),...a})});a1.classes=Vn;a1.displayName="@mantine/core/ComboboxEmpty";function l1({onKeyDown:e,withKeyboardNavigation:t,withAriaAttributes:n,withExpandedAttribute:r,targetType:o,autoComplete:s}){const i=Er(),[a,l]=v.useState(null),c=f=>{if(e==null||e(f),!i.readOnly&&t){if(f.nativeEvent.isComposing)return;if(f.nativeEvent.code==="ArrowDown"&&(f.preventDefault(),i.store.dropdownOpened?l(i.store.selectNextOption()):(i.store.openDropdown("keyboard"),l(i.store.selectActiveOption()))),f.nativeEvent.code==="ArrowUp"&&(f.preventDefault(),i.store.dropdownOpened?l(i.store.selectPreviousOption()):(i.store.openDropdown("keyboard"),l(i.store.selectActiveOption()))),f.nativeEvent.code==="Enter"||f.nativeEvent.code==="NumpadEnter"){if(f.nativeEvent.keyCode===229)return;const p=i.store.getSelectedOptionIndex();i.store.dropdownOpened&&p!==-1?(f.preventDefault(),i.store.clickSelectedOption()):o==="button"&&(f.preventDefault(),i.store.openDropdown("keyboard"))}f.nativeEvent.code==="Escape"&&i.store.closeDropdown("keyboard"),f.nativeEvent.code==="Space"&&o==="button"&&(f.preventDefault(),i.store.toggleDropdown("keyboard"))}};return{...n?{"aria-haspopup":"listbox","aria-expanded":r&&!!(i.store.listId&&i.store.dropdownOpened)||void 0,"aria-controls":i.store.listId,"aria-activedescendant":i.store.dropdownOpened&&a||void 0,autoComplete:s,"data-expanded":i.store.dropdownOpened||void 0,"data-mantine-stop-propagation":i.store.dropdownOpened||void 0}:{},onKeyDown:c}}const ZO={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},Sj=Q((e,t)=>{const{children:n,refProp:r,withKeyboardNavigation:o,withAriaAttributes:s,withExpandedAttribute:i,targetType:a,autoComplete:l,...c}=K("ComboboxEventsTarget",ZO,e);if(!Go(n))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const d=Er(),f=l1({targetType:a,withAriaAttributes:s,withKeyboardNavigation:o,withExpandedAttribute:i,onKeyDown:n.props.onKeyDown,autoComplete:l});return v.cloneElement(n,{...f,...c,[r]:Lt(t,d.store.targetRef,n==null?void 0:n.ref)})});Sj.displayName="@mantine/core/ComboboxEventsTarget";const e$={},c1=Q((e,t)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,...a}=K("ComboboxFooter",e$,e),l=Er();return u.jsx(Y,{ref:t,...l.getStyles("footer",{className:r,classNames:n,style:o,styles:s}),...a,onMouseDown:c=>{c.preventDefault()}})});c1.classes=Vn;c1.displayName="@mantine/core/ComboboxFooter";const t$={},u1=Q((e,t)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,children:a,label:l,...c}=K("ComboboxGroup",t$,e),d=Er();return u.jsxs(Y,{ref:t,...d.getStyles("group",{className:r,classNames:n,style:o,styles:s}),...c,children:[l&&u.jsx("div",{...d.getStyles("groupLabel",{classNames:n,styles:s}),children:l}),a]})});u1.classes=Vn;u1.displayName="@mantine/core/ComboboxGroup";const n$={},d1=Q((e,t)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,...a}=K("ComboboxHeader",n$,e),l=Er();return u.jsx(Y,{ref:t,...l.getStyles("header",{className:r,classNames:n,style:o,styles:s}),...a,onMouseDown:c=>{c.preventDefault()}})});d1.classes=Vn;d1.displayName="@mantine/core/ComboboxHeader";function Cj({value:e,valuesDivider:t=",",...n}){return u.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(t):e||"",...n})}Cj.displayName="@mantine/core/ComboboxHiddenInput";const r$={},f1=Q((e,t)=>{const n=K("ComboboxOption",r$,e),{classNames:r,className:o,style:s,styles:i,vars:a,onClick:l,id:c,active:d,onMouseDown:f,onMouseOver:p,disabled:h,selected:m,mod:g,...w}=n,y=Er(),x=v.useId(),b=c||x;return u.jsx(Y,{...y.getStyles("option",{className:o,classNames:r,styles:i,style:s}),...w,ref:t,id:b,mod:["combobox-option",{"combobox-active":d,"combobox-disabled":h,"combobox-selected":m},g],role:"option",onClick:S=>{var k;h?S.preventDefault():((k=y.onOptionSubmit)==null||k.call(y,n.value,n),l==null||l(S))},onMouseDown:S=>{S.preventDefault(),f==null||f(S)},onMouseOver:S=>{y.resetSelectionOnOptionHover&&y.store.resetSelectedOption(),p==null||p(S)}})});f1.classes=Vn;f1.displayName="@mantine/core/ComboboxOption";const o$={},p1=Q((e,t)=>{const n=K("ComboboxOptions",o$,e),{classNames:r,className:o,style:s,styles:i,id:a,onMouseDown:l,labelledBy:c,...d}=n,f=Er(),p=Un(a);return v.useEffect(()=>{f.store.setListId(p)},[p]),u.jsx(Y,{ref:t,...f.getStyles("options",{className:o,style:s,classNames:r,styles:i}),...d,id:p,role:"listbox","aria-labelledby":c,onMouseDown:h=>{h.preventDefault(),l==null||l(h)}})});p1.classes=Vn;p1.displayName="@mantine/core/ComboboxOptions";const s$={withAriaAttributes:!0,withKeyboardNavigation:!0},h1=Q((e,t)=>{const n=K("ComboboxSearch",s$,e),{classNames:r,styles:o,unstyled:s,vars:i,withAriaAttributes:a,onKeyDown:l,withKeyboardNavigation:c,size:d,...f}=n,p=Er(),h=p.getStyles("search"),m=l1({targetType:"input",withAriaAttributes:a,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:l,autoComplete:"off"});return u.jsx(st,{ref:Lt(t,p.store.searchRef),classNames:[{input:h.className},r],styles:[{input:h.style},o],size:d||p.size,...m,...f,__staticSelector:"Combobox"})});h1.classes=Vn;h1.displayName="@mantine/core/ComboboxSearch";const i$={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},Ej=Q((e,t)=>{const{children:n,refProp:r,withKeyboardNavigation:o,withAriaAttributes:s,withExpandedAttribute:i,targetType:a,autoComplete:l,...c}=K("ComboboxTarget",i$,e);if(!Go(n))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const d=Er(),f=l1({targetType:a,withAriaAttributes:s,withKeyboardNavigation:o,withExpandedAttribute:i,onKeyDown:n.props.onKeyDown,autoComplete:l}),p=v.cloneElement(n,{...f,...c});return u.jsx(At.Target,{ref:Lt(t,d.store.targetRef),children:p})});Ej.displayName="@mantine/core/ComboboxTarget";function a$(e,t,n){for(let r=e-1;r>=0;r-=1)if(!t[r].hasAttribute("data-combobox-disabled"))return r;if(n){for(let r=t.length-1;r>-1;r-=1)if(!t[r].hasAttribute("data-combobox-disabled"))return r}return e}function l$(e,t,n){for(let r=e+1;r<t.length;r+=1)if(!t[r].hasAttribute("data-combobox-disabled"))return r;if(n){for(let r=0;r<t.length;r+=1)if(!t[r].hasAttribute("data-combobox-disabled"))return r}return e}function c$(e){for(let t=0;t<e.length;t+=1)if(!e[t].hasAttribute("data-combobox-disabled"))return t;return-1}function th({defaultOpened:e,opened:t,onOpenedChange:n,onDropdownClose:r,onDropdownOpen:o,loop:s=!0,scrollBehavior:i="instant"}={}){const[a,l]=Zt({value:t,defaultValue:e,finalValue:!1,onChange:n}),c=v.useRef(null),d=v.useRef(-1),f=v.useRef(null),p=v.useRef(null),h=v.useRef(-1),m=v.useRef(-1),g=v.useRef(-1),w=v.useCallback((P="unknown")=>{a||(l(!0),o==null||o(P))},[l,o,a]),y=v.useCallback((P="unknown")=>{a&&(l(!1),r==null||r(P))},[l,r,a]),x=v.useCallback((P="unknown")=>{a?y(P):w(P)},[y,w,a]),b=v.useCallback(()=>{const P=document.querySelector(`#${c.current} [data-combobox-selected]`);P==null||P.removeAttribute("data-combobox-selected"),P==null||P.removeAttribute("aria-selected")},[]),S=v.useCallback(P=>{const L=document.getElementById(c.current),R=L==null?void 0:L.querySelectorAll("[data-combobox-option]");if(!R)return null;const D=P>=R.length?0:P<0?R.length-1:P;return d.current=D,R!=null&&R[D]&&!R[D].hasAttribute("data-combobox-disabled")?(b(),R[D].setAttribute("data-combobox-selected","true"),R[D].setAttribute("aria-selected","true"),R[D].scrollIntoView({block:"nearest",behavior:i}),R[D].id):null},[i,b]),k=v.useCallback(()=>{const P=document.querySelector(`#${c.current} [data-combobox-active]`);if(P){const L=document.querySelectorAll(`#${c.current} [data-combobox-option]`),R=Array.from(L).findIndex(D=>D===P);return S(R)}return S(0)},[S]),E=v.useCallback(()=>S(l$(d.current,document.querySelectorAll(`#${c.current} [data-combobox-option]`),s)),[S,s]),j=v.useCallback(()=>S(a$(d.current,document.querySelectorAll(`#${c.current} [data-combobox-option]`),s)),[S,s]),C=v.useCallback(()=>S(c$(document.querySelectorAll(`#${c.current} [data-combobox-option]`))),[S]),T=v.useCallback((P="selected",L)=>{g.current=window.setTimeout(()=>{var $;const R=document.querySelectorAll(`#${c.current} [data-combobox-option]`),D=Array.from(R).findIndex(A=>A.hasAttribute(`data-combobox-${P}`));d.current=D,L!=null&&L.scrollIntoView&&(($=R[D])==null||$.scrollIntoView({block:"nearest",behavior:i}))},0)},[]),N=v.useCallback(()=>{d.current=-1,b()},[b]),_=v.useCallback(()=>{const P=document.querySelectorAll(`#${c.current} [data-combobox-option]`),L=P==null?void 0:P[d.current];L==null||L.click()},[]),I=v.useCallback(P=>{c.current=P},[]),U=v.useCallback(()=>{h.current=window.setTimeout(()=>f.current.focus(),0)},[]),O=v.useCallback(()=>{m.current=window.setTimeout(()=>p.current.focus(),0)},[]),M=v.useCallback(()=>d.current,[]);return v.useEffect(()=>()=>{window.clearTimeout(h.current),window.clearTimeout(m.current),window.clearTimeout(g.current)},[]),{dropdownOpened:a,openDropdown:w,closeDropdown:y,toggleDropdown:x,selectedOptionIndex:d.current,getSelectedOptionIndex:M,selectOption:S,selectFirstOption:C,selectActiveOption:k,selectNextOption:E,selectPreviousOption:j,resetSelectedOption:N,updateSelectedOptionIndex:T,listId:c.current,setListId:I,clickSelectedOption:_,searchRef:f,focusSearchInput:U,targetRef:p,focusTarget:O}}const u$={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0}},d$=(e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":Jt(t),"--combobox-option-padding":Le(t,"combobox-option-padding")},dropdown:{"--combobox-padding":n===void 0?void 0:H(n),"--combobox-option-fz":Jt(t),"--combobox-option-padding":Le(t,"combobox-option-padding")}});function Fe(e){const t=K("Combobox",u$,e),{classNames:n,styles:r,unstyled:o,children:s,store:i,vars:a,onOptionSubmit:l,onClose:c,size:d,dropdownPadding:f,resetSelectionOnOptionHover:p,__staticSelector:h,readOnly:m,...g}=t,w=th(),y=i||w,x=pe({name:h||"Combobox",classes:Vn,props:t,classNames:n,styles:r,unstyled:o,vars:a,varsResolver:d$}),b=()=>{c==null||c(),y.closeDropdown()};return u.jsx(GO,{value:{getStyles:x,store:y,onOptionSubmit:l,size:d,resetSelectionOnOptionHover:p,readOnly:m},children:u.jsx(At,{opened:y.dropdownOpened,...g,onClose:b,withRoles:!1,unstyled:o,children:s})})}const f$=e=>e;Fe.extend=f$;Fe.classes=Vn;Fe.displayName="@mantine/core/Combobox";Fe.Target=Ej;Fe.Dropdown=i1;Fe.Options=p1;Fe.Option=f1;Fe.Search=h1;Fe.Empty=a1;Fe.Chevron=s1;Fe.Footer=c1;Fe.Header=d1;Fe.EventsTarget=Sj;Fe.DropdownTarget=wj;Fe.Group=u1;Fe.ClearButton=bj;Fe.HiddenInput=Cj;var kj={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};const jj=kj,nh=v.forwardRef(({__staticSelector:e,__stylesApiProps:t,className:n,classNames:r,styles:o,unstyled:s,children:i,label:a,description:l,id:c,disabled:d,error:f,size:p,labelPosition:h="left",bodyElement:m="div",labelElement:g="label",variant:w,style:y,vars:x,mod:b,...S},k)=>{const E=pe({name:e,props:t,className:n,style:y,classes:kj,classNames:r,styles:o,unstyled:s});return u.jsx(Y,{...E("root"),ref:k,__vars:{"--label-fz":Jt(p),"--label-lh":Le(p,"label-lh")},mod:[{"label-position":h},b],variant:w,size:p,...S,children:u.jsxs(Y,{component:m,htmlFor:m==="label"?c:void 0,...E("body"),children:[i,u.jsxs("div",{...E("labelWrapper"),"data-disabled":d||void 0,children:[a&&u.jsx(Y,{component:g,htmlFor:g==="label"?c:void 0,...E("label"),"data-disabled":d||void 0,children:a}),l&&u.jsx(st.Description,{size:p,__inheritStyles:!1,...E("description"),children:l}),f&&typeof f!="boolean"&&u.jsx(st.Error,{size:p,__inheritStyles:!1,...E("error"),children:f})]})]})})});nh.displayName="@mantine/core/InlineInput";const Rj=v.createContext(null),p$=Rj.Provider,Pj=()=>v.useContext(Rj),[h$,m$]=Uu();var Tj={card:"m_26775b0a"};const g$={withBorder:!0},y$=(e,{radius:t})=>({card:{"--card-radius":wt(t)}}),m1=Q((e,t)=>{const n=K("CheckboxCard",g$,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,checked:c,mod:d,withBorder:f,value:p,onClick:h,...m}=n,g=pe({name:"CheckboxCard",classes:Tj,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:y$,rootSelector:"card"}),w=Pj(),y=typeof c=="boolean"?c:(w==null?void 0:w.value.includes(p||""))||!1;return u.jsx(h$,{value:{checked:y},children:u.jsx(Kt,{ref:t,mod:[{"with-border":f,checked:y},d],...g("card"),...m,role:"checkbox","aria-checked":y,onClick:x=>{h==null||h(x),w==null||w.onChange(p||"")}})})});m1.displayName="@mantine/core/CheckboxCard";m1.classes=Tj;function g1({children:e,role:t}){const n=Yu();return n?u.jsx("div",{role:t,"aria-labelledby":n.labelId,"aria-describedby":n.describedBy,children:e}):u.jsx(u.Fragment,{children:e})}const v$={},y1=Q((e,t)=>{const{value:n,defaultValue:r,onChange:o,size:s,wrapperProps:i,children:a,readOnly:l,...c}=K("CheckboxGroup",v$,e),[d,f]=Zt({value:n,defaultValue:r,finalValue:[],onChange:o}),p=h=>{const m=typeof h=="string"?h:h.currentTarget.value;!l&&f(d.includes(m)?d.filter(g=>g!==m):[...d,m])};return u.jsx(p$,{value:{value:d,onChange:p,size:s},children:u.jsx(st.Wrapper,{size:s,ref:t,...i,...c,labelElement:"div",__staticSelector:"CheckboxGroup",children:u.jsx(g1,{role:"group",children:a})})})});y1.classes=st.Wrapper.classes;y1.displayName="@mantine/core/CheckboxGroup";function Zl({size:e,style:t,...n}){const r=e!==void 0?{width:H(e),height:H(e),...t}:t;return u.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r,"aria-hidden":!0,...n,children:u.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Nj({indeterminate:e,...t}){return e?u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6","aria-hidden":!0,...t,children:u.jsx("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})}):u.jsx(Zl,{...t})}var Lj={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};const x$={icon:Nj},b$=(e,{radius:t,color:n,size:r,iconColor:o,variant:s,autoContrast:i})=>{const a=Yr({color:n||e.primaryColor,theme:e}),l=a.isThemeColor&&a.shade===void 0?`var(--mantine-color-${a.color}-outline)`:a.color;return{indicator:{"--checkbox-size":Le(r,"checkbox-size"),"--checkbox-radius":t===void 0?void 0:wt(t),"--checkbox-color":s==="outline"?l:vt(n,e),"--checkbox-icon-color":o?vt(o,e):Gl(i,e)?oa({color:n,theme:e,autoContrast:i}):void 0}}},v1=Q((e,t)=>{const n=K("CheckboxIndicator",x$,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,icon:c,indeterminate:d,radius:f,color:p,iconColor:h,autoContrast:m,checked:g,mod:w,variant:y,disabled:x,...b}=n,S=c,k=pe({name:"CheckboxIndicator",classes:Lj,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:b$,rootSelector:"indicator"}),E=m$(),j=typeof g=="boolean"||typeof d=="boolean"?g||d:(E==null?void 0:E.checked)||!1;return u.jsx(Y,{ref:t,...k("indicator",{variant:y}),variant:y,mod:[{checked:j,disabled:x},w],...b,children:u.jsx(S,{indeterminate:d,...k("icon")})})});v1.displayName="@mantine/core/CheckboxIndicator";v1.classes=Lj;var Dj={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","input--outline":"m_215c4542"};const w$={labelPosition:"right",icon:Nj},S$=(e,{radius:t,color:n,size:r,iconColor:o,variant:s,autoContrast:i})=>{const a=Yr({color:n||e.primaryColor,theme:e}),l=a.isThemeColor&&a.shade===void 0?`var(--mantine-color-${a.color}-outline)`:a.color;return{root:{"--checkbox-size":Le(r,"checkbox-size"),"--checkbox-radius":t===void 0?void 0:wt(t),"--checkbox-color":s==="outline"?l:vt(n,e),"--checkbox-icon-color":o?vt(o,e):Gl(i,e)?oa({color:n,theme:e,autoContrast:i}):void 0}}},ns=Q((e,t)=>{const n=K("Checkbox",w$,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,color:c,label:d,id:f,size:p,radius:h,wrapperProps:m,checked:g,labelPosition:w,description:y,error:x,disabled:b,variant:S,indeterminate:k,icon:E,rootRef:j,iconColor:C,onChange:T,autoContrast:N,mod:_,...I}=n,U=Pj(),O=p||(U==null?void 0:U.size),M=E,P=pe({name:"Checkbox",props:n,classes:Dj,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:S$}),{styleProps:L,rest:R}=si(I),D=Un(f),$=U?{checked:U.value.includes(R.value),onChange:A=>{U.onChange(A),T==null||T(A)}}:{};return u.jsx(nh,{...P("root"),__staticSelector:"Checkbox",__stylesApiProps:n,id:D,size:O,labelPosition:w,label:d,description:y,error:x,disabled:b,classNames:r,styles:i,unstyled:a,"data-checked":$.checked||g||void 0,variant:S,ref:j,mod:_,...L,...m,children:u.jsxs(Y,{...P("inner"),mod:{"data-label-position":w},children:[u.jsx(Y,{component:"input",id:D,ref:t,checked:g,disabled:b,mod:{error:!!x,indeterminate:k},...P("input",{focusable:!0,variant:S}),onChange:T,...R,...$,type:"checkbox"}),u.jsx(M,{indeterminate:k,...P("icon")})]})})});ns.classes={...Dj,...jj};ns.displayName="@mantine/core/Checkbox";ns.Group=y1;ns.Indicator=v1;ns.Card=m1;function Eu(e){return"group"in e}function Mj({options:e,search:t,limit:n}){const r=t.trim().toLowerCase(),o=[];for(let s=0;s<e.length;s+=1){const i=e[s];if(o.length===n)return o;Eu(i)&&o.push({group:i.group,items:Mj({options:i.items,search:t,limit:n-o.length})}),Eu(i)||i.label.toLowerCase().includes(r)&&o.push(i)}return o}function C$(e){if(e.length===0)return!0;for(const t of e)if(!("group"in t)||t.items.length>0)return!1;return!0}function _j(e,t=new Set){if(Array.isArray(e))for(const n of e)if(Eu(n))_j(n.items,t);else{if(typeof n.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(typeof n.value!="string")throw new Error(`[@mantine/core] Option value must be a string, other data formats are not supported, got ${typeof n.value}`);if(t.has(n.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}function E$(e,t){return Array.isArray(e)?e.includes(t):e===t}function Aj({data:e,withCheckIcon:t,value:n,checkIconPosition:r,unstyled:o,renderOption:s}){if(!Eu(e)){const a=E$(n,e.value),l=t&&a&&u.jsx(Zl,{className:Vn.optionsDropdownCheckIcon}),c=u.jsxs(u.Fragment,{children:[r==="left"&&l,u.jsx("span",{children:e.label}),r==="right"&&l]});return u.jsx(Fe.Option,{value:e.value,disabled:e.disabled,className:De({[Vn.optionsDropdownOption]:!o}),"data-reverse":r==="right"||void 0,"data-checked":a||void 0,"aria-selected":a,active:a,children:typeof s=="function"?s({option:e,checked:a}):c})}const i=e.items.map(a=>u.jsx(Aj,{data:a,value:n,unstyled:o,withCheckIcon:t,checkIconPosition:r,renderOption:s},a.value));return u.jsx(Fe.Group,{label:e.group,children:i})}function k$({data:e,hidden:t,hiddenWhenEmpty:n,filter:r,search:o,limit:s,maxDropdownHeight:i,withScrollArea:a=!0,filterOptions:l=!0,withCheckIcon:c=!1,value:d,checkIconPosition:f,nothingFoundMessage:p,unstyled:h,labelId:m,renderOption:g,scrollAreaProps:w,"aria-label":y}){_j(e);const b=typeof o=="string"?(r||Mj)({options:e,search:l?o:"",limit:s??1/0}):e,S=C$(b),k=b.map(E=>u.jsx(Aj,{data:E,withCheckIcon:c,value:d,checkIconPosition:f,unstyled:h,renderOption:g},Eu(E)?E.group:E.value));return u.jsx(Fe.Dropdown,{hidden:t||n&&S,children:u.jsxs(Fe.Options,{labelledBy:m,"aria-label":y,children:[a?u.jsx(Gr.Autosize,{mah:i??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...w,children:k}):k,S&&p&&u.jsx(Fe.Empty,{children:p})]})})}const Oj=v.createContext(null),j$=Oj.Provider;function R$(){return{withinGroup:!!v.useContext(Oj)}}var rh={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};const P$={},T$=(e,{spacing:t})=>({group:{"--ag-spacing":Wr(t)}}),x1=Q((e,t)=>{const n=K("AvatarGroup",P$,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,spacing:c,...d}=n,f=pe({name:"AvatarGroup",classes:rh,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:T$,rootSelector:"group"});return u.jsx(j$,{value:!0,children:u.jsx(Y,{ref:t,...f("group"),...d})})});x1.classes=rh;x1.displayName="@mantine/core/AvatarGroup";function N$(e){return u.jsx("svg",{...e,"data-avatar-placeholder-icon":!0,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function $j(e,t=2){const n=e.split(" ");return n.length===1?e.slice(0,t).toUpperCase():n.map(r=>r[0]).slice(0,t).join("").toUpperCase()}function L$(e){let t=0;for(let n=0;n<e.length;n+=1){const r=e.charCodeAt(n);t=(t<<5)-t+r,t|=0}return t}const D$=["blue","cyan","grape","green","indigo","lime","orange","pink","red","teal","violet"];function M$(e,t=D$){const n=L$($j(e)),r=Math.abs(n)%t.length;return t[r]}const _$={},A$=(e,{size:t,radius:n,variant:r,gradient:o,color:s,autoContrast:i,name:a,allowedInitialsColors:l})=>{const c=s==="initials"&&typeof a=="string"?M$(a,l):s,d=e.variantColorResolver({color:c||"gray",theme:e,gradient:o,variant:r||"light",autoContrast:i});return{root:{"--avatar-size":Le(t,"avatar-size"),"--avatar-radius":n===void 0?void 0:wt(n),"--avatar-bg":c||r?d.background:void 0,"--avatar-color":c||r?d.color:void 0,"--avatar-bd":c||r?d.border:void 0}}},oh=yn((e,t)=>{const n=K("Avatar",_$,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,src:c,alt:d,radius:f,color:p,gradient:h,imageProps:m,children:g,autoContrast:w,mod:y,name:x,allowedInitialsColors:b,...S}=n,k=R$(),[E,j]=v.useState(!c),C=pe({name:"Avatar",props:n,classes:rh,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:A$});return v.useEffect(()=>j(!c),[c]),u.jsx(Y,{...C("root"),mod:[{"within-group":k.withinGroup},y],ref:t,...S,children:E?u.jsx("span",{...C("placeholder"),title:d,children:g||typeof x=="string"&&$j(x)||u.jsx(N$,{})}):u.jsx("img",{...m,...C("image"),src:c,alt:d,onError:T=>{var N;j(!0),(N=m==null?void 0:m.onError)==null||N.call(m,T)}})})});oh.classes=rh;oh.displayName="@mantine/core/Avatar";oh.Group=x1;var Fj={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const O$={},$$=(e,{radius:t,color:n,gradient:r,variant:o,size:s,autoContrast:i})=>{const a=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:i});return{root:{"--badge-height":Le(s,"badge-height"),"--badge-padding-x":Le(s,"badge-padding-x"),"--badge-fz":Le(s,"badge-fz"),"--badge-radius":t===void 0?void 0:wt(t),"--badge-bg":n||o?a.background:void 0,"--badge-color":n||o?a.color:void 0,"--badge-bd":n||o?a.border:void 0,"--badge-dot-color":o==="dot"?vt(n,e):void 0}}},Il=yn((e,t)=>{const n=K("Badge",O$,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,radius:c,color:d,gradient:f,leftSection:p,rightSection:h,children:m,variant:g,fullWidth:w,autoContrast:y,circle:x,mod:b,...S}=n,k=pe({name:"Badge",props:n,classes:Fj,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:$$});return u.jsxs(Y,{variant:g,mod:[{block:w,circle:x,"with-right-section":!!h,"with-left-section":!!p},b],...k("root",{variant:g}),ref:t,...S,children:[p&&u.jsx("span",{...k("section"),"data-position":"left",children:p}),u.jsx("span",{...k("label"),children:m}),h&&u.jsx("span",{...k("section"),"data-position":"right",children:h})]})});Il.classes=Fj;Il.displayName="@mantine/core/Badge";var Ij={root:"m_8b3717df",breadcrumb:"m_f678d540",separator:"m_3b8f2208"};const F$={separator:"/"},I$=(e,{separatorMargin:t})=>({root:{"--bc-separator-margin":Wr(t)}}),wo=Q((e,t)=>{const n=K("Breadcrumbs",F$,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,children:c,separator:d,separatorMargin:f,...p}=n,h=pe({name:"Breadcrumbs",classes:Ij,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:I$}),m=v.Children.toArray(c).reduce((g,w,y,x)=>{var S;const b=Go(w)?v.cloneElement(w,{...h("breadcrumb",{className:(S=w.props)==null?void 0:S.className}),key:y}):v.createElement("div",{...h("breadcrumb"),key:y},w);return g.push(b),y!==x.length-1&&g.push(v.createElement(Y,{...h("separator"),key:`separator-${y}`},d)),g},[]);return u.jsx(Y,{ref:t,...h("root"),...p,children:m})});wo.classes=Ij;wo.displayName="@mantine/core/Breadcrumbs";var sh={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844"};const _w={orientation:"horizontal"},z$=(e,{borderWidth:t})=>({group:{"--button-border-width":H(t)}}),b1=Q((e,t)=>{const n=K("ButtonGroup",_w,e),{className:r,style:o,classNames:s,styles:i,unstyled:a,orientation:l,vars:c,borderWidth:d,variant:f,mod:p,...h}=K("ButtonGroup",_w,e),m=pe({name:"ButtonGroup",props:n,classes:sh,className:r,style:o,classNames:s,styles:i,unstyled:a,vars:c,varsResolver:z$,rootSelector:"group"});return u.jsx(Y,{...m("group"),ref:t,variant:f,mod:[{"data-orientation":l},p],role:"group",...h})});b1.classes=sh;b1.displayName="@mantine/core/ButtonGroup";const V$={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${H(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},B$={},U$=(e,{radius:t,color:n,gradient:r,variant:o,size:s,justify:i,autoContrast:a})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:a});return{root:{"--button-justify":i,"--button-height":Le(s,"button-height"),"--button-padding-x":Le(s,"button-padding-x"),"--button-fz":s!=null&&s.includes("compact")?Jt(s.replace("compact-","")):Jt(s),"--button-radius":t===void 0?void 0:wt(t),"--button-bg":n||o?l.background:void 0,"--button-hover":n||o?l.hover:void 0,"--button-color":l.color,"--button-bd":n||o?l.border:void 0,"--button-hover-color":n||o?l.hoverColor:void 0}}},Tt=yn((e,t)=>{const n=K("Button",B$,e),{style:r,vars:o,className:s,color:i,disabled:a,children:l,leftSection:c,rightSection:d,fullWidth:f,variant:p,radius:h,loading:m,loaderProps:g,gradient:w,classNames:y,styles:x,unstyled:b,"data-disabled":S,autoContrast:k,mod:E,...j}=n,C=pe({name:"Button",props:n,classes:sh,className:s,style:r,classNames:y,styles:x,unstyled:b,vars:o,varsResolver:U$}),T=!!c,N=!!d;return u.jsxs(Kt,{ref:t,...C("root",{active:!a&&!m&&!S}),unstyled:b,variant:p,disabled:a||m,mod:[{disabled:a||S,loading:m,block:f,"with-left-section":T,"with-right-section":N},E],...j,children:[u.jsx(Jo,{mounted:!!m,transition:V$,duration:150,children:_=>u.jsx(Y,{component:"span",...C("loader",{style:_}),"aria-hidden":!0,children:u.jsx(Zo,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...g})})}),u.jsxs("span",{...C("inner"),children:[c&&u.jsx(Y,{component:"span",...C("section"),mod:{position:"left"},children:c}),u.jsx(Y,{component:"span",mod:{loading:m},...C("label"),children:l}),d&&u.jsx(Y,{component:"span",...C("section"),mod:{position:"right"},children:d})]})]})});Tt.classes=sh;Tt.displayName="@mantine/core/Button";Tt.Group=b1;var zj={root:"m_4451eb3a"};const H$={},Zn=yn((e,t)=>{const n=K("Center",H$,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,inline:c,mod:d,...f}=n,p=pe({name:"Center",props:n,classes:zj,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l});return u.jsx(Y,{ref:t,mod:[{inline:c},d],...p("root"),...f})});Zn.classes=zj;Zn.displayName="@mantine/core/Center";const[W$,K$]=Uu(),q$={};function Vj(e){const{value:t,defaultValue:n,onChange:r,multiple:o,children:s}=K("ChipGroup",q$,e),[i,a]=Zt({value:t,defaultValue:n,finalValue:o?[]:null,onChange:r}),l=d=>Array.isArray(i)?i.includes(d):d===i,c=d=>{const f=d.currentTarget.value;Array.isArray(i)?a(i.includes(f)?i.filter(p=>p!==f):[...i,f]):a(f)};return u.jsx(W$,{value:{isChipSelected:l,onChange:c,multiple:o},children:s})}Vj.displayName="@mantine/core/ChipGroup";var Bj={root:"m_f59ffda3",label:"m_be049a53","label--outline":"m_3904c1af","label--filled":"m_fa109255","label--light":"m_f7e165c3",iconWrapper:"m_9ac86df9",checkIcon:"m_d6d72580",input:"m_bde07329"};const Y$={type:"checkbox"},G$=(e,{size:t,radius:n,variant:r,color:o,autoContrast:s})=>{const i=e.variantColorResolver({color:o||e.primaryColor,theme:e,variant:r||"filled",autoContrast:s});return{root:{"--chip-fz":Jt(t),"--chip-size":Le(t,"chip-size"),"--chip-radius":n===void 0?void 0:wt(n),"--chip-checked-padding":Le(t,"chip-checked-padding"),"--chip-padding":Le(t,"chip-padding"),"--chip-icon-size":Le(t,"chip-icon-size"),"--chip-bg":o||r?i.background:void 0,"--chip-hover":o||r?i.hover:void 0,"--chip-color":o||r?i.color:void 0,"--chip-bd":o||r?i.border:void 0,"--chip-spacing":Le(t,"chip-spacing")}}},ku=Q((e,t)=>{const n=K("Chip",Y$,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,id:c,checked:d,defaultChecked:f,onChange:p,value:h,wrapperProps:m,type:g,disabled:w,children:y,size:x,variant:b,icon:S,rootRef:k,autoContrast:E,mod:j,...C}=n,T=pe({name:"Chip",classes:Bj,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:G$}),N=K$(),_=Un(c),{styleProps:I,rest:U}=si(C),[O,M]=Zt({value:d,defaultValue:f,finalValue:!1,onChange:p}),P=N?{checked:N.isChipSelected(h),onChange:R=>{N.onChange(R),p==null||p(R.currentTarget.checked)},type:N.multiple?"checkbox":"radio"}:{},L=P.checked||O;return u.jsxs(Y,{size:x,variant:b,ref:k,mod:j,...T("root"),...I,...m,children:[u.jsx("input",{type:g,...T("input"),checked:L,onChange:R=>M(R.currentTarget.checked),id:_,disabled:w,ref:t,value:h,...P,...U}),u.jsxs("label",{htmlFor:_,"data-checked":L||void 0,"data-disabled":w||void 0,...T("label",{variant:b||"filled"}),children:[L&&u.jsx("span",{...T("iconWrapper"),children:S||u.jsx(Zl,{...T("checkIcon")})}),u.jsx("span",{children:y})]})]})});ku.classes=Bj;ku.displayName="@mantine/core/Chip";ku.Group=Vj;var Uj={root:"m_b183c0a2"};const Q$={},X$=(e,{color:t})=>({root:{"--code-bg":t?vt(t,e):void 0}}),ia=Q((e,t)=>{const n=K("Code",Q$,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,color:c,block:d,variant:f,mod:p,...h}=n,m=pe({name:"Code",props:n,classes:Uj,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:X$});return u.jsx(Y,{component:d?"pre":"code",variant:f,ref:t,mod:[{block:d},p],...m("root"),...h,dir:"ltr"})});ia.classes=Uj;ia.displayName="@mantine/core/Code";const J$={timeout:1e3};function w1(e){const{children:t,timeout:n,value:r,...o}=K("CopyButton",J$,e),s=o3({timeout:n}),i=()=>s.copy(r);return u.jsx(u.Fragment,{children:t({copy:i,copied:s.copied,...o})})}w1.displayName="@mantine/core/CopyButton";var Hj={root:"m_3eebeb36",label:"m_9e365f20"};const Z$={orientation:"horizontal"},e5=(e,{color:t,variant:n,size:r})=>({root:{"--divider-color":t?vt(t,e):void 0,"--divider-border-style":n,"--divider-size":Le(r,"divider-size")}}),S1=Q((e,t)=>{const n=K("Divider",Z$,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,color:c,orientation:d,label:f,labelPosition:p,mod:h,...m}=n,g=pe({name:"Divider",classes:Hj,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:e5});return u.jsx(Y,{ref:t,mod:[{orientation:d,"with-label":!!f},h],...g("root"),...m,role:"separator",children:f&&u.jsx(Y,{component:"span",mod:{position:p},...g("label"),children:f})})});S1.classes=Hj;S1.displayName="@mantine/core/Divider";const[t5,ec]=ir("Drawer component was not found in tree");var rs={root:"m_f11b401e",header:"m_5a7c2c9",content:"m_b8a05bbd",inner:"m_31cd769a"};const n5={},ih=Q((e,t)=>{const n=K("DrawerBody",n5,e),{classNames:r,className:o,style:s,styles:i,vars:a,...l}=n,c=ec();return u.jsx(W0,{ref:t,...c.getStyles("body",{classNames:r,style:s,styles:i,className:o}),...l})});ih.classes=rs;ih.displayName="@mantine/core/DrawerBody";const r5={},ah=Q((e,t)=>{const n=K("DrawerCloseButton",r5,e),{classNames:r,className:o,style:s,styles:i,vars:a,...l}=n,c=ec();return u.jsx(K0,{ref:t,...c.getStyles("close",{classNames:r,style:s,styles:i,className:o}),...l})});ah.classes=rs;ah.displayName="@mantine/core/DrawerCloseButton";const o5={},lh=Q((e,t)=>{const n=K("DrawerContent",o5,e),{classNames:r,className:o,style:s,styles:i,vars:a,children:l,radius:c,...d}=n,f=ec(),p=f.scrollAreaComponent||dj;return u.jsx(uj,{...f.getStyles("content",{className:o,style:s,styles:i,classNames:r}),innerProps:f.getStyles("inner",{className:o,style:s,styles:i,classNames:r}),ref:t,...d,radius:c||f.radius||0,children:u.jsx(p,{style:{height:"calc(100vh - var(--drawer-offset) * 2)"},children:l})})});lh.classes=rs;lh.displayName="@mantine/core/DrawerContent";const s5={},ch=Q((e,t)=>{const n=K("DrawerHeader",s5,e),{classNames:r,className:o,style:s,styles:i,vars:a,...l}=n,c=ec();return u.jsx(q0,{ref:t,...c.getStyles("header",{classNames:r,style:s,styles:i,className:o}),...l})});ch.classes=rs;ch.displayName="@mantine/core/DrawerHeader";const i5={},uh=Q((e,t)=>{const n=K("DrawerOverlay",i5,e),{classNames:r,className:o,style:s,styles:i,vars:a,...l}=n,c=ec();return u.jsx(Y0,{ref:t,...c.getStyles("overlay",{classNames:r,style:s,styles:i,className:o}),...l})});uh.classes=rs;uh.displayName="@mantine/core/DrawerOverlay";function a5(e){switch(e){case"top":return"flex-start";case"bottom":return"flex-end";default:return}}function l5(e){if(e==="top"||e==="bottom")return"0 0 calc(100% - var(--drawer-offset, 0rem) * 2)"}const c5={top:"slide-down",bottom:"slide-up",left:"slide-right",right:"slide-left"},u5={top:"slide-down",bottom:"slide-up",right:"slide-right",left:"slide-left"},d5={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Bn("modal"),position:"left"},f5=(e,{position:t,size:n,offset:r})=>({root:{"--drawer-size":Le(n,"drawer-size"),"--drawer-flex":l5(t),"--drawer-height":t==="left"||t==="right"?void 0:"var(--drawer-size)","--drawer-align":a5(t),"--drawer-justify":t==="right"?"flex-end":void 0,"--drawer-offset":H(r)}}),dh=Q((e,t)=>{const n=K("DrawerRoot",d5,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,scrollAreaComponent:c,position:d,transitionProps:f,radius:p,...h}=n,{dir:m}=ii(),g=pe({name:"Drawer",classes:rs,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:f5}),w=(m==="rtl"?u5:c5)[d];return u.jsx(t5,{value:{scrollAreaComponent:c,getStyles:g,radius:p},children:u.jsx(cj,{ref:t,...g("root"),transitionProps:{transition:w,...f},unstyled:a,...h})})});dh.classes=rs;dh.displayName="@mantine/core/DrawerRoot";const p5={},fh=Q((e,t)=>{const n=K("DrawerTitle",p5,e),{classNames:r,className:o,style:s,styles:i,vars:a,...l}=n,c=ec();return u.jsx(G0,{ref:t,...c.getStyles("title",{classNames:r,style:s,styles:i,className:o}),...l})});fh.classes=rs;fh.displayName="@mantine/core/DrawerTitle";const h5={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Bn("modal"),withOverlay:!0,withCloseButton:!0},So=Q((e,t)=>{const{title:n,withOverlay:r,overlayProps:o,withCloseButton:s,closeButtonProps:i,children:a,...l}=K("Drawer",h5,e),c=!!n||s;return u.jsxs(dh,{ref:t,...l,children:[r&&u.jsx(uh,{...o}),u.jsxs(lh,{children:[c&&u.jsxs(ch,{children:[n&&u.jsx(fh,{children:n}),s&&u.jsx(ah,{...i})]}),u.jsx(ih,{children:a})]})]})});So.classes=rs;So.displayName="@mantine/core/Drawer";So.Root=dh;So.Overlay=uh;So.Content=lh;So.Body=ih;So.Header=ch;So.Title=fh;So.CloseButton=ah;const m5={multiple:!1},Wj=v.forwardRef((e,t)=>{const{onChange:n,children:r,multiple:o,accept:s,name:i,form:a,resetRef:l,disabled:c,capture:d,inputProps:f,...p}=K("FileButton",m5,e),h=v.useRef(),m=()=>{var y;!c&&((y=h.current)==null||y.click())},g=y=>{n(o?Array.from(y.currentTarget.files):y.currentTarget.files[0]||null)};return Up(l,()=>{h.current.value=""}),u.jsxs(u.Fragment,{children:[r({onClick:m,...p}),u.jsx("input",{style:{display:"none"},type:"file",accept:s,multiple:o,onChange:g,ref:Lt(t,h),name:i,form:a,capture:d,...f})]})});Wj.displayName="@mantine/core/FileButton";const g5=({value:e})=>u.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Array.isArray(e)?e.map(t=>t.name).join(", "):e==null?void 0:e.name}),y5={valueComponent:g5},C1=Q((e,t)=>{const n=K("FileInput",y5,e),{unstyled:r,vars:o,onChange:s,value:i,defaultValue:a,multiple:l,accept:c,name:d,form:f,valueComponent:p,clearable:h,clearButtonProps:m,readOnly:g,capture:w,fileInputProps:y,rightSection:x,size:b,placeholder:S,...k}=n,E=v.useRef(null),[j,C]=Zt({value:i,defaultValue:a,onChange:s,finalValue:l?[]:null}),T=Array.isArray(j)?j.length!==0:j!==null,N=x||(h&&T&&!g?u.jsx(Sr,{...m,variant:"subtle",onClick:()=>C(l?[]:null),size:b,unstyled:r}):null);v.useEffect(()=>{var I;(Array.isArray(j)&&j.length===0||j===null)&&((I=E.current)==null||I.call(E))},[j]);const _=p;return u.jsx(Wj,{onChange:C,multiple:l,accept:c,name:d,form:f,resetRef:E,disabled:g,capture:w,inputProps:y,children:I=>u.jsx(ar,{component:"button",ref:t,rightSection:N,...I,...k,__staticSelector:"FileInput",multiline:!0,type:"button",pointer:!0,__stylesApiProps:n,unstyled:r,size:b,children:T?u.jsx(_,{value:j}):u.jsx(st.Placeholder,{children:S})})})});C1.classes=ar.classes;C1.displayName="@mantine/core/FileInput";const v5=C1;function x5({open:e,close:t,openDelay:n,closeDelay:r}){const o=v.useRef(-1),s=v.useRef(-1),i=()=>{window.clearTimeout(o.current),window.clearTimeout(s.current)},a=()=>{i(),n===0||n===void 0?e():o.current=window.setTimeout(e,n)},l=()=>{i(),r===0||r===void 0?t():s.current=window.setTimeout(t,r)};return v.useEffect(()=>i,[]),{openDropdown:a,closeDropdown:l}}function Ay(){return Ay=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ay.apply(null,arguments)}function Kj(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var qj={root:"m_6e45937b",loader:"m_e8eb006c",overlay:"m_df587f17"};const Aw={transitionProps:{transition:"fade",duration:0},overlayProps:{backgroundOpacity:.75},zIndex:Bn("overlay")},b5=(e,{zIndex:t})=>({root:{"--lo-z-index":t==null?void 0:t.toString()}}),aa=Q((e,t)=>{const n=K("LoadingOverlay",Aw,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,transitionProps:c,loaderProps:d,overlayProps:f,visible:p,zIndex:h,...m}=n,g=en(),w=pe({name:"LoadingOverlay",classes:qj,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:b5}),y={...Aw.overlayProps,...f};return u.jsx(Jo,{transition:"fade",...c,mounted:!!p,children:x=>u.jsxs(Y,{...w("root",{style:x}),ref:t,...m,children:[u.jsx(Zo,{...w("loader"),unstyled:a,...d}),u.jsx(Cu,{...y,...w("overlay"),darkHidden:!0,unstyled:a,color:(f==null?void 0:f.color)||g.white}),u.jsx(Cu,{...y,...w("overlay"),lightHidden:!0,unstyled:a,color:(f==null?void 0:f.color)||g.colors.dark[5]})]})})});aa.classes=qj;aa.displayName="@mantine/core/LoadingOverlay";const[w5,Ju]=ir("Menu component was not found in the tree");var tc={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504"};const S5={},E1=Q((e,t)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,...a}=K("MenuDivider",S5,e),l=Ju();return u.jsx(Y,{ref:t,...l.getStyles("divider",{className:r,style:o,styles:s,classNames:n}),...a})});E1.classes=tc;E1.displayName="@mantine/core/MenuDivider";const C5={},ph=Q((e,t)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,onMouseEnter:a,onMouseLeave:l,children:c,...d}=K("MenuDropdown",C5,e),f=v.useRef(null),p=Ju(),h=w=>{var y,x;(w.key==="ArrowUp"||w.key==="ArrowDown")&&(w.preventDefault(),(x=(y=f.current)==null?void 0:y.querySelectorAll("[data-menu-item]:not(:disabled)")[0])==null||x.focus())},m=Xn(a,()=>(p.trigger==="hover"||p.trigger==="click-hover")&&p.openDropdown()),g=Xn(l,()=>(p.trigger==="hover"||p.trigger==="click-hover")&&p.closeDropdown());return u.jsxs(At.Dropdown,{...d,onMouseEnter:m,onMouseLeave:g,role:"menu","aria-orientation":"vertical",ref:Lt(t,f),...p.getStyles("dropdown",{className:r,style:o,styles:s,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:h,children:[u.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),c]})});ph.classes=tc;ph.displayName="@mantine/core/MenuDropdown";const E5={},hh=yn((e,t)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,color:a,closeMenuOnClick:l,leftSection:c,rightSection:d,children:f,disabled:p,...h}=K("MenuItem",E5,e),m=Ju(),g=en(),{dir:w}=ii(),y=v.useRef(),x=m.getItemIndex(y.current),b=h,S=Xn(b.onMouseLeave,()=>m.setHovered(-1)),k=Xn(b.onMouseEnter,()=>m.setHovered(m.getItemIndex(y.current))),E=Xn(b.onClick,()=>{typeof l=="boolean"?l&&m.closeDropdownImmediately():m.closeOnItemClick&&m.closeDropdownImmediately()}),j=Xn(b.onFocus,()=>m.setHovered(m.getItemIndex(y.current))),C=a?g.variantColorResolver({color:a,theme:g,variant:"light"}):void 0,T=a?Yr({color:a,theme:g}):null;return u.jsxs(Kt,{...h,unstyled:m.unstyled,tabIndex:m.menuItemTabIndex,onFocus:j,...m.getStyles("item",{className:r,style:o,styles:s,classNames:n}),ref:Lt(y,t),role:"menuitem",disabled:p,"data-menu-item":!0,"data-disabled":p||void 0,"data-hovered":m.hovered===x?!0:void 0,"data-mantine-stop-propagation":!0,onMouseEnter:k,onMouseLeave:S,onClick:E,onKeyDown:tk({siblingSelector:"[data-menu-item]",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:m.loop,dir:w,orientation:"vertical",onKeyDown:b.onKeydown}),__vars:{"--menu-item-color":T!=null&&T.isThemeColor&&(T==null?void 0:T.shade)===void 0?`var(--mantine-color-${T.color}-6)`:C==null?void 0:C.color,"--menu-item-hover":C==null?void 0:C.hover},children:[c&&u.jsx("div",{...m.getStyles("itemSection",{styles:s,classNames:n}),"data-position":"left",children:c}),f&&u.jsx("div",{...m.getStyles("itemLabel",{styles:s,classNames:n}),children:f}),d&&u.jsx("div",{...m.getStyles("itemSection",{styles:s,classNames:n}),"data-position":"right",children:d})]})});hh.classes=tc;hh.displayName="@mantine/core/MenuItem";const k5={},k1=Q((e,t)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,...a}=K("MenuLabel",k5,e),l=Ju();return u.jsx(Y,{ref:t,...l.getStyles("label",{className:r,style:o,styles:s,classNames:n}),...a})});k1.classes=tc;k1.displayName="@mantine/core/MenuLabel";const j5={refProp:"ref"},j1=v.forwardRef((e,t)=>{const{children:n,refProp:r,...o}=K("MenuTarget",j5,e);if(!Go(n))throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const s=Ju(),i=Xn(n.props.onClick,()=>{s.trigger==="click"?s.toggleDropdown():s.trigger==="click-hover"&&(s.setOpenedViaClick(!0),s.opened||s.openDropdown())}),a=Xn(n.props.onMouseEnter,()=>(s.trigger==="hover"||s.trigger==="click-hover")&&s.openDropdown()),l=Xn(n.props.onMouseLeave,()=>{(s.trigger==="hover"||s.trigger==="click-hover"&&!s.openedViaClick)&&s.closeDropdown()});return u.jsx(At.Target,{refProp:r,popupType:"menu",ref:t,...o,children:v.cloneElement(n,{onClick:i,onMouseEnter:a,onMouseLeave:l,"data-expanded":s.opened?!0:void 0})})});j1.displayName="@mantine/core/MenuTarget";const R5={trapFocus:!0,closeOnItemClick:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function Xe(e){const t=K("Menu",R5,e),{children:n,onOpen:r,onClose:o,opened:s,defaultOpened:i,trapFocus:a,onChange:l,closeOnItemClick:c,loop:d,closeOnEscape:f,trigger:p,openDelay:h,closeDelay:m,classNames:g,styles:w,unstyled:y,variant:x,vars:b,menuItemTabIndex:S,keepMounted:k,...E}=t,j=pe({name:"Menu",classes:tc,props:t,classNames:g,styles:w,unstyled:y}),[C,{setHovered:T,resetHovered:N}]=r3(),[_,I]=Zt({value:s,defaultValue:i,finalValue:!1,onChange:l}),[U,O]=v.useState(!1),M=()=>{I(!1),O(!1),_&&(o==null||o())},P=()=>{I(!0),!_&&(r==null||r())},L=()=>{_?M():P()},{openDropdown:R,closeDropdown:D}=x5({open:P,close:M,closeDelay:m,openDelay:h}),$=G=>n3("[data-menu-item]","[data-menu-dropdown]",G),{resolvedClassNames:A,resolvedStyles:B}=Qo({classNames:g,styles:w,props:t});return xr(()=>{N()},[_]),u.jsx(w5,{value:{getStyles:j,opened:_,toggleDropdown:L,getItemIndex:$,hovered:C,setHovered:T,openedViaClick:U,setOpenedViaClick:O,closeOnItemClick:c,closeDropdown:p==="click"?M:D,openDropdown:p==="click"?P:R,closeDropdownImmediately:M,loop:d,trigger:p,unstyled:y,menuItemTabIndex:S},children:u.jsx(At,{...E,opened:_,onChange:L,defaultOpened:i,trapFocus:k?!1:a,closeOnEscape:f,__staticSelector:"Menu",classNames:A,styles:B,unstyled:y,variant:x,keepMounted:k,children:n})})}Xe.extend=e=>e;Xe.classes=tc;Xe.displayName="@mantine/core/Menu";Xe.Item=hh;Xe.Label=k1;Xe.Dropdown=ph;Xe.Target=j1;Xe.Divider=E1;const[P5,nc]=ir("Modal component was not found in tree");var os={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const T5={},mh=Q((e,t)=>{const n=K("ModalBody",T5,e),{classNames:r,className:o,style:s,styles:i,vars:a,...l}=n,c=nc();return u.jsx(W0,{ref:t,...c.getStyles("body",{classNames:r,style:s,styles:i,className:o}),...l})});mh.classes=os;mh.displayName="@mantine/core/ModalBody";const N5={},gh=Q((e,t)=>{const n=K("ModalCloseButton",N5,e),{classNames:r,className:o,style:s,styles:i,vars:a,...l}=n,c=nc();return u.jsx(K0,{ref:t,...c.getStyles("close",{classNames:r,style:s,styles:i,className:o}),...l})});gh.classes=os;gh.displayName="@mantine/core/ModalCloseButton";const L5={},yh=Q((e,t)=>{const n=K("ModalContent",L5,e),{classNames:r,className:o,style:s,styles:i,vars:a,children:l,...c}=n,d=nc(),f=d.scrollAreaComponent||dj;return u.jsx(uj,{...d.getStyles("content",{className:o,style:s,styles:i,classNames:r}),innerProps:d.getStyles("inner",{className:o,style:s,styles:i,classNames:r}),"data-full-screen":d.fullScreen||void 0,"data-modal-content":!0,ref:t,...c,children:u.jsx(f,{style:{maxHeight:d.fullScreen?"100dvh":`calc(100dvh - (${H(d.yOffset)} * 2))`},children:l})})});yh.classes=os;yh.displayName="@mantine/core/ModalContent";const D5={},vh=Q((e,t)=>{const n=K("ModalHeader",D5,e),{classNames:r,className:o,style:s,styles:i,vars:a,...l}=n,c=nc();return u.jsx(q0,{ref:t,...c.getStyles("header",{classNames:r,style:s,styles:i,className:o}),...l})});vh.classes=os;vh.displayName="@mantine/core/ModalHeader";const M5={},xh=Q((e,t)=>{const n=K("ModalOverlay",M5,e),{classNames:r,className:o,style:s,styles:i,vars:a,...l}=n,c=nc();return u.jsx(Y0,{ref:t,...c.getStyles("overlay",{classNames:r,style:s,styles:i,className:o}),...l})});xh.classes=os;xh.displayName="@mantine/core/ModalOverlay";const _5={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Bn("modal"),transitionProps:{duration:200,transition:"pop"},yOffset:"5dvh"},A5=(e,{radius:t,size:n,yOffset:r,xOffset:o})=>({root:{"--modal-radius":t===void 0?void 0:wt(t),"--modal-size":Le(n,"modal-size"),"--modal-y-offset":H(r),"--modal-x-offset":H(o)}}),bh=Q((e,t)=>{const n=K("ModalRoot",_5,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,yOffset:c,scrollAreaComponent:d,radius:f,fullScreen:p,centered:h,xOffset:m,__staticSelector:g,...w}=n,y=pe({name:g,classes:os,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:A5});return u.jsx(P5,{value:{yOffset:c,scrollAreaComponent:d,getStyles:y,fullScreen:p},children:u.jsx(cj,{ref:t,...y("root"),"data-full-screen":p||void 0,"data-centered":h||void 0,unstyled:a,...w})})});bh.classes=os;bh.displayName="@mantine/core/ModalRoot";const O5={},wh=Q((e,t)=>{const n=K("ModalTitle",O5,e),{classNames:r,className:o,style:s,styles:i,vars:a,...l}=n,c=nc();return u.jsx(G0,{ref:t,...c.getStyles("title",{classNames:r,style:s,styles:i,className:o}),...l})});wh.classes=os;wh.displayName="@mantine/core/ModalTitle";const $5={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Bn("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},_t=Q((e,t)=>{const{title:n,withOverlay:r,overlayProps:o,withCloseButton:s,closeButtonProps:i,children:a,radius:l,...c}=K("Modal",$5,e),d=!!n||s;return u.jsxs(bh,{ref:t,radius:l,...c,children:[r&&u.jsx(xh,{...o}),u.jsxs(yh,{radius:l,children:[d&&u.jsxs(vh,{children:[n&&u.jsx(wh,{children:n}),s&&u.jsx(gh,{...i})]}),u.jsx(mh,{children:a})]})]})});_t.classes=os;_t.displayName="@mantine/core/Modal";_t.Root=bh;_t.Overlay=xh;_t.Content=yh;_t.Body=mh;_t.Header=vh;_t.Title=wh;_t.CloseButton=gh;var Yj={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const F5={withCloseButton:!0},I5=(e,{radius:t,color:n})=>({root:{"--notification-radius":t===void 0?void 0:wt(t),"--notification-color":n?vt(n,e):void 0}}),R1=Q((e,t)=>{const n=K("Notification",F5,e),{className:r,color:o,radius:s,loading:i,withCloseButton:a,withBorder:l,title:c,icon:d,children:f,onClose:p,closeButtonProps:h,classNames:m,style:g,styles:w,unstyled:y,variant:x,vars:b,mod:S,...k}=n,E=pe({name:"Notification",classes:Yj,props:n,className:r,style:g,classNames:m,styles:w,unstyled:y,vars:b,varsResolver:I5});return u.jsxs(Y,{...E("root"),mod:[{"data-with-icon":!!d||i,"data-with-border":l},S],ref:t,variant:x,...k,role:"alert",children:[d&&!i&&u.jsx("div",{...E("icon"),children:d}),i&&u.jsx(Zo,{size:28,color:o,...E("loader")}),u.jsxs("div",{...E("body"),children:[c&&u.jsx("div",{...E("title"),children:c}),u.jsx(Y,{...E("description"),mod:{"data-with-title":!!c},children:f})]}),a&&u.jsx(Sr,{iconSize:16,color:"gray",...h,unstyled:y,onClick:p,...E("closeButton")})]})});R1.classes=Yj;R1.displayName="@mantine/core/Notification";function Gj(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var ju;(function(e){e.event="event",e.props="prop"})(ju||(ju={}));function ks(){}function z5(e){var t,n=void 0;return function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];return t&&r.length===t.length&&r.every(function(s,i){return s===t[i]})||(t=r,n=e.apply(void 0,r)),n}}function Ru(e){return!!(e||"").match(/\d/)}function fl(e){return e==null}function V5(e){return typeof e=="number"&&isNaN(e)}function Qj(e){return fl(e)||V5(e)||typeof e=="number"&&!isFinite(e)}function Xj(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function B5(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function U5(e,t,n){var r=B5(n),o=e.search(/[1-9]/);return o=o===-1?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}function H5(e){var t=v.useRef(e);t.current=e;var n=v.useRef(function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];return t.current.apply(t,r)});return n.current}function P1(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var o=e.split("."),s=o[0],i=o[1]||"";return{beforeDecimal:s,afterDecimal:i,hasNegation:n,addNegation:r}}function W5(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}function Jj(e,t,n){for(var r="",o=n?"0":"",s=0;s<=t-1;s++)r+=e[s]||o;return r}function Ow(e,t){return Array(t+1).join(e)}function Zj(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],s=r[1];if(s=Number(s),!s)return n+o;o=o.replace(".","");var i=1+s,a=o.length;return i<0?o="0."+Ow("0",Math.abs(i))+o:i>=a?o=o+Ow("0",i-a):o=(o.substring(0,i)||"0")+"."+o.substring(i),n+o}function $w(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,o=P1(e),s=o.beforeDecimal,i=o.afterDecimal,a=o.hasNegation,l=parseFloat("0."+(i||"0")),c=i.length<=t?"0."+i:l.toFixed(t),d=c.split("."),f=s;s&&Number(d[0])&&(f=s.split("").reverse().reduce(function(g,w,y){return g.length>y?(Number(g[0])+Number(w)).toString()+g.substring(1,g.length):w+g},d[0]));var p=Jj(d[1]||"",t,n),h=a?"-":"",m=r?".":"";return""+h+f+m+p}function ki(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var eR=z5(function(e,t){for(var n=0,r=0,o=e.length,s=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[s-1-r]&&s-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:s-r}}}),K5=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function q5(e,t,n){return Math.min(Math.max(e,t),n)}function ag(e){return Math.max(e.selectionStart,e.selectionEnd)}function Y5(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function G5(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Q5(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function X5(e,t,n,r,o,s,i){i===void 0&&(i=Q5);var a=o.findIndex(function(S){return S}),l=e.slice(0,a);!t&&!n.startsWith(l)&&(t=l,n=l+n,r=r+l.length);for(var c=n.length,d=e.length,f={},p=new Array(c),h=0;h<c;h++){p[h]=-1;for(var m=0,g=d;m<g;m++){var w=i({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:h,formattedValueIndex:m});if(w&&f[m]!==!0){p[h]=m,f[m]=!0;break}}}for(var y=r;y<c&&(p[y]===-1||!s(n[y]));)y++;var x=y===c||p[y]===-1?d:p[y];for(y=r-1;y>0&&p[y]===-1;)y--;var b=y===-1||p[y]===-1?0:p[y]+1;return b>x?x:r-b<x-r?b:x}function Fw(e,t,n,r){var o=e.length;if(t=q5(t,0,o),r==="left"){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=o&&!n[t];)t++;t>o&&(t=n.lastIndexOf(!0))}return t===-1&&(t=o),t}function J5(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Ru(e[n])||Ru(e[n-1]));return t}function tR(e,t,n,r,o,s){s===void 0&&(s=ks);var i=H5(function(m,g){var w,y;return Qj(m)?(y="",w=""):typeof m=="number"||g?(y=typeof m=="number"?Zj(m):m,w=r(y)):(y=o(m,void 0),w=r(y)),{formattedValue:w,numAsString:y}}),a=v.useState(function(){return i(fl(e)?t:e,n)}),l=a[0],c=a[1],d=function(m,g){m.formattedValue!==l.formattedValue&&c({formattedValue:m.formattedValue,numAsString:m.value}),s(m,g)},f=e,p=n;fl(e)&&(f=l.numAsString,p=!0);var h=i(f,p);return v.useMemo(function(){c(h)},[h.formattedValue]),[l,d]}function Z5(e){return e.replace(/[^0-9]/g,"")}function e8(e){return e}function t8(e){var t=e.type;t===void 0&&(t="text");var n=e.displayType;n===void 0&&(n="input");var r=e.customInput,o=e.renderText,s=e.getInputRef,i=e.format;i===void 0&&(i=e8);var a=e.removeFormatting;a===void 0&&(a=Z5);var l=e.defaultValue,c=e.valueIsNumericString,d=e.onValueChange,f=e.isAllowed,p=e.onChange;p===void 0&&(p=ks);var h=e.onKeyDown;h===void 0&&(h=ks);var m=e.onMouseUp;m===void 0&&(m=ks);var g=e.onFocus;g===void 0&&(g=ks);var w=e.onBlur;w===void 0&&(w=ks);var y=e.value,x=e.getCaretBoundary;x===void 0&&(x=J5);var b=e.isValidInputCharacter;b===void 0&&(b=Ru);var S=e.isCharacterSame,k=Gj(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),E=tR(y,l,!!c,i,a,d),j=E[0],C=j.formattedValue,T=j.numAsString,N=E[1],_=v.useRef(),I=v.useRef({formattedValue:C,numAsString:T}),U=function(te,se){I.current={formattedValue:te.formattedValue,numAsString:te.value},N(te,se)},O=v.useState(!1),M=O[0],P=O[1],L=v.useRef(null),R=v.useRef({setCaretTimeout:null,focusTimeout:null});v.useEffect(function(){return P(!0),function(){clearTimeout(R.current.setCaretTimeout),clearTimeout(R.current.focusTimeout)}},[]);var D=i,$=function(te,se){var we=parseFloat(se);return{formattedValue:te,value:se,floatValue:isNaN(we)?void 0:we}},A=function(te,se,we){te.selectionStart===0&&te.selectionEnd===te.value.length||(ki(te,se),R.current.setCaretTimeout=setTimeout(function(){te.value===we&&te.selectionStart!==se&&ki(te,se)},0))},B=function(te,se,we){return Fw(te,se,x(te),we)},G=function(te,se,we){var ke=x(se),Ie=X5(se,C,te,we,ke,b,S);return Ie=Fw(se,Ie,ke),Ie},ne=function(te){var se=te.formattedValue;se===void 0&&(se="");var we=te.input,ke=te.source,Ie=te.event,Oe=te.numAsString,ee;if(we){var Ee=te.inputValue||we.value,tt=ag(we);we.value=se,ee=G(Ee,se,tt),ee!==void 0&&A(we,ee,se)}se!==C&&U($(se,Oe),{event:Ie,source:ke})};v.useEffect(function(){var te=I.current,se=te.formattedValue,we=te.numAsString;(C!==se||T!==we)&&U($(C,T),{event:void 0,source:ju.props})},[C,T]);var Z=L.current?ag(L.current):void 0,oe=typeof window<"u"?v.useLayoutEffect:v.useEffect;oe(function(){var te=L.current;if(C!==I.current.formattedValue&&te){var se=G(I.current.formattedValue,C,Z);te.value=C,A(te,se,C)}},[C]);var ae=function(te,se,we){var ke=se.target,Ie=_.current?K5(_.current,ke.selectionEnd):eR(C,te),Oe=Object.assign(Object.assign({},Ie),{lastValue:C}),ee=a(te,Oe),Ee=D(ee);if(ee=a(Ee,void 0),f&&!f($(Ee,ee))){var tt=se.target,nt=ag(tt),at=G(te,C,nt);return tt.value=C,A(tt,at,C),!1}return ne({formattedValue:Ee,numAsString:ee,inputValue:te,event:se,source:we,input:se.target}),!0},ue=function(te,se){se===void 0&&(se=0);var we=te.selectionStart,ke=te.selectionEnd;_.current={selectionStart:we,selectionEnd:ke+se}},be=function(te){var se=te.target,we=se.value,ke=ae(we,te,ju.event);ke&&p(te),_.current=void 0},fe=function(te){var se=te.target,we=te.key,ke=se.selectionStart,Ie=se.selectionEnd,Oe=se.value;Oe===void 0&&(Oe="");var ee;we==="ArrowLeft"||we==="Backspace"?ee=Math.max(ke-1,0):we==="ArrowRight"?ee=Math.min(ke+1,Oe.length):we==="Delete"&&(ee=ke);var Ee=0;we==="Delete"&&ke===Ie&&(Ee=1);var tt=we==="ArrowLeft"||we==="ArrowRight";if(ee===void 0||ke!==Ie&&!tt){h(te),ue(se,Ee);return}var nt=ee;if(tt){var at=we==="ArrowLeft"?"left":"right";nt=B(Oe,ee,at),nt!==ee&&te.preventDefault()}else we==="Delete"&&!b(Oe[ee])?nt=B(Oe,ee,"right"):we==="Backspace"&&!b(Oe[ee])&&(nt=B(Oe,ee,"left"));nt!==ee&&A(se,nt,Oe),h(te),ue(se,Ee)},_e=function(te){var se=te.target,we=function(){var ke=se.selectionStart,Ie=se.selectionEnd,Oe=se.value;if(Oe===void 0&&(Oe=""),ke===Ie){var ee=B(Oe,ke);ee!==ke&&A(se,ee,Oe)}};we(),requestAnimationFrame(function(){we()}),m(te),ue(se)},he=function(te){te.persist&&te.persist();var se=te.target,we=te.currentTarget;L.current=se,R.current.focusTimeout=setTimeout(function(){var ke=se.selectionStart,Ie=se.selectionEnd,Oe=se.value;Oe===void 0&&(Oe="");var ee=B(Oe,ke);ee!==ke&&!(ke===0&&Ie===Oe.length)&&A(se,ee,Oe),g(Object.assign(Object.assign({},te),{currentTarget:we}))},0)},Se=function(te){L.current=null,clearTimeout(R.current.focusTimeout),clearTimeout(R.current.setCaretTimeout),w(te)},le=M&&Y5()?"numeric":void 0,Te=Object.assign({inputMode:le},k,{type:t,value:C,onChange:be,onKeyDown:fe,onMouseUp:_e,onFocus:he,onBlur:Se});if(n==="text")return o?Ht.createElement(Ht.Fragment,null,o(C,k)||null):Ht.createElement("span",Object.assign({},k,{ref:s}),C);if(r){var et=r;return Ht.createElement(et,Object.assign({},Te,{ref:s}))}return Ht.createElement("input",Object.assign({},Te,{ref:s}))}function Iw(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;o===void 0&&(o="");var s=t.suffix;s===void 0&&(s="");var i=t.allowNegative,a=t.thousandsGroupStyle;if(a===void 0&&(a="thousand"),e===""||e==="-")return e;var l=Sh(t),c=l.thousandSeparator,d=l.decimalSeparator,f=n!==0&&e.indexOf(".")!==-1||n&&r,p=P1(e,i),h=p.beforeDecimal,m=p.afterDecimal,g=p.addNegation;return n!==void 0&&(m=Jj(m,n,!!r)),c&&(h=U5(h,c,a)),o&&(h=o+h),s&&(m=m+s),g&&(h="-"+h),e=h+(f&&d||"")+m,e}function Sh(e){var t=e.decimalSeparator;t===void 0&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function n8(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),s=r.test(e);return e=e.replace(/-/g,""),o&&!s&&t&&(e="-"+e),e}function r8(e,t){return new RegExp("(^-)|[0-9]|"+Xj(e),"g")}function o8(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function s8(e,t,n){var r;t===void 0&&(t=G5(e));var o=n.allowNegative,s=n.prefix;s===void 0&&(s="");var i=n.suffix;i===void 0&&(i="");var a=n.decimalScale,l=t.from,c=t.to,d=c.start,f=c.end,p=Sh(n),h=p.allowedDecimalSeparators,m=p.decimalSeparator,g=e[f]===m;if(Ru(e)&&(e===s||e===i)&&t.lastValue==="")return e;if(f-d===1&&h.indexOf(e[d])!==-1){var w=a===0?"":m;e=e.substring(0,d)+w+e.substring(d+1,e.length)}var y=function(L,R,D){var $=!1,A=!1;s.startsWith("-")?$=!1:L.startsWith("--")?($=!1,A=!0):i.startsWith("-")&&L.length===i.length?$=!1:L[0]==="-"&&($=!0);var B=$?1:0;return A&&(B=2),B&&(L=L.substring(B),R-=B,D-=B),{value:L,start:R,end:D,hasNegation:$}},x=y(e,d,f),b=x.hasNegation;r=x,e=r.value,d=r.start,f=r.end;var S=y(t.lastValue,l.start,l.end),k=S.start,E=S.end,j=S.value,C=e.substring(d,f);e.length&&j.length&&(k>j.length-i.length||E<s.length)&&!(C&&i.startsWith(C))&&(e=j);var T=0;e.startsWith(s)?T+=s.length:d<s.length&&(T=d),e=e.substring(T),f-=T;var N=e.length,_=e.length-i.length;e.endsWith(i)?N=_:(f>_||f>e.length-i.length)&&(N=f),e=e.substring(0,N),e=n8(b?"-"+e:e,o),e=(e.match(r8(m))||[]).join("");var I=e.indexOf(m);e=e.replace(new RegExp(Xj(m),"g"),function(L,R){return R===I?".":""});var U=P1(e,o),O=U.beforeDecimal,M=U.afterDecimal,P=U.addNegation;return c.end-c.start<l.end-l.start&&O===""&&g&&!parseFloat(M)&&(e=P?"-":""),e}function i8(e,t){var n=t.prefix;n===void 0&&(n="");var r=t.suffix;r===void 0&&(r="");var o=Array.from({length:e.length+1}).map(function(){return!0}),s=e[0]==="-";o.fill(!1,0,n.length+(s?1:0));var i=e.length;return o.fill(!1,i-r.length+1,i+1),o}function a8(e){var t=Sh(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;o===void 0&&(o="");var s=e.allowNegative;if(s===void 0&&(s=!0),n===r)throw new Error(`
84
+ Decimal separator can't be same as thousand separator.
85
+ thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
86
+ decimalSeparator: `+r+` (default value for decimalSeparator is .)
87
+ `);return o.startsWith("-")&&s&&(console.error(`
88
+ Prefix can't start with '-' when allowNegative is true.
89
+ prefix: `+o+`
90
+ allowNegative: `+s+`
91
+ `),s=!1),Object.assign(Object.assign({},e),{allowNegative:s})}function l8(e){e=a8(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;o===void 0&&(o=ks);var s=e.onBlur;s===void 0&&(s=ks);var i=e.thousandSeparator,a=e.decimalScale,l=e.fixedDecimalScale,c=e.prefix;c===void 0&&(c="");var d=e.defaultValue,f=e.value,p=e.valueIsNumericString,h=e.onValueChange,m=Gj(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),g=Sh(e),w=g.decimalSeparator,y=g.allowedDecimalSeparators,x=function(P){return Iw(P,e)},b=function(P,L){return s8(P,L,e)},S=fl(f)?d:f,k=p??o8(S,c,t);fl(f)?fl(d)||(k=k||typeof d=="number"):k=k||typeof f=="number";var E=function(P){return Qj(P)?P:(typeof P=="number"&&(P=Zj(P)),k&&typeof a=="number"?$w(P,a,!!l):P)},j=tR(E(f),E(d),!!k,x,b,h),C=j[0],T=C.numAsString,N=C.formattedValue,_=j[1],I=function(P){var L=P.target,R=P.key,D=L.selectionStart,$=L.selectionEnd,A=L.value;if(A===void 0&&(A=""),(R==="Backspace"||R==="Delete")&&$<c.length){P.preventDefault();return}if(D!==$){o(P);return}R==="Backspace"&&A[0]==="-"&&D===c.length+1&&n&&ki(L,1),a&&l&&(R==="Backspace"&&A[D-1]===w?(ki(L,D-1),P.preventDefault()):R==="Delete"&&A[D]===w&&P.preventDefault()),y!=null&&y.includes(R)&&A[D]===w&&ki(L,D+1);var B=i===!0?",":i;R==="Backspace"&&A[D-1]===B&&ki(L,D-1),R==="Delete"&&A[D]===B&&ki(L,D+1),o(P)},U=function(P){var L=T;if(L.match(/\d/g)||(L=""),r||(L=W5(L)),l&&a&&(L=$w(L,a,l)),L!==T){var R=Iw(L,e);_({formattedValue:R,value:L,floatValue:parseFloat(L)},{event:P,source:ju.event})}s(P)},O=function(P){return P===w?!0:Ru(P)},M=function(P){var L=P.currentValue,R=P.lastValue,D=P.formattedValue,$=P.currentValueIndex,A=P.formattedValueIndex,B=L[$],G=D[A],ne=eR(R,L),Z=ne.to,oe=function(ae){return b(ae).indexOf(".")+c.length};return f===0&&l&&a&&L[Z.start]===w&&oe(L)<$&&oe(D)>A?!1:$>=Z.start&&$<Z.end&&y&&y.includes(B)&&G===w?!0:B===G};return Object.assign(Object.assign({},m),{value:N,valueIsNumericString:!1,isValidInputCharacter:O,isCharacterSame:M,onValueChange:_,format:x,removeFormatting:b,getCaretBoundary:function(P){return i8(P,e)},onKeyDown:I,onBlur:U})}function c8(e){var t=l8(e);return Ht.createElement(t8,Object.assign({},t))}function zw({direction:e,style:t,...n}){return u.jsx("svg",{style:{width:"var(--ni-chevron-size)",height:"var(--ni-chevron-size)",transform:e==="up"?"rotate(180deg)":void 0,...t},viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:u.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}var Oy={root:"m_e2f5cd4e",controls:"m_95e17d22",control:"m_80b4b171"};const u8=/^(0\.0*|-0(\.0*)?)$/,d8=/^-?0\d+(\.\d+)?\.?$/;function f8(e){return(typeof e=="number"?e<Number.MAX_SAFE_INTEGER:!Number.isNaN(Number(e)))&&!Number.isNaN(e)}function Vw(e,t,n){if(e===void 0)return!0;const r=t===void 0||e>=t,o=n===void 0||e<=n;return r&&o}const p8={step:1,clampBehavior:"blur",allowDecimal:!0,allowNegative:!0,withKeyboardEvents:!0,allowLeadingZeros:!0,trimLeadingZeroesOnBlur:!0,startValue:0},h8=(e,{size:t})=>({controls:{"--ni-chevron-size":Le(t,"ni-chevron-size")}}),T1=Q((e,t)=>{const n=K("NumberInput",p8,e),{className:r,classNames:o,styles:s,unstyled:i,vars:a,onChange:l,onValueChange:c,value:d,defaultValue:f,max:p,min:h,step:m,hideControls:g,rightSection:w,isAllowed:y,clampBehavior:x,onBlur:b,allowDecimal:S,decimalScale:k,onKeyDown:E,onKeyDownCapture:j,handlersRef:C,startValue:T,disabled:N,rightSectionPointerEvents:_,allowNegative:I,readOnly:U,size:O,rightSectionWidth:M,stepHoldInterval:P,stepHoldDelay:L,allowLeadingZeros:R,withKeyboardEvents:D,trimLeadingZeroesOnBlur:$,...A}=n,B=pe({name:"NumberInput",classes:Oy,props:n,classNames:o,styles:s,unstyled:i,vars:a,varsResolver:h8}),{resolvedClassNames:G,resolvedStyles:ne}=Qo({classNames:o,styles:s,props:n}),[Z,oe]=Zt({value:d,defaultValue:f,onChange:l}),ae=L!==void 0&&P!==void 0,ue=v.useRef(null),be=v.useRef(null),fe=v.useRef(0),_e=(ee,Ee)=>{Ee.source==="event"&&oe(f8(ee.floatValue)&&!u8.test(ee.value)&&!(R&&d8.test(ee.value))?ee.floatValue:ee.value),c==null||c(ee,Ee)},he=ee=>{const Ee=String(ee).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return Ee?Math.max(0,(Ee[1]?Ee[1].length:0)-(Ee[2]?+Ee[2]:0)):0},Se=ee=>{ue.current&&typeof ee<"u"&&ue.current.setSelectionRange(ee,ee)},le=v.useRef();le.current=()=>{let ee;const Ee=he(Z),tt=he(m),nt=Math.max(Ee,tt),at=10**nt;if(typeof Z!="number"||Number.isNaN(Z))ee=Ic(T,h,p);else if(p!==void 0){const Ke=(Math.round(Z*at)+Math.round(m*at))/at;ee=Ke<=p?Ke:p}else ee=(Math.round(Z*at)+Math.round(m*at))/at;const qe=ee.toFixed(nt);oe(parseFloat(qe)),c==null||c({floatValue:parseFloat(qe),formattedValue:qe,value:qe},{source:"increment"}),setTimeout(()=>{var Ke;return Se((Ke=ue.current)==null?void 0:Ke.value.length)},0)};const Te=v.useRef();Te.current=()=>{let ee;const Ee=h!==void 0?h:I?Number.MIN_SAFE_INTEGER:0,tt=he(Z),nt=he(m),at=Math.max(tt,nt),qe=10**at;if(typeof Z!="number"||Number.isNaN(Z))ee=Ic(T,Ee,p);else{const dt=(Math.round(Z*qe)-Math.round(m*qe))/qe;ee=Ee!==void 0&&dt<Ee?Ee:dt}const Ke=ee.toFixed(at);oe(parseFloat(Ke)),c==null||c({floatValue:parseFloat(Ke),formattedValue:Ke,value:Ke},{source:"decrement"}),setTimeout(()=>{var dt;return Se((dt=ue.current)==null?void 0:dt.value.length)},0)};const et=ee=>{E==null||E(ee),!(U||!D)&&(ee.key==="ArrowUp"&&(ee.preventDefault(),le.current()),ee.key==="ArrowDown"&&(ee.preventDefault(),Te.current()))},te=ee=>{if(j==null||j(ee),ee.key==="Backspace"){const Ee=ue.current;Ee.selectionStart===0&&Ee.selectionStart===Ee.selectionEnd&&(ee.preventDefault(),window.setTimeout(()=>Se(0),0))}};Up(C,{increment:le.current,decrement:Te.current});const se=ee=>{ee?le.current():Te.current(),fe.current+=1},we=ee=>{if(se(ee),ae){const Ee=typeof P=="number"?P:P(fe.current);be.current=window.setTimeout(()=>we(ee),Ee)}},ke=(ee,Ee)=>{var tt;ee.preventDefault(),(tt=ue.current)==null||tt.focus(),se(Ee),ae&&(be.current=window.setTimeout(()=>we(Ee),L))},Ie=()=>{be.current&&window.clearTimeout(be.current),be.current=null,fe.current=0},Oe=u.jsxs("div",{...B("controls"),children:[u.jsx(Kt,{...B("control"),tabIndex:-1,"aria-hidden":!0,disabled:N||typeof Z=="number"&&p!==void 0&&Z>=p,mod:{direction:"up"},onMouseDown:ee=>ee.preventDefault(),onPointerDown:ee=>{ke(ee,!0)},onPointerUp:Ie,onPointerLeave:Ie,children:u.jsx(zw,{direction:"up"})}),u.jsx(Kt,{...B("control"),tabIndex:-1,"aria-hidden":!0,disabled:N||typeof Z=="number"&&h!==void 0&&Z<=h,mod:{direction:"down"},onMouseDown:ee=>ee.preventDefault(),onPointerDown:ee=>{ke(ee,!1)},onPointerUp:Ie,onPointerLeave:Ie,children:u.jsx(zw,{direction:"down"})})]});return u.jsx(ar,{component:c8,allowNegative:I,className:De(Oy.root,r),size:O,...A,readOnly:U,disabled:N,value:Z,getInputRef:Lt(t,ue),onValueChange:_e,rightSection:g||U?w:w||Oe,classNames:G,styles:ne,unstyled:i,__staticSelector:"NumberInput",decimalScale:S?k:0,onKeyDown:et,onKeyDownCapture:te,rightSectionPointerEvents:_??(N?"none":void 0),rightSectionWidth:M??`var(--ni-right-section-width-${O||"sm"})`,allowLeadingZeros:R,onBlur:ee=>{if(b==null||b(ee),x==="blur"&&typeof Z=="number"&&Ic(Z,h,p)!==Z&&oe(Ic(Z,h,p)),$&&typeof Z=="string"){const Ee=Z.replace(/^0+/,""),tt=parseFloat(Ee);oe(Number.isNaN(tt)||tt>Number.MAX_SAFE_INTEGER?Ee:tt)}},isAllowed:ee=>x==="strict"?y?y(ee)&&Vw(ee.floatValue,h,p):Vw(ee.floatValue,h,p):y?y(ee):!0})});T1.classes={...ar.classes,...Oy};T1.displayName="@mantine/core/NumberInput";const[m8,Ch]=ir("Pagination.Root component was not found in tree");var Zu={root:"m_4addd315",control:"m_326d024a",dots:"m_4ad7767d"};const g8={withPadding:!0},ed=Q((e,t)=>{const n=K("PaginationControl",g8,e),{classNames:r,className:o,style:s,styles:i,vars:a,active:l,disabled:c,withPadding:d,mod:f,...p}=n,h=Ch(),m=c||h.disabled;return u.jsx(Kt,{ref:t,disabled:m,mod:[{active:l,disabled:m,"with-padding":d},f],...h.getStyles("control",{className:o,style:s,classNames:r,styles:i,active:!m}),...p})});ed.classes=Zu;ed.displayName="@mantine/core/PaginationControl";function td({style:e,children:t,path:n,...r}){return u.jsx("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)",...e},...r,children:u.jsx("path",{d:n,fill:"currentColor"})})}const y8=e=>u.jsx(td,{...e,path:"M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z"}),v8=e=>u.jsx(td,{...e,path:"M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z"}),x8=e=>u.jsx(td,{...e,path:"M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z"}),b8=e=>u.jsx(td,{...e,path:"M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z"}),w8=e=>u.jsx(td,{...e,path:"M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z"}),S8={icon:w8},Eh=Q((e,t)=>{const n=K("PaginationDots",S8,e),{classNames:r,className:o,style:s,styles:i,vars:a,icon:l,...c}=n,d=Ch(),f=l;return u.jsx(Y,{ref:t,...d.getStyles("dots",{className:o,style:s,styles:i,classNames:r}),...c,children:u.jsx(f,{style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)"}})})});Eh.classes=Zu;Eh.displayName="@mantine/core/PaginationDots";function kh({icon:e,name:t,action:n,type:r}){const o={icon:e},s=v.forwardRef((i,a)=>{const{icon:l,...c}=K(t,o,i),d=l,f=Ch(),p=r==="next"?f.active===f.total:f.active===1;return u.jsx(ed,{disabled:f.disabled||p,ref:a,onClick:f[n],withPadding:!1,...c,children:u.jsx(d,{className:"mantine-rotate-rtl",style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)"}})})});return s.displayName=`@mantine/core/${t}`,s}const nR=kh({icon:y8,name:"PaginationNext",action:"onNext",type:"next"}),rR=kh({icon:v8,name:"PaginationPrevious",action:"onPrevious",type:"previous"}),oR=kh({icon:x8,name:"PaginationFirst",action:"onFirst",type:"previous"}),sR=kh({icon:b8,name:"PaginationLast",action:"onLast",type:"next"});function N1({dotsIcon:e}){const t=Ch(),n=t.range.map((r,o)=>{var s;return r==="dots"?u.jsx(Eh,{icon:e},o):u.jsx(ed,{active:r===t.active,"aria-current":r===t.active?"page":void 0,onClick:()=>t.onChange(r),disabled:t.disabled,...(s=t.getItemProps)==null?void 0:s.call(t,r),children:r},o)});return u.jsx(u.Fragment,{children:n})}N1.displayName="@mantine/core/PaginationItems";const C8={siblings:1,boundaries:1},E8=(e,{size:t,radius:n,color:r,autoContrast:o})=>({root:{"--pagination-control-radius":n===void 0?void 0:wt(n),"--pagination-control-size":Le(t,"pagination-control-size"),"--pagination-control-fz":Jt(t),"--pagination-active-bg":r?vt(r,e):void 0,"--pagination-active-color":Gl(o,e)?oa({color:r,theme:e,autoContrast:o}):void 0}}),jh=Q((e,t)=>{const n=K("PaginationRoot",C8,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,total:c,value:d,defaultValue:f,onChange:p,disabled:h,siblings:m,boundaries:g,color:w,radius:y,onNextPage:x,onPreviousPage:b,onFirstPage:S,onLastPage:k,getItemProps:E,autoContrast:j,...C}=n,T=pe({name:"Pagination",classes:Zu,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:E8}),{range:N,setPage:_,next:I,previous:U,active:O,first:M,last:P}=S3({page:d,initialPage:f,onChange:p,total:c,siblings:m,boundaries:g}),L=Xn(x,I),R=Xn(b,U),D=Xn(S,M),$=Xn(k,P);return u.jsx(m8,{value:{total:c,range:N,active:O,disabled:h,getItemProps:E,onChange:_,onNext:L,onPrevious:R,onFirst:D,onLast:$,getStyles:T},children:u.jsx(Y,{ref:t,...T("root"),...C})})});jh.classes=Zu;jh.displayName="@mantine/core/PaginationRoot";const k8={withControls:!0,siblings:1,boundaries:1,gap:8},lr=Q((e,t)=>{const n=K("Pagination",k8,e),{withEdges:r,withControls:o,getControlProps:s,nextIcon:i,previousIcon:a,lastIcon:l,firstIcon:c,dotsIcon:d,total:f,gap:p,hideWithOnePage:h,...m}=n;return f<=0||h&&f===1?null:u.jsx(jh,{ref:t,total:f,...m,children:u.jsxs(Ge,{gap:p,children:[r&&u.jsx(oR,{icon:c,...s==null?void 0:s("first")}),o&&u.jsx(rR,{icon:a,...s==null?void 0:s("previous")}),u.jsx(N1,{dotsIcon:d}),o&&u.jsx(nR,{icon:i,...s==null?void 0:s("next")}),r&&u.jsx(sR,{icon:l,...s==null?void 0:s("last")})]})})});lr.classes=Zu;lr.displayName="@mantine/core/Pagination";lr.Root=jh;lr.Control=ed;lr.Dots=Eh;lr.First=oR;lr.Last=sR;lr.Next=nR;lr.Previous=rR;lr.Items=N1;const j8=({reveal:e})=>u.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:"var(--psi-icon-size)",height:"var(--psi-icon-size)"},children:u.jsx("path",{d:e?"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z":"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})});var $y={root:"m_f61ca620",input:"m_ccf8da4c",innerInput:"m_f2d85dd2",visibilityToggle:"m_b1072d44"};const R8={visibilityToggleIcon:j8},P8=(e,{size:t})=>({root:{"--psi-icon-size":Le(t,"psi-icon-size"),"--psi-button-size":Le(t,"psi-button-size")}}),zl=Q((e,t)=>{const n=K("PasswordInput",R8,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,required:c,error:d,leftSection:f,disabled:p,id:h,variant:m,inputContainer:g,description:w,label:y,size:x,errorProps:b,descriptionProps:S,labelProps:k,withAsterisk:E,inputWrapperOrder:j,wrapperProps:C,radius:T,rightSection:N,rightSectionWidth:_,rightSectionPointerEvents:I,leftSectionWidth:U,visible:O,defaultVisible:M,onVisibilityChange:P,visibilityToggleIcon:L,visibilityToggleButtonProps:R,rightSectionProps:D,leftSectionProps:$,leftSectionPointerEvents:A,withErrorStyles:B,mod:G,...ne}=n,Z=Un(h),[oe,ae]=Zt({value:O,defaultValue:M,finalValue:!1,onChange:P}),ue=()=>ae(!oe),be=pe({name:"PasswordInput",classes:$y,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:P8}),{resolvedClassNames:fe,resolvedStyles:_e}=Qo({classNames:r,styles:i,props:n}),{styleProps:he,rest:Se}=si(ne),le=L,Te=u.jsx(Yt,{...be("visibilityToggle"),disabled:p,radius:T,"aria-hidden":!R,tabIndex:-1,...R,variant:"subtle",color:"gray",unstyled:a,onMouseDown:et=>{var te;et.preventDefault(),(te=R==null?void 0:R.onMouseDown)==null||te.call(R,et),ue()},onKeyDown:et=>{var te;(te=R==null?void 0:R.onKeyDown)==null||te.call(R,et),et.key===" "&&(et.preventDefault(),ue())},children:u.jsx(le,{reveal:oe})});return u.jsx(st.Wrapper,{required:c,id:Z,label:y,error:d,description:w,size:x,classNames:fe,styles:_e,__staticSelector:"PasswordInput",errorProps:b,descriptionProps:S,unstyled:a,withAsterisk:E,inputWrapperOrder:j,inputContainer:g,variant:m,labelProps:{...k,htmlFor:Z},mod:G,...be("root"),...he,...C,children:u.jsx(st,{component:"div",error:d,leftSection:f,size:x,classNames:{...fe,input:De($y.input,fe.input)},styles:_e,radius:T,disabled:p,__staticSelector:"PasswordInput",rightSectionWidth:_,rightSection:N??Te,variant:m,unstyled:a,leftSectionWidth:U,rightSectionPointerEvents:I||"all",rightSectionProps:D,leftSectionProps:$,leftSectionPointerEvents:A,withAria:!1,withErrorStyles:B,children:u.jsx("input",{required:c,"data-invalid":!!d||void 0,"data-with-left-section":!!f||void 0,...be("innerInput"),disabled:p,id:Z,ref:t,...Se,autoComplete:Se.autoComplete||"off",type:oe?"text":"password"})})})});zl.classes={...ar.classes,...$y};zl.displayName="@mantine/core/PasswordInput";const[T8,iR]=Uu(),[N8,L8]=Uu();var aR={card:"m_9dc8ae12"};const D8={withBorder:!0},M8=(e,{radius:t})=>({card:{"--card-radius":wt(t)}}),L1=Q((e,t)=>{const n=K("RadioCard",D8,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,checked:c,mod:d,withBorder:f,value:p,onClick:h,name:m,onKeyDown:g,...w}=n,y=pe({name:"RadioCard",classes:aR,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:M8,rootSelector:"card"}),{dir:x}=ii(),b=iR(),S=typeof c=="boolean"?c:(b==null?void 0:b.value)===p||!1,k=m||(b==null?void 0:b.name),E=j=>{if(g==null||g(j),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(j.nativeEvent.code)){j.preventDefault();const C=Array.from(document.querySelectorAll(`[role="radio"][name="${k||"__mantine"}"]`)),T=C.findIndex(I=>I===j.target),N=T+1>=C.length?0:T+1,_=T-1<0?C.length-1:T-1;j.nativeEvent.code==="ArrowDown"&&(C[N].focus(),C[N].click()),j.nativeEvent.code==="ArrowUp"&&(C[_].focus(),C[_].click()),j.nativeEvent.code==="ArrowLeft"&&(C[x==="ltr"?_:N].focus(),C[x==="ltr"?_:N].click()),j.nativeEvent.code==="ArrowRight"&&(C[x==="ltr"?N:_].focus(),C[x==="ltr"?N:_].click())}};return u.jsx(N8,{value:{checked:S},children:u.jsx(Kt,{ref:t,mod:[{"with-border":f,checked:S},d],...y("card"),...w,role:"radio","aria-checked":S,name:k,onClick:j=>{h==null||h(j),b==null||b.onChange(p||"")},onKeyDown:E})})});L1.displayName="@mantine/core/RadioCard";L1.classes=aR;const _8={},D1=Q((e,t)=>{const{value:n,defaultValue:r,onChange:o,size:s,wrapperProps:i,children:a,name:l,readOnly:c,...d}=K("RadioGroup",_8,e),f=Un(l),[p,h]=Zt({value:n,defaultValue:r,finalValue:"",onChange:o}),m=g=>!c&&h(typeof g=="string"?g:g.currentTarget.value);return u.jsx(T8,{value:{value:p,onChange:m,size:s,name:f},children:u.jsx(st.Wrapper,{size:s,ref:t,...i,...d,labelElement:"div",__staticSelector:"RadioGroup",children:u.jsx(g1,{role:"radiogroup",children:a})})})});D1.classes=st.Wrapper.classes;D1.displayName="@mantine/core/RadioGroup";function lR({size:e,style:t,...n}){return u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 5 5",style:{width:H(e),height:H(e),...t},"aria-hidden":!0,...n,children:u.jsx("circle",{cx:"2.5",cy:"2.5",r:"2.5",fill:"currentColor"})})}var cR={indicator:"m_717d7ff6",icon:"m_3e4da632","indicator--outline":"m_2980836c"};const A8={icon:lR},O8=(e,{radius:t,color:n,size:r,iconColor:o,variant:s,autoContrast:i})=>{const a=Yr({color:n||e.primaryColor,theme:e}),l=a.isThemeColor&&a.shade===void 0?`var(--mantine-color-${a.color}-outline)`:a.color;return{indicator:{"--radio-size":Le(r,"radio-size"),"--radio-radius":t===void 0?void 0:wt(t),"--radio-color":s==="outline"?l:vt(n,e),"--radio-icon-size":Le(r,"radio-icon-size"),"--radio-icon-color":o?vt(o,e):Gl(i,e)?oa({color:n,theme:e,autoContrast:i}):void 0}}},M1=Q((e,t)=>{const n=K("RadioIndicator",A8,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,icon:c,radius:d,color:f,iconColor:p,autoContrast:h,checked:m,mod:g,variant:w,disabled:y,...x}=n,b=c,S=pe({name:"RadioIndicator",classes:cR,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:O8,rootSelector:"indicator"}),k=L8(),E=typeof m=="boolean"?m:(k==null?void 0:k.checked)||!1;return u.jsx(Y,{ref:t,...S("indicator",{variant:w}),variant:w,mod:[{checked:E,disabled:y},g],...x,children:u.jsx(b,{...S("icon")})})});M1.displayName="@mantine/core/RadioIndicator";M1.classes=cR;var uR={root:"m_f3f1af94",inner:"m_89c4f5e4",icon:"m_f3ed6b2b",radio:"m_8a3dbb89","radio--outline":"m_1bfe9d39"};const $8={labelPosition:"right"},F8=(e,{size:t,radius:n,color:r,iconColor:o,variant:s,autoContrast:i})=>{const a=Yr({color:r||e.primaryColor,theme:e}),l=a.isThemeColor&&a.shade===void 0?`var(--mantine-color-${a.color}-outline)`:a.color;return{root:{"--radio-size":Le(t,"radio-size"),"--radio-radius":n===void 0?void 0:wt(n),"--radio-color":s==="outline"?l:vt(r,e),"--radio-icon-color":o?vt(o,e):Gl(i,e)?oa({color:r,theme:e,autoContrast:i}):void 0,"--radio-icon-size":Le(t,"radio-icon-size")}}},_o=Q((e,t)=>{const n=K("Radio",$8,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,id:c,size:d,label:f,labelPosition:p,description:h,error:m,radius:g,color:w,variant:y,disabled:x,wrapperProps:b,icon:S=lR,rootRef:k,iconColor:E,onChange:j,mod:C,...T}=n,N=pe({name:"Radio",classes:uR,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:F8}),_=iR(),I=(_==null?void 0:_.size)??d,U=n.size?d:I,{styleProps:O,rest:M}=si(T),P=Un(c),L=_?{checked:_.value===M.value,name:M.name??_.name,onChange:R=>{_.onChange(R),j==null||j(R)}}:{};return u.jsx(nh,{...N("root"),__staticSelector:"Radio",__stylesApiProps:n,id:P,size:U,labelPosition:p,label:f,description:h,error:m,disabled:x,classNames:r,styles:i,unstyled:a,"data-checked":L.checked||void 0,variant:y,ref:k,mod:C,...O,...b,children:u.jsxs(Y,{...N("inner"),mod:{"label-position":p},children:[u.jsx(Y,{...N("radio",{focusable:!0,variant:y}),onChange:j,...M,...L,component:"input",mod:{error:!!m},ref:t,id:P,disabled:x,type:"radio"}),u.jsx(S,{...N("icon"),"aria-hidden":!0})]})})});_o.classes=uR;_o.displayName="@mantine/core/Radio";_o.Group=D1;_o.Card=L1;_o.Indicator=M1;const I8={duration:100,transition:"fade"};function z8(e,t){return{...I8,...t,...e}}function V8({offset:e,position:t,defaultOpened:n}){const[r,o]=v.useState(n),s=v.useRef(),{x:i,y:a,elements:l,refs:c,update:d,placement:f}=B0({placement:t,middleware:[F0({crossAxis:!0,padding:5,rootBoundary:"document"})]}),p=f.includes("right")?e:t.includes("left")?e*-1:0,h=f.includes("bottom")?e:t.includes("top")?e*-1:0,m=v.useCallback(({clientX:g,clientY:w})=>{c.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:g,y:w,left:g+p,top:w+h,right:g,bottom:w}}})},[l.reference]);return v.useEffect(()=>{if(c.floating.current){const g=s.current;g.addEventListener("mousemove",m);const w=Oo(c.floating.current);return w.forEach(y=>{y.addEventListener("scroll",d)}),()=>{g.removeEventListener("mousemove",m),w.forEach(y=>{y.removeEventListener("scroll",d)})}}},[l.reference,c.floating.current,d,m,r]),{handleMouseMove:m,x:i,y:a,opened:r,setOpened:o,boundaryRef:s,floating:c.setFloating}}var Rh={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const B8={refProp:"ref",withinPortal:!0,offset:10,defaultOpened:!1,position:"right",zIndex:Bn("popover")},U8=(e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:wt(t),"--tooltip-bg":n?vt(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),_1=Q((e,t)=>{const n=K("TooltipFloating",B8,e),{children:r,refProp:o,withinPortal:s,style:i,className:a,classNames:l,styles:c,unstyled:d,radius:f,color:p,label:h,offset:m,position:g,multiline:w,zIndex:y,disabled:x,defaultOpened:b,variant:S,vars:k,portalProps:E,...j}=n,C=en(),T=pe({name:"TooltipFloating",props:n,classes:Rh,className:a,style:i,classNames:l,styles:c,unstyled:d,rootSelector:"tooltip",vars:k,varsResolver:U8}),{handleMouseMove:N,x:_,y:I,opened:U,boundaryRef:O,floating:M,setOpened:P}=V8({offset:m,position:g,defaultOpened:b});if(!Go(r))throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const L=Lt(O,r.ref,t),R=$=>{var A,B;(B=(A=r.props).onMouseEnter)==null||B.call(A,$),N($),P(!0)},D=$=>{var A,B;(B=(A=r.props).onMouseLeave)==null||B.call(A,$),P(!1)};return u.jsxs(u.Fragment,{children:[u.jsx(sa,{...E,withinPortal:s,children:u.jsx(Y,{...j,...T("tooltip",{style:{...E0(i,C),zIndex:y,display:!x&&U?"block":"none",top:(I&&Math.round(I))??"",left:(_&&Math.round(_))??""}}),variant:S,ref:M,mod:{multiline:w},children:h})}),v.cloneElement(r,{...r.props,[o]:L,onMouseEnter:R,onMouseLeave:D})]})});_1.classes=Rh;_1.displayName="@mantine/core/TooltipFloating";const dR=v.createContext(!1),H8=dR.Provider,W8=()=>v.useContext(dR),K8={openDelay:0,closeDelay:0};function A1(e){const{openDelay:t,closeDelay:n,children:r}=K("TooltipGroup",K8,e);return u.jsx(H8,{value:!0,children:u.jsx(mA,{delay:{open:t,close:n},children:r})})}A1.displayName="@mantine/core/TooltipGroup";A1.extend=e=>e;function q8(e){var E,j,C;const[t,n]=v.useState(e.defaultOpened),o=typeof e.opened=="boolean"?e.opened:t,s=W8(),i=Un(),{delay:a,currentId:l,setCurrentId:c}=Xk(),d=v.useCallback(T=>{n(T),T&&c(i)},[c,i]),{x:f,y:p,context:h,refs:m,update:g,placement:w,middlewareData:{arrow:{x:y,y:x}={}}}=B0({strategy:e.strategy,placement:e.position,open:o,onOpenChange:d,middleware:[Kk(e.offset),F0({padding:8}),Ly(),qk({element:e.arrowRef,padding:e.arrowOffset}),...e.inline?[Dy()]:[]]}),{getReferenceProps:b,getFloatingProps:S}=CA([hA(h,{enabled:(E=e.events)==null?void 0:E.hover,delay:s?a:{open:e.openDelay,close:e.closeDelay},mouseOnly:!((j=e.events)!=null&&j.touch)}),SA(h,{enabled:(C=e.events)==null?void 0:C.focus,visibleOnly:!0}),kA(h,{role:"tooltip"}),bA(h,{enabled:typeof e.opened>"u"}),gA(h,{id:i})]);rj({opened:o,position:e.position,positionDependencies:e.positionDependencies,floating:{refs:m,update:g}}),xr(()=>{var T;(T=e.onPositionChange)==null||T.call(e,w)},[w]);const k=o&&l&&l!==i;return{x:f,y:p,arrowX:y,arrowY:x,reference:m.setReference,floating:m.setFloating,getFloatingProps:S,getReferenceProps:b,isGroupPhase:k,opened:o,placement:w}}const Bw={position:"top",refProp:"ref",withinPortal:!0,inline:!1,defaultOpened:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:Bn("popover"),positionDependencies:[]},Y8=(e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:wt(t),"--tooltip-bg":n?vt(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),kn=Q((e,t)=>{const n=K("Tooltip",Bw,e),{children:r,position:o,refProp:s,label:i,openDelay:a,closeDelay:l,onPositionChange:c,opened:d,defaultOpened:f,withinPortal:p,radius:h,color:m,classNames:g,styles:w,unstyled:y,style:x,className:b,withArrow:S,arrowSize:k,arrowOffset:E,arrowRadius:j,arrowPosition:C,offset:T,transitionProps:N,multiline:_,events:I,zIndex:U,disabled:O,positionDependencies:M,onClick:P,onMouseEnter:L,onMouseLeave:R,inline:D,variant:$,keepMounted:A,vars:B,portalProps:G,mod:ne,floatingStrategy:Z,...oe}=K("Tooltip",Bw,n),{dir:ae}=ii(),ue=v.useRef(null),be=q8({position:Jk(ae,o),closeDelay:l,openDelay:a,onPositionChange:c,opened:d,defaultOpened:f,events:I,arrowRef:ue,arrowOffset:E,offset:typeof T=="number"?T+(S?k/2:0):T,positionDependencies:[...M,r],inline:D,strategy:Z}),fe=pe({name:"Tooltip",props:n,classes:Rh,className:b,style:x,classNames:g,styles:w,unstyled:y,rootSelector:"tooltip",vars:B,varsResolver:Y8});if(!Go(r))throw new Error("[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const _e=Lt(be.reference,r.ref,t),he=z8(N,{duration:100,transition:"fade"});return u.jsxs(u.Fragment,{children:[u.jsx(sa,{...G,withinPortal:p,children:u.jsx(Jo,{...he,keepMounted:A,mounted:!O&&!!be.opened,duration:be.isGroupPhase?10:he.duration,children:Se=>u.jsxs(Y,{...oe,"data-fixed":Z==="fixed"||void 0,variant:$,mod:[{multiline:_},ne],...be.getFloatingProps({ref:be.floating,className:fe("tooltip").className,style:{...fe("tooltip").style,...Se,zIndex:U,top:be.y??0,left:be.x??0}}),children:[i,u.jsx(U0,{ref:ue,arrowX:be.arrowX,arrowY:be.arrowY,visible:S,position:be.placement,arrowSize:k,arrowOffset:E,arrowRadius:j,arrowPosition:C,...fe("arrow")})]})})}),v.cloneElement(r,be.getReferenceProps({onClick:P,onMouseEnter:L,onMouseLeave:R,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,[s]:_e,className:De(b,r.props.className),...r.props}))]})});kn.classes=Rh;kn.displayName="@mantine/core/Tooltip";kn.Floating=_1;kn.Group=A1;const G8={searchable:!1,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},rc=Q((e,t)=>{const n=K("Select",G8,e),{classNames:r,styles:o,unstyled:s,vars:i,dropdownOpened:a,defaultDropdownOpened:l,onDropdownClose:c,onDropdownOpen:d,onFocus:f,onBlur:p,onClick:h,onChange:m,data:g,value:w,defaultValue:y,selectFirstOptionOnChange:x,onOptionSubmit:b,comboboxProps:S,readOnly:k,disabled:E,filter:j,limit:C,withScrollArea:T,maxDropdownHeight:N,size:_,searchable:I,rightSection:U,checkIconPosition:O,withCheckIcon:M,nothingFoundMessage:P,name:L,form:R,searchValue:D,defaultSearchValue:$,onSearchChange:A,allowDeselect:B,error:G,rightSectionPointerEvents:ne,id:Z,clearable:oe,clearButtonProps:ae,hiddenInputProps:ue,renderOption:be,onClear:fe,autoComplete:_e,scrollAreaProps:he,...Se}=n,le=v.useMemo(()=>KO(g),[g]),Te=v.useMemo(()=>xj(le),[le]),et=Un(Z),[te,se,we]=Zt({value:w,defaultValue:y,finalValue:null,onChange:m}),ke=typeof te=="string"?Te[te]:void 0,Ie=P3(ke),[Oe,ee]=Zt({value:D,defaultValue:$,finalValue:ke?ke.label:"",onChange:A}),Ee=th({opened:a,defaultOpened:l,onDropdownOpen:()=>{d==null||d(),Ee.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{c==null||c(),Ee.resetSelectedOption()}}),{resolvedClassNames:tt,resolvedStyles:nt}=Qo({props:n,styles:o,classNames:r});v.useEffect(()=>{x&&Ee.selectFirstOption()},[x,te]),v.useEffect(()=>{w===null&&ee(""),typeof w=="string"&&ke&&((Ie==null?void 0:Ie.value)!==ke.value||(Ie==null?void 0:Ie.label)!==ke.label)&&ee(ke.label)},[w,ke]);const at=oe&&!!te&&!E&&!k&&u.jsx(Fe.ClearButton,{size:_,...ae,onClear:()=>{se(null,null),ee(""),fe==null||fe()}});return u.jsxs(u.Fragment,{children:[u.jsxs(Fe,{store:Ee,__staticSelector:"Select",classNames:tt,styles:nt,unstyled:s,readOnly:k,onOptionSubmit:qe=>{b==null||b(qe);const Ke=B&&Te[qe].value===te?null:Te[qe],dt=Ke?Ke.value:null;dt!==te&&se(dt,Ke),!we&&ee(typeof dt=="string"&&(Ke==null?void 0:Ke.label)||""),Ee.closeDropdown()},size:_,...S,children:[u.jsx(Fe.Target,{targetType:I?"input":"button",autoComplete:_e,children:u.jsx(ar,{id:et,ref:t,rightSection:U||at||u.jsx(Fe.Chevron,{size:_,error:G,unstyled:s}),rightSectionPointerEvents:ne||(at?"all":"none"),...Se,size:_,__staticSelector:"Select",disabled:E,readOnly:k||!I,value:Oe,onChange:qe=>{ee(qe.currentTarget.value),Ee.openDropdown(),x&&Ee.selectFirstOption()},onFocus:qe=>{I&&Ee.openDropdown(),f==null||f(qe)},onBlur:qe=>{var Ke;I&&Ee.closeDropdown(),ee(te!=null&&((Ke=Te[te])==null?void 0:Ke.label)||""),p==null||p(qe)},onClick:qe=>{I?Ee.openDropdown():Ee.toggleDropdown(),h==null||h(qe)},classNames:tt,styles:nt,unstyled:s,pointer:!I,error:G})}),u.jsx(k$,{data:le,hidden:k||E,filter:j,search:Oe,limit:C,hiddenWhenEmpty:!P,withScrollArea:T,maxDropdownHeight:N,filterOptions:I&&(ke==null?void 0:ke.label)!==Oe,value:te,checkIconPosition:O,withCheckIcon:M,nothingFoundMessage:P,unstyled:s,labelId:Se.label?`${et}-label`:void 0,"aria-label":Se.label?void 0:Se["aria-label"],renderOption:be,scrollAreaProps:he})]}),u.jsx(Fe.HiddenInput,{value:te,name:L,form:R,disabled:E,...ue})]})});rc.classes={...ar.classes,...Fe.classes};rc.displayName="@mantine/core/Select";var fR={root:"m_18320242","skeleton-fade":"m_299c329c"};const Q8={visible:!0,animate:!0},X8=(e,{width:t,height:n,radius:r,circle:o})=>({root:{"--skeleton-height":H(n),"--skeleton-width":H(o?n:t),"--skeleton-radius":o?"1000px":r===void 0?void 0:wt(r)}}),po=Q((e,t)=>{const n=K("Skeleton",Q8,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,width:c,height:d,circle:f,visible:p,radius:h,animate:m,mod:g,...w}=n,y=pe({name:"Skeleton",classes:fR,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:X8});return u.jsx(Y,{ref:t,...y("root"),mod:[{visible:p,animate:m},g],...w})});po.classes=fR;po.displayName="@mantine/core/Skeleton";const J8={},vo=Q((e,t)=>{const{w:n,h:r,miw:o,mih:s,...i}=K("Space",J8,e);return u.jsx(Y,{ref:t,...i,w:n,miw:o??n,h:r,mih:s??r})});vo.displayName="@mantine/core/Space";var pR={root:"m_6d731127"};const Z8={gap:"md",align:"stretch",justify:"flex-start"},eF=(e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":Wr(t),"--stack-align":n,"--stack-justify":r}}),bt=Q((e,t)=>{const n=K("Stack",Z8,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,align:c,justify:d,gap:f,variant:p,...h}=n,m=pe({name:"Stack",props:n,classes:pR,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:eF});return u.jsx(Y,{ref:t,...m("root"),variant:p,...h})});bt.classes=pR;bt.displayName="@mantine/core/Stack";const hR=v.createContext(null),tF=hR.Provider,nF=()=>v.useContext(hR),rF={},O1=Q((e,t)=>{const{value:n,defaultValue:r,onChange:o,size:s,wrapperProps:i,children:a,readOnly:l,...c}=K("SwitchGroup",rF,e),[d,f]=Zt({value:n,defaultValue:r,finalValue:[],onChange:o}),p=h=>{const m=h.currentTarget.value;!l&&f(d.includes(m)?d.filter(g=>g!==m):[...d,m])};return u.jsx(tF,{value:{value:d,onChange:p,size:s},children:u.jsx(st.Wrapper,{size:s,ref:t,...i,...c,labelElement:"div",__staticSelector:"SwitchGroup",children:u.jsx(g1,{role:"group",children:a})})})});O1.classes=st.Wrapper.classes;O1.displayName="@mantine/core/SwitchGroup";var mR={root:"m_5f93f3bb",input:"m_926b4011",track:"m_9307d992",thumb:"m_93039a1d",trackLabel:"m_8277e082"};const oF={labelPosition:"right"},sF=(e,{radius:t,color:n,size:r})=>({root:{"--switch-radius":t===void 0?void 0:wt(t),"--switch-height":Le(r,"switch-height"),"--switch-width":Le(r,"switch-width"),"--switch-thumb-size":Le(r,"switch-thumb-size"),"--switch-label-font-size":Le(r,"switch-label-font-size"),"--switch-track-label-padding":Le(r,"switch-track-label-padding"),"--switch-color":n?vt(n,e):void 0}}),nd=Q((e,t)=>{const n=K("Switch",oF,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,color:c,label:d,offLabel:f,onLabel:p,id:h,size:m,radius:g,wrapperProps:w,thumbIcon:y,checked:x,defaultChecked:b,onChange:S,labelPosition:k,description:E,error:j,disabled:C,variant:T,rootRef:N,mod:_,...I}=n,U=nF(),O=m||(U==null?void 0:U.size),M=pe({name:"Switch",props:n,classes:mR,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:sF}),{styleProps:P,rest:L}=si(I),R=Un(h),D=U?{checked:U.value.includes(L.value),onChange:U.onChange}:{},[$,A]=Zt({value:D.checked??x,defaultValue:b,finalValue:!1});return u.jsxs(nh,{...M("root"),__staticSelector:"Switch",__stylesApiProps:n,id:R,size:O,labelPosition:k,label:d,description:E,error:j,disabled:C,bodyElement:"label",labelElement:"span",classNames:r,styles:i,unstyled:a,"data-checked":D.checked||void 0,variant:T,ref:N,mod:_,...P,...w,children:[u.jsx("input",{...L,disabled:C,checked:$,onChange:B=>{var G;U?(G=D.onChange)==null||G.call(D,B):S==null||S(B),A(B.currentTarget.checked)},id:R,ref:t,type:"checkbox",role:"switch",...M("input")}),u.jsxs(Y,{"aria-hidden":"true",mod:{error:j,"label-position":k,"without-labels":!p&&!f},...M("track"),children:[u.jsx(Y,{component:"span",mod:"reduce-motion",...M("thumb"),children:y}),u.jsx("span",{...M("trackLabel"),children:$?p:f})]})]})});nd.classes={...mR,...jj};nd.displayName="@mantine/core/Switch";nd.Group=O1;const[iF,aF]=ir("Table component was not found in the tree");var rd={table:"m_b23fa0ef",th:"m_4e7aa4f3",tr:"m_4e7aa4fd",td:"m_4e7aa4ef",tbody:"m_b2404537",thead:"m_b242d975",caption:"m_9e5a3ac7",scrollContainer:"m_a100c15",scrollContainerInner:"m_62259741"};function lF(e,t){if(!t)return;const n={};return t.columnBorder&&e.withColumnBorders&&(n["data-with-column-border"]=!0),t.rowBorder&&e.withRowBorders&&(n["data-with-row-border"]=!0),t.striped&&e.striped&&(n["data-striped"]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(n["data-hover"]=!0),t.captionSide&&e.captionSide&&(n["data-side"]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(n["data-sticky"]=!0),n}function la(e,t){const n=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,r=Q((o,s)=>{const i=K(n,{},o),{classNames:a,className:l,style:c,styles:d,...f}=i,p=aF();return u.jsx(Y,{component:e,ref:s,...lF(p,t),...p.getStyles(e,{className:l,classNames:a,style:c,styles:d,props:i}),...f})});return r.displayName=`@mantine/core/${n}`,r.classes=rd,r}const Xs=la("th",{columnBorder:!0}),od=la("td",{columnBorder:!0}),Ur=la("tr",{rowBorder:!0,striped:!0,highlightOnHover:!0}),$1=la("thead",{stickyHeader:!0}),gR=la("tbody"),F1=la("tfoot"),yR=la("caption",{captionSide:!0});function I1({data:e}){return u.jsxs(u.Fragment,{children:[e.caption&&u.jsx(yR,{children:e.caption}),e.head&&u.jsx($1,{children:u.jsx(Ur,{children:e.head.map((t,n)=>u.jsx(Xs,{children:t},n))})}),e.body&&u.jsx(gR,{children:e.body.map((t,n)=>u.jsx(Ur,{children:t.map((r,o)=>u.jsx(od,{children:r},o))},n))}),e.foot&&u.jsx(F1,{children:u.jsx(Ur,{children:e.foot.map((t,n)=>u.jsx(Xs,{children:t},n))})})]})}I1.displayName="@mantine/core/TableDataRenderer";const cF={type:"scrollarea"},uF=(e,{minWidth:t,type:n})=>({scrollContainer:{"--table-min-width":H(t),"--table-overflow":n==="native"?"auto":void 0}}),z1=Q((e,t)=>{const n=K("TableScrollContainer",cF,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,children:c,minWidth:d,type:f,...p}=n,h=pe({name:"TableScrollContainer",classes:rd,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:uF,rootSelector:"scrollContainer"});return u.jsx(Y,{component:f==="scrollarea"?Gr:"div",...f==="scrollarea"?{offsetScrollbars:"x"}:{},ref:t,...h("scrollContainer"),...p,children:u.jsx("div",{...h("scrollContainerInner"),children:c})})});z1.classes=rd;z1.displayName="@mantine/core/TableScrollContainer";const dF={withRowBorders:!0,verticalSpacing:7},fF=(e,{layout:t,captionSide:n,horizontalSpacing:r,verticalSpacing:o,borderColor:s,stripedColor:i,highlightOnHoverColor:a,striped:l,highlightOnHover:c,stickyHeaderOffset:d,stickyHeader:f})=>({table:{"--table-layout":t,"--table-caption-side":n,"--table-horizontal-spacing":Wr(r),"--table-vertical-spacing":Wr(o),"--table-border-color":s?vt(s,e):void 0,"--table-striped-color":l&&i?vt(i,e):void 0,"--table-highlight-on-hover-color":c&&a?vt(a,e):void 0,"--table-sticky-header-offset":f?H(d):void 0}}),Ne=Q((e,t)=>{const n=K("Table",dF,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,horizontalSpacing:c,verticalSpacing:d,captionSide:f,stripedColor:p,highlightOnHoverColor:h,striped:m,highlightOnHover:g,withColumnBorders:w,withRowBorders:y,withTableBorder:x,borderColor:b,layout:S,variant:k,data:E,children:j,stickyHeader:C,stickyHeaderOffset:T,mod:N,..._}=n,I=pe({name:"Table",props:n,className:o,style:s,classes:rd,classNames:r,styles:i,unstyled:a,rootSelector:"table",vars:l,varsResolver:fF});return u.jsx(iF,{value:{getStyles:I,stickyHeader:C,striped:m===!0?"odd":m||void 0,highlightOnHover:g,withColumnBorders:w,withRowBorders:y,captionSide:f||"bottom"},children:u.jsx(Y,{component:"table",variant:k,ref:t,mod:[{"data-with-table-border":x},N],...I("table"),..._,children:j||!!E&&u.jsx(I1,{data:E})})})});Ne.classes=rd;Ne.displayName="@mantine/core/Table";Ne.Td=od;Ne.Th=Xs;Ne.Tr=Ur;Ne.Thead=$1;Ne.Tbody=gR;Ne.Tfoot=F1;Ne.Caption=yR;Ne.ScrollContainer=z1;Ne.DataRenderer=I1;const[pF,V1]=ir("Tabs component was not found in the tree");var sd={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",panel:"m_b0c91715",tab:"m_4ec4dce6",tabSection:"m_fc420b1f","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const hF={},B1=Q((e,t)=>{const n=K("TabsList",hF,e),{children:r,className:o,grow:s,justify:i,classNames:a,styles:l,style:c,mod:d,...f}=n,p=V1();return u.jsx(Y,{...f,...p.getStyles("list",{className:o,style:c,classNames:a,styles:l,props:n,variant:p.variant}),ref:t,role:"tablist",variant:p.variant,mod:[{grow:s,orientation:p.orientation,placement:p.orientation==="vertical"&&p.placement,inverted:p.inverted},d],"aria-orientation":p.orientation,__vars:{"--tabs-justify":i},children:r})});B1.classes=sd;B1.displayName="@mantine/core/TabsList";const mF={},U1=Q((e,t)=>{const n=K("TabsPanel",mF,e),{children:r,className:o,value:s,classNames:i,styles:a,style:l,mod:c,keepMounted:d,...f}=n,p=V1(),h=p.value===s,m=p.keepMounted||d||h?r:null;return u.jsx(Y,{...f,...p.getStyles("panel",{className:o,classNames:i,styles:a,style:[l,h?void 0:{display:"none"}],props:n}),ref:t,mod:[{orientation:p.orientation},c],role:"tabpanel",id:p.getPanelId(s),"aria-labelledby":p.getTabId(s),children:m})});U1.classes=sd;U1.displayName="@mantine/core/TabsPanel";const gF={},H1=Q((e,t)=>{const n=K("TabsTab",gF,e),{className:r,children:o,rightSection:s,leftSection:i,value:a,onClick:l,onKeyDown:c,disabled:d,color:f,style:p,classNames:h,styles:m,vars:g,mod:w,...y}=n,x=en(),{dir:b}=ii(),S=V1(),k=a===S.value,E=C=>{S.onChange(S.allowTabDeactivation&&a===S.value?null:a),l==null||l(C)},j={classNames:h,styles:m,props:n};return u.jsxs(Kt,{...y,...S.getStyles("tab",{className:r,style:p,variant:S.variant,...j}),disabled:d,unstyled:S.unstyled,variant:S.variant,mod:[{active:k,disabled:d,orientation:S.orientation,inverted:S.inverted,placement:S.orientation==="vertical"&&S.placement},w],ref:t,role:"tab",id:S.getTabId(a),"aria-selected":k,tabIndex:k||S.value===null?0:-1,"aria-controls":S.getPanelId(a),onClick:E,__vars:{"--tabs-color":f?vt(f,x):void 0},onKeyDown:tk({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:S.activateTabWithKeyboard,loop:S.loop,orientation:S.orientation||"horizontal",dir:b,onKeyDown:c}),children:[i&&u.jsx("span",{...S.getStyles("tabSection",j),"data-position":"left",children:i}),o&&u.jsx("span",{...S.getStyles("tabLabel",j),children:o}),s&&u.jsx("span",{...S.getStyles("tabSection",j),"data-position":"right",children:s})]})});H1.classes=sd;H1.displayName="@mantine/core/TabsTab";const Uw="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",yF={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,allowTabDeactivation:!1,unstyled:!1,inverted:!1,variant:"default",placement:"left"},vF=(e,{radius:t,color:n,autoContrast:r})=>({root:{"--tabs-radius":wt(t),"--tabs-color":vt(n,e),"--tabs-text-color":Gl(r,e)?oa({color:n,theme:e,autoContrast:r}):void 0}}),on=Q((e,t)=>{const n=K("Tabs",yF,e),{defaultValue:r,value:o,onChange:s,orientation:i,children:a,loop:l,id:c,activateTabWithKeyboard:d,allowTabDeactivation:f,variant:p,color:h,radius:m,inverted:g,placement:w,keepMounted:y,classNames:x,styles:b,unstyled:S,className:k,style:E,vars:j,autoContrast:C,mod:T,...N}=n,_=Un(c),[I,U]=Zt({value:o,defaultValue:r,finalValue:null,onChange:s}),O=pe({name:"Tabs",props:n,classes:sd,className:k,style:E,classNames:x,styles:b,unstyled:S,vars:j,varsResolver:vF});return u.jsx(pF,{value:{placement:w,value:I,orientation:i,id:_,loop:l,activateTabWithKeyboard:d,getTabId:Qb(`${_}-tab`,Uw),getPanelId:Qb(`${_}-panel`,Uw),onChange:U,allowTabDeactivation:f,variant:p,color:h,radius:m,inverted:g,keepMounted:y,unstyled:S,getStyles:O},children:u.jsx(Y,{ref:t,id:_,variant:p,mod:[{orientation:i,inverted:i==="horizontal"&&g,placement:i==="vertical"&&w},T],...O("root"),...N,children:a})})});on.classes=sd;on.displayName="@mantine/core/Tabs";on.Tab=H1;on.Panel=U1;on.List=B1;const xF={},qt=Q((e,t)=>{const n=K("TextInput",xF,e);return u.jsx(ar,{component:"input",ref:t,...n,__staticSelector:"TextInput"})});qt.classes=ar.classes;qt.displayName="@mantine/core/TextInput";const bF=["h1","h2","h3","h4","h5","h6"];function wF(e,t){const n=t!==void 0?t:`h${e}`;return bF.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:{fontSize:H(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var vR={root:"m_8a5d1357"};const SF={order:1},CF=(e,{order:t,size:n,lineClamp:r,textWrap:o})=>{const s=wF(t,n);return{root:{"--title-fw":s.fontWeight,"--title-lh":s.lineHeight,"--title-fz":s.fontSize,"--title-line-clamp":typeof r=="number"?r.toString():void 0,"--title-text-wrap":o}}},id=Q((e,t)=>{const n=K("Title",SF,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,order:l,vars:c,size:d,variant:f,lineClamp:p,textWrap:h,mod:m,...g}=n,w=pe({name:"Title",props:n,classes:vR,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:c,varsResolver:CF});return[1,2,3,4,5,6].includes(l)?u.jsx(Y,{...w("root"),component:`h${l}`,variant:f,ref:t,mod:[{order:l,"data-line-clamp":typeof p=="number"},m],size:d,...g}):null});id.classes=vR;id.displayName="@mantine/core/Title";function Hw(e,t,n){if(!e||!t)return[];const r=n.indexOf(e),o=n.indexOf(t),s=Math.min(r,o),i=Math.max(r,o);return n.slice(s,i+1)}function W1({node:e,getStyles:t,rootIndex:n,controller:r,expandOnClick:o,selectOnClick:s,isSubtree:i,level:a=1,renderNode:l,flatValues:c,allowRangeSelection:d,expandOnSpace:f}){const p=v.useRef(null),h=(e.children||[]).map(x=>u.jsx(W1,{node:x,flatValues:c,getStyles:t,rootIndex:void 0,level:a+1,controller:r,expandOnClick:o,isSubtree:!0,renderNode:l,selectOnClick:s,allowRangeSelection:d,expandOnSpace:f},x.value)),m=x=>{var b,S,k;if(x.nativeEvent.code==="ArrowRight"&&(x.stopPropagation(),x.preventDefault(),r.expandedState[e.value]?(b=x.currentTarget.querySelector("[role=treeitem]"))==null||b.focus():r.expand(e.value)),x.nativeEvent.code==="ArrowLeft"&&(x.stopPropagation(),x.preventDefault(),r.expandedState[e.value]&&(e.children||[]).length>0?r.collapse(e.value):i&&((S=Al(x.currentTarget,"[role=treeitem]"))==null||S.focus())),x.nativeEvent.code==="ArrowDown"||x.nativeEvent.code==="ArrowUp"){const E=Al(x.currentTarget,"[data-tree-root]");if(!E)return;x.stopPropagation(),x.preventDefault();const j=Array.from(E.querySelectorAll("[role=treeitem]")),C=j.indexOf(x.currentTarget);if(C===-1)return;const T=x.nativeEvent.code==="ArrowDown"?C+1:C-1;if((k=j[T])==null||k.focus(),x.shiftKey){const N=j[T];N&&r.setSelectedState(Hw(r.anchorNode,N.dataset.value,c))}}x.nativeEvent.code==="Space"&&f&&(x.stopPropagation(),x.preventDefault(),r.toggleExpanded(e.value))},g=x=>{var b,S;x.stopPropagation(),d&&x.shiftKey&&r.anchorNode?(r.setSelectedState(Hw(r.anchorNode,e.value,c)),(b=p.current)==null||b.focus()):(o&&r.toggleExpanded(e.value),s&&r.select(e.value),(S=p.current)==null||S.focus())},w=r.selectedState.includes(e.value),y={...t("label"),onClick:g,"data-selected":w||void 0,"data-value":e.value,"data-hovered":r.hoveredNode===e.value||void 0};return u.jsxs("li",{...t("node",{style:{"--label-offset":`calc(var(--level-offset) * ${a-1})`}}),role:"treeitem","aria-selected":w,"data-value":e.value,"data-selected":w||void 0,"data-hovered":r.hoveredNode===e.value||void 0,"data-level":a,tabIndex:n===0?0:-1,onKeyDown:m,ref:p,onMouseOver:x=>{x.stopPropagation(),r.setHoveredNode(e.value)},onMouseLeave:x=>{x.stopPropagation(),r.setHoveredNode(null)},children:[typeof l=="function"?l({node:e,level:a,selected:w,tree:r,expanded:r.expandedState[e.value]||!1,hasChildren:Array.isArray(e.children)&&e.children.length>0,elementProps:y}):u.jsx("div",{...y,children:e.label}),r.expandedState[e.value]&&h.length>0&&u.jsx("ul",{role:"group",...t("subtree"),"data-level":a,children:h})]})}W1.displayName="@mantine/core/TreeNode";function Ph(e,t,n=[]){const r=[];for(const o of e)if(Array.isArray(o.children)&&o.children.length>0){const s=Ph(o.children,t,n);if(s.currentTreeChecked.length===o.children.length){const i=s.currentTreeChecked.every(l=>l.checked),a={checked:i,indeterminate:!i,value:o.value,hasChildren:!0};r.push(a),n.push(a)}else if(s.currentTreeChecked.length>0){const i={checked:!1,indeterminate:!0,value:o.value,hasChildren:!0};r.push(i),n.push(i)}}else if(t.includes(o.value)){const s={checked:!0,indeterminate:!1,value:o.value,hasChildren:!1};r.push(s),n.push(s)}return{result:n,currentTreeChecked:r}}function xR(e,t){for(const n of t){if(n.value===e)return n;if(Array.isArray(n.children)){const r=xR(e,n.children);if(r)return r}}return null}function lp(e,t,n=[]){const r=xR(e,t);return r?!Array.isArray(r.children)||r.children.length===0?[r.value]:(r.children.forEach(o=>{Array.isArray(o.children)&&o.children.length>0?lp(o.value,t,n):n.push(o.value)}),n):n}function EF(e,t,n){return n.length===0?!1:n.includes(e)?!0:Ph(t,n).result.some(o=>o.value===e&&o.checked)}const kF=ck(EF);function jF(e,t,n){return n.length===0?!1:Ph(t,n).result.some(o=>o.value===e&&o.indeterminate)}const RF=ck(jF);function bR(e,t,n,r={}){return t.forEach(o=>{r[o.value]=o.value in e?e[o.value]:o.value===n,Array.isArray(o.children)&&bR(e,o.children,n,r)}),r}function PF(e,t){const n=[];return e.forEach(r=>n.push(...lp(r,t))),n}function K1({initialSelectedState:e=[],initialCheckedState:t=[],initialExpandedState:n={},multiple:r=!1}={}){const[o,s]=v.useState([]),[i,a]=v.useState(n),[l,c]=v.useState(e),[d,f]=v.useState(t),[p,h]=v.useState(null),[m,g]=v.useState(null),w=v.useCallback(M=>{a(P=>bR(P,M,l)),f(P=>PF(P,M)),s(M)},[l,d]),y=v.useCallback(M=>{a(P=>({...P,[M]:!P[M]}))},[]),x=v.useCallback(M=>{a(P=>({...P,[M]:!1}))},[]),b=v.useCallback(M=>{a(P=>({...P,[M]:!0}))},[]),S=v.useCallback(()=>{a(M=>{const P={...M};return Object.keys(P).forEach(L=>{P[L]=!0}),P})},[]),k=v.useCallback(()=>{a(M=>{const P={...M};return Object.keys(P).forEach(L=>{P[L]=!1}),P})},[]),E=v.useCallback(M=>c(P=>r?P.includes(M)?(h(null),P.filter(L=>L!==M)):(h(M),[...P,M]):P.includes(M)?(h(null),[]):(h(M),[M])),[]),j=v.useCallback(M=>{h(M),c(P=>r?P.includes(M)?P:[...P,M]:[M])},[]),C=v.useCallback(M=>{p===M&&h(null),c(P=>P.filter(L=>L!==M))},[]),T=v.useCallback(()=>{c([]),h(null)},[]),N=v.useCallback(M=>{const P=lp(M,o);f(L=>Array.from(new Set([...L,...P])))},[o]),_=v.useCallback(M=>{const P=lp(M,o);f(L=>L.filter(R=>!P.includes(R)))},[o]);return{multiple:r,expandedState:i,selectedState:l,checkedState:d,anchorNode:p,initialize:w,toggleExpanded:y,collapse:x,expand:b,expandAllNodes:S,collapseAllNodes:k,setExpandedState:a,checkNode:N,uncheckNode:_,toggleSelected:E,select:j,deselect:C,clearSelected:T,setSelectedState:c,hoveredNode:m,setHoveredNode:g,getCheckedNodes:()=>Ph(o,d).result,isNodeChecked:M=>kF(M,o,d),isNodeIndeterminate:M=>RF(M,o,d)}}var wR={root:"m_f698e191",subtree:"m_75f3ecf",node:"m_f6970eb1",label:"m_dc283425"};function SR(e){return e.reduce((t,n)=>(t.push(n.value),n.children&&t.push(...SR(n.children)),t),[])}const TF={expandOnClick:!0,allowRangeSelection:!0,expandOnSpace:!0},NF=(e,{levelOffset:t})=>({root:{"--level-offset":Wr(t)}}),q1=Q((e,t)=>{const n=K("Tree",TF,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,data:c,expandOnClick:d,tree:f,renderNode:p,selectOnClick:h,clearSelectionOnOutsideClick:m,allowRangeSelection:g,expandOnSpace:w,levelOffset:y,...x}=n,b=K1(),S=f||b,k=pe({name:"Tree",classes:wR,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:NF}),E=nk(()=>m&&S.clearSelected()),j=Lt(t,E),C=v.useMemo(()=>SR(c),[c]);v.useEffect(()=>{S.initialize(c)},[c]);const T=c.map((N,_)=>u.jsx(W1,{node:N,getStyles:k,rootIndex:_,expandOnClick:d,selectOnClick:h,controller:S,renderNode:p,flatValues:C,allowRangeSelection:g,expandOnSpace:w},N.value));return u.jsx(Y,{component:"ul",ref:j,...k("root"),...x,role:"tree","aria-multiselectable":S.multiple,"data-tree-root":!0,children:T})});q1.displayName="@mantine/core/Tree";q1.classes=wR;const Y1=v.createContext(null);Y1.displayName="@mantine/modals/ModalsContext";function LF(){const e=v.useContext(Y1);if(!e)throw new Error("[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component");return e}function DF({id:e,cancelProps:t,confirmProps:n,labels:r={cancel:"",confirm:""},closeOnConfirm:o=!0,closeOnCancel:s=!0,groupProps:i,onCancel:a,onConfirm:l,children:c}){const{cancel:d,confirm:f}=r,p=LF(),h=g=>{typeof(t==null?void 0:t.onClick)=="function"&&(t==null||t.onClick(g)),typeof a=="function"&&a(),s&&p.closeModal(e)},m=g=>{typeof(n==null?void 0:n.onClick)=="function"&&(n==null||n.onClick(g)),typeof l=="function"&&l(),o&&p.closeModal(e)};return u.jsxs(u.Fragment,{children:[c&&u.jsx(Y,{mb:"md",children:c}),u.jsxs(Ge,{mt:c?0:"md",justify:"flex-end",...i,children:[u.jsx(Tt,{variant:"default",...t,onClick:h,children:(t==null?void 0:t.children)||d}),u.jsx(Tt,{...n,onClick:m,children:(n==null?void 0:n.children)||f})]})]})}const[MF,ad]=N3("mantine-modals"),_F=ad("openModal"),AF=ad("closeModal"),OF=ad("closeAllModals"),$F=ad("openConfirmModal"),FF=e=>ad("openContextModal")(e),CR={open:_F,close:AF,closeAll:OF,openConfirmModal:$F,openContextModal:FF};function Ww(e,t){var n,r,o,s;t&&e.type==="confirm"&&((r=(n=e.props).onCancel)==null||r.call(n)),(s=(o=e.props).onClose)==null||s.call(o)}function IF(e,t){switch(t.type){case"OPEN":return{current:t.modal,modals:[...e.modals,t.modal]};case"CLOSE":{const n=e.modals.find(o=>o.id===t.modalId);if(!n)return e;Ww(n,t.canceled);const r=e.modals.filter(o=>o.id!==t.modalId);return{current:r[r.length-1]||e.current,modals:r}}case"CLOSE_ALL":return e.modals.length?(e.modals.concat().reverse().forEach(n=>{Ww(n,t.canceled)}),{current:e.current,modals:[]}):e;default:return e}}function zF(e){if(!e)return{confirmProps:{},modalProps:{}};const{id:t,children:n,onCancel:r,onConfirm:o,closeOnConfirm:s,closeOnCancel:i,cancelProps:a,confirmProps:l,groupProps:c,labels:d,...f}=e;return{confirmProps:{id:t,children:n,onCancel:r,onConfirm:o,closeOnConfirm:s,closeOnCancel:i,cancelProps:a,confirmProps:l,groupProps:c,labels:d},modalProps:{id:t,...f}}}function VF({children:e,modalProps:t,labels:n,modals:r}){const[o,s]=v.useReducer(IF,{modals:[],current:null}),i=v.useRef(o);i.current=o;const a=v.useCallback(w=>{s({type:"CLOSE_ALL",canceled:w})},[i,s]),l=v.useCallback(({modalId:w,...y})=>{const x=w||cl();return s({type:"OPEN",modal:{id:x,type:"content",props:y}}),x},[s]),c=v.useCallback(({modalId:w,...y})=>{const x=w||cl();return s({type:"OPEN",modal:{id:x,type:"confirm",props:y}}),x},[s]),d=v.useCallback((w,{modalId:y,...x})=>{const b=y||cl();return s({type:"OPEN",modal:{id:b,type:"context",props:x,ctx:w}}),b},[s]),f=v.useCallback((w,y)=>{s({type:"CLOSE",modalId:w,canceled:y})},[i,s]);MF({openModal:l,openConfirmModal:c,openContextModal:({modal:w,...y})=>d(w,y),closeModal:f,closeContextModal:f,closeAllModals:a});const p={modals:o.modals,openModal:l,openConfirmModal:c,openContextModal:d,closeModal:f,closeContextModal:f,closeAll:a},h=()=>{const w=i.current.current;switch(w==null?void 0:w.type){case"context":{const{innerProps:y,...x}=w.props,b=r[w.ctx];return{modalProps:x,content:u.jsx(b,{innerProps:y,context:p,id:w.id})}}case"confirm":{const{modalProps:y,confirmProps:x}=zF(w.props);return{modalProps:y,content:u.jsx(DF,{...x,id:w.id,labels:w.props.labels||n})}}case"content":{const{children:y,...x}=w.props;return{modalProps:x,content:u.jsx(u.Fragment,{children:y})}}default:return{modalProps:{},content:null}}},{modalProps:m,content:g}=h();return u.jsxs(Y1.Provider,{value:p,children:[u.jsx(_t,{zIndex:Bn("modal")+1,...t,...m,opened:o.modals.length>0,onClose:()=>{var w;return f((w=o.current)==null?void 0:w.id)},children:g}),e]})}function BF(e){let t=e,n=!1;const r=new Set;return{getState(){return t},updateState(o){t=typeof o=="function"?o(t):o},setState(o){this.updateState(o),r.forEach(s=>s(t))},initialize(o){n||(t=o,n=!0)},subscribe(o){return r.add(o),()=>r.delete(o)}}}function UF(e){return v.useSyncExternalStore(e.subscribe,()=>e.getState(),()=>e.getState())}function HF(e,t,n){const r=[],o=[],s={};for(const i of e){const a=i.position||t;s[a]=s[a]||0,s[a]+=1,s[a]<=n?o.push(i):r.push(i)}return{notifications:o,queue:r}}const WF=()=>BF({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),ca=WF(),KF=(e=ca)=>UF(e);function oc(e,t){const n=e.getState(),r=t([...n.notifications,...n.queue]),o=HF(r,n.defaultPosition,n.limit);e.setState({notifications:o.notifications,queue:o.queue,limit:n.limit,defaultPosition:n.defaultPosition})}function qF(e,t=ca){const n=e.id||cl();return oc(t,r=>e.id&&r.some(o=>o.id===e.id)?r:[...r,{...e,id:n}]),n}function ER(e,t=ca){return oc(t,n=>n.filter(r=>{var o;return r.id===e?((o=r.onClose)==null||o.call(r,r),!1):!0})),e}function YF(e,t=ca){return oc(t,n=>n.map(r=>r.id===e.id?{...r,...e}:r)),e.id}function GF(e=ca){oc(e,()=>[])}function QF(e=ca){oc(e,t=>t.slice(0,e.getState().limit))}const li={show:qF,hide:ER,update:YF,clean:GF,cleanQueue:QF,updateState:oc};function Fy(e,t){return Fy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Fy(e,t)}function kR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fy(e,t)}const Kw={disabled:!1},cp=Ht.createContext(null);var XF=function(t){return t.scrollTop},zc="unmounted",Si="exited",Ci="entering",$a="entered",Iy="exiting",ss=function(e){kR(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=o,a=i&&!i.isMounting?r.enter:r.appear,l;return s.appearStatus=null,r.in?a?(l=Si,s.appearStatus=Ci):l=$a:r.unmountOnExit||r.mountOnEnter?l=zc:l=Si,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===zc?{status:Si}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Ci&&i!==$a&&(s=Ci):(i===Ci||i===$a)&&(s=Iy)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,i,a;return s=i=a=o,o!=null&&typeof o!="number"&&(s=o.exit,i=o.enter,a=o.appear!==void 0?o.appear:i),{exit:s,enter:i,appear:a}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===Ci){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Xa.findDOMNode(this);i&&XF(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Si&&this.setState({status:zc})},n.performEnter=function(o){var s=this,i=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Xa.findDOMNode(this),a],c=l[0],d=l[1],f=this.getTimeouts(),p=a?f.appear:f.enter;if(!o&&!i||Kw.disabled){this.safeSetState({status:$a},function(){s.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:Ci},function(){s.props.onEntering(c,d),s.onTransitionEnd(p,function(){s.safeSetState({status:$a},function(){s.props.onEntered(c,d)})})})},n.performExit=function(){var o=this,s=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:Xa.findDOMNode(this);if(!s||Kw.disabled){this.safeSetState({status:Si},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Iy},function(){o.props.onExiting(a),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Si},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,i=!0;return this.nextCallback=function(a){i&&(i=!1,s.nextCallback=null,o(a))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var i=this.props.nodeRef?this.props.nodeRef.current:Xa.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!i||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===zc)return null;var s=this.props,i=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var a=Kj(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ht.createElement(cp.Provider,{value:null},typeof i=="function"?i(o,a):Ht.cloneElement(Ht.Children.only(i),a))},t}(Ht.Component);ss.contextType=cp;ss.propTypes={};function Na(){}ss.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Na,onEntering:Na,onEntered:Na,onExit:Na,onExiting:Na,onExited:Na};ss.UNMOUNTED=zc;ss.EXITED=Si;ss.ENTERING=Ci;ss.ENTERED=$a;ss.EXITING=Iy;function JF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G1(e,t){var n=function(s){return t&&v.isValidElement(s)?t(s):s},r=Object.create(null);return e&&v.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function ZF(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var s in e)s in t?o.length&&(r[s]=o,o=[]):o.push(s);var i,a={};for(var l in t){if(r[l])for(i=0;i<r[l].length;i++){var c=r[l][i];a[r[l][i]]=n(c)}a[l]=n(l)}for(i=0;i<o.length;i++)a[o[i]]=n(o[i]);return a}function Li(e,t,n){return n[t]!=null?n[t]:e.props[t]}function eI(e,t){return G1(e.children,function(n){return v.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Li(n,"appear",e),enter:Li(n,"enter",e),exit:Li(n,"exit",e)})})}function tI(e,t,n){var r=G1(e.children),o=ZF(t,r);return Object.keys(o).forEach(function(s){var i=o[s];if(v.isValidElement(i)){var a=s in t,l=s in r,c=t[s],d=v.isValidElement(c)&&!c.props.in;l&&(!a||d)?o[s]=v.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:Li(i,"exit",e),enter:Li(i,"enter",e)}):!l&&a&&!d?o[s]=v.cloneElement(i,{in:!1}):l&&a&&v.isValidElement(c)&&(o[s]=v.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:Li(i,"exit",e),enter:Li(i,"enter",e)}))}}),o}var nI=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},rI={component:"div",childFactory:function(t){return t}},ws=function(e){kR(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=s.handleExited.bind(JF(s));return s.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,s){var i=s.children,a=s.handleExited,l=s.firstRender;return{children:l?eI(o,a):tI(o,i,a),firstRender:!1}},n.handleExited=function(o,s){var i=G1(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(a){var l=Ay({},a.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,s=o.component,i=o.childFactory,a=Kj(o,["component","childFactory"]),l=this.state.contextValue,c=nI(this.state.children).map(i);return delete a.appear,delete a.enter,delete a.exit,s===null?Ht.createElement(cp.Provider,{value:l},c):Ht.createElement(cp.Provider,{value:l},Ht.createElement(s,a,c))},t}(Ht.Component);ws.propTypes={};ws.defaultProps=rI;const jR=["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"];function oI(e,t){return e.reduce((n,r)=>(n[r.position||t].push(r),n),jR.reduce((n,r)=>(n[r]=[],n),{}))}const qw={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},sI={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function iI({state:e,maxHeight:t,position:n,transitionDuration:r}){const[o,s]=n.split("-"),i=s==="center"?`${o}-center`:s,a={opacity:0,maxHeight:t,transform:qw[i],transitionDuration:`${r}ms, ${r}ms, ${r}ms`,transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear",transitionProperty:"opacity, transform, max-height"},l={opacity:1,transform:sI[i]},c={opacity:0,maxHeight:0,transform:qw[i]};return{...a,...{entering:l,entered:l,exiting:c,exited:c}[e]}}function aI(e,t){return typeof t=="number"?t:t===!1||e===!1?!1:e}const RR=v.forwardRef(({data:e,onHide:t,autoClose:n,...r},o)=>{const{autoClose:s,message:i,...a}=e,l=aI(n,e.autoClose),c=v.useRef(),d=()=>window.clearTimeout(c.current),f=()=>{t(e.id),d()},p=()=>{typeof l=="number"&&(c.current=window.setTimeout(f,l))};return v.useEffect(()=>{var h;(h=e.onOpen)==null||h.call(e,e)},[]),v.useEffect(()=>(p(),d),[l]),u.jsx(R1,{...r,...a,onClose:f,ref:o,onMouseEnter:d,onMouseLeave:p,children:i})});RR.displayName="@mantine/notifications/NotificationContainer";var PR={root:"m_b37d9ac7",notification:"m_5ed0edd0"};const lI=ss,cI={position:"bottom-right",autoClose:4e3,transitionDuration:250,containerWidth:440,notificationMaxHeight:200,limit:5,zIndex:Bn("overlay"),store:ca,withinPortal:!0},uI=(e,{zIndex:t,containerWidth:n})=>({root:{"--notifications-z-index":t==null?void 0:t.toString(),"--notifications-container-width":H(n)}}),is=Q((e,t)=>{const n=K("Notifications",cI,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,position:c,autoClose:d,transitionDuration:f,containerWidth:p,notificationMaxHeight:h,limit:m,zIndex:g,store:w,portalProps:y,withinPortal:x,...b}=n,S=en(),k=KF(w),E=m3(),j=Hp(),C=v.useRef({}),T=v.useRef(0),_=(S.respectReducedMotion?j:!1)?1:f,I=pe({name:"Notifications",classes:PR,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:uI});v.useEffect(()=>{w==null||w.updateState(M=>({...M,limit:m||5,defaultPosition:c}))},[m,c]),xr(()=>{k.notifications.length>T.current&&setTimeout(()=>E(),0),T.current=k.notifications.length},[k.notifications]);const U=oI(k.notifications,c),O=jR.reduce((M,P)=>(M[P]=U[P].map(({style:L,...R})=>u.jsx(lI,{timeout:_,onEnter:()=>C.current[R.id].offsetHeight,nodeRef:{current:C.current[R.id]},children:D=>u.jsx(RR,{ref:$=>{C.current[R.id]=$},data:R,onHide:$=>ER($,w),autoClose:d,...I("notification",{style:{...iI({state:D,position:P,transitionDuration:_,maxHeight:h}),...L}})})},R.id)),M),{});return u.jsxs(sa,{withinPortal:x,...y,children:[u.jsx(Y,{...I("root"),"data-position":"top-center",ref:t,...b,children:u.jsx(ws,{children:O["top-center"]})}),u.jsx(Y,{...I("root"),"data-position":"top-left",...b,children:u.jsx(ws,{children:O["top-left"]})}),u.jsx(Y,{...I("root"),"data-position":"top-right",...b,children:u.jsx(ws,{children:O["top-right"]})}),u.jsx(Y,{...I("root"),"data-position":"bottom-right",...b,children:u.jsx(ws,{children:O["bottom-right"]})}),u.jsx(Y,{...I("root"),"data-position":"bottom-left",...b,children:u.jsx(ws,{children:O["bottom-left"]})}),u.jsx(Y,{...I("root"),"data-position":"bottom-center",...b,children:u.jsx(ws,{children:O["bottom-center"]})})]})});is.classes=PR;is.displayName="@mantine/notifications/Notifications";is.show=li.show;is.hide=li.hide;is.update=li.update;is.clean=li.clean;is.cleanQueue=li.cleanQueue;is.updateState=li.updateState;var sc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Vl=typeof window>"u"||"Deno"in globalThis;function ur(){}function dI(e,t){return typeof e=="function"?e(t):e}function zy(e){return typeof e=="number"&&e>=0&&e!==1/0}function TR(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pl(e,t){return typeof e=="function"?e(t):e}function Fr(e,t){return typeof e=="function"?e(t):e}function Yw(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==Q1(i,t.options))return!1}else if(!Pu(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function Gw(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Xi(t.options.mutationKey)!==Xi(s))return!1}else if(!Pu(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Q1(e,t){return((t==null?void 0:t.queryKeyHashFn)||Xi)(e)}function Xi(e){return JSON.stringify(e,(t,n)=>Vy(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Pu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Pu(e[n],t[n])):!1}function NR(e,t){if(e===t)return e;const n=Qw(e)&&Qw(t);if(n||Vy(e)&&Vy(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{};let l=0;for(let c=0;c<i;c++){const d=n?c:s[c];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,l++):(a[d]=NR(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&l++)}return o===i&&l===o?e:a}return t}function up(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Qw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Vy(e){if(!Xw(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Xw(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Xw(e){return Object.prototype.toString.call(e)==="[object Object]"}function fI(e){return new Promise(t=>{setTimeout(t,e)})}function By(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?NR(e,t):t}function pI(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function hI(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var LR=Symbol();function DR(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===LR?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var _i,js,ml,SC,mI=(SC=class extends sc{constructor(){super();je(this,_i);je(this,js);je(this,ml);ge(this,ml,t=>{if(!Vl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){z(this,js)||this.setEventListener(z(this,ml))}onUnsubscribe(){var t;this.hasListeners()||((t=z(this,js))==null||t.call(this),ge(this,js,void 0))}setEventListener(t){var n;ge(this,ml,t),(n=z(this,js))==null||n.call(this),ge(this,js,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){z(this,_i)!==t&&(ge(this,_i,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof z(this,_i)=="boolean"?z(this,_i):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},_i=new WeakMap,js=new WeakMap,ml=new WeakMap,SC),X1=new mI,gl,Rs,yl,CC,gI=(CC=class extends sc{constructor(){super();je(this,gl,!0);je(this,Rs);je(this,yl);ge(this,yl,t=>{if(!Vl&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){z(this,Rs)||this.setEventListener(z(this,yl))}onUnsubscribe(){var t;this.hasListeners()||((t=z(this,Rs))==null||t.call(this),ge(this,Rs,void 0))}setEventListener(t){var n;ge(this,yl,t),(n=z(this,Rs))==null||n.call(this),ge(this,Rs,t(this.setOnline.bind(this)))}setOnline(t){z(this,gl)!==t&&(ge(this,gl,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return z(this,gl)}},gl=new WeakMap,Rs=new WeakMap,yl=new WeakMap,CC),dp=new gI;function yI(e){return Math.min(1e3*2**e,3e4)}function MR(e){return(e??"online")==="online"?dp.isOnline():!0}var _R=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function lg(e){return e instanceof _R}function AR(e){let t=!1,n=0,r=!1,o,s,i;const a=new Promise((y,x)=>{s=y,i=x}),l=y=>{var x;r||(m(new _R(y)),(x=e.abort)==null||x.call(e))},c=()=>{t=!0},d=()=>{t=!1},f=()=>X1.isFocused()&&(e.networkMode==="always"||dp.isOnline())&&e.canRun(),p=()=>MR(e.networkMode)&&e.canRun(),h=y=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,y),o==null||o(),s(y))},m=y=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,y),o==null||o(),i(y))},g=()=>new Promise(y=>{var x;o=b=>{(r||f())&&y(b)},(x=e.onPause)==null||x.call(e)}).then(()=>{var y;o=void 0,r||(y=e.onContinue)==null||y.call(e)}),w=()=>{if(r)return;let y;const x=n===0?e.initialPromise:void 0;try{y=x??e.fn()}catch(b){y=Promise.reject(b)}Promise.resolve(y).then(h).catch(b=>{var C;if(r)return;const S=e.retry??(Vl?0:3),k=e.retryDelay??yI,E=typeof k=="function"?k(n,b):k,j=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,b);if(t||!j){m(b);return}n++,(C=e.onFail)==null||C.call(e,n,b),fI(E).then(()=>f()?void 0:g()).then(()=>{t?m(b):w()})})};return{promise:a,cancel:l,continue:()=>(o==null||o(),a),cancelRetry:c,continueRetry:d,canStart:p,start:()=>(p()?w():g().then(w),a)}}function vI(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=a=>setTimeout(a,0);const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Ut=vI(),Ai,EC,OR=(EC=class{constructor(){je(this,Ai)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),zy(this.gcTime)&&ge(this,Ai,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Vl?1/0:5*60*1e3))}clearGcTimeout(){z(this,Ai)&&(clearTimeout(z(this,Ai)),ge(this,Ai,void 0))}},Ai=new WeakMap,EC),vl,xl,cr,dn,Mu,Oi,_r,Po,kC,xI=(kC=class extends OR{constructor(t){super();je(this,_r);je(this,vl);je(this,xl);je(this,cr);je(this,dn);je(this,Mu);je(this,Oi);ge(this,Oi,!1),ge(this,Mu,t.defaultOptions),this.setOptions(t.options),this.observers=[],ge(this,cr,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ge(this,vl,bI(this.options)),this.state=t.state??z(this,vl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=z(this,dn))==null?void 0:t.promise}setOptions(t){this.options={...z(this,Mu),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&z(this,cr).remove(this)}setData(t,n){const r=By(this.state.data,t,this.options);return Pe(this,_r,Po).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Pe(this,_r,Po).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=z(this,dn))==null?void 0:r.promise;return(o=z(this,dn))==null||o.cancel(t),n?n.then(ur).catch(ur):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(z(this,vl))}isActive(){return this.observers.some(t=>Fr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!TR(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=z(this,dn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=z(this,dn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),z(this,cr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(z(this,dn)&&(z(this,Oi)?z(this,dn).cancel({revert:!0}):z(this,dn).cancelRetry()),this.scheduleGc()),z(this,cr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Pe(this,_r,Po).call(this,{type:"invalidate"})}fetch(t,n){var l,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(z(this,dn))return z(this,dn).continueRetry(),z(this,dn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(ge(this,Oi,!0),r.signal)})},s=()=>{const f=DR(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return o(p),ge(this,Oi,!1),this.options.persister?this.options.persister(f,p,this):f(p)},i={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};o(i),(l=this.options.behavior)==null||l.onFetch(i,this),ge(this,xl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=i.fetchOptions)==null?void 0:c.meta))&&Pe(this,_r,Po).call(this,{type:"fetch",meta:(d=i.fetchOptions)==null?void 0:d.meta});const a=f=>{var p,h,m,g;lg(f)&&f.silent||Pe(this,_r,Po).call(this,{type:"error",error:f}),lg(f)||((h=(p=z(this,cr).config).onError)==null||h.call(p,f,this),(g=(m=z(this,cr).config).onSettled)==null||g.call(m,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return ge(this,dn,AR({initialPromise:n==null?void 0:n.initialPromise,fn:i.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,h,m,g;if(f===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(w){a(w);return}(h=(p=z(this,cr).config).onSuccess)==null||h.call(p,f,this),(g=(m=z(this,cr).config).onSettled)==null||g.call(m,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:a,onFail:(f,p)=>{Pe(this,_r,Po).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{Pe(this,_r,Po).call(this,{type:"pause"})},onContinue:()=>{Pe(this,_r,Po).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),z(this,dn).start()}},vl=new WeakMap,xl=new WeakMap,cr=new WeakMap,dn=new WeakMap,Mu=new WeakMap,Oi=new WeakMap,_r=new WeakSet,Po=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...$R(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return lg(o)&&o.revert&&z(this,xl)?{...z(this,xl),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ut.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),z(this,cr).notify({query:this,type:"updated",action:t})})},kC);function $R(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:MR(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function bI(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var io,jC,wI=(jC=class extends sc{constructor(t={}){super();je(this,io);this.config=t,ge(this,io,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??Q1(o,n);let i=this.get(s);return i||(i=new xI({cache:this,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){z(this,io).has(t.queryHash)||(z(this,io).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=z(this,io).get(t.queryHash);n&&(t.destroy(),n===t&&z(this,io).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ut.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return z(this,io).get(t)}getAll(){return[...z(this,io).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Yw(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Yw(t,r)):n}notify(t){Ut.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ut.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ut.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},io=new WeakMap,jC),ao,xn,$i,lo,ys,RC,SI=(RC=class extends OR{constructor(t){super();je(this,lo);je(this,ao);je(this,xn);je(this,$i);this.mutationId=t.mutationId,ge(this,xn,t.mutationCache),ge(this,ao,[]),this.state=t.state||FR(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){z(this,ao).includes(t)||(z(this,ao).push(t),this.clearGcTimeout(),z(this,xn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ge(this,ao,z(this,ao).filter(n=>n!==t)),this.scheduleGc(),z(this,xn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){z(this,ao).length||(this.state.status==="pending"?this.scheduleGc():z(this,xn).remove(this))}continue(){var t;return((t=z(this,$i))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,i,a,l,c,d,f,p,h,m,g,w,y,x,b,S,k,E,j;ge(this,$i,AR({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(C,T)=>{Pe(this,lo,ys).call(this,{type:"failed",failureCount:C,error:T})},onPause:()=>{Pe(this,lo,ys).call(this,{type:"pause"})},onContinue:()=>{Pe(this,lo,ys).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>z(this,xn).canRun(this)}));const n=this.state.status==="pending",r=!z(this,$i).canStart();try{if(!n){Pe(this,lo,ys).call(this,{type:"pending",variables:t,isPaused:r}),await((s=(o=z(this,xn).config).onMutate)==null?void 0:s.call(o,t,this));const T=await((a=(i=this.options).onMutate)==null?void 0:a.call(i,t));T!==this.state.context&&Pe(this,lo,ys).call(this,{type:"pending",context:T,variables:t,isPaused:r})}const C=await z(this,$i).start();return await((c=(l=z(this,xn).config).onSuccess)==null?void 0:c.call(l,C,t,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,C,t,this.state.context)),await((h=(p=z(this,xn).config).onSettled)==null?void 0:h.call(p,C,null,this.state.variables,this.state.context,this)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,C,null,t,this.state.context)),Pe(this,lo,ys).call(this,{type:"success",data:C}),C}catch(C){try{throw await((y=(w=z(this,xn).config).onError)==null?void 0:y.call(w,C,t,this.state.context,this)),await((b=(x=this.options).onError)==null?void 0:b.call(x,C,t,this.state.context)),await((k=(S=z(this,xn).config).onSettled)==null?void 0:k.call(S,void 0,C,this.state.variables,this.state.context,this)),await((j=(E=this.options).onSettled)==null?void 0:j.call(E,void 0,C,t,this.state.context)),C}finally{Pe(this,lo,ys).call(this,{type:"error",error:C})}}finally{z(this,xn).runNext(this)}}},ao=new WeakMap,xn=new WeakMap,$i=new WeakMap,lo=new WeakSet,ys=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ut.batch(()=>{z(this,ao).forEach(r=>{r.onMutationUpdate(t)}),z(this,xn).notify({mutation:this,type:"updated",action:t})})},RC);function FR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var qn,_u,PC,CI=(PC=class extends sc{constructor(t={}){super();je(this,qn);je(this,_u);this.config=t,ge(this,qn,new Map),ge(this,_u,Date.now())}build(t,n,r){const o=new SI({mutationCache:this,mutationId:++Ld(this,_u)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){const n=nf(t),r=z(this,qn).get(n)??[];r.push(t),z(this,qn).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=nf(t);if(z(this,qn).has(n)){const o=(r=z(this,qn).get(n))==null?void 0:r.filter(s=>s!==t);o&&(o.length===0?z(this,qn).delete(n):z(this,qn).set(n,o))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=z(this,qn).get(nf(t)))==null?void 0:r.find(o=>o.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=z(this,qn).get(nf(t)))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Ut.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...z(this,qn).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Gw(n,r))}findAll(t={}){return this.getAll().filter(n=>Gw(t,n))}notify(t){Ut.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ut.batch(()=>Promise.all(t.map(n=>n.continue().catch(ur))))}},qn=new WeakMap,_u=new WeakMap,PC);function nf(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Uy(e){return{onFetch:(t,n)=>{const r=async()=>{var m,g,w,y,x;const o=t.options,s=(w=(g=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:g.fetchMore)==null?void 0:w.direction,i=((y=t.state.data)==null?void 0:y.pages)||[],a=((x=t.state.data)==null?void 0:x.pageParams)||[],l={pages:[],pageParams:[]};let c=!1;const d=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?c=!0:t.signal.addEventListener("abort",()=>{c=!0}),t.signal)})},f=DR(t.options,t.fetchOptions),p=async(b,S,k)=>{if(c)return Promise.reject();if(S==null&&b.pages.length)return Promise.resolve(b);const E={queryKey:t.queryKey,pageParam:S,direction:k?"backward":"forward",meta:t.options.meta};d(E);const j=await f(E),{maxPages:C}=t.options,T=k?hI:pI;return{pages:T(b.pages,j,C),pageParams:T(b.pageParams,S,C)}};let h;if(s&&i.length){const b=s==="backward",S=b?IR:Hy,k={pages:i,pageParams:a},E=S(o,k);h=await p(k,E,b)}else{h=await p(l,a[0]??o.initialPageParam);const b=e??i.length;for(let S=1;S<b;S++){const k=Hy(o,h);if(k==null)break;h=await p(h,k)}}return h};t.options.persister?t.fetchFn=()=>{var o,s;return(s=(o=t.options).persister)==null?void 0:s.call(o,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function Hy(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function IR(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function EI(e,t){return t?Hy(e,t)!=null:!1}function kI(e,t){return!t||!e.getPreviousPageParam?!1:IR(e,t)!=null}var Dt,Ps,Ts,bl,wl,Ns,Sl,Cl,TC,jI=(TC=class{constructor(e={}){je(this,Dt);je(this,Ps);je(this,Ts);je(this,bl);je(this,wl);je(this,Ns);je(this,Sl);je(this,Cl);ge(this,Dt,e.queryCache||new wI),ge(this,Ps,e.mutationCache||new CI),ge(this,Ts,e.defaultOptions||{}),ge(this,bl,new Map),ge(this,wl,new Map),ge(this,Ns,0)}mount(){Ld(this,Ns)._++,z(this,Ns)===1&&(ge(this,Sl,X1.subscribe(async e=>{e&&(await this.resumePausedMutations(),z(this,Dt).onFocus())})),ge(this,Cl,dp.subscribe(async e=>{e&&(await this.resumePausedMutations(),z(this,Dt).onOnline())})))}unmount(){var e,t;Ld(this,Ns)._--,z(this,Ns)===0&&((e=z(this,Sl))==null||e.call(this),ge(this,Sl,void 0),(t=z(this,Cl))==null||t.call(this),ge(this,Cl,void 0))}isFetching(e){return z(this,Dt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return z(this,Ps).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=z(this,Dt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=z(this,Dt).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(pl(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return z(this,Dt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=z(this,Dt).get(r.queryHash),s=o==null?void 0:o.state.data,i=dI(t,s);if(i!==void 0)return z(this,Dt).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Ut.batch(()=>z(this,Dt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=z(this,Dt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=z(this,Dt);Ut.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=z(this,Dt),r={type:"active",...e};return Ut.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Ut.batch(()=>z(this,Dt).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(ur).catch(ur)}invalidateQueries(e={},t={}){return Ut.batch(()=>{if(z(this,Dt).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Ut.batch(()=>z(this,Dt).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(ur)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(ur)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=z(this,Dt).build(this,t);return n.isStaleByTime(pl(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ur).catch(ur)}fetchInfiniteQuery(e){return e.behavior=Uy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ur).catch(ur)}resumePausedMutations(){return dp.isOnline()?z(this,Ps).resumePausedMutations():Promise.resolve()}getQueryCache(){return z(this,Dt)}getMutationCache(){return z(this,Ps)}getDefaultOptions(){return z(this,Ts)}setDefaultOptions(e){ge(this,Ts,e)}setQueryDefaults(e,t){z(this,bl).set(Xi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...z(this,bl).values()];let n={};return t.forEach(r=>{Pu(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){z(this,wl).set(Xi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...z(this,wl).values()];let n={};return t.forEach(r=>{Pu(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...z(this,Ts).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Q1(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===LR&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...z(this,Ts).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){z(this,Dt).clear(),z(this,Ps).clear()}},Dt=new WeakMap,Ps=new WeakMap,Ts=new WeakMap,bl=new WeakMap,wl=new WeakMap,Ns=new WeakMap,Sl=new WeakMap,Cl=new WeakMap,TC),Nn,He,Au,bn,Fi,El,co,Ou,kl,jl,Ii,zi,Ls,Rl,Je,Vc,Wy,Ky,qy,Yy,Gy,Qy,Xy,VR,NC,zR=(NC=class extends sc{constructor(t,n){super();je(this,Je);je(this,Nn);je(this,He);je(this,Au);je(this,bn);je(this,Fi);je(this,El);je(this,co);je(this,Ou);je(this,kl);je(this,jl);je(this,Ii);je(this,zi);je(this,Ls);je(this,Rl,new Set);this.options=n,ge(this,Nn,t),ge(this,co,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(z(this,He).addObserver(this),Jw(z(this,He),this.options)?Pe(this,Je,Vc).call(this):this.updateResult(),Pe(this,Je,Yy).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Jy(z(this,He),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Jy(z(this,He),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Pe(this,Je,Gy).call(this),Pe(this,Je,Qy).call(this),z(this,He).removeObserver(this)}setOptions(t,n){const r=this.options,o=z(this,He);if(this.options=z(this,Nn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Fr(this.options.enabled,z(this,He))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Pe(this,Je,Xy).call(this),z(this,He).setOptions(this.options),r._defaulted&&!up(this.options,r)&&z(this,Nn).getQueryCache().notify({type:"observerOptionsUpdated",query:z(this,He),observer:this});const s=this.hasListeners();s&&Zw(z(this,He),o,this.options,r)&&Pe(this,Je,Vc).call(this),this.updateResult(n),s&&(z(this,He)!==o||Fr(this.options.enabled,z(this,He))!==Fr(r.enabled,z(this,He))||pl(this.options.staleTime,z(this,He))!==pl(r.staleTime,z(this,He)))&&Pe(this,Je,Wy).call(this);const i=Pe(this,Je,Ky).call(this);s&&(z(this,He)!==o||Fr(this.options.enabled,z(this,He))!==Fr(r.enabled,z(this,He))||i!==z(this,Ls))&&Pe(this,Je,qy).call(this,i)}getOptimisticResult(t){const n=z(this,Nn).getQueryCache().build(z(this,Nn),t),r=this.createResult(n,t);return PI(this,r)&&(ge(this,bn,r),ge(this,El,this.options),ge(this,Fi,z(this,He).state)),r}getCurrentResult(){return z(this,bn)}trackResult(t,n){const r={};return Object.keys(t).forEach(o=>{Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),n==null||n(o),t[o])})}),r}trackProp(t){z(this,Rl).add(t)}getCurrentQuery(){return z(this,He)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=z(this,Nn).defaultQueryOptions(t),r=z(this,Nn).getQueryCache().build(z(this,Nn),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Pe(this,Je,Vc).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),z(this,bn)))}createResult(t,n){var j;const r=z(this,He),o=this.options,s=z(this,bn),i=z(this,Fi),a=z(this,El),c=t!==r?t.state:z(this,Au),{state:d}=t;let f={...d},p=!1,h;if(n._optimisticResults){const C=this.hasListeners(),T=!C&&Jw(t,n),N=C&&Zw(t,r,n,o);(T||N)&&(f={...f,...$R(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:w}=f;if(n.select&&f.data!==void 0)if(s&&f.data===(i==null?void 0:i.data)&&n.select===z(this,Ou))h=z(this,kl);else try{ge(this,Ou,n.select),h=n.select(f.data),h=By(s==null?void 0:s.data,h,n),ge(this,kl,h),ge(this,co,null)}catch(C){ge(this,co,C)}else h=f.data;if(n.placeholderData!==void 0&&h===void 0&&w==="pending"){let C;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))C=s.data;else if(C=typeof n.placeholderData=="function"?n.placeholderData((j=z(this,jl))==null?void 0:j.state.data,z(this,jl)):n.placeholderData,n.select&&C!==void 0)try{C=n.select(C),ge(this,co,null)}catch(T){ge(this,co,T)}C!==void 0&&(w="success",h=By(s==null?void 0:s.data,C,n),p=!0)}z(this,co)&&(m=z(this,co),h=z(this,kl),g=Date.now(),w="error");const y=f.fetchStatus==="fetching",x=w==="pending",b=w==="error",S=x&&y,k=h!==void 0;return{status:w,fetchStatus:f.fetchStatus,isPending:x,isSuccess:w==="success",isError:b,isInitialLoading:S,isLoading:S,data:h,dataUpdatedAt:f.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:y,isRefetching:y&&!x,isLoadingError:b&&!k,isPaused:f.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:b&&k,isStale:J1(t,n),refetch:this.refetch}}updateResult(t){const n=z(this,bn),r=this.createResult(z(this,He),this.options);if(ge(this,Fi,z(this,He).state),ge(this,El,this.options),z(this,Fi).data!==void 0&&ge(this,jl,z(this,He)),up(r,n))return;ge(this,bn,r);const o={},s=()=>{if(!n)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!z(this,Rl).size)return!0;const l=new Set(a??z(this,Rl));return this.options.throwOnError&&l.add("error"),Object.keys(z(this,bn)).some(c=>{const d=c;return z(this,bn)[d]!==n[d]&&l.has(d)})};(t==null?void 0:t.listeners)!==!1&&s()&&(o.listeners=!0),Pe(this,Je,VR).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Pe(this,Je,Yy).call(this)}},Nn=new WeakMap,He=new WeakMap,Au=new WeakMap,bn=new WeakMap,Fi=new WeakMap,El=new WeakMap,co=new WeakMap,Ou=new WeakMap,kl=new WeakMap,jl=new WeakMap,Ii=new WeakMap,zi=new WeakMap,Ls=new WeakMap,Rl=new WeakMap,Je=new WeakSet,Vc=function(t){Pe(this,Je,Xy).call(this);let n=z(this,He).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ur)),n},Wy=function(){Pe(this,Je,Gy).call(this);const t=pl(this.options.staleTime,z(this,He));if(Vl||z(this,bn).isStale||!zy(t))return;const r=TR(z(this,bn).dataUpdatedAt,t)+1;ge(this,Ii,setTimeout(()=>{z(this,bn).isStale||this.updateResult()},r))},Ky=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(z(this,He)):this.options.refetchInterval)??!1},qy=function(t){Pe(this,Je,Qy).call(this),ge(this,Ls,t),!(Vl||Fr(this.options.enabled,z(this,He))===!1||!zy(z(this,Ls))||z(this,Ls)===0)&&ge(this,zi,setInterval(()=>{(this.options.refetchIntervalInBackground||X1.isFocused())&&Pe(this,Je,Vc).call(this)},z(this,Ls)))},Yy=function(){Pe(this,Je,Wy).call(this),Pe(this,Je,qy).call(this,Pe(this,Je,Ky).call(this))},Gy=function(){z(this,Ii)&&(clearTimeout(z(this,Ii)),ge(this,Ii,void 0))},Qy=function(){z(this,zi)&&(clearInterval(z(this,zi)),ge(this,zi,void 0))},Xy=function(){const t=z(this,Nn).getQueryCache().build(z(this,Nn),this.options);if(t===z(this,He))return;const n=z(this,He);ge(this,He,t),ge(this,Au,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},VR=function(t){Ut.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(z(this,bn))}),z(this,Nn).getQueryCache().notify({query:z(this,He),type:"observerResultsUpdated"})})},NC);function RI(e,t){return Fr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Jw(e,t){return RI(e,t)||e.state.data!==void 0&&Jy(e,t,t.refetchOnMount)}function Jy(e,t,n){if(Fr(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&J1(e,t)}return!1}function Zw(e,t,n,r){return(e!==t||Fr(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&J1(e,n)}function J1(e,t){return Fr(t.enabled,e)!==!1&&e.isStaleByTime(pl(t.staleTime,e))}function PI(e,t){return!up(e.getCurrentResult(),t)}var TI=class extends zR{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:Uy()},t)}getOptimisticResult(e){return e.behavior=Uy(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var m,g;const{state:n}=e,r=super.createResult(e,t),{isFetching:o,isRefetching:s,isError:i,isRefetchError:a}=r,l=(g=(m=n.fetchMeta)==null?void 0:m.fetchMore)==null?void 0:g.direction,c=i&&l==="forward",d=o&&l==="forward",f=i&&l==="backward",p=o&&l==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:EI(t,n.data),hasPreviousPage:kI(t,n.data),isFetchNextPageError:c,isFetchingNextPage:d,isFetchPreviousPageError:f,isFetchingPreviousPage:p,isRefetchError:a&&!c&&!f,isRefetching:s&&!d&&!p}}},Ds,Ms,Ln,Lo,Fo,jf,Zy,LC,NI=(LC=class extends sc{constructor(n,r){super();je(this,Fo);je(this,Ds);je(this,Ms);je(this,Ln);je(this,Lo);ge(this,Ds,n),this.setOptions(r),this.bindMethods(),Pe(this,Fo,jf).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=z(this,Ds).defaultMutationOptions(n),up(this.options,r)||z(this,Ds).getMutationCache().notify({type:"observerOptionsUpdated",mutation:z(this,Ln),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Xi(r.mutationKey)!==Xi(this.options.mutationKey)?this.reset():((o=z(this,Ln))==null?void 0:o.state.status)==="pending"&&z(this,Ln).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=z(this,Ln))==null||n.removeObserver(this)}onMutationUpdate(n){Pe(this,Fo,jf).call(this),Pe(this,Fo,Zy).call(this,n)}getCurrentResult(){return z(this,Ms)}reset(){var n;(n=z(this,Ln))==null||n.removeObserver(this),ge(this,Ln,void 0),Pe(this,Fo,jf).call(this),Pe(this,Fo,Zy).call(this)}mutate(n,r){var o;return ge(this,Lo,r),(o=z(this,Ln))==null||o.removeObserver(this),ge(this,Ln,z(this,Ds).getMutationCache().build(z(this,Ds),this.options)),z(this,Ln).addObserver(this),z(this,Ln).execute(n)}},Ds=new WeakMap,Ms=new WeakMap,Ln=new WeakMap,Lo=new WeakMap,Fo=new WeakSet,jf=function(){var r;const n=((r=z(this,Ln))==null?void 0:r.state)??FR();ge(this,Ms,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Zy=function(n){Ut.batch(()=>{var r,o,s,i,a,l,c,d;if(z(this,Lo)&&this.hasListeners()){const f=z(this,Ms).variables,p=z(this,Ms).context;(n==null?void 0:n.type)==="success"?((o=(r=z(this,Lo)).onSuccess)==null||o.call(r,n.data,f,p),(i=(s=z(this,Lo)).onSettled)==null||i.call(s,n.data,null,f,p)):(n==null?void 0:n.type)==="error"&&((l=(a=z(this,Lo)).onError)==null||l.call(a,n.error,f,p),(d=(c=z(this,Lo)).onSettled)==null||d.call(c,void 0,n.error,f,p))}this.listeners.forEach(f=>{f(z(this,Ms))})})},LC),BR=v.createContext(void 0),ld=e=>{const t=v.useContext(BR);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},LI=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(BR.Provider,{value:e,children:t})),UR=v.createContext(!1),DI=()=>v.useContext(UR);UR.Provider;function MI(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var _I=v.createContext(MI()),AI=()=>v.useContext(_I);function HR(e,t){return typeof e=="function"?e(...t):!!e}function OI(){}var $I=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},FI=e=>{v.useEffect(()=>{e.clearReset()},[e])},II=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&HR(n,[e.error,r]),zI=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},VI=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,BI=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function WR(e,t,n){var c,d,f,p;const r=ld(),o=DI(),s=AI(),i=r.defaultQueryOptions(e);(d=(c=r.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||d.call(c,i),i._optimisticResults=o?"isRestoring":"optimistic",zI(i),$I(i,s),FI(s);const[a]=v.useState(()=>new t(r,i)),l=a.getOptimisticResult(i);if(v.useSyncExternalStore(v.useCallback(h=>{const m=o?()=>{}:a.subscribe(Ut.batchCalls(h));return a.updateResult(),m},[a,o]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),v.useEffect(()=>{a.setOptions(i,{listeners:!1})},[i,a]),VI(i,l))throw BI(i,a,s);if(II({result:l,errorResetBoundary:s,throwOnError:i.throwOnError,query:r.getQueryCache().get(i.queryHash)}))throw l.error;return(p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,i,l),i.notifyOnChangeProps?l:a.trackResult(l)}function ot(e,t){return WR(e,zR)}function as(e,t){const n=ld(),[r]=v.useState(()=>new NI(n,e));v.useEffect(()=>{r.setOptions(e)},[r,e]);const o=v.useSyncExternalStore(v.useCallback(i=>r.subscribe(Ut.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=v.useCallback((i,a)=>{r.mutate(i,a).catch(OI)},[r]);if(o.error&&HR(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}function UI(e,t){return WR(e,TI)}const HI={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class fp{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||HI,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new fp(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new fp(this.logger,t)}}var ho=new fp;class Th{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[a,l]=i;for(let c=0;c<l;c++)a(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[a,l]=i;for(let c=0;c<l;c++)a.apply(a,[t,...r])})}}const Pc=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},eS=e=>e==null?"":""+e,WI=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},KI=/###/g,tS=e=>e&&e.indexOf("###")>-1?e.replace(KI,"."):e,nS=e=>!e||typeof e=="string",nu=(e,t,n)=>{const r=typeof t!="string"?t:t.split(".");let o=0;for(;o<r.length-1;){if(nS(e))return{};const s=tS(r[o]);!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++o}return nS(e)?{}:{obj:e,k:tS(r[o])}},rS=(e,t,n)=>{const{obj:r,k:o}=nu(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let s=t[t.length-1],i=t.slice(0,t.length-1),a=nu(e,i,Object);for(;a.obj===void 0&&i.length;)s=`${i[i.length-1]}.${s}`,i=i.slice(0,i.length-1),a=nu(e,i,Object),a&&a.obj&&typeof a.obj[`${a.k}.${s}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${s}`]=n},qI=(e,t,n,r)=>{const{obj:o,k:s}=nu(e,t,Object);o[s]=o[s]||[],o[s].push(n)},pp=(e,t)=>{const{obj:n,k:r}=nu(e,t);if(n)return n[r]},YI=(e,t,n)=>{const r=pp(e,n);return r!==void 0?r:pp(t,n)},KR=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):KR(e[r],t[r],n):e[r]=t[r]);return e},La=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var GI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const QI=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>GI[t]):e;class XI{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const JI=[" ",",","?","!",";"],ZI=new XI(20),e6=(e,t,n)=>{t=t||"",n=n||"";const r=JI.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const o=ZI.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let s=!o.test(e);if(!s){const i=e.indexOf(n);i>0&&!o.test(e.substring(0,i))&&(s=!0)}return s},ev=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let s=0;s<r.length;){if(!o||typeof o!="object")return;let i,a="";for(let l=s;l<r.length;++l)if(l!==s&&(a+=n),a+=r[l],i=o[a],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&l<r.length-1)continue;s+=l-s+1;break}o=i}return o},hp=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class oS extends Th{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,i=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.indexOf(".")>-1?a=t.split("."):(a=[t,n],r&&(Array.isArray(r)?a.push(...r):typeof r=="string"&&s?a.push(...r.split(s)):a.push(r)));const l=pp(this.data,a);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=a[0],n=a[1],r=a.slice(2).join(".")),l||!i||typeof r!="string"?l:ev(this.data&&this.data[t]&&this.data[t][n],r,s)}addResource(t,n,r,o){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(a=t.split("."),o=n,n=a[1]),this.addNamespaces(n),rS(this.data,a,o),s.silent||this.emit("added",t,n,r,o)}addResources(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(typeof r[s]=="string"||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),o=r,r=n,n=a[1]),this.addNamespaces(n);let l=pp(this.data,a)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?KR(l,r,s):l={...l,...r},rS(this.data,a,l),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var qR={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(s=>{this.processors[s]&&(t=this.processors[s].process(t,n,r,o))}),t}};const sS={};class mp extends Th{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),WI(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ho.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!e6(t,r,o);if(i&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:s};const c=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(c[0])>-1)&&(s=c.shift()),t=c.join(o)}return typeof s=="string"&&(s=[s]),{key:t,namespaces:s}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(t[t.length-1],n),l=a[a.length-1],c=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(d){const S=n.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${S}${i}`,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${S}${i}`}return o?{res:i,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:i}const f=this.resolve(t,n);let p=f&&f.res;const h=f&&f.usedKey||i,m=f&&f.exactUsedKey||i,g=Object.prototype.toString.apply(p),w=["[object Number]","[object Function]","[object RegExp]"],y=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject;if(x&&p&&(typeof p!="string"&&typeof p!="boolean"&&typeof p!="number")&&w.indexOf(g)<0&&!(typeof y=="string"&&Array.isArray(p))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,p,{...n,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return o?(f.res=S,f.usedParams=this.getUsedParamsDetails(n),f):S}if(s){const S=Array.isArray(p),k=S?[]:{},E=S?m:h;for(const j in p)if(Object.prototype.hasOwnProperty.call(p,j)){const C=`${E}${s}${j}`;k[j]=this.translate(C,{...n,joinArrays:!1,ns:a}),k[j]===C&&(k[j]=p[j])}p=k}}else if(x&&typeof y=="string"&&Array.isArray(p))p=p.join(y),p&&(p=this.extendTranslation(p,t,n,r));else{let S=!1,k=!1;const E=n.count!==void 0&&typeof n.count!="string",j=mp.hasDefaultValue(n),C=E?this.pluralResolver.getSuffix(c,n.count,n):"",T=n.ordinal&&E?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",N=E&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),_=N&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${C}`]||n[`defaultValue${T}`]||n.defaultValue;!this.isValidLookup(p)&&j&&(S=!0,p=_),this.isValidLookup(p)||(k=!0,p=i);const U=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&k?void 0:p,O=j&&_!==p&&this.options.updateMissing;if(k||S||O){if(this.logger.log(O?"updateKey":"missingKey",c,l,i,O?_:p),s){const R=this.resolve(i,{...n,keySeparator:!1});R&&R.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let M=[];const P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&P&&P[0])for(let R=0;R<P.length;R++)M.push(P[R]);else this.options.saveMissingTo==="all"?M=this.languageUtils.toResolveHierarchy(n.lng||this.language):M.push(n.lng||this.language);const L=(R,D,$)=>{const A=j&&$!==p?$:U;this.options.missingKeyHandler?this.options.missingKeyHandler(R,l,D,A,O,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(R,l,D,A,O,n),this.emit("missingKey",R,l,D,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?M.forEach(R=>{const D=this.pluralResolver.getSuffixes(R,n);N&&n[`defaultValue${this.options.pluralSeparator}zero`]&&D.indexOf(`${this.options.pluralSeparator}zero`)<0&&D.push(`${this.options.pluralSeparator}zero`),D.forEach($=>{L([R],i+$,n[`defaultValue${$}`]||_)})}):L(M,i,_))}p=this.extendTranslation(p,t,n,f,r),k&&p===i&&this.options.appendNamespaceToMissingKey&&(p=`${l}:${i}`),(k||S)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${i}`:i,S?p:void 0):p=this.options.parseMissingKeyHandler(p))}return o?(f.res=p,f.usedParams=this.getUsedParamsDetails(n),f):p}extendTranslation(t,n,r,o,s){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(c){const p=t.match(this.interpolator.nestingRegexp);d=p&&p.length}let f=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language||o.usedLng,r),c){const p=t.match(this.interpolator.nestingRegexp),h=p&&p.length;d<h&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var p=arguments.length,h=new Array(p),m=0;m<p;m++)h[m]=arguments[m];return s&&s[0]===h[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${n[0]}`),null):i.translate(...h,n)},r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,l=typeof a=="string"?[a]:a;return t!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(t=qR.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,o,s,i,a;return typeof t=="string"&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),d=c.key;o=d;let f=c.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const p=n.count!==void 0&&typeof n.count!="string",h=p&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),m=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(w=>{this.isValidLookup(r)||(a=w,!sS[`${g[0]}-${w}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(sS[`${g[0]}-${w}`]=!0,this.logger.warn(`key "${o}" for languages "${g.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(y=>{if(this.isValidLookup(r))return;i=y;const x=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(x,d,y,w,n);else{let S;p&&(S=this.pluralResolver.getSuffix(y,n.count,n));const k=`${this.options.pluralSeparator}zero`,E=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(x.push(d+S),n.ordinal&&S.indexOf(E)===0&&x.push(d+S.replace(E,this.options.pluralSeparator)),h&&x.push(d+k)),m){const j=`${d}${this.options.contextSeparator}${n.context}`;x.push(j),p&&(x.push(j+S),n.ordinal&&S.indexOf(E)===0&&x.push(j+S.replace(E,this.options.pluralSeparator)),h&&x.push(j+k))}}let b;for(;b=x.pop();)this.isValidLookup(r)||(s=b,r=this.getResource(y,w,b,n))}))})}),{res:r,usedKey:o,exactUsedKey:s,usedLng:i,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const s of n)delete o[s]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const cg=e=>e.charAt(0).toUpperCase()+e.slice(1);class iS{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ho.create("languageUtils")}getScriptPartFromCode(t){if(t=hp(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=hp(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(o=>o.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=cg(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=cg(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=cg(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(s=>{if(s===o)return s;if(!(s.indexOf("-")<0&&o.indexOf("-")<0)&&(s.indexOf("-")>0&&o.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===o||s.indexOf(o)===0&&o.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],s=i=>{i&&(this.isSupportedCode(i)?o.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):typeof t=="string"&&s(this.formatLanguageCode(t)),r.forEach(i=>{o.indexOf(i)<0&&s(this.formatLanguageCode(i))}),o}}let t6=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],n6={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const r6=["v1","v2","v3"],o6=["v4"],aS={zero:0,one:1,two:2,few:3,many:4,other:5},s6=()=>{const e={};return t6.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:n6[t.fc]}})}),e};class i6{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=ho.create("pluralResolver"),(!this.options.compatibilityJSON||o6.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=s6(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const r=hp(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:o});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];const i=new Intl.PluralRules(r,{type:o});return this.pluralRulesCache[s]=i,i}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((o,s)=>aS[o]-aS[s]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):r.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let o=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const s=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?s():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!r6.includes(this.options.compatibilityJSON)}}const lS=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=YI(e,t,n);return!s&&o&&typeof n=="string"&&(s=ev(e,n,r),s===void 0&&(s=ev(t,n,r))),s},ug=e=>e.replace(/\$/g,"$$$$");class a6{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ho.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:s,prefixEscaped:i,suffix:a,suffixEscaped:l,formatSeparator:c,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:p,nestingPrefixEscaped:h,nestingSuffix:m,nestingSuffixEscaped:g,nestingOptionsSeparator:w,maxReplaces:y,alwaysFormat:x}=t.interpolation;this.escape=n!==void 0?n:QI,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=s?La(s):i||"{{",this.suffix=a?La(a):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=p?La(p):h||La("$t("),this.nestingSuffix=m?La(m):g||La(")"),this.nestingOptionsSeparator=w||",",this.maxReplaces=y||1e3,this.alwaysFormat=x!==void 0?x:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,o){let s,i,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=h=>{if(h.indexOf(this.formatSeparator)<0){const y=lS(n,l,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,r,{...o,...n,interpolationkey:h}):y}const m=h.split(this.formatSeparator),g=m.shift().trim(),w=m.join(this.formatSeparator).trim();return this.format(lS(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),w,r,{...o,...n,interpolationkey:g})};this.resetRegExp();const d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,f=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>ug(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?ug(this.escape(h)):ug(h)}].forEach(h=>{for(a=0;s=h.regex.exec(t);){const m=s[1].trim();if(i=c(m),i===void 0)if(typeof d=="function"){const w=d(t,s,o);i=typeof w=="string"?w:""}else if(o&&Object.prototype.hasOwnProperty.call(o,m))i="";else if(f){i=s[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${t}`),i="";else typeof i!="string"&&!this.useRawValueToEscape&&(i=eS(i));const g=h.safeValue(i);if(t=t.replace(s[0],g),f?(h.regex.lastIndex+=i.length,h.regex.lastIndex-=s[0].length):h.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,i;const a=(l,c)=>{const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const f=l.split(new RegExp(`${d}[ ]*{`));let p=`{${f[1]}`;l=f[0],p=this.interpolate(p,i);const h=p.match(/'/g),m=p.match(/"/g);(h&&h.length%2===0&&!m||m.length%2!==0)&&(p=p.replace(/'/g,'"'));try{i=JSON.parse(p),c&&(i={...c,...i})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${d}${p}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,l};for(;o=this.nestingRegexp.exec(t);){let l=[];i={...r},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let c=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const d=o[1].split(this.formatSeparator).map(f=>f.trim());o[1]=d.shift(),l=d,c=!0}if(s=n(a.call(this,o[1].trim(),i),i),s&&o[0]===t&&typeof s!="string")return s;typeof s!="string"&&(s=eS(s)),s||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),s=""),c&&(s=l.reduce((d,f)=>this.format(d,f,r.lng,{...r,interpolationkey:o[1].trim()}),s.trim())),t=t.replace(o[0],s),this.regexp.lastIndex=0}return t}}const l6=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(i=>{if(i){const[a,...l]=i.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),d=a.trim();n[d]||(n[d]=c),c==="false"&&(n[d]=!1),c==="true"&&(n[d]=!0),isNaN(c)||(n[d]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},Da=e=>{const t={};return(n,r,o)=>{let s=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(s={...s,[o.interpolationkey]:void 0});const i=r+JSON.stringify(s);let a=t[i];return a||(a=e(hp(r),o),t[i]=a),a(n)}};class c6{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ho.create("formatter"),this.options=t,this.formats={number:Da((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return s=>o.format(s)}),currency:Da((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>o.format(s)}),datetime:Da((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return s=>o.format(s)}),relativetime:Da((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return s=>o.format(s,r.range||"day")}),list:Da((n,r)=>{const o=new Intl.ListFormat(n,{...r});return s=>o.format(s)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Da(n)}format(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(a=>a.indexOf(")")>-1)){const a=s.findIndex(l=>l.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,a)].join(this.formatSeparator)}return s.reduce((a,l)=>{const{formatName:c,formatOptions:d}=l6(l);if(this.formats[c]){let f=a;try{const p=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},h=p.locale||p.lng||o.locale||o.lng||r;f=this.formats[c](a,h,{...d,...o,...p})}catch(p){this.logger.warn(p)}return f}else this.logger.warn(`there was no format function for ${c}`);return a},t)}}const u6=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class d6 extends Th{constructor(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=ho.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,o.backend,o)}queueLoad(t,n,r,o){const s={},i={},a={},l={};return t.forEach(c=>{let d=!0;n.forEach(f=>{const p=`${c}|${f}`;!r.reload&&this.store.hasResourceBundle(c,f)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?i[p]===void 0&&(i[p]=!0):(this.state[p]=1,d=!1,i[p]===void 0&&(i[p]=!0),s[p]===void 0&&(s[p]=!0),l[f]===void 0&&(l[f]=!0)))}),d||(a[c]=!0)}),(Object.keys(s).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(s),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const o=t.split("|"),s=o[0],i=o[1];n&&this.emit("failedLoading",s,i,n),!n&&r&&this.store.addResourceBundle(s,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const a={};this.queue.forEach(l=>{qI(l.loaded,[s],i),u6(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{a[c]||(a[c]={});const d=l.loaded[c];d.length&&d.forEach(f=>{a[c][f]===void 0&&(a[c][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:s,callback:i});return}this.readingCalls++;const a=(c,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(c&&d&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,s*2,i)},s);return}i(c,d)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(t,n);c&&typeof c.then=="function"?c.then(d=>a(null,d)).catch(a):a(null,c)}catch(c){a(c)}return}return l(t,n,a)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const s=this.queueLoad(t,n,r,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),o=r[0],s=r[1];this.read(o,s,"read",void 0,void 0,(i,a)=>{i&&this.logger.warn(`${n}loading namespace ${s} for language ${o} failed`,i),!i&&a&&this.logger.log(`${n}loaded namespace ${s} for language ${o}`,a),this.loaded(t,i,a)})}saveMissing(t,n,r,o,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...i,isUpdate:s},c=this.backend.create.bind(this.backend);if(c.length<6)try{let d;c.length===5?d=c(t,n,r,o,l):d=c(t,n,r,o),d&&typeof d.then=="function"?d.then(f=>a(null,f)).catch(a):a(null,d)}catch(d){a(d)}else c(t,n,r,o,a,l)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}const cS=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),uS=e=>(typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),rf=()=>{},f6=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Tu extends Th{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=uS(t),this.services={},this.logger=ho,this.modules={external:[]},f6(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=cS();this.options={...o,...this.options,...uS(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const s=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?ho.init(s(this.modules.logger),this.options):ho.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=c6);const f=new iS(this.options);this.store=new oS(this.options.resources,this.options);const p=this.services;p.logger=ho,p.resourceStore=this.store,p.languageUtils=f,p.pluralResolver=new i6(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(p.formatter=s(d),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new a6(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new d6(s(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(h){for(var m=arguments.length,g=new Array(m>1?m-1:0),w=1;w<m;w++)g[w-1]=arguments[w];t.emit(h,...g)}),this.modules.languageDetector&&(p.languageDetector=s(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=s(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new mp(this.services,this.options),this.translator.on("*",function(h){for(var m=arguments.length,g=new Array(m>1?m-1:0),w=1;w<m;w++)g[w-1]=arguments[w];t.emit(h,...g)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,r||(r=rf),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const l=Pc(),c=()=>{const d=(f,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(p),r(f,p)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:rf;const o=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],i=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(c=>{c!=="cimode"&&s.indexOf(c)<0&&s.push(c)})};o?i(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>i(l)),this.options.preload&&this.options.preload.forEach(a=>i(a)),this.services.backendConnector.load(s,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const o=Pc();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=rf),this.services.backendConnector.reload(t,n,s=>{o.resolve(),r(s)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&qR.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const o=Pc();this.emit("languageChanging",t);const s=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},i=(l,c)=>{c?(s(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,o.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},a=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const c=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||s(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,d=>{i(d,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),o}getFixedT(t,n,r){var o=this;const s=function(i,a){let l;if(typeof a!="object"){for(var c=arguments.length,d=new Array(c>2?c-2:0),f=2;f<c;f++)d[f-2]=arguments[f];l=o.options.overloadTranslationOptionHandler([i,a].concat(d))}else l={...a};l.lng=l.lng||s.lng,l.lngs=l.lngs||s.lngs,l.ns=l.ns||s.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||s.keyPrefix);const p=o.options.keySeparator||".";let h;return l.keyPrefix&&Array.isArray(i)?h=i.map(m=>`${l.keyPrefix}${p}${m}`):h=l.keyPrefix?`${l.keyPrefix}${p}${i}`:i,o.t(h,l)};return typeof t=="string"?s.lng=t:s.lngs=t,s.ns=n,s.keyPrefix=r,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(a,l)=>{const c=this.services.backendConnector.state[`${a}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const a=n.precheck(this,i);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!o||i(s,t)))}loadNamespaces(t,n){const r=Pc();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Pc();typeof t=="string"&&(t=[t]);const o=this.options.preload||[],s=t.filter(i=>o.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return s.length?(this.options.preload=o.concat(s),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new iS(cS());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Tu(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:rf;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},s=new Tu(o);return(t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(a=>{s[a]=this[a]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r&&(s.store=new oS(this.store.data,o),s.services.resourceStore=s.store),s.translator=new mp(s.services,o),s.translator.on("*",function(a){for(var l=arguments.length,c=new Array(l>1?l-1:0),d=1;d<l;d++)c[d-1]=arguments[d];s.emit(a,...c)}),s.init(o,n),s.translator.options=o,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Gt=Tu.createInstance();Gt.createInstance=Tu.createInstance;Gt.createInstance;Gt.dir;Gt.init;Gt.loadResources;Gt.reloadResources;Gt.use;Gt.changeLanguage;Gt.getFixedT;const YR=Gt.t;Gt.exists;Gt.setDefaultNamespace;Gt.hasLoadedNamespace;Gt.loadNamespaces;Gt.loadLanguages;var p6={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};const h6=Js(p6);var m6=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function dS(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(h6[n[1]]||e.charAt(e.length-2)==="/")&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("-->");return{type:"comment",comment:r!==-1?e.slice(4,r):""}}for(var o=new RegExp(m6),s=null;(s=o.exec(e))!==null;)if(s[0].trim())if(s[1]){var i=s[1].trim(),a=[i,""];i.indexOf("=")>-1&&(a=i.split("=")),t.attrs[a[0]]=a[1],o.lastIndex--}else s[2]&&(t.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1));return t}var g6=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,y6=/^\s*$/,v6=Object.create(null);function GR(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(n){var r=[];for(var o in n)r.push(o+'="'+n[o]+'"');return r.length?" "+r.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(GR,"")+"</"+t.name+">";case"comment":return e+"<!--"+t.comment+"-->"}}var x6={parse:function(e,t){t||(t={}),t.components||(t.components=v6);var n,r=[],o=[],s=-1,i=!1;if(e.indexOf("<")!==0){var a=e.indexOf("<");r.push({type:"text",content:a===-1?e:e.substring(0,a)})}return e.replace(g6,function(l,c){if(i){if(l!=="</"+n.name+">")return;i=!1}var d,f=l.charAt(1)!=="/",p=l.startsWith("<!--"),h=c+l.length,m=e.charAt(h);if(p){var g=dS(l);return s<0?(r.push(g),r):((d=o[s]).children.push(g),r)}if(f&&(s++,(n=dS(l)).type==="tag"&&t.components[n.name]&&(n.type="component",i=!0),n.voidElement||i||!m||m==="<"||n.children.push({type:"text",content:e.slice(h,e.indexOf("<",h))}),s===0&&r.push(n),(d=o[s-1])&&d.children.push(n),o[s]=n),(!f||n.voidElement)&&(s>-1&&(n.voidElement||n.name===l.slice(2,-1))&&(s--,n=s===-1?r:o[s]),!i&&m!=="<"&&m)){d=s===-1?r:o[s].children;var w=e.indexOf("<",h),y=e.slice(h,w===-1?void 0:w);y6.test(y)&&(y=" "),(w>-1&&s+d.length>=0||y!==" ")&&d.push({type:"text",content:y})}}),r},stringify:function(e){return e.reduce(function(t,n){return t+GR("",n)},"")}};function Rf(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];gr(t[0])&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const fS={};function gp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];gr(t[0])&&fS[t[0]]||(gr(t[0])&&(fS[t[0]]=new Date),Rf(...t))}const QR=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},pS=(e,t,n)=>{e.loadNamespaces(t,QR(e,n))},hS=(e,t,n,r)=>{gr(n)&&(n=[n]),n.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,QR(e,r))},b6=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],o=t.options?t.options.fallbackLng:!1,s=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(a,l)=>{const c=t.services.backendConnector.state[`${a}|${l}`];return c===-1||c===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!i(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||i(r,e)&&(!o||i(s,e)))},w6=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(gp("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(o,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!s(o.isLanguageChangingTo,e))return!1}}):b6(e,t,n)},gr=e=>typeof e=="string",Ja=e=>typeof e=="object"&&e!==null,S6=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,C6={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},E6=e=>C6[e],k6=e=>e.replace(S6,E6);let tv={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:k6};const j6=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};tv={...tv,...e}},XR=()=>tv;let JR;const R6=e=>{JR=e},Z1=()=>JR,dg=(e,t)=>{if(!e)return!1;const n=e.props?e.props.children:e.children;return t?n.length>0:!!n},fg=e=>{if(!e)return[];const t=e.props?e.props.children:e.children;return e.props&&e.props.i18nIsDynamicList?Za(t):t},P6=e=>Array.isArray(e)&&e.every(v.isValidElement),Za=e=>Array.isArray(e)?e:[e],T6=(e,t)=>{const n={...t};return n.props=Object.assign(e.props,t.props),n},ZR=(e,t)=>{if(!e)return"";let n="";const r=Za(e),o=t.transSupportBasicHtmlNodes&&t.transKeepBasicHtmlNodesFor?t.transKeepBasicHtmlNodesFor:[];return r.forEach((s,i)=>{if(gr(s))n+=`${s}`;else if(v.isValidElement(s)){const{props:a,type:l}=s,c=Object.keys(a).length,d=o.indexOf(l)>-1,f=a.children;if(!f&&d&&!c)n+=`<${l}/>`;else if(!f&&(!d||c)||a.i18nIsDynamicList)n+=`<${i}></${i}>`;else if(d&&c===1&&gr(f))n+=`<${l}>${f}</${l}>`;else{const p=ZR(f,t);n+=`<${i}>${p}</${i}>`}}else if(s===null)Rf("Trans: the passed in value is invalid - seems you passed in a null child.");else if(Ja(s)){const{format:a,...l}=s,c=Object.keys(l);if(c.length===1){const d=a?`${c[0]}, ${a}`:c[0];n+=`{{${d}}}`}else Rf("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",s)}else Rf("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",s)}),n},N6=(e,t,n,r,o,s)=>{if(t==="")return[];const i=r.transKeepBasicHtmlNodesFor||[],a=t&&new RegExp(i.map(w=>`<${w}`).join("|")).test(t);if(!e&&!a&&!s)return[t];const l={},c=w=>{Za(w).forEach(x=>{gr(x)||(dg(x)?c(fg(x)):Ja(x)&&!v.isValidElement(x)&&Object.assign(l,x))})};c(e);const d=x6.parse(`<0>${t}</0>`),f={...l,...o},p=(w,y,x)=>{const b=fg(w),S=m(b,y.children,x);return P6(b)&&S.length===0||w.props&&w.props.i18nIsDynamicList?b:S},h=(w,y,x,b,S)=>{w.dummy?(w.children=y,x.push(v.cloneElement(w,{key:b},S?void 0:y))):x.push(...v.Children.map([w],k=>{const E={...k.props};return delete E.i18nIsDynamicList,v.createElement(k.type,{...E,key:b,ref:k.ref},S?null:y)}))},m=(w,y,x)=>{const b=Za(w);return Za(y).reduce((k,E,j)=>{const C=E.children&&E.children[0]&&E.children[0].content&&n.services.interpolator.interpolate(E.children[0].content,f,n.language);if(E.type==="tag"){let T=b[parseInt(E.name,10)];x.length===1&&!T&&(T=x[0][E.name]),T||(T={});const N=Object.keys(E.attrs).length!==0?T6({props:E.attrs},T):T,_=v.isValidElement(N),I=_&&dg(E,!0)&&!E.voidElement,U=a&&Ja(N)&&N.dummy&&!_,O=Ja(e)&&Object.hasOwnProperty.call(e,E.name);if(gr(N)){const M=n.services.interpolator.interpolate(N,f,n.language);k.push(M)}else if(dg(N)||I){const M=p(N,E,x);h(N,M,k,j)}else if(U){const M=m(b,E.children,x);h(N,M,k,j)}else if(Number.isNaN(parseFloat(E.name)))if(O){const M=p(N,E,x);h(N,M,k,j,E.voidElement)}else if(r.transSupportBasicHtmlNodes&&i.indexOf(E.name)>-1)if(E.voidElement)k.push(v.createElement(E.name,{key:`${E.name}-${j}`}));else{const M=m(b,E.children,x);k.push(v.createElement(E.name,{key:`${E.name}-${j}`},M))}else if(E.voidElement)k.push(`<${E.name} />`);else{const M=m(b,E.children,x);k.push(`<${E.name}>${M}</${E.name}>`)}else if(Ja(N)&&!_){const M=E.children[0]?C:null;M&&k.push(M)}else h(N,C,k,j,E.children.length!==1||!C)}else if(E.type==="text"){const T=r.transWrapTextNodes,N=s?r.unescape(n.services.interpolator.interpolate(E.content,f,n.language)):n.services.interpolator.interpolate(E.content,f,n.language);T?k.push(v.createElement(T,{key:`${E.name}-${j}`},N)):k.push(N)}return k},[])},g=m([{dummy:!0,children:e||[]}],d,Za(e||[]));return fg(g[0])};function L6(e){let{children:t,count:n,parent:r,i18nKey:o,context:s,tOptions:i={},values:a,defaults:l,components:c,ns:d,i18n:f,t:p,shouldUnescape:h,...m}=e;const g=f||Z1();if(!g)return gp("You will need to pass in an i18next instance by using i18nextReactModule"),t;const w=p||g.t.bind(g)||(I=>I),y={...XR(),...g.options&&g.options.react};let x=d||w.ns||g.options&&g.options.defaultNS;x=gr(x)?[x]:x||["translation"];const b=ZR(t,y),S=l||b||y.transEmptyNodeValue||o,{hashTransKey:k}=y,E=o||(k?k(b||S):b||S);g.options&&g.options.interpolation&&g.options.interpolation.defaultVariables&&(a=a&&Object.keys(a).length>0?{...a,...g.options.interpolation.defaultVariables}:{...g.options.interpolation.defaultVariables});const j=a||n!==void 0||!t?i.interpolation:{interpolation:{...i.interpolation,prefix:"#$?",suffix:"?$#"}},C={...i,context:s||i.context,count:n,...a,...j,defaultValue:S,ns:x},T=E?w(E,C):S;c&&Object.keys(c).forEach(I=>{const U=c[I];if(typeof U.type=="function"||!U.props||!U.props.children||T.indexOf(`${I}/>`)<0&&T.indexOf(`${I} />`)<0)return;function O(){return v.createElement(v.Fragment,null,U)}c[I]=v.createElement(O)});const N=N6(c||t,T,g,y,C,h),_=r!==void 0?r:y.defaultTransParent;return _?v.createElement(_,m,N):N}const D6={type:"3rdParty",init(e){j6(e.options.react),R6(e)}},eP=v.createContext();class M6{constructor(){ht(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}}function ic(e){let{children:t,count:n,parent:r,i18nKey:o,context:s,tOptions:i={},values:a,defaults:l,components:c,ns:d,i18n:f,t:p,shouldUnescape:h,...m}=e;const{i18n:g,defaultNS:w}=v.useContext(eP)||{},y=f||g||Z1(),x=p||y&&y.t.bind(y);return L6({children:t,count:n,parent:r,i18nKey:o,context:s,tOptions:i,values:a,defaults:l,components:c,ns:d||x&&x.ns||w||y&&y.options&&y.options.defaultNS,i18n:y,t:p,shouldUnescape:h,...m})}const _6=(e,t)=>{const n=v.useRef();return v.useEffect(()=>{n.current=e},[e,t]),n.current},tP=(e,t,n,r)=>e.getFixedT(t,n,r),A6=(e,t,n,r)=>v.useCallback(tP(e,t,n,r),[e,t,n,r]),X=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:o}=v.useContext(eP)||{},s=n||r||Z1();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new M6),!s){gp("You will need to pass in an i18next instance by using initReactI18next");const S=(E,j)=>gr(j)?j:Ja(j)&&gr(j.defaultValue)?j.defaultValue:Array.isArray(E)?E[E.length-1]:E,k=[S,{},!1];return k.t=S,k.i18n={},k.ready=!1,k}s.options.react&&s.options.react.wait!==void 0&&gp("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i={...XR(),...s.options.react,...t},{useSuspense:a,keyPrefix:l}=i;let c=o||s.options&&s.options.defaultNS;c=gr(c)?[c]:c||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(c);const d=(s.isInitialized||s.initializedStoreOnce)&&c.every(S=>w6(S,s,i)),f=A6(s,t.lng||null,i.nsMode==="fallback"?c:c[0],l),p=()=>f,h=()=>tP(s,t.lng||null,i.nsMode==="fallback"?c:c[0],l),[m,g]=v.useState(p);let w=c.join();t.lng&&(w=`${t.lng}${w}`);const y=_6(w),x=v.useRef(!0);v.useEffect(()=>{const{bindI18n:S,bindI18nStore:k}=i;x.current=!0,!d&&!a&&(t.lng?hS(s,t.lng,c,()=>{x.current&&g(h)}):pS(s,c,()=>{x.current&&g(h)})),d&&y&&y!==w&&x.current&&g(h);const E=()=>{x.current&&g(h)};return S&&s&&s.on(S,E),k&&s&&s.store.on(k,E),()=>{x.current=!1,S&&s&&S.split(" ").forEach(j=>s.off(j,E)),k&&s&&k.split(" ").forEach(j=>s.store.off(j,E))}},[s,w]),v.useEffect(()=>{x.current&&d&&g(p)},[s,l,d]);const b=[m,s,d];if(b.t=m,b.i18n=s,b.ready=d,d||!d&&!a)return b;throw new Promise(S=>{t.lng?hS(s,t.lng,c,()=>S()):pS(s,c,()=>S())})};/**
92
+ * @remix-run/router v1.19.2
93
+ *
94
+ * Copyright (c) Remix Software Inc.
95
+ *
96
+ * This source code is licensed under the MIT license found in the
97
+ * LICENSE.md file in the root directory of this source tree.
98
+ *
99
+ * @license MIT
100
+ */function jt(){return jt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jt.apply(this,arguments)}var It;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(It||(It={}));const mS="popstate";function O6(e){e===void 0&&(e={});function t(r,o){let{pathname:s,search:i,hash:a}=r.location;return Nu("",{pathname:s,search:i,hash:a},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Ji(o)}return F6(t,n,null,e)}function $e(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Bl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function $6(){return Math.random().toString(36).substr(2,8)}function gS(e,t){return{usr:e.state,key:e.key,idx:t}}function Nu(e,t,n,r){return n===void 0&&(n=null),jt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ci(t):t,{state:n,key:t&&t.key||r||$6()})}function Ji(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ci(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function F6(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,a=It.Pop,l=null,c=d();c==null&&(c=0,i.replaceState(jt({},i.state,{idx:c}),""));function d(){return(i.state||{idx:null}).idx}function f(){a=It.Pop;let w=d(),y=w==null?null:w-c;c=w,l&&l({action:a,location:g.location,delta:y})}function p(w,y){a=It.Push;let x=Nu(g.location,w,y);c=d()+1;let b=gS(x,c),S=g.createHref(x);try{i.pushState(b,"",S)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(S)}s&&l&&l({action:a,location:g.location,delta:1})}function h(w,y){a=It.Replace;let x=Nu(g.location,w,y);c=d();let b=gS(x,c),S=g.createHref(x);i.replaceState(b,"",S),s&&l&&l({action:a,location:g.location,delta:0})}function m(w){let y=o.location.origin!=="null"?o.location.origin:o.location.href,x=typeof w=="string"?w:Ji(w);return x=x.replace(/ $/,"%20"),$e(y,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,y)}let g={get action(){return a},get location(){return e(o,i)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(mS,f),l=w,()=>{o.removeEventListener(mS,f),l=null}},createHref(w){return t(o,w)},createURL:m,encodeLocation(w){let y=m(w);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:h,go(w){return i.go(w)}};return g}var rt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(rt||(rt={}));const I6=new Set(["lazy","caseSensitive","path","id","index","children"]);function z6(e){return e.index===!0}function Lu(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,s)=>{let i=[...n,String(s)],a=typeof o.id=="string"?o.id:i.join("-");if($e(o.index!==!0||!o.children,"Cannot specify children on an index route"),$e(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),z6(o)){let l=jt({},o,t(o),{id:a});return r[a]=l,l}else{let l=jt({},o,t(o),{id:a,children:void 0});return r[a]=l,o.children&&(l.children=Lu(o.children,t,i,r)),l}})}function ji(e,t,n){return n===void 0&&(n="/"),Pf(e,t,n,!1)}function Pf(e,t,n,r){let o=typeof t=="string"?ci(t):t,s=Ko(o.pathname||"/",n);if(s==null)return null;let i=nP(e);B6(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let c=Z6(s);a=X6(i[l],c,r)}return a}function V6(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function nP(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(s,i,a)=>{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};l.relativePath.startsWith("/")&&($e(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=$o([r,l.relativePath]),d=n.concat(l);s.children&&s.children.length>0&&($e(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),nP(s.children,t,d,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:G6(c,s.index),routesMeta:d})};return e.forEach((s,i)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))o(s,i);else for(let l of rP(s.path))o(s,i,l)}),t}function rP(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=rP(r.join("/")),a=[];return a.push(...i.map(l=>l===""?s:[s,l].join("/"))),o&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function B6(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Q6(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const U6=/^:[\w-]+$/,H6=3,W6=2,K6=1,q6=10,Y6=-2,yS=e=>e==="*";function G6(e,t){let n=e.split("/"),r=n.length;return n.some(yS)&&(r+=Y6),t&&(r+=W6),n.filter(o=>!yS(o)).reduce((o,s)=>o+(U6.test(s)?H6:s===""?K6:q6),r)}function Q6(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function X6(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},s="/",i=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,d=s==="/"?t:t.slice(s.length)||"/",f=yp({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),p=l.route;if(!f&&c&&n&&!r[r.length-1].route.index&&(f=yp({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!f)return null;Object.assign(o,f.params),i.push({params:o,pathname:$o([s,f.pathname]),pathnameBase:n7($o([s,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(s=$o([s,f.pathnameBase]))}return i}function yp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=J6(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],i=s.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((c,d,f)=>{let{paramName:p,isOptional:h}=d;if(p==="*"){let g=a[f]||"";i=s.slice(0,s.length-g.length).replace(/(.)\/+$/,"$1")}const m=a[f];return h&&!m?c[p]=void 0:c[p]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:i,pattern:e}}function J6(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Bl(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 r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Z6(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Bl(!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 Ko(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function e7(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ci(e):e;return{pathname:n?n.startsWith("/")?n:t7(n,t):t,search:r7(r),hash:o7(o)}}function t7(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function pg(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function oP(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Nh(e,t){let n=oP(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Lh(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ci(e):(o=jt({},e),$e(!o.pathname||!o.pathname.includes("?"),pg("?","pathname","search",o)),$e(!o.pathname||!o.pathname.includes("#"),pg("#","pathname","hash",o)),$e(!o.search||!o.search.includes("#"),pg("#","search","hash",o)));let s=e===""||o.pathname==="",i=s?"/":o.pathname,a;if(i==null)a=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}a=f>=0?t[f]:"/"}let l=e7(o,a),c=i&&i!=="/"&&i.endsWith("/"),d=(s||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const $o=e=>e.join("/").replace(/\/\/+/g,"/"),n7=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),r7=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,o7=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class vp{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Dh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const sP=["post","put","patch","delete"],s7=new Set(sP),i7=["get",...sP],a7=new Set(i7),l7=new Set([301,302,303,307,308]),c7=new Set([307,308]),hg={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},u7={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Tc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ex=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,d7=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),iP="remix-router-transitions";function f7(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;$e(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let F=e.detectErrorBoundary;o=V=>({hasErrorBoundary:F(V)})}else o=d7;let s={},i=Lu(e.routes,o,void 0,s),a,l=e.basename||"/",c=e.unstable_dataStrategy||v7,d=e.unstable_patchRoutesOnNavigation,f=jt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,h=new Set,m=1e3,g=new Set,w=null,y=null,x=null,b=e.hydrationData!=null,S=ji(i,e.history.location,l),k=null;if(S==null&&!d){let F=wn(404,{pathname:e.history.location.pathname}),{matches:V,route:W}=jS(i);S=V,k={[W.id]:F}}S&&!e.hydrationData&&ha(S,i,e.history.location.pathname).active&&(S=null);let E;if(S)if(S.some(F=>F.route.lazy))E=!1;else if(!S.some(F=>F.route.loader))E=!0;else if(f.v7_partialHydration){let F=e.hydrationData?e.hydrationData.loaderData:null,V=e.hydrationData?e.hydrationData.errors:null,W=J=>J.route.loader?typeof J.route.loader=="function"&&J.route.loader.hydrate===!0?!1:F&&F[J.route.id]!==void 0||V&&V[J.route.id]!==void 0:!0;if(V){let J=S.findIndex(ie=>V[ie.route.id]!==void 0);E=S.slice(0,J+1).every(W)}else E=S.every(W)}else E=e.hydrationData!=null;else if(E=!1,S=[],f.v7_partialHydration){let F=ha(null,i,e.history.location.pathname);F.active&&F.matches&&(S=F.matches)}let j,C={historyAction:e.history.action,location:e.history.location,matches:S,initialized:E,navigation:hg,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||k,fetchers:new Map,blockers:new Map},T=It.Pop,N=!1,_,I=!1,U=new Map,O=null,M=!1,P=!1,L=[],R=new Set,D=new Map,$=0,A=-1,B=new Map,G=new Set,ne=new Map,Z=new Map,oe=new Set,ae=new Map,ue=new Map,be=new Map,fe;function _e(){if(p=e.history.listen(F=>{let{action:V,location:W,delta:J}=F;if(fe){fe(),fe=void 0;return}Bl(ue.size===0||J!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ie=pa({currentLocation:C.location,nextLocation:W,historyAction:V});if(ie&&J!=null){let Ce=new Promise(Re=>{fe=Re});e.history.go(J*-1),fs(ie,{state:"blocked",location:W,proceed(){fs(ie,{state:"proceeding",proceed:void 0,reset:void 0,location:W}),Ce.then(()=>e.history.go(J))},reset(){let Re=new Map(C.blockers);Re.set(ie,Tc),le({blockers:Re})}});return}return se(V,W)}),n){M7(t,U);let F=()=>_7(t,U);t.addEventListener("pagehide",F),O=()=>t.removeEventListener("pagehide",F)}return C.initialized||se(It.Pop,C.location,{initialHydration:!0}),j}function he(){p&&p(),O&&O(),h.clear(),_&&_.abort(),C.fetchers.forEach((F,V)=>ds(V)),C.blockers.forEach((F,V)=>fa(V))}function Se(F){return h.add(F),()=>h.delete(F)}function le(F,V){V===void 0&&(V={}),C=jt({},C,F);let W=[],J=[];f.v7_fetcherPersist&&C.fetchers.forEach((ie,Ce)=>{ie.state==="idle"&&(oe.has(Ce)?J.push(Ce):W.push(Ce))}),[...h].forEach(ie=>ie(C,{deletedFetchers:J,unstable_viewTransitionOpts:V.viewTransitionOpts,unstable_flushSync:V.flushSync===!0})),f.v7_fetcherPersist&&(W.forEach(ie=>C.fetchers.delete(ie)),J.forEach(ie=>ds(ie)))}function Te(F,V,W){var J,ie;let{flushSync:Ce}=W===void 0?{}:W,Re=C.actionData!=null&&C.navigation.formMethod!=null&&Or(C.navigation.formMethod)&&C.navigation.state==="loading"&&((J=F.state)==null?void 0:J._isRedirect)!==!0,ce;V.actionData?Object.keys(V.actionData).length>0?ce=V.actionData:ce=null:Re?ce=C.actionData:ce=null;let xe=V.loaderData?ES(C.loaderData,V.loaderData,V.matches||[],V.errors):C.loaderData,me=C.blockers;me.size>0&&(me=new Map(me),me.forEach((Qe,it)=>me.set(it,Tc)));let ye=N===!0||C.navigation.formMethod!=null&&Or(C.navigation.formMethod)&&((ie=F.state)==null?void 0:ie._isRedirect)!==!0;a&&(i=a,a=void 0),M||T===It.Pop||(T===It.Push?e.history.push(F,F.state):T===It.Replace&&e.history.replace(F,F.state));let ze;if(T===It.Pop){let Qe=U.get(C.location.pathname);Qe&&Qe.has(F.pathname)?ze={currentLocation:C.location,nextLocation:F}:U.has(F.pathname)&&(ze={currentLocation:F,nextLocation:C.location})}else if(I){let Qe=U.get(C.location.pathname);Qe?Qe.add(F.pathname):(Qe=new Set([F.pathname]),U.set(C.location.pathname,Qe)),ze={currentLocation:C.location,nextLocation:F}}le(jt({},V,{actionData:ce,loaderData:xe,historyAction:T,location:F,initialized:!0,navigation:hg,revalidation:"idle",restoreScrollPosition:kd(F,V.matches||C.matches),preventScrollReset:ye,blockers:me}),{viewTransitionOpts:ze,flushSync:Ce===!0}),T=It.Pop,N=!1,I=!1,M=!1,P=!1,L=[]}async function et(F,V){if(typeof F=="number"){e.history.go(F);return}let W=nv(C.location,C.matches,l,f.v7_prependBasename,F,f.v7_relativeSplatPath,V==null?void 0:V.fromRouteId,V==null?void 0:V.relative),{path:J,submission:ie,error:Ce}=vS(f.v7_normalizeFormMethod,!1,W,V),Re=C.location,ce=Nu(C.location,J,V&&V.state);ce=jt({},ce,e.history.encodeLocation(ce));let xe=V&&V.replace!=null?V.replace:void 0,me=It.Push;xe===!0?me=It.Replace:xe===!1||ie!=null&&Or(ie.formMethod)&&ie.formAction===C.location.pathname+C.location.search&&(me=It.Replace);let ye=V&&"preventScrollReset"in V?V.preventScrollReset===!0:void 0,ze=(V&&V.unstable_flushSync)===!0,Qe=pa({currentLocation:Re,nextLocation:ce,historyAction:me});if(Qe){fs(Qe,{state:"blocked",location:ce,proceed(){fs(Qe,{state:"proceeding",proceed:void 0,reset:void 0,location:ce}),et(F,V)},reset(){let it=new Map(C.blockers);it.set(Qe,Tc),le({blockers:it})}});return}return await se(me,ce,{submission:ie,pendingError:Ce,preventScrollReset:ye,replace:V&&V.replace,enableViewTransition:V&&V.unstable_viewTransition,flushSync:ze})}function te(){if(Ke(),le({revalidation:"loading"}),C.navigation.state!=="submitting"){if(C.navigation.state==="idle"){se(C.historyAction,C.location,{startUninterruptedRevalidation:!0});return}se(T||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:I===!0})}}async function se(F,V,W){_&&_.abort(),_=null,T=F,M=(W&&W.startUninterruptedRevalidation)===!0,um(C.location,C.matches),N=(W&&W.preventScrollReset)===!0,I=(W&&W.enableViewTransition)===!0;let J=a||i,ie=W&&W.overrideNavigation,Ce=ji(J,V,l),Re=(W&&W.flushSync)===!0,ce=ha(Ce,J,V.pathname);if(ce.active&&ce.matches&&(Ce=ce.matches),!Ce){let{error:Ve,notFoundMatches:Ft,route:St}=pi(V.pathname);Te(V,{matches:Ft,loaderData:{},errors:{[St.id]:Ve}},{flushSync:Re});return}if(C.initialized&&!P&&E7(C.location,V)&&!(W&&W.submission&&Or(W.submission.formMethod))){Te(V,{matches:Ce},{flushSync:Re});return}_=new AbortController;let xe=Ma(e.history,V,_.signal,W&&W.submission),me;if(W&&W.pendingError)me=[el(Ce).route.id,{type:rt.error,error:W.pendingError}];else if(W&&W.submission&&Or(W.submission.formMethod)){let Ve=await we(xe,V,W.submission,Ce,ce.active,{replace:W.replace,flushSync:Re});if(Ve.shortCircuited)return;if(Ve.pendingActionResult){let[Ft,St]=Ve.pendingActionResult;if(Gn(St)&&Dh(St.error)&&St.error.status===404){_=null,Te(V,{matches:Ve.matches,loaderData:{},errors:{[Ft]:St.error}});return}}Ce=Ve.matches||Ce,me=Ve.pendingActionResult,ie=mg(V,W.submission),Re=!1,ce.active=!1,xe=Ma(e.history,xe.url,xe.signal)}let{shortCircuited:ye,matches:ze,loaderData:Qe,errors:it}=await ke(xe,V,Ce,ce.active,ie,W&&W.submission,W&&W.fetcherSubmission,W&&W.replace,W&&W.initialHydration===!0,Re,me);ye||(_=null,Te(V,jt({matches:ze||Ce},kS(me),{loaderData:Qe,errors:it})))}async function we(F,V,W,J,ie,Ce){Ce===void 0&&(Ce={}),Ke();let Re=L7(V,W);if(le({navigation:Re},{flushSync:Ce.flushSync===!0}),ie){let me=await ma(J,V.pathname,F.signal);if(me.type==="aborted")return{shortCircuited:!0};if(me.type==="error"){let{boundaryId:ye,error:ze}=lt(V.pathname,me);return{matches:me.partialMatches,pendingActionResult:[ye,{type:rt.error,error:ze}]}}else if(me.matches)J=me.matches;else{let{notFoundMatches:ye,error:ze,route:Qe}=pi(V.pathname);return{matches:ye,pendingActionResult:[Qe.id,{type:rt.error,error:ze}]}}}let ce,xe=Bc(J,V);if(!xe.route.action&&!xe.route.lazy)ce={type:rt.error,error:wn(405,{method:F.method,pathname:V.pathname,routeId:xe.route.id})};else if(ce=(await at("action",C,F,[xe],J,null))[xe.route.id],F.signal.aborted)return{shortCircuited:!0};if(Di(ce)){let me;return Ce&&Ce.replace!=null?me=Ce.replace:me=wS(ce.response.headers.get("Location"),new URL(F.url),l)===C.location.pathname+C.location.search,await nt(F,ce,!0,{submission:W,replace:me}),{shortCircuited:!0}}if(Os(ce))throw wn(400,{type:"defer-action"});if(Gn(ce)){let me=el(J,xe.route.id);return(Ce&&Ce.replace)!==!0&&(T=It.Push),{matches:J,pendingActionResult:[me.route.id,ce]}}return{matches:J,pendingActionResult:[xe.route.id,ce]}}async function ke(F,V,W,J,ie,Ce,Re,ce,xe,me,ye){let ze=ie||mg(V,Ce),Qe=Ce||Re||PS(ze),it=!M&&(!f.v7_partialHydration||!xe);if(J){if(it){let ft=Ie(ye);le(jt({navigation:ze},ft!==void 0?{actionData:ft}:{}),{flushSync:me})}let Me=await ma(W,V.pathname,F.signal);if(Me.type==="aborted")return{shortCircuited:!0};if(Me.type==="error"){let{boundaryId:ft,error:tn}=lt(V.pathname,Me);return{matches:Me.partialMatches,loaderData:{},errors:{[ft]:tn}}}else if(Me.matches)W=Me.matches;else{let{error:ft,notFoundMatches:tn,route:pt}=pi(V.pathname);return{matches:tn,loaderData:{},errors:{[pt.id]:ft}}}}let Ve=a||i,[Ft,St]=xS(e.history,C,W,Qe,V,f.v7_partialHydration&&xe===!0,f.v7_skipActionErrorRevalidation,P,L,R,oe,ne,G,Ve,l,ye);if(Rr(Me=>!(W&&W.some(ft=>ft.route.id===Me))||Ft&&Ft.some(ft=>ft.route.id===Me)),A=++$,Ft.length===0&&St.length===0){let Me=Tn();return Te(V,jt({matches:W,loaderData:{},errors:ye&&Gn(ye[1])?{[ye[0]]:ye[1].error}:null},kS(ye),Me?{fetchers:new Map(C.fetchers)}:{}),{flushSync:me}),{shortCircuited:!0}}if(it){let Me={};if(!J){Me.navigation=ze;let ft=Ie(ye);ft!==void 0&&(Me.actionData=ft)}St.length>0&&(Me.fetchers=Oe(St)),le(Me,{flushSync:me})}St.forEach(Me=>{D.has(Me.key)&&Wn(Me.key),Me.controller&&D.set(Me.key,Me.controller)});let Pr=()=>St.forEach(Me=>Wn(Me.key));_&&_.signal.addEventListener("abort",Pr);let{loaderResults:Tr,fetcherResults:ps}=await qe(C,W,Ft,St,F);if(F.signal.aborted)return{shortCircuited:!0};_&&_.signal.removeEventListener("abort",Pr),St.forEach(Me=>D.delete(Me.key));let to=of(Tr);if(to)return await nt(F,to.result,!0,{replace:ce}),{shortCircuited:!0};if(to=of(ps),to)return G.add(to.key),await nt(F,to.result,!0,{replace:ce}),{shortCircuited:!0};let{loaderData:hi,errors:Nr}=CS(C,W,Ft,Tr,ye,St,ps,ae);ae.forEach((Me,ft)=>{Me.subscribe(tn=>{(tn||Me.done)&&ae.delete(ft)})}),f.v7_partialHydration&&xe&&C.errors&&Object.entries(C.errors).filter(Me=>{let[ft]=Me;return!Ft.some(tn=>tn.route.id===ft)}).forEach(Me=>{let[ft,tn]=Me;Nr=Object.assign(Nr||{},{[ft]:tn})});let ga=Tn(),ya=da(A),va=ga||ya||St.length>0;return jt({matches:W,loaderData:hi,errors:Nr},va?{fetchers:new Map(C.fetchers)}:{})}function Ie(F){if(F&&!Gn(F[1]))return{[F[0]]:F[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function Oe(F){return F.forEach(V=>{let W=C.fetchers.get(V.key),J=Nc(void 0,W?W.data:void 0);C.fetchers.set(V.key,J)}),new Map(C.fetchers)}function ee(F,V,W,J){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");D.has(F)&&Wn(F);let ie=(J&&J.unstable_flushSync)===!0,Ce=a||i,Re=nv(C.location,C.matches,l,f.v7_prependBasename,W,f.v7_relativeSplatPath,V,J==null?void 0:J.relative),ce=ji(Ce,Re,l),xe=ha(ce,Ce,Re);if(xe.active&&xe.matches&&(ce=xe.matches),!ce){kt(F,V,wn(404,{pathname:Re}),{flushSync:ie});return}let{path:me,submission:ye,error:ze}=vS(f.v7_normalizeFormMethod,!0,Re,J);if(ze){kt(F,V,ze,{flushSync:ie});return}let Qe=Bc(ce,me);if(N=(J&&J.preventScrollReset)===!0,ye&&Or(ye.formMethod)){Ee(F,V,me,Qe,ce,xe.active,ie,ye);return}ne.set(F,{routeId:V,path:me}),tt(F,V,me,Qe,ce,xe.active,ie,ye)}async function Ee(F,V,W,J,ie,Ce,Re,ce){Ke(),ne.delete(F);function xe(pt){if(!pt.route.action&&!pt.route.lazy){let vn=wn(405,{method:ce.formMethod,pathname:W,routeId:V});return kt(F,V,vn,{flushSync:Re}),!0}return!1}if(!Ce&&xe(J))return;let me=C.fetchers.get(F);dt(F,D7(ce,me),{flushSync:Re});let ye=new AbortController,ze=Ma(e.history,W,ye.signal,ce);if(Ce){let pt=await ma(ie,W,ze.signal);if(pt.type==="aborted")return;if(pt.type==="error"){let{error:vn}=lt(W,pt);kt(F,V,vn,{flushSync:Re});return}else if(pt.matches){if(ie=pt.matches,J=Bc(ie,W),xe(J))return}else{kt(F,V,wn(404,{pathname:W}),{flushSync:Re});return}}D.set(F,ye);let Qe=$,Ve=(await at("action",C,ze,[J],ie,F))[J.route.id];if(ze.signal.aborted){D.get(F)===ye&&D.delete(F);return}if(f.v7_fetcherPersist&&oe.has(F)){if(Di(Ve)||Gn(Ve)){dt(F,vs(void 0));return}}else{if(Di(Ve))if(D.delete(F),A>Qe){dt(F,vs(void 0));return}else return G.add(F),dt(F,Nc(ce)),nt(ze,Ve,!1,{fetcherSubmission:ce});if(Gn(Ve)){kt(F,V,Ve.error);return}}if(Os(Ve))throw wn(400,{type:"defer-action"});let Ft=C.navigation.location||C.location,St=Ma(e.history,Ft,ye.signal),Pr=a||i,Tr=C.navigation.state!=="idle"?ji(Pr,C.navigation.location,l):C.matches;$e(Tr,"Didn't find any matches after fetcher action");let ps=++$;B.set(F,ps);let to=Nc(ce,Ve.data);C.fetchers.set(F,to);let[hi,Nr]=xS(e.history,C,Tr,ce,Ft,!1,f.v7_skipActionErrorRevalidation,P,L,R,oe,ne,G,Pr,l,[J.route.id,Ve]);Nr.filter(pt=>pt.key!==F).forEach(pt=>{let vn=pt.key,hc=C.fetchers.get(vn),xa=Nc(void 0,hc?hc.data:void 0);C.fetchers.set(vn,xa),D.has(vn)&&Wn(vn),pt.controller&&D.set(vn,pt.controller)}),le({fetchers:new Map(C.fetchers)});let ga=()=>Nr.forEach(pt=>Wn(pt.key));ye.signal.addEventListener("abort",ga);let{loaderResults:ya,fetcherResults:va}=await qe(C,Tr,hi,Nr,St);if(ye.signal.aborted)return;ye.signal.removeEventListener("abort",ga),B.delete(F),D.delete(F),Nr.forEach(pt=>D.delete(pt.key));let Me=of(ya);if(Me)return nt(St,Me.result,!1);if(Me=of(va),Me)return G.add(Me.key),nt(St,Me.result,!1);let{loaderData:ft,errors:tn}=CS(C,Tr,hi,ya,void 0,Nr,va,ae);if(C.fetchers.has(F)){let pt=vs(Ve.data);C.fetchers.set(F,pt)}da(ps),C.navigation.state==="loading"&&ps>A?($e(T,"Expected pending action"),_&&_.abort(),Te(C.navigation.location,{matches:Tr,loaderData:ft,errors:tn,fetchers:new Map(C.fetchers)})):(le({errors:tn,loaderData:ES(C.loaderData,ft,Tr,tn),fetchers:new Map(C.fetchers)}),P=!1)}async function tt(F,V,W,J,ie,Ce,Re,ce){let xe=C.fetchers.get(F);dt(F,Nc(ce,xe?xe.data:void 0),{flushSync:Re});let me=new AbortController,ye=Ma(e.history,W,me.signal);if(Ce){let Ve=await ma(ie,W,ye.signal);if(Ve.type==="aborted")return;if(Ve.type==="error"){let{error:Ft}=lt(W,Ve);kt(F,V,Ft,{flushSync:Re});return}else if(Ve.matches)ie=Ve.matches,J=Bc(ie,W);else{kt(F,V,wn(404,{pathname:W}),{flushSync:Re});return}}D.set(F,me);let ze=$,it=(await at("loader",C,ye,[J],ie,F))[J.route.id];if(Os(it)&&(it=await tx(it,ye.signal,!0)||it),D.get(F)===me&&D.delete(F),!ye.signal.aborted){if(oe.has(F)){dt(F,vs(void 0));return}if(Di(it))if(A>ze){dt(F,vs(void 0));return}else{G.add(F),await nt(ye,it,!1);return}if(Gn(it)){kt(F,V,it.error);return}$e(!Os(it),"Unhandled fetcher deferred data"),dt(F,vs(it.data))}}async function nt(F,V,W,J){let{submission:ie,fetcherSubmission:Ce,replace:Re}=J===void 0?{}:J;V.response.headers.has("X-Remix-Revalidate")&&(P=!0);let ce=V.response.headers.get("Location");$e(ce,"Expected a Location header on the redirect Response"),ce=wS(ce,new URL(F.url),l);let xe=Nu(C.location,ce,{_isRedirect:!0});if(n){let Ve=!1;if(V.response.headers.has("X-Remix-Reload-Document"))Ve=!0;else if(ex.test(ce)){const Ft=e.history.createURL(ce);Ve=Ft.origin!==t.location.origin||Ko(Ft.pathname,l)==null}if(Ve){Re?t.location.replace(ce):t.location.assign(ce);return}}_=null;let me=Re===!0||V.response.headers.has("X-Remix-Replace")?It.Replace:It.Push,{formMethod:ye,formAction:ze,formEncType:Qe}=C.navigation;!ie&&!Ce&&ye&&ze&&Qe&&(ie=PS(C.navigation));let it=ie||Ce;if(c7.has(V.response.status)&&it&&Or(it.formMethod))await se(me,xe,{submission:jt({},it,{formAction:ce}),preventScrollReset:N,enableViewTransition:W?I:void 0});else{let Ve=mg(xe,ie);await se(me,xe,{overrideNavigation:Ve,fetcherSubmission:Ce,preventScrollReset:N,enableViewTransition:W?I:void 0})}}async function at(F,V,W,J,ie,Ce){let Re,ce={};try{Re=await x7(c,F,V,W,J,ie,Ce,s,o)}catch(xe){return J.forEach(me=>{ce[me.route.id]={type:rt.error,error:xe}}),ce}for(let[xe,me]of Object.entries(Re))if(j7(me)){let ye=me.result;ce[xe]={type:rt.redirect,response:S7(ye,W,xe,ie,l,f.v7_relativeSplatPath)}}else ce[xe]=await w7(me);return ce}async function qe(F,V,W,J,ie){let Ce=F.matches,Re=at("loader",F,ie,W,V,null),ce=Promise.all(J.map(async ye=>{if(ye.matches&&ye.match&&ye.controller){let Qe=(await at("loader",F,Ma(e.history,ye.path,ye.controller.signal),[ye.match],ye.matches,ye.key))[ye.match.route.id];return{[ye.key]:Qe}}else return Promise.resolve({[ye.key]:{type:rt.error,error:wn(404,{pathname:ye.path})}})})),xe=await Re,me=(await ce).reduce((ye,ze)=>Object.assign(ye,ze),{});return await Promise.all([T7(V,xe,ie.signal,Ce,F.loaderData),N7(V,me,J)]),{loaderResults:xe,fetcherResults:me}}function Ke(){P=!0,L.push(...Rr()),ne.forEach((F,V)=>{D.has(V)&&(R.add(V),Wn(V))})}function dt(F,V,W){W===void 0&&(W={}),C.fetchers.set(F,V),le({fetchers:new Map(C.fetchers)},{flushSync:(W&&W.flushSync)===!0})}function kt(F,V,W,J){J===void 0&&(J={});let ie=el(C.matches,V);ds(F),le({errors:{[ie.route.id]:W},fetchers:new Map(C.fetchers)},{flushSync:(J&&J.flushSync)===!0})}function jr(F){return f.v7_fetcherPersist&&(Z.set(F,(Z.get(F)||0)+1),oe.has(F)&&oe.delete(F)),C.fetchers.get(F)||u7}function ds(F){let V=C.fetchers.get(F);D.has(F)&&!(V&&V.state==="loading"&&B.has(F))&&Wn(F),ne.delete(F),B.delete(F),G.delete(F),oe.delete(F),R.delete(F),C.fetchers.delete(F)}function eo(F){if(f.v7_fetcherPersist){let V=(Z.get(F)||0)-1;V<=0?(Z.delete(F),oe.add(F)):Z.set(F,V)}else ds(F);le({fetchers:new Map(C.fetchers)})}function Wn(F){let V=D.get(F);$e(V,"Expected fetch controller: "+F),V.abort(),D.delete(F)}function ua(F){for(let V of F){let W=jr(V),J=vs(W.data);C.fetchers.set(V,J)}}function Tn(){let F=[],V=!1;for(let W of G){let J=C.fetchers.get(W);$e(J,"Expected fetcher: "+W),J.state==="loading"&&(G.delete(W),F.push(W),V=!0)}return ua(F),V}function da(F){let V=[];for(let[W,J]of B)if(J<F){let ie=C.fetchers.get(W);$e(ie,"Expected fetcher: "+W),ie.state==="loading"&&(Wn(W),B.delete(W),V.push(W))}return ua(V),V.length>0}function pc(F,V){let W=C.blockers.get(F)||Tc;return ue.get(F)!==V&&ue.set(F,V),W}function fa(F){C.blockers.delete(F),ue.delete(F)}function fs(F,V){let W=C.blockers.get(F)||Tc;$e(W.state==="unblocked"&&V.state==="blocked"||W.state==="blocked"&&V.state==="blocked"||W.state==="blocked"&&V.state==="proceeding"||W.state==="blocked"&&V.state==="unblocked"||W.state==="proceeding"&&V.state==="unblocked","Invalid blocker state transition: "+W.state+" -> "+V.state);let J=new Map(C.blockers);J.set(F,V),le({blockers:J})}function pa(F){let{currentLocation:V,nextLocation:W,historyAction:J}=F;if(ue.size===0)return;ue.size>1&&Bl(!1,"A router only supports one blocker at a time");let ie=Array.from(ue.entries()),[Ce,Re]=ie[ie.length-1],ce=C.blockers.get(Ce);if(!(ce&&ce.state==="proceeding")&&Re({currentLocation:V,nextLocation:W,historyAction:J}))return Ce}function pi(F){let V=wn(404,{pathname:F}),W=a||i,{matches:J,route:ie}=jS(W);return Rr(),{notFoundMatches:J,route:ie,error:V}}function lt(F,V){return{boundaryId:el(V.partialMatches).route.id,error:wn(400,{type:"route-discovery",pathname:F,message:V.error!=null&&"message"in V.error?V.error:String(V.error)})}}function Rr(F){let V=[];return ae.forEach((W,J)=>{(!F||F(J))&&(W.cancel(),V.push(J),ae.delete(J))}),V}function cm(F,V,W){if(w=F,x=V,y=W||null,!b&&C.navigation===hg){b=!0;let J=kd(C.location,C.matches);J!=null&&le({restoreScrollPosition:J})}return()=>{w=null,x=null,y=null}}function Ed(F,V){return y&&y(F,V.map(J=>V6(J,C.loaderData)))||F.key}function um(F,V){if(w&&x){let W=Ed(F,V);w[W]=x()}}function kd(F,V){if(w){let W=Ed(F,V),J=w[W];if(typeof J=="number")return J}return null}function ha(F,V,W){if(d){if(g.has(W))return{active:!1,matches:F};if(F){if(Object.keys(F[0].params).length>0)return{active:!0,matches:Pf(V,W,l,!0)}}else return{active:!0,matches:Pf(V,W,l,!0)||[]}}return{active:!1,matches:null}}async function ma(F,V,W){let J=F;for(;;){let ie=a==null,Ce=a||i;try{await g7(d,V,J,Ce,s,o,be,W)}catch(xe){return{type:"error",error:xe,partialMatches:J}}finally{ie&&(i=[...i])}if(W.aborted)return{type:"aborted"};let Re=ji(Ce,V,l);if(Re)return jd(V,g),{type:"success",matches:Re};let ce=Pf(Ce,V,l,!0);if(!ce||J.length===ce.length&&J.every((xe,me)=>xe.route.id===ce[me].route.id))return jd(V,g),{type:"success",matches:null};J=ce}}function jd(F,V){if(V.size>=m){let W=V.values().next().value;V.delete(W)}V.add(F)}function dm(F){s={},a=Lu(F,o,void 0,s)}function fm(F,V){let W=a==null;lP(F,V,a||i,s,o),W&&(i=[...i],le({}))}return j={get basename(){return l},get future(){return f},get state(){return C},get routes(){return i},get window(){return t},initialize:_e,subscribe:Se,enableScrollRestoration:cm,navigate:et,fetch:ee,revalidate:te,createHref:F=>e.history.createHref(F),encodeLocation:F=>e.history.encodeLocation(F),getFetcher:jr,deleteFetcher:eo,dispose:he,getBlocker:pc,deleteBlocker:fa,patchRoutes:fm,_internalFetchControllers:D,_internalActiveDeferreds:ae,_internalSetRoutes:dm},j}function p7(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function nv(e,t,n,r,o,s,i,a){let l,c;if(i){l=[];for(let f of t)if(l.push(f),f.route.id===i){c=f;break}}else l=t,c=t[t.length-1];let d=Lh(o||".",Nh(l,s),Ko(e.pathname,n)||e.pathname,a==="path");return o==null&&(d.search=e.search,d.hash=e.hash),(o==null||o===""||o===".")&&c&&c.route.index&&!nx(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:$o([n,d.pathname])),Ji(d)}function vS(e,t,n,r){if(!r||!p7(r))return{path:n};if(r.formMethod&&!P7(r.formMethod))return{path:n,error:wn(405,{method:r.formMethod})};let o=()=>({path:n,error:wn(400,{type:"invalid-body"})}),s=r.formMethod||"get",i=e?s.toUpperCase():s.toLowerCase(),a=cP(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Or(i))return o();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,m)=>{let[g,w]=m;return""+h+g+"="+w+`
101
+ `},""):String(r.body);return{path:n,submission:{formMethod:i,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!Or(i))return o();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:i,formAction:a,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return o()}}}$e(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=rv(r.formData),c=r.formData;else if(r.body instanceof FormData)l=rv(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=SS(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=SS(l)}catch{return o()}let d={formMethod:i,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Or(d.formMethod))return{path:n,submission:d};let f=ci(n);return t&&f.search&&nx(f.search)&&l.append("index",""),f.search="?"+l,{path:Ji(f),submission:d}}function h7(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function xS(e,t,n,r,o,s,i,a,l,c,d,f,p,h,m,g){let w=g?Gn(g[1])?g[1].error:g[1].data:void 0,y=e.createURL(t.location),x=e.createURL(o),b=g&&Gn(g[1])?g[0]:void 0,S=b?h7(n,b):n,k=g?g[1].statusCode:void 0,E=i&&k&&k>=400,j=S.filter((T,N)=>{let{route:_}=T;if(_.lazy)return!0;if(_.loader==null)return!1;if(s)return typeof _.loader!="function"||_.loader.hydrate?!0:t.loaderData[_.id]===void 0&&(!t.errors||t.errors[_.id]===void 0);if(m7(t.loaderData,t.matches[N],T)||l.some(O=>O===T.route.id))return!0;let I=t.matches[N],U=T;return bS(T,jt({currentUrl:y,currentParams:I.params,nextUrl:x,nextParams:U.params},r,{actionResult:w,actionStatus:k,defaultShouldRevalidate:E?!1:a||y.pathname+y.search===x.pathname+x.search||y.search!==x.search||aP(I,U)}))}),C=[];return f.forEach((T,N)=>{if(s||!n.some(M=>M.route.id===T.routeId)||d.has(N))return;let _=ji(h,T.path,m);if(!_){C.push({key:N,routeId:T.routeId,path:T.path,matches:null,match:null,controller:null});return}let I=t.fetchers.get(N),U=Bc(_,T.path),O=!1;p.has(N)?O=!1:c.has(N)?(c.delete(N),O=!0):I&&I.state!=="idle"&&I.data===void 0?O=a:O=bS(U,jt({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:x,nextParams:n[n.length-1].params},r,{actionResult:w,actionStatus:k,defaultShouldRevalidate:E?!1:a})),O&&C.push({key:N,routeId:T.routeId,path:T.path,matches:_,match:U,controller:new AbortController})}),[j,C]}function m7(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function aP(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function bS(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function g7(e,t,n,r,o,s,i,a){let l=[t,...n.map(c=>c.route.id)].join("-");try{let c=i.get(l);c||(c=e({path:t,matches:n,patch:(d,f)=>{a.aborted||lP(d,f,r,o,s)}}),i.set(l,c)),c&&k7(c)&&await c}finally{i.delete(l)}}function lP(e,t,n,r,o){if(e){var s;let i=r[e];$e(i,"No route found to patch children into: routeId = "+e);let a=Lu(t,o,[e,"patch",String(((s=i.children)==null?void 0:s.length)||"0")],r);i.children?i.children.push(...a):i.children=a}else{let i=Lu(t,o,["patch",String(n.length||"0")],r);n.push(...i)}}async function y7(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];$e(o,"No route found in manifest");let s={};for(let i in r){let l=o[i]!==void 0&&i!=="hasErrorBoundary";Bl(!l,'Route "'+o.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!l&&!I6.has(i)&&(s[i]=r[i])}Object.assign(o,s),Object.assign(o,jt({},t(o),{lazy:void 0}))}async function v7(e){let{matches:t}=e,n=t.filter(o=>o.shouldLoad);return(await Promise.all(n.map(o=>o.resolve()))).reduce((o,s,i)=>Object.assign(o,{[n[i].route.id]:s}),{})}async function x7(e,t,n,r,o,s,i,a,l,c){let d=s.map(h=>h.route.lazy?y7(h.route,l,a):void 0),f=s.map((h,m)=>{let g=d[m],w=o.some(x=>x.route.id===h.route.id);return jt({},h,{shouldLoad:w,resolve:async x=>(x&&r.method==="GET"&&(h.route.lazy||h.route.loader)&&(w=!0),w?b7(t,r,h,g,x,c):Promise.resolve({type:rt.data,result:void 0}))})}),p=await e({matches:f,request:r,params:s[0].params,fetcherKey:i,context:c});try{await Promise.all(d)}catch{}return p}async function b7(e,t,n,r,o,s){let i,a,l=c=>{let d,f=new Promise((m,g)=>d=g);a=()=>d(),t.signal.addEventListener("abort",a);let p=m=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:s},...m!==void 0?[m]:[]),h=(async()=>{try{return{type:"data",result:await(o?o(g=>p(g)):p())}}catch(m){return{type:"error",result:m}}})();return Promise.race([h,f])};try{let c=n.route[e];if(r)if(c){let d,[f]=await Promise.all([l(c).catch(p=>{d=p}),r]);if(d!==void 0)throw d;i=f}else if(await r,c=n.route[e],c)i=await l(c);else if(e==="action"){let d=new URL(t.url),f=d.pathname+d.search;throw wn(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:rt.data,result:void 0};else if(c)i=await l(c);else{let d=new URL(t.url),f=d.pathname+d.search;throw wn(404,{pathname:f})}$e(i.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:rt.error,result:c}}finally{a&&t.signal.removeEventListener("abort",a)}return i}async function w7(e){let{result:t,type:n}=e;if(uP(t)){let c;try{let d=t.headers.get("Content-Type");d&&/\bapplication\/json\b/.test(d)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(d){return{type:rt.error,error:d}}return n===rt.error?{type:rt.error,error:new vp(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:rt.data,data:c,statusCode:t.status,headers:t.headers}}if(n===rt.error){if(RS(t)){var r;if(t.data instanceof Error){var o;return{type:rt.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new vp(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:rt.error,error:t,statusCode:Dh(t)?t.status:void 0}}if(R7(t)){var s,i;return{type:rt.deferred,deferredData:t,statusCode:(s=t.init)==null?void 0:s.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}if(RS(t)){var a,l;return{type:rt.data,data:t.data,statusCode:(a=t.init)==null?void 0:a.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:rt.data,data:t}}function S7(e,t,n,r,o,s){let i=e.headers.get("Location");if($e(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!ex.test(i)){let a=r.slice(0,r.findIndex(l=>l.route.id===n)+1);i=nv(new URL(t.url),a,o,!0,i,s),e.headers.set("Location",i)}return e}function wS(e,t,n){if(ex.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),s=Ko(o.pathname,n)!=null;if(o.origin===t.origin&&s)return o.pathname+o.search+o.hash}return e}function Ma(e,t,n,r){let o=e.createURL(cP(t)).toString(),s={signal:n};if(r&&Or(r.formMethod)){let{formMethod:i,formEncType:a}=r;s.method=i.toUpperCase(),a==="application/json"?(s.headers=new Headers({"Content-Type":a}),s.body=JSON.stringify(r.json)):a==="text/plain"?s.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?s.body=rv(r.formData):s.body=r.formData}return new Request(o,s)}function rv(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function SS(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function C7(e,t,n,r,o){let s={},i=null,a,l=!1,c={},d=n&&Gn(n[1])?n[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let p=f.route.id,h=t[p];if($e(!Di(h),"Cannot handle redirect results in processLoaderData"),Gn(h)){let m=h.error;d!==void 0&&(m=d,d=void 0),i=i||{};{let g=el(e,p);i[g.route.id]==null&&(i[g.route.id]=m)}s[p]=void 0,l||(l=!0,a=Dh(h.error)?h.error.status:500),h.headers&&(c[p]=h.headers)}else Os(h)?(r.set(p,h.deferredData),s[p]=h.deferredData.data,h.statusCode!=null&&h.statusCode!==200&&!l&&(a=h.statusCode),h.headers&&(c[p]=h.headers)):(s[p]=h.data,h.statusCode&&h.statusCode!==200&&!l&&(a=h.statusCode),h.headers&&(c[p]=h.headers))}),d!==void 0&&n&&(i={[n[0]]:d},s[n[0]]=void 0),{loaderData:s,errors:i,statusCode:a||200,loaderHeaders:c}}function CS(e,t,n,r,o,s,i,a){let{loaderData:l,errors:c}=C7(t,r,o,a);return s.forEach(d=>{let{key:f,match:p,controller:h}=d,m=i[f];if($e(m,"Did not find corresponding fetcher result"),!(h&&h.signal.aborted))if(Gn(m)){let g=el(e.matches,p==null?void 0:p.route.id);c&&c[g.route.id]||(c=jt({},c,{[g.route.id]:m.error})),e.fetchers.delete(f)}else if(Di(m))$e(!1,"Unhandled fetcher revalidation redirect");else if(Os(m))$e(!1,"Unhandled fetcher deferred data");else{let g=vs(m.data);e.fetchers.set(f,g)}}),{loaderData:l,errors:c}}function ES(e,t,n,r){let o=jt({},t);for(let s of n){let i=s.route.id;if(t.hasOwnProperty(i)?t[i]!==void 0&&(o[i]=t[i]):e[i]!==void 0&&s.route.loader&&(o[i]=e[i]),r&&r.hasOwnProperty(i))break}return o}function kS(e){return e?Gn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function el(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function jS(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function wn(e,t){let{pathname:n,routeId:r,method:o,type:s,message:i}=t===void 0?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",s==="route-discovery"?l='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error:
102
+ `+i):o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":s==="defer-action"?l="defer() is not supported in actions":s==="invalid-body"&&(l="Unable to encode submission body")):e===403?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",l='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new vp(e||500,a,new Error(l),!0)}function of(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(Di(o))return{key:r,result:o}}}function cP(e){let t=typeof e=="string"?ci(e):e;return Ji(jt({},t,{hash:""}))}function E7(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function k7(e){return typeof e=="object"&&e!=null&&"then"in e}function j7(e){return uP(e.result)&&l7.has(e.result.status)}function Os(e){return e.type===rt.deferred}function Gn(e){return e.type===rt.error}function Di(e){return(e&&e.type)===rt.redirect}function RS(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function R7(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function uP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function P7(e){return a7.has(e.toLowerCase())}function Or(e){return s7.has(e.toLowerCase())}async function T7(e,t,n,r,o){let s=Object.entries(t);for(let i=0;i<s.length;i++){let[a,l]=s[i],c=e.find(p=>(p==null?void 0:p.route.id)===a);if(!c)continue;let d=r.find(p=>p.route.id===c.route.id),f=d!=null&&!aP(d,c)&&(o&&o[c.route.id])!==void 0;Os(l)&&f&&await tx(l,n,!1).then(p=>{p&&(t[a]=p)})}}async function N7(e,t,n){for(let r=0;r<n.length;r++){let{key:o,routeId:s,controller:i}=n[r],a=t[o];e.find(c=>(c==null?void 0:c.route.id)===s)&&Os(a)&&($e(i,"Expected an AbortController for revalidating fetcher deferred result"),await tx(a,i.signal,!0).then(c=>{c&&(t[o]=c)}))}}async function tx(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:rt.data,data:e.deferredData.unwrappedData}}catch(o){return{type:rt.error,error:o}}return{type:rt.data,data:e.deferredData.data}}}function nx(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Bc(e,t){let n=typeof t=="string"?ci(t).search:t.search;if(e[e.length-1].route.index&&nx(n||""))return e[e.length-1];let r=oP(e);return r[r.length-1]}function PS(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:s,json:i}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(s!=null)return{formMethod:t,formAction:n,formEncType:r,formData:s,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function mg(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function L7(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Nc(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function D7(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function vs(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function M7(e,t){try{let n=e.sessionStorage.getItem(iP);if(n){let r=JSON.parse(n);for(let[o,s]of Object.entries(r||{}))s&&Array.isArray(s)&&t.set(o,new Set(s||[]))}}catch{}}function _7(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(iP,JSON.stringify(n))}catch(r){Bl(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/**
103
+ * React Router v6.26.2
104
+ *
105
+ * Copyright (c) Remix Software Inc.
106
+ *
107
+ * This source code is licensed under the MIT license found in the
108
+ * LICENSE.md file in the root directory of this source tree.
109
+ *
110
+ * @license MIT
111
+ */function xp(){return xp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xp.apply(this,arguments)}const cd=v.createContext(null),rx=v.createContext(null),ls=v.createContext(null),ox=v.createContext(null),Co=v.createContext({outlet:null,matches:[],isDataRoute:!1}),dP=v.createContext(null);function A7(e,t){let{relative:n}=t===void 0?{}:t;ac()||$e(!1);let{basename:r,navigator:o}=v.useContext(ls),{hash:s,pathname:i,search:a}=Mh(e,{relative:n}),l=i;return r!=="/"&&(l=i==="/"?r:$o([r,i])),o.createHref({pathname:l,search:a,hash:s})}function ac(){return v.useContext(ox)!=null}function Qr(){return ac()||$e(!1),v.useContext(ox).location}function fP(e){v.useContext(ls).static||v.useLayoutEffect(e)}function cs(){let{isDataRoute:e}=v.useContext(Co);return e?Q7():O7()}function O7(){ac()||$e(!1);let e=v.useContext(cd),{basename:t,future:n,navigator:r}=v.useContext(ls),{matches:o}=v.useContext(Co),{pathname:s}=Qr(),i=JSON.stringify(Nh(o,n.v7_relativeSplatPath)),a=v.useRef(!1);return fP(()=>{a.current=!0}),v.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let f=Lh(c,JSON.parse(i),s,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:$o([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,i,s,e])}const $7=v.createContext(null);function F7(e){let t=v.useContext(Co).outlet;return t&&v.createElement($7.Provider,{value:e},t)}function I7(){let{matches:e}=v.useContext(Co),t=e[e.length-1];return t?t.params:{}}function Mh(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=v.useContext(ls),{matches:o}=v.useContext(Co),{pathname:s}=Qr(),i=JSON.stringify(Nh(o,r.v7_relativeSplatPath));return v.useMemo(()=>Lh(e,JSON.parse(i),s,n==="path"),[e,i,s,n])}function z7(e,t,n,r){ac()||$e(!1);let{navigator:o}=v.useContext(ls),{matches:s}=v.useContext(Co),i=s[s.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let c=Qr(),d;d=c;let f=d.pathname||"/",p=f;if(l!=="/"){let g=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(g.length).join("/")}let h=ji(e,{pathname:p});return W7(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},a,g.params),pathname:$o([l,o.encodeLocation?o.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:$o([l,o.encodeLocation?o.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),s,n,r)}function V7(){let e=G7(),t=Dh(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,null)}const B7=v.createElement(V7,null);class U7 extends v.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,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(Co.Provider,{value:this.props.routeContext},v.createElement(dP.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function H7(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(cd);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(Co.Provider,{value:t},r)}function W7(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let d=i.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||$e(!1),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<i.length;d++){let f=i[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=d),f.route.id){let{loaderData:p,errors:h}=n,m=f.route.loader&&p[f.route.id]===void 0&&(!h||h[f.route.id]===void 0);if(f.route.lazy||m){l=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((d,f,p)=>{let h,m=!1,g=null,w=null;n&&(h=a&&f.route.id?a[f.route.id]:void 0,g=f.route.errorElement||B7,l&&(c<0&&p===0?(X7("route-fallback"),m=!0,w=null):c===p&&(m=!0,w=f.route.hydrateFallbackElement||null)));let y=t.concat(i.slice(0,p+1)),x=()=>{let b;return h?b=g:m?b=w:f.route.Component?b=v.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=d,v.createElement(H7,{match:f,routeContext:{outlet:d,matches:y,isDataRoute:n!=null},children:b})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?v.createElement(U7,{location:n.location,revalidation:n.revalidation,component:g,error:h,children:x(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):x()},null)}var pP=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(pP||{}),bp=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}(bp||{});function K7(e){let t=v.useContext(cd);return t||$e(!1),t}function q7(e){let t=v.useContext(rx);return t||$e(!1),t}function Y7(e){let t=v.useContext(Co);return t||$e(!1),t}function hP(e){let t=Y7(),n=t.matches[t.matches.length-1];return n.route.id||$e(!1),n.route.id}function G7(){var e;let t=v.useContext(dP),n=q7(bp.UseRouteError),r=hP(bp.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Q7(){let{router:e}=K7(pP.UseNavigateStable),t=hP(bp.UseNavigateStable),n=v.useRef(!1);return fP(()=>{n.current=!0}),v.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,xp({fromRouteId:t},s)))},[e,t])}const TS={};function X7(e,t,n){TS[e]||(TS[e]=!0)}function mP(e){let{to:t,replace:n,state:r,relative:o}=e;ac()||$e(!1);let{future:s,static:i}=v.useContext(ls),{matches:a}=v.useContext(Co),{pathname:l}=Qr(),c=cs(),d=Lh(t,Nh(a,s.v7_relativeSplatPath),l,o==="path"),f=JSON.stringify(d);return v.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:o}),[c,f,o,n,r]),null}function J7(e){return F7(e.context)}function Z7(e){let{basename:t="/",children:n=null,location:r,navigationType:o=It.Pop,navigator:s,static:i=!1,future:a}=e;ac()&&$e(!1);let l=t.replace(/^\/*/,"/"),c=v.useMemo(()=>({basename:l,navigator:s,static:i,future:xp({v7_relativeSplatPath:!1},a)}),[l,a,s,i]);typeof r=="string"&&(r=ci(r));let{pathname:d="/",search:f="",hash:p="",state:h=null,key:m="default"}=r,g=v.useMemo(()=>{let w=Ko(d,l);return w==null?null:{location:{pathname:w,search:f,hash:p,state:h,key:m},navigationType:o}},[l,d,f,p,h,m,o]);return g==null?null:v.createElement(ls.Provider,{value:c},v.createElement(ox.Provider,{children:n,value:g}))}new Promise(()=>{});function e9(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:v.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:v.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:v.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/**
112
+ * React Router DOM v6.26.2
113
+ *
114
+ * Copyright (c) Remix Software Inc.
115
+ *
116
+ * This source code is licensed under the MIT license found in the
117
+ * LICENSE.md file in the root directory of this source tree.
118
+ *
119
+ * @license MIT
120
+ */function Ul(){return Ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ul.apply(this,arguments)}function gP(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function t9(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function n9(e,t){return e.button===0&&(!t||t==="_self")&&!t9(e)}function ov(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function r9(e,t){let n=ov(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(s=>{n.append(o,s)})}),n}const o9=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],s9=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],i9="6";try{window.__reactRouterVersion=i9}catch{}function a9(e,t){return f7({basename:void 0,future:Ul({},void 0,{v7_prependBasename:!0}),history:O6({window:void 0}),hydrationData:l9(),routes:e,mapRouteProperties:e9,unstable_dataStrategy:void 0,unstable_patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function l9(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Ul({},t,{errors:c9(t.errors)})),t}function c9(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new vp(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let s=window[o.__subType];if(typeof s=="function")try{let i=new s(o.message);i.stack="",n[r]=i}catch{}}if(n[r]==null){let s=new Error(o.message);s.stack="",n[r]=s}}else n[r]=o;return n}const yP=v.createContext({isTransitioning:!1}),u9=v.createContext(new Map),d9="startTransition",NS=UC[d9],f9="flushSync",LS=uD[f9];function p9(e){NS?NS(e):e()}function Lc(e){LS?LS(e):e()}class h9{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function m9(e){let{fallbackElement:t,router:n,future:r}=e,[o,s]=v.useState(n.state),[i,a]=v.useState(),[l,c]=v.useState({isTransitioning:!1}),[d,f]=v.useState(),[p,h]=v.useState(),[m,g]=v.useState(),w=v.useRef(new Map),{v7_startTransition:y}=r||{},x=v.useCallback(C=>{y?p9(C):C()},[y]),b=v.useCallback((C,T)=>{let{deletedFetchers:N,unstable_flushSync:_,unstable_viewTransitionOpts:I}=T;N.forEach(O=>w.current.delete(O)),C.fetchers.forEach((O,M)=>{O.data!==void 0&&w.current.set(M,O.data)});let U=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!I||U){_?Lc(()=>s(C)):x(()=>s(C));return}if(_){Lc(()=>{p&&(d&&d.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:I.currentLocation,nextLocation:I.nextLocation})});let O=n.window.document.startViewTransition(()=>{Lc(()=>s(C))});O.finished.finally(()=>{Lc(()=>{f(void 0),h(void 0),a(void 0),c({isTransitioning:!1})})}),Lc(()=>h(O));return}p?(d&&d.resolve(),p.skipTransition(),g({state:C,currentLocation:I.currentLocation,nextLocation:I.nextLocation})):(a(C),c({isTransitioning:!0,flushSync:!1,currentLocation:I.currentLocation,nextLocation:I.nextLocation}))},[n.window,p,d,w,x]);v.useLayoutEffect(()=>n.subscribe(b),[n,b]),v.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new h9)},[l]),v.useEffect(()=>{if(d&&i&&n.window){let C=i,T=d.promise,N=n.window.document.startViewTransition(async()=>{x(()=>s(C)),await T});N.finished.finally(()=>{f(void 0),h(void 0),a(void 0),c({isTransitioning:!1})}),h(N)}},[x,i,d,n.window]),v.useEffect(()=>{d&&i&&o.location.key===i.location.key&&d.resolve()},[d,p,o.location,i]),v.useEffect(()=>{!l.isTransitioning&&m&&(a(m.state),c({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),g(void 0))},[l.isTransitioning,m]),v.useEffect(()=>{},[]);let S=v.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:C=>n.navigate(C),push:(C,T,N)=>n.navigate(C,{state:T,preventScrollReset:N==null?void 0:N.preventScrollReset}),replace:(C,T,N)=>n.navigate(C,{replace:!0,state:T,preventScrollReset:N==null?void 0:N.preventScrollReset})}),[n]),k=n.basename||"/",E=v.useMemo(()=>({router:n,navigator:S,static:!1,basename:k}),[n,S,k]),j=v.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return v.createElement(v.Fragment,null,v.createElement(cd.Provider,{value:E},v.createElement(rx.Provider,{value:o},v.createElement(u9.Provider,{value:w.current},v.createElement(yP.Provider,{value:l},v.createElement(Z7,{basename:k,location:o.location,navigationType:o.historyAction,navigator:S,future:j},o.initialized||n.future.v7_partialHydration?v.createElement(g9,{routes:n.routes,future:n.future,state:o}):t))))),null)}const g9=v.memo(y9);function y9(e){let{routes:t,future:n,state:r}=e;return z7(t,void 0,r,n)}const v9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",x9=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,b9=v.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:i,state:a,target:l,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,p=gP(t,o9),{basename:h}=v.useContext(ls),m,g=!1;if(typeof c=="string"&&x9.test(c)&&(m=c,v9))try{let b=new URL(window.location.href),S=c.startsWith("//")?new URL(b.protocol+c):new URL(c),k=Ko(S.pathname,h);S.origin===b.origin&&k!=null?c=k+S.search+S.hash:g=!0}catch{}let w=A7(c,{relative:o}),y=S9(c,{replace:i,state:a,target:l,preventScrollReset:d,relative:o,unstable_viewTransition:f});function x(b){r&&r(b),b.defaultPrevented||y(b)}return v.createElement("a",Ul({},p,{href:m||w,onClick:g||s?r:x,ref:n,target:l}))}),lc=v.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:s="",end:i=!1,style:a,to:l,unstable_viewTransition:c,children:d}=t,f=gP(t,s9),p=Mh(l,{relative:f.relative}),h=Qr(),m=v.useContext(rx),{navigator:g,basename:w}=v.useContext(ls),y=m!=null&&C9(p)&&c===!0,x=g.encodeLocation?g.encodeLocation(p).pathname:p.pathname,b=h.pathname,S=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;o||(b=b.toLowerCase(),S=S?S.toLowerCase():null,x=x.toLowerCase()),S&&w&&(S=Ko(S,w)||S);const k=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let E=b===x||!i&&b.startsWith(x)&&b.charAt(k)==="/",j=S!=null&&(S===x||!i&&S.startsWith(x)&&S.charAt(x.length)==="/"),C={isActive:E,isPending:j,isTransitioning:y},T=E?r:void 0,N;typeof s=="function"?N=s(C):N=[s,E?"active":null,j?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let _=typeof a=="function"?a(C):a;return v.createElement(b9,Ul({},f,{"aria-current":T,className:N,ref:n,style:_,to:l,unstable_viewTransition:c}),typeof d=="function"?d(C):d)});var sv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(sv||(sv={}));var DS;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(DS||(DS={}));function w9(e){let t=v.useContext(cd);return t||$e(!1),t}function S9(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:i,unstable_viewTransition:a}=t===void 0?{}:t,l=cs(),c=Qr(),d=Mh(e,{relative:i});return v.useCallback(f=>{if(n9(f,n)){f.preventDefault();let p=r!==void 0?r:Ji(c)===Ji(d);l(e,{replace:p,state:o,preventScrollReset:s,relative:i,unstable_viewTransition:a})}},[c,l,d,r,o,n,e,s,i,a])}function sx(e){let t=v.useRef(ov(e)),n=v.useRef(!1),r=Qr(),o=v.useMemo(()=>r9(r.search,n.current?null:t.current),[r.search]),s=cs(),i=v.useCallback((a,l)=>{const c=ov(typeof a=="function"?a(o):a);n.current=!0,s("?"+c,l)},[s,o]);return[o,i]}function C9(e,t){t===void 0&&(t={});let n=v.useContext(yP);n==null&&$e(!1);let{basename:r}=w9(sv.useViewTransitionState),o=Mh(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=Ko(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=Ko(n.nextLocation.pathname,r)||n.nextLocation.pathname;return yp(o.pathname,i)!=null||yp(o.pathname,s)!=null}function E9(e){if(!/^[0-9a-zA-Z-]+$/.test(e))throw new Error(`[@mantine/use-form] Form name "${e}" is invalid, it should contain only letters, numbers and dashes`)}const k9=typeof window<"u"?v.useLayoutEffect:v.useEffect;function nn(e,t){k9(()=>{if(e)return window.addEventListener(e,t),()=>window.removeEventListener(e,t)},[e])}function j9(e,t){e&&E9(e),nn(`mantine-form:${e}:set-field-value`,n=>t.setFieldValue(n.detail.path,n.detail.value)),nn(`mantine-form:${e}:set-values`,n=>t.setValues(n.detail)),nn(`mantine-form:${e}:set-initial-values`,n=>t.setInitialValues(n.detail)),nn(`mantine-form:${e}:set-errors`,n=>t.setErrors(n.detail)),nn(`mantine-form:${e}:set-field-error`,n=>t.setFieldError(n.detail.path,n.detail.error)),nn(`mantine-form:${e}:clear-field-error`,n=>t.clearFieldError(n.detail)),nn(`mantine-form:${e}:clear-errors`,t.clearErrors),nn(`mantine-form:${e}:reset`,t.reset),nn(`mantine-form:${e}:validate`,t.validate),nn(`mantine-form:${e}:validate-field`,n=>t.validateField(n.detail)),nn(`mantine-form:${e}:reorder-list-item`,n=>t.reorderListItem(n.detail.path,n.detail.payload)),nn(`mantine-form:${e}:remove-list-item`,n=>t.removeListItem(n.detail.path,n.detail.index)),nn(`mantine-form:${e}:insert-list-item`,n=>t.insertListItem(n.detail.path,n.detail.item,n.detail.index)),nn(`mantine-form:${e}:set-dirty`,n=>t.setDirty(n.detail)),nn(`mantine-form:${e}:set-touched`,n=>t.setTouched(n.detail)),nn(`mantine-form:${e}:reset-dirty`,n=>t.resetDirty(n.detail)),nn(`mantine-form:${e}:reset-touched`,t.resetTouched)}function R9(e){return t=>{if(!t)e(t);else if(typeof t=="function")e(t);else if(typeof t=="object"&&"nativeEvent"in t){const{currentTarget:n}=t;n instanceof HTMLInputElement?n.type==="checkbox"?e(n.checked):e(n.value):(n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement)&&e(n.value)}else e(t)}}function iv(e){return e===null||typeof e!="object"?{}:Object.keys(e).reduce((t,n)=>{const r=e[n];return r!=null&&r!==!1&&(t[n]=r),t},{})}function P9(e){const[t,n]=v.useState(iv(e)),r=v.useRef(t),o=v.useCallback(l=>{n(c=>{const d=iv(typeof l=="function"?l(c):l);return r.current=d,d})},[]),s=v.useCallback(()=>o({}),[]),i=v.useCallback(l=>{r.current[l]!==void 0&&o(c=>{const d={...c};return delete d[l],d})},[t]),a=v.useCallback((l,c)=>{c==null||c===!1?i(l):r.current[l]!==c&&o(d=>({...d,[l]:c}))},[t]);return{errorsState:t,setErrors:o,clearErrors:s,setFieldError:a,clearFieldError:i}}function av(e,t){if(t===null||typeof t!="object")return{};const n={...t};return Object.keys(t).forEach(r=>{r.includes(`${String(e)}.`)&&delete n[r]}),n}function MS(e,t){const n=e.substring(t.length+1).split(".")[0];return parseInt(n,10)}function _S(e,t,n,r){if(t===void 0)return n;const o=`${String(e)}`;let s=n;r===-1&&(s=av(`${o}.${t}`,s));const i={...s},a=new Set;return Object.entries(s).filter(([l])=>{if(!l.startsWith(`${o}.`))return!1;const c=MS(l,o);return Number.isNaN(c)?!1:c>=t}).forEach(([l,c])=>{const d=MS(l,o),f=l.replace(`${o}.${d}`,`${o}.${d+r}`);i[f]=c,a.add(f),a.has(l)||delete i[l]}),i}function T9(e,{from:t,to:n},r){const o=`${e}.${t}`,s=`${e}.${n}`,i={...r};return Object.keys(r).every(a=>{let l,c;if(a.startsWith(o)&&(l=a,c=a.replace(o,s)),a.startsWith(s)&&(l=a.replace(s,o),c=a),l&&c){const d=i[l],f=i[c];return f===void 0?delete i[l]:i[l]=f,d===void 0?delete i[c]:i[c]=d,!1}return!0}),i}function AS(e,t,n){typeof n.value=="object"&&(n.value=tl(n.value)),!n.enumerable||n.get||n.set||!n.configurable||!n.writable||t==="__proto__"?Object.defineProperty(e,t,n):e[t]=n.value}function tl(e){if(typeof e!="object")return e;var t=0,n,r,o,s=Object.prototype.toString.call(e);if(s==="[object Object]"?o=Object.create(e.__proto__||null):s==="[object Array]"?o=Array(e.length):s==="[object Set]"?(o=new Set,e.forEach(function(i){o.add(tl(i))})):s==="[object Map]"?(o=new Map,e.forEach(function(i,a){o.set(tl(a),tl(i))})):s==="[object Date]"?o=new Date(+e):s==="[object RegExp]"?o=new RegExp(e.source,e.flags):s==="[object DataView]"?o=new e.constructor(tl(e.buffer)):s==="[object ArrayBuffer]"?o=e.slice(0):s.slice(-6)==="Array]"&&(o=new e.constructor(e)),o){for(r=Object.getOwnPropertySymbols(e);t<r.length;t++)AS(o,r[t],Object.getOwnPropertyDescriptor(e,r[t]));for(t=0,r=Object.getOwnPropertyNames(e);t<r.length;t++)Object.hasOwnProperty.call(o,n=r[t])&&o[n]===e[n]||AS(o,n,Object.getOwnPropertyDescriptor(e,n))}return o||e}function vP(e){return typeof e!="string"?[]:e.split(".")}function mn(e,t){const n=vP(e);if(n.length===0||typeof t!="object"||t===null)return;let r=t[n[0]];for(let o=1;o<n.length&&r!=null;o+=1)r=r[n[o]];return r}function _h(e,t,n){const r=vP(e);if(r.length===0)return n;const o=tl(n);if(r.length===1)return o[r[0]]=t,o;let s=o[r[0]];for(let i=1;i<r.length-1;i+=1){if(s===void 0)return o;s=s[r[i]]}return s[r[r.length-1]]=t,o}function N9(e,{from:t,to:n},r){const o=mn(e,r);if(!Array.isArray(o))return r;const s=[...o],i=o[t];return s.splice(t,1),s.splice(n,0,i),_h(e,s,r)}function L9(e,t,n,r){const o=mn(e,r);if(!Array.isArray(o))return r;const s=[...o];return s.splice(typeof n=="number"?n:s.length,0,t),_h(e,s,r)}function D9(e,t,n){const r=mn(e,n);return Array.isArray(r)?_h(e,r.filter((o,s)=>s!==t),n):n}function M9({$values:e,$errors:t,$status:n}){const r=v.useCallback((i,a)=>{n.clearFieldDirty(i),t.setErrors(l=>T9(i,a,l)),e.setValues({values:N9(i,a,e.refValues.current),updateState:!0})},[]),o=v.useCallback((i,a)=>{n.clearFieldDirty(i),t.setErrors(l=>_S(i,a,l,-1)),e.setValues({values:D9(i,a,e.refValues.current),updateState:!0})},[]),s=v.useCallback((i,a,l)=>{n.clearFieldDirty(i),t.setErrors(c=>_S(i,l,c,1)),e.setValues({values:L9(i,a,l,e.refValues.current),updateState:!0})},[]);return{reorderListItem:r,removeListItem:o,insertListItem:s}}var _9=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,s;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(s=Object.keys(t),r=s.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[o]))return!1;for(o=r;o--!==0;){var i=s[o];if(!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n};const sf=Js(_9);function Dc(e,t){const n=Object.keys(e);if(typeof t=="string"){const r=n.filter(o=>o.startsWith(`${t}.`));return e[t]||r.some(o=>e[o])||!1}return n.some(r=>e[r])}function A9({initialDirty:e,initialTouched:t,mode:n,$values:r}){const[o,s]=v.useState(t),[i,a]=v.useState(e),l=v.useRef(t),c=v.useRef(e),d=v.useCallback(E=>{const j=typeof E=="function"?E(l.current):E;l.current=j,n==="controlled"&&s(j)},[]),f=v.useCallback((E,j=!1)=>{const C=typeof E=="function"?E(c.current):E;c.current=C,(n==="controlled"||j)&&a(C)},[]),p=v.useCallback(()=>d({}),[]),h=E=>{const j=E?{...E,...r.refValues.current}:r.refValues.current;r.setValuesSnapshot(j),f({})},m=v.useCallback((E,j)=>{d(C=>Dc(C,E)===j?C:{...C,[E]:j})},[]),g=v.useCallback((E,j,C)=>{f(T=>Dc(T,E)===j?T:{...T,[E]:j},C)},[]),w=v.useCallback((E,j)=>{const C=Dc(c.current,E),T=!sf(mn(E,r.getValuesSnapshot()),j),N=av(E,c.current);N[E]=T,f(N,C!==T)},[]),y=v.useCallback(E=>Dc(l.current,E),[]),x=v.useCallback(E=>f(j=>{if(typeof E!="string")return j;const C=av(E,j);return delete C[E],sf(C,j)?j:C}),[]),b=v.useCallback(E=>{if(E){const C=mn(E,c.current);if(typeof C=="boolean")return C;const T=mn(E,r.refValues.current),N=mn(E,r.valuesSnapshot.current);return!sf(T,N)}return Object.keys(c.current).length>0?Dc(c.current):!sf(r.refValues.current,r.valuesSnapshot.current)},[]),S=v.useCallback(()=>c.current,[]),k=v.useCallback(()=>l.current,[]);return{touchedState:o,dirtyState:i,touchedRef:l,dirtyRef:c,setTouched:d,setDirty:f,resetDirty:h,resetTouched:p,isTouched:y,setFieldTouched:m,setFieldDirty:g,setTouchedState:s,setDirtyState:a,clearFieldDirty:x,isDirty:b,getDirty:S,getTouched:k,setCalculatedFieldDirty:w}}function O9({initialValues:e,onValuesChange:t,mode:n}){const r=v.useRef(!1),[o,s]=v.useState(e||{}),i=v.useRef(o),a=v.useRef(o),l=v.useCallback(({values:g,subscribers:w,updateState:y=!0,mergeWithPreviousValues:x=!0})=>{const b=i.current,S=g instanceof Function?g(i.current):g,k=x?{...b,...S}:S;i.current=k,y&&s(k),t==null||t(k,b),w==null||w.filter(Boolean).forEach(E=>E({updatedValues:k,previousValues:b}))},[t]),c=v.useCallback(g=>{var x;const w=mn(g.path,i.current),y=g.value instanceof Function?g.value(w):g.value;if(w!==y){const b=i.current,S=_h(g.path,y,i.current);l({values:S,updateState:g.updateState}),(x=g.subscribers)==null||x.filter(Boolean).forEach(k=>k({path:g.path,updatedValues:S,previousValues:b}))}},[l]),d=v.useCallback(g=>{a.current=g},[]),f=v.useCallback((g,w)=>{r.current||(r.current=!0,l({values:g,updateState:n==="controlled"}),d(g),w())},[l]),p=v.useCallback(()=>{l({values:a.current,updateState:!0,mergeWithPreviousValues:!1})},[l]),h=v.useCallback(()=>i.current,[]),m=v.useCallback(()=>a.current,[]);return{initialized:r,stateValues:o,refValues:i,valuesSnapshot:a,setValues:l,setFieldValue:c,resetValues:p,setValuesSnapshot:d,initialize:f,getValues:h,getValuesSnapshot:m}}function $9({$status:e}){const t=v.useRef({}),n=v.useCallback((o,s)=>{v.useEffect(()=>(t.current[o]=t.current[o]||[],t.current[o].push(s),()=>{t.current[o]=t.current[o].filter(i=>i!==s)}),[s])},[]),r=v.useCallback(o=>t.current[o]?t.current[o].map(s=>i=>s({previousValue:mn(o,i.previousValues),value:mn(o,i.updatedValues),touched:e.isTouched(o),dirty:e.isDirty(o)})):[],[]);return{subscribers:t,watch:n,getFieldSubscribers:r}}function OS(e,t){return e?`${e}-${t.toString()}`:t.toString()}function $S(e){const t=iv(e);return{hasErrors:Object.keys(t).length>0,errors:t}}function lv(e,t,n="",r={}){return typeof e!="object"||e===null?r:Object.keys(e).reduce((o,s)=>{const i=e[s],a=`${n===""?"":`${n}.`}${s}`,l=mn(a,t);let c=!1;return typeof i=="function"&&(o[a]=i(l,t,a)),typeof i=="object"&&Array.isArray(l)&&(c=!0,l.forEach((d,f)=>lv(i,t,`${a}.${f}`,o))),typeof i=="object"&&typeof l=="object"&&l!==null&&(c||lv(i,t,a,o)),o},r)}function cv(e,t){return $S(typeof e=="function"?e(t):lv(e,t))}function af(e,t,n){if(typeof e!="string")return{hasError:!1,error:null};const r=cv(t,n),o=Object.keys(r.errors).find(s=>e.split(".").every((i,a)=>i===s.split(".")[a]));return{hasError:!!o,error:o?r.errors[o]:null}}const F9="__MANTINE_FORM_INDEX__";function FS(e,t){return t?typeof t=="boolean"?t:Array.isArray(t)?t.includes(e.replace(/[.][0-9]/g,`.${F9}`)):!1:!1}function Eo({name:e,mode:t="controlled",initialValues:n,initialErrors:r={},initialDirty:o={},initialTouched:s={},clearInputErrorOnChange:i=!0,validateInputOnChange:a=!1,validateInputOnBlur:l=!1,onValuesChange:c,transformValues:d=h=>h,enhanceGetInputProps:f,validate:p}={}){const h=P9(r),m=O9({initialValues:n,onValuesChange:c,mode:t}),g=A9({initialDirty:o,initialTouched:s,$values:m,mode:t}),w=M9({$values:m,$errors:h,$status:g}),y=$9({$status:g}),[x,b]=v.useState(0),[S,k]=v.useState({}),E=v.useCallback(()=>{m.resetValues(),h.clearErrors(),g.resetDirty(),g.resetTouched(),t==="uncontrolled"&&b(A=>A+1)},[]),j=v.useCallback(A=>{i&&h.clearErrors(),t==="uncontrolled"&&b(B=>B+1),Object.keys(y.subscribers.current).forEach(B=>{const G=mn(B,m.refValues.current),ne=mn(B,A);G!==ne&&y.getFieldSubscribers(B).forEach(Z=>Z({previousValues:A,updatedValues:m.refValues.current}))})},[i]),C=v.useCallback(A=>{const B=m.refValues.current;m.initialize(A,()=>t==="uncontrolled"&&b(G=>G+1)),j(B)},[j]),T=v.useCallback((A,B,G)=>{const ne=FS(A,a),Z=B instanceof Function?B(mn(A,m.refValues.current)):B;g.setCalculatedFieldDirty(A,Z),g.setFieldTouched(A,!0),!ne&&i&&h.clearFieldError(A),m.setFieldValue({path:A,value:B,updateState:t==="controlled",subscribers:[...y.getFieldSubscribers(A),ne?oe=>{const ae=af(A,p,oe.updatedValues);ae.hasError?h.setFieldError(A,ae.error):h.clearFieldError(A)}:null,(G==null?void 0:G.forceUpdate)!==!1&&t!=="controlled"?()=>k(oe=>({...oe,[A]:(oe[A]||0)+1})):null]})},[c,p]),N=v.useCallback(A=>{const B=m.refValues.current;m.setValues({values:A,updateState:t==="controlled"}),j(B)},[c,j]),_=v.useCallback(()=>{const A=cv(p,m.refValues.current);return h.setErrors(A.errors),A},[p]),I=v.useCallback(A=>{const B=af(A,p,m.refValues.current);return B.hasError?h.setFieldError(A,B.error):h.clearFieldError(A),B},[p]),U=(A,{type:B="input",withError:G=!0,withFocus:ne=!0,...Z}={})=>{const ae={onChange:R9(ue=>T(A,ue,{forceUpdate:!1})),"data-path":OS(e,A)};return G&&(ae.error=h.errorsState[A]),B==="checkbox"?ae[t==="controlled"?"checked":"defaultChecked"]=mn(A,m.refValues.current):ae[t==="controlled"?"value":"defaultValue"]=mn(A,m.refValues.current),ne&&(ae.onFocus=()=>g.setFieldTouched(A,!0),ae.onBlur=()=>{if(FS(A,l)){const ue=af(A,p,m.refValues.current);ue.hasError?h.setFieldError(A,ue.error):h.clearFieldError(A)}}),Object.assign(ae,f==null?void 0:f({inputProps:ae,field:A,options:{type:B,withError:G,withFocus:ne,...Z},form:$}))},O=(A,B)=>G=>{G==null||G.preventDefault();const ne=_();ne.hasErrors?B==null||B(ne.errors,m.refValues.current,G):A==null||A(d(m.refValues.current),G)},M=A=>d(A||m.refValues.current),P=v.useCallback(A=>{A.preventDefault(),E()},[]),L=v.useCallback(A=>A?!af(A,p,m.refValues.current).hasError:!cv(p,m.refValues.current).hasErrors,[p]),R=A=>`${x}-${A}-${S[A]||0}`,D=v.useCallback(A=>document.querySelector(`[data-path="${OS(e,A)}"]`),[]),$={watch:y.watch,initialized:m.initialized.current,values:m.stateValues,getValues:m.getValues,setInitialValues:m.setValuesSnapshot,initialize:C,setValues:N,setFieldValue:T,errors:h.errorsState,setErrors:h.setErrors,setFieldError:h.setFieldError,clearFieldError:h.clearFieldError,clearErrors:h.clearErrors,resetDirty:g.resetDirty,setTouched:g.setTouched,setDirty:g.setDirty,isTouched:g.isTouched,resetTouched:g.resetTouched,isDirty:g.isDirty,getTouched:g.getTouched,getDirty:g.getDirty,reorderListItem:w.reorderListItem,insertListItem:w.insertListItem,removeListItem:w.removeListItem,reset:E,validate:_,validateField:I,getInputProps:U,onSubmit:O,onReset:P,isValid:L,getTransformedValues:M,key:R,getInputNode:D};return j9(e,$),$}function Zi(e){const t=e||!0;return n=>typeof n=="string"?n.trim().length>0?null:t:Array.isArray(n)?n.length>0?null:t:n==null||n===!1?t:null}function I9(e,t){const n=t||!0;return r=>typeof r!="string"?n:e.test(r)?null:n}function ix(e){return I9(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,e)}function IS(e,t){if(typeof e=="number")return t.length===e;const{max:n,min:r}=e;let o=!0;return typeof n=="number"&&t.length>n&&(o=!1),typeof r=="number"&&t.length<r&&(o=!1),o}function z9(e,t){const n=t||!0;return r=>typeof r=="string"?IS(e,r.trim())?null:n:typeof r=="object"&&r!==null&&"length"in r&&IS(e,r)?null:n}function V9(e,t){const n=t||!0;return(r,o)=>!o||!(e in o)?n:r===o[e]?null:n}function xP(e,t){return function(){return e.apply(t,arguments)}}const{toString:B9}=Object.prototype,{getPrototypeOf:ax}=Object,Ah=(e=>t=>{const n=B9.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Xr=e=>(e=e.toLowerCase(),t=>Ah(t)===e),Oh=e=>t=>typeof t===e,{isArray:cc}=Array,Du=Oh("undefined");function U9(e){return e!==null&&!Du(e)&&e.constructor!==null&&!Du(e.constructor)&&tr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const bP=Xr("ArrayBuffer");function H9(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&bP(e.buffer),t}const W9=Oh("string"),tr=Oh("function"),wP=Oh("number"),$h=e=>e!==null&&typeof e=="object",K9=e=>e===!0||e===!1,Tf=e=>{if(Ah(e)!=="object")return!1;const t=ax(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},q9=Xr("Date"),Y9=Xr("File"),G9=Xr("Blob"),Q9=Xr("FileList"),X9=e=>$h(e)&&tr(e.pipe),J9=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||tr(e.append)&&((t=Ah(e))==="formdata"||t==="object"&&tr(e.toString)&&e.toString()==="[object FormData]"))},Z9=Xr("URLSearchParams"),[ez,tz,nz,rz]=["ReadableStream","Request","Response","Headers"].map(Xr),oz=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ud(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),cc(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let a;for(r=0;r<i;r++)a=s[r],t.call(null,e[a],a,e)}}function SP(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Mi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,CP=e=>!Du(e)&&e!==Mi;function uv(){const{caseless:e}=CP(this)&&this||{},t={},n=(r,o)=>{const s=e&&SP(t,o)||o;Tf(t[s])&&Tf(r)?t[s]=uv(t[s],r):Tf(r)?t[s]=uv({},r):cc(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&ud(arguments[r],n);return t}const sz=(e,t,n,{allOwnKeys:r}={})=>(ud(t,(o,s)=>{n&&tr(o)?e[s]=xP(o,n):e[s]=o},{allOwnKeys:r}),e),iz=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),az=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},lz=(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&ax(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},cz=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},uz=e=>{if(!e)return null;if(cc(e))return e;let t=e.length;if(!wP(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},dz=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ax(Uint8Array)),fz=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},pz=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},hz=Xr("HTMLFormElement"),mz=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),zS=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),gz=Xr("RegExp"),EP=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ud(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},yz=e=>{EP(e,(t,n)=>{if(tr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(tr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},vz=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return cc(e)?r(e):r(String(e).split(t)),n},xz=()=>{},bz=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,gg="abcdefghijklmnopqrstuvwxyz",VS="0123456789",kP={DIGIT:VS,ALPHA:gg,ALPHA_DIGIT:gg+gg.toUpperCase()+VS},wz=(e=16,t=kP.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Sz(e){return!!(e&&tr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Cz=e=>{const t=new Array(10),n=(r,o)=>{if($h(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=cc(r)?[]:{};return ud(r,(i,a)=>{const l=n(i,o+1);!Du(l)&&(s[a]=l)}),t[o]=void 0,s}}return r};return n(e,0)},Ez=Xr("AsyncFunction"),kz=e=>e&&($h(e)||tr(e))&&tr(e.then)&&tr(e.catch),jP=((e,t)=>e?setImmediate:t?((n,r)=>(Mi.addEventListener("message",({source:o,data:s})=>{o===Mi&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Mi.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",tr(Mi.postMessage)),jz=typeof queueMicrotask<"u"?queueMicrotask.bind(Mi):typeof process<"u"&&process.nextTick||jP,q={isArray:cc,isArrayBuffer:bP,isBuffer:U9,isFormData:J9,isArrayBufferView:H9,isString:W9,isNumber:wP,isBoolean:K9,isObject:$h,isPlainObject:Tf,isReadableStream:ez,isRequest:tz,isResponse:nz,isHeaders:rz,isUndefined:Du,isDate:q9,isFile:Y9,isBlob:G9,isRegExp:gz,isFunction:tr,isStream:X9,isURLSearchParams:Z9,isTypedArray:dz,isFileList:Q9,forEach:ud,merge:uv,extend:sz,trim:oz,stripBOM:iz,inherits:az,toFlatObject:lz,kindOf:Ah,kindOfTest:Xr,endsWith:cz,toArray:uz,forEachEntry:fz,matchAll:pz,isHTMLForm:hz,hasOwnProperty:zS,hasOwnProp:zS,reduceDescriptors:EP,freezeMethods:yz,toObjectSet:vz,toCamelCase:mz,noop:xz,toFiniteNumber:bz,findKey:SP,global:Mi,isContextDefined:CP,ALPHABET:kP,generateString:wz,isSpecCompliantForm:Sz,toJSONObject:Cz,isAsyncFn:Ez,isThenable:kz,setImmediate:jP,asap:jz};function Ae(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}q.inherits(Ae,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:q.toJSONObject(this.config),code:this.code,status:this.status}}});const RP=Ae.prototype,PP={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{PP[e]={value:e}});Object.defineProperties(Ae,PP);Object.defineProperty(RP,"isAxiosError",{value:!0});Ae.from=(e,t,n,r,o,s)=>{const i=Object.create(RP);return q.toFlatObject(e,i,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Ae.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const Rz=null;function dv(e){return q.isPlainObject(e)||q.isArray(e)}function TP(e){return q.endsWith(e,"[]")?e.slice(0,-2):e}function BS(e,t,n){return e?e.concat(t).map(function(o,s){return o=TP(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function Pz(e){return q.isArray(e)&&!e.some(dv)}const Tz=q.toFlatObject(q,{},null,function(t){return/^is[A-Z]/.test(t)});function Fh(e,t,n){if(!q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,w){return!q.isUndefined(w[g])});const r=n.metaTokens,o=n.visitor||d,s=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&q.isSpecCompliantForm(t);if(!q.isFunction(o))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(q.isDate(m))return m.toISOString();if(!l&&q.isBlob(m))throw new Ae("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(m)||q.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,g,w){let y=m;if(m&&!w&&typeof m=="object"){if(q.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(q.isArray(m)&&Pz(m)||(q.isFileList(m)||q.endsWith(g,"[]"))&&(y=q.toArray(m)))return g=TP(g),y.forEach(function(b,S){!(q.isUndefined(b)||b===null)&&t.append(i===!0?BS([g],S,s):i===null?g:g+"[]",c(b))}),!1}return dv(m)?!0:(t.append(BS(w,g,s),c(m)),!1)}const f=[],p=Object.assign(Tz,{defaultVisitor:d,convertValue:c,isVisitable:dv});function h(m,g){if(!q.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(m),q.forEach(m,function(y,x){(!(q.isUndefined(y)||y===null)&&o.call(t,y,q.isString(x)?x.trim():x,g,p))===!0&&h(y,g?g.concat(x):[x])}),f.pop()}}if(!q.isObject(e))throw new TypeError("data must be an object");return h(e),t}function US(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function lx(e,t){this._pairs=[],e&&Fh(e,this,t)}const NP=lx.prototype;NP.append=function(t,n){this._pairs.push([t,n])};NP.toString=function(t){const n=t?function(r){return t.call(this,r,US)}:US;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Nz(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function LP(e,t,n){if(!t)return e;const r=n&&n.encode||Nz,o=n&&n.serialize;let s;if(o?s=o(t,n):s=q.isURLSearchParams(t)?t.toString():new lx(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class HS{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){q.forEach(this.handlers,function(r){r!==null&&t(r)})}}const DP={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Lz=typeof URLSearchParams<"u"?URLSearchParams:lx,Dz=typeof FormData<"u"?FormData:null,Mz=typeof Blob<"u"?Blob:null,_z={isBrowser:!0,classes:{URLSearchParams:Lz,FormData:Dz,Blob:Mz},protocols:["http","https","file","blob","url","data"]},cx=typeof window<"u"&&typeof document<"u",fv=typeof navigator=="object"&&navigator||void 0,Az=cx&&(!fv||["ReactNative","NativeScript","NS"].indexOf(fv.product)<0),Oz=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",$z=cx&&window.location.href||"http://localhost",Fz=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:cx,hasStandardBrowserEnv:Az,hasStandardBrowserWebWorkerEnv:Oz,navigator:fv,origin:$z},Symbol.toStringTag,{value:"Module"})),Fn={...Fz,..._z};function Iz(e,t){return Fh(e,new Fn.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return Fn.isNode&&q.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function zz(e){return q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Vz(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function MP(e){function t(n,r,o,s){let i=n[s++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),l=s>=n.length;return i=!i&&q.isArray(o)?o.length:i,l?(q.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!a):((!o[i]||!q.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&q.isArray(o[i])&&(o[i]=Vz(o[i])),!a)}if(q.isFormData(e)&&q.isFunction(e.entries)){const n={};return q.forEachEntry(e,(r,o)=>{t(zz(r),o,n,0)}),n}return null}function Bz(e,t,n){if(q.isString(e))try{return(t||JSON.parse)(e),q.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const dd={transitional:DP,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=q.isObject(t);if(s&&q.isHTMLForm(t)&&(t=new FormData(t)),q.isFormData(t))return o?JSON.stringify(MP(t)):t;if(q.isArrayBuffer(t)||q.isBuffer(t)||q.isStream(t)||q.isFile(t)||q.isBlob(t)||q.isReadableStream(t))return t;if(q.isArrayBufferView(t))return t.buffer;if(q.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Iz(t,this.formSerializer).toString();if((a=q.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Fh(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Bz(t)):t}],transformResponse:[function(t){const n=this.transitional||dd.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(q.isResponse(t)||q.isReadableStream(t))return t;if(t&&q.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?Ae.from(a,Ae.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fn.classes.FormData,Blob:Fn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};q.forEach(["delete","get","head","post","put","patch"],e=>{dd.headers[e]={}});const Uz=q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Hz=e=>{const t={};let n,r,o;return e&&e.split(`
121
+ `).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&Uz[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},WS=Symbol("internals");function Mc(e){return e&&String(e).trim().toLowerCase()}function Nf(e){return e===!1||e==null?e:q.isArray(e)?e.map(Nf):String(e)}function Wz(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Kz=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function yg(e,t,n,r,o){if(q.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!q.isString(t)){if(q.isString(r))return t.indexOf(r)!==-1;if(q.isRegExp(r))return r.test(t)}}function qz(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Yz(e,t){const n=q.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}let In=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,l,c){const d=Mc(l);if(!d)throw new Error("header name must be a non-empty string");const f=q.findKey(o,d);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||l]=Nf(a))}const i=(a,l)=>q.forEach(a,(c,d)=>s(c,d,l));if(q.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(q.isString(t)&&(t=t.trim())&&!Kz(t))i(Hz(t),n);else if(q.isHeaders(t))for(const[a,l]of t.entries())s(l,a,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=Mc(t),t){const r=q.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Wz(o);if(q.isFunction(n))return n.call(this,o,r);if(q.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Mc(t),t){const r=q.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||yg(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=Mc(i),i){const a=q.findKey(r,i);a&&(!n||yg(r,r[a],a,n))&&(delete r[a],o=!0)}}return q.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||yg(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return q.forEach(this,(o,s)=>{const i=q.findKey(r,s);if(i){n[i]=Nf(o),delete n[s];return}const a=t?qz(s):String(s).trim();a!==s&&delete n[s],n[a]=Nf(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return q.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&q.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
122
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[WS]=this[WS]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=Mc(i);r[a]||(Yz(o,i),r[a]=!0)}return q.isArray(t)?t.forEach(s):s(t),this}};In.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);q.reduceDescriptors(In.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});q.freezeMethods(In);function vg(e,t){const n=this||dd,r=t||n,o=In.from(r.headers);let s=r.data;return q.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function _P(e){return!!(e&&e.__CANCEL__)}function uc(e,t,n){Ae.call(this,e??"canceled",Ae.ERR_CANCELED,t,n),this.name="CanceledError"}q.inherits(uc,Ae,{__CANCEL__:!0});function AP(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ae("Request failed with status code "+n.status,[Ae.ERR_BAD_REQUEST,Ae.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Gz(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Qz(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=r[s];i||(i=c),n[o]=l,r[o]=c;let f=s,p=0;for(;f!==o;)p+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-i<t)return;const h=d&&c-d;return h?Math.round(p*1e3/h):void 0}}function Xz(e,t){let n=0,r=1e3/t,o,s;const i=(c,d=Date.now())=>{n=d,o=null,s&&(clearTimeout(s),s=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=r?i(c,d):(o=c,s||(s=setTimeout(()=>{s=null,i(o)},r-f)))},()=>o&&i(o)]}const wp=(e,t,n=3)=>{let r=0;const o=Qz(50,250);return Xz(s=>{const i=s.loaded,a=s.lengthComputable?s.total:void 0,l=i-r,c=o(l),d=i<=a;r=i;const f={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&d?(a-i)/c:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},KS=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},qS=e=>(...t)=>q.asap(()=>e(...t)),Jz=Fn.hasStandardBrowserEnv?function(){const t=Fn.navigator&&/(msie|trident)/i.test(Fn.navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const a=q.isString(i)?o(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),Zz=Fn.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];q.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),q.isString(r)&&i.push("path="+r),q.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function eV(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function tV(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function OP(e,t){return e&&!eV(t)?tV(e,t):t}const YS=e=>e instanceof In?{...e}:e;function ea(e,t){t=t||{};const n={};function r(c,d,f){return q.isPlainObject(c)&&q.isPlainObject(d)?q.merge.call({caseless:f},c,d):q.isPlainObject(d)?q.merge({},d):q.isArray(d)?d.slice():d}function o(c,d,f){if(q.isUndefined(d)){if(!q.isUndefined(c))return r(void 0,c,f)}else return r(c,d,f)}function s(c,d){if(!q.isUndefined(d))return r(void 0,d)}function i(c,d){if(q.isUndefined(d)){if(!q.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function a(c,d,f){if(f in t)return r(c,d);if(f in e)return r(void 0,c)}const l={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(c,d)=>o(YS(c),YS(d),!0)};return q.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=l[d]||o,p=f(e[d],t[d],d);q.isUndefined(p)&&f!==a||(n[d]=p)}),n}const $P=e=>{const t=ea({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=t;t.headers=i=In.from(i),t.url=LP(OP(t.baseURL,t.url),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(q.isFormData(n)){if(Fn.hasStandardBrowserEnv||Fn.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[c,...d]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Fn.hasStandardBrowserEnv&&(r&&q.isFunction(r)&&(r=r(t)),r||r!==!1&&Jz(t.url))){const c=o&&s&&Zz.read(s);c&&i.set(o,c)}return t},nV=typeof XMLHttpRequest<"u",rV=nV&&function(e){return new Promise(function(n,r){const o=$P(e);let s=o.data;const i=In.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,d,f,p,h,m;function g(){h&&h(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,!0),w.timeout=o.timeout;function y(){if(!w)return;const b=In.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),k={data:!a||a==="text"||a==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:b,config:e,request:w};AP(function(j){n(j),g()},function(j){r(j),g()},k),w=null}"onloadend"in w?w.onloadend=y:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(y)},w.onabort=function(){w&&(r(new Ae("Request aborted",Ae.ECONNABORTED,e,w)),w=null)},w.onerror=function(){r(new Ae("Network Error",Ae.ERR_NETWORK,e,w)),w=null},w.ontimeout=function(){let S=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const k=o.transitional||DP;o.timeoutErrorMessage&&(S=o.timeoutErrorMessage),r(new Ae(S,k.clarifyTimeoutError?Ae.ETIMEDOUT:Ae.ECONNABORTED,e,w)),w=null},s===void 0&&i.setContentType(null),"setRequestHeader"in w&&q.forEach(i.toJSON(),function(S,k){w.setRequestHeader(k,S)}),q.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),a&&a!=="json"&&(w.responseType=o.responseType),c&&([p,m]=wp(c,!0),w.addEventListener("progress",p)),l&&w.upload&&([f,h]=wp(l),w.upload.addEventListener("progress",f),w.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(d=b=>{w&&(r(!b||b.type?new uc(null,e,w):b),w.abort(),w=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const x=Gz(o.url);if(x&&Fn.protocols.indexOf(x)===-1){r(new Ae("Unsupported protocol "+x+":",Ae.ERR_BAD_REQUEST,e));return}w.send(s||null)})},oV=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(c){if(!o){o=!0,a();const d=c instanceof Error?c:this.reason;r.abort(d instanceof Ae?d:new uc(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{i=null,s(new Ae(`timeout ${t} of ms exceeded`,Ae.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(s):c.removeEventListener("abort",s)}),e=null)};e.forEach(c=>c.addEventListener("abort",s));const{signal:l}=r;return l.unsubscribe=()=>q.asap(a),l}},sV=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},iV=async function*(e,t){for await(const n of aV(e))yield*sV(n,t)},aV=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},GS=(e,t,n,r)=>{const o=iV(e,t);let s=0,i,a=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:d}=await o.next();if(c){a(),l.close();return}let f=d.byteLength;if(n){let p=s+=f;n(p)}l.enqueue(new Uint8Array(d))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},Ih=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",FP=Ih&&typeof ReadableStream=="function",lV=Ih&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),IP=(e,...t)=>{try{return!!e(...t)}catch{return!1}},cV=FP&&IP(()=>{let e=!1;const t=new Request(Fn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),QS=64*1024,pv=FP&&IP(()=>q.isReadableStream(new Response("").body)),Sp={stream:pv&&(e=>e.body)};Ih&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Sp[t]&&(Sp[t]=q.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Ae(`Response type '${t}' is not supported`,Ae.ERR_NOT_SUPPORT,r)})})})(new Response);const uV=async e=>{if(e==null)return 0;if(q.isBlob(e))return e.size;if(q.isSpecCompliantForm(e))return(await new Request(Fn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(q.isArrayBufferView(e)||q.isArrayBuffer(e))return e.byteLength;if(q.isURLSearchParams(e)&&(e=e+""),q.isString(e))return(await lV(e)).byteLength},dV=async(e,t)=>{const n=q.toFiniteNumber(e.getContentLength());return n??uV(t)},fV=Ih&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:d,withCredentials:f="same-origin",fetchOptions:p}=$P(e);c=c?(c+"").toLowerCase():"text";let h=oV([o,s&&s.toAbortSignal()],i),m;const g=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let w;try{if(l&&cV&&n!=="get"&&n!=="head"&&(w=await dV(d,r))!==0){let k=new Request(t,{method:"POST",body:r,duplex:"half"}),E;if(q.isFormData(r)&&(E=k.headers.get("content-type"))&&d.setContentType(E),k.body){const[j,C]=KS(w,wp(qS(l)));r=GS(k.body,QS,j,C)}}q.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;m=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:y?f:void 0});let x=await fetch(m);const b=pv&&(c==="stream"||c==="response");if(pv&&(a||b&&g)){const k={};["status","statusText","headers"].forEach(T=>{k[T]=x[T]});const E=q.toFiniteNumber(x.headers.get("content-length")),[j,C]=a&&KS(E,wp(qS(a),!0))||[];x=new Response(GS(x.body,QS,j,()=>{C&&C(),g&&g()}),k)}c=c||"text";let S=await Sp[q.findKey(Sp,c)||"text"](x,e);return!b&&g&&g(),await new Promise((k,E)=>{AP(k,E,{data:S,headers:In.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:m})})}catch(y){throw g&&g(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new Ae("Network Error",Ae.ERR_NETWORK,e,m),{cause:y.cause||y}):Ae.from(y,y&&y.code,e,m)}}),hv={http:Rz,xhr:rV,fetch:fV};q.forEach(hv,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const XS=e=>`- ${e}`,pV=e=>q.isFunction(e)||e===null||e===!1,zP={getAdapter:e=>{e=q.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s<t;s++){n=e[s];let i;if(r=n,!pV(n)&&(r=hv[(i=String(n)).toLowerCase()],r===void 0))throw new Ae(`Unknown adapter '${i}'`);if(r)break;o[i||"#"+s]=r}if(!r){const s=Object.entries(o).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since :
123
+ `+s.map(XS).join(`
124
+ `):" "+XS(s[0]):"as no adapter specified";throw new Ae("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:hv};function xg(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new uc(null,e)}function JS(e){return xg(e),e.headers=In.from(e.headers),e.data=vg.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),zP.getAdapter(e.adapter||dd.adapter)(e).then(function(r){return xg(e),r.data=vg.call(e,e.transformResponse,r),r.headers=In.from(r.headers),r},function(r){return _P(r)||(xg(e),r&&r.response&&(r.response.data=vg.call(e,e.transformResponse,r.response),r.response.headers=In.from(r.response.headers))),Promise.reject(r)})}const VP="1.7.7",ux={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ux[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ZS={};ux.transitional=function(t,n,r){function o(s,i){return"[Axios v"+VP+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,a)=>{if(t===!1)throw new Ae(o(i," has been removed"+(n?" in "+n:"")),Ae.ERR_DEPRECATED);return n&&!ZS[i]&&(ZS[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,a):!0}};function hV(e,t,n){if(typeof e!="object")throw new Ae("options must be an object",Ae.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const a=e[s],l=a===void 0||i(a,s,e);if(l!==!0)throw new Ae("option "+s+" must be "+l,Ae.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ae("Unknown option "+s,Ae.ERR_BAD_OPTION)}}const mv={assertOptions:hV,validators:ux},gs=mv.validators;let Hi=class{constructor(t){this.defaults=t,this.interceptors={request:new HS,response:new HS}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
125
+ `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ea(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&mv.assertOptions(r,{silentJSONParsing:gs.transitional(gs.boolean),forcedJSONParsing:gs.transitional(gs.boolean),clarifyTimeoutError:gs.transitional(gs.boolean)},!1),o!=null&&(q.isFunction(o)?n.paramsSerializer={serialize:o}:mv.assertOptions(o,{encode:gs.function,serialize:gs.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&q.merge(s.common,s[n.method]);s&&q.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),n.headers=In.concat(i,s);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let d,f=0,p;if(!l){const m=[JS.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,c),p=m.length,d=Promise.resolve(n);f<p;)d=d.then(m[f++],m[f++]);return d}p=a.length;let h=n;for(f=0;f<p;){const m=a[f++],g=a[f++];try{h=m(h)}catch(w){g.call(this,w);break}}try{d=JS.call(this,h)}catch(m){return Promise.reject(m)}for(f=0,p=c.length;f<p;)d=d.then(c[f++],c[f++]);return d}getUri(t){t=ea(this.defaults,t);const n=OP(t.baseURL,t.url);return LP(n,t.params,t.paramsSerializer)}};q.forEach(["delete","get","head","options"],function(t){Hi.prototype[t]=function(n,r){return this.request(ea(r||{},{method:t,url:n,data:(r||{}).data}))}});q.forEach(["post","put","patch"],function(t){function n(r){return function(s,i,a){return this.request(ea(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}Hi.prototype[t]=n(),Hi.prototype[t+"Form"]=n(!0)});let mV=class BP{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{r.subscribe(a),s=a}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,a){r.reason||(r.reason=new uc(s,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new BP(function(o){t=o}),cancel:t}}};function gV(e){return function(n){return e.apply(null,n)}}function yV(e){return q.isObject(e)&&e.isAxiosError===!0}const gv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gv).forEach(([e,t])=>{gv[t]=e});function UP(e){const t=new Hi(e),n=xP(Hi.prototype.request,t);return q.extend(n,Hi.prototype,t,{allOwnKeys:!0}),q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return UP(ea(e,o))},n}const $t=UP(dd);$t.Axios=Hi;$t.CanceledError=uc;$t.CancelToken=mV;$t.isCancel=_P;$t.VERSION=VP;$t.toFormData=Fh;$t.AxiosError=Ae;$t.Cancel=$t.CanceledError;$t.all=function(t){return Promise.all(t)};$t.spread=gV;$t.isAxiosError=yV;$t.mergeConfig=ea;$t.AxiosHeaders=In;$t.formToJSON=e=>MP(q.isHTMLForm(e)?new FormData(e):e);$t.getAdapter=zP.getAdapter;$t.HttpStatusCode=gv;$t.default=$t;const{Axios:Lq,AxiosError:HP,CanceledError:Dq,isCancel:Mq,CancelToken:_q,VERSION:Aq,all:Oq,Cancel:$q,isAxiosError:Fq,spread:Iq,toFormData:zq,AxiosHeaders:Vq,HttpStatusCode:Bq,formToJSON:Uq,getAdapter:Hq,mergeConfig:Wq}=$t,dx="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20version='1.1'%20width='3162.083535360532'%20height='664.5235052575761'%20viewBox='0%200%203162.083535360532%20664.5235052575761'%3e%3cg%20transform='scale(8.104176768026598)%20translate(10,%2010)'%3e%3cdefs%20id='SvgjsDefs1329'%3e%3c/defs%3e%3cg%20id='SvgjsG1330'%20featureKey='rDwwlG-0'%20transform='matrix(0.954649031162262,0,0,0.954649031162262,-16.705713611649955,-16.761112928491364)'%20fill='%232177e7'%3e%3ctitle%20xmlns='http://www.w3.org/2000/svg'%3e18%3c/title%3e%3cg%20xmlns='http://www.w3.org/2000/svg'%20data-name='Group'%3e%3cpath%20data-name='Compound%20Path'%20d='M74.2,17.6a8.2,8.2,0,0,0-7.9,6.2H57.9a8.2,8.2,0,1,0,0,4h8.4a8.2,8.2,0,1,0,7.9-10.2ZM50,29.9a4.2,4.2,0,1,1,4.2-4.2A4.2,4.2,0,0,1,50,29.9Zm24.2,0a4.2,4.2,0,1,1,4.2-4.2A4.2,4.2,0,0,1,74.2,29.9Z'%3e%3c/path%3e%3cpath%20data-name='Compound%20Path'%20d='M25.8,66.1a8.2,8.2,0,1,0,8.2,8.2A8.2,8.2,0,0,0,25.8,66.1Zm0,12.3a4.2,4.2,0,1,1,4.2-4.2A4.2,4.2,0,0,1,25.8,78.4Z'%3e%3c/path%3e%3cpath%20data-name='Compound%20Path'%20d='M74.2,41.4a8.1,8.1,0,0,0-5.5,14.2L55.8,68.6A8.2,8.2,0,0,0,52,66.3V57.5a8.2,8.2,0,1,0-4,0v8.8a8.2,8.2,0,1,0,9.9,5.8L72.5,57.6l1.7.2a8.2,8.2,0,1,0,0-16.3ZM45.8,49.6A4.2,4.2,0,1,1,50,53.8,4.2,4.2,0,0,1,45.8,49.6ZM50,78.4a4.2,4.2,0,1,1,4.2-4.2A4.2,4.2,0,0,1,50,78.4ZM74.2,53.8a4.2,4.2,0,1,1,4.2-4.2A4.2,4.2,0,0,1,74.2,53.8Z'%3e%3c/path%3e%3cpath%20data-name='Compound%20Path'%20d='M74.2,66.1a8.2,8.2,0,1,0,8.2,8.2A8.2,8.2,0,0,0,74.2,66.1Zm0,12.3a4.2,4.2,0,1,1,4.2-4.2A4.2,4.2,0,0,1,74.2,78.4Z'%3e%3c/path%3e%3cpath%20data-name='Compound%20Path'%20d='M33.9,25.8a8.2,8.2,0,1,0-9.8,8v8.6a8.2,8.2,0,1,0,4,.2V33.6A8.2,8.2,0,0,0,33.9,25.8Zm-12.3,0a4.2,4.2,0,1,1,4.2,4.2A4.2,4.2,0,0,1,21.6,25.8Zm8.3,24.6a4.2,4.2,0,1,1-4.2-4.2A4.2,4.2,0,0,1,29.9,50.4Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3cg%20id='SvgjsG1331'%20featureKey='4AZ1rv-0'%20transform='matrix(4.099050521850586,0,0,4.099050521850586,81.85226700298837,-22.118641342743626)'%20fill='%23202020'%3e%3cpath%20d='M9.54%2015.82%20l-5.76%200%20l-1.5%204.18%20l-2%200%20l5.4%20-14.36%20l2.2%200%20l5.2%2014.36%20l-2.12%200%20z%20M4.38%2014.1%20l4.46%200%20l-2.12%20-6.32%20l-0.04%200%20z%20M23.119999999999997%2020%20l-1.66%200%20l0%20-1.52%20l-0.04%20-0.04%20c-0.74%201.22%20-1.64%201.86%20-3.32%201.86%20c-1.54%200%20-3.4%20-0.74%20-3.4%20-3.24%20l0%20-7.52%20l1.76%200%20l0%206.94%20c0%201.72%200.88%202.3%202.02%202.3%20c2.22%200%202.88%20-1.96%202.88%20-3.48%20l0%20-5.76%20l1.76%200%20l0%2010.46%20z%20M34.44%205.640000000000001%20l0%2014.36%20l-1.66%200%20l0%20-1.44%20l-0.04%200%20c-0.76%201.42%20-1.96%201.74%20-2.98%201.74%20c-3.56%200%20-4.6%20-3.34%20-4.6%20-5.84%20c0%20-2.94%201.58%20-5.22%204.36%20-5.22%20c1.9%200%202.7%201.18%203.12%201.78%20l0.04%20-0.14%20l0%20-5.24%20l1.76%200%20z%20M26.98%2014.74%20c0%202.3%200.9%204.04%202.82%204.04%20c1.12%200%202.86%20-0.74%202.86%20-3.52%20c0%20-1.7%20-0.28%20-4.44%20-2.82%20-4.44%20c-2.72%200%20-2.86%202.58%20-2.86%203.92%20z%20M38.68%209.54%20l0%2010.46%20l-1.76%200%20l0%20-10.46%20l1.76%200%20z%20M38.68%207.640000000000001%20l-1.76%200%20l0%20-2%20l1.76%200%20l0%202%20z%20M45.16%2011%20l-1.68%200%20l0%206.8%20c0%200.82%200.7%200.82%201.06%200.82%20l0.62%200%20l0%201.38%20c-0.64%200.06%20-1.14%200.14%20-1.32%200.14%20c-1.74%200%20-2.12%20-0.98%20-2.12%20-2.24%20l0%20-6.9%20l-1.42%200%20l0%20-1.46%20l1.42%200%20l0%20-2.92%20l1.76%200%20l0%202.92%20l1.68%200%20l0%201.46%20z%20M48.68%209.54%20l0%2010.46%20l-1.76%200%20l0%20-10.46%20l1.76%200%20z%20M48.68%207.640000000000001%20l-1.76%200%20l0%20-2%20l1.76%200%20l0%202%20z%20M59.22%2010.98%20l-6.24%207.56%20l6.42%200%20l0%201.46%20l-8.76%200%20l0%20-1.38%20l6.3%20-7.62%20l-5.82%200%20l0%20-1.46%20l8.1%200%20l0%201.44%20z%20M68.44%2016.72%20l1.76%200%20c-0.06%200.5%20-0.54%201.98%20-1.86%202.86%20c-0.48%200.32%20-1.16%200.72%20-2.84%200.72%20c-2.94%200%20-4.68%20-2.22%20-4.68%20-5.24%20c0%20-3.24%201.56%20-5.82%205.02%20-5.82%20c3.02%200%204.5%202.4%204.5%206.1%20l-7.64%200%20c0%202.18%201.02%203.44%203.04%203.44%20c1.66%200%202.64%20-1.28%202.7%20-2.06%20z%20M62.699999999999996%2013.940000000000001%20l5.82%200%20c-0.1%20-1.62%20-0.78%20-3.12%20-2.92%20-3.12%20c-1.62%200%20-2.9%201.5%20-2.9%203.12%20z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e";function WP({message:e,textProps:t}){return e?u.jsx(xt,{c:"red",p:"xs",...t,children:e}):null}function KP(){const{t:e}=X();return(t,{raw:n=!1}={})=>{var r,o,s;if(t instanceof HP){const i=(o=(r=t.response)==null?void 0:r.data)==null?void 0:o.localized_message;if(i)return n?i:e("common.error.details",{error:i});{const a=(s=t.response)==null?void 0:s.status;if(a===401||a===403)return e(`common.error.${a}`)}}return e("common.error.unexpected")}}function us({error:e,textProps:t}){const n=KP();return e?u.jsx(WP,{message:n(e),textProps:t}):null}/**
126
+ * @license @tabler/icons-react v3.15.0 - MIT
127
+ *
128
+ * This source code is licensed under the MIT license.
129
+ * See the LICENSE file in the root directory of this source tree.
130
+ */var vV={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/**
131
+ * @license @tabler/icons-react v3.15.0 - MIT
132
+ *
133
+ * This source code is licensed under the MIT license.
134
+ * See the LICENSE file in the root directory of this source tree.
135
+ */const We=(e,t,n,r)=>{const o=v.forwardRef(({color:s="currentColor",size:i=24,stroke:a=2,title:l,className:c,children:d,...f},p)=>v.createElement("svg",{ref:p,...vV[e],width:i,height:i,className:["tabler-icon",`tabler-icon-${t}`,c].join(" "),strokeWidth:a,stroke:s,...f},[l&&v.createElement("title",{key:"svg-title"},l),...r.map(([h,m])=>v.createElement(h,m)),...Array.isArray(d)?d:[d]]));return o.displayName=`${n}`,o};/**
136
+ * @license @tabler/icons-react v3.15.0 - MIT
137
+ *
138
+ * This source code is licensed under the MIT license.
139
+ * See the LICENSE file in the root directory of this source tree.
140
+ */var xV=We("outline","adjustments-horizontal","IconAdjustmentsHorizontal",[["path",{d:"M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M4 6l8 0",key:"svg-1"}],["path",{d:"M16 6l4 0",key:"svg-2"}],["path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-3"}],["path",{d:"M4 12l2 0",key:"svg-4"}],["path",{d:"M10 12l10 0",key:"svg-5"}],["path",{d:"M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-6"}],["path",{d:"M4 18l11 0",key:"svg-7"}],["path",{d:"M19 18l1 0",key:"svg-8"}]]);/**
141
+ * @license @tabler/icons-react v3.15.0 - MIT
142
+ *
143
+ * This source code is licensed under the MIT license.
144
+ * See the LICENSE file in the root directory of this source tree.
145
+ */var bV=We("outline","alert-triangle","IconAlertTriangle",[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);/**
146
+ * @license @tabler/icons-react v3.15.0 - MIT
147
+ *
148
+ * This source code is licensed under the MIT license.
149
+ * See the LICENSE file in the root directory of this source tree.
150
+ */var wV=We("outline","archive","IconArchive",[["path",{d:"M3 4m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10",key:"svg-1"}],["path",{d:"M10 12l4 0",key:"svg-2"}]]);/**
151
+ * @license @tabler/icons-react v3.15.0 - MIT
152
+ *
153
+ * This source code is licensed under the MIT license.
154
+ * See the LICENSE file in the root directory of this source tree.
155
+ */var SV=We("outline","arrow-up","IconArrowUp",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]]);/**
156
+ * @license @tabler/icons-react v3.15.0 - MIT
157
+ *
158
+ * This source code is licensed under the MIT license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */var qP=We("outline","calendar-clock","IconCalendarClock",[["path",{d:"M10.5 21h-4.5a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v3",key:"svg-0"}],["path",{d:"M16 3v4",key:"svg-1"}],["path",{d:"M8 3v4",key:"svg-2"}],["path",{d:"M4 11h10",key:"svg-3"}],["path",{d:"M18 18m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-4"}],["path",{d:"M18 16.5v1.5l.5 .5",key:"svg-5"}]]);/**
161
+ * @license @tabler/icons-react v3.15.0 - MIT
162
+ *
163
+ * This source code is licensed under the MIT license.
164
+ * See the LICENSE file in the root directory of this source tree.
165
+ */var CV=We("outline","check","IconCheck",[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]]);/**
166
+ * @license @tabler/icons-react v3.15.0 - MIT
167
+ *
168
+ * This source code is licensed under the MIT license.
169
+ * See the LICENSE file in the root directory of this source tree.
170
+ */var EV=We("outline","checkbox","IconCheckbox",[["path",{d:"M9 11l3 3l8 -8",key:"svg-0"}],["path",{d:"M20 12v6a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h9",key:"svg-1"}]]);/**
171
+ * @license @tabler/icons-react v3.15.0 - MIT
172
+ *
173
+ * This source code is licensed under the MIT license.
174
+ * See the LICENSE file in the root directory of this source tree.
175
+ */var fx=We("outline","chevron-down","IconChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]);/**
176
+ * @license @tabler/icons-react v3.15.0 - MIT
177
+ *
178
+ * This source code is licensed under the MIT license.
179
+ * See the LICENSE file in the root directory of this source tree.
180
+ */var kV=We("outline","chevron-right","IconChevronRight",[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]]);/**
181
+ * @license @tabler/icons-react v3.15.0 - MIT
182
+ *
183
+ * This source code is licensed under the MIT license.
184
+ * See the LICENSE file in the root directory of this source tree.
185
+ */var jV=We("outline","chevron-up","IconChevronUp",[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]]);/**
186
+ * @license @tabler/icons-react v3.15.0 - MIT
187
+ *
188
+ * This source code is licensed under the MIT license.
189
+ * See the LICENSE file in the root directory of this source tree.
190
+ */var RV=We("outline","columns-3","IconColumns3",[["path",{d:"M3 3m0 1a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v16a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1zm6 -1v18m6 -18v18",key:"svg-0"}]]);/**
191
+ * @license @tabler/icons-react v3.15.0 - MIT
192
+ *
193
+ * This source code is licensed under the MIT license.
194
+ * See the LICENSE file in the root directory of this source tree.
195
+ */var PV=We("outline","copy","IconCopy",[["path",{d:"M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z",key:"svg-0"}],["path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-1"}]]);/**
196
+ * @license @tabler/icons-react v3.15.0 - MIT
197
+ *
198
+ * This source code is licensed under the MIT license.
199
+ * See the LICENSE file in the root directory of this source tree.
200
+ */var TV=We("outline","corner-down-right","IconCornerDownRight",[["path",{d:"M6 6v6a3 3 0 0 0 3 3h10l-4 -4m0 8l4 -4",key:"svg-0"}]]);/**
201
+ * @license @tabler/icons-react v3.15.0 - MIT
202
+ *
203
+ * This source code is licensed under the MIT license.
204
+ * See the LICENSE file in the root directory of this source tree.
205
+ */var YP=We("outline","cylinder","IconCylinder",[["path",{d:"M12 6m-7 0a7 3 0 1 0 14 0a7 3 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M5 6v12c0 1.657 3.134 3 7 3s7 -1.343 7 -3v-12",key:"svg-1"}]]);/**
206
+ * @license @tabler/icons-react v3.15.0 - MIT
207
+ *
208
+ * This source code is licensed under the MIT license.
209
+ * See the LICENSE file in the root directory of this source tree.
210
+ */var eC=We("outline","device-floppy","IconDeviceFloppy",[["path",{d:"M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2",key:"svg-0"}],["path",{d:"M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M14 4l0 4l-6 0l0 -4",key:"svg-2"}]]);/**
211
+ * @license @tabler/icons-react v3.15.0 - MIT
212
+ *
213
+ * This source code is licensed under the MIT license.
214
+ * See the LICENSE file in the root directory of this source tree.
215
+ */var NV=We("outline","dots","IconDots",[["path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]]);/**
216
+ * @license @tabler/icons-react v3.15.0 - MIT
217
+ *
218
+ * This source code is licensed under the MIT license.
219
+ * See the LICENSE file in the root directory of this source tree.
220
+ */var yv=We("outline","download","IconDownload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 11l5 5l5 -5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]]);/**
221
+ * @license @tabler/icons-react v3.15.0 - MIT
222
+ *
223
+ * This source code is licensed under the MIT license.
224
+ * See the LICENSE file in the root directory of this source tree.
225
+ */var LV=We("outline","exclamation-circle","IconExclamationCircle",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 9v4",key:"svg-1"}],["path",{d:"M12 16v.01",key:"svg-2"}]]);/**
226
+ * @license @tabler/icons-react v3.15.0 - MIT
227
+ *
228
+ * This source code is licensed under the MIT license.
229
+ * See the LICENSE file in the root directory of this source tree.
230
+ */var GP=We("outline","filter","IconFilter",[["path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z",key:"svg-0"}]]);/**
231
+ * @license @tabler/icons-react v3.15.0 - MIT
232
+ *
233
+ * This source code is licensed under the MIT license.
234
+ * See the LICENSE file in the root directory of this source tree.
235
+ */var QP=We("outline","hierarchy","IconHierarchy",[["path",{d:"M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M5 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M19 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-2"}],["path",{d:"M6.5 17.5l5.5 -4.5l5.5 4.5",key:"svg-3"}],["path",{d:"M12 7l0 6",key:"svg-4"}]]);/**
236
+ * @license @tabler/icons-react v3.15.0 - MIT
237
+ *
238
+ * This source code is licensed under the MIT license.
239
+ * See the LICENSE file in the root directory of this source tree.
240
+ */var DV=We("outline","info-square","IconInfoSquare",[["path",{d:"M12 9h.01",key:"svg-0"}],["path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z",key:"svg-1"}],["path",{d:"M11 12h1v4h1",key:"svg-2"}]]);/**
241
+ * @license @tabler/icons-react v3.15.0 - MIT
242
+ *
243
+ * This source code is licensed under the MIT license.
244
+ * See the LICENSE file in the root directory of this source tree.
245
+ */var MV=We("outline","key","IconKey",[["path",{d:"M16.555 3.843l3.602 3.602a2.877 2.877 0 0 1 0 4.069l-2.643 2.643a2.877 2.877 0 0 1 -4.069 0l-.301 -.301l-6.558 6.558a2 2 0 0 1 -1.239 .578l-.175 .008h-1.172a1 1 0 0 1 -.993 -.883l-.007 -.117v-1.172a2 2 0 0 1 .467 -1.284l.119 -.13l.414 -.414h2v-2h2v-2l2.144 -2.144l-.301 -.301a2.877 2.877 0 0 1 0 -4.069l2.643 -2.643a2.877 2.877 0 0 1 4.069 0z",key:"svg-0"}],["path",{d:"M15 9h.01",key:"svg-1"}]]);/**
246
+ * @license @tabler/icons-react v3.15.0 - MIT
247
+ *
248
+ * This source code is licensed under the MIT license.
249
+ * See the LICENSE file in the root directory of this source tree.
250
+ */var _V=We("outline","language","IconLanguage",[["path",{d:"M4 5h7",key:"svg-0"}],["path",{d:"M9 3v2c0 4.418 -2.239 8 -5 8",key:"svg-1"}],["path",{d:"M5 9c0 2.144 2.952 3.908 6.7 4",key:"svg-2"}],["path",{d:"M12 20l4 -9l4 9",key:"svg-3"}],["path",{d:"M19.1 18h-6.2",key:"svg-4"}]]);/**
251
+ * @license @tabler/icons-react v3.15.0 - MIT
252
+ *
253
+ * This source code is licensed under the MIT license.
254
+ * See the LICENSE file in the root directory of this source tree.
255
+ */var AV=We("outline","layout-navbar-collapse","IconLayoutNavbarCollapse",[["path",{d:"M4 18v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M4 9h16",key:"svg-1"}],["path",{d:"M10 16l2 -2l2 2",key:"svg-2"}]]);/**
256
+ * @license @tabler/icons-react v3.15.0 - MIT
257
+ *
258
+ * This source code is licensed under the MIT license.
259
+ * See the LICENSE file in the root directory of this source tree.
260
+ */var OV=We("outline","layout-navbar-expand","IconLayoutNavbarExpand",[["path",{d:"M4 18v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M4 9h16",key:"svg-1"}],["path",{d:"M10 14l2 2l2 -2",key:"svg-2"}]]);/**
261
+ * @license @tabler/icons-react v3.15.0 - MIT
262
+ *
263
+ * This source code is licensed under the MIT license.
264
+ * See the LICENSE file in the root directory of this source tree.
265
+ */var $V=We("outline","list-details","IconListDetails",[["path",{d:"M13 5h8",key:"svg-0"}],["path",{d:"M13 9h5",key:"svg-1"}],["path",{d:"M13 15h8",key:"svg-2"}],["path",{d:"M13 19h5",key:"svg-3"}],["path",{d:"M3 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-4"}],["path",{d:"M3 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-5"}]]);/**
266
+ * @license @tabler/icons-react v3.15.0 - MIT
267
+ *
268
+ * This source code is licensed under the MIT license.
269
+ * See the LICENSE file in the root directory of this source tree.
270
+ */var FV=We("outline","paperclip","IconPaperclip",[["path",{d:"M15 7l-6.5 6.5a1.5 1.5 0 0 0 3 3l6.5 -6.5a3 3 0 0 0 -6 -6l-6.5 6.5a4.5 4.5 0 0 0 9 9l6.5 -6.5",key:"svg-0"}]]);/**
271
+ * @license @tabler/icons-react v3.15.0 - MIT
272
+ *
273
+ * This source code is licensed under the MIT license.
274
+ * See the LICENSE file in the root directory of this source tree.
275
+ */var XP=We("outline","plus","IconPlus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]]);/**
276
+ * @license @tabler/icons-react v3.15.0 - MIT
277
+ *
278
+ * This source code is licensed under the MIT license.
279
+ * See the LICENSE file in the root directory of this source tree.
280
+ */var IV=We("outline","refresh","IconRefresh",[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]]);/**
281
+ * @license @tabler/icons-react v3.15.0 - MIT
282
+ *
283
+ * This source code is licensed under the MIT license.
284
+ * See the LICENSE file in the root directory of this source tree.
285
+ */var zV=We("outline","route","IconRoute",[["path",{d:"M3 19a2 2 0 1 0 4 0a2 2 0 0 0 -4 0",key:"svg-0"}],["path",{d:"M19 7a2 2 0 1 0 0 -4a2 2 0 0 0 0 4z",key:"svg-1"}],["path",{d:"M11 19h5.5a3.5 3.5 0 0 0 0 -7h-8a3.5 3.5 0 0 1 0 -7h4.5",key:"svg-2"}]]);/**
286
+ * @license @tabler/icons-react v3.15.0 - MIT
287
+ *
288
+ * This source code is licensed under the MIT license.
289
+ * See the LICENSE file in the root directory of this source tree.
290
+ */var VV=We("outline","search","IconSearch",[["path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]]);/**
291
+ * @license @tabler/icons-react v3.15.0 - MIT
292
+ *
293
+ * This source code is licensed under the MIT license.
294
+ * See the LICENSE file in the root directory of this source tree.
295
+ */var JP=We("outline","tags","IconTags",[["path",{d:"M3 8v4.172a2 2 0 0 0 .586 1.414l5.71 5.71a2.41 2.41 0 0 0 3.408 0l3.592 -3.592a2.41 2.41 0 0 0 0 -3.408l-5.71 -5.71a2 2 0 0 0 -1.414 -.586h-4.172a2 2 0 0 0 -2 2z",key:"svg-0"}],["path",{d:"M18 19l1.592 -1.592a4.82 4.82 0 0 0 0 -6.816l-4.592 -4.592",key:"svg-1"}],["path",{d:"M7 10h-.01",key:"svg-2"}]]);/**
296
+ * @license @tabler/icons-react v3.15.0 - MIT
297
+ *
298
+ * This source code is licensed under the MIT license.
299
+ * See the LICENSE file in the root directory of this source tree.
300
+ */var BV=We("outline","trash","IconTrash",[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]]);/**
301
+ * @license @tabler/icons-react v3.15.0 - MIT
302
+ *
303
+ * This source code is licensed under the MIT license.
304
+ * See the LICENSE file in the root directory of this source tree.
305
+ */var ZP=We("outline","user","IconUser",[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]]);/**
306
+ * @license @tabler/icons-react v3.15.0 - MIT
307
+ *
308
+ * This source code is licensed under the MIT license.
309
+ * See the LICENSE file in the root directory of this source tree.
310
+ */var UV=We("outline","users","IconUsers",[["path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"svg-2"}],["path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85",key:"svg-3"}]]);function xo({color:e,icon:t,title:n,textProps:r,children:o}){return u.jsx(eh,{title:n,variant:"light",color:e,icon:t,children:u.jsx(xt,{size:"sm",...r,children:o})})}function HV({title:e,textProps:t,children:n}){return u.jsx(xo,{color:"green",icon:u.jsx(EV,{}),title:e,textProps:t,children:n})}xo.Success=HV;function WV({title:e,textProps:t,children:n}){return u.jsx(xo,{icon:u.jsx(DV,{}),title:e,textProps:t,children:n})}xo.Info=WV;function KV({title:e,textProps:t,children:n}){return u.jsx(xo,{color:"orange",icon:u.jsx(bV,{}),title:e,textProps:t,children:n})}xo.Warning=KV;function fd({validateButtonLabel:e,onClose:t,closeOnly:n=!1,dangerous:r=!1}){const{t:o}=X();return u.jsx(Ge,{justify:"center",children:n?u.jsx(Tt,{onClick:t,children:o("common.close")}):u.jsxs(u.Fragment,{children:[u.jsx(Tt,{onClick:t,variant:"default",children:o("common.cancel")}),u.jsx(Tt,{type:"submit",color:r?"red":void 0,children:e})]})})}function dc({children:e}){return u.jsx(xt,{fw:550,size:"lg",children:e})}const qV={navigation:{management:"Management",repositories:"Repositories",users:"Users",apikeys:"API Keys",logs:"Logs",logi18nprofiles:"Log translations",preferences:"Preferences",logout:"Logout"},language:{fr:"French",en:"English"},repo:{repo:"Repository",repos:"Repositories",storage:"Storage",lastLog:"Last log",form:{name:{label:"Name",placeholder:"Repository name",required:"Repository name is required."},logI18nProfile:{label:"Translations",placeholder:"Select a log translation profile"},retentionPeriod:{label:"Retention period",placeholder:"Retention period in days"},status:{label:"Status",value:{enabled:"Enabled",readonly:"Read-only",disabled:"Disabled"}}},create:{title:"Create a repository"},edit:{title:"Edit repository"},list:{title:"Repositories",column:{name:"Name",id:"ID",status:"Status",retentionPeriod:"Retention",retentionPeriodValue:"{{days}}d",logs:"Logs",storage:"Storage",createdAt:"Created At",lastLog:"Last Log"}},delete:{confirm:"Do you confirm the deletion of the log repository <1>{{name}}</1>?"}},logi18nprofile:{logi18nprofile:"Translation profile",logi18nprofiles:"Log translation profiles",form:{name:{label:"Name",placeholder:"Profile name",required:"The profile name is required."},file:{label:"Translation file for: {{lang}}",choose:"Select file",configured:"Translation configured"}},create:{title:"Create a log translation profile"},edit:{title:"Edit log translation profile"},list:{title:"Log translations",column:{name:"Name",createdAt:"Created at",langs:"Languages"}},delete:{confirm:"Do you confirm the deletion of the log translation profile <1>{{name}}</1>?"}},user:{user:"User",form:{firstName:{label:"First Name",placeholder:"User's first name",required:"First name is required."},lastName:{label:"Last Name",placeholder:"User's last name",required:"Last name is required."},email:{label:"Email",placeholder:"User's email",required:"Email is invalid."},language:{label:"Language"}},list:{title:"Users",column:{name:"Name",email:"Email",permissions:"Permissions"}},create:{title:"Create a user"},edit:{title:"Edit user"},delete:{confirm:"Do you confirm the deletion of the user <1>{{name}}</1>?"}},apikey:{apikey:"API Key",list:{title:"API Keys",column:{name:"Name",permissions:"Permissions"}},form:{name:{label:"Name",placeholder:"Key name",required:"Key name is required."},key:{label:"Secret Key",placeholder:{create:"The secret will be displayed once the key has been saved",update:"You can generate a new secret by clicking the refresh button"}}},create:{title:"Create an API key"},edit:{title:"Edit API key"},delete:{confirm:"Do you confirm the deletion of the API key <1>{{name}}</1>?"}},log:{log:"Log",logs:"Logs",date:"Date",dateFrom:"From",dateTo:"To",action:"Action",actionCategory:"Action category",actionType:"Action type",actor:"Actor",actorType:"Actor type",actorName:"Actor name",actorRef:"Actor ref.",source:"Source",resource:"Resource",resourceType:"Resource type",resourceName:"Resource name",resourceRef:"Resource ref.",details:"Details",tag:"Tag",tags:"Tags",tagType:"Tag type",tagTypes:"Tag types",tagName:"Tag name",tagNames:"Tag names",tagRef:"Tag refs.",tagRefs:"Tag refs.",hasAttachment:"Has attachment",attachment:"Attachment",attachments:"Attachments",attachmentType:"Attachment type",attachmentTypes:"Attachment types",attachmentMimeType:"Attachment MIME type",attachmentMimeTypes:"Attachment MIME types",attachmentName:"Attachment name",attachmentNames:"Attachment names",attachmentRef:"Attachment ref.",attachmentRefs:"Attachment refs.",downloadAttachment:"Download attachment",entity:"Entity",list:{columnSelector:{reset:"Reset columns"},searchParams:{apply:"Apply",clear:"Clear"},documentTitle:"Logs",noResults:"No results",noRepos:"No repositories have been created yet.",loadMore:"Load more",untilMustBeGreaterThanSince:"The end date must be greater than the start date"},view:{name:"Name",type:"Type",ref:"Reference"},csv:{csv:"CSV",csvExportDefault:"Export as CSV (default columns)",csvExportCurrent:"Export as CSV (selected columns)"},filter:{filter:"Filter",filters:"Filters",save:"Save filter",update:"Update current filter",updateError:"Unable to update filter",updateSuccess:"The filter has been updated",manage:"Manage filters",form:{name:{label:"Name",placeholder:"Filter name",required:"Filter name is required."}},create:{title:"Save log filter"},edit:{title:"Edit log filter"},delete:{confirm:"Do you confirm the deletion of filter <1>{{name}}</1>?"},list:{title:"Log Filters",column:{name:"Name"},apply:"Apply filter"}},inlineFilter:{filterOn:"Filter on {{field}}",field:{actor:"this actor",actorType:"this actor's type",actorRef:"this actor's ref.",actorName:"this actor's name",actorCustomField:"this actor's {{field}}",actionType:"this action type",actionCategory:"this action category",resource:"this resource",resourceType:"this resource's type",resourceRef:"this resource's ref.",resourceName:"this resource's name",resourceCustomField:"this resource's {{field}}",tag:"this tag",tagType:"this tag's type",tagName:"this tag's name",tagRef:"this tag's ref.",attachmentType:"this attachment's type",attachmentMimeType:"this MIME type",attachmentName:"this attachment's name",entity:"this entity",sourceField:"this {{field}}",detailField:"this {{field}}"}}},permission:{tab:{general:"General",permissions:"Permissions"},read:"Read",write:"Write",superadmin:"Superadmin (all permissions)",management:"Management",repositories:"Repositories",users:"Users",apikeys:"API Keys",logs:"Logs",allRepos:"All repositories",entities:"Entities",summary:{read:"read",write:"write",readwrite:"rw",partial:"partial",superadmin:"Superadmin"}},common:{name:"Name",id:"ID",status:"Status",createdAt:"Created at",copy:"Copy",copied:"Copied",enabled:"Enabled",disabled:"Disabled",readonly:"Read-only",save:"Save",cancel:"Cancel",confirm:"Confirm",submit:"Submit",delete:"Delete",close:"Close",clear:"Clear",ok:"Ok",loading:"Loading...",noData:"No data",notCurrentlyAvailable:"Not currently available",unexpectedError:"An error occurred",send:"Send",scrollToTop:"Scroll to top",moreDetails:"More details",lessDetails:"Less details",chooseAValue:"Choose a value",passwordForm:{password:{label:"Password",placeholder:"Password",required:"Password is required.",tooShort:"Password must be at least {{min}} characters long."},passwordConfirmation:{label:"Password confirmation",placeholder:"Password confirmation",doesNotMatch:"Passwords do not match."}},error:{error:"Error",details:"Error: {{error}}",unexpected:"An unexpected error occurred.",401:"Authentication error",403:"Error: Permission denied"}},resource:{list:{search:"Search",delete:"Delete"},edit:{save:"Save",cancel:"Cancel"},delete:{confirm:{title:"Confirm deletion"}}},accountSettings:{title:"Account Settings",tab:{general:"General",password:"Password"},form:{lang:{label:"Language"}}},logout:{title:"Confirm logout",confirm:"Do you really want to log out?",expiration:"Your session has expired, you need to log in again."},login:{title:"Login",welcome:"Welcome to Auditize",form:{email:{label:"Email",placeholder:"Your email",invalid:"Invalid email"},password:{label:"Password",placeholder:"Your password"}},signIn:"Login",invalidCredentials:"Invalid email or password. Please try again."},forgotPassword:{link:"I forgot my password",title:"Ask for a password reset",description:"Enter your email address to receive a password reset link.",emailSent:"A password reset link has been sent to your email address (if your email address is correct).",form:{email:{label:"Email",placeholder:"Your email",invalid:"Invalid email"}}},passwordSetup:{form:{firstName:{label:"First Name"},lastName:{label:"Last Name"},email:{label:"Email"}},accountSetup:{title:"Set up your account",success:"The setup of your user account is now complete."},passwordReset:{title:"Reset your Auditize password",success:"Your password has been successfully updated."},loginLink:"You can now log in by <1>clicking on this link</1>.",documentTitle:"Password Change"}},YV={navigation:{management:"Gestion",repositories:"Dépôts",users:"Utilisateurs",apikeys:"Clés d'API",logs:"Journaux",logi18nprofiles:"Traductions des journaux",preferences:"Préférences",logout:"Déconnexion"},language:{fr:"Français",en:"Anglais"},repo:{repo:"Dépôt",repos:"Dépôts",storage:"Stockage",lastLog:"Dernier journal",form:{name:{label:"Nom",placeholder:"Nom du dépôt",required:"Le nom du dépôt est requis."},logI18nProfile:{label:"Traductions",placeholder:"Sélectionner un profil de traduction"},retentionPeriod:{label:"Période de rétention",placeholder:"Période de rétention en jours"},status:{label:"Statut",value:{enabled:"Activé",readonly:"Lecture seule",disabled:"Désactivé"}}},create:{title:"Créer un dépôt"},edit:{title:"Modifier le dépôt"},list:{title:"Dépôts",column:{name:"Nom",id:"Identifiant",status:"Statut",retentionPeriod:"Rétention",retentionPeriodValue:"{{days}}j",logs:"Journaux",storage:"Stockage",createdAt:"Date de création",lastLog:"Dernier journal"}},delete:{confirm:"Confirmez-vous la suppression du dépôt de journaux <1>{{name}}</1> ?"}},logi18nprofile:{logi18nprofile:"Profil de traduction",logi18nprofiles:"Profils de traduction des journaux",form:{name:{label:"Nom",placeholder:"Nom du profil",required:"Le nom du profil est requis."},file:{label:"Fichier de traduction pour: {{lang}}",choose:"Sélectionner un fichier",configured:"Traduction configurée"}},create:{title:"Créer un profil de traduction des journaux"},edit:{title:"Modifier le profil de traduction des journaux"},list:{title:"Traduction des journaux",column:{name:"Nom",createdAt:"Date de création",langs:"Langues"}},delete:{confirm:"Confirmez-vous la suppression du profil de traduction des journaux <1>{{name}}</1> ?"}},user:{user:"Utilisateur",form:{firstName:{label:"Prénom",placeholder:"Prénom de l'utilisateur",required:"Le prénom est requis."},lastName:{label:"Nom",placeholder:"Nom de l'utilisateur",required:"Le nom est requis."},email:{label:"Email",placeholder:"Email de l'utilisateur",required:"L'email est invalide."},language:{label:"Langue"}},list:{title:"Utilisateurs",column:{name:"Nom",email:"Email",permissions:"Permissions"}},create:{title:"Créer un utilisateur"},edit:{title:"Modifier l'utilisateur"},delete:{confirm:"Confirmez-vous la suppression de l'utilisateur <1>{{name}}</1> ?"}},apikey:{apikey:"Clé d'API",list:{title:"Clés d'API",column:{name:"Nom",permissions:"Permissions"}},form:{name:{label:"Nom",placeholder:"Nom de la clé",required:"Le nom de la clé est requis."},key:{label:"Clé secrète",placeholder:{create:"Le secret sera affiché une fois que la clé aura été sauvegardée",update:"Vous pouvez générer un nouveau secret en cliquant sur le bouton rafraîchir"}}},create:{title:"Créer une clé d'API"},edit:{title:"Modifier la clé d'API"},delete:{confirm:"Confirmez-vous la suppression de la clé d'API <1>{{name}}</1> ?"}},log:{log:"Journal",logs:"Journaux",date:"Date",dateFrom:"À partir de",dateTo:"Jusqu'à",action:"Action",actionCategory:"Catégorie de l'action",actionType:"Type de l'action",actor:"Acteur",actorType:"Type de l'acteur",actorName:"Nom de l'acteur",actorRef:"Référence de l'acteur",source:"Source",resource:"Ressource",resourceType:"Type de ressource",resourceName:"Nom de la ressource",resourceRef:"Référence de la ressource",details:"Détails",tag:"Étiquette",tags:"Étiquettes",tagType:"Type de l'étiquette",tagTypes:"Types d'étiquettes",tagName:"Nom de l'étiquette",tagNames:"Noms des étiquettes",tagRef:"Référence de l'étiquette",tagRefs:"Références des étiquettes",hasAttachment:"Inclut une pièce jointe",attachment:"Pièce jointe",attachments:"Pièces jointes",attachmentType:"Type de pièce jointe",attachmentTypes:"Types de pièces jointes",attachmentMimeType:"Type MIME de la pièce jointe",attachmentMimeTypes:"Types MIME des pièces jointes",attachmentName:"Nom de la pièce jointe",attachmentNames:"Noms des pièces jointes",attachmentRef:"Référence de la pièce jointe",attachmentRefs:"Références des pièces jointes",downloadAttachment:"Télécharger la pièce jointe",entity:"Entité",list:{columnSelector:{reset:"Réinitialiser les colonnes"},searchParams:{apply:"Appliquer",clear:"Effacer"},documentTitle:"Journaux",noRepos:"Aucun dépôt de journaux n'a encore été créé",noResults:"Pas de résultats",loadMore:"Voir plus",untilMustBeGreaterThanSince:"La date de fin doit être postérieure à celle de début"},view:{name:"Nom",type:"Type",ref:"Référence"},csv:{csv:"CSV",csvExportDefault:"Exporter en CSV (colonnes par défaut)",csvExportCurrent:"Exporter en CSV (colonnes affichées)"},filter:{filter:"Filtre",filters:"Filtres",save:"Sauvegarder le filtre",update:"Mettre à jour le filtre actif",updateError:"Impossible de mettre à jour le filtre",updateSuccess:"Le filtre a été mis à jour",manage:"Gérer les filtres",form:{name:{label:"Nom",placeholder:"Nom du filtre",required:"Le nom du filtre est requis."}},create:{title:"Sauvegarder le filtre"},edit:{title:"Modifier le filtre"},delete:{confirm:"Confirmez-vous la suppression du filtre <1>{{name}}</1> ?"},list:{title:"Filtres",column:{name:"Nom"},apply:"Appliquer le filtre"}},inlineFilter:{filterOn:"Filtrer sur {{field}}",field:{actor:"cet acteur",actorType:"ce type d'acteur",actorRef:"cette référence d'acteur",actorName:"ce nom d'acteur",actorCustomField:"le champ {{field}} de cet acteur",actionType:"ce type d'action",actionCategory:"cette catégorie d'action",resource:"cette ressource",resourceType:"ce type de ressource",resourceRef:"cette référence de ressource",resourceName:"ce nom de ressource",resourceCustomField:"le champ {{field}} de cette ressource",tag:"cette étiquette",tagType:"ce type d'étiquette",tagName:"ce nom d'étiquette",tagRef:"cette référence d'étiquette",attachmentType:"ce type de pièce jointe",attachmentMimeType:"ce type MIME",attachmentName:"ce nom de pièce jointe",entity:"cette entité",sourceField:"ce champ {{field}}",detailField:"ce champ {{field}}"}}},permission:{tab:{general:"Général",permissions:"Permissions"},read:"Lecture",write:"Écriture",superadmin:"Super administrateur (toutes les permissions)",management:"Gestion",repositories:"Dépôts",users:"Utilisateurs",apikeys:"Clés d'API",logs:"Journaux",allRepos:"Tous les dépôts",entities:"Entités",summary:{read:"lecture",write:"écriture",readwrite:"lecture/écriture",partial:"partiel",superadmin:"Super administrateur"}},common:{name:"Nom",id:"ID",status:"Statut",createdAt:"Date de création",copy:"Copier",copied:"Copié",enabled:"Activé",disabled:"Désactivé",readonly:"Lecture seule",save:"Enregistrer",cancel:"Annuler",confirm:"Confirmer",submit:"Valider",delete:"Supprimer",close:"Fermer",clear:"Effacer",ok:"Ok",loading:"Chargement...",noData:"Aucune donnée",notCurrentlyAvailable:"Actuellement indisponible",unexpectedError:"Une erreur est survenue",send:"Envoyer",scrollToTop:"Revenir en haut",moreDetails:"Plus de détails",lessDetails:"Moins de détails",chooseAValue:"Choisissez une valeur",passwordForm:{password:{label:"Mot de passe",placeholder:"Mot de passe",required:"Le mot de passe est requis.",tooShort:"Le mot de passe doit contenir au moins {{min}} caractères."},passwordConfirmation:{label:"Confirmation du mot de passe",placeholder:"Confirmation du mot de passe",doesNotMatch:"Les mots de passe ne correspondent pas."}},error:{error:"Erreur",details:"Erreur: {{error}}",unexpected:"Une erreur inattendue est survenue",401:"Erreur d'authentification",403:"Erreur: Cette opération n'est pas autorisée"}},resource:{list:{search:"Rechercher",delete:"Supprimer"},edit:{save:"Enregistrer",cancel:"Annuler"},delete:{confirm:{title:"Confirmer la suppression"}}},accountSettings:{title:"Paramètres du compte",tab:{general:"Général",password:"Mot de passe"},form:{lang:{label:"Langue"}}},logout:{title:"Confirmer la déconnexion",confirm:"Souhaitez-vous vraiment vous déconnecter ?",expiration:"Votre session a expiré, vous devez vous reconnecter."},login:{title:"Connexion",welcome:"Bienvenue sur Auditize",form:{email:{label:"Email",placeholder:"Votre email",invalid:"Email invalide"},password:{label:"Mot de passe",placeholder:"Votre mot de passe"}},signIn:"Connexion",invalidCredentials:"Email ou mot de passe incorrect. Veuillez réessayer."},forgotPassword:{link:"Mot de passe oublié ?",title:"Demander un changement de mot de passe",description:"Veuillez saisir votre email pour recevoir un lien de réinitialisation de votre mot de passe.",emailSent:"Un email de réinitialisation de mot de passe vous a été envoyé (si l'adresse email indiquée est valide).",form:{email:{label:"Email",placeholder:"Votre email",invalid:"Email invalide"}}},passwordSetup:{form:{firstName:{label:"Prénom"},lastName:{label:"Nom"},email:{label:"Email"}},accountSetup:{title:"Finalisez la création de votre compte",success:"La création de votre compte a été finalisée avec succès."},passwordReset:{title:"Réinitialisez votre mot de passe Auditize",success:"Votre mot de passe a été réinitialisé avec succès."},loginLink:"Vous pouvez maintenant vous connecter en <1>cliquant sur ce lien</1>.",documentTitle:"Changement du mot de passe"}};function GV(){Gt.use(D6).init({resources:{en:{translation:qV},fr:{translation:YV}},fallbackLng:"en",interpolation:{escapeValue:!1}})}GV();const eT=v.createContext(null);function lf({lang:e,children:t}){const{i18n:n}=X(),[r,o]=ul({key:"auditize-lang",getInitialValueInEffect:!1}),s=e??r??window.navigator.language;return v.useEffect(()=>{n.changeLanguage(s),o(s)},[s]),u.jsx(eT.Provider,{value:{lang:s},children:t})}function pd(){const e=v.useContext(eT);if(!e)throw new Error("useI18nContext must be used within an I18nProvider");return e}const qo=$t.create({baseURL:"/api",withCredentials:!0}),bg=NaN,tC=NaN;bg&&tC&&qo.interceptors.request.use(e=>{const t=Math.random()*1e4%(tC-bg)+bg;return new Promise(n=>setTimeout(()=>{n(e)},t))},e=>Promise.reject(e));function QV(e,t){const n=qo.interceptors.response.use(r=>r,r=>(r.response.status===e&&t(r),Promise.reject(r)));return()=>{qo.interceptors.response.eject(n)}}const XV=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),JV=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),ZV=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),eB=/[^\p{L}\d]+/giu,nC="$1\0$2",rC="";function tT(e){let t=e.trim();t=t.replace(XV,nC).replace(JV,nC),t=t.replace(eB,"\0");let n=0,r=t.length;for(;t.charAt(n)==="\0";)n++;if(n===r)return[];for(;t.charAt(r-1)==="\0";)r--;return t.slice(n,r).split(/\0/g)}function tB(e){const t=tT(e);for(let n=0;n<t.length;n++){const r=t[n],o=ZV.exec(r);if(o){const s=o.index+(o[1]??o[2]).length;t.splice(n,1,r.slice(0,s),r.slice(s))}}return t}function nB(e,t){const[n,r,o]=sT(e,t);return n+r.map(oT(t==null?void 0:t.locale)).join((t==null?void 0:t.delimiter)??" ")+o}function nT(e,t){const[n,r,o]=sT(e,t),s=oT(t==null?void 0:t.locale),i=rB(t==null?void 0:t.locale),a=t!=null&&t.mergeAmbiguousCharacters?oB(s,i):sB(s,i);return n+r.map((l,c)=>c===0?s(l):a(l,c)).join((t==null?void 0:t.delimiter)??"")+o}function rT(e,t){return nB(e,{delimiter:"_",...t})}function oT(e){return e===!1?t=>t.toLowerCase():t=>t.toLocaleLowerCase(e)}function rB(e){return e===!1?t=>t.toUpperCase():t=>t.toLocaleUpperCase(e)}function oB(e,t){return n=>`${t(n[0])}${e(n.slice(1))}`}function sB(e,t){return(n,r)=>{const o=n[0];return(r>0&&o>="0"&&o<="9"?"_"+o:t(o))+e(n.slice(1))}}function sT(e,t={}){const n=t.split??(t.separateNumbers?tB:tT),r=t.prefixCharacters??rC,o=t.suffixCharacters??rC;let s=0,i=e.length;for(;s<e.length;){const a=e.charAt(s);if(!r.includes(a))break;s++}for(;i>s;){const a=i-1,l=e.charAt(a);if(!o.includes(l))break;i=a}return[e.slice(0,s),n(e.slice(s,i)),e.slice(i)]}const iB=e=>e!==null&&typeof e=="object";function iT(e){return function t(n,r=1,o){if(r===0||!iB(n))return n;if(Array.isArray(n))return n.map(i=>t(i,r-1,o));const s=Object.create(Object.getPrototypeOf(n));return Object.keys(n).forEach(i=>{const a=n[i],l=e(i,o),c=t(a,r-1,o);s[l]=c}),s}}const aB=iT(nT),lB=iT(rT),aT=999;function lT(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").toLowerCase().split(" ")}function cT(e){return e.split("_")}function cB(e){return nT(e,{split:cT})}function uT(e){return rT(e,{split:lT})}function hd(e){return aB(e,aT,{split:cT})}function ta(e){return lB(e,aT,{split:lT})}async function Hn(e,t={}){let n=1;const r=[];for(;;){const o=await qo.get(e,{params:ta({page:n,...t})}),{items:s,pagination:i}=o.data;if(r.push(...hd(s)),i.page>=i.total_pages)break;n++}return r}async function ko(e,t,n={}){const r=await qo.post(e,ta(t),{params:ta(n)});return hd(r.data)}async function fc(e,t){const n=await qo.patch(e,ta(t));return hd(n.data)}async function md(e){await qo.delete(e)}async function Jr(e,t={},{raw:n=!1}={}){const r=await qo.get(e,{params:n?t:ta(t)});return n?r.data:hd(r.data)}async function gd(e,t={}){const n=await qo.get(e,{params:ta(t)});return[hd(n.data.items),n.data.pagination]}async function uB(e,t,n){return await ko("/auth/user/login",{email:e,password:t},{lang:n})}async function dB(){await ko("/auth/user/logout",{})}async function fB(){return Jr("/users/me")}async function pB(e,t){return ko("/users/forgot-password",{email:e},{lang:t})}const dT=v.createContext(null);function hB({children:e}){const[t,n]=v.useState(null),[r,o]=v.useState(!1),s=ot({queryKey:["/users/me"],queryFn:()=>fB(),staleTime:1/0}),i=r?null:t||s.data||null;return u.jsx(dT.Provider,{value:{currentUser:i,declareLogin:a=>{n(a),o(!1)},declareLogout:()=>{n(null),o(!0)},updateUserInfo:a=>{n(a)},isAuthenticated:i!==null,isRefreshingAuthData:s.isPending},children:e})}function zh(){const e=v.useContext(dT);if(!e)throw new Error("useCurrentUser must be used within an AuthProvider");return e}function jo(){const{currentUser:e,declareLogout:t,updateUserInfo:n}=zh();if(!e)throw new Error("User is not authenticated");return{currentUser:e,declareLogout:t,updateUserInfo:n}}function fT(e){return e.permissions.logs.read!=="none"?"/logs":e.permissions.management.users.read?"/users":e.permissions.management.apikeys.read?"/apikeys":e.permissions.management.repos.read?"/repos":"/"}function oC(e,t){if(t.get("redirect")){const n=decodeURIComponent(t.get("redirect"));if(n&&n!=="/")return n}return fT(e)}function mB({opened:e,onClose:t}){const{t:n}=X(),{lang:r}=pd(),o=Eo({initialValues:{email:""},validate:{email:ix(n("login.form.email.invalid"))}}),s=as({mutationFn:i=>pB(i,r)});return v.useEffect(()=>{e||(o.reset(),s.reset())},[e]),u.jsx(_t,{opened:e,onClose:t,title:u.jsx(dc,{children:n("forgotPassword.title")}),children:u.jsx("form",{onSubmit:o.onSubmit(i=>s.mutate(i.email)),children:u.jsxs(bt,{children:[u.jsx(aa,{visible:s.isPending}),u.jsx(xo.Info,{children:n("forgotPassword.description")}),v.createElement(qt,{...o.getInputProps("email"),key:o.key("email"),placeholder:n("login.form.email.placeholder"),disabled:s.isSuccess,"data-autofocus":!0}),u.jsx(us,{error:s.error}),s.isSuccess&&u.jsx(xo.Success,{children:n("forgotPassword.emailSent")}),u.jsx(fd,{validateButtonLabel:n("common.send"),onClose:t,closeOnly:s.isSuccess})]})})})}function gB({error:e}){var n;const{t}=X();return e instanceof HP&&((n=e.response)==null?void 0:n.status)===401?u.jsx(WP,{message:t("login.invalidCredentials")}):u.jsx(us,{error:e})}function yB({onLogin:e}){const{t}=X(),{lang:n}=pd(),{currentUser:r}=zh(),[o]=sx(),s=Eo({mode:"uncontrolled",initialValues:{email:"",password:""},validate:{email:ix(t("login.form.email.invalid"))}}),i=cs(),a=as({mutationFn:f=>uB(f.email,f.password,n),onSuccess:f=>{e(f),i(oC(f,o),{replace:!0})}}),[l,{open:c,close:d}]=zn();return ri(t("login.title")),r?u.jsx(mP,{to:oC(r,o),replace:!0}):u.jsxs(u.Fragment,{children:[u.jsx("form",{onSubmit:s.onSubmit(f=>a.mutate(f)),children:u.jsx(Zn,{pt:"4rem",children:u.jsxs(bt,{align:"center",gap:"3rem",children:[u.jsx("img",{src:dx,alt:"Auditize",height:90,style:{display:"block"}}),u.jsxs(bt,{gap:"0.25rem",w:"280px",children:[v.createElement(qt,{...s.getInputProps("email"),key:s.key("email"),label:t("login.form.email.label"),placeholder:t("login.form.email.placeholder")}),v.createElement(qt,{...s.getInputProps("password"),key:s.key("password"),label:t("login.form.password.label"),placeholder:t("login.form.password.placeholder"),type:"password"}),u.jsx(ts,{onClick:c,size:"xs",style:{textAlign:"right"},children:t("forgotPassword.link")}),u.jsx(vo,{h:"lg"}),u.jsx(Tt,{type:"submit",children:t("login.signIn")})]}),u.jsx(gB,{error:a.error})]})})}),u.jsx(mB,{opened:l,onClose:d})]})}function hn(e){return{width:H(e),height:H(e)}}function jn({size:e,top:t,marginRight:n}){return{...hn(e),position:"relative",top:t,marginRight:n}}function vB(){const{height:e}=k3(),[t,n]=R3(),{t:r}=X();return u.jsx(J0,{position:{bottom:15,right:20},zIndex:100,children:u.jsx(Jo,{transition:"slide-up",mounted:t.y>e,children:o=>u.jsx(Tt,{onClick:()=>n({y:0}),leftSection:u.jsx(SV,{style:hn(16)}),style:o,variant:"default",size:"xs",children:r("common.scrollToTop")})})})}/**
311
+ * filesize
312
+ *
313
+ * @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
314
+ * @license BSD-3-Clause
315
+ * @version 10.1.6
316
+ */const xB="array",bB="bit",sC="bits",wB="byte",iC="bytes",_a="",SB="exponent",CB="function",aC="iec",EB="Invalid number",kB="Invalid rounding method",wg="jedec",jB="object",lC=".",RB="round",PB="s",TB="si",NB="kbit",LB="kB",DB=" ",MB="string",_B="0",Sg={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function AB(e,{bits:t=!1,pad:n=!1,base:r=-1,round:o=2,locale:s=_a,localeOptions:i={},separator:a=_a,spacer:l=DB,symbols:c={},standard:d=_a,output:f=MB,fullform:p=!1,fullforms:h=[],exponent:m=-1,roundingMethod:g=RB,precision:w=0}={}){let y=m,x=Number(e),b=[],S=0,k=_a;d===TB?(r=10,d=wg):d===aC||d===wg?r=2:r===2?d=aC:(r=10,d=wg);const E=r===10?1e3:1024,j=p===!0,C=x<0,T=Math[g];if(typeof e!="bigint"&&isNaN(e))throw new TypeError(EB);if(typeof T!==CB)throw new TypeError(kB);if(C&&(x=-x),(y===-1||isNaN(y))&&(y=Math.floor(Math.log(x)/Math.log(E)),y<0&&(y=0)),y>8&&(w>0&&(w+=8-y),y=8),f===SB)return y;if(x===0)b[0]=0,k=b[1]=Sg.symbol[d][t?sC:iC][y];else{S=x/(r===2?Math.pow(2,y*10):Math.pow(1e3,y)),t&&(S=S*8,S>=E&&y<8&&(S=S/E,y++));const N=Math.pow(10,y>0?o:0);b[0]=T(S*N)/N,b[0]===E&&y<8&&m===-1&&(b[0]=1,y++),k=b[1]=r===10&&y===1?t?NB:LB:Sg.symbol[d][t?sC:iC][y]}if(C&&(b[0]=-b[0]),w>0&&(b[0]=b[0].toPrecision(w)),b[1]=c[b[1]]||b[1],s===!0?b[0]=b[0].toLocaleString():s.length>0?b[0]=b[0].toLocaleString(s,i):a.length>0&&(b[0]=b[0].toString().replace(lC,a)),n&&o>0){const N=b[0].toString(),_=a||(N.match(/(\D)/g)||[]).pop()||lC,I=N.toString().split(_),U=I[1]||_a,O=U.length,M=o-O;b[0]=`${I[0]}${_}${U.padEnd(O+M,_B)}`}return j&&(b[1]=h[y]?h[y]:Sg.fullform[d][y]+(t?bB:wB)+(b[0]===1?_a:PB)),f===xB?b:f===jB?{value:b[0],symbol:b[1],exponent:y,unit:k}:b.join(l)}var pT={exports:{}};(function(e,t){(function(n,r){e.exports=r()})($u,function(){var n=1e3,r=6e4,o=36e5,s="millisecond",i="second",a="minute",l="hour",c="day",d="week",f="month",p="quarter",h="year",m="date",g="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var M=["th","st","nd","rd"],P=O%100;return"["+O+(M[(P-20)%10]||M[P]||M[0])+"]"}},b=function(O,M,P){var L=String(O);return!L||L.length>=M?O:""+Array(M+1-L.length).join(P)+O},S={s:b,z:function(O){var M=-O.utcOffset(),P=Math.abs(M),L=Math.floor(P/60),R=P%60;return(M<=0?"+":"-")+b(L,2,"0")+":"+b(R,2,"0")},m:function O(M,P){if(M.date()<P.date())return-O(P,M);var L=12*(P.year()-M.year())+(P.month()-M.month()),R=M.clone().add(L,f),D=P-R<0,$=M.clone().add(L+(D?-1:1),f);return+(-(L+(P-R)/(D?R-$:$-R))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:f,y:h,w:d,d:c,D:m,h:l,m:a,s:i,ms:s,Q:p}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},k="en",E={};E[k]=x;var j="$isDayjsObject",C=function(O){return O instanceof I||!(!O||!O[j])},T=function O(M,P,L){var R;if(!M)return k;if(typeof M=="string"){var D=M.toLowerCase();E[D]&&(R=D),P&&(E[D]=P,R=D);var $=M.split("-");if(!R&&$.length>1)return O($[0])}else{var A=M.name;E[A]=M,R=A}return!L&&R&&(k=R),R||!L&&k},N=function(O,M){if(C(O))return O.clone();var P=typeof M=="object"?M:{};return P.date=O,P.args=arguments,new I(P)},_=S;_.l=T,_.i=C,_.w=function(O,M){return N(O,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var I=function(){function O(P){this.$L=T(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[j]=!0}var M=O.prototype;return M.parse=function(P){this.$d=function(L){var R=L.date,D=L.utc;if(R===null)return new Date(NaN);if(_.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var $=R.match(w);if($){var A=$[2]-1||0,B=($[7]||"0").substring(0,3);return D?new Date(Date.UTC($[1],A,$[3]||1,$[4]||0,$[5]||0,$[6]||0,B)):new Date($[1],A,$[3]||1,$[4]||0,$[5]||0,$[6]||0,B)}}return new Date(R)}(P),this.init()},M.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},M.$utils=function(){return _},M.isValid=function(){return this.$d.toString()!==g},M.isSame=function(P,L){var R=N(P);return this.startOf(L)<=R&&R<=this.endOf(L)},M.isAfter=function(P,L){return N(P)<this.startOf(L)},M.isBefore=function(P,L){return this.endOf(L)<N(P)},M.$g=function(P,L,R){return _.u(P)?this[L]:this.set(R,P)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(P,L){var R=this,D=!!_.u(L)||L,$=_.p(P),A=function(be,fe){var _e=_.w(R.$u?Date.UTC(R.$y,fe,be):new Date(R.$y,fe,be),R);return D?_e:_e.endOf(c)},B=function(be,fe){return _.w(R.toDate()[be].apply(R.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(fe)),R)},G=this.$W,ne=this.$M,Z=this.$D,oe="set"+(this.$u?"UTC":"");switch($){case h:return D?A(1,0):A(31,11);case f:return D?A(1,ne):A(0,ne+1);case d:var ae=this.$locale().weekStart||0,ue=(G<ae?G+7:G)-ae;return A(D?Z-ue:Z+(6-ue),ne);case c:case m:return B(oe+"Hours",0);case l:return B(oe+"Minutes",1);case a:return B(oe+"Seconds",2);case i:return B(oe+"Milliseconds",3);default:return this.clone()}},M.endOf=function(P){return this.startOf(P,!1)},M.$set=function(P,L){var R,D=_.p(P),$="set"+(this.$u?"UTC":""),A=(R={},R[c]=$+"Date",R[m]=$+"Date",R[f]=$+"Month",R[h]=$+"FullYear",R[l]=$+"Hours",R[a]=$+"Minutes",R[i]=$+"Seconds",R[s]=$+"Milliseconds",R)[D],B=D===c?this.$D+(L-this.$W):L;if(D===f||D===h){var G=this.clone().set(m,1);G.$d[A](B),G.init(),this.$d=G.set(m,Math.min(this.$D,G.daysInMonth())).$d}else A&&this.$d[A](B);return this.init(),this},M.set=function(P,L){return this.clone().$set(P,L)},M.get=function(P){return this[_.p(P)]()},M.add=function(P,L){var R,D=this;P=Number(P);var $=_.p(L),A=function(ne){var Z=N(D);return _.w(Z.date(Z.date()+Math.round(ne*P)),D)};if($===f)return this.set(f,this.$M+P);if($===h)return this.set(h,this.$y+P);if($===c)return A(1);if($===d)return A(7);var B=(R={},R[a]=r,R[l]=o,R[i]=n,R)[$]||1,G=this.$d.getTime()+P*B;return _.w(G,this)},M.subtract=function(P,L){return this.add(-1*P,L)},M.format=function(P){var L=this,R=this.$locale();if(!this.isValid())return R.invalidDate||g;var D=P||"YYYY-MM-DDTHH:mm:ssZ",$=_.z(this),A=this.$H,B=this.$m,G=this.$M,ne=R.weekdays,Z=R.months,oe=R.meridiem,ae=function(fe,_e,he,Se){return fe&&(fe[_e]||fe(L,D))||he[_e].slice(0,Se)},ue=function(fe){return _.s(A%12||12,fe,"0")},be=oe||function(fe,_e,he){var Se=fe<12?"AM":"PM";return he?Se.toLowerCase():Se};return D.replace(y,function(fe,_e){return _e||function(he){switch(he){case"YY":return String(L.$y).slice(-2);case"YYYY":return _.s(L.$y,4,"0");case"M":return G+1;case"MM":return _.s(G+1,2,"0");case"MMM":return ae(R.monthsShort,G,Z,3);case"MMMM":return ae(Z,G);case"D":return L.$D;case"DD":return _.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return ae(R.weekdaysMin,L.$W,ne,2);case"ddd":return ae(R.weekdaysShort,L.$W,ne,3);case"dddd":return ne[L.$W];case"H":return String(A);case"HH":return _.s(A,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return be(A,B,!0);case"A":return be(A,B,!1);case"m":return String(B);case"mm":return _.s(B,2,"0");case"s":return String(L.$s);case"ss":return _.s(L.$s,2,"0");case"SSS":return _.s(L.$ms,3,"0");case"Z":return $}return null}(fe)||$.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(P,L,R){var D,$=this,A=_.p(L),B=N(P),G=(B.utcOffset()-this.utcOffset())*r,ne=this-B,Z=function(){return _.m($,B)};switch(A){case h:D=Z()/12;break;case f:D=Z();break;case p:D=Z()/3;break;case d:D=(ne-G)/6048e5;break;case c:D=(ne-G)/864e5;break;case l:D=ne/o;break;case a:D=ne/r;break;case i:D=ne/n;break;default:D=ne}return R?D:_.a(D)},M.daysInMonth=function(){return this.endOf(f).$D},M.$locale=function(){return E[this.$L]},M.locale=function(P,L){if(!P)return this.$L;var R=this.clone(),D=T(P,L,!0);return D&&(R.$L=D),R},M.clone=function(){return _.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},O}(),U=I.prototype;return N.prototype=U,[["$ms",s],["$s",i],["$m",a],["$H",l],["$W",c],["$M",f],["$y",h],["$D",m]].forEach(function(O){U[O[1]]=function(M){return this.$g(M,O[0],O[1])}}),N.extend=function(O,M){return O.$i||(O(M,I,N),O.$i=!0),N},N.locale=T,N.isDayjs=C,N.unix=function(O){return N(1e3*O)},N.en=E[k],N.Ls=E,N.p={},N})})(pT);var hT=pT.exports;const de=Js(hT);var OB={exports:{}};(function(e,t){(function(n,r){e.exports=r(hT)})($u,function(n){function r(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var o=r(n),s={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(i){return""+i+(i===1?"er":"")}};return o.default.locale(s,null,!0),s})})(OB);var mT={exports:{}};(function(e,t){(function(n,r){e.exports=r()})($u,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,s){var i=o.prototype,a=i.format;s.en.formats=n,i.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,d=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,m,g){var w=g&&g.toUpperCase();return m||p[g]||n[g]||p[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,x,b){return x||b.slice(1)})})}(l,c===void 0?{}:c);return a.call(this,d)}}})})(mT);var $B=mT.exports;const FB=Js($B);de.extend(FB);function vv({value:e,textProps:t,tooltip:n=!0}){const{lang:r}=pd(),o=u.jsx(xt,{span:!0,size:"sm",...t,children:de(e).format("YYYY-MM-DD HH:mm")});if(!n)return o;const s=r==="en"?"dddd, MMMM D, YYYY h:mm:ss A":r==="fr"?"dddd D MMMM YYYY, HH:mm:ss":"LLLL";return u.jsx(kn,{label:de(e).locale(r).format(s),withinPortal:!1,children:o})}function Lf(e,t,n){const r=new URLSearchParams(e.search);r.set(t,n||"");let o=r.toString();return o.endsWith("=")&&(o=o.slice(0,-1)),`${e.pathname}?${o}`}function IB(){const[e,t]=sx(),n=cs(),r=Qr(),o=e.has("page")?parseInt(e.get("page")||""):1,s=p=>n(Lf(r,"page",p.toString())),i=e.has("new"),a=p=>{n(p?Lf(r,"new"):-1)},l=e.get("id"),c=p=>{n(p?Lf(r,"id",p):-1)},d=e.get("q")||"";return{page:o,setPage:s,isNew:i,setIsNew:a,resourceId:l,setResourceId:c,search:d,setSearch:p=>t({q:p})}}function zB(){const[e,t]=v.useState(1),[n,r]=v.useState(!1),[o,s]=v.useState(null),[i,a]=v.useState("");return{page:e,setPage:t,isNew:n,setIsNew:r,resourceId:o,setResourceId:s,search:i,setSearch:a}}function VB(e){return e==="useState"?zB():IB()}function BB({resource:e,onClick:t,columnDefinitions:n,resourceDeletionComponentBuilder:r}){const{t:o}=X(),[s,{open:i,close:a}]=zn(),l=r(e,s,a);return u.jsxs(u.Fragment,{children:[u.jsxs(Ne.Tr,{onClick:t,style:{cursor:"pointer"},children:[n.map(([c,d,f],p)=>u.jsx(Ne.Td,{style:f,children:d(e)},p)),u.jsx(Ne.Td,{style:{textAlign:"right"},children:l&&u.jsx(kn,{label:o("resource.list.delete"),withArrow:!0,children:u.jsx(Yt,{onClick:c=>{i(),c.stopPropagation()},variant:"transparent",color:"red",children:u.jsx(BV,{style:{position:"relative",top:"1px"}})})})})]}),l]})}function UB({value:e,onChange:t}){const{t:n}=X(),[r,o]=v.useState(""),s=()=>t(r);return v.useEffect(()=>{o(e)},[e]),u.jsxs(Ge,{gap:"xs",children:[u.jsx(qt,{placeholder:n("resource.list.search"),value:r,onChange:i=>o(i.currentTarget.value),onKeyDown:i=>{i.key==="Enter"&&s()},rightSection:r?u.jsx(Sr,{onClick:()=>o(""),style:{display:r?void 0:"none"}}):u.jsx(VV,{style:hn(22)})}),u.jsx(Tt,{onClick:s,disabled:!r&&!e,children:n("resource.list.search")})]})}function yd({title:e,name:t,stateMode:n="url",queryKey:r,queryFn:o,columnDefinitions:s,resourceCreationComponentBuilder:i,resourceEditionComponentBuilder:a,resourceDeletionComponentBuilder:l}){const{page:c,setPage:d,isNew:f,setIsNew:p,resourceId:h,setResourceId:m,search:g,setSearch:w}=VB(n),y=ot({queryKey:r(g,c),queryFn:o(g,c)});if(y.error)return u.jsx(us,{error:y.error});let x,b;if(y.isPending)x=Array.from({length:10}).map((S,k)=>u.jsx(Ne.Tr,{style:{height:"2rem"},children:Array.from({length:s.length+1},(E,j)=>u.jsx(Ne.Td,{children:u.jsx(po,{height:8})},j))},k));else{let S;[S,b]=y.data,x=S.map(k=>u.jsx(BB,{onClick:()=>m(k.id),resource:k,columnDefinitions:s,resourceDeletionComponentBuilder:l},k.id))}return u.jsxs("div",{children:[u.jsx(id,{order:1,pb:"xl",fw:550,size:"26",children:e}),u.jsxs(Ge,{justify:"space-between",pb:"md",children:[u.jsx(UB,{value:g,onChange:w}),i&&u.jsx(Tt,{onClick:()=>p(!0),leftSection:u.jsx(XP,{size:"1.3rem"}),children:t})]}),u.jsxs(bt,{align:"center",children:[u.jsxs(Ne,{highlightOnHover:!0,withTableBorder:!0,verticalSpacing:"sm",children:[u.jsx(Ne.Thead,{style:{backgroundColor:"var(--auditize-header-color)"},children:u.jsxs(Ne.Tr,{children:[s.map(([S,k,E],j)=>u.jsx(Ne.Th,{style:E,children:S},j)),u.jsx(Ne.Th,{})]})}),u.jsx(Ne.Tbody,{children:x})]}),u.jsx(lr,{total:b==null?void 0:b.total_pages,value:b==null?void 0:b.page,onChange:d,py:"md"})]}),i&&i(f,()=>p(!1)),a(h,()=>m(null))]})}function gT({title:e,opened:t,onClose:n,isLoading:r=!1,onSubmit:o,disabledSaving:s=!1,onSave:i,onSaveSuccess:a,queryKeyForInvalidation:l,children:c}){const{t:d}=X(),f=ld(),p=as({mutationFn:()=>i(),onSuccess:h=>{f.invalidateQueries({queryKey:l}),a?a(h):n()}});return v.useEffect(()=>{t||p.reset()},[t]),u.jsx(_t,{title:u.jsx(dc,{children:e}),size:"lg",padding:"lg",opened:t,onClose:()=>t&&n(),children:u.jsxs(Y,{px:"lg",children:[u.jsx(aa,{visible:t&&(r||p.isPending)}),u.jsxs("form",{onSubmit:o(()=>p.mutate()),children:[c,u.jsx(vo,{h:"xl"}),u.jsx(bo,{justify:"center",align:"center",children:u.jsx(us,{error:p.error,textProps:{pt:"0",size:"sm"}})}),u.jsx(fd,{validateButtonLabel:d("common.save"),onClose:n,closeOnly:s})]})]})})}function vd(e){return u.jsx(gT,{...e})}function HB({message:e}){const{t}=X(),n=cs(),r=()=>n(-1);return u.jsx(_t,{title:u.jsx(dc,{children:t("common.unexpectedError")}),size:"lg",padding:"lg",opened:!0,onClose:r,children:u.jsx("div",{children:u.jsxs(Y,{children:[u.jsx(xt,{pb:"sm",children:e}),u.jsx(Ge,{justify:"center",children:u.jsx(Tt,{onClick:r,children:t("common.close")})})]})})})}function xd({resourceId:e,queryKeyForLoad:t,queryFnForLoad:n,onDataLoaded:r,...o}){const s=ot({queryKey:t,queryFn:n,enabled:!!e,staleTime:0});return v.useEffect(()=>{!s.isFetching&&s.data&&r(s.data)},[s.data,s.isFetching]),s.error?u.jsx(HB,{message:s.error.message}):u.jsx(gT,{opened:!!e,isLoading:s.isFetching,...o})}function bd({message:e,opened:t,onDelete:n,queryKeyForInvalidation:r,onClose:o}){const{t:s}=X(),i=ld(),a=as({mutationFn:()=>n(),onSuccess:()=>{i.invalidateQueries({queryKey:r}),o()}});return v.useEffect(()=>{t||a.reset()},[t]),u.jsx(_t,{title:u.jsx(dc,{children:s("resource.delete.confirm.title")}),size:"lg",padding:"lg",opened:t,onClose:o,children:u.jsx("div",{children:u.jsxs(Y,{children:[u.jsx(aa,{visible:a.isPending}),u.jsx(xt,{pb:"sm",children:e}),u.jsx("form",{onSubmit:l=>{a.mutate(),l.preventDefault()},children:u.jsx(fd,{validateButtonLabel:s("common.delete"),onClose:o,dangerous:!0})}),u.jsx(bo,{justify:"center",align:"center",children:u.jsx(us,{error:a.error})})]})})})}async function WB(e){return(await ko("/repos",e)).id}async function KB(e,t){await fc(`/repos/${e}`,t)}async function qB(e=null,t=1,{includeStats:n}={includeStats:!1}){return await gd("/repos",{q:e,page:t,include:n?"stats":void 0})}async function px({hasReadPermission:e,hasWritePermission:t}){return await Hn("/users/me/repos",{has_read_permission:e,has_write_permission:t})}async function YB(e){return await Jr("/repos/"+e)}async function GB(e,t){return await Jr(`/repos/${e}/translations/${t}`,{},{raw:!0})}async function QB(e){await md("/repos/"+e)}function hx({enabled:e=!0}={}){return ot({queryKey:["repos","available-for-logs"],queryFn:()=>px({hasReadPermission:!0}),enabled:e})}function XB({repo:e,opened:t,onClose:n}){return X(),u.jsx(bd,{message:u.jsxs(ic,{i18nKey:"repo.delete.confirm",values:{name:e.name},children:["Do you confirm the deletion of log repository ",u.jsx("b",{children:e.name})," ?"]}),opened:t,onDelete:()=>QB(e.id),queryKeyForInvalidation:["repos"],onClose:n})}async function JB(e){return(await ko("/log-i18n-profiles",e)).id}async function ZB(e,t){await fc(`/log-i18n-profiles/${e}`,t)}async function eU(e=null,t=1){return await gd("/log-i18n-profiles",{q:e,page:t})}async function tU(){return await Hn("/log-i18n-profiles")}async function nU(e){return await Jr("/log-i18n-profiles/"+e)}async function rU(e){await md("/log-i18n-profiles/"+e)}function oU({profile:e,opened:t,onClose:n}){return X(),u.jsx(bd,{message:u.jsxs(ic,{i18nKey:"logi18nprofile.delete.confirm",values:{name:e.name},children:["Do you confirm the deletion of the log translation profile",u.jsx("b",{children:e.name})," ?"]}),opened:t,onDelete:()=>rU(e.id),queryKeyForInvalidation:["logi18nprofiles"],onClose:n})}function sU(e){const{t}=X();return Eo({initialValues:{name:"",...e},validate:{name:Zi(t("logi18nprofile.form.name.required"))}})}function yT(e){const t=sU({}),[n,r]=v.useState({});return v.useEffect(()=>{e||(t.reset(),r({}))},[e]),{form:t,translations:n,setTranslations:r}}function vT({profileId:e,lang:t,isSet:n,onChange:r,readonly:o=!1}){const{t:s}=X(),[i,a]=v.useState(null),l=new FileReader;return l.onload=()=>r(JSON.parse(l.result)),v.useEffect(()=>{i?l.readAsText(i):r(null)},[i]),u.jsx(st.Wrapper,{label:s("logi18nprofile.form.file.label",{lang:s("language."+t)}),children:u.jsxs(Ge,{justify:"space-between",children:[u.jsx(v5,{placeholder:s(n?"logi18nprofile.form.file.configured":"logi18nprofile.form.file.choose"),accept:"application/json",value:i,onChange:a,disabled:o,flex:1}),e&&u.jsx(Yt,{component:"a",href:`/api/log-i18n-profiles/${e}/translations/${t}`,download:`auditize-log-translation-${e}-${t}.json`,target:"_blank",variant:"transparent",flex:0,children:u.jsx(yv,{})}),u.jsx(Sr,{onClick:()=>{i?a(null):r(null)},disabled:o||!n&&!i,flex:0})]})})}function cC({lang:e,translations:t,setTranslations:n}){return u.jsx(vT,{lang:e,onChange:r=>{n(r?{...t,[e]:r}:Object.fromEntries(Object.entries(t).filter(([o])=>o!==e)))}})}function uC({profileId:e,lang:t,translations:n,setTranslations:r,readOnly:o}){return u.jsx(vT,{profileId:e,lang:t,isSet:!!n[t],onChange:s=>{r({...n,[t]:s||null})},readonly:o})}function xT({form:e,readOnly:t=!1,children:n}){const{t:r}=X();return u.jsxs(bt,{gap:"sm",children:[u.jsx(qt,{label:r("logi18nprofile.form.name.label"),placeholder:r("logi18nprofile.form.name.placeholder"),"data-autofocus":!0,disabled:t,...e.getInputProps("name")}),n]})}function iU({opened:e,onClose:t}){const{t:n}=X(),{form:r,translations:o,setTranslations:s}=yT(!!e);return u.jsx(vd,{title:n("logi18nprofile.create.title"),opened:!!e,onClose:t,onSubmit:r.onSubmit,onSave:()=>JB({...r.values,translations:o}),queryKeyForInvalidation:["logi18nprofiles"],children:u.jsxs(xT,{form:r,children:[u.jsx(cC,{lang:"en",translations:o,setTranslations:s}),u.jsx(cC,{lang:"fr",translations:o,setTranslations:s})]})})}function aU({profileId:e,onClose:t,readOnly:n}){const{t:r}=X(),{form:o,translations:s,setTranslations:i}=yT(!!e);return u.jsx(xd,{resourceId:e,onClose:t,queryKeyForLoad:["logi18nprofiles",e],queryFnForLoad:()=>nU(e),onDataLoaded:a=>{const{name:l,translations:c}=a;o.setValues({name:l}),i(c)},title:r("logi18nprofile.edit.title"),onSubmit:o.onSubmit,onSave:()=>ZB(e,{...o.values,translations:s}),queryKeyForInvalidation:["logi18nprofiles"],disabledSaving:n,children:u.jsxs(xT,{form:o,readOnly:n,children:[u.jsx(uC,{profileId:e,lang:"en",translations:s,setTranslations:i,readOnly:n}),u.jsx(uC,{profileId:e,lang:"fr",translations:s,setTranslations:i,readOnly:n})]})})}function lU(){const{currentUser:e}=jo(),{t}=X(),n=e.permissions.management.repos.write===!1;return ri(t("logi18nprofile.list.title")),u.jsx(yd,{title:u.jsxs(u.Fragment,{children:[u.jsx(_V,{style:jn({size:"26",top:"4px",marginRight:"0.25rem"})}),t("logi18nprofile.list.title")]}),name:t("logi18nprofile.logi18nprofile"),queryKey:(r,o)=>["logi18nprofiles","list",r,o],queryFn:(r,o)=>()=>eU(r,o),columnDefinitions:[[t("logi18nprofile.list.column.name"),r=>r.name],[t("logi18nprofile.list.column.langs"),r=>Object.entries(r.translations).map(([o,s])=>t("language."+o)).join(", ")]],resourceCreationComponentBuilder:n?void 0:(r,o)=>u.jsx(iU,{opened:r,onClose:o}),resourceEditionComponentBuilder:(r,o)=>u.jsx(aU,{profileId:r,onClose:o,readOnly:n}),resourceDeletionComponentBuilder:(r,o,s)=>n?void 0:u.jsx(oU,{profile:r,opened:o,onClose:s})})}function cU(){const{t:e}=X();return Eo({initialValues:{name:"",status:"enabled",logI18nProfileId:null,retentionPeriod:null},validate:{name:Zi(e("repo.form.name.required"))},transformValues:t=>({...t,retentionPeriod:t.retentionPeriod===""?null:t.retentionPeriod})})}function bT(e){const t=cU();return v.useEffect(()=>{e||t.reset()},[e]),{form:t}}function uU({form:e,readOnly:t}){var o;const{t:n}=X(),r=ot({queryKey:["logi18nprofiles"],queryFn:tU});return u.jsx(rc,{label:n("repo.form.logI18nProfile.label"),placeholder:r.isLoading?n("common.loading"):r.error?n("common.notCurrentlyAvailable"):n("repo.form.logI18nProfile.placeholder"),data:(o=r.data)==null?void 0:o.map(s=>({label:s.name,value:s.id})),clearable:!0,disabled:t,comboboxProps:{shadow:"md"},...e.getInputProps("logI18nProfileId")})}function wT({form:e,readOnly:t=!1}){const{t:n}=X();return u.jsxs(bt,{gap:"sm",children:[u.jsx(qt,{label:n("repo.form.name.label"),placeholder:n("repo.form.name.placeholder"),"data-autofocus":!0,disabled:t,...e.getInputProps("name")}),u.jsx(_o.Group,{label:n("repo.form.status.label"),...e.getInputProps("status"),children:u.jsxs(Ge,{children:[u.jsx(_o,{value:"enabled",label:n("repo.form.status.value.enabled"),disabled:t}),u.jsx(_o,{value:"readonly",label:n("repo.form.status.value.readonly"),disabled:t}),u.jsx(_o,{value:"disabled",label:n("repo.form.status.value.disabled"),disabled:t})]})}),u.jsx(T1,{label:n("repo.form.retentionPeriod.label"),placeholder:n("repo.form.retentionPeriod.placeholder"),min:1,stepHoldDelay:500,stepHoldInterval:50,disabled:t,...e.getInputProps("retentionPeriod")}),u.jsx(uU,{form:e,readOnly:t})]})}function dU({opened:e,onClose:t}){const{t:n}=X(),{form:r}=bT(!!e);return u.jsx(vd,{title:n("repo.create.title"),opened:!!e,onClose:t,onSubmit:r.onSubmit,onSave:()=>WB(r.getTransformedValues()),queryKeyForInvalidation:["repos"],children:u.jsx(wT,{form:r})})}function fU({repoId:e,onClose:t,readOnly:n}){const{t:r}=X(),{form:o}=bT(!!e);return u.jsx(xd,{resourceId:e,onClose:t,queryKeyForLoad:["repo",e],queryFnForLoad:()=>YB(e),onDataLoaded:s=>{const{name:i,status:a,retentionPeriod:l,logI18nProfileId:c}=s;o.setValues({name:i,status:a,retentionPeriod:l??"",logI18nProfileId:c})},title:r("repo.edit.title"),onSubmit:o.onSubmit,onSave:()=>KB(e,o.getTransformedValues()),queryKeyForInvalidation:["repos"],disabledSaving:n,children:u.jsx(wT,{form:o,readOnly:n})})}function pU({value:e}){const{t}=X();return u.jsx(w1,{value:e,timeout:2e3,children:({copied:n,copy:r})=>u.jsx(kn,{label:t(n?"common.copied":"common.copy"),withArrow:!0,position:"bottom",children:u.jsx(Kt,{onClick:o=>{r(),o.stopPropagation()},children:u.jsx(ia,{children:e})})})})}function hU(){const{currentUser:e}=jo(),{t}=X(),n=e.permissions.management.repos.write===!1;return ri(t("repo.repos")),u.jsx(yd,{title:u.jsxs(u.Fragment,{children:[u.jsx(wV,{style:jn({size:"26",top:"4px",marginRight:"0.25rem"})}),t("repo.list.title")]}),name:t("repo.repo"),queryKey:(r,o)=>["repos","list",r,o,{includeStats:!0}],queryFn:(r,o)=>()=>qB(r,o,{includeStats:!0}),columnDefinitions:[[t("repo.list.column.name"),r=>r.name],[t("repo.list.column.id"),r=>u.jsx(pU,{value:r.id})],[t("repo.list.column.status"),r=>t("repo.form.status.value."+r.status)],[t("repo.list.column.retentionPeriod"),r=>r.retentionPeriod?t("repo.list.column.retentionPeriodValue",{days:r.retentionPeriod}):void 0,{textAlign:"right"}],[t("repo.list.column.logs"),r=>r.stats.logCount.toLocaleString(),{textAlign:"right"}],[t("repo.list.column.storage"),r=>AB(r.stats.storageSize,{round:0}),{textAlign:"right"}],[t("repo.list.column.createdAt"),r=>u.jsx(vv,{value:r.createdAt,tooltip:!1}),{textAlign:"right"}],[t("repo.list.column.lastLog"),r=>r.stats.lastLogDate?u.jsx(vv,{value:r.stats.lastLogDate,tooltip:!1}):void 0,{textAlign:"right"}]],resourceCreationComponentBuilder:n?void 0:(r,o)=>u.jsx(dU,{opened:r,onClose:o}),resourceEditionComponentBuilder:(r,o)=>u.jsx(fU,{repoId:r,onClose:o,readOnly:n}),resourceDeletionComponentBuilder:(r,o,s)=>n?void 0:u.jsx(XB,{repo:r,opened:o,onClose:s})})}function dC(e){return de(e).utc().format("YYYY-MM-DDTHH:mm:ss")+"Z"}function fC(e){return de(e).toDate()}function mU(e){return de(e).format("YYYY-MM-DD HH:mm:ss")}var hr,Uc,Hc;const Kn=class Kn{constructor(){ht(this,"repoId","");ht(this,"actionCategory","");ht(this,"actionType","");ht(this,"actorType","");ht(this,"actorName","");ht(this,"actorRef","");ht(this,"actorExtra",new Map);ht(this,"source",new Map);ht(this,"resourceType","");ht(this,"resourceName","");ht(this,"resourceRef","");ht(this,"resourceExtra",new Map);ht(this,"details",new Map);ht(this,"tagRef","");ht(this,"tagType","");ht(this,"tagName","");ht(this,"hasAttachment");ht(this,"attachmentName","");ht(this,"attachmentType","");ht(this,"attachmentMimeType","");ht(this,"entityRef","");ht(this,"since",null);ht(this,"until",null)}isEmpty(){return[this.actionCategory,this.actionType,this.actorType,this.actorName,this.actorRef,this.actorExtra.size>0,this.source.size>0,this.resourceType,this.resourceName,this.resourceRef,this.resourceExtra.size>0,this.details.size>0,this.tagRef,this.tagType,this.tagName,this.hasAttachment,this.attachmentName,this.attachmentType,this.attachmentMimeType,this.entityRef,this.since,this.until].every(t=>!t)}static fromProperties(t){return Object.assign(new Kn,t)}serialize({includeRepoId:t=!0,snakeCase:n=!1}={}){var o,s,i,a;let r={...t?{repoId:this.repoId}:{},since:this.since?dC(this.since):null,until:this.until?dC(this.until):null,actionCategory:this.actionCategory,actionType:this.actionType,actorType:this.actorType,actorName:this.actorName,actorRef:this.actorRef,...Pe(o=Kn,hr,Uc).call(o,this.actorExtra,"actor"),...Pe(s=Kn,hr,Uc).call(s,this.source,"source"),resourceType:this.resourceType,resourceName:this.resourceName,resourceRef:this.resourceRef,...Pe(i=Kn,hr,Uc).call(i,this.resourceExtra,"resource"),...Pe(a=Kn,hr,Uc).call(a,this.details,"details"),tagRef:this.tagRef,tagType:this.tagType,tagName:this.tagName,hasAttachment:this.hasAttachment,attachmentName:this.attachmentName,attachmentType:this.attachmentType,attachmentMimeType:this.attachmentMimeType,entityRef:this.entityRef};return r=Object.fromEntries(Object.entries(r).filter(([,l])=>l!=null&&l!=="")),n&&(r=ta(r)),r}static deserialize(t){var r,o,s,i;const n=new Kn;return n.repoId=t.repoId??"",n.since=t.since?fC(t.since):null,n.until=t.until?fC(t.until):null,n.actionCategory=t.actionCategory??"",n.actionType=t.actionType??"",n.actorType=t.actorType??"",n.actorName=t.actorName??"",n.actorRef=t.actorRef??"",n.actorExtra=Pe(r=Kn,hr,Hc).call(r,t,"actor"),n.source=Pe(o=Kn,hr,Hc).call(o,t,"source"),n.resourceType=t.resourceType??"",n.resourceName=t.resourceName??"",n.resourceRef=t.resourceRef??"",n.resourceExtra=Pe(s=Kn,hr,Hc).call(s,t,"resource"),n.details=Pe(i=Kn,hr,Hc).call(i,t,"details"),n.tagRef=t.tagRef??"",n.tagType=t.tagType??"",n.tagName=t.tagName??"",n.hasAttachment=typeof t.hasAttachment=="boolean"?t.hasAttachment??void 0:t.hasAttachment==="true"?!0:void 0,n.attachmentName=t.attachmentName??"",n.attachmentType=t.attachmentType??"",n.attachmentMimeType=t.attachmentMimeType??"",n.entityRef=t.entityRef??"",n}};hr=new WeakSet,Uc=function(t,n){return Object.fromEntries(Array.from(t.entries()).map(([r,o])=>[`${n}.${r}`,o]))},Hc=function(t,n){const r=new Map;for(const[o,s]of Object.entries(t)){const i=o.split(".");i.length===2&&i[0]===n&&r.set(i[1],s)}return r},je(Kn,hr);let qr=Kn;function gU({title:e,children:t,isFilled:n,disabled:r,buttonProps:o,popoverProps:s}){const[i,{close:a,toggle:l}]=zn();return u.jsxs(At,{opened:i,onClose:a,withArrow:!0,keepMounted:!0,disabled:r,shadow:"md",...s,children:[u.jsx(At.Target,{children:u.jsx(Tt,{rightSection:i?u.jsx(jV,{style:hn("1.15rem")}):u.jsx(fx,{style:hn("1.15rem")}),onClick:l,variant:n?"light":"outline",disabled:r,...o,children:e})}),u.jsx(At.Dropdown,{p:"0",children:t})]})}function yU({direction:e,levelIndex:t,rowIndex:n,cellIndex:r,size:o}){switch(e){case"up":return t===0&&n===0?null:n===0?{levelIndex:t-1,rowIndex:r<=o[t-1][o[t-1].length-1]-1?o[t-1].length-1:o[t-1].length-2,cellIndex:r}:{levelIndex:t,rowIndex:n-1,cellIndex:r};case"down":return n===o[t].length-1?{levelIndex:t+1,rowIndex:0,cellIndex:r}:n===o[t].length-2&&r>=o[t][o[t].length-1]?{levelIndex:t+1,rowIndex:0,cellIndex:r}:{levelIndex:t,rowIndex:n+1,cellIndex:r};case"left":return t===0&&n===0&&r===0?null:n===0&&r===0?{levelIndex:t-1,rowIndex:o[t-1].length-1,cellIndex:o[t-1][o[t-1].length-1]-1}:r===0?{levelIndex:t,rowIndex:n-1,cellIndex:o[t][n-1]-1}:{levelIndex:t,rowIndex:n,cellIndex:r-1};case"right":return n===o[t].length-1&&r===o[t][n]-1?{levelIndex:t+1,rowIndex:0,cellIndex:0}:r===o[t][n]-1?{levelIndex:t,rowIndex:n+1,cellIndex:0}:{levelIndex:t,rowIndex:n,cellIndex:r+1};default:return{levelIndex:t,rowIndex:n,cellIndex:r}}}function ST({controlsRef:e,direction:t,levelIndex:n,rowIndex:r,cellIndex:o,size:s}){var l,c,d;const i=yU({direction:t,size:s,rowIndex:r,cellIndex:o,levelIndex:n});if(!i)return;const a=(d=(c=(l=e.current)==null?void 0:l[i.levelIndex])==null?void 0:c[i.rowIndex])==null?void 0:d[i.cellIndex];a&&(a.disabled||a.getAttribute("data-hidden")||a.getAttribute("data-outside")?ST({controlsRef:e,direction:t,levelIndex:i.levelIndex,cellIndex:i.cellIndex,rowIndex:i.rowIndex,size:s}):a.focus())}function vU(e){switch(e){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function xU(e){var t;return(t=e.current)==null?void 0:t.map(n=>n.map(r=>r.length))}function mx({controlsRef:e,levelIndex:t,rowIndex:n,cellIndex:r,event:o}){const s=vU(o.key);if(s){o.preventDefault();const i=xU(e);ST({controlsRef:e,direction:s,levelIndex:t,rowIndex:n,cellIndex:r,size:i})}}function pC(e,t){if(!e||!t)return t;const n=e.getHours(),r=e.getMinutes(),o=e.getSeconds(),s=e.getMilliseconds(),i=new Date(t);return i.setHours(n),i.setMinutes(r),i.setSeconds(o),i.setMilliseconds(s),i}var CT={exports:{}};(function(e,t){(function(n,r){e.exports=r()})($u,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(o,s,i){var a,l=function(p,h,m){m===void 0&&(m={});var g=new Date(p),w=function(y,x){x===void 0&&(x={});var b=x.timeZoneName||"short",S=y+"|"+b,k=r[S];return k||(k=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:y,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:b}),r[S]=k),k}(h,m);return w.formatToParts(g)},c=function(p,h){for(var m=l(p,h),g=[],w=0;w<m.length;w+=1){var y=m[w],x=y.type,b=y.value,S=n[x];S>=0&&(g[S]=parseInt(b,10))}var k=g[3],E=k===24?0:k,j=g[0]+"-"+g[1]+"-"+g[2]+" "+E+":"+g[4]+":"+g[5]+":000",C=+p;return(i.utc(j).valueOf()-(C-=C%1e3))/6e4},d=s.prototype;d.tz=function(p,h){p===void 0&&(p=a);var m,g=this.utcOffset(),w=this.toDate(),y=w.toLocaleString("en-US",{timeZone:p}),x=Math.round((w-new Date(y))/1e3/60),b=15*-Math.round(w.getTimezoneOffset()/15)-x;if(!Number(b))m=this.utcOffset(0,h);else if(m=i(y,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(b,!0),h){var S=m.utcOffset();m=m.add(g-S,"minute")}return m.$x.$timezone=p,m},d.offsetName=function(p){var h=this.$x.$timezone||i.tz.guess(),m=l(this.valueOf(),h,{timeZoneName:p}).find(function(g){return g.type.toLowerCase()==="timezonename"});return m&&m.value};var f=d.startOf;d.startOf=function(p,h){if(!this.$x||!this.$x.$timezone)return f.call(this,p,h);var m=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return f.call(m,p,h).tz(this.$x.$timezone,!0)},i.tz=function(p,h,m){var g=m&&h,w=m||h||a,y=c(+i(),w);if(typeof p!="string")return i(p).tz(w);var x=function(E,j,C){var T=E-60*j*1e3,N=c(T,C);if(j===N)return[T,j];var _=c(T-=60*(N-j)*1e3,C);return N===_?[T,N]:[E-60*Math.min(N,_)*1e3,Math.max(N,_)]}(i.utc(p,g).valueOf(),y,w),b=x[0],S=x[1],k=i(b).utcOffset(S);return k.$x.$timezone=w,k},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(p){a=p}}})})(CT);var bU=CT.exports;const wU=Js(bU);var ET={exports:{}};(function(e,t){(function(n,r){e.exports=r()})($u,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(s,i,a){var l=i.prototype;a.utc=function(g){var w={date:g,utc:!0,args:arguments};return new i(w)},l.utc=function(g){var w=a(this.toDate(),{locale:this.$L,utc:!0});return g?w.add(this.utcOffset(),n):w},l.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),c.call(this,g)};var d=l.init;l.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else d.call(this)};var f=l.utcOffset;l.utcOffset=function(g,w){var y=this.$utils().u;if(y(g))return this.$u?0:y(this.$offset)?f.call(this):this.$offset;if(typeof g=="string"&&(g=function(k){k===void 0&&(k="");var E=k.match(r);if(!E)return null;var j=(""+E[0]).match(o)||["-",0,0],C=j[0],T=60*+j[1]+ +j[2];return T===0?0:C==="+"?T:-T}(g),g===null))return this;var x=Math.abs(g)<=16?60*g:g,b=this;if(w)return b.$offset=x,b.$u=g===0,b;if(g!==0){var S=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(b=this.local().add(x+S,n)).$offset=x,b.$x.$localOffset=S}else b=this.utc();return b};var p=l.format;l.format=function(g){var w=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,w)},l.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var h=l.toDate;l.toDate=function(g){return g==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var m=l.diff;l.diff=function(g,w,y){if(g&&this.$u===g.$u)return m.call(this,g,w,y);var x=this.local(),b=a(g).local();return m.call(x,b,w,y)}}})})(ET);var SU=ET.exports;const kT=Js(SU);de.extend(kT);de.extend(wU);function CU(e,t){return t?de(e).tz(t).utcOffset()+e.getTimezoneOffset():0}const hC=(e,t,n)=>{if(!e)return null;if(!t)return e;let r=CU(e,t);return n==="remove"&&(r*=-1),de(e).add(r,"minutes").toDate()};function Ws(e,t,n,r){return r||!t?t:Array.isArray(t)?t.map(o=>hC(o,n,e)):hC(t,n,e)}const EU={locale:"en",timezone:null,firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},kU=v.createContext(EU);function kr(){const e=v.useContext(kU),t=v.useCallback(i=>i||e.locale,[e.locale]),n=v.useCallback(i=>i||e.timezone||void 0,[e.timezone]),r=v.useCallback(i=>typeof i=="number"?i:e.firstDayOfWeek,[e.firstDayOfWeek]),o=v.useCallback(i=>Array.isArray(i)?i:e.weekendDays,[e.weekendDays]),s=v.useCallback(i=>typeof i=="string"?i:e.labelSeparator,[e.labelSeparator]);return{...e,getLocale:t,getTimezone:n,getFirstDayOfWeek:r,getWeekendDays:o,getLabelSeparator:s}}function jU(e,t){if(t==="range"&&Array.isArray(e)){const[n,r]=e;return n?r?`${n.toISOString()} – ${r.toISOString()}`:`${n.toISOString()} –`:""}return t==="multiple"&&Array.isArray(e)?e.map(n=>n==null?void 0:n.toISOString()).filter(Boolean).join(", "):!Array.isArray(e)&&e?e.toISOString():""}function jT({value:e,type:t,name:n,form:r}){return u.jsx("input",{type:"hidden",value:jU(e,t),name:n,form:r})}jT.displayName="@mantine/dates/HiddenDatesInput";var RU={input:"m_468e7eda"};const PU={},gx=Q((e,t)=>{const n=K("TimeInput",PU,e),{classNames:r,styles:o,unstyled:s,vars:i,withSeconds:a,minTime:l,maxTime:c,value:d,onChange:f,...p}=n,{resolvedClassNames:h,resolvedStyles:m}=Qo({classNames:r,styles:o,props:n}),g=y=>{if(l!==void 0||c!==void 0){const[x,b,S]=y.split(":").map(Number);if(l){const[k,E,j]=l.split(":").map(Number);if(x<k||x===k&&b<E||a&&x===k&&b===E&&S<j)return-1}if(c){const[k,E,j]=c.split(":").map(Number);if(x>k||x===k&&b>E||a&&x===k&&b===E&&S>j)return 1}}return 0},w=y=>{var x,b,S;if((x=n.onBlur)==null||x.call(n,y),l!==void 0||c!==void 0){const k=y.currentTarget.value;if(k){const E=g(k);E===1?(y.currentTarget.value=c,(b=n.onChange)==null||b.call(n,y)):E===-1&&(y.currentTarget.value=l,(S=n.onChange)==null||S.call(n,y))}}};return u.jsx(ar,{classNames:{...h,input:De(RU.input,h==null?void 0:h.input)},styles:m,unstyled:s,ref:t,value:d,...p,step:a?1:60,onChange:f,onBlur:w,type:"time",__staticSelector:"TimeInput"})});gx.classes=ar.classes;gx.displayName="@mantine/dates/TimeInput";var RT={day:"m_396ce5cb"};const TU={},NU=(e,{size:t})=>({day:{"--day-size":Le(t,"day-size")}}),yx=Q((e,t)=>{const n=K("Day",TU,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,date:c,disabled:d,__staticSelector:f,weekend:p,outside:h,selected:m,renderDay:g,inRange:w,firstInRange:y,lastInRange:x,hidden:b,static:S,highlightToday:k,...E}=n,j=pe({name:f||"Day",classes:RT,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:NU,rootSelector:"day"}),C=kr();return u.jsx(Kt,{...j("day",{style:b?{display:"none"}:void 0}),component:S?"div":"button",ref:t,disabled:d,"data-today":de(c).isSame(Ws("add",new Date,C.getTimezone()),"day")||void 0,"data-hidden":b||void 0,"data-highlight-today":k||void 0,"data-disabled":d||void 0,"data-weekend":!d&&!h&&p||void 0,"data-outside":!d&&h||void 0,"data-selected":!d&&m||void 0,"data-in-range":w&&!d||void 0,"data-first-in-range":y&&!d||void 0,"data-last-in-range":x&&!d||void 0,"data-static":S||void 0,unstyled:a,...E,children:(g==null?void 0:g(c))||c.getDate()})});yx.classes=RT;yx.displayName="@mantine/dates/Day";function LU({locale:e,format:t="dd",firstDayOfWeek:n=1}){const r=de().day(n),o=[];for(let s=0;s<7;s+=1)typeof t=="string"?o.push(de(r).add(s,"days").locale(e).format(t)):o.push(t(de(r).add(s,"days").toDate()));return o}var PT={weekday:"m_18a3eca"};const DU={},MU=(e,{size:t})=>({weekdaysRow:{"--wr-fz":Jt(t),"--wr-spacing":Wr(t)}}),vx=Q((e,t)=>{const n=K("WeekdaysRow",DU,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,locale:c,firstDayOfWeek:d,weekdayFormat:f,cellComponent:p="th",__staticSelector:h,...m}=n,g=pe({name:h||"WeekdaysRow",classes:PT,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:MU,rootSelector:"weekdaysRow"}),w=kr(),y=LU({locale:w.getLocale(c),format:f,firstDayOfWeek:w.getFirstDayOfWeek(d)}).map((x,b)=>u.jsx(p,{...g("weekday"),children:x},b));return u.jsx(Y,{component:"tr",ref:t,...g("weekdaysRow"),...m,children:y})});vx.classes=PT;vx.displayName="@mantine/dates/WeekdaysRow";function _U(e,t=1){const n=new Date(e),r=t===0?6:t-1;for(;n.getDay()!==r;)n.setDate(n.getDate()+1);return n}function AU(e,t=1){const n=new Date(e);for(;n.getDay()!==t;)n.setDate(n.getDate()-1);return n}function OU({month:e,firstDayOfWeek:t=1,consistentWeeks:n}){const r=e.getMonth(),o=new Date(e.getFullYear(),r,1),s=new Date(e.getFullYear(),e.getMonth()+1,0),i=_U(s,t),a=AU(o,t),l=[];for(;a<=i;){const c=[];for(let d=0;d<7;d+=1)c.push(new Date(a)),a.setDate(a.getDate()+1);l.push(c)}if(n&&l.length<6){const c=l[l.length-1],d=c[c.length-1],f=new Date(d);for(f.setDate(f.getDate()+1);l.length<6;){const p=[];for(let h=0;h<7;h+=1)p.push(new Date(f)),f.setDate(f.getDate()+1);l.push(p)}}return l}function TT(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function NT(e,t){return t instanceof Date?de(e).isAfter(de(t).subtract(1,"day"),"day"):!0}function LT(e,t){return t instanceof Date?de(e).isBefore(de(t).add(1,"day"),"day"):!0}function $U(e,t,n,r,o,s,i){const a=e.flat().filter(d=>{var f;return LT(d,n)&&NT(d,t)&&!(o!=null&&o(d))&&!((f=r==null?void 0:r(d))!=null&&f.disabled)&&(!s||TT(d,i))}),l=a.find(d=>{var f;return(f=r==null?void 0:r(d))==null?void 0:f.selected});if(l)return l;const c=a.find(d=>de().isSame(d,"date"));return c||a[0]}var DT={month:"m_cc9820d3",monthCell:"m_8f457cd5"};const FU={withCellSpacing:!0},Vh=Q((e,t)=>{const n=K("Month",FU,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,__staticSelector:c,locale:d,firstDayOfWeek:f,weekdayFormat:p,month:h,weekendDays:m,getDayProps:g,excludeDate:w,minDate:y,maxDate:x,renderDay:b,hideOutsideDates:S,hideWeekdays:k,getDayAriaLabel:E,static:j,__getDayRef:C,__onDayKeyDown:T,__onDayClick:N,__onDayMouseEnter:_,__preventFocus:I,__stopPropagation:U,withCellSpacing:O,size:M,highlightToday:P,...L}=n,R=pe({name:c||"Month",classes:DT,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,rootSelector:"month"}),D=kr(),$=OU({month:h,firstDayOfWeek:D.getFirstDayOfWeek(f),consistentWeeks:D.consistentWeeks}),A=$U($,y,x,g,w,S,h),{resolvedClassNames:B,resolvedStyles:G}=Qo({classNames:r,styles:i,props:n}),ne=$.map((Z,oe)=>{const ae=Z.map((ue,be)=>{const fe=!TT(ue,h),_e=(E==null?void 0:E(ue))||de(ue).locale(d||D.locale).format("D MMMM YYYY"),he=g==null?void 0:g(ue),Se=de(ue).isSame(A,"date");return u.jsx("td",{...R("monthCell"),"data-with-spacing":O||void 0,children:u.jsx(yx,{__staticSelector:c||"Month",classNames:B,styles:G,unstyled:a,"data-mantine-stop-propagation":U||void 0,highlightToday:P,renderDay:b,date:ue,size:M,weekend:D.getWeekendDays(m).includes(ue.getDay()),outside:fe,hidden:S?fe:!1,"aria-label":_e,static:j,disabled:(w==null?void 0:w(ue))||!LT(ue,x)||!NT(ue,y),ref:le=>C==null?void 0:C(oe,be,le),...he,onKeyDown:le=>{var Te;(Te=he==null?void 0:he.onKeyDown)==null||Te.call(he,le),T==null||T(le,{rowIndex:oe,cellIndex:be,date:ue})},onMouseEnter:le=>{var Te;(Te=he==null?void 0:he.onMouseEnter)==null||Te.call(he,le),_==null||_(le,ue)},onClick:le=>{var Te;(Te=he==null?void 0:he.onClick)==null||Te.call(he,le),N==null||N(le,ue)},onMouseDown:le=>{var Te;(Te=he==null?void 0:he.onMouseDown)==null||Te.call(he,le),I&&le.preventDefault()},tabIndex:I||!Se?-1:0})},ue.toString())});return u.jsx("tr",{...R("monthRow"),children:ae},oe)});return u.jsxs(Y,{component:"table",...R("month"),size:M,ref:t,...L,children:[!k&&u.jsx("thead",{...R("monthThead"),children:u.jsx(vx,{__staticSelector:c||"Month",locale:d,firstDayOfWeek:f,weekdayFormat:p,size:M,classNames:B,styles:G,unstyled:a})}),u.jsx("tbody",{...R("monthTbody"),children:ne})]})});Vh.classes=DT;Vh.displayName="@mantine/dates/Month";var MT={pickerControl:"m_dc6a3c71"};const IU={},zU=(e,{size:t})=>({pickerControl:{"--dpc-fz":Jt(t),"--dpc-size":Le(t,"dpc-size")}}),Bh=Q((e,t)=>{const n=K("PickerControl",IU,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,firstInRange:c,lastInRange:d,inRange:f,__staticSelector:p,selected:h,disabled:m,...g}=n,w=pe({name:p||"PickerControl",classes:MT,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:zU,rootSelector:"pickerControl"});return u.jsx(Kt,{...w("pickerControl"),ref:t,unstyled:a,"data-picker-control":!0,"data-selected":h&&!m||void 0,"data-disabled":m||void 0,"data-in-range":f&&!m&&!h||void 0,"data-first-in-range":c&&!m||void 0,"data-last-in-range":d&&!m||void 0,disabled:m,...g})});Bh.classes=MT;Bh.displayName="@mantine/dates/PickerControl";function _T(e,t,n){return!t&&!n?!1:!!(t&&de(e).isBefore(t,"year")||n&&de(e).isAfter(n,"year"))}function VU(e,t,n,r){const o=e.flat().filter(a=>{var l;return!_T(a,t,n)&&!((l=r==null?void 0:r(a))!=null&&l.disabled)}),s=o.find(a=>{var l;return(l=r==null?void 0:r(a))==null?void 0:l.selected});if(s)return s;const i=o.find(a=>de().isSame(a,"year"));return i||o[0]}function AT(e){const t=e.getFullYear(),n=t-t%10;let r=0;const o=[[],[],[],[]];for(let s=0;s<4;s+=1){const i=s===3?1:3;for(let a=0;a<i;a+=1)o[s].push(new Date(n+r,0)),r+=1}return o}var OT={yearsList:"m_9206547b",yearsListCell:"m_c5a19c7d"};const BU={yearsListFormat:"YYYY",withCellSpacing:!0},Uh=Q((e,t)=>{const n=K("YearsList",BU,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,decade:c,yearsListFormat:d,locale:f,minDate:p,maxDate:h,getYearControlProps:m,__staticSelector:g,__getControlRef:w,__onControlKeyDown:y,__onControlClick:x,__onControlMouseEnter:b,__preventFocus:S,__stopPropagation:k,withCellSpacing:E,size:j,...C}=n,T=pe({name:g||"YearsList",classes:OT,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,rootSelector:"yearsList"}),N=kr(),_=AT(c),I=VU(_,p,h,m),U=_.map((O,M)=>{const P=O.map((L,R)=>{const D=m==null?void 0:m(L),$=de(L).isSame(I,"year");return u.jsx("td",{...T("yearsListCell"),"data-with-spacing":E||void 0,children:u.jsx(Bh,{...T("yearsListControl"),size:j,unstyled:a,"data-mantine-stop-propagation":k||void 0,disabled:_T(L,p,h),ref:A=>w==null?void 0:w(M,R,A),...D,onKeyDown:A=>{var B;(B=D==null?void 0:D.onKeyDown)==null||B.call(D,A),y==null||y(A,{rowIndex:M,cellIndex:R,date:L})},onClick:A=>{var B;(B=D==null?void 0:D.onClick)==null||B.call(D,A),x==null||x(A,L)},onMouseEnter:A=>{var B;(B=D==null?void 0:D.onMouseEnter)==null||B.call(D,A),b==null||b(A,L)},onMouseDown:A=>{var B;(B=D==null?void 0:D.onMouseDown)==null||B.call(D,A),S&&A.preventDefault()},tabIndex:S||!$?-1:0,children:de(L).locale(N.getLocale(f)).format(d)})},R)});return u.jsx("tr",{...T("yearsListRow"),children:P},M)});return u.jsx(Y,{component:"table",ref:t,size:j,...T("yearsList"),...C,children:u.jsx("tbody",{children:U})})});Uh.classes=OT;Uh.displayName="@mantine/dates/YearsList";function $T(e,t,n){return!t&&!n?!1:!!(t&&de(e).isBefore(t,"month")||n&&de(e).isAfter(n,"month"))}function UU(e,t,n,r){const o=e.flat().filter(a=>{var l;return!$T(a,t,n)&&!((l=r==null?void 0:r(a))!=null&&l.disabled)}),s=o.find(a=>{var l;return(l=r==null?void 0:r(a))==null?void 0:l.selected});if(s)return s;const i=o.find(a=>de().isSame(a,"month"));return i||o[0]}function HU(e){const t=de(e).startOf("year").toDate(),n=[[],[],[],[]];let r=0;for(let o=0;o<4;o+=1)for(let s=0;s<3;s+=1)n[o].push(de(t).add(r,"months").toDate()),r+=1;return n}var FT={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const WU={monthsListFormat:"MMM",withCellSpacing:!0},Hh=Q((e,t)=>{const n=K("MonthsList",WU,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,__staticSelector:c,year:d,monthsListFormat:f,locale:p,minDate:h,maxDate:m,getMonthControlProps:g,__getControlRef:w,__onControlKeyDown:y,__onControlClick:x,__onControlMouseEnter:b,__preventFocus:S,__stopPropagation:k,withCellSpacing:E,size:j,...C}=n,T=pe({name:c||"MonthsList",classes:FT,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,rootSelector:"monthsList"}),N=kr(),_=HU(d),I=UU(_,h,m,g),U=_.map((O,M)=>{const P=O.map((L,R)=>{const D=g==null?void 0:g(L),$=de(L).isSame(I,"month");return u.jsx("td",{...T("monthsListCell"),"data-with-spacing":E||void 0,children:u.jsx(Bh,{...T("monthsListControl"),size:j,unstyled:a,__staticSelector:c||"MonthsList","data-mantine-stop-propagation":k||void 0,disabled:$T(L,h,m),ref:A=>w==null?void 0:w(M,R,A),...D,onKeyDown:A=>{var B;(B=D==null?void 0:D.onKeyDown)==null||B.call(D,A),y==null||y(A,{rowIndex:M,cellIndex:R,date:L})},onClick:A=>{var B;(B=D==null?void 0:D.onClick)==null||B.call(D,A),x==null||x(A,L)},onMouseEnter:A=>{var B;(B=D==null?void 0:D.onMouseEnter)==null||B.call(D,A),b==null||b(A,L)},onMouseDown:A=>{var B;(B=D==null?void 0:D.onMouseDown)==null||B.call(D,A),S&&A.preventDefault()},tabIndex:S||!$?-1:0,children:de(L).locale(N.getLocale(p)).format(f)})},R)});return u.jsx("tr",{...T("monthsListRow"),children:P},M)});return u.jsx(Y,{component:"table",ref:t,size:j,...T("monthsList"),...C,children:u.jsx("tbody",{children:U})})});Hh.classes=FT;Hh.displayName="@mantine/dates/MonthsList";var IT={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const KU={nextDisabled:!1,previousDisabled:!1,hasNextLevel:!0,withNext:!0,withPrevious:!0},qU=(e,{size:t})=>({calendarHeader:{"--dch-control-size":Le(t,"dch-control-size"),"--dch-fz":Jt(t)}}),ui=Q((e,t)=>{const n=K("CalendarHeader",KU,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,nextIcon:c,previousIcon:d,nextLabel:f,previousLabel:p,onNext:h,onPrevious:m,onLevelClick:g,label:w,nextDisabled:y,previousDisabled:x,hasNextLevel:b,levelControlAriaLabel:S,withNext:k,withPrevious:E,__staticSelector:j,__preventFocus:C,__stopPropagation:T,...N}=n,_=pe({name:j||"CalendarHeader",classes:IT,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:qU,rootSelector:"calendarHeader"}),I=C?U=>U.preventDefault():void 0;return u.jsxs(Y,{..._("calendarHeader"),ref:t,...N,children:[E&&u.jsx(Kt,{..._("calendarHeaderControl"),"data-direction":"previous","aria-label":p,onClick:m,unstyled:a,onMouseDown:I,disabled:x,"data-disabled":x||void 0,tabIndex:C||x?-1:0,"data-mantine-stop-propagation":T||void 0,children:d||u.jsx(_y,{..._("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})}),u.jsx(Kt,{component:b?"button":"div",..._("calendarHeaderLevel"),onClick:b?g:void 0,unstyled:a,onMouseDown:b?I:void 0,disabled:!b,"data-static":!b||void 0,"aria-label":S,tabIndex:C||!b?-1:0,"data-mantine-stop-propagation":T||void 0,children:w}),k&&u.jsx(Kt,{..._("calendarHeaderControl"),"data-direction":"next","aria-label":f,onClick:h,unstyled:a,onMouseDown:I,disabled:y,"data-disabled":y||void 0,tabIndex:C||y?-1:0,"data-mantine-stop-propagation":T||void 0,children:c||u.jsx(_y,{..._("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})})]})});ui.classes=IT;ui.displayName="@mantine/dates/CalendarHeader";function YU(e){const t=AT(e);return[t[0][0],t[3][0]]}const GU={decadeLabelFormat:"YYYY"},Wh=Q((e,t)=>{const n=K("DecadeLevel",GU,e),{decade:r,locale:o,minDate:s,maxDate:i,yearsListFormat:a,getYearControlProps:l,__getControlRef:c,__onControlKeyDown:d,__onControlClick:f,__onControlMouseEnter:p,withCellSpacing:h,__preventFocus:m,nextIcon:g,previousIcon:w,nextLabel:y,previousLabel:x,onNext:b,onPrevious:S,nextDisabled:k,previousDisabled:E,levelControlAriaLabel:j,withNext:C,withPrevious:T,decadeLabelFormat:N,classNames:_,styles:I,unstyled:U,__staticSelector:O,__stopPropagation:M,size:P,...L}=n,R=kr(),[D,$]=YU(r),A={__staticSelector:O||"DecadeLevel",classNames:_,styles:I,unstyled:U,size:P},B=typeof k=="boolean"?k:i?!de($).endOf("year").isBefore(i):!1,G=typeof E=="boolean"?E:s?!de(D).startOf("year").isAfter(s):!1,ne=(Z,oe)=>de(Z).locale(o||R.locale).format(oe);return u.jsxs(Y,{"data-decade-level":!0,size:P,ref:t,...L,children:[u.jsx(ui,{label:typeof N=="function"?N(D,$):`${ne(D,N)} – ${ne($,N)}`,__preventFocus:m,__stopPropagation:M,nextIcon:g,previousIcon:w,nextLabel:y,previousLabel:x,onNext:b,onPrevious:S,nextDisabled:B,previousDisabled:G,hasNextLevel:!1,levelControlAriaLabel:j,withNext:C,withPrevious:T,...A}),u.jsx(Uh,{decade:r,locale:o,minDate:s,maxDate:i,yearsListFormat:a,getYearControlProps:l,__getControlRef:c,__onControlKeyDown:d,__onControlClick:f,__onControlMouseEnter:p,__preventFocus:m,__stopPropagation:M,withCellSpacing:h,...A})]})});Wh.classes={...Uh.classes,...ui.classes};Wh.displayName="@mantine/dates/DecadeLevel";const QU={yearLabelFormat:"YYYY"},Kh=Q((e,t)=>{const n=K("YearLevel",QU,e),{year:r,locale:o,minDate:s,maxDate:i,monthsListFormat:a,getMonthControlProps:l,__getControlRef:c,__onControlKeyDown:d,__onControlClick:f,__onControlMouseEnter:p,withCellSpacing:h,__preventFocus:m,nextIcon:g,previousIcon:w,nextLabel:y,previousLabel:x,onNext:b,onPrevious:S,onLevelClick:k,nextDisabled:E,previousDisabled:j,hasNextLevel:C,levelControlAriaLabel:T,withNext:N,withPrevious:_,yearLabelFormat:I,__staticSelector:U,__stopPropagation:O,size:M,classNames:P,styles:L,unstyled:R,...D}=n,$=kr(),A={__staticSelector:U||"YearLevel",classNames:P,styles:L,unstyled:R,size:M},B=typeof E=="boolean"?E:i?!de(r).endOf("year").isBefore(i):!1,G=typeof j=="boolean"?j:s?!de(r).startOf("year").isAfter(s):!1;return u.jsxs(Y,{"data-year-level":!0,size:M,ref:t,...D,children:[u.jsx(ui,{label:typeof I=="function"?I(r):de(r).locale(o||$.locale).format(I),__preventFocus:m,__stopPropagation:O,nextIcon:g,previousIcon:w,nextLabel:y,previousLabel:x,onNext:b,onPrevious:S,onLevelClick:k,nextDisabled:B,previousDisabled:G,hasNextLevel:C,levelControlAriaLabel:T,withNext:N,withPrevious:_,...A}),u.jsx(Hh,{year:r,locale:o,minDate:s,maxDate:i,monthsListFormat:a,getMonthControlProps:l,__getControlRef:c,__onControlKeyDown:d,__onControlClick:f,__onControlMouseEnter:p,__preventFocus:m,__stopPropagation:O,withCellSpacing:h,...A})]})});Kh.classes={...ui.classes,...Hh.classes};Kh.displayName="@mantine/dates/YearLevel";const XU={monthLabelFormat:"MMMM YYYY"},qh=Q((e,t)=>{const n=K("MonthLevel",XU,e),{month:r,locale:o,firstDayOfWeek:s,weekdayFormat:i,weekendDays:a,getDayProps:l,excludeDate:c,minDate:d,maxDate:f,renderDay:p,hideOutsideDates:h,hideWeekdays:m,getDayAriaLabel:g,__getDayRef:w,__onDayKeyDown:y,__onDayClick:x,__onDayMouseEnter:b,withCellSpacing:S,highlightToday:k,__preventFocus:E,__stopPropagation:j,nextIcon:C,previousIcon:T,nextLabel:N,previousLabel:_,onNext:I,onPrevious:U,onLevelClick:O,nextDisabled:M,previousDisabled:P,hasNextLevel:L,levelControlAriaLabel:R,withNext:D,withPrevious:$,monthLabelFormat:A,classNames:B,styles:G,unstyled:ne,__staticSelector:Z,size:oe,static:ae,...ue}=n,be=kr(),fe={__staticSelector:Z||"MonthLevel",classNames:B,styles:G,unstyled:ne,size:oe},_e=typeof M=="boolean"?M:f?!de(r).endOf("month").isBefore(f):!1,he=typeof P=="boolean"?P:d?!de(r).startOf("month").isAfter(d):!1;return u.jsxs(Y,{"data-month-level":!0,size:oe,ref:t,...ue,children:[u.jsx(ui,{label:typeof A=="function"?A(r):de(r).locale(o||be.locale).format(A),__preventFocus:E,__stopPropagation:j,nextIcon:C,previousIcon:T,nextLabel:N,previousLabel:_,onNext:I,onPrevious:U,onLevelClick:O,nextDisabled:_e,previousDisabled:he,hasNextLevel:L,levelControlAriaLabel:R,withNext:D,withPrevious:$,...fe}),u.jsx(Vh,{month:r,locale:o,firstDayOfWeek:s,weekdayFormat:i,weekendDays:a,getDayProps:l,excludeDate:c,minDate:d,maxDate:f,renderDay:p,hideOutsideDates:h,hideWeekdays:m,getDayAriaLabel:g,__getDayRef:w,__onDayKeyDown:y,__onDayClick:x,__onDayMouseEnter:b,__preventFocus:E,__stopPropagation:j,static:ae,withCellSpacing:S,highlightToday:k,...fe})]})});qh.classes={...Vh.classes,...ui.classes};qh.displayName="@mantine/dates/MonthLevel";var zT={levelsGroup:"m_30b26e33"};const JU={},di=Q((e,t)=>{const n=K("LevelsGroup",JU,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,__staticSelector:c,...d}=n,f=pe({name:c||"LevelsGroup",classes:zT,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,rootSelector:"levelsGroup"});return u.jsx(Y,{ref:t,...f("levelsGroup"),...d})});di.classes=zT;di.displayName="@mantine/dates/LevelsGroup";const ZU={numberOfColumns:1},Yh=Q((e,t)=>{const n=K("DecadeLevelGroup",ZU,e),{decade:r,locale:o,minDate:s,maxDate:i,yearsListFormat:a,getYearControlProps:l,__onControlClick:c,__onControlMouseEnter:d,withCellSpacing:f,__preventFocus:p,nextIcon:h,previousIcon:m,nextLabel:g,previousLabel:w,onNext:y,onPrevious:x,nextDisabled:b,previousDisabled:S,classNames:k,styles:E,unstyled:j,__staticSelector:C,__stopPropagation:T,numberOfColumns:N,levelControlAriaLabel:_,decadeLabelFormat:I,size:U,vars:O,...M}=n,P=v.useRef([]),L=Array(N).fill(0).map((R,D)=>{const $=de(r).add(D*10,"years").toDate();return u.jsx(Wh,{size:U,yearsListFormat:a,decade:$,withNext:D===N-1,withPrevious:D===0,decadeLabelFormat:I,__onControlClick:c,__onControlMouseEnter:d,__onControlKeyDown:(A,B)=>mx({levelIndex:D,rowIndex:B.rowIndex,cellIndex:B.cellIndex,event:A,controlsRef:P}),__getControlRef:(A,B,G)=>{Array.isArray(P.current[D])||(P.current[D]=[]),Array.isArray(P.current[D][A])||(P.current[D][A]=[]),P.current[D][A][B]=G},levelControlAriaLabel:typeof _=="function"?_($):_,locale:o,minDate:s,maxDate:i,__preventFocus:p,__stopPropagation:T,nextIcon:h,previousIcon:m,nextLabel:g,previousLabel:w,onNext:y,onPrevious:x,nextDisabled:b,previousDisabled:S,getYearControlProps:l,__staticSelector:C||"DecadeLevelGroup",classNames:k,styles:E,unstyled:j,withCellSpacing:f},D)});return u.jsx(di,{classNames:k,styles:E,__staticSelector:C||"DecadeLevelGroup",ref:t,size:U,unstyled:j,...M,children:L})});Yh.classes={...di.classes,...Wh.classes};Yh.displayName="@mantine/dates/DecadeLevelGroup";const eH={numberOfColumns:1},Gh=Q((e,t)=>{const n=K("YearLevelGroup",eH,e),{year:r,locale:o,minDate:s,maxDate:i,monthsListFormat:a,getMonthControlProps:l,__onControlClick:c,__onControlMouseEnter:d,withCellSpacing:f,__preventFocus:p,nextIcon:h,previousIcon:m,nextLabel:g,previousLabel:w,onNext:y,onPrevious:x,onLevelClick:b,nextDisabled:S,previousDisabled:k,hasNextLevel:E,classNames:j,styles:C,unstyled:T,__staticSelector:N,__stopPropagation:_,numberOfColumns:I,levelControlAriaLabel:U,yearLabelFormat:O,size:M,vars:P,...L}=n,R=v.useRef([]),D=Array(I).fill(0).map(($,A)=>{const B=de(r).add(A,"years").toDate();return u.jsx(Kh,{size:M,monthsListFormat:a,year:B,withNext:A===I-1,withPrevious:A===0,yearLabelFormat:O,__stopPropagation:_,__onControlClick:c,__onControlMouseEnter:d,__onControlKeyDown:(G,ne)=>mx({levelIndex:A,rowIndex:ne.rowIndex,cellIndex:ne.cellIndex,event:G,controlsRef:R}),__getControlRef:(G,ne,Z)=>{Array.isArray(R.current[A])||(R.current[A]=[]),Array.isArray(R.current[A][G])||(R.current[A][G]=[]),R.current[A][G][ne]=Z},levelControlAriaLabel:typeof U=="function"?U(B):U,locale:o,minDate:s,maxDate:i,__preventFocus:p,nextIcon:h,previousIcon:m,nextLabel:g,previousLabel:w,onNext:y,onPrevious:x,onLevelClick:b,nextDisabled:S,previousDisabled:k,hasNextLevel:E,getMonthControlProps:l,classNames:j,styles:C,unstyled:T,__staticSelector:N||"YearLevelGroup",withCellSpacing:f},A)});return u.jsx(di,{classNames:j,styles:C,__staticSelector:N||"YearLevelGroup",ref:t,size:M,unstyled:T,...L,children:D})});Gh.classes={...Kh.classes,...di.classes};Gh.displayName="@mantine/dates/YearLevelGroup";const tH={numberOfColumns:1},Qh=Q((e,t)=>{const n=K("MonthLevelGroup",tH,e),{month:r,locale:o,firstDayOfWeek:s,weekdayFormat:i,weekendDays:a,getDayProps:l,excludeDate:c,minDate:d,maxDate:f,renderDay:p,hideOutsideDates:h,hideWeekdays:m,getDayAriaLabel:g,__onDayClick:w,__onDayMouseEnter:y,withCellSpacing:x,highlightToday:b,__preventFocus:S,nextIcon:k,previousIcon:E,nextLabel:j,previousLabel:C,onNext:T,onPrevious:N,onLevelClick:_,nextDisabled:I,previousDisabled:U,hasNextLevel:O,classNames:M,styles:P,unstyled:L,numberOfColumns:R,levelControlAriaLabel:D,monthLabelFormat:$,__staticSelector:A,__stopPropagation:B,size:G,static:ne,vars:Z,...oe}=n,ae=v.useRef([]),ue=Array(R).fill(0).map((be,fe)=>{const _e=de(r).add(fe,"months").toDate();return u.jsx(qh,{month:_e,withNext:fe===R-1,withPrevious:fe===0,monthLabelFormat:$,__stopPropagation:B,__onDayClick:w,__onDayMouseEnter:y,__onDayKeyDown:(he,Se)=>mx({levelIndex:fe,rowIndex:Se.rowIndex,cellIndex:Se.cellIndex,event:he,controlsRef:ae}),__getDayRef:(he,Se,le)=>{Array.isArray(ae.current[fe])||(ae.current[fe]=[]),Array.isArray(ae.current[fe][he])||(ae.current[fe][he]=[]),ae.current[fe][he][Se]=le},levelControlAriaLabel:typeof D=="function"?D(_e):D,locale:o,firstDayOfWeek:s,weekdayFormat:i,weekendDays:a,getDayProps:l,excludeDate:c,minDate:d,maxDate:f,renderDay:p,hideOutsideDates:h,hideWeekdays:m,getDayAriaLabel:g,__preventFocus:S,nextIcon:k,previousIcon:E,nextLabel:j,previousLabel:C,onNext:T,onPrevious:N,onLevelClick:_,nextDisabled:I,previousDisabled:U,hasNextLevel:O,classNames:M,styles:P,unstyled:L,__staticSelector:A||"MonthLevelGroup",size:G,static:ne,withCellSpacing:x,highlightToday:b},fe)});return u.jsx(di,{classNames:M,styles:P,__staticSelector:A||"MonthLevelGroup",ref:t,size:G,...oe,children:ue})});Qh.classes={...di.classes,...qh.classes};Qh.displayName="@mantine/dates/MonthLevelGroup";var VT={input:"m_6fa5e2aa"};const nH={},Xh=Q((e,t)=>{const{inputProps:n,wrapperProps:r,placeholder:o,classNames:s,styles:i,unstyled:a,popoverProps:l,modalProps:c,dropdownType:d,children:f,formattedValue:p,dropdownHandlers:h,dropdownOpened:m,onClick:g,clearable:w,onClear:y,clearButtonProps:x,rightSection:b,shouldClear:S,readOnly:k,disabled:E,value:j,name:C,form:T,type:N,..._}=fj("PickerInputBase",nH,e),I=b||(w&&S&&!k&&!E?u.jsx(Sr,{variant:"transparent",onClick:y,unstyled:a,size:n.size||"sm",...x}):null),U=()=>{N==="range"&&Array.isArray(j)&&j[0]&&!j[1]&&y(),h.close()};return u.jsxs(u.Fragment,{children:[d==="modal"&&!k&&u.jsx(_t,{opened:m,onClose:U,withCloseButton:!1,size:"auto","data-dates-modal":!0,unstyled:a,...c,children:f}),u.jsx(st.Wrapper,{...r,children:u.jsxs(At,{position:"bottom-start",opened:m,trapFocus:!0,returnFocus:!0,unstyled:a,...l,disabled:(l==null?void 0:l.disabled)||d==="modal"||k,onClose:()=>{var O;(O=l==null?void 0:l.onClose)==null||O.call(l),U()},children:[u.jsx(At.Target,{children:u.jsx(st,{"data-dates-input":!0,"data-read-only":k||void 0,disabled:E,component:"button",type:"button",multiline:!0,onClick:O=>{g==null||g(O),h.toggle()},rightSection:I,...n,ref:t,classNames:{...s,input:De(VT.input,s==null?void 0:s.input)},..._,children:p||u.jsx(st.Placeholder,{error:n.error,unstyled:a,className:s==null?void 0:s.placeholder,style:i==null?void 0:i.placeholder,children:o})})}),u.jsx(At.Dropdown,{"data-dates-dropdown":!0,children:f})]})}),u.jsx(jT,{value:j,name:C,form:T,type:N})]})});Xh.classes=VT;Xh.displayName="@mantine/dates/PickerInputBase";const mC=e=>e==="range"?[null,null]:e==="multiple"?[]:null;function xx({type:e,value:t,defaultValue:n,onChange:r,applyTimezone:o=!0}){const s=v.useRef(e),i=kr(),[a,l,c]=Zt({value:Ws("add",t,i.getTimezone(),!o),defaultValue:Ws("add",n,i.getTimezone(),!o),finalValue:mC(e),onChange:f=>{r==null||r(Ws("remove",f,i.getTimezone(),!o))}});let d=a;return s.current!==e&&(s.current=e,t===void 0&&(d=n!==void 0?n:mC(e),l(d))),[d,l,c]}function Cg(e,t){return e?e==="month"?0:e==="year"?1:2:t||0}function rH(e){return e===0?"month":e===1?"year":"decade"}function _c(e,t,n){return rH(Ic(Cg(e,0),Cg(t,0),Cg(n,2)))}const oH={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0},Jh=Q((e,t)=>{const n=K("Calendar",oH,e),{vars:r,maxLevel:o,minLevel:s,defaultLevel:i,level:a,onLevelChange:l,date:c,defaultDate:d,onDateChange:f,numberOfColumns:p,columnsToScroll:h,ariaLabels:m,onYearSelect:g,onMonthSelect:w,onYearMouseEnter:y,onMonthMouseEnter:x,__updateDateOnYearSelect:b,__updateDateOnMonthSelect:S,firstDayOfWeek:k,weekdayFormat:E,weekendDays:j,getDayProps:C,excludeDate:T,renderDay:N,hideOutsideDates:_,hideWeekdays:I,getDayAriaLabel:U,monthLabelFormat:O,nextIcon:M,previousIcon:P,__onDayClick:L,__onDayMouseEnter:R,withCellSpacing:D,highlightToday:$,monthsListFormat:A,getMonthControlProps:B,yearLabelFormat:G,yearsListFormat:ne,getYearControlProps:Z,decadeLabelFormat:oe,classNames:ae,styles:ue,unstyled:be,minDate:fe,maxDate:_e,locale:he,__staticSelector:Se,size:le,__preventFocus:Te,__stopPropagation:et,onNextDecade:te,onPreviousDecade:se,onNextYear:we,onPreviousYear:ke,onNextMonth:Ie,onPreviousMonth:Oe,static:ee,__timezoneApplied:Ee,...tt}=n,{resolvedClassNames:nt,resolvedStyles:at}=Qo({classNames:ae,styles:ue,props:n}),[qe,Ke]=Zt({value:a?_c(a,s,o):void 0,defaultValue:i?_c(i,s,o):void 0,finalValue:_c(void 0,s,o),onChange:l}),[dt,kt]=xx({type:"default",value:c,defaultValue:d,onChange:f,applyTimezone:!Ee}),jr={__staticSelector:Se||"Calendar",styles:at,classNames:nt,unstyled:be,size:le},ds=kr(),eo=h||p||1,Wn=new Date,ua=fe&&fe>Wn?fe:Wn,Tn=dt||Ws("add",ua,ds.getTimezone()),da=()=>{const lt=de(Tn).add(eo,"month").toDate();Ie==null||Ie(lt),kt(lt)},pc=()=>{const lt=de(Tn).subtract(eo,"month").toDate();Oe==null||Oe(lt),kt(lt)},fa=()=>{const lt=de(Tn).add(eo,"year").toDate();we==null||we(lt),kt(lt)},fs=()=>{const lt=de(Tn).subtract(eo,"year").toDate();ke==null||ke(lt),kt(lt)},pa=()=>{const lt=de(Tn).add(10*eo,"year").toDate();te==null||te(lt),kt(lt)},pi=()=>{const lt=de(Tn).subtract(10*eo,"year").toDate();se==null||se(lt),kt(lt)};return u.jsxs(Y,{ref:t,size:le,"data-calendar":!0,...tt,children:[qe==="month"&&u.jsx(Qh,{month:Tn,minDate:fe,maxDate:_e,firstDayOfWeek:k,weekdayFormat:E,weekendDays:j,getDayProps:C,excludeDate:T,renderDay:N,hideOutsideDates:_,hideWeekdays:I,getDayAriaLabel:U,onNext:da,onPrevious:pc,hasNextLevel:o!=="month",onLevelClick:()=>Ke("year"),numberOfColumns:p,locale:he,levelControlAriaLabel:m==null?void 0:m.monthLevelControl,nextLabel:m==null?void 0:m.nextMonth,nextIcon:M,previousLabel:m==null?void 0:m.previousMonth,previousIcon:P,monthLabelFormat:O,__onDayClick:L,__onDayMouseEnter:R,__preventFocus:Te,__stopPropagation:et,static:ee,withCellSpacing:D,highlightToday:$,...jr}),qe==="year"&&u.jsx(Gh,{year:Tn,numberOfColumns:p,minDate:fe,maxDate:_e,monthsListFormat:A,getMonthControlProps:B,locale:he,onNext:fa,onPrevious:fs,hasNextLevel:o!=="month"&&o!=="year",onLevelClick:()=>Ke("decade"),levelControlAriaLabel:m==null?void 0:m.yearLevelControl,nextLabel:m==null?void 0:m.nextYear,nextIcon:M,previousLabel:m==null?void 0:m.previousYear,previousIcon:P,yearLabelFormat:G,__onControlMouseEnter:x,__onControlClick:(lt,Rr)=>{S&&kt(Rr),Ke(_c("month",s,o)),w==null||w(Rr)},__preventFocus:Te,__stopPropagation:et,withCellSpacing:D,...jr}),qe==="decade"&&u.jsx(Yh,{decade:Tn,minDate:fe,maxDate:_e,yearsListFormat:ne,getYearControlProps:Z,locale:he,onNext:pa,onPrevious:pi,numberOfColumns:p,nextLabel:m==null?void 0:m.nextDecade,nextIcon:M,previousLabel:m==null?void 0:m.previousDecade,previousIcon:P,decadeLabelFormat:oe,__onControlMouseEnter:y,__onControlClick:(lt,Rr)=>{b&&kt(Rr),Ke(_c("year",s,o)),g==null||g(Rr)},__preventFocus:Te,__stopPropagation:et,withCellSpacing:D,...jr})]})});Jh.classes={...Yh.classes,...Gh.classes,...Qh.classes};Jh.displayName="@mantine/dates/Calendar";function sH(e){const{maxLevel:t,minLevel:n,defaultLevel:r,level:o,onLevelChange:s,nextIcon:i,previousIcon:a,date:l,defaultDate:c,onDateChange:d,numberOfColumns:f,columnsToScroll:p,ariaLabels:h,onYearSelect:m,onMonthSelect:g,onYearMouseEnter:w,onMonthMouseEnter:y,onNextMonth:x,onPreviousMonth:b,onNextYear:S,onPreviousYear:k,onNextDecade:E,onPreviousDecade:j,withCellSpacing:C,highlightToday:T,__updateDateOnYearSelect:N,__updateDateOnMonthSelect:_,firstDayOfWeek:I,weekdayFormat:U,weekendDays:O,getDayProps:M,excludeDate:P,renderDay:L,hideOutsideDates:R,hideWeekdays:D,getDayAriaLabel:$,monthLabelFormat:A,monthsListFormat:B,getMonthControlProps:G,yearLabelFormat:ne,yearsListFormat:Z,getYearControlProps:oe,decadeLabelFormat:ae,allowSingleDateInRange:ue,allowDeselect:be,minDate:fe,maxDate:_e,locale:he,...Se}=e;return{calendarProps:{maxLevel:t,minLevel:n,defaultLevel:r,level:o,onLevelChange:s,nextIcon:i,previousIcon:a,date:l,defaultDate:c,onDateChange:d,numberOfColumns:f,columnsToScroll:p,ariaLabels:h,onYearSelect:m,onMonthSelect:g,onYearMouseEnter:w,onMonthMouseEnter:y,onNextMonth:x,onPreviousMonth:b,onNextYear:S,onPreviousYear:k,onNextDecade:E,onPreviousDecade:j,withCellSpacing:C,highlightToday:T,__updateDateOnYearSelect:N,__updateDateOnMonthSelect:_,firstDayOfWeek:I,weekdayFormat:U,weekendDays:O,getDayProps:M,excludeDate:P,renderDay:L,hideOutsideDates:R,hideWeekdays:D,getDayAriaLabel:$,monthLabelFormat:A,monthsListFormat:B,getMonthControlProps:G,yearLabelFormat:ne,yearsListFormat:Z,getYearControlProps:oe,decadeLabelFormat:ae,allowSingleDateInRange:ue,allowDeselect:be,minDate:fe,maxDate:_e,locale:he},others:Se}}function gC(e,t){const n=[...t].sort((r,o)=>r.getTime()-o.getTime());return de(n[0]).startOf("day").subtract(1,"ms").isBefore(e)&&de(n[1]).endOf("day").add(1,"ms").isAfter(e)}function iH({type:e,level:t,value:n,defaultValue:r,onChange:o,allowSingleDateInRange:s,allowDeselect:i,onMouseLeave:a,applyTimezone:l=!0}){const[c,d]=xx({type:e,value:n,defaultValue:r,onChange:o,applyTimezone:l}),[f,p]=v.useState(e==="range"&&c[0]&&!c[1]?c[0]:null),[h,m]=v.useState(null),g=E=>{if(e==="range"){if(f instanceof Date&&!c[1]){if(de(E).isSame(f,t)&&!s){p(null),m(null),d([null,null]);return}const j=[E,f];j.sort((C,T)=>C.getTime()-T.getTime()),d(j),m(null),p(null);return}if(c[0]&&!c[1]&&de(E).isSame(c[0],t)&&!s){p(null),m(null),d([null,null]);return}d([E,null]),m(null),p(E);return}if(e==="multiple"){c.some(j=>de(j).isSame(E,t))?d(c.filter(j=>!de(j).isSame(E,t))):d([...c,E]);return}c&&i&&de(E).isSame(c,t)?d(null):d(E)},w=E=>f instanceof Date&&h instanceof Date?gC(E,[h,f]):c[0]instanceof Date&&c[1]instanceof Date?gC(E,c):!1,y=e==="range"?E=>{a==null||a(E),m(null)}:a,x=E=>c[0]instanceof Date&&de(E).isSame(c[0],t)?!(h&&de(h).isBefore(c[0])):!1,b=E=>c[1]instanceof Date?de(E).isSame(c[1],t):!(c[0]instanceof Date)||!h?!1:de(h).isBefore(c[0])&&de(E).isSame(c[0],t),S=E=>{if(e==="range")return{selected:c.some(C=>C&&de(C).isSame(E,t)),inRange:w(E),firstInRange:x(E),lastInRange:b(E),"data-autofocus":!!c[0]&&de(c[0]).isSame(E,t)||void 0};if(e==="multiple")return{selected:c.some(C=>C&&de(C).isSame(E,t)),"data-autofocus":!!c[0]&&de(c[0]).isSame(E,t)||void 0};const j=de(c).isSame(E,t);return{selected:j,"data-autofocus":j||void 0}},k=e==="range"&&f?m:()=>{};return v.useEffect(()=>{if(e!=="range")return;const E=c[0]==null&&c[1]==null,j=c[0]!=null&&c[1]!=null;(E||j)&&(p(null),m(null))},[c]),{onDateChange:g,onRootMouseLeave:y,onHoveredDateChange:k,getControlProps:S,_value:c,setValue:d}}const aH={type:"default",defaultLevel:"month",numberOfColumns:1},Zh=Q((e,t)=>{const n=K("DatePicker",aH,e),{classNames:r,styles:o,vars:s,type:i,defaultValue:a,value:l,onChange:c,__staticSelector:d,getDayProps:f,allowSingleDateInRange:p,allowDeselect:h,onMouseLeave:m,numberOfColumns:g,hideOutsideDates:w,__onDayMouseEnter:y,__onDayClick:x,__timezoneApplied:b,...S}=n,{onDateChange:k,onRootMouseLeave:E,onHoveredDateChange:j,getControlProps:C}=iH({type:i,level:"day",allowDeselect:h,allowSingleDateInRange:p,value:l,defaultValue:a,onChange:c,onMouseLeave:m,applyTimezone:!b}),{resolvedClassNames:T,resolvedStyles:N}=Qo({classNames:r,styles:o,props:n}),_=kr();return u.jsx(Jh,{ref:t,minLevel:"month",classNames:T,styles:N,__staticSelector:d||"DatePicker",onMouseLeave:E,numberOfColumns:g,hideOutsideDates:w??g!==1,__onDayMouseEnter:(I,U)=>{j(U),y==null||y(I,U)},__onDayClick:(I,U)=>{k(U),x==null||x(I,U)},getDayProps:I=>({...C(I),...f==null?void 0:f(I)}),...S,date:Ws("add",S.date,_.getTimezone(),b),__timezoneApplied:!0})});Zh.classes=Jh.classes;Zh.displayName="@mantine/dates/DatePicker";var BT={timeWrapper:"m_208d2562",timeInput:"m_62ee059"};const lH={dropdownType:"popover"},bx=Q((e,t)=>{const n=K("DateTimePicker",lH,e),{value:r,defaultValue:o,onChange:s,valueFormat:i,locale:a,classNames:l,styles:c,unstyled:d,timeInputProps:f,submitButtonProps:p,withSeconds:h,level:m,defaultLevel:g,size:w,variant:y,dropdownType:x,vars:b,minDate:S,maxDate:k,...E}=n,j=pe({name:"DateTimePicker",classes:BT,props:n,classNames:l,styles:c,unstyled:d,vars:b}),{resolvedClassNames:C,resolvedStyles:T}=Qo({classNames:l,styles:c,props:n}),N=i||(h?"DD/MM/YYYY HH:mm:ss":"DD/MM/YYYY HH:mm"),_=v.useRef(),I=Lt(_,f==null?void 0:f.ref),{calendarProps:{allowSingleDateInRange:U,...O},others:M}=sH(E),P=kr(),[L,R]=xx({type:"default",value:r,defaultValue:o,onChange:s}),D=Se=>Se?de(Se).format(h?"HH:mm:ss":"HH:mm"):"",[$,A]=v.useState(D(L)),[B,G]=v.useState(m||g||"month"),[ne,Z]=zn(!1),oe=L?de(L).locale(P.getLocale(a)).format(N):"",ae=Se=>{var Te;(Te=f==null?void 0:f.onChange)==null||Te.call(f,Se);const le=Se.currentTarget.value;if(A(le),le){const[et,te,se]=le.split(":").map(Number),we=Ws("add",new Date,P.getTimezone());we.setHours(et),we.setMinutes(te),we.setSeconds(se||0),R(pC(we,L||Ws("add",new Date,P.getTimezone())))}},ue=Se=>{var le;Se&&R(pC(L,Se)),(le=_.current)==null||le.focus()},be=Se=>{var le;(le=f==null?void 0:f.onKeyDown)==null||le.call(f,Se),Se.key==="Enter"&&(Se.preventDefault(),Z.close())};xr(()=>{ne||A(D(L))},[L,ne]),xr(()=>{ne&&G("month")},[ne]);const fe=S?de(S).format("HH:mm:ss"):null,_e=k?de(k).format("HH:mm:ss"):null,he=x==="popover";return u.jsxs(Xh,{formattedValue:oe,dropdownOpened:ne,dropdownHandlers:Z,classNames:C,styles:T,unstyled:d,ref:t,onClear:()=>R(null),shouldClear:!!L,value:L,size:w,variant:y,dropdownType:x,...M,type:"default",__staticSelector:"DateTimePicker",children:[u.jsx(Zh,{...O,maxDate:k,minDate:S,size:w,variant:y,type:"default",value:L,defaultDate:L,onChange:ue,locale:a,classNames:C,styles:T,unstyled:d,__staticSelector:"DateTimePicker",__stopPropagation:he,level:m,defaultLevel:g,onLevelChange:Se=>{var le;G(Se),(le=O.onLevelChange)==null||le.call(O,Se)},__timezoneApplied:!0}),B==="month"&&u.jsxs("div",{...j("timeWrapper"),children:[u.jsx(gx,{value:$,withSeconds:h,ref:I,unstyled:d,minTime:L&&S&&L.toDateString()===S.toDateString()?fe??void 0:void 0,maxTime:L&&k&&L.toDateString()===k.toDateString()?_e??void 0:void 0,...f,...j("timeInput",{className:f==null?void 0:f.className,style:f==null?void 0:f.style}),onChange:ae,onKeyDown:be,size:w,"data-mantine-stop-propagation":he||void 0}),u.jsx(Yt,{variant:"default",size:`input-${w||"sm"}`,...j("submitButton",{className:p==null?void 0:p.className,style:p==null?void 0:p.style}),unstyled:d,"data-mantine-stop-propagation":he||void 0,children:u.jsx(Zl,{size:"30%"}),...p,onClick:Se=>{var le;(le=p==null?void 0:p.onClick)==null||le.call(p,Se),Z.close()}})]})]})});bx.classes={...BT,...Xh.classes,...Zh.classes};bx.displayName="@mantine/dates/DateTimePicker";function yC({placeholder:e,value:t,onChange:n,initToEndOfDay:r=!1,dateTimePickerProps:o}){const s=v.useRef(null);return v.useEffect(()=>{if(r){if(s.current===null&&t){const i=new Date(t);i.setHours(23,59,59),n(i)}s.current=t||null}}),u.jsx(bx,{placeholder:e,value:t,valueFormat:"YYYY-MM-DD HH:mm",onChange:n,clearable:!0,w:"14rem",highlightToday:!0,popoverProps:{withinPortal:!1},submitButtonProps:{variant:"filled"},...o})}function cH(e,t){return u.jsx(u.Fragment,{children:e.map(n=>u.jsx(Fe.Group,{label:n.group,children:n.items.map(r=>u.jsx(Fe.Option,{value:r.value,disabled:r.disabled,children:u.jsxs(Ge,{gap:"sm",children:[t.includes(r.value)?u.jsx(Zl,{size:12}):null,u.jsx("span",{children:r.label})]})},r.value))},n.group))})}function UT({data:e,value:t,comboboxStore:n,onOptionSubmit:r,onRemove:o,children:s,footer:i}){const a=l=>{t.includes(l)?o(l):r(l),n.closeDropdown()};return u.jsxs(Fe,{store:n,onOptionSubmit:a,withinPortal:!1,width:"max-content",shadow:"md",children:[u.jsx(Fe.DropdownTarget,{children:s}),u.jsxs(Fe.Dropdown,{children:[u.jsx(Fe.Options,{children:u.jsx(Gr.Autosize,{type:"hover",mah:200,children:cH(e,t)})}),i&&u.jsx(Fe.Footer,{children:i})]})]})}function uH(e){li.show({message:e,color:"green"})}function HT(e){li.show({title:YR("common.unexpectedError"),message:e,color:"red",autoClose:!1})}function dH({value:e,onChange:t,data:n,placeholder:r}){const o=s=>{var i;return((i=n.find(a=>a.value===s))==null?void 0:i.label)||s};return u.jsx(bt,{gap:"0",p:"sm",children:u.jsxs(Fe,{onOptionSubmit:t,withinPortal:!1,children:[u.jsx(Fe.EventsTarget,{children:u.jsx(qt,{placeholder:r,value:o(e),onChange:s=>t(s.currentTarget.value),rightSectionPointerEvents:"all",rightSection:u.jsx(Sr,{onClick:()=>t(""),style:{display:e?void 0:"none"}}),readOnly:!0})}),u.jsx(Fe.Options,{mt:H(10),children:u.jsx(Gr.Autosize,{type:"hover",mah:200,scrollbarSize:4,children:n.map(s=>u.jsx(Fe.Option,{value:s.value,active:s.value===e,children:u.jsxs(Ge,{gap:"xs",children:[s.value===e&&u.jsx(Zl,{size:12}),u.jsx("span",{children:s.label})]})},s.value))})})]})})}async function fH(e){return(await ko("/users/me/logs/filters",e)).id}async function WT(e=null,t=1){return await gd("/users/me/logs/filters",{q:e,page:t})}async function KT(e){return await Jr(`/users/me/logs/filters/${e}`)}async function qT(e,t){await fc(`/users/me/logs/filters/${e}`,t)}function YT(e,{onSuccess:t,onError:n}={}){const r=ld();return as({mutationFn:s=>qT(e,s),onSuccess:()=>{r.invalidateQueries({queryKey:["logFilter",e]}),t&&t()},onError:n})}async function pH(e){await md("/users/me/logs/filters/"+e)}function GT(e){const{t}=X();return Eo({initialValues:{name:""},validate:{name:Zi(t("log.filter.form.name.required"))}})}function QT({form:e}){const{t}=X();return u.jsx(bt,{gap:"sm",children:u.jsx(qt,{label:t("log.filter.form.name.label"),placeholder:t("log.filter.form.name.placeholder"),"data-autofocus":!0,...e.getInputProps("name")})})}function hH({repoId:e,searchParams:t,columns:n,opened:r,onClose:o}){const{t:s}=X(),i=GT(),a=cs();return v.useEffect(()=>{i.reset()},[r]),u.jsx(vd,{title:s("log.filter.create.title"),opened:!!r,onClose:o,onSubmit:i.onSubmit,onSave:()=>fH({...i.values,repoId:e,searchParams:t,columns:n}),onSaveSuccess:l=>{o(),a(`/logs?filterId=${l}`)},queryKeyForInvalidation:["logFilters"],children:u.jsx(QT,{form:i})})}function mH({filterId:e,onClose:t}){const{t:n}=X(),r=GT();return u.jsx(xd,{resourceId:e,onClose:t,queryKeyForLoad:["logFilter",e],queryFnForLoad:()=>KT(e),onDataLoaded:o=>{const{name:s}=o;r.setValues({name:s})},title:n("log.filter.edit.title"),onSubmit:r.onSubmit,onSave:()=>qT(e,r.values),queryKeyForInvalidation:["logFilters"],children:u.jsx(QT,{form:r})})}function gH({filter:e,opened:t,onClose:n}){return X(),u.jsx(bd,{message:u.jsxs(ic,{i18nKey:"log.filter.delete.confirm",values:{name:e.name},children:["Do you confirm the deletion of filter ",u.jsx("b",{children:e.name})," ?"]}),opened:t,onDelete:()=>pH(e.id),queryKeyForInvalidation:["logFilters"],onClose:n})}function yH(){const{t:e}=X();return ri(e("log.filter.filters")),u.jsx(yd,{title:u.jsxs(u.Fragment,{children:[u.jsx(GP,{style:jn({size:"26",top:"4px",marginRight:"0.25rem"})}),e("log.filter.list.title")]}),name:e("log.filter.filter"),stateMode:"useState",queryKey:(t,n)=>["logFilters",t,n],queryFn:(t,n)=>()=>WT(t,n),columnDefinitions:[[e("log.filter.list.column.name"),t=>u.jsx(kn,{label:e("log.filter.list.apply"),withArrow:!0,children:u.jsx(ts,{component:lc,to:`/logs?filterId=${t.id}`,onClick:n=>n.stopPropagation(),children:t.name})})]],resourceEditionComponentBuilder:(t,n)=>u.jsx(mH,{filterId:t,onClose:n}),resourceDeletionComponentBuilder:(t,n,r)=>u.jsx(gH,{filter:t,opened:n,onClose:r})})}function vH({opened:e,onClose:t}){return u.jsx(So,{position:"right",offset:8,radius:"md",opened:e,onClose:t,withCloseButton:!1,children:u.jsx(yH,{})})}var[xH,wx]=ir("useDataTableColumnsContext must be used within DataTableColumnProvider"),vC=e=>{let{children:t,columnsOrder:n,setColumnsOrder:r,columnsToggle:o,setColumnsToggle:s,resetColumnsOrder:i,resetColumnsToggle:a,setColumnWidth:l,resetColumnsWidth:c}=e,[d,f]=v.useState(""),[p,h]=v.useState("");return u.jsx(xH,{value:{sourceColumn:d,setSourceColumn:f,targetColumn:p,setTargetColumn:h,columnsToggle:o,setColumnsToggle:s,swapColumns:()=>{if(!n||!r||!d||!p)return;let m=n.indexOf(d),g=n.indexOf(p);if(m!==-1&&g!==-1){let w=n.splice(m,1)[0];n.splice(g,0,w),r([...n])}},resetColumnsOrder:i,resetColumnsToggle:a,setColumnWidth:l,resetColumnsWidth:c},children:t})};function bH(){return u.jsx("tr",{className:"mantine-datatable-empty-row",children:u.jsx("td",{})})}function wH(){return u.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74"}),u.jsx("path",{d:"M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6"}),u.jsx("path",{d:"M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4"}),u.jsx("path",{d:"M3 3l18 18"})]})}function SH({icon:e,text:t,pt:n,pb:r,active:o,children:s}){return u.jsx(Zn,{pt:n,pb:r,className:"mantine-datatable-empty-state","data-active":o||void 0,children:s||u.jsxs(u.Fragment,{children:[e||u.jsx("div",{className:"mantine-datatable-empty-state-icon",children:u.jsx(wH,{})}),u.jsx(xt,{component:"div",size:"sm",c:"dimmed",children:t})]})})}var CH=({key:e,columns:t=[],getInitialValueInEffect:n=!0})=>{function r(k,E){let j=[];return k.forEach(C=>{E.find(T=>T.accessor===C)&&j.push(C)}),E.forEach(C=>{j.includes(C.accessor)||j.push(C.accessor)}),j}function o(k,E){let j=[];return k.forEach(C=>{E.find(T=>T.accessor===C.accessor)&&j.push(C)}),E.forEach(C=>{j.find(T=>T.accessor===C.accessor)||j.push({accessor:C.accessor,defaultToggle:C.defaultToggle||!0,toggleable:C.toggleable,toggled:C.defaultToggle===void 0?!0:C.defaultToggle})}),j}function s(k,E){let j=[];return k.forEach(C=>{let T=Object.keys(C)[0];E.find(N=>N.accessor===T)&&j.push(C)}),E.forEach(C=>{let T=C.accessor;if(!j.find(N=>Object.keys(N)[0]===T)){let N={};N[T]="",j.push(N)}}),j}function i(){let[k,E]=ul({key:e?`${e}-columns-order`:"",defaultValue:e?c:void 0,getInitialValueInEffect:n});function j(N){e&&E(N)}if(!e)return[k,j];let C=r(k,t),T=JSON.stringify(k);return JSON.stringify(C)!==T&&j(C),[C,j]}function a(){let[k,E]=ul({key:e?`${e}-columns-toggle`:"",defaultValue:e?f:void 0,getInitialValueInEffect:n});function j(N){e&&E(N)}if(!e)return[k,j];let C=o(k,t),T=JSON.stringify(k);return JSON.stringify(C)!==T&&j(C),[o(k,t),j]}function l(){let[k,E]=ul({key:e?`${e}-columns-width`:"",defaultValue:e?d:void 0,getInitialValueInEffect:n});function j(N){e&&E(N)}if(!e)return[k,j];let C=s(k,t),T=JSON.stringify(k);return JSON.stringify(C)!==T&&j(C),[s(k,t),j]}let c=t&&t.map(k=>k.accessor)||[],d=t&&t.map(k=>({[k.accessor]:k.width??"initial"}))||[],f=t&&t.map(k=>({accessor:k.accessor,defaultToggle:k.defaultToggle||!0,toggleable:k.toggleable,toggled:k.defaultToggle===void 0?!0:k.defaultToggle})),[p,h]=i(),[m,g]=a(),[w,y]=l(),x=()=>h(c),b=()=>{g(f)},S=()=>y(d);return{effectiveColumns:v.useMemo(()=>p?p.map(k=>t.find(E=>E.accessor===k)).map(k=>{var E;return{...k,hidden:(k==null?void 0:k.hidden)||!((E=m.find(j=>j.accessor===(k==null?void 0:k.accessor)))!=null&&E.toggled)}}).map(k=>{var E;return{...k,width:(E=w.find(j=>j[k==null?void 0:k.accessor]))==null?void 0:E[k==null?void 0:k.accessor]}}):t,[t,p,m,w]),setColumnsOrder:h,columnsOrder:p,resetColumnsOrder:x,columnsToggle:m,setColumnsToggle:g,resetColumnsToggle:b,columnsWidth:w,setColumnsWidth:y,setColumnWidth:(k,E)=>{let j=w.map(C=>C[k]?{[k]:E}:C);y(j)},resetColumnsWidth:S}};function Aa(){var r;let[e]=E3(),{width:t,height:n}=((r=e.current)==null?void 0:r.getBoundingClientRect())||{width:0,height:0};return{ref:e,width:t,height:n}}var EH=typeof window<"u"?v.useLayoutEffect:v.useEffect;function kH(e){let[t,n]=v.useState(null),r=(e==null?void 0:e.join(":"))||"";return v.useEffect(()=>{n(null)},[r]),{lastSelectionChangeIndex:t,setLastSelectionChangeIndex:n}}function jH(e,t){let n=()=>{t(e.map(o=>o.matches))},r=e.map(o=>{try{return o.addEventListener("change",n),()=>o.removeEventListener("change",n)}catch{return o.addListener(n),()=>o.removeListener(n)}});return()=>{r.forEach(o=>o())}}function RH(e,t){return t||(typeof window<"u"&&"matchMedia"in window?e.map(n=>window.matchMedia(n).matches):e.map(()=>!1))}function PH(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){let[r,o]=v.useState(n?t:RH(e,t)),s=v.useRef();return v.useEffect(()=>{if("matchMedia"in window)return s.current=e.map(i=>window.matchMedia(i)),o(s.current.map(i=>i.matches)),jH(s.current,i=>{o(i)})},[e]),r}function TH(e){let t=en(),n=v.useMemo(()=>e.map(o=>(typeof o=="function"?o(t):o)??""),[e,t]),r=v.useMemo(()=>e.map(()=>!0),[e]);return PH(n,r)}function em(e){let t=en(),n=typeof e=="function"?e(t):e;return rk(n||"",!0)}function Sx(e){let t=e.replace(/([a-z\d])([A-Z]+)/g,"$1 $2").replace(/\W|_/g," ").trim().toLowerCase();return`${t.charAt(0).toUpperCase()}${t.slice(1)}`}function NH(e,t,n){return e.filter(r=>!t.map(n).includes(n(r)))}function Eg(e,t){return e.filter((n,r,o)=>r===o.findIndex(s=>t(n)===t(s)))}function XT(e,t){return t?t.match(/([^[.\]])+/g).reduce((n,r)=>n&&n[r],e):void 0}function Sn(e,t){return typeof t=="string"?XT(e,t):t(e)}function LH({rowExpansion:e,records:t,idAccessor:n}){let r=[];if(e&&t){let{trigger:a,allowMultiple:l,initiallyExpanded:c}=e;t&&a==="always"?r=t.map(d=>Sn(d,n)):c&&(r=t.filter((d,f)=>c({record:d,index:f})).map(d=>Sn(d,n)),l||(r=[r[0]]))}let o,s,i=v.useState(r);if(e){let{expandable:a,trigger:l,allowMultiple:c,collapseProps:d,content:f}=e;e.expanded?{recordIds:o,onRecordIdsChange:s}=e.expanded:[o,s]=i;let p=h=>s==null?void 0:s(o.filter(m=>m!==Sn(h,n)));return{expandOnClick:l!=="always"&&l!=="never",isRowExpanded:h=>l==="always"?!0:o.includes(Sn(h,n)),isExpandable:({record:h,index:m})=>a?a({record:h,index:m}):!0,expandRow:h=>{let m=Sn(h,n);s==null||s(c?[...o,m]:[m])},collapseRow:p,collapseProps:d,content:({record:h,index:m})=>()=>f({record:h,index:m,collapse:()=>p(h)})}}}function DH(e,t){let[n,r]=v.useState(e),[o,s]=v.useState(e),i=ew(()=>r(!0),0),a=ew(()=>s(!1),t||200);return v.useEffect(()=>{e?(a.clear(),s(!0),i.start()):(i.clear(),r(!1),a.start())},[i,a,e]),{expanded:n,visible:o}}var Cx="mantine-datatable-nowrap",Ex="mantine-datatable-ellipsis",Hl="mantine-datatable-pointer-cursor",JT="mantine-datatable-context-menu-cursor",MH="mantine-datatable-text-selection-disabled",tm="mantine-datatable-text-align-left",nm="mantine-datatable-text-align-center",rm="mantine-datatable-text-align-right";function _H({className:e,style:t,visibleMediaQuery:n,title:r,noWrap:o,ellipsis:s,textAlign:i,width:a}){return em(n)?u.jsx(Xs,{className:De({[Cx]:o||s,[Ex]:s,[tm]:i==="left",[nm]:i==="center",[rm]:i==="right"},e),style:[{width:a,minWidth:a,maxWidth:a},t],children:r}):null}function AH({shadowVisible:e}){return u.jsx(Xs,{className:"mantine-datatable-footer-selector-placeholder-cell","data-shadow-visible":e||void 0})}var OH=v.forwardRef(function({className:e,style:t,columns:n,defaultColumnProps:r,selectionVisible:o,selectorCellShadowVisible:s,scrollDiff:i},a){let l=i<0;return u.jsx(F1,{ref:a,className:De("mantine-datatable-footer",e),style:[{position:l?"relative":"sticky",bottom:H(l?i:0)},t],children:u.jsxs(Ur,{children:[o&&u.jsx(AH,{shadowVisible:s}),n.map(({hidden:c,...d})=>{if(c)return null;let{accessor:f,visibleMediaQuery:p,textAlign:h,width:m,footer:g,footerClassName:w,footerStyle:y,noWrap:x,ellipsis:b}={...r,...d};return u.jsx(_H,{className:w,style:y,visibleMediaQuery:p,textAlign:h,width:m,title:g,noWrap:x,ellipsis:b},f)})]})})});function $H({group:{id:e,columns:t,title:n,textAlign:r,className:o,style:s}}){let i=v.useMemo(()=>t.map(({visibleMediaQuery:c})=>c),[t]),a=TH(i),l=v.useMemo(()=>t.filter(({hidden:c},d)=>!c&&(a==null?void 0:a[d])).length,[t,a]);return l>0?u.jsx(Xs,{colSpan:l,className:De("mantine-datatable-column-group-header-cell",{[tm]:r==="left",[nm]:r==="center",[rm]:r==="right"},o),style:s,children:n??Sx(e)}):null}function FH(){return u.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z"})]})}function IH(){return u.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M20 3h-16a1 1 0 0 0 -1 1v2.227l.008 .223a3 3 0 0 0 .772 1.795l4.22 4.641v8.114a1 1 0 0 0 1.316 .949l6 -2l.108 -.043a1 1 0 0 0 .576 -.906v-6.586l4.121 -4.12a3 3 0 0 0 .879 -2.123v-2.171a1 1 0 0 0 -1 -1z",strokeWidth:"0",fill:"currentColor"})]})}function zH({children:e,isActive:t}){let[n,{close:r,toggle:o}]=zn(!1);return u.jsxs(At,{withArrow:!0,withinPortal:!0,shadow:"md",opened:n,onClose:r,trapFocus:!0,children:[u.jsx(Gp,{children:u.jsx(Yt,{className:"mantine-datatable-header-cell-filter-action-icon","data-active":t||void 0,size:"sm",variant:"default",onClick:s=>{s.preventDefault(),o()},children:u.jsx(t?IH:FH,{})})}),u.jsx(qu,{onClick:s=>s.stopPropagation(),children:typeof e=="function"?e({close:r}):e})]})}var VH=e=>{let{accessor:t,columnRef:n}=e,r=v.useRef(null),[o,s]=v.useState(0),{setColumnWidth:i}=wx(),a=d=>{d.preventDefault(),d.stopPropagation(),document.addEventListener("mousemove",l),document.addEventListener("mouseup",c),document.body.style.cursor="col-resize"},l=d=>{if(!n.current)return;let f=d.clientX-n.current.getBoundingClientRect().right,p=`${n.current.getBoundingClientRect().width+f}px`;n.current.style.width=p,i(t,n.current.style.width),s(-f)},c=()=>{n.current&&(document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",c),document.body.style.cursor="initial",i(t,n.current.style.width),s(0))};return u.jsx("div",{ref:r,onClick:d=>d.stopPropagation(),onMouseDown:a,onDoubleClick:()=>{n.current&&(n.current.style.maxWidth="initial",n.current.style.minWidth="initial",n.current.style.width="initial",i(t,"initial"))},className:"mantine-datatable-header-resizable-handle",style:{right:H(o)}})};function BH(){return u.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M12 5l0 14"}),u.jsx("path",{d:"M16 9l-4 -4"}),u.jsx("path",{d:"M8 9l4 -4"})]})}function UH(){return u.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M8 7l4 -4l4 4"}),u.jsx("path",{d:"M8 17l4 4l4 -4"}),u.jsx("path",{d:"M12 3l0 18"})]})}function HH(){return u.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),u.jsx("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),u.jsx("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),u.jsx("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),u.jsx("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),u.jsx("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]})}function WH(){return u.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M18 6l-12 12"}),u.jsx("path",{d:"M6 6l12 12"})]})}function KH({className:e,style:t,accessor:n,visibleMediaQuery:r,title:o,sortable:s,draggable:i,toggleable:a,resizable:l,sortIcons:c,textAlign:d,width:f,sortStatus:p,onSortStatusChange:h,filter:m,filtering:g,sortKey:w}){let{setSourceColumn:y,setTargetColumn:x,swapColumns:b,setColumnsToggle:S}=wx(),[k,E]=v.useState(!1),j=v.useRef(null);if(!em(r))return null;let C=o??Sx(n),T=typeof C=="string"?C:void 0,N=s&&h?L=>{L!=null&&L.defaultPrevented||h({sortKey:w,columnAccessor:n,direction:(p==null?void 0:p.columnAccessor)===n?p.direction==="asc"?"desc":"asc":(p==null?void 0:p.direction)??"asc"})}:void 0,_=L=>{L.stopPropagation(),y(n),E(!1)},I=L=>{L.preventDefault(),x(n),E(!0)},U=()=>{x(n),E(!1),b()},O=()=>{E(!0)},M=()=>{E(!1)},P=L=>{L.stopPropagation(),S(R=>R.map(D=>D.accessor===n?{...D,toggled:!1}:D))};return u.jsxs(Xs,{className:De({"mantine-datatable-header-cell-sortable":s,"mantine-datatable-header-cell-toggleable":a,"mantine-datatable-header-cell-resizable":l},e),style:[{width:f,...l?{minWidth:"1px"}:{minWidth:f,maxWidth:f}},t],role:s?"button":void 0,tabIndex:s?0:void 0,onClick:N,onKeyDown:L=>L.key==="Enter"&&(N==null?void 0:N()),ref:j,children:[u.jsxs(Ge,{className:"mantine-datatable-header-cell-sortable-group",justify:"space-between",wrap:"nowrap",children:[u.jsxs(bo,{align:"center",w:"100%",className:De({"mantine-datatable-header-cell-draggable":i,"mantine-datatable-header-cell-drag-over":k}),draggable:i,onDragStart:i?_:void 0,onDragEnter:i?O:void 0,onDragOver:i?I:void 0,onDrop:i?U:void 0,onDragLeave:i?M:void 0,children:[i?u.jsx(Zn,{role:"img","aria-label":"Drag column",children:u.jsx(Yt,{className:"mantine-datatable-header-cell-draggable-action-icon",variant:"subtle",size:"xs",onClick:L=>{L.stopPropagation()},children:u.jsx(HH,{})})}):null,u.jsx(Y,{className:De("mantine-datatable-header-cell-sortable-text",{[tm]:d==="left",[nm]:d==="center",[rm]:d==="right"},Cx,Ex),title:T,children:C})]}),a?u.jsx(Zn,{className:"mantine-datatable-header-cell-toggleable-icon",role:"img","aria-label":"Toggle column",children:u.jsx(Yt,{size:"xs",variant:"light",onClick:P,children:u.jsx(WH,{})})}):null,s||(p==null?void 0:p.columnAccessor)===n?u.jsx(u.Fragment,{children:(p==null?void 0:p.columnAccessor)===n?u.jsx(Zn,{className:De("mantine-datatable-header-cell-sortable-icon",{"mantine-datatable-header-cell-sortable-icon-reversed":p.direction==="desc"}),role:"img","aria-label":`Sorted ${p.direction==="desc"?"descending":"ascending"}`,children:(c==null?void 0:c.sorted)||u.jsx(BH,{})}):u.jsx(Zn,{className:"mantine-datatable-header-cell-sortable-unsorted-icon",role:"img","aria-label":"Not sorted",children:(c==null?void 0:c.unsorted)||u.jsx(UH,{})})}):null,m?u.jsx(zH,{isActive:!!g,children:m}):null]}),l?u.jsx(VH,{accessor:n,columnRef:j}):null]})}var qH=v.forwardRef(function({className:e,style:t,trigger:n,shadowVisible:r,checked:o,indeterminate:s,checkboxProps:i,onChange:a,rowSpan:l},c){let d=!i.disabled;return u.jsx(Xs,{ref:c,className:De("mantine-datatable-header-selector-cell",{[Hl]:n==="cell"&&d},e),style:t,rowSpan:l,"data-shadow-visible":r||void 0,onClick:n==="cell"&&d?a:void 0,children:u.jsx(ns,{classNames:d?{input:Hl}:void 0,checked:o,indeterminate:s,onChange:a,...i,disabled:!(a||i.onChange)||i.disabled})})}),YH=v.forwardRef(function({selectionColumnHeaderRef:e,className:t,style:n,sortStatus:r,sortIcons:o,onSortStatusChange:s,columns:i,defaultColumnProps:a,groups:l,selectionTrigger:c,selectionVisible:d,selectionChecked:f,selectionIndeterminate:p,onSelectionChange:h,selectionCheckboxProps:m,selectorCellShadowVisible:g,selectionColumnClassName:w,selectionColumnStyle:y},x){let b=d?u.jsx(qH,{ref:e,className:w,style:y,trigger:c,shadowVisible:g,checked:f,indeterminate:p,checkboxProps:m,onChange:h,rowSpan:l?2:void 0}):null,{columnsToggle:S,setColumnsToggle:k}=wx(),[E,j]=v.useState(!1),C=i.some(_=>_.toggleable),T=C?Object.fromEntries(i.map(({accessor:_,title:I})=>[_,I??Sx(String(_))])):void 0,N=u.jsxs($1,{className:De("mantine-datatable-header",t),style:n,ref:x,onContextMenu:C?_=>{_.preventDefault(),j(I=>!I)}:void 0,children:[l&&u.jsxs(Ur,{children:[b,l.map(_=>u.jsx($H,{group:_},_.id))]}),u.jsxs(Ur,{children:[!l&&b,i.map(({hidden:_,...I},U)=>{if(_)return null;let{accessor:O,visibleMediaQuery:M,textAlign:P,width:L,title:R,sortable:D,draggable:$,toggleable:A,resizable:B,titleClassName:G,titleStyle:ne,filter:Z,filtering:oe,sortKey:ae}={...a,...I};return u.jsx(KH,{accessor:O,className:G,style:ne,visibleMediaQuery:M,textAlign:P,width:L,title:R,sortable:D,draggable:$,toggleable:A,resizable:B&&U<i.length-1,sortStatus:r,sortIcons:o,sortKey:ae,onSortStatusChange:s,filter:Z,filtering:oe},O)})]})]});return C?u.jsxs(At,{position:"bottom",withArrow:!0,shadow:"md",opened:E,onChange:j,children:[u.jsx(Gp,{children:N}),u.jsx(qu,{children:u.jsx(bt,{children:S.filter(_=>_.toggleable).map(_=>u.jsx(Ge,{children:u.jsx(ns,{classNames:{label:"mantine-datatable-header-column-toggle-checkbox-label"},size:"xs",label:T[_.accessor],checked:_.toggled,onChange:I=>{k(S.map(U=>U.accessor===_.accessor?{...U,toggled:I.currentTarget.checked}:U))}})},_.accessor))})})]}):N});function GH({pt:e,pb:t,fetching:n,customContent:r,backgroundBlur:o,size:s,type:i,color:a}){return u.jsx(Zn,{pt:e,pb:t,className:De("mantine-datatable-loader",{"mantine-datatable-loader-fetching":n}),style:[{backdropFilter:o?`blur(${o}px)`:void 0}],children:n&&(r||u.jsx(Zo,{size:s,type:i,color:a}))})}function zt(e,t,n){return e?Yr({color:typeof e=="object"?e[n]:e,theme:t}).value:void 0}function QH({theme:e,c:t,backgroundColor:n,borderColor:r,rowBorderColor:o,stripedColor:s,highlightOnHoverColor:i}){return{"--mantine-datatable-color-light":zt(t,e,"light"),"--mantine-datatable-color-dark":zt(t,e,"dark"),"--mantine-datatable-background-color-light":zt(n,e,"light"),"--mantine-datatable-background-color-dark":zt(n,e,"dark"),"--mantine-datatable-border-color-light":zt(r,e,"light"),"--mantine-datatable-border-color-dark":zt(r,e,"dark"),"--mantine-datatable-row-border-color-light":zt(o,e,"light"),"--mantine-datatable-row-border-color-dark":zt(o,e,"dark"),"--mantine-datatable-striped-color-light":zt(s,e,"light"),"--mantine-datatable-striped-color-dark":zt(s,e,"dark"),"--mantine-datatable-highlight-on-hover-color-light":zt(i,e,"light"),"--mantine-datatable-highlight-on-hover-color-dark":zt(i,e,"dark")}}function ZT({theme:e,paginationActiveTextColor:t,paginationActiveBackgroundColor:n}){return{"--mantine-datatable-pagination-active-text-color-light":zt(t,e,"light"),"--mantine-datatable-pagination-active-text-color-dark":zt(t,e,"dark"),"--mantine-datatable-pagination-active-background-color-light":zt(n,e,"light"),"--mantine-datatable-pagination-active-background-color-dark":zt(n,e,"dark")}}function XH({theme:e,color:t,backgroundColor:n}){return{"--mantine-datatable-row-color-light":zt(t,e,"light"),"--mantine-datatable-row-color-dark":zt(t,e,"dark"),"--mantine-datatable-row-background-color-light":zt(n,e,"light"),"--mantine-datatable-row-background-color-dark":zt(n,e,"dark")}}function JH(){return u.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M8 9l4 -4l4 4"}),u.jsx("path",{d:"M16 15l-4 4l-4 -4"})]})}var xC={xs:H(22),sm:H(26),md:H(32),lg:H(38),xl:H(44)};function ZH({size:e,label:t,values:n,value:r,activeTextColor:o,activeBackgroundColor:s,onChange:i}){return u.jsxs(Ge,{gap:"xs",children:[u.jsx(xt,{component:"div",size:e,children:t}),u.jsxs(Xe,{withinPortal:!0,withArrow:!0,classNames:{arrow:"mantine-datatable-page-size-selector-menu-arrow"},children:[u.jsx(j1,{children:u.jsx(Tt,{size:e,variant:"default",classNames:{section:"mantine-datatable-page-size-selector-button-icon"},rightSection:u.jsx(JH,{}),style:[{fontWeight:"normal"},a=>({height:xC[e],paddingLeft:a.spacing[e],paddingRight:a.spacing[e]})],children:r})}),u.jsx(ph,{children:n.map(a=>{let l=a===r;return u.jsx(hh,{className:De({"mantine-datatable-page-size-selector-active":l}),style:[{height:xC[e]},l&&(o||s)?c=>ZT({theme:c,paginationActiveTextColor:o,paginationActiveBackgroundColor:s}):void 0],disabled:l,onClick:()=>i(a),children:u.jsx(xt,{component:"div",size:e,children:a})},a)})})]})]})}var eW=v.forwardRef(function({className:e,style:t,fetching:n,page:r,onPageChange:o,paginationWithEdges:s,paginationWithControls:i,paginationActiveTextColor:a,paginationActiveBackgroundColor:l,paginationSize:c,loadingText:d,noRecordsText:f,paginationText:p,totalRecords:h,recordsPerPage:m,onRecordsPerPageChange:g,recordsPerPageLabel:w,recordsPerPageOptions:y,recordsLength:x,horizontalSpacing:b,paginationWrapBreakpoint:S,getPaginationControlProps:k},E){let j;if(h){let T=(r-1)*m+1,N=T+(x||0)-1;j=p({from:T,to:N,totalRecords:h})}else j=n?d:f;let C=em(({breakpoints:T})=>`(min-width: ${typeof S=="number"?`${H(S)}rem`:T[S]||S})`);return u.jsxs(Y,{ref:E,px:b??"xs",py:"xs",className:De("mantine-datatable-pagination",e),style:[{flexDirection:C?"row":"column"},t],children:[u.jsx(xt,{component:"div",className:"mantine-datatable-pagination-text",size:c,children:j}),y&&u.jsx(ZH,{activeTextColor:a,activeBackgroundColor:l,size:c,label:w,values:y,value:m,onChange:g}),u.jsx(lr,{classNames:{root:De("mantine-datatable-pagination-pages",{"mantine-datatable-pagination-pages-fetching":n||!x}),control:"mantine-datatable-pagination-pages-control"},style:a||l?T=>ZT({theme:T,paginationActiveTextColor:a,paginationActiveBackgroundColor:l}):void 0,withEdges:s,withControls:i,value:r,onChange:o,size:c,total:Math.ceil(h/m),getControlProps:k})]})});function tW({className:e,style:t,visibleMediaQuery:n,record:r,index:o,onClick:s,onDoubleClick:i,onContextMenu:a,noWrap:l,ellipsis:c,textAlign:d,width:f,accessor:p,render:h,defaultRender:m,customCellAttributes:g}){return em(n)?u.jsx(od,{className:De({[Cx]:l||c,[Ex]:c,[Hl]:s||i,[JT]:a,[tm]:d==="left",[nm]:d==="center",[rm]:d==="right"},e),style:[{width:f,minWidth:f,maxWidth:f},t],onClick:s,onDoubleClick:i,onContextMenu:a,...g==null?void 0:g(r,o),children:h?h(r,o):m?m(r,o,p):XT(r,p)}):null}function nW({open:e,colSpan:t,content:n,collapseProps:r}){let{expanded:o,visible:s}=DH(e,r==null?void 0:r.transitionDuration);return s?u.jsxs(u.Fragment,{children:[u.jsx(Ur,{}),u.jsx(Ur,{children:u.jsx(od,{className:"mantine-datatable-row-expansion-cell",colSpan:t,children:u.jsx(Sk,{in:o,...r,children:u.jsx("div",{className:"mantine-datatable-row-expansion-cell-content",children:n()})})})})]}):null}function rW({className:e,style:t,record:n,index:r,trigger:o,onChange:s,withRightShadow:i,checkboxProps:a,getCheckboxProps:l,...c}){let d={...a,...l(n,r)},f=!c.disabled&&!d.disabled,p=h=>{h.stopPropagation(),o==="cell"&&f&&(s==null||s(h))};return u.jsx(od,{className:De("mantine-datatable-row-selector-cell",{[Hl]:o==="cell"&&f},e),style:t,"data-shadow-visible":i||void 0,onClick:p,children:u.jsx(ns,{classNames:f?{input:Hl}:void 0,onChange:s,...c,...d})})}function oW({record:e,index:t,columns:n,defaultColumnProps:r,defaultColumnRender:o,selectionTrigger:s,selectionVisible:i,selectionChecked:a,onSelectionChange:l,isRecordSelectable:c,selectionCheckboxProps:d,getSelectionCheckboxProps:f,onClick:p,onDoubleClick:h,onContextMenu:m,onCellClick:g,onCellDoubleClick:w,onCellContextMenu:y,expansion:x,customAttributes:b,color:S,backgroundColor:k,className:E,style:j,selectorCellShadowVisible:C,selectionColumnClassName:T,selectionColumnStyle:N,rowFactory:_}){let I=u.jsxs(u.Fragment,{children:[i&&u.jsx(rW,{className:T,style:N,record:e,index:t,trigger:s,withRightShadow:C,checked:a,disabled:!l||(c?!c(e,t):!1),onChange:l,checkboxProps:d,getCheckboxProps:f}),n.map(({hidden:M,hiddenContent:P,...L},R)=>{if(M||P)return null;let{accessor:D,visibleMediaQuery:$,textAlign:A,noWrap:B,ellipsis:G,width:ne,render:Z,cellsClassName:oe,cellsStyle:ae,customCellAttributes:ue}={...r,...L};return u.jsx(tW,{className:typeof oe=="function"?oe(e,t):oe,style:ae==null?void 0:ae(e,t),visibleMediaQuery:$,record:e,index:t,onClick:g?be=>g({event:be,record:e,index:t,column:L,columnIndex:R}):void 0,onDoubleClick:w?be=>w({event:be,record:e,index:t,column:L,columnIndex:R}):void 0,onContextMenu:y?be=>y({event:be,record:e,index:t,column:L,columnIndex:R}):void 0,accessor:D,textAlign:A,noWrap:B,ellipsis:G,width:ne,render:Z,defaultRender:o,customCellAttributes:ue},D)})]}),U=x&&u.jsx(nW,{colSpan:n.filter(({hidden:M})=>!M).length+(i?1:0),open:x.isRowExpanded(e),content:x.content({record:e,index:t}),collapseProps:x.collapseProps}),O=sW({record:e,index:t,selectionChecked:a,onClick:p,onDoubleClick:h,onContextMenu:m,expansion:x,customAttributes:b,color:S,backgroundColor:k,className:E,style:j});return _?_({record:e,index:t,rowProps:O,children:I,expandedElement:U}):u.jsxs(u.Fragment,{children:[u.jsx(Ur,{...O,children:I}),U]})}function sW({record:e,index:t,selectionChecked:n,onClick:r,onDoubleClick:o,onContextMenu:s,expansion:i,customAttributes:a,color:l,backgroundColor:c,className:d,style:f}){return{className:De("mantine-datatable-row",{[Hl]:r||o||(i==null?void 0:i.isExpandable({record:e,index:t}))&&(i==null?void 0:i.expandOnClick)},{[JT]:s},typeof d=="function"?d(e,t):d),"data-selected":n||void 0,onClick:p=>{if(i){let{isExpandable:h,isRowExpanded:m,expandOnClick:g,expandRow:w,collapseRow:y}=i;h({record:e,index:t})&&g&&(m(e)?y(e):w(e))}r==null||r({event:p,record:e,index:t})},onDoubleClick:o?p=>o({event:p,record:e,index:t}):void 0,onContextMenu:s?p=>s({event:p,record:e,index:t}):void 0,style:[l||c?p=>{let h=l==null?void 0:l(e,t),m=c==null?void 0:c(e,t);return XH({theme:p,color:h,backgroundColor:m})}:void 0,f==null?void 0:f(e,t)],...(a==null?void 0:a(e,t))??{}}}function iW({topShadowVisible:e,leftShadowVisible:t,leftShadowBehind:n,rightShadowVisible:r,rightShadowBehind:o,bottomShadowVisible:s,headerHeight:i,footerHeight:a,onScrollPositionChange:l,children:c,viewportRef:d,scrollAreaProps:f}){return u.jsxs(Gr,{...f,viewportRef:d,classNames:{root:"mantine-datatable-scroll-area",scrollbar:"mantine-datatable-scroll-area-scrollbar",thumb:"mantine-datatable-scroll-area-thumb",corner:"mantine-datatable-scroll-area-corner"},onScrollPositionChange:l,children:[c,u.jsx(Y,{className:De("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-top-shadow",{"mantine-datatable-scroll-area-shadow-visible":e}),style:{top:i?H(i):0}}),u.jsx("div",{className:De("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-left-shadow",{"mantine-datatable-scroll-area-shadow-visible":t,"mantine-datatable-scroll-area-shadow-behind":n})}),u.jsx("div",{className:De("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-right-shadow",{"mantine-datatable-scroll-area-shadow-visible":r,"mantine-datatable-scroll-area-shadow-behind":o})}),u.jsx(Y,{className:De("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-bottom-shadow",{"mantine-datatable-scroll-area-shadow-visible":s}),style:{bottom:a?H(a+1):0}})]})}function aW({withTableBorder:e,borderRadius:t,textSelectionDisabled:n,height:r="100%",minHeight:o,maxHeight:s,shadow:i,verticalAlign:a="center",fetching:l,columns:c,storeColumnsKey:d,groups:f,pinFirstColumn:p,pinLastColumn:h,defaultColumnProps:m,defaultColumnRender:g,idAccessor:w="id",records:y,selectionTrigger:x="checkbox",selectedRecords:b,onSelectedRecordsChange:S,selectionColumnClassName:k,selectionColumnStyle:E,isRecordSelectable:j,selectionCheckboxProps:C,allRecordsSelectionCheckboxProps:T={"aria-label":"Select all records"},getRecordSelectionCheckboxProps:N=(xe,me)=>({"aria-label":`Select record ${me+1}`}),sortStatus:_,sortIcons:I,onSortStatusChange:U,horizontalSpacing:O,page:M,onPageChange:P,totalRecords:L,recordsPerPage:R,onRecordsPerPageChange:D,recordsPerPageOptions:$,recordsPerPageLabel:A="Records per page",paginationWithEdges:B,paginationWithControls:G,paginationActiveTextColor:ne,paginationActiveBackgroundColor:Z,paginationSize:oe="sm",paginationText:ae=({from:xe,to:me,totalRecords:ye})=>`${xe} - ${me} / ${ye}`,paginationWrapBreakpoint:ue="sm",getPaginationControlProps:be=xe=>xe==="previous"?{"aria-label":"Previous page"}:xe==="next"?{"aria-label":"Next page"}:{},loaderBackgroundBlur:fe,customLoader:_e,loaderSize:he,loaderType:Se,loaderColor:le,loadingText:Te="...",emptyState:et,noRecordsText:te="No records",noRecordsIcon:se,highlightOnHover:we,striped:ke,noHeader:Ie,onRowClick:Oe,onRowDoubleClick:ee,onRowContextMenu:Ee,onCellClick:tt,onCellDoubleClick:nt,onCellContextMenu:at,onScroll:qe,onScrollToTop:Ke,onScrollToBottom:dt,onScrollToLeft:kt,onScrollToRight:jr,c:ds,backgroundColor:eo,borderColor:Wn,rowBorderColor:ua,stripedColor:Tn,highlightOnHoverColor:da,rowColor:pc,rowBackgroundColor:fa,rowExpansion:fs,rowClassName:pa,rowStyle:pi,customRowAttributes:lt,scrollViewportRef:Rr,scrollAreaProps:cm,tableRef:Ed,bodyRef:um,m:kd,my:ha,mx:ma,mt:jd,mb:dm,ml:fm,mr:F,className:V,classNames:W,style:J,styles:ie,rowFactory:Ce,tableWrapper:Re,...ce}){let{ref:xe,width:me,height:ye}=Aa(),ze=v.useMemo(()=>(f==null?void 0:f.flatMap(Ue=>Ue.columns))??c,[c,f]),Qe=CH({key:d,columns:ze}),{ref:it,height:Ve}=Aa(),{ref:Ft,width:St,height:Pr}=Aa(),{ref:Tr,height:ps}=Aa(),{ref:to,height:hi}=Aa(),{ref:Nr,width:ga}=Aa(),ya=Lt(Ft,Ed),va=Lt(xe,Rr),[Me,ft]=v.useState(!0),[tn,pt]=v.useState(!0),[vn,hc]=v.useState(!0),[xa,Lx]=v.useState(!0),TN=LH({rowExpansion:fs,records:y,idAccessor:w}),pm=v.useCallback(()=>{var wa,Sa;let Ue=((wa=xe.current)==null?void 0:wa.scrollTop)??0,Lr=((Sa=xe.current)==null?void 0:Sa.scrollLeft)??0;if(l||Pr<=ye)ft(!0),pt(!0);else{let no=Ue===0,Ro=Pr-Ue-ye<1;ft(no),pt(Ro),no&&no!==Me&&(Ke==null||Ke()),Ro&&Ro!==tn&&(dt==null||dt())}if(l||St===me)hc(!0),Lx(!0);else{let no=Lr===0,Ro=St-Lr-me<1;hc(no),Lx(Ro),no&&no!==vn&&(kt==null||kt()),Ro&&Ro!==xa&&(jr==null||jr())}},[l,dt,kt,jr,Ke,ye,xe,me,tn,vn,xa,Me,Pr,St]);EH(pm,[pm]);let Dx=Hu(pm,50),NN=v.useCallback(Ue=>{qe==null||qe(Ue),Dx()},[Dx,qe]),LN=v.useCallback(Ue=>{var Lr;(Lr=xe.current)==null||Lr.scrollTo({top:0,left:0}),P(Ue)},[P,xe]),Rd=y==null?void 0:y.length,Mx=y==null?void 0:y.map(Ue=>Sn(Ue,w)),ba=!!b,mi=b==null?void 0:b.map(Ue=>Sn(Ue,w)),_x=Mx!==void 0&&mi!==void 0&&mi.length>0,mc=j?y==null?void 0:y.filter(j):y,Pd=mc==null?void 0:mc.map(Ue=>Sn(Ue,w)),Td=_x&&Pd.every(Ue=>mi.includes(Ue)),DN=_x&&Pd.some(Ue=>mi.includes(Ue)),MN=v.useCallback(()=>{b&&S&&S(Td?b.filter(Ue=>!Pd.includes(Sn(Ue,w))):Eg([...b,...mc],Ue=>Sn(Ue,w)))},[Td,w,S,Pd,mc,b]),{lastSelectionChangeIndex:Nd,setLastSelectionChangeIndex:_N}=kH(Mx),hm=ba&&!vn&&!p,AN={m:kd,my:ha,mx:ma,mt:jd,mb:dm,ml:fm,mr:F},ON=v.useCallback(({children:Ue})=>Re?Re({children:Ue}):Ue,[Re]);return u.jsx(vC,{...Qe,children:u.jsxs(Y,{...AN,className:De("mantine-datatable",{"mantine-datatable-with-border":e},V,W==null?void 0:W.root),style:[Ue=>({...QH({theme:Ue,c:ds,backgroundColor:eo,borderColor:Wn,rowBorderColor:ua,stripedColor:Tn,highlightOnHoverColor:da}),borderRadius:Ue.radius[t]||t,boxShadow:Ue.shadows[i]||i,height:r,minHeight:o,maxHeight:s}),J,ie==null?void 0:ie.root,{position:"relative"}],children:[u.jsx(iW,{viewportRef:va,topShadowVisible:!Me,leftShadowVisible:!vn,leftShadowBehind:ba||!!p,rightShadowVisible:!xa,rightShadowBehind:h,bottomShadowVisible:!tn,headerHeight:Ve,footerHeight:ps,onScrollPositionChange:NN,scrollAreaProps:cm,children:u.jsx(ON,{children:u.jsxs(Ne,{ref:ya,horizontalSpacing:O,className:De("mantine-datatable-table",{[MH]:n,"mantine-datatable-vertical-align-top":a==="top","mantine-datatable-vertical-align-bottom":a==="bottom","mantine-datatable-last-row-border-bottom-visible":ce.withRowBorders&&Pr<ye,"mantine-datatable-pin-last-column":h,"mantine-datatable-pin-last-column-scrolled":!xa&&h,"mantine-datatable-selection-column-visible":ba,"mantine-datatable-pin-first-column":p,"mantine-datatable-pin-first-column-scrolled":!vn&&p},W==null?void 0:W.table),style:{...ie==null?void 0:ie.table,"--mantine-datatable-selection-column-width":`${ga}px`},"data-striped":Rd&&ke||void 0,"data-highlight-on-hover":we||void 0,...ce,children:[Ie?null:u.jsx(vC,{...Qe,children:u.jsx(YH,{ref:it,selectionColumnHeaderRef:Nr,className:W==null?void 0:W.header,style:ie==null?void 0:ie.header,columns:ze,defaultColumnProps:m,groups:f,sortStatus:_,sortIcons:I,onSortStatusChange:U,selectionTrigger:x,selectionVisible:ba,selectionChecked:Td,selectionIndeterminate:DN&&!Td,onSelectionChange:MN,selectionCheckboxProps:{...C,...T},selectorCellShadowVisible:hm,selectionColumnClassName:k,selectionColumnStyle:E})}),u.jsx("tbody",{ref:um,children:Rd?y.map((Ue,Lr)=>{let wa=Sn(Ue,w),Sa=(mi==null?void 0:mi.includes(wa))||!1,no;return S&&b&&(no=Ro=>{if(Ro.nativeEvent.shiftKey&&Nd!==null){let Ca=y.filter(Lr>Nd?(gi,yi)=>yi>=Nd&&yi<=Lr&&(j?j(gi,yi):!0):(gi,yi)=>yi>=Lr&&yi<=Nd&&(j?j(gi,yi):!0));S(Sa?NH(b,Ca,gi=>Sn(gi,w)):Eg([...b,...Ca],gi=>Sn(gi,w)))}else S(Sa?b.filter(Ca=>Sn(Ca,w)!==wa):Eg([...b,Ue],Ca=>Sn(Ca,w)));_N(Lr)}),u.jsx(oW,{record:Ue,index:Lr,columns:ze,defaultColumnProps:m,defaultColumnRender:g,selectionTrigger:x,selectionVisible:ba,selectionChecked:Sa,onSelectionChange:no,isRecordSelectable:j,selectionCheckboxProps:C,getSelectionCheckboxProps:N,onClick:Oe,onDoubleClick:ee,onCellClick:tt,onCellDoubleClick:nt,onContextMenu:Ee,onCellContextMenu:at,expansion:TN,color:pc,backgroundColor:fa,className:pa,style:pi,customAttributes:lt,selectorCellShadowVisible:hm,selectionColumnClassName:k,selectionColumnStyle:E,idAccessor:w,rowFactory:Ce},wa)}):u.jsx(bH,{})}),ze.some(({footer:Ue})=>Ue)&&u.jsx(OH,{ref:Tr,className:W==null?void 0:W.footer,style:ie==null?void 0:ie.footer,columns:ze,defaultColumnProps:m,selectionVisible:ba,selectorCellShadowVisible:hm,scrollDiff:Pr-ye})]})})}),M&&u.jsx(eW,{ref:to,className:W==null?void 0:W.pagination,style:ie==null?void 0:ie.pagination,horizontalSpacing:O,fetching:l,page:M,onPageChange:LN,totalRecords:L,recordsPerPage:R,onRecordsPerPageChange:D,recordsPerPageOptions:$,recordsPerPageLabel:A,paginationWithEdges:B,paginationWithControls:G,paginationActiveTextColor:ne,paginationActiveBackgroundColor:Z,paginationSize:oe,paginationText:ae,paginationWrapBreakpoint:ue,getPaginationControlProps:be,noRecordsText:te,loadingText:Te,recordsLength:Rd}),u.jsx(GH,{pt:Ve,pb:hi,fetching:l,backgroundBlur:fe,customContent:_e,size:he,type:Se,color:le}),u.jsx(SH,{pt:Ve,pb:hi,icon:se,text:te,active:!l&&!Rd,children:et})]})})}var lW=v.forwardRef(function({children:e,isDragging:t,...n},r){let o=v.useRef(null),s=Lt(o,r);return v.useEffect(()=>{if(!o.current||!t)return;let i=o.current.parentElement.parentElement.children[0].children[0];for(let a=0;a<i.children.length;a++){let l=i.children[a].getBoundingClientRect(),c=o.current.children[a];c.style.height=l.height+"px",c.style.width=l.width+"px",c.style.minWidth=l.width+"px",c.style.maxWidth=l.width+"px"}},[t,e]),u.jsx(Ur,{"data-is-dragging":t,ref:s,...n,children:e})});lW.displayName="DataTableDraggableRow";de.extend(kT);async function cW(e,t,n=30){const r=await Jr(`/repos/${t.repoId}/logs`,{limit:n,...t.serialize({includeRepoId:!1}),...e&&{cursor:e}});return{logs:r.items,nextCursor:r.pagination.nextCursor}}async function uW(e,t){return await Jr(`/repos/${e}/logs/${t}`)}async function Zr(e){return e.then(t=>t.map(n=>n.name))}async function eN(e){return Zr(Hn(`/repos/${e}/logs/actions/categories`,{}))}async function tN(e,t){return Zr(Hn(`/repos/${e}/logs/actions/types`,t?{category:t}:{}))}async function nN(e){return Zr(Hn(`/repos/${e}/logs/actors/types`,{}))}async function dW(e){return Zr(Hn(`/repos/${e}/logs/actors/extras`,{}))}async function fW(e){return Zr(Hn(`/repos/${e}/logs/sources`,{}))}async function rN(e){return Zr(Hn(`/repos/${e}/logs/resources/types`,{}))}async function pW(e){return Zr(Hn(`/repos/${e}/logs/resources/extras`,{}))}async function hW(e){return Zr(Hn(`/repos/${e}/logs/details`,{}))}async function oN(e){return Zr(Hn(`/repos/${e}/logs/tags/types`,{}))}async function sN(e){return Zr(Hn(`/repos/${e}/logs/attachments/types`,{}))}async function iN(e){return Zr(Hn(`/repos/${e}/logs/attachments/mime-types`,{}))}async function wd(e,t){return Hn(`/repos/${e}/logs/entities`,t?{parentEntityRef:t}:{root:!0})}async function mW(e,t){return await Jr(`/repos/${e}/logs/entities/ref:${t}`)}function om({title:e,icon:t,children:n,rightSection:r}){return u.jsxs(Y,{children:[u.jsx(Ge,{style:{borderWidth:"0px 0px 1px 0px",borderStyle:"solid",borderColor:"var(--mantine-primary-color-filled)"},mb:"0.25rem",children:u.jsxs(bo,{w:"100%",justify:"space-between",align:"center",children:[u.jsxs(Ge,{gap:"0px",children:[t,u.jsx(xt,{size:"1rem",fw:600,p:"0.5rem",pl:"0.25rem",children:e})]}),r]})}),n]})}function gW({expanded:e,toggle:t}){const{t:n}=X();return e?u.jsx(kn,{label:n("common.lessDetails"),withArrow:!0,withinPortal:!1,position:"bottom",children:u.jsx(Yt,{variant:"transparent",onClick:t,children:u.jsx(OV,{style:jn({size:"22px"})})})}):u.jsx(kn,{label:n("common.moreDetails"),withArrow:!0,withinPortal:!1,position:"bottom",children:u.jsx(Yt,{variant:"transparent",onClick:t,children:u.jsx(AV,{style:jn({size:"22px"})})})})}const kx=v.createContext(null),xv=["savedAt","actor","action","resource","entity","tag"];function aN(e){const[t,n]=ul({key:"auditize-log-columns",defaultValue:{}});return[t[e]??xv,r=>n(o=>({...o,[e]:r||xv}))]}const yW=v.createContext(null);function vW(e,t){return v.useMemo(()=>!e.has("repoId")&&t?qr.deserialize({...t.searchParams,repoId:t.repoId}):qr.deserialize(Object.fromEntries(e.entries())),[e,t])}function lN({children:e}){const{t}=X(),[n,r]=sx(),o=n.get("filterId"),s=Qr(),i=cs(),a=hx(),[l,c]=ul({key:"auditize-default-repo",getInitialValueInEffect:!1}),[d,f]=aN(n.get("repoId")||""),p=ot({queryKey:["logFilter",o],queryFn:()=>KT(o),enabled:!!o}),h=YT(o,{onError:()=>HT(t("log.filter.updateError"))}),m=vW(n,p.data),g=S=>{i(S===null?-1:Lf(s,"log",S))},w=n.get("log")||null,y=S=>{const k=!!(!m.repoId&&S.repoId),E=new URLSearchParams(S.serialize());o&&E.set("filterId",o),r(E,{replace:k})};let x,b;return o&&p.data?(x=aK(p.data.columns),b=S=>h.mutate({columns:dN(S??xv)})):(x=d,b=f),v.useEffect(()=>{if(!o&&!m.repoId&&a.data){const S=a.data;!l||!S.find(k=>k.id===l)?S.length>0&&y(qr.fromProperties({...m,repoId:S[0].id})):y(qr.fromProperties({...m,repoId:l}))}}),v.useEffect(()=>{m.repoId&&c(m.repoId)},[m.repoId]),u.jsx(kx.Provider,{value:{displayedLogId:w,setDisplayedLogId:g,searchParams:m,setSearchParams:y,selectedColumns:x,setSelectedColumns:b,filterId:o??void 0},children:e})}function xW({repoId:e,children:t}){const[n,r]=v.useState(null),[o,s]=v.useState(qr.fromProperties({repoId:e})),[i,a]=aN(e);return u.jsx(kx.Provider,{value:{displayedLogId:n,setDisplayedLogId:r,searchParams:o,setSearchParams:s,selectedColumns:i,setSelectedColumns:a},children:t})}lN.ForWebComponent=xW;function sm(){const e=v.useContext(kx),t=v.useContext(yW);if(!e&&!t)throw new Error("useLogState must be used within a LogStateContextProvider or UrlLogContextProvider");return e||t}function Wc(e){return e=e.replace(/[._-]/g," "),e.charAt(0).toUpperCase()+e.slice(1)}function cN(e){const{lang:t}=pd();return ot({queryKey:["logTranslation",e,t],queryFn:()=>GB(e,t),enabled:!!e})}function Et(e){const t=cN(e);return(n,r)=>{var s;const o=Wc(r);return t.data&&((s=t.data[n])==null?void 0:s[r])||o}}function jx({data:e}){return u.jsx(Ne,{withRowBorders:!1,verticalSpacing:"0.25rem",layout:"auto",children:u.jsx(Ne.Tbody,{children:e.map(([t,n],r)=>u.jsxs(Ne.Tr,{children:[u.jsx(Ne.Td,{width:"35%",pl:"1.25rem",style:{verticalAlign:"top"},children:t}),u.jsx(Ne.Td,{style:{verticalAlign:"top"},children:n})]},r))})})}function Sd({title:e,icon:t,data:n}){return n&&n.length>0&&u.jsx(om,{title:e,icon:t,children:u.jsx(jx,{data:n})})}function uN({title:e,icon:t,renderNotExpanded:n,renderExpanded:r}){const[o,{toggle:s}]=zn(!1);return u.jsx(om,{title:e,icon:t,rightSection:u.jsx(gW,{expanded:o,toggle:s}),children:o?r():n()})}function bW({value:e,repoId:t}){const n=Et(t);return e.name&&e.ref?u.jsxs(Il,{children:[n("tag_type",e.type),": ",e.name]}):u.jsx(Il,{children:n("tag_type",e.type)})}function wW({log:e}){const{t}=X();return u.jsx(uN,{title:t("log.entity"),icon:u.jsx(QP,{style:jn({size:"18px",top:"0px"})}),renderNotExpanded:()=>u.jsx(wo,{separator:">",p:"0px",pl:"1.25rem",pt:"0.5rem",children:e.entityPath.map(n=>u.jsx(xt,{size:"sm",children:n.name},n.ref))}),renderExpanded:()=>u.jsx(jx,{data:e.entityPath.map(n=>[n.name,u.jsx(ia,{children:n.ref})])})})}function SW({log:e,repoId:t}){const{t:n}=X(),r=Et(t);return e.tags.length>0&&u.jsx(uN,{title:n("log.tags"),icon:u.jsx(JP,{style:jn({size:"18px",top:"0px"})}),renderNotExpanded:()=>u.jsx(Ge,{pl:"1.25rem",pt:"0.5rem",children:e.tags.map((o,s)=>u.jsx(bW,{value:o,repoId:t},s))}),renderExpanded:()=>u.jsx(jx,{data:e.tags.map(o=>o.name&&o.ref?[u.jsxs(xt,{size:"sm",children:[r("tag_type",o.type),": ",u.jsx("b",{children:o.name})]}),u.jsx(ia,{children:o.ref})]:[u.jsx(xt,{size:"sm",children:r("tag_type",o.type)}),null])})})}function CW({log:e,repoId:t}){const{t:n}=X(),r=Et(t);return u.jsx(Sd,{title:n("log.source"),icon:u.jsx(zV,{style:jn({size:"18px",top:"0px"})}),data:e.source.map(o=>[r("source_field",o.name),o.value])})}function EW({log:e,repoId:t}){const{t:n}=X(),r=Et(t);return u.jsx(Sd,{title:n("log.actor"),icon:u.jsx(ZP,{style:jn({size:"18px",top:"-1px"})}),data:e.actor&&[[n("log.view.name"),u.jsx("b",{children:e.actor.name})],[n("log.view.type"),r("actor_type",e.actor.type)],[n("log.view.ref"),u.jsx(ia,{children:e.actor.ref})],...e.actor.extra.map(o=>[r("actor_custom_field",o.name),o.value])]})}function kW({log:e,repoId:t}){const{t:n}=X(),r=Et(t);return u.jsx(Sd,{title:n("log.resource"),icon:u.jsx(YP,{style:jn({size:"18px",top:"0px"})}),data:e.resource&&[[n("log.view.name"),u.jsx("b",{children:e.resource.name})],[n("log.view.type"),r("resource_type",e.resource.type)],[n("log.view.ref"),u.jsx(ia,{children:e.resource.ref})],...e.resource.extra.map(o=>[r("resource_custom_field",o.name),o.value])]})}function jW({log:e,repoId:t}){const{t:n}=X(),r=Et();return u.jsx(Sd,{title:n("log.details"),icon:u.jsx($V,{style:jn({size:"18px",top:"0px"})}),data:e.details.map(o=>[r("detail_field",o.name),o.value])})}function RW({log:e,repoId:t}){const{t:n}=X(),r=Et(t),o=window.auditizeBaseURL??"";return u.jsx(Sd,{title:n("log.attachment"),icon:u.jsx(FV,{style:jn({size:"18px",top:"0px"})}),data:e.attachments.map((s,i)=>[r("attachment_type",s.type),u.jsx(kn,{label:n("log.downloadAttachment"),withArrow:!0,withinPortal:!1,children:u.jsx(ts,{href:`${o}/api/repos/${t}/logs/${e.id}/attachments/${i}`,size:"sm",children:s.name})})])})}function PW({log:e}){return u.jsxs(Ge,{mb:"lg",gap:"0",children:[u.jsx(qP,{style:jn({size:"16px",marginRight:"0.25rem"})}),u.jsx(xt,{size:"sm",children:mU(e.savedAt)})]})}function TW(){return u.jsxs(bt,{w:"500px",gap:"xs",children:[u.jsx(po,{height:16,width:"100%"}),u.jsx(po,{height:10,width:"80%"}),u.jsx(po,{height:10,width:"40%"})]})}function NW(){return u.jsx(u.Fragment,{children:Array.from({length:4}).map((e,t)=>u.jsxs(Y,{p:"xs",children:[u.jsx(po,{height:12,width:"30%"}),u.jsx(po,{height:1,width:"100%",my:"xs"}),u.jsx(Ne,{withRowBorders:!1,children:u.jsx(Ne.Tbody,{children:Array.from({length:3}).map((n,r)=>u.jsxs(Ne.Tr,{children:[u.jsx(Ne.Td,{width:"35%",children:u.jsx(po,{height:10,width:"100%"})}),u.jsx(Ne.Td,{children:u.jsx(po,{height:10,width:"100%"})})]},r))})})]},t))})}function LW({repoId:e}){const{t}=X(),n=Et(e),{displayedLogId:r,setDisplayedLogId:o}=sm(),s=ot({queryKey:["log",e,r],queryFn:()=>uW(e,r),enabled:r!==null}),i=s.data;return s.error?u.jsx("div",{children:s.error.message}):u.jsxs(_t.Root,{size:"lg",padding:"lg",opened:r!==null,onClose:()=>o(null),withinPortal:!1,trapFocus:!1,children:[u.jsx(_t.Overlay,{}),u.jsxs(_t.Content,{children:[u.jsx(_t.Header,{children:u.jsxs(bo,{justify:"space-between",w:"100%",children:[u.jsx(bt,{gap:"0.5rem",children:i?u.jsxs(u.Fragment,{children:[u.jsxs("div",{children:[u.jsx(kn,{label:t("log.actionType"),withinPortal:!1,children:u.jsx(id,{order:2,children:n("action_type",i.action.type)})}),u.jsx(kn,{label:t("log.actionCategory"),withinPortal:!1,children:u.jsx(xt,{c:"dimmed",style:{display:"inline-block"},children:n("action_category",i.action.category)})})]}),u.jsx(PW,{log:i})]}):u.jsx(TW,{})}),u.jsx(_t.CloseButton,{})]})}),u.jsx(_t.Body,{children:u.jsx(bt,{gap:"1rem",children:i?u.jsxs(u.Fragment,{children:[u.jsx(SW,{log:i,repoId:e}),u.jsx(CW,{log:i,repoId:e}),u.jsx(EW,{log:i,repoId:e}),u.jsx(kW,{log:i,repoId:e}),u.jsx(jW,{log:i,repoId:e}),u.jsx(RW,{log:i,repoId:e}),u.jsx(wW,{log:i})]}):u.jsx(NW,{})})})]})]})}function Rx(e,t,n){const{t:r}=X(),o=Et(e),s=ot({queryKey:["logActorCustomFields",e],queryFn:()=>dW(e),enabled:!!e}),i=ot({queryKey:["logResourceCustomFields",e],queryFn:()=>pW(e),enabled:!!e}),a=ot({queryKey:["logDetailFields",e],queryFn:()=>hW(e),enabled:!!e}),l=ot({queryKey:["logSourceFields",e],queryFn:()=>fW(e),enabled:!!e}),c=cN(e),d=({value:f,label:p})=>({value:f,label:p,disabled:n&&n.has(f)});return{fields:[{group:"Date",items:[d({value:"savedAt",label:"Date"})]},{group:"Action",items:[...t==="columns"?[d({value:"action",label:r("log.action")+" *"})]:[],d({value:"actionCategory",label:r("log.actionCategory")}),d({value:"actionType",label:r("log.actionType")})]},{group:"Actor",items:[...t==="columns"?[d({value:"actor",label:r("log.actor")+" *"})]:[],d({value:"actorType",label:r("log.actorType")}),d({value:"actorName",label:r("log.actorName")}),d({value:"actorRef",label:r("log.actorRef")}),...(s.data??[]).map(f=>d({value:`actor.${f}`,label:r("log.actor")+": "+o("actor_custom_field",f)}))]},{group:r("log.source"),items:(l.data??[]).map(f=>d({value:`source.${f}`,label:o("source_field",f)}))},{group:r("log.resource"),items:[...t==="columns"?[d({value:"resource",label:r("log.resource")+" *"})]:[],d({value:"resourceType",label:r("log.resourceType")}),d({value:"resourceName",label:r("log.resourceName")}),d({value:"resourceRef",label:r("log.resourceRef")}),...(i.data??[]).map(f=>d({value:`resource.${f}`,label:r("log.resource")+": "+o("resource_custom_field",f)}))]},{group:r("log.details"),items:(a.data??[]).map(f=>d({value:`details.${f}`,label:o("detail_field",f)}))},{group:r("log.tag"),items:[...t==="columns"?[d({value:"tag",label:r("log.tag")+" *"})]:[],d({value:"tagType",label:r("log.tagType")}),d({value:"tagName",label:r("log.tagName")}),d({value:"tagRef",label:r("log.tagRef")})]},{group:"Attachment",items:[...t==="columns"?[d({value:"attachment",label:r("log.attachment")+" *"})]:[],...t==="search"?[d({value:"hasAttachment",label:r("log.hasAttachment")})]:[],d({value:"attachmentName",label:r("log.attachmentName")}),d({value:"attachmentType",label:r("log.attachmentType")}),d({value:"attachmentMimeType",label:r("log.attachmentMimeType")})]},{group:r("log.entity"),items:[d({value:"entity",label:r("log.entity")})]}],loading:s.isPending||i.isPending||a.isPending||l.isPending||c.isPending}}function DW(e,t,n){const{fields:r,loading:o}=Rx(e,t,n);return o?null:r.map(s=>s.items.map(i=>i.value)).flat()}function ut({fieldLabel:e,onClick:t,fontSize:n="sm",fontWeight:r,color:o,children:s}){const{t:i}=X();return u.jsx(kn,{label:i("log.inlineFilter.filterOn",{field:e}),disabled:!e,withArrow:!0,withinPortal:!1,children:u.jsx(ts,{onClick:a=>{a.stopPropagation(),t()},underline:"hover",component:"span",size:n,fw:r,c:o,children:s})})}function im(e,t){const n=e.find(r=>r.name===t);return n?n.value:null}function MW({log:e}){return u.jsx(vv,{value:e.savedAt,textProps:{size:"xs"}})}function _W({log:e,fieldName:t,repoId:n,onTableSearchParamChange:r}){const{t:o}=X(),s=Et(n);if(!e.source)return null;const i=im(e.source,t);return i?u.jsx(ut,{fieldLabel:o("log.inlineFilter.field.sourceField",{field:s("source_field",t).toLowerCase()}),onClick:()=>r("source",new Map([[t,i]])),children:i}):null}function AW({log:e,onTableSearchParamChange:t}){const{t:n}=X();return e.actor&&u.jsx(ut,{fieldLabel:n("log.inlineFilter.field.actor"),onClick:()=>t("actorRef",e.actor.ref),children:e.actor.name})}function OW({log:e,repoId:t,onTableSearchParamChange:n}){const{t:r}=X(),o=Et(t);return e.actor&&u.jsx(ut,{fieldLabel:r("log.inlineFilter.field.actorType"),onClick:()=>n("actorType",e.actor.type),children:o("actor_type",e.actor.type)})}function $W({log:e,onTableSearchParamChange:t}){const{t:n}=X();return e.actor&&u.jsx(ut,{fieldLabel:n("log.inlineFilter.field.actorName"),onClick:()=>t("actorName",e.actor.name),children:e.actor.name})}function FW({log:e,onTableSearchParamChange:t}){const{t:n}=X();return e.actor&&u.jsx(ut,{fieldLabel:n("log.inlineFilter.field.actorRef"),onClick:()=>t("actorRef",e.actor.ref),children:e.actor.ref})}function IW({log:e,repoId:t,fieldName:n,onTableSearchParamChange:r}){const{t:o}=X(),s=Et(t);if(!e.actor)return null;const i=im(e.actor.extra,n);return i?u.jsx(ut,{fieldLabel:o("log.inlineFilter.field.actorCustomField",{field:s("actor_custom_field",n).toLowerCase()}),onClick:()=>r("actorExtra",new Map([[n,i]])),children:i}):null}function zW({log:e,repoId:t,onTableSearchParamChange:n}){const{t:r}=X(),o=Et(t);return u.jsxs(u.Fragment,{children:[u.jsx(ut,{fieldLabel:r("log.inlineFilter.field.actionType"),onClick:()=>n("actionType",e.action.type),children:o("action_type",e.action.type)}),u.jsx("br",{}),u.jsx(ut,{fieldLabel:r("log.inlineFilter.field.actionCategory"),onClick:()=>n("actionCategory",e.action.category),color:"gray",fontSize:"xs",children:"("+o("action_category",e.action.category)+")"})]})}function VW({log:e,repoId:t,onTableSearchParamChange:n}){const{t:r}=X(),o=Et(t);return u.jsx(ut,{fieldLabel:r("log.inlineFilter.field.actionType"),onClick:()=>n("actionType",e.action.type),children:o("action_type",e.action.type)})}function BW({log:e,repoId:t,onTableSearchParamChange:n}){const{t:r}=X(),o=Et(t);return u.jsx(ut,{fieldLabel:r("log.inlineFilter.field.actionCategory"),onClick:()=>n("actionCategory",e.action.category),children:o("action_category",e.action.category)})}function UW({log:e,repoId:t,onTableSearchParamChange:n}){const{t:r}=X(),o=Et(t);return e.resource?u.jsxs(u.Fragment,{children:[u.jsx(ut,{fieldLabel:r("log.inlineFilter.field.resourceType"),onClick:()=>n("resourceType",e.resource.type),children:o("resource_type",e.resource.type)}),": ",u.jsx(ut,{fieldLabel:r("log.inlineFilter.field.resource"),onClick:()=>n("resourceRef",e.resource.ref),fontWeight:"bold",children:e.resource.name})]}):null}function HW({log:e,repoId:t,onTableSearchParamChange:n}){const{t:r}=X(),o=Et(t);return e.resource?u.jsx(ut,{fieldLabel:r("log.inlineFilter.field.resourceType"),onClick:()=>n("resourceType",e.resource.type),children:o("resource_type",e.resource.type)}):null}function WW({log:e,onTableSearchParamChange:t}){const{t:n}=X();return e.resource?u.jsx(ut,{fieldLabel:n("log.inlineFilter.field.resourceName"),onClick:()=>t("resourceName",e.resource.name),children:e.resource.name}):null}function KW({log:e,onTableSearchParamChange:t}){const{t:n}=X();return e.resource?u.jsx(ut,{fieldLabel:n("log.inlineFilter.field.resourceRef"),onClick:()=>t("resourceRef",e.resource.ref),children:e.resource.ref}):null}function qW({log:e,repoId:t,fieldName:n,onTableSearchParamChange:r}){const{t:o}=X(),s=Et(t);if(!e.resource)return null;const i=im(e.resource.extra,n);return i?u.jsx(ut,{fieldLabel:o("log.inlineFilter.field.resourceCustomField",{field:s("resource_custom_field",n).toLowerCase()}),onClick:()=>r("resourceExtra",new Map([[n,i]])),children:i}):null}function YW({log:e,repoId:t,fieldName:n,onTableSearchParamChange:r}){const{t:o}=X(),s=Et(t);if(!e.details)return null;const i=im(e.details,n);return i?u.jsx(ut,{fieldLabel:o("log.inlineFilter.field.detailField",{field:s("detail_field",n).toLowerCase()}),onClick:()=>r("details",new Map([[n,i]])),children:i}):null}function GW({log:e,repoId:t,onTableSearchParamChange:n}){const{t:r}=X(),o=Et(t);return u.jsx(wo,{separator:null,separatorMargin:"0.250rem",children:e.tags.map((s,i)=>s.ref?u.jsx(ut,{fieldLabel:r("log.inlineFilter.field.tag"),onClick:()=>n("tagRef",s.ref),children:u.jsx(Il,{size:"sm",variant:"outline",children:o("tag_type",s.type)+": "+s.name})},i):u.jsx(ut,{fieldLabel:r("log.inlineFilter.field.tag"),onClick:()=>n("tagType",s.type),children:u.jsx(Il,{size:"sm",variant:"outline",children:o("tag_type",s.type)})},i))})}function QW({log:e,repoId:t,onTableSearchParamChange:n}){const{t:r}=X(),o=Et(t);return u.jsx(wo,{separator:", ",children:e.tags.map((s,i)=>u.jsx(ut,{fieldLabel:r("log.inlineFilter.field.tagType"),onClick:()=>n("tagType",s.type),children:o("tag_type",s.type)},i))})}function XW({log:e,onTableSearchParamChange:t}){const{t:n}=X();return u.jsx(wo,{separator:", ",children:e.tags.map((r,o)=>r.name&&u.jsx(ut,{fieldLabel:n("log.inlineFilter.field.tagName"),onClick:()=>t("tagName",r.name),children:r.name},o))})}function JW({log:e,onTableSearchParamChange:t}){const{t:n}=X();return u.jsx(wo,{separator:", ",children:e.tags.map((r,o)=>r.ref&&u.jsx(ut,{fieldLabel:n("log.inlineFilter.field.tagRef"),onClick:()=>t("tagRef",r.ref),children:r.ref},o))})}function ZW({log:e,onTableSearchParamChange:t}){const{t:n}=X();return u.jsx(wo,{separator:", ",children:e.attachments.map((r,o)=>u.jsx(ut,{fieldLabel:n("log.inlineFilter.field.attachmentName"),onClick:()=>t("attachmentName",r.name),children:r.name},o))})}function bC({log:e,repoId:t,onTableSearchParamChange:n}){const{t:r}=X(),o=Et(t);return u.jsx(wo,{separator:", ",children:e.attachments.map((s,i)=>u.jsx(ut,{fieldLabel:r("log.inlineFilter.field.attachmentType"),onClick:()=>n("attachmentType",s.type),children:o("attachment_type",s.type)},i))})}function eK({log:e,onTableSearchParamChange:t}){const{t:n}=X();return u.jsx(wo,{separator:", ",children:e.attachments.map((r,o)=>u.jsx(ut,{fieldLabel:n("log.inlineFilter.field.attachmentMimeType"),onClick:()=>t("attachmentMimeType",r.mimeType),children:r.mimeType},o))})}function tK({log:e,onTableSearchParamChange:t}){const{t:n}=X();return e.entityPath.map(r=>u.jsx(ut,{fieldLabel:n("log.inlineFilter.field.entity"),onClick:()=>t("entityRef",r.ref),children:r.name},r.ref)).reduce((r,o)=>[r," > ",o])}function nK({repoId:e,selected:t,onColumnAdded:n,onColumnRemoved:r,onColumnReset:o}){const{t:s}=X(),{fields:i,loading:a}=Rx(e,"columns"),l=th();return u.jsx(UT,{comboboxStore:l,data:i,value:Array.from(t),onOptionSubmit:n,onRemove:r,footer:u.jsx(ts,{onClick:o,children:u.jsx(xt,{size:"xs",children:s("log.list.columnSelector.reset")})}),children:u.jsx(Yt,{onClick:()=>l.toggleDropdown(),loading:a,loaderProps:{type:"dots"},variant:"transparent",children:u.jsx(RV,{})})})}function Px(e,t){const n={savedAt:0,"source.":1,actor:2,actorType:3,actorName:4,actorRef:5,"actor.":6,action:7,actionType:8,actionCategory:9,resource:10,resourceType:11,resourceName:12,resourceRef:13,"resource.":14,"details.":15,attachment:16,attachmentName:17,attachmentType:18,attachmentMimeType:19,entity:20,tag:21,tagType:22,tagName:23,tagRef:24},r=c=>{const d=c.split(".");return[d[0]+(d[1]?".":""),d[1]]},[o,s]=r(e),[i,a]=r(t),l=n[o]-n[i];return l!==0?l:s.localeCompare(a)}function rK(e,t,n,r,o){const{t:s}=Gt,i=(l,c,d)=>u.jsxs(Ge,{justify:"space-between",wrap:"nowrap",children:[u.jsxs("span",{children:[c&&Ht.createElement(c,{style:{...hn(16),position:"relative",top:"2px",marginRight:"0.25rem",...d||{}}}),l]}),o]}),a=l=>({...l,titleStyle:{background:"var(--auditize-header-color)"}});if(e==="savedAt")return a({accessor:"savedAt",title:i(s("log.date"),qP),render:l=>u.jsx(MW,{log:l})});if(e.startsWith("source.")){const l=e.split(".")[1];return a({accessor:`source.${l}`,title:i(s("log.source")+": "+r("source_field",l)),render:c=>u.jsx(_W,{log:c,fieldName:l,repoId:t,onTableSearchParamChange:n})})}if(e==="actor")return a({accessor:"actor",title:i(s("log.actor"),ZP),render:l=>u.jsx(AW,{log:l,onTableSearchParamChange:n})});if(e==="actorType")return a({accessor:"actorType",title:i(s("log.actorType")),render:l=>u.jsx(OW,{log:l,repoId:t,onTableSearchParamChange:n})});if(e==="actorName")return a({accessor:"actorName",title:i(s("log.actorName")),render:l=>u.jsx($W,{log:l,onTableSearchParamChange:n})});if(e==="actorRef")return a({accessor:"actorRef",title:i(s("log.actorRef")),render:l=>u.jsx(FW,{log:l,onTableSearchParamChange:n})});if(e.startsWith("actor.")){const l=e.split(".")[1];return a({accessor:`actor.${l}`,title:i(s("log.actor")+": "+r("actor_custom_field",l)),render:c=>u.jsx(IW,{log:c,repoId:t,fieldName:l,onTableSearchParamChange:n})})}if(e==="action")return a({accessor:"action",title:i(s("log.action"),TV),render:l=>u.jsx(zW,{log:l,repoId:t,onTableSearchParamChange:n})});if(e==="actionType")return a({accessor:"actionType",title:i(s("log.actionType")),render:l=>u.jsx(VW,{log:l,repoId:t,onTableSearchParamChange:n})});if(e==="actionCategory")return a({accessor:"actionCategory",title:i(s("log.actionCategory")),render:l=>u.jsx(BW,{log:l,repoId:t,onTableSearchParamChange:n})});if(e==="resource")return a({accessor:"resource",title:i(s("log.resource"),YP),render:l=>u.jsx(UW,{log:l,repoId:t,onTableSearchParamChange:n})});if(e==="resourceType")return a({accessor:"resourceType",title:i(s("log.resourceType")),render:l=>u.jsx(HW,{log:l,repoId:t,onTableSearchParamChange:n})});if(e==="resourceName")return a({accessor:"resourceName",title:i(s("log.resourceName")),render:l=>u.jsx(WW,{log:l,onTableSearchParamChange:n})});if(e==="resourceRef")return a({accessor:"resourceRef",title:i(s("log.resourceRef")),render:l=>u.jsx(KW,{log:l,onTableSearchParamChange:n})});if(e.startsWith("resource.")){const l=e.split(".")[1];return a({accessor:`resource.${l}`,title:i(s("log.resource")+": "+r("resource_custom_field",l)),render:c=>u.jsx(qW,{log:c,repoId:t,fieldName:l,onTableSearchParamChange:n})})}if(e.startsWith("details.")){const l=e.split(".")[1];return a({accessor:`details.${l}`,title:i(r("detail_field",l)),render:c=>u.jsx(YW,{log:c,repoId:t,fieldName:l,onTableSearchParamChange:n})})}if(e==="tag")return a({accessor:"tags",title:i(s("log.tags"),JP,{top:"3px"}),render:l=>u.jsx(GW,{log:l,repoId:t,onTableSearchParamChange:n})});if(e==="tagType")return a({accessor:"tagType",title:i(s("log.tagTypes")),render:l=>u.jsx(QW,{log:l,repoId:t,onTableSearchParamChange:n})});if(e==="tagName")return a({accessor:"tagName",title:i(s("log.tagNames")),render:l=>u.jsx(XW,{log:l,onTableSearchParamChange:n})});if(e==="tagRef")return a({accessor:"tagRef",title:i(s("log.tagRefs")),render:l=>u.jsx(JW,{log:l,onTableSearchParamChange:n})});if(e==="attachment")return a({accessor:"attachment",title:i(s("log.attachments")),render:l=>u.jsx(bC,{log:l,repoId:t,onTableSearchParamChange:n})});if(e==="attachmentName")return a({accessor:"attachmentName",title:i(s("log.attachmentNames")),render:l=>u.jsx(ZW,{log:l,onTableSearchParamChange:n})});if(e==="attachmentType")return a({accessor:"attachmentType",title:i(s("log.attachmentTypes")),render:l=>u.jsx(bC,{log:l,repoId:t,onTableSearchParamChange:n})});if(e==="attachmentMimeType")return a({accessor:"attachmentMimeType",title:i(s("log.attachmentMimeTypes")),render:l=>u.jsx(eK,{log:l,onTableSearchParamChange:n})});if(e==="entity")return a({accessor:"entity",title:i(s("log.entity"),QP),render:l=>u.jsx(tK,{log:l,onTableSearchParamChange:n})});console.error(`Unknown field: ${e}`)}function oK({repoId:e,onTableSearchParamChange:t,selectedColumns:n,onSelectedColumnsChange:r,logTranslator:o}){const s=u.jsx("span",{style:{fontWeight:"normal"},children:u.jsx(nK,{repoId:e,selected:n,onColumnAdded:i=>r([...n,i]),onColumnRemoved:i=>r(n.filter(a=>a!==i)),onColumnReset:()=>r(null)})});return n.toSorted(Px).map((i,a)=>rK(i,e,t,o,a+1==n.length?s:void 0)).filter(i=>!!i)}function sK(e){return UI({queryKey:["logs",e.serialize()],queryFn:async({pageParam:t})=>await cW(t,e),enabled:!!e.repoId,initialPageParam:null,getNextPageParam:t=>t.nextCursor,staleTime:0})}function iK({searchParams:e,onTableSearchParamChange:t,selectedColumns:n,onSelectedColumnsChange:r}){var c;const{t:o}=X(),s=Et(e.repoId),i=sK(e),{setDisplayedLogId:a}=sm();if(i.error)return u.jsxs("div",{children:[o("common.unexpectedError"),": ",i.error.message]});const l=(c=i.data)==null?void 0:c.pages.flatMap(d=>d.logs);return u.jsxs(u.Fragment,{children:[u.jsxs(bt,{children:[u.jsx(aW,{columns:oK({repoId:e.repoId,onTableSearchParamChange:t,selectedColumns:n,onSelectedColumnsChange:r,logTranslator:s}),records:l,onRowClick:({record:d})=>a(d.id),fetching:i.isFetching||i.isFetchingNextPage,minHeight:150,noRecordsText:o("log.list.noResults"),highlightOnHover:!0,withTableBorder:!0,verticalAlign:"top",verticalSpacing:"md"}),l&&l.length>0&&u.jsx(Zn,{children:u.jsx(Tt,{onClick:()=>i.fetchNextPage(),disabled:!i.hasNextPage||i.isFetchingNextPage,loading:i.isFetchingNextPage,children:o("log.list.loadMore")})})]}),u.jsx(LW,{repoId:e.repoId})]})}function dN(e){return e.toSorted(Px).map(t=>uT(t))}function aK(e){return e.map(t=>cB(t))}function ru(e,t){for(const n of e){if(n.value===t)return n;if(n.children){const r=ru(n.children,t);if(r)return r}}return null}function Tx(e,t){if(t.includes(e.value))return!0;if(e.children){for(const n of e.children)if(Tx(n,t))return!0}return!1}async function lK(e,t){const n=await mW(e,t);return wd(e,n.parentEntityRef)}function Nx(e){return{value:e.ref,label:e.name,children:e.hasChildren?[]:void 0}}async function cK(e,t,n){for(const r of n){if(ru(t,r))continue;let s=r,i=[];for(;;){const a=await lK(e,s),l=a[0].parentEntityRef,c=a.map(Nx),d=ru(c,s);i.length>0&&(d.children=i),i=c;const f=ru(t,l);if(f){f.children=i;break}else s=l}}}function fN({repoId:e,tree:t,node:n,expanded:r}){var s;const o=ot({queryKey:["logEntities",e,n.value],queryFn:()=>wd(e,n.value),enabled:r&&((s=n.children)==null?void 0:s.length)===0});return v.useEffect(()=>{o.data&&(n.children=o.data.map(Nx),r&&t.expand(n.value))},[o.data]),o.isLoading}function pN(e,t,n){const r=ot({queryKey:["logEntities",e],queryFn:()=>wd(e),enabled:!!e}),[o,s]=v.useState([]),[i,a]=v.useState(null);return v.useEffect(()=>{r.data&&(s(()=>r.data.map(Nx)),n&&t.length!==0&&i&&e!==i&&n(),a(e))},[r.data]),v.useEffect(()=>{o.length>0&&t.length>0&&t.some(l=>!ru(o,l))&&cK(e,o,t).then(()=>s(l=>l))},[o,t]),o}function hN({tree:e,node:t,expanded:n,loading:r}){return t.children?u.jsx(Yt,{onClick:()=>n?e.collapse(t.value):e.expand(t.value),variant:"transparent",p:"0",size:"20px",children:n?r?u.jsx(Zo,{size:16}):u.jsx(fx,{style:hn(20)}):u.jsx(kV,{style:hn(20)})}):u.jsx(vo,{w:"20px"})}function mN({data:e,tree:t,renderNode:n,onClear:r}){const{t:o}=X();return e.length>0?u.jsxs(bt,{gap:"0",p:"0",children:[u.jsx(Gr.Autosize,{type:"hover",mah:200,p:"8px",pr:"0",children:u.jsx(Y,{w:"250px",children:u.jsx(q1,{data:e,tree:t,levelOffset:18,expandOnClick:!1,renderNode:n})})}),u.jsx(Y,{style:{borderTopStyle:"solid",borderTopWidth:"1px",borderColor:"var(--mantine-color-gray-2)"},children:u.jsx(ts,{onClick:r,children:u.jsx(xt,{size:"xs",px:"sm",py:"6px",children:o("common.clear")})})})]}):u.jsx(xt,{c:"var(--mantine-color-gray-6)",p:"sm",size:"sm",children:o("common.noData")})}function uK({repoId:e,selectedNodeValue:t,onChange:n,node:r,expanded:o,elementProps:s,tree:i}){const a=fN({repoId:e,tree:i,node:r,expanded:o}),l=r.value===t,c=!l&&t&&Tx(r,[t]);return u.jsx(Ge,{...s,children:u.jsxs(Ge,{gap:0,children:[u.jsx(hN,{tree:i,node:r,expanded:o,loading:a}),u.jsx(Tt,{onClick:()=>n(l?"":r.value),variant:l?"light":"transparent",size:"sm",h:"1.75rem",color:l||c?"var(--mantine-color-blue214-6)":"black",p:"0.30rem",style:!l&&!c?{fontWeight:"normal"}:void 0,children:r.label})]})})}function dK({repoId:e,entityRefs:t,onChange:n,node:r,expanded:o,elementProps:s,tree:i}){const a=fN({repoId:e,tree:i,node:r,expanded:o}),l=t.includes(r.value),c=!l&&Tx(r,t),d=()=>{n(l?t.filter(f=>f!==r.value):[...t,r.value])};return u.jsx(Ge,{...s,style:{cursor:"default"},children:u.jsxs(Ge,{gap:"0px",p:"4px",children:[u.jsx(hN,{tree:i,node:r,expanded:o,loading:a}),u.jsx(vo,{w:"8px"}),u.jsx(ns.Indicator,{checked:l,indeterminate:c,onClick:d,size:"xs"}),u.jsx(vo,{w:"6px"}),u.jsx(xt,{onClick:d,size:"sm",style:{cursor:"default"},children:r.label})]})})}function fK({repoId:e,entityRef:t,onChange:n}){const r=v.useMemo(()=>t?[t]:[],[t]),o=pN(e,r,()=>n("")),s=K1({});return u.jsx(mN,{data:o,tree:s,renderNode:({node:i,expanded:a,elementProps:l,tree:c})=>u.jsx(uK,{repoId:e,selectedNodeValue:t,onChange:n,node:i,expanded:a,elementProps:l,tree:c}),onClear:()=>t!==""&&n("")})}function pK({repoId:e,entityRefs:t,onChange:n}){const r=pN(e,t),o=K1({});return u.jsx(mN,{data:r,tree:o,renderNode:({node:s,expanded:i,elementProps:a,tree:l})=>u.jsx(dK,{repoId:e,entityRefs:t,onChange:n,node:s,expanded:i,elementProps:a,tree:l}),onClear:()=>n([])})}function hK({repoId:e,entityRefs:t,onChange:n,disabled:r,buttonProps:o,popoverProps:s}){const{t:i}=X();return u.jsx(gU,{title:i("permission.entities"),isFilled:t.length>0,disabled:r,buttonProps:o,popoverProps:s,children:u.jsx(pK,{repoId:e,entityRefs:t,onChange:n})})}const fi=new Set(["savedAt","actionCategory","actionType","entity"]);function Cd({title:e,opened:t,isSet:n,removable:r=!0,loading:o=!1,onChange:s,onRemove:i,children:a}){return u.jsxs(At,{opened:t,onChange:s,keepMounted:!0,withinPortal:!1,shadow:"md",children:[u.jsx(At.Target,{children:u.jsx(Tt,{onClick:()=>s(!t),loading:o,loaderProps:{type:"dots"},rightSection:r&&u.jsx(Sr,{onClick:i,component:"a",variant:"transparent"}),variant:n?"light":"outline",children:e})}),u.jsx(At.Dropdown,{p:"0",children:a})]})}function mK({repoId:e,onChange:t}){var o;const{t:n}=X(),r=hx();return u.jsx(rc,{data:(o=r.data)==null?void 0:o.map(s=>({label:s.name,value:s.id})),value:e||null,onChange:s=>t(s||""),placeholder:r.error?n("common.notCurrentlyAvailable"):r.isPending?n("common.loading"):void 0,disabled:r.isPending,clearable:!1,display:"flex",comboboxProps:{withinPortal:!1,shadow:"md"}})}function gK(e){const t=ot({queryKey:["logConsolidatedData","actionCategory",e],queryFn:()=>eN(e),enabled:!!e}),n=ot({queryKey:["logConsolidatedData","actionType",e],queryFn:()=>tN(e),enabled:!!e}),r=ot({queryKey:["logConsolidatedData","actorType",e],queryFn:()=>nN(e),enabled:!!e}),o=ot({queryKey:["logConsolidatedData","resourceType",e],queryFn:()=>rN(e),enabled:!!e}),s=ot({queryKey:["logConsolidatedData","tagType",e],queryFn:()=>oN(e),enabled:!!e}),i=ot({queryKey:["logConsolidatedData","attachmentType",e],queryFn:()=>sN(e),enabled:!!e}),a=ot({queryKey:["logConsolidatedData","attachmentMimeType",e],queryFn:()=>iN(e),enabled:!!e}),l=ot({queryKey:["logEntities",e],queryFn:()=>wd(e),enabled:!!e});return t.isPending||n.isPending||r.isPending||o.isPending||s.isPending||i.isPending||a.isPending||l.isPending}function vi({label:e,searchParams:t,searchParamName:n,items:r,itemsQueryKeyExtra:o,itemLabel:s,openedByDefault:i,onChange:a,onRemove:l}){const{t:c}=X(),d=ot({queryKey:["logConsolidatedData",n,t.repoId,o],queryFn:()=>r(t.repoId),enabled:!!t.repoId}),[f,{toggle:p}]=zn(i),h=t[n];return v.useEffect(()=>{d.data&&h&&!d.data.includes(h)&&a(n,"")},[d.data]),u.jsx(Cd,{title:e,opened:f,isSet:!!h,onChange:p,removable:!fi.has(n),onRemove:()=>l(n),loading:d.isPending,children:u.jsx(dH,{data:d.data?d.data.map(m=>({label:s(m),value:m})):[],value:h,onChange:m=>a(n,m),placeholder:d.error?c("common.notCurrentlyAvailable"):d.data&&d.data.length>0?c("common.chooseAValue"):c("common.noData")})})}function Kc({label:e,name:t,value:n,openedByDefault:r,onChange:o,onRemove:s}){const[i,{toggle:a}]=zn(r);return u.jsx(Cd,{title:e,opened:i,isSet:!!n,onChange:a,removable:!fi.has(t),onRemove:()=>s(t),children:u.jsx(Ku,{active:!0,children:u.jsx(qt,{placeholder:e,value:n,onChange:l=>o(l.currentTarget.value),"data-autofocus":!0,p:"sm"})})})}function xi({label:e,searchParams:t,searchParamName:n,openedByDefault:r,onChange:o,onRemove:s}){const i=t[n];return u.jsx(Kc,{label:e,name:n,value:i,openedByDefault:r,onChange:a=>o(n,a),onRemove:s})}function yK({searchParams:e,openedByDefault:t,onChange:n,onRemove:r}){const{t:o}=X(),s=ot({queryKey:["logEntities",e.repoId],queryFn:()=>wd(e.repoId),enabled:!!e.repoId}),[i,{toggle:a}]=zn(t);return u.jsx(Cd,{title:o("log.entity"),opened:i,isSet:!!e.entityRef,onChange:a,removable:!fi.has("entity"),onRemove:()=>r("entity"),loading:s.isPending,children:u.jsx(fK,{repoId:e.repoId||null,entityRef:e.entityRef,onChange:l=>n("entityRef",l)})})}function vK({searchParams:e,openedByDefault:t,onChange:n,onRemove:r}){const{t:o}=X(),[s,{toggle:i}]=zn(t),[a,l]=v.useState(null),c=(d,f)=>!d||!f||d<=f;return u.jsx(Cd,{title:o("log.date"),removable:!fi.has("savedAt"),onRemove:()=>r("savedAt"),isSet:!!(e.since||e.until),opened:s,onChange:i,children:u.jsxs(bt,{p:"sm",gap:"sm",children:[u.jsx(yC,{placeholder:o("log.dateFrom"),value:e.since,onChange:d=>{n("since",d),l(c(d,e.until)?null:o("log.list.untilMustBeGreaterThanSince"))}}),u.jsx(yC,{placeholder:o("log.dateTo"),value:e.until,onChange:d=>{c(e.since,d)?(n("until",d),l(null)):l(o("log.list.untilMustBeGreaterThanSince"))},initToEndOfDay:!0,dateTimePickerProps:{error:a??void 0,excludeDate:d=>!c(e.since,d)}})]})})}function xK({searchParams:e,openedByDefault:t,onChange:n,onRemove:r}){const{t:o}=X(),[s,{toggle:i}]=zn(t);return u.jsx(Cd,{title:o("log.hasAttachment"),opened:s,isSet:e.hasAttachment!==void 0,onChange:i,removable:!fi.has("hasAttachment"),onRemove:()=>r("hasAttachment"),children:u.jsx(nd,{checked:e.hasAttachment??!1,onChange:a=>n("hasAttachment",a.currentTarget.checked?!0:void 0),label:o("log.hasAttachment"),p:"sm"})})}function bK({name:e,searchParams:t,openedByDefault:n,onChange:r,onRemove:o}){const{t:s}=X(),i=Et(t.repoId);if(e==="savedAt")return u.jsx(vK,{searchParams:t,openedByDefault:n,onChange:r,onRemove:o});if(e==="actionCategory")return u.jsx(vi,{label:s("log.actionCategory"),searchParams:t,searchParamName:"actionCategory",items:eN,itemLabel:a=>i("action_category",a),openedByDefault:n,onChange:r,onRemove:o});if(e==="actionType")return u.jsx(vi,{label:s("log.actionType"),searchParams:t,searchParamName:"actionType",items:a=>tN(a,t.actionCategory),itemsQueryKeyExtra:t.actionCategory,itemLabel:a=>i("action_type",a),openedByDefault:n,onChange:r,onRemove:o});if(e==="actorType")return u.jsx(vi,{label:s("log.actorType"),searchParams:t,searchParamName:"actorType",items:nN,itemLabel:a=>i("actor_type",a),openedByDefault:n,onChange:r,onRemove:o});if(e==="actorName")return u.jsx(xi,{label:s("log.actorName"),searchParams:t,searchParamName:"actorName",openedByDefault:n,onChange:r,onRemove:o});if(e==="actorRef")return u.jsx(xi,{label:s("log.actorRef"),searchParams:t,searchParamName:"actorRef",openedByDefault:n,onChange:r,onRemove:o});if(e.startsWith("actor.")){const a=e.replace("actor.","");return u.jsx(Kc,{label:s("log.actor")+": "+Wc(a),name:e,value:t.actorExtra.get(a)??"",openedByDefault:n,onChange:l=>r("actorExtra",new Map([...t.actorExtra,[a,l]])),onRemove:o})}if(e.startsWith("source.")){const a=e.replace("source.","");return u.jsx(Kc,{label:Wc(a),name:e,value:t.source.get(a)??"",openedByDefault:n,onChange:l=>r("source",new Map([...t.source,[a,l]])),onRemove:o})}if(e==="resourceType")return u.jsx(vi,{label:s("log.resourceType"),searchParams:t,searchParamName:"resourceType",items:rN,itemLabel:a=>i("resource_type",a),openedByDefault:n,onChange:r,onRemove:o});if(e==="resourceName")return u.jsx(xi,{label:s("log.resourceName"),searchParams:t,searchParamName:"resourceName",openedByDefault:n,onChange:r,onRemove:o});if(e==="resourceRef")return u.jsx(xi,{label:s("log.resourceRef"),searchParams:t,searchParamName:"resourceRef",openedByDefault:n,onChange:r,onRemove:o});if(e.startsWith("resource.")){const a=e.replace("resource.","");return u.jsx(Kc,{label:s("log.resource")+": "+Wc(a),name:e,value:t.resourceExtra.get(a)??"",openedByDefault:n,onChange:l=>r("resourceExtra",new Map([...t.resourceExtra,[a,l]])),onRemove:o})}if(e.startsWith("details.")){const a=e.replace("details.","");return u.jsx(Kc,{label:Wc(a),name:e,value:t.details.get(a)??"",openedByDefault:n,onChange:l=>r("details",new Map([...t.details,[a,l]])),onRemove:o})}return e==="tagType"?u.jsx(vi,{label:s("log.tagType"),searchParams:t,searchParamName:"tagType",items:oN,itemLabel:a=>i("tag_type",a),openedByDefault:n,onChange:r,onRemove:o}):e==="tagName"?u.jsx(xi,{label:s("log.tagName"),searchParams:t,searchParamName:"tagName",openedByDefault:n,onChange:r,onRemove:o}):e==="tagRef"?u.jsx(xi,{label:s("log.tagRef"),searchParams:t,searchParamName:"tagRef",openedByDefault:n,onChange:r,onRemove:o}):e==="hasAttachment"?u.jsx(xK,{searchParams:t,openedByDefault:n,onChange:r,onRemove:o}):e==="attachmentName"?u.jsx(xi,{label:s("log.attachmentName"),searchParams:t,searchParamName:"attachmentName",openedByDefault:n,onChange:r,onRemove:o}):e==="attachmentType"?u.jsx(vi,{label:s("log.attachmentType"),searchParams:t,searchParamName:"attachmentType",items:a=>sN(a),itemLabel:a=>i("attachment_type",a),openedByDefault:n,onChange:r,onRemove:o}):e==="attachmentMimeType"?u.jsx(vi,{label:s("log.attachmentMimeType"),searchParams:t,searchParamName:"attachmentMimeType",items:a=>iN(a),itemLabel:a=>a,openedByDefault:n,onChange:r,onRemove:o}):e==="entity"?u.jsx(yK,{searchParams:t,openedByDefault:n,onChange:r,onRemove:o}):null}function wK({names:e,added:t,searchParams:n,onChange:r,onRemove:o}){return u.jsx(u.Fragment,{children:Array.from(e).map(s=>u.jsx(bK,{name:s,searchParams:n,openedByDefault:s===t,onChange:r,onRemove:o},s))})}function SK({repoId:e,selected:t,onSearchParamAdded:n,onSearchParamRemoved:r}){const{fields:o,loading:s}=Rx(e,"search",fi),i=gK(e),a=th();return u.jsx(UT,{comboboxStore:a,data:o,value:Array.from(t),onOptionSubmit:n,onRemove:r,children:u.jsx(Yt,{onClick:()=>a.toggleDropdown(),loading:s||i,loaderProps:{type:"dots"},size:"input-sm",children:u.jsx(XP,{})})})}function CK(e,t){switch(console.log("searchParamsReducer",t),t.type){case"setParam":const n={[t.name]:t.value};return t.name==="actionCategory"&&(n.actionType=""),qr.fromProperties({...e,...n});case"resetParams":return qr.fromProperties(t.params??{})}}function wC(e){const t=new Set(fi);return(e.since||e.until)&&t.add("savedAt"),e.actionCategory&&t.add("actionCategory"),e.actionType&&t.add("actionType"),e.actorRef&&t.add("actorRef"),e.actorType&&t.add("actorType"),e.actorName&&t.add("actorName"),e.actorExtra.forEach((n,r)=>{t.add("actor."+r)}),e.source.forEach((n,r)=>{t.add("source."+r)}),e.resourceRef&&t.add("resourceRef"),e.resourceType&&t.add("resourceType"),e.resourceName&&t.add("resourceName"),e.resourceExtra.forEach((n,r)=>{t.add("resource."+r)}),e.details.forEach((n,r)=>{t.add("details."+r)}),e.tagRef&&t.add("tagRef"),e.tagType&&t.add("tagType"),e.tagName&&t.add("tagName"),e.hasAttachment&&t.add("hasAttachment"),e.attachmentName&&t.add("attachmentName"),e.attachmentType&&t.add("attachmentType"),e.attachmentMimeType&&t.add("attachmentMimeType"),e.entityRef&&t.add("entity"),t}function EK(e,t,n){if(["actionCategory","actionType","actorRef","actorType","actorName","resourceRef","resourceType","resourceName","tagRef","tagType","tagName","hasAttachment","attachmentName","attachmentType","attachmentMimeType","entityRef"].includes(t)){n(t,"");return}if(t==="savedAt"){n("since",null),n("until",null);return}if(t.startsWith("source.")){const o=t.replace("source.","");n("source",new Map([...e.source].filter(([s])=>s!==o)));return}if(t.startsWith("details.")){const o=t.replace("details.","");n("details",new Map([...e.details].filter(([s])=>s!==o)));return}if(t.startsWith("actor.")){const o=t.replace("actor.","");n("actorExtra",new Map([...e.actorExtra].filter(([s])=>s!==o)));return}if(t.startsWith("resource.")){const o=t.replace("resource.","");n("resourceExtra",new Map([...e.resourceExtra].filter(([s])=>s!==o)));return}if(t==="entity"){n("entityRef","");return}throw new Error(`Unknown search param name: ${t}`)}function kK(e){return Array.from(new Set(e.toSorted(Px).map(t=>t==="actor"?["actor_name"]:t==="action"?["action_type","action_category"]:t==="resource"?["resource_type","resource_name"]:t==="entity"?["entity_path:name"]:t==="tag"?["tag_type"]:t==="attachment"?["attachment_name"]:[uT(t)]).flat()))}function jK(e){if(e){const t=cs();return n=>t(`/logs?filterId=${n}`)}else return()=>{}}function RK({searchParams:e,selectedColumns:t,withLogFilters:n}){var w;const{t:r}=X(),{filterId:o}=sm(),s=jK(n),[i,{open:a,close:l}]=zn(!1),[c,{open:d,close:f}]=zn(!1),p=ot({queryKey:["logFilters"],queryFn:()=>WT().then(([y])=>y),enabled:n}),h=YT(o,{onSuccess:()=>{uH(r("log.filter.updateSuccess")),s(o)},onError:()=>{HT(r("log.filter.updateError"))}}),m=e.serialize({includeRepoId:!1,snakeCase:!0}),g=(window.auditizeBaseURL??"")+"/api/repos/"+e.repoId+"/logs/csv?"+new URLSearchParams(m).toString();return u.jsxs(u.Fragment,{children:[n&&u.jsxs(u.Fragment,{children:[u.jsx(hH,{repoId:e.repoId,searchParams:m,columns:dN(t),opened:i,onClose:l}),u.jsx(vH,{opened:c,onClose:f})]}),u.jsxs(Xe,{shadow:"md",withinPortal:!1,children:[u.jsx(Xe.Target,{children:u.jsx(Yt,{size:"input-sm",children:u.jsx(NV,{})})}),u.jsxs(Xe.Dropdown,{children:[u.jsx(Xe.Label,{children:r("log.csv.csv")}),u.jsx(Xe.Item,{component:"a",href:g,leftSection:u.jsx(yv,{style:hn(14)}),children:r("log.csv.csvExportDefault")}),u.jsx(Xe.Item,{component:"a",href:`${g}&columns=${kK(t).join(",")}`,leftSection:u.jsx(yv,{style:hn(14)}),children:r("log.csv.csvExportCurrent")}),n&&u.jsxs(u.Fragment,{children:[u.jsx(Xe.Divider,{}),u.jsx(Xe.Label,{children:r("log.filter.filters")}),(w=p.data)==null?void 0:w.map(y=>u.jsx(Xe.Item,{component:lc,to:`/logs?filterId=${y.id}`,leftSection:u.jsx(GP,{style:hn(14)}),children:y.name},y.id)),p.data&&p.data.length>0&&u.jsx(Xe.Divider,{}),u.jsx(Xe.Item,{component:"a",onClick:a,leftSection:u.jsx(eC,{style:hn(14)}),children:r("log.filter.save")}),o&&u.jsx(Xe.Item,{component:"a",onClick:()=>h.mutate({searchParams:m}),leftSection:u.jsx(eC,{style:hn(14)}),children:r("log.filter.update")}),u.jsx(Xe.Item,{component:"a",onClick:d,leftSection:u.jsx(xV,{style:hn(14)}),children:r("log.filter.manage")})]})]})]})]})}function PK({params:e,onChange:t,selectedColumns:n,withRepoSearchParam:r,withLogFilters:o}){const{t:s}=X(),[i,a]=v.useReducer(CK,e),[l,c]=v.useState(!1),[d,f]=v.useState(wC(e)),p=DW(i.repoId,"search",fi),[h,m]=v.useState(null),g=y=>{f(new Set([...d].filter(x=>x!==y))),EK(i,y,(x,b)=>a({type:"setParam",name:x,value:b})),c(!0)};v.useEffect(()=>{a({type:"resetParams",params:e}),c(!1),f(wC(e))},[e]),v.useEffect(()=>{if(p!==null)for(const y of d)p.includes(y)||g(y)},[p]);const w=H(6);return u.jsxs(Ge,{justify:"space-between",align:"start",gap:"md",wrap:"nowrap",children:[u.jsxs(Ge,{gap:w,children:[r&&u.jsx(mK,{repoId:i.repoId,onChange:y=>{a({type:"setParam",name:"repoId",value:y}),c(!0)}}),u.jsxs(Ge,{gap:w,children:[u.jsx(wK,{names:d,added:h,searchParams:i,onChange:(y,x)=>{a({type:"setParam",name:y,value:x}),c(!0)},onRemove:g}),u.jsx(SK,{repoId:i.repoId,selected:d,onSearchParamAdded:y=>{f(new Set([...d,y])),m(y)},onSearchParamRemoved:g})]})]}),u.jsxs(Ge,{gap:w,wrap:"nowrap",children:[u.jsx(Tt,{onClick:()=>t(i),disabled:!l,children:s("log.list.searchParams.apply")}),u.jsx(Tt,{onClick:()=>{a({type:"resetParams",params:qr.fromProperties({repoId:i.repoId})}),c(!0)},disabled:i.isEmpty(),variant:"default",children:s("log.list.searchParams.clear")}),u.jsx(RK,{searchParams:e,selectedColumns:n,withLogFilters:o})]})]})}function TK({withRepoSearchParam:e=!0,withLogFilters:t=!0,withScrollToTop:n=!0}){const{t:r}=X(),o=hx({enabled:e}),{searchParams:s,setSearchParams:i,selectedColumns:a,setSelectedColumns:l}=sm();return ri(r("log.list.documentTitle")),o.data&&o.data.length===0?u.jsx(bo,{justify:"center",children:u.jsx(xo.Warning,{textProps:{size:"md"},children:r("log.list.noRepos")})}):u.jsxs(bt,{gap:"md",pt:"xs",children:[u.jsx(PK,{params:s,onChange:c=>{i(c)},selectedColumns:a,withRepoSearchParam:e,withLogFilters:t}),u.jsx(iK,{searchParams:s,onTableSearchParamChange:(c,d)=>{i(qr.fromProperties({repoId:s.repoId,since:s.since,until:s.until,[c]:d}))},selectedColumns:a,onSelectedColumnsChange:l}),n&&u.jsx(vB,{})]})}function NK(...e){return t=>{for(const n of e){const r=n(t);if(r)return r}return null}}function gN(){const{t:e}=X();return{password:NK(Zi(e("common.passwordForm.password.required")),z9({min:8},e("common.passwordForm.password.tooShort",{min:8}))),passwordConfirmation:V9("password",e("common.passwordForm.passwordConfirmation.doesNotMatch"))}}async function LK(e,t,n){await ko(`/users/password-reset/${e}`,{password:t},{lang:n})}async function DK(e,t){return Jr(`/users/password-reset/${e}`,{lang:t})}function MK(){const e=gN();return Eo({mode:"uncontrolled",initialValues:{firstName:"",lastName:"",email:"",password:"",passwordConfirmation:""},validate:{...e}})}function yN({title:e,successMessage:t}){const{t:n}=X(),{lang:r}=pd(),o=KP(),{token:s}=I7(),i=MK(),a=ot({queryKey:["passwordReset",s],queryFn:()=>DK(s,r)}),l=as({mutationFn:d=>LK(s,d,r)});if(ri(n("passwordSetup.documentTitle")),v.useEffect(()=>{a.data&&i.setValues(a.data)},[a.data]),a.error)return u.jsx(Zn,{pt:"4rem",children:u.jsx(eh,{title:n("common.error.error"),icon:u.jsx(LV,{}),color:"red",variant:"light",children:o(a.error,{raw:!0})})});const c=a.isLoading||l.isPending||l.isSuccess;return u.jsx(Zn,{pt:"4rem",children:u.jsxs(bt,{align:"center",children:[u.jsx("img",{src:dx,alt:"Auditize",height:90,style:{display:"block"}}),u.jsx("form",{onSubmit:i.onSubmit(d=>l.mutate(d.password)),children:u.jsxs(bt,{w:"22.5rem",p:"1rem",gap:"0.5rem",children:[u.jsx(id,{order:1,pt:"xl",fz:"1.25rem",c:"var(--auditize-logo-black-color)",children:e}),v.createElement(qt,{...i.getInputProps("firstName"),label:n("passwordSetup.form.firstName.label"),key:i.key("firstName"),disabled:!0}),v.createElement(qt,{...i.getInputProps("lastName"),label:n("passwordSetup.form.lastName.label"),key:i.key("lastName"),disabled:!0}),v.createElement(qt,{...i.getInputProps("email"),key:i.key("email"),label:n("passwordSetup.form.email.label"),disabled:!0}),v.createElement(zl,{...i.getInputProps("password"),label:n("common.passwordForm.password.label"),placeholder:n("common.passwordForm.password.placeholder"),key:i.key("password"),disabled:c}),v.createElement(zl,{...i.getInputProps("passwordConfirmation"),label:n("common.passwordForm.passwordConfirmation.label"),placeholder:n("common.passwordForm.passwordConfirmation.placeholder"),key:i.key("passwordConfirmation"),disabled:c}),u.jsx(vo,{h:"lg"}),u.jsx(Tt,{type:"submit",disabled:c,children:n("common.submit")}),u.jsx(us,{error:l.error})]})}),l.isSuccess&&u.jsx(xo.Success,{children:u.jsxs(u.Fragment,{children:[t," ",u.jsx("br",{}),u.jsxs(ic,{i18nKey:"passwordSetup.loginLink",children:["You can now log in by ",u.jsx(ts,{component:lc,to:"/login",children:"clicking on this link"}),"."]})]})})]})})}function _K(){const{t:e}=X();return u.jsx(yN,{title:e("passwordSetup.accountSetup.title"),successMessage:e("passwordSetup.accountSetup.success")})}function AK(){const{t:e}=X();return u.jsx(yN,{title:e("passwordSetup.passwordReset.title"),successMessage:e("passwordSetup.passwordReset.success")})}function vN({perms:e,onChange:t,assignablePerms:n,readOnly:r=!1}){const{t:o}=X();return u.jsxs(u.Fragment,{children:[u.jsx(ku,{checked:e.read,onChange:()=>t({...e,read:!e.read}),disabled:r||!n.read,variant:e.read?"filled":"outline",size:"xs",children:o("permission.read")}),u.jsx(ku,{checked:e.write,onChange:()=>t({...e,write:!e.write}),disabled:r||!n.write,variant:e.write?"filled":"outline",size:"xs",children:o("permission.write")})]})}function xN(e){return u.jsx(Ge,{gap:"md",children:u.jsx(vN,{...e})})}function OK({perms:e,onChange:t,assignablePerms:n,readOnly:r=!1}){return u.jsxs(Ge,{gap:"md",children:[u.jsx(vN,{perms:e,onChange:o=>t({...e,...o}),assignablePerms:n,readOnly:r}),u.jsx(S1,{orientation:"vertical"}),u.jsx(hK,{repoId:e.repoId,entityRefs:e.readableEntities,onChange:o=>t({...e,readableEntities:o}),disabled:r||!n.read||!e.read,buttonProps:{size:"xs"},popoverProps:{position:"left"}})]})}function kg({name:e,perms:t,onChange:n,assignablePerms:r,readOnly:o=!1}){return u.jsxs(Ne.Tr,{children:[u.jsx(Ne.Td,{width:"35%",children:e}),u.jsx(Ne.Td,{children:u.jsx(xN,{perms:t,onChange:n,assignablePerms:r,readOnly:o})})]})}function $K({perms:e,onChange:t,assignablePerms:n,readOnly:r=!1}){const{t:o}=X();return u.jsx(om,{title:o("permission.management"),children:u.jsx(Ne,{withRowBorders:!1,verticalSpacing:H(6),children:u.jsxs(Ne.Tbody,{children:[u.jsx(kg,{name:o("permission.repositories"),perms:e.repos,onChange:s=>t({...e,repos:s}),assignablePerms:n.repos,readOnly:r}),u.jsx(kg,{name:o("permission.users"),perms:e.users,onChange:s=>t({...e,users:s}),assignablePerms:n.users,readOnly:r}),u.jsx(kg,{name:o("permission.apikeys"),perms:e.apikeys,onChange:s=>t({...e,apikeys:s}),assignablePerms:n.apikeys,readOnly:r})]})})})}function FK({perms:e,onChange:t,assignablePerms:n,readOnly:r=!1}){var a;const{t:o}=X(),s=ot({queryKey:["repos","available-for-permissions"],queryFn:()=>px({}),placeholderData:[]}),i=Object.fromEntries(e.repos.map(l=>[l.repoId,l]));return u.jsx(u.Fragment,{children:u.jsx(om,{title:o("permission.logs"),children:u.jsx(Ne,{withRowBorders:!1,verticalSpacing:H(6),children:u.jsxs(Ne.Tbody,{children:[u.jsxs(Ne.Tr,{children:[u.jsx(Ne.Td,{width:"35%",children:u.jsx("b",{children:o("permission.allRepos")})}),u.jsx(Ne.Td,{children:u.jsx(xN,{perms:e,assignablePerms:{read:n.read==="all",write:n.write==="all"},onChange:l=>t({...e,...l}),readOnly:r})})]}),(a=s.data)==null?void 0:a.map(l=>u.jsxs(Ne.Tr,{children:[u.jsx(Ne.Td,{children:l.name}),u.jsx(Ne.Td,{children:u.jsx(OK,{perms:i[l.id]||{repoId:l.id,read:!1,write:!1,readableEntities:[]},assignablePerms:{read:e.read?!1:n.read==="all"||l.permissions.read&&l.permissions.readableEntities.length===0,write:e.write?!1:n.write==="all"||l.permissions.write},onChange:c=>t({...e,repos:Object.entries({...i,[l.id]:c}).map(([d,f])=>f)}),readOnly:r})})]},l.id))]})})})})}function IK({perms:e,onChange:t,readOnly:n=!1}){const{t:r}=X(),{currentUser:o}=jo(),s=o.permissions;return u.jsxs(bt,{children:[u.jsx(nd,{label:r("permission.superadmin"),labelPosition:"left",checked:e.isSuperadmin,onChange:i=>t({...e,isSuperadmin:i.currentTarget.checked}),disabled:n||!s.isSuperadmin,p:"xs"}),u.jsx($K,{perms:e.management,assignablePerms:s.management,onChange:i=>t({...e,management:i}),readOnly:n||e.isSuperadmin}),u.jsx(FK,{perms:e.logs,assignablePerms:s.logs,onChange:i=>t({...e,logs:i}),readOnly:n||e.isSuperadmin})]})}function bN({selectedTab:e,onTabChange:t,permissions:n,onChange:r,children:o,readOnly:s=!1}){const{t:i}=X();return u.jsxs(on,{value:e,onChange:t,children:[u.jsxs(on.List,{children:[u.jsx(on.Tab,{value:"general",children:i("permission.tab.general")}),u.jsx(on.Tab,{value:"permissions",children:i("permission.tab.permissions")})]}),u.jsx(on.Panel,{value:"general",pt:"sm",children:o}),u.jsx(on.Panel,{value:"permissions",pt:"sm",children:u.jsx(IK,{perms:n,onChange:r,readOnly:s})})]})}function am(e){const[t,n]=v.useState("general");return v.useEffect(()=>{e&&n("general")},[e]),[t,n]}function cf(e,{read:t,write:n}){if(!t&&!n)return null;const{t:r}=Gt,o=r(t&&n?"permission.summary.readwrite":t?"permission.summary.read":"permission.summary.write");return`${e} (${o})`}function wN({permissions:e}){const{t}=X(),n=e;if(n.isSuperadmin)return u.jsxs("b",{children:[t("permission.summary.superadmin")," 💪"]});const r=[];return n.logs.read||n.logs.write?r.push(cf(t("permission.logs"),n.logs)):n.logs.repos.length>0&&r.push(t("permission.logs")+" ("+t("permission.summary.partial")+")"),r.push(cf(t("permission.repositories"),n.management.repos)),r.push(cf(t("permission.users"),n.management.users)),r.push(cf(t("permission.apikeys"),n.management.apikeys)),r.filter(Boolean).join(", ")||void 0}function Cp(){return{isSuperadmin:!1,logs:{read:!1,write:!1,repos:[]},management:{repos:{read:!1,write:!1},users:{read:!1,write:!1},apikeys:{read:!1,write:!1}}}}function lm(){const{currentUser:e}=jo(),t=ot({queryKey:["repos","available-for-permissions"],queryFn:()=>px({})}),n=e.permissions;return r=>({isSuperadmin:n.isSuperadmin?r.isSuperadmin:void 0,management:{repos:{read:n.management.repos.read?r.management.repos.read:void 0,write:n.management.repos.write?r.management.repos.write:void 0},users:{read:n.management.users.read?r.management.users.read:void 0,write:n.management.users.write?r.management.users.write:void 0},apikeys:{read:n.management.apikeys.read?r.management.apikeys.read:void 0,write:n.management.apikeys.write?r.management.apikeys.write:void 0}},logs:{read:n.logs.read==="all"?r.logs.read:void 0,write:n.logs.write==="all"?r.logs.write:void 0,repos:r.logs.repos.map(o=>{const s=(t.data??[]).find(i=>i.id===o.repoId);return{repoId:o.repoId,read:s!=null&&s.permissions.read?o.read:void 0,write:s!=null&&s.permissions.write?o.write:void 0,readableEntities:o.readableEntities}}).filter(o=>o.read!==void 0||o.write!==void 0)}})}async function zK(e){return(await ko("/users",e)).id}async function VK(e,t){await fc(`/users/${e}`,t)}async function BK(e=null,t=1){return await gd("/users",{q:e,page:t})}async function UK(e){return await Jr(`/users/${e}`)}async function HK(e){await md("/users/"+e)}async function SN(e){return await fc("/users/me",e)}function WK({user:e,opened:t,onClose:n}){X();const r=e.firstName+" "+e.lastName;return u.jsx(bd,{message:u.jsxs(ic,{i18nKey:"user.delete.confirm",values:{name:r},children:["Do you confirm the deletion of user ",u.jsx("b",{children:r})," ?"]}),opened:t,onDelete:()=>HK(e.id),queryKeyForInvalidation:["users"],onClose:n})}function KK(e){const{t}=X();return Eo({initialValues:{firstName:"",lastName:"",email:"",lang:"en",...e},validate:{firstName:Zi(t("user.form.firstName.required")),lastName:Zi(t("user.form.lastName.required")),email:ix(t("user.form.email.required"))}})}function CN(e){const t=KK({}),[n,r]=v.useState(()=>Cp());return v.useEffect(()=>{e||(t.reset(),r(Cp()))},[e]),{form:t,permissions:n,setPermissions:r}}function EN({form:e,selectedTab:t,onTabChange:n,permissions:r,onChange:o,readOnly:s=!1}){const{t:i}=X();return u.jsx(bN,{selectedTab:t,onTabChange:n,permissions:r,onChange:o,readOnly:s,children:u.jsxs(bt,{gap:"sm",children:[u.jsx(qt,{label:i("user.form.firstName.label"),placeholder:i("user.form.firstName.placeholder"),"data-autofocus":!0,...e.getInputProps("firstName"),disabled:s}),u.jsx(qt,{label:i("user.form.lastName.label"),placeholder:i("user.form.lastName.placeholder"),"data-autofocus":!0,...e.getInputProps("lastName"),disabled:s}),u.jsx(qt,{label:i("user.form.email.label"),placeholder:i("user.form.email.placeholder"),"data-autofocus":!0,...e.getInputProps("email"),disabled:s}),u.jsx(rc,{label:i("user.form.language.label"),data:[{value:"en",label:i("language.en")},{value:"fr",label:i("language.fr")}],allowDeselect:!1,...e.getInputProps("lang"),disabled:s,comboboxProps:{shadow:"md"}})]})})}function qK({opened:e,onClose:t}){const{t:n}=X(),{form:r,permissions:o,setPermissions:s}=CN(!!e),i=lm(),[a,l]=am(!!e);return u.jsx(vd,{title:n("user.create.title"),opened:!!e,onClose:t,onSubmit:c=>r.onSubmit(c,()=>l("general")),onSave:()=>zK({...r.values,permissions:i(o)}),queryKeyForInvalidation:["users"],children:u.jsx(EN,{form:r,selectedTab:a,onTabChange:l,permissions:o,onChange:c=>s(c)})})}function YK({userId:e,onClose:t,readOnly:n}){const{t:r}=X(),{form:o,permissions:s,setPermissions:i}=CN(!!e),a=lm(),[l,c]=am(!!e);return u.jsx(xd,{resourceId:e,onClose:t,queryKeyForLoad:["user",e],queryFnForLoad:()=>UK(e),onDataLoaded:d=>{const{firstName:f,lastName:p,email:h,lang:m}=d;o.setValues({firstName:f,lastName:p,email:h,lang:m}),i(d.permissions)},title:r("user.edit.title"),onSubmit:d=>o.onSubmit(d,()=>c("general")),onSave:()=>VK(e,{...o.values,permissions:a(s)}),queryKeyForInvalidation:["users"],disabledSaving:n,children:u.jsx(EN,{form:o,selectedTab:l,onTabChange:c,permissions:s,onChange:d=>{i(d)},readOnly:n})})}function GK(){const{currentUser:e}=jo(),{t}=X(),n=e.permissions.management.users.write===!1;return ri(t("user.list.title")),u.jsx(yd,{title:u.jsxs(u.Fragment,{children:[u.jsx(UV,{style:jn({size:"26",top:"3px"})})," ",t("user.list.title")]}),name:t("user.user"),queryKey:(r,o)=>["users","list",r,o],queryFn:(r,o)=>()=>BK(r,o),columnDefinitions:[[t("user.list.column.name"),r=>u.jsxs("span",{children:[r.firstName," ",r.lastName]})],[t("user.list.column.email"),r=>r.email],[t("user.list.column.permissions"),r=>u.jsx(wN,{permissions:r.permissions})]],resourceCreationComponentBuilder:n?void 0:(r,o)=>u.jsx(qK,{opened:r,onClose:o}),resourceEditionComponentBuilder:(r,o)=>u.jsx(YK,{userId:r,onClose:o,readOnly:n||r===e.id}),resourceDeletionComponentBuilder:(r,o,s)=>n||e.id===r.id?void 0:u.jsx(WK,{user:r,opened:o,onClose:s})})}function QK({onClose:e}){const{t}=X(),n=gN(),r=Eo({mode:"uncontrolled",initialValues:{password:"",passwordConfirmation:""},validate:{...n}}),o=as({mutationFn:()=>{const{password:s}=r.getValues();return SN({password:s})},onSuccess:()=>e()});return u.jsxs(Y,{px:"lg",children:[u.jsx(aa,{visible:o.isPending}),u.jsxs("form",{onSubmit:r.onSubmit(()=>o.mutate()),children:[u.jsxs(bt,{gap:"sm",children:[v.createElement(zl,{...r.getInputProps("password"),label:t("common.passwordForm.password.label"),placeholder:t("common.passwordForm.password.placeholder"),key:r.key("password")}),v.createElement(zl,{...r.getInputProps("passwordConfirmation"),label:t("common.passwordForm.passwordConfirmation.label"),placeholder:t("common.passwordForm.passwordConfirmation.placeholder"),key:r.key("passwordConfirmation")})]}),u.jsx(vo,{h:"xl"}),u.jsx(bo,{justify:"center",align:"center",children:u.jsx(us,{error:o.error,textProps:{pt:"0",size:"sm"}})}),u.jsx(fd,{validateButtonLabel:t("common.save"),onClose:e})]})]})}function XK({onClose:e}){const{t}=X(),{currentUser:n,updateUserInfo:r}=jo(),o=Eo({initialValues:{lang:n.lang},validate:{}}),s=as({mutationFn:()=>SN(o.values),onSuccess:i=>{r(i),e()}});return u.jsxs(Y,{px:"lg",children:[u.jsx(aa,{visible:s.isPending}),u.jsxs("form",{onSubmit:o.onSubmit(()=>s.mutate()),children:[u.jsx(bt,{gap:"sm",children:u.jsx(rc,{label:t("user.form.language.label"),data:[{value:"en",label:t("language.en")},{value:"fr",label:t("language.fr")}],allowDeselect:!1,...o.getInputProps("lang"),comboboxProps:{shadow:"md"}})}),u.jsx(vo,{h:"xl"}),u.jsx(bo,{justify:"center",align:"center",children:u.jsx(us,{error:s.error,textProps:{pt:"0",size:"sm"}})}),u.jsx(fd,{validateButtonLabel:t("common.save"),onClose:e})]})]})}function JK({opened:e,onClose:t}){const{t:n}=X();return u.jsx(_t,{title:u.jsx(dc,{children:n("accountSettings.title")}),opened:e,onClose:t,size:H("500px"),padding:"lg",children:u.jsxs(on,{defaultValue:"general",orientation:"vertical",children:[u.jsxs(on.List,{children:[u.jsx(on.Tab,{value:"general",children:n("accountSettings.tab.general")}),u.jsx(on.Tab,{value:"password",children:n("accountSettings.tab.password")})]}),u.jsx(on.Panel,{value:"general",children:u.jsx(XK,{onClose:t})}),u.jsx(on.Panel,{value:"password",children:u.jsx(QK,{onClose:t})})]})})}const ZK=["#e6f5ff","#d1e5fe","#a4c8f6","#74aaf0","#4b90ea","#327fe7","#2177e7","#1065ce","#005aba","#004da4"],jg=H(32),eq={colors:{blue214:ZK},primaryColor:"blue214",components:{Button:Tt.extend({vars:(e,t)=>t.size==="sm"||!t.size?{root:{"--button-height":jg,"--button-padding-x":H(14)}}:{root:{}}}),ActionIcon:Yt.extend({vars:(e,t)=>t.size==="input-sm"?{root:{"--ai-size":jg}}:{root:{}}}),Pagination:lr.extend({vars:(e,t)=>t.size==="sm"||!t.size?{root:{"--pagination-control-size":H(28),"--pagination-control-fz":H(14)}}:{root:{}}}),Input:st.extend({vars:(e,t)=>t.size==="sm"||!t.size?{wrapper:{"--input-height":jg}}:{wrapper:{}}}),ScrollArea:Gr.extend({vars:()=>({root:{"--scrollarea-scrollbar-size":H(6)}})})}},tq="_link_qdor7_1",nq="_active_qdor7_10",hl={link:tq,active:nq};function kN({label:e,url:t,condition:n}){return n===!1?null:u.jsx(lc,{to:t,className:({isActive:r})=>r?`${hl.link} ${hl.active}`:hl.link,children:e})}function Fa({label:e,children:t}){const n=Qr();if(Array.isArray(t)||(t=[t]),!t.some(o=>o.props.condition!==!1))return null;const r=t.some(o=>n.pathname===o.props.url);return u.jsxs(Xe,{trigger:"hover",position:"bottom-start",transitionProps:{exitDuration:0},shadow:"md",withinPortal:!0,children:[u.jsx(Xe.Target,{children:u.jsxs(Zn,{children:[u.jsx("span",{className:r?`${hl.link} ${hl.active}`:hl.link,style:{paddingRight:"0.375rem"},children:e}),u.jsx(fx,{size:"1rem"})]})}),u.jsx(Xe.Dropdown,{children:Ht.Children.map(t,o=>o.props.condition!==!1&&u.jsx(Xe.Item,{component:lc,to:o.props.url,style:{textDecoration:n.pathname===o.props.url?"underline":"none"},children:o.props.label}))})]})}Fa.Entry=kN;function rq({children:e}){return u.jsx(Ge,{gap:0,children:e})}async function oq(e){const t=await ko("/apikeys",e);return[t.id,t.key]}async function sq(e,t){await fc(`/apikeys/${e}`,t)}async function iq(e=null,t=1){return await gd("/apikeys",{q:e,page:t})}async function aq(e){return await Jr(`/apikeys/${e}`)}async function lq(e){await md(`/apikeys/${e}`)}async function cq(e){return(await ko(`/apikeys/${e}/key`,{})).key}function uq({apikey:e,opened:t,onClose:n}){return u.jsx(bd,{message:u.jsxs(ic,{i18nKey:"repo.delete.confirm",values:{name:e.name},children:["Do you confirm the deletion of API key ",u.jsx("b",{children:e.name})," ?"]}),opened:t,onDelete:()=>lq(e.id),queryKeyForInvalidation:["apikeys"],onClose:n})}function jN({value:e,disabled:t}){return u.jsx(w1,{value:e,timeout:1e3,children:({copied:n,copy:r})=>u.jsx(kn,{label:n?"Copied":"Copy",withArrow:!0,position:"right",disabled:t,children:u.jsx(Yt,{color:n?"teal":"gray",variant:"subtle",onClick:r,disabled:t,children:n?u.jsx(CV,{style:hn(16)}):u.jsx(PV,{style:hn(16)})})})})}function dq(){const{t:e}=X();return Eo({initialValues:{name:""},validate:{name:Zi(e("apikey.form.name.required"))}})}function RN(e){const t=dq(),[n,r]=v.useState(()=>Cp());return v.useEffect(()=>{e||(t.reset(),r(Cp()))},[e]),{form:t,permissions:n,setPermissions:r}}function fq({form:e,readOnly:t}){const{t:n}=X();return u.jsx(u.Fragment,{children:u.jsx(qt,{label:n("apikey.form.name.label"),placeholder:n("apikey.form.name.placeholder"),"data-autofocus":!0,disabled:t,...e.getInputProps("name")})})}function PN({form:e,selectedTab:t,onTabChange:n,permissions:r,onChange:o,children:s,readOnly:i=!1}){return u.jsx(bN,{selectedTab:t,onTabChange:n,permissions:r,onChange:o,readOnly:i,children:u.jsxs(bt,{gap:"sm",children:[u.jsx(fq,{form:e,readOnly:i}),s]})})}function bv({value:e,button:t,highlighted:n=!1}){const{t:r}=X();return u.jsx(qt,{label:r("apikey.form.key.label"),disabled:!0,value:e,rightSection:t,styles:n?{input:{borderColor:"var(--mantine-color-green-6)",borderWidth:"2px"}}:void 0})}function pq({value:e}){const{t}=X();return u.jsx(bv,{value:e||t("apikey.form.key.placeholder.create"),button:e?u.jsx(jN,{value:e}):void 0,highlighted:!!e})}function hq({apikeyId:e}){const{t}=X(),[n,r]=v.useState(null),o=as({mutationFn:()=>cq(e),onSuccess:s=>r(s)});return n?u.jsx(bv,{value:n,button:u.jsx(jN,{value:n})}):u.jsxs(u.Fragment,{children:[u.jsx(bv,{value:t("apikey.form.key.placeholder.update"),button:u.jsx(Yt,{onClick:()=>o.mutate(),variant:"subtle",size:"sm",children:u.jsx(IV,{})})}),u.jsx(us,{error:o.error})]})}function mq({opened:e,onClose:t}){const{t:n}=X(),{form:r,permissions:o,setPermissions:s}=RN(!!e),i=lm(),[a,l]=v.useState(null),[c,d]=am(!!e);return v.useEffect(()=>{e||l(null)},[e]),u.jsx(vd,{title:n("apikey.create.title"),opened:!!e,onClose:t,onSubmit:f=>r.onSubmit(f,()=>d("general")),onSave:()=>oq({...r.values,permissions:i(o)}),onSaveSuccess:f=>{const[p,h]=f;d("general"),l(h)},queryKeyForInvalidation:["apikeys"],disabledSaving:!!a,children:u.jsx(PN,{form:r,selectedTab:c,onTabChange:d,permissions:o,onChange:f=>s(f),readOnly:!!a,children:u.jsx(pq,{value:a})})})}function gq({apikeyId:e,onClose:t,readOnly:n}){const{form:r,permissions:o,setPermissions:s}=RN(!!e),i=lm(),[a,l]=am(!!e);return u.jsx(xd,{resourceId:e,onClose:t,queryKeyForLoad:["apikey",e],queryFnForLoad:()=>aq(e),onDataLoaded:c=>{const{name:d}=c;r.setValues({name:d}),s(c.permissions)},title:YR("apikey.edit.title"),onSubmit:c=>r.onSubmit(c,()=>l("general")),onSave:()=>sq(e,{...r.values,permissions:i(o)}),queryKeyForInvalidation:["apikeys"],disabledSaving:n,children:u.jsx(PN,{form:r,selectedTab:a,onTabChange:l,permissions:o,onChange:c=>{s(c)},readOnly:n,children:!n&&u.jsx(hq,{apikeyId:e})})})}function yq(){const{t:e}=X(),{currentUser:t}=jo(),n=t.permissions.management.apikeys.write===!1;return ri(e("apikey.list.title")),u.jsx(yd,{title:u.jsxs(u.Fragment,{children:[u.jsx(MV,{style:jn({size:"26",top:"3px",marginRight:"0.25rem"})}),e("apikey.list.title")]}),name:e("apikey.apikey"),queryKey:(r,o)=>["apikeys","list",r,o],queryFn:(r,o)=>()=>iq(r,o),columnDefinitions:[[e("apikey.list.column.name"),r=>r.name],[e("apikey.list.column.permissions"),r=>u.jsx(wN,{permissions:r.permissions})]],resourceCreationComponentBuilder:n?void 0:(r,o)=>u.jsx(mq,{opened:r,onClose:o}),resourceEditionComponentBuilder:(r,o)=>u.jsx(gq,{apikeyId:r,onClose:o,readOnly:n}),resourceDeletionComponentBuilder:(r,o,s)=>n?void 0:u.jsx(uq,{apikey:r,opened:o,onClose:s})})}function vq(){return new jI({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1,staleTime:1/0}}})}function xq(e){const{t}=Gt;return()=>CR.openConfirmModal({title:u.jsx(dc,{children:t("logout.title")}),children:u.jsx(xt,{size:"sm",children:t("logout.confirm")}),labels:{confirm:t("common.confirm"),cancel:t("common.cancel")},onConfirm:async()=>{await dB(),e()},groupProps:{justify:"center"}})}function bq({context:e,id:t,innerProps:n}){const{t:r}=X();return u.jsxs(u.Fragment,{children:[u.jsx(xt,{size:"sm",children:r("logout.expiration")}),u.jsx(Tt,{fullWidth:!0,mt:"md",onClick:()=>{n.onLogout(),e.closeModal(t)},children:"Ok"})]})}function wq(){const{t:e}=X(),{currentUser:t,declareLogout:n}=jo(),[r,{open:o,close:s}]=zn(!1),i=t.firstName[0].toUpperCase()+t.lastName[0].toUpperCase();return u.jsxs(u.Fragment,{children:[u.jsxs(Xe,{shadow:"md",children:[u.jsx(Xe.Target,{children:u.jsx(Kt,{children:u.jsx(oh,{children:i})})}),u.jsxs(Xe.Dropdown,{children:[u.jsx(Xe.Item,{onClick:()=>o(),children:e("navigation.preferences")}),u.jsx(Xe.Item,{onClick:xq(n),children:e("navigation.logout")})]})]}),u.jsx(JK,{opened:r,onClose:s})]})}function Sq({}){const{currentUser:e}=jo();return u.jsx(lc,{to:fT(e),children:u.jsx("img",{src:dx,alt:"Auditize",height:25,style:{display:"block"}})})}function Cq(){const{currentUser:e,declareLogout:t}=jo(),{t:n}=X();return v.useEffect(()=>{let r=!1;return QV(401,()=>{r||(r=!0,CR.openContextModal({modal:"logout",innerProps:{onLogout:t}}))})},[]),u.jsxs(Br,{header:{height:55},padding:"lg",children:[u.jsx(Br.Header,{bg:"var(--auditize-header-color)",children:u.jsxs(Ge,{h:"100%",px:"lg",justify:"space-between",align:"center",children:[u.jsxs(Ge,{children:[u.jsx(Sq,{}),u.jsxs(rq,{children:[u.jsx(kN,{label:n("navigation.logs"),url:"/logs",condition:e.permissions.logs.read!="none"}),u.jsxs(Fa,{label:n("navigation.management"),children:[u.jsx(Fa.Entry,{label:n("navigation.repositories"),url:"/repos",condition:e.permissions.management.repos.read}),u.jsx(Fa.Entry,{label:n("navigation.logi18nprofiles"),url:"/log-i18n-profiles",condition:e.permissions.management.repos.read}),u.jsx(Fa.Entry,{label:n("navigation.users"),url:"/users",condition:e.permissions.management.users.read}),u.jsx(Fa.Entry,{label:n("navigation.apikeys"),url:"/apikeys",condition:e.permissions.management.apikeys.read})]})]})]}),u.jsx(vo,{w:"6rem"}),u.jsx(wq,{})]})}),u.jsx(Br.Main,{children:u.jsx(J7,{})})]})}function Eq(){const{isRefreshingAuthData:e}=zh(),t=Qr();if(e)return null;let n="/login";return t.pathname&&(n+="?redirect="+encodeURIComponent(t.pathname+t.search)),u.jsx(mP,{to:n,replace:!0})}function kq(){const{isAuthenticated:e,declareLogin:t,currentUser:n}=zh(),r=a9([e?{path:"/",element:u.jsx(lf,{lang:n.lang,children:u.jsx(Cq,{})}),children:[{path:"logs",element:u.jsx(lN,{children:u.jsx(TK,{})})},{path:"repos",element:u.jsx(hU,{})},{path:"log-i18n-profiles",element:u.jsx(lU,{})},{path:"users",element:u.jsx(GK,{})},{path:"apikeys",element:u.jsx(yq,{})}]}:{path:"*",element:u.jsx(Eq,{})},{path:"/account-setup/:token",element:u.jsx(lf,{children:u.jsx(_K,{})})},{path:"/password-reset/:token",element:u.jsx(lf,{children:u.jsx(AK,{})})},{path:"/login",element:u.jsx(lf,{children:u.jsx(yB,{onLogin:t})})}]);return u.jsx(m9,{router:r})}function jq(){return u.jsx(mk,{theme:eq,children:u.jsxs(VF,{modals:{logout:bq},children:[u.jsx(is,{}),u.jsx(LI,{client:vq(),children:u.jsx(hB,{children:u.jsx(kq,{})})})]})})}Rg.createRoot(document.getElementById("root")).render(u.jsx(jq,{}));