const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CreateEditCollectionForm-D-22gOkq.js","assets/ColorPicker-CQXdpIkz.js","assets/ColorSwatch-CtoYH4Cn.js","assets/collections-BS6UdzTr.js","assets/IconAt-Bca7mi74.js","assets/IconHash-CICnDO3n.js","assets/Select-C1WMqk5R.js","assets/const-ChGXLX0S.js","assets/CreateEditCollectionForm-C8EpwMJQ.css","assets/DiffStatusesModalContent-MBg9vnOy.js","assets/IconArrowRight-BTNBWTJ0.js","assets/index-Da4jHil4.js","assets/IconChevronLeft-FAloe5QL.js","assets/IconGripVertical-COCN8Vqa.js","assets/const-DPIqUBWr.js","assets/modifiers.esm-C9J_M9CQ.js","assets/index-DPwbpux5.css","assets/TaskPanel-1n1xV0vy.js","assets/tasks-BMVBejH2.js","assets/index-DlWqcwmX.js","assets/tasks-D8Bz5Eet.css","assets/IconUser-CkQmhwMi.js","assets/Textarea-C8aNW3Hx.js","assets/get-env-uyVen0u2.js","assets/use-resize-observer-6Qm_8hWl.js","assets/useTaskTypesData-CFzDcAWE.js","assets/Typography-PKUzf06x.js","assets/clamp-CUTWWzXs.js","assets/SegmentedControl-BeEuUkOb.js","assets/IconTableOff-DmQNoB2C.js","assets/Accordion-z2XcZ0M6.js","assets/TaskPanel-CtIte0AR.css","assets/ParticipantsForm-IJ1jnSPu.js","assets/ParticipantsForm-keH5QOhC.css","assets/CollectionPage-lLWADpGQ.js","assets/useRootScrollLock-BK-A_-MK.js","assets/CollectionPage-qoSfPqTT.css","assets/FolderPage-D9D2CeAx.js","assets/useClearSelectedTasksBeforeUnload-D_WRjL8D.js","assets/TasksSearchInput-DiDFGVKK.js","assets/GenericViewSettings-RgMoqYIF.js","assets/GenericViewSettings-BcfN3V2x.css","assets/Sprints-SMu3MRKK.js","assets/sortGroups-B7LvLKY1.js","assets/TaskCard-DmGvZmT4.js","assets/union-DoflI9J8.js","assets/sortGroups-ohpgIYoB.css","assets/reduce-Htc8hg3K.js","assets/useTasksData-DXijVek8.js","assets/FolderPage-CU_62Inw.css","assets/ListSprintPage-B7uA3eVN.js","assets/useSprintPage-Cd4hv38p.js","assets/useSprintPage-BDpvJoKz.css","assets/ListSprintPage-BC476Pnl.css","assets/KanbanSprintPage-BBCLFtNf.js","assets/KanbanSprintPage-Dn2SyHRF.css","assets/TimelinePage-DzRa-wq_.js","assets/TimelinePage-BGEaam3l.css","assets/index-DGvge4Tw.js","assets/UpdatesPage-Fzkd8GDv.js","assets/UpdatesPage-BAF2dWK3.css","assets/TrashPage-mq2sVjsM.js","assets/TrashPage-Ba3CWEyc.css","assets/index-fNBtxS9K.js","assets/index-BBpliREt.js","assets/index-vJ9JEy4o.css"])))=>i.map(i=>d[i]);
var wH=Object.defineProperty;var xH=(t,e,n)=>e in t?wH(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var ht=(t,e,n)=>xH(t,typeof e!="symbol"?e+"":e,n);function FP(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in t)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(t,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.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 x1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function CH(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return t[r]}})}),n}var UC={exports:{}},Ay={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Zk;function _H(){if(Zk)return Ay;Zk=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,o,s){var i=null;if(s!==void 0&&(i=""+s),o.key!==void 0&&(i=""+o.key),"key"in o){s={};for(var l in o)l!=="key"&&(s[l]=o[l])}else s=o;return o=s.ref,{$$typeof:t,type:r,key:i,ref:o!==void 0?o:null,props:s}}return Ay.Fragment=e,Ay.jsx=n,Ay.jsxs=n,Ay}var Jk;function TH(){return Jk||(Jk=1,UC.exports=_H()),UC.exports}var b=TH(),BC={exports:{}},Ry={},HC={exports:{}},qC={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var eM;function EH(){return eM||(eM=1,(function(t){function e(U,q){var z=U.length;U.push(q);e:for(;0<z;){var W=z-1>>>1,K=U[W];if(0<o(K,q))U[W]=q,U[z]=K,z=W;else break e}}function n(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var q=U[0],z=U.pop();if(z!==q){U[0]=z;e:for(var W=0,K=U.length,G=K>>>1;W<G;){var X=2*(W+1)-1,J=U[X],ne=X+1,se=U[ne];if(0>o(J,z))ne<K&&0>o(se,J)?(U[W]=se,U[ne]=z,W=ne):(U[W]=J,U[X]=z,W=X);else if(ne<K&&0>o(se,z))U[W]=se,U[ne]=z,W=ne;else break e}}return q}function o(U,q){var z=U.sortIndex-q.sortIndex;return z!==0?z:U.id-q.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var i=Date,l=i.now();t.unstable_now=function(){return i.now()-l}}var c=[],d=[],f=1,h=null,p=3,v=!1,g=!1,S=!1,w=!1,_=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function M(U){for(var q=n(d);q!==null;){if(q.callback===null)r(d);else if(q.startTime<=U)r(d),q.sortIndex=q.expirationTime,e(c,q);else break;q=n(d)}}function j(U){if(S=!1,M(U),!g)if(n(c)!==null)g=!0,A||(A=!0,F());else{var q=n(d);q!==null&&Y(j,q.startTime-U)}}var A=!1,k=-1,R=5,N=-1;function I(){return w?!0:!(t.unstable_now()-N<R)}function L(){if(w=!1,A){var U=t.unstable_now();N=U;var q=!0;try{e:{g=!1,S&&(S=!1,E(k),k=-1),v=!0;var z=p;try{t:{for(M(U),h=n(c);h!==null&&!(h.expirationTime>U&&I());){var W=h.callback;if(typeof W=="function"){h.callback=null,p=h.priorityLevel;var K=W(h.expirationTime<=U);if(U=t.unstable_now(),typeof K=="function"){h.callback=K,M(U),q=!0;break t}h===n(c)&&r(c),M(U)}else r(c);h=n(c)}if(h!==null)q=!0;else{var G=n(d);G!==null&&Y(j,G.startTime-U),q=!1}}break e}finally{h=null,p=z,v=!1}q=void 0}}finally{q?F():A=!1}}}var F;if(typeof T=="function")F=function(){T(L)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,B=H.port2;H.port1.onmessage=L,F=function(){B.postMessage(null)}}else F=function(){_(L,0)};function Y(U,q){k=_(function(){U(t.unstable_now())},q)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(U){U.callback=null},t.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<U?Math.floor(1e3/U):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_next=function(U){switch(p){case 1:case 2:case 3:var q=3;break;default:q=p}var z=p;p=q;try{return U()}finally{p=z}},t.unstable_requestPaint=function(){w=!0},t.unstable_runWithPriority=function(U,q){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var z=p;p=U;try{return q()}finally{p=z}},t.unstable_scheduleCallback=function(U,q,z){var W=t.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?W+z:W):z=W,U){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=z+K,U={id:f++,callback:q,priorityLevel:U,startTime:z,expirationTime:K,sortIndex:-1},z>W?(U.sortIndex=z,e(d,U),n(c)===null&&U===n(d)&&(S?(E(k),k=-1):S=!0,Y(j,z-W))):(U.sortIndex=K,e(c,U),g||v||(g=!0,A||(A=!0,F()))),U},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(U){var q=p;return function(){var z=p;p=q;try{return U.apply(this,arguments)}finally{p=z}}}})(qC)),qC}var tM;function kH(){return tM||(tM=1,HC.exports=EH()),HC.exports}var VC={exports:{}},yn={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var nM;function MH(){if(nM)return yn;nM=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),p=Symbol.iterator;function v(G){return G===null||typeof G!="object"?null:(G=p&&G[p]||G["@@iterator"],typeof G=="function"?G:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,w={};function _(G,X,J){this.props=G,this.context=X,this.refs=w,this.updater=J||g}_.prototype.isReactComponent={},_.prototype.setState=function(G,X){if(typeof G!="object"&&typeof G!="function"&&G!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,G,X,"setState")},_.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function E(){}E.prototype=_.prototype;function T(G,X,J){this.props=G,this.context=X,this.refs=w,this.updater=J||g}var M=T.prototype=new E;M.constructor=T,S(M,_.prototype),M.isPureReactComponent=!0;var j=Array.isArray;function A(){}var k={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function N(G,X,J){var ne=J.ref;return{$$typeof:t,type:G,key:X,ref:ne!==void 0?ne:null,props:J}}function I(G,X){return N(G.type,X,G.props)}function L(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function F(G){var X={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(J){return X[J]})}var H=/\/+/g;function B(G,X){return typeof G=="object"&&G!==null&&G.key!=null?F(""+G.key):X.toString(36)}function Y(G){switch(G.status){case"fulfilled":return G.value;case"rejected":throw G.reason;default:switch(typeof G.status=="string"?G.then(A,A):(G.status="pending",G.then(function(X){G.status==="pending"&&(G.status="fulfilled",G.value=X)},function(X){G.status==="pending"&&(G.status="rejected",G.reason=X)})),G.status){case"fulfilled":return G.value;case"rejected":throw G.reason}}throw G}function U(G,X,J,ne,se){var ie=typeof G;(ie==="undefined"||ie==="boolean")&&(G=null);var oe=!1;if(G===null)oe=!0;else switch(ie){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(G.$$typeof){case t:case e:oe=!0;break;case f:return oe=G._init,U(oe(G._payload),X,J,ne,se)}}if(oe)return se=se(G),oe=ne===""?"."+B(G,0):ne,j(se)?(J="",oe!=null&&(J=oe.replace(H,"$&/")+"/"),U(se,X,J,"",function(fe){return fe})):se!=null&&(L(se)&&(se=I(se,J+(se.key==null||G&&G.key===se.key?"":(""+se.key).replace(H,"$&/")+"/")+oe)),X.push(se)),1;oe=0;var de=ne===""?".":ne+":";if(j(G))for(var pe=0;pe<G.length;pe++)ne=G[pe],ie=de+B(ne,pe),oe+=U(ne,X,J,ie,se);else if(pe=v(G),typeof pe=="function")for(G=pe.call(G),pe=0;!(ne=G.next()).done;)ne=ne.value,ie=de+B(ne,pe++),oe+=U(ne,X,J,ie,se);else if(ie==="object"){if(typeof G.then=="function")return U(Y(G),X,J,ne,se);throw X=String(G),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return oe}function q(G,X,J){if(G==null)return G;var ne=[],se=0;return U(G,ne,"","",function(ie){return X.call(J,ie,se++)}),ne}function z(G){if(G._status===-1){var X=G._result;X=X(),X.then(function(J){(G._status===0||G._status===-1)&&(G._status=1,G._result=J)},function(J){(G._status===0||G._status===-1)&&(G._status=2,G._result=J)}),G._status===-1&&(G._status=0,G._result=X)}if(G._status===1)return G._result.default;throw G._result}var W=typeof reportError=="function"?reportError:function(G){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof G=="object"&&G!==null&&typeof G.message=="string"?String(G.message):String(G),error:G});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",G);return}console.error(G)},K={map:q,forEach:function(G,X,J){q(G,function(){X.apply(this,arguments)},J)},count:function(G){var X=0;return q(G,function(){X++}),X},toArray:function(G){return q(G,function(X){return X})||[]},only:function(G){if(!L(G))throw Error("React.Children.only expected to receive a single React element child.");return G}};return yn.Activity=h,yn.Children=K,yn.Component=_,yn.Fragment=n,yn.Profiler=o,yn.PureComponent=T,yn.StrictMode=r,yn.Suspense=c,yn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,yn.__COMPILER_RUNTIME={__proto__:null,c:function(G){return k.H.useMemoCache(G)}},yn.cache=function(G){return function(){return G.apply(null,arguments)}},yn.cacheSignal=function(){return null},yn.cloneElement=function(G,X,J){if(G==null)throw Error("The argument must be a React element, but you passed "+G+".");var ne=S({},G.props),se=G.key;if(X!=null)for(ie in X.key!==void 0&&(se=""+X.key),X)!R.call(X,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&X.ref===void 0||(ne[ie]=X[ie]);var ie=arguments.length-2;if(ie===1)ne.children=J;else if(1<ie){for(var oe=Array(ie),de=0;de<ie;de++)oe[de]=arguments[de+2];ne.children=oe}return N(G.type,se,ne)},yn.createContext=function(G){return G={$$typeof:i,_currentValue:G,_currentValue2:G,_threadCount:0,Provider:null,Consumer:null},G.Provider=G,G.Consumer={$$typeof:s,_context:G},G},yn.createElement=function(G,X,J){var ne,se={},ie=null;if(X!=null)for(ne in X.key!==void 0&&(ie=""+X.key),X)R.call(X,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(se[ne]=X[ne]);var oe=arguments.length-2;if(oe===1)se.children=J;else if(1<oe){for(var de=Array(oe),pe=0;pe<oe;pe++)de[pe]=arguments[pe+2];se.children=de}if(G&&G.defaultProps)for(ne in oe=G.defaultProps,oe)se[ne]===void 0&&(se[ne]=oe[ne]);return N(G,ie,se)},yn.createRef=function(){return{current:null}},yn.forwardRef=function(G){return{$$typeof:l,render:G}},yn.isValidElement=L,yn.lazy=function(G){return{$$typeof:f,_payload:{_status:-1,_result:G},_init:z}},yn.memo=function(G,X){return{$$typeof:d,type:G,compare:X===void 0?null:X}},yn.startTransition=function(G){var X=k.T,J={};k.T=J;try{var ne=G(),se=k.S;se!==null&&se(J,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(A,W)}catch(ie){W(ie)}finally{X!==null&&J.types!==null&&(X.types=J.types),k.T=X}},yn.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},yn.use=function(G){return k.H.use(G)},yn.useActionState=function(G,X,J){return k.H.useActionState(G,X,J)},yn.useCallback=function(G,X){return k.H.useCallback(G,X)},yn.useContext=function(G){return k.H.useContext(G)},yn.useDebugValue=function(){},yn.useDeferredValue=function(G,X){return k.H.useDeferredValue(G,X)},yn.useEffect=function(G,X){return k.H.useEffect(G,X)},yn.useEffectEvent=function(G){return k.H.useEffectEvent(G)},yn.useId=function(){return k.H.useId()},yn.useImperativeHandle=function(G,X,J){return k.H.useImperativeHandle(G,X,J)},yn.useInsertionEffect=function(G,X){return k.H.useInsertionEffect(G,X)},yn.useLayoutEffect=function(G,X){return k.H.useLayoutEffect(G,X)},yn.useMemo=function(G,X){return k.H.useMemo(G,X)},yn.useOptimistic=function(G,X){return k.H.useOptimistic(G,X)},yn.useReducer=function(G,X,J){return k.H.useReducer(G,X,J)},yn.useRef=function(G){return k.H.useRef(G)},yn.useState=function(G){return k.H.useState(G)},yn.useSyncExternalStore=function(G,X,J){return k.H.useSyncExternalStore(G,X,J)},yn.useTransition=function(){return k.H.useTransition()},yn.version="19.2.4",yn}var rM;function t2(){return rM||(rM=1,VC.exports=MH()),VC.exports}var YC={exports:{}},as={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var oM;function jH(){if(oM)return as;oM=1;var t=t2();function e(c){var d="https://react.dev/errors/"+c;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)d+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+c+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(c,d,f){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:h==null?null:""+h,children:c,containerInfo:d,implementation:f}}var i=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(c,d){if(c==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return as.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,as.createPortal=function(c,d){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(e(299));return s(c,d,null,f)},as.flushSync=function(c){var d=i.T,f=r.p;try{if(i.T=null,r.p=2,c)return c()}finally{i.T=d,r.p=f,r.d.f()}},as.preconnect=function(c,d){typeof c=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(c,d))},as.prefetchDNS=function(c){typeof c=="string"&&r.d.D(c)},as.preinit=function(c,d){if(typeof c=="string"&&d&&typeof d.as=="string"){var f=d.as,h=l(f,d.crossOrigin),p=typeof d.integrity=="string"?d.integrity:void 0,v=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;f==="style"?r.d.S(c,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:h,integrity:p,fetchPriority:v}):f==="script"&&r.d.X(c,{crossOrigin:h,integrity:p,fetchPriority:v,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},as.preinitModule=function(c,d){if(typeof c=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var f=l(d.as,d.crossOrigin);r.d.M(c,{crossOrigin:f,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(c)},as.preload=function(c,d){if(typeof c=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var f=d.as,h=l(f,d.crossOrigin);r.d.L(c,f,{crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},as.preloadModule=function(c,d){if(typeof c=="string")if(d){var f=l(d.as,d.crossOrigin);r.d.m(c,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:f,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(c)},as.requestFormReset=function(c){r.d.r(c)},as.unstable_batchedUpdates=function(c,d){return c(d)},as.useFormState=function(c,d,f){return i.H.useFormState(c,d,f)},as.useFormStatus=function(){return i.H.useHostTransitionStatus()},as.version="19.2.4",as}var sM;function zP(){if(sM)return YC.exports;sM=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),YC.exports=jH(),YC.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var iM;function DH(){if(iM)return Ry;iM=1;var t=kH(),e=t2(),n=zP();function r(a){var u="https://react.dev/errors/"+a;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)u+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+a+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function s(a){var u=a,m=a;if(a.alternate)for(;u.return;)u=u.return;else{a=u;do u=a,(u.flags&4098)!==0&&(m=u.return),a=u.return;while(a)}return u.tag===3?m:null}function i(a){if(a.tag===13){var u=a.memoizedState;if(u===null&&(a=a.alternate,a!==null&&(u=a.memoizedState)),u!==null)return u.dehydrated}return null}function l(a){if(a.tag===31){var u=a.memoizedState;if(u===null&&(a=a.alternate,a!==null&&(u=a.memoizedState)),u!==null)return u.dehydrated}return null}function c(a){if(s(a)!==a)throw Error(r(188))}function d(a){var u=a.alternate;if(!u){if(u=s(a),u===null)throw Error(r(188));return u!==a?null:a}for(var m=a,x=u;;){var O=m.return;if(O===null)break;var $=O.alternate;if($===null){if(x=O.return,x!==null){m=x;continue}break}if(O.child===$.child){for($=O.child;$;){if($===m)return c(O),a;if($===x)return c(O),u;$=$.sibling}throw Error(r(188))}if(m.return!==x.return)m=O,x=$;else{for(var Q=!1,ee=O.child;ee;){if(ee===m){Q=!0,m=O,x=$;break}if(ee===x){Q=!0,x=O,m=$;break}ee=ee.sibling}if(!Q){for(ee=$.child;ee;){if(ee===m){Q=!0,m=$,x=O;break}if(ee===x){Q=!0,x=$,m=O;break}ee=ee.sibling}if(!Q)throw Error(r(189))}}if(m.alternate!==x)throw Error(r(190))}if(m.tag!==3)throw Error(r(188));return m.stateNode.current===m?a:u}function f(a){var u=a.tag;if(u===5||u===26||u===27||u===6)return a;for(a=a.child;a!==null;){if(u=f(a),u!==null)return u;a=a.sibling}return null}var h=Object.assign,p=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),T=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),L=Symbol.iterator;function F(a){return a===null||typeof a!="object"?null:(a=L&&a[L]||a["@@iterator"],typeof a=="function"?a:null)}var H=Symbol.for("react.client.reference");function B(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===H?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case S:return"Fragment";case _:return"Profiler";case w:return"StrictMode";case j:return"Suspense";case A:return"SuspenseList";case N:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case g:return"Portal";case T:return a.displayName||"Context";case E:return(a._context.displayName||"Context")+".Consumer";case M:var u=a.render;return a=a.displayName,a||(a=u.displayName||u.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case k:return u=a.displayName||null,u!==null?u:B(a.type)||"Memo";case R:u=a._payload,a=a._init;try{return B(a(u))}catch{}}return null}var Y=Array.isArray,U=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z={pending:!1,data:null,method:null,action:null},W=[],K=-1;function G(a){return{current:a}}function X(a){0>K||(a.current=W[K],W[K]=null,K--)}function J(a,u){K++,W[K]=a.current,a.current=u}var ne=G(null),se=G(null),ie=G(null),oe=G(null);function de(a,u){switch(J(ie,u),J(se,a),J(ne,null),u.nodeType){case 9:case 11:a=(a=u.documentElement)&&(a=a.namespaceURI)?gh(a):0;break;default:if(a=u.tagName,u=u.namespaceURI)u=gh(u),a=ss(u,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}X(ne),J(ne,a)}function pe(){X(ne),X(se),X(ie)}function fe(a){a.memoizedState!==null&&J(oe,a);var u=ne.current,m=ss(u,a.type);u!==m&&(J(se,a),J(ne,m))}function Te(a){se.current===a&&(X(ne),X(se)),oe.current===a&&(X(oe),bd._currentValue=z)}var we,_e;function De(a){if(we===void 0)try{throw Error()}catch(m){var u=m.stack.trim().match(/\n( *(at )?)/);we=u&&u[1]||"",_e=-1<m.stack.indexOf(`
    at`)?" (<anonymous>)":-1<m.stack.indexOf("@")?"@unknown:0:0":""}return`
`+we+a+_e}var Ze=!1;function ze(a,u){if(!a||Ze)return"";Ze=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var x={DetermineComponentFrameRoot:function(){try{if(u){var Be=function(){throw Error()};if(Object.defineProperty(Be.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Be,[])}catch(Oe){var Me=Oe}Reflect.construct(a,[],Be)}else{try{Be.call()}catch(Oe){Me=Oe}a.call(Be.prototype)}}else{try{throw Error()}catch(Oe){Me=Oe}(Be=a())&&typeof Be.catch=="function"&&Be.catch(function(){})}}catch(Oe){if(Oe&&Me&&typeof Oe.stack=="string")return[Oe.stack,Me.stack]}return[null,null]}};x.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var O=Object.getOwnPropertyDescriptor(x.DetermineComponentFrameRoot,"name");O&&O.configurable&&Object.defineProperty(x.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var $=x.DetermineComponentFrameRoot(),Q=$[0],ee=$[1];if(Q&&ee){var ue=Q.split(`
`),ke=ee.split(`
`);for(O=x=0;x<ue.length&&!ue[x].includes("DetermineComponentFrameRoot");)x++;for(;O<ke.length&&!ke[O].includes("DetermineComponentFrameRoot");)O++;if(x===ue.length||O===ke.length)for(x=ue.length-1,O=ke.length-1;1<=x&&0<=O&&ue[x]!==ke[O];)O--;for(;1<=x&&0<=O;x--,O--)if(ue[x]!==ke[O]){if(x!==1||O!==1)do if(x--,O--,0>O||ue[x]!==ke[O]){var Fe=`
`+ue[x].replace(" at new "," at ");return a.displayName&&Fe.includes("<anonymous>")&&(Fe=Fe.replace("<anonymous>",a.displayName)),Fe}while(1<=x&&0<=O);break}}}finally{Ze=!1,Error.prepareStackTrace=m}return(m=a?a.displayName||a.name:"")?De(m):""}function Xe(a,u){switch(a.tag){case 26:case 27:case 5:return De(a.type);case 16:return De("Lazy");case 13:return a.child!==u&&u!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return ze(a.type,!1);case 11:return ze(a.type.render,!1);case 1:return ze(a.type,!0);case 31:return De("Activity");default:return""}}function Ke(a){try{var u="",m=null;do u+=Xe(a,m),m=a,a=a.return;while(a);return u}catch(x){return`
Error generating stack: `+x.message+`
`+x.stack}}var ot=Object.prototype.hasOwnProperty,st=t.unstable_scheduleCallback,mt=t.unstable_cancelCallback,bt=t.unstable_shouldYield,At=t.unstable_requestPaint,ct=t.unstable_now,cn=t.unstable_getCurrentPriorityLevel,bn=t.unstable_ImmediatePriority,Tt=t.unstable_UserBlockingPriority,Ft=t.unstable_NormalPriority,Xt=t.unstable_LowPriority,_n=t.unstable_IdlePriority,un=t.log,Zt=t.unstable_setDisableYieldValue,Jt=null,en=null;function It(a){if(typeof un=="function"&&Zt(a),en&&typeof en.setStrictMode=="function")try{en.setStrictMode(Jt,a)}catch{}}var he=Math.clz32?Math.clz32:gt,Ce=Math.log,St=Math.LN2;function gt(a){return a>>>=0,a===0?32:31-(Ce(a)/St|0)|0}var Ut=256,Ot=262144,Sn=4194304;function Je(a){var u=a&42;if(u!==0)return u;switch(a&-a){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function vt(a,u,m){var x=a.pendingLanes;if(x===0)return 0;var O=0,$=a.suspendedLanes,Q=a.pingedLanes;a=a.warmLanes;var ee=x&134217727;return ee!==0?(x=ee&~$,x!==0?O=Je(x):(Q&=ee,Q!==0?O=Je(Q):m||(m=ee&~a,m!==0&&(O=Je(m))))):(ee=x&~$,ee!==0?O=Je(ee):Q!==0?O=Je(Q):m||(m=x&~a,m!==0&&(O=Je(m)))),O===0?0:u!==0&&u!==O&&(u&$)===0&&($=O&-O,m=u&-u,$>=m||$===32&&(m&4194048)!==0)?u:O}function $t(a,u){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&u)===0}function dn(a,u){switch(a){case 1:case 2:case 4:case 8:case 64:return u+250;case 16:case 32: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 u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Yt(){var a=Sn;return Sn<<=1,(Sn&62914560)===0&&(Sn=4194304),a}function Gt(a){for(var u=[],m=0;31>m;m++)u.push(a);return u}function $n(a,u){a.pendingLanes|=u,u!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function Tn(a,u,m,x,O,$){var Q=a.pendingLanes;a.pendingLanes=m,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=m,a.entangledLanes&=m,a.errorRecoveryDisabledLanes&=m,a.shellSuspendCounter=0;var ee=a.entanglements,ue=a.expirationTimes,ke=a.hiddenUpdates;for(m=Q&~m;0<m;){var Fe=31-he(m),Be=1<<Fe;ee[Fe]=0,ue[Fe]=-1;var Me=ke[Fe];if(Me!==null)for(ke[Fe]=null,Fe=0;Fe<Me.length;Fe++){var Oe=Me[Fe];Oe!==null&&(Oe.lane&=-536870913)}m&=~Be}x!==0&&le(a,x,0),$!==0&&O===0&&a.tag!==0&&(a.suspendedLanes|=$&~(Q&~u))}function le(a,u,m){a.pendingLanes|=u,a.suspendedLanes&=~u;var x=31-he(u);a.entangledLanes|=u,a.entanglements[x]=a.entanglements[x]|1073741824|m&261930}function ce(a,u){var m=a.entangledLanes|=u;for(a=a.entanglements;m;){var x=31-he(m),O=1<<x;O&u|a[x]&u&&(a[x]|=u),m&=~O}}function ye(a,u){var m=u&-u;return m=(m&42)!==0?1:$e(m),(m&(a.suspendedLanes|u))!==0?0:m}function $e(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;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:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function Ye(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function tt(){var a=q.p;return a!==0?a:(a=window.event,a===void 0?32:n3(a.type))}function Et(a,u){var m=q.p;try{return q.p=a,u()}finally{q.p=m}}var nt=Math.random().toString(36).slice(2),et="__reactFiber$"+nt,Ge="__reactProps$"+nt,ut="__reactContainer$"+nt,Vt="__reactEvents$"+nt,fn="__reactListeners$"+nt,Hn="__reactHandles$"+nt,hn="__reactResources$"+nt,nn="__reactMarker$"+nt;function zn(a){delete a[et],delete a[Ge],delete a[Vt],delete a[fn],delete a[Hn]}function Mo(a){var u=a[et];if(u)return u;for(var m=a.parentNode;m;){if(u=m[ut]||m[et]){if(m=u.alternate,u.child!==null||m!==null&&m.child!==null)for(a=FS(a);a!==null;){if(m=a[et])return m;a=FS(a)}return u}a=m,m=a.parentNode}return null}function Io(a){if(a=a[et]||a[ut]){var u=a.tag;if(u===5||u===6||u===13||u===31||u===26||u===27||u===3)return a}return null}function $o(a){var u=a.tag;if(u===5||u===26||u===27||u===6)return a.stateNode;throw Error(r(33))}function Gr(a){var u=a[hn];return u||(u=a[hn]={hoistableStyles:new Map,hoistableScripts:new Map}),u}function Rr(a){a[nn]=!0}var fl=new Set,Zi={};function ps(a,u){Bs(a,u),Bs(a+"Capture",u)}function Bs(a,u){for(Zi[a]=u,a=0;a<u.length;a++)fl.add(u[a])}var On=RegExp("^[: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]*$"),hr={},xa={};function mc(a){return ot.call(xa,a)?!0:ot.call(hr,a)?!1:On.test(a)?xa[a]=!0:(hr[a]=!0,!1)}function pr(a,u,m){if(mc(u))if(m===null)a.removeAttribute(u);else{switch(typeof m){case"undefined":case"function":case"symbol":a.removeAttribute(u);return;case"boolean":var x=u.toLowerCase().slice(0,5);if(x!=="data-"&&x!=="aria-"){a.removeAttribute(u);return}}a.setAttribute(u,""+m)}}function Hs(a,u,m){if(m===null)a.removeAttribute(u);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(u);return}a.setAttribute(u,""+m)}}function ms(a,u,m,x){if(x===null)a.removeAttribute(m);else{switch(typeof x){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(m);return}a.setAttributeNS(u,m,""+x)}}function Lo(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Cp(a){var u=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function F5(a,u,m){var x=Object.getOwnPropertyDescriptor(a.constructor.prototype,u);if(!a.hasOwnProperty(u)&&typeof x<"u"&&typeof x.get=="function"&&typeof x.set=="function"){var O=x.get,$=x.set;return Object.defineProperty(a,u,{configurable:!0,get:function(){return O.call(this)},set:function(Q){m=""+Q,$.call(this,Q)}}),Object.defineProperty(a,u,{enumerable:x.enumerable}),{getValue:function(){return m},setValue:function(Q){m=""+Q},stopTracking:function(){a._valueTracker=null,delete a[u]}}}}function _p(a){if(!a._valueTracker){var u=Cp(a)?"checked":"value";a._valueTracker=F5(a,u,""+a[u])}}function df(a){if(!a)return!1;var u=a._valueTracker;if(!u)return!0;var m=u.getValue(),x="";return a&&(x=Cp(a)?a.checked?"true":"false":a.value),a=x,a!==m?(u.setValue(a),!0):!1}function ff(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var z5=/[\n"\\]/g;function gs(a){return a.replace(z5,function(u){return"\\"+u.charCodeAt(0).toString(16)+" "})}function Tp(a,u,m,x,O,$,Q,ee){a.name="",Q!=null&&typeof Q!="function"&&typeof Q!="symbol"&&typeof Q!="boolean"?a.type=Q:a.removeAttribute("type"),u!=null?Q==="number"?(u===0&&a.value===""||a.value!=u)&&(a.value=""+Lo(u)):a.value!==""+Lo(u)&&(a.value=""+Lo(u)):Q!=="submit"&&Q!=="reset"||a.removeAttribute("value"),u!=null?Lg(a,Q,Lo(u)):m!=null?Lg(a,Q,Lo(m)):x!=null&&a.removeAttribute("value"),O==null&&$!=null&&(a.defaultChecked=!!$),O!=null&&(a.checked=O&&typeof O!="function"&&typeof O!="symbol"),ee!=null&&typeof ee!="function"&&typeof ee!="symbol"&&typeof ee!="boolean"?a.name=""+Lo(ee):a.removeAttribute("name")}function Ep(a,u,m,x,O,$,Q,ee){if($!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"&&(a.type=$),u!=null||m!=null){if(!($!=="submit"&&$!=="reset"||u!=null)){_p(a);return}m=m!=null?""+Lo(m):"",u=u!=null?""+Lo(u):m,ee||u===a.value||(a.value=u),a.defaultValue=u}x=x??O,x=typeof x!="function"&&typeof x!="symbol"&&!!x,a.checked=ee?a.checked:!!x,a.defaultChecked=!!x,Q!=null&&typeof Q!="function"&&typeof Q!="symbol"&&typeof Q!="boolean"&&(a.name=Q),_p(a)}function Lg(a,u,m){u==="number"&&ff(a.ownerDocument)===a||a.defaultValue===""+m||(a.defaultValue=""+m)}function gc(a,u,m,x){if(a=a.options,u){u={};for(var O=0;O<m.length;O++)u["$"+m[O]]=!0;for(m=0;m<a.length;m++)O=u.hasOwnProperty("$"+a[m].value),a[m].selected!==O&&(a[m].selected=O),O&&x&&(a[m].defaultSelected=!0)}else{for(m=""+Lo(m),u=null,O=0;O<a.length;O++){if(a[O].value===m){a[O].selected=!0,x&&(a[O].defaultSelected=!0);return}u!==null||a[O].disabled||(u=a[O])}u!==null&&(u.selected=!0)}}function kp(a,u,m){if(u!=null&&(u=""+Lo(u),u!==a.value&&(a.value=u),m==null)){a.defaultValue!==u&&(a.defaultValue=u);return}a.defaultValue=m!=null?""+Lo(m):""}function Mp(a,u,m,x){if(u==null){if(x!=null){if(m!=null)throw Error(r(92));if(Y(x)){if(1<x.length)throw Error(r(93));x=x[0]}m=x}m==null&&(m=""),u=m}m=Lo(u),a.defaultValue=m,x=a.textContent,x===m&&x!==""&&x!==null&&(a.value=x),_p(a)}function wi(a,u){if(u){var m=a.firstChild;if(m&&m===a.lastChild&&m.nodeType===3){m.nodeValue=u;return}}a.textContent=u}var J2=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Fg(a,u,m){var x=u.indexOf("--")===0;m==null||typeof m=="boolean"||m===""?x?a.setProperty(u,""):u==="float"?a.cssFloat="":a[u]="":x?a.setProperty(u,m):typeof m!="number"||m===0||J2.has(u)?u==="float"?a.cssFloat=m:a[u]=(""+m).trim():a[u]=m+"px"}function eb(a,u,m){if(u!=null&&typeof u!="object")throw Error(r(62));if(a=a.style,m!=null){for(var x in m)!m.hasOwnProperty(x)||u!=null&&u.hasOwnProperty(x)||(x.indexOf("--")===0?a.setProperty(x,""):x==="float"?a.cssFloat="":a[x]="");for(var O in u)x=u[O],u.hasOwnProperty(O)&&m[O]!==x&&Fg(a,O,x)}else for(var $ in u)u.hasOwnProperty($)&&Fg(a,$,u[$])}function jp(a){if(a.indexOf("-")===-1)return!1;switch(a){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 tb=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),nb=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function hf(a){return nb.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function Ca(){}var zg=null;function Ug(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var yc=null,Mu=null;function rb(a){var u=Io(a);if(u&&(a=u.stateNode)){var m=a[Ge]||null;e:switch(a=u.stateNode,u.type){case"input":if(Tp(a,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name),u=m.name,m.type==="radio"&&u!=null){for(m=a;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll('input[name="'+gs(""+u)+'"][type="radio"]'),u=0;u<m.length;u++){var x=m[u];if(x!==a&&x.form===a.form){var O=x[Ge]||null;if(!O)throw Error(r(90));Tp(x,O.value,O.defaultValue,O.defaultValue,O.checked,O.defaultChecked,O.type,O.name)}}for(u=0;u<m.length;u++)x=m[u],x.form===a.form&&df(x)}break e;case"textarea":kp(a,m.value,m.defaultValue);break e;case"select":u=m.value,u!=null&&gc(a,!!m.multiple,u,!1)}}}var Bg=!1;function ob(a,u,m){if(Bg)return a(u,m);Bg=!0;try{var x=a(u);return x}finally{if(Bg=!1,(yc!==null||Mu!==null)&&(Rm(),yc&&(u=yc,a=Mu,Mu=yc=null,rb(u),a)))for(u=0;u<a.length;u++)rb(a[u])}}function vc(a,u){var m=a.stateNode;if(m===null)return null;var x=m[Ge]||null;if(x===null)return null;m=x[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(x=!x.disabled)||(a=a.type,x=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!x;break e;default:a=!1}if(a)return null;if(m&&typeof m!="function")throw Error(r(231,u,typeof m));return m}var _a=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hg=!1;if(_a)try{var pf={};Object.defineProperty(pf,"passive",{get:function(){Hg=!0}}),window.addEventListener("test",pf,pf),window.removeEventListener("test",pf,pf)}catch{Hg=!1}var hl=null,qg=null,Zn=null;function rr(){if(Zn)return Zn;var a,u=qg,m=u.length,x,O="value"in hl?hl.value:hl.textContent,$=O.length;for(a=0;a<m&&u[a]===O[a];a++);var Q=m-a;for(x=1;x<=Q&&u[m-x]===O[$-x];x++);return Zn=O.slice(a,1<x?1-x:void 0)}function Dp(a){var u=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&u===13&&(a=13)):a=u,a===10&&(a=13),32<=a||a===13?a:0}function Ap(){return!0}function sb(){return!1}function Wo(a){function u(m,x,O,$,Q){this._reactName=m,this._targetInst=O,this.type=x,this.nativeEvent=$,this.target=Q,this.currentTarget=null;for(var ee in a)a.hasOwnProperty(ee)&&(m=a[ee],this[ee]=m?m($):$[ee]);return this.isDefaultPrevented=($.defaultPrevented!=null?$.defaultPrevented:$.returnValue===!1)?Ap:sb,this.isPropagationStopped=sb,this}return h(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=Ap)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=Ap)},persist:function(){},isPersistent:Ap}),u}var bc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rp=Wo(bc),ju=h({},bc,{view:0,detail:0}),U5=Wo(ju),so,mf,xi,gf=h({},ju,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yf,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==xi&&(xi&&a.type==="mousemove"?(so=a.screenX-xi.screenX,mf=a.screenY-xi.screenY):mf=so=0,xi=a),so)},movementY:function(a){return"movementY"in a?a.movementY:mf}}),Op=Wo(gf),qs=h({},gf,{dataTransfer:0}),ib=Wo(qs),ab=h({},ju,{relatedTarget:0}),Pp=Wo(ab),lb=h({},bc,{animationName:0,elapsedTime:0,pseudoElement:0}),cb=Wo(lb),ub=h({},bc,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),ys=Wo(ub),B5=h({},bc,{data:0}),vs=Wo(B5),H5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},db={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"},pl={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Np(a){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(a):(a=pl[a])?!!u[a]:!1}function yf(){return Np}var vr=h({},ju,{key:function(a){if(a.key){var u=H5[a.key]||a.key;if(u!=="Unidentified")return u}return a.type==="keypress"?(a=Dp(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?db[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yf,charCode:function(a){return a.type==="keypress"?Dp(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Dp(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),ml=Wo(vr),Vg=h({},gf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fb=Wo(Vg),Yg=h({},ju,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yf}),q5=Wo(Yg),V5=h({},bc,{propertyName:0,elapsedTime:0,pseudoElement:0}),Y5=Wo(V5),hb=h({},gf,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),Ip=Wo(hb),Du=h({},bc,{newState:0,oldState:0}),G5=Wo(Du),pb=[9,13,27,32],$p=_a&&"CompositionEvent"in window,Sc=null;_a&&"documentMode"in document&&(Sc=document.documentMode);var Gg=_a&&"TextEvent"in window&&!Sc,Wg=_a&&(!$p||Sc&&8<Sc&&11>=Sc),mb=" ",Lp=!1;function Fp(a,u){switch(a){case"keyup":return pb.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gb(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var wc=!1;function bs(a,u){switch(a){case"compositionend":return gb(u);case"keypress":return u.which!==32?null:(Lp=!0,mb);case"textInput":return a=u.data,a===mb&&Lp?null:a;default:return null}}function Qg(a,u){if(wc)return a==="compositionend"||!$p&&Fp(a,u)?(a=rr(),Zn=qg=hl=null,wc=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return Wg&&u.locale!=="ko"?null:u.data;default:return null}}var vf={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 Kg(a){var u=a&&a.nodeName&&a.nodeName.toLowerCase();return u==="input"?!!vf[a.type]:u==="textarea"}function Xg(a,u,m,x){yc?Mu?Mu.push(x):Mu=[x]:yc=x,u=fh(u,"onChange"),0<u.length&&(m=new Rp("onChange","change",null,m,x),a.push({event:m,listeners:u}))}var bf=null,Sf=null;function W5(a){DS(a,0)}function zp(a){var u=$o(a);if(df(u))return a}function yb(a,u){if(a==="change")return u}var xc=!1;if(_a){var Zg;if(_a){var Jg="oninput"in document;if(!Jg){var Up=document.createElement("div");Up.setAttribute("oninput","return;"),Jg=typeof Up.oninput=="function"}Zg=Jg}else Zg=!1;xc=Zg&&(!document.documentMode||9<document.documentMode)}function e0(){bf&&(bf.detachEvent("onpropertychange",Ta),Sf=bf=null)}function Ta(a){if(a.propertyName==="value"&&zp(Sf)){var u=[];Xg(u,Sf,a,Ug(a)),ob(W5,u)}}function Bp(a,u,m){a==="focusin"?(e0(),bf=u,Sf=m,bf.attachEvent("onpropertychange",Ta)):a==="focusout"&&e0()}function Q5(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return zp(Sf)}function K5(a,u){if(a==="click")return zp(u)}function X5(a,u){if(a==="input"||a==="change")return zp(u)}function Au(a,u){return a===u&&(a!==0||1/a===1/u)||a!==a&&u!==u}var Tr=typeof Object.is=="function"?Object.is:Au;function Ru(a,u){if(Tr(a,u))return!0;if(typeof a!="object"||a===null||typeof u!="object"||u===null)return!1;var m=Object.keys(a),x=Object.keys(u);if(m.length!==x.length)return!1;for(x=0;x<m.length;x++){var O=m[x];if(!ot.call(u,O)||!Tr(a[O],u[O]))return!1}return!0}function vb(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function bb(a,u){var m=vb(a);a=0;for(var x;m;){if(m.nodeType===3){if(x=a+m.textContent.length,a<=u&&x>=u)return{node:m,offset:u-a};a=x}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=vb(m)}}function Sb(a,u){return a&&u?a===u?!0:a&&a.nodeType===3?!1:u&&u.nodeType===3?Sb(a,u.parentNode):"contains"in a?a.contains(u):a.compareDocumentPosition?!!(a.compareDocumentPosition(u)&16):!1:!1}function wb(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var u=ff(a.document);u instanceof a.HTMLIFrameElement;){try{var m=typeof u.contentWindow.location.href=="string"}catch{m=!1}if(m)a=u.contentWindow;else break;u=ff(a.document)}return u}function t0(a){var u=a&&a.nodeName&&a.nodeName.toLowerCase();return u&&(u==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||u==="textarea"||a.contentEditable==="true")}var Ou=_a&&"documentMode"in document&&11>=document.documentMode,ve=null,Le=null,Re=null,yt=!1;function on(a,u,m){var x=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;yt||ve==null||ve!==ff(x)||(x=ve,"selectionStart"in x&&t0(x)?x={start:x.selectionStart,end:x.selectionEnd}:(x=(x.ownerDocument&&x.ownerDocument.defaultView||window).getSelection(),x={anchorNode:x.anchorNode,anchorOffset:x.anchorOffset,focusNode:x.focusNode,focusOffset:x.focusOffset}),Re&&Ru(Re,x)||(Re=x,x=fh(Le,"onSelect"),0<x.length&&(u=new Rp("onSelect","select",null,u,m),a.push({event:u,listeners:x}),u.target=ve)))}function En(a,u){var m={};return m[a.toLowerCase()]=u.toLowerCase(),m["Webkit"+a]="webkit"+u,m["Moz"+a]="moz"+u,m}var br={animationend:En("Animation","AnimationEnd"),animationiteration:En("Animation","AnimationIteration"),animationstart:En("Animation","AnimationStart"),transitionrun:En("Transition","TransitionRun"),transitionstart:En("Transition","TransitionStart"),transitioncancel:En("Transition","TransitionCancel"),transitionend:En("Transition","TransitionEnd")},Wn={},Hp={};_a&&(Hp=document.createElement("div").style,"AnimationEvent"in window||(delete br.animationend.animation,delete br.animationiteration.animation,delete br.animationstart.animation),"TransitionEvent"in window||delete br.transitionend.transition);function Cc(a){if(Wn[a])return Wn[a];if(!br[a])return a;var u=br[a],m;for(m in u)if(u.hasOwnProperty(m)&&m in Hp)return Wn[a]=u[m];return a}var Ss=Cc("animationend"),wf=Cc("animationiteration"),xb=Cc("animationstart"),Pu=Cc("transitionrun"),qp=Cc("transitionstart"),Vp=Cc("transitioncancel"),qn=Cc("transitionend"),Cb=new Map,Yp="abort auxClick beforeToggle 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(" ");Yp.push("scrollEnd");function Qo(a,u){Cb.set(a,u),ps(u,[a])}var Gp=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},Vs=[],Nu=0,Iu=0;function Ci(){for(var a=Nu,u=Iu=Nu=0;u<a;){var m=Vs[u];Vs[u++]=null;var x=Vs[u];Vs[u++]=null;var O=Vs[u];Vs[u++]=null;var $=Vs[u];if(Vs[u++]=null,x!==null&&O!==null){var Q=x.pending;Q===null?O.next=O:(O.next=Q.next,Q.next=O),x.pending=O}$!==0&&n0(m,O,$)}}function _c(a,u,m,x){Vs[Nu++]=a,Vs[Nu++]=u,Vs[Nu++]=m,Vs[Nu++]=x,Iu|=x,a.lanes|=x,a=a.alternate,a!==null&&(a.lanes|=x)}function Wp(a,u,m,x){return _c(a,u,m,x),xf(a)}function Ji(a,u){return _c(a,null,null,u),xf(a)}function n0(a,u,m){a.lanes|=m;var x=a.alternate;x!==null&&(x.lanes|=m);for(var O=!1,$=a.return;$!==null;)$.childLanes|=m,x=$.alternate,x!==null&&(x.childLanes|=m),$.tag===22&&(a=$.stateNode,a===null||a._visibility&1||(O=!0)),a=$,$=$.return;return a.tag===3?($=a.stateNode,O&&u!==null&&(O=31-he(m),a=$.hiddenUpdates,x=a[O],x===null?a[O]=[u]:x.push(u),u.lane=m|536870912),$):null}function xf(a){if(50<sh)throw sh=0,ty=null,Error(r(185));for(var u=a.return;u!==null;)a=u,u=a.return;return a.tag===3?a.stateNode:null}var Ea={};function _b(a,u,m,x){this.tag=a,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=x,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function So(a,u,m,x){return new _b(a,u,m,x)}function ka(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Ys(a,u){var m=a.alternate;return m===null?(m=So(a.tag,u,a.key,a.mode),m.elementType=a.elementType,m.type=a.type,m.stateNode=a.stateNode,m.alternate=a,a.alternate=m):(m.pendingProps=u,m.type=a.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=a.flags&65011712,m.childLanes=a.childLanes,m.lanes=a.lanes,m.child=a.child,m.memoizedProps=a.memoizedProps,m.memoizedState=a.memoizedState,m.updateQueue=a.updateQueue,u=a.dependencies,m.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},m.sibling=a.sibling,m.index=a.index,m.ref=a.ref,m.refCleanup=a.refCleanup,m}function Tb(a,u){a.flags&=65011714;var m=a.alternate;return m===null?(a.childLanes=0,a.lanes=u,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=m.childLanes,a.lanes=m.lanes,a.child=m.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=m.memoizedProps,a.memoizedState=m.memoizedState,a.updateQueue=m.updateQueue,a.type=m.type,u=m.dependencies,a.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext}),a}function Qp(a,u,m,x,O,$){var Q=0;if(x=a,typeof a=="function")ka(a)&&(Q=1);else if(typeof a=="string")Q=RC(a,m,ne.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case N:return a=So(31,m,u,O),a.elementType=N,a.lanes=$,a;case S:return Tc(m.children,O,$,u);case w:Q=8,O|=24;break;case _:return a=So(12,m,u,O|2),a.elementType=_,a.lanes=$,a;case j:return a=So(13,m,u,O),a.elementType=j,a.lanes=$,a;case A:return a=So(19,m,u,O),a.elementType=A,a.lanes=$,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case T:Q=10;break e;case E:Q=9;break e;case M:Q=11;break e;case k:Q=14;break e;case R:Q=16,x=null;break e}Q=29,m=Error(r(130,a===null?"null":typeof a,"")),x=null}return u=So(Q,m,u,O),u.elementType=a,u.type=x,u.lanes=$,u}function Tc(a,u,m,x){return a=So(7,a,x,u),a.lanes=m,a}function $u(a,u,m){return a=So(6,a,null,u),a.lanes=m,a}function Cf(a){var u=So(18,null,null,0);return u.stateNode=a,u}function _f(a,u,m){return u=So(4,a.children!==null?a.children:[],a.key,u),u.lanes=m,u.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},u}var Eb=new WeakMap;function ws(a,u){if(typeof a=="object"&&a!==null){var m=Eb.get(a);return m!==void 0?m:(u={value:a,source:u,stack:Ke(u)},Eb.set(a,u),u)}return{value:a,source:u,stack:Ke(u)}}var Lu=[],Fu=0,Or=null,Wr=0,Gs=[],Ws=0,Ma=null,ea=1,Qs="";function xs(a,u){Lu[Fu++]=Wr,Lu[Fu++]=Or,Or=a,Wr=u}function Kp(a,u,m){Gs[Ws++]=ea,Gs[Ws++]=Qs,Gs[Ws++]=Ma,Ma=a;var x=ea;a=Qs;var O=32-he(x)-1;x&=~(1<<O),m+=1;var $=32-he(u)+O;if(30<$){var Q=O-O%5;$=(x&(1<<Q)-1).toString(32),x>>=Q,O-=Q,ea=1<<32-he(u)+O|m<<O|x,Qs=$+a}else ea=1<<$|m<<O|x,Qs=a}function gl(a){a.return!==null&&(xs(a,1),Kp(a,1,0))}function Ec(a){for(;a===Or;)Or=Lu[--Fu],Lu[Fu]=null,Wr=Lu[--Fu],Lu[Fu]=null;for(;a===Ma;)Ma=Gs[--Ws],Gs[Ws]=null,Qs=Gs[--Ws],Gs[Ws]=null,ea=Gs[--Ws],Gs[Ws]=null}function zu(a,u){Gs[Ws++]=ea,Gs[Ws++]=Qs,Gs[Ws++]=Ma,ea=u.id,Qs=u.overflow,Ma=a}var Qr=null,Yn=null,Pn=!1,yl=null,Ks=!1,r0=Error(r(519));function vl(a){var u=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Sl(ws(u,a)),r0}function Tf(a){var u=a.stateNode,m=a.type,x=a.memoizedProps;switch(u[et]=a,u[Ge]=x,m){case"dialog":Mn("cancel",u),Mn("close",u);break;case"iframe":case"object":case"embed":Mn("load",u);break;case"video":case"audio":for(m=0;m<dh.length;m++)Mn(dh[m],u);break;case"source":Mn("error",u);break;case"img":case"image":case"link":Mn("error",u),Mn("load",u);break;case"details":Mn("toggle",u);break;case"input":Mn("invalid",u),Ep(u,x.value,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name,!0);break;case"select":Mn("invalid",u);break;case"textarea":Mn("invalid",u),Mp(u,x.value,x.defaultValue,x.children)}m=x.children,typeof m!="string"&&typeof m!="number"&&typeof m!="bigint"||u.textContent===""+m||x.suppressHydrationWarning===!0||OS(u.textContent,m)?(x.popover!=null&&(Mn("beforetoggle",u),Mn("toggle",u)),x.onScroll!=null&&Mn("scroll",u),x.onScrollEnd!=null&&Mn("scrollend",u),x.onClick!=null&&(u.onclick=Ca),u=!0):u=!1,u||vl(a,!0)}function Uu(a){for(Qr=a.return;Qr;)switch(Qr.tag){case 5:case 31:case 13:Ks=!1;return;case 27:case 3:Ks=!0;return;default:Qr=Qr.return}}function kc(a){if(a!==Qr)return!1;if(!Pn)return Uu(a),Pn=!0,!1;var u=a.tag,m;if((m=u!==3&&u!==27)&&((m=u===5)&&(m=a.type,m=!(m!=="form"&&m!=="button")||Il(a.type,a.memoizedProps)),m=!m),m&&Yn&&vl(a),Uu(a),u===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));Yn=LS(a)}else if(u===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));Yn=LS(a)}else u===27?(u=Yn,Wt(a.type)?(a=wy,wy=null,Yn=a):Yn=u):Yn=Qr?ri(a.stateNode.nextSibling):null;return!0}function te(){Yn=Qr=null,Pn=!1}function bl(){var a=yl;return a!==null&&(ns===null?ns=a:ns.push.apply(ns,a),yl=null),a}function Sl(a){yl===null?yl=[a]:yl.push(a)}var Ko=G(null),pn=null,ja=null;function wl(a,u,m){J(Ko,u._currentValue),u._currentValue=m}function Da(a){a._currentValue=Ko.current,X(Ko)}function Aa(a,u,m){for(;a!==null;){var x=a.alternate;if((a.childLanes&u)!==u?(a.childLanes|=u,x!==null&&(x.childLanes|=u)):x!==null&&(x.childLanes&u)!==u&&(x.childLanes|=u),a===m)break;a=a.return}}function o0(a,u,m,x){var O=a.child;for(O!==null&&(O.return=a);O!==null;){var $=O.dependencies;if($!==null){var Q=O.child;$=$.firstContext;e:for(;$!==null;){var ee=$;$=O;for(var ue=0;ue<u.length;ue++)if(ee.context===u[ue]){$.lanes|=m,ee=$.alternate,ee!==null&&(ee.lanes|=m),Aa($.return,m,a),x||(Q=null);break e}$=ee.next}}else if(O.tag===18){if(Q=O.return,Q===null)throw Error(r(341));Q.lanes|=m,$=Q.alternate,$!==null&&($.lanes|=m),Aa(Q,m,a),Q=null}else Q=O.child;if(Q!==null)Q.return=O;else for(Q=O;Q!==null;){if(Q===a){Q=null;break}if(O=Q.sibling,O!==null){O.return=Q.return,Q=O;break}Q=Q.return}O=Q}}function Bu(a,u,m,x){a=null;for(var O=u,$=!1;O!==null;){if(!$){if((O.flags&524288)!==0)$=!0;else if((O.flags&262144)!==0)break}if(O.tag===10){var Q=O.alternate;if(Q===null)throw Error(r(387));if(Q=Q.memoizedProps,Q!==null){var ee=O.type;Tr(O.pendingProps.value,Q.value)||(a!==null?a.push(ee):a=[ee])}}else if(O===oe.current){if(Q=O.alternate,Q===null)throw Error(r(387));Q.memoizedState.memoizedState!==O.memoizedState.memoizedState&&(a!==null?a.push(bd):a=[bd])}O=O.return}a!==null&&o0(u,a,m,x),u.flags|=262144}function Xp(a){for(a=a.firstContext;a!==null;){if(!Tr(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Mc(a){pn=a,ja=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function wo(a){return kb(pn,a)}function Xs(a,u){return pn===null&&Mc(a),kb(a,u)}function kb(a,u){var m=u._currentValue;if(u={context:u,memoizedValue:m,next:null},ja===null){if(a===null)throw Error(r(308));ja=u,a.dependencies={lanes:0,firstContext:u},a.flags|=524288}else ja=ja.next=u;return m}var Z5=typeof AbortController<"u"?AbortController:function(){var a=[],u=this.signal={aborted:!1,addEventListener:function(m,x){a.push(x)}};this.abort=function(){u.aborted=!0,a.forEach(function(m){return m()})}},J5=t.unstable_scheduleCallback,eC=t.unstable_NormalPriority,Kr={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _i(){return{controller:new Z5,data:new Map,refCount:0}}function Ef(a){a.refCount--,a.refCount===0&&J5(eC,function(){a.controller.abort()})}var kf=null,s0=0,Hu=0,qu=null;function jc(a,u){if(kf===null){var m=kf=[];s0=0,Hu=As(),qu={status:"pending",value:void 0,then:function(x){m.push(x)}}}return s0++,u.then(Mb,Mb),u}function Mb(){if(--s0===0&&kf!==null){qu!==null&&(qu.status="fulfilled");var a=kf;kf=null,Hu=0,qu=null;for(var u=0;u<a.length;u++)(0,a[u])()}}function tC(a,u){var m=[],x={status:"pending",value:null,reason:null,then:function(O){m.push(O)}};return a.then(function(){x.status="fulfilled",x.value=u;for(var O=0;O<m.length;O++)(0,m[O])(u)},function(O){for(x.status="rejected",x.reason=O,O=0;O<m.length;O++)(0,m[O])(void 0)}),x}var Zs=U.S;U.S=function(a,u){fS=ct(),typeof u=="object"&&u!==null&&typeof u.then=="function"&&jc(a,u),Zs!==null&&Zs(a,u)};var Dc=G(null);function i0(){var a=Dc.current;return a!==null?a:sr.pooledCache}function Zp(a,u){u===null?J(Dc,Dc.current):J(Dc,u.pool)}function jb(){var a=i0();return a===null?null:{parent:Kr._currentValue,pool:a}}var Vu=Error(r(460)),Jp=Error(r(474)),Mf=Error(r(542)),em={then:function(){}};function Db(a){return a=a.status,a==="fulfilled"||a==="rejected"}function tm(a,u,m){switch(m=a[m],m===void 0?a.push(u):m!==u&&(u.then(Ca,Ca),u=m),u.status){case"fulfilled":return u.value;case"rejected":throw a=u.reason,a0(a),a;default:if(typeof u.status=="string")u.then(Ca,Ca);else{if(a=sr,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=u,a.status="pending",a.then(function(x){if(u.status==="pending"){var O=u;O.status="fulfilled",O.value=x}},function(x){if(u.status==="pending"){var O=u;O.status="rejected",O.reason=x}})}switch(u.status){case"fulfilled":return u.value;case"rejected":throw a=u.reason,a0(a),a}throw ta=u,Vu}}function Ti(a){try{var u=a._init;return u(a._payload)}catch(m){throw m!==null&&typeof m=="object"&&typeof m.then=="function"?(ta=m,Vu):m}}var ta=null;function Ab(){if(ta===null)throw Error(r(459));var a=ta;return ta=null,a}function a0(a){if(a===Vu||a===Mf)throw Error(r(483))}var Yu=null,Cs=0;function Gu(a){var u=Cs;return Cs+=1,Yu===null&&(Yu=[]),tm(Yu,a,u)}function Ei(a,u){u=u.props.ref,a.ref=u!==void 0?u:null}function Fo(a,u){throw u.$$typeof===p?Error(r(525)):(a=Object.prototype.toString.call(u),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":a)))}function Rb(a){function u(Se,ge){if(a){var Ee=Se.deletions;Ee===null?(Se.deletions=[ge],Se.flags|=16):Ee.push(ge)}}function m(Se,ge){if(!a)return null;for(;ge!==null;)u(Se,ge),ge=ge.sibling;return null}function x(Se){for(var ge=new Map;Se!==null;)Se.key!==null?ge.set(Se.key,Se):ge.set(Se.index,Se),Se=Se.sibling;return ge}function O(Se,ge){return Se=Ys(Se,ge),Se.index=0,Se.sibling=null,Se}function $(Se,ge,Ee){return Se.index=Ee,a?(Ee=Se.alternate,Ee!==null?(Ee=Ee.index,Ee<ge?(Se.flags|=67108866,ge):Ee):(Se.flags|=67108866,ge)):(Se.flags|=1048576,ge)}function Q(Se){return a&&Se.alternate===null&&(Se.flags|=67108866),Se}function ee(Se,ge,Ee,Ue){return ge===null||ge.tag!==6?(ge=$u(Ee,Se.mode,Ue),ge.return=Se,ge):(ge=O(ge,Ee),ge.return=Se,ge)}function ue(Se,ge,Ee,Ue){var Nt=Ee.type;return Nt===S?Fe(Se,ge,Ee.props.children,Ue,Ee.key):ge!==null&&(ge.elementType===Nt||typeof Nt=="object"&&Nt!==null&&Nt.$$typeof===R&&Ti(Nt)===ge.type)?(ge=O(ge,Ee.props),Ei(ge,Ee),ge.return=Se,ge):(ge=Qp(Ee.type,Ee.key,Ee.props,null,Se.mode,Ue),Ei(ge,Ee),ge.return=Se,ge)}function ke(Se,ge,Ee,Ue){return ge===null||ge.tag!==4||ge.stateNode.containerInfo!==Ee.containerInfo||ge.stateNode.implementation!==Ee.implementation?(ge=_f(Ee,Se.mode,Ue),ge.return=Se,ge):(ge=O(ge,Ee.children||[]),ge.return=Se,ge)}function Fe(Se,ge,Ee,Ue,Nt){return ge===null||ge.tag!==7?(ge=Tc(Ee,Se.mode,Ue,Nt),ge.return=Se,ge):(ge=O(ge,Ee),ge.return=Se,ge)}function Be(Se,ge,Ee){if(typeof ge=="string"&&ge!==""||typeof ge=="number"||typeof ge=="bigint")return ge=$u(""+ge,Se.mode,Ee),ge.return=Se,ge;if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case v:return Ee=Qp(ge.type,ge.key,ge.props,null,Se.mode,Ee),Ei(Ee,ge),Ee.return=Se,Ee;case g:return ge=_f(ge,Se.mode,Ee),ge.return=Se,ge;case R:return ge=Ti(ge),Be(Se,ge,Ee)}if(Y(ge)||F(ge))return ge=Tc(ge,Se.mode,Ee,null),ge.return=Se,ge;if(typeof ge.then=="function")return Be(Se,Gu(ge),Ee);if(ge.$$typeof===T)return Be(Se,Xs(Se,ge),Ee);Fo(Se,ge)}return null}function Me(Se,ge,Ee,Ue){var Nt=ge!==null?ge.key:null;if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number"||typeof Ee=="bigint")return Nt!==null?null:ee(Se,ge,""+Ee,Ue);if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case v:return Ee.key===Nt?ue(Se,ge,Ee,Ue):null;case g:return Ee.key===Nt?ke(Se,ge,Ee,Ue):null;case R:return Ee=Ti(Ee),Me(Se,ge,Ee,Ue)}if(Y(Ee)||F(Ee))return Nt!==null?null:Fe(Se,ge,Ee,Ue,null);if(typeof Ee.then=="function")return Me(Se,ge,Gu(Ee),Ue);if(Ee.$$typeof===T)return Me(Se,ge,Xs(Se,Ee),Ue);Fo(Se,Ee)}return null}function Oe(Se,ge,Ee,Ue,Nt){if(typeof Ue=="string"&&Ue!==""||typeof Ue=="number"||typeof Ue=="bigint")return Se=Se.get(Ee)||null,ee(ge,Se,""+Ue,Nt);if(typeof Ue=="object"&&Ue!==null){switch(Ue.$$typeof){case v:return Se=Se.get(Ue.key===null?Ee:Ue.key)||null,ue(ge,Se,Ue,Nt);case g:return Se=Se.get(Ue.key===null?Ee:Ue.key)||null,ke(ge,Se,Ue,Nt);case R:return Ue=Ti(Ue),Oe(Se,ge,Ee,Ue,Nt)}if(Y(Ue)||F(Ue))return Se=Se.get(Ee)||null,Fe(ge,Se,Ue,Nt,null);if(typeof Ue.then=="function")return Oe(Se,ge,Ee,Gu(Ue),Nt);if(Ue.$$typeof===T)return Oe(Se,ge,Ee,Xs(ge,Ue),Nt);Fo(ge,Ue)}return null}function xt(Se,ge,Ee,Ue){for(var Nt=null,Un=null,kt=ge,vn=ge=0,An=null;kt!==null&&vn<Ee.length;vn++){kt.index>vn?(An=kt,kt=null):An=kt.sibling;var Bn=Me(Se,kt,Ee[vn],Ue);if(Bn===null){kt===null&&(kt=An);break}a&&kt&&Bn.alternate===null&&u(Se,kt),ge=$(Bn,ge,vn),Un===null?Nt=Bn:Un.sibling=Bn,Un=Bn,kt=An}if(vn===Ee.length)return m(Se,kt),Pn&&xs(Se,vn),Nt;if(kt===null){for(;vn<Ee.length;vn++)kt=Be(Se,Ee[vn],Ue),kt!==null&&(ge=$(kt,ge,vn),Un===null?Nt=kt:Un.sibling=kt,Un=kt);return Pn&&xs(Se,vn),Nt}for(kt=x(kt);vn<Ee.length;vn++)An=Oe(kt,Se,vn,Ee[vn],Ue),An!==null&&(a&&An.alternate!==null&&kt.delete(An.key===null?vn:An.key),ge=$(An,ge,vn),Un===null?Nt=An:Un.sibling=An,Un=An);return a&&kt.forEach(function(Bl){return u(Se,Bl)}),Pn&&xs(Se,vn),Nt}function Bt(Se,ge,Ee,Ue){if(Ee==null)throw Error(r(151));for(var Nt=null,Un=null,kt=ge,vn=ge=0,An=null,Bn=Ee.next();kt!==null&&!Bn.done;vn++,Bn=Ee.next()){kt.index>vn?(An=kt,kt=null):An=kt.sibling;var Bl=Me(Se,kt,Bn.value,Ue);if(Bl===null){kt===null&&(kt=An);break}a&&kt&&Bl.alternate===null&&u(Se,kt),ge=$(Bl,ge,vn),Un===null?Nt=Bl:Un.sibling=Bl,Un=Bl,kt=An}if(Bn.done)return m(Se,kt),Pn&&xs(Se,vn),Nt;if(kt===null){for(;!Bn.done;vn++,Bn=Ee.next())Bn=Be(Se,Bn.value,Ue),Bn!==null&&(ge=$(Bn,ge,vn),Un===null?Nt=Bn:Un.sibling=Bn,Un=Bn);return Pn&&xs(Se,vn),Nt}for(kt=x(kt);!Bn.done;vn++,Bn=Ee.next())Bn=Oe(kt,Se,vn,Bn.value,Ue),Bn!==null&&(a&&Bn.alternate!==null&&kt.delete(Bn.key===null?vn:Bn.key),ge=$(Bn,ge,vn),Un===null?Nt=Bn:Un.sibling=Bn,Un=Bn);return a&&kt.forEach(function(zC){return u(Se,zC)}),Pn&&xs(Se,vn),Nt}function tr(Se,ge,Ee,Ue){if(typeof Ee=="object"&&Ee!==null&&Ee.type===S&&Ee.key===null&&(Ee=Ee.props.children),typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case v:e:{for(var Nt=Ee.key;ge!==null;){if(ge.key===Nt){if(Nt=Ee.type,Nt===S){if(ge.tag===7){m(Se,ge.sibling),Ue=O(ge,Ee.props.children),Ue.return=Se,Se=Ue;break e}}else if(ge.elementType===Nt||typeof Nt=="object"&&Nt!==null&&Nt.$$typeof===R&&Ti(Nt)===ge.type){m(Se,ge.sibling),Ue=O(ge,Ee.props),Ei(Ue,Ee),Ue.return=Se,Se=Ue;break e}m(Se,ge);break}else u(Se,ge);ge=ge.sibling}Ee.type===S?(Ue=Tc(Ee.props.children,Se.mode,Ue,Ee.key),Ue.return=Se,Se=Ue):(Ue=Qp(Ee.type,Ee.key,Ee.props,null,Se.mode,Ue),Ei(Ue,Ee),Ue.return=Se,Se=Ue)}return Q(Se);case g:e:{for(Nt=Ee.key;ge!==null;){if(ge.key===Nt)if(ge.tag===4&&ge.stateNode.containerInfo===Ee.containerInfo&&ge.stateNode.implementation===Ee.implementation){m(Se,ge.sibling),Ue=O(ge,Ee.children||[]),Ue.return=Se,Se=Ue;break e}else{m(Se,ge);break}else u(Se,ge);ge=ge.sibling}Ue=_f(Ee,Se.mode,Ue),Ue.return=Se,Se=Ue}return Q(Se);case R:return Ee=Ti(Ee),tr(Se,ge,Ee,Ue)}if(Y(Ee))return xt(Se,ge,Ee,Ue);if(F(Ee)){if(Nt=F(Ee),typeof Nt!="function")throw Error(r(150));return Ee=Nt.call(Ee),Bt(Se,ge,Ee,Ue)}if(typeof Ee.then=="function")return tr(Se,ge,Gu(Ee),Ue);if(Ee.$$typeof===T)return tr(Se,ge,Xs(Se,Ee),Ue);Fo(Se,Ee)}return typeof Ee=="string"&&Ee!==""||typeof Ee=="number"||typeof Ee=="bigint"?(Ee=""+Ee,ge!==null&&ge.tag===6?(m(Se,ge.sibling),Ue=O(ge,Ee),Ue.return=Se,Se=Ue):(m(Se,ge),Ue=$u(Ee,Se.mode,Ue),Ue.return=Se,Se=Ue),Q(Se)):m(Se,ge)}return function(Se,ge,Ee,Ue){try{Cs=0;var Nt=tr(Se,ge,Ee,Ue);return Yu=null,Nt}catch(kt){if(kt===Vu||kt===Mf)throw kt;var Un=So(29,kt,null,Se.mode);return Un.lanes=Ue,Un.return=Se,Un}finally{}}}var xl=Rb(!0),l0=Rb(!1),Js=!1;function na(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nm(a,u){a=a.updateQueue,u.updateQueue===a&&(u.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Cl(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function ki(a,u,m){var x=a.updateQueue;if(x===null)return null;if(x=x.shared,(Vn&2)!==0){var O=x.pending;return O===null?u.next=u:(u.next=O.next,O.next=u),x.pending=u,u=xf(a),n0(a,null,m),u}return _c(a,x,u,m),xf(a)}function jf(a,u,m){if(u=u.updateQueue,u!==null&&(u=u.shared,(m&4194048)!==0)){var x=u.lanes;x&=a.pendingLanes,m|=x,u.lanes=m,ce(a,m)}}function rm(a,u){var m=a.updateQueue,x=a.alternate;if(x!==null&&(x=x.updateQueue,m===x)){var O=null,$=null;if(m=m.firstBaseUpdate,m!==null){do{var Q={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};$===null?O=$=Q:$=$.next=Q,m=m.next}while(m!==null);$===null?O=$=u:$=$.next=u}else O=$=u;m={baseState:x.baseState,firstBaseUpdate:O,lastBaseUpdate:$,shared:x.shared,callbacks:x.callbacks},a.updateQueue=m;return}a=m.lastBaseUpdate,a===null?m.firstBaseUpdate=u:a.next=u,m.lastBaseUpdate=u}var io=!1;function Ac(){if(io){var a=qu;if(a!==null)throw a}}function Wu(a,u,m,x){io=!1;var O=a.updateQueue;Js=!1;var $=O.firstBaseUpdate,Q=O.lastBaseUpdate,ee=O.shared.pending;if(ee!==null){O.shared.pending=null;var ue=ee,ke=ue.next;ue.next=null,Q===null?$=ke:Q.next=ke,Q=ue;var Fe=a.alternate;Fe!==null&&(Fe=Fe.updateQueue,ee=Fe.lastBaseUpdate,ee!==Q&&(ee===null?Fe.firstBaseUpdate=ke:ee.next=ke,Fe.lastBaseUpdate=ue))}if($!==null){var Be=O.baseState;Q=0,Fe=ke=ue=null,ee=$;do{var Me=ee.lane&-536870913,Oe=Me!==ee.lane;if(Oe?(Dn&Me)===Me:(x&Me)===Me){Me!==0&&Me===Hu&&(io=!0),Fe!==null&&(Fe=Fe.next={lane:0,tag:ee.tag,payload:ee.payload,callback:null,next:null});e:{var xt=a,Bt=ee;Me=u;var tr=m;switch(Bt.tag){case 1:if(xt=Bt.payload,typeof xt=="function"){Be=xt.call(tr,Be,Me);break e}Be=xt;break e;case 3:xt.flags=xt.flags&-65537|128;case 0:if(xt=Bt.payload,Me=typeof xt=="function"?xt.call(tr,Be,Me):xt,Me==null)break e;Be=h({},Be,Me);break e;case 2:Js=!0}}Me=ee.callback,Me!==null&&(a.flags|=64,Oe&&(a.flags|=8192),Oe=O.callbacks,Oe===null?O.callbacks=[Me]:Oe.push(Me))}else Oe={lane:Me,tag:ee.tag,payload:ee.payload,callback:ee.callback,next:null},Fe===null?(ke=Fe=Oe,ue=Be):Fe=Fe.next=Oe,Q|=Me;if(ee=ee.next,ee===null){if(ee=O.shared.pending,ee===null)break;Oe=ee,ee=Oe.next,Oe.next=null,O.lastBaseUpdate=Oe,O.shared.pending=null}}while(!0);Fe===null&&(ue=Be),O.baseState=ue,O.firstBaseUpdate=ke,O.lastBaseUpdate=Fe,$===null&&(O.shared.lanes=0),Al|=Q,a.lanes=Q,a.memoizedState=Be}}function Mi(a,u){if(typeof a!="function")throw Error(r(191,a));a.call(u)}function om(a,u){var m=a.callbacks;if(m!==null)for(a.callbacks=null,a=0;a<m.length;a++)Mi(m[a],u)}var Ra=G(null),ra=G(0);function c0(a,u){a=Pi,J(ra,a),J(Ra,u),Pi=a|u.baseLanes}function xo(){J(ra,Pi),J(Ra,Ra.current)}function Df(){Pi=ra.current,X(Ra),X(ra)}var _s=G(null),ei=null;function _l(a){var u=a.alternate;J(Fr,Fr.current&1),J(_s,a),ei===null&&(u===null||Ra.current!==null||u.memoizedState!==null)&&(ei=a)}function Af(a){J(Fr,Fr.current),J(_s,a),ei===null&&(ei=a)}function Ob(a){a.tag===22?(J(Fr,Fr.current),J(_s,a),ei===null&&(ei=a)):ti()}function ti(){J(Fr,Fr.current),J(_s,_s.current)}function Xo(a){X(_s),ei===a&&(ei=null),X(Fr)}var Fr=G(0);function sm(a){for(var u=a;u!==null;){if(u.tag===13){var m=u.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||Bm(m)||hd(m)))return u}else if(u.tag===19&&(u.memoizedProps.revealOrder==="forwards"||u.memoizedProps.revealOrder==="backwards"||u.memoizedProps.revealOrder==="unstable_legacy-backwards"||u.memoizedProps.revealOrder==="together")){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===a)break;for(;u.sibling===null;){if(u.return===null||u.return===a)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var Ts=0,mn=null,Jn=null,Pr=null,Rf=!1,Qu=!1,Rc=!1,im=0,Ku=0,Tl=null,nC=0;function Sr(){throw Error(r(321))}function am(a,u){if(u===null)return!1;for(var m=0;m<u.length&&m<a.length;m++)if(!Tr(a[m],u[m]))return!1;return!0}function lm(a,u,m,x,O,$){return Ts=$,mn=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,U.H=a===null||a.memoizedState===null?qb:ym,Rc=!1,$=m(x,O),Rc=!1,Qu&&($=Of(u,m,x,O)),u0(a),$}function u0(a){U.H=kl;var u=Jn!==null&&Jn.next!==null;if(Ts=0,Pr=Jn=mn=null,Rf=!1,Ku=0,Tl=null,u)throw Error(r(300));a===null||Er||(a=a.dependencies,a!==null&&Xp(a)&&(Er=!0))}function Of(a,u,m,x){mn=a;var O=0;do{if(Qu&&(Tl=null),Ku=0,Qu=!1,25<=O)throw Error(r(301));if(O+=1,Pr=Jn=null,a.updateQueue!=null){var $=a.updateQueue;$.lastEffect=null,$.events=null,$.stores=null,$.memoCache!=null&&($.memoCache.index=0)}U.H=Uf,$=u(m,x)}while(Qu);return $}function rC(){var a=U.H,u=a.useState()[0];return u=typeof u.then=="function"?Zu(u):u,a=a.useState()[0],(Jn!==null?Jn.memoizedState:null)!==a&&(mn.flags|=1024),u}function cm(){var a=im!==0;return im=0,a}function um(a,u,m){u.updateQueue=a.updateQueue,u.flags&=-2053,a.lanes&=~m}function d0(a){if(Rf){for(a=a.memoizedState;a!==null;){var u=a.queue;u!==null&&(u.pending=null),a=a.next}Rf=!1}Ts=0,Pr=Jn=mn=null,Qu=!1,Ku=im=0,Tl=null}function jo(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pr===null?mn.memoizedState=Pr=a:Pr=Pr.next=a,Pr}function zr(){if(Jn===null){var a=mn.alternate;a=a!==null?a.memoizedState:null}else a=Jn.next;var u=Pr===null?mn.memoizedState:Pr.next;if(u!==null)Pr=u,Jn=a;else{if(a===null)throw mn.alternate===null?Error(r(467)):Error(r(310));Jn=a,a={memoizedState:Jn.memoizedState,baseState:Jn.baseState,baseQueue:Jn.baseQueue,queue:Jn.queue,next:null},Pr===null?mn.memoizedState=Pr=a:Pr=Pr.next=a}return Pr}function Xu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Zu(a){var u=Ku;return Ku+=1,Tl===null&&(Tl=[]),a=tm(Tl,a,u),u=mn,(Pr===null?u.memoizedState:Pr.next)===null&&(u=u.alternate,U.H=u===null||u.memoizedState===null?qb:ym),a}function Ju(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Zu(a);if(a.$$typeof===T)return wo(a)}throw Error(r(438,String(a)))}function f0(a){var u=null,m=mn.updateQueue;if(m!==null&&(u=m.memoCache),u==null){var x=mn.alternate;x!==null&&(x=x.updateQueue,x!==null&&(x=x.memoCache,x!=null&&(u={data:x.data.map(function(O){return O.slice()}),index:0})))}if(u==null&&(u={data:[],index:0}),m===null&&(m=Xu(),mn.updateQueue=m),m.memoCache=u,m=u.data[u.index],m===void 0)for(m=u.data[u.index]=Array(a),x=0;x<a;x++)m[x]=I;return u.index++,m}function ji(a,u){return typeof u=="function"?u(a):u}function gn(a){var u=zr();return h0(u,Jn,a)}function h0(a,u,m){var x=a.queue;if(x===null)throw Error(r(311));x.lastRenderedReducer=m;var O=a.baseQueue,$=x.pending;if($!==null){if(O!==null){var Q=O.next;O.next=$.next,$.next=Q}u.baseQueue=O=$,x.pending=null}if($=a.baseState,O===null)a.memoizedState=$;else{u=O.next;var ee=Q=null,ue=null,ke=u,Fe=!1;do{var Be=ke.lane&-536870913;if(Be!==ke.lane?(Dn&Be)===Be:(Ts&Be)===Be){var Me=ke.revertLane;if(Me===0)ue!==null&&(ue=ue.next={lane:0,revertLane:0,gesture:null,action:ke.action,hasEagerState:ke.hasEagerState,eagerState:ke.eagerState,next:null}),Be===Hu&&(Fe=!0);else if((Ts&Me)===Me){ke=ke.next,Me===Hu&&(Fe=!0);continue}else Be={lane:0,revertLane:ke.revertLane,gesture:null,action:ke.action,hasEagerState:ke.hasEagerState,eagerState:ke.eagerState,next:null},ue===null?(ee=ue=Be,Q=$):ue=ue.next=Be,mn.lanes|=Me,Al|=Me;Be=ke.action,Rc&&m($,Be),$=ke.hasEagerState?ke.eagerState:m($,Be)}else Me={lane:Be,revertLane:ke.revertLane,gesture:ke.gesture,action:ke.action,hasEagerState:ke.hasEagerState,eagerState:ke.eagerState,next:null},ue===null?(ee=ue=Me,Q=$):ue=ue.next=Me,mn.lanes|=Be,Al|=Be;ke=ke.next}while(ke!==null&&ke!==u);if(ue===null?Q=$:ue.next=ee,!Tr($,a.memoizedState)&&(Er=!0,Fe&&(m=qu,m!==null)))throw m;a.memoizedState=$,a.baseState=Q,a.baseQueue=ue,x.lastRenderedState=$}return O===null&&(x.lanes=0),[a.memoizedState,x.dispatch]}function p0(a){var u=zr(),m=u.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=a;var x=m.dispatch,O=m.pending,$=u.memoizedState;if(O!==null){m.pending=null;var Q=O=O.next;do $=a($,Q.action),Q=Q.next;while(Q!==O);Tr($,u.memoizedState)||(Er=!0),u.memoizedState=$,u.baseQueue===null&&(u.baseState=$),m.lastRenderedState=$}return[$,x]}function ed(a,u,m){var x=mn,O=zr(),$=Pn;if($){if(m===void 0)throw Error(r(407));m=m()}else m=u();var Q=!Tr((Jn||O).memoizedState,m);if(Q&&(O.memoizedState=m,Er=!0),O=O.queue,$f(Nb.bind(null,x,O,a),[a]),O.getSnapshot!==u||Q||Pr!==null&&Pr.memoizedState.tag&1){if(x.flags|=2048,ks(9,{destroy:void 0},Pb.bind(null,x,O,m,u),null),sr===null)throw Error(r(349));$||(Ts&127)!==0||m0(x,u,m)}return m}function m0(a,u,m){a.flags|=16384,a={getSnapshot:u,value:m},u=mn.updateQueue,u===null?(u=Xu(),mn.updateQueue=u,u.stores=[a]):(m=u.stores,m===null?u.stores=[a]:m.push(a))}function Pb(a,u,m,x){u.value=m,u.getSnapshot=x,Es(u)&&Ib(a)}function Nb(a,u,m){return m(function(){Es(u)&&Ib(a)})}function Es(a){var u=a.getSnapshot;a=a.value;try{var m=u();return!Tr(a,m)}catch{return!0}}function Ib(a){var u=Ji(a,2);u!==null&&rs(u,a,2)}function td(a){var u=jo();if(typeof a=="function"){var m=a;if(a=m(),Rc){It(!0);try{m()}finally{It(!1)}}}return u.memoizedState=u.baseState=a,u.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ji,lastRenderedState:a},u}function dm(a,u,m,x){return a.baseState=m,h0(a,Jn,typeof x=="function"?x:ji)}function $b(a,u,m,x,O){if(Ff(a))throw Error(r(485));if(a=u.action,a!==null){var $={payload:O,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(Q){$.listeners.push(Q)}};U.T!==null?m(!0):$.isTransition=!1,x($),m=u.pending,m===null?($.next=u.pending=$,g0(u,$)):($.next=m.next,u.pending=m.next=$)}}function g0(a,u){var m=u.action,x=u.payload,O=a.state;if(u.isTransition){var $=U.T,Q={};U.T=Q;try{var ee=m(O,x),ue=U.S;ue!==null&&ue(Q,ee),Zo(a,u,ee)}catch(ke){Pf(a,u,ke)}finally{$!==null&&Q.types!==null&&($.types=Q.types),U.T=$}}else try{$=m(O,x),Zo(a,u,$)}catch(ke){Pf(a,u,ke)}}function Zo(a,u,m){m!==null&&typeof m=="object"&&typeof m.then=="function"?m.then(function(x){Oa(a,u,x)},function(x){return Pf(a,u,x)}):Oa(a,u,m)}function Oa(a,u,m){u.status="fulfilled",u.value=m,y0(u),a.state=m,u=a.pending,u!==null&&(m=u.next,m===u?a.pending=null:(m=m.next,u.next=m,g0(a,m)))}function Pf(a,u,m){var x=a.pending;if(a.pending=null,x!==null){x=x.next;do u.status="rejected",u.reason=m,y0(u),u=u.next;while(u!==x)}a.action=null}function y0(a){a=a.listeners;for(var u=0;u<a.length;u++)(0,a[u])()}function Nf(a,u){return u}function v0(a,u){if(Pn){var m=sr.formState;if(m!==null){e:{var x=mn;if(Pn){if(Yn){t:{for(var O=Yn,$=Ks;O.nodeType!==8;){if(!$){O=null;break t}if(O=ri(O.nextSibling),O===null){O=null;break t}}$=O.data,O=$==="F!"||$==="F"?O:null}if(O){Yn=ri(O.nextSibling),x=O.data==="F!";break e}}vl(x)}x=!1}x&&(u=m[0])}}return m=jo(),m.memoizedState=m.baseState=u,x={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nf,lastRenderedState:u},m.queue=x,m=j0.bind(null,mn,x),x.dispatch=m,x=td(!1),$=rd.bind(null,mn,!1,x.queue),x=jo(),O={state:u,dispatch:null,action:a,pending:null},x.queue=O,m=$b.bind(null,mn,O,$,m),O.dispatch=m,x.memoizedState=a,[u,m,!1]}function fm(a){var u=zr();return b0(u,Jn,a)}function b0(a,u,m){if(u=h0(a,u,Nf)[0],a=gn(ji)[0],typeof u=="object"&&u!==null&&typeof u.then=="function")try{var x=Zu(u)}catch(Q){throw Q===Vu?Mf:Q}else x=u;u=zr();var O=u.queue,$=O.dispatch;return m!==u.memoizedState&&(mn.flags|=2048,ks(9,{destroy:void 0},S0.bind(null,O,m),null)),[x,$,a]}function S0(a,u){a.action=u}function hm(a){var u=zr(),m=Jn;if(m!==null)return b0(u,m,a);zr(),u=u.memoizedState,m=zr();var x=m.queue.dispatch;return m.memoizedState=a,[u,x,!1]}function ks(a,u,m,x){return a={tag:a,create:m,deps:x,inst:u,next:null},u=mn.updateQueue,u===null&&(u=Xu(),mn.updateQueue=u),m=u.lastEffect,m===null?u.lastEffect=a.next=a:(x=m.next,m.next=a,a.next=x,u.lastEffect=a),a}function Lb(){return zr().memoizedState}function Di(a,u,m,x){var O=jo();mn.flags|=a,O.memoizedState=ks(1|u,{destroy:void 0},m,x===void 0?null:x)}function If(a,u,m,x){var O=zr();x=x===void 0?null:x;var $=O.memoizedState.inst;Jn!==null&&x!==null&&am(x,Jn.memoizedState.deps)?O.memoizedState=ks(u,$,m,x):(mn.flags|=a,O.memoizedState=ks(1|u,$,m,x))}function w0(a,u){Di(8390656,8,a,u)}function $f(a,u){If(2048,8,a,u)}function oC(a){mn.flags|=4;var u=mn.updateQueue;if(u===null)u=Xu(),mn.updateQueue=u,u.events=[a];else{var m=u.events;m===null?u.events=[a]:m.push(a)}}function Fb(a){var u=zr().memoizedState;return oC({ref:u,nextImpl:a}),function(){if((Vn&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}function zb(a,u){return If(4,2,a,u)}function x0(a,u){return If(4,4,a,u)}function C0(a,u){if(typeof u=="function"){a=a();var m=u(a);return function(){typeof m=="function"?m():u(null)}}if(u!=null)return a=a(),u.current=a,function(){u.current=null}}function Ub(a,u,m){m=m!=null?m.concat([a]):null,If(4,4,C0.bind(null,u,a),m)}function pm(){}function _0(a,u){var m=zr();u=u===void 0?null:u;var x=m.memoizedState;return u!==null&&am(u,x[1])?x[0]:(m.memoizedState=[a,u],a)}function zo(a,u){var m=zr();u=u===void 0?null:u;var x=m.memoizedState;if(u!==null&&am(u,x[1]))return x[0];if(x=a(),Rc){It(!0);try{a()}finally{It(!1)}}return m.memoizedState=[x,u],x}function ni(a,u,m){return m===void 0||(Ts&1073741824)!==0&&(Dn&261930)===0?a.memoizedState=u:(a.memoizedState=m,a=pS(),mn.lanes|=a,Al|=a,m)}function Bb(a,u,m,x){return Tr(m,u)?m:Ra.current!==null?(a=ni(a,m,x),Tr(a,u)||(Er=!0),a):(Ts&42)===0||(Ts&1073741824)!==0&&(Dn&261930)===0?(Er=!0,a.memoizedState=m):(a=pS(),mn.lanes|=a,Al|=a,u)}function Hb(a,u,m,x,O){var $=q.p;q.p=$!==0&&8>$?$:8;var Q=U.T,ee={};U.T=ee,rd(a,!1,u,m);try{var ue=O(),ke=U.S;if(ke!==null&&ke(ee,ue),ue!==null&&typeof ue=="object"&&typeof ue.then=="function"){var Fe=tC(ue,x);nd(a,u,Fe,Ds(a))}else nd(a,u,x,Ds(a))}catch(Be){nd(a,u,{then:function(){},status:"rejected",reason:Be},Ds())}finally{q.p=$,Q!==null&&ee.types!==null&&(Q.types=ee.types),U.T=Q}}function mm(){}function El(a,u,m,x){if(a.tag!==5)throw Error(r(476));var O=T0(a).queue;Hb(a,O,u,z,m===null?mm:function(){return E0(a),m(x)})}function T0(a){var u=a.memoizedState;if(u!==null)return u;u={memoizedState:z,baseState:z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ji,lastRenderedState:z},next:null};var m={};return u.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ji,lastRenderedState:m},next:null},a.memoizedState=u,a=a.alternate,a!==null&&(a.memoizedState=u),u}function E0(a){var u=T0(a);u.next===null&&(u=a.alternate.memoizedState),nd(a,u.next.queue,{},Ds())}function k0(){return wo(bd)}function M0(){return zr().memoizedState}function Oc(){return zr().memoizedState}function Lf(a){for(var u=a.return;u!==null;){switch(u.tag){case 24:case 3:var m=Ds();a=Cl(m);var x=ki(u,a,m);x!==null&&(rs(x,u,m),jf(x,u,m)),u={cache:_i()},a.payload=u;return}u=u.return}}function sC(a,u,m){var x=Ds();m={lane:x,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Ff(a)?zf(u,m):(m=Wp(a,u,m,x),m!==null&&(rs(m,a,x),gm(m,u,x)))}function j0(a,u,m){var x=Ds();nd(a,u,m,x)}function nd(a,u,m,x){var O={lane:x,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null};if(Ff(a))zf(u,O);else{var $=a.alternate;if(a.lanes===0&&($===null||$.lanes===0)&&($=u.lastRenderedReducer,$!==null))try{var Q=u.lastRenderedState,ee=$(Q,m);if(O.hasEagerState=!0,O.eagerState=ee,Tr(ee,Q))return _c(a,u,O,0),sr===null&&Ci(),!1}catch{}finally{}if(m=Wp(a,u,O,x),m!==null)return rs(m,a,x),gm(m,u,x),!0}return!1}function rd(a,u,m,x){if(x={lane:2,revertLane:As(),gesture:null,action:x,hasEagerState:!1,eagerState:null,next:null},Ff(a)){if(u)throw Error(r(479))}else u=Wp(a,m,x,2),u!==null&&rs(u,a,2)}function Ff(a){var u=a.alternate;return a===mn||u!==null&&u===mn}function zf(a,u){Qu=Rf=!0;var m=a.pending;m===null?u.next=u:(u.next=m.next,m.next=u),a.pending=u}function gm(a,u,m){if((m&4194048)!==0){var x=u.lanes;x&=a.pendingLanes,m|=x,u.lanes=m,ce(a,m)}}var kl={readContext:wo,use:Ju,useCallback:Sr,useContext:Sr,useEffect:Sr,useImperativeHandle:Sr,useLayoutEffect:Sr,useInsertionEffect:Sr,useMemo:Sr,useReducer:Sr,useRef:Sr,useState:Sr,useDebugValue:Sr,useDeferredValue:Sr,useTransition:Sr,useSyncExternalStore:Sr,useId:Sr,useHostTransitionStatus:Sr,useFormState:Sr,useActionState:Sr,useOptimistic:Sr,useMemoCache:Sr,useCacheRefresh:Sr};kl.useEffectEvent=Sr;var qb={readContext:wo,use:Ju,useCallback:function(a,u){return jo().memoizedState=[a,u===void 0?null:u],a},useContext:wo,useEffect:w0,useImperativeHandle:function(a,u,m){m=m!=null?m.concat([a]):null,Di(4194308,4,C0.bind(null,u,a),m)},useLayoutEffect:function(a,u){return Di(4194308,4,a,u)},useInsertionEffect:function(a,u){Di(4,2,a,u)},useMemo:function(a,u){var m=jo();u=u===void 0?null:u;var x=a();if(Rc){It(!0);try{a()}finally{It(!1)}}return m.memoizedState=[x,u],x},useReducer:function(a,u,m){var x=jo();if(m!==void 0){var O=m(u);if(Rc){It(!0);try{m(u)}finally{It(!1)}}}else O=u;return x.memoizedState=x.baseState=O,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:O},x.queue=a,a=a.dispatch=sC.bind(null,mn,a),[x.memoizedState,a]},useRef:function(a){var u=jo();return a={current:a},u.memoizedState=a},useState:function(a){a=td(a);var u=a.queue,m=j0.bind(null,mn,u);return u.dispatch=m,[a.memoizedState,m]},useDebugValue:pm,useDeferredValue:function(a,u){var m=jo();return ni(m,a,u)},useTransition:function(){var a=td(!1);return a=Hb.bind(null,mn,a.queue,!0,!1),jo().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,u,m){var x=mn,O=jo();if(Pn){if(m===void 0)throw Error(r(407));m=m()}else{if(m=u(),sr===null)throw Error(r(349));(Dn&127)!==0||m0(x,u,m)}O.memoizedState=m;var $={value:m,getSnapshot:u};return O.queue=$,w0(Nb.bind(null,x,$,a),[a]),x.flags|=2048,ks(9,{destroy:void 0},Pb.bind(null,x,$,m,u),null),m},useId:function(){var a=jo(),u=sr.identifierPrefix;if(Pn){var m=Qs,x=ea;m=(x&~(1<<32-he(x)-1)).toString(32)+m,u="_"+u+"R_"+m,m=im++,0<m&&(u+="H"+m.toString(32)),u+="_"}else m=nC++,u="_"+u+"r_"+m.toString(32)+"_";return a.memoizedState=u},useHostTransitionStatus:k0,useFormState:v0,useActionState:v0,useOptimistic:function(a){var u=jo();u.memoizedState=u.baseState=a;var m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return u.queue=m,u=rd.bind(null,mn,!0,m),m.dispatch=u,[a,u]},useMemoCache:f0,useCacheRefresh:function(){return jo().memoizedState=Lf.bind(null,mn)},useEffectEvent:function(a){var u=jo(),m={impl:a};return u.memoizedState=m,function(){if((Vn&2)!==0)throw Error(r(440));return m.impl.apply(void 0,arguments)}}},ym={readContext:wo,use:Ju,useCallback:_0,useContext:wo,useEffect:$f,useImperativeHandle:Ub,useInsertionEffect:zb,useLayoutEffect:x0,useMemo:zo,useReducer:gn,useRef:Lb,useState:function(){return gn(ji)},useDebugValue:pm,useDeferredValue:function(a,u){var m=zr();return Bb(m,Jn.memoizedState,a,u)},useTransition:function(){var a=gn(ji)[0],u=zr().memoizedState;return[typeof a=="boolean"?a:Zu(a),u]},useSyncExternalStore:ed,useId:M0,useHostTransitionStatus:k0,useFormState:fm,useActionState:fm,useOptimistic:function(a,u){var m=zr();return dm(m,Jn,a,u)},useMemoCache:f0,useCacheRefresh:Oc};ym.useEffectEvent=Fb;var Uf={readContext:wo,use:Ju,useCallback:_0,useContext:wo,useEffect:$f,useImperativeHandle:Ub,useInsertionEffect:zb,useLayoutEffect:x0,useMemo:zo,useReducer:p0,useRef:Lb,useState:function(){return p0(ji)},useDebugValue:pm,useDeferredValue:function(a,u){var m=zr();return Jn===null?ni(m,a,u):Bb(m,Jn.memoizedState,a,u)},useTransition:function(){var a=p0(ji)[0],u=zr().memoizedState;return[typeof a=="boolean"?a:Zu(a),u]},useSyncExternalStore:ed,useId:M0,useHostTransitionStatus:k0,useFormState:hm,useActionState:hm,useOptimistic:function(a,u){var m=zr();return Jn!==null?dm(m,Jn,a,u):(m.baseState=a,[a,m.queue.dispatch])},useMemoCache:f0,useCacheRefresh:Oc};Uf.useEffectEvent=Fb;function vm(a,u,m,x){u=a.memoizedState,m=m(x,u),m=m==null?u:h({},u,m),a.memoizedState=m,a.lanes===0&&(a.updateQueue.baseState=m)}var Bf={enqueueSetState:function(a,u,m){a=a._reactInternals;var x=Ds(),O=Cl(x);O.payload=u,m!=null&&(O.callback=m),u=ki(a,O,x),u!==null&&(rs(u,a,x),jf(u,a,x))},enqueueReplaceState:function(a,u,m){a=a._reactInternals;var x=Ds(),O=Cl(x);O.tag=1,O.payload=u,m!=null&&(O.callback=m),u=ki(a,O,x),u!==null&&(rs(u,a,x),jf(u,a,x))},enqueueForceUpdate:function(a,u){a=a._reactInternals;var m=Ds(),x=Cl(m);x.tag=2,u!=null&&(x.callback=u),u=ki(a,x,m),u!==null&&(rs(u,a,m),jf(u,a,m))}};function Vb(a,u,m,x,O,$,Q){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(x,$,Q):u.prototype&&u.prototype.isPureReactComponent?!Ru(m,x)||!Ru(O,$):!0}function D0(a,u,m,x){a=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(m,x),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(m,x),u.state!==a&&Bf.enqueueReplaceState(u,u.state,null)}function Uo(a,u){var m=u;if("ref"in u){m={};for(var x in u)x!=="ref"&&(m[x]=u[x])}if(a=a.defaultProps){m===u&&(m=h({},m));for(var O in a)m[O]===void 0&&(m[O]=a[O])}return m}function A0(a){Gp(a)}function R0(a){console.error(a)}function Yb(a){Gp(a)}function Hf(a,u){try{var m=a.onUncaughtError;m(u.value,{componentStack:u.stack})}catch(x){setTimeout(function(){throw x})}}function Gb(a,u,m){try{var x=a.onCaughtError;x(m.value,{componentStack:m.stack,errorBoundary:u.tag===1?u.stateNode:null})}catch(O){setTimeout(function(){throw O})}}function O0(a,u,m){return m=Cl(m),m.tag=3,m.payload={element:null},m.callback=function(){Hf(a,u)},m}function oa(a){return a=Cl(a),a.tag=3,a}function bm(a,u,m,x){var O=m.type.getDerivedStateFromError;if(typeof O=="function"){var $=x.value;a.payload=function(){return O($)},a.callback=function(){Gb(u,m,x)}}var Q=m.stateNode;Q!==null&&typeof Q.componentDidCatch=="function"&&(a.callback=function(){Gb(u,m,x),typeof O!="function"&&(Rl===null?Rl=new Set([this]):Rl.add(this));var ee=x.stack;this.componentDidCatch(x.value,{componentStack:ee!==null?ee:""})})}function P0(a,u,m,x,O){if(m.flags|=32768,x!==null&&typeof x=="object"&&typeof x.then=="function"){if(u=m.alternate,u!==null&&Bu(u,m,O,!0),m=_s.current,m!==null){switch(m.tag){case 31:case 13:return ei===null?Om():m.alternate===null&&kr===0&&(kr=3),m.flags&=-257,m.flags|=65536,m.lanes=O,x===em?m.flags|=16384:(u=m.updateQueue,u===null?m.updateQueue=new Set([x]):u.add(x),cy(a,x,O)),!1;case 22:return m.flags|=65536,x===em?m.flags|=16384:(u=m.updateQueue,u===null?(u={transitions:null,markerInstances:null,retryQueue:new Set([x])},m.updateQueue=u):(m=u.retryQueue,m===null?u.retryQueue=new Set([x]):m.add(x)),cy(a,x,O)),!1}throw Error(r(435,m.tag))}return cy(a,x,O),Om(),!1}if(Pn)return u=_s.current,u!==null?((u.flags&65536)===0&&(u.flags|=256),u.flags|=65536,u.lanes=O,x!==r0&&(a=Error(r(422),{cause:x}),Sl(ws(a,m)))):(x!==r0&&(u=Error(r(423),{cause:x}),Sl(ws(u,m))),a=a.current.alternate,a.flags|=65536,O&=-O,a.lanes|=O,x=ws(x,m),O=O0(a.stateNode,x,O),rm(a,O),kr!==4&&(kr=2)),!1;var $=Error(r(520),{cause:x});if($=ws($,m),rh===null?rh=[$]:rh.push($),kr!==4&&(kr=2),u===null)return!0;x=ws(x,m),m=u;do{switch(m.tag){case 3:return m.flags|=65536,a=O&-O,m.lanes|=a,a=O0(m.stateNode,x,a),rm(m,a),!1;case 1:if(u=m.type,$=m.stateNode,(m.flags&128)===0&&(typeof u.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(Rl===null||!Rl.has($))))return m.flags|=65536,O&=-O,m.lanes|=O,O=oa(O),bm(O,a,m,x),rm(m,O),!1}m=m.return}while(m!==null);return!1}var qf=Error(r(461)),Er=!1;function Nr(a,u,m,x){u.child=a===null?l0(u,null,m,x):xl(u,a.child,m,x)}function zt(a,u,m,x,O){m=m.render;var $=u.ref;if("ref"in x){var Q={};for(var ee in x)ee!=="ref"&&(Q[ee]=x[ee])}else Q=x;return Mc(u),x=lm(a,u,m,Q,$,O),ee=cm(),a!==null&&!Er?(um(a,u,O),sa(a,u,O)):(Pn&&ee&&gl(u),u.flags|=1,Nr(a,u,x,O),u.child)}function Vf(a,u,m,x,O){if(a===null){var $=m.type;return typeof $=="function"&&!ka($)&&$.defaultProps===void 0&&m.compare===null?(u.tag=15,u.type=$,Sm(a,u,$,x,O)):(a=Qp(m.type,null,x,u,u.mode,O),a.ref=u.ref,a.return=u,u.child=a)}if($=a.child,!Tm(a,O)){var Q=$.memoizedProps;if(m=m.compare,m=m!==null?m:Ru,m(Q,x)&&a.ref===u.ref)return sa(a,u,O)}return u.flags|=1,a=Ys($,x),a.ref=u.ref,a.return=u,u.child=a}function Sm(a,u,m,x,O){if(a!==null){var $=a.memoizedProps;if(Ru($,x)&&a.ref===u.ref)if(Er=!1,u.pendingProps=x=$,Tm(a,O))(a.flags&131072)!==0&&(Er=!0);else return u.lanes=a.lanes,sa(a,u,O)}return Cm(a,u,m,x,O)}function Ml(a,u,m,x){var O=x.children,$=a!==null?a.memoizedState:null;if(a===null&&u.stateNode===null&&(u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),x.mode==="hidden"){if((u.flags&128)!==0){if($=$!==null?$.baseLanes|m:m,a!==null){for(x=u.child=a.child,O=0;x!==null;)O=O|x.lanes|x.childLanes,x=x.sibling;x=O&~$}else x=0,u.child=null;return wm(a,u,$,m,x)}if((m&536870912)!==0)u.memoizedState={baseLanes:0,cachePool:null},a!==null&&Zp(u,$!==null?$.cachePool:null),$!==null?c0(u,$):xo(),Ob(u);else return x=u.lanes=536870912,wm(a,u,$!==null?$.baseLanes|m:m,m,x)}else $!==null?(Zp(u,$.cachePool),c0(u,$),ti(),u.memoizedState=null):(a!==null&&Zp(u,null),xo(),ti());return Nr(a,u,O,m),u.child}function Yf(a,u){return a!==null&&a.tag===22||u.stateNode!==null||(u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.sibling}function wm(a,u,m,x,O){var $=i0();return $=$===null?null:{parent:Kr._currentValue,pool:$},u.memoizedState={baseLanes:m,cachePool:$},a!==null&&Zp(u,null),xo(),Ob(u),a!==null&&Bu(a,u,x,!0),u.childLanes=O,null}function Gf(a,u){return u=_m({mode:u.mode,children:u.children},a.mode),u.ref=a.ref,a.child=u,u.return=a,u}function Co(a,u,m){return xl(u,a.child,null,m),a=Gf(u,u.pendingProps),a.flags|=2,Xo(u),u.memoizedState=null,a}function iC(a,u,m){var x=u.pendingProps,O=(u.flags&128)!==0;if(u.flags&=-129,a===null){if(Pn){if(x.mode==="hidden")return a=Gf(u,x),u.lanes=536870912,Yf(null,a);if(Af(u),(a=Yn)?(a=$S(a,Ks),a=a!==null&&a.data==="&"?a:null,a!==null&&(u.memoizedState={dehydrated:a,treeContext:Ma!==null?{id:ea,overflow:Qs}:null,retryLane:536870912,hydrationErrors:null},m=Cf(a),m.return=u,u.child=m,Qr=u,Yn=null)):a=null,a===null)throw vl(u);return u.lanes=536870912,null}return Gf(u,x)}var $=a.memoizedState;if($!==null){var Q=$.dehydrated;if(Af(u),O)if(u.flags&256)u.flags&=-257,u=Co(a,u,m);else if(u.memoizedState!==null)u.child=a.child,u.flags|=128,u=null;else throw Error(r(558));else if(Er||Bu(a,u,m,!1),O=(m&a.childLanes)!==0,Er||O){if(x=sr,x!==null&&(Q=ye(x,m),Q!==0&&Q!==$.retryLane))throw $.retryLane=Q,Ji(a,Q),rs(x,a,Q),qf;Om(),u=Co(a,u,m)}else a=$.treeContext,Yn=ri(Q.nextSibling),Qr=u,Pn=!0,yl=null,Ks=!1,a!==null&&zu(u,a),u=Gf(u,x),u.flags|=4096;return u}return a=Ys(a.child,{mode:x.mode,children:x.children}),a.ref=u.ref,u.child=a,a.return=u,a}function xm(a,u){var m=u.ref;if(m===null)a!==null&&a.ref!==null&&(u.flags|=4194816);else{if(typeof m!="function"&&typeof m!="object")throw Error(r(284));(a===null||a.ref!==m)&&(u.flags|=4194816)}}function Cm(a,u,m,x,O){return Mc(u),m=lm(a,u,m,x,void 0,O),x=cm(),a!==null&&!Er?(um(a,u,O),sa(a,u,O)):(Pn&&x&&gl(u),u.flags|=1,Nr(a,u,m,O),u.child)}function Wb(a,u,m,x,O,$){return Mc(u),u.updateQueue=null,m=Of(u,x,m,O),u0(a),x=cm(),a!==null&&!Er?(um(a,u,$),sa(a,u,$)):(Pn&&x&&gl(u),u.flags|=1,Nr(a,u,m,$),u.child)}function N0(a,u,m,x,O){if(Mc(u),u.stateNode===null){var $=Ea,Q=m.contextType;typeof Q=="object"&&Q!==null&&($=wo(Q)),$=new m(x,$),u.memoizedState=$.state!==null&&$.state!==void 0?$.state:null,$.updater=Bf,u.stateNode=$,$._reactInternals=u,$=u.stateNode,$.props=x,$.state=u.memoizedState,$.refs={},na(u),Q=m.contextType,$.context=typeof Q=="object"&&Q!==null?wo(Q):Ea,$.state=u.memoizedState,Q=m.getDerivedStateFromProps,typeof Q=="function"&&(vm(u,m,Q,x),$.state=u.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof $.getSnapshotBeforeUpdate=="function"||typeof $.UNSAFE_componentWillMount!="function"&&typeof $.componentWillMount!="function"||(Q=$.state,typeof $.componentWillMount=="function"&&$.componentWillMount(),typeof $.UNSAFE_componentWillMount=="function"&&$.UNSAFE_componentWillMount(),Q!==$.state&&Bf.enqueueReplaceState($,$.state,null),Wu(u,x,$,O),Ac(),$.state=u.memoizedState),typeof $.componentDidMount=="function"&&(u.flags|=4194308),x=!0}else if(a===null){$=u.stateNode;var ee=u.memoizedProps,ue=Uo(m,ee);$.props=ue;var ke=$.context,Fe=m.contextType;Q=Ea,typeof Fe=="object"&&Fe!==null&&(Q=wo(Fe));var Be=m.getDerivedStateFromProps;Fe=typeof Be=="function"||typeof $.getSnapshotBeforeUpdate=="function",ee=u.pendingProps!==ee,Fe||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(ee||ke!==Q)&&D0(u,$,x,Q),Js=!1;var Me=u.memoizedState;$.state=Me,Wu(u,x,$,O),Ac(),ke=u.memoizedState,ee||Me!==ke||Js?(typeof Be=="function"&&(vm(u,m,Be,x),ke=u.memoizedState),(ue=Js||Vb(u,m,ue,x,Me,ke,Q))?(Fe||typeof $.UNSAFE_componentWillMount!="function"&&typeof $.componentWillMount!="function"||(typeof $.componentWillMount=="function"&&$.componentWillMount(),typeof $.UNSAFE_componentWillMount=="function"&&$.UNSAFE_componentWillMount()),typeof $.componentDidMount=="function"&&(u.flags|=4194308)):(typeof $.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=x,u.memoizedState=ke),$.props=x,$.state=ke,$.context=Q,x=ue):(typeof $.componentDidMount=="function"&&(u.flags|=4194308),x=!1)}else{$=u.stateNode,nm(a,u),Q=u.memoizedProps,Fe=Uo(m,Q),$.props=Fe,Be=u.pendingProps,Me=$.context,ke=m.contextType,ue=Ea,typeof ke=="object"&&ke!==null&&(ue=wo(ke)),ee=m.getDerivedStateFromProps,(ke=typeof ee=="function"||typeof $.getSnapshotBeforeUpdate=="function")||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(Q!==Be||Me!==ue)&&D0(u,$,x,ue),Js=!1,Me=u.memoizedState,$.state=Me,Wu(u,x,$,O),Ac();var Oe=u.memoizedState;Q!==Be||Me!==Oe||Js||a!==null&&a.dependencies!==null&&Xp(a.dependencies)?(typeof ee=="function"&&(vm(u,m,ee,x),Oe=u.memoizedState),(Fe=Js||Vb(u,m,Fe,x,Me,Oe,ue)||a!==null&&a.dependencies!==null&&Xp(a.dependencies))?(ke||typeof $.UNSAFE_componentWillUpdate!="function"&&typeof $.componentWillUpdate!="function"||(typeof $.componentWillUpdate=="function"&&$.componentWillUpdate(x,Oe,ue),typeof $.UNSAFE_componentWillUpdate=="function"&&$.UNSAFE_componentWillUpdate(x,Oe,ue)),typeof $.componentDidUpdate=="function"&&(u.flags|=4),typeof $.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof $.componentDidUpdate!="function"||Q===a.memoizedProps&&Me===a.memoizedState||(u.flags|=4),typeof $.getSnapshotBeforeUpdate!="function"||Q===a.memoizedProps&&Me===a.memoizedState||(u.flags|=1024),u.memoizedProps=x,u.memoizedState=Oe),$.props=x,$.state=Oe,$.context=ue,x=Fe):(typeof $.componentDidUpdate!="function"||Q===a.memoizedProps&&Me===a.memoizedState||(u.flags|=4),typeof $.getSnapshotBeforeUpdate!="function"||Q===a.memoizedProps&&Me===a.memoizedState||(u.flags|=1024),x=!1)}return $=x,xm(a,u),x=(u.flags&128)!==0,$||x?($=u.stateNode,m=x&&typeof m.getDerivedStateFromError!="function"?null:$.render(),u.flags|=1,a!==null&&x?(u.child=xl(u,a.child,null,O),u.child=xl(u,null,m,O)):Nr(a,u,m,O),u.memoizedState=$.state,a=u.child):a=sa(a,u,O),a}function Qb(a,u,m,x){return te(),u.flags|=256,Nr(a,u,m,x),u.child}var I0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $0(a){return{baseLanes:a,cachePool:jb()}}function Ai(a,u,m){return a=a!==null?a.childLanes&~m:0,u&&(a|=js),a}function Do(a,u,m){var x=u.pendingProps,O=!1,$=(u.flags&128)!==0,Q;if((Q=$)||(Q=a!==null&&a.memoizedState===null?!1:(Fr.current&2)!==0),Q&&(O=!0,u.flags&=-129),Q=(u.flags&32)!==0,u.flags&=-33,a===null){if(Pn){if(O?_l(u):ti(),(a=Yn)?(a=$S(a,Ks),a=a!==null&&a.data!=="&"?a:null,a!==null&&(u.memoizedState={dehydrated:a,treeContext:Ma!==null?{id:ea,overflow:Qs}:null,retryLane:536870912,hydrationErrors:null},m=Cf(a),m.return=u,u.child=m,Qr=u,Yn=null)):a=null,a===null)throw vl(u);return hd(a)?u.lanes=32:u.lanes=536870912,null}var ee=x.children;return x=x.fallback,O?(ti(),O=u.mode,ee=_m({mode:"hidden",children:ee},O),x=Tc(x,O,m,null),ee.return=u,x.return=u,ee.sibling=x,u.child=ee,x=u.child,x.memoizedState=$0(m),x.childLanes=Ai(a,Q,m),u.memoizedState=I0,Yf(null,x)):(_l(u),Wf(u,ee))}var ue=a.memoizedState;if(ue!==null&&(ee=ue.dehydrated,ee!==null)){if($)u.flags&256?(_l(u),u.flags&=-257,u=Qf(a,u,m)):u.memoizedState!==null?(ti(),u.child=a.child,u.flags|=128,u=null):(ti(),ee=x.fallback,O=u.mode,x=_m({mode:"visible",children:x.children},O),ee=Tc(ee,O,m,null),ee.flags|=2,x.return=u,ee.return=u,x.sibling=ee,u.child=x,xl(u,a.child,null,m),x=u.child,x.memoizedState=$0(m),x.childLanes=Ai(a,Q,m),u.memoizedState=I0,u=Yf(null,x));else if(_l(u),hd(ee)){if(Q=ee.nextSibling&&ee.nextSibling.dataset,Q)var ke=Q.dgst;Q=ke,x=Error(r(419)),x.stack="",x.digest=Q,Sl({value:x,source:null,stack:null}),u=Qf(a,u,m)}else if(Er||Bu(a,u,m,!1),Q=(m&a.childLanes)!==0,Er||Q){if(Q=sr,Q!==null&&(x=ye(Q,m),x!==0&&x!==ue.retryLane))throw ue.retryLane=x,Ji(a,x),rs(Q,a,x),qf;Bm(ee)||Om(),u=Qf(a,u,m)}else Bm(ee)?(u.flags|=192,u.child=a.child,u=null):(a=ue.treeContext,Yn=ri(ee.nextSibling),Qr=u,Pn=!0,yl=null,Ks=!1,a!==null&&zu(u,a),u=Wf(u,x.children),u.flags|=4096);return u}return O?(ti(),ee=x.fallback,O=u.mode,ue=a.child,ke=ue.sibling,x=Ys(ue,{mode:"hidden",children:x.children}),x.subtreeFlags=ue.subtreeFlags&65011712,ke!==null?ee=Ys(ke,ee):(ee=Tc(ee,O,m,null),ee.flags|=2),ee.return=u,x.return=u,x.sibling=ee,u.child=x,Yf(null,x),x=u.child,ee=a.child.memoizedState,ee===null?ee=$0(m):(O=ee.cachePool,O!==null?(ue=Kr._currentValue,O=O.parent!==ue?{parent:ue,pool:ue}:O):O=jb(),ee={baseLanes:ee.baseLanes|m,cachePool:O}),x.memoizedState=ee,x.childLanes=Ai(a,Q,m),u.memoizedState=I0,Yf(a.child,x)):(_l(u),m=a.child,a=m.sibling,m=Ys(m,{mode:"visible",children:x.children}),m.return=u,m.sibling=null,a!==null&&(Q=u.deletions,Q===null?(u.deletions=[a],u.flags|=16):Q.push(a)),u.child=m,u.memoizedState=null,m)}function Wf(a,u){return u=_m({mode:"visible",children:u},a.mode),u.return=a,a.child=u}function _m(a,u){return a=So(22,a,null,u),a.lanes=0,a}function Qf(a,u,m){return xl(u,a.child,null,m),a=Wf(u,u.pendingProps.children),a.flags|=2,u.memoizedState=null,a}function Kb(a,u,m){a.lanes|=u;var x=a.alternate;x!==null&&(x.lanes|=u),Aa(a.return,u,m)}function L0(a,u,m,x,O,$){var Q=a.memoizedState;Q===null?a.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:x,tail:m,tailMode:O,treeForkCount:$}:(Q.isBackwards=u,Q.rendering=null,Q.renderingStartTime=0,Q.last=x,Q.tail=m,Q.tailMode=O,Q.treeForkCount=$)}function od(a,u,m){var x=u.pendingProps,O=x.revealOrder,$=x.tail;x=x.children;var Q=Fr.current,ee=(Q&2)!==0;if(ee?(Q=Q&1|2,u.flags|=128):Q&=1,J(Fr,Q),Nr(a,u,x,m),x=Pn?Wr:0,!ee&&a!==null&&(a.flags&128)!==0)e:for(a=u.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&Kb(a,m,u);else if(a.tag===19)Kb(a,m,u);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===u)break e;for(;a.sibling===null;){if(a.return===null||a.return===u)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(O){case"forwards":for(m=u.child,O=null;m!==null;)a=m.alternate,a!==null&&sm(a)===null&&(O=m),m=m.sibling;m=O,m===null?(O=u.child,u.child=null):(O=m.sibling,m.sibling=null),L0(u,!1,O,m,$,x);break;case"backwards":case"unstable_legacy-backwards":for(m=null,O=u.child,u.child=null;O!==null;){if(a=O.alternate,a!==null&&sm(a)===null){u.child=O;break}a=O.sibling,O.sibling=m,m=O,O=a}L0(u,!0,m,null,$,x);break;case"together":L0(u,!1,null,null,void 0,x);break;default:u.memoizedState=null}return u.child}function sa(a,u,m){if(a!==null&&(u.dependencies=a.dependencies),Al|=u.lanes,(m&u.childLanes)===0)if(a!==null){if(Bu(a,u,m,!1),(m&u.childLanes)===0)return null}else return null;if(a!==null&&u.child!==a.child)throw Error(r(153));if(u.child!==null){for(a=u.child,m=Ys(a,a.pendingProps),u.child=m,m.return=u;a.sibling!==null;)a=a.sibling,m=m.sibling=Ys(a,a.pendingProps),m.return=u;m.sibling=null}return u.child}function Tm(a,u){return(a.lanes&u)!==0?!0:(a=a.dependencies,!!(a!==null&&Xp(a)))}function aC(a,u,m){switch(u.tag){case 3:de(u,u.stateNode.containerInfo),wl(u,Kr,a.memoizedState.cache),te();break;case 27:case 5:fe(u);break;case 4:de(u,u.stateNode.containerInfo);break;case 10:wl(u,u.type,u.memoizedProps.value);break;case 31:if(u.memoizedState!==null)return u.flags|=128,Af(u),null;break;case 13:var x=u.memoizedState;if(x!==null)return x.dehydrated!==null?(_l(u),u.flags|=128,null):(m&u.child.childLanes)!==0?Do(a,u,m):(_l(u),a=sa(a,u,m),a!==null?a.sibling:null);_l(u);break;case 19:var O=(a.flags&128)!==0;if(x=(m&u.childLanes)!==0,x||(Bu(a,u,m,!1),x=(m&u.childLanes)!==0),O){if(x)return od(a,u,m);u.flags|=128}if(O=u.memoizedState,O!==null&&(O.rendering=null,O.tail=null,O.lastEffect=null),J(Fr,Fr.current),x)break;return null;case 22:return u.lanes=0,Ml(a,u,m,u.pendingProps);case 24:wl(u,Kr,a.memoizedState.cache)}return sa(a,u,m)}function Xb(a,u,m){if(a!==null)if(a.memoizedProps!==u.pendingProps)Er=!0;else{if(!Tm(a,m)&&(u.flags&128)===0)return Er=!1,aC(a,u,m);Er=(a.flags&131072)!==0}else Er=!1,Pn&&(u.flags&1048576)!==0&&Kp(u,Wr,u.index);switch(u.lanes=0,u.tag){case 16:e:{var x=u.pendingProps;if(a=Ti(u.elementType),u.type=a,typeof a=="function")ka(a)?(x=Uo(a,x),u.tag=1,u=N0(null,u,a,x,m)):(u.tag=0,u=Cm(null,u,a,x,m));else{if(a!=null){var O=a.$$typeof;if(O===M){u.tag=11,u=zt(null,u,a,x,m);break e}else if(O===k){u.tag=14,u=Vf(null,u,a,x,m);break e}}throw u=B(a)||a,Error(r(306,u,""))}}return u;case 0:return Cm(a,u,u.type,u.pendingProps,m);case 1:return x=u.type,O=Uo(x,u.pendingProps),N0(a,u,x,O,m);case 3:e:{if(de(u,u.stateNode.containerInfo),a===null)throw Error(r(387));x=u.pendingProps;var $=u.memoizedState;O=$.element,nm(a,u),Wu(u,x,null,m);var Q=u.memoizedState;if(x=Q.cache,wl(u,Kr,x),x!==$.cache&&o0(u,[Kr],m,!0),Ac(),x=Q.element,$.isDehydrated)if($={element:x,isDehydrated:!1,cache:Q.cache},u.updateQueue.baseState=$,u.memoizedState=$,u.flags&256){u=Qb(a,u,x,m);break e}else if(x!==O){O=ws(Error(r(424)),u),Sl(O),u=Qb(a,u,x,m);break e}else{switch(a=u.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(Yn=ri(a.firstChild),Qr=u,Pn=!0,yl=null,Ks=!0,m=l0(u,null,x,m),u.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling}else{if(te(),x===O){u=sa(a,u,m);break e}Nr(a,u,x,m)}u=u.child}return u;case 26:return xm(a,u),a===null?(m=HS(u.type,null,u.pendingProps,null))?u.memoizedState=m:Pn||(m=u.type,a=u.pendingProps,x=mh(ie.current).createElement(m),x[et]=u,x[Ge]=a,_o(x,m,a),Rr(x),u.stateNode=x):u.memoizedState=HS(u.type,a.memoizedProps,u.pendingProps,a.memoizedState),null;case 27:return fe(u),a===null&&Pn&&(x=u.stateNode=zS(u.type,u.pendingProps,ie.current),Qr=u,Ks=!0,O=Yn,Wt(u.type)?(wy=O,Yn=ri(x.firstChild)):Yn=O),Nr(a,u,u.pendingProps.children,m),xm(a,u),a===null&&(u.flags|=4194304),u.child;case 5:return a===null&&Pn&&((O=x=Yn)&&(x=CC(x,u.type,u.pendingProps,Ks),x!==null?(u.stateNode=x,Qr=u,Yn=ri(x.firstChild),Ks=!1,O=!0):O=!1),O||vl(u)),fe(u),O=u.type,$=u.pendingProps,Q=a!==null?a.memoizedProps:null,x=$.children,Il(O,$)?x=null:Q!==null&&Il(O,Q)&&(u.flags|=32),u.memoizedState!==null&&(O=lm(a,u,rC,null,null,m),bd._currentValue=O),xm(a,u),Nr(a,u,x,m),u.child;case 6:return a===null&&Pn&&((a=m=Yn)&&(m=Gn(m,u.pendingProps,Ks),m!==null?(u.stateNode=m,Qr=u,Yn=null,a=!0):a=!1),a||vl(u)),null;case 13:return Do(a,u,m);case 4:return de(u,u.stateNode.containerInfo),x=u.pendingProps,a===null?u.child=xl(u,null,x,m):Nr(a,u,x,m),u.child;case 11:return zt(a,u,u.type,u.pendingProps,m);case 7:return Nr(a,u,u.pendingProps,m),u.child;case 8:return Nr(a,u,u.pendingProps.children,m),u.child;case 12:return Nr(a,u,u.pendingProps.children,m),u.child;case 10:return x=u.pendingProps,wl(u,u.type,x.value),Nr(a,u,x.children,m),u.child;case 9:return O=u.type._context,x=u.pendingProps.children,Mc(u),O=wo(O),x=x(O),u.flags|=1,Nr(a,u,x,m),u.child;case 14:return Vf(a,u,u.type,u.pendingProps,m);case 15:return Sm(a,u,u.type,u.pendingProps,m);case 19:return od(a,u,m);case 31:return iC(a,u,m);case 22:return Ml(a,u,m,u.pendingProps);case 24:return Mc(u),x=wo(Kr),a===null?(O=i0(),O===null&&(O=sr,$=_i(),O.pooledCache=$,$.refCount++,$!==null&&(O.pooledCacheLanes|=m),O=$),u.memoizedState={parent:x,cache:O},na(u),wl(u,Kr,O)):((a.lanes&m)!==0&&(nm(a,u),Wu(u,null,null,m),Ac()),O=a.memoizedState,$=u.memoizedState,O.parent!==x?(O={parent:x,cache:x},u.memoizedState=O,u.lanes===0&&(u.memoizedState=u.updateQueue.baseState=O),wl(u,Kr,x)):(x=$.cache,wl(u,Kr,x),x!==O.cache&&o0(u,[Kr],m,!0))),Nr(a,u,u.pendingProps.children,m),u.child;case 29:throw u.pendingProps}throw Error(r(156,u.tag))}function Pa(a){a.flags|=4}function F0(a,u,m,x,O){if((u=(a.mode&32)!==0)&&(u=!1),u){if(a.flags|=16777216,(O&335544128)===O)if(a.stateNode.complete)a.flags|=8192;else if(ih())a.flags|=8192;else throw ta=em,Jp}else a.flags&=-16777217}function z0(a,u){if(u.type!=="stylesheet"||(u.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!WS(u))if(ih())a.flags|=8192;else throw ta=em,Jp}function Kf(a,u){u!==null&&(a.flags|=4),a.flags&16384&&(u=a.tag!==22?Yt():536870912,a.lanes|=u,ld|=u)}function Xf(a,u){if(!Pn)switch(a.tailMode){case"hidden":u=a.tail;for(var m=null;u!==null;)u.alternate!==null&&(m=u),u=u.sibling;m===null?a.tail=null:m.sibling=null;break;case"collapsed":m=a.tail;for(var x=null;m!==null;)m.alternate!==null&&(x=m),m=m.sibling;x===null?u||a.tail===null?a.tail=null:a.tail.sibling=null:x.sibling=null}}function or(a){var u=a.alternate!==null&&a.alternate.child===a.child,m=0,x=0;if(u)for(var O=a.child;O!==null;)m|=O.lanes|O.childLanes,x|=O.subtreeFlags&65011712,x|=O.flags&65011712,O.return=a,O=O.sibling;else for(O=a.child;O!==null;)m|=O.lanes|O.childLanes,x|=O.subtreeFlags,x|=O.flags,O.return=a,O=O.sibling;return a.subtreeFlags|=x,a.childLanes=m,u}function Zb(a,u,m){var x=u.pendingProps;switch(Ec(u),u.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return or(u),null;case 1:return or(u),null;case 3:return m=u.stateNode,x=null,a!==null&&(x=a.memoizedState.cache),u.memoizedState.cache!==x&&(u.flags|=2048),Da(Kr),pe(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(a===null||a.child===null)&&(kc(u)?Pa(u):a===null||a.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,bl())),or(u),null;case 26:var O=u.type,$=u.memoizedState;return a===null?(Pa(u),$!==null?(or(u),z0(u,$)):(or(u),F0(u,O,null,x,m))):$?$!==a.memoizedState?(Pa(u),or(u),z0(u,$)):(or(u),u.flags&=-16777217):(a=a.memoizedProps,a!==x&&Pa(u),or(u),F0(u,O,a,x,m)),null;case 27:if(Te(u),m=ie.current,O=u.type,a!==null&&u.stateNode!=null)a.memoizedProps!==x&&Pa(u);else{if(!x){if(u.stateNode===null)throw Error(r(166));return or(u),null}a=ne.current,kc(u)?Tf(u):(a=zS(O,x,m),u.stateNode=a,Pa(u))}return or(u),null;case 5:if(Te(u),O=u.type,a!==null&&u.stateNode!=null)a.memoizedProps!==x&&Pa(u);else{if(!x){if(u.stateNode===null)throw Error(r(166));return or(u),null}if($=ne.current,kc(u))Tf(u);else{var Q=mh(ie.current);switch($){case 1:$=Q.createElementNS("http://www.w3.org/2000/svg",O);break;case 2:$=Q.createElementNS("http://www.w3.org/1998/Math/MathML",O);break;default:switch(O){case"svg":$=Q.createElementNS("http://www.w3.org/2000/svg",O);break;case"math":$=Q.createElementNS("http://www.w3.org/1998/Math/MathML",O);break;case"script":$=Q.createElement("div"),$.innerHTML="<script><\/script>",$=$.removeChild($.firstChild);break;case"select":$=typeof x.is=="string"?Q.createElement("select",{is:x.is}):Q.createElement("select"),x.multiple?$.multiple=!0:x.size&&($.size=x.size);break;default:$=typeof x.is=="string"?Q.createElement(O,{is:x.is}):Q.createElement(O)}}$[et]=u,$[Ge]=x;e:for(Q=u.child;Q!==null;){if(Q.tag===5||Q.tag===6)$.appendChild(Q.stateNode);else if(Q.tag!==4&&Q.tag!==27&&Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===u)break e;for(;Q.sibling===null;){if(Q.return===null||Q.return===u)break e;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling}u.stateNode=$;e:switch(_o($,O,x),O){case"button":case"input":case"select":case"textarea":x=!!x.autoFocus;break e;case"img":x=!0;break e;default:x=!1}x&&Pa(u)}}return or(u),F0(u,u.type,a===null?null:a.memoizedProps,u.pendingProps,m),null;case 6:if(a&&u.stateNode!=null)a.memoizedProps!==x&&Pa(u);else{if(typeof x!="string"&&u.stateNode===null)throw Error(r(166));if(a=ie.current,kc(u)){if(a=u.stateNode,m=u.memoizedProps,x=null,O=Qr,O!==null)switch(O.tag){case 27:case 5:x=O.memoizedProps}a[et]=u,a=!!(a.nodeValue===m||x!==null&&x.suppressHydrationWarning===!0||OS(a.nodeValue,m)),a||vl(u,!0)}else a=mh(a).createTextNode(x),a[et]=u,u.stateNode=a}return or(u),null;case 31:if(m=u.memoizedState,a===null||a.memoizedState!==null){if(x=kc(u),m!==null){if(a===null){if(!x)throw Error(r(318));if(a=u.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(557));a[et]=u}else te(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;or(u),a=!1}else m=bl(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=m),a=!0;if(!a)return u.flags&256?(Xo(u),u):(Xo(u),null);if((u.flags&128)!==0)throw Error(r(558))}return or(u),null;case 13:if(x=u.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(O=kc(u),x!==null&&x.dehydrated!==null){if(a===null){if(!O)throw Error(r(318));if(O=u.memoizedState,O=O!==null?O.dehydrated:null,!O)throw Error(r(317));O[et]=u}else te(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;or(u),O=!1}else O=bl(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=O),O=!0;if(!O)return u.flags&256?(Xo(u),u):(Xo(u),null)}return Xo(u),(u.flags&128)!==0?(u.lanes=m,u):(m=x!==null,a=a!==null&&a.memoizedState!==null,m&&(x=u.child,O=null,x.alternate!==null&&x.alternate.memoizedState!==null&&x.alternate.memoizedState.cachePool!==null&&(O=x.alternate.memoizedState.cachePool.pool),$=null,x.memoizedState!==null&&x.memoizedState.cachePool!==null&&($=x.memoizedState.cachePool.pool),$!==O&&(x.flags|=2048)),m!==a&&m&&(u.child.flags|=8192),Kf(u,u.updateQueue),or(u),null);case 4:return pe(),a===null&&py(u.stateNode.containerInfo),or(u),null;case 10:return Da(u.type),or(u),null;case 19:if(X(Fr),x=u.memoizedState,x===null)return or(u),null;if(O=(u.flags&128)!==0,$=x.rendering,$===null)if(O)Xf(x,!1);else{if(kr!==0||a!==null&&(a.flags&128)!==0)for(a=u.child;a!==null;){if($=sm(a),$!==null){for(u.flags|=128,Xf(x,!1),a=$.updateQueue,u.updateQueue=a,Kf(u,a),u.subtreeFlags=0,a=m,m=u.child;m!==null;)Tb(m,a),m=m.sibling;return J(Fr,Fr.current&1|2),Pn&&xs(u,x.treeForkCount),u.child}a=a.sibling}x.tail!==null&&ct()>Ic&&(u.flags|=128,O=!0,Xf(x,!1),u.lanes=4194304)}else{if(!O)if(a=sm($),a!==null){if(u.flags|=128,O=!0,a=a.updateQueue,u.updateQueue=a,Kf(u,a),Xf(x,!0),x.tail===null&&x.tailMode==="hidden"&&!$.alternate&&!Pn)return or(u),null}else 2*ct()-x.renderingStartTime>Ic&&m!==536870912&&(u.flags|=128,O=!0,Xf(x,!1),u.lanes=4194304);x.isBackwards?($.sibling=u.child,u.child=$):(a=x.last,a!==null?a.sibling=$:u.child=$,x.last=$)}return x.tail!==null?(a=x.tail,x.rendering=a,x.tail=a.sibling,x.renderingStartTime=ct(),a.sibling=null,m=Fr.current,J(Fr,O?m&1|2:m&1),Pn&&xs(u,x.treeForkCount),a):(or(u),null);case 22:case 23:return Xo(u),Df(),x=u.memoizedState!==null,a!==null?a.memoizedState!==null!==x&&(u.flags|=8192):x&&(u.flags|=8192),x?(m&536870912)!==0&&(u.flags&128)===0&&(or(u),u.subtreeFlags&6&&(u.flags|=8192)):or(u),m=u.updateQueue,m!==null&&Kf(u,m.retryQueue),m=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(m=a.memoizedState.cachePool.pool),x=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(x=u.memoizedState.cachePool.pool),x!==m&&(u.flags|=2048),a!==null&&X(Dc),null;case 24:return m=null,a!==null&&(m=a.memoizedState.cache),u.memoizedState.cache!==m&&(u.flags|=2048),Da(Kr),or(u),null;case 25:return null;case 30:return null}throw Error(r(156,u.tag))}function Zf(a,u){switch(Ec(u),u.tag){case 1:return a=u.flags,a&65536?(u.flags=a&-65537|128,u):null;case 3:return Da(Kr),pe(),a=u.flags,(a&65536)!==0&&(a&128)===0?(u.flags=a&-65537|128,u):null;case 26:case 27:case 5:return Te(u),null;case 31:if(u.memoizedState!==null){if(Xo(u),u.alternate===null)throw Error(r(340));te()}return a=u.flags,a&65536?(u.flags=a&-65537|128,u):null;case 13:if(Xo(u),a=u.memoizedState,a!==null&&a.dehydrated!==null){if(u.alternate===null)throw Error(r(340));te()}return a=u.flags,a&65536?(u.flags=a&-65537|128,u):null;case 19:return X(Fr),null;case 4:return pe(),null;case 10:return Da(u.type),null;case 22:case 23:return Xo(u),Df(),a!==null&&X(Dc),a=u.flags,a&65536?(u.flags=a&-65537|128,u):null;case 24:return Da(Kr),null;case 25:return null;default:return null}}function Em(a,u){switch(Ec(u),u.tag){case 3:Da(Kr),pe();break;case 26:case 27:case 5:Te(u);break;case 4:pe();break;case 31:u.memoizedState!==null&&Xo(u);break;case 13:Xo(u);break;case 19:X(Fr);break;case 10:Da(u.type);break;case 22:case 23:Xo(u),Df(),a!==null&&X(Dc);break;case 24:Da(Kr)}}function sd(a,u){try{var m=u.updateQueue,x=m!==null?m.lastEffect:null;if(x!==null){var O=x.next;m=O;do{if((m.tag&a)===a){x=void 0;var $=m.create,Q=m.inst;x=$(),Q.destroy=x}m=m.next}while(m!==O)}}catch(ee){Kn(u,u.return,ee)}}function Na(a,u,m){try{var x=u.updateQueue,O=x!==null?x.lastEffect:null;if(O!==null){var $=O.next;x=$;do{if((x.tag&a)===a){var Q=x.inst,ee=Q.destroy;if(ee!==void 0){Q.destroy=void 0,O=u;var ue=m,ke=ee;try{ke()}catch(Fe){Kn(O,ue,Fe)}}}x=x.next}while(x!==$)}}catch(Fe){Kn(u,u.return,Fe)}}function Jf(a){var u=a.updateQueue;if(u!==null){var m=a.stateNode;try{om(u,m)}catch(x){Kn(a,a.return,x)}}}function U0(a,u,m){m.props=Uo(a.type,a.memoizedProps),m.state=a.memoizedState;try{m.componentWillUnmount()}catch(x){Kn(a,u,x)}}function Jo(a,u){try{var m=a.ref;if(m!==null){switch(a.tag){case 26:case 27:case 5:var x=a.stateNode;break;case 30:x=a.stateNode;break;default:x=a.stateNode}typeof m=="function"?a.refCleanup=m(x):m.current=x}}catch(O){Kn(a,u,O)}}function Ao(a,u){var m=a.ref,x=a.refCleanup;if(m!==null)if(typeof x=="function")try{x()}catch(O){Kn(a,u,O)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof m=="function")try{m(null)}catch(O){Kn(a,u,O)}else m.current=null}function Jb(a){var u=a.type,m=a.memoizedProps,x=a.stateNode;try{e:switch(u){case"button":case"input":case"select":case"textarea":m.autoFocus&&x.focus();break e;case"img":m.src?x.src=m.src:m.srcSet&&(x.srcset=m.srcSet)}}catch(O){Kn(a,a.return,O)}}function km(a,u,m){try{var x=a.stateNode;SC(x,a.type,m,u),x[Ge]=u}catch(O){Kn(a,a.return,O)}}function eS(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Wt(a.type)||a.tag===4}function B0(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||eS(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&Wt(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function H0(a,u,m){var x=a.tag;if(x===5||x===6)a=a.stateNode,u?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(a,u):(u=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,u.appendChild(a),m=m._reactRootContainer,m!=null||u.onclick!==null||(u.onclick=Ca));else if(x!==4&&(x===27&&Wt(a.type)&&(m=a.stateNode,u=null),a=a.child,a!==null))for(H0(a,u,m),a=a.sibling;a!==null;)H0(a,u,m),a=a.sibling}function Mm(a,u,m){var x=a.tag;if(x===5||x===6)a=a.stateNode,u?m.insertBefore(a,u):m.appendChild(a);else if(x!==4&&(x===27&&Wt(a.type)&&(m=a.stateNode),a=a.child,a!==null))for(Mm(a,u,m),a=a.sibling;a!==null;)Mm(a,u,m),a=a.sibling}function tS(a){var u=a.stateNode,m=a.memoizedProps;try{for(var x=a.type,O=u.attributes;O.length;)u.removeAttributeNode(O[0]);_o(u,x,m),u[et]=a,u[Ge]=m}catch($){Kn(a,a.return,$)}}var Ia=!1,Xr=!1,q0=!1,nS=typeof WeakSet=="function"?WeakSet:Set,ho=null;function lC(a,u){if(a=a.containerInfo,ph=Qm,a=wb(a),t0(a)){if("selectionStart"in a)var m={start:a.selectionStart,end:a.selectionEnd};else e:{m=(m=a.ownerDocument)&&m.defaultView||window;var x=m.getSelection&&m.getSelection();if(x&&x.rangeCount!==0){m=x.anchorNode;var O=x.anchorOffset,$=x.focusNode;x=x.focusOffset;try{m.nodeType,$.nodeType}catch{m=null;break e}var Q=0,ee=-1,ue=-1,ke=0,Fe=0,Be=a,Me=null;t:for(;;){for(var Oe;Be!==m||O!==0&&Be.nodeType!==3||(ee=Q+O),Be!==$||x!==0&&Be.nodeType!==3||(ue=Q+x),Be.nodeType===3&&(Q+=Be.nodeValue.length),(Oe=Be.firstChild)!==null;)Me=Be,Be=Oe;for(;;){if(Be===a)break t;if(Me===m&&++ke===O&&(ee=Q),Me===$&&++Fe===x&&(ue=Q),(Oe=Be.nextSibling)!==null)break;Be=Me,Me=Be.parentNode}Be=Oe}m=ee===-1||ue===-1?null:{start:ee,end:ue}}else m=null}m=m||{start:0,end:0}}else m=null;for(vy={focusedElem:a,selectionRange:m},Qm=!1,ho=u;ho!==null;)if(u=ho,a=u.child,(u.subtreeFlags&1028)!==0&&a!==null)a.return=u,ho=a;else for(;ho!==null;){switch(u=ho,$=u.alternate,a=u.flags,u.tag){case 0:if((a&4)!==0&&(a=u.updateQueue,a=a!==null?a.events:null,a!==null))for(m=0;m<a.length;m++)O=a[m],O.ref.impl=O.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&$!==null){a=void 0,m=u,O=$.memoizedProps,$=$.memoizedState,x=m.stateNode;try{var xt=Uo(m.type,O);a=x.getSnapshotBeforeUpdate(xt,$),x.__reactInternalSnapshotBeforeUpdate=a}catch(Bt){Kn(m,m.return,Bt)}}break;case 3:if((a&1024)!==0){if(a=u.stateNode.containerInfo,m=a.nodeType,m===9)Um(a);else if(m===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Um(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=u.sibling,a!==null){a.return=u.return,ho=a;break}ho=u.return}}function V0(a,u,m){var x=m.flags;switch(m.tag){case 0:case 11:case 15:La(a,m),x&4&&sd(5,m);break;case 1:if(La(a,m),x&4)if(a=m.stateNode,u===null)try{a.componentDidMount()}catch(Q){Kn(m,m.return,Q)}else{var O=Uo(m.type,u.memoizedProps);u=u.memoizedState;try{a.componentDidUpdate(O,u,a.__reactInternalSnapshotBeforeUpdate)}catch(Q){Kn(m,m.return,Q)}}x&64&&Jf(m),x&512&&Jo(m,m.return);break;case 3:if(La(a,m),x&64&&(a=m.updateQueue,a!==null)){if(u=null,m.child!==null)switch(m.child.tag){case 27:case 5:u=m.child.stateNode;break;case 1:u=m.child.stateNode}try{om(a,u)}catch(Q){Kn(m,m.return,Q)}}break;case 27:u===null&&x&4&&tS(m);case 26:case 5:La(a,m),u===null&&x&4&&Jb(m),x&512&&Jo(m,m.return);break;case 12:La(a,m);break;case 31:La(a,m),x&4&&G0(a,m);break;case 13:La(a,m),x&4&&oS(a,m),x&64&&(a=m.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(m=Im.bind(null,m),_C(a,m))));break;case 22:if(x=m.memoizedState!==null||Ia,!x){u=u!==null&&u.memoizedState!==null||Xr,O=Ia;var $=Xr;Ia=x,(Xr=u)&&!$?ia(a,m,(m.subtreeFlags&8772)!==0):La(a,m),Ia=O,Xr=$}break;case 30:break;default:La(a,m)}}function Y0(a){var u=a.alternate;u!==null&&(a.alternate=null,Y0(u)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(u=a.stateNode,u!==null&&zn(u)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var mr=null,es=!1;function $a(a,u,m){for(m=m.child;m!==null;)rS(a,u,m),m=m.sibling}function rS(a,u,m){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(Jt,m)}catch{}switch(m.tag){case 26:Xr||Ao(m,u),$a(a,u,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:Xr||Ao(m,u);var x=mr,O=es;Wt(m.type)&&(mr=m.stateNode,es=!1),$a(a,u,m),yh(m.stateNode),mr=x,es=O;break;case 5:Xr||Ao(m,u);case 6:if(x=mr,O=es,mr=null,$a(a,u,m),mr=x,es=O,mr!==null)if(es)try{(mr.nodeType===9?mr.body:mr.nodeName==="HTML"?mr.ownerDocument.body:mr).removeChild(m.stateNode)}catch($){Kn(m,u,$)}else try{mr.removeChild(m.stateNode)}catch($){Kn(m,u,$)}break;case 18:mr!==null&&(es?(a=mr,Sy(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,m.stateNode),wd(a)):Sy(mr,m.stateNode));break;case 4:x=mr,O=es,mr=m.stateNode.containerInfo,es=!0,$a(a,u,m),mr=x,es=O;break;case 0:case 11:case 14:case 15:Na(2,m,u),Xr||Na(4,m,u),$a(a,u,m);break;case 1:Xr||(Ao(m,u),x=m.stateNode,typeof x.componentWillUnmount=="function"&&U0(m,u,x)),$a(a,u,m);break;case 21:$a(a,u,m);break;case 22:Xr=(x=Xr)||m.memoizedState!==null,$a(a,u,m),Xr=x;break;default:$a(a,u,m)}}function G0(a,u){if(u.memoizedState===null&&(a=u.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{wd(a)}catch(m){Kn(u,u.return,m)}}}function oS(a,u){if(u.memoizedState===null&&(a=u.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{wd(a)}catch(m){Kn(u,u.return,m)}}function cC(a){switch(a.tag){case 31:case 13:case 19:var u=a.stateNode;return u===null&&(u=a.stateNode=new nS),u;case 22:return a=a.stateNode,u=a._retryCache,u===null&&(u=a._retryCache=new nS),u;default:throw Error(r(435,a.tag))}}function jm(a,u){var m=cC(a);u.forEach(function(x){if(!m.has(x)){m.add(x);var O=gC.bind(null,a,x);x.then(O,O)}})}function ts(a,u){var m=u.deletions;if(m!==null)for(var x=0;x<m.length;x++){var O=m[x],$=a,Q=u,ee=Q;e:for(;ee!==null;){switch(ee.tag){case 27:if(Wt(ee.type)){mr=ee.stateNode,es=!1;break e}break;case 5:mr=ee.stateNode,es=!1;break e;case 3:case 4:mr=ee.stateNode.containerInfo,es=!0;break e}ee=ee.return}if(mr===null)throw Error(r(160));rS($,Q,O),mr=null,es=!1,$=O.alternate,$!==null&&($.return=null),O.return=null}if(u.subtreeFlags&13886)for(u=u.child;u!==null;)sS(u,a),u=u.sibling}var Ri=null;function sS(a,u){var m=a.alternate,x=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:ts(u,a),gr(a),x&4&&(Na(3,a,a.return),sd(3,a),Na(5,a,a.return));break;case 1:ts(u,a),gr(a),x&512&&(Xr||m===null||Ao(m,m.return)),x&64&&Ia&&(a=a.updateQueue,a!==null&&(x=a.callbacks,x!==null&&(m=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=m===null?x:m.concat(x))));break;case 26:var O=Ri;if(ts(u,a),gr(a),x&512&&(Xr||m===null||Ao(m,m.return)),x&4){var $=m!==null?m.memoizedState:null;if(x=a.memoizedState,m===null)if(x===null)if(a.stateNode===null){e:{x=a.type,m=a.memoizedProps,O=O.ownerDocument||O;t:switch(x){case"title":$=O.getElementsByTagName("title")[0],(!$||$[nn]||$[et]||$.namespaceURI==="http://www.w3.org/2000/svg"||$.hasAttribute("itemprop"))&&($=O.createElement(x),O.head.insertBefore($,O.querySelector("head > title"))),_o($,x,m),$[et]=a,Rr($),x=$;break e;case"link":var Q=YS("link","href",O).get(x+(m.href||""));if(Q){for(var ee=0;ee<Q.length;ee++)if($=Q[ee],$.getAttribute("href")===(m.href==null||m.href===""?null:m.href)&&$.getAttribute("rel")===(m.rel==null?null:m.rel)&&$.getAttribute("title")===(m.title==null?null:m.title)&&$.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){Q.splice(ee,1);break t}}$=O.createElement(x),_o($,x,m),O.head.appendChild($);break;case"meta":if(Q=YS("meta","content",O).get(x+(m.content||""))){for(ee=0;ee<Q.length;ee++)if($=Q[ee],$.getAttribute("content")===(m.content==null?null:""+m.content)&&$.getAttribute("name")===(m.name==null?null:m.name)&&$.getAttribute("property")===(m.property==null?null:m.property)&&$.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&$.getAttribute("charset")===(m.charSet==null?null:m.charSet)){Q.splice(ee,1);break t}}$=O.createElement(x),_o($,x,m),O.head.appendChild($);break;default:throw Error(r(468,x))}$[et]=a,Rr($),x=$}a.stateNode=x}else GS(O,a.type,a.stateNode);else a.stateNode=VS(O,x,a.memoizedProps);else $!==x?($===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):$.count--,x===null?GS(O,a.type,a.stateNode):VS(O,x,a.memoizedProps)):x===null&&a.stateNode!==null&&km(a,a.memoizedProps,m.memoizedProps)}break;case 27:ts(u,a),gr(a),x&512&&(Xr||m===null||Ao(m,m.return)),m!==null&&x&4&&km(a,a.memoizedProps,m.memoizedProps);break;case 5:if(ts(u,a),gr(a),x&512&&(Xr||m===null||Ao(m,m.return)),a.flags&32){O=a.stateNode;try{wi(O,"")}catch(xt){Kn(a,a.return,xt)}}x&4&&a.stateNode!=null&&(O=a.memoizedProps,km(a,O,m!==null?m.memoizedProps:O)),x&1024&&(q0=!0);break;case 6:if(ts(u,a),gr(a),x&4){if(a.stateNode===null)throw Error(r(162));x=a.memoizedProps,m=a.stateNode;try{m.nodeValue=x}catch(xt){Kn(a,a.return,xt)}}break;case 3:if(vh=null,O=Ri,Ri=Hm(u.containerInfo),ts(u,a),Ri=O,gr(a),x&4&&m!==null&&m.memoizedState.isDehydrated)try{wd(u.containerInfo)}catch(xt){Kn(a,a.return,xt)}q0&&(q0=!1,iS(a));break;case 4:x=Ri,Ri=Hm(a.stateNode.containerInfo),ts(u,a),gr(a),Ri=x;break;case 12:ts(u,a),gr(a);break;case 31:ts(u,a),gr(a),x&4&&(x=a.updateQueue,x!==null&&(a.updateQueue=null,jm(a,x)));break;case 13:ts(u,a),gr(a),a.child.flags&8192&&a.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&(oh=ct()),x&4&&(x=a.updateQueue,x!==null&&(a.updateQueue=null,jm(a,x)));break;case 22:O=a.memoizedState!==null;var ue=m!==null&&m.memoizedState!==null,ke=Ia,Fe=Xr;if(Ia=ke||O,Xr=Fe||ue,ts(u,a),Xr=Fe,Ia=ke,gr(a),x&8192)e:for(u=a.stateNode,u._visibility=O?u._visibility&-2:u._visibility|1,O&&(m===null||ue||Ia||Xr||Pc(a)),m=null,u=a;;){if(u.tag===5||u.tag===26){if(m===null){ue=m=u;try{if($=ue.stateNode,O)Q=$.style,typeof Q.setProperty=="function"?Q.setProperty("display","none","important"):Q.display="none";else{ee=ue.stateNode;var Be=ue.memoizedProps.style,Me=Be!=null&&Be.hasOwnProperty("display")?Be.display:null;ee.style.display=Me==null||typeof Me=="boolean"?"":(""+Me).trim()}}catch(xt){Kn(ue,ue.return,xt)}}}else if(u.tag===6){if(m===null){ue=u;try{ue.stateNode.nodeValue=O?"":ue.memoizedProps}catch(xt){Kn(ue,ue.return,xt)}}}else if(u.tag===18){if(m===null){ue=u;try{var Oe=ue.stateNode;O?Os(Oe,!0):Os(ue.stateNode,!1)}catch(xt){Kn(ue,ue.return,xt)}}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===a)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===a)break e;for(;u.sibling===null;){if(u.return===null||u.return===a)break e;m===u&&(m=null),u=u.return}m===u&&(m=null),u.sibling.return=u.return,u=u.sibling}x&4&&(x=a.updateQueue,x!==null&&(m=x.retryQueue,m!==null&&(x.retryQueue=null,jm(a,m))));break;case 19:ts(u,a),gr(a),x&4&&(x=a.updateQueue,x!==null&&(a.updateQueue=null,jm(a,x)));break;case 30:break;case 21:break;default:ts(u,a),gr(a)}}function gr(a){var u=a.flags;if(u&2){try{for(var m,x=a.return;x!==null;){if(eS(x)){m=x;break}x=x.return}if(m==null)throw Error(r(160));switch(m.tag){case 27:var O=m.stateNode,$=B0(a);Mm(a,$,O);break;case 5:var Q=m.stateNode;m.flags&32&&(wi(Q,""),m.flags&=-33);var ee=B0(a);Mm(a,ee,Q);break;case 3:case 4:var ue=m.stateNode.containerInfo,ke=B0(a);H0(a,ke,ue);break;default:throw Error(r(161))}}catch(Fe){Kn(a,a.return,Fe)}a.flags&=-3}u&4096&&(a.flags&=-4097)}function iS(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var u=a;iS(u),u.tag===5&&u.flags&1024&&u.stateNode.reset(),a=a.sibling}}function La(a,u){if(u.subtreeFlags&8772)for(u=u.child;u!==null;)V0(a,u.alternate,u),u=u.sibling}function Pc(a){for(a=a.child;a!==null;){var u=a;switch(u.tag){case 0:case 11:case 14:case 15:Na(4,u,u.return),Pc(u);break;case 1:Ao(u,u.return);var m=u.stateNode;typeof m.componentWillUnmount=="function"&&U0(u,u.return,m),Pc(u);break;case 27:yh(u.stateNode);case 26:case 5:Ao(u,u.return),Pc(u);break;case 22:u.memoizedState===null&&Pc(u);break;case 30:Pc(u);break;default:Pc(u)}a=a.sibling}}function ia(a,u,m){for(m=m&&(u.subtreeFlags&8772)!==0,u=u.child;u!==null;){var x=u.alternate,O=a,$=u,Q=$.flags;switch($.tag){case 0:case 11:case 15:ia(O,$,m),sd(4,$);break;case 1:if(ia(O,$,m),x=$,O=x.stateNode,typeof O.componentDidMount=="function")try{O.componentDidMount()}catch(ke){Kn(x,x.return,ke)}if(x=$,O=x.updateQueue,O!==null){var ee=x.stateNode;try{var ue=O.shared.hiddenCallbacks;if(ue!==null)for(O.shared.hiddenCallbacks=null,O=0;O<ue.length;O++)Mi(ue[O],ee)}catch(ke){Kn(x,x.return,ke)}}m&&Q&64&&Jf($),Jo($,$.return);break;case 27:tS($);case 26:case 5:ia(O,$,m),m&&x===null&&Q&4&&Jb($),Jo($,$.return);break;case 12:ia(O,$,m);break;case 31:ia(O,$,m),m&&Q&4&&G0(O,$);break;case 13:ia(O,$,m),m&&Q&4&&oS(O,$);break;case 22:$.memoizedState===null&&ia(O,$,m),Jo($,$.return);break;case 30:break;default:ia(O,$,m)}u=u.sibling}}function W0(a,u){var m=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(m=a.memoizedState.cachePool.pool),a=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(a=u.memoizedState.cachePool.pool),a!==m&&(a!=null&&a.refCount++,m!=null&&Ef(m))}function Q0(a,u){a=null,u.alternate!==null&&(a=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==a&&(u.refCount++,a!=null&&Ef(a))}function Oi(a,u,m,x){if(u.subtreeFlags&10256)for(u=u.child;u!==null;)aS(a,u,m,x),u=u.sibling}function aS(a,u,m,x){var O=u.flags;switch(u.tag){case 0:case 11:case 15:Oi(a,u,m,x),O&2048&&sd(9,u);break;case 1:Oi(a,u,m,x);break;case 3:Oi(a,u,m,x),O&2048&&(a=null,u.alternate!==null&&(a=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==a&&(u.refCount++,a!=null&&Ef(a)));break;case 12:if(O&2048){Oi(a,u,m,x),a=u.stateNode;try{var $=u.memoizedProps,Q=$.id,ee=$.onPostCommit;typeof ee=="function"&&ee(Q,u.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(ue){Kn(u,u.return,ue)}}else Oi(a,u,m,x);break;case 31:Oi(a,u,m,x);break;case 13:Oi(a,u,m,x);break;case 23:break;case 22:$=u.stateNode,Q=u.alternate,u.memoizedState!==null?$._visibility&2?Oi(a,u,m,x):eh(a,u):$._visibility&2?Oi(a,u,m,x):($._visibility|=2,jl(a,u,m,x,(u.subtreeFlags&10256)!==0||!1)),O&2048&&W0(Q,u);break;case 24:Oi(a,u,m,x),O&2048&&Q0(u.alternate,u);break;default:Oi(a,u,m,x)}}function jl(a,u,m,x,O){for(O=O&&((u.subtreeFlags&10256)!==0||!1),u=u.child;u!==null;){var $=a,Q=u,ee=m,ue=x,ke=Q.flags;switch(Q.tag){case 0:case 11:case 15:jl($,Q,ee,ue,O),sd(8,Q);break;case 23:break;case 22:var Fe=Q.stateNode;Q.memoizedState!==null?Fe._visibility&2?jl($,Q,ee,ue,O):eh($,Q):(Fe._visibility|=2,jl($,Q,ee,ue,O)),O&&ke&2048&&W0(Q.alternate,Q);break;case 24:jl($,Q,ee,ue,O),O&&ke&2048&&Q0(Q.alternate,Q);break;default:jl($,Q,ee,ue,O)}u=u.sibling}}function eh(a,u){if(u.subtreeFlags&10256)for(u=u.child;u!==null;){var m=a,x=u,O=x.flags;switch(x.tag){case 22:eh(m,x),O&2048&&W0(x.alternate,x);break;case 24:eh(m,x),O&2048&&Q0(x.alternate,x);break;default:eh(m,x)}u=u.sibling}}var th=8192;function id(a,u,m){if(a.subtreeFlags&th)for(a=a.child;a!==null;)lS(a,u,m),a=a.sibling}function lS(a,u,m){switch(a.tag){case 26:id(a,u,m),a.flags&th&&a.memoizedState!==null&&vd(m,Ri,a.memoizedState,a.memoizedProps);break;case 5:id(a,u,m);break;case 3:case 4:var x=Ri;Ri=Hm(a.stateNode.containerInfo),id(a,u,m),Ri=x;break;case 22:a.memoizedState===null&&(x=a.alternate,x!==null&&x.memoizedState!==null?(x=th,th=16777216,id(a,u,m),th=x):id(a,u,m));break;default:id(a,u,m)}}function cS(a){var u=a.alternate;if(u!==null&&(a=u.child,a!==null)){u.child=null;do u=a.sibling,a.sibling=null,a=u;while(a!==null)}}function nh(a){var u=a.deletions;if((a.flags&16)!==0){if(u!==null)for(var m=0;m<u.length;m++){var x=u[m];ho=x,dS(x,a)}cS(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)uS(a),a=a.sibling}function uS(a){switch(a.tag){case 0:case 11:case 15:nh(a),a.flags&2048&&Na(9,a,a.return);break;case 3:nh(a);break;case 12:nh(a);break;case 22:var u=a.stateNode;a.memoizedState!==null&&u._visibility&2&&(a.return===null||a.return.tag!==13)?(u._visibility&=-3,Dm(a)):nh(a);break;default:nh(a)}}function Dm(a){var u=a.deletions;if((a.flags&16)!==0){if(u!==null)for(var m=0;m<u.length;m++){var x=u[m];ho=x,dS(x,a)}cS(a)}for(a=a.child;a!==null;){switch(u=a,u.tag){case 0:case 11:case 15:Na(8,u,u.return),Dm(u);break;case 22:m=u.stateNode,m._visibility&2&&(m._visibility&=-3,Dm(u));break;default:Dm(u)}a=a.sibling}}function dS(a,u){for(;ho!==null;){var m=ho;switch(m.tag){case 0:case 11:case 15:Na(8,m,u);break;case 23:case 22:if(m.memoizedState!==null&&m.memoizedState.cachePool!==null){var x=m.memoizedState.cachePool.pool;x!=null&&x.refCount++}break;case 24:Ef(m.memoizedState.cache)}if(x=m.child,x!==null)x.return=m,ho=x;else e:for(m=a;ho!==null;){x=ho;var O=x.sibling,$=x.return;if(Y0(x),x===m){ho=null;break e}if(O!==null){O.return=$,ho=O;break e}ho=$}}}var uC={getCacheForType:function(a){var u=wo(Kr),m=u.data.get(a);return m===void 0&&(m=a(),u.data.set(a,m)),m},cacheSignal:function(){return wo(Kr).controller.signal}},dC=typeof WeakMap=="function"?WeakMap:Map,Vn=0,sr=null,kn=null,Dn=0,Qn=0,Ms=null,Dl=!1,ad=!1,K0=!1,Pi=0,kr=0,Al=0,Nc=0,X0=0,js=0,ld=0,rh=null,ns=null,Z0=!1,oh=0,fS=0,Ic=1/0,Am=null,Rl=null,ao=0,Ol=null,cd=null,Fa=0,J0=0,ey=null,hS=null,sh=0,ty=null;function Ds(){return(Vn&2)!==0&&Dn!==0?Dn&-Dn:U.T!==null?As():tt()}function pS(){if(js===0)if((Dn&536870912)===0||Pn){var a=Ot;Ot<<=1,(Ot&3932160)===0&&(Ot=262144),js=a}else js=536870912;return a=_s.current,a!==null&&(a.flags|=32),js}function rs(a,u,m){(a===sr&&(Qn===2||Qn===9)||a.cancelPendingCommit!==null)&&(ud(a,0),za(a,Dn,js,!1)),$n(a,m),((Vn&2)===0||a!==sr)&&(a===sr&&((Vn&2)===0&&(Nc|=m),kr===4&&za(a,Dn,js,!1)),aa(a))}function mS(a,u,m){if((Vn&6)!==0)throw Error(r(327));var x=!m&&(u&127)===0&&(u&a.expiredLanes)===0||$t(a,u),O=x?hC(a,u):ry(a,u,!0),$=x;do{if(O===0){ad&&!x&&za(a,u,0,!1);break}else{if(m=a.current.alternate,$&&!yS(m)){O=ry(a,u,!1),$=!1;continue}if(O===2){if($=u,a.errorRecoveryDisabledLanes&$)var Q=0;else Q=a.pendingLanes&-536870913,Q=Q!==0?Q:Q&536870912?536870912:0;if(Q!==0){u=Q;e:{var ee=a;O=rh;var ue=ee.current.memoizedState.isDehydrated;if(ue&&(ud(ee,Q).flags|=256),Q=ry(ee,Q,!1),Q!==2){if(K0&&!ue){ee.errorRecoveryDisabledLanes|=$,Nc|=$,O=4;break e}$=ns,ns=O,$!==null&&(ns===null?ns=$:ns.push.apply(ns,$))}O=Q}if($=!1,O!==2)continue}}if(O===1){ud(a,0),za(a,u,0,!0);break}e:{switch(x=a,$=O,$){case 0:case 1:throw Error(r(345));case 4:if((u&4194048)!==u)break;case 6:za(x,u,js,!Dl);break e;case 2:ns=null;break;case 3:case 5:break;default:throw Error(r(329))}if((u&62914560)===u&&(O=oh+300-ct(),10<O)){if(za(x,u,js,!Dl),vt(x,0,!0)!==0)break e;Fa=u,x.timeoutHandle=PS(gS.bind(null,x,m,ns,Am,Z0,u,js,Nc,ld,Dl,$,"Throttled",-0,0),O);break e}gS(x,m,ns,Am,Z0,u,js,Nc,ld,Dl,$,null,-0,0)}}break}while(!0);aa(a)}function gS(a,u,m,x,O,$,Q,ee,ue,ke,Fe,Be,Me,Oe){if(a.timeoutHandle=-1,Be=u.subtreeFlags,Be&8192||(Be&16785408)===16785408){Be={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ca},lS(u,$,Be);var xt=($&62914560)===$?oh-ct():($&4194048)===$?fS-ct():0;if(xt=OC(Be,xt),xt!==null){Fa=$,a.cancelPendingCommit=xt(CS.bind(null,a,u,$,m,x,O,Q,ee,ue,Fe,Be,null,Me,Oe)),za(a,$,Q,!ke);return}}CS(a,u,$,m,x,O,Q,ee,ue)}function yS(a){for(var u=a;;){var m=u.tag;if((m===0||m===11||m===15)&&u.flags&16384&&(m=u.updateQueue,m!==null&&(m=m.stores,m!==null)))for(var x=0;x<m.length;x++){var O=m[x],$=O.getSnapshot;O=O.value;try{if(!Tr($(),O))return!1}catch{return!1}}if(m=u.child,u.subtreeFlags&16384&&m!==null)m.return=u,u=m;else{if(u===a)break;for(;u.sibling===null;){if(u.return===null||u.return===a)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function za(a,u,m,x){u&=~X0,u&=~Nc,a.suspendedLanes|=u,a.pingedLanes&=~u,x&&(a.warmLanes|=u),x=a.expirationTimes;for(var O=u;0<O;){var $=31-he(O),Q=1<<$;x[$]=-1,O&=~Q}m!==0&&le(a,m,u)}function Rm(){return(Vn&6)===0?(uh(0),!1):!0}function ny(){if(kn!==null){if(Qn===0)var a=kn.return;else a=kn,ja=pn=null,d0(a),Yu=null,Cs=0,a=kn;for(;a!==null;)Em(a.alternate,a),a=a.return;kn=null}}function ud(a,u){var m=a.timeoutHandle;m!==-1&&(a.timeoutHandle=-1,xC(m)),m=a.cancelPendingCommit,m!==null&&(a.cancelPendingCommit=null,m()),Fa=0,ny(),sr=a,kn=m=Ys(a.current,null),Dn=u,Qn=0,Ms=null,Dl=!1,ad=$t(a,u),K0=!1,ld=js=X0=Nc=Al=kr=0,ns=rh=null,Z0=!1,(u&8)!==0&&(u|=u&32);var x=a.entangledLanes;if(x!==0)for(a=a.entanglements,x&=u;0<x;){var O=31-he(x),$=1<<O;u|=a[O],x&=~$}return Pi=u,Ci(),m}function vS(a,u){mn=null,U.H=kl,u===Vu||u===Mf?(u=Ab(),Qn=3):u===Jp?(u=Ab(),Qn=4):Qn=u===qf?8:u!==null&&typeof u=="object"&&typeof u.then=="function"?6:1,Ms=u,kn===null&&(kr=1,Hf(a,ws(u,a.current)))}function ih(){var a=_s.current;return a===null?!0:(Dn&4194048)===Dn?ei===null:(Dn&62914560)===Dn||(Dn&536870912)!==0?a===ei:!1}function bS(){var a=U.H;return U.H=kl,a===null?kl:a}function SS(){var a=U.A;return U.A=uC,a}function Om(){kr=4,Dl||(Dn&4194048)!==Dn&&_s.current!==null||(ad=!0),(Al&134217727)===0&&(Nc&134217727)===0||sr===null||za(sr,Dn,js,!1)}function ry(a,u,m){var x=Vn;Vn|=2;var O=bS(),$=SS();(sr!==a||Dn!==u)&&(Am=null,ud(a,u)),u=!1;var Q=kr;e:do try{if(Qn!==0&&kn!==null){var ee=kn,ue=Ms;switch(Qn){case 8:ny(),Q=6;break e;case 3:case 2:case 9:case 6:_s.current===null&&(u=!0);var ke=Qn;if(Qn=0,Ms=null,dd(a,ee,ue,ke),m&&ad){Q=0;break e}break;default:ke=Qn,Qn=0,Ms=null,dd(a,ee,ue,ke)}}fC(),Q=kr;break}catch(Fe){vS(a,Fe)}while(!0);return u&&a.shellSuspendCounter++,ja=pn=null,Vn=x,U.H=O,U.A=$,kn===null&&(sr=null,Dn=0,Ci()),Q}function fC(){for(;kn!==null;)wS(kn)}function hC(a,u){var m=Vn;Vn|=2;var x=bS(),O=SS();sr!==a||Dn!==u?(Am=null,Ic=ct()+500,ud(a,u)):ad=$t(a,u);e:do try{if(Qn!==0&&kn!==null){u=kn;var $=Ms;t:switch(Qn){case 1:Qn=0,Ms=null,dd(a,u,$,1);break;case 2:case 9:if(Db($)){Qn=0,Ms=null,xS(u);break}u=function(){Qn!==2&&Qn!==9||sr!==a||(Qn=7),aa(a)},$.then(u,u);break e;case 3:Qn=7;break e;case 4:Qn=5;break e;case 7:Db($)?(Qn=0,Ms=null,xS(u)):(Qn=0,Ms=null,dd(a,u,$,7));break;case 5:var Q=null;switch(kn.tag){case 26:Q=kn.memoizedState;case 5:case 27:var ee=kn;if(Q?WS(Q):ee.stateNode.complete){Qn=0,Ms=null;var ue=ee.sibling;if(ue!==null)kn=ue;else{var ke=ee.return;ke!==null?(kn=ke,Pm(ke)):kn=null}break t}}Qn=0,Ms=null,dd(a,u,$,5);break;case 6:Qn=0,Ms=null,dd(a,u,$,6);break;case 8:ny(),kr=6;break e;default:throw Error(r(462))}}pC();break}catch(Fe){vS(a,Fe)}while(!0);return ja=pn=null,U.H=x,U.A=O,Vn=m,kn!==null?0:(sr=null,Dn=0,Ci(),kr)}function pC(){for(;kn!==null&&!bt();)wS(kn)}function wS(a){var u=Xb(a.alternate,a,Pi);a.memoizedProps=a.pendingProps,u===null?Pm(a):kn=u}function xS(a){var u=a,m=u.alternate;switch(u.tag){case 15:case 0:u=Wb(m,u,u.pendingProps,u.type,void 0,Dn);break;case 11:u=Wb(m,u,u.pendingProps,u.type.render,u.ref,Dn);break;case 5:d0(u);default:Em(m,u),u=kn=Tb(u,Pi),u=Xb(m,u,Pi)}a.memoizedProps=a.pendingProps,u===null?Pm(a):kn=u}function dd(a,u,m,x){ja=pn=null,d0(u),Yu=null,Cs=0;var O=u.return;try{if(P0(a,O,u,m,Dn)){kr=1,Hf(a,ws(m,a.current)),kn=null;return}}catch($){if(O!==null)throw kn=O,$;kr=1,Hf(a,ws(m,a.current)),kn=null;return}u.flags&32768?(Pn||x===1?a=!0:ad||(Dn&536870912)!==0?a=!1:(Dl=a=!0,(x===2||x===9||x===3||x===6)&&(x=_s.current,x!==null&&x.tag===13&&(x.flags|=16384))),ah(u,a)):Pm(u)}function Pm(a){var u=a;do{if((u.flags&32768)!==0){ah(u,Dl);return}a=u.return;var m=Zb(u.alternate,u,Pi);if(m!==null){kn=m;return}if(u=u.sibling,u!==null){kn=u;return}kn=u=a}while(u!==null);kr===0&&(kr=5)}function ah(a,u){do{var m=Zf(a.alternate,a);if(m!==null){m.flags&=32767,kn=m;return}if(m=a.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!u&&(a=a.sibling,a!==null)){kn=a;return}kn=a=m}while(a!==null);kr=6,kn=null}function CS(a,u,m,x,O,$,Q,ee,ue){a.cancelPendingCommit=null;do lh();while(ao!==0);if((Vn&6)!==0)throw Error(r(327));if(u!==null){if(u===a.current)throw Error(r(177));if($=u.lanes|u.childLanes,$|=Iu,Tn(a,m,$,Q,ee,ue),a===sr&&(kn=sr=null,Dn=0),cd=u,Ol=a,Fa=m,J0=$,ey=O,hS=x,(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,yC(Ft,function(){return ay(),null})):(a.callbackNode=null,a.callbackPriority=0),x=(u.flags&13878)!==0,(u.subtreeFlags&13878)!==0||x){x=U.T,U.T=null,O=q.p,q.p=2,Q=Vn,Vn|=4;try{lC(a,u,m)}finally{Vn=Q,q.p=O,U.T=x}}ao=1,oy(),sy(),Nm()}}function oy(){if(ao===1){ao=0;var a=Ol,u=cd,m=(u.flags&13878)!==0;if((u.subtreeFlags&13878)!==0||m){m=U.T,U.T=null;var x=q.p;q.p=2;var O=Vn;Vn|=4;try{sS(u,a);var $=vy,Q=wb(a.containerInfo),ee=$.focusedElem,ue=$.selectionRange;if(Q!==ee&&ee&&ee.ownerDocument&&Sb(ee.ownerDocument.documentElement,ee)){if(ue!==null&&t0(ee)){var ke=ue.start,Fe=ue.end;if(Fe===void 0&&(Fe=ke),"selectionStart"in ee)ee.selectionStart=ke,ee.selectionEnd=Math.min(Fe,ee.value.length);else{var Be=ee.ownerDocument||document,Me=Be&&Be.defaultView||window;if(Me.getSelection){var Oe=Me.getSelection(),xt=ee.textContent.length,Bt=Math.min(ue.start,xt),tr=ue.end===void 0?Bt:Math.min(ue.end,xt);!Oe.extend&&Bt>tr&&(Q=tr,tr=Bt,Bt=Q);var Se=bb(ee,Bt),ge=bb(ee,tr);if(Se&&ge&&(Oe.rangeCount!==1||Oe.anchorNode!==Se.node||Oe.anchorOffset!==Se.offset||Oe.focusNode!==ge.node||Oe.focusOffset!==ge.offset)){var Ee=Be.createRange();Ee.setStart(Se.node,Se.offset),Oe.removeAllRanges(),Bt>tr?(Oe.addRange(Ee),Oe.extend(ge.node,ge.offset)):(Ee.setEnd(ge.node,ge.offset),Oe.addRange(Ee))}}}}for(Be=[],Oe=ee;Oe=Oe.parentNode;)Oe.nodeType===1&&Be.push({element:Oe,left:Oe.scrollLeft,top:Oe.scrollTop});for(typeof ee.focus=="function"&&ee.focus(),ee=0;ee<Be.length;ee++){var Ue=Be[ee];Ue.element.scrollLeft=Ue.left,Ue.element.scrollTop=Ue.top}}Qm=!!ph,vy=ph=null}finally{Vn=O,q.p=x,U.T=m}}a.current=u,ao=2}}function sy(){if(ao===2){ao=0;var a=Ol,u=cd,m=(u.flags&8772)!==0;if((u.subtreeFlags&8772)!==0||m){m=U.T,U.T=null;var x=q.p;q.p=2;var O=Vn;Vn|=4;try{V0(a,u.alternate,u)}finally{Vn=O,q.p=x,U.T=m}}ao=3}}function Nm(){if(ao===4||ao===3){ao=0,At();var a=Ol,u=cd,m=Fa,x=hS;(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?ao=5:(ao=0,cd=Ol=null,iy(a,a.pendingLanes));var O=a.pendingLanes;if(O===0&&(Rl=null),Ye(m),u=u.stateNode,en&&typeof en.onCommitFiberRoot=="function")try{en.onCommitFiberRoot(Jt,u,void 0,(u.current.flags&128)===128)}catch{}if(x!==null){u=U.T,O=q.p,q.p=2,U.T=null;try{for(var $=a.onRecoverableError,Q=0;Q<x.length;Q++){var ee=x[Q];$(ee.value,{componentStack:ee.stack})}}finally{U.T=u,q.p=O}}(Fa&3)!==0&&lh(),aa(a),O=a.pendingLanes,(m&261930)!==0&&(O&42)!==0?a===ty?sh++:(sh=0,ty=a):sh=0,uh(0)}}function iy(a,u){(a.pooledCacheLanes&=u)===0&&(u=a.pooledCache,u!=null&&(a.pooledCache=null,Ef(u)))}function lh(){return oy(),sy(),Nm(),ay()}function ay(){if(ao!==5)return!1;var a=Ol,u=J0;J0=0;var m=Ye(Fa),x=U.T,O=q.p;try{q.p=32>m?32:m,U.T=null,m=ey,ey=null;var $=Ol,Q=Fa;if(ao=0,cd=Ol=null,Fa=0,(Vn&6)!==0)throw Error(r(331));var ee=Vn;if(Vn|=4,uS($.current),aS($,$.current,Q,m),Vn=ee,uh(0,!1),en&&typeof en.onPostCommitFiberRoot=="function")try{en.onPostCommitFiberRoot(Jt,$)}catch{}return!0}finally{q.p=O,U.T=x,iy(a,u)}}function ly(a,u,m){u=ws(m,u),u=O0(a.stateNode,u,2),a=ki(a,u,2),a!==null&&($n(a,2),aa(a))}function Kn(a,u,m){if(a.tag===3)ly(a,a,m);else for(;u!==null;){if(u.tag===3){ly(u,a,m);break}else if(u.tag===1){var x=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof x.componentDidCatch=="function"&&(Rl===null||!Rl.has(x))){a=ws(m,a),m=oa(2),x=ki(u,m,2),x!==null&&(bm(m,x,u,a),$n(x,2),aa(x));break}}u=u.return}}function cy(a,u,m){var x=a.pingCache;if(x===null){x=a.pingCache=new dC;var O=new Set;x.set(u,O)}else O=x.get(u),O===void 0&&(O=new Set,x.set(u,O));O.has(m)||(K0=!0,O.add(m),a=mC.bind(null,a,u,m),u.then(a,a))}function mC(a,u,m){var x=a.pingCache;x!==null&&x.delete(u),a.pingedLanes|=a.suspendedLanes&m,a.warmLanes&=~m,sr===a&&(Dn&m)===m&&(kr===4||kr===3&&(Dn&62914560)===Dn&&300>ct()-oh?(Vn&2)===0&&ud(a,0):X0|=m,ld===Dn&&(ld=0)),aa(a)}function ch(a,u){u===0&&(u=Yt()),a=Ji(a,u),a!==null&&($n(a,u),aa(a))}function Im(a){var u=a.memoizedState,m=0;u!==null&&(m=u.retryLane),ch(a,m)}function gC(a,u){var m=0;switch(a.tag){case 31:case 13:var x=a.stateNode,O=a.memoizedState;O!==null&&(m=O.retryLane);break;case 19:x=a.stateNode;break;case 22:x=a.stateNode._retryCache;break;default:throw Error(r(314))}x!==null&&x.delete(u),ch(a,m)}function yC(a,u){return st(a,u)}var fd=null,$c=null,uy=!1,$m=!1,dy=!1,Pl=0;function aa(a){a!==$c&&a.next===null&&($c===null?fd=$c=a:$c=$c.next=a),$m=!0,uy||(uy=!0,bC())}function uh(a,u){if(!dy&&$m){dy=!0;do for(var m=!1,x=fd;x!==null;){if(a!==0){var O=x.pendingLanes;if(O===0)var $=0;else{var Q=x.suspendedLanes,ee=x.pingedLanes;$=(1<<31-he(42|a)+1)-1,$&=O&~(Q&~ee),$=$&201326741?$&201326741|1:$?$|2:0}$!==0&&(m=!0,kS(x,$))}else $=Dn,$=vt(x,x===sr?$:0,x.cancelPendingCommit!==null||x.timeoutHandle!==-1),($&3)===0||$t(x,$)||(m=!0,kS(x,$));x=x.next}while(m);dy=!1}}function vC(){_S()}function _S(){$m=uy=!1;var a=0;Pl!==0&&wC()&&(a=Pl);for(var u=ct(),m=null,x=fd;x!==null;){var O=x.next,$=TS(x,u);$===0?(x.next=null,m===null?fd=O:m.next=O,O===null&&($c=m)):(m=x,(a!==0||($&3)!==0)&&($m=!0)),x=O}ao!==0&&ao!==5||uh(a),Pl!==0&&(Pl=0)}function TS(a,u){for(var m=a.suspendedLanes,x=a.pingedLanes,O=a.expirationTimes,$=a.pendingLanes&-62914561;0<$;){var Q=31-he($),ee=1<<Q,ue=O[Q];ue===-1?((ee&m)===0||(ee&x)!==0)&&(O[Q]=dn(ee,u)):ue<=u&&(a.expiredLanes|=ee),$&=~ee}if(u=sr,m=Dn,m=vt(a,a===u?m:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),x=a.callbackNode,m===0||a===u&&(Qn===2||Qn===9)||a.cancelPendingCommit!==null)return x!==null&&x!==null&&mt(x),a.callbackNode=null,a.callbackPriority=0;if((m&3)===0||$t(a,m)){if(u=m&-m,u===a.callbackPriority)return u;switch(x!==null&&mt(x),Ye(m)){case 2:case 8:m=Tt;break;case 32:m=Ft;break;case 268435456:m=_n;break;default:m=Ft}return x=ES.bind(null,a),m=st(m,x),a.callbackPriority=u,a.callbackNode=m,u}return x!==null&&x!==null&&mt(x),a.callbackPriority=2,a.callbackNode=null,2}function ES(a,u){if(ao!==0&&ao!==5)return a.callbackNode=null,a.callbackPriority=0,null;var m=a.callbackNode;if(lh()&&a.callbackNode!==m)return null;var x=Dn;return x=vt(a,a===sr?x:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),x===0?null:(mS(a,x,u),TS(a,ct()),a.callbackNode!=null&&a.callbackNode===m?ES.bind(null,a):null)}function kS(a,u){if(lh())return null;mS(a,u,!0)}function bC(){IS(function(){(Vn&6)!==0?st(bn,vC):_S()})}function As(){if(Pl===0){var a=Hu;a===0&&(a=Ut,Ut<<=1,(Ut&261888)===0&&(Ut=256)),Pl=a}return Pl}function MS(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:hf(""+a)}function jS(a,u){var m=u.ownerDocument.createElement("input");return m.name=u.name,m.value=u.value,a.id&&m.setAttribute("form",a.id),u.parentNode.insertBefore(m,u),a=new FormData(a),m.parentNode.removeChild(m),a}function Lc(a,u,m,x,O){if(u==="submit"&&m&&m.stateNode===O){var $=MS((O[Ge]||null).action),Q=x.submitter;Q&&(u=(u=Q[Ge]||null)?MS(u.formAction):Q.getAttribute("formAction"),u!==null&&($=u,Q=null));var ee=new Rp("action","action",null,x,O);a.push({event:ee,listeners:[{instance:null,listener:function(){if(x.defaultPrevented){if(Pl!==0){var ue=Q?jS(O,Q):new FormData(O);El(m,{pending:!0,data:ue,method:O.method,action:$},null,ue)}}else typeof $=="function"&&(ee.preventDefault(),ue=Q?jS(O,Q):new FormData(O),El(m,{pending:!0,data:ue,method:O.method,action:$},$,ue))},currentTarget:O}]})}}for(var sn=0;sn<Yp.length;sn++){var fy=Yp[sn],os=fy.toLowerCase(),Ur=fy[0].toUpperCase()+fy.slice(1);Qo(os,"on"+Ur)}Qo(Ss,"onAnimationEnd"),Qo(wf,"onAnimationIteration"),Qo(xb,"onAnimationStart"),Qo("dblclick","onDoubleClick"),Qo("focusin","onFocus"),Qo("focusout","onBlur"),Qo(Pu,"onTransitionRun"),Qo(qp,"onTransitionStart"),Qo(Vp,"onTransitionCancel"),Qo(qn,"onTransitionEnd"),Bs("onMouseEnter",["mouseout","mouseover"]),Bs("onMouseLeave",["mouseout","mouseover"]),Bs("onPointerEnter",["pointerout","pointerover"]),Bs("onPointerLeave",["pointerout","pointerover"]),ps("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ps("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ps("onBeforeInput",["compositionend","keypress","textInput","paste"]),ps("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ps("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ps("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var dh="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(" "),Nl=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(dh));function DS(a,u){u=(u&4)!==0;for(var m=0;m<a.length;m++){var x=a[m],O=x.event;x=x.listeners;e:{var $=void 0;if(u)for(var Q=x.length-1;0<=Q;Q--){var ee=x[Q],ue=ee.instance,ke=ee.currentTarget;if(ee=ee.listener,ue!==$&&O.isPropagationStopped())break e;$=ee,O.currentTarget=ke;try{$(O)}catch(Fe){Gp(Fe)}O.currentTarget=null,$=ue}else for(Q=0;Q<x.length;Q++){if(ee=x[Q],ue=ee.instance,ke=ee.currentTarget,ee=ee.listener,ue!==$&&O.isPropagationStopped())break e;$=ee,O.currentTarget=ke;try{$(O)}catch(Fe){Gp(Fe)}O.currentTarget=null,$=ue}}}}function Mn(a,u){var m=u[Vt];m===void 0&&(m=u[Vt]=new Set);var x=a+"__bubble";m.has(x)||(Fm(u,a,2,!1),m.add(x))}function hy(a,u,m){var x=0;u&&(x|=4),Fm(m,a,x,u)}var Lm="_reactListening"+Math.random().toString(36).slice(2);function py(a){if(!a[Lm]){a[Lm]=!0,fl.forEach(function(m){m!=="selectionchange"&&(Nl.has(m)||hy(m,!1,a),hy(m,!0,a))});var u=a.nodeType===9?a:a.ownerDocument;u===null||u[Lm]||(u[Lm]=!0,hy("selectionchange",!1,u))}}function Fm(a,u,m,x){switch(n3(u)){case 2:var O=NC;break;case 8:O=IC;break;default:O=Ey}m=O.bind(null,u,m,a),O=void 0,!Hg||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(O=!0),x?O!==void 0?a.addEventListener(u,m,{capture:!0,passive:O}):a.addEventListener(u,m,!0):O!==void 0?a.addEventListener(u,m,{passive:O}):a.addEventListener(u,m,!1)}function my(a,u,m,x,O){var $=x;if((u&1)===0&&(u&2)===0&&x!==null)e:for(;;){if(x===null)return;var Q=x.tag;if(Q===3||Q===4){var ee=x.stateNode.containerInfo;if(ee===O)break;if(Q===4)for(Q=x.return;Q!==null;){var ue=Q.tag;if((ue===3||ue===4)&&Q.stateNode.containerInfo===O)return;Q=Q.return}for(;ee!==null;){if(Q=Mo(ee),Q===null)return;if(ue=Q.tag,ue===5||ue===6||ue===26||ue===27){x=$=Q;continue e}ee=ee.parentNode}}x=x.return}ob(function(){var ke=$,Fe=Ug(m),Be=[];e:{var Me=Cb.get(a);if(Me!==void 0){var Oe=Rp,xt=a;switch(a){case"keypress":if(Dp(m)===0)break e;case"keydown":case"keyup":Oe=ml;break;case"focusin":xt="focus",Oe=Pp;break;case"focusout":xt="blur",Oe=Pp;break;case"beforeblur":case"afterblur":Oe=Pp;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Oe=Op;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Oe=ib;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Oe=q5;break;case Ss:case wf:case xb:Oe=cb;break;case qn:Oe=Y5;break;case"scroll":case"scrollend":Oe=U5;break;case"wheel":Oe=Ip;break;case"copy":case"cut":case"paste":Oe=ys;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Oe=fb;break;case"toggle":case"beforetoggle":Oe=G5}var Bt=(u&4)!==0,tr=!Bt&&(a==="scroll"||a==="scrollend"),Se=Bt?Me!==null?Me+"Capture":null:Me;Bt=[];for(var ge=ke,Ee;ge!==null;){var Ue=ge;if(Ee=Ue.stateNode,Ue=Ue.tag,Ue!==5&&Ue!==26&&Ue!==27||Ee===null||Se===null||(Ue=vc(ge,Se),Ue!=null&&Bt.push(Rs(ge,Ue,Ee))),tr)break;ge=ge.return}0<Bt.length&&(Me=new Oe(Me,xt,null,m,Fe),Be.push({event:Me,listeners:Bt}))}}if((u&7)===0){e:{if(Me=a==="mouseover"||a==="pointerover",Oe=a==="mouseout"||a==="pointerout",Me&&m!==zg&&(xt=m.relatedTarget||m.fromElement)&&(Mo(xt)||xt[ut]))break e;if((Oe||Me)&&(Me=Fe.window===Fe?Fe:(Me=Fe.ownerDocument)?Me.defaultView||Me.parentWindow:window,Oe?(xt=m.relatedTarget||m.toElement,Oe=ke,xt=xt?Mo(xt):null,xt!==null&&(tr=s(xt),Bt=xt.tag,xt!==tr||Bt!==5&&Bt!==27&&Bt!==6)&&(xt=null)):(Oe=null,xt=ke),Oe!==xt)){if(Bt=Op,Ue="onMouseLeave",Se="onMouseEnter",ge="mouse",(a==="pointerout"||a==="pointerover")&&(Bt=fb,Ue="onPointerLeave",Se="onPointerEnter",ge="pointer"),tr=Oe==null?Me:$o(Oe),Ee=xt==null?Me:$o(xt),Me=new Bt(Ue,ge+"leave",Oe,m,Fe),Me.target=tr,Me.relatedTarget=Ee,Ue=null,Mo(Fe)===ke&&(Bt=new Bt(Se,ge+"enter",xt,m,Fe),Bt.target=Ee,Bt.relatedTarget=tr,Ue=Bt),tr=Ue,Oe&&xt)t:{for(Bt=zm,Se=Oe,ge=xt,Ee=0,Ue=Se;Ue;Ue=Bt(Ue))Ee++;Ue=0;for(var Nt=ge;Nt;Nt=Bt(Nt))Ue++;for(;0<Ee-Ue;)Se=Bt(Se),Ee--;for(;0<Ue-Ee;)ge=Bt(ge),Ue--;for(;Ee--;){if(Se===ge||ge!==null&&Se===ge.alternate){Bt=Se;break t}Se=Bt(Se),ge=Bt(ge)}Bt=null}else Bt=null;Oe!==null&&wr(Be,Me,Oe,Bt,!1),xt!==null&&tr!==null&&wr(Be,tr,xt,Bt,!0)}}e:{if(Me=ke?$o(ke):window,Oe=Me.nodeName&&Me.nodeName.toLowerCase(),Oe==="select"||Oe==="input"&&Me.type==="file")var Un=yb;else if(Kg(Me))if(xc)Un=X5;else{Un=Q5;var kt=Bp}else Oe=Me.nodeName,!Oe||Oe.toLowerCase()!=="input"||Me.type!=="checkbox"&&Me.type!=="radio"?ke&&jp(ke.elementType)&&(Un=yb):Un=K5;if(Un&&(Un=Un(a,ke))){Xg(Be,Un,m,Fe);break e}kt&&kt(a,Me,ke),a==="focusout"&&ke&&Me.type==="number"&&ke.memoizedProps.value!=null&&Lg(Me,"number",Me.value)}switch(kt=ke?$o(ke):window,a){case"focusin":(Kg(kt)||kt.contentEditable==="true")&&(ve=kt,Le=ke,Re=null);break;case"focusout":Re=Le=ve=null;break;case"mousedown":yt=!0;break;case"contextmenu":case"mouseup":case"dragend":yt=!1,on(Be,m,Fe);break;case"selectionchange":if(Ou)break;case"keydown":case"keyup":on(Be,m,Fe)}var vn;if($p)e:{switch(a){case"compositionstart":var An="onCompositionStart";break e;case"compositionend":An="onCompositionEnd";break e;case"compositionupdate":An="onCompositionUpdate";break e}An=void 0}else wc?Fp(a,m)&&(An="onCompositionEnd"):a==="keydown"&&m.keyCode===229&&(An="onCompositionStart");An&&(Wg&&m.locale!=="ko"&&(wc||An!=="onCompositionStart"?An==="onCompositionEnd"&&wc&&(vn=rr()):(hl=Fe,qg="value"in hl?hl.value:hl.textContent,wc=!0)),kt=fh(ke,An),0<kt.length&&(An=new vs(An,a,null,m,Fe),Be.push({event:An,listeners:kt}),vn?An.data=vn:(vn=gb(m),vn!==null&&(An.data=vn)))),(vn=Gg?bs(a,m):Qg(a,m))&&(An=fh(ke,"onBeforeInput"),0<An.length&&(kt=new vs("onBeforeInput","beforeinput",null,m,Fe),Be.push({event:kt,listeners:An}),kt.data=vn)),Lc(Be,a,ke,m,Fe)}DS(Be,u)})}function Rs(a,u,m){return{instance:a,listener:u,currentTarget:m}}function fh(a,u){for(var m=u+"Capture",x=[];a!==null;){var O=a,$=O.stateNode;if(O=O.tag,O!==5&&O!==26&&O!==27||$===null||(O=vc(a,m),O!=null&&x.unshift(Rs(a,O,$)),O=vc(a,u),O!=null&&x.push(Rs(a,O,$))),a.tag===3)return x;a=a.return}return[]}function zm(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function wr(a,u,m,x,O){for(var $=u._reactName,Q=[];m!==null&&m!==x;){var ee=m,ue=ee.alternate,ke=ee.stateNode;if(ee=ee.tag,ue!==null&&ue===x)break;ee!==5&&ee!==26&&ee!==27||ke===null||(ue=ke,O?(ke=vc(m,$),ke!=null&&Q.unshift(Rs(m,ke,ue))):O||(ke=vc(m,$),ke!=null&&Q.push(Rs(m,ke,ue)))),m=m.return}Q.length!==0&&a.push({event:u,listeners:Q})}var Ir=/\r\n?/g,AS=/\u0000|\uFFFD/g;function RS(a){return(typeof a=="string"?a:""+a).replace(Ir,`
`).replace(AS,"")}function OS(a,u){return u=RS(u),RS(a)===u}function er(a,u,m,x,O,$){switch(m){case"children":typeof x=="string"?u==="body"||u==="textarea"&&x===""||wi(a,x):(typeof x=="number"||typeof x=="bigint")&&u!=="body"&&wi(a,""+x);break;case"className":Hs(a,"class",x);break;case"tabIndex":Hs(a,"tabindex",x);break;case"dir":case"role":case"viewBox":case"width":case"height":Hs(a,m,x);break;case"style":eb(a,x,$);break;case"data":if(u!=="object"){Hs(a,"data",x);break}case"src":case"href":if(x===""&&(u!=="a"||m!=="href")){a.removeAttribute(m);break}if(x==null||typeof x=="function"||typeof x=="symbol"||typeof x=="boolean"){a.removeAttribute(m);break}x=hf(""+x),a.setAttribute(m,x);break;case"action":case"formAction":if(typeof x=="function"){a.setAttribute(m,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof $=="function"&&(m==="formAction"?(u!=="input"&&er(a,u,"name",O.name,O,null),er(a,u,"formEncType",O.formEncType,O,null),er(a,u,"formMethod",O.formMethod,O,null),er(a,u,"formTarget",O.formTarget,O,null)):(er(a,u,"encType",O.encType,O,null),er(a,u,"method",O.method,O,null),er(a,u,"target",O.target,O,null)));if(x==null||typeof x=="symbol"||typeof x=="boolean"){a.removeAttribute(m);break}x=hf(""+x),a.setAttribute(m,x);break;case"onClick":x!=null&&(a.onclick=Ca);break;case"onScroll":x!=null&&Mn("scroll",a);break;case"onScrollEnd":x!=null&&Mn("scrollend",a);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(r(61));if(m=x.__html,m!=null){if(O.children!=null)throw Error(r(60));a.innerHTML=m}}break;case"multiple":a.multiple=x&&typeof x!="function"&&typeof x!="symbol";break;case"muted":a.muted=x&&typeof x!="function"&&typeof x!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(x==null||typeof x=="function"||typeof x=="boolean"||typeof x=="symbol"){a.removeAttribute("xlink:href");break}m=hf(""+x),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",m);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":x!=null&&typeof x!="function"&&typeof x!="symbol"?a.setAttribute(m,""+x):a.removeAttribute(m);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":x&&typeof x!="function"&&typeof x!="symbol"?a.setAttribute(m,""):a.removeAttribute(m);break;case"capture":case"download":x===!0?a.setAttribute(m,""):x!==!1&&x!=null&&typeof x!="function"&&typeof x!="symbol"?a.setAttribute(m,x):a.removeAttribute(m);break;case"cols":case"rows":case"size":case"span":x!=null&&typeof x!="function"&&typeof x!="symbol"&&!isNaN(x)&&1<=x?a.setAttribute(m,x):a.removeAttribute(m);break;case"rowSpan":case"start":x==null||typeof x=="function"||typeof x=="symbol"||isNaN(x)?a.removeAttribute(m):a.setAttribute(m,x);break;case"popover":Mn("beforetoggle",a),Mn("toggle",a),pr(a,"popover",x);break;case"xlinkActuate":ms(a,"http://www.w3.org/1999/xlink","xlink:actuate",x);break;case"xlinkArcrole":ms(a,"http://www.w3.org/1999/xlink","xlink:arcrole",x);break;case"xlinkRole":ms(a,"http://www.w3.org/1999/xlink","xlink:role",x);break;case"xlinkShow":ms(a,"http://www.w3.org/1999/xlink","xlink:show",x);break;case"xlinkTitle":ms(a,"http://www.w3.org/1999/xlink","xlink:title",x);break;case"xlinkType":ms(a,"http://www.w3.org/1999/xlink","xlink:type",x);break;case"xmlBase":ms(a,"http://www.w3.org/XML/1998/namespace","xml:base",x);break;case"xmlLang":ms(a,"http://www.w3.org/XML/1998/namespace","xml:lang",x);break;case"xmlSpace":ms(a,"http://www.w3.org/XML/1998/namespace","xml:space",x);break;case"is":pr(a,"is",x);break;case"innerText":case"textContent":break;default:(!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N")&&(m=tb.get(m)||m,pr(a,m,x))}}function gy(a,u,m,x,O,$){switch(m){case"style":eb(a,x,$);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(r(61));if(m=x.__html,m!=null){if(O.children!=null)throw Error(r(60));a.innerHTML=m}}break;case"children":typeof x=="string"?wi(a,x):(typeof x=="number"||typeof x=="bigint")&&wi(a,""+x);break;case"onScroll":x!=null&&Mn("scroll",a);break;case"onScrollEnd":x!=null&&Mn("scrollend",a);break;case"onClick":x!=null&&(a.onclick=Ca);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Zi.hasOwnProperty(m))e:{if(m[0]==="o"&&m[1]==="n"&&(O=m.endsWith("Capture"),u=m.slice(2,O?m.length-7:void 0),$=a[Ge]||null,$=$!=null?$[m]:null,typeof $=="function"&&a.removeEventListener(u,$,O),typeof x=="function")){typeof $!="function"&&$!==null&&(m in a?a[m]=null:a.hasAttribute(m)&&a.removeAttribute(m)),a.addEventListener(u,x,O);break e}m in a?a[m]=x:x===!0?a.setAttribute(m,""):pr(a,m,x)}}}function _o(a,u,m){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Mn("error",a),Mn("load",a);var x=!1,O=!1,$;for($ in m)if(m.hasOwnProperty($)){var Q=m[$];if(Q!=null)switch($){case"src":x=!0;break;case"srcSet":O=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,u));default:er(a,u,$,Q,m,null)}}O&&er(a,u,"srcSet",m.srcSet,m,null),x&&er(a,u,"src",m.src,m,null);return;case"input":Mn("invalid",a);var ee=$=Q=O=null,ue=null,ke=null;for(x in m)if(m.hasOwnProperty(x)){var Fe=m[x];if(Fe!=null)switch(x){case"name":O=Fe;break;case"type":Q=Fe;break;case"checked":ue=Fe;break;case"defaultChecked":ke=Fe;break;case"value":$=Fe;break;case"defaultValue":ee=Fe;break;case"children":case"dangerouslySetInnerHTML":if(Fe!=null)throw Error(r(137,u));break;default:er(a,u,x,Fe,m,null)}}Ep(a,$,ee,ue,ke,Q,O,!1);return;case"select":Mn("invalid",a),x=Q=$=null;for(O in m)if(m.hasOwnProperty(O)&&(ee=m[O],ee!=null))switch(O){case"value":$=ee;break;case"defaultValue":Q=ee;break;case"multiple":x=ee;default:er(a,u,O,ee,m,null)}u=$,m=Q,a.multiple=!!x,u!=null?gc(a,!!x,u,!1):m!=null&&gc(a,!!x,m,!0);return;case"textarea":Mn("invalid",a),$=O=x=null;for(Q in m)if(m.hasOwnProperty(Q)&&(ee=m[Q],ee!=null))switch(Q){case"value":x=ee;break;case"defaultValue":O=ee;break;case"children":$=ee;break;case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(91));break;default:er(a,u,Q,ee,m,null)}Mp(a,x,O,$);return;case"option":for(ue in m)if(m.hasOwnProperty(ue)&&(x=m[ue],x!=null))switch(ue){case"selected":a.selected=x&&typeof x!="function"&&typeof x!="symbol";break;default:er(a,u,ue,x,m,null)}return;case"dialog":Mn("beforetoggle",a),Mn("toggle",a),Mn("cancel",a),Mn("close",a);break;case"iframe":case"object":Mn("load",a);break;case"video":case"audio":for(x=0;x<dh.length;x++)Mn(dh[x],a);break;case"image":Mn("error",a),Mn("load",a);break;case"details":Mn("toggle",a);break;case"embed":case"source":case"link":Mn("error",a),Mn("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ke in m)if(m.hasOwnProperty(ke)&&(x=m[ke],x!=null))switch(ke){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,u));default:er(a,u,ke,x,m,null)}return;default:if(jp(u)){for(Fe in m)m.hasOwnProperty(Fe)&&(x=m[Fe],x!==void 0&&gy(a,u,Fe,x,m,void 0));return}}for(ee in m)m.hasOwnProperty(ee)&&(x=m[ee],x!=null&&er(a,u,ee,x,m,null))}function SC(a,u,m,x){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var O=null,$=null,Q=null,ee=null,ue=null,ke=null,Fe=null;for(Oe in m){var Be=m[Oe];if(m.hasOwnProperty(Oe)&&Be!=null)switch(Oe){case"checked":break;case"value":break;case"defaultValue":ue=Be;default:x.hasOwnProperty(Oe)||er(a,u,Oe,null,x,Be)}}for(var Me in x){var Oe=x[Me];if(Be=m[Me],x.hasOwnProperty(Me)&&(Oe!=null||Be!=null))switch(Me){case"type":$=Oe;break;case"name":O=Oe;break;case"checked":ke=Oe;break;case"defaultChecked":Fe=Oe;break;case"value":Q=Oe;break;case"defaultValue":ee=Oe;break;case"children":case"dangerouslySetInnerHTML":if(Oe!=null)throw Error(r(137,u));break;default:Oe!==Be&&er(a,u,Me,Oe,x,Be)}}Tp(a,Q,ee,ue,ke,Fe,$,O);return;case"select":Oe=Q=ee=Me=null;for($ in m)if(ue=m[$],m.hasOwnProperty($)&&ue!=null)switch($){case"value":break;case"multiple":Oe=ue;default:x.hasOwnProperty($)||er(a,u,$,null,x,ue)}for(O in x)if($=x[O],ue=m[O],x.hasOwnProperty(O)&&($!=null||ue!=null))switch(O){case"value":Me=$;break;case"defaultValue":ee=$;break;case"multiple":Q=$;default:$!==ue&&er(a,u,O,$,x,ue)}u=ee,m=Q,x=Oe,Me!=null?gc(a,!!m,Me,!1):!!x!=!!m&&(u!=null?gc(a,!!m,u,!0):gc(a,!!m,m?[]:"",!1));return;case"textarea":Oe=Me=null;for(ee in m)if(O=m[ee],m.hasOwnProperty(ee)&&O!=null&&!x.hasOwnProperty(ee))switch(ee){case"value":break;case"children":break;default:er(a,u,ee,null,x,O)}for(Q in x)if(O=x[Q],$=m[Q],x.hasOwnProperty(Q)&&(O!=null||$!=null))switch(Q){case"value":Me=O;break;case"defaultValue":Oe=O;break;case"children":break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(91));break;default:O!==$&&er(a,u,Q,O,x,$)}kp(a,Me,Oe);return;case"option":for(var xt in m)if(Me=m[xt],m.hasOwnProperty(xt)&&Me!=null&&!x.hasOwnProperty(xt))switch(xt){case"selected":a.selected=!1;break;default:er(a,u,xt,null,x,Me)}for(ue in x)if(Me=x[ue],Oe=m[ue],x.hasOwnProperty(ue)&&Me!==Oe&&(Me!=null||Oe!=null))switch(ue){case"selected":a.selected=Me&&typeof Me!="function"&&typeof Me!="symbol";break;default:er(a,u,ue,Me,x,Oe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Bt in m)Me=m[Bt],m.hasOwnProperty(Bt)&&Me!=null&&!x.hasOwnProperty(Bt)&&er(a,u,Bt,null,x,Me);for(ke in x)if(Me=x[ke],Oe=m[ke],x.hasOwnProperty(ke)&&Me!==Oe&&(Me!=null||Oe!=null))switch(ke){case"children":case"dangerouslySetInnerHTML":if(Me!=null)throw Error(r(137,u));break;default:er(a,u,ke,Me,x,Oe)}return;default:if(jp(u)){for(var tr in m)Me=m[tr],m.hasOwnProperty(tr)&&Me!==void 0&&!x.hasOwnProperty(tr)&&gy(a,u,tr,void 0,x,Me);for(Fe in x)Me=x[Fe],Oe=m[Fe],!x.hasOwnProperty(Fe)||Me===Oe||Me===void 0&&Oe===void 0||gy(a,u,Fe,Me,x,Oe);return}}for(var Se in m)Me=m[Se],m.hasOwnProperty(Se)&&Me!=null&&!x.hasOwnProperty(Se)&&er(a,u,Se,null,x,Me);for(Be in x)Me=x[Be],Oe=m[Be],!x.hasOwnProperty(Be)||Me===Oe||Me==null&&Oe==null||er(a,u,Be,Me,x,Oe)}function yy(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function hh(){if(typeof performance.getEntriesByType=="function"){for(var a=0,u=0,m=performance.getEntriesByType("resource"),x=0;x<m.length;x++){var O=m[x],$=O.transferSize,Q=O.initiatorType,ee=O.duration;if($&&ee&&yy(Q)){for(Q=0,ee=O.responseEnd,x+=1;x<m.length;x++){var ue=m[x],ke=ue.startTime;if(ke>ee)break;var Fe=ue.transferSize,Be=ue.initiatorType;Fe&&yy(Be)&&(ue=ue.responseEnd,Q+=Fe*(ue<ee?1:(ee-ke)/(ue-ke)))}if(--x,u+=8*($+Q)/(O.duration/1e3),a++,10<a)break}}if(0<a)return u/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var ph=null,vy=null;function mh(a){return a.nodeType===9?a:a.ownerDocument}function gh(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ss(a,u){if(a===0)switch(u){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&u==="foreignObject"?0:a}function Il(a,u){return a==="textarea"||a==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.children=="bigint"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var by=null;function wC(){var a=window.event;return a&&a.type==="popstate"?a===by?!1:(by=a,!0):(by=null,!1)}var PS=typeof setTimeout=="function"?setTimeout:void 0,xC=typeof clearTimeout=="function"?clearTimeout:void 0,NS=typeof Promise=="function"?Promise:void 0,IS=typeof queueMicrotask=="function"?queueMicrotask:typeof NS<"u"?function(a){return NS.resolve(null).then(a).catch(Ua)}:PS;function Ua(a){setTimeout(function(){throw a})}function Wt(a){return a==="head"}function Sy(a,u){var m=u,x=0;do{var O=m.nextSibling;if(a.removeChild(m),O&&O.nodeType===8)if(m=O.data,m==="/$"||m==="/&"){if(x===0){a.removeChild(O),wd(u);return}x--}else if(m==="$"||m==="$?"||m==="$~"||m==="$!"||m==="&")x++;else if(m==="html")yh(a.ownerDocument.documentElement);else if(m==="head"){m=a.ownerDocument.head,yh(m);for(var $=m.firstChild;$;){var Q=$.nextSibling,ee=$.nodeName;$[nn]||ee==="SCRIPT"||ee==="STYLE"||ee==="LINK"&&$.rel.toLowerCase()==="stylesheet"||m.removeChild($),$=Q}}else m==="body"&&yh(a.ownerDocument.body);m=O}while(m);wd(u)}function Os(a,u){var m=a;a=0;do{var x=m.nextSibling;if(m.nodeType===1?u?(m._stashedDisplay=m.style.display,m.style.display="none"):(m.style.display=m._stashedDisplay||"",m.getAttribute("style")===""&&m.removeAttribute("style")):m.nodeType===3&&(u?(m._stashedText=m.nodeValue,m.nodeValue=""):m.nodeValue=m._stashedText||""),x&&x.nodeType===8)if(m=x.data,m==="/$"){if(a===0)break;a--}else m!=="$"&&m!=="$?"&&m!=="$~"&&m!=="$!"||a++;m=x}while(m)}function Um(a){var u=a.firstChild;for(u&&u.nodeType===10&&(u=u.nextSibling);u;){var m=u;switch(u=u.nextSibling,m.nodeName){case"HTML":case"HEAD":case"BODY":Um(m),zn(m);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(m.rel.toLowerCase()==="stylesheet")continue}a.removeChild(m)}}function CC(a,u,m,x){for(;a.nodeType===1;){var O=m;if(a.nodeName.toLowerCase()!==u.toLowerCase()){if(!x&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(x){if(!a[nn])switch(u){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if($=a.getAttribute("rel"),$==="stylesheet"&&a.hasAttribute("data-precedence"))break;if($!==O.rel||a.getAttribute("href")!==(O.href==null||O.href===""?null:O.href)||a.getAttribute("crossorigin")!==(O.crossOrigin==null?null:O.crossOrigin)||a.getAttribute("title")!==(O.title==null?null:O.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if($=a.getAttribute("src"),($!==(O.src==null?null:O.src)||a.getAttribute("type")!==(O.type==null?null:O.type)||a.getAttribute("crossorigin")!==(O.crossOrigin==null?null:O.crossOrigin))&&$&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(u==="input"&&a.type==="hidden"){var $=O.name==null?null:""+O.name;if(O.type==="hidden"&&a.getAttribute("name")===$)return a}else return a;if(a=ri(a.nextSibling),a===null)break}return null}function Gn(a,u,m){if(u==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!m||(a=ri(a.nextSibling),a===null))return null;return a}function $S(a,u){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!u||(a=ri(a.nextSibling),a===null))return null;return a}function Bm(a){return a.data==="$?"||a.data==="$~"}function hd(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function _C(a,u){var m=a.ownerDocument;if(a.data==="$~")a._reactRetry=u;else if(a.data!=="$?"||m.readyState!=="loading")u();else{var x=function(){u(),m.removeEventListener("DOMContentLoaded",x)};m.addEventListener("DOMContentLoaded",x),a._reactRetry=x}}function ri(a){for(;a!=null;a=a.nextSibling){var u=a.nodeType;if(u===1||u===3)break;if(u===8){if(u=a.data,u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"||u==="F!"||u==="F")break;if(u==="/$"||u==="/&")return null}}return a}var wy=null;function LS(a){a=a.nextSibling;for(var u=0;a;){if(a.nodeType===8){var m=a.data;if(m==="/$"||m==="/&"){if(u===0)return ri(a.nextSibling);u--}else m!=="$"&&m!=="$!"&&m!=="$?"&&m!=="$~"&&m!=="&"||u++}a=a.nextSibling}return null}function FS(a){a=a.previousSibling;for(var u=0;a;){if(a.nodeType===8){var m=a.data;if(m==="$"||m==="$!"||m==="$?"||m==="$~"||m==="&"){if(u===0)return a;u--}else m!=="/$"&&m!=="/&"||u++}a=a.previousSibling}return null}function zS(a,u,m){switch(u=mh(m),a){case"html":if(a=u.documentElement,!a)throw Error(r(452));return a;case"head":if(a=u.head,!a)throw Error(r(453));return a;case"body":if(a=u.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function yh(a){for(var u=a.attributes;u.length;)a.removeAttributeNode(u[0]);zn(a)}var oi=new Map,US=new Set;function Hm(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var Ba=q.d;q.d={f:TC,r:EC,D:xy,C:kC,L:MC,m:jC,X:is,S:po,M:DC};function TC(){var a=Ba.f(),u=Rm();return a||u}function EC(a){var u=Io(a);u!==null&&u.tag===5&&u.type==="form"?E0(u):Ba.r(a)}var $l=typeof document>"u"?null:document;function BS(a,u,m){var x=$l;if(x&&typeof u=="string"&&u){var O=gs(u);O='link[rel="'+a+'"][href="'+O+'"]',typeof m=="string"&&(O+='[crossorigin="'+m+'"]'),US.has(O)||(US.add(O),a={rel:a,crossOrigin:m,href:u},x.querySelector(O)===null&&(u=x.createElement("link"),_o(u,"link",a),Rr(u),x.head.appendChild(u)))}}function xy(a){Ba.D(a),BS("dns-prefetch",a,null)}function kC(a,u){Ba.C(a,u),BS("preconnect",a,u)}function MC(a,u,m){Ba.L(a,u,m);var x=$l;if(x&&a&&u){var O='link[rel="preload"][as="'+gs(u)+'"]';u==="image"&&m&&m.imageSrcSet?(O+='[imagesrcset="'+gs(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(O+='[imagesizes="'+gs(m.imageSizes)+'"]')):O+='[href="'+gs(a)+'"]';var $=O;switch(u){case"style":$=pd(a);break;case"script":$=gd(a)}oi.has($)||(a=h({rel:"preload",href:u==="image"&&m&&m.imageSrcSet?void 0:a,as:u},m),oi.set($,a),x.querySelector(O)!==null||u==="style"&&x.querySelector(md($))||u==="script"&&x.querySelector(yd($))||(u=x.createElement("link"),_o(u,"link",a),Rr(u),x.head.appendChild(u)))}}function jC(a,u){Ba.m(a,u);var m=$l;if(m&&a){var x=u&&typeof u.as=="string"?u.as:"script",O='link[rel="modulepreload"][as="'+gs(x)+'"][href="'+gs(a)+'"]',$=O;switch(x){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":$=gd(a)}if(!oi.has($)&&(a=h({rel:"modulepreload",href:a},u),oi.set($,a),m.querySelector(O)===null)){switch(x){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(yd($)))return}x=m.createElement("link"),_o(x,"link",a),Rr(x),m.head.appendChild(x)}}}function po(a,u,m){Ba.S(a,u,m);var x=$l;if(x&&a){var O=Gr(x).hoistableStyles,$=pd(a);u=u||"default";var Q=O.get($);if(!Q){var ee={loading:0,preload:null};if(Q=x.querySelector(md($)))ee.loading=5;else{a=h({rel:"stylesheet",href:a,"data-precedence":u},m),(m=oi.get($))&&Cy(a,m);var ue=Q=x.createElement("link");Rr(ue),_o(ue,"link",a),ue._p=new Promise(function(ke,Fe){ue.onload=ke,ue.onerror=Fe}),ue.addEventListener("load",function(){ee.loading|=1}),ue.addEventListener("error",function(){ee.loading|=2}),ee.loading|=4,qm(Q,u,x)}Q={type:"stylesheet",instance:Q,count:1,state:ee},O.set($,Q)}}}function is(a,u){Ba.X(a,u);var m=$l;if(m&&a){var x=Gr(m).hoistableScripts,O=gd(a),$=x.get(O);$||($=m.querySelector(yd(O)),$||(a=h({src:a,async:!0},u),(u=oi.get(O))&&Vm(a,u),$=m.createElement("script"),Rr($),_o($,"link",a),m.head.appendChild($)),$={type:"script",instance:$,count:1,state:null},x.set(O,$))}}function DC(a,u){Ba.M(a,u);var m=$l;if(m&&a){var x=Gr(m).hoistableScripts,O=gd(a),$=x.get(O);$||($=m.querySelector(yd(O)),$||(a=h({src:a,async:!0,type:"module"},u),(u=oi.get(O))&&Vm(a,u),$=m.createElement("script"),Rr($),_o($,"link",a),m.head.appendChild($)),$={type:"script",instance:$,count:1,state:null},x.set(O,$))}}function HS(a,u,m,x){var O=(O=ie.current)?Hm(O):null;if(!O)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(u=pd(m.href),m=Gr(O).hoistableStyles,x=m.get(u),x||(x={type:"style",instance:null,count:0,state:null},m.set(u,x)),x):{type:"void",instance:null,count:0,state:null};case"link":if(m.rel==="stylesheet"&&typeof m.href=="string"&&typeof m.precedence=="string"){a=pd(m.href);var $=Gr(O).hoistableStyles,Q=$.get(a);if(Q||(O=O.ownerDocument||O,Q={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},$.set(a,Q),($=O.querySelector(md(a)))&&!$._p&&(Q.instance=$,Q.state.loading=5),oi.has(a)||(m={rel:"preload",as:"style",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy},oi.set(a,m),$||AC(O,a,m,Q.state))),u&&x===null)throw Error(r(528,""));return Q}if(u&&x!==null)throw Error(r(529,""));return null;case"script":return u=m.async,m=m.src,typeof m=="string"&&u&&typeof u!="function"&&typeof u!="symbol"?(u=gd(m),m=Gr(O).hoistableScripts,x=m.get(u),x||(x={type:"script",instance:null,count:0,state:null},m.set(u,x)),x):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function pd(a){return'href="'+gs(a)+'"'}function md(a){return'link[rel="stylesheet"]['+a+"]"}function qS(a){return h({},a,{"data-precedence":a.precedence,precedence:null})}function AC(a,u,m,x){a.querySelector('link[rel="preload"][as="style"]['+u+"]")?x.loading=1:(u=a.createElement("link"),x.preload=u,u.addEventListener("load",function(){return x.loading|=1}),u.addEventListener("error",function(){return x.loading|=2}),_o(u,"link",m),Rr(u),a.head.appendChild(u))}function gd(a){return'[src="'+gs(a)+'"]'}function yd(a){return"script[async]"+a}function VS(a,u,m){if(u.count++,u.instance===null)switch(u.type){case"style":var x=a.querySelector('style[data-href~="'+gs(m.href)+'"]');if(x)return u.instance=x,Rr(x),x;var O=h({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return x=(a.ownerDocument||a).createElement("style"),Rr(x),_o(x,"style",O),qm(x,m.precedence,a),u.instance=x;case"stylesheet":O=pd(m.href);var $=a.querySelector(md(O));if($)return u.state.loading|=4,u.instance=$,Rr($),$;x=qS(m),(O=oi.get(O))&&Cy(x,O),$=(a.ownerDocument||a).createElement("link"),Rr($);var Q=$;return Q._p=new Promise(function(ee,ue){Q.onload=ee,Q.onerror=ue}),_o($,"link",x),u.state.loading|=4,qm($,m.precedence,a),u.instance=$;case"script":return $=gd(m.src),(O=a.querySelector(yd($)))?(u.instance=O,Rr(O),O):(x=m,(O=oi.get($))&&(x=h({},m),Vm(x,O)),a=a.ownerDocument||a,O=a.createElement("script"),Rr(O),_o(O,"link",x),a.head.appendChild(O),u.instance=O);case"void":return null;default:throw Error(r(443,u.type))}else u.type==="stylesheet"&&(u.state.loading&4)===0&&(x=u.instance,u.state.loading|=4,qm(x,m.precedence,a));return u.instance}function qm(a,u,m){for(var x=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),O=x.length?x[x.length-1]:null,$=O,Q=0;Q<x.length;Q++){var ee=x[Q];if(ee.dataset.precedence===u)$=ee;else if($!==O)break}$?$.parentNode.insertBefore(a,$.nextSibling):(u=m.nodeType===9?m.head:m,u.insertBefore(a,u.firstChild))}function Cy(a,u){a.crossOrigin==null&&(a.crossOrigin=u.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=u.referrerPolicy),a.title==null&&(a.title=u.title)}function Vm(a,u){a.crossOrigin==null&&(a.crossOrigin=u.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=u.referrerPolicy),a.integrity==null&&(a.integrity=u.integrity)}var vh=null;function YS(a,u,m){if(vh===null){var x=new Map,O=vh=new Map;O.set(m,x)}else O=vh,x=O.get(m),x||(x=new Map,O.set(m,x));if(x.has(a))return x;for(x.set(a,null),m=m.getElementsByTagName(a),O=0;O<m.length;O++){var $=m[O];if(!($[nn]||$[et]||a==="link"&&$.getAttribute("rel")==="stylesheet")&&$.namespaceURI!=="http://www.w3.org/2000/svg"){var Q=$.getAttribute(u)||"";Q=a+Q;var ee=x.get(Q);ee?ee.push($):x.set(Q,[$])}}return x}function GS(a,u,m){a=a.ownerDocument||a,a.head.insertBefore(m,u==="title"?a.querySelector("head > title"):null)}function RC(a,u,m){if(m===1||u.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof u.precedence!="string"||typeof u.href!="string"||u.href==="")break;return!0;case"link":if(typeof u.rel!="string"||typeof u.href!="string"||u.href===""||u.onLoad||u.onError)break;switch(u.rel){case"stylesheet":return a=u.disabled,typeof u.precedence=="string"&&a==null;default:return!0}case"script":if(u.async&&typeof u.async!="function"&&typeof u.async!="symbol"&&!u.onLoad&&!u.onError&&u.src&&typeof u.src=="string")return!0}return!1}function WS(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function vd(a,u,m,x){if(m.type==="stylesheet"&&(typeof x.media!="string"||matchMedia(x.media).matches!==!1)&&(m.state.loading&4)===0){if(m.instance===null){var O=pd(x.href),$=u.querySelector(md(O));if($){u=$._p,u!==null&&typeof u=="object"&&typeof u.then=="function"&&(a.count++,a=Ym.bind(a),u.then(a,a)),m.state.loading|=4,m.instance=$,Rr($);return}$=u.ownerDocument||u,x=qS(x),(O=oi.get(O))&&Cy(x,O),$=$.createElement("link"),Rr($);var Q=$;Q._p=new Promise(function(ee,ue){Q.onload=ee,Q.onerror=ue}),_o($,"link",x),m.instance=$}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(m,u),(u=m.state.preload)&&(m.state.loading&3)===0&&(a.count++,m=Ym.bind(a),u.addEventListener("load",m),u.addEventListener("error",m))}}var _y=0;function OC(a,u){return a.stylesheets&&a.count===0&&Wm(a,a.stylesheets),0<a.count||0<a.imgCount?function(m){var x=setTimeout(function(){if(a.stylesheets&&Wm(a,a.stylesheets),a.unsuspend){var $=a.unsuspend;a.unsuspend=null,$()}},6e4+u);0<a.imgBytes&&_y===0&&(_y=62500*hh());var O=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&Wm(a,a.stylesheets),a.unsuspend)){var $=a.unsuspend;a.unsuspend=null,$()}},(a.imgBytes>_y?50:800)+u);return a.unsuspend=m,function(){a.unsuspend=null,clearTimeout(x),clearTimeout(O)}}:null}function Ym(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wm(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var Gm=null;function Wm(a,u){a.stylesheets=null,a.unsuspend!==null&&(a.count++,Gm=new Map,u.forEach(QS,a),Gm=null,Ym.call(a))}function QS(a,u){if(!(u.state.loading&4)){var m=Gm.get(a);if(m)var x=m.get(null);else{m=new Map,Gm.set(a,m);for(var O=a.querySelectorAll("link[data-precedence],style[data-precedence]"),$=0;$<O.length;$++){var Q=O[$];(Q.nodeName==="LINK"||Q.getAttribute("media")!=="not all")&&(m.set(Q.dataset.precedence,Q),x=Q)}x&&m.set(null,x)}O=u.instance,Q=O.getAttribute("data-precedence"),$=m.get(Q)||x,$===x&&m.set(null,O),m.set(Q,O),this.count++,x=Ym.bind(this),O.addEventListener("load",x),O.addEventListener("error",x),$?$.parentNode.insertBefore(O,$.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(O,a.firstChild)),u.state.loading|=4}}var bd={$$typeof:T,Provider:null,Consumer:null,_currentValue:z,_currentValue2:z,_threadCount:0};function PC(a,u,m,x,O,$,Q,ee,ue){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Gt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gt(0),this.hiddenUpdates=Gt(null),this.identifierPrefix=x,this.onUncaughtError=O,this.onCaughtError=$,this.onRecoverableError=Q,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ue,this.incompleteTransitions=new Map}function KS(a,u,m,x,O,$,Q,ee,ue,ke,Fe,Be){return a=new PC(a,u,m,Q,ue,ke,Fe,Be,ee),u=1,$===!0&&(u|=24),$=So(3,null,null,u),a.current=$,$.stateNode=a,u=_i(),u.refCount++,a.pooledCache=u,u.refCount++,$.memoizedState={element:x,isDehydrated:m,cache:u},na($),a}function XS(a){return a?(a=Ea,a):Ea}function ZS(a,u,m,x,O,$){O=XS(O),x.context===null?x.context=O:x.pendingContext=O,x=Cl(u),x.payload={element:m},$=$===void 0?null:$,$!==null&&(x.callback=$),m=ki(a,x,u),m!==null&&(rs(m,a,u),jf(m,a,u))}function JS(a,u){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var m=a.retryLane;a.retryLane=m!==0&&m<u?m:u}}function Ty(a,u){JS(a,u),(a=a.alternate)&&JS(a,u)}function e3(a){if(a.tag===13||a.tag===31){var u=Ji(a,67108864);u!==null&&rs(u,a,67108864),Ty(a,67108864)}}function t3(a){if(a.tag===13||a.tag===31){var u=Ds();u=$e(u);var m=Ji(a,u);m!==null&&rs(m,a,u),Ty(a,u)}}var Qm=!0;function NC(a,u,m,x){var O=U.T;U.T=null;var $=q.p;try{q.p=2,Ey(a,u,m,x)}finally{q.p=$,U.T=O}}function IC(a,u,m,x){var O=U.T;U.T=null;var $=q.p;try{q.p=8,Ey(a,u,m,x)}finally{q.p=$,U.T=O}}function Ey(a,u,m,x){if(Qm){var O=ky(x);if(O===null)my(a,u,x,Km,m),r3(a,x);else if(o3(O,a,u,m,x))x.stopPropagation();else if(r3(a,x),u&4&&-1<$C.indexOf(a)){for(;O!==null;){var $=Io(O);if($!==null)switch($.tag){case 3:if($=$.stateNode,$.current.memoizedState.isDehydrated){var Q=Je($.pendingLanes);if(Q!==0){var ee=$;for(ee.pendingLanes|=2,ee.entangledLanes|=2;Q;){var ue=1<<31-he(Q);ee.entanglements[1]|=ue,Q&=~ue}aa($),(Vn&6)===0&&(Ic=ct()+500,uh(0))}}break;case 31:case 13:ee=Ji($,2),ee!==null&&rs(ee,$,2),Rm(),Ty($,2)}if($=ky(x),$===null&&my(a,u,x,Km,m),$===O)break;O=$}O!==null&&x.stopPropagation()}else my(a,u,x,null,m)}}function ky(a){return a=Ug(a),My(a)}var Km=null;function My(a){if(Km=null,a=Mo(a),a!==null){var u=s(a);if(u===null)a=null;else{var m=u.tag;if(m===13){if(a=i(u),a!==null)return a;a=null}else if(m===31){if(a=l(u),a!==null)return a;a=null}else if(m===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;a=null}else u!==a&&(a=null)}}return Km=a,null}function n3(a){switch(a){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(cn()){case bn:return 2;case Tt:return 8;case Ft:case Xt:return 32;case _n:return 268435456;default:return 32}default:return 32}}var jy=!1,Ll=null,Fl=null,zl=null,bh=new Map,Sh=new Map,Ul=[],$C="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".split(" ");function r3(a,u){switch(a){case"focusin":case"focusout":Ll=null;break;case"dragenter":case"dragleave":Fl=null;break;case"mouseover":case"mouseout":zl=null;break;case"pointerover":case"pointerout":bh.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sh.delete(u.pointerId)}}function Fc(a,u,m,x,O,$){return a===null||a.nativeEvent!==$?(a={blockedOn:u,domEventName:m,eventSystemFlags:x,nativeEvent:$,targetContainers:[O]},u!==null&&(u=Io(u),u!==null&&e3(u)),a):(a.eventSystemFlags|=x,u=a.targetContainers,O!==null&&u.indexOf(O)===-1&&u.push(O),a)}function o3(a,u,m,x,O){switch(u){case"focusin":return Ll=Fc(Ll,a,u,m,x,O),!0;case"dragenter":return Fl=Fc(Fl,a,u,m,x,O),!0;case"mouseover":return zl=Fc(zl,a,u,m,x,O),!0;case"pointerover":var $=O.pointerId;return bh.set($,Fc(bh.get($)||null,a,u,m,x,O)),!0;case"gotpointercapture":return $=O.pointerId,Sh.set($,Fc(Sh.get($)||null,a,u,m,x,O)),!0}return!1}function Dy(a){var u=Mo(a.target);if(u!==null){var m=s(u);if(m!==null){if(u=m.tag,u===13){if(u=i(m),u!==null){a.blockedOn=u,Et(a.priority,function(){t3(m)});return}}else if(u===31){if(u=l(m),u!==null){a.blockedOn=u,Et(a.priority,function(){t3(m)});return}}else if(u===3&&m.stateNode.current.memoizedState.isDehydrated){a.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Xm(a){if(a.blockedOn!==null)return!1;for(var u=a.targetContainers;0<u.length;){var m=ky(a.nativeEvent);if(m===null){m=a.nativeEvent;var x=new m.constructor(m.type,m);zg=x,m.target.dispatchEvent(x),zg=null}else return u=Io(m),u!==null&&e3(u),a.blockedOn=m,!1;u.shift()}return!0}function s3(a,u,m){Xm(a)&&m.delete(u)}function LC(){jy=!1,Ll!==null&&Xm(Ll)&&(Ll=null),Fl!==null&&Xm(Fl)&&(Fl=null),zl!==null&&Xm(zl)&&(zl=null),bh.forEach(s3),Sh.forEach(s3)}function Sd(a,u){a.blockedOn===u&&(a.blockedOn=null,jy||(jy=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,LC)))}var Zm=null;function i3(a){Zm!==a&&(Zm=a,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Zm===a&&(Zm=null);for(var u=0;u<a.length;u+=3){var m=a[u],x=a[u+1],O=a[u+2];if(typeof x!="function"){if(My(x||m)===null)continue;break}var $=Io(m);$!==null&&(a.splice(u,3),u-=3,El($,{pending:!0,data:O,method:m.method,action:x},x,O))}}))}function wd(a){function u(ue){return Sd(ue,a)}Ll!==null&&Sd(Ll,a),Fl!==null&&Sd(Fl,a),zl!==null&&Sd(zl,a),bh.forEach(u),Sh.forEach(u);for(var m=0;m<Ul.length;m++){var x=Ul[m];x.blockedOn===a&&(x.blockedOn=null)}for(;0<Ul.length&&(m=Ul[0],m.blockedOn===null);)Dy(m),m.blockedOn===null&&Ul.shift();if(m=(a.ownerDocument||a).$$reactFormReplay,m!=null)for(x=0;x<m.length;x+=3){var O=m[x],$=m[x+1],Q=O[Ge]||null;if(typeof $=="function")Q||i3(m);else if(Q){var ee=null;if($&&$.hasAttribute("formAction")){if(O=$,Q=$[Ge]||null)ee=Q.formAction;else if(My(O)!==null)continue}else ee=Q.action;typeof ee=="function"?m[x+1]=ee:(m.splice(x,3),x-=3),i3(m)}}}function Bo(){function a($){$.canIntercept&&$.info==="react-transition"&&$.intercept({handler:function(){return new Promise(function(Q){return O=Q})},focusReset:"manual",scroll:"manual"})}function u(){O!==null&&(O(),O=null),x||setTimeout(m,20)}function m(){if(!x&&!navigation.transition){var $=navigation.currentEntry;$&&$.url!=null&&navigation.navigate($.url,{state:$.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var x=!1,O=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",u),navigation.addEventListener("navigateerror",u),setTimeout(m,100),function(){x=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",u),navigation.removeEventListener("navigateerror",u),O!==null&&(O(),O=null)}}}function wh(a){this._internalRoot=a}Jm.prototype.render=wh.prototype.render=function(a){var u=this._internalRoot;if(u===null)throw Error(r(409));var m=u.current,x=Ds();ZS(m,x,a,u,null,null)},Jm.prototype.unmount=wh.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var u=a.containerInfo;ZS(a.current,2,null,a,null,null),Rm(),u[ut]=null}};function Jm(a){this._internalRoot=a}Jm.prototype.unstable_scheduleHydration=function(a){if(a){var u=tt();a={blockedOn:null,target:a,priority:u};for(var m=0;m<Ul.length&&u!==0&&u<Ul[m].priority;m++);Ul.splice(m,0,a),m===0&&Dy(a)}};var a3=e.version;if(a3!=="19.2.4")throw Error(r(527,a3,"19.2.4"));q.findDOMNode=function(a){var u=a._reactInternals;if(u===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=d(u),a=a!==null?f(a):null,a=a===null?null:a.stateNode,a};var FC={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var e1=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!e1.isDisabled&&e1.supportsFiber)try{Jt=e1.inject(FC),en=e1}catch{}}return Ry.createRoot=function(a,u){if(!o(a))throw Error(r(299));var m=!1,x="",O=A0,$=R0,Q=Yb;return u!=null&&(u.unstable_strictMode===!0&&(m=!0),u.identifierPrefix!==void 0&&(x=u.identifierPrefix),u.onUncaughtError!==void 0&&(O=u.onUncaughtError),u.onCaughtError!==void 0&&($=u.onCaughtError),u.onRecoverableError!==void 0&&(Q=u.onRecoverableError)),u=KS(a,1,!1,null,null,m,x,null,O,$,Q,Bo),a[ut]=u.current,py(a),new wh(u)},Ry.hydrateRoot=function(a,u,m){if(!o(a))throw Error(r(299));var x=!1,O="",$=A0,Q=R0,ee=Yb,ue=null;return m!=null&&(m.unstable_strictMode===!0&&(x=!0),m.identifierPrefix!==void 0&&(O=m.identifierPrefix),m.onUncaughtError!==void 0&&($=m.onUncaughtError),m.onCaughtError!==void 0&&(Q=m.onCaughtError),m.onRecoverableError!==void 0&&(ee=m.onRecoverableError),m.formState!==void 0&&(ue=m.formState)),u=KS(a,1,!0,u,m??null,x,O,ue,$,Q,ee,Bo),u.context=XS(null),m=u.current,x=Ds(),x=$e(x),O=Cl(x),O.callback=null,ki(m,O,x),m=x,u.current.lanes=m,$n(u,m),aa(u),a[ut]=u.current,py(a),new Jm(u)},Ry.version="19.2.4",Ry}var aM;function AH(){if(aM)return BC.exports;aM=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),BC.exports=DH(),BC.exports}var RH=AH();const OH=hu(RH);var D=t2();const Rn=hu(D),Z8=FP({__proto__:null,default:Rn},[D]);var GC,lM;function PH(){return lM||(lM=1,GC={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}),GC}var NH=PH();const IH=hu(NH);var $H=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function cM(t){var e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=t.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(e.name=n[1],(IH[n[1]]||t.charAt(t.length-2)==="/")&&(e.voidElement=!0),e.name.startsWith("!--"))){var r=t.indexOf("-->");return{type:"comment",comment:r!==-1?t.slice(4,r):""}}for(var o=new RegExp($H),s=null;(s=o.exec(t))!==null;)if(s[0].trim())if(s[1]){var i=s[1].trim(),l=[i,""];i.indexOf("=")>-1&&(l=i.split("=")),e.attrs[l[0]]=l[1],o.lastIndex--}else s[2]&&(e.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1));return e}var LH=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,FH=/^\s*$/,zH=Object.create(null);function UP(t,e){switch(e.type){case"text":return t+e.content;case"tag":return t+="<"+e.name+(e.attrs?(function(n){var r=[];for(var o in n)r.push(o+'="'+n[o]+'"');return r.length?" "+r.join(" "):""})(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?t:t+e.children.reduce(UP,"")+"</"+e.name+">";case"comment":return t+"<!--"+e.comment+"-->"}}var UH={parse:function(t,e){e||(e={}),e.components||(e.components=zH);var n,r=[],o=[],s=-1,i=!1;if(t.indexOf("<")!==0){var l=t.indexOf("<");r.push({type:"text",content:l===-1?t:t.substring(0,l)})}return t.replace(LH,function(c,d){if(i){if(c!=="</"+n.name+">")return;i=!1}var f,h=c.charAt(1)!=="/",p=c.startsWith("<!--"),v=d+c.length,g=t.charAt(v);if(p){var S=cM(c);return s<0?(r.push(S),r):((f=o[s]).children.push(S),r)}if(h&&(s++,(n=cM(c)).type==="tag"&&e.components[n.name]&&(n.type="component",i=!0),n.voidElement||i||!g||g==="<"||n.children.push({type:"text",content:t.slice(v,t.indexOf("<",v))}),s===0&&r.push(n),(f=o[s-1])&&f.children.push(n),o[s]=n),(!h||n.voidElement)&&(s>-1&&(n.voidElement||n.name===c.slice(2,-1))&&(s--,n=s===-1?r:o[s]),!i&&g!=="<"&&g)){f=s===-1?r:o[s].children;var w=t.indexOf("<",v),_=t.slice(v,w===-1?void 0:w);FH.test(_)&&(_=" "),(w>-1&&s+f.length>=0||_!==" ")&&f.push({type:"text",content:_})}}),r},stringify:function(t){return t.reduce(function(e,n){return e+UP("",n)},"")}};const W3=(t,e,n,r)=>{var s,i,l,c;const o=[n,{code:e,...r||{}}];if((i=(s=t==null?void 0:t.services)==null?void 0:s.logger)!=null&&i.forward)return t.services.logger.forward(o,"warn","react-i18next::",!0);fa(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),(c=(l=t==null?void 0:t.services)==null?void 0:l.logger)!=null&&c.warn?t.services.logger.warn(...o):console!=null&&console.warn&&console.warn(...o)},uM={},Sv=(t,e,n,r)=>{fa(n)&&uM[n]||(fa(n)&&(uM[n]=new Date),W3(t,e,n,r))},BP=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},a9=(t,e,n)=>{t.loadNamespaces(e,BP(t,n))},dM=(t,e,n,r)=>{if(fa(n)&&(n=[n]),t.options.preload&&t.options.preload.indexOf(e)>-1)return a9(t,n,r);n.forEach(o=>{t.options.ns.indexOf(o)<0&&t.options.ns.push(o)}),t.loadLanguages(e,BP(t,r))},BH=(t,e,n={})=>!e.languages||!e.languages.length?(Sv(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(r,o)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!o(r.isLanguageChangingTo,t))return!1}}),fa=t=>typeof t=="string",Rd=t=>typeof t=="object"&&t!==null,HH=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,qH={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},VH=t=>qH[t],YH=t=>t.replace(HH,VH);let l9={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:YH};const GH=(t={})=>{l9={...l9,...t}},HP=()=>l9;let qP;const WH=t=>{qP=t},J8=()=>qP,WC=(t,e)=>{var r;if(!t)return!1;const n=((r=t.props)==null?void 0:r.children)??t.children;return e?n.length>0:!!n},QC=t=>{var n,r;if(!t)return[];const e=((n=t.props)==null?void 0:n.children)??t.children;return(r=t.props)!=null&&r.i18nIsDynamicList?C1(e):e},QH=t=>Array.isArray(t)&&t.every(D.isValidElement),C1=t=>Array.isArray(t)?t:[t],KH=(t,e)=>{const n={...e};return n.props=Object.assign(t.props,e.props),n},VP=(t,e,n,r)=>{if(!t)return"";let o="";const s=C1(t),i=e!=null&&e.transSupportBasicHtmlNodes?e.transKeepBasicHtmlNodesFor??[]:[];return s.forEach((l,c)=>{if(fa(l)){o+=`${l}`;return}if(D.isValidElement(l)){const{props:d,type:f}=l,h=Object.keys(d).length,p=i.indexOf(f)>-1,v=d.children;if(!v&&p&&!h){o+=`<${f}/>`;return}if(!v&&(!p||h)||d.i18nIsDynamicList){o+=`<${c}></${c}>`;return}if(p&&h===1&&fa(v)){o+=`<${f}>${v}</${f}>`;return}const g=VP(v,e,n,r);o+=`<${c}>${g}</${c}>`;return}if(l===null){W3(n,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:r});return}if(Rd(l)){const{format:d,...f}=l,h=Object.keys(f);if(h.length===1){const p=d?`${h[0]}, ${d}`:h[0];o+=`{{${p}}}`;return}W3(n,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:r,child:l});return}W3(n,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:r,child:l})}),o},XH=(t,e,n,r,o,s,i)=>{if(n==="")return[];const l=o.transKeepBasicHtmlNodesFor||[],c=n&&new RegExp(l.map(_=>`<${_}`).join("|")).test(n);if(!t&&!e&&!c&&!i)return[n];const d=e??{},f=_=>{C1(_).forEach(T=>{fa(T)||(WC(T)?f(QC(T)):Rd(T)&&!D.isValidElement(T)&&Object.assign(d,T))})};f(t);const h=UH.parse(`<0>${n}</0>`),p={...d,...s},v=(_,E,T)=>{var A;const M=QC(_),j=S(M,E.children,T);return QH(M)&&j.length===0||(A=_.props)!=null&&A.i18nIsDynamicList?M:j},g=(_,E,T,M,j)=>{_.dummy?(_.children=E,T.push(D.cloneElement(_,{key:M},j?void 0:E))):T.push(...D.Children.map([_],A=>{const k={...A.props};return delete k.i18nIsDynamicList,D.createElement(A.type,{...k,key:M,ref:A.props.ref??A.ref},j?null:E)}))},S=(_,E,T)=>{const M=C1(_);return C1(E).reduce((A,k,R)=>{var I,L;const N=((L=(I=k.children)==null?void 0:I[0])==null?void 0:L.content)&&r.services.interpolator.interpolate(k.children[0].content,p,r.language);if(k.type==="tag"){let F=M[parseInt(k.name,10)];!F&&e&&(F=e[k.name]),T.length===1&&!F&&(F=T[0][k.name]),F||(F={});const H=Object.keys(k.attrs).length!==0?KH({props:k.attrs},F):F,B=D.isValidElement(H),Y=B&&WC(k,!0)&&!k.voidElement,U=c&&Rd(H)&&H.dummy&&!B,q=Rd(e)&&Object.hasOwnProperty.call(e,k.name);if(fa(H)){const z=r.services.interpolator.interpolate(H,p,r.language);A.push(z)}else if(WC(H)||Y){const z=v(H,k,T);g(H,z,A,R)}else if(U){const z=S(M,k.children,T);g(H,z,A,R)}else if(Number.isNaN(parseFloat(k.name)))if(q){const z=v(H,k,T);g(H,z,A,R,k.voidElement)}else if(o.transSupportBasicHtmlNodes&&l.indexOf(k.name)>-1)if(k.voidElement)A.push(D.createElement(k.name,{key:`${k.name}-${R}`}));else{const z=S(M,k.children,T);A.push(D.createElement(k.name,{key:`${k.name}-${R}`},z))}else if(k.voidElement)A.push(`<${k.name} />`);else{const z=S(M,k.children,T);A.push(`<${k.name}>${z}</${k.name}>`)}else if(Rd(H)&&!B){const z=k.children[0]?N:null;z&&A.push(z)}else g(H,N,A,R,k.children.length!==1||!N)}else if(k.type==="text"){const F=o.transWrapTextNodes,H=i?o.unescape(r.services.interpolator.interpolate(k.content,p,r.language)):r.services.interpolator.interpolate(k.content,p,r.language);F?A.push(D.createElement(F,{key:`${k.name}-${R}`},H)):A.push(H)}return A},[])},w=S([{dummy:!0,children:t||[]}],h,C1(t||[]));return QC(w[0])},YP=(t,e,n)=>{const r=t.key||e,o=D.cloneElement(t,{key:r});if(!o.props||!o.props.children||n.indexOf(`${e}/>`)<0&&n.indexOf(`${e} />`)<0)return o;function s(){return D.createElement(D.Fragment,null,o)}return D.createElement(s,{key:r})},ZH=(t,e)=>t.map((n,r)=>YP(n,r,e)),JH=(t,e)=>{const n={};return Object.keys(t).forEach(r=>{Object.assign(n,{[r]:YP(t[r],r,e)})}),n},eq=(t,e,n,r)=>t?Array.isArray(t)?ZH(t,e):Rd(t)?JH(t,e):(Sv(n,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:r}),null):null,tq=t=>!Rd(t)||Array.isArray(t)?!1:Object.keys(t).reduce((e,n)=>e&&Number.isNaN(Number.parseFloat(n)),!0);function nq({children:t,count:e,parent:n,i18nKey:r,context:o,tOptions:s={},values:i,defaults:l,components:c,ns:d,i18n:f,t:h,shouldUnescape:p,...v}){var B,Y,U,q,z,W;const g=f||J8();if(!g)return Sv(g,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:r}),t;const S=h||g.t.bind(g)||(K=>K),w={...HP(),...(B=g.options)==null?void 0:B.react};let _=d||S.ns||((Y=g.options)==null?void 0:Y.defaultNS);_=fa(_)?[_]:_||["translation"];const E=VP(t,w,g,r),T=l||E||w.transEmptyNodeValue||r,{hashTransKey:M}=w,j=r||(M?M(E||T):E||T);(q=(U=g.options)==null?void 0:U.interpolation)!=null&&q.defaultVariables&&(i=i&&Object.keys(i).length>0?{...i,...g.options.interpolation.defaultVariables}:{...g.options.interpolation.defaultVariables});const A=i||e!==void 0&&!((W=(z=g.options)==null?void 0:z.interpolation)!=null&&W.alwaysFormat)||!t?s.interpolation:{interpolation:{...s.interpolation,prefix:"#$?",suffix:"?$#"}},k={...s,context:o||s.context,count:e,...i,...A,defaultValue:T,ns:_},R=j?S(j,k):T,N=eq(c,R,g,r);let I=N||t,L=null;tq(N)&&(L=N,I=t);const F=XH(I,L,R,g,w,k,p),H=n??w.defaultTransParent;return H?D.createElement(H,v,F):F}const rq={type:"3rdParty",init(t){GH(t.options.react),WH(t)}},eT=D.createContext();class oq{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function n2({children:t,count:e,parent:n,i18nKey:r,context:o,tOptions:s={},values:i,defaults:l,components:c,ns:d,i18n:f,t:h,shouldUnescape:p,...v}){var E;const{i18n:g,defaultNS:S}=D.useContext(eT)||{},w=f||g||J8(),_=h||(w==null?void 0:w.t.bind(w));return nq({children:t,count:e,parent:n,i18nKey:r,context:o,tOptions:s,values:i,defaults:l,components:c,ns:d||(_==null?void 0:_.ns)||S||((E=w==null?void 0:w.options)==null?void 0:E.defaultNS),i18n:w,t:h,shouldUnescape:p,...v})}const sq=(t,e)=>{const n=D.useRef();return D.useEffect(()=>{n.current=t},[t,e]),n.current},GP=(t,e,n,r)=>t.getFixedT(e,n,r),iq=(t,e,n,r)=>D.useCallback(GP(t,e,n,r),[t,e,n,r]),at=(t,e={})=>{var M,j,A,k;const{i18n:n}=e,{i18n:r,defaultNS:o}=D.useContext(eT)||{},s=n||r||J8();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new oq),!s){Sv(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const R=(I,L)=>fa(L)?L:Rd(L)&&fa(L.defaultValue)?L.defaultValue:Array.isArray(I)?I[I.length-1]:I,N=[R,{},!1];return N.t=R,N.i18n={},N.ready=!1,N}(M=s.options.react)!=null&&M.wait&&Sv(s,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i={...HP(),...s.options.react,...e},{useSuspense:l,keyPrefix:c}=i;let d=t||o||((j=s.options)==null?void 0:j.defaultNS);d=fa(d)?[d]:d||["translation"],(k=(A=s.reportNamespaces).addUsedNamespaces)==null||k.call(A,d);const f=(s.isInitialized||s.initializedStoreOnce)&&d.every(R=>BH(R,s,i)),h=iq(s,e.lng||null,i.nsMode==="fallback"?d:d[0],c),p=()=>h,v=()=>GP(s,e.lng||null,i.nsMode==="fallback"?d:d[0],c),[g,S]=D.useState(p);let w=d.join();e.lng&&(w=`${e.lng}${w}`);const _=sq(w),E=D.useRef(!0);D.useEffect(()=>{const{bindI18n:R,bindI18nStore:N}=i;E.current=!0,!f&&!l&&(e.lng?dM(s,e.lng,d,()=>{E.current&&S(v)}):a9(s,d,()=>{E.current&&S(v)})),f&&_&&_!==w&&E.current&&S(v);const I=()=>{E.current&&S(v)};return R&&(s==null||s.on(R,I)),N&&(s==null||s.store.on(N,I)),()=>{E.current=!1,s&&R&&(R==null||R.split(" ").forEach(L=>s.off(L,I))),N&&s&&N.split(" ").forEach(L=>s.store.off(L,I))}},[s,w]),D.useEffect(()=>{E.current&&f&&S(p)},[s,c,f]);const T=[g,s,f];if(T.t=g,T.i18n=s,T.ready=f,f||!f&&!l)return T;throw new Promise(R=>{e.lng?dM(s,e.lng,d,()=>R()):a9(s,d,()=>R())})};function aq({i18n:t,defaultNS:e,children:n}){const r=D.useMemo(()=>({i18n:t,defaultNS:e}),[t,e]);return D.createElement(eT.Provider,{value:r},n)}const lq={VITE_APP_TYPE:"R7"},cq=65,uq=lq,dq=uq.VITE_APP_TYPE;var Yl=function(){return Yl=Object.assign||function(e){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)&&(e[s]=n[s])}return e},Yl.apply(this,arguments)};function WP(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function lDe(t,e,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function l(f){try{d(r.next(f))}catch(h){i(h)}}function c(f){try{d(r.throw(f))}catch(h){i(h)}}function d(f){f.done?s(f.value):o(f.value).then(l,c)}d((r=r.apply(t,e||[])).next())})}function fq(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,s;r<o;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))}var Q3="right-scroll-bar-position",K3="width-before-scroll-bar",hq="with-scroll-bars-hidden",pq="--removed-body-scroll-bar-size";function KC(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function mq(t,e){var n=D.useState(function(){return{value:t,callback:e,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=e,n.facade}var gq=typeof window<"u"?D.useLayoutEffect:D.useEffect,fM=new WeakMap;function yq(t,e){var n=mq(null,function(r){return t.forEach(function(o){return KC(o,r)})});return gq(function(){var r=fM.get(n);if(r){var o=new Set(r),s=new Set(t),i=n.current;o.forEach(function(l){s.has(l)||KC(l,null)}),s.forEach(function(l){o.has(l)||KC(l,i)})}fM.set(n,t)},[t]),n}function vq(t){return t}function bq(t,e){e===void 0&&(e=vq);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]:t},useMedium:function(s){var i=e(s,r);return n.push(i),function(){n=n.filter(function(l){return l!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(l){return s(l)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var l=n;n=[],l.forEach(s),i=n}var c=function(){var f=i;i=[],f.forEach(s)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(f){i.push(f),d()},filter:function(f){return i=i.filter(f),n}}}};return o}function Sq(t){t===void 0&&(t={});var e=bq(null);return e.options=Yl({async:!0,ssr:!1},t),e}var QP=function(t){var e=t.sideCar,n=WP(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return D.createElement(r,Yl({},n))};QP.isSideCarExport=!0;function wq(t,e){return t.useMedium(e),QP}var KP=Sq(),XC=function(){},P4=D.forwardRef(function(t,e){var n=D.useRef(null),r=D.useState({onScrollCapture:XC,onWheelCapture:XC,onTouchMoveCapture:XC}),o=r[0],s=r[1],i=t.forwardProps,l=t.children,c=t.className,d=t.removeScrollBar,f=t.enabled,h=t.shards,p=t.sideCar,v=t.noRelative,g=t.noIsolation,S=t.inert,w=t.allowPinchZoom,_=t.as,E=_===void 0?"div":_,T=t.gapMode,M=WP(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=p,A=yq([n,e]),k=Yl(Yl({},M),o);return D.createElement(D.Fragment,null,f&&D.createElement(j,{sideCar:KP,removeScrollBar:d,shards:h,noRelative:v,noIsolation:g,inert:S,setCallbacks:s,allowPinchZoom:!!w,lockRef:n,gapMode:T}),i?D.cloneElement(D.Children.only(l),Yl(Yl({},k),{ref:A})):D.createElement(E,Yl({},k,{className:c,ref:A}),l))});P4.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};P4.classNames={fullWidth:K3,zeroRight:Q3};var xq=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Cq(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=xq();return e&&t.setAttribute("nonce",e),t}function _q(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function Tq(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var Eq=function(){var t=0,e=null;return{add:function(n){t==0&&(e=Cq())&&(_q(e,n),Tq(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},kq=function(){var t=Eq();return function(e,n){D.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},XP=function(){var t=kq(),e=function(n){var r=n.styles,o=n.dynamic;return t(r,o),null};return e},Mq={left:0,top:0,right:0,gap:0},ZC=function(t){return parseInt(t||"",10)||0},jq=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],o=e[t==="padding"?"paddingRight":"marginRight"];return[ZC(n),ZC(r),ZC(o)]},Dq=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return Mq;var e=jq(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},Aq=XP(),k1="data-scroll-locked",Rq=function(t,e,n,r){var o=t.left,s=t.top,i=t.right,l=t.gap;return n===void 0&&(n="margin"),`
  .`.concat(hq,` {
   overflow: hidden `).concat(r,`;
   padding-right: `).concat(l,"px ").concat(r,`;
  }
  body[`).concat(k1,`] {
    overflow: hidden `).concat(r,`;
    overscroll-behavior: contain;
    `).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&`
    padding-left: `.concat(o,`px;
    padding-top: `).concat(s,`px;
    padding-right: `).concat(i,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(l,"px ").concat(r,`;
    `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(Q3,` {
    right: `).concat(l,"px ").concat(r,`;
  }
  
  .`).concat(K3,` {
    margin-right: `).concat(l,"px ").concat(r,`;
  }
  
  .`).concat(Q3," .").concat(Q3,` {
    right: 0 `).concat(r,`;
  }
  
  .`).concat(K3," .").concat(K3,` {
    margin-right: 0 `).concat(r,`;
  }
  
  body[`).concat(k1,`] {
    `).concat(pq,": ").concat(l,`px;
  }
`)},hM=function(){var t=parseInt(document.body.getAttribute(k1)||"0",10);return isFinite(t)?t:0},Oq=function(){D.useEffect(function(){return document.body.setAttribute(k1,(hM()+1).toString()),function(){var t=hM()-1;t<=0?document.body.removeAttribute(k1):document.body.setAttribute(k1,t.toString())}},[])},Pq=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,o=r===void 0?"margin":r;Oq();var s=D.useMemo(function(){return Dq(o)},[o]);return D.createElement(Aq,{styles:Rq(s,!e,o,n?"":"!important")})},c9=!1;if(typeof window<"u")try{var l3=Object.defineProperty({},"passive",{get:function(){return c9=!0,!0}});window.addEventListener("test",l3,l3),window.removeEventListener("test",l3,l3)}catch{c9=!1}var t1=c9?{passive:!1}:!1,Nq=function(t){return t.tagName==="TEXTAREA"},ZP=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!Nq(t)&&n[e]==="visible")},Iq=function(t){return ZP(t,"overflowY")},$q=function(t){return ZP(t,"overflowX")},pM=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=JP(t,r);if(o){var s=eN(t,r),i=s[1],l=s[2];if(i>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Lq=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},Fq=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},JP=function(t,e){return t==="v"?Iq(e):$q(e)},eN=function(t,e){return t==="v"?Lq(e):Fq(e)},zq=function(t,e){return t==="h"&&e==="rtl"?-1:1},Uq=function(t,e,n,r,o){var s=zq(t,window.getComputedStyle(e).direction),i=s*r,l=n.target,c=e.contains(l),d=!1,f=i>0,h=0,p=0;do{if(!l)break;var v=eN(t,l),g=v[0],S=v[1],w=v[2],_=S-w-s*g;(g||_)&&JP(t,l)&&(h+=_,p+=g);var E=l.parentNode;l=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!c&&l!==document.body||c&&(e.contains(l)||e===l));return(f&&Math.abs(h)<1||!f&&Math.abs(p)<1)&&(d=!0),d},c3=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},mM=function(t){return[t.deltaX,t.deltaY]},gM=function(t){return t&&"current"in t?t.current:t},Bq=function(t,e){return t[0]===e[0]&&t[1]===e[1]},Hq=function(t){return`
  .block-interactivity-`.concat(t,` {pointer-events: none;}
  .allow-interactivity-`).concat(t,` {pointer-events: all;}
`)},qq=0,n1=[];function Vq(t){var e=D.useRef([]),n=D.useRef([0,0]),r=D.useRef(),o=D.useState(qq++)[0],s=D.useState(XP)[0],i=D.useRef(t);D.useEffect(function(){i.current=t},[t]),D.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var S=fq([t.lockRef.current],(t.shards||[]).map(gM),!0).filter(Boolean);return S.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),S.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var l=D.useCallback(function(S,w){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!i.current.allowPinchZoom;var _=c3(S),E=n.current,T="deltaX"in S?S.deltaX:E[0]-_[0],M="deltaY"in S?S.deltaY:E[1]-_[1],j,A=S.target,k=Math.abs(T)>Math.abs(M)?"h":"v";if("touches"in S&&k==="h"&&A.type==="range")return!1;var R=window.getSelection(),N=R&&R.anchorNode,I=N?N===A||N.contains(A):!1;if(I)return!1;var L=pM(k,A);if(!L)return!0;if(L?j=k:(j=k==="v"?"h":"v",L=pM(k,A)),!L)return!1;if(!r.current&&"changedTouches"in S&&(T||M)&&(r.current=j),!j)return!0;var F=r.current||j;return Uq(F,w,S,F==="h"?T:M)},[]),c=D.useCallback(function(S){var w=S;if(!(!n1.length||n1[n1.length-1]!==s)){var _="deltaY"in w?mM(w):c3(w),E=e.current.filter(function(j){return j.name===w.type&&(j.target===w.target||w.target===j.shadowParent)&&Bq(j.delta,_)})[0];if(E&&E.should){w.cancelable&&w.preventDefault();return}if(!E){var T=(i.current.shards||[]).map(gM).filter(Boolean).filter(function(j){return j.contains(w.target)}),M=T.length>0?l(w,T[0]):!i.current.noIsolation;M&&w.cancelable&&w.preventDefault()}}},[]),d=D.useCallback(function(S,w,_,E){var T={name:S,delta:w,target:_,should:E,shadowParent:Yq(_)};e.current.push(T),setTimeout(function(){e.current=e.current.filter(function(M){return M!==T})},1)},[]),f=D.useCallback(function(S){n.current=c3(S),r.current=void 0},[]),h=D.useCallback(function(S){d(S.type,mM(S),S.target,l(S,t.lockRef.current))},[]),p=D.useCallback(function(S){d(S.type,c3(S),S.target,l(S,t.lockRef.current))},[]);D.useEffect(function(){return n1.push(s),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",c,t1),document.addEventListener("touchmove",c,t1),document.addEventListener("touchstart",f,t1),function(){n1=n1.filter(function(S){return S!==s}),document.removeEventListener("wheel",c,t1),document.removeEventListener("touchmove",c,t1),document.removeEventListener("touchstart",f,t1)}},[]);var v=t.removeScrollBar,g=t.inert;return D.createElement(D.Fragment,null,g?D.createElement(s,{styles:Hq(o)}):null,v?D.createElement(Pq,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function Yq(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const Gq=wq(KP,Vq);var Yh=D.forwardRef(function(t,e){return D.createElement(P4,Yl({},t,{ref:e,sideCar:Gq}))});Yh.classNames=P4.classNames;function yr(t){return Object.keys(t)}function JC(t){return t&&typeof t=="object"&&!Array.isArray(t)}function N4(t,e){const n={...t},r=e;return JC(t)&&JC(e)&&Object.keys(e).forEach(o=>{JC(r[o])&&o in t?n[o]=N4(n[o],r[o]):n[o]=r[o]}),n}function Wq(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function Qq(t){var e;return typeof t!="string"||!t.includes("var(--mantine-scale)")?t:(e=t.match(/^calc\((.*?)\)$/))==null?void 0:e[1].split("*")[0].trim()}function wv(t){const e=Qq(t);return typeof e=="number"?e:typeof e=="string"?e.includes("calc")||e.includes("var")?e:e.includes("px")?Number(e.replace("px","")):e.includes("rem")?Number(e.replace("rem",""))*16:e.includes("em")?Number(e.replace("em",""))*16:Number(e):NaN}function yM(t){return t==="0rem"?"0rem":`calc(${t} * var(--mantine-scale))`}function tN(t,{shouldScale:e=!1}={}){function n(r){if(r===0||r==="0")return`0${t}`;if(typeof r=="number"){const o=`${r/16}${t}`;return e?yM(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(" ");const o=r.replace("px","");if(!Number.isNaN(Number(o))){const s=`${Number(o)/16}${t}`;return e?yM(s):s}}return r}return n}const Pe=tN("rem",{shouldScale:!0}),_w=tN("em");function Yd(t){return Object.keys(t).reduce((e,n)=>(t[n]!==void 0&&(e[n]=t[n]),e),{})}function nN(t){if(typeof t=="number")return!0;if(typeof t=="string"){if(t.startsWith("calc(")||t.startsWith("var(")||t.includes(" ")&&t.trim()!=="")return!0;const e=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return t.trim().split(/\s+/).every(r=>e.test(r))}return!1}function tT(t){return Array.isArray(t)||t===null?!1:typeof t=="object"?t.type!==D.Fragment:!1}function bi(t){const e=D.createContext(null);return[({children:o,value:s})=>b.jsx(e.Provider,{value:s,children:o}),()=>{const o=D.useContext(e);if(o===null)throw new Error(t);return o}]}function Gd(t=null){const e=D.createContext(t);return[({children:o,value:s})=>b.jsx(e.Provider,{value:s,children:o}),()=>D.useContext(e)]}function vM(t,e){return n=>{if(typeof n!="string"||n.trim().length===0)throw new Error(e);return`${t}-${n}`}}function Tw(t,e){let n=t;for(;(n=n.parentElement)&&!n.matches(e););return n}function Kq(t,e,n){for(let r=t-1;r>=0;r-=1)if(!e[r].disabled)return r;if(n){for(let r=e.length-1;r>-1;r-=1)if(!e[r].disabled)return r}return t}function Xq(t,e,n){for(let r=t+1;r<e.length;r+=1)if(!e[r].disabled)return r;if(n){for(let r=0;r<e.length;r+=1)if(!e[r].disabled)return r}return t}function Zq(t,e,n){return Tw(t,n)===Tw(e,n)}function nT({parentSelector:t,siblingSelector:e,onKeyDown:n,loop:r=!0,activateOnFocus:o=!1,dir:s="rtl",orientation:i}){return l=>{var g;n==null||n(l);const c=Array.from(((g=Tw(l.currentTarget,t))==null?void 0:g.querySelectorAll(e))||[]).filter(S=>Zq(l.currentTarget,S,t)),d=c.findIndex(S=>l.currentTarget===S),f=Xq(d,c,r),h=Kq(d,c,r),p=s==="rtl"?h:f,v=s==="rtl"?f:h;switch(l.key){case"ArrowRight":{i==="horizontal"&&(l.stopPropagation(),l.preventDefault(),c[p].focus(),o&&c[p].click());break}case"ArrowLeft":{i==="horizontal"&&(l.stopPropagation(),l.preventDefault(),c[v].focus(),o&&c[v].click());break}case"ArrowUp":{i==="vertical"&&(l.stopPropagation(),l.preventDefault(),c[h].focus(),o&&c[h].click());break}case"ArrowDown":{i==="vertical"&&(l.stopPropagation(),l.preventDefault(),c[f].focus(),o&&c[f].click());break}case"Home":{l.stopPropagation(),l.preventDefault(),!c[0].disabled&&c[0].focus();break}case"End":{l.stopPropagation(),l.preventDefault();const S=c.length-1;!c[S].disabled&&c[S].focus();break}}}}const Jq={app:100,modal:200,popover:300,overlay:400,max:9999};function Go(t){return Jq[t]}const rN=()=>{};function eV(t,e={active:!0}){return typeof t!="function"||!e.active?e.onKeyDown||rN:n=>{var r;n.key==="Escape"&&(t(n),(r=e.onTrigger)==null||r.call(e))}}function an(t,e="size",n=!0){if(t!==void 0)return nN(t)?n?Pe(t):t:`var(--${e}-${t})`}function co(t){return an(t,"mantine-spacing")}function _r(t){return t===void 0?"var(--mantine-radius-default)":an(t,"mantine-radius")}function eo(t){return an(t,"mantine-font-size")}function oN(t){return an(t,"mantine-line-height",!1)}function rT(t){if(t)return an(t,"mantine-shadow",!1)}function bo(t,e){return n=>{t==null||t(n),e==null||e(n)}}function oT(t,e){return t in e?wv(e[t]):wv(t)}function xv(t,e){const n=t.map(r=>({value:r,px:oT(r,e)}));return n.sort((r,o)=>r.px-o.px),n}function Wa(t){return typeof t=="object"&&t!==null?"base"in t?t.base:void 0:t}function tV(t,e,n){var r;return n?Array.from(((r=Tw(n,e))==null?void 0:r.querySelectorAll(t))||[]).findIndex(o=>o===n):null}function nV(t,e,n){return e===void 0&&n===void 0?t:e!==void 0&&n===void 0?Math.max(t,e):Math.min(e===void 0&&n!==void 0?t:Math.max(t,e),n)}function Pd(t="mantine-"){return`${t}${Math.random().toString(36).slice(2,11)}`}function Gl(t){const e=D.useRef(t);return D.useEffect(()=>{e.current=t}),D.useMemo(()=>((...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)}),[])}function ou(t,e){const{delay:n,flushOnUnmount:r,leading:o}=typeof e=="number"?{delay:e,flushOnUnmount:!1,leading:!1}:e,s=Gl(t),i=D.useRef(0),l=D.useMemo(()=>{const c=Object.assign((...d)=>{window.clearTimeout(i.current);const f=c._isFirstCall;c._isFirstCall=!1;function h(){window.clearTimeout(i.current),i.current=0,c._isFirstCall=!0}if(o&&f){s(...d);const g=()=>{h()},S=()=>{i.current!==0&&(h(),s(...d))},w=()=>{h()};c.flush=S,c.cancel=w,i.current=window.setTimeout(g,n);return}if(o&&!f){const g=()=>{i.current!==0&&(h(),s(...d))},S=()=>{h()};c.flush=g,c.cancel=S;const w=()=>{h()};i.current=window.setTimeout(w,n);return}const p=()=>{i.current!==0&&(h(),s(...d))},v=()=>{h()};c.flush=p,c.cancel=v,i.current=window.setTimeout(p,n)},{flush:()=>{},cancel:()=>{},_isFirstCall:!0});return c},[s,n,o]);return D.useEffect(()=>()=>{r?l.flush():l.cancel()},[l,r]),l}const rV=["mousedown","touchstart"];function r2(t,e,n){const r=D.useRef(null),o=e||rV;return D.useEffect(()=>{const s=i=>{const{target:l}=i??{};if(Array.isArray(n)){const c=!document.body.contains(l)&&(l==null?void 0:l.tagName)!=="HTML";n.every(f=>!!f&&!i.composedPath().includes(f))&&!c&&t(i)}else r.current&&!r.current.contains(l)&&t(i)};return o.forEach(i=>document.addEventListener(i,s)),()=>{o.forEach(i=>document.removeEventListener(i,s))}},[r,t,n]),r}function oV(t={timeout:2e3}){const[e,n]=D.useState(null),[r,o]=D.useState(!1),[s,i]=D.useState(null),l=f=>{window.clearTimeout(s),i(window.setTimeout(()=>o(!1),t.timeout)),o(f)};return{copy:f=>{"clipboard"in navigator?navigator.clipboard.writeText(f).then(()=>l(!0)).catch(h=>n(h)):n(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{o(!1),n(null),window.clearTimeout(s)},error:e,copied:r}}function sV(t,e){try{return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}catch{return t.addListener(e),()=>t.removeListener(e)}}function iV(t,e){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(t).matches:!1}function mi(t,e,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,o]=D.useState(n?e:iV(t));return D.useEffect(()=>{try{const s=window.matchMedia(t);return o(s.matches),sV(s,i=>o(i.matches))}catch{return}},[t]),r||!1}function sN(t,e){return mi("(prefers-color-scheme: dark)",t==="dark",e)?"dark":"light"}function iN(t,e,n={leading:!1}){const[r,o]=D.useState(t),s=D.useRef(!1),i=D.useRef(null),l=D.useRef(!1),c=D.useCallback(()=>window.clearTimeout(i.current),[]);return D.useEffect(()=>{s.current&&(!l.current&&n.leading?(l.current=!0,o(t)):(c(),i.current=window.setTimeout(()=>{l.current=!1,o(t)},e)))},[t,n.leading,e]),D.useEffect(()=>(s.current=!0,c),[]),[r,c]}const pu=typeof document<"u"?D.useLayoutEffect:D.useEffect;function Gh(t,e){const n=D.useRef(!1);D.useEffect(()=>()=>{n.current=!1},[]),D.useEffect(()=>{if(n.current)return t();n.current=!0},e)}function aN({opened:t,shouldReturnFocus:e=!0}){const n=D.useRef(null),r=()=>{var o;n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&((o=n.current)==null||o.focus({preventScroll:!0}))};return Gh(()=>{let o=-1;const s=i=>{i.key==="Tab"&&window.clearTimeout(o)};return document.addEventListener("keydown",s),t?n.current=document.activeElement:e&&(o=window.setTimeout(r,10)),()=>{window.clearTimeout(o),document.removeEventListener("keydown",s)}},[t,e]),r}const aV=/input|select|textarea|button|object/,lN="a, input, select, textarea, button, object, [tabindex]";function lV(t){return t.style.display==="none"}function cV(t){if(t.getAttribute("aria-hidden")||t.getAttribute("hidden")||t.getAttribute("type")==="hidden")return!1;let n=t;for(;n&&!(n===document.body||n.nodeType===11);){if(lV(n))return!1;n=n.parentNode}return!0}function cN(t){let e=t.getAttribute("tabindex");return e===null&&(e=void 0),parseInt(e,10)}function u9(t){const e=t.nodeName.toLowerCase(),n=!Number.isNaN(cN(t));return(aV.test(e)&&!t.disabled||t instanceof HTMLAnchorElement&&t.href||n)&&cV(t)}function uN(t){const e=cN(t);return(Number.isNaN(e)||e>=0)&&u9(t)}function uV(t){return Array.from(t.querySelectorAll(lN)).filter(uN)}function dV(t,e){const n=uV(t);if(!n.length){e.preventDefault();return}const r=n[e.shiftKey?0:n.length-1],o=t.getRootNode();let s=r===o.activeElement||t===o.activeElement;const i=o.activeElement;if(i.tagName==="INPUT"&&i.getAttribute("type")==="radio"&&(s=n.filter(f=>f.getAttribute("type")==="radio"&&f.getAttribute("name")===i.getAttribute("name")).includes(r)),!s)return;e.preventDefault();const c=n[e.shiftKey?n.length-1:0];c&&c.focus()}function fV(t=!0){const e=D.useRef(null),n=o=>{let s=o.querySelector("[data-autofocus]");if(!s){const i=Array.from(o.querySelectorAll(lN));s=i.find(uN)||i.find(u9)||null,!s&&u9(o)&&(s=o)}s&&s.focus({preventScroll:!0})},r=D.useCallback(o=>{t&&o!==null&&e.current!==o&&(o?(setTimeout(()=>{o.getRootNode()&&n(o)}),e.current=o):e.current=null)},[t]);return D.useEffect(()=>{if(!t)return;e.current&&setTimeout(()=>n(e.current));const o=s=>{s.key==="Tab"&&e.current&&dV(e.current,s)};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[t]),r}const hV=t=>(t+1)%1e6;function pV(){const[,t]=D.useReducer(hV,0);return t}const mV=Rn.useId||(()=>{});function gV(){const t=mV();return t?`mantine-${t.replace(/:/g,"")}`:""}function Si(t){const e=gV(),[n,r]=D.useState(e);return pu(()=>{r(Pd())},[]),typeof t=="string"?t:typeof window>"u"?e:n}function dN(t,e,n){D.useEffect(()=>(window.addEventListener(t,e,n),()=>window.removeEventListener(t,e,n)),[t,e])}function d9(t,e){if(typeof t=="function")return t(e);typeof t=="object"&&t!==null&&"current"in t&&(t.current=e)}function fN(...t){const e=new Map;return n=>{if(t.forEach(r=>{const o=d9(r,n);o&&e.set(r,o)}),e.size>0)return()=>{t.forEach(r=>{const o=e.get(r);o&&typeof o=="function"?o():d9(r,null)}),e.clear()}}}function Eo(...t){return D.useCallback(fN(...t),t)}function Wi({value:t,defaultValue:e,finalValue:n,onChange:r=()=>{}}){const[o,s]=D.useState(e!==void 0?e:n),i=(l,...c)=>{s(l),r==null||r(l,...c)};return t!==void 0?[t,r,!0]:[o,i,!1]}function I4(t,e){return mi("(prefers-reduced-motion: reduce)",t,e)}const yV={" ":"space",ArrowLeft:"arrowleft",ArrowRight:"arrowright",ArrowUp:"arrowup",ArrowDown:"arrowdown",Escape:"escape",Esc:"escape",esc:"escape",Enter:"enter",Tab:"tab",Backspace:"backspace",Delete:"delete",Insert:"insert",Home:"home",End:"end",PageUp:"pageup",PageDown:"pagedown","+":"plus","-":"minus","*":"asterisk","/":"slash"};function u3(t){const e=t.replace("Key","").toLowerCase();return yV[t]||e}function vV(t){const e=t.toLowerCase().split("+").map(s=>s.trim()),n={alt:e.includes("alt"),ctrl:e.includes("ctrl"),meta:e.includes("meta"),mod:e.includes("mod"),shift:e.includes("shift"),plus:e.includes("[plus]")},r=["alt","ctrl","meta","shift","mod"],o=e.find(s=>!r.includes(s));return{...n,key:o==="[plus]"?"+":o}}function bV(t,e,n){const{alt:r,ctrl:o,meta:s,mod:i,shift:l,key:c}=t,{altKey:d,ctrlKey:f,metaKey:h,shiftKey:p,key:v,code:g}=e;if(r!==d)return!1;if(i){if(!f&&!h)return!1}else if(o!==f||s!==h)return!1;return l!==p?!1:!!(c&&(n?u3(g)===u3(c):u3(v??g)===u3(c)))}function hN(t,e){return n=>bV(vV(t),n,e)}function pN(t){return e=>{const n="nativeEvent"in e?e.nativeEvent:e;t.forEach(([r,o,s={preventDefault:!0,usePhysicalKeys:!1}])=>{hN(r,s.usePhysicalKeys)(n)&&(s.preventDefault&&e.preventDefault(),o(n))})}}function SV(t,e,n=!1){return t.target instanceof HTMLElement?(n||!t.target.isContentEditable)&&!e.includes(t.target.tagName):!0}function o2(t,e=["INPUT","TEXTAREA","SELECT"],n=!1){D.useEffect(()=>{const r=o=>{t.forEach(([s,i,l={preventDefault:!0,usePhysicalKeys:!1}])=>{hN(s,l.usePhysicalKeys)(o)&&SV(o,e,n)&&(l.preventDefault&&o.preventDefault(),i(o))})};return document.documentElement.addEventListener("keydown",r),()=>document.documentElement.removeEventListener("keydown",r)},[t])}function ig(){const[t,e]=D.useState(!1),n=D.useRef(null),r=D.useCallback(()=>{e(!0)},[]),o=D.useCallback(()=>{e(!1)},[]);return{ref:D.useCallback(i=>{n.current&&(n.current.removeEventListener("mouseenter",r),n.current.removeEventListener("mouseleave",o)),i&&(i.addEventListener("mouseenter",r),i.addEventListener("mouseleave",o)),n.current=i},[r,o]),hovered:t}}function bM(t){return/(Macintosh)|(MacIntel)|(MacPPC)|(Mac68K)/i.test(t)}function wV(t){return/(iPhone)|(iPad)|(iPod)/i.test(t)}function xV(t){return/(Win32)|(Win64)|(Windows)|(WinCE)/i.test(t)}function CV(t){return/Android/i.test(t)}function _V(t){return/Linux/i.test(t)}function TV(t){return/CrOS/i.test(t)}function SM(){if(typeof window>"u")return"undetermined";const{userAgent:t}=window.navigator;return wV(t)||bM(t)&&"ontouchend"in document?"ios":bM(t)?"macos":xV(t)?"windows":CV(t)?"android":_V(t)?"linux":TV(t)?"chromeos":"undetermined"}function $4(t={getValueInEffect:!0}){const[e,n]=D.useState(t.getValueInEffect?"undetermined":SM());return pu(()=>{t.getValueInEffect&&n(SM)},[]),e}function EV(t){return e=>{if(!e)t(e);else if(typeof e=="function")t(e);else if(typeof e=="object"&&"nativeEvent"in e){const{currentTarget:n}=e;n.type==="checkbox"?t(n.checked):t(n.value)}else t(e)}}function sT(t){const[e,n]=D.useState(t);return[e,EV(n)]}function Wd(t=!1,e={}){const[n,r]=D.useState(t),o=D.useCallback(()=>{r(l=>{var c;return l||((c=e.onOpen)==null||c.call(e),!0)})},[e.onOpen]),s=D.useCallback(()=>{r(l=>{var c;return l&&((c=e.onClose)==null||c.call(e),!1)})},[e.onClose]),i=D.useCallback(()=>{n?s():o()},[s,o,n]);return[n,{open:o,close:s,toggle:i}]}function kV(t){return t.currentTarget instanceof HTMLElement&&t.relatedTarget instanceof HTMLElement?t.currentTarget.contains(t.relatedTarget):!1}function MV({onBlur:t,onFocus:e}={}){const[n,r]=D.useState(!1),o=D.useRef(!1),s=D.useRef(null),i=Gl(e),l=Gl(t),c=D.useCallback(p=>{r(p),o.current=p},[]),d=D.useCallback(p=>{o.current||(c(!0),i(p))},[]),f=D.useCallback(p=>{o.current&&!kV(p)&&(c(!1),l(p))},[]),h=D.useCallback(p=>{p&&(s.current&&(s.current.removeEventListener("focusin",d),s.current.removeEventListener("focusout",f)),p.addEventListener("focusin",d),p.addEventListener("focusout",f),s.current=p)},[d,f]);return D.useEffect(()=>()=>{s.current&&(s.current.removeEventListener("focusin",d),s.current.removeEventListener("focusout",f))},[]),{ref:h,focused:n}}function jV(t,e){const n=Gl(t),r=D.useRef(null),o=D.useRef(null),s=D.useRef(!0),i=D.useRef(e),l=D.useRef(-1),c=()=>window.clearTimeout(l.current),d=D.useCallback((...p)=>{n(...p),r.current=p,o.current=p,s.current=!1},[n]),f=D.useCallback(()=>{r.current&&r.current!==o.current?(d(...r.current),l.current=window.setTimeout(f,i.current)):s.current=!0},[d]),h=D.useCallback((...p)=>{s.current?(d(...p),l.current=window.setTimeout(f,i.current)):r.current=p},[d,f]);return D.useEffect(()=>{i.current=e},[e]),[h,c]}function DV(t,e){return jV(t,e)[0]}function AV(t,e){window.dispatchEvent(new CustomEvent(t,{detail:e}))}function RV(t){function e(r){const o=Object.keys(r).reduce((s,i)=>(s[`${t}:${i}`]=l=>r[i](l.detail),s),{});pu(()=>(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)=>AV(`${t}:${String(r)}`,o[0])}return[e,n]}function L4(t){var n;const e=Rn.version;return typeof Rn.version!="string"||e.startsWith("18.")?t==null?void 0:t.ref:(n=t==null?void 0:t.props)==null?void 0:n.ref}function X3(t,e=document){const n=e.querySelector(t);if(n)return n;const r=e.querySelectorAll("*");for(let o=0;o<r.length;o+=1){const s=r[o];if(s.shadowRoot){const i=X3(t,s.shadowRoot);if(i)return i}}return null}function Td(t,e=document){const n=[],r=e.querySelectorAll(t);n.push(...Array.from(r));const o=e.querySelectorAll("*");for(let s=0;s<o.length;s+=1){const i=o[s];if(i.shadowRoot){const l=Td(t,i.shadowRoot);n.push(...l)}}return n}function xd(t){if(!t)return document;const e=t.getRootNode();return e instanceof ShadowRoot||e instanceof Document?e:document}function Qd(t){const e=D.Children.toArray(t);return e.length!==1||!tT(e[0])?null:e[0]}function cDe(t){return t}function mN(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=mN(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Dr(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=mN(t))&&(r&&(r+=" "),r+=e);return r}const OV={};function PV(t){const e={};return t.forEach(n=>{Object.entries(n).forEach(([r,o])=>{e[r]?e[r]=Dr(e[r],o):e[r]=o})}),e}function F4({theme:t,classNames:e,props:n,stylesCtx:r}){const s=(Array.isArray(e)?e:[e]).map(i=>typeof i=="function"?i(t,n,r):i||OV);return PV(s)}function Ew({theme:t,styles:e,props:n,stylesCtx:r}){return(Array.isArray(e)?e:[e]).reduce((s,i)=>typeof i=="function"?{...s,...i(t,n,r)}:{...s,...i},{})}const iT=D.createContext(null);function mu(){const t=D.useContext(iT);if(!t)throw new Error("[@mantine/core] MantineProvider was not found in tree");return t}function NV(){return mu().cssVariablesResolver}function IV(){return mu().classNamesPrefix}function z4(){return mu().getStyleNonce}function $V(){return mu().withStaticClasses}function LV(){return mu().headless}function FV(){var t;return(t=mu().stylesTransform)==null?void 0:t.sx}function zV(){var t;return(t=mu().stylesTransform)==null?void 0:t.styles}function U4(){return mu().env||"default"}function UV(t){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t)}function BV(t){let e=t.replace("#","");if(e.length===3){const i=e.split("");e=[i[0],i[0],i[1],i[1],i[2],i[2]].join("")}if(e.length===8){const i=parseInt(e.slice(6,8),16)/255;return{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16),a:i}}const n=parseInt(e,16),r=n>>16&255,o=n>>8&255,s=n&255;return{r,g:o,b:s,a:1}}function HV(t){const[e,n,r,o]=t.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:e,g:n,b:r,a:o===void 0?1:o}}function qV(t){const e=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=t.match(e);if(!n)return{r:0,g:0,b:0,a:1};const r=parseInt(n[1],10),o=parseInt(n[2],10)/100,s=parseInt(n[3],10)/100,i=n[5]?parseFloat(n[5]):void 0,l=(1-Math.abs(2*s-1))*o,c=r/60,d=l*(1-Math.abs(c%2-1)),f=s-l/2;let h,p,v;return c>=0&&c<1?(h=l,p=d,v=0):c>=1&&c<2?(h=d,p=l,v=0):c>=2&&c<3?(h=0,p=l,v=d):c>=3&&c<4?(h=0,p=d,v=l):c>=4&&c<5?(h=d,p=0,v=l):(h=l,p=0,v=d),{r:Math.round((h+f)*255),g:Math.round((p+f)*255),b:Math.round((v+f)*255),a:i||1}}function aT(t){return UV(t)?BV(t):t.startsWith("rgb")?HV(t):t.startsWith("hsl")?qV(t):{r:0,g:0,b:0,a:1}}function Zy(t,e){if(t.startsWith("var("))return`color-mix(in srgb, ${t}, black ${e*100}%)`;const{r:n,g:r,b:o,a:s}=aT(t),i=1-e,l=c=>Math.round(c*i);return`rgba(${l(n)}, ${l(r)}, ${l(o)}, ${s})`}function Cv(t,e){return typeof t.primaryShade=="number"?t.primaryShade:e==="dark"?t.primaryShade.dark:t.primaryShade.light}function e_(t){return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function VV(t){const e=t.match(/oklch\((.*?)%\s/);return e?parseFloat(e[1]):null}function YV(t){if(t.startsWith("oklch("))return(VV(t)||0)/100;const{r:e,g:n,b:r}=aT(t),o=e/255,s=n/255,i=r/255,l=e_(o),c=e_(s),d=e_(i);return .2126*l+.7152*c+.0722*d}function g1(t,e=.179){return t.startsWith("var(")?!1:YV(t)>e}function cc({color:t,theme:e,colorScheme:n}){if(typeof t!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof t}`);if(t==="bright")return{color:t,value:n==="dark"?e.white:e.black,shade:void 0,isThemeColor:!1,isLight:g1(n==="dark"?e.white:e.black,e.luminanceThreshold),variable:"--mantine-color-bright"};if(t==="dimmed")return{color:t,value:n==="dark"?e.colors.dark[2]:e.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:g1(n==="dark"?e.colors.dark[2]:e.colors.gray[6],e.luminanceThreshold),variable:"--mantine-color-dimmed"};if(t==="white"||t==="black")return{color:t,value:t==="white"?e.white:e.black,shade:void 0,isThemeColor:!1,isLight:g1(t==="white"?e.white:e.black,e.luminanceThreshold),variable:`--mantine-color-${t}`};const[r,o]=t.split("."),s=o?Number(o):void 0,i=r in e.colors;if(i){const l=s!==void 0?e.colors[r][s]:e.colors[r][Cv(e,n||"light")];return{color:r,value:l,shade:s,isThemeColor:i,isLight:g1(l,e.luminanceThreshold),variable:o?`--mantine-color-${r}-${s}`:`--mantine-color-${r}-filled`}}return{color:t,value:t,isThemeColor:i,isLight:g1(t,e.luminanceThreshold),shade:s,variable:void 0}}function dr(t,e){const n=cc({color:t||e.primaryColor,theme:e});return n.variable?`var(${n.variable})`:t}function f9(t,e){const n={from:(t==null?void 0:t.from)||e.defaultGradient.from,to:(t==null?void 0:t.to)||e.defaultGradient.to,deg:(t==null?void 0:t.deg)??e.defaultGradient.deg??0},r=dr(n.from,e),o=dr(n.to,e);return`linear-gradient(${n.deg}deg, ${r} 0%, ${o} 100%)`}function ql(t,e){if(typeof t!="string"||e>1||e<0)return"rgba(0, 0, 0, 1)";if(t.startsWith("var(")){const s=(1-e)*100;return`color-mix(in srgb, ${t}, transparent ${s}%)`}if(t.startsWith("oklch"))return t.includes("/")?t.replace(/\/\s*[\d.]+\s*\)/,`/ ${e})`):t.replace(")",` / ${e})`);const{r:n,g:r,b:o}=aT(t);return`rgba(${n}, ${r}, ${o}, ${e})`}const r1=ql,GV=({color:t,theme:e,variant:n,gradient:r,autoContrast:o})=>{const s=cc({color:t,theme:e}),i=typeof o=="boolean"?o:e.autoContrast;if(n==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(n==="filled"){const l=i&&s.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return s.isThemeColor?s.shade===void 0?{background:`var(--mantine-color-${t}-filled)`,hover:`var(--mantine-color-${t}-filled-hover)`,color:l,border:`${Pe(1)} solid transparent`}:{background:`var(--mantine-color-${s.color}-${s.shade})`,hover:`var(--mantine-color-${s.color}-${s.shade===9?8:s.shade+1})`,color:l,border:`${Pe(1)} solid transparent`}:{background:t,hover:Zy(t,.1),color:l,border:`${Pe(1)} solid transparent`}}if(n==="light"){if(s.isThemeColor){if(s.shade===void 0)return{background:`var(--mantine-color-${t}-light)`,hover:`var(--mantine-color-${t}-light-hover)`,color:`var(--mantine-color-${t}-light-color)`,border:`${Pe(1)} solid transparent`};const l=e.colors[s.color][s.shade];return{background:ql(l,.1),hover:ql(l,.12),color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${Pe(1)} solid transparent`}}return{background:ql(t,.1),hover:ql(t,.12),color:t,border:`${Pe(1)} solid transparent`}}if(n==="outline")return s.isThemeColor?s.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${t}-outline-hover)`,color:`var(--mantine-color-${t}-outline)`,border:`${Pe(1)} solid var(--mantine-color-${t}-outline)`}:{background:"transparent",hover:ql(e.colors[s.color][s.shade],.05),color:`var(--mantine-color-${s.color}-${s.shade})`,border:`${Pe(1)} solid var(--mantine-color-${s.color}-${s.shade})`}:{background:"transparent",hover:ql(t,.05),color:t,border:`${Pe(1)} solid ${t}`};if(n==="subtle"){if(s.isThemeColor){if(s.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${t}-light-hover)`,color:`var(--mantine-color-${t}-light-color)`,border:`${Pe(1)} solid transparent`};const l=e.colors[s.color][s.shade];return{background:"transparent",hover:ql(l,.12),color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${Pe(1)} solid transparent`}}return{background:"transparent",hover:ql(t,.12),color:t,border:`${Pe(1)} solid transparent`}}return n==="transparent"?s.isThemeColor?s.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${t}-light-color)`,border:`${Pe(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${Pe(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:t,border:`${Pe(1)} solid transparent`}:n==="white"?s.isThemeColor?s.shade===void 0?{background:"var(--mantine-color-white)",hover:Zy(e.white,.01),color:`var(--mantine-color-${t}-filled)`,border:`${Pe(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Zy(e.white,.01),color:`var(--mantine-color-${s.color}-${s.shade})`,border:`${Pe(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Zy(e.white,.01),color:t,border:`${Pe(1)} solid transparent`}:n==="gradient"?{background:f9(r,e),hover:f9(r,e),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:`${Pe(1)} solid var(--mantine-color-default-border)`}:{}},WV={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"]},wM="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",lT={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:WV,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:GV,autoContrast:!1,luminanceThreshold:.3,fontFamily:wM,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:wM,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:Pe(34),lineHeight:"1.3"},h2:{fontSize:Pe(26),lineHeight:"1.35"},h3:{fontSize:Pe(22),lineHeight:"1.4"},h4:{fontSize:Pe(18),lineHeight:"1.45"},h5:{fontSize:Pe(16),lineHeight:"1.5"},h6:{fontSize:Pe(14),lineHeight:"1.5"}}},fontSizes:{xs:Pe(12),sm:Pe(14),md:Pe(16),lg:Pe(18),xl:Pe(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:Pe(2),sm:Pe(4),md:Pe(8),lg:Pe(16),xl:Pe(32)},spacing:{xs:Pe(10),sm:Pe(12),md:Pe(16),lg:Pe(20),xl:Pe(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${Pe(1)} ${Pe(3)} rgba(0, 0, 0, 0.05), 0 ${Pe(1)} ${Pe(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${Pe(1)} ${Pe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Pe(10)} ${Pe(15)} ${Pe(-5)}, rgba(0, 0, 0, 0.04) 0 ${Pe(7)} ${Pe(7)} ${Pe(-5)}`,md:`0 ${Pe(1)} ${Pe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Pe(20)} ${Pe(25)} ${Pe(-5)}, rgba(0, 0, 0, 0.04) 0 ${Pe(10)} ${Pe(10)} ${Pe(-5)}`,lg:`0 ${Pe(1)} ${Pe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Pe(28)} ${Pe(23)} ${Pe(-7)}, rgba(0, 0, 0, 0.04) 0 ${Pe(12)} ${Pe(12)} ${Pe(-7)}`,xl:`0 ${Pe(1)} ${Pe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Pe(36)} ${Pe(28)} ${Pe(-7)}, rgba(0, 0, 0, 0.04) 0 ${Pe(17)} ${Pe(17)} ${Pe(-7)}`},other:{},components:{}};function xM(t){return t==="auto"||t==="dark"||t==="light"}function QV({key:t="mantine-color-scheme-value"}={}){let e;return{get:n=>{if(typeof window>"u")return n;try{const r=window.localStorage.getItem(t);return xM(r)?r:n}catch{return n}},set:n=>{try{window.localStorage.setItem(t,n)}catch(r){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",r)}},subscribe:n=>{e=r=>{r.storageArea===window.localStorage&&r.key===t&&xM(r.newValue)&&n(r.newValue)},window.addEventListener("storage",e)},unsubscribe:()=>{window.removeEventListener("storage",e)},clear:()=>{window.localStorage.removeItem(t)}}}const KV="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",CM="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function t_(t){return t<0||t>9?!1:parseInt(t.toString(),10)===t}function _M(t){if(!(t.primaryColor in t.colors))throw new Error(KV);if(typeof t.primaryShade=="object"&&(!t_(t.primaryShade.dark)||!t_(t.primaryShade.light)))throw new Error(CM);if(typeof t.primaryShade=="number"&&!t_(t.primaryShade))throw new Error(CM)}function XV(t,e){var r;if(!e)return _M(t),t;const n=N4(t,e);return e.fontFamily&&!((r=e.headings)!=null&&r.fontFamily)&&(n.headings.fontFamily=e.fontFamily),_M(n),n}const cT=D.createContext(null),ZV=()=>D.useContext(cT)||lT;function Lr(){const t=D.useContext(cT);if(!t)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return t}function gN({theme:t,children:e,inherit:n=!0}){const r=ZV(),o=D.useMemo(()=>XV(n?r:lT,t),[t,r,n]);return b.jsx(cT.Provider,{value:o,children:e})}gN.displayName="@mantine/core/MantineThemeProvider";function JV(){const t=Lr(),e=z4(),n=yr(t.breakpoints).reduce((r,o)=>{const s=t.breakpoints[o].includes("px"),i=wv(t.breakpoints[o]),l=s?`${i-.1}px`:_w(i-.1),c=s?`${i}px`:_w(i);return`${r}@media (max-width: ${l}) {.mantine-visible-from-${o} {display: none !important;}}@media (min-width: ${c}) {.mantine-hidden-from-${o} {display: none !important;}}`},"");return b.jsx("style",{"data-mantine-styles":"classes",nonce:e==null?void 0:e(),dangerouslySetInnerHTML:{__html:n}})}function n_(t){return Object.entries(t).map(([e,n])=>`${e}: ${n};`).join("")}function yN(t,e){const n=e?[e]:[":root",":host"],r=n_(t.variables),o=r?`${n.join(", ")}{${r}}`:"",s=n_(t.dark),i=n_(t.light),l=f=>n.map(h=>h===":host"?`${h}([data-mantine-color-scheme="${f}"])`:`${h}[data-mantine-color-scheme="${f}"]`).join(", "),c=s?`${l("dark")}{${s}}`:"",d=i?`${l("light")}{${i}}`:"";return`${o}

${c}

${d}`}function s2({color:t,theme:e,autoContrast:n}){return(typeof n=="boolean"?n:e.autoContrast)&&cc({color:t||e.primaryColor,theme:e}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function TM(t,e){return s2({color:t.colors[t.primaryColor][Cv(t,e)],theme:t,autoContrast:null})}function d3({theme:t,color:e,colorScheme:n,name:r=e,withColorValues:o=!0}){if(!t.colors[e])return{};if(n==="light"){const l=Cv(t,"light"),c={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${l})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${l===9?8:l+1})`,[`--mantine-color-${r}-light`]:r1(t.colors[e][l],.1),[`--mantine-color-${r}-light-hover`]:r1(t.colors[e][l],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${l})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${l})`,[`--mantine-color-${r}-outline-hover`]:r1(t.colors[e][l],.05)};return o?{[`--mantine-color-${r}-0`]:t.colors[e][0],[`--mantine-color-${r}-1`]:t.colors[e][1],[`--mantine-color-${r}-2`]:t.colors[e][2],[`--mantine-color-${r}-3`]:t.colors[e][3],[`--mantine-color-${r}-4`]:t.colors[e][4],[`--mantine-color-${r}-5`]:t.colors[e][5],[`--mantine-color-${r}-6`]:t.colors[e][6],[`--mantine-color-${r}-7`]:t.colors[e][7],[`--mantine-color-${r}-8`]:t.colors[e][8],[`--mantine-color-${r}-9`]:t.colors[e][9],...c}:c}const s=Cv(t,"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`]:r1(t.colors[e][Math.max(0,s-2)],.15),[`--mantine-color-${r}-light-hover`]:r1(t.colors[e][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`]:r1(t.colors[e][Math.max(s-4,0)],.05)};return o?{[`--mantine-color-${r}-0`]:t.colors[e][0],[`--mantine-color-${r}-1`]:t.colors[e][1],[`--mantine-color-${r}-2`]:t.colors[e][2],[`--mantine-color-${r}-3`]:t.colors[e][3],[`--mantine-color-${r}-4`]:t.colors[e][4],[`--mantine-color-${r}-5`]:t.colors[e][5],[`--mantine-color-${r}-6`]:t.colors[e][6],[`--mantine-color-${r}-7`]:t.colors[e][7],[`--mantine-color-${r}-8`]:t.colors[e][8],[`--mantine-color-${r}-9`]:t.colors[e][9],...i}:i}function f3(t){return Array.isArray(t)?t:Array(10).fill(t)}function eY(t){return!!t&&typeof t=="object"&&"mantine-virtual-color"in t}function o1(t,e,n){yr(e).forEach(r=>Object.assign(t,{[`--mantine-${n}-${r}`]:e[r]}))}const vN=t=>{const e=Cv(t,"light"),n=t.defaultRadius in t.radius?t.radius[t.defaultRadius]:Pe(t.defaultRadius),r={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":t.scale.toString(),"--mantine-cursor-type":t.cursorType,"--mantine-webkit-font-smoothing":t.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":t.fontSmoothing?"grayscale":"unset","--mantine-color-white":t.white,"--mantine-color-black":t.black,"--mantine-line-height":t.lineHeights.md,"--mantine-font-family":t.fontFamily,"--mantine-font-family-monospace":t.fontFamilyMonospace,"--mantine-font-family-headings":t.headings.fontFamily,"--mantine-heading-font-weight":t.headings.fontWeight,"--mantine-heading-text-wrap":t.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${t.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${t.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${t.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${t.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${t.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":TM(t,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":t.black,"--mantine-color-body":t.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${t.primaryColor}-${e})`,"--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)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":TM(t,"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-${t.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)","--mantine-color-disabled":"var(--mantine-color-dark-6)","--mantine-color-disabled-color":"var(--mantine-color-dark-3)","--mantine-color-disabled-border":"var(--mantine-color-dark-4)"}};o1(r.variables,t.breakpoints,"breakpoint"),o1(r.variables,t.spacing,"spacing"),o1(r.variables,t.fontSizes,"font-size"),o1(r.variables,t.lineHeights,"line-height"),o1(r.variables,t.shadows,"shadow"),o1(r.variables,t.radius,"radius"),t.colors[t.primaryColor].forEach((s,i)=>{r.variables[`--mantine-primary-color-${i}`]=`var(--mantine-color-${t.primaryColor}-${i})`}),yr(t.colors).forEach(s=>{const i=t.colors[s];if(eY(i)){Object.assign(r.light,d3({theme:t,name:i.name,color:i.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,d3({theme:t,name:i.name,color:i.dark,colorScheme:"dark",withColorValues:!0}));return}i.forEach((l,c)=>{r.variables[`--mantine-color-${s}-${c}`]=l}),Object.assign(r.light,d3({theme:t,color:s,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,d3({theme:t,color:s,colorScheme:"dark",withColorValues:!1}))});const o=t.headings.sizes;return yr(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||t.headings.fontWeight}),r};function tY({theme:t,generator:e}){const n=vN(t),r=e==null?void 0:e(t);return r?N4(n,r):n}const r_=vN(lT);function nY(t){const e={variables:{},light:{},dark:{}};return yr(t.variables).forEach(n=>{r_.variables[n]!==t.variables[n]&&(e.variables[n]=t.variables[n])}),yr(t.light).forEach(n=>{r_.light[n]!==t.light[n]&&(e.light[n]=t.light[n])}),yr(t.dark).forEach(n=>{r_.dark[n]!==t.dark[n]&&(e.dark[n]=t.dark[n])}),e}function rY(t){return yN({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},t)}function bN({cssVariablesSelector:t,deduplicateCssVariables:e}){const n=Lr(),r=z4(),o=NV(),s=tY({theme:n,generator:o}),i=(t===void 0||t===":root"||t===":host")&&e,l=i?nY(s):s,c=yN(l,t);return c?b.jsx("style",{"data-mantine-styles":!0,nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:`${c}${i?"":rY(t)}`}}):null}bN.displayName="@mantine/CssVariables";function s1(t,e){var o,s;const n=typeof window<"u"&&"matchMedia"in window&&((o=window.matchMedia("(prefers-color-scheme: dark)"))==null?void 0:o.matches),r=t!=="auto"?t:n?"dark":"light";(s=e())==null||s.setAttribute("data-mantine-color-scheme",r)}function oY({manager:t,defaultColorScheme:e,getRootElement:n,forceColorScheme:r}){const o=D.useRef(null),[s,i]=D.useState(()=>t.get(e)),l=r||s,c=D.useCallback(f=>{r||(s1(f,n),i(f),t.set(f))},[t.set,l,r]),d=D.useCallback(()=>{i(e),s1(e,n),t.clear()},[t.clear,e]);return D.useEffect(()=>(t.subscribe(c),t.unsubscribe),[t.subscribe,t.unsubscribe]),pu(()=>{s1(t.get(e),n)},[]),D.useEffect(()=>{var h;if(r)return s1(r,n),()=>{};r===void 0&&s1(s,n),typeof window<"u"&&"matchMedia"in window&&(o.current=window.matchMedia("(prefers-color-scheme: dark)"));const f=p=>{s==="auto"&&s1(p.matches?"dark":"light",n)};return(h=o.current)==null||h.addEventListener("change",f),()=>{var p;return(p=o.current)==null?void 0:p.removeEventListener("change",f)}},[s,r]),{colorScheme:l,setColorScheme:c,clearColorScheme:d}}function sY({respectReducedMotion:t,getRootElement:e}){pu(()=>{var n;t&&((n=e())==null||n.setAttribute("data-respect-reduced-motion","true"))},[t])}function SN({theme:t,children:e,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:o=!0,deduplicateCssVariables:s=!0,withCssVariables:i=!0,cssVariablesSelector:l,classNamesPrefix:c="mantine",colorSchemeManager:d=QV(),defaultColorScheme:f="light",getRootElement:h=()=>document.documentElement,cssVariablesResolver:p,forceColorScheme:v,stylesTransform:g,env:S}){const{colorScheme:w,setColorScheme:_,clearColorScheme:E}=oY({defaultColorScheme:f,forceColorScheme:v,manager:d,getRootElement:h});return sY({respectReducedMotion:(t==null?void 0:t.respectReducedMotion)||!1,getRootElement:h}),b.jsx(iT.Provider,{value:{colorScheme:w,setColorScheme:_,clearColorScheme:E,getRootElement:h,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:p,cssVariablesSelector:l??":root",withStaticClasses:r,stylesTransform:g,env:S},children:b.jsxs(gN,{theme:t,children:[i&&b.jsx(bN,{cssVariablesSelector:l,deduplicateCssVariables:s}),o&&b.jsx(JV,{}),e]})})}SN.displayName="@mantine/core/MantineProvider";function cp({classNames:t,styles:e,props:n,stylesCtx:r}){const o=Lr();return{resolvedClassNames:F4({theme:o,classNames:t,props:n,stylesCtx:r||void 0}),resolvedStyles:Ew({theme:o,styles:e,props:n,stylesCtx:r||void 0})}}const iY={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function aY({theme:t,options:e,unstyled:n}){return Dr((e==null?void 0:e.focusable)&&!n&&(t.focusClassName||iY[t.focusRing]),(e==null?void 0:e.active)&&!n&&t.activeClassName)}function lY({selector:t,stylesCtx:e,options:n,props:r,theme:o}){return F4({theme:o,classNames:n==null?void 0:n.classNames,props:(n==null?void 0:n.props)||r,stylesCtx:e})[t]}function EM({selector:t,stylesCtx:e,theme:n,classNames:r,props:o}){return F4({theme:n,classNames:r,props:o,stylesCtx:e})[t]}function cY({rootSelector:t,selector:e,className:n}){return t===e?n:void 0}function uY({selector:t,classes:e,unstyled:n}){return n?void 0:e[t]}function dY({themeName:t,classNamesPrefix:e,selector:n,withStaticClass:r}){return r===!1?[]:t.map(o=>`${e}-${o}-${n}`)}function fY({themeName:t,theme:e,selector:n,props:r,stylesCtx:o}){return t.map(s=>{var i,l;return(l=F4({theme:e,classNames:(i=e.components[s])==null?void 0:i.classNames,props:r,stylesCtx:o}))==null?void 0:l[n]})}function hY({options:t,classes:e,selector:n,unstyled:r}){return t!=null&&t.variant&&!r?e[`${n}--${t.variant}`]:void 0}function pY({theme:t,options:e,themeName:n,selector:r,classNamesPrefix:o,classNames:s,classes:i,unstyled:l,className:c,rootSelector:d,props:f,stylesCtx:h,withStaticClasses:p,headless:v,transformedStyles:g}){return Dr(aY({theme:t,options:e,unstyled:l||v}),fY({theme:t,themeName:n,selector:r,props:f,stylesCtx:h}),hY({options:e,classes:i,selector:r,unstyled:l}),EM({selector:r,stylesCtx:h,theme:t,classNames:s,props:f}),EM({selector:r,stylesCtx:h,theme:t,classNames:g,props:f}),lY({selector:r,stylesCtx:h,options:e,props:f,theme:t}),cY({rootSelector:d,selector:r,className:c}),uY({selector:r,classes:i,unstyled:l||v}),p&&!v&&dY({themeName:n,classNamesPrefix:o,selector:r,withStaticClass:e==null?void 0:e.withStaticClass}),e==null?void 0:e.className)}function mY({theme:t,themeName:e,props:n,stylesCtx:r,selector:o}){return e.map(s=>{var i;return Ew({theme:t,styles:(i=t.components[s])==null?void 0:i.styles,props:n,stylesCtx:r})[o]}).reduce((s,i)=>({...s,...i}),{})}function h9({style:t,theme:e}){return Array.isArray(t)?[...t].reduce((n,r)=>({...n,...h9({style:r,theme:e})}),{}):typeof t=="function"?t(e):t??{}}function gY(t){return t.reduce((e,n)=>(n&&Object.keys(n).forEach(r=>{e[r]={...e[r],...Yd(n[r])}}),e),{})}function yY({vars:t,varsResolver:e,theme:n,props:r,stylesCtx:o,selector:s,themeName:i,headless:l}){var c;return(c=gY([l?{}:e==null?void 0:e(n,r,o),...i.map(d=>{var f,h,p;return(p=(h=(f=n.components)==null?void 0:f[d])==null?void 0:h.vars)==null?void 0:p.call(h,n,r,o)}),t==null?void 0:t(n,r,o)]))==null?void 0:c[s]}function vY({theme:t,themeName:e,selector:n,options:r,props:o,stylesCtx:s,rootSelector:i,styles:l,style:c,vars:d,varsResolver:f,headless:h,withStylesTransform:p}){return{...!p&&mY({theme:t,themeName:e,props:o,stylesCtx:s,selector:n}),...!p&&Ew({theme:t,styles:l,props:o,stylesCtx:s})[n],...!p&&Ew({theme:t,styles:r==null?void 0:r.styles,props:(r==null?void 0:r.props)||o,stylesCtx:s})[n],...yY({theme:t,props:o,stylesCtx:s,vars:d,varsResolver:f,selector:n,themeName:e,headless:h}),...i===n?h9({style:c,theme:t}):null,...h9({style:r==null?void 0:r.style,theme:t})}}function bY({props:t,stylesCtx:e,themeName:n}){var i;const r=Lr(),o=(i=zV())==null?void 0:i();return{getTransformedStyles:l=>o?[...l.map(d=>o(d,{props:t,theme:r,ctx:e})),...n.map(d=>{var f;return o((f=r.components[d])==null?void 0:f.styles,{props:t,theme:r,ctx:e})})].filter(Boolean):[],withStylesTransform:!!o}}function pt({name:t,classes:e,props:n,stylesCtx:r,className:o,style:s,rootSelector:i="root",unstyled:l,classNames:c,styles:d,vars:f,varsResolver:h,attributes:p}){const v=Lr(),g=IV(),S=$V(),w=LV(),_=(Array.isArray(t)?t:[t]).filter(M=>M),{withStylesTransform:E,getTransformedStyles:T}=bY({props:n,stylesCtx:r,themeName:_});return(M,j)=>({className:pY({theme:v,options:j,themeName:_,selector:M,classNamesPrefix:g,classNames:c,classes:e,unstyled:l,className:o,rootSelector:i,props:n,stylesCtx:r,withStaticClasses:S,headless:w,transformedStyles:T([j==null?void 0:j.styles,d])}),style:vY({theme:v,themeName:_,selector:M,options:j,props:n,stylesCtx:r,rootSelector:i,styles:d,style:s,vars:f,varsResolver:h,headless:w,withStylesTransform:E}),...p==null?void 0:p[M]})}function B4(t,e){return typeof t=="boolean"?t:e.autoContrast}function kM(t){const e=document.createElement("style");return e.setAttribute("data-mantine-styles","inline"),e.innerHTML="*, *::before, *::after {transition: none !important;}",e.setAttribute("data-mantine-disable-transition","true"),t&&e.setAttribute("nonce",t),document.head.appendChild(e),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(r=>r.remove())}function i2({keepTransitions:t}={}){const e=D.useRef(rN),n=D.useRef(-1),r=D.useContext(iT),o=z4(),s=D.useRef(o==null?void 0:o());if(!r)throw new Error("[@mantine/core] MantineProvider was not found in tree");const i=h=>{r.setColorScheme(h),e.current=t?()=>{}:kM(s.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{var p;(p=e.current)==null||p.call(e)},10)},l=()=>{r.clearColorScheme(),e.current=t?()=>{}:kM(s.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{var h;(h=e.current)==null||h.call(e)},10)},c=sN("light",{getInitialValueInEffect:!1}),d=r.colorScheme==="auto"?c:r.colorScheme,f=D.useCallback(()=>i(d==="light"?"dark":"light"),[i,d]);return D.useEffect(()=>()=>{var h;(h=e.current)==null||h.call(e),window.clearTimeout(n.current)},[]),{colorScheme:r.colorScheme,setColorScheme:i,clearColorScheme:l,toggleColorScheme:f}}function ag(t,e={getInitialValueInEffect:!0}){const n=sN(t,e),{colorScheme:r}=i2();return r==="auto"?n:r}function Ae(t,e,n){var i;const r=Lr(),o=(i=r.components[t])==null?void 0:i.defaultProps,s=typeof o=="function"?o(r):o;return{...e,...s,...Yd(n)}}function SY(...t){return t.reduce((e,n)=>N4(e,n),{})}function o_(t){return yr(t).reduce((e,n)=>t[n]!==void 0?`${e}${Wq(n)}:${t[n]};`:e,"").trim()}function wY({selector:t,styles:e,media:n,container:r}){const o=e?o_(e):"",s=Array.isArray(n)?n.map(l=>`@media${l.query}{${t}{${o_(l.styles)}}}`):[],i=Array.isArray(r)?r.map(l=>`@container ${l.query}{${t}{${o_(l.styles)}}}`):[];return`${o?`${t}{${o}}`:""}${s.join("")}${i.join("")}`.trim()}function up(t){const e=z4();return b.jsx("style",{"data-mantine-styles":"inline",nonce:e==null?void 0:e(),dangerouslySetInnerHTML:{__html:wY(t)}})}function lg(t){const{m:e,mx:n,my:r,mt:o,mb:s,ml:i,mr:l,me:c,ms:d,p:f,px:h,py:p,pt:v,pb:g,pl:S,pr:w,pe:_,ps:E,bd:T,bdrs:M,bg:j,c:A,opacity:k,ff:R,fz:N,fw:I,lts:L,ta:F,lh:H,fs:B,tt:Y,td:U,w:q,miw:z,maw:W,h:K,mih:G,mah:X,bgsz:J,bgp:ne,bgr:se,bga:ie,pos:oe,top:de,left:pe,bottom:fe,right:Te,inset:we,display:_e,flex:De,hiddenFrom:Ze,visibleFrom:ze,lightHidden:Xe,darkHidden:Ke,sx:ot,...st}=t;return{styleProps:Yd({m:e,mx:n,my:r,mt:o,mb:s,ml:i,mr:l,me:c,ms:d,p:f,px:h,py:p,pt:v,pb:g,pl:S,pr:w,pe:_,ps:E,bd:T,bg:j,c:A,opacity:k,ff:R,fz:N,fw:I,lts:L,ta:F,lh:H,fs:B,tt:Y,td:U,w:q,miw:z,maw:W,h:K,mih:G,mah:X,bgsz:J,bgp:ne,bgr:se,bga:ie,pos:oe,top:de,left:pe,bottom:fe,right:Te,inset:we,display:_e,flex:De,bdrs:M,hiddenFrom:Ze,visibleFrom:ze,lightHidden:Xe,darkHidden:Ke,sx:ot}),rest:st}}const xY={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"},bdrs:{type:"radius",property:"borderRadius"},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:"size",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 uT(t,e){const n=cc({color:t,theme:e});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function CY(t,e){const n=cc({color:t,theme:e});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:uT(t,e)}function _Y(t,e){if(typeof t=="number")return Pe(t);if(typeof t=="string"){const[n,r,...o]=t.split(" ").filter(i=>i.trim()!=="");let s=`${Pe(n)}`;return r&&(s+=` ${r}`),o.length>0&&(s+=` ${uT(o.join(" "),e)}`),s.trim()}return t}const MM={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 TY(t){return typeof t=="string"&&t in MM?MM[t]:t}const EY=["h1","h2","h3","h4","h5","h6"];function kY(t,e){return typeof t=="string"&&t in e.fontSizes?`var(--mantine-font-size-${t})`:typeof t=="string"&&EY.includes(t)?`var(--mantine-${t}-font-size)`:typeof t=="number"||typeof t=="string"?Pe(t):t}function MY(t){return t}const jY=["h1","h2","h3","h4","h5","h6"];function DY(t,e){return typeof t=="string"&&t in e.lineHeights?`var(--mantine-line-height-${t})`:typeof t=="string"&&jY.includes(t)?`var(--mantine-${t}-line-height)`:t}function AY(t,e){return typeof t=="string"&&t in e.radius?`var(--mantine-radius-${t})`:typeof t=="number"||typeof t=="string"?Pe(t):t}function RY(t){return typeof t=="number"?Pe(t):t}function OY(t,e){if(typeof t=="number")return Pe(t);if(typeof t=="string"){const n=t.replace("-","");if(!(n in e.spacing))return Pe(t);const r=`--mantine-spacing-${n}`;return t.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return t}const s_={color:uT,textColor:CY,fontSize:kY,spacing:OY,radius:AY,identity:MY,size:RY,lineHeight:DY,fontFamily:TY,border:_Y};function jM(t){return t.replace("(min-width: ","").replace("em)","")}function PY({media:t,...e}){const r=Object.keys(t).sort((o,s)=>Number(jM(o))-Number(jM(s))).map(o=>({query:o,styles:t[o]}));return{...e,media:r}}function NY(t){if(typeof t!="object"||t===null)return!1;const e=Object.keys(t);return!(e.length===1&&e[0]==="base")}function IY(t){return typeof t=="object"&&t!==null?"base"in t?t.base:void 0:t}function $Y(t){return typeof t=="object"&&t!==null?yr(t).filter(e=>e!=="base"):[]}function LY(t,e){return typeof t=="object"&&t!==null&&e in t?t[e]:t}function wN({styleProps:t,data:e,theme:n}){return PY(yr(t).reduce((r,o)=>{if(o==="hiddenFrom"||o==="visibleFrom"||o==="sx")return r;const s=e[o],i=Array.isArray(s.property)?s.property:[s.property],l=IY(t[o]);if(!NY(t[o]))return i.forEach(d=>{r.inlineStyles[d]=s_[s.type](l,n)}),r;r.hasResponsiveStyles=!0;const c=$Y(t[o]);return i.forEach(d=>{l!=null&&(r.styles[d]=s_[s.type](l,n)),c.forEach(f=>{const h=`(min-width: ${n.breakpoints[f]})`;r.media[h]={...r.media[h],[d]:s_[s.type](LY(t[o],f),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function a2(){return`__m__-${D.useId().replace(/[:«»]/g,"")}`}function dT(t,e){return Array.isArray(t)?[...t].reduce((n,r)=>({...n,...dT(r,e)}),{}):typeof t=="function"?t(e):t??{}}function xN(t){return t.startsWith("data-")?t:`data-${t}`}function FY(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return r===void 0||r===""||r===!1||r===null||(e[xN(n)]=t[n]),e},{})}function CN(t){return t?typeof t=="string"?{[xN(t)]:!0}:Array.isArray(t)?[...t].reduce((e,n)=>({...e,...CN(n)}),{}):FY(t):null}function p9(t,e){return Array.isArray(t)?[...t].reduce((n,r)=>({...n,...p9(r,e)}),{}):typeof t=="function"?t(e):t??{}}function zY({theme:t,style:e,vars:n,styleProps:r}){const o=p9(e,t),s=p9(n,t);return{...o,...s,...r}}const _N=D.forwardRef(({component:t,style:e,__vars:n,className:r,variant:o,mod:s,size:i,hiddenFrom:l,visibleFrom:c,lightHidden:d,darkHidden:f,renderRoot:h,__size:p,...v},g)=>{var R;const S=Lr(),w=t||"div",{styleProps:_,rest:E}=lg(v),T=FV(),M=(R=T==null?void 0:T())==null?void 0:R(_.sx),j=a2(),A=wN({styleProps:_,theme:S,data:xY}),k={ref:g,style:zY({theme:S,style:e,vars:n,styleProps:A.inlineStyles}),className:Dr(r,M,{[j]:A.hasResponsiveStyles,"mantine-light-hidden":d,"mantine-dark-hidden":f,[`mantine-hidden-from-${l}`]:l,[`mantine-visible-from-${c}`]:c}),"data-variant":o,"data-size":nN(i)?void 0:i||void 0,size:p,...CN(s),...E};return b.jsxs(b.Fragment,{children:[A.hasResponsiveStyles&&b.jsx(up,{selector:`.${j}`,styles:A.styles,media:A.media}),typeof h=="function"?h(k):b.jsx(w,{...k})]})});_N.displayName="@mantine/core/Box";const je=_N;function TN(t){return t}function UY(t){const e=t;return n=>{const r=D.forwardRef((o,s)=>b.jsx(e,{...n,...o,ref:s}));return r.extend=e.extend,r.displayName=`WithProps(${e.displayName})`,r}}function Ve(t){const e=D.forwardRef(t);return e.extend=TN,e.withProps=n=>{const r=D.forwardRef((o,s)=>b.jsx(e,{...n,...o,ref:s}));return r.extend=e.extend,r.displayName=`WithProps(${e.displayName})`,r},e}function No(t){const e=D.forwardRef(t);return e.withProps=n=>{const r=D.forwardRef((o,s)=>b.jsx(e,{...n,...o,ref:s}));return r.extend=e.extend,r.displayName=`WithProps(${e.displayName})`,r},e.extend=TN,e}const BY=D.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Kd(){return D.useContext(BY)}var Qa=zP();const _1=hu(Qa),HY=FP({__proto__:null,default:_1},[Qa]);function qY(t){if(!t||typeof t=="string")return 0;const e=t/36;return Math.round((4+15*e**.25+e/5)*10)}function i_(t){return t!=null&&t.current?t.current.scrollHeight:"auto"}const Oy=typeof window<"u"&&window.requestAnimationFrame,DM=0,VY=t=>({height:0,overflow:"hidden",...t?{}:{display:"none"}});function YY({transitionDuration:t,transitionTimingFunction:e="ease",onTransitionEnd:n=()=>{},opened:r,keepMounted:o=!1}){const s=D.useRef(null),i=VY(o),[l,c]=D.useState(r?{}:i),d=g=>{Qa.flushSync(()=>c(g))},f=g=>{d(S=>({...S,...g}))};function h(g){const S=t||qY(g);return{transition:`height ${S}ms ${e}, opacity ${S}ms ${e}`}}Gh(()=>{typeof Oy=="function"&&Oy(r?()=>{f({willChange:"height",display:"block",overflow:"hidden"}),Oy(()=>{const g=i_(s);f({...h(g),height:g})})}:()=>{const g=i_(s);f({...h(g),willChange:"height",height:g}),Oy(()=>f({height:DM,overflow:"hidden"}))})},[r]);const p=g=>{if(!(g.target!==s.current||g.propertyName!=="height"))if(r){const S=i_(s);S===l.height?d({}):f({height:S}),n()}else l.height===DM&&(d(i),n())};function v({style:g={},refKey:S="ref",...w}={}){const _=w[S],E={"aria-hidden":!r,...w,[S]:fN(s,_),onTransitionEnd:p,style:{boxSizing:"border-box",...g,...l}};return Rn.version.startsWith("18")?r||(E.inert=""):E.inert=!r,E}return v}const GY={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},H4=Ve((t,e)=>{const{children:n,in:r,transitionDuration:o,transitionTimingFunction:s,style:i,onTransitionEnd:l,animateOpacity:c,keepMounted:d,...f}=Ae("Collapse",GY,t),h=Lr(),p=I4(),g=(h.respectReducedMotion?p:!1)?0:o,S=YY({opened:r,transitionDuration:g,transitionTimingFunction:s,onTransitionEnd:l,keepMounted:d});return g===0?r?b.jsx(je,{...f,children:n}):null:b.jsx(je,{...S({style:{opacity:r||!c?1:0,transition:c?`opacity ${g}ms ${s}`:"none",...dT(i,h)},ref:e,...f}),children:n})});H4.displayName="@mantine/core/Collapse";function q4(){return typeof window<"u"}function cg(t){return EN(t)?(t.nodeName||"").toLowerCase():"#document"}function di(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function uc(t){var e;return(e=(EN(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function EN(t){return q4()?t instanceof Node||t instanceof di(t).Node:!1}function jr(t){return q4()?t instanceof Element||t instanceof di(t).Element:!1}function Bi(t){return q4()?t instanceof HTMLElement||t instanceof di(t).HTMLElement:!1}function m9(t){return!q4()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof di(t).ShadowRoot}const WY=new Set(["inline","contents"]);function l2(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=pa(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!WY.has(o)}const QY=new Set(["table","td","th"]);function KY(t){return QY.has(cg(t))}const XY=[":popover-open",":modal"];function V4(t){return XY.some(e=>{try{return t.matches(e)}catch{return!1}})}const ZY=["transform","translate","scale","rotate","perspective"],JY=["transform","translate","scale","rotate","perspective","filter"],eG=["paint","layout","strict","content"];function fT(t){const e=Y4(),n=jr(t)?pa(t):t;return ZY.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||JY.some(r=>(n.willChange||"").includes(r))||eG.some(r=>(n.contain||"").includes(r))}function tG(t){let e=su(t);for(;Bi(e)&&!Xc(e);){if(fT(e))return e;if(V4(e))return null;e=su(e)}return null}function Y4(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const nG=new Set(["html","body","#document"]);function Xc(t){return nG.has(cg(t))}function pa(t){return di(t).getComputedStyle(t)}function G4(t){return jr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function su(t){if(cg(t)==="html")return t;const e=t.assignedSlot||t.parentNode||m9(t)&&t.host||uc(t);return m9(e)?e.host:e}function kN(t){const e=su(t);return Xc(e)?t.ownerDocument?t.ownerDocument.body:t.body:Bi(e)&&l2(e)?e:kN(e)}function Zc(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=kN(t),s=o===((r=t.ownerDocument)==null?void 0:r.body),i=di(o);if(s){const l=g9(i);return e.concat(i,i.visualViewport||[],l2(o)?o:[],l&&n?Zc(l):[])}return e.concat(o,Zc(o,[],n))}function g9(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}const rG=["top","right","bottom","left"],tl=Math.min,ls=Math.max,kw=Math.round,h3=Math.floor,ec=t=>({x:t,y:t}),oG={left:"right",right:"left",bottom:"top",top:"bottom"},sG={start:"end",end:"start"};function y9(t,e,n){return ls(t,tl(e,n))}function oc(t,e){return typeof t=="function"?t(e):t}function nl(t){return t.split("-")[0]}function ug(t){return t.split("-")[1]}function hT(t){return t==="x"?"y":"x"}function pT(t){return t==="y"?"height":"width"}const iG=new Set(["top","bottom"]);function Ka(t){return iG.has(nl(t))?"y":"x"}function mT(t){return hT(Ka(t))}function aG(t,e,n){n===void 0&&(n=!1);const r=ug(t),o=mT(t),s=pT(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=Mw(i)),[i,Mw(i)]}function lG(t){const e=Mw(t);return[v9(t),e,v9(e)]}function v9(t){return t.replace(/start|end/g,e=>sG[e])}const AM=["left","right"],RM=["right","left"],cG=["top","bottom"],uG=["bottom","top"];function dG(t,e,n){switch(t){case"top":case"bottom":return n?e?RM:AM:e?AM:RM;case"left":case"right":return e?cG:uG;default:return[]}}function fG(t,e,n,r){const o=ug(t);let s=dG(nl(t),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),e&&(s=s.concat(s.map(v9)))),s}function Mw(t){return t.replace(/left|right|bottom|top/g,e=>oG[e])}function hG(t){return{top:0,right:0,bottom:0,left:0,...t}}function gT(t){return typeof t!="number"?hG(t):{top:t,right:t,bottom:t,left:t}}function z1(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}function pG(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function mG(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:n,version:r}=e;return n+"/"+r}).join(" "):navigator.userAgent}function gG(){return/apple/i.test(navigator.vendor)}function yG(){return pG().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function vG(){return mG().includes("jsdom/")}const OM="data-floating-ui-focusable",bG="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function PM(t){let e=t.activeElement;for(;((n=e)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;e=e.shadowRoot.activeElement}return e}function _v(t,e){if(!t||!e)return!1;const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&m9(n)){let r=e;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function y1(t){return"composedPath"in t?t.composedPath()[0]:t.target}function a_(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);const n=t;return n.target!=null&&e.contains(n.target)}function SG(t){return t.matches("html,body")}function Oh(t){return(t==null?void 0:t.ownerDocument)||document}function wG(t){return Bi(t)&&t.matches(bG)}function xG(t){if(!t||vG())return!0;try{return t.matches(":focus-visible")}catch{return!0}}function CG(t){return t?t.hasAttribute(OM)?t:t.querySelector("["+OM+"]")||t:null}function Z3(t,e,n){return n===void 0&&(n=!0),t.filter(o=>{var s;return o.parentId===e&&(!n||((s=o.context)==null?void 0:s.open))}).flatMap(o=>[o,...Z3(t,o.id,n)])}function _G(t){return"nativeEvent"in t}function b9(t,e){const n=["mouse","pen"];return n.push("",void 0),n.includes(t)}var TG=typeof document<"u",EG=function(){},tc=TG?D.useLayoutEffect:EG;const kG={...Z8};function p3(t){const e=D.useRef(t);return tc(()=>{e.current=t}),e}const MG=kG.useInsertionEffect,jG=MG||(t=>t());function Wl(t){const e=D.useRef(()=>{});return jG(()=>{e.current=t}),D.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.current==null?void 0:e.current(...r)},[])}function NM(t,e,n){let{reference:r,floating:o}=t;const s=Ka(e),i=mT(e),l=pT(i),c=nl(e),d=s==="y",f=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,p=r[l]/2-o[l]/2;let v;switch(c){case"top":v={x:f,y:r.y-o.height};break;case"bottom":v={x:f,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:h};break;case"left":v={x:r.x-o.width,y:h};break;default:v={x:r.x,y:r.y}}switch(ug(e)){case"start":v[i]-=p*(n&&d?-1:1);break;case"end":v[i]+=p*(n&&d?-1:1);break}return v}async function DG(t,e){var n;e===void 0&&(e={});const{x:r,y:o,platform:s,rects:i,elements:l,strategy:c}=t,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:p=!1,padding:v=0}=oc(e,t),g=gT(v),w=l[p?h==="floating"?"reference":"floating":h],_=z1(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(l.floating)),boundary:d,rootBoundary:f,strategy:c})),E=h==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),M=await(s.isElement==null?void 0:s.isElement(T))?await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1}:{x:1,y:1},j=z1(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:E,offsetParent:T,strategy:c}):E);return{top:(_.top-j.top+g.top)/M.y,bottom:(j.bottom-_.bottom+g.bottom)/M.y,left:(_.left-j.left+g.left)/M.x,right:(j.right-_.right+g.right)/M.x}}const AG=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(e));let d=await i.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:h}=NM(d,r,c),p=r,v={},g=0;for(let w=0;w<l.length;w++){var S;const{name:_,fn:E}=l[w],{x:T,y:M,data:j,reset:A}=await E({x:f,y:h,initialPlacement:r,placement:p,strategy:o,middlewareData:v,rects:d,platform:{...i,detectOverflow:(S=i.detectOverflow)!=null?S:DG},elements:{reference:t,floating:e}});f=T??f,h=M??h,v={...v,[_]:{...v[_],...j}},A&&g<=50&&(g++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(d=A.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:o}):A.rects),{x:f,y:h}=NM(d,p,c)),w=-1)}return{x:f,y:h,placement:p,strategy:o,middlewareData:v}},RG=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:o,rects:s,platform:i,elements:l,middlewareData:c}=e,{element:d,padding:f=0}=oc(t,e)||{};if(d==null)return{};const h=gT(f),p={x:n,y:r},v=mT(o),g=pT(v),S=await i.getDimensions(d),w=v==="y",_=w?"top":"left",E=w?"bottom":"right",T=w?"clientHeight":"clientWidth",M=s.reference[g]+s.reference[v]-p[v]-s.floating[g],j=p[v]-s.reference[v],A=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let k=A?A[T]:0;(!k||!await(i.isElement==null?void 0:i.isElement(A)))&&(k=l.floating[T]||s.floating[g]);const R=M/2-j/2,N=k/2-S[g]/2-1,I=tl(h[_],N),L=tl(h[E],N),F=I,H=k-S[g]-L,B=k/2-S[g]/2+R,Y=y9(F,B,H),U=!c.arrow&&ug(o)!=null&&B!==Y&&s.reference[g]/2-(B<F?I:L)-S[g]/2<0,q=U?B<F?B-F:B-H:0;return{[v]:p[v]+q,data:{[v]:Y,centerOffset:B-Y-q,...U&&{alignmentOffset:q}},reset:U}}}),OG=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:l,platform:c,elements:d}=e,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:S=!0,...w}=oc(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const _=nl(o),E=Ka(l),T=nl(l)===l,M=await(c.isRTL==null?void 0:c.isRTL(d.floating)),j=p||(T||!S?[Mw(l)]:lG(l)),A=g!=="none";!p&&A&&j.push(...fG(l,S,g,M));const k=[l,...j],R=await c.detectOverflow(e,w),N=[];let I=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&N.push(R[_]),h){const B=aG(o,i,M);N.push(R[B[0]],R[B[1]])}if(I=[...I,{placement:o,overflows:N}],!N.every(B=>B<=0)){var L,F;const B=(((L=s.flip)==null?void 0:L.index)||0)+1,Y=k[B];if(Y&&(!(h==="alignment"?E!==Ka(Y):!1)||I.every(z=>Ka(z.placement)===E?z.overflows[0]>0:!0)))return{data:{index:B,overflows:I},reset:{placement:Y}};let U=(F=I.filter(q=>q.overflows[0]<=0).sort((q,z)=>q.overflows[1]-z.overflows[1])[0])==null?void 0:F.placement;if(!U)switch(v){case"bestFit":{var H;const q=(H=I.filter(z=>{if(A){const W=Ka(z.placement);return W===E||W==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(W=>W>0).reduce((W,K)=>W+K,0)]).sort((z,W)=>z[1]-W[1])[0])==null?void 0:H[0];q&&(U=q);break}case"initialPlacement":U=l;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function IM(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function $M(t){return rG.some(e=>t[e]>=0)}const PG=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:r}=e,{strategy:o="referenceHidden",...s}=oc(t,e);switch(o){case"referenceHidden":{const i=await r.detectOverflow(e,{...s,elementContext:"reference"}),l=IM(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:$M(l)}}}case"escaped":{const i=await r.detectOverflow(e,{...s,altBoundary:!0}),l=IM(i,n.floating);return{data:{escapedOffsets:l,escaped:$M(l)}}}default:return{}}}}};function MN(t){const e=tl(...t.map(s=>s.left)),n=tl(...t.map(s=>s.top)),r=ls(...t.map(s=>s.right)),o=ls(...t.map(s=>s.bottom));return{x:e,y:n,width:r-e,height:o-n}}function NG(t){const e=t.slice().sort((o,s)=>o.y-s.y),n=[];let r=null;for(let o=0;o<e.length;o++){const s=e[o];!r||s.y-r.y>r.height/2?n.push([s]):n[n.length-1].push(s),r=s}return n.map(o=>z1(MN(o)))}const IG=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:r,rects:o,platform:s,strategy:i}=e,{padding:l=2,x:c,y:d}=oc(t,e),f=Array.from(await(s.getClientRects==null?void 0:s.getClientRects(r.reference))||[]),h=NG(f),p=z1(MN(f)),v=gT(l);function g(){if(h.length===2&&h[0].left>h[1].right&&c!=null&&d!=null)return h.find(w=>c>w.left-v.left&&c<w.right+v.right&&d>w.top-v.top&&d<w.bottom+v.bottom)||p;if(h.length>=2){if(Ka(n)==="y"){const I=h[0],L=h[h.length-1],F=nl(n)==="top",H=I.top,B=L.bottom,Y=F?I.left:L.left,U=F?I.right:L.right,q=U-Y,z=B-H;return{top:H,bottom:B,left:Y,right:U,width:q,height:z,x:Y,y:H}}const w=nl(n)==="left",_=ls(...h.map(I=>I.right)),E=tl(...h.map(I=>I.left)),T=h.filter(I=>w?I.left===E:I.right===_),M=T[0].top,j=T[T.length-1].bottom,A=E,k=_,R=k-A,N=j-M;return{top:M,bottom:j,left:A,right:k,width:R,height:N,x:A,y:M}}return p}const S=await s.getElementRects({reference:{getBoundingClientRect:g},floating:r.floating,strategy:i});return o.reference.x!==S.reference.x||o.reference.y!==S.reference.y||o.reference.width!==S.reference.width||o.reference.height!==S.reference.height?{reset:{rects:S}}:{}}}},jN=new Set(["left","top"]);async function $G(t,e){const{placement:n,platform:r,elements:o}=t,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=nl(n),l=ug(n),c=Ka(n)==="y",d=jN.has(i)?-1:1,f=s&&c?-1:1,h=oc(e,t);let{mainAxis:p,crossAxis:v,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof g=="number"&&(v=l==="end"?g*-1:g),c?{x:v*f,y:p*d}:{x:p*d,y:v*f}}const LG=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:o,y:s,placement:i,middlewareData:l}=e,c=await $G(e,t);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},FG=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:o,platform:s}=e,{mainAxis:i=!0,crossAxis:l=!1,limiter:c={fn:_=>{let{x:E,y:T}=_;return{x:E,y:T}}},...d}=oc(t,e),f={x:n,y:r},h=await s.detectOverflow(e,d),p=Ka(nl(o)),v=hT(p);let g=f[v],S=f[p];if(i){const _=v==="y"?"top":"left",E=v==="y"?"bottom":"right",T=g+h[_],M=g-h[E];g=y9(T,g,M)}if(l){const _=p==="y"?"top":"left",E=p==="y"?"bottom":"right",T=S+h[_],M=S-h[E];S=y9(T,S,M)}const w=c.fn({...e,[v]:g,[p]:S});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[v]:i,[p]:l}}}}}},zG=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=e,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=oc(t,e),f={x:n,y:r},h=Ka(o),p=hT(h);let v=f[p],g=f[h];const S=oc(l,e),w=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(c){const T=p==="y"?"height":"width",M=s.reference[p]-s.floating[T]+w.mainAxis,j=s.reference[p]+s.reference[T]-w.mainAxis;v<M?v=M:v>j&&(v=j)}if(d){var _,E;const T=p==="y"?"width":"height",M=jN.has(nl(o)),j=s.reference[h]-s.floating[T]+(M&&((_=i.offset)==null?void 0:_[h])||0)+(M?0:w.crossAxis),A=s.reference[h]+s.reference[T]+(M?0:((E=i.offset)==null?void 0:E[h])||0)-(M?w.crossAxis:0);g<j?g=j:g>A&&(g=A)}return{[p]:v,[h]:g}}}},UG=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:o,rects:s,platform:i,elements:l}=e,{apply:c=()=>{},...d}=oc(t,e),f=await i.detectOverflow(e,d),h=nl(o),p=ug(o),v=Ka(o)==="y",{width:g,height:S}=s.floating;let w,_;h==="top"||h==="bottom"?(w=h,_=p===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(_=h,w=p==="end"?"top":"bottom");const E=S-f.top-f.bottom,T=g-f.left-f.right,M=tl(S-f[w],E),j=tl(g-f[_],T),A=!e.middlewareData.shift;let k=M,R=j;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(R=T),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(k=E),A&&!p){const I=ls(f.left,0),L=ls(f.right,0),F=ls(f.top,0),H=ls(f.bottom,0);v?R=g-2*(I!==0||L!==0?I+L:ls(f.left,f.right)):k=S-2*(F!==0||H!==0?F+H:ls(f.top,f.bottom))}await c({...e,availableWidth:R,availableHeight:k});const N=await i.getDimensions(l.floating);return g!==N.width||S!==N.height?{reset:{rects:!0}}:{}}}};function DN(t){const e=pa(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=Bi(t),s=o?t.offsetWidth:n,i=o?t.offsetHeight:r,l=kw(n)!==s||kw(r)!==i;return l&&(n=s,r=i),{width:n,height:r,$:l}}function yT(t){return jr(t)?t:t.contextElement}function M1(t){const e=yT(t);if(!Bi(e))return ec(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:s}=DN(e);let i=(s?kw(n.width):n.width)/r,l=(s?kw(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const BG=ec(0);function AN(t){const e=di(t);return!Y4()||!e.visualViewport?BG:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function HG(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==di(t)?!1:e}function Wh(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),s=yT(t);let i=ec(1);e&&(r?jr(r)&&(i=M1(r)):i=M1(t));const l=HG(s,n,r)?AN(s):ec(0);let c=(o.left+l.x)/i.x,d=(o.top+l.y)/i.y,f=o.width/i.x,h=o.height/i.y;if(s){const p=di(s),v=r&&jr(r)?di(r):r;let g=p,S=g9(g);for(;S&&r&&v!==g;){const w=M1(S),_=S.getBoundingClientRect(),E=pa(S),T=_.left+(S.clientLeft+parseFloat(E.paddingLeft))*w.x,M=_.top+(S.clientTop+parseFloat(E.paddingTop))*w.y;c*=w.x,d*=w.y,f*=w.x,h*=w.y,c+=T,d+=M,g=di(S),S=g9(g)}}return z1({width:f,height:h,x:c,y:d})}function W4(t,e){const n=G4(t).scrollLeft;return e?e.left+n:Wh(uc(t)).left+n}function RN(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-W4(t,n),o=n.top+e.scrollTop;return{x:r,y:o}}function qG(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const s=o==="fixed",i=uc(r),l=e?V4(e.floating):!1;if(r===i||l&&s)return n;let c={scrollLeft:0,scrollTop:0},d=ec(1);const f=ec(0),h=Bi(r);if((h||!h&&!s)&&((cg(r)!=="body"||l2(i))&&(c=G4(r)),Bi(r))){const v=Wh(r);d=M1(r),f.x=v.x+r.clientLeft,f.y=v.y+r.clientTop}const p=i&&!h&&!s?RN(i,c):ec(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+p.x,y:n.y*d.y-c.scrollTop*d.y+f.y+p.y}}function VG(t){return Array.from(t.getClientRects())}function YG(t){const e=uc(t),n=G4(t),r=t.ownerDocument.body,o=ls(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=ls(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+W4(t);const l=-n.scrollTop;return pa(r).direction==="rtl"&&(i+=ls(e.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:l}}const LM=25;function GG(t,e){const n=di(t),r=uc(t),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,l=0,c=0;if(o){s=o.width,i=o.height;const f=Y4();(!f||f&&e==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}const d=W4(r);if(d<=0){const f=r.ownerDocument,h=f.body,p=getComputedStyle(h),v=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(r.clientWidth-h.clientWidth-v);g<=LM&&(s-=g)}else d<=LM&&(s+=d);return{width:s,height:i,x:l,y:c}}const WG=new Set(["absolute","fixed"]);function QG(t,e){const n=Wh(t,!0,e==="fixed"),r=n.top+t.clientTop,o=n.left+t.clientLeft,s=Bi(t)?M1(t):ec(1),i=t.clientWidth*s.x,l=t.clientHeight*s.y,c=o*s.x,d=r*s.y;return{width:i,height:l,x:c,y:d}}function FM(t,e,n){let r;if(e==="viewport")r=GG(t,n);else if(e==="document")r=YG(uc(t));else if(jr(e))r=QG(e,n);else{const o=AN(t);r={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return z1(r)}function ON(t,e){const n=su(t);return n===e||!jr(n)||Xc(n)?!1:pa(n).position==="fixed"||ON(n,e)}function KG(t,e){const n=e.get(t);if(n)return n;let r=Zc(t,[],!1).filter(l=>jr(l)&&cg(l)!=="body"),o=null;const s=pa(t).position==="fixed";let i=s?su(t):t;for(;jr(i)&&!Xc(i);){const l=pa(i),c=fT(i);!c&&l.position==="fixed"&&(o=null),(s?!c&&!o:!c&&l.position==="static"&&!!o&&WG.has(o.position)||l2(i)&&!c&&ON(t,i))?r=r.filter(f=>f!==i):o=l,i=su(i)}return e.set(t,r),r}function XG(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const i=[...n==="clippingAncestors"?V4(e)?[]:KG(e,this._c):[].concat(n),r],l=i[0],c=i.reduce((d,f)=>{const h=FM(e,f,o);return d.top=ls(h.top,d.top),d.right=tl(h.right,d.right),d.bottom=tl(h.bottom,d.bottom),d.left=ls(h.left,d.left),d},FM(e,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ZG(t){const{width:e,height:n}=DN(t);return{width:e,height:n}}function JG(t,e,n){const r=Bi(e),o=uc(e),s=n==="fixed",i=Wh(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=ec(0);function d(){c.x=W4(o)}if(r||!r&&!s)if((cg(e)!=="body"||l2(o))&&(l=G4(e)),r){const v=Wh(e,!0,s,e);c.x=v.x+e.clientLeft,c.y=v.y+e.clientTop}else o&&d();s&&!r&&o&&d();const f=o&&!r&&!s?RN(o,l):ec(0),h=i.left+l.scrollLeft-c.x-f.x,p=i.top+l.scrollTop-c.y-f.y;return{x:h,y:p,width:i.width,height:i.height}}function l_(t){return pa(t).position==="static"}function zM(t,e){if(!Bi(t)||pa(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return uc(t)===n&&(n=n.ownerDocument.body),n}function PN(t,e){const n=di(t);if(V4(t))return n;if(!Bi(t)){let o=su(t);for(;o&&!Xc(o);){if(jr(o)&&!l_(o))return o;o=su(o)}return n}let r=zM(t,e);for(;r&&KY(r)&&l_(r);)r=zM(r,e);return r&&Xc(r)&&l_(r)&&!fT(r)?n:r||tG(t)||n}const eW=async function(t){const e=this.getOffsetParent||PN,n=this.getDimensions,r=await n(t.floating);return{reference:JG(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function tW(t){return pa(t).direction==="rtl"}const nW={convertOffsetParentRelativeRectToViewportRelativeRect:qG,getDocumentElement:uc,getClippingRect:XG,getOffsetParent:PN,getElementRects:eW,getClientRects:VG,getDimensions:ZG,getScale:M1,isElement:jr,isRTL:tW};function NN(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function rW(t,e){let n=null,r;const o=uc(t);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const d=t.getBoundingClientRect(),{left:f,top:h,width:p,height:v}=d;if(l||e(),!p||!v)return;const g=h3(h),S=h3(o.clientWidth-(f+p)),w=h3(o.clientHeight-(h+v)),_=h3(f),T={rootMargin:-g+"px "+-S+"px "+-w+"px "+-_+"px",threshold:ls(0,tl(1,c))||1};let M=!0;function j(A){const k=A[0].intersectionRatio;if(k!==c){if(!M)return i();k?i(!1,k):r=setTimeout(()=>{i(!1,1e-7)},1e3)}k===1&&!NN(d,t.getBoundingClientRect())&&i(),M=!1}try{n=new IntersectionObserver(j,{...T,root:o.ownerDocument})}catch{n=new IntersectionObserver(j,T)}n.observe(t)}return i(!0),s}function S9(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=yT(t),f=o||s?[...d?Zc(d):[],...Zc(e)]:[];f.forEach(_=>{o&&_.addEventListener("scroll",n,{passive:!0}),s&&_.addEventListener("resize",n)});const h=d&&l?rW(d,n):null;let p=-1,v=null;i&&(v=new ResizeObserver(_=>{let[E]=_;E&&E.target===d&&v&&(v.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var T;(T=v)==null||T.observe(e)})),n()}),d&&!c&&v.observe(d),v.observe(e));let g,S=c?Wh(t):null;c&&w();function w(){const _=Wh(t);S&&!NN(S,_)&&n(),S=_,g=requestAnimationFrame(w)}return n(),()=>{var _;f.forEach(E=>{o&&E.removeEventListener("scroll",n),s&&E.removeEventListener("resize",n)}),h==null||h(),(_=v)==null||_.disconnect(),v=null,c&&cancelAnimationFrame(g)}}const oW=LG,sW=FG,iW=OG,aW=UG,lW=PG,UM=RG,cW=IG,uW=zG,dW=(t,e,n)=>{const r=new Map,o={platform:nW,...n},s={...o.platform,_c:r};return AG(t,e,{...o,platform:s})};var fW=typeof document<"u",hW=function(){},J3=fW?D.useLayoutEffect:hW;function jw(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,o;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!jw(t[r],e[r]))return!1;return!0}if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&t.$$typeof)&&!jw(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function IN(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function BM(t,e){const n=IN(t);return Math.round(e*n)/n}function c_(t){const e=D.useRef(t);return J3(()=>{e.current=t}),e}function pW(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:l=!0,whileElementsMounted:c,open:d}=t,[f,h]=D.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[p,v]=D.useState(r);jw(p,r)||v(r);const[g,S]=D.useState(null),[w,_]=D.useState(null),E=D.useCallback(z=>{z!==A.current&&(A.current=z,S(z))},[]),T=D.useCallback(z=>{z!==k.current&&(k.current=z,_(z))},[]),M=s||g,j=i||w,A=D.useRef(null),k=D.useRef(null),R=D.useRef(f),N=c!=null,I=c_(c),L=c_(o),F=c_(d),H=D.useCallback(()=>{if(!A.current||!k.current)return;const z={placement:e,strategy:n,middleware:p};L.current&&(z.platform=L.current),dW(A.current,k.current,z).then(W=>{const K={...W,isPositioned:F.current!==!1};B.current&&!jw(R.current,K)&&(R.current=K,Qa.flushSync(()=>{h(K)}))})},[p,e,n,L,F]);J3(()=>{d===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,h(z=>({...z,isPositioned:!1})))},[d]);const B=D.useRef(!1);J3(()=>(B.current=!0,()=>{B.current=!1}),[]),J3(()=>{if(M&&(A.current=M),j&&(k.current=j),M&&j){if(I.current)return I.current(M,j,H);H()}},[M,j,H,I,N]);const Y=D.useMemo(()=>({reference:A,floating:k,setReference:E,setFloating:T}),[E,T]),U=D.useMemo(()=>({reference:M,floating:j}),[M,j]),q=D.useMemo(()=>{const z={position:n,left:0,top:0};if(!U.floating)return z;const W=BM(U.floating,f.x),K=BM(U.floating,f.y);return l?{...z,transform:"translate("+W+"px, "+K+"px)",...IN(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:K}},[n,l,U.floating,f.x,f.y]);return D.useMemo(()=>({...f,update:H,refs:Y,elements:U,floatingStyles:q}),[f,H,Y,U,q])}const mW=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:o}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?UM({element:r.current,padding:o}).fn(n):{}:r?UM({element:r,padding:o}).fn(n):{}}}},$N=(t,e)=>({...oW(t),options:[t,e]}),vT=(t,e)=>({...sW(t),options:[t,e]}),HM=(t,e)=>({...uW(t),options:[t,e]}),Dw=(t,e)=>({...iW(t),options:[t,e]}),gW=(t,e)=>({...aW(t),options:[t,e]}),yW=(t,e)=>({...lW(t),options:[t,e]}),iv=(t,e)=>({...cW(t),options:[t,e]}),LN=(t,e)=>({...mW(t),options:[t,e]});function FN(t){const e=D.useRef(void 0),n=D.useCallback(r=>{const o=t.map(s=>{if(s!=null){if(typeof s=="function"){const i=s,l=i(r);return typeof l=="function"?l:()=>{i(null)}}return s.current=r,()=>{s.current=null}}});return()=>{o.forEach(s=>s==null?void 0:s())}},t);return D.useMemo(()=>t.every(r=>r==null)?null:r=>{e.current&&(e.current(),e.current=void 0),r!=null&&(e.current=n(r))},t)}const vW="data-floating-ui-focusable",qM="active",VM="selected",bW={...Z8};let YM=!1,SW=0;const GM=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+SW++;function wW(){const[t,e]=D.useState(()=>YM?GM():void 0);return tc(()=>{t==null&&e(GM())},[]),D.useEffect(()=>{YM=!0},[]),t}const xW=bW.useId,zN=xW||wW;function CW(){const t=new Map;return{emit(e,n){var r;(r=t.get(e))==null||r.forEach(o=>o(n))},on(e,n){t.has(e)||t.set(e,new Set),t.get(e).add(n)},off(e,n){var r;(r=t.get(e))==null||r.delete(n)}}}const _W=D.createContext(null),TW=D.createContext(null),bT=()=>{var t;return((t=D.useContext(_W))==null?void 0:t.id)||null},ST=()=>D.useContext(TW);function wT(t){return"data-floating-ui-"+t}function la(t){t.current!==-1&&(clearTimeout(t.current),t.current=-1)}const WM=wT("safe-polygon");function ew(t,e,n){if(n&&!b9(n))return 0;if(typeof t=="number")return t;if(typeof t=="function"){const r=t();return typeof r=="number"?r:r==null?void 0:r[e]}return t==null?void 0:t[e]}function u_(t){return typeof t=="function"?t():t}function UN(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,dataRef:o,events:s,elements:i}=t,{enabled:l=!0,delay:c=0,handleClose:d=null,mouseOnly:f=!1,restMs:h=0,move:p=!0}=e,v=ST(),g=bT(),S=p3(d),w=p3(c),_=p3(n),E=p3(h),T=D.useRef(),M=D.useRef(-1),j=D.useRef(),A=D.useRef(-1),k=D.useRef(!0),R=D.useRef(!1),N=D.useRef(()=>{}),I=D.useRef(!1),L=Wl(()=>{var q;const z=(q=o.current.openEvent)==null?void 0:q.type;return(z==null?void 0:z.includes("mouse"))&&z!=="mousedown"});D.useEffect(()=>{if(!l)return;function q(z){let{open:W}=z;W||(la(M),la(A),k.current=!0,I.current=!1)}return s.on("openchange",q),()=>{s.off("openchange",q)}},[l,s]),D.useEffect(()=>{if(!l||!S.current||!n)return;function q(W){L()&&r(!1,W,"hover")}const z=Oh(i.floating).documentElement;return z.addEventListener("mouseleave",q),()=>{z.removeEventListener("mouseleave",q)}},[i.floating,n,r,l,S,L]);const F=D.useCallback(function(q,z,W){z===void 0&&(z=!0),W===void 0&&(W="hover");const K=ew(w.current,"close",T.current);K&&!j.current?(la(M),M.current=window.setTimeout(()=>r(!1,q,W),K)):z&&(la(M),r(!1,q,W))},[w,r]),H=Wl(()=>{N.current(),j.current=void 0}),B=Wl(()=>{if(R.current){const q=Oh(i.floating).body;q.style.pointerEvents="",q.removeAttribute(WM),R.current=!1}}),Y=Wl(()=>o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1);D.useEffect(()=>{if(!l)return;function q(X){if(la(M),k.current=!1,f&&!b9(T.current)||u_(E.current)>0&&!ew(w.current,"open"))return;const J=ew(w.current,"open",T.current);J?M.current=window.setTimeout(()=>{_.current||r(!0,X,"hover")},J):n||r(!0,X,"hover")}function z(X){if(Y()){B();return}N.current();const J=Oh(i.floating);if(la(A),I.current=!1,S.current&&o.current.floatingContext){n||la(M),j.current=S.current({...o.current.floatingContext,tree:v,x:X.clientX,y:X.clientY,onClose(){B(),H(),Y()||F(X,!0,"safe-polygon")}});const se=j.current;J.addEventListener("mousemove",se),N.current=()=>{J.removeEventListener("mousemove",se)};return}(T.current==="touch"?!_v(i.floating,X.relatedTarget):!0)&&F(X)}function W(X){Y()||o.current.floatingContext&&(S.current==null||S.current({...o.current.floatingContext,tree:v,x:X.clientX,y:X.clientY,onClose(){B(),H(),Y()||F(X)}})(X))}function K(){la(M)}function G(X){Y()||F(X,!1)}if(jr(i.domReference)){const X=i.domReference,J=i.floating;return n&&X.addEventListener("mouseleave",W),p&&X.addEventListener("mousemove",q,{once:!0}),X.addEventListener("mouseenter",q),X.addEventListener("mouseleave",z),J&&(J.addEventListener("mouseleave",W),J.addEventListener("mouseenter",K),J.addEventListener("mouseleave",G)),()=>{n&&X.removeEventListener("mouseleave",W),p&&X.removeEventListener("mousemove",q),X.removeEventListener("mouseenter",q),X.removeEventListener("mouseleave",z),J&&(J.removeEventListener("mouseleave",W),J.removeEventListener("mouseenter",K),J.removeEventListener("mouseleave",G))}}},[i,l,t,f,p,F,H,B,r,n,_,v,w,S,o,Y,E]),tc(()=>{var q;if(l&&n&&(q=S.current)!=null&&(q=q.__options)!=null&&q.blockPointerEvents&&L()){R.current=!0;const W=i.floating;if(jr(i.domReference)&&W){var z;const K=Oh(i.floating).body;K.setAttribute(WM,"");const G=i.domReference,X=v==null||(z=v.nodesRef.current.find(J=>J.id===g))==null||(z=z.context)==null?void 0:z.elements.floating;return X&&(X.style.pointerEvents=""),K.style.pointerEvents="none",G.style.pointerEvents="auto",W.style.pointerEvents="auto",()=>{K.style.pointerEvents="",G.style.pointerEvents="",W.style.pointerEvents=""}}}},[l,n,g,i,v,S,L]),tc(()=>{n||(T.current=void 0,I.current=!1,H(),B())},[n,H,B]),D.useEffect(()=>()=>{H(),la(M),la(A),B()},[l,i.domReference,H,B]);const U=D.useMemo(()=>{function q(z){T.current=z.pointerType}return{onPointerDown:q,onPointerEnter:q,onMouseMove(z){const{nativeEvent:W}=z;function K(){!k.current&&!_.current&&r(!0,W,"hover")}f&&!b9(T.current)||n||u_(E.current)===0||I.current&&z.movementX**2+z.movementY**2<2||(la(A),T.current==="touch"?K():(I.current=!0,A.current=window.setTimeout(K,u_(E.current))))}}},[f,r,n,_,E]);return D.useMemo(()=>l?{reference:U}:{},[l,U])}const w9=()=>{},BN=D.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:w9,setState:w9,isInstantPhase:!1}),EW=()=>D.useContext(BN);function HN(t){const{children:e,delay:n,timeoutMs:r=0}=t,[o,s]=D.useReducer((c,d)=>({...c,...d}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),i=D.useRef(null),l=D.useCallback(c=>{s({currentId:c})},[]);return tc(()=>{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]),b.jsx(BN.Provider,{value:D.useMemo(()=>({...o,setState:s,setCurrentId:l}),[o,l]),children:e})}function qN(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,floatingId:o}=t,{id:s,enabled:i=!0}=e,l=s??o,c=EW(),{currentId:d,setCurrentId:f,initialDelay:h,setState:p,timeoutMs:v}=c;return tc(()=>{i&&d&&(p({delay:{open:1,close:ew(h,"close")}}),d!==l&&r(!1))},[i,l,r,p,d,h]),tc(()=>{function g(){r(!1),p({delay:h,currentId:null})}if(i&&d&&!n&&d===l){if(v){const S=window.setTimeout(g,v);return()=>{clearTimeout(S)}}g()}},[i,n,p,d,l,r,h,v]),tc(()=>{i&&(f===w9||!n||f(l))},[i,n,f,l]),c}const kW={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},MW={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},QM=t=>{var e,n;return{escapeKey:typeof t=="boolean"?t:(e=t==null?void 0:t.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(n=t==null?void 0:t.outsidePress)!=null?n:!0}};function VN(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,elements:o,dataRef:s}=t,{enabled:i=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:d="pointerdown",referencePress:f=!1,referencePressEvent:h="pointerdown",ancestorScroll:p=!1,bubbles:v,capture:g}=e,S=ST(),w=Wl(typeof c=="function"?c:()=>!1),_=typeof c=="function"?w:c,E=D.useRef(!1),{escapeKey:T,outsidePress:M}=QM(v),{escapeKey:j,outsidePress:A}=QM(g),k=D.useRef(!1),R=Wl(B=>{var Y;if(!n||!i||!l||B.key!=="Escape"||k.current)return;const U=(Y=s.current.floatingContext)==null?void 0:Y.nodeId,q=S?Z3(S.nodesRef.current,U):[];if(!T&&(B.stopPropagation(),q.length>0)){let z=!0;if(q.forEach(W=>{var K;if((K=W.context)!=null&&K.open&&!W.context.dataRef.current.__escapeKeyBubbles){z=!1;return}}),!z)return}r(!1,_G(B)?B.nativeEvent:B,"escape-key")}),N=Wl(B=>{var Y;const U=()=>{var q;R(B),(q=y1(B))==null||q.removeEventListener("keydown",U)};(Y=y1(B))==null||Y.addEventListener("keydown",U)}),I=Wl(B=>{var Y;const U=s.current.insideReactTree;s.current.insideReactTree=!1;const q=E.current;if(E.current=!1,d==="click"&&q||U||typeof _=="function"&&!_(B))return;const z=y1(B),W="["+wT("inert")+"]",K=Oh(o.floating).querySelectorAll(W);let G=jr(z)?z:null;for(;G&&!Xc(G);){const se=su(G);if(Xc(se)||!jr(se))break;G=se}if(K.length&&jr(z)&&!SG(z)&&!_v(z,o.floating)&&Array.from(K).every(se=>!_v(G,se)))return;if(Bi(z)&&H){const se=Xc(z),ie=pa(z),oe=/auto|scroll/,de=se||oe.test(ie.overflowX),pe=se||oe.test(ie.overflowY),fe=de&&z.clientWidth>0&&z.scrollWidth>z.clientWidth,Te=pe&&z.clientHeight>0&&z.scrollHeight>z.clientHeight,we=ie.direction==="rtl",_e=Te&&(we?B.offsetX<=z.offsetWidth-z.clientWidth:B.offsetX>z.clientWidth),De=fe&&B.offsetY>z.clientHeight;if(_e||De)return}const X=(Y=s.current.floatingContext)==null?void 0:Y.nodeId,J=S&&Z3(S.nodesRef.current,X).some(se=>{var ie;return a_(B,(ie=se.context)==null?void 0:ie.elements.floating)});if(a_(B,o.floating)||a_(B,o.domReference)||J)return;const ne=S?Z3(S.nodesRef.current,X):[];if(ne.length>0){let se=!0;if(ne.forEach(ie=>{var oe;if((oe=ie.context)!=null&&oe.open&&!ie.context.dataRef.current.__outsidePressBubbles){se=!1;return}}),!se)return}r(!1,B,"outside-press")}),L=Wl(B=>{var Y;const U=()=>{var q;I(B),(q=y1(B))==null||q.removeEventListener(d,U)};(Y=y1(B))==null||Y.addEventListener(d,U)});D.useEffect(()=>{if(!n||!i)return;s.current.__escapeKeyBubbles=T,s.current.__outsidePressBubbles=M;let B=-1;function Y(K){r(!1,K,"ancestor-scroll")}function U(){window.clearTimeout(B),k.current=!0}function q(){B=window.setTimeout(()=>{k.current=!1},Y4()?5:0)}const z=Oh(o.floating);l&&(z.addEventListener("keydown",j?N:R,j),z.addEventListener("compositionstart",U),z.addEventListener("compositionend",q)),_&&z.addEventListener(d,A?L:I,A);let W=[];return p&&(jr(o.domReference)&&(W=Zc(o.domReference)),jr(o.floating)&&(W=W.concat(Zc(o.floating))),!jr(o.reference)&&o.reference&&o.reference.contextElement&&(W=W.concat(Zc(o.reference.contextElement)))),W=W.filter(K=>{var G;return K!==((G=z.defaultView)==null?void 0:G.visualViewport)}),W.forEach(K=>{K.addEventListener("scroll",Y,{passive:!0})}),()=>{l&&(z.removeEventListener("keydown",j?N:R,j),z.removeEventListener("compositionstart",U),z.removeEventListener("compositionend",q)),_&&z.removeEventListener(d,A?L:I,A),W.forEach(K=>{K.removeEventListener("scroll",Y)}),window.clearTimeout(B)}},[s,o,l,_,d,n,r,p,i,T,M,R,j,N,I,A,L]),D.useEffect(()=>{s.current.insideReactTree=!1},[s,_,d]);const F=D.useMemo(()=>({onKeyDown:R,...f&&{[kW[h]]:B=>{r(!1,B.nativeEvent,"reference-press")},...h!=="click"&&{onClick(B){r(!1,B.nativeEvent,"reference-press")}}}}),[R,r,f,h]),H=D.useMemo(()=>({onKeyDown:R,onMouseDown(){E.current=!0},onMouseUp(){E.current=!0},[MW[d]]:()=>{s.current.insideReactTree=!0}}),[R,d,s]);return D.useMemo(()=>i?{reference:F,floating:H}:{},[i,F,H])}function jW(t){const{open:e=!1,onOpenChange:n,elements:r}=t,o=zN(),s=D.useRef({}),[i]=D.useState(()=>CW()),l=bT()!=null,[c,d]=D.useState(r.reference),f=Wl((v,g,S)=>{s.current.openEvent=v?g:void 0,i.emit("openchange",{open:v,event:g,reason:S,nested:l}),n==null||n(v,g,S)}),h=D.useMemo(()=>({setPositionReference:d}),[]),p=D.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return D.useMemo(()=>({dataRef:s,open:e,onOpenChange:f,elements:p,events:i,floatingId:o,refs:h}),[e,f,p,i,o,h])}function Q4(t){t===void 0&&(t={});const{nodeId:e}=t,n=jW({...t,elements:{reference:null,floating:null,...t.elements}}),r=t.rootContext||n,o=r.elements,[s,i]=D.useState(null),[l,c]=D.useState(null),f=(o==null?void 0:o.domReference)||s,h=D.useRef(null),p=ST();tc(()=>{f&&(h.current=f)},[f]);const v=pW({...t,elements:{...o,...l&&{reference:l}}}),g=D.useCallback(T=>{const M=jr(T)?{getBoundingClientRect:()=>T.getBoundingClientRect(),getClientRects:()=>T.getClientRects(),contextElement:T}:T;c(M),v.refs.setReference(M)},[v.refs]),S=D.useCallback(T=>{(jr(T)||T===null)&&(h.current=T,i(T)),(jr(v.refs.reference.current)||v.refs.reference.current===null||T!==null&&!jr(T))&&v.refs.setReference(T)},[v.refs]),w=D.useMemo(()=>({...v.refs,setReference:S,setPositionReference:g,domReference:h}),[v.refs,S,g]),_=D.useMemo(()=>({...v.elements,domReference:f}),[v.elements,f]),E=D.useMemo(()=>({...v,...r,refs:w,elements:_,nodeId:e}),[v,w,_,e,r]);return tc(()=>{r.dataRef.current.floatingContext=E;const T=p==null?void 0:p.nodesRef.current.find(M=>M.id===e);T&&(T.context=E)}),D.useMemo(()=>({...v,context:E,refs:w,elements:_}),[v,w,_,E])}function d_(){return yG()&&gG()}function DW(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,events:o,dataRef:s,elements:i}=t,{enabled:l=!0,visibleOnly:c=!0}=e,d=D.useRef(!1),f=D.useRef(-1),h=D.useRef(!0);D.useEffect(()=>{if(!l)return;const v=di(i.domReference);function g(){!n&&Bi(i.domReference)&&i.domReference===PM(Oh(i.domReference))&&(d.current=!0)}function S(){h.current=!0}function w(){h.current=!1}return v.addEventListener("blur",g),d_()&&(v.addEventListener("keydown",S,!0),v.addEventListener("pointerdown",w,!0)),()=>{v.removeEventListener("blur",g),d_()&&(v.removeEventListener("keydown",S,!0),v.removeEventListener("pointerdown",w,!0))}},[i.domReference,n,l]),D.useEffect(()=>{if(!l)return;function v(g){let{reason:S}=g;(S==="reference-press"||S==="escape-key")&&(d.current=!0)}return o.on("openchange",v),()=>{o.off("openchange",v)}},[o,l]),D.useEffect(()=>()=>{la(f)},[]);const p=D.useMemo(()=>({onMouseLeave(){d.current=!1},onFocus(v){if(d.current)return;const g=y1(v.nativeEvent);if(c&&jr(g)){if(d_()&&!v.relatedTarget){if(!h.current&&!wG(g))return}else if(!xG(g))return}r(!0,v.nativeEvent,"focus")},onBlur(v){d.current=!1;const g=v.relatedTarget,S=v.nativeEvent,w=jr(g)&&g.hasAttribute(wT("focus-guard"))&&g.getAttribute("data-type")==="outside";f.current=window.setTimeout(()=>{var _;const E=PM(i.domReference?i.domReference.ownerDocument:document);!g&&E===i.domReference||_v((_=s.current.floatingContext)==null?void 0:_.refs.floating.current,E)||_v(i.domReference,E)||w||r(!1,S,"focus")})}}),[s,i.domReference,r,c]);return D.useMemo(()=>l?{reference:p}:{},[l,p])}function f_(t,e,n){const r=new Map,o=n==="item";let s=t;if(o&&t){const{[qM]:i,[VM]:l,...c}=t;s=c}return{...n==="floating"&&{tabIndex:-1,[vW]:""},...s,...e.map(i=>{const l=i?i[n]:null;return typeof l=="function"?t?l(t):null:l}).concat(t).reduce((i,l)=>(l&&Object.entries(l).forEach(c=>{let[d,f]=c;if(!(o&&[qM,VM].includes(d)))if(d.indexOf("on")===0){if(r.has(d)||r.set(d,[]),typeof f=="function"){var h;(h=r.get(d))==null||h.push(f),i[d]=function(){for(var p,v=arguments.length,g=new Array(v),S=0;S<v;S++)g[S]=arguments[S];return(p=r.get(d))==null?void 0:p.map(w=>w(...g)).find(w=>w!==void 0)}}}else i[d]=f}),i),{})}}function YN(t){t===void 0&&(t=[]);const e=t.map(l=>l==null?void 0:l.reference),n=t.map(l=>l==null?void 0:l.floating),r=t.map(l=>l==null?void 0:l.item),o=D.useCallback(l=>f_(l,t,"reference"),e),s=D.useCallback(l=>f_(l,t,"floating"),n),i=D.useCallback(l=>f_(l,t,"item"),r);return D.useMemo(()=>({getReferenceProps:o,getFloatingProps:s,getItemProps:i}),[o,s,i])}const AW=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function GN(t,e){var n,r;e===void 0&&(e={});const{open:o,elements:s,floatingId:i}=t,{enabled:l=!0,role:c="dialog"}=e,d=zN(),f=((n=s.domReference)==null?void 0:n.id)||d,h=D.useMemo(()=>{var E;return((E=CG(s.floating))==null?void 0:E.id)||i},[s.floating,i]),p=(r=AW.get(c))!=null?r:c,g=bT()!=null,S=D.useMemo(()=>p==="tooltip"||c==="label"?{["aria-"+(c==="label"?"labelledby":"describedby")]:o?h:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":p==="alertdialog"?"dialog":p,"aria-controls":o?h:void 0,...p==="listbox"&&{role:"combobox"},...p==="menu"&&{id:f},...p==="menu"&&g&&{role:"menuitem"},...c==="select"&&{"aria-autocomplete":"none"},...c==="combobox"&&{"aria-autocomplete":"list"}},[p,h,g,o,f,c]),w=D.useMemo(()=>{const E={id:h,...p&&{role:p}};return p==="tooltip"||c==="label"?E:{...E,...p==="menu"&&{"aria-labelledby":f}}},[p,h,f,c]),_=D.useCallback(E=>{let{active:T,selected:M}=E;const j={role:"option",...T&&{id:h+"-fui-option"}};switch(c){case"select":case"combobox":return{...j,"aria-selected":M}}return{}},[h,c]);return D.useMemo(()=>l?{reference:S,floating:w,item:_}:{},[l,S,w,_])}var xT={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const[RW,ya]=bi("ScrollArea.Root component was not found in tree");function U1(t,e){const n=Gl(e);pu(()=>{let r=0;if(t){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(t),()=>{window.cancelAnimationFrame(r),o.unobserve(t)}}},[t,n])}const OW=D.forwardRef((t,e)=>{const{style:n,...r}=t,o=ya(),[s,i]=D.useState(0),[l,c]=D.useState(0),d=!!(s&&l);return U1(o.scrollbarX,()=>{var h;const f=((h=o.scrollbarX)==null?void 0:h.offsetHeight)||0;o.onCornerHeightChange(f),c(f)}),U1(o.scrollbarY,()=>{var h;const f=((h=o.scrollbarY)==null?void 0:h.offsetWidth)||0;o.onCornerWidthChange(f),i(f)}),d?b.jsx("div",{...r,ref:e,style:{...n,width:s,height:l}}):null}),PW=D.forwardRef((t,e)=>{const n=ya(),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?b.jsx(OW,{...t,ref:e}):null}),NW={scrollHideDelay:1e3,type:"hover"},WN=D.forwardRef((t,e)=>{const{type:n,scrollHideDelay:r,scrollbars:o,getStyles:s,...i}=Ae("ScrollAreaRoot",NW,t),[l,c]=D.useState(null),[d,f]=D.useState(null),[h,p]=D.useState(null),[v,g]=D.useState(null),[S,w]=D.useState(null),[_,E]=D.useState(0),[T,M]=D.useState(0),[j,A]=D.useState(!1),[k,R]=D.useState(!1),N=Eo(e,I=>c(I));return b.jsx(RW,{value:{type:n,scrollHideDelay:r,scrollArea:l,viewport:d,onViewportChange:f,content:h,onContentChange:p,scrollbarX:v,onScrollbarXChange:g,scrollbarXEnabled:j,onScrollbarXEnabledChange:A,scrollbarY:S,onScrollbarYChange:w,scrollbarYEnabled:k,onScrollbarYEnabledChange:R,onCornerWidthChange:E,onCornerHeightChange:M,getStyles:s},children:b.jsx(je,{...i,ref:N,__vars:{"--sa-corner-width":o!=="xy"?"0px":`${_}px`,"--sa-corner-height":o!=="xy"?"0px":`${T}px`}})})});WN.displayName="@mantine/core/ScrollAreaRoot";function QN(t,e){const n=t/e;return Number.isNaN(n)?0:n}function K4(t){const e=QN(t.viewport,t.content),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,r=(t.scrollbar.size-n)*e;return Math.max(r,18)}function KN(t,e){return n=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(n-t[0])}}function IW(t,[e,n]){return Math.min(n,Math.max(e,t))}function KM(t,e,n="ltr"){const r=K4(e),o=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,s=e.scrollbar.size-o,i=e.content-e.viewport,l=s-r,c=n==="ltr"?[0,i]:[i*-1,0],d=IW(t,c);return KN([0,i],[0,l])(d)}function $W(t,e,n,r="ltr"){const o=K4(n),s=o/2,i=e||s,l=o-i,c=n.scrollbar.paddingStart+i,d=n.scrollbar.size-n.scrollbar.paddingEnd-l,f=n.content-n.viewport,h=r==="ltr"?[0,f]:[f*-1,0];return KN([c,d],h)(t)}function XN(t,e){return t>0&&t<e}function Aw(t){return t?parseInt(t,10):0}function Fh(t,e,{checkForDefaultPrevented:n=!0}={}){return r=>{t==null||t(r),(n===!1||!r.defaultPrevented)&&(e==null||e(r))}}const[LW,ZN]=bi("ScrollAreaScrollbar was not found in tree"),JN=D.forwardRef((t,e)=>{const{sizes:n,hasThumb:r,onThumbChange:o,onThumbPointerUp:s,onThumbPointerDown:i,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:d,onResize:f,...h}=t,p=ya(),[v,g]=D.useState(null),S=Eo(e,R=>g(R)),w=D.useRef(null),_=D.useRef(""),{viewport:E}=p,T=n.content-n.viewport,M=Gl(d),j=Gl(l),A=ou(f,10),k=R=>{if(w.current){const N=R.clientX-w.current.left,I=R.clientY-w.current.top;c({x:N,y:I})}};return D.useEffect(()=>{const R=N=>{const I=N.target;(v==null?void 0:v.contains(I))&&M(N,T)};return document.addEventListener("wheel",R,{passive:!1}),()=>document.removeEventListener("wheel",R,{passive:!1})},[E,v,T,M]),D.useEffect(j,[n,j]),U1(v,A),U1(p.content,A),b.jsx(LW,{value:{scrollbar:v,hasThumb:r,onThumbChange:Gl(o),onThumbPointerUp:Gl(s),onThumbPositionChange:j,onThumbPointerDown:Gl(i)},children:b.jsx("div",{...h,ref:S,"data-mantine-scrollbar":!0,style:{position:"absolute",...h.style},onPointerDown:Fh(t.onPointerDown,R=>{R.preventDefault(),R.button===0&&(R.target.setPointerCapture(R.pointerId),w.current=v.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",k(R))}),onPointerMove:Fh(t.onPointerMove,k),onPointerUp:Fh(t.onPointerUp,R=>{const N=R.target;N.hasPointerCapture(R.pointerId)&&(R.preventDefault(),N.releasePointerCapture(R.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=_.current,w.current=null}})})}),eI=D.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,style:o,...s}=t,i=ya(),[l,c]=D.useState(),d=D.useRef(null),f=Eo(e,d,i.onScrollbarXChange);return D.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),b.jsx(JN,{"data-orientation":"horizontal",...s,ref:f,sizes:n,style:{...o,"--sa-thumb-width":`${K4(n)}px`},onThumbPointerDown:h=>t.onThumbPointerDown(h.x),onDragScroll:h=>t.onDragScroll(h.x),onWheelScroll:(h,p)=>{if(i.viewport){const v=i.viewport.scrollLeft+h.deltaX;t.onWheelScroll(v),XN(v,p)&&h.preventDefault()}},onResize:()=>{d.current&&i.viewport&&l&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:Aw(l.paddingLeft),paddingEnd:Aw(l.paddingRight)}})}})});eI.displayName="@mantine/core/ScrollAreaScrollbarX";const tI=D.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,style:o,...s}=t,i=ya(),[l,c]=D.useState(),d=D.useRef(null),f=Eo(e,d,i.onScrollbarYChange);return D.useEffect(()=>{d.current&&c(window.getComputedStyle(d.current))},[]),b.jsx(JN,{...s,"data-orientation":"vertical",ref:f,sizes:n,style:{"--sa-thumb-height":`${K4(n)}px`,...o},onThumbPointerDown:h=>t.onThumbPointerDown(h.y),onDragScroll:h=>t.onDragScroll(h.y),onWheelScroll:(h,p)=>{if(i.viewport){const v=i.viewport.scrollTop+h.deltaY;t.onWheelScroll(v),XN(v,p)&&h.preventDefault()}},onResize:()=>{d.current&&i.viewport&&l&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:Aw(l.paddingTop),paddingEnd:Aw(l.paddingBottom)}})}})});tI.displayName="@mantine/core/ScrollAreaScrollbarY";const X4=D.forwardRef((t,e)=>{const{orientation:n="vertical",...r}=t,{dir:o}=Kd(),s=ya(),i=D.useRef(null),l=D.useRef(0),[c,d]=D.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),f=QN(c.viewport,c.content),h={...r,sizes:c,onSizesChange:d,hasThumb:f>0&&f<1,onThumbChange:v=>{i.current=v},onThumbPointerUp:()=>{l.current=0},onThumbPointerDown:v=>{l.current=v}},p=(v,g)=>$W(v,l.current,c,g);return n==="horizontal"?b.jsx(eI,{...h,ref:e,onThumbPositionChange:()=>{if(s.viewport&&i.current){const v=s.viewport.scrollLeft,g=KM(v,c,o);i.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:v=>{s.viewport&&(s.viewport.scrollLeft=v)},onDragScroll:v=>{s.viewport&&(s.viewport.scrollLeft=p(v,o))}}):n==="vertical"?b.jsx(tI,{...h,ref:e,onThumbPositionChange:()=>{if(s.viewport&&i.current){const v=s.viewport.scrollTop,g=KM(v,c);c.scrollbar.size===0?i.current.style.setProperty("--thumb-opacity","0"):i.current.style.setProperty("--thumb-opacity","1"),i.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:v=>{s.viewport&&(s.viewport.scrollTop=v)},onDragScroll:v=>{s.viewport&&(s.viewport.scrollTop=p(v))}}):null});X4.displayName="@mantine/core/ScrollAreaScrollbarVisible";const CT=D.forwardRef((t,e)=>{const n=ya(),{forceMount:r,...o}=t,[s,i]=D.useState(!1),l=t.orientation==="horizontal",c=ou(()=>{if(n.viewport){const d=n.viewport.offsetWidth<n.viewport.scrollWidth,f=n.viewport.offsetHeight<n.viewport.scrollHeight;i(l?d:f)}},10);return U1(n.viewport,c),U1(n.content,c),r||s?b.jsx(X4,{"data-state":s?"visible":"hidden",...o,ref:e}):null});CT.displayName="@mantine/core/ScrollAreaScrollbarAuto";const nI=D.forwardRef((t,e)=>{const{forceMount:n,...r}=t,o=ya(),[s,i]=D.useState(!1);return D.useEffect(()=>{const{scrollArea:l}=o;let c=0;if(l){const d=()=>{window.clearTimeout(c),i(!0)},f=()=>{c=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return l.addEventListener("pointerenter",d),l.addEventListener("pointerleave",f),()=>{window.clearTimeout(c),l.removeEventListener("pointerenter",d),l.removeEventListener("pointerleave",f)}}},[o.scrollArea,o.scrollHideDelay]),n||s?b.jsx(CT,{"data-state":s?"visible":"hidden",...r,ref:e}):null});nI.displayName="@mantine/core/ScrollAreaScrollbarHover";const FW=D.forwardRef((t,e)=>{const{forceMount:n,...r}=t,o=ya(),s=t.orientation==="horizontal",[i,l]=D.useState("hidden"),c=ou(()=>l("idle"),100);return D.useEffect(()=>{if(i==="idle"){const d=window.setTimeout(()=>l("hidden"),o.scrollHideDelay);return()=>window.clearTimeout(d)}},[i,o.scrollHideDelay]),D.useEffect(()=>{const{viewport:d}=o,f=s?"scrollLeft":"scrollTop";if(d){let h=d[f];const p=()=>{const v=d[f];h!==v&&(l("scrolling"),c()),h=v};return d.addEventListener("scroll",p),()=>d.removeEventListener("scroll",p)}},[o.viewport,s,c]),n||i!=="hidden"?b.jsx(X4,{"data-state":i==="hidden"?"hidden":"visible",...r,ref:e,onPointerEnter:Fh(t.onPointerEnter,()=>l("interacting")),onPointerLeave:Fh(t.onPointerLeave,()=>l("idle"))}):null}),x9=D.forwardRef((t,e)=>{const{forceMount:n,...r}=t,o=ya(),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:i}=o,l=t.orientation==="horizontal";return D.useEffect(()=>(l?s(!0):i(!0),()=>{l?s(!1):i(!1)}),[l,s,i]),o.type==="hover"?b.jsx(nI,{...r,ref:e,forceMount:n}):o.type==="scroll"?b.jsx(FW,{...r,ref:e,forceMount:n}):o.type==="auto"?b.jsx(CT,{...r,ref:e,forceMount:n}):o.type==="always"?b.jsx(X4,{...r,ref:e}):null});x9.displayName="@mantine/core/ScrollAreaScrollbar";function zW(t,e=()=>{}){let n={left:t.scrollLeft,top:t.scrollTop},r=0;return(function o(){const s={left:t.scrollLeft,top:t.scrollTop},i=n.left!==s.left,l=n.top!==s.top;(i||l)&&e(),n=s,r=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(r)}const rI=D.forwardRef((t,e)=>{const{style:n,...r}=t,o=ya(),s=ZN(),{onThumbPositionChange:i}=s,l=Eo(e,f=>s.onThumbChange(f)),c=D.useRef(void 0),d=ou(()=>{c.current&&(c.current(),c.current=void 0)},100);return D.useEffect(()=>{const{viewport:f}=o;if(f){const h=()=>{if(d(),!c.current){const p=zW(f,i);c.current=p,i()}};return i(),f.addEventListener("scroll",h),()=>f.removeEventListener("scroll",h)}},[o.viewport,d,i]),b.jsx("div",{"data-state":s.hasThumb?"visible":"hidden",...r,ref:l,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:Fh(t.onPointerDownCapture,f=>{const p=f.target.getBoundingClientRect(),v=f.clientX-p.left,g=f.clientY-p.top;s.onThumbPointerDown({x:v,y:g})}),onPointerUp:Fh(t.onPointerUp,s.onThumbPointerUp)})});rI.displayName="@mantine/core/ScrollAreaThumb";const C9=D.forwardRef((t,e)=>{const{forceMount:n,...r}=t,o=ZN();return n||o.hasThumb?b.jsx(rI,{ref:e,...r}):null});C9.displayName="@mantine/core/ScrollAreaThumb";const oI=D.forwardRef(({children:t,style:e,onWheel:n,...r},o)=>{const s=ya(),i=Eo(o,s.onViewportChange),l=c=>{if(n==null||n(c),s.scrollbarXEnabled&&s.viewport&&c.shiftKey){const{scrollTop:d,scrollHeight:f,clientHeight:h,scrollWidth:p,clientWidth:v}=s.viewport,g=d<1,S=d>=f-h-1;p>v&&(g||S)&&c.stopPropagation()}};return b.jsx(je,{...r,ref:i,onWheel:l,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e},children:b.jsx("div",{...s.getStyles("content"),ref:s.onContentChange,children:t})})});oI.displayName="@mantine/core/ScrollAreaViewport";const sI={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},UW=(t,{scrollbarSize:e,overscrollBehavior:n,scrollbars:r})=>{let o=n;return n&&r&&(r==="x"?o=`${n} auto`:r==="y"&&(o=`auto ${n}`)),{root:{"--scrollarea-scrollbar-size":Pe(e),"--scrollarea-over-scroll-behavior":o}}},Hi=Ve((t,e)=>{const n=Ae("ScrollArea",sI,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,scrollbarSize:c,vars:d,type:f,scrollHideDelay:h,viewportProps:p,viewportRef:v,onScrollPositionChange:g,children:S,offsetScrollbars:w,scrollbars:_,onBottomReached:E,onTopReached:T,overscrollBehavior:M,attributes:j,...A}=n,[k,R]=D.useState(!1),[N,I]=D.useState(!1),[L,F]=D.useState(!1),H=pt({name:"ScrollArea",props:n,classes:xT,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:j,vars:d,varsResolver:UW}),B=D.useRef(null),Y=FN([v,B]);return D.useEffect(()=>{if(!B.current||w!=="present")return;const U=B.current,q=new ResizeObserver(()=>{const{scrollHeight:z,clientHeight:W,scrollWidth:K,clientWidth:G}=U;I(z>W),F(K>G)});return q.observe(U),()=>q.disconnect()},[B,w]),b.jsxs(WN,{getStyles:H,type:f==="never"?"always":f,scrollHideDelay:h,ref:e,scrollbars:_,...H("root"),...A,children:[b.jsx(oI,{...p,...H("viewport",{style:p==null?void 0:p.style}),ref:Y,"data-offset-scrollbars":w===!0?"xy":w||void 0,"data-scrollbars":_||void 0,"data-horizontal-hidden":w==="present"&&!L?"true":void 0,"data-vertical-hidden":w==="present"&&!N?"true":void 0,onScroll:U=>{var K;(K=p==null?void 0:p.onScroll)==null||K.call(p,U),g==null||g({x:U.currentTarget.scrollLeft,y:U.currentTarget.scrollTop});const{scrollTop:q,scrollHeight:z,clientHeight:W}=U.currentTarget;q-(z-W)>=-.8&&(E==null||E()),q===0&&(T==null||T())},children:S}),(_==="xy"||_==="x")&&b.jsx(x9,{...H("scrollbar"),orientation:"horizontal","data-hidden":f==="never"||w==="present"&&!L?!0:void 0,forceMount:!0,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),children:b.jsx(C9,{...H("thumb")})}),(_==="xy"||_==="y")&&b.jsx(x9,{...H("scrollbar"),orientation:"vertical","data-hidden":f==="never"||w==="present"&&!N?!0:void 0,forceMount:!0,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),children:b.jsx(C9,{...H("thumb")})}),b.jsx(PW,{...H("corner"),"data-hovered":k||void 0,"data-hidden":f==="never"||void 0})]})});Hi.displayName="@mantine/core/ScrollArea";const _T=Ve((t,e)=>{const{children:n,classNames:r,styles:o,scrollbarSize:s,scrollHideDelay:i,type:l,dir:c,offsetScrollbars:d,overscrollBehavior:f,viewportRef:h,onScrollPositionChange:p,unstyled:v,variant:g,viewportProps:S,scrollbars:w,style:_,vars:E,onBottomReached:T,onTopReached:M,onOverflowChange:j,...A}=Ae("ScrollAreaAutosize",sI,t),k=D.useRef(null),R=FN([h,k]),[N,I]=D.useState(!1),L=D.useRef(!1);return D.useEffect(()=>{if(!j)return;const F=k.current;if(!F)return;const H=()=>{const Y=F.scrollHeight>F.clientHeight;Y!==N&&(L.current?j==null||j(Y):(L.current=!0,Y&&(j==null||j(!0))),I(Y))};H();const B=new ResizeObserver(H);return B.observe(F),()=>B.disconnect()},[j,N]),b.jsx(je,{...A,ref:e,style:[{display:"flex",overflow:"hidden"},_],children:b.jsx(je,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",...w==="y"&&{minWidth:0},...w==="x"&&{minHeight:0},...w==="xy"&&{minWidth:0,minHeight:0},...w===!1&&{minWidth:0,minHeight:0}},children:b.jsx(Hi,{classNames:r,styles:o,scrollHideDelay:i,scrollbarSize:s,type:l,dir:c,offsetScrollbars:d,overscrollBehavior:f,viewportRef:R,onScrollPositionChange:p,unstyled:v,variant:g,viewportProps:S,vars:E,scrollbars:w,onBottomReached:T,onTopReached:M,"data-autosize":"true",children:n})})})});Hi.classes=xT;_T.displayName="@mantine/core/ScrollAreaAutosize";_T.classes=xT;Hi.Autosize=_T;var iI={root:"m_87cf2631"};const BW={__staticSelector:"UnstyledButton"},Yo=No((t,e)=>{const n=Ae("UnstyledButton",BW,t),{className:r,component:o="button",__staticSelector:s,unstyled:i,classNames:l,styles:c,style:d,attributes:f,...h}=n,p=pt({name:s,props:n,classes:iI,className:r,style:d,classNames:l,styles:c,unstyled:i,attributes:f});return b.jsx(je,{...p("root",{focusable:!0}),component:o,ref:e,type:o==="button"?"button":void 0,...h})});Yo.classes=iI;Yo.displayName="@mantine/core/UnstyledButton";var aI={root:"m_515a97f8"};const TT=Ve((t,e)=>{const n=Ae("VisuallyHidden",null,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,attributes:d,...f}=n,h=pt({name:"VisuallyHidden",classes:aI,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:d});return b.jsx(je,{component:"span",ref:e,...h("root"),...f})});TT.classes=aI;TT.displayName="@mantine/core/VisuallyHidden";var lI={root:"m_1b7284a3"};const HW=(t,{radius:e,shadow:n})=>({root:{"--paper-radius":e===void 0?void 0:_r(e),"--paper-shadow":rT(n)}}),il=No((t,e)=>{const n=Ae("Paper",null,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,withBorder:c,vars:d,radius:f,shadow:h,variant:p,mod:v,attributes:g,...S}=n,w=pt({name:"Paper",props:n,classes:lI,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:g,vars:d,varsResolver:HW});return b.jsx(je,{ref:e,mod:[{"data-with-border":c},v],...w("root"),variant:p,...S})});il.classes=lI;il.displayName="@mantine/core/Paper";function XM(t,e,n,r){return t==="center"||r==="center"?{top:e}:t==="end"?{bottom:n}:t==="start"?{top:n}:{}}function ZM(t,e,n,r,o){return t==="center"||r==="center"?{left:e}:t==="end"?{[o==="ltr"?"right":"left"]:n}:t==="start"?{[o==="ltr"?"left":"right"]:n}:{}}const qW={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function VW({position:t,arrowSize:e,arrowOffset:n,arrowRadius:r,arrowPosition:o,arrowX:s,arrowY:i,dir:l}){const[c,d="center"]=t.split("-"),f={width:e,height:e,transform:"rotate(45deg)",position:"absolute",[qW[c]]:r},h=-e/2;return c==="left"?{...f,...XM(d,i,n,o),right:h,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:c==="right"?{...f,...XM(d,i,n,o),left:h,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:c==="top"?{...f,...ZM(d,s,n,o,l),bottom:h,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:c==="bottom"?{...f,...ZM(d,s,n,o,l),top:h,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const Rw=D.forwardRef(({position:t,arrowSize:e,arrowOffset:n,arrowRadius:r,arrowPosition:o,visible:s,arrowX:i,arrowY:l,style:c,...d},f)=>{const{dir:h}=Kd();return s?b.jsx("div",{...d,ref:f,style:{...c,...VW({position:t,arrowSize:e,arrowOffset:n,arrowRadius:r,arrowPosition:o,dir:h,arrowX:i,arrowY:l})}}):null});Rw.displayName="@mantine/core/FloatingArrow";function cI(t,e){if(t==="rtl"&&(e.includes("right")||e.includes("left"))){const[n,r]=e.split("-"),o=n==="right"?"left":"right";return r===void 0?o:`${o}-${r}`}return e}var uI={root:"m_9814e45f"};const YW={zIndex:Go("modal")},GW=(t,{gradient:e,color:n,backgroundOpacity:r,blur:o,radius:s,zIndex:i})=>({root:{"--overlay-bg":e||(n!==void 0||r!==void 0)&&ql(n||"#000",r??.6)||void 0,"--overlay-filter":o?`blur(${Pe(o)})`:void 0,"--overlay-radius":s===void 0?void 0:_r(s),"--overlay-z-index":i==null?void 0:i.toString()}}),B1=No((t,e)=>{const n=Ae("Overlay",YW,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,fixed:d,center:f,children:h,radius:p,zIndex:v,gradient:g,blur:S,color:w,backgroundOpacity:_,mod:E,attributes:T,...M}=n,j=pt({name:"Overlay",props:n,classes:uI,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:T,vars:c,varsResolver:GW});return b.jsx(je,{ref:e,...j("root"),mod:[{center:f,fixed:d},E],...M,children:h})});B1.classes=uI;B1.displayName="@mantine/core/Overlay";function h_(t){const e=document.createElement("div");return e.setAttribute("data-portal","true"),typeof t.className=="string"&&e.classList.add(...t.className.split(" ").filter(Boolean)),typeof t.style=="object"&&Object.assign(e.style,t.style),typeof t.id=="string"&&e.setAttribute("id",t.id),e}function WW({target:t,reuseTargetNode:e,...n}){if(t)return typeof t=="string"?document.querySelector(t)||h_(n):t;if(e){const r=document.querySelector("[data-mantine-shared-portal-node]");if(r)return r;const o=h_(n);return o.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(o),o}return h_(n)}const QW={reuseTargetNode:!0},dI=Ve((t,e)=>{const{children:n,target:r,reuseTargetNode:o,...s}=Ae("Portal",QW,t),[i,l]=D.useState(!1),c=D.useRef(null);return pu(()=>(l(!0),c.current=WW({target:r,reuseTargetNode:o,...s}),d9(e,c.current),!r&&!o&&c.current&&document.body.appendChild(c.current),()=>{!r&&!o&&c.current&&document.body.removeChild(c.current)}),[r]),!i||!c.current?null:Qa.createPortal(b.jsx(b.Fragment,{children:n}),c.current)});dI.displayName="@mantine/core/Portal";const $d=Ve(({withinPortal:t=!0,children:e,...n},r)=>U4()==="test"||!t?b.jsx(b.Fragment,{children:e}):b.jsx(dI,{ref:r,...n,children:e}));$d.displayName="@mantine/core/OptionalPortal";const Py=t=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${t==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),m3={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},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(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...Py("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...Py("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...Py("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...Py("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...Py("top"),common:{transformOrigin:"top right"}}},JM={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function KW({transition:t,state:e,duration:n,timingFunction:r}){const o={WebkitBackfaceVisibility:"hidden",transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof t=="string"?t in m3?{transitionProperty:m3[t].transitionProperty,...o,...m3[t].common,...m3[t][JM[e]]}:{}:{transitionProperty:t.transitionProperty,...o,...t.common,...t[JM[e]]}}function XW({duration:t,exitDuration:e,timingFunction:n,mounted:r,onEnter:o,onExit:s,onEntered:i,onExited:l,enterDelay:c,exitDelay:d}){const f=Lr(),h=I4(),p=f.respectReducedMotion?h:!1,[v,g]=D.useState(p?0:t),[S,w]=D.useState(r?"entered":"exited"),_=D.useRef(-1),E=D.useRef(-1),T=D.useRef(-1);function M(){window.clearTimeout(_.current),window.clearTimeout(E.current),cancelAnimationFrame(T.current)}const j=k=>{M();const R=k?o:s,N=k?i:l,I=p?0:k?t:e;g(I),I===0?(typeof R=="function"&&R(),typeof N=="function"&&N(),w(k?"entered":"exited")):T.current=requestAnimationFrame(()=>{_1.flushSync(()=>{w(k?"pre-entering":"pre-exiting")}),T.current=requestAnimationFrame(()=>{typeof R=="function"&&R(),w(k?"entering":"exiting"),_.current=window.setTimeout(()=>{typeof N=="function"&&N(),w(k?"entered":"exited")},I)})})},A=k=>{if(M(),typeof(k?c:d)!="number"){j(k);return}E.current=window.setTimeout(()=>{j(k)},k?c:d)};return Gh(()=>{A(r)},[r]),D.useEffect(()=>()=>{M()},[]),{transitionDuration:v,transitionStatus:S,transitionTimingFunction:n||"ease"}}function sc({keepMounted:t,transition:e="fade",duration:n=250,exitDuration:r=n,mounted:o,children:s,timingFunction:i="ease",onExit:l,onEntered:c,onEnter:d,onExited:f,enterDelay:h,exitDelay:p}){const v=U4(),{transitionDuration:g,transitionStatus:S,transitionTimingFunction:w}=XW({mounted:o,exitDuration:r,duration:n,timingFunction:i,onExit:l,onEntered:c,onEnter:d,onExited:f,enterDelay:h,exitDelay:p});return g===0||v==="test"?o?b.jsx(b.Fragment,{children:s({})}):t?s({display:"none"}):null:S==="exited"?t?s({display:"none"}):null:b.jsx(b.Fragment,{children:s(KW({transition:e,duration:g,state:S,timingFunction:w}))})}sc.displayName="@mantine/core/Transition";const[ZW,fI]=bi("Popover component was not found in the tree");var hI={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};function dp({children:t,active:e=!0,refProp:n="ref",innerRef:r}){const o=fV(e),s=Eo(o,r),i=Qd(t);return i?D.cloneElement(i,{[n]:s}):t}function pI(t){return b.jsx(TT,{tabIndex:-1,"data-autofocus":!0,...t})}dp.displayName="@mantine/core/FocusTrap";pI.displayName="@mantine/core/FocusTrapInitialFocus";dp.InitialFocus=pI;const ET=Ve((t,e)=>{var w,_,E,T;const n=Ae("PopoverDropdown",null,t),{className:r,style:o,vars:s,children:i,onKeyDownCapture:l,variant:c,classNames:d,styles:f,...h}=n,p=fI(),v=aN({opened:p.opened,shouldReturnFocus:p.returnFocus}),g=p.withRoles?{"aria-labelledby":p.getTargetId(),id:p.getDropdownId(),role:"dialog",tabIndex:-1}:{},S=Eo(e,p.floating);return p.disabled?null:b.jsx($d,{...p.portalProps,withinPortal:p.withinPortal,children:b.jsx(sc,{mounted:p.opened,...p.transitionProps,transition:((w=p.transitionProps)==null?void 0:w.transition)||"fade",duration:((_=p.transitionProps)==null?void 0:_.duration)??150,keepMounted:p.keepMounted,exitDuration:typeof((E=p.transitionProps)==null?void 0:E.exitDuration)=="number"?p.transitionProps.exitDuration:(T=p.transitionProps)==null?void 0:T.duration,children:M=>b.jsx(dp,{active:p.trapFocus&&p.opened,innerRef:S,children:b.jsxs(je,{...g,...h,variant:c,onKeyDownCapture:eV(()=>{var j,A;(j=p.onClose)==null||j.call(p),(A=p.onDismiss)==null||A.call(p)},{active:p.closeOnEscape,onTrigger:v,onKeyDown:l}),"data-position":p.placement,"data-fixed":p.floatingStrategy==="fixed"||void 0,...p.getStyles("dropdown",{className:r,props:n,classNames:d,styles:f,style:[{...M,zIndex:p.zIndex,top:p.y??0,left:p.x??0,width:p.width==="target"?void 0:Pe(p.width),...p.referenceHidden?{display:"none"}:null},p.resolvedStyles.dropdown,f==null?void 0:f.dropdown,o]}),children:[i,b.jsx(Rw,{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:d,styles:f})})]})})})})});ET.classes=hI;ET.displayName="@mantine/core/PopoverDropdown";const JW={refProp:"ref",popupType:"dialog"},mI=Ve((t,e)=>{const{children:n,refProp:r,popupType:o,...s}=Ae("PopoverTarget",JW,t),i=Qd(n);if(!i)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 l=s,c=fI(),d=Eo(c.reference,L4(i),e),f=c.withRoles?{"aria-haspopup":o,"aria-expanded":c.opened,"aria-controls":c.opened?c.getDropdownId():void 0,id:c.getTargetId()}:{},h=i.props;return D.cloneElement(i,{...l,...f,...c.targetProps,className:Dr(c.targetProps.className,l.className,h.className),[r]:d,...c.controlled?null:{onClick:()=>{var p;c.onToggle(),(p=h.onClick)==null||p.call(h)}}})});mI.displayName="@mantine/core/PopoverTarget";function eQ(t){if(t===void 0)return{shift:!0,flip:!0};const e={...t};return t.shift===void 0&&(e.shift=!0),t.flip===void 0&&(e.flip=!0),e}function tQ(t,e,n){const r=eQ(t.middlewares),o=[$N(t.offset),yW()];return t.dropdownVisible&&n!=="test"&&t.preventPositionChangeWhenVisible&&(r.flip=!1),r.flip&&o.push(typeof r.flip=="boolean"?Dw():Dw(r.flip)),r.shift&&o.push(vT(typeof r.shift=="boolean"?{limiter:HM(),padding:5}:{limiter:HM(),padding:5,...r.shift})),r.inline&&o.push(typeof r.inline=="boolean"?iv():iv(r.inline)),o.push(LN({element:t.arrowRef,padding:t.arrowOffset})),(r.size||t.width==="target")&&o.push(gW({...typeof r.size=="boolean"?{}:r.size,apply({rects:s,availableWidth:i,availableHeight:l,...c}){var h;const f=((h=e().refs.floating.current)==null?void 0:h.style)??{};r.size&&(typeof r.size=="object"&&r.size.apply?r.size.apply({rects:s,availableWidth:i,availableHeight:l,...c}):Object.assign(f,{maxWidth:`${i}px`,maxHeight:`${l}px`})),t.width==="target"&&Object.assign(f,{width:`${s.reference.width}px`})}})),o}function nQ(t){const e=U4(),[n,r]=Wi({value:t.opened,defaultValue:t.defaultOpened,finalValue:!1,onChange:t.onChange}),o=D.useRef(n),s=()=>{n&&!t.disabled&&r(!1)},i=()=>{t.disabled||r(!n)},l=Q4({strategy:t.strategy,placement:t.preventPositionChangeWhenVisible?t.positionRef.current:t.position,middleware:tQ(t,()=>l,e),whileElementsMounted:t.keepMounted?void 0:S9});return D.useEffect(()=>{if(!(!l.refs.reference.current||!l.refs.floating.current)&&n)return S9(l.refs.reference.current,l.refs.floating.current,l.update)},[n,l.update]),Gh(()=>{var c;(c=t.onPositionChange)==null||c.call(t,l.placement),t.positionRef.current=l.placement},[l.placement,t.preventPositionChangeWhenVisible]),Gh(()=>{var c,d;n!==o.current&&(n?(d=t.onOpen)==null||d.call(t):(c=t.onClose)==null||c.call(t)),o.current=n},[n,t.onClose,t.onOpen]),pu(()=>{let c=-1;return n&&(c=window.setTimeout(()=>t.setDropdownVisible(!0),4)),()=>{window.clearTimeout(c)}},[n,t.position]),{floating:l,controlled:typeof t.opened=="boolean",opened:n,onClose:s,onToggle:i}}const rQ={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,withOverlay:!1,hideDetached:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:Go("popover"),__staticSelector:"Popover",width:"max-content"},oQ=(t,{radius:e,shadow:n})=>({dropdown:{"--popover-radius":e===void 0?void 0:_r(e),"--popover-shadow":rT(n)}});function fr(t){var Zt,Jt,en,It,he,Ce,St;const e=Ae("Popover",rQ,t),{children:n,position:r,offset:o,onPositionChange:s,positionDependencies:i,opened:l,transitionProps:c,onExitTransitionEnd:d,onEnterTransitionEnd:f,width:h,middlewares:p,withArrow:v,arrowSize:g,arrowOffset:S,arrowRadius:w,arrowPosition:_,unstyled:E,classNames:T,styles:M,closeOnClickOutside:j,withinPortal:A,portalProps:k,closeOnEscape:R,clickOutsideEvents:N,trapFocus:I,onClose:L,onDismiss:F,onOpen:H,onChange:B,zIndex:Y,radius:U,shadow:q,id:z,defaultOpened:W,__staticSelector:K,withRoles:G,disabled:X,returnFocus:J,variant:ne,keepMounted:se,vars:ie,floatingStrategy:oe,withOverlay:de,overlayProps:pe,hideDetached:fe,attributes:Te,preventPositionChangeWhenVisible:we,..._e}=e,De=pt({name:K,props:e,classes:hI,classNames:T,styles:M,unstyled:E,attributes:Te,rootSelector:"dropdown",vars:ie,varsResolver:oQ}),{resolvedStyles:Ze}=cp({classNames:T,styles:M,props:e}),[ze,Xe]=D.useState(l??W??!1),Ke=D.useRef(r),ot=D.useRef(null),[st,mt]=D.useState(null),[bt,At]=D.useState(null),{dir:ct}=Kd(),cn=U4(),bn=Si(z),Tt=nQ({middlewares:p,width:h,position:cI(ct,r),offset:typeof o=="number"?o+(v?g/2:0):o,arrowRef:ot,arrowOffset:S,onPositionChange:s,positionDependencies:i,opened:l,defaultOpened:W,onChange:B,onOpen:H,onClose:L,onDismiss:F,strategy:oe,dropdownVisible:ze,setDropdownVisible:Xe,positionRef:Ke,disabled:X,preventPositionChangeWhenVisible:we,keepMounted:se});r2(()=>{j&&(Tt.onClose(),F==null||F())},N,[st,bt]);const Ft=D.useCallback(gt=>{mt(gt),Tt.floating.refs.setReference(gt)},[Tt.floating.refs.setReference]),Xt=D.useCallback(gt=>{At(gt),Tt.floating.refs.setFloating(gt)},[Tt.floating.refs.setFloating]),_n=D.useCallback(()=>{var gt;(gt=c==null?void 0:c.onExited)==null||gt.call(c),d==null||d(),Xe(!1),we||(Ke.current=r)},[c==null?void 0:c.onExited,d,we,r]),un=D.useCallback(()=>{var gt;(gt=c==null?void 0:c.onEntered)==null||gt.call(c),f==null||f()},[c==null?void 0:c.onEntered,f]);return b.jsxs(ZW,{value:{returnFocus:J,disabled:X,controlled:Tt.controlled,reference:Ft,floating:Xt,x:Tt.floating.x,y:Tt.floating.y,arrowX:(en=(Jt=(Zt=Tt.floating)==null?void 0:Zt.middlewareData)==null?void 0:Jt.arrow)==null?void 0:en.x,arrowY:(Ce=(he=(It=Tt.floating)==null?void 0:It.middlewareData)==null?void 0:he.arrow)==null?void 0:Ce.y,opened:Tt.opened,arrowRef:ot,transitionProps:{...c,onExited:_n,onEntered:un},width:h,withArrow:v,arrowSize:g,arrowOffset:S,arrowRadius:w,arrowPosition:_,placement:Tt.floating.placement,trapFocus:I,withinPortal:A,portalProps:k,zIndex:Y,radius:U,shadow:q,closeOnEscape:R,onDismiss:F,onClose:Tt.onClose,onToggle:Tt.onToggle,getTargetId:()=>`${bn}-target`,getDropdownId:()=>`${bn}-dropdown`,withRoles:G,targetProps:_e,__staticSelector:K,classNames:T,styles:M,unstyled:E,variant:ne,keepMounted:se,getStyles:De,resolvedStyles:Ze,floatingStrategy:oe,referenceHidden:fe&&cn!=="test"?(St=Tt.floating.middlewareData.hide)==null?void 0:St.referenceHidden:!1},children:[n,de&&b.jsx(sc,{transition:"fade",mounted:Tt.opened,duration:(c==null?void 0:c.duration)||250,exitDuration:(c==null?void 0:c.exitDuration)||250,children:gt=>b.jsx($d,{withinPortal:A,children:b.jsx(B1,{...pe,...De("overlay",{className:pe==null?void 0:pe.className,style:[gt,pe==null?void 0:pe.style]})})})})]})}fr.Target=mI;fr.Dropdown=ET;fr.displayName="@mantine/core/Popover";fr.extend=t=>t;var Xa={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 gI=D.forwardRef(({className:t,...e},n)=>b.jsxs(je,{component:"span",className:Dr(Xa.barsLoader,t),...e,ref:n,children:[b.jsx("span",{className:Xa.bar}),b.jsx("span",{className:Xa.bar}),b.jsx("span",{className:Xa.bar})]}));gI.displayName="@mantine/core/Bars";const yI=D.forwardRef(({className:t,...e},n)=>b.jsxs(je,{component:"span",className:Dr(Xa.dotsLoader,t),...e,ref:n,children:[b.jsx("span",{className:Xa.dot}),b.jsx("span",{className:Xa.dot}),b.jsx("span",{className:Xa.dot})]}));yI.displayName="@mantine/core/Dots";const vI=D.forwardRef(({className:t,...e},n)=>b.jsx(je,{component:"span",className:Dr(Xa.ovalLoader,t),...e,ref:n}));vI.displayName="@mantine/core/Oval";const bI={bars:gI,oval:vI,dots:yI},sQ={loaders:bI,type:"oval"},iQ=(t,{size:e,color:n})=>({root:{"--loader-size":an(e,"loader-size"),"--loader-color":n?dr(n,t):void 0}}),va=Ve((t,e)=>{const n=Ae("Loader",sQ,t),{size:r,color:o,type:s,vars:i,className:l,style:c,classNames:d,styles:f,unstyled:h,loaders:p,variant:v,children:g,attributes:S,...w}=n,_=pt({name:"Loader",props:n,classes:Xa,className:l,style:c,classNames:d,styles:f,unstyled:h,attributes:S,vars:i,varsResolver:iQ});return g?b.jsx(je,{..._("root"),ref:e,...w,children:g}):b.jsx(je,{..._("root"),ref:e,component:p[s],variant:v,size:r,...w})});va.defaultLoaders=bI;va.classes=Xa;va.displayName="@mantine/core/Loader";var dg={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const ej={orientation:"horizontal"},aQ=(t,{borderWidth:e})=>({group:{"--ai-border-width":Pe(e)}}),kT=Ve((t,e)=>{const n=Ae("ActionIconGroup",ej,t),{className:r,style:o,classNames:s,styles:i,unstyled:l,orientation:c,vars:d,borderWidth:f,variant:h,mod:p,attributes:v,...g}=Ae("ActionIconGroup",ej,t),S=pt({name:"ActionIconGroup",props:n,classes:dg,className:r,style:o,classNames:s,styles:i,unstyled:l,attributes:v,vars:d,varsResolver:aQ,rootSelector:"group"});return b.jsx(je,{...S("group"),ref:e,variant:h,mod:[{"data-orientation":c},p],role:"group",...g})});kT.classes=dg;kT.displayName="@mantine/core/ActionIconGroup";const lQ=(t,{radius:e,color:n,gradient:r,variant:o,autoContrast:s,size:i})=>{const l=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:o||"filled",autoContrast:s});return{groupSection:{"--section-height":an(i,"section-height"),"--section-padding-x":an(i,"section-padding-x"),"--section-fz":eo(i),"--section-radius":e===void 0?void 0:_r(e),"--section-bg":n||o?l.background:void 0,"--section-color":l.color,"--section-bd":n||o?l.border:void 0}}},MT=Ve((t,e)=>{const n=Ae("ActionIconGroupSection",null,t),{className:r,style:o,classNames:s,styles:i,unstyled:l,vars:c,variant:d,gradient:f,radius:h,autoContrast:p,attributes:v,...g}=n,S=pt({name:"ActionIconGroupSection",props:n,classes:dg,className:r,style:o,classNames:s,styles:i,unstyled:l,attributes:v,vars:c,varsResolver:lQ,rootSelector:"groupSection"});return b.jsx(je,{...S("groupSection"),ref:e,variant:d,...g})});MT.classes=dg;MT.displayName="@mantine/core/ActionIconGroupSection";const cQ=(t,{size:e,radius:n,variant:r,gradient:o,color:s,autoContrast:i})=>{const l=t.variantColorResolver({color:s||t.primaryColor,theme:t,gradient:o,variant:r||"filled",autoContrast:i});return{root:{"--ai-size":an(e,"ai-size"),"--ai-radius":n===void 0?void 0:_r(n),"--ai-bg":s||r?l.background:void 0,"--ai-hover":s||r?l.hover:void 0,"--ai-hover-color":s||r?l.hoverColor:void 0,"--ai-color":l.color,"--ai-bd":s||r?l.border:void 0}}},lr=No((t,e)=>{const n=Ae("ActionIcon",null,t),{className:r,unstyled:o,variant:s,classNames:i,styles:l,style:c,loading:d,loaderProps:f,size:h,color:p,radius:v,__staticSelector:g,gradient:S,vars:w,children:_,disabled:E,"data-disabled":T,autoContrast:M,mod:j,attributes:A,...k}=n,R=pt({name:["ActionIcon",g],props:n,className:r,style:c,classes:dg,classNames:i,styles:l,unstyled:o,attributes:A,vars:w,varsResolver:cQ});return b.jsxs(Yo,{...R("root",{active:!E&&!d&&!T}),...k,unstyled:o,variant:s,size:h,disabled:E||d,ref:e,mod:[{loading:d,disabled:E||T},j],children:[typeof d=="boolean"&&b.jsx(sc,{mounted:d,transition:"slide-down",duration:150,children:N=>b.jsx(je,{component:"span",...R("loader",{style:N}),"aria-hidden":!0,children:b.jsx(va,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...f})})}),b.jsx(je,{component:"span",mod:{loading:d},...R("icon"),children:_})]})});lr.classes=dg;lr.displayName="@mantine/core/ActionIcon";lr.Group=kT;lr.GroupSection=MT;const SI=D.forwardRef(({size:t="var(--cb-icon-size, 70%)",style:e,...n},r)=>b.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:t,height:t},ref:r,...n,children:b.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"})}));SI.displayName="@mantine/core/CloseIcon";var wI={root:"m_86a44da5","root--subtle":"m_220c80f2"};const uQ={variant:"subtle"},dQ=(t,{size:e,radius:n,iconSize:r})=>({root:{"--cb-size":an(e,"cb-size"),"--cb-radius":n===void 0?void 0:_r(n),"--cb-icon-size":Pe(r)}}),al=No((t,e)=>{const n=Ae("CloseButton",uQ,t),{iconSize:r,children:o,vars:s,radius:i,className:l,classNames:c,style:d,styles:f,unstyled:h,"data-disabled":p,disabled:v,variant:g,icon:S,mod:w,attributes:_,__staticSelector:E,...T}=n,M=pt({name:E||"CloseButton",props:n,className:l,style:d,classes:wI,classNames:c,styles:f,unstyled:h,attributes:_,vars:s,varsResolver:dQ});return b.jsxs(Yo,{ref:e,...T,unstyled:h,variant:g,disabled:v,mod:[{disabled:v||p},w],...M("root",{variant:g,active:!v&&!p}),children:[S||b.jsx(SI,{}),o]})});al.classes=wI;al.displayName="@mantine/core/CloseButton";function fQ(t){return D.Children.toArray(t).filter(Boolean)}var xI={root:"m_4081bf90"};const hQ={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},pQ=(t,{grow:e,preventGrowOverflow:n,gap:r,align:o,justify:s,wrap:i},{childWidth:l})=>({root:{"--group-child-width":e&&n?l:void 0,"--group-gap":co(r),"--group-align":o,"--group-justify":s,"--group-wrap":i}}),qt=Ve((t,e)=>{const n=Ae("Group",hQ,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,children:c,gap:d,align:f,justify:h,wrap:p,grow:v,preventGrowOverflow:g,vars:S,variant:w,__size:_,mod:E,attributes:T,...M}=n,j=fQ(c),A=j.length,k=co(d??"md"),N={childWidth:`calc(${100/A}% - (${k} - ${k} / ${A}))`},I=pt({name:"Group",props:n,stylesCtx:N,className:o,style:s,classes:xI,classNames:r,styles:i,unstyled:l,attributes:T,vars:S,varsResolver:pQ});return b.jsx(je,{...I("root"),ref:e,variant:w,mod:[{grow:v},E],size:_,...M,children:j})});qt.classes=xI;qt.displayName="@mantine/core/Group";const[mQ,gu]=bi("ModalBase component was not found in tree");function gQ({opened:t,transitionDuration:e}){const[n,r]=D.useState(t),o=D.useRef(-1),i=I4()?0:e;return D.useEffect(()=>(t?(r(!0),window.clearTimeout(o.current)):i===0?r(!1):o.current=window.setTimeout(()=>r(!1),i),()=>window.clearTimeout(o.current)),[t,i]),n}function yQ({id:t,transitionProps:e,opened:n,trapFocus:r,closeOnEscape:o,onClose:s,returnFocus:i}){const l=Si(t),[c,d]=D.useState(!1),[f,h]=D.useState(!1),p=typeof(e==null?void 0:e.duration)=="number"?e==null?void 0:e.duration:200,v=gQ({opened:n,transitionDuration:p});return dN("keydown",g=>{var S;g.key==="Escape"&&o&&!g.isComposing&&n&&((S=g.target)==null?void 0:S.getAttribute("data-mantine-stop-propagation"))!=="true"&&s()},{capture:!0}),aN({opened:n,shouldReturnFocus:r&&i}),{_id:l,titleMounted:c,bodyMounted:f,shouldLockScroll:v,setTitleMounted:d,setBodyMounted:h}}const jT=D.forwardRef(({keepMounted:t,opened:e,onClose:n,id:r,transitionProps:o,onExitTransitionEnd:s,onEnterTransitionEnd:i,trapFocus:l,closeOnEscape:c,returnFocus:d,closeOnClickOutside:f,withinPortal:h,portalProps:p,lockScroll:v,children:g,zIndex:S,shadow:w,padding:_,__vars:E,unstyled:T,removeScrollProps:M,...j},A)=>{const{_id:k,titleMounted:R,bodyMounted:N,shouldLockScroll:I,setTitleMounted:L,setBodyMounted:F}=yQ({id:r,transitionProps:o,opened:e,trapFocus:l,closeOnEscape:c,onClose:n,returnFocus:d}),{key:H,...B}=M||{};return b.jsx($d,{...p,withinPortal:h,children:b.jsx(mQ,{value:{opened:e,onClose:n,closeOnClickOutside:f,onExitTransitionEnd:s,onEnterTransitionEnd:i,transitionProps:{...o,keepMounted:t},getTitleId:()=>`${k}-title`,getBodyId:()=>`${k}-body`,titleMounted:R,bodyMounted:N,setTitleMounted:L,setBodyMounted:F,trapFocus:l,closeOnEscape:c,zIndex:S,unstyled:T},children:b.jsx(Yh,{enabled:I&&v,...B,children:b.jsx(je,{ref:A,...j,__vars:{...E,"--mb-z-index":(S||Go("modal")).toString(),"--mb-shadow":rT(w),"--mb-padding":co(_)},children:g})},H)})})});jT.displayName="@mantine/core/ModalBase";var H1={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};function vQ(){const t=gu();return D.useEffect(()=>(t.setBodyMounted(!0),()=>t.setBodyMounted(!1)),[]),t.getBodyId()}const DT=D.forwardRef(({className:t,...e},n)=>{const r=vQ(),o=gu();return b.jsx(je,{ref:n,...e,id:r,className:Dr({[H1.body]:!o.unstyled},t)})});DT.displayName="@mantine/core/ModalBaseBody";const AT=D.forwardRef(({className:t,onClick:e,...n},r)=>{const o=gu();return b.jsx(al,{ref:r,...n,onClick:s=>{o.onClose(),e==null||e(s)},className:Dr({[H1.close]:!o.unstyled},t),unstyled:o.unstyled})});AT.displayName="@mantine/core/ModalBaseCloseButton";const RT=D.forwardRef(({transitionProps:t,className:e,innerProps:n,onKeyDown:r,style:o,...s},i)=>{const l=gu();return b.jsx(sc,{mounted:l.opened,transition:"pop",...l.transitionProps,onExited:()=>{var c,d,f;(c=l.onExitTransitionEnd)==null||c.call(l),(f=(d=l.transitionProps)==null?void 0:d.onExited)==null||f.call(d)},onEntered:()=>{var c,d,f;(c=l.onEnterTransitionEnd)==null||c.call(l),(f=(d=l.transitionProps)==null?void 0:d.onEntered)==null||f.call(d)},...t,children:c=>b.jsx("div",{...n,className:Dr({[H1.inner]:!l.unstyled},n.className),children:b.jsx(dp,{active:l.opened&&l.trapFocus,innerRef:i,children:b.jsx(il,{...s,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":l.bodyMounted?l.getBodyId():void 0,"aria-labelledby":l.titleMounted?l.getTitleId():void 0,style:[o,c],className:Dr({[H1.content]:!l.unstyled},e),unstyled:l.unstyled,children:s.children})})})})});RT.displayName="@mantine/core/ModalBaseContent";const OT=D.forwardRef(({className:t,...e},n)=>{const r=gu();return b.jsx(je,{component:"header",ref:n,className:Dr({[H1.header]:!r.unstyled},t),...e})});OT.displayName="@mantine/core/ModalBaseHeader";const bQ={duration:200,timingFunction:"ease",transition:"fade"};function SQ(t){const e=gu();return{...bQ,...e.transitionProps,...t}}const PT=D.forwardRef(({onClick:t,transitionProps:e,style:n,visible:r,...o},s)=>{const i=gu(),l=SQ(e);return b.jsx(sc,{mounted:r!==void 0?r:i.opened,...l,transition:"fade",children:c=>b.jsx(B1,{ref:s,fixed:!0,style:[n,c],zIndex:i.zIndex,unstyled:i.unstyled,onClick:d=>{t==null||t(d),i.closeOnClickOutside&&i.onClose()},...o})})});PT.displayName="@mantine/core/ModalBaseOverlay";function wQ(){const t=gu();return D.useEffect(()=>(t.setTitleMounted(!0),()=>t.setTitleMounted(!1)),[]),t.getTitleId()}const NT=D.forwardRef(({className:t,...e},n)=>{const r=wQ(),o=gu();return b.jsx(je,{component:"h2",ref:n,className:Dr({[H1.title]:!o.unstyled},t),...e,id:r})});NT.displayName="@mantine/core/ModalBaseTitle";function CI({children:t}){return b.jsx(b.Fragment,{children:t})}const[xQ,CQ]=Gd({size:"sm"});var ba={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 _I=Ve((t,e)=>{const n=Ae("InputClearButton",null,t),{size:r,variant:o,vars:s,classNames:i,styles:l,...c}=n,d=CQ(),{resolvedClassNames:f,resolvedStyles:h}=cp({classNames:i,styles:l,props:n});return b.jsx(al,{variant:o||"transparent",ref:e,size:r||(d==null?void 0:d.size)||"sm",classNames:f,styles:h,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...c.style},...c})});_I.displayName="@mantine/core/InputClearButton";const _Q={xs:7,sm:8,md:10,lg:12,xl:15};function TQ({__clearable:t,__clearSection:e,rightSection:n,__defaultRightSection:r,size:o="sm"}){const s=t&&e;return s&&(n||r)?b.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:_Q[o]},children:[s,n||r]}):n===null?null:n||s||r}const[EQ,fg]=Gd({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),kQ=(t,{size:e})=>({description:{"--input-description-size":e===void 0?void 0:`calc(${eo(e)} - ${Pe(2)})`}}),Z4=Ve((t,e)=>{const n=Ae("InputDescription",null,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,size:d,__staticSelector:f,__inheritStyles:h=!0,attributes:p,variant:v,...g}=Ae("InputDescription",null,n),S=fg(),w=pt({name:["InputWrapper",f],props:n,classes:ba,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:p,rootSelector:"description",vars:c,varsResolver:kQ}),_=h&&(S==null?void 0:S.getStyles)||w;return b.jsx(je,{component:"p",ref:e,variant:v,size:d,..._("description",S!=null&&S.getStyles?{className:o,style:s}:void 0),...g})});Z4.classes=ba;Z4.displayName="@mantine/core/InputDescription";const MQ=(t,{size:e})=>({error:{"--input-error-size":e===void 0?void 0:`calc(${eo(e)} - ${Pe(2)})`}}),Qh=Ve((t,e)=>{const n=Ae("InputError",null,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,size:d,attributes:f,__staticSelector:h,__inheritStyles:p=!0,variant:v,...g}=n,S=pt({name:["InputWrapper",h],props:n,classes:ba,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:f,rootSelector:"error",vars:c,varsResolver:MQ}),w=fg(),_=p&&(w==null?void 0:w.getStyles)||S;return b.jsx(je,{component:"p",ref:e,variant:v,size:d,..._("error",w!=null&&w.getStyles?{className:o,style:s}:void 0),...g})});Qh.classes=ba;Qh.displayName="@mantine/core/InputError";const tj={labelElement:"label"},jQ=(t,{size:e})=>({label:{"--input-label-size":eo(e),"--input-asterisk-color":void 0}}),Xd=Ve((t,e)=>{const n=Ae("InputLabel",tj,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,labelElement:d,size:f,required:h,htmlFor:p,onMouseDown:v,children:g,__staticSelector:S,variant:w,mod:_,attributes:E,...T}=Ae("InputLabel",tj,n),M=pt({name:["InputWrapper",S],props:n,classes:ba,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:E,rootSelector:"label",vars:c,varsResolver:jQ}),j=fg(),A=(j==null?void 0:j.getStyles)||M;return b.jsxs(je,{...A("label",j!=null&&j.getStyles?{className:o,style:s}:void 0),component:d,variant:w,size:f,ref:e,htmlFor:d==="label"?p:void 0,mod:[{required:h},_],onMouseDown:k=>{v==null||v(k),!k.defaultPrevented&&k.detail>1&&k.preventDefault()},...T,children:[g,h&&b.jsx("span",{...A("required"),"aria-hidden":!0,children:" *"})]})});Xd.classes=ba;Xd.displayName="@mantine/core/InputLabel";const IT=Ve((t,e)=>{const n=Ae("InputPlaceholder",null,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,__staticSelector:d,variant:f,error:h,mod:p,attributes:v,...g}=n,S=pt({name:["InputPlaceholder",d],props:n,classes:ba,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:v,rootSelector:"placeholder"});return b.jsx(je,{...S("placeholder"),mod:[{error:!!h},p],component:"span",variant:f,ref:e,...g})});IT.classes=ba;IT.displayName="@mantine/core/InputPlaceholder";function DQ(t,{hasDescription:e,hasError:n}){const r=t.findIndex(c=>c==="input"),o=t.slice(0,r),s=t.slice(r+1),i=e&&o.includes("description")||n&&o.includes("error");return{offsetBottom:e&&s.includes("description")||n&&s.includes("error"),offsetTop:i}}const AQ={labelElement:"label",inputContainer:t=>t,inputWrapperOrder:["label","description","input","error"]},RQ=(t,{size:e})=>({label:{"--input-label-size":eo(e),"--input-asterisk-color":void 0},error:{"--input-error-size":e===void 0?void 0:`calc(${eo(e)} - ${Pe(2)})`},description:{"--input-description-size":e===void 0?void 0:`calc(${eo(e)} - ${Pe(2)})`}}),$T=Ve((t,e)=>{const n=Ae("InputWrapper",AQ,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,size:d,variant:f,__staticSelector:h,inputContainer:p,inputWrapperOrder:v,label:g,error:S,description:w,labelProps:_,descriptionProps:E,errorProps:T,labelElement:M,children:j,withAsterisk:A,id:k,required:R,__stylesApiProps:N,mod:I,attributes:L,...F}=n,H=pt({name:["InputWrapper",h],props:N||n,classes:ba,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:L,vars:c,varsResolver:RQ}),B={size:d,variant:f,__staticSelector:h},Y=Si(k),U=typeof A=="boolean"?A:R,q=(T==null?void 0:T.id)||`${Y}-error`,z=(E==null?void 0:E.id)||`${Y}-description`,W=Y,K=!!S&&typeof S!="boolean",G=!!w,X=`${K?q:""} ${G?z:""}`,J=X.trim().length>0?X.trim():void 0,ne=(_==null?void 0:_.id)||`${Y}-label`,se=g&&b.jsx(Xd,{labelElement:M,id:ne,htmlFor:W,required:U,...B,..._,children:g},"label"),ie=G&&b.jsx(Z4,{...E,...B,size:(E==null?void 0:E.size)||B.size,id:(E==null?void 0:E.id)||z,children:w},"description"),oe=b.jsx(D.Fragment,{children:p(j)},"input"),de=K&&D.createElement(Qh,{...T,...B,size:(T==null?void 0:T.size)||B.size,key:"error",id:(T==null?void 0:T.id)||q},S),pe=v.map(fe=>{switch(fe){case"label":return se;case"input":return oe;case"description":return ie;case"error":return de;default:return null}});return b.jsx(EQ,{value:{getStyles:H,describedBy:J,inputId:W,labelId:ne,...DQ(v,{hasDescription:G,hasError:K})},children:b.jsx(je,{ref:e,variant:f,size:d,mod:[{error:!!S},I],...H("root"),...F,children:pe})})});$T.classes=ba;$T.displayName="@mantine/core/InputWrapper";const OQ={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},PQ=(t,e,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":an(e.size,"input-height"),"--input-fz":eo(e.size),"--input-radius":e.radius===void 0?void 0:_r(e.radius),"--input-left-section-width":e.leftSectionWidth!==void 0?Pe(e.leftSectionWidth):void 0,"--input-right-section-width":e.rightSectionWidth!==void 0?Pe(e.rightSectionWidth):void 0,"--input-padding-y":e.multiline?an(e.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":e.leftSectionPointerEvents,"--input-right-section-pointer-events":e.rightSectionPointerEvents}}),qr=No((t,e)=>{const n=Ae("Input",OQ,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,required:c,__staticSelector:d,__stylesApiProps:f,size:h,wrapperProps:p,error:v,disabled:g,leftSection:S,leftSectionProps:w,leftSectionWidth:_,rightSection:E,rightSectionProps:T,rightSectionWidth:M,rightSectionPointerEvents:j,leftSectionPointerEvents:A,variant:k,vars:R,pointer:N,multiline:I,radius:L,id:F,withAria:H,withErrorStyles:B,mod:Y,inputSize:U,attributes:q,__clearSection:z,__clearable:W,__defaultRightSection:K,...G}=n,{styleProps:X,rest:J}=lg(G),ne=fg(),se={offsetBottom:ne==null?void 0:ne.offsetBottom,offsetTop:ne==null?void 0:ne.offsetTop},ie=pt({name:["Input",d],props:f||n,classes:ba,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:q,stylesCtx:se,rootSelector:"wrapper",vars:R,varsResolver:PQ}),oe=H?{required:c,disabled:g,"aria-invalid":!!v,"aria-describedby":ne==null?void 0:ne.describedBy,id:(ne==null?void 0:ne.inputId)||F}:{},de=TQ({__clearable:W,__clearSection:z,rightSection:E,__defaultRightSection:K,size:h});return b.jsx(xQ,{value:{size:h||"sm"},children:b.jsxs(je,{...ie("wrapper"),...X,...p,mod:[{error:!!v&&B,pointer:N,disabled:g,multiline:I,"data-with-right-section":!!de,"data-with-left-section":!!S},Y],variant:k,size:h,children:[S&&b.jsx("div",{...w,"data-position":"left",...ie("section",{className:w==null?void 0:w.className,style:w==null?void 0:w.style}),children:S}),b.jsx(je,{component:"input",...J,...oe,ref:e,required:c,mod:{disabled:g,error:!!v&&B},variant:k,__size:U,...ie("input")}),de&&b.jsx("div",{...T,"data-position":"right",...ie("section",{className:T==null?void 0:T.className,style:T==null?void 0:T.style}),children:de})]})})});qr.classes=ba;qr.Wrapper=$T;qr.Label=Xd;qr.Error=Qh;qr.Description=Z4;qr.Placeholder=IT;qr.ClearButton=_I;qr.displayName="@mantine/core/Input";function NQ(t,e,n){const r=Ae(t,e,n),{label:o,description:s,error:i,required:l,classNames:c,styles:d,className:f,unstyled:h,__staticSelector:p,__stylesApiProps:v,errorProps:g,labelProps:S,descriptionProps:w,wrapperProps:_,id:E,size:T,style:M,inputContainer:j,inputWrapperOrder:A,withAsterisk:k,variant:R,vars:N,mod:I,attributes:L,...F}=r,{styleProps:H,rest:B}=lg(F),Y={label:o,description:s,error:i,required:l,classNames:c,className:f,__staticSelector:p,__stylesApiProps:v||r,errorProps:g,labelProps:S,descriptionProps:w,unstyled:h,styles:d,size:T,style:M,inputContainer:j,inputWrapperOrder:A,withAsterisk:k,variant:R,id:E,mod:I,attributes:L,..._};return{...B,classNames:c,styles:d,unstyled:h,wrapperProps:{...Y,...H},inputProps:{required:l,classNames:c,styles:d,unstyled:h,size:T,__staticSelector:p,__stylesApiProps:v||r,error:i,variant:R,id:E,attributes:L}}}const IQ={__staticSelector:"InputBase",withAria:!0,size:"sm"},Zd=No((t,e)=>{const{inputProps:n,wrapperProps:r,...o}=NQ("InputBase",IQ,t);return b.jsx(qr.Wrapper,{...r,children:b.jsx(qr,{...n,...o,ref:e})})});Zd.classes={...qr.classes,...qr.Wrapper.classes};Zd.displayName="@mantine/core/InputBase";const $Q={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 TI={root:"m_8bffd616"};const Lt=No((t,e)=>{const n=Ae("Flex",null,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,gap:d,rowGap:f,columnGap:h,align:p,justify:v,wrap:g,direction:S,attributes:w,..._}=n,E=pt({name:"Flex",classes:TI,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:w,vars:c}),T=Lr(),M=a2(),j=wN({styleProps:{gap:d,rowGap:f,columnGap:h,align:p,justify:v,wrap:g,direction:S},theme:T,data:$Q});return b.jsxs(b.Fragment,{children:[j.hasResponsiveStyles&&b.jsx(up,{selector:`.${M}`,styles:j.styles,media:j.media}),b.jsx(je,{ref:e,...E("root",{className:M,style:Yd(j.inlineStyles)}),..._})]})});Lt.classes=TI;Lt.displayName="@mantine/core/Flex";function EI({open:t,close:e,openDelay:n,closeDelay:r}){const o=D.useRef(-1),s=D.useRef(-1),i=()=>{window.clearTimeout(o.current),window.clearTimeout(s.current)},l=()=>{i(),n===0||n===void 0?t():o.current=window.setTimeout(t,n)},c=()=>{i(),r===0||r===void 0?e():s.current=window.setTimeout(e,r)};return D.useEffect(()=>i,[]),{openDropdown:l,closeDropdown:c}}function Tv({style:t,size:e=16,...n}){return b.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:Pe(e),height:Pe(e),display:"block"},...n,children:b.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"})})}Tv.displayName="@mantine/core/AccordionChevron";var kI={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 LQ=(t,{radius:e,color:n,variant:r,autoContrast:o})=>{const s=t.variantColorResolver({color:n||t.primaryColor,theme:t,variant:r||"light",autoContrast:o});return{root:{"--alert-radius":e===void 0?void 0:_r(e),"--alert-bg":n||r?s.background:void 0,"--alert-color":s.color,"--alert-bd":n||r?s.border:void 0}}},Kh=Ve((t,e)=>{const n=Ae("Alert",null,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,radius:d,color:f,title:h,children:p,id:v,icon:g,withCloseButton:S,onClose:w,closeButtonLabel:_,variant:E,autoContrast:T,role:M,attributes:j,...A}=n,k=pt({name:"Alert",classes:kI,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:j,vars:c,varsResolver:LQ}),R=Si(v),N=h&&`${R}-title`||void 0,I=`${R}-body`;return b.jsx(je,{id:R,...k("root",{variant:E}),variant:E,ref:e,role:M||"alert",...A,"aria-describedby":p?I:void 0,"aria-labelledby":h?N:void 0,children:b.jsxs("div",{...k("wrapper"),children:[g&&b.jsx("div",{...k("icon"),children:g}),b.jsxs("div",{...k("body"),children:[h&&b.jsx("div",{...k("title"),"data-with-close-button":S||void 0,children:b.jsx("span",{id:N,...k("label"),children:h})}),p&&b.jsx("div",{id:I,...k("message"),"data-variant":E,children:p})]}),S&&b.jsx(al,{...k("closeButton"),onClick:w,variant:"transparent",size:16,iconSize:16,"aria-label":_,unstyled:l})]})})});Kh.classes=kI;Kh.displayName="@mantine/core/Alert";var MI={root:"m_b6d8b162"};function FQ(t){if(t==="start")return"start";if(t==="end"||t)return"end"}const zQ={inherit:!1},UQ=(t,{variant:e,lineClamp:n,gradient:r,size:o,color:s})=>({root:{"--text-fz":eo(o),"--text-lh":oN(o),"--text-gradient":e==="gradient"?f9(r,t):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":s?dr(s,t):void 0}}),Dt=No((t,e)=>{const n=Ae("Text",zQ,t),{lineClamp:r,truncate:o,inline:s,inherit:i,gradient:l,span:c,__staticSelector:d,vars:f,className:h,style:p,classNames:v,styles:g,unstyled:S,variant:w,mod:_,size:E,attributes:T,...M}=n,j=pt({name:["Text",d],props:n,classes:MI,className:h,style:p,classNames:v,styles:g,unstyled:S,attributes:T,vars:f,varsResolver:UQ});return b.jsx(je,{...j("root",{focusable:!0}),ref:e,component:c?"span":"p",variant:w,mod:[{"data-truncate":FQ(o),"data-line-clamp":typeof r=="number","data-inline":s,"data-inherit":i},_],size:E,...M})});Dt.classes=MI;Dt.displayName="@mantine/core/Text";const[BQ,hg]=bi("AppShell was not found in tree");var Jd={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const LT=Ve((t,e)=>{const{classNames:n,className:r,style:o,styles:s,unstyled:i,vars:l,withBorder:c,zIndex:d,mod:f,...h}=Ae("AppShellAside",null,t),p=hg();return p.disabled?null:b.jsx(je,{component:"aside",ref:e,mod:[{"with-border":c??p.withBorder},f],...p.getStyles("aside",{className:Dr({[Yh.classNames.zeroRight]:p.offsetScrollbars},r),classNames:n,styles:s,style:o}),...h,__vars:{"--app-shell-aside-z-index":`calc(${d??p.zIndex} + 1)`}})});LT.classes=Jd;LT.displayName="@mantine/core/AppShellAside";const FT=Ve((t,e)=>{var v;const{classNames:n,className:r,style:o,styles:s,unstyled:i,vars:l,withBorder:c,zIndex:d,mod:f,...h}=Ae("AppShellFooter",null,t),p=hg();return p.disabled?null:b.jsx(je,{component:"footer",ref:e,mod:[{"with-border":c??p.withBorder},f],...p.getStyles("footer",{className:Dr({[Yh.classNames.zeroRight]:p.offsetScrollbars},r),classNames:n,styles:s,style:o}),...h,__vars:{"--app-shell-footer-z-index":(v=d??p.zIndex)==null?void 0:v.toString()}})});FT.classes=Jd;FT.displayName="@mantine/core/AppShellFooter";const zT=Ve((t,e)=>{var v;const{classNames:n,className:r,style:o,styles:s,unstyled:i,vars:l,withBorder:c,zIndex:d,mod:f,...h}=Ae("AppShellHeader",null,t),p=hg();return p.disabled?null:b.jsx(je,{component:"header",ref:e,mod:[{"with-border":c??p.withBorder},f],...p.getStyles("header",{className:Dr({[Yh.classNames.zeroRight]:p.offsetScrollbars},r),classNames:n,styles:s,style:o}),...h,__vars:{"--app-shell-header-z-index":(v=d??p.zIndex)==null?void 0:v.toString()}})});zT.classes=Jd;zT.displayName="@mantine/core/AppShellHeader";const UT=Ve((t,e)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,...l}=Ae("AppShellMain",null,t),c=hg();return b.jsx(je,{component:"main",ref:e,...c.getStyles("main",{className:r,style:o,classNames:n,styles:s}),...l})});UT.classes=Jd;UT.displayName="@mantine/core/AppShellMain";function c2(t){return typeof t=="object"?t.base:t}function u2(t){const e=typeof t=="object"&&t!==null&&typeof t.base<"u"&&Object.keys(t).length===1;return typeof t=="number"||typeof t=="string"||e}function d2(t){return!(typeof t!="object"||t===null||Object.keys(t).length===1&&"base"in t)}function HQ({baseStyles:t,minMediaStyles:e,maxMediaStyles:n,aside:r,theme:o,mode:s}){var d,f,h;const i=r==null?void 0:r.width,l="translateX(var(--app-shell-aside-width))",c="translateX(calc(var(--app-shell-aside-width) * -1))";if(r!=null&&r.breakpoint&&!((d=r==null?void 0:r.collapsed)!=null&&d.mobile)&&(n[r==null?void 0:r.breakpoint]=n[r==null?void 0:r.breakpoint]||{},s==="fixed"?(n[r==null?void 0:r.breakpoint]["--app-shell-aside-width"]="100%",n[r==null?void 0:r.breakpoint]["--app-shell-aside-offset"]="0px"):(n[r==null?void 0:r.breakpoint]["--app-shell-aside-width"]="0px",n[r==null?void 0:r.breakpoint]["--app-shell-aside-offset"]="0px")),u2(i)){const p=Pe(c2(i));t["--app-shell-aside-width"]=p,t["--app-shell-aside-offset"]=p}if(d2(i)&&(typeof i.base<"u"&&(t["--app-shell-aside-width"]=Pe(i.base),t["--app-shell-aside-offset"]=Pe(i.base)),yr(i).forEach(p=>{p!=="base"&&(e[p]=e[p]||{},e[p]["--app-shell-aside-width"]=Pe(i[p]),e[p]["--app-shell-aside-offset"]=Pe(i[p]))})),r!=null&&r.breakpoint&&s==="static"&&(e[r.breakpoint]=e[r.breakpoint]||{},e[r.breakpoint]["--app-shell-aside-position"]="sticky",e[r.breakpoint]["--app-shell-aside-grid-row"]="2",e[r.breakpoint]["--app-shell-aside-grid-column"]="3",e[r.breakpoint]["--app-shell-main-column-end"]="3"),(f=r==null?void 0:r.collapsed)!=null&&f.desktop){const p=r.breakpoint;e[p]=e[p]||{},e[p]["--app-shell-aside-transform"]=l,e[p]["--app-shell-aside-transform-rtl"]=c,s==="fixed"?e[p]["--app-shell-aside-offset"]="0px !important":(e[p]["--app-shell-aside-width"]="0px",e[p]["--app-shell-aside-display"]="none",e[p]["--app-shell-main-column-end"]="-1"),e[p]["--app-shell-aside-scroll-locked-visibility"]="hidden"}if((h=r==null?void 0:r.collapsed)!=null&&h.mobile){const p=oT(r.breakpoint,o.breakpoints)-.1;n[p]=n[p]||{},s==="fixed"?(n[p]["--app-shell-aside-width"]="100%",n[p]["--app-shell-aside-offset"]="0px"):n[p]["--app-shell-aside-width"]="0px",n[p]["--app-shell-aside-transform"]=l,n[p]["--app-shell-aside-transform-rtl"]=c,n[p]["--app-shell-aside-scroll-locked-visibility"]="hidden"}}function qQ({baseStyles:t,minMediaStyles:e,footer:n,mode:r}){const o=n==null?void 0:n.height,s="translateY(var(--app-shell-footer-height))",i=r==="static"?!0:(n==null?void 0:n.offset)??!0;if(r==="static"&&n&&(t["--app-shell-footer-position"]="sticky",t["--app-shell-footer-grid-column"]="1 / -1",t["--app-shell-footer-grid-row"]="3"),u2(o)){const l=Pe(c2(o));t["--app-shell-footer-height"]=l,i&&(t["--app-shell-footer-offset"]=l)}d2(o)&&(typeof o.base<"u"&&(t["--app-shell-footer-height"]=Pe(o.base),i&&(t["--app-shell-footer-offset"]=Pe(o.base))),yr(o).forEach(l=>{l!=="base"&&(e[l]=e[l]||{},e[l]["--app-shell-footer-height"]=Pe(o[l]),i&&(e[l]["--app-shell-footer-offset"]=Pe(o[l])))})),n!=null&&n.collapsed&&(t["--app-shell-footer-transform"]=s,r==="fixed"&&(t["--app-shell-footer-offset"]="0px !important"))}function VQ({baseStyles:t,minMediaStyles:e,header:n,mode:r}){const o=n==null?void 0:n.height,s="translateY(calc(var(--app-shell-header-height) * -1))",i=r==="static"?!0:(n==null?void 0:n.offset)??!0;if(r==="static"&&n&&(t["--app-shell-header-position"]="sticky",t["--app-shell-header-grid-column"]="1 / -1",t["--app-shell-header-grid-row"]="1"),u2(o)){const l=Pe(c2(o));t["--app-shell-header-height"]=l,i&&(t["--app-shell-header-offset"]=l)}d2(o)&&(typeof o.base<"u"&&(t["--app-shell-header-height"]=Pe(o.base),i&&(t["--app-shell-header-offset"]=Pe(o.base))),yr(o).forEach(l=>{l!=="base"&&(e[l]=e[l]||{},e[l]["--app-shell-header-height"]=Pe(o[l]),i&&(e[l]["--app-shell-header-offset"]=Pe(o[l])))})),n!=null&&n.collapsed&&(t["--app-shell-header-transform"]=s,r==="fixed"&&(t["--app-shell-header-offset"]="0px !important"))}function YQ({baseStyles:t,minMediaStyles:e,maxMediaStyles:n,navbar:r,theme:o,mode:s}){var d,f,h;const i=r==null?void 0:r.width,l="translateX(calc(var(--app-shell-navbar-width) * -1))",c="translateX(var(--app-shell-navbar-width))";if(r!=null&&r.breakpoint&&!((d=r==null?void 0:r.collapsed)!=null&&d.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-offset"]="0px",n[r==null?void 0:r.breakpoint]["--app-shell-navbar-width"]="100%",s==="static"&&(n[r==null?void 0:r.breakpoint]["--app-shell-navbar-grid-width"]="0px")),u2(i)){const p=Pe(c2(i));t["--app-shell-navbar-width"]=p,t["--app-shell-navbar-offset"]=p,s==="static"&&(t["--app-shell-navbar-grid-width"]=p)}if(d2(i)&&(typeof i.base<"u"&&(t["--app-shell-navbar-width"]=Pe(i.base),t["--app-shell-navbar-offset"]=Pe(i.base),s==="static"&&(t["--app-shell-navbar-grid-width"]=Pe(i.base))),yr(i).forEach(p=>{p!=="base"&&(e[p]=e[p]||{},e[p]["--app-shell-navbar-width"]=Pe(i[p]),e[p]["--app-shell-navbar-offset"]=Pe(i[p]),s==="static"&&(e[p]["--app-shell-navbar-grid-width"]=Pe(i[p])))})),r!=null&&r.breakpoint&&s==="static"&&(e[r.breakpoint]=e[r.breakpoint]||{},e[r.breakpoint]["--app-shell-navbar-position"]="sticky",e[r.breakpoint]["--app-shell-navbar-grid-row"]="2",e[r.breakpoint]["--app-shell-navbar-grid-column"]="1",e[r.breakpoint]["--app-shell-main-column-start"]="2"),(f=r==null?void 0:r.collapsed)!=null&&f.desktop){const p=r.breakpoint;e[p]=e[p]||{},e[p]["--app-shell-navbar-transform"]=l,e[p]["--app-shell-navbar-transform-rtl"]=c,s==="fixed"?e[p]["--app-shell-navbar-offset"]="0px !important":(e[p]["--app-shell-navbar-width"]="0px",e[p]["--app-shell-navbar-display"]="none",e[p]["--app-shell-main-column-start"]="1")}if((h=r==null?void 0:r.collapsed)!=null&&h.mobile){const p=oT(r.breakpoint,o.breakpoints)-.1;n[p]=n[p]||{},n[p]["--app-shell-navbar-width"]="100%",n[p]["--app-shell-navbar-offset"]="0px",s==="static"&&(n[p]["--app-shell-navbar-grid-width"]="0px"),n[p]["--app-shell-navbar-transform"]=l,n[p]["--app-shell-navbar-transform-rtl"]=c}}function p_(t){return Number(t)===0?"0px":co(t)}function GQ({padding:t,baseStyles:e,minMediaStyles:n}){u2(t)&&(e["--app-shell-padding"]=p_(c2(t))),d2(t)&&(t.base&&(e["--app-shell-padding"]=p_(t.base)),yr(t).forEach(r=>{r!=="base"&&(n[r]=n[r]||{},n[r]["--app-shell-padding"]=p_(t[r]))}))}function WQ({navbar:t,header:e,footer:n,aside:r,padding:o,theme:s,mode:i}){const l={},c={},d={};i==="static"&&(d["--app-shell-main-grid-column"]="1 / -1",d["--app-shell-main-grid-row"]="2"),YQ({baseStyles:d,minMediaStyles:l,maxMediaStyles:c,navbar:t,theme:s,mode:i}),HQ({baseStyles:d,minMediaStyles:l,maxMediaStyles:c,aside:r,theme:s,mode:i}),VQ({baseStyles:d,minMediaStyles:l,header:e,mode:i}),qQ({baseStyles:d,minMediaStyles:l,footer:n,mode:i}),GQ({baseStyles:d,minMediaStyles:l,padding:o});const f=xv(yr(l),s.breakpoints).map(v=>({query:`(min-width: ${_w(v.px)})`,styles:l[v.value]})),h=xv(yr(c),s.breakpoints).map(v=>({query:`(max-width: ${_w(v.px)})`,styles:c[v.value]})),p=[...f,...h];return{baseStyles:d,media:p}}function QQ({navbar:t,header:e,aside:n,footer:r,padding:o,mode:s,selector:i}){const l=Lr(),c=mu(),{media:d,baseStyles:f}=WQ({navbar:t,header:e,footer:r,aside:n,padding:o,theme:l,mode:s});return b.jsx(up,{media:d,styles:f,selector:i||c.cssVariablesSelector})}const BT=Ve((t,e)=>{const{classNames:n,className:r,style:o,styles:s,unstyled:i,vars:l,withBorder:c,zIndex:d,mod:f,...h}=Ae("AppShellNavbar",null,t),p=hg();return p.disabled?null:b.jsx(je,{component:"nav",ref:e,mod:[{"with-border":c??p.withBorder},f],...p.getStyles("navbar",{className:r,classNames:n,styles:s,style:o}),...h,__vars:{"--app-shell-navbar-z-index":`calc(${d??p.zIndex} + 1)`}})});BT.classes=Jd;BT.displayName="@mantine/core/AppShellNavbar";const HT=No((t,e)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,grow:l,mod:c,...d}=Ae("AppShellSection",null,t),f=hg();return b.jsx(je,{ref:e,mod:[{grow:l},c],...f.getStyles("section",{className:r,style:o,classNames:n,styles:s}),...d})});HT.classes=Jd;HT.displayName="@mantine/core/AppShellSection";function KQ({transitionDuration:t,disabled:e}){const[n,r]=D.useState(!0),o=D.useRef(-1),s=D.useRef(-1);return dN("resize",()=>{r(!0),clearTimeout(o.current),o.current=window.setTimeout(()=>D.startTransition(()=>{r(!1)}),200)}),pu(()=>{r(!0),clearTimeout(s.current),s.current=window.setTimeout(()=>D.startTransition(()=>{r(!1)}),t||0)},[e,t]),n}const XQ={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:Go("app"),mode:"fixed"},ZQ=(t,{transitionDuration:e,transitionTimingFunction:n})=>({root:{"--app-shell-transition-duration":`${e}ms`,"--app-shell-transition-timing-function":n}}),fi=Ve((t,e)=>{const n=Ae("AppShell",XQ,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,navbar:d,withBorder:f,padding:h,transitionDuration:p,transitionTimingFunction:v,header:g,zIndex:S,layout:w,disabled:_,aside:E,footer:T,offsetScrollbars:M=!0,mode:j,mod:A,attributes:k,id:R,...N}=n,I=pt({name:"AppShell",classes:Jd,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:k,vars:c,varsResolver:ZQ}),L=KQ({disabled:_,transitionDuration:p}),F=Si(R);return b.jsxs(BQ,{value:{getStyles:I,withBorder:f,zIndex:S,disabled:_,offsetScrollbars:M,mode:j},children:[b.jsx(QQ,{navbar:d,header:g,aside:E,footer:T,padding:h,mode:j,selector:j==="static"?`#${F}`:void 0}),b.jsx(je,{ref:e,...I("root"),mod:[{resizing:L,layout:w,disabled:_,mode:j},A],id:F,...N})]})});fi.classes=Jd;fi.displayName="@mantine/core/AppShell";fi.Navbar=BT;fi.Header=zT;fi.Main=UT;fi.Aside=LT;fi.Footer=FT;fi.Section=HT;var Sa={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",optionsDropdownCheckPlaceholder:"m_a530ee0a"};const JQ={error:null},eK=(t,{size:e,color:n})=>({chevron:{"--combobox-chevron-size":an(e,"combobox-chevron-size"),"--combobox-chevron-color":n?dr(n,t):void 0}}),qT=Ve((t,e)=>{const n=Ae("ComboboxChevron",JQ,t),{size:r,error:o,style:s,className:i,classNames:l,styles:c,unstyled:d,vars:f,mod:h,...p}=n,v=pt({name:"ComboboxChevron",classes:Sa,props:n,style:s,className:i,classNames:l,styles:c,unstyled:d,vars:f,varsResolver:eK,rootSelector:"chevron"});return b.jsx(je,{component:"svg",...p,...v("chevron"),size:r,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:o},h],ref:e,children:b.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"})})});qT.classes=Sa;qT.displayName="@mantine/core/ComboboxChevron";const[tK,wa]=bi("Combobox component was not found in tree"),jI=D.forwardRef(({size:t,onMouseDown:e,onClick:n,onClear:r,...o},s)=>b.jsx(qr.ClearButton,{ref:s,tabIndex:-1,"aria-hidden":!0,...o,onMouseDown:i=>{i.preventDefault(),e==null||e(i)},onClick:i=>{r(),n==null||n(i)}}));jI.displayName="@mantine/core/ComboboxClearButton";const VT=Ve((t,e)=>{const{classNames:n,styles:r,className:o,style:s,hidden:i,...l}=Ae("ComboboxDropdown",null,t),c=wa();return b.jsx(fr.Dropdown,{...l,ref:e,role:"presentation","data-hidden":i||void 0,...c.getStyles("dropdown",{className:o,style:s,classNames:n,styles:r})})});VT.classes=Sa;VT.displayName="@mantine/core/ComboboxDropdown";const nK={refProp:"ref"},DI=Ve((t,e)=>{const{children:n,refProp:r}=Ae("ComboboxDropdownTarget",nK,t);if(wa(),!tT(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 b.jsx(fr.Target,{ref:e,refProp:r,children:n})});DI.displayName="@mantine/core/ComboboxDropdownTarget";const YT=Ve((t,e)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,...l}=Ae("ComboboxEmpty",null,t),c=wa();return b.jsx(je,{ref:e,...c.getStyles("empty",{className:r,classNames:n,styles:s,style:o}),...l})});YT.classes=Sa;YT.displayName="@mantine/core/ComboboxEmpty";function GT({onKeyDown:t,withKeyboardNavigation:e,withAriaAttributes:n,withExpandedAttribute:r,targetType:o,autoComplete:s}){const i=wa(),[l,c]=D.useState(null),d=h=>{if(t==null||t(h),!i.readOnly&&e){if(h.nativeEvent.isComposing)return;if(h.nativeEvent.code==="ArrowDown"&&(h.preventDefault(),i.store.dropdownOpened?c(i.store.selectNextOption()):(i.store.openDropdown("keyboard"),c(i.store.selectActiveOption()),i.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),h.nativeEvent.code==="ArrowUp"&&(h.preventDefault(),i.store.dropdownOpened?c(i.store.selectPreviousOption()):(i.store.openDropdown("keyboard"),c(i.store.selectActiveOption()),i.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),h.nativeEvent.code==="Enter"||h.nativeEvent.code==="NumpadEnter"){if(h.nativeEvent.keyCode===229)return;const p=i.store.getSelectedOptionIndex();i.store.dropdownOpened&&p!==-1?(h.preventDefault(),i.store.clickSelectedOption()):o==="button"&&(h.preventDefault(),i.store.openDropdown("keyboard"))}h.key==="Escape"&&i.store.closeDropdown("keyboard"),h.nativeEvent.code==="Space"&&o==="button"&&(h.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.dropdownOpened&&i.store.listId?i.store.listId:void 0,"aria-activedescendant":i.store.dropdownOpened&&l||void 0,autoComplete:s,"data-expanded":i.store.dropdownOpened||void 0,"data-mantine-stop-propagation":i.store.dropdownOpened||void 0}:{},onKeyDown:d}}const rK={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},AI=Ve((t,e)=>{const{children:n,refProp:r,withKeyboardNavigation:o,withAriaAttributes:s,withExpandedAttribute:i,targetType:l,autoComplete:c,...d}=Ae("ComboboxEventsTarget",rK,t),f=Qd(n);if(!f)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 h=wa(),p=GT({targetType:l,withAriaAttributes:s,withKeyboardNavigation:o,withExpandedAttribute:i,onKeyDown:f.props.onKeyDown,autoComplete:c});return D.cloneElement(f,{...p,...d,[r]:Eo(e,h.store.targetRef,L4(f))})});AI.displayName="@mantine/core/ComboboxEventsTarget";const WT=Ve((t,e)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,...l}=Ae("ComboboxFooter",null,t),c=wa();return b.jsx(je,{ref:e,...c.getStyles("footer",{className:r,classNames:n,style:o,styles:s}),...l,onMouseDown:d=>{d.preventDefault()}})});WT.classes=Sa;WT.displayName="@mantine/core/ComboboxFooter";const QT=Ve((t,e)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,children:l,label:c,id:d,...f}=Ae("ComboboxGroup",null,t),h=wa(),p=Si(d);return b.jsxs(je,{ref:e,role:"group","aria-labelledby":c?p:void 0,...h.getStyles("group",{className:r,classNames:n,style:o,styles:s}),...f,children:[c&&b.jsx("div",{id:p,...h.getStyles("groupLabel",{classNames:n,styles:s}),children:c}),l]})});QT.classes=Sa;QT.displayName="@mantine/core/ComboboxGroup";const KT=Ve((t,e)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,...l}=Ae("ComboboxHeader",null,t),c=wa();return b.jsx(je,{ref:e,...c.getStyles("header",{className:r,classNames:n,style:o,styles:s}),...l,onMouseDown:d=>{d.preventDefault()}})});KT.classes=Sa;KT.displayName="@mantine/core/ComboboxHeader";function RI({value:t,valuesDivider:e=",",...n}){return b.jsx("input",{type:"hidden",value:Array.isArray(t)?t.join(e):t||"",...n})}RI.displayName="@mantine/core/ComboboxHiddenInput";const XT=Ve((t,e)=>{const n=Ae("ComboboxOption",null,t),{classNames:r,className:o,style:s,styles:i,vars:l,onClick:c,id:d,active:f,onMouseDown:h,onMouseOver:p,disabled:v,selected:g,mod:S,...w}=n,_=wa(),E=D.useId(),T=d||E;return b.jsx(je,{..._.getStyles("option",{className:o,classNames:r,styles:i,style:s}),...w,ref:e,id:T,mod:["combobox-option",{"combobox-active":f,"combobox-disabled":v,"combobox-selected":g},S],role:"option",onClick:M=>{var j;v?M.preventDefault():((j=_.onOptionSubmit)==null||j.call(_,n.value,n),c==null||c(M))},onMouseDown:M=>{M.preventDefault(),h==null||h(M)},onMouseOver:M=>{_.resetSelectionOnOptionHover&&_.store.resetSelectedOption(),p==null||p(M)}})});XT.classes=Sa;XT.displayName="@mantine/core/ComboboxOption";const ZT=Ve((t,e)=>{const n=Ae("ComboboxOptions",null,t),{classNames:r,className:o,style:s,styles:i,id:l,onMouseDown:c,labelledBy:d,...f}=n,h=wa(),p=Si(l);return D.useEffect(()=>{h.store.setListId(p)},[p]),b.jsx(je,{ref:e,...h.getStyles("options",{className:o,style:s,classNames:r,styles:i}),...f,id:p,role:"listbox","aria-labelledby":d,onMouseDown:v=>{v.preventDefault(),c==null||c(v)}})});ZT.classes=Sa;ZT.displayName="@mantine/core/ComboboxOptions";const oK={withAriaAttributes:!0,withKeyboardNavigation:!0},JT=Ve((t,e)=>{const n=Ae("ComboboxSearch",oK,t),{classNames:r,styles:o,unstyled:s,vars:i,withAriaAttributes:l,onKeyDown:c,withKeyboardNavigation:d,size:f,...h}=n,p=wa(),v=p.getStyles("search"),g=GT({targetType:"input",withAriaAttributes:l,withKeyboardNavigation:d,withExpandedAttribute:!1,onKeyDown:c,autoComplete:"off"});return b.jsx(qr,{ref:Eo(e,p.store.searchRef),classNames:[{input:v.className},r],styles:[{input:v.style},o],size:f||p.size,...g,...h,__staticSelector:"Combobox"})});JT.classes=Sa;JT.displayName="@mantine/core/ComboboxSearch";const sK={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},OI=Ve((t,e)=>{const{children:n,refProp:r,withKeyboardNavigation:o,withAriaAttributes:s,withExpandedAttribute:i,targetType:l,autoComplete:c,...d}=Ae("ComboboxTarget",sK,t),f=Qd(n);if(!f)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 h=wa(),p=GT({targetType:l,withAriaAttributes:s,withKeyboardNavigation:o,withExpandedAttribute:i,onKeyDown:f.props.onKeyDown,autoComplete:c}),v=D.cloneElement(f,{...p,...d});return b.jsx(fr.Target,{ref:Eo(e,h.store.targetRef),children:v})});OI.displayName="@mantine/core/ComboboxTarget";function iK(t,e,n){for(let r=t-1;r>=0;r-=1)if(!e[r].hasAttribute("data-combobox-disabled"))return r;if(n){for(let r=e.length-1;r>-1;r-=1)if(!e[r].hasAttribute("data-combobox-disabled"))return r}return t}function aK(t,e,n){for(let r=t+1;r<e.length;r+=1)if(!e[r].hasAttribute("data-combobox-disabled"))return r;if(n){for(let r=0;r<e.length;r+=1)if(!e[r].hasAttribute("data-combobox-disabled"))return r}return t}function lK(t){for(let e=0;e<t.length;e+=1)if(!t[e].hasAttribute("data-combobox-disabled"))return e;return-1}function fp({defaultOpened:t,opened:e,onOpenedChange:n,onDropdownClose:r,onDropdownOpen:o,loop:s=!0,scrollBehavior:i="instant"}={}){const[l,c]=Wi({value:e,defaultValue:t,finalValue:!1,onChange:n}),d=D.useRef(null),f=D.useRef(-1),h=D.useRef(null),p=D.useRef(null),v=D.useRef(-1),g=D.useRef(-1),S=D.useRef(-1),w=D.useCallback((U="unknown")=>{l||(c(!0),o==null||o(U))},[c,o,l]),_=D.useCallback((U="unknown")=>{l&&(c(!1),r==null||r(U))},[c,r,l]),E=D.useCallback((U="unknown")=>{l?_(U):w(U)},[_,w,l]),T=D.useCallback(()=>{const U=xd(p.current),q=X3(`#${d.current} [data-combobox-selected]`,U);q==null||q.removeAttribute("data-combobox-selected"),q==null||q.removeAttribute("aria-selected")},[]),M=D.useCallback(U=>{const q=xd(p.current),z=X3(`#${d.current}`,q),W=z?Td("[data-combobox-option]",z):null;if(!W)return null;const K=U>=W.length?0:U<0?W.length-1:U;return f.current=K,W!=null&&W[K]&&!W[K].hasAttribute("data-combobox-disabled")?(T(),W[K].setAttribute("data-combobox-selected","true"),W[K].setAttribute("aria-selected","true"),W[K].scrollIntoView({block:"nearest",behavior:i}),W[K].id):null},[i,T]),j=D.useCallback(()=>{const U=xd(p.current),q=X3(`#${d.current} [data-combobox-active]`,U);if(q){const W=Td(`#${d.current} [data-combobox-option]`,U).findIndex(K=>K===q);return M(W)}return M(0)},[M]),A=D.useCallback(()=>{const U=xd(p.current),q=Td(`#${d.current} [data-combobox-option]`,U);return M(aK(f.current,q,s))},[M,s]),k=D.useCallback(()=>{const U=xd(p.current),q=Td(`#${d.current} [data-combobox-option]`,U);return M(iK(f.current,q,s))},[M,s]),R=D.useCallback(()=>{const U=xd(p.current),q=Td(`#${d.current} [data-combobox-option]`,U);return M(lK(q))},[M]),N=D.useCallback((U="selected",q)=>{S.current=window.setTimeout(()=>{var G;const z=xd(p.current),W=Td(`#${d.current} [data-combobox-option]`,z),K=W.findIndex(X=>X.hasAttribute(`data-combobox-${U}`));f.current=K,q!=null&&q.scrollIntoView&&((G=W[K])==null||G.scrollIntoView({block:"nearest",behavior:i}))},0)},[]),I=D.useCallback(()=>{f.current=-1,T()},[T]),L=D.useCallback(()=>{const U=xd(p.current),q=Td(`#${d.current} [data-combobox-option]`,U),z=q==null?void 0:q[f.current];z==null||z.click()},[]),F=D.useCallback(U=>{d.current=U},[]),H=D.useCallback(()=>{v.current=window.setTimeout(()=>{var U;return(U=h.current)==null?void 0:U.focus()},0)},[]),B=D.useCallback(()=>{g.current=window.setTimeout(()=>{var U;return(U=p.current)==null?void 0:U.focus()},0)},[]),Y=D.useCallback(()=>f.current,[]);return D.useEffect(()=>()=>{window.clearTimeout(v.current),window.clearTimeout(g.current),window.clearTimeout(S.current)},[]),{dropdownOpened:l,openDropdown:w,closeDropdown:_,toggleDropdown:E,selectedOptionIndex:f.current,getSelectedOptionIndex:Y,selectOption:M,selectFirstOption:R,selectActiveOption:j,selectNextOption:A,selectPreviousOption:k,resetSelectedOption:I,updateSelectedOptionIndex:N,listId:d.current,setListId:F,clickSelectedOption:L,searchRef:h,focusSearchInput:H,targetRef:p,focusTarget:B}}const cK={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},uK=(t,{size:e,dropdownPadding:n})=>({options:{"--combobox-option-fz":eo(e),"--combobox-option-padding":an(e,"combobox-option-padding")},dropdown:{"--combobox-padding":n===void 0?void 0:Pe(n),"--combobox-option-fz":eo(e),"--combobox-option-padding":an(e,"combobox-option-padding")}});function Ht(t){const e=Ae("Combobox",cK,t),{classNames:n,styles:r,unstyled:o,children:s,store:i,vars:l,onOptionSubmit:c,onClose:d,size:f,dropdownPadding:h,resetSelectionOnOptionHover:p,__staticSelector:v,readOnly:g,attributes:S,...w}=e,_=fp(),E=i||_,T=pt({name:v||"Combobox",classes:Sa,props:e,classNames:n,styles:r,unstyled:o,attributes:S,vars:l,varsResolver:uK}),M=()=>{d==null||d(),E.closeDropdown()};return b.jsx(tK,{value:{getStyles:T,store:E,onOptionSubmit:c,size:f,resetSelectionOnOptionHover:p,readOnly:g},children:b.jsx(fr,{opened:E.dropdownOpened,preventPositionChangeWhenVisible:!1,...w,onChange:j=>!j&&M(),withRoles:!1,unstyled:o,children:s})})}const dK=t=>t;Ht.extend=dK;Ht.classes=Sa;Ht.displayName="@mantine/core/Combobox";Ht.Target=OI;Ht.Dropdown=VT;Ht.Options=ZT;Ht.Option=XT;Ht.Search=JT;Ht.Empty=YT;Ht.Chevron=qT;Ht.Footer=WT;Ht.Header=KT;Ht.EventsTarget=AI;Ht.DropdownTarget=DI;Ht.Group=QT;Ht.ClearButton=jI;Ht.HiddenInput=RI;var PI={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};const NI=PI,e7=D.forwardRef(({__staticSelector:t,__stylesApiProps:e,className:n,classNames:r,styles:o,unstyled:s,children:i,label:l,description:c,id:d,disabled:f,error:h,size:p,labelPosition:v="left",bodyElement:g="div",labelElement:S="label",variant:w,style:_,vars:E,mod:T,attributes:M,...j},A)=>{const k=pt({name:t,props:e,className:n,style:_,classes:PI,classNames:r,styles:o,unstyled:s,attributes:M});return b.jsx(je,{...k("root"),ref:A,__vars:{"--label-fz":eo(p),"--label-lh":an(p,"label-lh")},mod:[{"label-position":v},T],variant:w,size:p,...j,children:b.jsxs(je,{component:g,htmlFor:g==="label"?d:void 0,...k("body"),children:[i,b.jsxs("div",{...k("labelWrapper"),"data-disabled":f||void 0,children:[l&&b.jsx(je,{component:S,htmlFor:S==="label"?d:void 0,...k("label"),"data-disabled":f||void 0,children:l}),c&&b.jsx(qr.Description,{size:p,__inheritStyles:!1,...k("description"),children:c}),h&&typeof h!="boolean"&&b.jsx(qr.Error,{size:p,__inheritStyles:!1,...k("error"),children:h})]})]})})});e7.displayName="@mantine/core/InlineInput";var II={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","input--outline":"m_215c4542"};const $I=D.createContext(null),fK=$I.Provider,LI=()=>D.useContext($I),[hK,pK]=Gd();var FI={card:"m_26775b0a"};const mK={withBorder:!0},gK=(t,{radius:e})=>({card:{"--card-radius":_r(e)}}),t7=Ve((t,e)=>{const n=Ae("CheckboxCard",mK,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,checked:d,mod:f,withBorder:h,value:p,onClick:v,defaultChecked:g,onChange:S,attributes:w,..._}=n,E=pt({name:"CheckboxCard",classes:FI,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:w,vars:c,varsResolver:gK,rootSelector:"card"}),T=LI(),M=typeof d=="boolean"?d:T?T.value.includes(p||""):void 0,[j,A]=Wi({value:M,defaultValue:g,finalValue:!1,onChange:S});return b.jsx(hK,{value:{checked:j},children:b.jsx(Yo,{ref:e,mod:[{"with-border":h,checked:j},f],...E("card"),..._,role:"checkbox","aria-checked":j,onClick:k=>{v==null||v(k),T==null||T.onChange(p||""),A(!j)}})})});t7.displayName="@mantine/core/CheckboxCard";t7.classes=FI;function zI({children:t,role:e}){const n=fg();return n?b.jsx("div",{role:e,"aria-labelledby":n.labelId,"aria-describedby":n.describedBy,children:t}):b.jsx(b.Fragment,{children:t})}const n7=Ve((t,e)=>{const{value:n,defaultValue:r,onChange:o,size:s,wrapperProps:i,children:l,readOnly:c,disabled:d,...f}=Ae("CheckboxGroup",null,t),[h,p]=Wi({value:n,defaultValue:r,finalValue:[],onChange:o}),v=g=>{const S=typeof g=="string"?g:g.currentTarget.value;!c&&p(h.includes(S)?h.filter(w=>w!==S):[...h,S])};return b.jsx(fK,{value:{value:h,onChange:v,size:s,disabled:d},children:b.jsx(qr.Wrapper,{size:s,ref:e,...i,...f,labelElement:"div",__staticSelector:"CheckboxGroup",children:b.jsx(zI,{role:"group",children:l})})})});n7.classes=qr.Wrapper.classes;n7.displayName="@mantine/core/CheckboxGroup";function r7({size:t,style:e,...n}){const r=t!==void 0?{width:Pe(t),height:Pe(t),...e}:e;return b.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r,"aria-hidden":!0,...n,children:b.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 UI({indeterminate:t,...e}){return t?b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6","aria-hidden":!0,...e,children:b.jsx("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})}):b.jsx(r7,{...e})}var BI={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};const yK={icon:UI,variant:"filled"},vK=(t,{radius:e,color:n,size:r,iconColor:o,variant:s,autoContrast:i})=>{const l=cc({color:n||t.primaryColor,theme:t}),c=l.isThemeColor&&l.shade===void 0?`var(--mantine-color-${l.color}-outline)`:l.color;return{indicator:{"--checkbox-size":an(r,"checkbox-size"),"--checkbox-radius":e===void 0?void 0:_r(e),"--checkbox-color":s==="outline"?c:dr(n,t),"--checkbox-icon-color":o?dr(o,t):B4(i,t)?s2({color:n,theme:t,autoContrast:i}):void 0}}},o7=Ve((t,e)=>{const n=Ae("CheckboxIndicator",yK,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,icon:d,indeterminate:f,radius:h,color:p,iconColor:v,autoContrast:g,checked:S,mod:w,variant:_,disabled:E,attributes:T,...M}=n,j=pt({name:"CheckboxIndicator",classes:BI,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:T,vars:c,varsResolver:vK,rootSelector:"indicator"}),A=pK(),k=typeof S=="boolean"||typeof f=="boolean"?S||f:(A==null?void 0:A.checked)||!1;return b.jsx(je,{ref:e,...j("indicator",{variant:_}),variant:_,mod:[{checked:k,disabled:E},w],...M,children:b.jsx(d,{indeterminate:f,...j("icon")})})});o7.displayName="@mantine/core/CheckboxIndicator";o7.classes=BI;const bK={labelPosition:"right",icon:UI,variant:"filled"},SK=(t,{radius:e,color:n,size:r,iconColor:o,variant:s,autoContrast:i})=>{const l=cc({color:n||t.primaryColor,theme:t}),c=l.isThemeColor&&l.shade===void 0?`var(--mantine-color-${l.color}-outline)`:l.color;return{root:{"--checkbox-size":an(r,"checkbox-size"),"--checkbox-radius":e===void 0?void 0:_r(e),"--checkbox-color":s==="outline"?c:dr(n,t),"--checkbox-icon-color":o?dr(o,t):B4(i,t)?s2({color:n,theme:t,autoContrast:i}):void 0}}},ef=Ve((t,e)=>{const n=Ae("Checkbox",bK,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,color:d,label:f,id:h,size:p,radius:v,wrapperProps:g,checked:S,labelPosition:w,description:_,error:E,disabled:T,variant:M,indeterminate:j,icon:A,rootRef:k,iconColor:R,onChange:N,autoContrast:I,mod:L,attributes:F,...H}=n,B=LI(),Y=p||(B==null?void 0:B.size),U=pt({name:"Checkbox",props:n,classes:II,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:F,vars:c,varsResolver:SK}),{styleProps:q,rest:z}=lg(H),W=Si(h),K={checked:(B==null?void 0:B.value.includes(z.value))??S,onChange:J=>{B==null||B.onChange(J),N==null||N(J)},disabled:(B==null?void 0:B.disabled)??T},G=D.useRef(null),X=e||G;return D.useEffect(()=>{X&&"current"in X&&X.current&&(X.current.indeterminate=j||!1,j?X.current.setAttribute("data-indeterminate","true"):X.current.removeAttribute("data-indeterminate"))},[j,X]),b.jsx(e7,{...U("root"),__staticSelector:"Checkbox",__stylesApiProps:n,id:W,size:Y,labelPosition:w,label:f,description:_,error:E,disabled:K.disabled,classNames:r,styles:i,unstyled:l,"data-checked":K.checked||S||void 0,variant:M,ref:k,mod:L,...q,...g,children:b.jsxs(je,{...U("inner"),mod:{"data-label-position":w},children:[b.jsx(je,{component:"input",id:W,ref:X,mod:{error:!!E},...U("input",{focusable:!0,variant:M}),...z,...K,type:"checkbox"}),b.jsx(A,{indeterminate:j,...U("icon")})]})})});ef.classes={...II,...NI};ef.displayName="@mantine/core/Checkbox";ef.Group=n7;ef.Indicator=o7;ef.Card=t7;var J4={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};const HI=D.createContext(null),wK=HI.Provider;function xK(){return{withinGroup:!!D.useContext(HI)}}const CK=(t,{spacing:e})=>({group:{"--ag-spacing":co(e)}}),s7=Ve((t,e)=>{const n=Ae("AvatarGroup",null,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,spacing:d,attributes:f,...h}=n,p=pt({name:"AvatarGroup",classes:J4,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:f,vars:c,varsResolver:CK,rootSelector:"group"});return b.jsx(wK,{value:!0,children:b.jsx(je,{ref:e,...p("group"),...h})})});s7.classes=J4;s7.displayName="@mantine/core/AvatarGroup";function _K(t){return b.jsx("svg",{...t,"data-avatar-placeholder-icon":!0,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b.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 TK(t){let e=0;for(let n=0;n<t.length;n+=1){const r=t.charCodeAt(n);e=(e<<5)-e+r,e|=0}return e}const EK=["blue","cyan","grape","green","indigo","lime","orange","pink","red","teal","violet"];function kK(t,e=EK){const n=TK(t),r=Math.abs(n)%e.length;return e[r]}function MK(t,e=2){const n=t.split(" ");return n.length===1?t.slice(0,e).toUpperCase():n.map(r=>r[0]).slice(0,e).join("").toUpperCase()}const jK=(t,{size:e,radius:n,variant:r,gradient:o,color:s,autoContrast:i,name:l,allowedInitialsColors:c})=>{const d=s==="initials"&&typeof l=="string"?kK(l,c):s,f=t.variantColorResolver({color:d||"gray",theme:t,gradient:o,variant:r||"light",autoContrast:i});return{root:{"--avatar-size":an(e,"avatar-size"),"--avatar-radius":n===void 0?void 0:_r(n),"--avatar-bg":d||r?f.background:void 0,"--avatar-color":d||r?f.color:void 0,"--avatar-bd":d||r?f.border:void 0}}},gi=No((t,e)=>{const n=Ae("Avatar",null,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,src:d,alt:f,radius:h,color:p,gradient:v,imageProps:g,children:S,autoContrast:w,mod:_,name:E,allowedInitialsColors:T,attributes:M,...j}=n,A=xK(),[k,R]=D.useState(!d),N=pt({name:"Avatar",props:n,classes:J4,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:M,vars:c,varsResolver:jK});return D.useEffect(()=>R(!d),[d]),b.jsx(je,{...N("root"),mod:[{"within-group":A.withinGroup},_],ref:e,...j,children:k||!d?b.jsx("span",{...N("placeholder"),title:f,children:S||typeof E=="string"&&MK(E)||b.jsx(_K,{})}):b.jsx("img",{...g,...N("image"),src:d,alt:f,onError:I=>{var L;R(!0),(L=g==null?void 0:g.onError)==null||L.call(g,I)}})})});gi.classes=J4;gi.displayName="@mantine/core/Avatar";gi.Group=s7;var qI={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const DK=(t,{radius:e,color:n,gradient:r,variant:o,size:s,autoContrast:i,circle:l})=>{const c=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:o||"filled",autoContrast:i});return{root:{"--badge-height":an(s,"badge-height"),"--badge-padding-x":an(s,"badge-padding-x"),"--badge-fz":an(s,"badge-fz"),"--badge-radius":l||e===void 0?void 0:_r(e),"--badge-bg":n||o?c.background:void 0,"--badge-color":n||o?c.color:void 0,"--badge-bd":n||o?c.border:void 0,"--badge-dot-color":o==="dot"?dr(n,t):void 0}}},pg=No((t,e)=>{const n=Ae("Badge",null,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,radius:d,color:f,gradient:h,leftSection:p,rightSection:v,children:g,variant:S,fullWidth:w,autoContrast:_,circle:E,mod:T,attributes:M,...j}=n,A=pt({name:"Badge",props:n,classes:qI,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:M,vars:c,varsResolver:DK});return b.jsxs(je,{variant:S,mod:[{block:w,circle:E,"with-right-section":!!v,"with-left-section":!!p},T],...A("root",{variant:S}),ref:e,...j,children:[p&&b.jsx("span",{...A("section"),"data-position":"left",children:p}),b.jsx("span",{...A("label"),children:g}),v&&b.jsx("span",{...A("section"),"data-position":"right",children:v})]})});pg.classes=qI;pg.displayName="@mantine/core/Badge";var VI={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const AK=(t,{color:e,size:n,lineSize:r,transitionDuration:o,transitionTimingFunction:s})=>({root:{"--burger-color":e?dr(e,t):void 0,"--burger-size":an(n,"burger-size"),"--burger-line-size":r?Pe(r):void 0,"--burger-transition-duration":o===void 0?void 0:`${o}ms`,"--burger-transition-timing-function":s}}),i7=Ve((t,e)=>{const n=Ae("Burger",null,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,opened:d,children:f,transitionDuration:h,transitionTimingFunction:p,lineSize:v,attributes:g,...S}=n,w=pt({name:"Burger",classes:VI,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:g,vars:c,varsResolver:AK});return b.jsxs(Yo,{...w("root"),ref:e,...S,children:[b.jsx(je,{mod:["reduce-motion",{opened:d}],...w("burger")}),f]})});i7.classes=VI;i7.displayName="@mantine/core/Burger";var mg={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const nj={orientation:"horizontal"},RK=(t,{borderWidth:e})=>({group:{"--button-border-width":Pe(e)}}),a7=Ve((t,e)=>{const n=Ae("ButtonGroup",nj,t),{className:r,style:o,classNames:s,styles:i,unstyled:l,orientation:c,vars:d,borderWidth:f,variant:h,mod:p,attributes:v,...g}=Ae("ButtonGroup",nj,t),S=pt({name:"ButtonGroup",props:n,classes:mg,className:r,style:o,classNames:s,styles:i,unstyled:l,attributes:v,vars:d,varsResolver:RK,rootSelector:"group"});return b.jsx(je,{...S("group"),ref:e,variant:h,mod:[{"data-orientation":c},p],role:"group",...g})});a7.classes=mg;a7.displayName="@mantine/core/ButtonGroup";const OK=(t,{radius:e,color:n,gradient:r,variant:o,autoContrast:s,size:i})=>{const l=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:o||"filled",autoContrast:s});return{groupSection:{"--section-height":an(i,"section-height"),"--section-padding-x":an(i,"section-padding-x"),"--section-fz":i!=null&&i.includes("compact")?eo(i.replace("compact-","")):eo(i),"--section-radius":e===void 0?void 0:_r(e),"--section-bg":n||o?l.background:void 0,"--section-color":l.color,"--section-bd":n||o?l.border:void 0}}},l7=Ve((t,e)=>{const n=Ae("ButtonGroupSection",null,t),{className:r,style:o,classNames:s,styles:i,unstyled:l,vars:c,variant:d,gradient:f,radius:h,autoContrast:p,attributes:v,...g}=n,S=pt({name:"ButtonGroupSection",props:n,classes:mg,className:r,style:o,classNames:s,styles:i,unstyled:l,attributes:v,vars:c,varsResolver:OK,rootSelector:"groupSection"});return b.jsx(je,{...S("groupSection"),ref:e,variant:d,...g})});l7.classes=mg;l7.displayName="@mantine/core/ButtonGroupSection";const PK={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${Pe(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},NK=(t,{radius:e,color:n,gradient:r,variant:o,size:s,justify:i,autoContrast:l})=>{const c=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:o||"filled",autoContrast:l});return{root:{"--button-justify":i,"--button-height":an(s,"button-height"),"--button-padding-x":an(s,"button-padding-x"),"--button-fz":s!=null&&s.includes("compact")?eo(s.replace("compact-","")):eo(s),"--button-radius":e===void 0?void 0:_r(e),"--button-bg":n||o?c.background:void 0,"--button-hover":n||o?c.hover:void 0,"--button-color":c.color,"--button-bd":n||o?c.border:void 0,"--button-hover-color":n||o?c.hoverColor:void 0}}},In=No((t,e)=>{const n=Ae("Button",null,t),{style:r,vars:o,className:s,color:i,disabled:l,children:c,leftSection:d,rightSection:f,fullWidth:h,variant:p,radius:v,loading:g,loaderProps:S,gradient:w,classNames:_,styles:E,unstyled:T,"data-disabled":M,autoContrast:j,mod:A,attributes:k,...R}=n,N=pt({name:"Button",props:n,classes:mg,className:s,style:r,classNames:_,styles:E,unstyled:T,attributes:k,vars:o,varsResolver:NK}),I=!!d,L=!!f;return b.jsxs(Yo,{ref:e,...N("root",{active:!l&&!g&&!M}),unstyled:T,variant:p,disabled:l||g,mod:[{disabled:l||M,loading:g,block:h,"with-left-section":I,"with-right-section":L},A],...R,children:[typeof g=="boolean"&&b.jsx(sc,{mounted:g,transition:PK,duration:150,children:F=>b.jsx(je,{component:"span",...N("loader",{style:F}),"aria-hidden":!0,children:b.jsx(va,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...S})})}),b.jsxs("span",{...N("inner"),children:[d&&b.jsx(je,{component:"span",...N("section"),mod:{position:"left"},children:d}),b.jsx(je,{component:"span",mod:{loading:g},...N("label"),children:c}),f&&b.jsx(je,{component:"span",...N("section"),mod:{position:"right"},children:f})]})]})});In.classes=mg;In.displayName="@mantine/core/Button";In.Group=a7;In.GroupSection=l7;var YI={root:"m_4451eb3a"};const ex=No((t,e)=>{const n=Ae("Center",null,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,inline:d,mod:f,attributes:h,...p}=n,v=pt({name:"Center",props:n,classes:YI,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:h,vars:c});return b.jsx(je,{ref:e,mod:[{inline:d},f],...v("root"),...p})});ex.classes=YI;ex.displayName="@mantine/core/Center";var GI={root:"m_7485cace"};const IK=(t,{size:e,fluid:n})=>({root:{"--container-size":n?void 0:an(e,"container-size")}}),c7=Ve((t,e)=>{const n=Ae("Container",null,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,fluid:d,mod:f,attributes:h,strategy:p,...v}=n,g=pt({name:"Container",classes:GI,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:h,vars:c,varsResolver:IK});return b.jsx(je,{ref:e,mod:[{fluid:d,strategy:p||"block"},f],...g("root"),...v})});c7.classes=GI;c7.displayName="@mantine/core/Container";const $K={timeout:1e3};function tx(t){const{children:e,timeout:n,value:r,...o}=Ae("CopyButton",$K,t),s=oV({timeout:n}),i=()=>s.copy(r);return b.jsx(b.Fragment,{children:e({copy:i,copied:s.copied,...o})})}tx.displayName="@mantine/core/CopyButton";var WI={root:"m_3eebeb36",label:"m_9e365f20"};const LK={orientation:"horizontal"},FK=(t,{color:e,variant:n,size:r})=>({root:{"--divider-color":e?dr(e,t):void 0,"--divider-border-style":n,"--divider-size":an(r,"divider-size")}}),Jc=Ve((t,e)=>{const n=Ae("Divider",LK,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,color:d,orientation:f,label:h,labelPosition:p,mod:v,attributes:g,...S}=n,w=pt({name:"Divider",classes:WI,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:g,vars:c,varsResolver:FK});return b.jsx(je,{ref:e,mod:[{orientation:f,"with-label":!!h},v],...w("root"),...S,role:"separator",children:h&&b.jsx(je,{component:"span",mod:{position:p},...w("label"),children:h})})});Jc.classes=WI;Jc.displayName="@mantine/core/Divider";var yu={root:"m_f11b401e",header:"m_5a7c2c9",content:"m_b8a05bbd",inner:"m_31cd769a"};const[zK,gg]=bi("Drawer component was not found in tree"),nx=Ve((t,e)=>{const n=Ae("DrawerBody",null,t),{classNames:r,className:o,style:s,styles:i,vars:l,...c}=n,d=gg();return b.jsx(DT,{ref:e,...d.getStyles("body",{classNames:r,style:s,styles:i,className:o}),...c})});nx.classes=yu;nx.displayName="@mantine/core/DrawerBody";const rx=Ve((t,e)=>{const n=Ae("DrawerCloseButton",null,t),{classNames:r,className:o,style:s,styles:i,vars:l,...c}=n,d=gg();return b.jsx(AT,{ref:e,...d.getStyles("close",{classNames:r,style:s,styles:i,className:o}),...c})});rx.classes=yu;rx.displayName="@mantine/core/DrawerCloseButton";const ox=Ve((t,e)=>{const n=Ae("DrawerContent",null,t),{classNames:r,className:o,style:s,styles:i,vars:l,children:c,radius:d,__hidden:f,...h}=n,p=gg(),v=p.scrollAreaComponent||CI;return b.jsx(RT,{...p.getStyles("content",{className:o,style:s,styles:i,classNames:r}),innerProps:p.getStyles("inner",{className:o,style:s,styles:i,classNames:r}),ref:e,...h,radius:d||p.radius||0,"data-hidden":f||void 0,children:b.jsx(v,{style:{height:"calc(100vh - var(--drawer-offset) * 2)"},children:c})})});ox.classes=yu;ox.displayName="@mantine/core/DrawerContent";const sx=Ve((t,e)=>{const n=Ae("DrawerHeader",null,t),{classNames:r,className:o,style:s,styles:i,vars:l,...c}=n,d=gg();return b.jsx(OT,{ref:e,...d.getStyles("header",{classNames:r,style:s,styles:i,className:o}),...c})});sx.classes=yu;sx.displayName="@mantine/core/DrawerHeader";const ix=Ve((t,e)=>{const n=Ae("DrawerOverlay",null,t),{classNames:r,className:o,style:s,styles:i,vars:l,...c}=n,d=gg();return b.jsx(PT,{ref:e,...d.getStyles("overlay",{classNames:r,style:s,styles:i,className:o}),...c})});ix.classes=yu;ix.displayName="@mantine/core/DrawerOverlay";function UK(t){switch(t){case"top":return"flex-start";case"bottom":return"flex-end";default:return}}function BK(t){if(t==="top"||t==="bottom")return"0 0 calc(100% - var(--drawer-offset, 0rem) * 2)"}const HK={top:"slide-down",bottom:"slide-up",left:"slide-right",right:"slide-left"},qK={top:"slide-down",bottom:"slide-up",right:"slide-right",left:"slide-left"},VK={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Go("modal"),position:"left"},YK=(t,{position:e,size:n,offset:r})=>({root:{"--drawer-size":an(n,"drawer-size"),"--drawer-flex":BK(e),"--drawer-height":e==="left"||e==="right"?void 0:"var(--drawer-size)","--drawer-align":UK(e),"--drawer-justify":e==="right"?"flex-end":void 0,"--drawer-offset":Pe(r)}}),ax=Ve((t,e)=>{const n=Ae("DrawerRoot",VK,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,scrollAreaComponent:d,position:f,transitionProps:h,radius:p,attributes:v,...g}=n,{dir:S}=Kd(),w=pt({name:"Drawer",classes:yu,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:v,vars:c,varsResolver:YK}),_=(S==="rtl"?qK:HK)[f];return b.jsx(zK,{value:{scrollAreaComponent:d,getStyles:w,radius:p},children:b.jsx(jT,{ref:e,...w("root"),transitionProps:{transition:_,...h},"data-offset-scrollbars":d===Hi.Autosize||void 0,unstyled:l,...g})})});ax.classes=yu;ax.displayName="@mantine/core/DrawerRoot";const[GK,WK]=Gd();function QI({children:t}){const[e,n]=D.useState([]),[r,o]=D.useState(Go("modal"));return b.jsx(GK,{value:{stack:e,addModal:(s,i)=>{n(l=>[...new Set([...l,s])]),o(l=>typeof i=="number"&&typeof l=="number"?Math.max(l,i):l)},removeModal:s=>n(i=>i.filter(l=>l!==s)),getZIndex:s=>`calc(${r} + ${e.indexOf(s)} + 1)`,currentId:e[e.length-1],maxZIndex:r},children:t})}QI.displayName="@mantine/core/DrawerStack";const lx=Ve((t,e)=>{const n=Ae("DrawerTitle",null,t),{classNames:r,className:o,style:s,styles:i,vars:l,...c}=n,d=gg();return b.jsx(NT,{ref:e,...d.getStyles("title",{classNames:r,style:s,styles:i,className:o}),...c})});lx.classes=yu;lx.displayName="@mantine/core/DrawerTitle";const QK={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Go("modal"),withOverlay:!0,withCloseButton:!0},ll=Ve((t,e)=>{const{title:n,withOverlay:r,overlayProps:o,withCloseButton:s,closeButtonProps:i,children:l,opened:c,stackId:d,zIndex:f,...h}=Ae("Drawer",QK,t),p=WK(),v=!!n||s,g=p&&d?{closeOnEscape:p.currentId===d,trapFocus:p.currentId===d,zIndex:p.getZIndex(d)}:{},S=r===!1?!1:d&&p?p.currentId===d:c;return D.useEffect(()=>{p&&d&&(c?p.addModal(d,f||Go("modal")):p.removeModal(d))},[c,d,f]),b.jsxs(ax,{ref:e,opened:c,zIndex:p&&d?p.getZIndex(d):f,...h,...g,children:[r&&b.jsx(ix,{visible:S,transitionProps:p&&d?{duration:0}:void 0,...o}),b.jsxs(ox,{__hidden:p&&d&&c?d!==p.currentId:!1,children:[v&&b.jsxs(sx,{children:[n&&b.jsx(lx,{children:n}),s&&b.jsx(rx,{...i})]}),b.jsx(nx,{children:l})]})]})});ll.classes=yu;ll.displayName="@mantine/core/Drawer";ll.Root=ax;ll.Overlay=ix;ll.Content=ox;ll.Body=nx;ll.Header=sx;ll.Title=lx;ll.CloseButton=rx;ll.Stack=QI;const[rj,KI]=bi("Grid component was not found in tree");var u7={container:"m_8478a6da",root:"m_410352e9",inner:"m_dee7bd2f",col:"m_96bdd299"};const _9=(t,e)=>t==="content"?"auto":t==="auto"?"0rem":t?`${100/(e/t)}%`:void 0,oj=(t,e,n)=>n||t==="auto"?"100%":t==="content"?"unset":_9(t,e),sj=(t,e)=>{if(t)return t==="auto"||e?"1":"auto"},ij=(t,e)=>t===0?"0":t?`${100/(e/t)}%`:void 0;function KK({span:t,order:e,offset:n,selector:r}){var v;const o=Lr(),s=KI(),i=s.breakpoints||o.breakpoints,c=Wa(t)===void 0?12:Wa(t),d=Yd({"--col-order":(v=Wa(e))==null?void 0:v.toString(),"--col-flex-grow":sj(c,s.grow),"--col-flex-basis":_9(c,s.columns),"--col-width":c==="content"?"auto":void 0,"--col-max-width":oj(c,s.columns,s.grow),"--col-offset":ij(Wa(n),s.columns)}),f=yr(i).reduce((g,S)=>{var w;return g[S]||(g[S]={}),typeof e=="object"&&e[S]!==void 0&&(g[S]["--col-order"]=(w=e[S])==null?void 0:w.toString()),typeof t=="object"&&t[S]!==void 0&&(g[S]["--col-flex-grow"]=sj(t[S],s.grow),g[S]["--col-flex-basis"]=_9(t[S],s.columns),g[S]["--col-width"]=t[S]==="content"?"auto":void 0,g[S]["--col-max-width"]=oj(t[S],s.columns,s.grow)),typeof n=="object"&&n[S]!==void 0&&(g[S]["--col-offset"]=ij(n[S],s.columns)),g},{}),p=xv(yr(f),i).filter(g=>yr(f[g.value]).length>0).map(g=>({query:s.type==="container"?`mantine-grid (min-width: ${i[g.value]})`:`(min-width: ${i[g.value]})`,styles:f[g.value]}));return b.jsx(up,{styles:d,media:s.type==="container"?void 0:p,container:s.type==="container"?p:void 0,selector:r})}const XK={span:12},d7=Ve((t,e)=>{const n=Ae("GridCol",XK,t),{classNames:r,className:o,style:s,styles:i,vars:l,span:c,order:d,offset:f,...h}=n,p=KI(),v=a2();return b.jsxs(b.Fragment,{children:[b.jsx(KK,{selector:`.${v}`,span:c,order:d,offset:f}),b.jsx(je,{ref:e,...p.getStyles("col",{className:Dr(o,v),style:s,classNames:r,styles:i}),...h})]})});d7.classes=u7;d7.displayName="@mantine/core/GridCol";function aj({gutter:t,selector:e,breakpoints:n,type:r}){const o=Lr(),s=n||o.breakpoints,i=Yd({"--grid-gutter":co(Wa(t))}),l=yr(s).reduce((f,h)=>(f[h]||(f[h]={}),typeof t=="object"&&t[h]!==void 0&&(f[h]["--grid-gutter"]=co(t[h])),f),{}),d=xv(yr(l),s).filter(f=>yr(l[f.value]).length>0).map(f=>({query:r==="container"?`mantine-grid (min-width: ${s[f.value]})`:`(min-width: ${s[f.value]})`,styles:l[f.value]}));return b.jsx(up,{styles:i,media:r==="container"?void 0:d,container:r==="container"?d:void 0,selector:e})}const ZK={gutter:"md",grow:!1,columns:12},JK=(t,{justify:e,align:n,overflow:r})=>({root:{"--grid-justify":e,"--grid-align":n,"--grid-overflow":r}}),Ev=Ve((t,e)=>{const n=Ae("Grid",ZK,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,grow:d,gutter:f,columns:h,align:p,justify:v,children:g,breakpoints:S,type:w,attributes:_,...E}=n,T=pt({name:"Grid",classes:u7,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:_,vars:c,varsResolver:JK}),M=a2();return w==="container"&&S?b.jsxs(rj,{value:{getStyles:T,grow:d,columns:h,breakpoints:S,type:w},children:[b.jsx(aj,{selector:`.${M}`,...n}),b.jsx("div",{...T("container"),children:b.jsx(je,{ref:e,...T("root",{className:M}),...E,children:b.jsx("div",{...T("inner"),children:g})})})]}):b.jsxs(rj,{value:{getStyles:T,grow:d,columns:h,breakpoints:S,type:w},children:[b.jsx(aj,{selector:`.${M}`,...n}),b.jsx(je,{ref:e,...T("root",{className:M}),...E,children:b.jsx("div",{...T("inner"),children:g})})]})});Ev.classes=u7;Ev.displayName="@mantine/core/Grid";Ev.Col=d7;const[eX,XI]=bi("HoverCard component was not found in the tree"),ZI=D.createContext(!1),tX=ZI.Provider,f7=()=>D.useContext(ZI);function JI(t){const{children:e,onMouseEnter:n,onMouseLeave:r,...o}=Ae("HoverCardDropdown",null,t),s=XI();if(f7()&&s.getFloatingProps&&s.floating){const d=s.getFloatingProps();return b.jsx(fr.Dropdown,{ref:s.floating,...d,onMouseEnter:bo(n,d.onMouseEnter),onMouseLeave:bo(r,d.onMouseLeave),...o,children:e})}const l=bo(n,s.openDropdown),c=bo(r,s.closeDropdown);return b.jsx(fr.Dropdown,{onMouseEnter:l,onMouseLeave:c,...o,children:e})}JI.displayName="@mantine/core/HoverCardDropdown";const nX={openDelay:0,closeDelay:0};function h7(t){const{openDelay:e,closeDelay:n,children:r}=Ae("HoverCardGroup",nX,t);return b.jsx(tX,{value:!0,children:b.jsx(HN,{delay:{open:e,close:n},children:r})})}h7.displayName="@mantine/core/HoverCardGroup";h7.extend=t=>t;const rX={refProp:"ref"},e$=D.forwardRef((t,e)=>{const{children:n,refProp:r,eventPropsWrapperName:o,...s}=Ae("HoverCardTarget",rX,t),i=Qd(n);if(!i)throw new Error("HoverCard.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const l=XI();if(f7()&&l.getReferenceProps&&l.reference){const p=l.getReferenceProps();return b.jsx(fr.Target,{refProp:r,ref:e,...s,children:D.cloneElement(i,o?{[o]:{...p,ref:l.reference}}:{...p,ref:l.reference})})}const d=bo(i.props.onMouseEnter,l.openDropdown),f=bo(i.props.onMouseLeave,l.closeDropdown),h={onMouseEnter:d,onMouseLeave:f};return b.jsx(fr.Target,{refProp:r,ref:e,...s,children:D.cloneElement(i,o?{[o]:h}:h)})});e$.displayName="@mantine/core/HoverCardTarget";function oX(t){const[e,n]=D.useState(t.defaultOpened),o=typeof t.opened=="boolean"?t.opened:e,s=f7(),i=Si(),l=D.useRef(-1),c=D.useRef(-1),d=D.useCallback(()=>{window.clearTimeout(l.current),window.clearTimeout(c.current)},[]),f=D.useCallback(T=>{var M,j;n(T),T?(g(i),(M=t.onOpen)==null||M.call(t)):(j=t.onClose)==null||j.call(t)},[i,t.onOpen,t.onClose]),{context:h,refs:p}=Q4({open:o,onOpenChange:f}),{delay:v,setCurrentId:g}=qN(h,{id:i}),{getReferenceProps:S,getFloatingProps:w}=YN([UN(h,{enabled:!0,delay:s?v:{open:t.openDelay,close:t.closeDelay}}),GN(h,{role:"dialog"}),VN(h,{enabled:s})]),_=D.useCallback(()=>{s||(d(),t.openDelay===0||t.openDelay===void 0?f(!0):l.current=window.setTimeout(()=>f(!0),t.openDelay))},[s,d,t.openDelay,f]),E=D.useCallback(()=>{s||(d(),t.closeDelay===0||t.closeDelay===void 0?f(!1):c.current=window.setTimeout(()=>f(!1),t.closeDelay))},[s,d,t.closeDelay,f]);return D.useEffect(()=>()=>d(),[d]),{opened:o,reference:p.setReference,floating:p.setFloating,getReferenceProps:S,getFloatingProps:w,openDropdown:_,closeDropdown:E}}const sX={openDelay:0,closeDelay:150,initiallyOpened:!1};function Nd(t){const{children:e,onOpen:n,onClose:r,openDelay:o,closeDelay:s,initiallyOpened:i,...l}=Ae("HoverCard",sX,t),c=oX({openDelay:o,closeDelay:s,defaultOpened:i,onOpen:n,onClose:r});return b.jsx(eX,{value:{openDropdown:c.openDropdown,closeDropdown:c.closeDropdown,getReferenceProps:c.getReferenceProps,getFloatingProps:c.getFloatingProps,reference:c.reference,floating:c.floating},children:b.jsx(fr,{...l,opened:c.opened,__staticSelector:"HoverCard",children:e})})}Nd.displayName="@mantine/core/HoverCard";Nd.Target=e$;Nd.Dropdown=JI;Nd.Group=h7;Nd.extend=t=>t;var t$={root:"m_9e117634"};const iX=(t,{radius:e,fit:n})=>({root:{"--image-radius":e===void 0?void 0:_r(e),"--image-object-fit":n}}),dc=No((t,e)=>{const n=Ae("Image",null,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,onError:d,src:f,radius:h,fit:p,fallbackSrc:v,mod:g,attributes:S,...w}=n,[_,E]=D.useState(!f);D.useEffect(()=>E(!f),[f]);const T=pt({name:"Image",classes:t$,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:S,vars:c,varsResolver:iX});return _&&v?b.jsx(je,{component:"img",ref:e,src:v,...T("root"),onError:d,mod:["fallback",g],...w}):b.jsx(je,{component:"img",ref:e,...T("root"),src:f,onError:M=>{d==null||d(M),E(!0)},mod:g,...w})});dc.classes=t$;dc.displayName="@mantine/core/Image";function aX(t="top-end",e=0){const n={"--indicator-top":void 0,"--indicator-bottom":void 0,"--indicator-left":void 0,"--indicator-right":void 0,"--indicator-translate-x":void 0,"--indicator-translate-y":void 0},r=Pe(e),[o,s]=t.split("-");return o==="top"&&(n["--indicator-top"]=r,n["--indicator-translate-y"]="-50%"),o==="middle"&&(n["--indicator-top"]="50%",n["--indicator-translate-y"]="-50%"),o==="bottom"&&(n["--indicator-bottom"]=r,n["--indicator-translate-y"]="50%"),s==="start"&&(n["--indicator-left"]=r,n["--indicator-translate-x"]="-50%"),s==="center"&&(n["--indicator-left"]="50%",n["--indicator-translate-x"]="-50%"),s==="end"&&(n["--indicator-right"]=r,n["--indicator-translate-x"]="50%"),n}var n$={root:"m_e5262200",indicator:"m_760d1fb1",processing:"m_885901b1"};const lX={position:"top-end",offset:0},cX=(t,{color:e,position:n,offset:r,size:o,radius:s,zIndex:i,autoContrast:l})=>({root:{"--indicator-color":e?dr(e,t):void 0,"--indicator-text-color":B4(l,t)?s2({color:e,theme:t,autoContrast:l}):void 0,"--indicator-size":Pe(o),"--indicator-radius":s===void 0?void 0:_r(s),"--indicator-z-index":i==null?void 0:i.toString(),...aX(n,r)}}),cx=Ve((t,e)=>{const n=Ae("Indicator",lX,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,children:d,position:f,offset:h,inline:p,label:v,radius:g,color:S,withBorder:w,disabled:_,processing:E,zIndex:T,autoContrast:M,mod:j,attributes:A,...k}=n,R=pt({name:"Indicator",classes:n$,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:A,vars:c,varsResolver:cX});return b.jsxs(je,{ref:e,...R("root"),mod:[{inline:p},j],...k,children:[!_&&b.jsx(je,{mod:{"with-label":!!v,"with-border":w,processing:E},...R("indicator"),children:v}),d]})});cx.classes=n$;cx.displayName="@mantine/core/Indicator";function T9(){return T9=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},T9.apply(null,arguments)}function r$(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}const[uX,dX]=bi("List component was not found in tree");var p7={root:"m_abbac491",item:"m_abb6bec2",itemWrapper:"m_75cd9f71",itemIcon:"m_60f83e5b"};const m7=Ve((t,e)=>{const n=Ae("ListItem",null,t),{classNames:r,className:o,style:s,styles:i,vars:l,icon:c,children:d,mod:f,...h}=n,p=dX(),v=c||p.icon,g={classNames:r,styles:i};return b.jsx(je,{...p.getStyles("item",{...g,className:o,style:s}),component:"li",mod:[{"with-icon":!!v,centered:p.center},f],ref:e,...h,children:b.jsxs("div",{...p.getStyles("itemWrapper",g),children:[v&&b.jsx("span",{...p.getStyles("itemIcon",g),children:v}),b.jsx("span",{...p.getStyles("itemLabel",g),children:d})]})})});m7.classes=p7;m7.displayName="@mantine/core/ListItem";const fX={type:"unordered"},hX=(t,{size:e,spacing:n})=>({root:{"--list-fz":eo(e),"--list-lh":oN(e),"--list-spacing":co(n)}}),f2=Ve((t,e)=>{const n=Ae("List",fX,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,children:d,type:f,withPadding:h,icon:p,spacing:v,center:g,listStyleType:S,mod:w,attributes:_,...E}=n,T=pt({name:"List",classes:p7,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:_,vars:c,varsResolver:hX});return b.jsx(uX,{value:{center:g,icon:p,getStyles:T},children:b.jsx(je,{...T("root",{style:{listStyleType:S}}),component:f==="unordered"?"ul":"ol",mod:[{"with-padding":h,type:p?"none":S},w],ref:e,...E,children:d})})});f2.classes=p7;f2.displayName="@mantine/core/List";f2.Item=m7;var o$={root:"m_6e45937b",loader:"m_e8eb006c",overlay:"m_df587f17"};const lj={transitionProps:{transition:"fade",duration:0},overlayProps:{backgroundOpacity:.75},zIndex:Go("overlay")},pX=(t,{zIndex:e})=>({root:{"--lo-z-index":e==null?void 0:e.toString()}}),g7=Ve((t,e)=>{const n=Ae("LoadingOverlay",lj,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,transitionProps:d,loaderProps:f,overlayProps:h,visible:p,zIndex:v,attributes:g,...S}=n,w=Lr(),_=pt({name:"LoadingOverlay",classes:o$,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:g,vars:c,varsResolver:pX}),E={...lj.overlayProps,...h};return b.jsx(sc,{transition:"fade",...d,mounted:!!p,children:T=>b.jsxs(je,{..._("root",{style:T}),ref:e,...S,children:[b.jsx(va,{..._("loader"),unstyled:l,...f}),b.jsx(B1,{...E,..._("overlay"),darkHidden:!0,unstyled:l,color:(h==null?void 0:h.color)||w.white}),b.jsx(B1,{...E,..._("overlay"),lightHidden:!0,unstyled:l,color:(h==null?void 0:h.color)||w.colors.dark[5]})]})})});g7.classes=o$;g7.displayName="@mantine/core/LoadingOverlay";const[mX,tf]=bi("Menu component was not found in the tree");var nf={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const y7=Ve((t,e)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,...l}=Ae("MenuDivider",null,t),c=tf();return b.jsx(je,{ref:e,...c.getStyles("divider",{className:r,style:o,styles:s,classNames:n}),...l})});y7.classes=nf;y7.displayName="@mantine/core/MenuDivider";const v7=Ve((t,e)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,onMouseEnter:l,onMouseLeave:c,onKeyDown:d,children:f,...h}=Ae("MenuDropdown",null,t),p=D.useRef(null),v=tf(),g=bo(d,_=>{var E,T;(_.key==="ArrowUp"||_.key==="ArrowDown")&&(_.preventDefault(),(T=(E=p.current)==null?void 0:E.querySelectorAll("[data-menu-item]:not(:disabled)")[0])==null||T.focus())}),S=bo(l,()=>(v.trigger==="hover"||v.trigger==="click-hover")&&v.openDropdown()),w=bo(c,()=>(v.trigger==="hover"||v.trigger==="click-hover")&&v.closeDropdown());return b.jsxs(fr.Dropdown,{...h,onMouseEnter:S,onMouseLeave:w,role:"menu","aria-orientation":"vertical",ref:Eo(e,p),...v.getStyles("dropdown",{className:r,style:o,styles:s,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:g,children:[v.withInitialFocusPlaceholder&&b.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),f]})});v7.classes=nf;v7.displayName="@mantine/core/MenuDropdown";const[gX,ux]=Gd(),b7=No((t,e)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,color:l,closeMenuOnClick:c,leftSection:d,rightSection:f,children:h,disabled:p,"data-disabled":v,...g}=Ae("MenuItem",null,t),S=tf(),w=ux(),_=Lr(),{dir:E}=Kd(),T=D.useRef(null),M=g,j=bo(M.onClick,()=>{v||(typeof c=="boolean"?c&&S.closeDropdownImmediately():S.closeOnItemClick&&S.closeDropdownImmediately())}),A=l?_.variantColorResolver({color:l,theme:_,variant:"light"}):void 0,k=l?cc({color:l,theme:_}):null,R=bo(M.onKeyDown,N=>{N.key==="ArrowLeft"&&w&&(w.close(),w.focusParentItem())});return b.jsxs(Yo,{onMouseDown:N=>N.preventDefault(),...g,unstyled:S.unstyled,tabIndex:S.menuItemTabIndex,...S.getStyles("item",{className:r,style:o,styles:s,classNames:n}),ref:Eo(T,e),role:"menuitem",disabled:p,"data-menu-item":!0,"data-disabled":p||v||void 0,"data-mantine-stop-propagation":!0,onClick:j,onKeyDown:nT({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:S.loop,dir:E,orientation:"vertical",onKeyDown:R}),__vars:{"--menu-item-color":k!=null&&k.isThemeColor&&(k==null?void 0:k.shade)===void 0?`var(--mantine-color-${k.color}-6)`:A==null?void 0:A.color,"--menu-item-hover":A==null?void 0:A.hover},children:[d&&b.jsx("div",{...S.getStyles("itemSection",{styles:s,classNames:n}),"data-position":"left",children:d}),h&&b.jsx("div",{...S.getStyles("itemLabel",{styles:s,classNames:n}),children:h}),f&&b.jsx("div",{...S.getStyles("itemSection",{styles:s,classNames:n}),"data-position":"right",children:f})]})});b7.classes=nf;b7.displayName="@mantine/core/MenuItem";const S7=Ve((t,e)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,...l}=Ae("MenuLabel",null,t),c=tf();return b.jsx(je,{ref:e,...c.getStyles("label",{className:r,style:o,styles:s,classNames:n}),...l})});S7.classes=nf;S7.displayName="@mantine/core/MenuLabel";const w7=Ve((t,e)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,onMouseEnter:l,onMouseLeave:c,onKeyDown:d,children:f,...h}=Ae("MenuSubDropdown",null,t),p=D.useRef(null),v=tf(),g=ux(),S=bo(l,g==null?void 0:g.open),w=bo(c,g==null?void 0:g.close);return b.jsx(fr.Dropdown,{...h,onMouseEnter:S,onMouseLeave:w,role:"menu","aria-orientation":"vertical",ref:Eo(e,p),...v.getStyles("dropdown",{className:r,style:o,styles:s,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:f})});w7.classes=nf;w7.displayName="@mantine/core/MenuSubDropdown";const x7=No((t,e)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,color:l,leftSection:c,rightSection:d,children:f,disabled:h,"data-disabled":p,closeMenuOnClick:v,...g}=Ae("MenuSubItem",null,t),S=tf(),w=ux(),_=Lr(),{dir:E}=Kd(),T=D.useRef(null),M=g,j=l?_.variantColorResolver({color:l,theme:_,variant:"light"}):void 0,A=l?cc({color:l,theme:_}):null,k=bo(M.onKeyDown,L=>{L.key==="ArrowRight"&&(w==null||w.open(),w==null||w.focusFirstItem()),L.key==="ArrowLeft"&&(w!=null&&w.parentContext)&&(w.parentContext.close(),w.parentContext.focusParentItem())}),R=bo(M.onClick,()=>{!p&&v&&S.closeDropdownImmediately()}),N=bo(M.onMouseEnter,w==null?void 0:w.open),I=bo(M.onMouseLeave,w==null?void 0:w.close);return b.jsxs(Yo,{onMouseDown:L=>L.preventDefault(),...g,unstyled:S.unstyled,tabIndex:S.menuItemTabIndex,...S.getStyles("item",{className:r,style:o,styles:s,classNames:n}),ref:Eo(T,e),role:"menuitem",disabled:h,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":h||p||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:N,onMouseLeave:I,onClick:R,onKeyDown:nT({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:S.loop,dir:E,orientation:"vertical",onKeyDown:k}),__vars:{"--menu-item-color":A!=null&&A.isThemeColor&&(A==null?void 0:A.shade)===void 0?`var(--mantine-color-${A.color}-6)`:j==null?void 0:j.color,"--menu-item-hover":j==null?void 0:j.hover},children:[c&&b.jsx("div",{...S.getStyles("itemSection",{styles:s,classNames:n}),"data-position":"left",children:c}),f&&b.jsx("div",{...S.getStyles("itemLabel",{styles:s,classNames:n}),children:f}),b.jsx("div",{...S.getStyles("itemSection",{styles:s,classNames:n}),"data-position":"right",children:d||b.jsx(Tv,{...S.getStyles("chevron"),size:14})})]})});x7.classes=nf;x7.displayName="@mantine/core/MenuSubItem";function s$({children:t,refProp:e}){if(!tT(t))throw new Error("Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return tf(),b.jsx(fr.Target,{refProp:e,popupType:"menu",children:t})}s$.displayName="@mantine/core/MenuSubTarget";const yX={offset:0,position:"right-start",transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function yg(t){const{children:e,closeDelay:n,openDelay:r,...o}=Ae("MenuSub",yX,t),s=Si(),[i,{open:l,close:c}]=Wd(!1),d=ux(),{openDropdown:f,closeDropdown:h}=EI({open:l,close:c,closeDelay:n,openDelay:r}),p=()=>window.setTimeout(()=>{var g,S;(S=(g=document.getElementById(`${s}-dropdown`))==null?void 0:g.querySelectorAll("[data-menu-item]:not([data-disabled])")[0])==null||S.focus()},16),v=()=>window.setTimeout(()=>{var g;(g=document.getElementById(`${s}-target`))==null||g.focus()},16);return b.jsx(gX,{value:{opened:i,close:h,open:f,focusFirstItem:p,focusParentItem:v,parentContext:d},children:b.jsx(fr,{opened:i,withinPortal:!1,withArrow:!1,id:s,...o,children:e})})}yg.extend=t=>t;yg.displayName="@mantine/core/MenuSub";yg.Target=s$;yg.Dropdown=w7;yg.Item=x7;const vX={refProp:"ref"},i$=D.forwardRef((t,e)=>{const{children:n,refProp:r,...o}=Ae("MenuTarget",vX,t),s=Qd(n);if(!s)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 i=tf(),l=s.props,c=bo(l.onClick,()=>{i.trigger==="click"?i.toggleDropdown():i.trigger==="click-hover"&&(i.setOpenedViaClick(!0),i.opened||i.openDropdown())}),d=bo(l.onMouseEnter,()=>(i.trigger==="hover"||i.trigger==="click-hover")&&i.openDropdown()),f=bo(l.onMouseLeave,()=>{(i.trigger==="hover"||i.trigger==="click-hover"&&!i.openedViaClick)&&i.closeDropdown()});return b.jsx(fr.Target,{refProp:r,popupType:"menu",ref:e,...o,children:D.cloneElement(s,{onClick:c,onMouseEnter:d,onMouseLeave:f,"data-expanded":i.opened?!0:void 0})})});i$.displayName="@mantine/core/MenuTarget";const bX={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function Mt(t){const e=Ae("Menu",bX,t),{children:n,onOpen:r,onClose:o,opened:s,defaultOpened:i,trapFocus:l,onChange:c,closeOnItemClick:d,loop:f,closeOnEscape:h,trigger:p,openDelay:v,closeDelay:g,classNames:S,styles:w,unstyled:_,variant:E,vars:T,menuItemTabIndex:M,keepMounted:j,withInitialFocusPlaceholder:A,attributes:k,...R}=e,N=pt({name:"Menu",classes:nf,props:e,classNames:S,styles:w,unstyled:_,attributes:k}),[I,L]=Wi({value:s,defaultValue:i,finalValue:!1,onChange:c}),[F,H]=D.useState(!1),B=()=>{L(!1),H(!1),I&&(o==null||o())},Y=()=>{L(!0),!I&&(r==null||r())},U=()=>{I?B():Y()},{openDropdown:q,closeDropdown:z}=EI({open:Y,close:B,closeDelay:g,openDelay:v}),W=X=>tV("[data-menu-item]","[data-menu-dropdown]",X),{resolvedClassNames:K,resolvedStyles:G}=cp({classNames:S,styles:w,props:e});return b.jsx(mX,{value:{getStyles:N,opened:I,toggleDropdown:U,getItemIndex:W,openedViaClick:F,setOpenedViaClick:H,closeOnItemClick:d,closeDropdown:p==="click"?B:z,openDropdown:p==="click"?Y:q,closeDropdownImmediately:B,loop:f,trigger:p,unstyled:_,menuItemTabIndex:M,withInitialFocusPlaceholder:A},children:b.jsx(fr,{returnFocus:!0,...R,opened:I,onChange:U,defaultOpened:i,trapFocus:j?!1:l,closeOnEscape:h,__staticSelector:"Menu",classNames:K,styles:G,unstyled:_,variant:E,keepMounted:j,children:n})})}Mt.extend=t=>t;Mt.withProps=UY(Mt);Mt.classes=nf;Mt.displayName="@mantine/core/Menu";Mt.Item=b7;Mt.Label=S7;Mt.Dropdown=v7;Mt.Target=i$;Mt.Divider=y7;Mt.Sub=yg;var vu={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const[SX,vg]=bi("Modal component was not found in tree"),dx=Ve((t,e)=>{const n=Ae("ModalBody",null,t),{classNames:r,className:o,style:s,styles:i,vars:l,...c}=n,d=vg();return b.jsx(DT,{ref:e,...d.getStyles("body",{classNames:r,style:s,styles:i,className:o}),...c})});dx.classes=vu;dx.displayName="@mantine/core/ModalBody";const fx=Ve((t,e)=>{const n=Ae("ModalCloseButton",null,t),{classNames:r,className:o,style:s,styles:i,vars:l,...c}=n,d=vg();return b.jsx(AT,{ref:e,...d.getStyles("close",{classNames:r,style:s,styles:i,className:o}),...c})});fx.classes=vu;fx.displayName="@mantine/core/ModalCloseButton";const hx=Ve((t,e)=>{const n=Ae("ModalContent",null,t),{classNames:r,className:o,style:s,styles:i,vars:l,children:c,__hidden:d,...f}=n,h=vg(),p=h.scrollAreaComponent||CI;return b.jsx(RT,{...h.getStyles("content",{className:o,style:s,styles:i,classNames:r}),innerProps:h.getStyles("inner",{className:o,style:s,styles:i,classNames:r}),"data-full-screen":h.fullScreen||void 0,"data-modal-content":!0,"data-hidden":d||void 0,ref:e,...f,children:b.jsx(p,{style:{maxHeight:h.fullScreen?"100dvh":`calc(100dvh - (${Pe(h.yOffset)} * 2))`},children:c})})});hx.classes=vu;hx.displayName="@mantine/core/ModalContent";const px=Ve((t,e)=>{const n=Ae("ModalHeader",null,t),{classNames:r,className:o,style:s,styles:i,vars:l,...c}=n,d=vg();return b.jsx(OT,{ref:e,...d.getStyles("header",{classNames:r,style:s,styles:i,className:o}),...c})});px.classes=vu;px.displayName="@mantine/core/ModalHeader";const mx=Ve((t,e)=>{const n=Ae("ModalOverlay",null,t),{classNames:r,className:o,style:s,styles:i,vars:l,...c}=n,d=vg();return b.jsx(PT,{ref:e,...d.getStyles("overlay",{classNames:r,style:s,styles:i,className:o}),...c})});mx.classes=vu;mx.displayName="@mantine/core/ModalOverlay";const wX={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Go("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},xX=(t,{radius:e,size:n,yOffset:r,xOffset:o})=>({root:{"--modal-radius":e===void 0?void 0:_r(e),"--modal-size":an(n,"modal-size"),"--modal-y-offset":Pe(r),"--modal-x-offset":Pe(o)}}),gx=Ve((t,e)=>{const n=Ae("ModalRoot",wX,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,yOffset:d,scrollAreaComponent:f,radius:h,fullScreen:p,centered:v,xOffset:g,__staticSelector:S,attributes:w,..._}=n,E=pt({name:S,classes:vu,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:w,vars:c,varsResolver:xX});return b.jsx(SX,{value:{yOffset:d,scrollAreaComponent:f,getStyles:E,fullScreen:p},children:b.jsx(jT,{ref:e,...E("root"),"data-full-screen":p||void 0,"data-centered":v||void 0,"data-offset-scrollbars":f===Hi.Autosize||void 0,unstyled:l,..._})})});gx.classes=vu;gx.displayName="@mantine/core/ModalRoot";const[CX,_X]=Gd();function a$({children:t}){const[e,n]=D.useState([]),[r,o]=D.useState(Go("modal"));return b.jsx(CX,{value:{stack:e,addModal:(s,i)=>{n(l=>[...new Set([...l,s])]),o(l=>typeof i=="number"&&typeof l=="number"?Math.max(l,i):l)},removeModal:s=>n(i=>i.filter(l=>l!==s)),getZIndex:s=>`calc(${r} + ${e.indexOf(s)} + 1)`,currentId:e[e.length-1],maxZIndex:r},children:t})}a$.displayName="@mantine/core/ModalStack";const yx=Ve((t,e)=>{const n=Ae("ModalTitle",null,t),{classNames:r,className:o,style:s,styles:i,vars:l,...c}=n,d=vg();return b.jsx(NT,{ref:e,...d.getStyles("title",{classNames:r,style:s,styles:i,className:o}),...c})});yx.classes=vu;yx.displayName="@mantine/core/ModalTitle";const TX={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Go("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},Cr=Ve((t,e)=>{const{title:n,withOverlay:r,overlayProps:o,withCloseButton:s,closeButtonProps:i,children:l,radius:c,opened:d,stackId:f,zIndex:h,...p}=Ae("Modal",TX,t),v=_X(),g=!!n||s,S=v&&f?{closeOnEscape:v.currentId===f,trapFocus:v.currentId===f,zIndex:v.getZIndex(f)}:{},w=r===!1?!1:f&&v?v.currentId===f:d;return D.useEffect(()=>{v&&f&&(d?v.addModal(f,h||Go("modal")):v.removeModal(f))},[d,f,h]),b.jsxs(gx,{ref:e,radius:c,opened:d,zIndex:v&&f?v.getZIndex(f):h,...p,...S,children:[r&&b.jsx(mx,{visible:w,transitionProps:v&&f?{duration:0}:void 0,...o}),b.jsxs(hx,{radius:c,__hidden:v&&f&&d?f!==v.currentId:!1,children:[g&&b.jsxs(px,{children:[n&&b.jsx(yx,{children:n}),s&&b.jsx(fx,{...i})]}),b.jsx(dx,{children:l})]})]})});Cr.classes=vu;Cr.displayName="@mantine/core/Modal";Cr.Root=gx;Cr.Overlay=mx;Cr.Content=hx;Cr.Body=dx;Cr.Header=px;Cr.Title=yx;Cr.CloseButton=fx;Cr.Stack=a$;const[EX,C7]=Gd();var vx={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};const[kX,MX]=Gd(),jX=(t,{gap:e},{size:n})=>({group:{"--pg-gap":e!==void 0?an(e):an(n,"pg-gap")}}),_7=Ve((t,e)=>{const n=Ae("PillGroup",null,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,size:d,disabled:f,attributes:h,...p}=n,v=C7(),g=(v==null?void 0:v.size)||d||void 0,S=pt({name:"PillGroup",classes:vx,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:h,vars:c,varsResolver:jX,stylesCtx:{size:g},rootSelector:"group"});return b.jsx(kX,{value:{size:g,disabled:f},children:b.jsx(je,{ref:e,size:g,...S("group"),...p})})});_7.classes=vx;_7.displayName="@mantine/core/PillGroup";const DX={variant:"default"},AX=(t,{radius:e},{size:n})=>({root:{"--pill-fz":an(n,"pill-fz"),"--pill-height":an(n,"pill-height"),"--pill-radius":e===void 0?void 0:_r(e)}}),kv=Ve((t,e)=>{const n=Ae("Pill",DX,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,variant:d,children:f,withRemoveButton:h,onRemove:p,removeButtonProps:v,radius:g,size:S,disabled:w,mod:_,attributes:E,...T}=n,M=MX(),j=C7(),A=S||(M==null?void 0:M.size)||void 0,k=(j==null?void 0:j.variant)==="filled"?"contrast":d||"default",R=pt({name:"Pill",classes:vx,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:E,vars:c,varsResolver:AX,stylesCtx:{size:A}});return b.jsxs(je,{component:"span",ref:e,variant:k,size:A,...R("root",{variant:k}),mod:[{"with-remove":h&&!w,disabled:w||(M==null?void 0:M.disabled)},_],...T,children:[b.jsx("span",{...R("label"),children:f}),h&&b.jsx(al,{variant:"transparent",radius:g,tabIndex:-1,"aria-hidden":!0,unstyled:l,...v,...R("remove",{className:v==null?void 0:v.className,style:v==null?void 0:v.style}),onMouseDown:N=>{var I;N.preventDefault(),N.stopPropagation(),(I=v==null?void 0:v.onMouseDown)==null||I.call(v,N)},onClick:N=>{var I;N.stopPropagation(),p==null||p(),(I=v==null?void 0:v.onClick)==null||I.call(v,N)}})]})});kv.classes=vx;kv.displayName="@mantine/core/Pill";kv.Group=_7;var l$={field:"m_45c4369d"};const RX={type:"visible"},T7=Ve((t,e)=>{const n=Ae("PillsInputField",RX,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,type:d,disabled:f,id:h,pointer:p,mod:v,attributes:g,...S}=n,w=C7(),_=fg(),E=pt({name:"PillsInputField",classes:l$,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:g,rootSelector:"field"}),T=f||(w==null?void 0:w.disabled);return b.jsx(je,{component:"input",ref:Eo(e,w==null?void 0:w.fieldRef),"data-type":d,disabled:T,mod:[{disabled:T,pointer:p},v],...E("field"),...S,id:(_==null?void 0:_.inputId)||h,"aria-invalid":w==null?void 0:w.hasError,"aria-describedby":_==null?void 0:_.describedBy,type:"text",onMouseDown:M=>!p&&M.stopPropagation()})});T7.classes=l$;T7.displayName="@mantine/core/PillsInputField";const OX={size:"sm"},E7=Ve((t,e)=>{const n=Ae("PillsInput",OX,t),{children:r,onMouseDown:o,onClick:s,size:i,disabled:l,__staticSelector:c,error:d,variant:f,...h}=n,p=D.useRef(null);return b.jsx(EX,{value:{fieldRef:p,size:i,disabled:l,hasError:!!d,variant:f},children:b.jsx(Zd,{size:i,error:d,variant:f,component:"div",ref:e,"data-no-overflow":!0,onMouseDown:v=>{var g;v.preventDefault(),o==null||o(v),(g=p.current)==null||g.focus()},onClick:v=>{var S;v.preventDefault();const g=v.currentTarget.closest("fieldset");g!=null&&g.disabled||((S=p.current)==null||S.focus(),s==null||s(v))},...h,multiline:!0,disabled:l,__staticSelector:c||"PillsInput",withAria:!1,children:r})})});E7.displayName="@mantine/core/PillsInput";E7.Field=T7;var c$={root:"m_f0824112",description:"m_57492dcc",section:"m_690090b5",label:"m_1f6ac4c4",body:"m_f07af9d2",children:"m_e17b862f",chevron:"m_1fd8a00b"};const PX=(t,{variant:e,color:n,childrenOffset:r,autoContrast:o})=>{const s=t.variantColorResolver({color:n||t.primaryColor,theme:t,variant:e||"light",autoContrast:o});return{root:{"--nl-bg":n||e?s.background:void 0,"--nl-hover":n||e?s.hover:void 0,"--nl-color":n||e?s.color:void 0},children:{"--nl-offset":co(r)}}},bx=No((t,e)=>{const n=Ae("NavLink",null,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,opened:d,defaultOpened:f,onChange:h,children:p,active:v,disabled:g,leftSection:S,rightSection:w,label:_,description:E,disableRightSectionRotation:T,noWrap:M,childrenOffset:j,autoContrast:A,mod:k,attributes:R,onClick:N,onKeyDown:I,...L}=n,F=pt({name:"NavLink",props:n,classes:c$,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:R,vars:c,varsResolver:PX}),[H,B]=Wi({value:d,defaultValue:f,finalValue:!1,onChange:h}),Y=!!p,U=q=>{N==null||N(q),Y&&(q.preventDefault(),B(!H))};return b.jsxs(b.Fragment,{children:[b.jsxs(Yo,{...F("root"),component:"a",ref:e,onClick:U,onKeyDown:q=>{I==null||I(q),q.nativeEvent.code==="Space"&&Y&&(q.preventDefault(),B(!H))},unstyled:l,mod:[{disabled:g,active:v,expanded:H},k],...L,children:[S&&b.jsx(je,{component:"span",...F("section"),mod:{position:"left"},children:S}),b.jsxs(je,{...F("body"),mod:{"no-wrap":M},children:[b.jsx(je,{component:"span",...F("label"),children:_}),b.jsx(je,{component:"span",mod:{active:v},...F("description"),children:E})]}),(Y||w!==void 0)&&b.jsx(je,{...F("section"),component:"span",mod:{rotate:H&&!T,position:"right"},children:Y?w!==void 0?w:b.jsx(Tv,{...F("chevron")}):w})]}),Y&&b.jsx(H4,{in:H,...F("collapse"),children:b.jsx("div",{...F("children"),children:p})})]})});bx.classes=c$;bx.displayName="@mantine/core/NavLink";var u$={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const NX={withCloseButton:!0},IX=(t,{radius:e,color:n})=>({root:{"--notification-radius":e===void 0?void 0:_r(e),"--notification-color":n?dr(n,t):void 0}}),k7=Ve((t,e)=>{const n=Ae("Notification",NX,t),{className:r,color:o,radius:s,loading:i,withCloseButton:l,withBorder:c,title:d,icon:f,children:h,onClose:p,closeButtonProps:v,classNames:g,style:S,styles:w,unstyled:_,vars:E,mod:T,loaderProps:M,role:j,attributes:A,...k}=n,R=pt({name:"Notification",classes:u$,props:n,className:r,style:S,classNames:g,styles:w,unstyled:_,attributes:A,vars:E,varsResolver:IX});return b.jsxs(je,{...R("root"),mod:[{"data-with-icon":!!f||i,"data-with-border":c},T],ref:e,role:j||"alert",...k,children:[f&&!i&&b.jsx("div",{...R("icon"),children:f}),i&&b.jsx(va,{size:28,color:o,...M,...R("loader")}),b.jsxs("div",{...R("body"),children:[d&&b.jsx("div",{...R("title"),children:d}),b.jsx(je,{...R("description"),mod:{"data-with-title":!!d},children:h})]}),l&&b.jsx(al,{iconSize:16,color:"gray",...v,unstyled:_,onClick:p,...R("closeButton")})]})});k7.classes=u$;k7.displayName="@mantine/core/Notification";var E9={root:"m_f61ca620",input:"m_ccf8da4c",innerInput:"m_f2d85dd2",visibilityToggle:"m_b1072d44"};const $X=({reveal:t})=>b.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:b.jsx("path",{d:t?"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"})}),LX={visibilityToggleIcon:$X},FX=(t,{size:e})=>({root:{"--psi-icon-size":an(e,"psi-icon-size"),"--psi-button-size":an(e,"psi-button-size")}}),M7=Ve((t,e)=>{const n=Ae("PasswordInput",LX,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,required:d,error:f,leftSection:h,disabled:p,id:v,variant:g,inputContainer:S,description:w,label:_,size:E,errorProps:T,descriptionProps:M,labelProps:j,withAsterisk:A,inputWrapperOrder:k,wrapperProps:R,radius:N,rightSection:I,rightSectionWidth:L,rightSectionPointerEvents:F,leftSectionWidth:H,visible:B,defaultVisible:Y,onVisibilityChange:U,visibilityToggleIcon:q,visibilityToggleButtonProps:z,rightSectionProps:W,leftSectionProps:K,leftSectionPointerEvents:G,withErrorStyles:X,mod:J,attributes:ne,...se}=n,ie=Si(v),[oe,de]=Wi({value:B,defaultValue:Y,finalValue:!1,onChange:U}),pe=()=>de(!oe),fe=pt({name:"PasswordInput",classes:E9,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:ne,vars:c,varsResolver:FX}),{resolvedClassNames:Te,resolvedStyles:we}=cp({classNames:r,styles:i,props:n}),{styleProps:_e,rest:De}=lg(se),Ze=(T==null?void 0:T.id)||`${ie}-error`,ze=(M==null?void 0:M.id)||`${ie}-description`,ot=`${!!f&&typeof f!="boolean"?Ze:""} ${!!w?ze:""}`,st=ot.trim().length>0?ot.trim():void 0,mt=b.jsx(lr,{...fe("visibilityToggle"),disabled:p,radius:N,"aria-hidden":!z,"aria-pressed":oe,tabIndex:-1,...z,variant:(z==null?void 0:z.variant)??"subtle",color:"gray",unstyled:l,onTouchEnd:bt=>{var At;bt.preventDefault(),(At=z==null?void 0:z.onTouchEnd)==null||At.call(z,bt),pe()},onMouseDown:bt=>{var At;bt.preventDefault(),(At=z==null?void 0:z.onMouseDown)==null||At.call(z,bt),pe()},onKeyDown:bt=>{var At;(At=z==null?void 0:z.onKeyDown)==null||At.call(z,bt),bt.key===" "&&(bt.preventDefault(),pe())},children:b.jsx(q,{reveal:oe})});return b.jsx(qr.Wrapper,{required:d,id:ie,label:_,error:f,description:w,size:E,classNames:Te,styles:we,__staticSelector:"PasswordInput",unstyled:l,withAsterisk:A,inputWrapperOrder:k,inputContainer:S,variant:g,labelProps:{...j,htmlFor:ie},descriptionProps:{...M,id:ze},errorProps:{...T,id:Ze},mod:J,attributes:ne,...fe("root"),..._e,...R,children:b.jsx(qr,{component:"div",error:f,leftSection:h,size:E,classNames:{...Te,input:Dr(E9.input,Te.input)},styles:we,radius:N,disabled:p,__staticSelector:"PasswordInput",rightSectionWidth:L,rightSection:I??mt,variant:g,unstyled:l,leftSectionWidth:H,rightSectionPointerEvents:F||"all",rightSectionProps:W,leftSectionProps:K,leftSectionPointerEvents:G,withAria:!1,withErrorStyles:X,attributes:ne,children:b.jsx("input",{required:d,"data-invalid":!!f||void 0,"data-with-left-section":!!h||void 0,...fe("innerInput"),disabled:p,id:ie,ref:e,...De,"aria-describedby":st,autoComplete:De.autoComplete||"off",type:oe?"text":"password"})})})});M7.classes={...Zd.classes,...E9};M7.displayName="@mantine/core/PasswordInput";const zX={duration:100,transition:"fade"};function cj(t,e){return{...zX,...e,...t}}var Sx={tooltip:"m_1b3c8819",arrow:"m_f898399f"};function UX({offset:t,position:e,defaultOpened:n}){const[r,o]=D.useState(n),s=D.useRef(null),{x:i,y:l,elements:c,refs:d,update:f,placement:h}=Q4({placement:e,middleware:[vT({crossAxis:!0,padding:5,rootBoundary:"document"})]}),p=h.includes("right")?t:e.includes("left")?t*-1:0,v=h.includes("bottom")?t:e.includes("top")?t*-1:0,g=D.useCallback(({clientX:S,clientY:w})=>{d.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:S,y:w,left:S+p,top:w+v,right:S,bottom:w}}})},[c.reference]);return D.useEffect(()=>{if(d.floating.current){const S=s.current;S.addEventListener("mousemove",g);const w=Zc(d.floating.current);return w.forEach(_=>{_.addEventListener("scroll",f)}),()=>{S.removeEventListener("mousemove",g),w.forEach(_=>{_.removeEventListener("scroll",f)})}}},[c.reference,d.floating.current,f,g,r]),{handleMouseMove:g,x:i,y:l,opened:r,setOpened:o,boundaryRef:s,floating:d.setFloating}}const BX={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:Go("popover")},HX=(t,{radius:e,color:n})=>({tooltip:{"--tooltip-radius":e===void 0?void 0:_r(e),"--tooltip-bg":n?dr(n,t):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),j7=Ve((t,e)=>{const n=Ae("TooltipFloating",BX,t),{children:r,refProp:o,withinPortal:s,style:i,className:l,classNames:c,styles:d,unstyled:f,radius:h,color:p,label:v,offset:g,position:S,multiline:w,zIndex:_,disabled:E,defaultOpened:T,variant:M,vars:j,portalProps:A,attributes:k,...R}=n,N=Lr(),I=pt({name:"TooltipFloating",props:n,classes:Sx,className:l,style:i,classNames:c,styles:d,unstyled:f,attributes:k,rootSelector:"tooltip",vars:j,varsResolver:HX}),{handleMouseMove:L,x:F,y:H,opened:B,boundaryRef:Y,floating:U,setOpened:q}=UX({offset:g,position:S,defaultOpened:T}),z=Qd(r);if(!z)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 W=Eo(Y,L4(z),e),K=z.props,G=J=>{var ne;(ne=K.onMouseEnter)==null||ne.call(K,J),L(J),q(!0)},X=J=>{var ne;(ne=K.onMouseLeave)==null||ne.call(K,J),q(!1)};return b.jsxs(b.Fragment,{children:[b.jsx($d,{...A,withinPortal:s,children:b.jsx(je,{...R,...I("tooltip",{style:{...dT(i,N),zIndex:_,display:!E&&B?"block":"none",top:(H&&Math.round(H))??"",left:(F&&Math.round(F))??""}}),variant:M,ref:U,mod:{multiline:w},children:v})}),D.cloneElement(z,{...K,[o]:W,onMouseEnter:G,onMouseLeave:X})]})});j7.classes=Sx;j7.displayName="@mantine/core/TooltipFloating";const d$=D.createContext(!1),qX=d$.Provider,VX=()=>D.useContext(d$),YX={openDelay:0,closeDelay:0};function D7(t){const{openDelay:e,closeDelay:n,children:r}=Ae("TooltipGroup",YX,t);return b.jsx(qX,{value:!0,children:b.jsx(HN,{delay:{open:e,close:n},children:r})})}D7.displayName="@mantine/core/TooltipGroup";D7.extend=t=>t;function GX(t){if(t===void 0)return{shift:!0,flip:!0};const e={...t};return t.shift===void 0&&(e.shift=!0),t.flip===void 0&&(e.flip=!0),e}function WX(t){const e=GX(t.middlewares),n=[$N(t.offset)];return e.shift&&n.push(vT(typeof e.shift=="boolean"?{padding:8}:{padding:8,...e.shift})),e.flip&&n.push(typeof e.flip=="boolean"?Dw():Dw(e.flip)),n.push(LN({element:t.arrowRef,padding:t.arrowOffset})),e.inline?n.push(typeof e.inline=="boolean"?iv():iv(e.inline)):t.inline&&n.push(iv()),n}function QX(t){var j,A,k;const[e,n]=D.useState(t.defaultOpened),o=typeof t.opened=="boolean"?t.opened:e,s=VX(),i=Si(),l=D.useCallback(R=>{n(R),R&&_(i)},[i]),{x:c,y:d,context:f,refs:h,placement:p,middlewareData:{arrow:{x:v,y:g}={}}}=Q4({strategy:t.strategy,placement:t.position,open:o,onOpenChange:l,middleware:WX(t),whileElementsMounted:S9}),{delay:S,currentId:w,setCurrentId:_}=qN(f,{id:i}),{getReferenceProps:E,getFloatingProps:T}=YN([UN(f,{enabled:(j=t.events)==null?void 0:j.hover,delay:s?S:{open:t.openDelay,close:t.closeDelay},mouseOnly:!((A=t.events)!=null&&A.touch)}),DW(f,{enabled:(k=t.events)==null?void 0:k.focus,visibleOnly:!0}),GN(f,{role:"tooltip"}),VN(f,{enabled:typeof t.opened>"u"})]);Gh(()=>{var R;(R=t.onPositionChange)==null||R.call(t,p)},[p]);const M=o&&w&&w!==i;return{x:c,y:d,arrowX:v,arrowY:g,reference:h.setReference,floating:h.setFloating,getFloatingProps:T,getReferenceProps:E,isGroupPhase:M,opened:o,placement:p}}const uj={position:"top",refProp:"ref",withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:Go("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},KX=(t,{radius:e,color:n,variant:r,autoContrast:o})=>{const s=t.variantColorResolver({theme:t,color:n||t.primaryColor,autoContrast:o,variant:r||"filled"});return{tooltip:{"--tooltip-radius":e===void 0?void 0:_r(e),"--tooltip-bg":n?s.background:void 0,"--tooltip-color":n?s.color:void 0}}},yi=Ve((t,e)=>{const n=Ae("Tooltip",uj,t),{children:r,position:o,refProp:s,label:i,openDelay:l,closeDelay:c,onPositionChange:d,opened:f,defaultOpened:h,withinPortal:p,radius:v,color:g,classNames:S,styles:w,unstyled:_,style:E,className:T,withArrow:M,arrowSize:j,arrowOffset:A,arrowRadius:k,arrowPosition:R,offset:N,transitionProps:I,multiline:L,events:F,zIndex:H,disabled:B,positionDependencies:Y,onClick:U,onMouseEnter:q,onMouseLeave:z,inline:W,variant:K,keepMounted:G,vars:X,portalProps:J,mod:ne,floatingStrategy:se,middlewares:ie,autoContrast:oe,attributes:de,target:pe,...fe}=Ae("Tooltip",uj,n),{dir:Te}=Kd(),we=D.useRef(null),_e=QX({position:cI(Te,o),closeDelay:c,openDelay:l,onPositionChange:d,opened:f,defaultOpened:h,events:F,arrowRef:we,arrowOffset:A,offset:typeof N=="number"?N+(M?j/2:0):N,positionDependencies:[...Y,pe??r],inline:W,strategy:se,middlewares:ie});D.useEffect(()=>{const ot=pe instanceof HTMLElement?pe:typeof pe=="string"?document.querySelector(pe):(pe==null?void 0:pe.current)||null;ot&&_e.reference(ot)},[pe,_e]);const De=pt({name:"Tooltip",props:n,classes:Sx,className:T,style:E,classNames:S,styles:w,unstyled:_,attributes:de,rootSelector:"tooltip",vars:X,varsResolver:KX}),Ze=Qd(r);if(!pe&&!Ze)return null;if(pe){const ot=cj(I,{duration:100,transition:"fade"});return b.jsx(b.Fragment,{children:b.jsx($d,{...J,withinPortal:p,children:b.jsx(sc,{...ot,keepMounted:G,mounted:!B&&!!_e.opened,duration:_e.isGroupPhase?10:ot.duration,children:st=>b.jsxs(je,{...fe,"data-fixed":se==="fixed"||void 0,variant:K,mod:[{multiline:L},ne],..._e.getFloatingProps({ref:_e.floating,className:De("tooltip").className,style:{...De("tooltip").style,...st,zIndex:H,top:_e.y??0,left:_e.x??0}}),children:[i,b.jsx(Rw,{ref:we,arrowX:_e.arrowX,arrowY:_e.arrowY,visible:M,position:_e.placement,arrowSize:j,arrowOffset:A,arrowRadius:k,arrowPosition:R,...De("arrow")})]})})})})}const ze=Ze.props,Xe=Eo(_e.reference,L4(Ze),e),Ke=cj(I,{duration:100,transition:"fade"});return b.jsxs(b.Fragment,{children:[b.jsx($d,{...J,withinPortal:p,children:b.jsx(sc,{...Ke,keepMounted:G,mounted:!B&&!!_e.opened,duration:_e.isGroupPhase?10:Ke.duration,children:ot=>b.jsxs(je,{...fe,"data-fixed":se==="fixed"||void 0,variant:K,mod:[{multiline:L},ne],..._e.getFloatingProps({ref:_e.floating,className:De("tooltip").className,style:{...De("tooltip").style,...ot,zIndex:H,top:_e.y??0,left:_e.x??0}}),children:[i,b.jsx(Rw,{ref:we,arrowX:_e.arrowX,arrowY:_e.arrowY,visible:M,position:_e.placement,arrowSize:j,arrowOffset:A,arrowRadius:k,arrowPosition:R,...De("arrow")})]})})}),D.cloneElement(Ze,_e.getReferenceProps({onClick:U,onMouseEnter:q,onMouseLeave:z,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,...ze,className:Dr(T,ze.className),[s]:Xe}))]})});yi.classes=Sx;yi.displayName="@mantine/core/Tooltip";yi.Floating=j7;yi.Group=D7;var f$={container:"m_925c2d2c",root:"m_2415a157"};function XX({spacing:t,verticalSpacing:e,cols:n,selector:r}){var f;const o=Lr(),s=e===void 0?t:e,i=Yd({"--sg-spacing-x":co(Wa(t)),"--sg-spacing-y":co(Wa(s)),"--sg-cols":(f=Wa(n))==null?void 0:f.toString()}),l=yr(o.breakpoints).reduce((h,p)=>(h[p]||(h[p]={}),typeof t=="object"&&t[p]!==void 0&&(h[p]["--sg-spacing-x"]=co(t[p])),typeof s=="object"&&s[p]!==void 0&&(h[p]["--sg-spacing-y"]=co(s[p])),typeof n=="object"&&n[p]!==void 0&&(h[p]["--sg-cols"]=n[p]),h),{}),d=xv(yr(l),o.breakpoints).filter(h=>yr(l[h.value]).length>0).map(h=>({query:`(min-width: ${o.breakpoints[h.value]})`,styles:l[h.value]}));return b.jsx(up,{styles:i,media:d,selector:r})}function m_(t){return typeof t=="object"&&t!==null?yr(t):[]}function ZX(t){return t.sort((e,n)=>wv(e)-wv(n))}function JX({spacing:t,verticalSpacing:e,cols:n}){const r=Array.from(new Set([...m_(t),...m_(e),...m_(n)]));return ZX(r)}function eZ({spacing:t,verticalSpacing:e,cols:n,selector:r}){var d;const o=e===void 0?t:e,s=Yd({"--sg-spacing-x":co(Wa(t)),"--sg-spacing-y":co(Wa(o)),"--sg-cols":(d=Wa(n))==null?void 0:d.toString()}),i=JX({spacing:t,verticalSpacing:e,cols:n}),l=i.reduce((f,h)=>(f[h]||(f[h]={}),typeof t=="object"&&t[h]!==void 0&&(f[h]["--sg-spacing-x"]=co(t[h])),typeof o=="object"&&o[h]!==void 0&&(f[h]["--sg-spacing-y"]=co(o[h])),typeof n=="object"&&n[h]!==void 0&&(f[h]["--sg-cols"]=n[h]),f),{}),c=i.map(f=>({query:`simple-grid (min-width: ${f})`,styles:l[f]}));return b.jsx(up,{styles:s,container:c,selector:r})}const tZ={cols:1,spacing:"md",type:"media"},A7=Ve((t,e)=>{const n=Ae("SimpleGrid",tZ,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,cols:d,verticalSpacing:f,spacing:h,type:p,attributes:v,...g}=n,S=pt({name:"SimpleGrid",classes:f$,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:v,vars:c}),w=a2();return p==="container"?b.jsxs(b.Fragment,{children:[b.jsx(eZ,{...n,selector:`.${w}`}),b.jsx("div",{...S("container"),children:b.jsx(je,{ref:e,...S("root",{className:w}),...g})})]}):b.jsxs(b.Fragment,{children:[b.jsx(XX,{...n,selector:`.${w}`}),b.jsx(je,{ref:e,...S("root",{className:w}),...g})]})});A7.classes=f$;A7.displayName="@mantine/core/SimpleGrid";var h$={root:"m_18320242","skeleton-fade":"m_299c329c"};const nZ={visible:!0,animate:!0},rZ=(t,{width:e,height:n,radius:r,circle:o})=>({root:{"--skeleton-height":Pe(n),"--skeleton-width":Pe(o?n:e),"--skeleton-radius":o?"1000px":r===void 0?void 0:_r(r)}}),it=Ve((t,e)=>{const n=Ae("Skeleton",nZ,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,width:d,height:f,circle:h,visible:p,radius:v,animate:g,mod:S,attributes:w,..._}=n,E=pt({name:"Skeleton",classes:h$,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:w,vars:c,varsResolver:rZ});return b.jsx(je,{ref:e,...E("root"),mod:[{visible:p,animate:g},S],..._})});it.classes=h$;it.displayName="@mantine/core/Skeleton";const Xh=Ve((t,e)=>{const{w:n,h:r,miw:o,mih:s,...i}=Ae("Space",null,t);return b.jsx(je,{ref:e,...i,w:n,miw:o??n,h:r,mih:s??r})});Xh.displayName="@mantine/core/Space";var p$={root:"m_6d731127"};const oZ={gap:"md",align:"stretch",justify:"flex-start"},sZ=(t,{gap:e,align:n,justify:r})=>({root:{"--stack-gap":co(e),"--stack-align":n,"--stack-justify":r}}),_t=Ve((t,e)=>{const n=Ae("Stack",oZ,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,align:d,justify:f,gap:h,variant:p,attributes:v,...g}=n,S=pt({name:"Stack",props:n,classes:p$,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:v,vars:c,varsResolver:sZ});return b.jsx(je,{ref:e,...S("root"),variant:p,...g})});_t.classes=p$;_t.displayName="@mantine/core/Stack";var m$={root:"m_5f93f3bb",input:"m_926b4011",track:"m_9307d992",thumb:"m_93039a1d",trackLabel:"m_8277e082"};const g$=D.createContext(null),iZ=g$.Provider,aZ=()=>D.useContext(g$),R7=Ve((t,e)=>{const{value:n,defaultValue:r,onChange:o,size:s,wrapperProps:i,children:l,readOnly:c,disabled:d,...f}=Ae("SwitchGroup",null,t),[h,p]=Wi({value:n,defaultValue:r,finalValue:[],onChange:o}),v=g=>{const S=g.currentTarget.value;!c&&p(h.includes(S)?h.filter(w=>w!==S):[...h,S])};return b.jsx(iZ,{value:{value:h,onChange:v,size:s,disabled:d},children:b.jsx(qr.Wrapper,{size:s,ref:e,...i,...f,labelElement:"div",__staticSelector:"SwitchGroup",children:b.jsx(zI,{role:"group",children:l})})})});R7.classes=qr.Wrapper.classes;R7.displayName="@mantine/core/SwitchGroup";const lZ={labelPosition:"right",withThumbIndicator:!0},cZ=(t,{radius:e,color:n,size:r})=>({root:{"--switch-radius":e===void 0?void 0:_r(e),"--switch-height":an(r,"switch-height"),"--switch-width":an(r,"switch-width"),"--switch-thumb-size":an(r,"switch-thumb-size"),"--switch-label-font-size":an(r,"switch-label-font-size"),"--switch-track-label-padding":an(r,"switch-track-label-padding"),"--switch-color":n?dr(n,t):void 0}}),Yc=Ve((t,e)=>{const n=Ae("Switch",lZ,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,color:d,label:f,offLabel:h,onLabel:p,id:v,size:g,radius:S,wrapperProps:w,thumbIcon:_,checked:E,defaultChecked:T,onChange:M,labelPosition:j,description:A,error:k,disabled:R,variant:N,rootRef:I,mod:L,withThumbIndicator:F,attributes:H,...B}=n,Y=aZ(),U=g||(Y==null?void 0:Y.size),q=pt({name:"Switch",props:n,classes:m$,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:H,vars:c,varsResolver:cZ}),{styleProps:z,rest:W}=lg(B),K=Si(v),G={checked:(Y==null?void 0:Y.value.includes(W.value))??E,onChange:ne=>{Y==null||Y.onChange(ne),M==null||M(ne)},disabled:(Y==null?void 0:Y.disabled)??R},[X,J]=Wi({value:G.checked??E,defaultValue:T,finalValue:!1});return b.jsxs(e7,{...q("root"),__staticSelector:"Switch",__stylesApiProps:n,id:K,size:U,labelPosition:j,label:f,description:A,error:k,disabled:G.disabled,bodyElement:"label",labelElement:"span",classNames:r,styles:i,unstyled:l,"data-checked":G.checked,variant:N,ref:I,mod:L,...z,...w,children:[b.jsx("input",{...W,...G,checked:X,"data-checked":G.checked,onChange:ne=>{var se;(se=G.onChange)==null||se.call(G,ne),J(ne.currentTarget.checked)},id:K,ref:e,type:"checkbox",role:"switch",...q("input")}),b.jsxs(je,{"aria-hidden":"true",component:"span",mod:{error:k,"label-position":j,"without-labels":!p&&!h},...q("track"),children:[b.jsx(je,{component:"span",mod:{"reduce-motion":!0,"with-thumb-indicator":F&&!_},...q("thumb"),children:_}),b.jsx("span",{...q("trackLabel"),children:X?p:h})]})]})});Yc.classes={...m$,...NI};Yc.displayName="@mantine/core/Switch";Yc.Group=R7;const[uZ,dZ]=bi("Table component was not found in the tree");var h2={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 fZ(t,e){if(!e)return;const n={};return e.columnBorder&&t.withColumnBorders&&(n["data-with-column-border"]=!0),e.rowBorder&&t.withRowBorders&&(n["data-with-row-border"]=!0),e.striped&&t.striped&&(n["data-striped"]=t.striped),e.highlightOnHover&&t.highlightOnHover&&(n["data-hover"]=!0),e.captionSide&&t.captionSide&&(n["data-side"]=t.captionSide),e.stickyHeader&&t.stickyHeader&&(n["data-sticky"]=!0),n}function hp(t,e){const n=`Table${t.charAt(0).toUpperCase()}${t.slice(1)}`,r=Ve((o,s)=>{const i=Ae(n,{},o),{classNames:l,className:c,style:d,styles:f,...h}=i,p=dZ();return b.jsx(je,{component:t,ref:s,...fZ(p,e),...p.getStyles(t,{className:c,classNames:l,style:d,styles:f,props:i}),...h})});return r.displayName=`@mantine/core/${n}`,r.classes=h2,r}const k9=hp("th",{columnBorder:!0}),y$=hp("td",{columnBorder:!0}),tw=hp("tr",{rowBorder:!0,striped:!0,highlightOnHover:!0}),v$=hp("thead",{stickyHeader:!0}),b$=hp("tbody"),S$=hp("tfoot"),w$=hp("caption",{captionSide:!0});function O7({data:t}){return b.jsxs(b.Fragment,{children:[t.caption&&b.jsx(w$,{children:t.caption}),t.head&&b.jsx(v$,{children:b.jsx(tw,{children:t.head.map((e,n)=>b.jsx(k9,{children:e},n))})}),t.body&&b.jsx(b$,{children:t.body.map((e,n)=>b.jsx(tw,{children:e.map((r,o)=>b.jsx(y$,{children:r},o))},n))}),t.foot&&b.jsx(S$,{children:b.jsx(tw,{children:t.foot.map((e,n)=>b.jsx(k9,{children:e},n))})})]})}O7.displayName="@mantine/core/TableDataRenderer";const hZ={type:"scrollarea"},pZ=(t,{minWidth:e,maxHeight:n,type:r})=>({scrollContainer:{"--table-min-width":Pe(e),"--table-max-height":Pe(n),"--table-overflow":r==="native"?"auto":void 0}}),P7=Ve((t,e)=>{const n=Ae("TableScrollContainer",hZ,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,children:d,minWidth:f,maxHeight:h,type:p,scrollAreaProps:v,attributes:g,...S}=n,w=pt({name:"TableScrollContainer",classes:h2,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:g,vars:c,varsResolver:pZ,rootSelector:"scrollContainer"});return b.jsx(je,{component:p==="scrollarea"?Hi:"div",...p==="scrollarea"?h?{offsetScrollbars:"xy",...v}:{offsetScrollbars:"x",...v}:{},ref:e,...w("scrollContainer"),...S,children:b.jsx("div",{...w("scrollContainerInner"),children:d})})});P7.classes=h2;P7.displayName="@mantine/core/TableScrollContainer";const mZ={withRowBorders:!0,verticalSpacing:7},gZ=(t,{layout:e,captionSide:n,horizontalSpacing:r,verticalSpacing:o,borderColor:s,stripedColor:i,highlightOnHoverColor:l,striped:c,highlightOnHover:d,stickyHeaderOffset:f,stickyHeader:h})=>({table:{"--table-layout":e,"--table-caption-side":n,"--table-horizontal-spacing":co(r),"--table-vertical-spacing":co(o),"--table-border-color":s?dr(s,t):void 0,"--table-striped-color":c&&i?dr(i,t):void 0,"--table-highlight-on-hover-color":d&&l?dr(l,t):void 0,"--table-sticky-header-offset":h?Pe(f):void 0}}),us=Ve((t,e)=>{const n=Ae("Table",mZ,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,horizontalSpacing:d,verticalSpacing:f,captionSide:h,stripedColor:p,highlightOnHoverColor:v,striped:g,highlightOnHover:S,withColumnBorders:w,withRowBorders:_,withTableBorder:E,borderColor:T,layout:M,variant:j,data:A,children:k,stickyHeader:R,stickyHeaderOffset:N,mod:I,tabularNums:L,attributes:F,...H}=n,B=pt({name:"Table",props:n,className:o,style:s,classes:h2,classNames:r,styles:i,unstyled:l,attributes:F,rootSelector:"table",vars:c,varsResolver:gZ});return b.jsx(uZ,{value:{getStyles:B,stickyHeader:R,striped:g===!0?"odd":g||void 0,highlightOnHover:S,withColumnBorders:w,withRowBorders:_,captionSide:h||"bottom"},children:b.jsx(je,{component:"table",variant:j,ref:e,mod:[{"data-with-table-border":E,"data-tabular-nums":L},I],...B("table"),...H,children:k||!!A&&b.jsx(O7,{data:A})})})});us.classes=h2;us.displayName="@mantine/core/Table";us.Td=y$;us.Th=k9;us.Tr=tw;us.Thead=v$;us.Tbody=b$;us.Tfoot=S$;us.Caption=w$;us.ScrollContainer=P7;us.DataRenderer=O7;const[yZ,N7]=bi("Tabs component was not found in the tree");var p2={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",tab:"m_4ec4dce6",panel:"m_b0c91715",tabSection:"m_fc420b1f",tabLabel:"m_42bbd1ae","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const I7=Ve((t,e)=>{const n=Ae("TabsList",null,t),{children:r,className:o,grow:s,justify:i,classNames:l,styles:c,style:d,mod:f,...h}=n,p=N7();return b.jsx(je,{...h,...p.getStyles("list",{className:o,style:d,classNames:l,styles:c,props:n,variant:p.variant}),ref:e,role:"tablist",variant:p.variant,mod:[{grow:s,orientation:p.orientation,placement:p.orientation==="vertical"&&p.placement,inverted:p.inverted},f],"aria-orientation":p.orientation,__vars:{"--tabs-justify":i},children:r})});I7.classes=p2;I7.displayName="@mantine/core/TabsList";const $7=Ve((t,e)=>{const n=Ae("TabsPanel",null,t),{children:r,className:o,value:s,classNames:i,styles:l,style:c,mod:d,keepMounted:f,...h}=n,p=N7(),v=p.value===s,g=p.keepMounted||f||v?r:null;return b.jsx(je,{...p.getStyles("panel",{className:o,classNames:i,styles:l,style:[c,v?void 0:{display:"none"}],props:n}),ref:e,mod:[{orientation:p.orientation},d],role:"tabpanel",id:p.getPanelId(s),"aria-labelledby":p.getTabId(s),...h,children:g})});$7.classes=p2;$7.displayName="@mantine/core/TabsPanel";const L7=Ve((t,e)=>{const n=Ae("TabsTab",null,t),{className:r,children:o,rightSection:s,leftSection:i,value:l,onClick:c,onKeyDown:d,disabled:f,color:h,style:p,classNames:v,styles:g,vars:S,mod:w,tabIndex:_,...E}=n,T=Lr(),{dir:M}=Kd(),j=N7(),A=l===j.value,k=N=>{j.onChange(j.allowTabDeactivation&&l===j.value?null:l),c==null||c(N)},R={classNames:v,styles:g,props:n};return b.jsxs(Yo,{...j.getStyles("tab",{className:r,style:p,variant:j.variant,...R}),disabled:f,unstyled:j.unstyled,variant:j.variant,mod:[{active:A,disabled:f,orientation:j.orientation,inverted:j.inverted,placement:j.orientation==="vertical"&&j.placement},w],ref:e,role:"tab",id:j.getTabId(l),"aria-selected":A,tabIndex:_!==void 0?_:A||j.value===null?0:-1,"aria-controls":j.getPanelId(l),onClick:k,__vars:{"--tabs-color":h?dr(h,T):void 0},onKeyDown:nT({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:j.activateTabWithKeyboard,loop:j.loop,orientation:j.orientation||"horizontal",dir:M,onKeyDown:d}),...E,children:[i&&b.jsx("span",{...j.getStyles("tabSection",R),"data-position":"left",children:i}),o&&b.jsx("span",{...j.getStyles("tabLabel",R),children:o}),s&&b.jsx("span",{...j.getStyles("tabSection",R),"data-position":"right",children:s})]})});L7.classes=p2;L7.displayName="@mantine/core/TabsTab";const dj="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",vZ={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},bZ=(t,{radius:e,color:n,autoContrast:r})=>({root:{"--tabs-radius":_r(e),"--tabs-color":dr(n,t),"--tabs-text-color":B4(r,t)?s2({color:n,theme:t,autoContrast:r}):void 0}}),Ga=Ve((t,e)=>{const n=Ae("Tabs",vZ,t),{defaultValue:r,value:o,onChange:s,orientation:i,children:l,loop:c,id:d,activateTabWithKeyboard:f,allowTabDeactivation:h,variant:p,color:v,radius:g,inverted:S,placement:w,keepMounted:_,classNames:E,styles:T,unstyled:M,className:j,style:A,vars:k,autoContrast:R,mod:N,attributes:I,...L}=n,F=Si(d),[H,B]=Wi({value:o,defaultValue:r,finalValue:null,onChange:s}),Y=pt({name:"Tabs",props:n,classes:p2,className:j,style:A,classNames:E,styles:T,unstyled:M,attributes:I,vars:k,varsResolver:bZ});return b.jsx(yZ,{value:{placement:w,value:H,orientation:i,id:F,loop:c,activateTabWithKeyboard:f,getTabId:vM(`${F}-tab`,dj),getPanelId:vM(`${F}-panel`,dj),onChange:B,allowTabDeactivation:h,variant:p,color:v,radius:g,inverted:S,keepMounted:_,unstyled:M,getStyles:Y},children:b.jsx(je,{ref:e,id:F,variant:p,mod:[{orientation:i,inverted:i==="horizontal"&&S,placement:i==="vertical"&&w},N],...Y("root"),...L,children:l})})});Ga.classes=p2;Ga.displayName="@mantine/core/Tabs";Ga.Tab=L7;Ga.Panel=$7;Ga.List=I7;const Is=Ve((t,e)=>{const n=Ae("TextInput",null,t);return b.jsx(Zd,{component:"input",ref:e,...n,__staticSelector:"TextInput"})});Is.classes=Zd.classes;Is.displayName="@mantine/core/TextInput";var x$={root:"m_7341320d"};const SZ=(t,{size:e,radius:n,variant:r,gradient:o,color:s,autoContrast:i})=>{const l=t.variantColorResolver({color:s||t.primaryColor,theme:t,gradient:o,variant:r||"filled",autoContrast:i});return{root:{"--ti-size":an(e,"ti-size"),"--ti-radius":n===void 0?void 0:_r(n),"--ti-bg":s||r?l.background:void 0,"--ti-color":s||r?l.color:void 0,"--ti-bd":s||r?l.border:void 0}}},rf=Ve((t,e)=>{const n=Ae("ThemeIcon",null,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,autoContrast:d,attributes:f,...h}=n,p=pt({name:"ThemeIcon",classes:x$,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:f,vars:c,varsResolver:SZ});return b.jsx(je,{ref:e,...p("root"),...h})});rf.classes=x$;rf.displayName="@mantine/core/ThemeIcon";const wZ=["h1","h2","h3","h4","h5","h6"],xZ=["xs","sm","md","lg","xl"];function CZ(t,e){const n=e!==void 0?e:`h${t}`;return wZ.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:xZ.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${t}-font-weight)`,lineHeight:`var(--mantine-h${t}-line-height)`}:{fontSize:Pe(n),fontWeight:`var(--mantine-h${t}-font-weight)`,lineHeight:`var(--mantine-h${t}-line-height)`}}var C$={root:"m_8a5d1357"};const _Z={order:1},TZ=(t,{order:e,size:n,lineClamp:r,textWrap:o})=>{const s=CZ(e||1,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}}},bg=Ve((t,e)=>{const n=Ae("Title",_Z,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,order:c,vars:d,size:f,variant:h,lineClamp:p,textWrap:v,mod:g,attributes:S,...w}=n,_=pt({name:"Title",props:n,classes:C$,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:S,vars:d,varsResolver:TZ});return[1,2,3,4,5,6].includes(c)?b.jsx(je,{..._("root"),component:`h${c}`,variant:h,ref:e,mod:[{order:c,"data-line-clamp":typeof p=="number"},g],size:f,...w}):null});bg.classes=C$;bg.displayName="@mantine/core/Title";const ln=t=>typeof t=="string",Ny=()=>{let t,e;const n=new Promise((r,o)=>{t=r,e=o});return n.resolve=t,n.reject=e,n},fj=t=>t==null?"":""+t,EZ=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},kZ=/###/g,hj=t=>t&&t.indexOf("###")>-1?t.replace(kZ,"."):t,pj=t=>!t||ln(t),av=(t,e,n)=>{const r=ln(e)?e.split("."):e;let o=0;for(;o<r.length-1;){if(pj(t))return{};const s=hj(r[o]);!t[s]&&n&&(t[s]=new n),Object.prototype.hasOwnProperty.call(t,s)?t=t[s]:t={},++o}return pj(t)?{}:{obj:t,k:hj(r[o])}},mj=(t,e,n)=>{const{obj:r,k:o}=av(t,e,Object);if(r!==void 0||e.length===1){r[o]=n;return}let s=e[e.length-1],i=e.slice(0,e.length-1),l=av(t,i,Object);for(;l.obj===void 0&&i.length;)s=`${i[i.length-1]}.${s}`,i=i.slice(0,i.length-1),l=av(t,i,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${s}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${s}`]=n},MZ=(t,e,n,r)=>{const{obj:o,k:s}=av(t,e,Object);o[s]=o[s]||[],o[s].push(n)},Ow=(t,e)=>{const{obj:n,k:r}=av(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},jZ=(t,e,n)=>{const r=Ow(t,n);return r!==void 0?r:Ow(e,n)},_$=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?ln(t[r])||t[r]instanceof String||ln(e[r])||e[r]instanceof String?n&&(t[r]=e[r]):_$(t[r],e[r],n):t[r]=e[r]);return t},i1=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var DZ={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const AZ=t=>ln(t)?t.replace(/[&<>"'\/]/g,e=>DZ[e]):t;class RZ{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const OZ=[" ",",","?","!",";"],PZ=new RZ(20),NZ=(t,e,n)=>{e=e||"",n=n||"";const r=OZ.filter(i=>e.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const o=PZ.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let s=!o.test(t);if(!s){const i=t.indexOf(n);i>0&&!o.test(t.substring(0,i))&&(s=!0)}return s},M9=(t,e,n=".")=>{if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const r=e.split(n);let o=t;for(let s=0;s<r.length;){if(!o||typeof o!="object")return;let i,l="";for(let c=s;c<r.length;++c)if(c!==s&&(l+=n),l+=r[c],i=o[l],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&c<r.length-1)continue;s+=c-s+1;break}o=i}return o},Mv=t=>t==null?void 0:t.replace("_","-"),IZ={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){var n,r;(r=(n=console==null?void 0:console[t])==null?void 0:n.apply)==null||r.call(n,console,e)}};class Pw{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||IZ,this.options=n,this.debug=n.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,r,o){return o&&!this.debug?null:(ln(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new Pw(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Pw(this.logger,e)}}var Jl=new Pw;class wx{constructor(){this.observers={}}on(e,n){return e.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(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e,...n){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([o,s])=>{for(let i=0;i<s;i++)o(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,s])=>{for(let i=0;i<s;i++)o.apply(o,[e,...n])})}}class gj extends wx{constructor(e,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,r,o={}){var d,f;const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,i=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.indexOf(".")>-1?l=e.split("."):(l=[e,n],r&&(Array.isArray(r)?l.push(...r):ln(r)&&s?l.push(...r.split(s)):l.push(r)));const c=Ow(this.data,l);return!c&&!n&&!r&&e.indexOf(".")>-1&&(e=l[0],n=l[1],r=l.slice(2).join(".")),c||!i||!ln(r)?c:M9((f=(d=this.data)==null?void 0:d[e])==null?void 0:f[n],r,s)}addResource(e,n,r,o,s={silent:!1}){const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let l=[e,n];r&&(l=l.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(l=e.split("."),o=n,n=l[1]),this.addNamespaces(n),mj(this.data,l,o),s.silent||this.emit("added",e,n,r,o)}addResources(e,n,r,o={silent:!1}){for(const s in r)(ln(r[s])||Array.isArray(r[s]))&&this.addResource(e,n,s,r[s],{silent:!0});o.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,o,s,i={silent:!1,skipCopy:!1}){let l=[e,n];e.indexOf(".")>-1&&(l=e.split("."),o=r,r=n,n=l[1]),this.addNamespaces(n);let c=Ow(this.data,l)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?_$(c,r,s):c={...c,...r},mj(this.data,l,c),i.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var T$={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,o){return t.forEach(s=>{var i;e=((i=this.processors[s])==null?void 0:i.process(e,n,r,o))??e}),e}};const E$=Symbol("i18next/PATH_KEY");function $Z(){const t=[],e=Object.create(null);let n;return e.get=(r,o)=>{var s;return(s=n==null?void 0:n.revoke)==null||s.call(n),o===E$?t:(t.push(o),n=Proxy.revocable(r,e),n.proxy)},Proxy.revocable(Object.create(null),e).proxy}function j9(t,e){const{[E$]:n}=t($Z());return n.join((e==null?void 0:e.keySeparator)??".")}const yj={},g_=t=>!ln(t)&&typeof t!="boolean"&&typeof t!="number";class Nw extends wx{constructor(e,n={}){super(),EZ(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Jl.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,n={interpolation:{}}){const r={...n};if(e==null)return!1;const o=this.resolve(e,r);if((o==null?void 0:o.res)===void 0)return!1;const s=g_(o.res);return!(r.returnObjects===!1&&s)}extractFromKey(e,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&&e.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!NZ(e,r,o);if(i&&!l){const c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:ln(s)?[s]:s};const d=e.split(r);(r!==o||r===o&&this.options.ns.indexOf(d[0])>-1)&&(s=d.shift()),e=d.join(o)}return{key:e,namespaces:ln(s)?[s]:s}}translate(e,n,r){let o=typeof n=="object"?{...n}:n;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),e==null)return"";typeof e=="function"&&(e=j9(e,{...this.options,...o})),Array.isArray(e)||(e=[String(e)]);const s=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:l,namespaces:c}=this.extractFromKey(e[e.length-1],o),d=c[c.length-1];let f=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;f===void 0&&(f=":");const h=o.lng||this.language,p=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((h==null?void 0:h.toLowerCase())==="cimode")return p?s?{res:`${d}${f}${l}`,usedKey:l,exactUsedKey:l,usedLng:h,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:`${d}${f}${l}`:s?{res:l,usedKey:l,exactUsedKey:l,usedLng:h,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:l;const v=this.resolve(e,o);let g=v==null?void 0:v.res;const S=(v==null?void 0:v.usedKey)||l,w=(v==null?void 0:v.exactUsedKey)||l,_=["[object Number]","[object Function]","[object RegExp]"],E=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,T=!this.i18nFormat||this.i18nFormat.handleAsObject,M=o.count!==void 0&&!ln(o.count),j=Nw.hasDefaultValue(o),A=M?this.pluralResolver.getSuffix(h,o.count,o):"",k=o.ordinal&&M?this.pluralResolver.getSuffix(h,o.count,{ordinal:!1}):"",R=M&&!o.ordinal&&o.count===0,N=R&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${A}`]||o[`defaultValue${k}`]||o.defaultValue;let I=g;T&&!g&&j&&(I=N);const L=g_(I),F=Object.prototype.toString.apply(I);if(T&&I&&L&&_.indexOf(F)<0&&!(ln(E)&&Array.isArray(I))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const H=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,I,{...o,ns:c}):`key '${l} (${this.language})' returned an object instead of string.`;return s?(v.res=H,v.usedParams=this.getUsedParamsDetails(o),v):H}if(i){const H=Array.isArray(I),B=H?[]:{},Y=H?w:S;for(const U in I)if(Object.prototype.hasOwnProperty.call(I,U)){const q=`${Y}${i}${U}`;j&&!g?B[U]=this.translate(q,{...o,defaultValue:g_(N)?N[U]:void 0,joinArrays:!1,ns:c}):B[U]=this.translate(q,{...o,joinArrays:!1,ns:c}),B[U]===q&&(B[U]=I[U])}g=B}}else if(T&&ln(E)&&Array.isArray(g))g=g.join(E),g&&(g=this.extendTranslation(g,e,o,r));else{let H=!1,B=!1;!this.isValidLookup(g)&&j&&(H=!0,g=N),this.isValidLookup(g)||(B=!0,g=l);const U=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&B?void 0:g,q=j&&N!==g&&this.options.updateMissing;if(B||H||q){if(this.logger.log(q?"updateKey":"missingKey",h,d,l,q?N:g),i){const G=this.resolve(l,{...o,keySeparator:!1});G&&G.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 z=[];const W=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&W&&W[0])for(let G=0;G<W.length;G++)z.push(W[G]);else this.options.saveMissingTo==="all"?z=this.languageUtils.toResolveHierarchy(o.lng||this.language):z.push(o.lng||this.language);const K=(G,X,J)=>{var se;const ne=j&&J!==g?J:U;this.options.missingKeyHandler?this.options.missingKeyHandler(G,d,X,ne,q,o):(se=this.backendConnector)!=null&&se.saveMissing&&this.backendConnector.saveMissing(G,d,X,ne,q,o),this.emit("missingKey",G,d,X,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&M?z.forEach(G=>{const X=this.pluralResolver.getSuffixes(G,o);R&&o[`defaultValue${this.options.pluralSeparator}zero`]&&X.indexOf(`${this.options.pluralSeparator}zero`)<0&&X.push(`${this.options.pluralSeparator}zero`),X.forEach(J=>{K([G],l+J,o[`defaultValue${J}`]||N)})}):K(z,l,N))}g=this.extendTranslation(g,e,o,v,r),B&&g===l&&this.options.appendNamespaceToMissingKey&&(g=`${d}${f}${l}`),(B||H)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${f}${l}`:l,H?g:void 0,o))}return s?(v.res=g,v.usedParams=this.getUsedParamsDetails(o),v):g}extendTranslation(e,n,r,o,s){var c,d;if((c=this.i18nFormat)!=null&&c.parse)e=this.i18nFormat.parse(e,{...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 f=ln(e)&&(((d=r==null?void 0:r.interpolation)==null?void 0:d.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(f){const v=e.match(this.interpolator.nestingRegexp);h=v&&v.length}let p=r.replace&&!ln(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),e=this.interpolator.interpolate(e,p,r.lng||this.language||o.usedLng,r),f){const v=e.match(this.interpolator.nestingRegexp),g=v&&v.length;h<g&&(r.nest=!1)}!r.lng&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,(...v)=>(s==null?void 0:s[0])===v[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${n[0]}`),null):this.translate(...v,n),r)),r.interpolation&&this.interpolator.reset()}const i=r.postProcess||this.options.postProcess,l=ln(i)?[i]:i;return e!=null&&(l!=null&&l.length)&&r.applyPostProcessor!==!1&&(e=T$.handle(l,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,n={}){let r,o,s,i,l;return ln(e)&&(e=[e]),e.forEach(c=>{if(this.isValidLookup(r))return;const d=this.extractFromKey(c,n),f=d.key;o=f;let h=d.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const p=n.count!==void 0&&!ln(n.count),v=p&&!n.ordinal&&n.count===0,g=n.context!==void 0&&(ln(n.context)||typeof n.context=="number")&&n.context!=="",S=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(w=>{var _,E;this.isValidLookup(r)||(l=w,!yj[`${S[0]}-${w}`]&&((_=this.utils)!=null&&_.hasLoadedNamespace)&&!((E=this.utils)!=null&&E.hasLoadedNamespace(l))&&(yj[`${S[0]}-${w}`]=!0,this.logger.warn(`key "${o}" for languages "${S.join(", ")}" won't get resolved as namespace "${l}" 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!!!")),S.forEach(T=>{var A;if(this.isValidLookup(r))return;i=T;const M=[f];if((A=this.i18nFormat)!=null&&A.addLookupKeys)this.i18nFormat.addLookupKeys(M,f,T,w,n);else{let k;p&&(k=this.pluralResolver.getSuffix(T,n.count,n));const R=`${this.options.pluralSeparator}zero`,N=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(n.ordinal&&k.indexOf(N)===0&&M.push(f+k.replace(N,this.options.pluralSeparator)),M.push(f+k),v&&M.push(f+R)),g){const I=`${f}${this.options.contextSeparator||"_"}${n.context}`;M.push(I),p&&(n.ordinal&&k.indexOf(N)===0&&M.push(I+k.replace(N,this.options.pluralSeparator)),M.push(I+k),v&&M.push(I+R))}}let j;for(;j=M.pop();)this.isValidLookup(r)||(s=j,r=this.getResource(T,w,j,n))}))})}),{res:r,usedKey:o,exactUsedKey:s,usedLng:i,usedNS:l}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r,o={}){var s;return(s=this.i18nFormat)!=null&&s.getResource?this.i18nFormat.getResource(e,n,r,o):this.resourceStore.getResource(e,n,r,o)}getUsedParamsDetails(e={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!ln(e.replace);let o=r?e.replace:e;if(r&&typeof e.count<"u"&&(o.count=e.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(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}class vj{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Jl.create("languageUtils")}getScriptPartFromCode(e){if(e=Mv(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=Mv(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(ln(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&e.forEach(r=>{if(n)return;const o=this.getScriptPartFromCode(r);if(this.isSupportedCode(o))return n=o;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(i=>{if(i===s)return i;if(!(i.indexOf("-")<0&&s.indexOf("-")<0)&&(i.indexOf("-")>0&&s.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===s||i.indexOf(s)===0&&s.length>1))return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),ln(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],e),o=[],s=i=>{i&&(this.isSupportedCode(i)?o.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return ln(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):ln(e)&&s(this.formatLanguageCode(e)),r.forEach(i=>{o.indexOf(i)<0&&s(this.formatLanguageCode(i))}),o}}const bj={zero:0,one:1,two:2,few:3,many:4,other:5},Sj={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class LZ{constructor(e,n={}){this.languageUtils=e,this.options=n,this.logger=Jl.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,n={}){const r=Mv(e==="dev"?"en":e),o=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:o});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let i;try{i=new Intl.PluralRules(r,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Sj;if(!e.match(/-|_/))return Sj;const c=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(c,n)}return this.pluralRulesCache[s]=i,i}needsPlural(e,n={}){let r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,n,r={}){return this.getSuffixes(e,r).map(o=>`${n}${o}`)}getSuffixes(e,n={}){let r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((o,s)=>bj[o]-bj[s]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(e,n,r={}){const o=this.getRule(e,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,r))}}const wj=(t,e,n,r=".",o=!0)=>{let s=jZ(t,e,n);return!s&&o&&ln(n)&&(s=M9(t,n,r),s===void 0&&(s=M9(e,n,r))),s},y_=t=>t.replace(/\$/g,"$$$$");class xj{constructor(e={}){var n;this.logger=Jl.create("interpolator"),this.options=e,this.format=((n=e==null?void 0:e.interpolation)==null?void 0:n.format)||(r=>r),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:s,prefixEscaped:i,suffix:l,suffixEscaped:c,formatSeparator:d,unescapeSuffix:f,unescapePrefix:h,nestingPrefix:p,nestingPrefixEscaped:v,nestingSuffix:g,nestingSuffixEscaped:S,nestingOptionsSeparator:w,maxReplaces:_,alwaysFormat:E}=e.interpolation;this.escape=n!==void 0?n:AZ,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=s?i1(s):i||"{{",this.suffix=l?i1(l):c||"}}",this.formatSeparator=d||",",this.unescapePrefix=f?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=p?i1(p):v||i1("$t("),this.nestingSuffix=g?i1(g):S||i1(")"),this.nestingOptionsSeparator=w||",",this.maxReplaces=_||1e3,this.alwaysFormat=E!==void 0?E:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,n,r,o){var v;let s,i,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=g=>{if(g.indexOf(this.formatSeparator)<0){const E=wj(n,c,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(E,void 0,r,{...o,...n,interpolationkey:g}):E}const S=g.split(this.formatSeparator),w=S.shift().trim(),_=S.join(this.formatSeparator).trim();return this.format(wj(n,c,w,this.options.keySeparator,this.options.ignoreJSONStructure),_,r,{...o,...n,interpolationkey:w})};this.resetRegExp();const f=(o==null?void 0:o.missingInterpolationHandler)||this.options.missingInterpolationHandler,h=((v=o==null?void 0:o.interpolation)==null?void 0:v.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>y_(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?y_(this.escape(g)):y_(g)}].forEach(g=>{for(l=0;s=g.regex.exec(e);){const S=s[1].trim();if(i=d(S),i===void 0)if(typeof f=="function"){const _=f(e,s,o);i=ln(_)?_:""}else if(o&&Object.prototype.hasOwnProperty.call(o,S))i="";else if(h){i=s[0];continue}else this.logger.warn(`missed to pass in variable ${S} for interpolating ${e}`),i="";else!ln(i)&&!this.useRawValueToEscape&&(i=fj(i));const w=g.safeValue(i);if(e=e.replace(s[0],w),h?(g.regex.lastIndex+=i.length,g.regex.lastIndex-=s[0].length):g.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,n,r={}){let o,s,i;const l=(c,d)=>{const f=this.nestingOptionsSeparator;if(c.indexOf(f)<0)return c;const h=c.split(new RegExp(`${f}[ ]*{`));let p=`{${h[1]}`;c=h[0],p=this.interpolate(p,i);const v=p.match(/'/g),g=p.match(/"/g);(((v==null?void 0:v.length)??0)%2===0&&!g||g.length%2!==0)&&(p=p.replace(/'/g,'"'));try{i=JSON.parse(p),d&&(i={...d,...i})}catch(S){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,S),`${c}${f}${p}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,c};for(;o=this.nestingRegexp.exec(e);){let c=[];i={...r},i=i.replace&&!ln(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;const d=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(d!==-1&&(c=o[1].slice(d).split(this.formatSeparator).map(f=>f.trim()).filter(Boolean),o[1]=o[1].slice(0,d)),s=n(l.call(this,o[1].trim(),i),i),s&&o[0]===e&&!ln(s))return s;ln(s)||(s=fj(s)),s||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),s=""),c.length&&(s=c.reduce((f,h)=>this.format(f,h,r.lng,{...r,interpolationkey:o[1].trim()}),s.trim())),e=e.replace(o[0],s),this.regexp.lastIndex=0}return e}}const FZ=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);e==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):e==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(i=>{if(i){const[l,...c]=i.split(":"),d=c.join(":").trim().replace(/^'+|'+$/g,""),f=l.trim();n[f]||(n[f]=d),d==="false"&&(n[f]=!1),d==="true"&&(n[f]=!0),isNaN(d)||(n[f]=parseInt(d,10))}})}return{formatName:e,formatOptions:n}},Cj=t=>{const e={};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 l=e[i];return l||(l=t(Mv(r),o),e[i]=l),l(n)}},zZ=t=>(e,n,r)=>t(Mv(n),r)(e);class UZ{constructor(e={}){this.logger=Jl.create("formatter"),this.options=e,this.init(e)}init(e,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?Cj:zZ;this.formats={number:r((o,s)=>{const i=new Intl.NumberFormat(o,{...s});return l=>i.format(l)}),currency:r((o,s)=>{const i=new Intl.NumberFormat(o,{...s,style:"currency"});return l=>i.format(l)}),datetime:r((o,s)=>{const i=new Intl.DateTimeFormat(o,{...s});return l=>i.format(l)}),relativetime:r((o,s)=>{const i=new Intl.RelativeTimeFormat(o,{...s});return l=>i.format(l,s.range||"day")}),list:r((o,s)=>{const i=new Intl.ListFormat(o,{...s});return l=>i.format(l)})}}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=Cj(n)}format(e,n,r,o={}){const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(l=>l.indexOf(")")>-1)){const l=s.findIndex(c=>c.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,l)].join(this.formatSeparator)}return s.reduce((l,c)=>{var h;const{formatName:d,formatOptions:f}=FZ(c);if(this.formats[d]){let p=l;try{const v=((h=o==null?void 0:o.formatParams)==null?void 0:h[o.interpolationkey])||{},g=v.locale||v.lng||o.locale||o.lng||r;p=this.formats[d](l,g,{...f,...o,...v})}catch(v){this.logger.warn(v)}return p}else this.logger.warn(`there was no format function for ${d}`);return l},e)}}const BZ=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class HZ extends wx{constructor(e,n,r,o={}){var s,i;super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Jl.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=[],(i=(s=this.backend)==null?void 0:s.init)==null||i.call(s,r,o.backend,o)}queueLoad(e,n,r,o){const s={},i={},l={},c={};return e.forEach(d=>{let f=!0;n.forEach(h=>{const p=`${d}|${h}`;!r.reload&&this.store.hasResourceBundle(d,h)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?i[p]===void 0&&(i[p]=!0):(this.state[p]=1,f=!1,i[p]===void 0&&(i[p]=!0),s[p]===void 0&&(s[p]=!0),c[h]===void 0&&(c[h]=!0)))}),f||(l[d]=!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(l),toLoadNamespaces:Object.keys(c)}}loaded(e,n,r){const o=e.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[e]=n?-1:2,n&&r&&(this.state[e]=0);const l={};this.queue.forEach(c=>{MZ(c.loaded,[s],i),BZ(c,e),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(d=>{l[d]||(l[d]={});const f=c.loaded[d];f.length&&f.forEach(h=>{l[d][h]===void 0&&(l[d][h]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(e,n,r,o=0,s=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:o,wait:s,callback:i});return}this.readingCalls++;const l=(d,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(d&&f&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,r,o+1,s*2,i)},s);return}i(d,f)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const d=c(e,n);d&&typeof d.then=="function"?d.then(f=>l(null,f)).catch(l):l(null,d)}catch(d){l(d)}return}return c(e,n,l)}prepareLoading(e,n,r={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();ln(e)&&(e=this.languageUtils.toResolveHierarchy(e)),ln(n)&&(n=[n]);const s=this.queueLoad(e,n,r,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach(i=>{this.loadOne(i)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e,n=""){const r=e.split("|"),o=r[0],s=r[1];this.read(o,s,"read",void 0,void 0,(i,l)=>{i&&this.logger.warn(`${n}loading namespace ${s} for language ${o} failed`,i),!i&&l&&this.logger.log(`${n}loaded namespace ${s} for language ${o}`,l),this.loaded(e,i,l)})}saveMissing(e,n,r,o,s,i={},l=()=>{}){var c,d,f,h,p;if((d=(c=this.services)==null?void 0:c.utils)!=null&&d.hasLoadedNamespace&&!((h=(f=this.services)==null?void 0:f.utils)!=null&&h.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((p=this.backend)!=null&&p.create){const v={...i,isUpdate:s},g=this.backend.create.bind(this.backend);if(g.length<6)try{let S;g.length===5?S=g(e,n,r,o,v):S=g(e,n,r,o),S&&typeof S.then=="function"?S.then(w=>l(null,w)).catch(l):l(null,S)}catch(S){l(S)}else g(e,n,r,o,l,v)}!e||!e[0]||this.store.addResource(e[0],n,r,o)}}}const v_=()=>({debug:!1,initAsync:!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:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),ln(t[1])&&(e.defaultValue=t[1]),ln(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),_j=t=>{var e,n;return ln(t.ns)&&(t.ns=[t.ns]),ln(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),ln(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),((n=(e=t.supportedLngs)==null?void 0:e.indexOf)==null?void 0:n.call(e,"cimode"))<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t},g3=()=>{},qZ=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class lv extends wx{constructor(e={},n){if(super(),this.options=_j(e),this.services={},this.logger=Jl,this.modules={external:[]},qZ(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(e={},n){this.isInitializing=!0,typeof e=="function"&&(n=e,e={}),e.defaultNS==null&&e.ns&&(ln(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const r=v_();this.options={...r,...this.options,..._j(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),this.options.debug===!0&&typeof console<"u"&&console.warn("i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com");const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Jl.init(o(this.modules.logger),this.options):Jl.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=UZ;const f=new vj(this.options);this.store=new gj(this.options.resources,this.options);const h=this.services;h.logger=Jl,h.resourceStore=this.store,h.languageUtils=f,h.pluralResolver=new LZ(f,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),d&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(h.formatter=o(d),h.formatter.init&&h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new xj(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new HZ(o(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",(v,...g)=>{this.emit(v,...g)}),this.modules.languageDetector&&(h.languageDetector=o(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=o(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new Nw(this.services,this.options),this.translator.on("*",(v,...g)=>{this.emit(v,...g)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,n||(n=g3),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]=(...f)=>this.store[d](...f)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=(...f)=>(this.store[d](...f),this)});const l=Ny(),c=()=>{const d=(f,h)=>{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(h),n(f,h)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?c():setTimeout(c,0),l}loadResources(e,n=g3){var s,i;let r=n;const o=ln(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if((o==null?void 0:o.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const l=[],c=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(h=>{h!=="cimode"&&l.indexOf(h)<0&&l.push(h)})};o?c(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>c(f)),(i=(s=this.options.preload)==null?void 0:s.forEach)==null||i.call(s,d=>c(d)),this.services.backendConnector.load(l,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(d)})}else r(null)}reloadResources(e,n,r){const o=Ny();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=g3),this.services.backendConnector.reload(e,n,s=>{o.resolve(),r(s)}),o}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&T$.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-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}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,n){this.isLanguageChangingTo=e;const r=Ny();this.emit("languageChanging",e);const o=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,c)=>{c?this.isLanguageChangingTo===e&&(o(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,r.resolve((...d)=>this.t(...d)),n&&n(l,(...d)=>this.t(...d))},i=l=>{var f,h;!e&&!l&&this.services.languageDetector&&(l=[]);const c=ln(l)?l:l&&l[0],d=this.store.hasLanguageSomeTranslations(c)?c:this.services.languageUtils.getBestMatchFromCodes(ln(l)?[l]:l);d&&(this.language||o(d),this.translator.language||this.translator.changeLanguage(d),(h=(f=this.services.languageDetector)==null?void 0:f.cacheUserLanguage)==null||h.call(f,d)),this.loadResources(d,p=>{s(p,d)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?i(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e),r}getFixedT(e,n,r){const o=(s,i,...l)=>{let c;typeof i!="object"?c=this.options.overloadTranslationOptionHandler([s,i].concat(l)):c={...i},c.lng=c.lng||o.lng,c.lngs=c.lngs||o.lngs,c.ns=c.ns||o.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||o.keyPrefix);const d=this.options.keySeparator||".";let f;return c.keyPrefix&&Array.isArray(s)?f=s.map(h=>(typeof h=="function"&&(h=j9(h,{...this.options,...i})),`${c.keyPrefix}${d}${h}`)):(typeof s=="function"&&(s=j9(s,{...this.options,...i})),f=c.keyPrefix?`${c.keyPrefix}${d}${s}`:s),this.t(f,c)};return ln(e)?o.lng=e:o.lngs=e,o.ns=n,o.keyPrefix=r,o}t(...e){var n;return(n=this.translator)==null?void 0:n.translate(...e)}exists(...e){var n;return(n=this.translator)==null?void 0:n.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,n={}){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=(l,c)=>{const d=this.services.backendConnector.state[`${l}|${c}`];return d===-1||d===0||d===2};if(n.precheck){const l=n.precheck(this,i);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,e)&&(!o||i(s,e)))}loadNamespaces(e,n){const r=Ny();return this.options.ns?(ln(e)&&(e=[e]),e.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(e,n){const r=Ny();ln(e)&&(e=[e]);const o=this.options.preload||[],s=e.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(e){var o,s;if(e||(e=this.resolvedLanguage||(((o=this.languages)==null?void 0:o.length)>0?this.languages[0]:this.language)),!e)return"rtl";try{const i=new Intl.Locale(e);if(i&&i.getTextInfo){const l=i.getTextInfo();if(l&&l.direction)return l.direction}}catch{}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=((s=this.services)==null?void 0:s.languageUtils)||new vj(v_());return e.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},n){const r=new lv(e,n);return r.createInstance=lv.createInstance,r}cloneInstance(e={},n=g3){const r=e.forkResourceStore;r&&delete e.forkResourceStore;const o={...this.options,...e,isClone:!0},s=new lv(o);if((e.debug!==void 0||e.prefix!==void 0)&&(s.logger=s.logger.clone(e)),["store","services","language"].forEach(l=>{s[l]=this[l]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const l=Object.keys(this.store.data).reduce((c,d)=>(c[d]={...this.store.data[d]},c[d]=Object.keys(c[d]).reduce((f,h)=>(f[h]={...c[d][h]},f),c[d]),c),{});s.store=new gj(l,o),s.services.resourceStore=s.store}if(e.interpolation){const c={...v_().interpolation,...this.options.interpolation,...e.interpolation},d={...o,interpolation:c};s.services.interpolator=new xj(d)}return s.translator=new Nw(s.services,o),s.translator.on("*",(l,...c)=>{s.emit(l,...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 ko=lv.createInstance();ko.createInstance;ko.dir;ko.init;ko.loadResources;ko.reloadResources;ko.use;ko.changeLanguage;ko.getFixedT;const jt=ko.t;ko.exists;ko.setDefaultNamespace;ko.hasLoadedNamespace;ko.loadNamespaces;ko.loadLanguages;/**
 * @remix-run/router v1.23.2
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function $r(){return $r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},$r.apply(this,arguments)}var go;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(go||(go={}));const Tj="popstate";function VZ(t){t===void 0&&(t={});function e(r,o){let{pathname:s,search:i,hash:l}=r.location;return jv("",{pathname:s,search:i,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Zh(o)}return GZ(e,n,null,t)}function xn(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Ld(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function YZ(){return Math.random().toString(36).substr(2,8)}function Ej(t,e){return{usr:t.state,key:t.key,idx:e}}function jv(t,e,n,r){return n===void 0&&(n=null),$r({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?of(e):e,{state:n,key:e&&e.key||r||YZ()})}function Zh(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function of(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function GZ(t,e,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,l=go.Pop,c=null,d=f();d==null&&(d=0,i.replaceState($r({},i.state,{idx:d}),""));function f(){return(i.state||{idx:null}).idx}function h(){l=go.Pop;let w=f(),_=w==null?null:w-d;d=w,c&&c({action:l,location:S.location,delta:_})}function p(w,_){l=go.Push;let E=jv(S.location,w,_);d=f()+1;let T=Ej(E,d),M=S.createHref(E);try{i.pushState(T,"",M)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;o.location.assign(M)}s&&c&&c({action:l,location:S.location,delta:1})}function v(w,_){l=go.Replace;let E=jv(S.location,w,_);d=f();let T=Ej(E,d),M=S.createHref(E);i.replaceState(T,"",M),s&&c&&c({action:l,location:S.location,delta:0})}function g(w){let _=o.location.origin!=="null"?o.location.origin:o.location.href,E=typeof w=="string"?w:Zh(w);return E=E.replace(/ $/,"%20"),xn(_,"No window.location.(origin|href) available to create URL for href: "+E),new URL(E,_)}let S={get action(){return l},get location(){return t(o,i)},listen(w){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(Tj,h),c=w,()=>{o.removeEventListener(Tj,h),c=null}},createHref(w){return e(o,w)},createURL:g,encodeLocation(w){let _=g(w);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:p,replace:v,go(w){return i.go(w)}};return S}var ar;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(ar||(ar={}));const WZ=new Set(["lazy","caseSensitive","path","id","index","children"]);function QZ(t){return t.index===!0}function Iw(t,e,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),t.map((o,s)=>{let i=[...n,String(s)],l=typeof o.id=="string"?o.id:i.join("-");if(xn(o.index!==!0||!o.children,"Cannot specify children on an index route"),xn(!r[l],'Found a route id collision on id "'+l+`".  Route id's must be globally unique within Data Router usages`),QZ(o)){let c=$r({},o,e(o),{id:l});return r[l]=c,c}else{let c=$r({},o,e(o),{id:l,children:void 0});return r[l]=c,o.children&&(c.children=Iw(o.children,e,i,r)),c}})}function Dh(t,e,n){return n===void 0&&(n="/"),nw(t,e,n,!1)}function nw(t,e,n,r){let o=typeof e=="string"?of(e):e,s=iu(o.pathname||"/",n);if(s==null)return null;let i=k$(t);XZ(i);let l=null;for(let c=0;l==null&&c<i.length;++c){let d=j$(s);l=iJ(i[c],d,r)}return l}function KZ(t,e){let{route:n,pathname:r,params:o}=t;return{id:n.id,pathname:r,params:o,data:e[n.id],handle:n.handle}}function k$(t,e,n,r){e===void 0&&(e=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(s,i,l)=>{let c={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};c.relativePath.startsWith("/")&&(xn(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let d=eu([r,c.relativePath]),f=n.concat(c);s.children&&s.children.length>0&&(xn(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),k$(s.children,e,f,d)),!(s.path==null&&!s.index)&&e.push({path:d,score:oJ(d,s.index),routesMeta:f})};return t.forEach((s,i)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))o(s,i);else for(let c of M$(s.path))o(s,i,c)}),e}function M$(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=M$(r.join("/")),l=[];return l.push(...i.map(c=>c===""?s:[s,c].join("/"))),o&&l.push(...i),l.map(c=>t.startsWith("/")&&c===""?"/":c)}function XZ(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:sJ(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ZZ=/^:[\w-]+$/,JZ=3,eJ=2,tJ=1,nJ=10,rJ=-2,kj=t=>t==="*";function oJ(t,e){let n=t.split("/"),r=n.length;return n.some(kj)&&(r+=rJ),e&&(r+=eJ),n.filter(o=>!kj(o)).reduce((o,s)=>o+(ZZ.test(s)?JZ:s===""?tJ:nJ),r)}function sJ(t,e){return t.length===e.length&&t.slice(0,-1).every((r,o)=>r===e[o])?t[t.length-1]-e[e.length-1]:0}function iJ(t,e,n){n===void 0&&(n=!1);let{routesMeta:r}=t,o={},s="/",i=[];for(let l=0;l<r.length;++l){let c=r[l],d=l===r.length-1,f=s==="/"?e:e.slice(s.length)||"/",h=Li({path:c.relativePath,caseSensitive:c.caseSensitive,end:d},f),p=c.route;if(!h&&d&&n&&!r[r.length-1].route.index&&(h=Li({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},f)),!h)return null;Object.assign(o,h.params),i.push({params:o,pathname:eu([s,h.pathname]),pathnameBase:dJ(eu([s,h.pathnameBase])),route:p}),h.pathnameBase!=="/"&&(s=eu([s,h.pathnameBase]))}return i}function uDe(t,e){e===void 0&&(e={});let n=t;n.endsWith("*")&&n!=="*"&&!n.endsWith("/*")&&(Ld(!1,'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".')),n=n.replace(/\*$/,"/*"));const r=n.startsWith("/")?"/":"",o=i=>i==null?"":typeof i=="string"?i:String(i),s=n.split(/\/+/).map((i,l,c)=>{if(l===c.length-1&&i==="*")return o(e["*"]);const f=i.match(/^:([\w-]+)(\??)$/);if(f){const[,h,p]=f;let v=e[h];return xn(p==="?"||v!=null,'Missing ":'+h+'" param'),o(v)}return i.replace(/\?$/g,"")}).filter(i=>!!i);return r+s.join("/")}function Li(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=aJ(t.path,t.caseSensitive,t.end),o=e.match(n);if(!o)return null;let s=o[0],i=s.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((d,f,h)=>{let{paramName:p,isOptional:v}=f;if(p==="*"){let S=l[h]||"";i=s.slice(0,s.length-S.length).replace(/(.)\/+$/,"$1")}const g=l[h];return v&&!g?d[p]=void 0:d[p]=(g||"").replace(/%2F/g,"/"),d},{}),pathname:s,pathnameBase:i,pattern:t}}function aJ(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),Ld(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,e?void 0:"i"),r]}function j$(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Ld(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function iu(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}const lJ=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cJ=t=>lJ.test(t);function uJ(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:o=""}=typeof t=="string"?of(t):t,s;if(n)if(cJ(n))s=n;else{if(n.includes("//")){let i=n;n=n.replace(/\/\/+/g,"/"),Ld(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+n))}n.startsWith("/")?s=Mj(n.substring(1),"/"):s=Mj(n,e)}else s=e;return{pathname:s,search:fJ(r),hash:hJ(o)}}function Mj(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function b_(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` 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 D$(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function xx(t,e){let n=D$(t);return e?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Cx(t,e,n,r){r===void 0&&(r=!1);let o;typeof t=="string"?o=of(t):(o=$r({},t),xn(!o.pathname||!o.pathname.includes("?"),b_("?","pathname","search",o)),xn(!o.pathname||!o.pathname.includes("#"),b_("#","pathname","hash",o)),xn(!o.search||!o.search.includes("#"),b_("#","search","hash",o)));let s=t===""||o.pathname==="",i=s?"/":o.pathname,l;if(i==null)l=n;else{let h=e.length-1;if(!r&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),h-=1;o.pathname=p.join("/")}l=h>=0?e[h]:"/"}let c=uJ(o,l),d=i&&i!=="/"&&i.endsWith("/"),f=(s||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||f)&&(c.pathname+="/"),c}const eu=t=>t.join("/").replace(/\/\/+/g,"/"),dJ=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),fJ=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,hJ=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class $w{constructor(e,n,r,o){o===void 0&&(o=!1),this.status=e,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Dv(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const A$=["post","put","patch","delete"],pJ=new Set(A$),mJ=["get",...A$],gJ=new Set(mJ),yJ=new Set([301,302,303,307,308]),vJ=new Set([307,308]),S_={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},bJ={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Iy={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},F7=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,SJ=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),R$="remix-router-transitions";function wJ(t){const e=t.window?t.window:typeof window<"u"?window:void 0,n=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",r=!n;xn(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(t.mapRouteProperties)o=t.mapRouteProperties;else if(t.detectErrorBoundary){let le=t.detectErrorBoundary;o=ce=>({hasErrorBoundary:le(ce)})}else o=SJ;let s={},i=Iw(t.routes,o,void 0,s),l,c=t.basename||"/",d=t.dataStrategy||TJ,f=t.patchRoutesOnNavigation,h=$r({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},t.future),p=null,v=new Set,g=null,S=null,w=null,_=t.hydrationData!=null,E=Dh(i,t.history.location,c),T=!1,M=null;if(E==null&&!f){let le=si(404,{pathname:t.history.location.pathname}),{matches:ce,route:ye}=Fj(i);E=ce,M={[ye.id]:le}}E&&!t.hydrationData&&Yt(E,i,t.history.location.pathname).active&&(E=null);let j;if(E)if(E.some(le=>le.route.lazy))j=!1;else if(!E.some(le=>le.route.loader))j=!0;else if(h.v7_partialHydration){let le=t.hydrationData?t.hydrationData.loaderData:null,ce=t.hydrationData?t.hydrationData.errors:null;if(ce){let ye=E.findIndex($e=>ce[$e.route.id]!==void 0);j=E.slice(0,ye+1).every($e=>!A9($e.route,le,ce))}else j=E.every(ye=>!A9(ye.route,le,ce))}else j=t.hydrationData!=null;else if(j=!1,E=[],h.v7_partialHydration){let le=Yt(null,i,t.history.location.pathname);le.active&&le.matches&&(T=!0,E=le.matches)}let A,k={historyAction:t.history.action,location:t.history.location,matches:E,initialized:j,navigation:S_,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||M,fetchers:new Map,blockers:new Map},R=go.Pop,N=!1,I,L=!1,F=new Map,H=null,B=!1,Y=!1,U=[],q=new Set,z=new Map,W=0,K=-1,G=new Map,X=new Set,J=new Map,ne=new Map,se=new Set,ie=new Map,oe=new Map,de;function pe(){if(p=t.history.listen(le=>{let{action:ce,location:ye,delta:$e}=le;if(de){de(),de=void 0;return}Ld(oe.size===0||$e!=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 Ye=Ut({currentLocation:k.location,nextLocation:ye,historyAction:ce});if(Ye&&$e!=null){let tt=new Promise(Et=>{de=Et});t.history.go($e*-1),gt(Ye,{state:"blocked",location:ye,proceed(){gt(Ye,{state:"proceeding",proceed:void 0,reset:void 0,location:ye}),tt.then(()=>t.history.go($e))},reset(){let Et=new Map(k.blockers);Et.set(Ye,Iy),we({blockers:Et})}});return}return ze(ce,ye)}),n){FJ(e,F);let le=()=>zJ(e,F);e.addEventListener("pagehide",le),H=()=>e.removeEventListener("pagehide",le)}return k.initialized||ze(go.Pop,k.location,{initialHydration:!0}),A}function fe(){p&&p(),H&&H(),v.clear(),I&&I.abort(),k.fetchers.forEach((le,ce)=>un(ce)),k.blockers.forEach((le,ce)=>St(ce))}function Te(le){return v.add(le),()=>v.delete(le)}function we(le,ce){ce===void 0&&(ce={}),k=$r({},k,le);let ye=[],$e=[];h.v7_fetcherPersist&&k.fetchers.forEach((Ye,tt)=>{Ye.state==="idle"&&(se.has(tt)?$e.push(tt):ye.push(tt))}),se.forEach(Ye=>{!k.fetchers.has(Ye)&&!z.has(Ye)&&$e.push(Ye)}),[...v].forEach(Ye=>Ye(k,{deletedFetchers:$e,viewTransitionOpts:ce.viewTransitionOpts,flushSync:ce.flushSync===!0})),h.v7_fetcherPersist?(ye.forEach(Ye=>k.fetchers.delete(Ye)),$e.forEach(Ye=>un(Ye))):$e.forEach(Ye=>se.delete(Ye))}function _e(le,ce,ye){var $e,Ye;let{flushSync:tt}=ye===void 0?{}:ye,Et=k.actionData!=null&&k.navigation.formMethod!=null&&Ya(k.navigation.formMethod)&&k.navigation.state==="loading"&&(($e=le.state)==null?void 0:$e._isRedirect)!==!0,nt;ce.actionData?Object.keys(ce.actionData).length>0?nt=ce.actionData:nt=null:Et?nt=k.actionData:nt=null;let et=ce.loaderData?$j(k.loaderData,ce.loaderData,ce.matches||[],ce.errors):k.loaderData,Ge=k.blockers;Ge.size>0&&(Ge=new Map(Ge),Ge.forEach((fn,Hn)=>Ge.set(Hn,Iy)));let ut=N===!0||k.navigation.formMethod!=null&&Ya(k.navigation.formMethod)&&((Ye=le.state)==null?void 0:Ye._isRedirect)!==!0;l&&(i=l,l=void 0),B||R===go.Pop||(R===go.Push?t.history.push(le,le.state):R===go.Replace&&t.history.replace(le,le.state));let Vt;if(R===go.Pop){let fn=F.get(k.location.pathname);fn&&fn.has(le.pathname)?Vt={currentLocation:k.location,nextLocation:le}:F.has(le.pathname)&&(Vt={currentLocation:le,nextLocation:k.location})}else if(L){let fn=F.get(k.location.pathname);fn?fn.add(le.pathname):(fn=new Set([le.pathname]),F.set(k.location.pathname,fn)),Vt={currentLocation:k.location,nextLocation:le}}we($r({},ce,{actionData:nt,loaderData:et,historyAction:R,location:le,initialized:!0,navigation:S_,revalidation:"idle",restoreScrollPosition:dn(le,ce.matches||k.matches),preventScrollReset:ut,blockers:Ge}),{viewTransitionOpts:Vt,flushSync:tt===!0}),R=go.Pop,N=!1,L=!1,B=!1,Y=!1,U=[]}async function De(le,ce){if(typeof le=="number"){t.history.go(le);return}let ye=D9(k.location,k.matches,c,h.v7_prependBasename,le,h.v7_relativeSplatPath,ce==null?void 0:ce.fromRouteId,ce==null?void 0:ce.relative),{path:$e,submission:Ye,error:tt}=jj(h.v7_normalizeFormMethod,!1,ye,ce),Et=k.location,nt=jv(k.location,$e,ce&&ce.state);nt=$r({},nt,t.history.encodeLocation(nt));let et=ce&&ce.replace!=null?ce.replace:void 0,Ge=go.Push;et===!0?Ge=go.Replace:et===!1||Ye!=null&&Ya(Ye.formMethod)&&Ye.formAction===k.location.pathname+k.location.search&&(Ge=go.Replace);let ut=ce&&"preventScrollReset"in ce?ce.preventScrollReset===!0:void 0,Vt=(ce&&ce.flushSync)===!0,fn=Ut({currentLocation:Et,nextLocation:nt,historyAction:Ge});if(fn){gt(fn,{state:"blocked",location:nt,proceed(){gt(fn,{state:"proceeding",proceed:void 0,reset:void 0,location:nt}),De(le,ce)},reset(){let Hn=new Map(k.blockers);Hn.set(fn,Iy),we({blockers:Hn})}});return}return await ze(Ge,nt,{submission:Ye,pendingError:tt,preventScrollReset:ut,replace:ce&&ce.replace,enableViewTransition:ce&&ce.viewTransition,flushSync:Vt})}function Ze(){if(Tt(),we({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){ze(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}ze(R||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:L===!0})}}async function ze(le,ce,ye){I&&I.abort(),I=null,R=le,B=(ye&&ye.startUninterruptedRevalidation)===!0,$t(k.location,k.matches),N=(ye&&ye.preventScrollReset)===!0,L=(ye&&ye.enableViewTransition)===!0;let $e=l||i,Ye=ye&&ye.overrideNavigation,tt=ye!=null&&ye.initialHydration&&k.matches&&k.matches.length>0&&!T?k.matches:Dh($e,ce,c),Et=(ye&&ye.flushSync)===!0;if(tt&&k.initialized&&!Y&&AJ(k.location,ce)&&!(ye&&ye.submission&&Ya(ye.submission.formMethod))){_e(ce,{matches:tt},{flushSync:Et});return}let nt=Yt(tt,$e,ce.pathname);if(nt.active&&nt.matches&&(tt=nt.matches),!tt){let{error:hn,notFoundMatches:nn,route:zn}=Ot(ce.pathname);_e(ce,{matches:nn,loaderData:{},errors:{[zn.id]:hn}},{flushSync:Et});return}I=new AbortController;let et=a1(t.history,ce,I.signal,ye&&ye.submission),Ge;if(ye&&ye.pendingError)Ge=[Ah(tt).route.id,{type:ar.error,error:ye.pendingError}];else if(ye&&ye.submission&&Ya(ye.submission.formMethod)){let hn=await Xe(et,ce,ye.submission,tt,nt.active,{replace:ye.replace,flushSync:Et});if(hn.shortCircuited)return;if(hn.pendingActionResult){let[nn,zn]=hn.pendingActionResult;if($i(zn)&&Dv(zn.error)&&zn.error.status===404){I=null,_e(ce,{matches:hn.matches,loaderData:{},errors:{[nn]:zn.error}});return}}tt=hn.matches||tt,Ge=hn.pendingActionResult,Ye=w_(ce,ye.submission),Et=!1,nt.active=!1,et=a1(t.history,et.url,et.signal)}let{shortCircuited:ut,matches:Vt,loaderData:fn,errors:Hn}=await Ke(et,ce,tt,nt.active,Ye,ye&&ye.submission,ye&&ye.fetcherSubmission,ye&&ye.replace,ye&&ye.initialHydration===!0,Et,Ge);ut||(I=null,_e(ce,$r({matches:Vt||tt},Lj(Ge),{loaderData:fn,errors:Hn})))}async function Xe(le,ce,ye,$e,Ye,tt){tt===void 0&&(tt={}),Tt();let Et=$J(ce,ye);if(we({navigation:Et},{flushSync:tt.flushSync===!0}),Ye){let Ge=await Gt($e,ce.pathname,le.signal);if(Ge.type==="aborted")return{shortCircuited:!0};if(Ge.type==="error"){let ut=Ah(Ge.partialMatches).route.id;return{matches:Ge.partialMatches,pendingActionResult:[ut,{type:ar.error,error:Ge.error}]}}else if(Ge.matches)$e=Ge.matches;else{let{notFoundMatches:ut,error:Vt,route:fn}=Ot(ce.pathname);return{matches:ut,pendingActionResult:[fn.id,{type:ar.error,error:Vt}]}}}let nt,et=Jy($e,ce);if(!et.route.action&&!et.route.lazy)nt={type:ar.error,error:si(405,{method:le.method,pathname:ce.pathname,routeId:et.route.id})};else if(nt=(await cn("action",k,le,[et],$e,null))[et.route.id],le.signal.aborted)return{shortCircuited:!0};if(Ph(nt)){let Ge;return tt&&tt.replace!=null?Ge=tt.replace:Ge=Pj(nt.response.headers.get("Location"),new URL(le.url),c,t.history)===k.location.pathname+k.location.search,await ct(le,nt,!0,{submission:ye,replace:Ge}),{shortCircuited:!0}}if(Od(nt))throw si(400,{type:"defer-action"});if($i(nt)){let Ge=Ah($e,et.route.id);return(tt&&tt.replace)!==!0&&(R=go.Push),{matches:$e,pendingActionResult:[Ge.route.id,nt]}}return{matches:$e,pendingActionResult:[et.route.id,nt]}}async function Ke(le,ce,ye,$e,Ye,tt,Et,nt,et,Ge,ut){let Vt=Ye||w_(ce,tt),fn=tt||Et||Uj(Vt),Hn=!B&&(!h.v7_partialHydration||!et);if($e){if(Hn){let hr=ot(ut);we($r({navigation:Vt},hr!==void 0?{actionData:hr}:{}),{flushSync:Ge})}let On=await Gt(ye,ce.pathname,le.signal);if(On.type==="aborted")return{shortCircuited:!0};if(On.type==="error"){let hr=Ah(On.partialMatches).route.id;return{matches:On.partialMatches,loaderData:{},errors:{[hr]:On.error}}}else if(On.matches)ye=On.matches;else{let{error:hr,notFoundMatches:xa,route:mc}=Ot(ce.pathname);return{matches:xa,loaderData:{},errors:{[mc.id]:hr}}}}let hn=l||i,[nn,zn]=Aj(t.history,k,ye,fn,ce,h.v7_partialHydration&&et===!0,h.v7_skipActionErrorRevalidation,Y,U,q,se,J,X,hn,c,ut);if(Sn(On=>!(ye&&ye.some(hr=>hr.route.id===On))||nn&&nn.some(hr=>hr.route.id===On)),K=++W,nn.length===0&&zn.length===0){let On=It();return _e(ce,$r({matches:ye,loaderData:{},errors:ut&&$i(ut[1])?{[ut[0]]:ut[1].error}:null},Lj(ut),On?{fetchers:new Map(k.fetchers)}:{}),{flushSync:Ge}),{shortCircuited:!0}}if(Hn){let On={};if(!$e){On.navigation=Vt;let hr=ot(ut);hr!==void 0&&(On.actionData=hr)}zn.length>0&&(On.fetchers=st(zn)),we(On,{flushSync:Ge})}zn.forEach(On=>{Jt(On.key),On.controller&&z.set(On.key,On.controller)});let Mo=()=>zn.forEach(On=>Jt(On.key));I&&I.signal.addEventListener("abort",Mo);let{loaderResults:Io,fetcherResults:$o}=await bn(k,ye,nn,zn,le);if(le.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",Mo),zn.forEach(On=>z.delete(On.key));let Gr=y3(Io);if(Gr)return await ct(le,Gr.result,!0,{replace:nt}),{shortCircuited:!0};if(Gr=y3($o),Gr)return X.add(Gr.key),await ct(le,Gr.result,!0,{replace:nt}),{shortCircuited:!0};let{loaderData:Rr,errors:fl}=Ij(k,ye,Io,ut,zn,$o,ie);ie.forEach((On,hr)=>{On.subscribe(xa=>{(xa||On.done)&&ie.delete(hr)})}),h.v7_partialHydration&&et&&k.errors&&(fl=$r({},k.errors,fl));let Zi=It(),ps=he(K),Bs=Zi||ps||zn.length>0;return $r({matches:ye,loaderData:Rr,errors:fl},Bs?{fetchers:new Map(k.fetchers)}:{})}function ot(le){if(le&&!$i(le[1]))return{[le[0]]:le[1].data};if(k.actionData)return Object.keys(k.actionData).length===0?null:k.actionData}function st(le){return le.forEach(ce=>{let ye=k.fetchers.get(ce.key),$e=$y(void 0,ye?ye.data:void 0);k.fetchers.set(ce.key,$e)}),new Map(k.fetchers)}function mt(le,ce,ye,$e){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.");Jt(le);let Ye=($e&&$e.flushSync)===!0,tt=l||i,Et=D9(k.location,k.matches,c,h.v7_prependBasename,ye,h.v7_relativeSplatPath,ce,$e==null?void 0:$e.relative),nt=Dh(tt,Et,c),et=Yt(nt,tt,Et);if(et.active&&et.matches&&(nt=et.matches),!nt){Xt(le,ce,si(404,{pathname:Et}),{flushSync:Ye});return}let{path:Ge,submission:ut,error:Vt}=jj(h.v7_normalizeFormMethod,!0,Et,$e);if(Vt){Xt(le,ce,Vt,{flushSync:Ye});return}let fn=Jy(nt,Ge),Hn=($e&&$e.preventScrollReset)===!0;if(ut&&Ya(ut.formMethod)){bt(le,ce,Ge,fn,nt,et.active,Ye,Hn,ut);return}J.set(le,{routeId:ce,path:Ge}),At(le,ce,Ge,fn,nt,et.active,Ye,Hn,ut)}async function bt(le,ce,ye,$e,Ye,tt,Et,nt,et){Tt(),J.delete(le);function Ge(pr){if(!pr.route.action&&!pr.route.lazy){let Hs=si(405,{method:et.formMethod,pathname:ye,routeId:ce});return Xt(le,ce,Hs,{flushSync:Et}),!0}return!1}if(!tt&&Ge($e))return;let ut=k.fetchers.get(le);Ft(le,LJ(et,ut),{flushSync:Et});let Vt=new AbortController,fn=a1(t.history,ye,Vt.signal,et);if(tt){let pr=await Gt(Ye,new URL(fn.url).pathname,fn.signal,le);if(pr.type==="aborted")return;if(pr.type==="error"){Xt(le,ce,pr.error,{flushSync:Et});return}else if(pr.matches){if(Ye=pr.matches,$e=Jy(Ye,ye),Ge($e))return}else{Xt(le,ce,si(404,{pathname:ye}),{flushSync:Et});return}}z.set(le,Vt);let Hn=W,nn=(await cn("action",k,fn,[$e],Ye,le))[$e.route.id];if(fn.signal.aborted){z.get(le)===Vt&&z.delete(le);return}if(h.v7_fetcherPersist&&se.has(le)){if(Ph(nn)||$i(nn)){Ft(le,Ed(void 0));return}}else{if(Ph(nn))if(z.delete(le),K>Hn){Ft(le,Ed(void 0));return}else return X.add(le),Ft(le,$y(et)),ct(fn,nn,!1,{fetcherSubmission:et,preventScrollReset:nt});if($i(nn)){Xt(le,ce,nn.error);return}}if(Od(nn))throw si(400,{type:"defer-action"});let zn=k.navigation.location||k.location,Mo=a1(t.history,zn,Vt.signal),Io=l||i,$o=k.navigation.state!=="idle"?Dh(Io,k.navigation.location,c):k.matches;xn($o,"Didn't find any matches after fetcher action");let Gr=++W;G.set(le,Gr);let Rr=$y(et,nn.data);k.fetchers.set(le,Rr);let[fl,Zi]=Aj(t.history,k,$o,et,zn,!1,h.v7_skipActionErrorRevalidation,Y,U,q,se,J,X,Io,c,[$e.route.id,nn]);Zi.filter(pr=>pr.key!==le).forEach(pr=>{let Hs=pr.key,ms=k.fetchers.get(Hs),Lo=$y(void 0,ms?ms.data:void 0);k.fetchers.set(Hs,Lo),Jt(Hs),pr.controller&&z.set(Hs,pr.controller)}),we({fetchers:new Map(k.fetchers)});let ps=()=>Zi.forEach(pr=>Jt(pr.key));Vt.signal.addEventListener("abort",ps);let{loaderResults:Bs,fetcherResults:On}=await bn(k,$o,fl,Zi,Mo);if(Vt.signal.aborted)return;Vt.signal.removeEventListener("abort",ps),G.delete(le),z.delete(le),Zi.forEach(pr=>z.delete(pr.key));let hr=y3(Bs);if(hr)return ct(Mo,hr.result,!1,{preventScrollReset:nt});if(hr=y3(On),hr)return X.add(hr.key),ct(Mo,hr.result,!1,{preventScrollReset:nt});let{loaderData:xa,errors:mc}=Ij(k,$o,Bs,void 0,Zi,On,ie);if(k.fetchers.has(le)){let pr=Ed(nn.data);k.fetchers.set(le,pr)}he(Gr),k.navigation.state==="loading"&&Gr>K?(xn(R,"Expected pending action"),I&&I.abort(),_e(k.navigation.location,{matches:$o,loaderData:xa,errors:mc,fetchers:new Map(k.fetchers)})):(we({errors:mc,loaderData:$j(k.loaderData,xa,$o,mc),fetchers:new Map(k.fetchers)}),Y=!1)}async function At(le,ce,ye,$e,Ye,tt,Et,nt,et){let Ge=k.fetchers.get(le);Ft(le,$y(et,Ge?Ge.data:void 0),{flushSync:Et});let ut=new AbortController,Vt=a1(t.history,ye,ut.signal);if(tt){let nn=await Gt(Ye,new URL(Vt.url).pathname,Vt.signal,le);if(nn.type==="aborted")return;if(nn.type==="error"){Xt(le,ce,nn.error,{flushSync:Et});return}else if(nn.matches)Ye=nn.matches,$e=Jy(Ye,ye);else{Xt(le,ce,si(404,{pathname:ye}),{flushSync:Et});return}}z.set(le,ut);let fn=W,hn=(await cn("loader",k,Vt,[$e],Ye,le))[$e.route.id];if(Od(hn)&&(hn=await z7(hn,Vt.signal,!0)||hn),z.get(le)===ut&&z.delete(le),!Vt.signal.aborted){if(se.has(le)){Ft(le,Ed(void 0));return}if(Ph(hn))if(K>fn){Ft(le,Ed(void 0));return}else{X.add(le),await ct(Vt,hn,!1,{preventScrollReset:nt});return}if($i(hn)){Xt(le,ce,hn.error);return}xn(!Od(hn),"Unhandled fetcher deferred data"),Ft(le,Ed(hn.data))}}async function ct(le,ce,ye,$e){let{submission:Ye,fetcherSubmission:tt,preventScrollReset:Et,replace:nt}=$e===void 0?{}:$e;ce.response.headers.has("X-Remix-Revalidate")&&(Y=!0);let et=ce.response.headers.get("Location");xn(et,"Expected a Location header on the redirect Response"),et=Pj(et,new URL(le.url),c,t.history);let Ge=jv(k.location,et,{_isRedirect:!0});if(n){let nn=!1;if(ce.response.headers.has("X-Remix-Reload-Document"))nn=!0;else if(F7.test(et)){const zn=t.history.createURL(et);nn=zn.origin!==e.location.origin||iu(zn.pathname,c)==null}if(nn){nt?e.location.replace(et):e.location.assign(et);return}}I=null;let ut=nt===!0||ce.response.headers.has("X-Remix-Replace")?go.Replace:go.Push,{formMethod:Vt,formAction:fn,formEncType:Hn}=k.navigation;!Ye&&!tt&&Vt&&fn&&Hn&&(Ye=Uj(k.navigation));let hn=Ye||tt;if(vJ.has(ce.response.status)&&hn&&Ya(hn.formMethod))await ze(ut,Ge,{submission:$r({},hn,{formAction:et}),preventScrollReset:Et||N,enableViewTransition:ye?L:void 0});else{let nn=w_(Ge,Ye);await ze(ut,Ge,{overrideNavigation:nn,fetcherSubmission:tt,preventScrollReset:Et||N,enableViewTransition:ye?L:void 0})}}async function cn(le,ce,ye,$e,Ye,tt){let Et,nt={};try{Et=await EJ(d,le,ce,ye,$e,Ye,tt,s,o)}catch(et){return $e.forEach(Ge=>{nt[Ge.route.id]={type:ar.error,error:et}}),nt}for(let[et,Ge]of Object.entries(Et))if(RJ(Ge)){let ut=Ge.result;nt[et]={type:ar.redirect,response:jJ(ut,ye,et,Ye,c,h.v7_relativeSplatPath)}}else nt[et]=await MJ(Ge);return nt}async function bn(le,ce,ye,$e,Ye){let tt=le.matches,Et=cn("loader",le,Ye,ye,ce,null),nt=Promise.all($e.map(async ut=>{if(ut.matches&&ut.match&&ut.controller){let fn=(await cn("loader",le,a1(t.history,ut.path,ut.controller.signal),[ut.match],ut.matches,ut.key))[ut.match.route.id];return{[ut.key]:fn}}else return Promise.resolve({[ut.key]:{type:ar.error,error:si(404,{pathname:ut.path})}})})),et=await Et,Ge=(await nt).reduce((ut,Vt)=>Object.assign(ut,Vt),{});return await Promise.all([NJ(ce,et,Ye.signal,tt,le.loaderData),IJ(ce,Ge,$e)]),{loaderResults:et,fetcherResults:Ge}}function Tt(){Y=!0,U.push(...Sn()),J.forEach((le,ce)=>{z.has(ce)&&q.add(ce),Jt(ce)})}function Ft(le,ce,ye){ye===void 0&&(ye={}),k.fetchers.set(le,ce),we({fetchers:new Map(k.fetchers)},{flushSync:(ye&&ye.flushSync)===!0})}function Xt(le,ce,ye,$e){$e===void 0&&($e={});let Ye=Ah(k.matches,ce);un(le),we({errors:{[Ye.route.id]:ye},fetchers:new Map(k.fetchers)},{flushSync:($e&&$e.flushSync)===!0})}function _n(le){return ne.set(le,(ne.get(le)||0)+1),se.has(le)&&se.delete(le),k.fetchers.get(le)||bJ}function un(le){let ce=k.fetchers.get(le);z.has(le)&&!(ce&&ce.state==="loading"&&G.has(le))&&Jt(le),J.delete(le),G.delete(le),X.delete(le),h.v7_fetcherPersist&&se.delete(le),q.delete(le),k.fetchers.delete(le)}function Zt(le){let ce=(ne.get(le)||0)-1;ce<=0?(ne.delete(le),se.add(le),h.v7_fetcherPersist||un(le)):ne.set(le,ce),we({fetchers:new Map(k.fetchers)})}function Jt(le){let ce=z.get(le);ce&&(ce.abort(),z.delete(le))}function en(le){for(let ce of le){let ye=_n(ce),$e=Ed(ye.data);k.fetchers.set(ce,$e)}}function It(){let le=[],ce=!1;for(let ye of X){let $e=k.fetchers.get(ye);xn($e,"Expected fetcher: "+ye),$e.state==="loading"&&(X.delete(ye),le.push(ye),ce=!0)}return en(le),ce}function he(le){let ce=[];for(let[ye,$e]of G)if($e<le){let Ye=k.fetchers.get(ye);xn(Ye,"Expected fetcher: "+ye),Ye.state==="loading"&&(Jt(ye),G.delete(ye),ce.push(ye))}return en(ce),ce.length>0}function Ce(le,ce){let ye=k.blockers.get(le)||Iy;return oe.get(le)!==ce&&oe.set(le,ce),ye}function St(le){k.blockers.delete(le),oe.delete(le)}function gt(le,ce){let ye=k.blockers.get(le)||Iy;xn(ye.state==="unblocked"&&ce.state==="blocked"||ye.state==="blocked"&&ce.state==="blocked"||ye.state==="blocked"&&ce.state==="proceeding"||ye.state==="blocked"&&ce.state==="unblocked"||ye.state==="proceeding"&&ce.state==="unblocked","Invalid blocker state transition: "+ye.state+" -> "+ce.state);let $e=new Map(k.blockers);$e.set(le,ce),we({blockers:$e})}function Ut(le){let{currentLocation:ce,nextLocation:ye,historyAction:$e}=le;if(oe.size===0)return;oe.size>1&&Ld(!1,"A router only supports one blocker at a time");let Ye=Array.from(oe.entries()),[tt,Et]=Ye[Ye.length-1],nt=k.blockers.get(tt);if(!(nt&&nt.state==="proceeding")&&Et({currentLocation:ce,nextLocation:ye,historyAction:$e}))return tt}function Ot(le){let ce=si(404,{pathname:le}),ye=l||i,{matches:$e,route:Ye}=Fj(ye);return Sn(),{notFoundMatches:$e,route:Ye,error:ce}}function Sn(le){let ce=[];return ie.forEach((ye,$e)=>{(!le||le($e))&&(ye.cancel(),ce.push($e),ie.delete($e))}),ce}function Je(le,ce,ye){if(g=le,w=ce,S=ye||null,!_&&k.navigation===S_){_=!0;let $e=dn(k.location,k.matches);$e!=null&&we({restoreScrollPosition:$e})}return()=>{g=null,w=null,S=null}}function vt(le,ce){return S&&S(le,ce.map($e=>KZ($e,k.loaderData)))||le.key}function $t(le,ce){if(g&&w){let ye=vt(le,ce);g[ye]=w()}}function dn(le,ce){if(g){let ye=vt(le,ce),$e=g[ye];if(typeof $e=="number")return $e}return null}function Yt(le,ce,ye){if(f)if(le){if(Object.keys(le[0].params).length>0)return{active:!0,matches:nw(ce,ye,c,!0)}}else return{active:!0,matches:nw(ce,ye,c,!0)||[]};return{active:!1,matches:null}}async function Gt(le,ce,ye,$e){if(!f)return{type:"success",matches:le};let Ye=le;for(;;){let tt=l==null,Et=l||i,nt=s;try{await f({signal:ye,path:ce,matches:Ye,fetcherKey:$e,patch:(ut,Vt)=>{ye.aborted||Oj(ut,Vt,Et,nt,o)}})}catch(ut){return{type:"error",error:ut,partialMatches:Ye}}finally{tt&&!ye.aborted&&(i=[...i])}if(ye.aborted)return{type:"aborted"};let et=Dh(Et,ce,c);if(et)return{type:"success",matches:et};let Ge=nw(Et,ce,c,!0);if(!Ge||Ye.length===Ge.length&&Ye.every((ut,Vt)=>ut.route.id===Ge[Vt].route.id))return{type:"success",matches:null};Ye=Ge}}function $n(le){s={},l=Iw(le,o,void 0,s)}function Tn(le,ce){let ye=l==null;Oj(le,ce,l||i,s,o),ye&&(i=[...i],we({}))}return A={get basename(){return c},get future(){return h},get state(){return k},get routes(){return i},get window(){return e},initialize:pe,subscribe:Te,enableScrollRestoration:Je,navigate:De,fetch:mt,revalidate:Ze,createHref:le=>t.history.createHref(le),encodeLocation:le=>t.history.encodeLocation(le),getFetcher:_n,deleteFetcher:Zt,dispose:fe,getBlocker:Ce,deleteBlocker:St,patchRoutes:Tn,_internalFetchControllers:z,_internalActiveDeferreds:ie,_internalSetRoutes:$n},A}function xJ(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function D9(t,e,n,r,o,s,i,l){let c,d;if(i){c=[];for(let h of e)if(c.push(h),h.route.id===i){d=h;break}}else c=e,d=e[e.length-1];let f=Cx(o||".",xx(c,s),iu(t.pathname,n)||t.pathname,l==="path");if(o==null&&(f.search=t.search,f.hash=t.hash),(o==null||o===""||o===".")&&d){let h=U7(f.search);if(d.route.index&&!h)f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index";else if(!d.route.index&&h){let p=new URLSearchParams(f.search),v=p.getAll("index");p.delete("index"),v.filter(S=>S).forEach(S=>p.append("index",S));let g=p.toString();f.search=g?"?"+g:""}}return r&&n!=="/"&&(f.pathname=f.pathname==="/"?n:eu([n,f.pathname])),Zh(f)}function jj(t,e,n,r){if(!r||!xJ(r))return{path:n};if(r.formMethod&&!PJ(r.formMethod))return{path:n,error:si(405,{method:r.formMethod})};let o=()=>({path:n,error:si(400,{type:"invalid-body"})}),s=r.formMethod||"get",i=t?s.toUpperCase():s.toLowerCase(),l=N$(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ya(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((v,g)=>{let[S,w]=g;return""+v+S+"="+w+`
`},""):String(r.body);return{path:n,submission:{formMethod:i,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!Ya(i))return o();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:i,formAction:l,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return o()}}}xn(typeof FormData=="function","FormData is not available in this environment");let c,d;if(r.formData)c=R9(r.formData),d=r.formData;else if(r.body instanceof FormData)c=R9(r.body),d=r.body;else if(r.body instanceof URLSearchParams)c=r.body,d=Nj(c);else if(r.body==null)c=new URLSearchParams,d=new FormData;else try{c=new URLSearchParams(r.body),d=Nj(c)}catch{return o()}let f={formMethod:i,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(Ya(f.formMethod))return{path:n,submission:f};let h=of(n);return e&&h.search&&U7(h.search)&&c.append("index",""),h.search="?"+c,{path:Zh(h),submission:f}}function Dj(t,e,n){n===void 0&&(n=!1);let r=t.findIndex(o=>o.route.id===e);return r>=0?t.slice(0,n?r+1:r):t}function Aj(t,e,n,r,o,s,i,l,c,d,f,h,p,v,g,S){let w=S?$i(S[1])?S[1].error:S[1].data:void 0,_=t.createURL(e.location),E=t.createURL(o),T=n;s&&e.errors?T=Dj(n,Object.keys(e.errors)[0],!0):S&&$i(S[1])&&(T=Dj(n,S[0]));let M=S?S[1].statusCode:void 0,j=i&&M&&M>=400,A=T.filter((R,N)=>{let{route:I}=R;if(I.lazy)return!0;if(I.loader==null)return!1;if(s)return A9(I,e.loaderData,e.errors);if(CJ(e.loaderData,e.matches[N],R)||c.some(H=>H===R.route.id))return!0;let L=e.matches[N],F=R;return Rj(R,$r({currentUrl:_,currentParams:L.params,nextUrl:E,nextParams:F.params},r,{actionResult:w,actionStatus:M,defaultShouldRevalidate:j?!1:l||_.pathname+_.search===E.pathname+E.search||_.search!==E.search||O$(L,F)}))}),k=[];return h.forEach((R,N)=>{if(s||!n.some(B=>B.route.id===R.routeId)||f.has(N))return;let I=Dh(v,R.path,g);if(!I){k.push({key:N,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let L=e.fetchers.get(N),F=Jy(I,R.path),H=!1;p.has(N)?H=!1:d.has(N)?(d.delete(N),H=!0):L&&L.state!=="idle"&&L.data===void 0?H=l:H=Rj(F,$r({currentUrl:_,currentParams:e.matches[e.matches.length-1].params,nextUrl:E,nextParams:n[n.length-1].params},r,{actionResult:w,actionStatus:M,defaultShouldRevalidate:j?!1:l})),H&&k.push({key:N,routeId:R.routeId,path:R.path,matches:I,match:F,controller:new AbortController})}),[A,k]}function A9(t,e,n){if(t.lazy)return!0;if(!t.loader)return!1;let r=e!=null&&e[t.id]!==void 0,o=n!=null&&n[t.id]!==void 0;return!r&&o?!1:typeof t.loader=="function"&&t.loader.hydrate===!0?!0:!r&&!o}function CJ(t,e,n){let r=!e||n.route.id!==e.route.id,o=t[n.route.id]===void 0;return r||o}function O$(t,e){let n=t.route.path;return t.pathname!==e.pathname||n!=null&&n.endsWith("*")&&t.params["*"]!==e.params["*"]}function Rj(t,e){if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate(e);if(typeof n=="boolean")return n}return e.defaultShouldRevalidate}function Oj(t,e,n,r,o){var s;let i;if(t){let d=r[t];xn(d,"No route found to patch children into: routeId = "+t),d.children||(d.children=[]),i=d.children}else i=n;let l=e.filter(d=>!i.some(f=>P$(d,f))),c=Iw(l,o,[t||"_","patch",String(((s=i)==null?void 0:s.length)||"0")],r);i.push(...c)}function P$(t,e){return"id"in t&&"id"in e&&t.id===e.id?!0:t.index===e.index&&t.path===e.path&&t.caseSensitive===e.caseSensitive?(!t.children||t.children.length===0)&&(!e.children||e.children.length===0)?!0:t.children.every((n,r)=>{var o;return(o=e.children)==null?void 0:o.some(s=>P$(n,s))}):!1}async function _J(t,e,n){if(!t.lazy)return;let r=await t.lazy();if(!t.lazy)return;let o=n[t.id];xn(o,"No route found in manifest");let s={};for(let i in r){let c=o[i]!==void 0&&i!=="hasErrorBoundary";Ld(!c,'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.')),!c&&!WZ.has(i)&&(s[i]=r[i])}Object.assign(o,s),Object.assign(o,$r({},e(o),{lazy:void 0}))}async function TJ(t){let{matches:e}=t,n=e.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 EJ(t,e,n,r,o,s,i,l,c,d){let f=s.map(v=>v.route.lazy?_J(v.route,c,l):void 0),h=s.map((v,g)=>{let S=f[g],w=o.some(E=>E.route.id===v.route.id);return $r({},v,{shouldLoad:w,resolve:async E=>(E&&r.method==="GET"&&(v.route.lazy||v.route.loader)&&(w=!0),w?kJ(e,r,v,S,E,d):Promise.resolve({type:ar.data,result:void 0}))})}),p=await t({matches:h,request:r,params:s[0].params,fetcherKey:i,context:d});try{await Promise.all(f)}catch{}return p}async function kJ(t,e,n,r,o,s){let i,l,c=d=>{let f,h=new Promise((g,S)=>f=S);l=()=>f(),e.signal.addEventListener("abort",l);let p=g=>typeof d!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+t+'" [routeId: '+n.route.id+"]"))):d({request:e,params:n.params,context:s},...g!==void 0?[g]:[]),v=(async()=>{try{return{type:"data",result:await(o?o(S=>p(S)):p())}}catch(g){return{type:"error",result:g}}})();return Promise.race([v,h])};try{let d=n.route[t];if(r)if(d){let f,[h]=await Promise.all([c(d).catch(p=>{f=p}),r]);if(f!==void 0)throw f;i=h}else if(await r,d=n.route[t],d)i=await c(d);else if(t==="action"){let f=new URL(e.url),h=f.pathname+f.search;throw si(405,{method:e.method,pathname:h,routeId:n.route.id})}else return{type:ar.data,result:void 0};else if(d)i=await c(d);else{let f=new URL(e.url),h=f.pathname+f.search;throw si(404,{pathname:h})}xn(i.result!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(d){return{type:ar.error,result:d}}finally{l&&e.signal.removeEventListener("abort",l)}return i}async function MJ(t){let{result:e,type:n}=t;if(I$(e)){let h;try{let p=e.headers.get("Content-Type");p&&/\bapplication\/json\b/.test(p)?e.body==null?h=null:h=await e.json():h=await e.text()}catch(p){return{type:ar.error,error:p}}return n===ar.error?{type:ar.error,error:new $w(e.status,e.statusText,h),statusCode:e.status,headers:e.headers}:{type:ar.data,data:h,statusCode:e.status,headers:e.headers}}if(n===ar.error){if(zj(e)){var r,o;if(e.data instanceof Error){var s,i;return{type:ar.error,error:e.data,statusCode:(s=e.init)==null?void 0:s.status,headers:(i=e.init)!=null&&i.headers?new Headers(e.init.headers):void 0}}return{type:ar.error,error:new $w(((r=e.init)==null?void 0:r.status)||500,void 0,e.data),statusCode:Dv(e)?e.status:void 0,headers:(o=e.init)!=null&&o.headers?new Headers(e.init.headers):void 0}}return{type:ar.error,error:e,statusCode:Dv(e)?e.status:void 0}}if(OJ(e)){var l,c;return{type:ar.deferred,deferredData:e,statusCode:(l=e.init)==null?void 0:l.status,headers:((c=e.init)==null?void 0:c.headers)&&new Headers(e.init.headers)}}if(zj(e)){var d,f;return{type:ar.data,data:e.data,statusCode:(d=e.init)==null?void 0:d.status,headers:(f=e.init)!=null&&f.headers?new Headers(e.init.headers):void 0}}return{type:ar.data,data:e}}function jJ(t,e,n,r,o,s){let i=t.headers.get("Location");if(xn(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!F7.test(i)){let l=r.slice(0,r.findIndex(c=>c.route.id===n)+1);i=D9(new URL(e.url),l,o,!0,i,s),t.headers.set("Location",i)}return t}function Pj(t,e,n,r){let o=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(F7.test(t)){let s=t,i=s.startsWith("//")?new URL(e.protocol+s):new URL(s);if(o.includes(i.protocol))throw new Error("Invalid redirect location");let l=iu(i.pathname,n)!=null;if(i.origin===e.origin&&l)return i.pathname+i.search+i.hash}try{let s=r.createURL(t);if(o.includes(s.protocol))throw new Error("Invalid redirect location")}catch{}return t}function a1(t,e,n,r){let o=t.createURL(N$(e)).toString(),s={signal:n};if(r&&Ya(r.formMethod)){let{formMethod:i,formEncType:l}=r;s.method=i.toUpperCase(),l==="application/json"?(s.headers=new Headers({"Content-Type":l}),s.body=JSON.stringify(r.json)):l==="text/plain"?s.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?s.body=R9(r.formData):s.body=r.formData}return new Request(o,s)}function R9(t){let e=new URLSearchParams;for(let[n,r]of t.entries())e.append(n,typeof r=="string"?r:r.name);return e}function Nj(t){let e=new FormData;for(let[n,r]of t.entries())e.append(n,r);return e}function DJ(t,e,n,r,o){let s={},i=null,l,c=!1,d={},f=n&&$i(n[1])?n[1].error:void 0;return t.forEach(h=>{if(!(h.route.id in e))return;let p=h.route.id,v=e[p];if(xn(!Ph(v),"Cannot handle redirect results in processLoaderData"),$i(v)){let g=v.error;f!==void 0&&(g=f,f=void 0),i=i||{};{let S=Ah(t,p);i[S.route.id]==null&&(i[S.route.id]=g)}s[p]=void 0,c||(c=!0,l=Dv(v.error)?v.error.status:500),v.headers&&(d[p]=v.headers)}else Od(v)?(r.set(p,v.deferredData),s[p]=v.deferredData.data,v.statusCode!=null&&v.statusCode!==200&&!c&&(l=v.statusCode),v.headers&&(d[p]=v.headers)):(s[p]=v.data,v.statusCode&&v.statusCode!==200&&!c&&(l=v.statusCode),v.headers&&(d[p]=v.headers))}),f!==void 0&&n&&(i={[n[0]]:f},s[n[0]]=void 0),{loaderData:s,errors:i,statusCode:l||200,loaderHeaders:d}}function Ij(t,e,n,r,o,s,i){let{loaderData:l,errors:c}=DJ(e,n,r,i);return o.forEach(d=>{let{key:f,match:h,controller:p}=d,v=s[f];if(xn(v,"Did not find corresponding fetcher result"),!(p&&p.signal.aborted))if($i(v)){let g=Ah(t.matches,h==null?void 0:h.route.id);c&&c[g.route.id]||(c=$r({},c,{[g.route.id]:v.error})),t.fetchers.delete(f)}else if(Ph(v))xn(!1,"Unhandled fetcher revalidation redirect");else if(Od(v))xn(!1,"Unhandled fetcher deferred data");else{let g=Ed(v.data);t.fetchers.set(f,g)}}),{loaderData:l,errors:c}}function $j(t,e,n,r){let o=$r({},e);for(let s of n){let i=s.route.id;if(e.hasOwnProperty(i)?e[i]!==void 0&&(o[i]=e[i]):t[i]!==void 0&&s.route.loader&&(o[i]=t[i]),r&&r.hasOwnProperty(i))break}return o}function Lj(t){return t?$i(t[1])?{actionData:{}}:{actionData:{[t[0]]:t[1].data}}:{}}function Ah(t,e){return(e?t.slice(0,t.findIndex(r=>r.route.id===e)+1):[...t]).reverse().find(r=>r.route.hasErrorBoundary===!0)||t[0]}function Fj(t){let e=t.length===1?t[0]:t.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function si(t,e){let{pathname:n,routeId:r,method:o,type:s,message:i}=e===void 0?{}:e,l="Unknown Server Error",c="Unknown @remix-run/router error";return t===400?(l="Bad Request",o&&n&&r?c="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"?c="defer() is not supported in actions":s==="invalid-body"&&(c="Unable to encode submission body")):t===403?(l="Forbidden",c='Route "'+r+'" does not match URL "'+n+'"'):t===404?(l="Not Found",c='No route matches URL "'+n+'"'):t===405&&(l="Method Not Allowed",o&&n&&r?c="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&&(c='Invalid request method "'+o.toUpperCase()+'"')),new $w(t||500,l,new Error(c),!0)}function y3(t){let e=Object.entries(t);for(let n=e.length-1;n>=0;n--){let[r,o]=e[n];if(Ph(o))return{key:r,result:o}}}function N$(t){let e=typeof t=="string"?of(t):t;return Zh($r({},e,{hash:""}))}function AJ(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function RJ(t){return I$(t.result)&&yJ.has(t.result.status)}function Od(t){return t.type===ar.deferred}function $i(t){return t.type===ar.error}function Ph(t){return(t&&t.type)===ar.redirect}function zj(t){return typeof t=="object"&&t!=null&&"type"in t&&"data"in t&&"init"in t&&t.type==="DataWithResponseInit"}function OJ(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function I$(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function PJ(t){return gJ.has(t.toLowerCase())}function Ya(t){return pJ.has(t.toLowerCase())}async function NJ(t,e,n,r,o){let s=Object.entries(e);for(let i=0;i<s.length;i++){let[l,c]=s[i],d=t.find(p=>(p==null?void 0:p.route.id)===l);if(!d)continue;let f=r.find(p=>p.route.id===d.route.id),h=f!=null&&!O$(f,d)&&(o&&o[d.route.id])!==void 0;Od(c)&&h&&await z7(c,n,!1).then(p=>{p&&(e[l]=p)})}}async function IJ(t,e,n){for(let r=0;r<n.length;r++){let{key:o,routeId:s,controller:i}=n[r],l=e[o];t.find(d=>(d==null?void 0:d.route.id)===s)&&Od(l)&&(xn(i,"Expected an AbortController for revalidating fetcher deferred result"),await z7(l,i.signal,!0).then(d=>{d&&(e[o]=d)}))}}async function z7(t,e,n){if(n===void 0&&(n=!1),!await t.deferredData.resolveData(e)){if(n)try{return{type:ar.data,data:t.deferredData.unwrappedData}}catch(o){return{type:ar.error,error:o}}return{type:ar.data,data:t.deferredData.data}}}function U7(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function Jy(t,e){let n=typeof e=="string"?of(e).search:e.search;if(t[t.length-1].route.index&&U7(n||""))return t[t.length-1];let r=D$(t);return r[r.length-1]}function Uj(t){let{formMethod:e,formAction:n,formEncType:r,text:o,formData:s,json:i}=t;if(!(!e||!n||!r)){if(o!=null)return{formMethod:e,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(s!=null)return{formMethod:e,formAction:n,formEncType:r,formData:s,json:void 0,text:void 0};if(i!==void 0)return{formMethod:e,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function w_(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function $J(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function $y(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function LJ(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function Ed(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function FJ(t,e){try{let n=t.sessionStorage.getItem(R$);if(n){let r=JSON.parse(n);for(let[o,s]of Object.entries(r||{}))s&&Array.isArray(s)&&e.set(o,new Set(s||[]))}}catch{}}function zJ(t,e){if(e.size>0){let n={};for(let[r,o]of e)n[r]=[...o];try{t.sessionStorage.setItem(R$,JSON.stringify(n))}catch(r){Ld(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/**
 * React Router v6.30.3
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function Lw(){return Lw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Lw.apply(this,arguments)}const m2=D.createContext(null),B7=D.createContext(null),bu=D.createContext(null),H7=D.createContext(null),fc=D.createContext({outlet:null,matches:[],isDataRoute:!1}),$$=D.createContext(null);function UJ(t,e){let{relative:n}=e===void 0?{}:e;pp()||xn(!1);let{basename:r,navigator:o}=D.useContext(bu),{hash:s,pathname:i,search:l}=_x(t,{relative:n}),c=i;return r!=="/"&&(c=i==="/"?r:eu([r,i])),o.createHref({pathname:c,search:l,hash:s})}function pp(){return D.useContext(H7)!=null}function Qi(){return pp()||xn(!1),D.useContext(H7).location}function x_(t){pp()||xn(!1);let{pathname:e}=Qi();return D.useMemo(()=>Li(t,j$(e)),[e,t])}function L$(t){D.useContext(bu).static||D.useLayoutEffect(t)}function hc(){let{isDataRoute:t}=D.useContext(fc);return t?eee():BJ()}function BJ(){pp()||xn(!1);let t=D.useContext(m2),{basename:e,future:n,navigator:r}=D.useContext(bu),{matches:o}=D.useContext(fc),{pathname:s}=Qi(),i=JSON.stringify(xx(o,n.v7_relativeSplatPath)),l=D.useRef(!1);return L$(()=>{l.current=!0}),D.useCallback(function(d,f){if(f===void 0&&(f={}),!l.current)return;if(typeof d=="number"){r.go(d);return}let h=Cx(d,JSON.parse(i),s,f.relative==="path");t==null&&e!=="/"&&(h.pathname=h.pathname==="/"?e:eu([e,h.pathname])),(f.replace?r.replace:r.push)(h,f.state,f)},[e,r,i,s,t])}const HJ=D.createContext(null);function qJ(t){let e=D.useContext(fc).outlet;return e&&D.createElement(HJ.Provider,{value:t},e)}function q7(){let{matches:t}=D.useContext(fc),e=t[t.length-1];return e?e.params:{}}function _x(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=D.useContext(bu),{matches:o}=D.useContext(fc),{pathname:s}=Qi(),i=JSON.stringify(xx(o,r.v7_relativeSplatPath));return D.useMemo(()=>Cx(t,JSON.parse(i),s,n==="path"),[t,i,s,n])}function VJ(t,e,n,r){pp()||xn(!1);let{navigator:o}=D.useContext(bu),{matches:s}=D.useContext(fc),i=s[s.length-1],l=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let d=Qi(),f;f=d;let h=f.pathname||"/",p=h;if(c!=="/"){let S=c.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(S.length).join("/")}let v=Dh(t,{pathname:p});return KJ(v&&v.map(S=>Object.assign({},S,{params:Object.assign({},l,S.params),pathname:eu([c,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?c:eu([c,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),s,n,r)}function YJ(){let t=B$(),e=Dv(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},e),n?D.createElement("pre",{style:o},n):null,null)}const GJ=D.createElement(YJ,null);class WJ extends D.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?D.createElement(fc.Provider,{value:this.props.routeContext},D.createElement($$.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function QJ(t){let{routeContext:e,match:n,children:r}=t,o=D.useContext(m2);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),D.createElement(fc.Provider,{value:e},r)}function KJ(t,e,n,r){var o;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var s;if(!n)return null;if(n.errors)t=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let i=t,l=(o=n)==null?void 0:o.errors;if(l!=null){let f=i.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id])!==void 0);f>=0||xn(!1),i=i.slice(0,Math.min(i.length,f+1))}let c=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<i.length;f++){let h=i[f];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(d=f),h.route.id){let{loaderData:p,errors:v}=n,g=h.route.loader&&p[h.route.id]===void 0&&(!v||v[h.route.id]===void 0);if(h.route.lazy||g){c=!0,d>=0?i=i.slice(0,d+1):i=[i[0]];break}}}return i.reduceRight((f,h,p)=>{let v,g=!1,S=null,w=null;n&&(v=l&&h.route.id?l[h.route.id]:void 0,S=h.route.errorElement||GJ,c&&(d<0&&p===0?(tee("route-fallback"),g=!0,w=null):d===p&&(g=!0,w=h.route.hydrateFallbackElement||null)));let _=e.concat(i.slice(0,p+1)),E=()=>{let T;return v?T=S:g?T=w:h.route.Component?T=D.createElement(h.route.Component,null):h.route.element?T=h.route.element:T=f,D.createElement(QJ,{match:h,routeContext:{outlet:f,matches:_,isDataRoute:n!=null},children:T})};return n&&(h.route.ErrorBoundary||h.route.errorElement||p===0)?D.createElement(WJ,{location:n.location,revalidation:n.revalidation,component:S,error:v,children:E(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):E()},null)}var F$=(function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t})(F$||{}),z$=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(z$||{});function XJ(t){let e=D.useContext(m2);return e||xn(!1),e}function ZJ(t){let e=D.useContext(B7);return e||xn(!1),e}function JJ(t){let e=D.useContext(fc);return e||xn(!1),e}function U$(t){let e=JJ(),n=e.matches[e.matches.length-1];return n.route.id||xn(!1),n.route.id}function B$(){var t;let e=D.useContext($$),n=ZJ(),r=U$();return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function eee(){let{router:t}=XJ(F$.UseNavigateStable),e=U$(z$.UseNavigateStable),n=D.useRef(!1);return L$(()=>{n.current=!0}),D.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?t.navigate(o):t.navigate(o,Lw({fromRouteId:e},s)))},[t,e])}const Bj={};function tee(t,e,n){Bj[t]||(Bj[t]=!0)}function nee(t,e){t==null||t.v7_startTransition,(t==null?void 0:t.v7_relativeSplatPath)===void 0&&(!e||e.v7_relativeSplatPath),e&&(e.v7_fetcherPersist,e.v7_normalizeFormMethod,e.v7_partialHydration,e.v7_skipActionErrorRevalidation)}function ree(t){let{to:e,replace:n,state:r,relative:o}=t;pp()||xn(!1);let{future:s,static:i}=D.useContext(bu),{matches:l}=D.useContext(fc),{pathname:c}=Qi(),d=hc(),f=Cx(e,xx(l,s.v7_relativeSplatPath),c,o==="path"),h=JSON.stringify(f);return D.useEffect(()=>d(JSON.parse(h),{replace:n,state:r,relative:o}),[d,h,o,n,r]),null}function oee(t){return qJ(t.context)}function see(t){let{basename:e="/",children:n=null,location:r,navigationType:o=go.Pop,navigator:s,static:i=!1,future:l}=t;pp()&&xn(!1);let c=e.replace(/^\/*/,"/"),d=D.useMemo(()=>({basename:c,navigator:s,static:i,future:Lw({v7_relativeSplatPath:!1},l)}),[c,l,s,i]);typeof r=="string"&&(r=of(r));let{pathname:f="/",search:h="",hash:p="",state:v=null,key:g="default"}=r,S=D.useMemo(()=>{let w=iu(f,c);return w==null?null:{location:{pathname:w,search:h,hash:p,state:v,key:g},navigationType:o}},[c,f,h,p,v,g,o]);return S==null?null:D.createElement(bu.Provider,{value:d},D.createElement(H7.Provider,{children:n,value:S}))}new Promise(()=>{});function iee(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:D.createElement(t.Component),Component:void 0}),t.HydrateFallback&&Object.assign(e,{hydrateFallbackElement:D.createElement(t.HydrateFallback),HydrateFallback:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:D.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}/**
 * React Router DOM v6.30.3
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function q1(){return q1=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},q1.apply(this,arguments)}function H$(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,s;for(s=0;s<r.length;s++)o=r[s],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function aee(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function lee(t,e){return t.button===0&&(!e||e==="_self")&&!aee(t)}function O9(t){return t===void 0&&(t=""),new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,n)=>{let r=t[n];return e.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function cee(t,e){let n=O9(t);return e&&e.forEach((r,o)=>{n.has(o)||e.getAll(o).forEach(s=>{n.append(o,s)})}),n}const uee=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],dee=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],fee="6";try{window.__reactRouterVersion=fee}catch{}function hee(t,e){return wJ({basename:e==null?void 0:e.basename,future:q1({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:VZ({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||pee(),routes:t,mapRouteProperties:iee,dataStrategy:e==null?void 0:e.dataStrategy,patchRoutesOnNavigation:e==null?void 0:e.patchRoutesOnNavigation,window:e==null?void 0:e.window}).initialize()}function pee(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=q1({},e,{errors:mee(e.errors)})),e}function mee(t){if(!t)return null;let e=Object.entries(t),n={};for(let[r,o]of e)if(o&&o.__type==="RouteErrorResponse")n[r]=new $w(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 q$=D.createContext({isTransitioning:!1}),gee=D.createContext(new Map),yee="startTransition",Hj=Z8[yee],vee="flushSync",qj=HY[vee];function bee(t){Hj?Hj(t):t()}function Ly(t){qj?qj(t):t()}class See{constructor(){this.status="pending",this.promise=new Promise((e,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function wee(t){let{fallbackElement:e,router:n,future:r}=t,[o,s]=D.useState(n.state),[i,l]=D.useState(),[c,d]=D.useState({isTransitioning:!1}),[f,h]=D.useState(),[p,v]=D.useState(),[g,S]=D.useState(),w=D.useRef(new Map),{v7_startTransition:_}=r||{},E=D.useCallback(R=>{_?bee(R):R()},[_]),T=D.useCallback((R,N)=>{let{deletedFetchers:I,flushSync:L,viewTransitionOpts:F}=N;R.fetchers.forEach((B,Y)=>{B.data!==void 0&&w.current.set(Y,B.data)}),I.forEach(B=>w.current.delete(B));let H=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!F||H){L?Ly(()=>s(R)):E(()=>s(R));return}if(L){Ly(()=>{p&&(f&&f.resolve(),p.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:F.currentLocation,nextLocation:F.nextLocation})});let B=n.window.document.startViewTransition(()=>{Ly(()=>s(R))});B.finished.finally(()=>{Ly(()=>{h(void 0),v(void 0),l(void 0),d({isTransitioning:!1})})}),Ly(()=>v(B));return}p?(f&&f.resolve(),p.skipTransition(),S({state:R,currentLocation:F.currentLocation,nextLocation:F.nextLocation})):(l(R),d({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}))},[n.window,p,f,w,E]);D.useLayoutEffect(()=>n.subscribe(T),[n,T]),D.useEffect(()=>{c.isTransitioning&&!c.flushSync&&h(new See)},[c]),D.useEffect(()=>{if(f&&i&&n.window){let R=i,N=f.promise,I=n.window.document.startViewTransition(async()=>{E(()=>s(R)),await N});I.finished.finally(()=>{h(void 0),v(void 0),l(void 0),d({isTransitioning:!1})}),v(I)}},[E,i,f,n.window]),D.useEffect(()=>{f&&i&&o.location.key===i.location.key&&f.resolve()},[f,p,o.location,i]),D.useEffect(()=>{!c.isTransitioning&&g&&(l(g.state),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),S(void 0))},[c.isTransitioning,g]),D.useEffect(()=>{},[]);let M=D.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:R=>n.navigate(R),push:(R,N,I)=>n.navigate(R,{state:N,preventScrollReset:I==null?void 0:I.preventScrollReset}),replace:(R,N,I)=>n.navigate(R,{replace:!0,state:N,preventScrollReset:I==null?void 0:I.preventScrollReset})}),[n]),j=n.basename||"/",A=D.useMemo(()=>({router:n,navigator:M,static:!1,basename:j}),[n,M,j]),k=D.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return D.useEffect(()=>nee(r,n.future),[r,n.future]),D.createElement(D.Fragment,null,D.createElement(m2.Provider,{value:A},D.createElement(B7.Provider,{value:o},D.createElement(gee.Provider,{value:w.current},D.createElement(q$.Provider,{value:c},D.createElement(see,{basename:j,location:o.location,navigationType:o.historyAction,navigator:M,future:k},o.initialized||n.future.v7_partialHydration?D.createElement(xee,{routes:n.routes,future:n.future,state:o}):e))))),null)}const xee=D.memo(Cee);function Cee(t){let{routes:e,future:n,state:r}=t;return VJ(e,void 0,r,n)}const _ee=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Tee=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,V7=D.forwardRef(function(e,n){let{onClick:r,relative:o,reloadDocument:s,replace:i,state:l,target:c,to:d,preventScrollReset:f,viewTransition:h}=e,p=H$(e,uee),{basename:v}=D.useContext(bu),g,S=!1;if(typeof d=="string"&&Tee.test(d)&&(g=d,_ee))try{let T=new URL(window.location.href),M=d.startsWith("//")?new URL(T.protocol+d):new URL(d),j=iu(M.pathname,v);M.origin===T.origin&&j!=null?d=j+M.search+M.hash:S=!0}catch{}let w=UJ(d,{relative:o}),_=Mee(d,{replace:i,state:l,target:c,preventScrollReset:f,relative:o,viewTransition:h});function E(T){r&&r(T),T.defaultPrevented||_(T)}return D.createElement("a",q1({},p,{href:g||w,onClick:S||s?r:E,ref:n,target:c}))}),Eee=D.forwardRef(function(e,n){let{"aria-current":r="page",caseSensitive:o=!1,className:s="",end:i=!1,style:l,to:c,viewTransition:d,children:f}=e,h=H$(e,dee),p=_x(c,{relative:h.relative}),v=Qi(),g=D.useContext(B7),{navigator:S,basename:w}=D.useContext(bu),_=g!=null&&Dee(p)&&d===!0,E=S.encodeLocation?S.encodeLocation(p).pathname:p.pathname,T=v.pathname,M=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;o||(T=T.toLowerCase(),M=M?M.toLowerCase():null,E=E.toLowerCase()),M&&w&&(M=iu(M,w)||M);const j=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let A=T===E||!i&&T.startsWith(E)&&T.charAt(j)==="/",k=M!=null&&(M===E||!i&&M.startsWith(E)&&M.charAt(E.length)==="/"),R={isActive:A,isPending:k,isTransitioning:_},N=A?r:void 0,I;typeof s=="function"?I=s(R):I=[s,A?"active":null,k?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let L=typeof l=="function"?l(R):l;return D.createElement(V7,q1({},h,{"aria-current":N,className:I,ref:n,style:L,to:c,viewTransition:d}),typeof f=="function"?f(R):f)});var P9;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(P9||(P9={}));var Vj;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Vj||(Vj={}));function kee(t){let e=D.useContext(m2);return e||xn(!1),e}function Mee(t,e){let{target:n,replace:r,state:o,preventScrollReset:s,relative:i,viewTransition:l}=e===void 0?{}:e,c=hc(),d=Qi(),f=_x(t,{relative:i});return D.useCallback(h=>{if(lee(h,n)){h.preventDefault();let p=r!==void 0?r:Zh(d)===Zh(f);c(t,{replace:p,state:o,preventScrollReset:s,relative:i,viewTransition:l})}},[d,c,f,r,o,n,t,s,i,l])}function jee(t){let e=D.useRef(O9(t)),n=D.useRef(!1),r=Qi(),o=D.useMemo(()=>cee(r.search,n.current?null:e.current),[r.search]),s=hc(),i=D.useCallback((l,c)=>{const d=O9(typeof l=="function"?l(o):l);n.current=!0,s("?"+d,c)},[s,o]);return[o,i]}function Dee(t,e){e===void 0&&(e={});let n=D.useContext(q$);n==null&&xn(!1);let{basename:r}=kee(P9.useViewTransitionState),o=_x(t,{relative:e.relative});if(!n.isTransitioning)return!1;let s=iu(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=iu(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Li(o.pathname,i)!=null||Li(o.pathname,s)!=null}var Aee=Object.defineProperty,Ree=(t,e,n)=>e in t?Aee(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Fw=(t,e,n)=>Ree(t,typeof e!="symbol"?e+"":e,n);const Oee={accent:f3("#339AF0"),primary:f3(["#f7f7f7","#f7f7f7","#f7f7f7","#f7f7f7","#f7f7f7","#f7f7f7","#343a40","#f7f7f7","#f7f7f7","#f7f7f7"]),secondary:f3("#868e96"),warning:f3("#FA5252"),grey:["#F7F9FB","#EEF3F9","#E6EDF5","#DAE3ED","#C9D3E0","#A9B4C6","#818DA1","#4C576A","#31394A","#1E232E"]},Pee={cursorType:"pointer",colors:Oee},jn={DiskFileShared:1,DiskFileCommented:2,DiskFileMentioned:3,DiskFileUploaded:23,DiskFilePermissionGranted:24,DiskFileDownloadReady:25,DiskLinkGenerated:26,DiskDirectoryShared:200,DiskRoomShared:201,ProjectShared:400,ProjectTaskCreated:401,ProjectTaskDeleted:402,ProjectTaskUpdated:403,ProjectTaskMoved:404,ProjectTaskStatusChanged:405,ProjectTaskCommented:406,ProjectMyTaskDeleted:420,ProjectMyTaskUpdated:421,ProjectMyTaskMoved:422,ProjectMyTaskStatusChanged:423,ProjectMyTaskCommented:424,ProjectTaskUnassigned:425,ProjectTaskAssigned:426,ProjectTaskMentioned:427,ProjectTaskAttachmentAdded:429,ProjectSprintCreated:450,AdminRoleAssigned:500,AdminRoleDeleted:501,MailMessageImportant:550,MailMessageReceived:551,CalendarShared:600,CalendarEventCanceled:601,CalendarEventInvited:602,CalendarEventUpdated:603,CalendarEventUpcoming:604},Kc={Unread:0,Read:1},V$=()=>{const{colorScheme:t}=i2();return{isDark:t==="dark",colorScheme:t}},g2=({children:t})=>b.jsx(_t,{gap:2,w:"100%",style:{flexGrow:1},children:t});function Y$(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var rw={exports:{}},Nee=rw.exports,Yj;function G$(){return Yj||(Yj=1,(function(t,e){(function(n,r){t.exports=r()})(Nee,function(){var n=1e3,r=6e4,o=36e5,s="millisecond",i="second",l="minute",c="hour",d="day",f="week",h="month",p="quarter",v="year",g="date",S="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|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,E={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(B){var Y=["th","st","nd","rd"],U=B%100;return"["+B+(Y[(U-20)%10]||Y[U]||Y[0])+"]"}},T=function(B,Y,U){var q=String(B);return!q||q.length>=Y?B:""+Array(Y+1-q.length).join(U)+B},M={s:T,z:function(B){var Y=-B.utcOffset(),U=Math.abs(Y),q=Math.floor(U/60),z=U%60;return(Y<=0?"+":"-")+T(q,2,"0")+":"+T(z,2,"0")},m:function B(Y,U){if(Y.date()<U.date())return-B(U,Y);var q=12*(U.year()-Y.year())+(U.month()-Y.month()),z=Y.clone().add(q,h),W=U-z<0,K=Y.clone().add(q+(W?-1:1),h);return+(-(q+(U-z)/(W?z-K:K-z))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:h,y:v,w:f,d,D:g,h:c,m:l,s:i,ms:s,Q:p}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},j="en",A={};A[j]=E;var k="$isDayjsObject",R=function(B){return B instanceof F||!(!B||!B[k])},N=function B(Y,U,q){var z;if(!Y)return j;if(typeof Y=="string"){var W=Y.toLowerCase();A[W]&&(z=W),U&&(A[W]=U,z=W);var K=Y.split("-");if(!z&&K.length>1)return B(K[0])}else{var G=Y.name;A[G]=Y,z=G}return!q&&z&&(j=z),z||!q&&j},I=function(B,Y){if(R(B))return B.clone();var U=typeof Y=="object"?Y:{};return U.date=B,U.args=arguments,new F(U)},L=M;L.l=N,L.i=R,L.w=function(B,Y){return I(B,{locale:Y.$L,utc:Y.$u,x:Y.$x,$offset:Y.$offset})};var F=(function(){function B(U){this.$L=N(U.locale,null,!0),this.parse(U),this.$x=this.$x||U.x||{},this[k]=!0}var Y=B.prototype;return Y.parse=function(U){this.$d=(function(q){var z=q.date,W=q.utc;if(z===null)return new Date(NaN);if(L.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var K=z.match(w);if(K){var G=K[2]-1||0,X=(K[7]||"0").substring(0,3);return W?new Date(Date.UTC(K[1],G,K[3]||1,K[4]||0,K[5]||0,K[6]||0,X)):new Date(K[1],G,K[3]||1,K[4]||0,K[5]||0,K[6]||0,X)}}return new Date(z)})(U),this.init()},Y.init=function(){var U=this.$d;this.$y=U.getFullYear(),this.$M=U.getMonth(),this.$D=U.getDate(),this.$W=U.getDay(),this.$H=U.getHours(),this.$m=U.getMinutes(),this.$s=U.getSeconds(),this.$ms=U.getMilliseconds()},Y.$utils=function(){return L},Y.isValid=function(){return this.$d.toString()!==S},Y.isSame=function(U,q){var z=I(U);return this.startOf(q)<=z&&z<=this.endOf(q)},Y.isAfter=function(U,q){return I(U)<this.startOf(q)},Y.isBefore=function(U,q){return this.endOf(q)<I(U)},Y.$g=function(U,q,z){return L.u(U)?this[q]:this.set(z,U)},Y.unix=function(){return Math.floor(this.valueOf()/1e3)},Y.valueOf=function(){return this.$d.getTime()},Y.startOf=function(U,q){var z=this,W=!!L.u(q)||q,K=L.p(U),G=function(pe,fe){var Te=L.w(z.$u?Date.UTC(z.$y,fe,pe):new Date(z.$y,fe,pe),z);return W?Te:Te.endOf(d)},X=function(pe,fe){return L.w(z.toDate()[pe].apply(z.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(fe)),z)},J=this.$W,ne=this.$M,se=this.$D,ie="set"+(this.$u?"UTC":"");switch(K){case v:return W?G(1,0):G(31,11);case h:return W?G(1,ne):G(0,ne+1);case f:var oe=this.$locale().weekStart||0,de=(J<oe?J+7:J)-oe;return G(W?se-de:se+(6-de),ne);case d:case g:return X(ie+"Hours",0);case c:return X(ie+"Minutes",1);case l:return X(ie+"Seconds",2);case i:return X(ie+"Milliseconds",3);default:return this.clone()}},Y.endOf=function(U){return this.startOf(U,!1)},Y.$set=function(U,q){var z,W=L.p(U),K="set"+(this.$u?"UTC":""),G=(z={},z[d]=K+"Date",z[g]=K+"Date",z[h]=K+"Month",z[v]=K+"FullYear",z[c]=K+"Hours",z[l]=K+"Minutes",z[i]=K+"Seconds",z[s]=K+"Milliseconds",z)[W],X=W===d?this.$D+(q-this.$W):q;if(W===h||W===v){var J=this.clone().set(g,1);J.$d[G](X),J.init(),this.$d=J.set(g,Math.min(this.$D,J.daysInMonth())).$d}else G&&this.$d[G](X);return this.init(),this},Y.set=function(U,q){return this.clone().$set(U,q)},Y.get=function(U){return this[L.p(U)]()},Y.add=function(U,q){var z,W=this;U=Number(U);var K=L.p(q),G=function(ne){var se=I(W);return L.w(se.date(se.date()+Math.round(ne*U)),W)};if(K===h)return this.set(h,this.$M+U);if(K===v)return this.set(v,this.$y+U);if(K===d)return G(1);if(K===f)return G(7);var X=(z={},z[l]=r,z[c]=o,z[i]=n,z)[K]||1,J=this.$d.getTime()+U*X;return L.w(J,this)},Y.subtract=function(U,q){return this.add(-1*U,q)},Y.format=function(U){var q=this,z=this.$locale();if(!this.isValid())return z.invalidDate||S;var W=U||"YYYY-MM-DDTHH:mm:ssZ",K=L.z(this),G=this.$H,X=this.$m,J=this.$M,ne=z.weekdays,se=z.months,ie=z.meridiem,oe=function(fe,Te,we,_e){return fe&&(fe[Te]||fe(q,W))||we[Te].slice(0,_e)},de=function(fe){return L.s(G%12||12,fe,"0")},pe=ie||function(fe,Te,we){var _e=fe<12?"AM":"PM";return we?_e.toLowerCase():_e};return W.replace(_,function(fe,Te){return Te||(function(we){switch(we){case"YY":return String(q.$y).slice(-2);case"YYYY":return L.s(q.$y,4,"0");case"M":return J+1;case"MM":return L.s(J+1,2,"0");case"MMM":return oe(z.monthsShort,J,se,3);case"MMMM":return oe(se,J);case"D":return q.$D;case"DD":return L.s(q.$D,2,"0");case"d":return String(q.$W);case"dd":return oe(z.weekdaysMin,q.$W,ne,2);case"ddd":return oe(z.weekdaysShort,q.$W,ne,3);case"dddd":return ne[q.$W];case"H":return String(G);case"HH":return L.s(G,2,"0");case"h":return de(1);case"hh":return de(2);case"a":return pe(G,X,!0);case"A":return pe(G,X,!1);case"m":return String(X);case"mm":return L.s(X,2,"0");case"s":return String(q.$s);case"ss":return L.s(q.$s,2,"0");case"SSS":return L.s(q.$ms,3,"0");case"Z":return K}return null})(fe)||K.replace(":","")})},Y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Y.diff=function(U,q,z){var W,K=this,G=L.p(q),X=I(U),J=(X.utcOffset()-this.utcOffset())*r,ne=this-X,se=function(){return L.m(K,X)};switch(G){case v:W=se()/12;break;case h:W=se();break;case p:W=se()/3;break;case f:W=(ne-J)/6048e5;break;case d:W=(ne-J)/864e5;break;case c:W=ne/o;break;case l:W=ne/r;break;case i:W=ne/n;break;default:W=ne}return z?W:L.a(W)},Y.daysInMonth=function(){return this.endOf(h).$D},Y.$locale=function(){return A[this.$L]},Y.locale=function(U,q){if(!U)return this.$L;var z=this.clone(),W=N(U,q,!0);return W&&(z.$L=W),z},Y.clone=function(){return L.w(this.$d,this)},Y.toDate=function(){return new Date(this.valueOf())},Y.toJSON=function(){return this.isValid()?this.toISOString():null},Y.toISOString=function(){return this.$d.toISOString()},Y.toString=function(){return this.$d.toUTCString()},B})(),H=F.prototype;return I.prototype=H,[["$ms",s],["$s",i],["$m",l],["$H",c],["$W",d],["$M",h],["$y",v],["$D",g]].forEach(function(B){H[B[1]]=function(Y){return this.$g(Y,B[0],B[1])}}),I.extend=function(B,Y){return B.$i||(B(Y,F,I),B.$i=!0),I},I.locale=N,I.isDayjs=R,I.unix=function(B){return I(1e3*B)},I.en=A[j],I.Ls=A,I.p={},I})})(rw)),rw.exports}var Iee=G$();const j1=Y$(Iee);var ow={exports:{}},$ee=ow.exports,Gj;function Lee(){return Gj||(Gj=1,(function(t,e){(function(n,r){t.exports=r(G$())})($ee,function(n){function r(g){return g&&typeof g=="object"&&"default"in g?g:{default:g}}var o=r(n),s="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),i="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),l="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),c="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),d=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function f(g,S,w){var _,E;return w==="m"?S?"минута":"минуту":g+" "+(_=+g,E={mm:S?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[w].split("_"),_%10==1&&_%100!=11?E[0]:_%10>=2&&_%10<=4&&(_%100<10||_%100>=20)?E[1]:E[2])}var h=function(g,S){return d.test(S)?s[g.month()]:i[g.month()]};h.s=i,h.f=s;var p=function(g,S){return d.test(S)?l[g.month()]:c[g.month()]};p.s=c,p.f=l;var v={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:h,monthsShort:p,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:f,mm:f,h:"час",hh:f,d:"день",dd:f,M:"месяц",MM:f,y:"год",yy:f},ordinal:function(g){return g},meridiem:function(g){return g<4?"ночи":g<12?"утра":g<17?"дня":"вечера"}};return o.default.locale(v,null,!0),v})})(ow)),ow.exports}Lee();const Fee=t=>{if(!t)return"";const e=ko.language.split("-")[0];j1.locale(e);const n=j1(t),r=j1();if(n.isSame(r,"day"))return new Intl.DateTimeFormat(e,{hour:"2-digit",minute:"2-digit"}).format(n.toDate());if(n.isSame(r,"year")){const i=new Intl.DateTimeFormat(e,{day:"numeric",month:"long"}).format(n.toDate()),[l,c]=i.split(" "),d=c.length>4?c.slice(0,3)+".":c;return`${l} ${d}`}return new Intl.DateTimeFormat(e).format(n.toDate())},zee=t=>{if(!t||typeof t!="string")return 0;const e=t.trim();if(e.includes(".")){const[r,...o]=e.split("."),s=parseInt(r,10);if(isNaN(s))return 0;if(o.length>0){const l=o.join(".").split(":").map(c=>parseInt(c,10));if(l.some(c=>isNaN(c)))return 0;if(l.length===3){const[c,d,f]=l;return s*86400+c*3600+d*60+f}}return s*86400}const n=e.split(":").map(r=>parseInt(r,10));if(n.some(r=>isNaN(r)))return 0;if(n.length===2){const[r,o]=n;return r*60+o}else if(n.length===3){const[r,o,s]=n;return r*3600+o*60+s}else if(n.length===4){const[r,o,s,i]=n;return r*86400+o*3600+s*60+i}return 0};function N9(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var C_=()=>Math.random().toString(36).substring(7).split("").join("."),Uee={INIT:`@@redux/INIT${C_()}`,REPLACE:`@@redux/REPLACE${C_()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${C_()}`},Wj=Uee;function Fd(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Bee(t){Object.keys(t).forEach(e=>{const n=t[e];if(typeof n(void 0,{type:Wj.INIT})>"u")throw new Error(N9(12));if(typeof n(void 0,{type:Wj.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(N9(13))})}function Hee(t){const e=Object.keys(t),n={};for(let s=0;s<e.length;s++){const i=e[s];typeof t[i]=="function"&&(n[i]=t[i])}const r=Object.keys(n);let o;try{Bee(n)}catch(s){o=s}return function(i={},l){if(o)throw o;let c=!1;const d={};for(let f=0;f<r.length;f++){const h=r[f],p=n[h],v=i[h],g=p(v,l);if(typeof g>"u")throw l&&l.type,new Error(N9(14));d[h]=g,c=c||g!==v}return c=c||r.length!==Object.keys(i).length,c?d:i}}function W$(t){return Fd(t)&&"type"in t&&typeof t.type=="string"}var Y7=Symbol.for("immer-nothing"),cv=Symbol.for("immer-draftable"),vi=Symbol.for("immer-state");function qo(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Jh=Object.getPrototypeOf;function ic(t){return!!t&&!!t[vi]}function rl(t){var e;return t?Q$(t)||Array.isArray(t)||!!t[cv]||!!((e=t.constructor)!=null&&e[cv])||y2(t)||v2(t):!1}var qee=Object.prototype.constructor.toString();function Q$(t){if(!t||typeof t!="object")return!1;const e=Jh(t);if(e===null)return!0;const n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===qee}function Vee(t){return ic(t)||qo(15,t),t[vi].base_}function Av(t,e){ep(t)===0?Reflect.ownKeys(t).forEach(n=>{e(n,t[n],t)}):t.forEach((n,r)=>e(r,n,t))}function ep(t){const e=t[vi];return e?e.type_:Array.isArray(t)?1:y2(t)?2:v2(t)?3:0}function Rv(t,e){return ep(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function __(t,e){return ep(t)===2?t.get(e):t[e]}function K$(t,e,n){const r=ep(t);r===2?t.set(e,n):r===3?t.add(n):t[e]=n}function Yee(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function y2(t){return t instanceof Map}function v2(t){return t instanceof Set}function Th(t){return t.copy_||t.base_}function I9(t,e){if(y2(t))return new Map(t);if(v2(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);const n=Q$(t);if(e===!0||e==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(t);delete r[vi];let o=Reflect.ownKeys(r);for(let s=0;s<o.length;s++){const i=o[s],l=r[i];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(r[i]={configurable:!0,writable:!0,enumerable:l.enumerable,value:t[i]})}return Object.create(Jh(t),r)}else{const r=Jh(t);if(r!==null&&n)return{...t};const o=Object.create(r);return Object.assign(o,t)}}function G7(t,e=!1){return Tx(t)||ic(t)||!rl(t)||(ep(t)>1&&(t.set=t.add=t.clear=t.delete=Gee),Object.freeze(t),e&&Object.entries(t).forEach(([n,r])=>G7(r,!0))),t}function Gee(){qo(2)}function Tx(t){return Object.isFrozen(t)}var $9={};function tp(t){const e=$9[t];return e||qo(0,t),e}function Wee(t,e){$9[t]||($9[t]=e)}var Ov;function X$(){return Ov}function Qee(t,e){return{drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Qj(t,e){e&&(tp("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function L9(t){F9(t),t.drafts_.forEach(Kee),t.drafts_=null}function F9(t){t===Ov&&(Ov=t.parent_)}function Kj(t){return Ov=Qee(Ov,t)}function Kee(t){const e=t[vi];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Xj(t,e){e.unfinalizedDrafts_=e.drafts_.length;const n=e.drafts_[0];return t!==void 0&&t!==n?(n[vi].modified_&&(L9(e),qo(4)),rl(t)&&(t=zw(e,t),e.parent_||Uw(e,t)),e.patches_&&tp("Patches").generateReplacementPatches_(n[vi].base_,t,e.patches_,e.inversePatches_)):t=zw(e,n,[]),L9(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Y7?t:void 0}function zw(t,e,n){if(Tx(e))return e;const r=e[vi];if(!r)return Av(e,(o,s)=>Zj(t,r,e,o,s,n)),e;if(r.scope_!==t)return e;if(!r.modified_)return Uw(t,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let s=o,i=!1;r.type_===3&&(s=new Set(o),o.clear(),i=!0),Av(s,(l,c)=>Zj(t,r,o,l,c,n,i)),Uw(t,o,!1),n&&t.patches_&&tp("Patches").generatePatches_(r,n,t.patches_,t.inversePatches_)}return r.copy_}function Zj(t,e,n,r,o,s,i){if(ic(o)){const l=s&&e&&e.type_!==3&&!Rv(e.assigned_,r)?s.concat(r):void 0,c=zw(t,o,l);if(K$(n,r,c),ic(c))t.canAutoFreeze_=!1;else return}else i&&n.add(o);if(rl(o)&&!Tx(o)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;zw(t,o),(!e||!e.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Uw(t,o)}}function Uw(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&G7(e,n)}function Xee(t,e){const n=Array.isArray(t),r={type_:n?1:0,scope_:e?e.scope_:X$(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,s=W7;n&&(o=[r],s=Pv);const{revoke:i,proxy:l}=Proxy.revocable(o,s);return r.draft_=l,r.revoke_=i,l}var W7={get(t,e){if(e===vi)return t;const n=Th(t);if(!Rv(n,e))return Zee(t,n,e);const r=n[e];return t.finalized_||!rl(r)?r:r===T_(t.base_,e)?(E_(t),t.copy_[e]=U9(r,t)):r},has(t,e){return e in Th(t)},ownKeys(t){return Reflect.ownKeys(Th(t))},set(t,e,n){const r=Z$(Th(t),e);if(r!=null&&r.set)return r.set.call(t.draft_,n),!0;if(!t.modified_){const o=T_(Th(t),e),s=o==null?void 0:o[vi];if(s&&s.base_===n)return t.copy_[e]=n,t.assigned_[e]=!1,!0;if(Yee(n,o)&&(n!==void 0||Rv(t.base_,e)))return!0;E_(t),z9(t)}return t.copy_[e]===n&&(n!==void 0||e in t.copy_)||Number.isNaN(n)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=n,t.assigned_[e]=!0),!0},deleteProperty(t,e){return T_(t.base_,e)!==void 0||e in t.base_?(t.assigned_[e]=!1,E_(t),z9(t)):delete t.assigned_[e],t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){const n=Th(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.type_!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty(){qo(11)},getPrototypeOf(t){return Jh(t.base_)},setPrototypeOf(){qo(12)}},Pv={};Av(W7,(t,e)=>{Pv[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}});Pv.deleteProperty=function(t,e){return Pv.set.call(this,t,e,void 0)};Pv.set=function(t,e,n){return W7.set.call(this,t[0],e,n,t[0])};function T_(t,e){const n=t[vi];return(n?Th(n):t)[e]}function Zee(t,e,n){var r;const o=Z$(e,n);return o?"value"in o?o.value:(r=o.get)==null?void 0:r.call(t.draft_):void 0}function Z$(t,e){if(!(e in t))return;let n=Jh(t);for(;n;){const r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Jh(n)}}function z9(t){t.modified_||(t.modified_=!0,t.parent_&&z9(t.parent_))}function E_(t){t.copy_||(t.copy_=I9(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Jee=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(n,r,o)=>{if(typeof n=="function"&&typeof r!="function"){const i=r;r=n;const l=this;return function(d=i,...f){return l.produce(d,h=>r.call(this,h,...f))}}typeof r!="function"&&qo(6),o!==void 0&&typeof o!="function"&&qo(7);let s;if(rl(n)){const i=Kj(this),l=U9(n,void 0);let c=!0;try{s=r(l),c=!1}finally{c?L9(i):F9(i)}return Qj(i,o),Xj(s,i)}else if(!n||typeof n!="object"){if(s=r(n),s===void 0&&(s=n),s===Y7&&(s=void 0),this.autoFreeze_&&G7(s,!0),o){const i=[],l=[];tp("Patches").generateReplacementPatches_(n,s,i,l),o(i,l)}return s}else qo(1,n)},this.produceWithPatches=(n,r)=>{if(typeof n=="function")return(l,...c)=>this.produceWithPatches(l,d=>n(d,...c));let o,s;return[this.produce(n,r,(l,c)=>{o=l,s=c}),o,s]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){rl(e)||qo(8),ic(e)&&(e=ete(e));const n=Kj(this),r=U9(e,void 0);return r[vi].isManual_=!0,F9(n),r}finishDraft(e,n){const r=e&&e[vi];(!r||!r.isManual_)&&qo(9);const{scope_:o}=r;return Qj(o,n),Xj(void 0,o)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,n){let r;for(r=n.length-1;r>=0;r--){const s=n[r];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}r>-1&&(n=n.slice(r+1));const o=tp("Patches").applyPatches_;return ic(e)?o(e,n):this.produce(e,s=>o(s,n))}};function U9(t,e){const n=y2(t)?tp("MapSet").proxyMap_(t,e):v2(t)?tp("MapSet").proxySet_(t,e):Xee(t,e);return(e?e.scope_:X$()).drafts_.push(n),n}function ete(t){return ic(t)||qo(10,t),J$(t)}function J$(t){if(!rl(t)||Tx(t))return t;const e=t[vi];let n;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,n=I9(t,e.scope_.immer_.useStrictShallowCopy_)}else n=I9(t,!0);return Av(n,(r,o)=>{K$(n,r,J$(o))}),e&&(e.finalized_=!1),n}function tte(){const e="replace",r="remove";function o(p,v,g,S){switch(p.type_){case 0:case 2:return i(p,v,g,S);case 1:return s(p,v,g,S);case 3:return l(p,v,g,S)}}function s(p,v,g,S){let{base_:w,assigned_:_}=p,E=p.copy_;E.length<w.length&&([w,E]=[E,w],[g,S]=[S,g]);for(let T=0;T<w.length;T++)if(_[T]&&E[T]!==w[T]){const M=v.concat([T]);g.push({op:e,path:M,value:h(E[T])}),S.push({op:e,path:M,value:h(w[T])})}for(let T=w.length;T<E.length;T++){const M=v.concat([T]);g.push({op:"add",path:M,value:h(E[T])})}for(let T=E.length-1;w.length<=T;--T){const M=v.concat([T]);S.push({op:r,path:M})}}function i(p,v,g,S){const{base_:w,copy_:_}=p;Av(p.assigned_,(E,T)=>{const M=__(w,E),j=__(_,E),A=T?Rv(w,E)?e:"add":r;if(M===j&&A===e)return;const k=v.concat(E);g.push(A===r?{op:A,path:k}:{op:A,path:k,value:j}),S.push(A==="add"?{op:r,path:k}:A===r?{op:"add",path:k,value:h(M)}:{op:e,path:k,value:h(M)})})}function l(p,v,g,S){let{base_:w,copy_:_}=p,E=0;w.forEach(T=>{if(!_.has(T)){const M=v.concat([E]);g.push({op:r,path:M,value:T}),S.unshift({op:"add",path:M,value:T})}E++}),E=0,_.forEach(T=>{if(!w.has(T)){const M=v.concat([E]);g.push({op:"add",path:M,value:T}),S.unshift({op:r,path:M,value:T})}E++})}function c(p,v,g,S){g.push({op:e,path:[],value:v===Y7?void 0:v}),S.push({op:e,path:[],value:p})}function d(p,v){return v.forEach(g=>{const{path:S,op:w}=g;let _=p;for(let j=0;j<S.length-1;j++){const A=ep(_);let k=S[j];typeof k!="string"&&typeof k!="number"&&(k=""+k),(A===0||A===1)&&(k==="__proto__"||k==="constructor")&&qo(19),typeof _=="function"&&k==="prototype"&&qo(19),_=__(_,k),typeof _!="object"&&qo(18,S.join("/"))}const E=ep(_),T=f(g.value),M=S[S.length-1];switch(w){case e:switch(E){case 2:return _.set(M,T);case 3:qo(16);default:return _[M]=T}case"add":switch(E){case 1:return M==="-"?_.push(T):_.splice(M,0,T);case 2:return _.set(M,T);case 3:return _.add(T);default:return _[M]=T}case r:switch(E){case 1:return _.splice(M,1);case 2:return _.delete(M);case 3:return _.delete(g.value);default:return delete _[M]}default:qo(17,w)}}),p}function f(p){if(!rl(p))return p;if(Array.isArray(p))return p.map(f);if(y2(p))return new Map(Array.from(p.entries()).map(([g,S])=>[g,f(S)]));if(v2(p))return new Set(Array.from(p).map(f));const v=Object.create(Jh(p));for(const g in p)v[g]=f(p[g]);return Rv(p,cv)&&(v[cv]=p[cv]),v}function h(p){return ic(p)?f(p):p}Wee("Patches",{applyPatches_:d,generatePatches_:o,generateReplacementPatches_:c})}var qi=new Jee,b2=qi.produce,eL=qi.produceWithPatches.bind(qi);qi.setAutoFreeze.bind(qi);qi.setUseStrictShallowCopy.bind(qi);var Jj=qi.applyPatches.bind(qi);qi.createDraft.bind(qi);qi.finishDraft.bind(qi);function nte(t,e=`expected a function, instead received ${typeof t}`){if(typeof t!="function")throw new TypeError(e)}function rte(t,e=`expected an object, instead received ${typeof t}`){if(typeof t!="object")throw new TypeError(e)}function ote(t,e="expected all items to be functions, instead received the following types: "){if(!t.every(n=>typeof n=="function")){const n=t.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${e}[${n}]`)}}var eD=t=>Array.isArray(t)?t:[t];function ste(t){const e=Array.isArray(t[0])?t[0]:t;return ote(e,"createSelector expects all input-selectors to be functions, but received the following types: "),e}function ite(t,e){const n=[],{length:r}=t;for(let o=0;o<r;o++)n.push(t[o].apply(null,e));return n}var ate=class{constructor(e){this.value=e}deref(){return this.value}},lte=typeof WeakRef<"u"?WeakRef:ate,cte=0,tD=1;function v3(){return{s:cte,v:void 0,o:null,p:null}}function Bw(t,e={}){let n=v3();const{resultEqualityCheck:r}=e;let o,s=0;function i(){var l;let c=n;const{length:d}=arguments;for(let p=0,v=d;p<v;p++){const g=arguments[p];if(typeof g=="function"||typeof g=="object"&&g!==null){let S=c.o;S===null&&(c.o=S=new WeakMap);const w=S.get(g);w===void 0?(c=v3(),S.set(g,c)):c=w}else{let S=c.p;S===null&&(c.p=S=new Map);const w=S.get(g);w===void 0?(c=v3(),S.set(g,c)):c=w}}const f=c;let h;if(c.s===tD)h=c.v;else if(h=t.apply(null,arguments),s++,r){const p=((l=o==null?void 0:o.deref)==null?void 0:l.call(o))??o;p!=null&&r(p,h)&&(h=p,s!==0&&s--),o=typeof h=="object"&&h!==null||typeof h=="function"?new lte(h):h}return f.s=tD,f.v=h,h}return i.clearCache=()=>{n=v3(),i.resetResultsCount()},i.resultsCount=()=>s,i.resetResultsCount=()=>{s=0},i}function ute(t,...e){const n=typeof t=="function"?{memoize:t,memoizeOptions:e}:t,r=(...o)=>{let s=0,i=0,l,c={},d=o.pop();typeof d=="object"&&(c=d,d=o.pop()),nte(d,`createSelector expects an output function after the inputs, but received: [${typeof d}]`);const f={...n,...c},{memoize:h,memoizeOptions:p=[],argsMemoize:v=Bw,argsMemoizeOptions:g=[]}=f,S=eD(p),w=eD(g),_=ste(o),E=h(function(){return s++,d.apply(null,arguments)},...S),T=v(function(){i++;const j=ite(_,arguments);return l=E.apply(null,j),l},...w);return Object.assign(T,{resultFunc:d,memoizedResultFunc:E,dependencies:_,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>l,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:h,argsMemoize:v})};return Object.assign(r,{withTypes:()=>r}),r}var Q7=ute(Bw),dte=Object.assign((t,e=Q7)=>{rte(t,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof t}`);const n=Object.keys(t),r=n.map(s=>t[s]);return e(r,(...s)=>s.reduce((i,l,c)=>(i[n[c]]=l,i),{}))},{withTypes:()=>dte}),fte=t=>t&&typeof t.match=="function";function Ja(t,e){function n(...r){if(e){let o=e(...r);if(!o)throw new Error(nc(0));return{type:t,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:t,payload:r[0]}}return n.toString=()=>`${t}`,n.type=t,n.match=r=>W$(r)&&r.type===t,n}function nD(t){return rl(t)?b2(t,()=>{}):t}function rD(t,e,n){return t.has(e)?t.get(e):t.set(e,n(e)).get(e)}var T1="RTK_autoBatch",Fy=()=>t=>({payload:t,meta:{[T1]:!0}});function tL(t){const e={},n=[];let r;const o={addCase(s,i){const l=typeof s=="string"?s:s.type;if(!l)throw new Error(nc(28));if(l in e)throw new Error(nc(29));return e[l]=i,o},addMatcher(s,i){return n.push({matcher:s,reducer:i}),o},addDefaultCase(s){return r=s,o}};return t(o),[e,n,r]}function hte(t){return typeof t=="function"}function pte(t,e){let[n,r,o]=tL(e),s;if(hte(t))s=()=>nD(t());else{const l=nD(t);s=()=>l}function i(l=s(),c){let d=[n[c.type],...r.filter(({matcher:f})=>f(c)).map(({reducer:f})=>f)];return d.filter(f=>!!f).length===0&&(d=[o]),d.reduce((f,h)=>{if(h)if(ic(f)){const v=h(f,c);return v===void 0?f:v}else{if(rl(f))return b2(f,p=>h(p,c));{const p=h(f,c);if(p===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return f},l)}return i.getInitialState=s,i}var nL=(t,e)=>fte(t)?t.match(e):t(e);function au(...t){return e=>t.some(n=>nL(n,e))}function uv(...t){return e=>t.every(n=>nL(n,e))}function Ex(t,e){if(!t||!t.meta)return!1;const n=typeof t.meta.requestId=="string",r=e.indexOf(t.meta.requestStatus)>-1;return n&&r}function S2(t){return typeof t[0]=="function"&&"pending"in t[0]&&"fulfilled"in t[0]&&"rejected"in t[0]}function K7(...t){return t.length===0?e=>Ex(e,["pending"]):S2(t)?au(...t.map(e=>e.pending)):K7()(t[0])}function V1(...t){return t.length===0?e=>Ex(e,["rejected"]):S2(t)?au(...t.map(e=>e.rejected)):V1()(t[0])}function kx(...t){const e=n=>n&&n.meta&&n.meta.rejectedWithValue;return t.length===0?uv(V1(...t),e):S2(t)?uv(V1(...t),e):kx()(t[0])}function zd(...t){return t.length===0?e=>Ex(e,["fulfilled"]):S2(t)?au(...t.map(e=>e.fulfilled)):zd()(t[0])}function B9(...t){return t.length===0?e=>Ex(e,["pending","fulfilled","rejected"]):S2(t)?au(...t.flatMap(e=>[e.pending,e.rejected,e.fulfilled])):B9()(t[0])}var mte="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",X7=(t=21)=>{let e="",n=t;for(;n--;)e+=mte[Math.random()*64|0];return e},gte=["name","message","stack","code"],k_=class{constructor(e,n){Fw(this,"_type"),this.payload=e,this.meta=n}},oD=class{constructor(e,n){Fw(this,"_type"),this.payload=e,this.meta=n}},yte=t=>{if(typeof t=="object"&&t!==null){const e={};for(const n of gte)typeof t[n]=="string"&&(e[n]=t[n]);return e}return{message:String(t)}},sD=(()=>{function t(e,n,r){const o=Ja(e+"/fulfilled",(c,d,f,h)=>({payload:c,meta:{...h||{},arg:f,requestId:d,requestStatus:"fulfilled"}})),s=Ja(e+"/pending",(c,d,f)=>({payload:void 0,meta:{...f||{},arg:d,requestId:c,requestStatus:"pending"}})),i=Ja(e+"/rejected",(c,d,f,h,p)=>({payload:h,error:(r&&r.serializeError||yte)(c||"Rejected"),meta:{...p||{},arg:f,requestId:d,rejectedWithValue:!!h,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"}}));function l(c){return(d,f,h)=>{const p=r!=null&&r.idGenerator?r.idGenerator(c):X7(),v=new AbortController;let g,S;function w(E){S=E,v.abort()}const _=(async function(){var E,T;let M;try{let A=(E=r==null?void 0:r.condition)==null?void 0:E.call(r,c,{getState:f,extra:h});if(bte(A)&&(A=await A),A===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const k=new Promise((R,N)=>{g=()=>{N({name:"AbortError",message:S||"Aborted"})},v.signal.addEventListener("abort",g)});d(s(p,c,(T=r==null?void 0:r.getPendingMeta)==null?void 0:T.call(r,{requestId:p,arg:c},{getState:f,extra:h}))),M=await Promise.race([k,Promise.resolve(n(c,{dispatch:d,getState:f,extra:h,requestId:p,signal:v.signal,abort:w,rejectWithValue:(R,N)=>new k_(R,N),fulfillWithValue:(R,N)=>new oD(R,N)})).then(R=>{if(R instanceof k_)throw R;return R instanceof oD?o(R.payload,p,c,R.meta):o(R,p,c)})])}catch(A){M=A instanceof k_?i(null,p,c,A.payload,A.meta):i(A,p,c)}finally{g&&v.signal.removeEventListener("abort",g)}return r&&!r.dispatchConditionRejection&&i.match(M)&&M.meta.condition||d(M),M})();return Object.assign(_,{abort:w,requestId:p,arg:c,unwrap(){return _.then(vte)}})}}return Object.assign(l,{pending:s,rejected:i,fulfilled:o,settled:au(i,o),typePrefix:e})}return t.withTypes=()=>t,t})();function vte(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function bte(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Ste=Symbol.for("rtk-slice-createasyncthunk");function wte(t,e){return`${t}/${e}`}function xte({creators:t}={}){var e;const n=(e=t==null?void 0:t.asyncThunk)==null?void 0:e[Ste];return function(o){const{name:s,reducerPath:i=s}=o;if(!s)throw new Error(nc(11));const l=(typeof o.reducers=="function"?o.reducers(_te()):o.reducers)||{},c=Object.keys(l),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(T,M){const j=typeof T=="string"?T:T.type;if(!j)throw new Error(nc(12));if(j in d.sliceCaseReducersByType)throw new Error(nc(13));return d.sliceCaseReducersByType[j]=M,f},addMatcher(T,M){return d.sliceMatchers.push({matcher:T,reducer:M}),f},exposeAction(T,M){return d.actionCreators[T]=M,f},exposeCaseReducer(T,M){return d.sliceCaseReducersByName[T]=M,f}};c.forEach(T=>{const M=l[T],j={reducerName:T,type:wte(s,T),createNotation:typeof o.reducers=="function"};Ete(M)?Mte(j,M,f,n):Tte(j,M,f)});function h(){const[T={},M=[],j=void 0]=typeof o.extraReducers=="function"?tL(o.extraReducers):[o.extraReducers],A={...T,...d.sliceCaseReducersByType};return pte(o.initialState,k=>{for(let R in A)k.addCase(R,A[R]);for(let R of d.sliceMatchers)k.addMatcher(R.matcher,R.reducer);for(let R of M)k.addMatcher(R.matcher,R.reducer);j&&k.addDefaultCase(j)})}const p=T=>T,v=new Map;let g;function S(T,M){return g||(g=h()),g(T,M)}function w(){return g||(g=h()),g.getInitialState()}function _(T,M=!1){function j(k){let R=k[T];return typeof R>"u"&&M&&(R=w()),R}function A(k=p){const R=rD(v,M,()=>new WeakMap);return rD(R,k,()=>{const N={};for(const[I,L]of Object.entries(o.selectors??{}))N[I]=Cte(L,k,w,M);return N})}return{reducerPath:T,getSelectors:A,get selectors(){return A(j)},selectSlice:j}}const E={name:s,reducer:S,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:w,..._(i),injectInto(T,{reducerPath:M,...j}={}){const A=M??i;return T.inject({reducerPath:A,reducer:S},j),{...E,..._(A,!0)}}};return E}}function Cte(t,e,n,r){function o(s,...i){let l=e(s);return typeof l>"u"&&r&&(l=n()),t(l,...i)}return o.unwrapped=t,o}var l1=xte();function _te(){function t(e,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...n}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...n){return e(...n)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:n}},asyncThunk:t}}function Tte({type:t,reducerName:e,createNotation:n},r,o){let s,i;if("reducer"in r){if(n&&!kte(r))throw new Error(nc(17));s=r.reducer,i=r.prepare}else s=r;o.addCase(t,s).exposeCaseReducer(e,s).exposeAction(e,i?Ja(t,i):Ja(t))}function Ete(t){return t._reducerDefinitionType==="asyncThunk"}function kte(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Mte({type:t,reducerName:e},n,r,o){if(!o)throw new Error(nc(18));const{payloadCreator:s,fulfilled:i,pending:l,rejected:c,settled:d,options:f}=n,h=o(t,s,f);r.exposeAction(e,h),i&&r.addCase(h.fulfilled,i),l&&r.addCase(h.pending,l),c&&r.addCase(h.rejected,c),d&&r.addMatcher(h.settled,d),r.exposeCaseReducer(e,{fulfilled:i||b3,pending:l||b3,rejected:c||b3,settled:d||b3})}function b3(){}function nc(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var rL=(t=>(t.uninitialized="uninitialized",t.pending="pending",t.fulfilled="fulfilled",t.rejected="rejected",t))(rL||{});function jte(t){return{status:t,isUninitialized:t==="uninitialized",isLoading:t==="pending",isSuccess:t==="fulfilled",isError:t==="rejected"}}var iD=Fd;function oL(t,e){if(t===e||!(iD(t)&&iD(e)||Array.isArray(t)&&Array.isArray(e)))return e;const n=Object.keys(e),r=Object.keys(t);let o=n.length===r.length;const s=Array.isArray(e)?[]:{};for(const i of n)s[i]=oL(t[i],e[i]),o&&(o=t[i]===s[i]);return o?t:s}function D1(t){let e=0;for(const n in t)e++;return e}var aD=t=>[].concat(...t);function Dte(t){return new RegExp("(^|:)//").test(t)}function Ate(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}function Hw(t){return t!=null}function Rte(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}var Ote=t=>t.replace(/\/$/,""),Pte=t=>t.replace(/^\//,"");function Nte(t,e){if(!t)return e;if(!e)return t;if(Dte(e))return e;const n=t.endsWith("/")||!e.startsWith("?")?"/":"";return t=Ote(t),e=Pte(e),`${t}${n}${e}`}function Ite(t,e,n){return t.has(e)?t.get(e):t.set(e,n).get(e)}var lD=(...t)=>fetch(...t),$te=t=>t.status>=200&&t.status<=299,Lte=t=>/ion\/(vnd\.api\+)?json/.test(t.get("content-type")||"");function cD(t){if(!Fd(t))return t;const e={...t};for(const[n,r]of Object.entries(e))r===void 0&&delete e[n];return e}function Fte({baseUrl:t,prepareHeaders:e=h=>h,fetchFn:n=lD,paramsSerializer:r,isJsonContentType:o=Lte,jsonContentType:s="application/json",jsonReplacer:i,timeout:l,responseHandler:c,validateStatus:d,...f}={}){return typeof fetch>"u"&&n===lD&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(p,v,g)=>{const{getState:S,extra:w,endpoint:_,forced:E,type:T}=v;let M,{url:j,headers:A=new Headers(f.headers),params:k=void 0,responseHandler:R=c??"json",validateStatus:N=d??$te,timeout:I=l,...L}=typeof p=="string"?{url:p}:p,F,H=v.signal;I&&(F=new AbortController,v.signal.addEventListener("abort",F.abort),H=F.signal);let B={...f,signal:H,...L};A=new Headers(cD(A)),B.headers=await e(A,{getState:S,arg:p,extra:w,endpoint:_,forced:E,type:T,extraOptions:g})||A;const Y=ne=>typeof ne=="object"&&(Fd(ne)||Array.isArray(ne)||typeof ne.toJSON=="function");if(!B.headers.has("content-type")&&Y(B.body)&&B.headers.set("content-type",s),Y(B.body)&&o(B.headers)&&(B.body=JSON.stringify(B.body,i)),k){const ne=~j.indexOf("?")?"&":"?",se=r?r(k):new URLSearchParams(cD(k));j+=ne+se}j=Nte(t,j);const U=new Request(j,B);M={request:new Request(j,B)};let z,W=!1,K=F&&setTimeout(()=>{W=!0,F.abort()},I);try{z=await n(U)}catch(ne){return{error:{status:W?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(ne)},meta:M}}finally{K&&clearTimeout(K),F==null||F.signal.removeEventListener("abort",F.abort)}const G=z.clone();M.response=G;let X,J="";try{let ne;if(await Promise.all([h(z,R).then(se=>X=se,se=>ne=se),G.text().then(se=>J=se,()=>{})]),ne)throw ne}catch(ne){return{error:{status:"PARSING_ERROR",originalStatus:z.status,data:J,error:String(ne)},meta:M}}return N(z,X)?{data:X,meta:M}:{error:{status:z.status,data:X},meta:M}};async function h(p,v){if(typeof v=="function")return v(p);if(v==="content-type"&&(v=o(p.headers)?"json":"text"),v==="json"){const g=await p.text();return g.length?JSON.parse(g):null}return p.text()}}var uD=class{constructor(e,n=void 0){this.value=e,this.meta=n}},Z7=Ja("__rtkq/focused"),sL=Ja("__rtkq/unfocused"),J7=Ja("__rtkq/online"),iL=Ja("__rtkq/offline");function aL(t){return t.type==="query"}function zte(t){return t.type==="mutation"}function eE(t,e,n,r,o,s){return Ute(t)?t(e,n,r,o).filter(Hw).map(H9).map(s):Array.isArray(t)?t.map(H9).map(s):[]}function Ute(t){return typeof t=="function"}function H9(t){return typeof t=="string"?{type:t}:t}function Bte(t,e){return t.catch(e)}var Nv=Symbol("forceQueryFn"),q9=t=>typeof t[Nv]=="function";function Hte({serializeQueryArgs:t,queryThunk:e,mutationThunk:n,api:r,context:o}){const s=new Map,i=new Map,{unsubscribeQueryResult:l,removeMutationResult:c,updateSubscriptionOptions:d}=r.internalActions;return{buildInitiateQuery:g,buildInitiateMutation:S,getRunningQueryThunk:f,getRunningMutationThunk:h,getRunningQueriesThunk:p,getRunningMutationsThunk:v};function f(w,_){return E=>{var T;const M=o.endpointDefinitions[w],j=t({queryArgs:_,endpointDefinition:M,endpointName:w});return(T=s.get(E))==null?void 0:T[j]}}function h(w,_){return E=>{var T;return(T=i.get(E))==null?void 0:T[_]}}function p(){return w=>Object.values(s.get(w)||{}).filter(Hw)}function v(){return w=>Object.values(i.get(w)||{}).filter(Hw)}function g(w,_){const E=(T,{subscribe:M=!0,forceRefetch:j,subscriptionOptions:A,[Nv]:k,...R}={})=>(N,I)=>{var L;const F=t({queryArgs:T,endpointDefinition:_,endpointName:w}),H=e({...R,type:"query",subscribe:M,forceRefetch:j,subscriptionOptions:A,endpointName:w,originalArgs:T,queryCacheKey:F,[Nv]:k}),B=r.endpoints[w].select(T),Y=N(H),U=B(I()),{requestId:q,abort:z}=Y,W=U.requestId!==q,K=(L=s.get(N))==null?void 0:L[F],G=()=>B(I()),X=Object.assign(k?Y.then(G):W&&!K?Promise.resolve(U):Promise.all([K,Y]).then(G),{arg:T,requestId:q,subscriptionOptions:A,queryCacheKey:F,abort:z,async unwrap(){const J=await X;if(J.isError)throw J.error;return J.data},refetch:()=>N(E(T,{subscribe:!1,forceRefetch:!0})),unsubscribe(){M&&N(l({queryCacheKey:F,requestId:q}))},updateSubscriptionOptions(J){X.subscriptionOptions=J,N(d({endpointName:w,requestId:q,queryCacheKey:F,options:J}))}});if(!K&&!W&&!k){const J=Ite(s,N,{});J[F]=X,X.then(()=>{delete J[F],D1(J)||s.delete(N)})}return X};return E}function S(w){return(_,{track:E=!0,fixedCacheKey:T}={})=>(M,j)=>{const A=n({type:"mutation",endpointName:w,originalArgs:_,track:E,fixedCacheKey:T}),k=M(A),{requestId:R,abort:N,unwrap:I}=k,L=Bte(k.unwrap().then(Y=>({data:Y})),Y=>({error:Y})),F=()=>{M(c({requestId:R,fixedCacheKey:T}))},H=Object.assign(L,{arg:k.arg,requestId:R,abort:N,unwrap:I,reset:F}),B=i.get(M)||{};return i.set(M,B),B[R]=H,H.then(()=>{delete B[R],D1(B)||i.delete(M)}),T&&(B[T]=H,H.then(()=>{B[T]===H&&(delete B[T],D1(B)||i.delete(M))})),H}}}function dD(t){return t}function qte({reducerPath:t,baseQuery:e,context:{endpointDefinitions:n},serializeQueryArgs:r,api:o,assertTagType:s}){const i=(E,T,M,j)=>(A,k)=>{const R=n[E],N=r({queryArgs:T,endpointDefinition:R,endpointName:E});if(A(o.internalActions.queryResultPatched({queryCacheKey:N,patches:M})),!j)return;const I=o.endpoints[E].select(T)(k()),L=eE(R.providesTags,I.data,void 0,T,{},s);A(o.internalActions.updateProvidedBy({queryCacheKey:N,providedTags:L}))},l=(E,T,M,j=!0)=>(A,k)=>{const N=o.endpoints[E].select(T)(k()),I={patches:[],inversePatches:[],undo:()=>A(o.util.patchQueryData(E,T,I.inversePatches,j))};if(N.status==="uninitialized")return I;let L;if("data"in N)if(rl(N.data)){const[F,H,B]=eL(N.data,M);I.patches.push(...H),I.inversePatches.push(...B),L=F}else L=M(N.data),I.patches.push({op:"replace",path:[],value:L}),I.inversePatches.push({op:"replace",path:[],value:N.data});return I.patches.length===0||A(o.util.patchQueryData(E,T,I.patches,j)),I},c=(E,T,M)=>j=>j(o.endpoints[E].initiate(T,{subscribe:!1,forceRefetch:!0,[Nv]:()=>({data:M})})),d=async(E,{signal:T,abort:M,rejectWithValue:j,fulfillWithValue:A,dispatch:k,getState:R,extra:N})=>{const I=n[E.endpointName];try{let L=dD,F;const H={signal:T,abort:M,dispatch:k,getState:R,extra:N,endpoint:E.endpointName,type:E.type,forced:E.type==="query"?f(E,R()):void 0,queryCacheKey:E.type==="query"?E.queryCacheKey:void 0},B=E.type==="query"?E[Nv]:void 0;if(B?F=B():I.query?(F=await e(I.query(E.originalArgs),H,I.extraOptions),I.transformResponse&&(L=I.transformResponse)):F=await I.queryFn(E.originalArgs,H,I.extraOptions,Y=>e(Y,H,I.extraOptions)),typeof process<"u",F.error)throw new uD(F.error,F.meta);return A(await L(F.data,F.meta,E.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:F.meta,[T1]:!0})}catch(L){let F=L;if(F instanceof uD){let H=dD;I.query&&I.transformErrorResponse&&(H=I.transformErrorResponse);try{return j(await H(F.value,F.meta,E.originalArgs),{baseQueryMeta:F.meta,[T1]:!0})}catch(B){F=B}}throw console.error(F),F}};function f(E,T){var M,j,A;const k=(j=(M=T[t])==null?void 0:M.queries)==null?void 0:j[E.queryCacheKey],R=(A=T[t])==null?void 0:A.config.refetchOnMountOrArgChange,N=k==null?void 0:k.fulfilledTimeStamp,I=E.forceRefetch??(E.subscribe&&R);return I?I===!0||(Number(new Date)-Number(N))/1e3>=I:!1}const h=sD(`${t}/executeQuery`,d,{getPendingMeta(){return{startedTimeStamp:Date.now(),[T1]:!0}},condition(E,{getState:T}){var M,j,A;const k=T(),R=(j=(M=k[t])==null?void 0:M.queries)==null?void 0:j[E.queryCacheKey],N=R==null?void 0:R.fulfilledTimeStamp,I=E.originalArgs,L=R==null?void 0:R.originalArgs,F=n[E.endpointName];return q9(E)?!0:(R==null?void 0:R.status)==="pending"?!1:f(E,k)||aL(F)&&((A=F==null?void 0:F.forceRefetch)!=null&&A.call(F,{currentArg:I,previousArg:L,endpointState:R,state:k}))?!0:!N},dispatchConditionRejection:!0}),p=sD(`${t}/executeMutation`,d,{getPendingMeta(){return{startedTimeStamp:Date.now(),[T1]:!0}}}),v=E=>"force"in E,g=E=>"ifOlderThan"in E,S=(E,T,M)=>(j,A)=>{const k=v(M)&&M.force,R=g(M)&&M.ifOlderThan,N=(L=!0)=>{const F={forceRefetch:L,isPrefetch:!0};return o.endpoints[E].initiate(T,F)},I=o.endpoints[E].select(T)(A());if(k)j(N());else if(R){const L=I==null?void 0:I.fulfilledTimeStamp;if(!L){j(N());return}(Number(new Date)-Number(new Date(L)))/1e3>=R&&j(N())}else j(N(!1))};function w(E){return T=>{var M,j;return((j=(M=T==null?void 0:T.meta)==null?void 0:M.arg)==null?void 0:j.endpointName)===E}}function _(E,T){return{matchPending:uv(K7(E),w(T)),matchFulfilled:uv(zd(E),w(T)),matchRejected:uv(V1(E),w(T))}}return{queryThunk:h,mutationThunk:p,prefetch:S,updateQueryData:l,upsertQueryData:c,patchQueryData:i,buildMatchThunkActions:_}}function lL(t,e,n,r){return eE(n[t.meta.arg.endpointName][e],zd(t)?t.payload:void 0,kx(t)?t.payload:void 0,t.meta.arg.originalArgs,"baseQueryMeta"in t.meta?t.meta.baseQueryMeta:void 0,r)}function S3(t,e,n){const r=t[e];r&&n(r)}function Iv(t){return("arg"in t?t.arg.fixedCacheKey:t.fixedCacheKey)??t.requestId}function fD(t,e,n){const r=t[Iv(e)];r&&n(r)}var zy={};function Vte({reducerPath:t,queryThunk:e,mutationThunk:n,serializeQueryArgs:r,context:{endpointDefinitions:o,apiUid:s,extractRehydrationInfo:i,hasRehydrationInfo:l},assertTagType:c,config:d}){const f=Ja(`${t}/resetApiState`);function h(A,k,R,N){var I;A[I=k.queryCacheKey]??(A[I]={status:"uninitialized",endpointName:k.endpointName}),S3(A,k.queryCacheKey,L=>{L.status="pending",L.requestId=R&&L.requestId?L.requestId:N.requestId,k.originalArgs!==void 0&&(L.originalArgs=k.originalArgs),L.startedTimeStamp=N.startedTimeStamp})}function p(A,k,R){S3(A,k.arg.queryCacheKey,N=>{if(N.requestId!==k.requestId&&!q9(k.arg))return;const{merge:I}=o[k.arg.endpointName];if(N.status="fulfilled",I)if(N.data!==void 0){const{fulfilledTimeStamp:L,arg:F,baseQueryMeta:H,requestId:B}=k;let Y=b2(N.data,U=>I(U,R,{arg:F.originalArgs,baseQueryMeta:H,fulfilledTimeStamp:L,requestId:B}));N.data=Y}else N.data=R;else N.data=o[k.arg.endpointName].structuralSharing??!0?oL(ic(N.data)?Vee(N.data):N.data,R):R;delete N.error,N.fulfilledTimeStamp=k.fulfilledTimeStamp})}const v=l1({name:`${t}/queries`,initialState:zy,reducers:{removeQueryResult:{reducer(A,{payload:{queryCacheKey:k}}){delete A[k]},prepare:Fy()},cacheEntriesUpserted:{reducer(A,k){for(const R of k.payload){const{queryDescription:N,value:I}=R;h(A,N,!0,{requestId:k.meta.requestId,startedTimeStamp:k.meta.timestamp}),p(A,{arg:N,requestId:k.meta.requestId,fulfilledTimeStamp:k.meta.timestamp,baseQueryMeta:{}},I)}},prepare:A=>({payload:A.map(N=>{const{endpointName:I,arg:L,value:F}=N,H=o[I];return{queryDescription:{type:"query",endpointName:I,originalArgs:N.arg,queryCacheKey:r({queryArgs:L,endpointDefinition:H,endpointName:I})},value:F}}),meta:{[T1]:!0,requestId:X7(),timestamp:Date.now()}})},queryResultPatched:{reducer(A,{payload:{queryCacheKey:k,patches:R}}){S3(A,k,N=>{N.data=Jj(N.data,R.concat())})},prepare:Fy()}},extraReducers(A){A.addCase(e.pending,(k,{meta:R,meta:{arg:N}})=>{const I=q9(N);h(k,N,I,R)}).addCase(e.fulfilled,(k,{meta:R,payload:N})=>{p(k,R,N)}).addCase(e.rejected,(k,{meta:{condition:R,arg:N,requestId:I},error:L,payload:F})=>{S3(k,N.queryCacheKey,H=>{if(!R){if(H.requestId!==I)return;H.status="rejected",H.error=F??L}})}).addMatcher(l,(k,R)=>{const{queries:N}=i(R);for(const[I,L]of Object.entries(N))((L==null?void 0:L.status)==="fulfilled"||(L==null?void 0:L.status)==="rejected")&&(k[I]=L)})}}),g=l1({name:`${t}/mutations`,initialState:zy,reducers:{removeMutationResult:{reducer(A,{payload:k}){const R=Iv(k);R in A&&delete A[R]},prepare:Fy()}},extraReducers(A){A.addCase(n.pending,(k,{meta:R,meta:{requestId:N,arg:I,startedTimeStamp:L}})=>{I.track&&(k[Iv(R)]={requestId:N,status:"pending",endpointName:I.endpointName,startedTimeStamp:L})}).addCase(n.fulfilled,(k,{payload:R,meta:N})=>{N.arg.track&&fD(k,N,I=>{I.requestId===N.requestId&&(I.status="fulfilled",I.data=R,I.fulfilledTimeStamp=N.fulfilledTimeStamp)})}).addCase(n.rejected,(k,{payload:R,error:N,meta:I})=>{I.arg.track&&fD(k,I,L=>{L.requestId===I.requestId&&(L.status="rejected",L.error=R??N)})}).addMatcher(l,(k,R)=>{const{mutations:N}=i(R);for(const[I,L]of Object.entries(N))((L==null?void 0:L.status)==="fulfilled"||(L==null?void 0:L.status)==="rejected")&&I!==(L==null?void 0:L.requestId)&&(k[I]=L)})}}),S=l1({name:`${t}/invalidation`,initialState:zy,reducers:{updateProvidedBy:{reducer(A,k){var R,N;const{queryCacheKey:I,providedTags:L}=k.payload;for(const F of Object.values(A))for(const H of Object.values(F)){const B=H.indexOf(I);B!==-1&&H.splice(B,1)}for(const{type:F,id:H}of L){const B=(R=A[F]??(A[F]={}))[N=H||"__internal_without_id"]??(R[N]=[]);B.includes(I)||B.push(I)}},prepare:Fy()}},extraReducers(A){A.addCase(v.actions.removeQueryResult,(k,{payload:{queryCacheKey:R}})=>{for(const N of Object.values(k))for(const I of Object.values(N)){const L=I.indexOf(R);L!==-1&&I.splice(L,1)}}).addMatcher(l,(k,R)=>{var N,I;const{provided:L}=i(R);for(const[F,H]of Object.entries(L))for(const[B,Y]of Object.entries(H)){const U=(N=k[F]??(k[F]={}))[I=B||"__internal_without_id"]??(N[I]=[]);for(const q of Y)U.includes(q)||U.push(q)}}).addMatcher(au(zd(e),kx(e)),(k,R)=>{const N=lL(R,"providesTags",o,c),{queryCacheKey:I}=R.meta.arg;S.caseReducers.updateProvidedBy(k,S.actions.updateProvidedBy({queryCacheKey:I,providedTags:N}))})}}),w=l1({name:`${t}/subscriptions`,initialState:zy,reducers:{updateSubscriptionOptions(A,k){},unsubscribeQueryResult(A,k){},internal_getRTKQSubscriptions(){}}}),_=l1({name:`${t}/internalSubscriptions`,initialState:zy,reducers:{subscriptionsUpdated:{reducer(A,k){return Jj(A,k.payload)},prepare:Fy()}}}),E=l1({name:`${t}/config`,initialState:{online:Rte(),focused:Ate(),middlewareRegistered:!1,...d},reducers:{middlewareRegistered(A,{payload:k}){A.middlewareRegistered=A.middlewareRegistered==="conflict"||s!==k?"conflict":!0}},extraReducers:A=>{A.addCase(J7,k=>{k.online=!0}).addCase(iL,k=>{k.online=!1}).addCase(Z7,k=>{k.focused=!0}).addCase(sL,k=>{k.focused=!1}).addMatcher(l,k=>({...k}))}}),T=Hee({queries:v.reducer,mutations:g.reducer,provided:S.reducer,subscriptions:_.reducer,config:E.reducer}),M=(A,k)=>T(f.match(k)?void 0:A,k),j={...E.actions,...v.actions,...w.actions,..._.actions,...g.actions,...S.actions,resetApiState:f};return{reducer:M,actions:j}}var jd=Symbol.for("RTKQ/skipToken"),cL={status:"uninitialized"},hD=b2(cL,()=>{}),pD=b2(cL,()=>{});function Yte({serializeQueryArgs:t,reducerPath:e,createSelector:n}){const r=h=>hD,o=h=>pD;return{buildQuerySelector:l,buildMutationSelector:c,selectInvalidatedBy:d,selectCachedArgsForQuery:f};function s(h){return{...h,...jte(h.status)}}function i(h){return h[e]}function l(h,p){return v=>{if(v===jd)return n(r,s);const g=t({queryArgs:v,endpointDefinition:p,endpointName:h});return n(w=>{var _,E;return((E=(_=i(w))==null?void 0:_.queries)==null?void 0:E[g])??hD},s)}}function c(){return h=>{let p;return typeof h=="object"?p=Iv(h)??jd:p=h,n(p===jd?o:S=>{var w,_;return((_=(w=i(S))==null?void 0:w.mutations)==null?void 0:_[p])??pD},s)}}function d(h,p){const v=h[e],g=new Set;for(const S of p.filter(Hw).map(H9)){const w=v.provided[S.type];if(!w)continue;let _=(S.id!==void 0?w[S.id]:aD(Object.values(w)))??[];for(const E of _)g.add(E)}return aD(Array.from(g.values()).map(S=>{const w=v.queries[S];return w?[{queryCacheKey:S,endpointName:w.endpointName,originalArgs:w.originalArgs}]:[]}))}function f(h,p){return Object.values(h[e].queries).filter(v=>(v==null?void 0:v.endpointName)===p&&v.status!=="uninitialized").map(v=>v.originalArgs)}}var w3=WeakMap?new WeakMap:void 0,mD=({endpointName:t,queryArgs:e})=>{let n="";const r=w3==null?void 0:w3.get(e);if(typeof r=="string")n=r;else{const o=JSON.stringify(e,(s,i)=>(i=typeof i=="bigint"?{$bigint:i.toString()}:i,i=Fd(i)?Object.keys(i).sort().reduce((l,c)=>(l[c]=i[c],l),{}):i,i));Fd(e)&&(w3==null||w3.set(e,o)),n=o}return`${t}(${n})`};function Gte(...t){return function(n){const r=Bw(d=>{var f;return(f=n.extractRehydrationInfo)==null?void 0:f.call(n,d,{reducerPath:n.reducerPath??"api"})}),o={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...n,extractRehydrationInfo:r,serializeQueryArgs(d){let f=mD;if("serializeQueryArgs"in d.endpointDefinition){const h=d.endpointDefinition.serializeQueryArgs;f=p=>{const v=h(p);return typeof v=="string"?v:mD({...p,queryArgs:v})}}else n.serializeQueryArgs&&(f=n.serializeQueryArgs);return f(d)},tagTypes:[...n.tagTypes||[]]},s={endpointDefinitions:{},batch(d){d()},apiUid:X7(),extractRehydrationInfo:r,hasRehydrationInfo:Bw(d=>r(d)!=null)},i={injectEndpoints:c,enhanceEndpoints({addTagTypes:d,endpoints:f}){if(d)for(const h of d)o.tagTypes.includes(h)||o.tagTypes.push(h);if(f)for(const[h,p]of Object.entries(f))typeof p=="function"?p(s.endpointDefinitions[h]):Object.assign(s.endpointDefinitions[h]||{},p);return i}},l=t.map(d=>d.init(i,o,s));function c(d){const f=d.endpoints({query:h=>({...h,type:"query"}),mutation:h=>({...h,type:"mutation"})});for(const[h,p]of Object.entries(f)){if(d.overrideExisting!==!0&&h in s.endpointDefinitions){if(d.overrideExisting==="throw")throw new Error(nc(39));continue}s.endpointDefinitions[h]=p;for(const v of l)v.injectEndpoint(h,p)}return i}return i.injectEndpoints({endpoints:n.endpoints})}}function Cd(t,...e){return Object.assign(t,...e)}var Wte=({api:t,queryThunk:e,internalState:n})=>{const r=`${t.reducerPath}/subscriptions`;let o=null,s=null;const{updateSubscriptionOptions:i,unsubscribeQueryResult:l}=t.internalActions,c=(v,g)=>{var S,w,_;if(i.match(g)){const{queryCacheKey:T,requestId:M,options:j}=g.payload;return(S=v==null?void 0:v[T])!=null&&S[M]&&(v[T][M]=j),!0}if(l.match(g)){const{queryCacheKey:T,requestId:M}=g.payload;return v[T]&&delete v[T][M],!0}if(t.internalActions.removeQueryResult.match(g))return delete v[g.payload.queryCacheKey],!0;if(e.pending.match(g)){const{meta:{arg:T,requestId:M}}=g,j=v[w=T.queryCacheKey]??(v[w]={});return j[`${M}_running`]={},T.subscribe&&(j[M]=T.subscriptionOptions??j[M]??{}),!0}let E=!1;if(e.fulfilled.match(g)||e.rejected.match(g)){const T=v[g.meta.arg.queryCacheKey]||{},M=`${g.meta.requestId}_running`;E||(E=!!T[M]),delete T[M]}if(e.rejected.match(g)){const{meta:{condition:T,arg:M,requestId:j}}=g;if(T&&M.subscribe){const A=v[_=M.queryCacheKey]??(v[_]={});A[j]=M.subscriptionOptions??A[j]??{},E=!0}}return E},d=()=>n.currentSubscriptions,p={getSubscriptions:d,getSubscriptionCount:v=>{const S=d()[v]??{};return D1(S)},isRequestSubscribed:(v,g)=>{var S;const w=d();return!!((S=w==null?void 0:w[v])!=null&&S[g])}};return(v,g)=>{if(o||(o=JSON.parse(JSON.stringify(n.currentSubscriptions))),t.util.resetApiState.match(v))return o=n.currentSubscriptions={},s=null,[!0,!1];if(t.internalActions.internal_getRTKQSubscriptions.match(v))return[!1,p];const S=c(n.currentSubscriptions,v);let w=!0;if(S){s||(s=setTimeout(()=>{const T=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,M]=eL(o,()=>T);g.next(t.internalActions.subscriptionsUpdated(M)),o=T,s=null},500));const _=typeof v.type=="string"&&!!v.type.startsWith(r),E=e.rejected.match(v)&&v.meta.condition&&!!v.meta.arg.subscribe;w=!_&&!E}return[w,!1]}};function Qte(t){for(const e in t)return!1;return!0}var Kte=2147483647/1e3-1,Xte=({reducerPath:t,api:e,queryThunk:n,context:r,internalState:o})=>{const{removeQueryResult:s,unsubscribeQueryResult:i,cacheEntriesUpserted:l}=e.internalActions,c=au(i.match,n.fulfilled,n.rejected,l.match);function d(v){const g=o.currentSubscriptions[v];return!!g&&!Qte(g)}const f={},h=(v,g,S)=>{var w;if(c(v)){const _=g.getState()[t];let E;if(l.match(v))E=v.payload.map(T=>T.queryDescription.queryCacheKey);else{const{queryCacheKey:T}=i.match(v)?v.payload:v.meta.arg;E=[T]}for(const T of E)p(T,(w=_.queries[T])==null?void 0:w.endpointName,g,_.config)}if(e.util.resetApiState.match(v))for(const[_,E]of Object.entries(f))E&&clearTimeout(E),delete f[_];if(r.hasRehydrationInfo(v)){const _=g.getState()[t],{queries:E}=r.extractRehydrationInfo(v);for(const[T,M]of Object.entries(E))p(T,M==null?void 0:M.endpointName,g,_.config)}};function p(v,g,S,w){const _=r.endpointDefinitions[g],E=(_==null?void 0:_.keepUnusedDataFor)??w.keepUnusedDataFor;if(E===1/0)return;const T=Math.max(0,Math.min(E,Kte));if(!d(v)){const M=f[v];M&&clearTimeout(M),f[v]=setTimeout(()=>{d(v)||S.dispatch(s({queryCacheKey:v})),delete f[v]},T*1e3)}}return h},gD=new Error("Promise never resolved before cacheEntryRemoved."),Zte=({api:t,reducerPath:e,context:n,queryThunk:r,mutationThunk:o,internalState:s})=>{const i=B9(r),l=B9(o),c=zd(r,o),d={};function f(S,w,_){const E=d[S];E!=null&&E.valueResolved&&(E.valueResolved({data:w,meta:_}),delete E.valueResolved)}function h(S){const w=d[S];w&&(delete d[S],w.cacheEntryRemoved())}const p=(S,w,_)=>{const E=v(S);function T(M,j,A,k){const R=_[e].queries[j],N=w.getState()[e].queries[j];!R&&N&&g(M,k,j,w,A)}if(r.pending.match(S))T(S.meta.arg.endpointName,E,S.meta.requestId,S.meta.arg.originalArgs);else if(t.internalActions.cacheEntriesUpserted.match(S))for(const{queryDescription:M,value:j}of S.payload){const{endpointName:A,originalArgs:k,queryCacheKey:R}=M;T(A,R,S.meta.requestId,k),f(R,j,{})}else if(o.pending.match(S))w.getState()[e].mutations[E]&&g(S.meta.arg.endpointName,S.meta.arg.originalArgs,E,w,S.meta.requestId);else if(c(S))f(E,S.payload,S.meta.baseQueryMeta);else if(t.internalActions.removeQueryResult.match(S)||t.internalActions.removeMutationResult.match(S))h(E);else if(t.util.resetApiState.match(S))for(const M of Object.keys(d))h(M)};function v(S){return i(S)?S.meta.arg.queryCacheKey:l(S)?S.meta.arg.fixedCacheKey??S.meta.requestId:t.internalActions.removeQueryResult.match(S)?S.payload.queryCacheKey:t.internalActions.removeMutationResult.match(S)?Iv(S.payload):""}function g(S,w,_,E,T){const M=n.endpointDefinitions[S],j=M==null?void 0:M.onCacheEntryAdded;if(!j)return;const A={},k=new Promise(H=>{A.cacheEntryRemoved=H}),R=Promise.race([new Promise(H=>{A.valueResolved=H}),k.then(()=>{throw gD})]);R.catch(()=>{}),d[_]=A;const N=t.endpoints[S].select(M.type==="query"?w:_),I=E.dispatch((H,B,Y)=>Y),L={...E,getCacheEntry:()=>N(E.getState()),requestId:T,extra:I,updateCachedData:M.type==="query"?H=>E.dispatch(t.util.updateQueryData(S,w,H)):void 0,cacheDataLoaded:R,cacheEntryRemoved:k},F=j(w,L);Promise.resolve(F).catch(H=>{if(H!==gD)throw H})}return p},Jte=({api:t,context:{apiUid:e},reducerPath:n})=>(r,o)=>{t.util.resetApiState.match(r)&&o.dispatch(t.internalActions.middlewareRegistered(e))},ene=({reducerPath:t,context:e,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:o,api:s,assertTagType:i,refetchQuery:l,internalState:c})=>{const{removeQueryResult:d}=s.internalActions,f=au(zd(r),kx(r)),h=au(zd(r,o),V1(r,o));let p=[];const v=(w,_)=>{f(w)?S(lL(w,"invalidatesTags",n,i),_):h(w)?S([],_):s.util.invalidateTags.match(w)&&S(eE(w.payload,void 0,void 0,void 0,void 0,i),_)};function g(w){var _,E;for(const T in w.queries)if(((_=w.queries[T])==null?void 0:_.status)==="pending")return!0;for(const T in w.mutations)if(((E=w.mutations[T])==null?void 0:E.status)==="pending")return!0;return!1}function S(w,_){const E=_.getState(),T=E[t];if(p.push(...w),T.config.invalidationBehavior==="delayed"&&g(T))return;const M=p;if(p=[],M.length===0)return;const j=s.util.selectInvalidatedBy(E,M);e.batch(()=>{const A=Array.from(j.values());for(const{queryCacheKey:k}of A){const R=T.queries[k],N=c.currentSubscriptions[k]??{};R&&(D1(N)===0?_.dispatch(d({queryCacheKey:k})):R.status!=="uninitialized"&&_.dispatch(l(R)))}})}return v},tne=({reducerPath:t,queryThunk:e,api:n,refetchQuery:r,internalState:o})=>{const s={},i=(p,v)=>{(n.internalActions.updateSubscriptionOptions.match(p)||n.internalActions.unsubscribeQueryResult.match(p))&&c(p.payload,v),(e.pending.match(p)||e.rejected.match(p)&&p.meta.condition)&&c(p.meta.arg,v),(e.fulfilled.match(p)||e.rejected.match(p)&&!p.meta.condition)&&l(p.meta.arg,v),n.util.resetApiState.match(p)&&f()};function l({queryCacheKey:p},v){const g=v.getState()[t],S=g.queries[p],w=o.currentSubscriptions[p];if(!S||S.status==="uninitialized")return;const{lowestPollingInterval:_,skipPollingIfUnfocused:E}=h(w);if(!Number.isFinite(_))return;const T=s[p];T!=null&&T.timeout&&(clearTimeout(T.timeout),T.timeout=void 0);const M=Date.now()+_;s[p]={nextPollTimestamp:M,pollingInterval:_,timeout:setTimeout(()=>{(g.config.focused||!E)&&v.dispatch(r(S)),l({queryCacheKey:p},v)},_)}}function c({queryCacheKey:p},v){const S=v.getState()[t].queries[p],w=o.currentSubscriptions[p];if(!S||S.status==="uninitialized")return;const{lowestPollingInterval:_}=h(w);if(!Number.isFinite(_)){d(p);return}const E=s[p],T=Date.now()+_;(!E||T<E.nextPollTimestamp)&&l({queryCacheKey:p},v)}function d(p){const v=s[p];v!=null&&v.timeout&&clearTimeout(v.timeout),delete s[p]}function f(){for(const p of Object.keys(s))d(p)}function h(p={}){let v=!1,g=Number.POSITIVE_INFINITY;for(let S in p)p[S].pollingInterval&&(g=Math.min(p[S].pollingInterval,g),v=p[S].skipPollingIfUnfocused||v);return{lowestPollingInterval:g,skipPollingIfUnfocused:v}}return i},nne=({api:t,context:e,queryThunk:n,mutationThunk:r})=>{const o=K7(n,r),s=V1(n,r),i=zd(n,r),l={};return(d,f)=>{var h,p;if(o(d)){const{requestId:v,arg:{endpointName:g,originalArgs:S}}=d.meta,w=e.endpointDefinitions[g],_=w==null?void 0:w.onQueryStarted;if(_){const E={},T=new Promise((k,R)=>{E.resolve=k,E.reject=R});T.catch(()=>{}),l[v]=E;const M=t.endpoints[g].select(w.type==="query"?S:v),j=f.dispatch((k,R,N)=>N),A={...f,getCacheEntry:()=>M(f.getState()),requestId:v,extra:j,updateCachedData:w.type==="query"?k=>f.dispatch(t.util.updateQueryData(g,S,k)):void 0,queryFulfilled:T};_(S,A)}}else if(i(d)){const{requestId:v,baseQueryMeta:g}=d.meta;(h=l[v])==null||h.resolve({data:d.payload,meta:g}),delete l[v]}else if(s(d)){const{requestId:v,rejectedWithValue:g,baseQueryMeta:S}=d.meta;(p=l[v])==null||p.reject({error:d.payload??d.error,isUnhandledError:!g,meta:S}),delete l[v]}}},rne=({reducerPath:t,context:e,api:n,refetchQuery:r,internalState:o})=>{const{removeQueryResult:s}=n.internalActions,i=(c,d)=>{Z7.match(c)&&l(d,"refetchOnFocus"),J7.match(c)&&l(d,"refetchOnReconnect")};function l(c,d){const f=c.getState()[t],h=f.queries,p=o.currentSubscriptions;e.batch(()=>{for(const v of Object.keys(p)){const g=h[v],S=p[v];if(!S||!g)continue;(Object.values(S).some(_=>_[d]===!0)||Object.values(S).every(_=>_[d]===void 0)&&f.config[d])&&(D1(S)===0?c.dispatch(s({queryCacheKey:v})):g.status!=="uninitialized"&&c.dispatch(r(g)))}})}return i};function one(t){const{reducerPath:e,queryThunk:n,api:r,context:o}=t,{apiUid:s}=o,i={invalidateTags:Ja(`${e}/invalidateTags`)},l=h=>h.type.startsWith(`${e}/`),c=[Jte,Xte,ene,tne,Zte,nne];return{middleware:h=>{let p=!1;const g={...t,internalState:{currentSubscriptions:{}},refetchQuery:f,isThisApiSliceAction:l},S=c.map(E=>E(g)),w=Wte(g),_=rne(g);return E=>T=>{if(!W$(T))return E(T);p||(p=!0,h.dispatch(r.internalActions.middlewareRegistered(s)));const M={...h,next:E},j=h.getState(),[A,k]=w(T,M,j);let R;if(A?R=E(T):R=k,h.getState()[e]&&(_(T,M,j),l(T)||o.hasRehydrationInfo(T)))for(const N of S)N(T,M,j);return R}},actions:i};function f(h){return t.api.endpoints[h.endpointName].initiate(h.originalArgs,{subscribe:!1,forceRefetch:!0})}}var yD=Symbol(),sne=({createSelector:t=Q7}={})=>({name:yD,init(e,{baseQuery:n,tagTypes:r,reducerPath:o,serializeQueryArgs:s,keepUnusedDataFor:i,refetchOnMountOrArgChange:l,refetchOnFocus:c,refetchOnReconnect:d,invalidationBehavior:f},h){tte();const p=z=>z;Object.assign(e,{reducerPath:o,endpoints:{},internalActions:{onOnline:J7,onOffline:iL,onFocus:Z7,onFocusLost:sL},util:{}});const{queryThunk:v,mutationThunk:g,patchQueryData:S,updateQueryData:w,upsertQueryData:_,prefetch:E,buildMatchThunkActions:T}=qte({baseQuery:n,reducerPath:o,context:h,api:e,serializeQueryArgs:s,assertTagType:p}),{reducer:M,actions:j}=Vte({context:h,queryThunk:v,mutationThunk:g,serializeQueryArgs:s,reducerPath:o,assertTagType:p,config:{refetchOnFocus:c,refetchOnReconnect:d,refetchOnMountOrArgChange:l,keepUnusedDataFor:i,reducerPath:o,invalidationBehavior:f}});Cd(e.util,{patchQueryData:S,updateQueryData:w,upsertQueryData:_,prefetch:E,resetApiState:j.resetApiState,upsertQueryEntries:j.cacheEntriesUpserted}),Cd(e.internalActions,j);const{middleware:A,actions:k}=one({reducerPath:o,context:h,queryThunk:v,mutationThunk:g,api:e,assertTagType:p});Cd(e.util,k),Cd(e,{reducer:M,middleware:A});const{buildQuerySelector:R,buildMutationSelector:N,selectInvalidatedBy:I,selectCachedArgsForQuery:L}=Yte({serializeQueryArgs:s,reducerPath:o,createSelector:t});Cd(e.util,{selectInvalidatedBy:I,selectCachedArgsForQuery:L});const{buildInitiateQuery:F,buildInitiateMutation:H,getRunningMutationThunk:B,getRunningMutationsThunk:Y,getRunningQueriesThunk:U,getRunningQueryThunk:q}=Hte({queryThunk:v,mutationThunk:g,api:e,serializeQueryArgs:s,context:h});return Cd(e.util,{getRunningMutationThunk:B,getRunningMutationsThunk:Y,getRunningQueryThunk:q,getRunningQueriesThunk:U}),{name:yD,injectEndpoint(z,W){var K;const G=e;(K=G.endpoints)[z]??(K[z]={}),aL(W)?Cd(G.endpoints[z],{name:z,select:R(z,W),initiate:F(z,W)},T(v,z)):zte(W)&&Cd(G.endpoints[z],{name:z,select:N(),initiate:H(z)},T(g,z))}}}});const ine="/api",ane="http://localhost:3050",lne=async t=>(t.set("Content-Type","application/json"),t),cne=({url:t,baseUrl:e,isMockEndpoint:n,isMock:r})=>`${(n!==void 0?n:r)?ane:e||ine}${t}`,Mx=(t,e={isMock:!1})=>{const{baseUrl:n,isMock:r}=e||{};return async(o,s,i)=>{var l;const c=cne({url:t,baseUrl:n,isMockEndpoint:(l=s.meta)==null?void 0:l.isMock,isMock:r});return Fte({baseUrl:c,prepareHeaders:lne})(o,s,i)}};var sw={exports:{}},une=sw.exports,vD;function dne(){return vD||(vD=1,(function(t,e){(function(n,r){t.exports=r()})(une,function(){var n,r,o=1e3,s=6e4,i=36e5,l=864e5,c=/\[([^\]]+)]|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,d=31536e6,f=2628e6,h=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,p={years:d,months:f,days:l,hours:i,minutes:s,seconds:o,milliseconds:1,weeks:6048e5},v=function(A){return A instanceof M},g=function(A,k,R){return new M(A,R,k.$l)},S=function(A){return r.p(A)+"s"},w=function(A){return A<0},_=function(A){return w(A)?Math.ceil(A):Math.floor(A)},E=function(A){return Math.abs(A)},T=function(A,k){return A?w(A)?{negative:!0,format:""+E(A)+k}:{negative:!1,format:""+A+k}:{negative:!1,format:""}},M=(function(){function A(R,N,I){var L=this;if(this.$d={},this.$l=I,R===void 0&&(this.$ms=0,this.parseFromMilliseconds()),N)return g(R*p[S(N)],this);if(typeof R=="number")return this.$ms=R,this.parseFromMilliseconds(),this;if(typeof R=="object")return Object.keys(R).forEach(function(B){L.$d[S(B)]=R[B]}),this.calMilliseconds(),this;if(typeof R=="string"){var F=R.match(h);if(F){var H=F.slice(2).map(function(B){return B!=null?Number(B):0});return this.$d.years=H[0],this.$d.months=H[1],this.$d.weeks=H[2],this.$d.days=H[3],this.$d.hours=H[4],this.$d.minutes=H[5],this.$d.seconds=H[6],this.calMilliseconds(),this}}return this}var k=A.prototype;return k.calMilliseconds=function(){var R=this;this.$ms=Object.keys(this.$d).reduce(function(N,I){return N+(R.$d[I]||0)*p[I]},0)},k.parseFromMilliseconds=function(){var R=this.$ms;this.$d.years=_(R/d),R%=d,this.$d.months=_(R/f),R%=f,this.$d.days=_(R/l),R%=l,this.$d.hours=_(R/i),R%=i,this.$d.minutes=_(R/s),R%=s,this.$d.seconds=_(R/o),R%=o,this.$d.milliseconds=R},k.toISOString=function(){var R=T(this.$d.years,"Y"),N=T(this.$d.months,"M"),I=+this.$d.days||0;this.$d.weeks&&(I+=7*this.$d.weeks);var L=T(I,"D"),F=T(this.$d.hours,"H"),H=T(this.$d.minutes,"M"),B=this.$d.seconds||0;this.$d.milliseconds&&(B+=this.$d.milliseconds/1e3,B=Math.round(1e3*B)/1e3);var Y=T(B,"S"),U=R.negative||N.negative||L.negative||F.negative||H.negative||Y.negative,q=F.format||H.format||Y.format?"T":"",z=(U?"-":"")+"P"+R.format+N.format+L.format+q+F.format+H.format+Y.format;return z==="P"||z==="-P"?"P0D":z},k.toJSON=function(){return this.toISOString()},k.format=function(R){var N=R||"YYYY-MM-DDTHH:mm:ss",I={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return N.replace(c,function(L,F){return F||String(I[L])})},k.as=function(R){return this.$ms/p[S(R)]},k.get=function(R){var N=this.$ms,I=S(R);return I==="milliseconds"?N%=1e3:N=I==="weeks"?_(N/p[I]):this.$d[I],N||0},k.add=function(R,N,I){var L;return L=N?R*p[S(N)]:v(R)?R.$ms:g(R,this).$ms,g(this.$ms+L*(I?-1:1),this)},k.subtract=function(R,N){return this.add(R,N,!0)},k.locale=function(R){var N=this.clone();return N.$l=R,N},k.clone=function(){return g(this.$ms,this)},k.humanize=function(R){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!R)},k.valueOf=function(){return this.asMilliseconds()},k.milliseconds=function(){return this.get("milliseconds")},k.asMilliseconds=function(){return this.as("milliseconds")},k.seconds=function(){return this.get("seconds")},k.asSeconds=function(){return this.as("seconds")},k.minutes=function(){return this.get("minutes")},k.asMinutes=function(){return this.as("minutes")},k.hours=function(){return this.get("hours")},k.asHours=function(){return this.as("hours")},k.days=function(){return this.get("days")},k.asDays=function(){return this.as("days")},k.weeks=function(){return this.get("weeks")},k.asWeeks=function(){return this.as("weeks")},k.months=function(){return this.get("months")},k.asMonths=function(){return this.as("months")},k.years=function(){return this.get("years")},k.asYears=function(){return this.as("years")},A})(),j=function(A,k,R){return A.add(k.years()*R,"y").add(k.months()*R,"M").add(k.days()*R,"d").add(k.hours()*R,"h").add(k.minutes()*R,"m").add(k.seconds()*R,"s").add(k.milliseconds()*R,"ms")};return function(A,k,R){n=R,r=R().$utils(),R.duration=function(L,F){var H=R.locale();return g(L,{$l:H},F)},R.isDuration=v;var N=k.prototype.add,I=k.prototype.subtract;k.prototype.add=function(L,F){return v(L)?j(this,L,1):N.bind(this)(L,F)},k.prototype.subtract=function(L,F){return v(L)?j(this,L,-1):I.bind(this)(L,F)}}})})(sw)),sw.exports}var fne=dne();const hne=Y$(fne);j1.extend(hne);const uL=(t,e)=>{let n;if(typeof t=="string"){if(!t)return t;const c=new Date(t),d=new Date;if(isNaN(c.getTime()))return console.warn("Invalid date format for duration formatter:",t),t;const f=c.getTime()-d.getTime();if(f<=0)return e?e("ds:notifications.duration.started",{defaultValue:"Started"}):"Started";n=Math.floor(f/1e3)}else{if(typeof t!="number"||t<=0)return e?e("ds:notifications.duration.started",{defaultValue:"Started"}):"Started";n=Math.floor(t)}const r=j1.duration(n,"seconds"),o=r.weeks(),s=r.days(),i=r.hours(),l=r.minutes();if(e)try{if(o>0)return e("ds:notifications.duration.week",{count:o});if(s>0)return e("ds:notifications.duration.day",{count:s});if(i>0&&l>0){const c=e("ds:notifications.duration.hour",{count:i}),d=e("ds:notifications.duration.minute",{count:l});return`${c} ${d}`}return i>0?e("ds:notifications.duration.hour",{count:i}):l>0?e("ds:notifications.duration.minute",{count:l}):e("ds:notifications.duration.lessThanMinute")}catch(c){console.warn("UI Kit duration translation failed, falling back to English:",c)}return o>0?`${o}w`:s>0?`${s}d`:i>0&&l>0?`${i}:${l.toString().padStart(2,"0")}`:i>0?`${i}:00`:l>0?`${l}m`:"<1m"},pne=(t,e)=>!t||typeof t=="string"&&t.trim()===""?(e==null?void 0:e.fallback)||(e==null?void 0:e[0]):t,mne=(t,e)=>{if(t<=0)return e?e("ds:notifications.CalendarEventUpcoming.started",{defaultValue:"started"}):"started";{const n=uL(t,e);return`${e?e("ds:notifications.CalendarEventUpcoming.willStartIn",{defaultValue:"will start in"}):"will start in"} <strong>${n}</strong>`}},w2=({title:t,date:e,isMobile:n})=>b.jsxs(qt,{justify:"space-between",pr:"xs",children:[b.jsx(Dt,{c:"primary",size:n?"sm":"md",fw:600,children:t}),b.jsx(Dt,{size:"sm",c:"grey.5",children:Fee(e)})]}),x2=({children:t,isMobile:e})=>b.jsx(Dt,{size:e?"xs":"sm",c:"primary",lineClamp:4,style:{wordBreak:"break-word"},children:t}),gne=({children:t})=>{const{isDark:e}=V$();return b.jsx(il,{p:"xs",radius:"lg",bg:e?"gray.7":"gray.1",c:"grey.6",style:{borderTopLeftRadius:0},children:b.jsx(Dt,{size:"xs",fs:"italic",fw:400,lineClamp:2,style:{wordBreak:"break-word"},children:t})})},C2=({source:t,subject:e,isMobile:n})=>b.jsx(qt,{children:b.jsxs(Dt,{style:{fontSize:n?"10px":"12px",wordBreak:"break-all"},c:"secondary",lineClamp:1,children:[t," • ",e]})}),yne=t=>({[jn.DiskFileShared]:"DiskFileShared",[jn.DiskFileCommented]:"DiskFileCommented",[jn.DiskFileMentioned]:"DiskFileMentioned",[jn.DiskFileUploaded]:"DiskFileUploaded",[jn.DiskFilePermissionGranted]:"DiskFilePermissionGranted",[jn.DiskFileDownloadReady]:"DiskFileDownloadReady",[jn.DiskLinkGenerated]:"DiskLinkGenerated",[jn.DiskDirectoryShared]:"DiskDirectoryShared",[jn.DiskRoomShared]:"DiskRoomShared",[jn.ProjectShared]:"ProjectShared",[jn.ProjectTaskCreated]:"ProjectTaskCreated",[jn.ProjectTaskDeleted]:"ProjectTaskDeleted",[jn.ProjectTaskUpdated]:"ProjectTaskUpdated",[jn.ProjectTaskMoved]:"ProjectTaskMoved",[jn.ProjectTaskStatusChanged]:"ProjectTaskStatusChanged",[jn.ProjectTaskCommented]:"ProjectTaskCommented",[jn.ProjectMyTaskDeleted]:"ProjectMyTaskDeleted",[jn.ProjectMyTaskUpdated]:"ProjectMyTaskUpdated",[jn.ProjectMyTaskMoved]:"ProjectMyTaskMoved",[jn.ProjectMyTaskStatusChanged]:"ProjectMyTaskStatusChanged",[jn.ProjectMyTaskCommented]:"ProjectMyTaskCommented",[jn.ProjectTaskUnassigned]:"ProjectTaskUnassigned",[jn.ProjectTaskAssigned]:"ProjectTaskAssigned",[jn.ProjectTaskMentioned]:"ProjectTaskMentioned",[jn.ProjectTaskAttachmentAdded]:"ProjectTaskAttachmentAdded",[jn.ProjectSprintCreated]:"ProjectSprintCreated",[jn.AdminRoleAssigned]:"AdminRoleAssigned",[jn.AdminRoleDeleted]:"AdminRoleDeleted",[jn.MailMessageImportant]:"MailMessageImportant",[jn.MailMessageReceived]:"MailMessageReceived",[jn.CalendarShared]:"CalendarShared",[jn.CalendarEventCanceled]:"CalendarEventCanceled",[jn.CalendarEventInvited]:"CalendarEventInvited",[jn.CalendarEventUpdated]:"CalendarEventUpdated",[jn.CalendarEventUpcoming]:"CalendarEventUpcoming"})[t]||"unknown",vne=({notification:t,isMobile:e})=>{const{t:n}=at(),r=yne(t.type);return b.jsxs(g2,{children:[b.jsx(w2,{title:n(`ds:notifications.${r}.title`),date:t.date,isMobile:e}),b.jsx(x2,{isMobile:e,children:b.jsx(n2,{i18nKey:`ds:notifications.${r}.description`,values:t,components:{strong:b.jsx("strong",{},"strong"),br:b.jsx("br",{},"br")}})}),t.action.description&&b.jsx(gne,{children:t.action.description}),b.jsx(C2,{source:t.source.title,subject:t.action.subject,isMobile:e})]})};var tE=(t=>(t.GET="GET",t.POST="POST",t.PUT="PUT",t.PATCH="PATCH",t.DELETE="DELETE",t))(tE||{});const Vl={System:0,Disk:1,Projects:2,Calendar:3,Mail:4,Contacts:5,Admin:6,Forms:7,Draw:8,Payments:9,Team:10,Pages:11},bne={Deny:-4096,OnlyUpload:-1024,FreeBusy:-64,CanDownload:-16,Read:0,Comment:1,Review:2,Write:4,Delete:8,FullInternal:256,Full:512,Lock:4096,LockPrint:8192,LockCopy:16384,LockDownload:32768},$v={Completed:2,Blocked:3,Error:4},Sne={en:{success:{title:"File link generated",description:"Your file <a><strong>«{{fileName}}»</strong></a> has been successfully validated."},error:{title:"Failed to generate link",description:"Your file <strong>«{{fileName}}»</strong> didn't pass validation. Try again."}},ru:{success:{title:"Ссылка на файл сгенерирована",description:"Ваш файл <a><strong>«{{fileName}}»</strong></a> успешно прошёл проверку."},error:{title:"Ссылка не создана",description:"Ваш файл <strong>«{{fileName}}»</strong> не прошёл проверку. Поробуйте снова."}}},wne=({notification:t,isMobile:e})=>{const{i18n:n}=at(),r=n.language==="ru"?"ru":"en",o=t.action.dlpCheckStatus===$v.Completed,s=Sne[r][o?"success":"error"],i={fileName:t.action.subject};return b.jsxs(g2,{children:[b.jsx(w2,{title:s.title,date:t.date,isMobile:e}),b.jsx(x2,{isMobile:e,children:b.jsx(n2,{i18nKey:s.description,values:i,components:{strong:b.jsx("strong",{},"strong"),a:b.jsx("a",{href:t.action.externalLinkUrl,target:"_blank",rel:"noopener noreferrer"},"link")}})}),b.jsx(C2,{source:t.source.title,subject:t.action.subject,isMobile:e})]})},xne={en:{completed:{title:"File Uploaded",description:"The file <strong>«{{fileName}}»</strong> has been uploaded and checked successfully."},blocked:{title:"File Upload Blocked",description:"The file <strong>«{{fileName}}»</strong> was blocked by DLP policy."},error:{title:"File Upload Error",description:"An error occurred while checking the file <strong>«{{fileName}}»</strong>."}},ru:{completed:{title:"Файл загружен",description:"Файл <strong>«{{fileName}}»</strong> был загружен и успешно проверен."},blocked:{title:"Загрузка файла отклонена",description:"Файл <strong>«{{fileName}}»</strong> был заблокирован политикой DLP."},error:{title:"Ошибка при загрузке файла",description:"Произошла ошибка при проверке файла <strong>«{{fileName}}»</strong>."}}},Cne=({notification:t,isMobile:e})=>{const{i18n:n}=at(),r=n.language==="ru"?"ru":"en",o=t.action.dlpCheckStatus;let s="completed";o&&(o===$v.Blocked?s="blocked":o===$v.Error&&(s="error"));const i=xne[r][s],l={fileName:t.action.subject};return b.jsxs(g2,{children:[b.jsx(w2,{title:i.title,date:t.date,isMobile:e}),b.jsx(x2,{isMobile:e,children:b.jsx(n2,{i18nKey:i.description,values:l,components:{strong:b.jsx("strong",{},"strong")}})}),b.jsx(C2,{source:t.source.title,subject:t.action.subject,isMobile:e})]})},_ne={en:{success:{title:"Permissions granted",description:"<strong>«{{roleName}}»</strong> permissions granted to user <strong>{{userName}}</strong>. Your file has been successfully validated."},error:{title:"Failed to grant permissions",description:"Failed to grant permissions to user. Your file didn't pass validation. Try again."}},ru:{success:{title:"Права выданы",description:"Права <strong>«{{roleName}}»</strong> пользователю <strong>{{userName}}</strong> выданы. Ваш файл успешно прошёл проверку."},error:{title:"Доступ не выдан",description:"Ваш файл не прошёл проверку. Попробуйте снова."}}},Tne=({notification:t,isMobile:e})=>{const{i18n:n}=at(),r=n.language==="ru"?"ru":"en",o=t.action.dlpCheckStatus===$v.Completed,s=_ne[r][o?"success":"error"],i={roleName:t.action.roleName||"",userName:t.action.targetUserName||""};return b.jsxs(g2,{children:[b.jsx(w2,{title:s.title,date:t.date,isMobile:e}),b.jsx(x2,{isMobile:e,children:b.jsx(n2,{i18nKey:s.description,values:i,components:{strong:b.jsx("strong",{},"strong")}})}),b.jsx(C2,{source:t.source.title,subject:t.action.subject,isMobile:e})]})},Ene={en:{success:{title:"File is ready to download",description:"Your file <a><strong>«{{fileName}}»</strong></a> has been successfully validated and is ready to download."},error:{title:"Unable to download file",description:"Your file didn't pass validation. Try again."}},ru:{success:{title:"Файл готов к скачиванию",description:"Ваш файл <a><strong>«{{fileName}}»</strong></a> успешно прошёл проверку и готов к скачиванию."},error:{title:"Не удаётся скачать файл",description:"Ваш файл не прошёл проверку. Попробуйте снова."}}},kne=({notification:t,isMobile:e})=>{const{i18n:n}=at(),r=n.language==="ru"?"ru":"en",o=t.action.dlpCheckStatus===$v.Completed,s=Ene[r][o?"success":"error"],i=s.title.replace("{{fileName}}",t.action.subject),l={fileName:t.action.subject};return b.jsxs(g2,{children:[b.jsx(w2,{title:i,date:t.date,isMobile:e}),b.jsx(x2,{isMobile:e,children:b.jsx(n2,{values:l,i18nKey:s.description,components:{strong:b.jsx("strong",{},"strong"),a:b.jsx("a",{href:t.action.downloadUrl,target:"_blank",rel:"noopener noreferrer"},"link")}})}),b.jsx(C2,{source:t.source.title,subject:t.action.subject,isMobile:e})]})},Mne={[jn.DiskLinkGenerated]:wne,[jn.DiskFileUploaded]:Cne,[jn.DiskFilePermissionGranted]:Tne,[jn.DiskFileDownloadReady]:kne},jne=t=>Mne[t]||vne,Dne=({notification:t,indicatorSlot:e,avatarSlot:n,onClick:r})=>{const{isDark:o}=V$(),s=D.useRef(null),{hovered:i,ref:l}=ig(),[c,d]=D.useState(!0),f=D.useMemo(()=>jne(t.type),[t.type]);D.useEffect(()=>{var p;d((((p=s==null?void 0:s.current)==null?void 0:p.offsetWidth)||0)<576)},[s]);const h=()=>{r&&r(t)};return b.jsx("a",{href:t.action.subjectUrl,style:{textDecoration:"none"},target:"_blank",onClick:h,ref:s,children:b.jsxs(Lt,{gap:"xs",p:"sm",style:p=>({backgroundColor:i?o?p.colors.gray[8]:p.colors.gray[0]:"transparent"}),ref:l,children:[n?b.jsx(n,{notification:t,size:c?30:40}):b.jsx(gi,{title:t.actor,src:t.imageUrl,color:"cyan",size:c?30:40}),b.jsx(f,{notification:t,isMobile:c},t.id),e&&b.jsx(je,{mt:c?1:3,children:b.jsx(e,{hovered:i,notification:t})})]})})},Ane="notifications:new",Rne=t=>{const e=new CustomEvent(Ane,{detail:{notifications:t}});window.dispatchEvent(e)};/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var One={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const cl=(t,e,n,r)=>{const o=D.forwardRef(({color:s="currentColor",size:i=24,stroke:l=2,title:c,className:d,children:f,...h},p)=>D.createElement("svg",{ref:p,...One[t],width:i,height:i,className:["tabler-icon",`tabler-icon-${e}`,d].join(" "),...t==="filled"?{fill:s}:{strokeWidth:l,stroke:s},...h},[c&&D.createElement("title",{key:"svg-title"},c),...r.map(([v,g])=>D.createElement(v,g)),...Array.isArray(f)?f:[f]]));return o.displayName=`${n}`,o};/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Pne=cl("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"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Nne=cl("outline","bell","IconBell",[["path",{d:"M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6",key:"svg-0"}],["path",{d:"M9 17v1a3 3 0 0 0 6 0v-1",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Ine=cl("outline","building-skyscraper","IconBuildingSkyscraper",[["path",{d:"M3 21l18 0",key:"svg-0"}],["path",{d:"M5 21v-14l8 -4v18",key:"svg-1"}],["path",{d:"M19 21v-10l-6 -4",key:"svg-2"}],["path",{d:"M9 9l0 .01",key:"svg-3"}],["path",{d:"M9 12l0 .01",key:"svg-4"}],["path",{d:"M9 15l0 .01",key:"svg-5"}],["path",{d:"M9 18l0 .01",key:"svg-6"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var $ne=cl("outline","calendar-event","IconCalendarEvent",[["path",{d:"M4 5m0 2a2 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:"M16 3l0 4",key:"svg-1"}],["path",{d:"M8 3l0 4",key:"svg-2"}],["path",{d:"M4 11l16 0",key:"svg-3"}],["path",{d:"M8 15h2v2h-2z",key:"svg-4"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Lne=cl("outline","checks","IconChecks",[["path",{d:"M7 12l5 5l10 -10",key:"svg-0"}],["path",{d:"M2 12l5 5m5 -5l5 -5",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Fne=cl("outline","mail","IconMail",[["path",{d:"M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10z",key:"svg-0"}],["path",{d:"M3 7l9 6l9 -6",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var zne=cl("outline","settings","IconSettings",[["path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Une=cl("outline","star","IconStar",[["path",{d:"M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z",key:"svg-0"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Bne=cl("outline","user-plus","IconUserPlus",[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M16 19h6",key:"svg-1"}],["path",{d:"M19 16v6",key:"svg-2"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4",key:"svg-3"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Hne=cl("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"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var qne=cl("filled","star-filled","IconStarFilled",[["path",{d:"M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z",key:"svg-0"}]]),M_={exports:{}},j_={};/**
 * @license React
 * use-sync-external-store-with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var bD;function Vne(){if(bD)return j_;bD=1;var t=Rn;function e(c,d){return c===d&&(c!==0||1/c===1/d)||c!==c&&d!==d}var n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,o=t.useRef,s=t.useEffect,i=t.useMemo,l=t.useDebugValue;return j_.useSyncExternalStoreWithSelector=function(c,d,f,h,p){var v=o(null);if(v.current===null){var g={hasValue:!1,value:null};v.current=g}else g=v.current;v=i(function(){function w(j){if(!_){if(_=!0,E=j,j=h(j),p!==void 0&&g.hasValue){var A=g.value;if(p(A,j))return T=A}return T=j}if(A=T,n(E,j))return A;var k=h(j);return p!==void 0&&p(A,k)?(E=j,A):(E=j,T=k)}var _=!1,E,T,M=f===void 0?null:f;return[function(){return w(d())},M===null?void 0:function(){return w(M())}]},[d,f,h,p]);var S=r(c,v[0],v[1]);return s(function(){g.hasValue=!0,g.value=S},[S]),l(S),S},j_}var SD;function Yne(){return SD||(SD=1,M_.exports=Vne()),M_.exports}var Gne=Yne();function Wne(t){t()}function wD(t,e){return t===e?t!==0||e!==0||1/t===1/e:t!==t&&e!==e}function dv(t,e){if(wD(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(e,n[o])||!wD(t[n[o]],e[n[o]]))return!1;return!0}var xD=Symbol.for("react-redux-context"),CD=typeof globalThis<"u"?globalThis:{};function Qne(){if(!D.createContext)return{};const t=CD[xD]??(CD[xD]=new Map);let e=t.get(D.createContext);return e||(e=D.createContext(null),t.set(D.createContext,e)),e}var np=Qne();function nE(t=np){return function(){return D.useContext(t)}}var dL=nE();function fL(t=np){const e=t===np?dL:nE(t),n=()=>{const{store:r}=e();return r};return Object.assign(n,{withTypes:()=>n}),n}var hL=fL();function Kne(t=np){const e=t===np?hL:fL(t),n=()=>e().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Xne=Kne(),Zne=(t,e)=>t===e;function Jne(t=np){const e=t===np?dL:nE(t),n=(r,o={})=>{const{equalityFn:s=Zne}=typeof o=="function"?{equalityFn:o}:o,i=e(),{store:l,subscription:c,getServerState:d}=i;D.useRef(!0);const f=D.useCallback({[r.name](p){return r(p)}}[r.name],[r]),h=Gne.useSyncExternalStoreWithSelector(c.addNestedSub,l.getState,d||l.getState,f,s);return D.useDebugValue(h),h};return Object.assign(n,{withTypes:()=>n}),n}var ere=Jne(),tre=Wne;function D_(t){return t.replace(t[0],t[0].toUpperCase())}function nre(t){return t.type==="query"}function rre(t){return t.type==="mutation"}function x3(t,...e){return Object.assign(t,...e)}var C3=WeakMap?new WeakMap:void 0,ore=({endpointName:t,queryArgs:e})=>{let n="";const r=C3==null?void 0:C3.get(e);if(typeof r=="string")n=r;else{const o=JSON.stringify(e,(s,i)=>(i=typeof i=="bigint"?{$bigint:i.toString()}:i,i=Fd(i)?Object.keys(i).sort().reduce((l,c)=>(l[c]=i[c],l),{}):i,i));Fd(e)&&(C3==null||C3.set(e,o)),n=o}return`${t}(${n})`},A_=Symbol();function _D(t,e,n,r){const o=D.useMemo(()=>({queryArgs:t,serialized:typeof t=="object"?e({queryArgs:t,endpointDefinition:n,endpointName:r}):t}),[t,e,n,r]),s=D.useRef(o);return D.useEffect(()=>{s.current.serialized!==o.serialized&&(s.current=o)},[o]),s.current.serialized===o.serialized?s.current.queryArgs:t}function R_(t){const e=D.useRef(t);return D.useEffect(()=>{dv(e.current,t)||(e.current=t)},[t]),dv(e.current,t)?e.current:t}var sre=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ire=sre(),are=()=>typeof navigator<"u"&&navigator.product==="ReactNative",lre=are(),cre=()=>ire||lre?D.useLayoutEffect:D.useEffect,ure=cre(),dre=t=>t.isUninitialized?{...t,isUninitialized:!1,isFetching:!0,isLoading:t.data===void 0,status:rL.pending}:t;function fre({api:t,moduleOptions:{batch:e,hooks:{useDispatch:n,useSelector:r,useStore:o},unstable__sideEffectsInRender:s,createSelector:i},serializeQueryArgs:l,context:c}){const d=s?g=>g():D.useEffect;return{buildQueryHooks:p,buildMutationHook:v,usePrefetch:h};function f(g,S,w){if(S!=null&&S.endpointName&&g.isUninitialized){const{endpointName:A}=S,k=c.endpointDefinitions[A];w!==jd&&l({queryArgs:S.originalArgs,endpointDefinition:k,endpointName:A})===l({queryArgs:w,endpointDefinition:k,endpointName:A})&&(S=void 0)}let _=g.isSuccess?g.data:S==null?void 0:S.data;_===void 0&&(_=g.data);const E=_!==void 0,T=g.isLoading,M=(!S||S.isLoading||S.isUninitialized)&&!E&&T,j=g.isSuccess||E&&(T&&!(S!=null&&S.isError)||g.isUninitialized);return{...g,data:_,currentData:g.data,isFetching:T,isLoading:M,isSuccess:j}}function h(g,S){const w=n(),_=R_(S);return D.useCallback((E,T)=>w(t.util.prefetch(g,E,{..._,...T})),[g,w,_])}function p(g){const S=(E,{refetchOnReconnect:T,refetchOnFocus:M,refetchOnMountOrArgChange:j,skip:A=!1,pollingInterval:k=0,skipPollingIfUnfocused:R=!1}={})=>{const{initiate:N}=t.endpoints[g],I=n(),L=D.useRef(void 0);if(!L.current){const K=I(t.internalActions.internal_getRTKQSubscriptions());L.current=K}const F=_D(A?jd:E,ore,c.endpointDefinitions[g],g),H=R_({refetchOnReconnect:T,refetchOnFocus:M,pollingInterval:k,skipPollingIfUnfocused:R}),B=D.useRef(!1),Y=D.useRef(void 0);let{queryCacheKey:U,requestId:q}=Y.current||{},z=!1;U&&q&&(z=L.current.isRequestSubscribed(U,q));const W=!z&&B.current;return d(()=>{B.current=z}),d(()=>{W&&(Y.current=void 0)},[W]),d(()=>{var K;const G=Y.current;if(F===jd){G==null||G.unsubscribe(),Y.current=void 0;return}const X=(K=Y.current)==null?void 0:K.subscriptionOptions;if(!G||G.arg!==F){G==null||G.unsubscribe();const J=I(N(F,{subscriptionOptions:H,forceRefetch:j}));Y.current=J}else H!==X&&G.updateSubscriptionOptions(H)},[I,N,j,F,H,W]),D.useEffect(()=>()=>{var K;(K=Y.current)==null||K.unsubscribe(),Y.current=void 0},[]),D.useMemo(()=>({refetch:()=>{var K;if(!Y.current)throw new Error(nc(38));return(K=Y.current)==null?void 0:K.refetch()}}),[])},w=({refetchOnReconnect:E,refetchOnFocus:T,pollingInterval:M=0,skipPollingIfUnfocused:j=!1}={})=>{const{initiate:A}=t.endpoints[g],k=n(),[R,N]=D.useState(A_),I=D.useRef(void 0),L=R_({refetchOnReconnect:E,refetchOnFocus:T,pollingInterval:M,skipPollingIfUnfocused:j});d(()=>{var Y,U;const q=(Y=I.current)==null?void 0:Y.subscriptionOptions;L!==q&&((U=I.current)==null||U.updateSubscriptionOptions(L))},[L]);const F=D.useRef(L);d(()=>{F.current=L},[L]);const H=D.useCallback(function(Y,U=!1){let q;return e(()=>{var z;(z=I.current)==null||z.unsubscribe(),I.current=q=k(A(Y,{subscriptionOptions:F.current,forceRefetch:!U})),N(Y)}),q},[k,A]),B=D.useCallback(()=>{var Y,U;(Y=I.current)!=null&&Y.queryCacheKey&&k(t.internalActions.removeQueryResult({queryCacheKey:(U=I.current)==null?void 0:U.queryCacheKey}))},[k]);return D.useEffect(()=>()=>{var Y;(Y=I==null?void 0:I.current)==null||Y.unsubscribe()},[]),D.useEffect(()=>{R!==A_&&!I.current&&H(R,!0)},[R,H]),D.useMemo(()=>[H,R,{reset:B}],[H,R,B])},_=(E,{skip:T=!1,selectFromResult:M}={})=>{const{select:j}=t.endpoints[g],A=_D(T?jd:E,l,c.endpointDefinitions[g],g),k=D.useRef(void 0),R=D.useMemo(()=>i([j(A),(H,B)=>B,H=>A],f,{memoizeOptions:{resultEqualityCheck:dv}}),[j,A]),N=D.useMemo(()=>M?i([R],M,{devModeChecks:{identityFunctionCheck:"never"}}):R,[R,M]),I=r(H=>N(H,k.current),dv),L=o(),F=R(L.getState(),k.current);return ure(()=>{k.current=F},[F]),I};return{useQueryState:_,useQuerySubscription:S,useLazyQuerySubscription:w,useLazyQuery(E){const[T,M,{reset:j}]=w(E),A=_(M,{...E,skip:M===A_}),k=D.useMemo(()=>({lastArg:M}),[M]);return D.useMemo(()=>[T,{...A,reset:j},k],[T,A,j,k])},useQuery(E,T){const M=S(E,T),j=_(E,{selectFromResult:E===jd||T!=null&&T.skip?void 0:dre,...T}),{data:A,status:k,isLoading:R,isSuccess:N,isError:I,error:L}=j;return D.useDebugValue({data:A,status:k,isLoading:R,isSuccess:N,isError:I,error:L}),D.useMemo(()=>({...j,...M}),[j,M])}}}function v(g){return({selectFromResult:S,fixedCacheKey:w}={})=>{const{select:_,initiate:E}=t.endpoints[g],T=n(),[M,j]=D.useState();D.useEffect(()=>()=>{M!=null&&M.arg.fixedCacheKey||M==null||M.reset()},[M]);const A=D.useCallback(function(G){const X=T(E(G,{fixedCacheKey:w}));return j(X),X},[T,E,w]),{requestId:k}=M||{},R=D.useMemo(()=>_({fixedCacheKey:w,requestId:M==null?void 0:M.requestId}),[w,M,_]),N=D.useMemo(()=>S?i([R],S):R,[S,R]),I=r(N,dv),L=w==null?M==null?void 0:M.arg.originalArgs:void 0,F=D.useCallback(()=>{e(()=>{M&&j(void 0),w&&T(t.internalActions.removeMutationResult({requestId:k,fixedCacheKey:w}))})},[T,w,M,k]),{endpointName:H,data:B,status:Y,isLoading:U,isSuccess:q,isError:z,error:W}=I;D.useDebugValue({endpointName:H,data:B,status:Y,isLoading:U,isSuccess:q,isError:z,error:W});const K=D.useMemo(()=>({...I,originalArgs:L,reset:F}),[I,L,F]);return D.useMemo(()=>[A,K],[A,K])}}}var hre=Symbol(),pre=({batch:t=tre,hooks:e={useDispatch:Xne,useSelector:ere,useStore:hL},createSelector:n=Q7,unstable__sideEffectsInRender:r=!1,...o}={})=>({name:hre,init(s,{serializeQueryArgs:i},l){const c=s,{buildQueryHooks:d,buildMutationHook:f,usePrefetch:h}=fre({api:s,moduleOptions:{batch:t,hooks:e,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:i,context:l});return x3(c,{usePrefetch:h}),x3(l,{batch:t}),{injectEndpoint(p,v){if(nre(v)){const{useQuery:g,useLazyQuery:S,useLazyQuerySubscription:w,useQueryState:_,useQuerySubscription:E}=d(p);x3(c.endpoints[p],{useQuery:g,useLazyQuery:S,useLazyQuerySubscription:w,useQueryState:_,useQuerySubscription:E}),s[`use${D_(p)}Query`]=g,s[`useLazy${D_(p)}Query`]=S}else if(rre(v)){const g=f(p);x3(c.endpoints[p],{useMutation:g}),s[`use${D_(p)}Mutation`]=g}}}}}),jx=Gte(sne(),pre());class pL{constructor(e,n,r){Fw(this,"data"),Fw(this,"t"),this.t=n,this.data=Object.keys(e).reduce((o,s)=>{const i=e[s];return(typeof i=="number"||typeof i=="string")&&(o[i]={id:i,title:n(`${r}.${s}`)}),o},{})}get(e){return this.data[e]||{id:e,title:this.t("dictionary:unknown")}}getAll(){return Object.values(this.data)}}class mre extends pL{constructor(){super(bne,jt,"ds:dictionary.accessType")}}class gre extends pL{constructor(){super(Vl,jt,"ds:dictionary.module")}}const TD=t=>{var e;const n=new gre,r=new mre;return{id:t.Id,date:t.Date,type:t.NotificationType,title:t.Name,imageUrl:t.ImageUrl,source:n.get(t.Source),actor:t.Name,userId:t.UserId,action:{title:t.Payload.Title,subject:t.Payload.Subject,accessType:r.get(t.Payload.AccessType),subjectUrl:t.Payload.SubjectUrl,status:t.Payload.Status,dlpCheckStatus:t.Payload.Status,externalLinkUrl:t.Payload.ExternalLinkUrl,downloadUrl:t.Payload.DownloadUrl||void 0,roleName:t.Payload.RoleName,targetUserName:t.Payload.TargetUserName,movedTo:t.Payload.MoveTo,description:(e=t.Payload.Description)==null?void 0:e.replace(/<[^>]+>/g,"").trim(),project:t.Payload.Project,customerName:t.Payload.CustomerName,timeUntilStart:t.Payload.TimeUntilStart?zee(t.Payload.TimeUntilStart):void 0,startsAt:t.Payload.StartsAt},isRead:t.State,isNew:!1}},zh=jx({reducerPath:"DCNotificationApi",baseQuery:Mx("/v1/notifications"),tagTypes:["Notifications","UnreadNotifications"],endpoints:t=>({getNotifications:t.query({query:({count:e=10,offset:n=0,isAll:r=!1}={count:10,offset:0,isAll:!1})=>({method:"POST",url:"/",body:{FilterConditions:[],Count:e,Offset:n,IsAll:r}}),transformResponse:e=>({notifications:e.Items.map(n=>TD(n)),lastSeenAt:e.ReadDate,count:e.Items.length||0,unreadCount:e.UnreadCount}),serializeQueryArgs:({endpointName:e})=>e,forceRefetch({currentArg:e,previousArg:n}){return e!==n},merge:(e,n)=>{const r=new Map(e.notifications.map(o=>[o.id,o]));return n.notifications.forEach(o=>{r.set(o.id,o)}),{notifications:Array.from(r.values()),lastSeenAt:n.lastSeenAt,count:n.notifications.length,unreadCount:n.unreadCount}},providesTags:["Notifications"]}),getUnreadNotifications:t.query({query:({count:e=10,offset:n=0,isAll:r=!1}={count:10,offset:0,isAll:!1})=>({method:"POST",url:"/",body:{FilterConditions:[{Type:20,NumValues:[0]}],Count:e,Offset:n,IsAll:r}}),transformResponse:e=>({notifications:e.Items.map(n=>TD(n)),lastSeenAt:e.ReadDate,count:e.Items.length,unreadCount:e.UnreadCount}),serializeQueryArgs:({endpointName:e})=>e,forceRefetch({currentArg:e,previousArg:n}){return e!==n},merge:(e,n)=>{const r=new Map(e.notifications.map(o=>[o.id,o]));return n.notifications.forEach(o=>{r.set(o.id,o)}),{notifications:Array.from(r.values()),lastSeenAt:n.lastSeenAt,count:n.notifications.length,unreadCount:n.unreadCount}},providesTags:["UnreadNotifications"]}),markAsRead:t.mutation({query:({id:e,value:n})=>({url:"/mark",method:"POST",body:{Id:e,State:n}}),async onQueryStarted({id:e,value:n},{dispatch:r,queryFulfilled:o,getState:s}){const i=r(zh.util.updateQueryData("getNotifications",{},c=>{e||c.notifications.forEach(f=>{f.isRead=Kc.Read});const d=c.notifications.find(f=>f.id===e);d&&(d.isRead=d.isRead?Kc.Unread:Kc.Read)})),l=r(zh.util.updateQueryData("getUnreadNotifications",{},c=>{var d;if(e||(c.notifications=[],c.unreadCount=0),c.notifications.find(h=>h.id===e))c.notifications=c.notifications.filter(h=>h.id!==e),c.unreadCount-=1;else if(n===Kc.Unread){const v=(d=zh.endpoints.getNotifications.select({})(s()).data)==null?void 0:d.notifications.find(g=>g.id===e);v&&(c.notifications.push(v),c.unreadCount+=1)}}));try{await o}catch{i.undo(),l.undo()}}}),markAsSeen:t.mutation({query:()=>({url:"/setreaddate",method:"POST",body:{Date:new Date().toISOString()}})})})}),{useGetNotificationsQuery:mL,useGetUnreadNotificationsQuery:yre,useMarkAsReadMutation:rE,useMarkAsSeenMutation:vre}=zh,bre=({interval:t=1e4}={interval:1e4})=>{const[e,n]=D.useState(t),[r,o]=D.useState(!1),{data:{notifications:s=[],lastSeenAt:i=""}={},isLoading:l}=mL({count:20},{pollingInterval:e});return D.useEffect(()=>{const c=s.some(d=>new Date(d.date)>new Date(i));if(o(c),n(c?0:t),c){const d=s.filter(f=>new Date(f.date)>new Date(i));Rne(d)}},[s,i]),{notifications:s,haveNew:r,isLoading:l}},Sre=(t,e=Date.now().toString())=>{const{t:n}=at(),r=(s,i)=>new Date(i.date).getTime()-new Date(s.date).getTime();return D.useMemo(()=>{const s=t.filter(l=>new Date(l.date)>new Date(e)).sort(r),i=t.filter(l=>new Date(l.date)<=new Date(e)).sort(r);return[{id:1,title:n("ds:notifications.modal.groups.new"),items:s},{id:2,title:n("ds:notifications.modal.groups.older"),items:i}]},[t,e,n])},wre=({hovered:t,notification:e})=>{const n=({...i})=>b.jsx(r7,{...i,size:8}),[r]=rE(),o=i=>{r({id:e.id,value:i.target.checked?Kc.Unread:Kc.Read})},s=D.useMemo(()=>e.isRead,[e.isRead]);return b.jsx(ef,{checked:!s,onChange:o,onClick:i=>i.stopPropagation(),radius:"xl",size:"xs",icon:n,iconColor:t?"white":"blue.4",color:t?"blue.5":"blue.4",styles:i=>({input:{borderColor:t?i.colors.grey[5]:i.colors.grey[3]}})})},gL=({title:t,children:e,...n})=>b.jsxs(je,{...n,children:[b.jsx(Dt,{style:{fontSize:"10px"},ml:"sm",c:"secondary",tt:"uppercase",children:t}),b.jsx(f2,{listStyleType:"none",children:e})]});gL.Item=f2.Item;const ED=({notifications:t,lastSeenAt:e,avatarSlot:n,...r})=>{const o=Sre(t,e),[s]=rE(),i=l=>{l.isRead===Kc.Unread&&s({id:l.id,value:Kc.Read})};return b.jsx(_t,{gap:"sm",...r,children:o.map(l=>l.items.length?b.jsx(gL,{title:l.title,maw:"900px",children:l.items.map(c=>b.jsx("li",{children:b.jsx(Dne,{notification:c,avatarSlot:n,indicatorSlot:wre,onClick:i})},c.id))},l.id):null)})},xre=()=>{const{t}=at(["ds"]),[e]=rE(),n=()=>{e({id:null,value:Kc.Read})};return b.jsx(In,{variant:"subtle",size:"xs",fw:400,leftSection:b.jsx(Lne,{size:14}),onClick:n,children:t("notifications.modal.allAsReadButton")})},Cre="_root_16nkv_1",_re="_list_16nkv_7",Tre="_tab_16nkv_12",Ere="_header_16nkv_26",kre="_headerDark_16nkv_30",Mre="_shrink_16nkv_35",c1={root:Cre,list:_re,tab:Tre,header:Ere,headerDark:kre,shrink:Mre};function kD({children:t,isLoading:e=!1,height:n=500,threshold:r=250,disabled:o=!1,onLoadMore:s}){const i=D.useRef(null),l=D.useCallback(({y:c})=>{var d;const f=(d=i.current)==null?void 0:d.querySelector(".mantine-ScrollArea-viewport");if(!(f!=null&&f.clientHeight)||!(f!=null&&f.scrollHeight))return;c+f.clientHeight+r>=f.scrollHeight&&s&&!e&&!o&&s()},[r,s,e,o]);return b.jsx(Hi,{ref:i,h:n,scrollbars:"y",onScrollPositionChange:l,children:b.jsxs(_t,{gap:"md",children:[t,e&&!o&&b.jsx(ex,{py:"md",children:b.jsx(va,{size:"sm"})})]})})}function jre({initialCount:t=10}){const[e,n]=D.useState(0),[r]=D.useState(t),[o,s]=D.useState(!0),{data:i,isFetching:l,isLoading:c}=mL({count:r,offset:e});return D.useEffect(()=>{(!(i!=null&&i.count)||i.count<r)&&s(!1)},[i==null?void 0:i.notifications,r]),{loadMore:()=>{!l&&!c&&o&&n(f=>f+r)},isLoading:l||c,notifications:(i==null?void 0:i.notifications)??[],hasMore:o,lastSeenAt:(i==null?void 0:i.lastSeenAt)??""}}function Dre({initialCount:t=10}){const[e,n]=D.useState(0),[r]=D.useState(t),[o,s]=D.useState(!0),{data:i,isFetching:l,isLoading:c,refetch:d}=yre({count:r,offset:e},{refetchOnMountOrArgChange:!0}),f=((i==null?void 0:i.unreadCount)||0)>999?"999+":i==null?void 0:i.unreadCount;return D.useEffect(()=>{(!(i!=null&&i.count)||i.count<r)&&s(!1)},[i==null?void 0:i.notifications,r]),{loadMore:()=>{!l&&!c&&o&&n(p=>p+r)},isLoading:l||c,hasMore:o,refetch:d,notifications:(i==null?void 0:i.notifications)??[],lastSeenAt:(i==null?void 0:i.lastSeenAt)??"",unreadCount:f}}const Are="data:image/svg+xml,%3csvg%20width='126'%20height='114'%20viewBox='0%200%20126%20114'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M84.885%2041.6769C75.9426%2041.6769%2066.8399%2041.3136%2058.3249%2038.9418C49.9701%2036.6234%2042.2991%2032.1255%2035.4615%2026.9225C30.9849%2023.5357%2026.9144%2020.8434%2021.1024%2021.2493C15.4153%2021.5518%209.97646%2023.6757%205.5894%2027.3071C-1.80382%2033.7815%20-0.692703%2045.7688%202.26672%2054.177C6.71121%2066.8587%2020.237%2075.6836%2031.7328%2081.4101C45.0128%2088.0448%2059.607%2091.891%2074.2332%2094.1132C87.0538%2096.0577%20103.528%2097.4786%20114.639%2089.1025C124.843%2081.4101%20127.642%2063.8459%20125.142%2051.9868C124.536%2048.4802%20122.67%2045.3155%20119.896%2043.0871C112.727%2037.8521%20102.033%2041.3457%2093.9769%2041.5273C90.9854%2041.5914%2087.9406%2041.6555%2084.885%2041.6769Z'%20fill='%23F3F6FA'/%3e%3cpath%20d='M63.004%20111.502C84.6649%20111.502%20102.224%20110.406%20102.224%20109.055C102.224%20107.704%2084.6649%20106.609%2063.004%20106.609C41.3432%20106.609%2023.7836%20107.704%2023.7836%20109.055C23.7836%20110.406%2041.3432%20111.502%2063.004%20111.502Z'%20fill='%23F3F6FA'/%3e%3cpath%20d='M111.946%2014.8919C112.525%2014.8919%20112.993%2014.4231%20112.993%2013.8449C112.993%2013.2666%20112.525%2012.7979%20111.946%2012.7979C111.368%2012.7979%20110.899%2013.2666%20110.899%2013.8449C110.899%2014.4231%20111.368%2014.8919%20111.946%2014.8919Z'%20fill='%23DAE3ED'/%3e%3cpath%20d='M42.2992%206.12162C42.8774%206.12162%2043.3462%205.65286%2043.3462%205.07461C43.3462%204.49636%2042.8774%204.02759%2042.2992%204.02759C41.7209%204.02759%2041.2521%204.49636%2041.2521%205.07461C41.2521%205.65286%2041.7209%206.12162%2042.2992%206.12162Z'%20fill='%23DAE3ED'/%3e%3cpath%20d='M84.5803%2037.3028C85.1586%2037.3028%2085.6274%2036.834%2085.6274%2036.2558C85.6274%2035.6775%2085.1586%2035.2087%2084.5803%2035.2087C84.0021%2035.2087%2083.5333%2035.6775%2083.5333%2036.2558C83.5333%2036.834%2084.0021%2037.3028%2084.5803%2037.3028Z'%20fill='%23DAE3ED'/%3e%3cpath%20d='M82.7137%20102.169C83.2919%20102.169%2083.7607%20101.701%2083.7607%20101.122C83.7607%20100.544%2083.2919%20100.075%2082.7137%20100.075C82.1354%20100.075%2081.6667%20100.544%2081.6667%20101.122C81.6667%20101.701%2082.1354%20102.169%2082.7137%20102.169Z'%20fill='%23DAE3ED'/%3e%3cpath%20d='M82.9076%201.14111V5.73517'%20stroke='%23C9D3E0'%20stroke-width='2.2894'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M80.6112%203.43896H85.2053'%20stroke='%23C9D3E0'%20stroke-width='2.2894'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.97446%2012.342V16.9361'%20stroke='%23C9D3E0'%20stroke-width='2.2894'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.66666%2014.6372H9.2714'%20stroke='%23C9D3E0'%20stroke-width='2.2894'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.519%2084.4858V89.0906'%20stroke='%23C9D3E0'%20stroke-width='2.2894'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9.21118%2086.7837H13.8159'%20stroke='%23C9D3E0'%20stroke-width='2.2894'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M111.963%2030.542V35.1361'%20stroke='%23C9D3E0'%20stroke-width='2.2894'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M109.667%2032.8398H114.261'%20stroke='%23C9D3E0'%20stroke-width='2.2894'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M54.3083%2023.6459C54.3083%2021.2668%2055.2486%2018.9852%2056.9224%2017.3029C58.5962%2015.6206%2060.8663%2014.6755%2063.2333%2014.6755C65.6004%2014.6755%2067.8705%2015.6206%2069.5443%2017.3029C71.218%2018.9852%2072.1583%2021.2668%2072.1583%2023.6459C77.2831%2026.0815%2081.6519%2029.8728%2084.7964%2034.6135C87.9408%2039.3543%2089.7425%2044.8657%2090.0083%2050.557V64.0126C90.3442%2066.801%2091.3267%2069.4713%2092.8769%2071.8084C94.4271%2074.1455%2096.5015%2076.0841%2098.9333%2077.4681H27.5333C29.9651%2076.0841%2032.0396%2074.1455%2033.5898%2071.8084C35.1399%2069.4713%2036.1225%2066.801%2036.4583%2064.0126V50.557C36.7241%2044.8657%2038.5258%2039.3543%2041.6703%2034.6135C44.8148%2029.8728%2049.1835%2026.0815%2054.3083%2023.6459Z'%20fill='white'/%3e%3cpath%20d='M49.8458%2077.4681V81.9533C49.8458%2085.522%2051.2563%2088.9444%2053.7669%2091.4678C56.2776%2093.9912%2059.6827%2095.4089%2063.2333%2095.4089C66.7839%2095.4089%2070.1891%2093.9912%2072.6997%2091.4678C75.2104%2088.9444%2076.6208%2085.522%2076.6208%2081.9533V77.4681'%20fill='white'/%3e%3cpath%20d='M49.8458%2077.4681V81.9533C49.8458%2085.522%2051.2563%2088.9444%2053.7669%2091.4678C56.2776%2093.9912%2059.6827%2095.4089%2063.2333%2095.4089C66.7839%2095.4089%2070.1891%2093.9912%2072.6997%2091.4678C75.2104%2088.9444%2076.6208%2085.522%2076.6208%2081.9533V77.4681M54.3083%2023.6459C54.3083%2021.2668%2055.2486%2018.9852%2056.9224%2017.3029C58.5962%2015.6206%2060.8663%2014.6755%2063.2333%2014.6755C65.6004%2014.6755%2067.8705%2015.6206%2069.5443%2017.3029C71.218%2018.9852%2072.1583%2021.2668%2072.1583%2023.6459C77.2831%2026.0815%2081.6519%2029.8728%2084.7964%2034.6135C87.9408%2039.3543%2089.7425%2044.8657%2090.0083%2050.557V64.0126C90.3442%2066.801%2091.3267%2069.4713%2092.8769%2071.8084C94.4271%2074.1455%2096.5015%2076.0841%2098.9333%2077.4681H27.5333C29.9651%2076.0841%2032.0396%2074.1455%2033.5898%2071.8084C35.1399%2069.4713%2036.1225%2066.801%2036.4583%2064.0126V50.557C36.7241%2044.8657%2038.5258%2039.3543%2041.6703%2034.6135C44.8148%2029.8728%2049.1835%2026.0815%2054.3083%2023.6459Z'%20stroke='%23C9D3E0'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M56%2031.9421C48.3%2033.3421%2041.86%2045.8488%2042.2333%2058.5421M82.3667%2046.1755C84.2334%2051.5421%2084.2334%2053.6421%2084.2334%2058.5421M48.7667%2046.1755C46.9%2051.5421%2046.9%2053.6421%2046.9%2058.5421'%20stroke='%23C9D3E0'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e",MD=({title:t,description:e})=>b.jsx(Lt,{justify:"center",align:"center",children:b.jsxs(_t,{gap:"md",justify:"center",align:"center",w:"350",children:[b.jsx(dc,{src:Are,alt:"Bell",w:"126"}),b.jsxs(_t,{justify:"center",align:"center",gap:0,children:[b.jsx(Dt,{c:"primary",size:"lg",fw:500,children:t}),b.jsx(Dt,{c:"secondary",size:"sm",ta:"center",children:e})]})]})}),jD=({url:t,children:e,tooltip:n})=>b.jsx(V7,{to:t,children:b.jsx(yi,{disabled:!n,label:n,position:"bottom",withArrow:!0,children:b.jsx(lr,{size:"lg",variant:"subtle",c:"grey.6",children:e})})}),Rre=t=>{const e=t.ModuleSettings.ModuleUrls.filter(n=>n.HasAccess);return{userId:t.UserId,modules:e.reduce((n,r)=>(n[Vl[r.Name]]={url:r.Url},n),{})}},qw=jx({reducerPath:"DCSettingsApi",baseQuery:Mx("/v1"),tagTypes:["Settings","User"],endpoints:t=>({getSettings:t.query({query:()=>({method:tE.GET,url:"/settings"}),transformResponse:e=>Rre(e),providesTags:["Settings"]})})}),{useGetSettingsQuery:yL}=qw,Ore=()=>{const{data:t,isLoading:e}=yL();return{modules:(t==null?void 0:t.modules)||null,isLoading:e}},vL=t=>{var e;const{data:n,isLoading:r}=yL();return{module:((e=n==null?void 0:n.modules)==null?void 0:e[t])||null,isLoading:r}},Pre=t=>({id:t.Id,fullName:`${t.Surname} ${t.FirstName} ${t.MiddleName}`.trim(),firstName:t.FirstName,lastName:t.Surname,middleName:t.MiddleName,email:t.Email,avatarUrl:t.Avatar,organization:{id:t.Customer.Id,title:t.Customer.Title}}),Vw=jx({reducerPath:"DCUserApi",baseQuery:Mx("/v1"),tagTypes:["User"],endpoints:t=>({getCurrentUser:t.query({query:()=>({method:tE.GET,url:"/user"}),transformResponse:e=>Pre(e),providesTags:["User"]})})}),{useGetCurrentUserQuery:bL}=Vw,Nre=()=>{const{data:t}=bL();return t??{}},Ire=()=>{const{module:t}=vL(Vl.Admin),{id:e}=Nre();return{settingsUrl:`${t==null?void 0:t.url}/profile/${e}/notification-settings`,archiveUrl:`${t==null?void 0:t.url}/profile/${e}/notifications`}},$re="data:image/svg+xml,%3csvg%20width='18'%20height='22'%20viewBox='0%200%2018%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.98198%200.544189C5.59973%200.544189%202.85786%203.21918%202.85786%206.51896C2.85786%209.81867%205.59973%2012.4937%208.98198%2012.4937C12.3642%2012.4937%2015.1061%209.81867%2015.1061%206.51896C15.1061%203.21918%2012.3642%200.544189%208.98198%200.544189ZM16.808%2015.4772C17.9682%2016.2061%2017.9116%2017.795%2016.855%2018.6609C14.7261%2020.4052%2011.9801%2021.4559%208.98229%2021.4559C6.00442%2021.4559%203.27467%2020.4191%201.15175%2018.6952C0.0857694%2017.8296%200.0292887%2016.2327%201.19454%2015.499C1.55729%2015.2706%201.95233%2015.0705%202.38106%2014.8981C4.10603%2014.2043%206.30925%2013.9874%208.98213%2013.9874C11.6685%2013.9874%2013.8842%2014.1904%2015.6137%2014.8768C16.0457%2015.0482%2016.4435%2015.2482%2016.808%2015.4772Z'%20fill='white'/%3e%3c/svg%3e";function Lre(t,e){if(!t||e.length===0)return e[0];let n=0;for(let o=0;o<t.length;o++)n=t.charCodeAt(o)+((n<<5)-n);const r=Math.abs(n)%e.length;return e[r]}function SL(t){return t!=null&&t.trim()&&t.trim().split(/\s+/).slice(0,2).map(r=>{var o;return(o=r[0])==null?void 0:o.toUpperCase()}).filter(Boolean).join("")||null}const Fre=["#FFA94D","#FFD43B","#A9E34B","#69DB7C","#38D9A9","#3BC9DB","#4DABF7","#748FFC","#9775FA","#DA77F2","#F783AC","#FF8787"];function zre(t,e){return D.useMemo(()=>{const n=String(t==null?void 0:t.id)||e||"",r=!(t!=null&&t.id)&&!e?"var(--mantine-color-gray-4)":Lre(n,Fre),o=(t==null?void 0:t.id)&&Ure(t)||SL(e);return{color:r,initials:o}},[t,e])}function Ure({fullName:t,firstName:e,middleName:n,lastName:r,email:o}){const s=r==null?void 0:r[0],i=e==null?void 0:e[0],l=n==null?void 0:n[0];return r&&e?`${s}${i}`.toUpperCase():t?SL(t):e&&n?`${i}`.toUpperCase():r&&n?`${s}`.toUpperCase():n?`${l}`.toUpperCase():o?o[0].toUpperCase():null}const wL=D.forwardRef(({user:t,fallbackSrc:e,fallback:n,avatarProps:r,...o},s)=>{const{color:i,initials:l}=zre(t,n);return b.jsx(gi,{src:(t==null?void 0:t.avatarUrl)||e,radius:60,tt:"uppercase",color:i,styles:{placeholder:{color:"white",backgroundColor:i,fontWeight:500}},ref:s,...o,...r,children:l||b.jsx(dc,{src:$re,alt:"User avatar placeholder",w:"60%",h:"60%",fit:"contain"})})}),DD=t=>({id:t.Id,contactId:t.Contact.Id,userId:t.Contact.UserId,fullName:t.Contact.FullName,firstName:t.Contact.FirstName,lastName:t.Contact.Surname,middleName:t.Contact.MiddleName,email:t.Contact.Email,position:t.Contact.Position,organization:t.Contact.Company,isFavourite:t.IsFavorite,haveAvatar:t.Contact.HasAvatar,isPersonal:t.IsPersonal}),Bre=t=>({Id:t.id,IsFavorite:t.isFavourite,IsPersonal:t.isPersonal,Contact:{Id:t.contactId,FullName:t.fullName,FirstName:t.firstName,Email:t.email,Position:t.position,Company:t.organization,HasAvatar:t.haveAvatar||!1}}),Yw=jx({reducerPath:"DCContactApi",baseQuery:Mx("/v1"),tagTypes:["Contacts"],endpoints:t=>({getContact:t.query({query:({name:e,phone:n,email:r,contactId:o})=>({method:"POST",url:"/addressbook/Links",body:{ContactIds:o?[o]:[],Like:e,Email:r,Phone:n}}),transformResponse:(e,n,{id:r})=>{var o;if(r){const s=e.Items.find(i=>i.Contact.UserId===r);if(s)return DD(s)}return(o=e==null?void 0:e.Items)!=null&&o[0]?DD(e.Items[0]):null},providesTags:["Contacts"]}),addContact:t.mutation({query:e=>({method:"POST",url:"/addressbook/SaveLink",body:Bre(e)}),invalidatesTags:["Contacts"]}),addToFavourite:t.mutation({query:({id:e})=>({method:"POST",url:"/Favorites/Add",body:{EntityIds:[e],Type:15}}),invalidatesTags:["Contacts"]}),removeFromFavourite:t.mutation({query:({id:e})=>({method:"POST",url:"/Favorites/Delete",body:{EntityIds:[e],Type:15}}),invalidatesTags:["Contacts"]})})}),{useGetContactQuery:Hre,useAddContactMutation:qre,useAddToFavouriteMutation:Vre,useRemoveFromFavouriteMutation:Yre}=Yw,AD=["#FFA94D","#FFD43B","#A9E34B","#69DB7C","#38D9A9","#3BC9DB","#4DABF7","#748FFC","#9775FA","#DA77F2","#F783AC","#FF8787"],Gre=t=>{if(typeof t!="string")throw new Error("Input must be a string");const e=n=>n.trim()===""?0:Array.from(n).reduce((r,o)=>r+o.charCodeAt(0),0)%AD.length;return(()=>{try{const n=e(t);return AD[n]}catch(n){return console.error("Error generating color:",n),"#FFFFFF"}})()},Wre=t=>!t||!t.userId?null:{id:t.userId,fullName:t.fullName||"",firstName:t.firstName||"",lastName:t.lastName||"",middleName:t.middleName||"",email:t.email||"",avatarUrl:t.haveAvatar?`/api/v2/profile/getAvatar?&id=${t.contactId}&type=Contact`:""},RD=({contact:t,fallbackSrc:e,actions:n})=>{var r,o;const s=Wre(t),i=Gre(((r=t==null?void 0:t.userId)==null?void 0:r.toString())||((o=t==null?void 0:t.contactId)==null?void 0:o.toString())||""),l=D.useMemo(()=>[t.fullName,t.position,t.email].filter(Boolean),[t]);return b.jsxs(_t,{gap:0,children:[b.jsxs(qt,{gap:10,align:"stretch",wrap:"nowrap",children:[b.jsx(wL,{user:s,fallbackSrc:e,avatarProps:{size:48,color:i}}),b.jsxs(_t,{gap:0,w:"100%",justify:"center",children:[b.jsx(Dt,{size:"lg",c:"primary",truncate:!0,w:290,children:l.length?l[0]:t.phone}),l[1]&&b.jsx(Dt,{size:"sm",c:"secondary",truncate:!0,w:290,children:l[1]})]})]}),b.jsxs(_t,{gap:0,ml:58,children:[l[2]&&b.jsx(Dt,{size:"sm",c:"primary",mt:4,truncate:!0,w:290,children:l[2]}),!!n&&b.jsx(je,{mt:"sm",children:n})]})]})},xL=({baseUrl:t,contact:e})=>{const[n]=qre(),r=D.useMemo(()=>e.id?e.organization?b.jsx(Ine,{stroke:1.2,size:18}):b.jsx(Hne,{stroke:1.4,size:18}):b.jsx(Bne,{stroke:1.2,size:18}),[e,e==null?void 0:e.isPersonal]),o=()=>{const s=t;e!=null&&e.id?window.open(`${s}/contact/${e.id}/`,"_blank"):n(e)};return b.jsx(In,{size:"compact-md",radius:"sm",variant:"light",color:"accent",leftSection:r,fw:400,onClick:o,disabled:!e.id&&!e.email,children:b.jsx(Dt,{size:"xs",children:e.id?e.organization?jt("ds:contact.card.actions.addToContacts.organization"):jt("ds:contact.card.actions.addToContacts.inContacts"):jt("ds:contact.card.actions.addToContacts.add")})})},Qre=({baseUrl:t,email:e})=>{const n=()=>{const r=t,o=j1().format("YYYY-MM-DD");window.open(`${r}/event/new/${o}/?add=${e}`,"_blank")};return b.jsx(lr,{size:30,variant:"light",color:"accent",onClick:n,children:b.jsx($ne,{stroke:1.2,size:22})})},Kre=({baseUrl:t,email:e,name:n})=>{const r=()=>{const o=t,s=n?`${n}<${e}>`:e;window.open(`${o}/inbox?to=${s}`,"_blank")};return b.jsx(lr,{size:30,variant:"light",color:"accent",onClick:r,children:b.jsx(Fne,{stroke:1.2,size:22})})},Xre=({contact:t})=>{const[e,n]=D.useState(t.isFavourite),[r]=Vre(),[o]=Yre(),s=()=>{n(i=>!i),e?o({id:t.contactId}):r({id:t.contactId})};return b.jsx(lr,{size:30,variant:"subtle",color:e?"yellow.4":"gray.6",onClick:s,children:e?b.jsx(qne,{size:22}):b.jsx(Une,{stroke:1.2,size:22})})},Zre=({contact:t})=>{const{modules:e}=Ore();return e?b.jsxs(qt,{justify:"space-between",children:[b.jsxs(qt,{gap:"xs",children:[t.email&&b.jsxs(b.Fragment,{children:[e[Vl.Mail]&&b.jsx(Kre,{baseUrl:e[Vl.Mail].url,email:t.email,name:t.fullName}),e[Vl.Calendar]&&b.jsx(Qre,{baseUrl:e[Vl.Calendar].url,email:t.email})]}),e[Vl.Contacts]&&b.jsx(xL,{baseUrl:e[Vl.Contacts].url,contact:t})]}),b.jsx(Xre,{contact:t})]}):null},Jre=({id:t,contactId:e,name:n,email:r,phone:o,fallbackSrc:s,nameFallback:i,actions:l})=>{const{data:c,isLoading:d}=Hre({id:t,contactId:e,name:n,email:r,phone:o}),{module:f,isLoading:h}=vL(Vl.Contacts);if(d||h)return b.jsx(b.Fragment,{children:b.jsx(Lt,{justify:"center",align:"center",h:100,children:b.jsx(va,{size:"sm",color:"gray.5"})})});if(!c){const p={fullName:n||i,email:r,phone:o};return b.jsx(RD,{contact:p,fallbackSrc:s,actions:p.email&&(f==null?void 0:f.url)&&b.jsx(xL,{baseUrl:f.url,contact:p})})}return b.jsx(b.Fragment,{children:b.jsx(RD,{fallbackSrc:s,contact:c,actions:l?l({contact:c}):b.jsx(Zre,{contact:c})})})},CL=({children:t,actions:e,hoverCardProps:n={},fallbackSrc:r,nameFallback:o,...s})=>b.jsxs(Nd,{openDelay:700,radius:"md",shadow:"lg",width:380,trapFocus:!0,...n,children:[b.jsx(Nd.Target,{children:t}),b.jsx(Nd.Dropdown,{p:"sm",onMouseDown:i=>{i.stopPropagation()},onClick:i=>{i.stopPropagation(),i.preventDefault()},children:b.jsx(Jre,{...s,actions:e,fallbackSrc:r,nameFallback:o})})]}),OD=({notification:t,...e})=>{const n=D.useMemo(()=>t.userId?{id:t.userId,fullName:t.actor,avatarUrl:t.imageUrl||""}:null,[t]);return b.jsx(je,{onClick:r=>{r.stopPropagation(),r.preventDefault()},children:b.jsx(CL,{id:t.userId,name:t.actor,children:b.jsx(wL,{user:n,avatarProps:{size:30,...e}})})})},eoe=()=>{var t;const{t:e}=at(["ds"]),[n,r]=D.useState("all"),{loadMore:o,isLoading:s,notifications:i,hasMore:l,lastSeenAt:c}=jre({initialCount:20}),{settingsUrl:d,archiveUrl:f}=Ire(),{loadMore:h,isLoading:p,notifications:v,hasMore:g,lastSeenAt:S,refetch:w,unreadCount:_}=Dre({initialCount:20}),{data:E,isLoading:T}=bL(),M=(t=E==null?void 0:E.organization)==null?void 0:t.title;D.useEffect(()=>{n==="unread"&&w()},[n,w]);const j=!v.length,A=!i.length,k=n==="all"?A:j,{colorScheme:R}=i2(),N=R==="dark";return b.jsxs(_t,{h:"100%",gap:0,style:{overflow:"hidden"},children:[b.jsxs(qt,{justify:"space-between",px:"sm",mt:"sm",mb:"xs",children:[b.jsx(Dt,{c:"primary",fw:500,children:e("notifications.modal.title")}),b.jsxs(qt,{gap:"0",children:[b.jsx(jD,{url:f,tooltip:e("notifications.modal.archiveButton"),children:b.jsx(Pne,{size:18,stroke:1})}),b.jsx(jD,{url:d,tooltip:e("notifications.modal.settingsButton"),children:b.jsx(zne,{size:18,stroke:1})})]})]}),b.jsx(Ga,{value:n,onChange:r,classNames:c1,children:b.jsxs(_t,{gap:0,h:"100%",children:[b.jsxs(qt,{justify:"space-between",wrap:"nowrap",gap:0,px:"sm",className:N?c1.headerDark:c1.header,children:[b.jsxs(Ga.List,{style:{flexWrap:"nowrap"},children:[b.jsx(Ga.Tab,{value:"all",children:e("notifications.modal.tabs.all")}),b.jsxs(Ga.Tab,{value:"unread",disabled:A,children:[e("notifications.modal.tabs.unread")," ",_||""]})]}),b.jsx(xre,{})]}),b.jsxs(_t,{gap:0,h:"100%",style:{justifyContent:k?"center":"flex-start"},className:c1.shrink,children:[b.jsx(Ga.Panel,{value:"all",className:c1.shrink,children:b.jsx(kD,{height:"100%",onLoadMore:o,isLoading:s||T,disabled:!l||A,children:A?b.jsx(MD,{title:e("ds:notifications.modal.empty.title"),description:e("ds:notifications.modal.empty.description",{serviceName:M})}):b.jsx(ED,{avatarSlot:OD,notifications:i,lastSeenAt:c,py:"sm"})})}),b.jsx(Ga.Panel,{value:"unread",className:c1.shrink,children:b.jsx(kD,{height:"100%",onLoadMore:h,isLoading:p,disabled:!g||j,children:j?b.jsx(MD,{title:e("ds:notifications.modal.emptyUnread.title"),description:e("ds:notifications.modal.emptyUnread.description",{serviceName:M})}):b.jsx(ED,{avatarSlot:OD,notifications:v,lastSeenAt:S,py:"sm"})})})]})]})})]})},toe=({actionIconProps:t={}})=>{const[e,n]=D.useState(!1),{haveNew:r}=bre(),[o]=vre(),s=i=>{i&&n(!0),o()};return D.useEffect(()=>{n(!1)},[r]),b.jsxs(Mt,{position:"bottom-end",shadow:"sm",offset:15,radius:16,keepMounted:!1,onChange:s,children:[b.jsx(Mt.Target,{children:b.jsx(lr,{size:"lg",...t,children:b.jsx(cx,{size:12,color:"red",withBorder:!0,offset:3,disabled:!r||e,style:{borderColor:"transparent"},children:b.jsx(Nne,{size:22})})})}),b.jsx(Mt.Dropdown,{w:400,h:565,p:0,children:b.jsx(eoe,{})})]})},_3={[zh.reducerPath]:zh.reducer,[Yw.reducerPath]:Yw.reducer,[qw.reducerPath]:qw.reducer,[Vw.reducerPath]:Vw.reducer},noe=[zh.middleware,Yw.middleware,qw.middleware,Vw.middleware],roe={title:"Уведомления",tabs:{all:"Все",unread:"Непрочитанные"},groups:{new:"Новые",older:"Полученные ранее"},empty:{title:"Новых уведомлений нет",description:"Здесь отображаются все важные уведомления сервисов {{serviceName}}"},emptyUnread:{title:"Непрочитанных уведомлений нет",description:"Здесь отображаются непрочитанные уведомления сервисов {{serviceName}}"},allAsReadButton:"Все как прочитанные",archiveButton:"Архив уведомлений",settingsButton:"Настройки уведомлений"},ooe={title:"Настройка уведомлений",modules:{admin:{roleChange:"Изменение группы",login:"Авторизация с другого устройства"},project:{taskChange:"Изменения задач в спринте",assignedTaskChanged:"Изменения задач назначенных на тебя",taskAssign:"Назначение на задачу",commentMention:"Упоминание в комментариях",projectAccess:"Выдача доступа к проекту",newSprint:"Новый спринт создан"}}},soe={title:"Изменен доступ к файлу",description:"<strong>{{actor}}</strong> изменил настройки доступа к файлу <strong>«{{action.subject}}»</strong>.<br />Текущий уровень доступа: <strong>«{{action.accessType.title}}»</strong>."},ioe={title:"Новый комментарий к файлу",description:"<strong>{{actor}}</strong> оставил новый комментарий к файлу <strong>«{{action.subject}}»</strong>."},aoe={title:"Вас упомянули в комментарии",description:"<strong>{{actor}}</strong> упомянул вас в комментарии к файлу <strong>«{{action.subject}}»</strong>."},loe={title:"Файл загружен",description:"Файл <strong>«{{action.subject}}»</strong> был загружен и успешно проверен."},coe={title:"Загрузка файла заблокирована",description:"Файл <strong>«{{action.subject}}»</strong> был заблокирован политикой DLP."},uoe={title:"Ошибка при загрузке файла",description:"Произошла ошибка при проверке файла <strong>«{{action.subject}}»</strong>."},doe={title:"Ссылка на файл сгенерирована",description:'Ваш файл <strong>«{{action.subject}}»</strong> успешно прошёл проверку. <a href="{{action.externalLinkUrl}}" target="_blank" rel="noopener noreferrer">Ссылка</a>'},foe={title:"Не удалось сгенерировать ссылку на файл",description:"Ваш файл <strong>«{{action.subject}}»</strong> не прошёл проверку. Попробуйте снова."},hoe={title:"Изменен доступ к папке",description:"<strong>{{actor}}</strong> изменил настройки доступа к папке <strong>«{{action.subject}}»</strong>. Текущий уровень доступа: <strong>«{{action.accessType.title}}»</strong>."},poe={title:"Доступ к комнате",description:"Теперь у вас есть доступ уровня <strong>«{{action.accessType.title}}»</strong> к комнате <strong>«{{action.subject}}»</strong>."},moe={title:"Доступ к проекту",description:"Теперь у вас есть доступ уровня <strong>«{{action.accessType.title}}»</strong> к проекту <strong>«{{action.subject}}»</strong>."},goe={title:"Новая задача создана",description:"<strong>{{actor}}</strong> создал(а) новую задачу <strong>«{{action.title}}»</strong>."},yoe={title:"Задача удалена",description:"<strong>{{actor}}</strong> удалил задачу <strong>«{{action.title}}»</strong>."},voe={title:"Детали задачи обновлены",description:"<strong>{{actor}}</strong> обновил(а) задачу <strong>«{{action.title}}»</strong>."},boe={title:"Задача перемещена",description:"<strong>{{actor}}</strong> переместил(а) задачу <strong>«{{action.title}}»</strong> в <strong>«{{action.movedTo}}»</strong>."},Soe={title:"Статус задачи изменен",description:"<strong>{{actor}}</strong> переместил(а) задачу <strong>«{{action.title}}»</strong> в статус <strong>«{{action.status}}»</strong>."},woe={title:"Новый комментарий к задаче",description:"<strong>{{actor}}</strong> оставил(а) новый комментарий к задаче <strong>«{{action.title}}»</strong>."},xoe={title:"Задача удалена",description:"<strong>{{actor}}</strong> удалил задачу <strong>«{{action.title}}»</strong>."},Coe={title:"Детали задачи обновлены",description:"<strong>{{actor}}</strong> обновил(а) задачу <strong>«{{action.title}}»</strong>."},_oe={title:"Задача перемещена",description:"<strong>{{actor}}</strong> переместил(а) задачу <strong>«{{action.title}}»</strong> в <strong>«{{action.movedTo}}»</strong>."},Toe={title:"Статус задачи изменен",description:"<strong>{{actor}}</strong> переместил(а) задачу <strong>«{{action.title}}»</strong> в статус <strong>«{{action.status}}»</strong>."},Eoe={title:"Новый комментарий к задаче",description:"<strong>{{actor}}</strong> оставил(а) новый комментарий к задаче <strong>«{{action.title}}»</strong>."},koe={title:"Вы исключены из задачи",description:"<strong>{{actor}}</strong> исключил(а) вас из задачи <strong>«{{action.title}}»</strong>."},Moe={title:"Вам назначена задача",description:"<strong>{{actor}}</strong> назначил(а) вас на задачу <strong>«{{action.title}}»</strong>."},joe={title:"Вас упомянули в комментарии",description:"<strong>{{actor}}</strong> упомянул(а) вас в комментарии к задаче <strong>«{{action.title}}»</strong>."},Doe={title:"Новое вложение в задаче",description:"<strong>{{actor}}</strong> добавил(а) новое вложение к задаче <strong>«{{action.title}}»</strong>."},Aoe={title:"Новый спринт создан",description:"Новый спринт <strong>«{{action.subject}}»</strong> был создан в проекте <strong>«{{action.project}}»</strong>."},Roe={title:"Вам назначена новая группа",description:"Вам назначена группа <strong>«{{action.subject}}»</strong> в проекте <strong>«{{action.customerName}}»</strong>."},Ooe={title:"Ваша группа удалена",description:"Вас удалили из группы <strong>«{{action.subject}}»</strong> в проекте <strong>«{{action.customerName}}»</strong>."},Poe={title:"Сообщение с флагом «Важное»",description:"<strong>{{actor}}</strong> отправил(а) новое сообщение с флагом «Важное»"},Noe={title:"Новое сообщение",description:"<strong>{{actor}}</strong> отправил(а) новое сообщение"},Ioe={title:"Доступ к календарю",description:"Теперь у вас есть доступ уровня <strong>«{{action.accessType.title}}»</strong> к календарю <strong>«{{action.subject}}»</strong>."},$oe={title:"Событие отменено",description:"Событие <strong>«{{action.title}}»</strong> было отменено <strong>{{actor}}</strong>."},Loe={title:"Вы приглашены на событие",description:"<strong>{{actor}}</strong> пригласил(а) вас на событие <strong>«{{action.title}}»</strong>."},Foe={title:"Детали события обновлены",description:"<strong>{{actor}}</strong> обновил(а) детали события <strong>«{{action.title}}»</strong>."},zoe={title:"Запланированное событие",description:"Событие <strong>«{{action.title, defaultValue(fallback:Без заголовка)}}»</strong> {{action.timeUntilStart, eventStatusDescription}}.",started:"началось",willStartIn:"начнется через"},Uoe={week_one:"{{count}} неделю",week_few:"{{count}} недели",week_many:"{{count}} недель",day_one:"{{count}} день",day_few:"{{count}} дня",day_many:"{{count}} дней",hour_one:"{{count}} час",hour_few:"{{count}} часа",hour_many:"{{count}} часов",minute_one:"{{count}} минуту",minute_few:"{{count}} минуты",minute_many:"{{count}} минут",second_one:"{{count}} секунду",second_few:"{{count}} секунды",second_many:"{{count}} секунд",lessThanMinute:"меньше минуты",started:"началось"},Boe={modal:roe,settingsPage:ooe,DiskFileShared:soe,DiskFileCommented:ioe,DiskFileMentioned:aoe,DiskFileUploaded:loe,DiskFileUploadedBlocked:coe,DiskFileUploadedError:uoe,DiskLinkGenerated:doe,DiskLinkGeneratedError:foe,DiskDirectoryShared:hoe,DiskRoomShared:poe,ProjectShared:moe,ProjectTaskCreated:goe,ProjectTaskDeleted:yoe,ProjectTaskUpdated:voe,ProjectTaskMoved:boe,ProjectTaskStatusChanged:Soe,ProjectTaskCommented:woe,ProjectMyTaskDeleted:xoe,ProjectMyTaskUpdated:Coe,ProjectMyTaskMoved:_oe,ProjectMyTaskStatusChanged:Toe,ProjectMyTaskCommented:Eoe,ProjectTaskUnassigned:koe,ProjectTaskAssigned:Moe,ProjectTaskMentioned:joe,ProjectTaskAttachmentAdded:Doe,ProjectSprintCreated:Aoe,AdminRoleAssigned:Roe,AdminRoleDeleted:Ooe,MailMessageImportant:Poe,MailMessageReceived:Noe,CalendarShared:Ioe,CalendarEventCanceled:$oe,CalendarEventInvited:Loe,CalendarEventUpdated:Foe,CalendarEventUpcoming:zoe,duration:Uoe},Hoe={title:"Notifications",tabs:{all:"All",unread:"Unread"},groups:{new:"New",older:"Received earlier"},empty:{title:"No new notifications",description:"All important notifications from {{serviceName}} services are collected here"},emptyUnread:{title:"No unread notifications",description:"Here are displayed unread notifications from {{serviceName}} services"},allAsReadButton:"Mark all as read",archiveButton:"All notifications",settingsButton:"Notification Settings"},qoe={title:"Notification Settings",modules:{admin:{roleChange:"Group Change",login:"Login from Another Device"},project:{taskChange:"Task Changes in Sprint",assignedTaskChanged:"Assigned Task Changes",taskAssign:"Task Assignment",commentMention:"Mention in Comments",projectAccess:"Project Access Granted",newSprint:"New Sprint Created"}}},Voe={title:"File Access Changed",description:"<strong>{{actor}}</strong> changed access settings for the file <strong>«{{action.subject}}»</strong>.<br />Current access level: <strong>«{{action.accessType.title}}»</strong>."},Yoe={title:"New Comment on File",description:"<strong>{{actor}}</strong> left a new comment on the file <strong>«{{action.subject}}»</strong>."},Goe={title:"You've Been Mentioned",description:"<strong>{{actor}}</strong> mentioned you in a comment on the file <strong>«{{action.subject}}»</strong>."},Woe={title:"File Uploaded",description:"The file <strong>«{{action.subject}}»</strong> has been uploaded and checked successfully."},Qoe={title:"File Upload Blocked",description:"The file <strong>«{{action.subject}}»</strong> was blocked by DLP policy."},Koe={title:"File Upload Error",description:"An error occurred while checking the file <strong>«{{action.subject}}»</strong>."},Xoe={title:"File link generated",description:'Your file <strong>«{{action.subject}}»</strong> has been successfully validated. <a href="{{action.externalLinkUrl}}" target="_blank" rel="noopener noreferrer">Link</a>'},Zoe={title:"Failed to generate file link",description:"Your file <strong>«{{action.subject}}»</strong> didn't pass validation. Try again."},Joe={title:"Folder Access Changed",description:"<strong>{{actor}}</strong> changed access settings for the folder <strong>«{{action.subject}}»</strong>. Current access level: <strong>«{{action.accessType.title}}»</strong>."},ese={title:"Access Granted to Room",description:"You now have <strong>«{{action.accessType.title}}»</strong> access to the room <strong>«{{action.subject}}»</strong>."},tse={title:"Access Granted to Project",description:"You now have <strong>«{{action.accessType.title}}»</strong> access to the project <strong>«{{action.subject}}»</strong>."},nse={title:"New Task Created",description:"<strong>{{actor}}</strong> created a new task <strong>«{{action.title}}»</strong>."},rse={title:"Task Deleted",description:"The task <strong>«{{action.title}}»</strong> was deleted by <strong>{{actor}}</strong>."},ose={title:"Task Details Updated",description:"<strong>{{actor}}</strong> updated the task <strong>«{{action.title}}»</strong>."},sse={title:"Task Moved",description:"<strong>{{actor}}</strong> moved the task <strong>«{{action.title}}»</strong> to <strong>«{{action.movedTo}}»</strong>."},ise={title:"Task Status Changed",description:"<strong>{{actor}}</strong> moved the task <strong>«{{action.title}}»</strong> to <strong>«{{action.status}}»</strong>."},ase={title:"New Comment on Task",description:"<strong>{{actor}}</strong> left a new comment on the task <strong>«{{action.title}}»</strong>."},lse={title:"Task Deleted",description:"The task <strong>«{{action.title}}»</strong> was deleted by <strong>{{actor}}</strong>."},cse={title:"Task Details Updated",description:"<strong>{{actor}}</strong> updated the task <strong>«{{action.title}}»</strong>."},use={title:"Task Moved",description:"<strong>{{actor}}</strong> moved the task <strong>«{{action.title}}»</strong> to <strong>«{{action.movedTo}}»</strong>."},dse={title:"Task Status Changed",description:"<strong>{{actor}}</strong> moved the task <strong>«{{action.title}}»</strong> to <strong>«{{action.status}}»</strong>."},fse={title:"New Comment on Task",description:"<strong>{{actor}}</strong> left a new comment on the task <strong>«{{action.title}}»</strong>."},hse={title:"Unassigned from Task",description:"<strong>{{actor}}</strong> unassigned you from the task <strong>«{{action.title}}»</strong>."},pse={title:"Assigned a Task",description:"<strong>{{actor}}</strong> assigned you to the task <strong>«{{action.title}}»</strong>."},mse={title:"You've Been Mentioned",description:"<strong>{{actor}}</strong> mentioned you in a comment on the task <strong>«{{action.title}}»</strong>."},gse={title:"New Attachment in Task",description:"<strong>{{actor}}</strong> added a new attachment to the task <strong>«{{action.title}}»</strong>."},yse={title:"New Sprint Created",description:"A new sprint <strong>«{{action.subject}}»</strong> has been created in the project <strong>«{{action.project}}»</strong>."},vse={title:"Assigned to a New Group",description:"You have been assigned to the group <strong>«{{action.subject}}»</strong> in <strong>«{{action.customerName}}»</strong>."},bse={title:"Group Has Been Removed",description:"You have been removed from the <strong>«{{action.subject}}»</strong> group in <strong>«{{action.customerName}}»</strong>."},Sse={title:'Message with "Important" Tag',description:'<strong>{{actor}}</strong> sent a new message tagged as "Important"'},wse={title:"New Message",description:"<strong>{{actor}}</strong> sent a new message"},xse={title:"Access Granted to Calendar",description:"You now have <strong>«{{action.accessType.title}}»</strong> access to the calendar <strong>«{{action.subject}}»</strong>."},Cse={title:"Event Canceled",description:"The event <strong>«{{action.title}}»</strong> was canceled by <strong>{{actor}}</strong>."},_se={title:"Invite to Event",description:"<strong>{{actor}}</strong> invited you to the event <strong>«{{action.title}}»</strong>."},Tse={title:"Event Details Updated",description:"<strong>{{actor}}</strong> updated the event <strong>«{{action.title}}»</strong>."},Ese={title:"Upcoming Event",description:"Event <strong>«{{action.title, defaultValue(fallback: Untitled)}}»</strong> {{action.timeUntilStart, eventStatusDescription}}.",started:"started",willStartIn:"will start in"},kse={week_one:"{{count}} week",week_other:"{{count}} weeks",day_one:"{{count}} day",day_other:"{{count}} days",hour_one:"{{count}} hour",hour_other:"{{count}} hours",minute_one:"{{count}} minute",minute_other:"{{count}} minutes",second_one:"{{count}} second",second_other:"{{count}} seconds",lessThanMinute:"less than a minute",started:"started"},Mse={modal:Hoe,settingsPage:qoe,DiskFileShared:Voe,DiskFileCommented:Yoe,DiskFileMentioned:Goe,DiskFileUploaded:Woe,DiskFileUploadedBlocked:Qoe,DiskFileUploadedError:Koe,DiskLinkGenerated:Xoe,DiskLinkGeneratedError:Zoe,DiskDirectoryShared:Joe,DiskRoomShared:ese,ProjectShared:tse,ProjectTaskCreated:nse,ProjectTaskDeleted:rse,ProjectTaskUpdated:ose,ProjectTaskMoved:sse,ProjectTaskStatusChanged:ise,ProjectTaskCommented:ase,ProjectMyTaskDeleted:lse,ProjectMyTaskUpdated:cse,ProjectMyTaskMoved:use,ProjectMyTaskStatusChanged:dse,ProjectMyTaskCommented:fse,ProjectTaskUnassigned:hse,ProjectTaskAssigned:pse,ProjectTaskMentioned:mse,ProjectTaskAttachmentAdded:gse,ProjectSprintCreated:yse,AdminRoleAssigned:vse,AdminRoleDeleted:bse,MailMessageImportant:Sse,MailMessageReceived:wse,CalendarShared:xse,CalendarEventCanceled:Cse,CalendarEventInvited:_se,CalendarEventUpdated:Tse,CalendarEventUpcoming:Ese,duration:kse},jse="Неизвестно",Dse={Off:"Отключено",All:"Все модули",Self:"Этот модуль"},Ase={Deny:"Запретить",OnlyUpload:"Только загрузка",FreeBusy:"Свободен/Занят",CanDownload:"Можно скачать",Read:"Чтение",Comment:"Комментировать",Review:"Рецензировать",Write:"Запись",Delete:"Удалить",FullInternal:"Полный внутренний",Full:"Полный",Lock:"Заблокировать",LockPrint:"Заблокировать печать",LockCopy:"Заблокировать копирование",LockDownload:"Заблокировать скачивание"},Rse={System:"Система",Disk:"Диск",Projects:"Проекты",Calendar:"Календарь",Mail:"Почта",Contacts:"Контакты",Admin:"Управление"},Ose={RoleChange:"Изменения ролей",Login:"Авторизация с другого устройства",TaskChange:"Изменения задач в спринте",AssignedTaskChange:"Изменения задач назначенных на тебя",TaskAssign:"Назначение на задачу",CommentMention:"Упоминание в комментариях",ProjectAccess:"Выдача доступа к проекту",SprintCreated:"Новый спринт создан",NewMessage:"Новое входящее сообщение",ReplyToImportantMessage:"Ответ на важное сообщение",DiskCommentMention:"Упоминание в комментариях",DiskAccess:"Выдача доступа",DiskFull:"Заканчивается место на диске",AvailableDocumentChange:"Изменения доступным мне документов",MyDocumentChange:"Изменения моих документов",UpcomingEvent:"Уведомление о предстоящем событии",EventInvite:"Приглашение в событие",EventChange:"Изменение событий в твоем календаре или где ты участник",SharedEventChange:"Изменение событий в пошареных тебе календарях",CalendarShared:"Выдача доступа к каленадрю"},Pse={Completed:"Завершено",Blocked:"Заблокировано",Error:"Ошибка"},Nse={unknown:jse,notificationSetting:Dse,accessType:Ase,module:Rse,notificationSettingType:Ose,fileUploadStatus:Pse},Ise="Unknown",$se={Off:"Off",All:"All modules",Self:"This module"},Lse={Deny:"Deny",OnlyUpload:"Upload Only",FreeBusy:"Free/Busy",CanDownload:"Can Download",Read:"Read",Comment:"Comment",Review:"Review",Write:"Write",Delete:"Delete",FullInternal:"Full Internal",Full:"Full",Lock:"Lock",LockPrint:"Lock Print",LockCopy:"Lock Copy",LockDownload:"Lock Download"},Fse={System:"System",Disk:"Disk",Projects:"Projects",Calendar:"Calendar",Mail:"Mail",Contacts:"Contacts",Admin:"Admin"},zse={Completed:"Completed",Blocked:"Blocked",Error:"Error"},Use={unknown:Ise,notificationSetting:$se,accessType:Lse,module:Fse,fileUploadStatus:zse},Bse={actions:{addToContacts:{inContacts:"Личные",add:"Добавить",organization:"Организация"}}},Hse={card:Bse},qse={actions:{addToContacts:{inContacts:"Personal",add:"Add",organization:"Organization"}}},Vse={card:qse},Yse={ru:{notifications:Boe,dictionary:Nse,contact:Hse},en:{notifications:Mse,dictionary:Use,contact:Vse}},Gse={type:"3rdParty",init(t){setTimeout(()=>{try{let e=null;if(t.resourceStore&&t.resourceStore.addResourceBundle?e=t.resourceStore.addResourceBundle.bind(t.resourceStore):t.addResourceBundle&&(e=t.addResourceBundle.bind(t)),!e){console.error("No resource add method available");return}Object.entries(Yse).forEach(([n,r])=>{e(n,"ds",r,!0,!0)})}catch(e){console.error("Failed to add UI Kit translations:",e)}},100)}},Wse={type:"formatter",init(t){var e;try{(e=t==null?void 0:t.services)!=null&&e.formatter&&(t.services.formatter.add("duration",n=>uL(n,t==null?void 0:t.t)),t.services.formatter.add("upper",n=>n&&n.toUpperCase()),t.services.formatter.add("defaultValue",(n,r,o)=>pne(n,o)),t.services.formatter.add("eventStatusDescription",n=>mne(n,t==null?void 0:t.t)))}catch(n){console.error("Failed to register UI Kit formatters:",n)}}},Qse={type:"3rdParty",init(t){Gse.init(t),Wse.init(t)}},Kse={invalid_type:"Expected {{expected}}, received {{received}}",invalid_type_received_undefined:"Required",invalid_type_received_null:"Required",invalid_literal:"Invalid literal value, expected {{expected}}",unrecognized_keys:"Unrecognized key(s) in object: {{- keys}}",invalid_union:"Invalid input",invalid_union_discriminator:"Invalid discriminator value. Expected {{- options}}",invalid_enum_value:"Invalid enum value. Expected {{- options}}, received '{{received}}'",invalid_arguments:"Invalid function arguments",invalid_return_type:"Invalid function return type",invalid_date:"Invalid date",custom:"Invalid input",invalid_intersection_types:"Intersection results could not be merged",not_multiple_of:"Number must be a multiple of {{multipleOf}}",not_finite:"Number must be finite",invalid_string:{email:"Invalid {{validation}}",url:"Invalid {{validation}}",uuid:"Invalid {{validation}}",cuid:"Invalid {{validation}}",regex:"Invalid",datetime:"Invalid {{validation}}",startsWith:'Invalid input: must start with "{{startsWith}}"',endsWith:'Invalid input: must end with "{{endsWith}}"'},too_small:{array:{exact:"Array must contain exactly {{minimum}} element(s)",inclusive:"Array must contain at least {{minimum}} element(s)",not_inclusive:"Array must contain more than {{minimum}} element(s)"},string:{exact:"String must contain exactly {{minimum}} character(s)",inclusive:"String must contain at least {{minimum}} character(s)",not_inclusive:"String must contain over {{minimum}} character(s)"},number:{exact:"Number must be exactly {{minimum}}",inclusive:"Number must be greater than or equal to {{minimum}}",not_inclusive:"Number must be greater than {{minimum}}"},set:{exact:"Invalid input",inclusive:"Invalid input",not_inclusive:"Invalid input"},date:{exact:"Date must be exactly {{- minimum, datetime}}",inclusive:"Date must be greater than or equal to {{- minimum, datetime}}",not_inclusive:"Date must be greater than {{- minimum, datetime}}"}},too_big:{array:{exact:"Array must contain exactly {{maximum}} element(s)",inclusive:"Array must contain at most {{maximum}} element(s)",not_inclusive:"Array must contain less than {{maximum}} element(s)"},string:{exact:"String must contain exactly {{maximum}} character(s)",inclusive:"String must contain at most {{maximum}} character(s)",not_inclusive:"String must contain under {{maximum}} character(s)"},number:{exact:"Number must be exactly {{maximum}}",inclusive:"Number must be less than or equal to {{maximum}}",not_inclusive:"Number must be less than {{maximum}}"},set:{exact:"Invalid input",inclusive:"Invalid input",not_inclusive:"Invalid input"},date:{exact:"Date must be exactly {{- maximum, datetime}}",inclusive:"Date must be smaller than or equal to {{- maximum, datetime}}",not_inclusive:"Date must be smaller than {{- maximum, datetime}}"}}},Xse={email:"email",url:"url",uuid:"uuid",cuid:"cuid",regex:"regex",datetime:"datetime"},Zse={function:"function",number:"number",string:"string",nan:"nan",integer:"integer",float:"float",boolean:"boolean",date:"date",bigint:"bigint",undefined:"undefined",symbol:"symbol",null:"null",array:"array",object:"object",unknown:"unknown",promise:"promise",void:"void",never:"never",map:"map",set:"set"},Jse={errors:Kse,validations:Xse,types:Zse},eie={invalid_type:"Ожидался тип - {{expected}}, получено - {{received}}",invalid_type_received_undefined:"Обязательное поле",invalid_type_received_null:"Обязательное поле",invalid_literal:"Неверное значение литерала, ожидалось {{expected}}",unrecognized_keys:"Неверные ключи в объекте: {{- keys}}",invalid_union:"Результаты пересечения не могут быть объединены",invalid_union_discriminator:"Неверное значение дискриминатора. Ожидалось {{- options}}",invalid_enum_value:"Неверное значение перечисления. Ожидалось {{- options}}, получено '{{received}}'",invalid_arguments:"Неверный тип аргументов функции",invalid_return_type:"Неверный тип возвращаемого значения функции",invalid_date:"Неверный формат даты",custom:"Неверный ввод",invalid_intersection_types:"Результаты пересечения не могут быть объединены",not_multiple_of:"Число должно быть кратно {{multipleOf}}",not_finite:"Число должно быть конечным",invalid_string:{email:"Неверный {{validation}}",url:"Неверный {{validation}}",uuid:"Неверный {{validation}}",cuid:"Неверный {{validation}}",regex:"Неверное {{validation}}",datetime:"Неверная {{validation}}",startsWith:'Неверный формат, должен начинаться с "{{startsWith}}"',endsWith:'Неверный формат, должен заканчиваться на "{{endsWith}}"'},too_small:{array:{exact:"Массив должен содержать ровно {{minimum}} элемента(ов)",inclusive:"Массив должен содержать не менее {{minimum}} элемента(ов)",not_inclusive:"Массив должен содержать более {{minimum}} элемента(ов)"},string:{exact:"Строка должна содержать ровно {{minimum}} символа(ов)",inclusive:"Строка должна содержать не менее {{minimum}} символа(ов)",not_inclusive:"Строка должна содержать более {{minimum}} символа(ов)"},number:{exact:"Число должно быть ровно {{minimum}}",inclusive:"Число должно быть больше или равно {{minimum}}",not_inclusive:"Число должно быть больше {{minimum}}"},set:{exact:"Неверный ввод",inclusive:"Неверный ввод",not_inclusive:"Неверный ввод"},date:{exact:"Дата должна быть {{- minimum, datetime}}",inclusive:"Дата должна быть больше или равна {{- minimum, datetime}}",not_inclusive:"Дата должна быть больше {{- minimum, datetime}}"}},too_big:{array:{exact:"Массив должен содержать ровно {{maximum}} элемента(ов)",inclusive:"Массив должен содержать не более {{maximum}} элемента(ов)",not_inclusive:"Массив должен содержать менее {{maximum}} элемента(ов)"},string:{exact:"Строка должна содержать ровно {{maximum}} символа(ов)",inclusive:"Строка должна содержать не более {{maximum}} символа(ов)",not_inclusive:"Строка должна содержать менее {{maximum}} символа(ов)"},number:{exact:"Число должно быть ровно {{maximum}}",inclusive:"Число должно быть меньше или равно {{maximum}}",not_inclusive:"Число должно быть меньше {{maximum}}"},set:{exact:"Неверный ввод",inclusive:"Неверный ввод",not_inclusive:"Неверный ввод"},date:{exact:"Дата должна быть {{- maximum, datetime}}",inclusive:"Дата должна быть меньше или равна {{- maximum, datetime}}",not_inclusive:"Дата должна быть меньше {{- maximum, datetime}}"}}},tie={email:"Email",url:"URL",uuid:"UUID",cuid:"CUID",regex:"регулярное выражение",datetime:"дата и время"},nie={function:"функция",number:"число",string:"строка",nan:"NaN",integer:"целое число",float:"число с плавающей точкой",boolean:"булево значение",date:"дата",bigint:"bigint",undefined:"undefined",symbol:"символ",null:"null",array:"массив",object:"объект",unknown:"unknown",promise:"promise",void:"void",never:"never",map:"хеш-таблица",set:"множество"},rie={errors:eie,validations:tie,types:nie},oie={R7:"R7-Projects",CRUDOC:"Projects"},sie={title:"R7-Projects",nodata:"No data",action:{update:"Update",cancel:"Cancel",loadMore:"Load more...",disable:"Disable",add:"Add",change:"Change",edit:"Edit",export:"Export",delete:"Delete",deleteAll:"Delete all",save:"Save",create:"Create",close:"Close",next:"Next",leave:"Leave",download:"Download",downloadAll:"Download all",upload:"Upload",search:"Search...",searchTask:"Search tasks...",backToHome:"Back to home",move:"Move",link:"Link",clear:"Clear",assign:"Assign",duplicate:"Duplicate",addColumn:"Add column",addRow:"Add row",copy:"Copy",archive:"Archive",unarchive:"Unarchive",archived:"Archived",createProject:"Create Project",pasteColumnRight:"Insert column to the right",pasteColumnLeft:"Insert column to the left",pasteRowAbove:"Insert row above",pasteRowBelow:"Insert row below",deleteColumn:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",changePerformer:"Change performer",changeStatus:"Change status",addCollectionEntities:"Add columns and rows"},titles:{taskName:"Task name",emptyCollection:"Collection is empty",collectionMembers:"Collection members"},labels:{addCollectionEntities:"Add values for columns and rows",collectionValueWasDeleted:"*Collection values have been deleted"},actionsLabel:"Actions",inDev:"🚧 In Development",loading:"Loading...",ago:"ago"},iie={searchCollection:"Search the collection...",pickValue:"Pick value",date:"DD.MM.YYYY",searchMembers:"Search members..."},aie={duplicateTaskModal:{title:"Task Duplication",actions:{duplicate:"Duplicate"}},createCollection:{title:"Creating a collection"},editCollection:{title:"Collection settings"},deleteCollection:{title:"Delete collection",description:"Are you sure you want to delete the collection: <b>{{displayName}}</b>?"},deleteCollectionColumn:{title:"Delete column",description:"Are you sure you want to delete the column: <b>{{displayName}}</b>?"},createCollectionColumn:{title:"Column Settings: {{type}}"},deleteTasks:{title:"Delete Tasks",description_one:"Are you sure you want to move {{count}} task to the trash?",description_other:"Are you sure you want to move {{count}} tasks to the trash?"},deleteTasksWithChildren:{description:"Delete the selected tasks?<br>All subtasks will also be moved to the trash."}},lie={duplicateTaskForm:{fields:{title:"New Task Name",location:"Select Location"},errors:{hasLength:{title:"The task name must be between 1 and 255 characters."}}},editTypeForm:{errors:{isNotEmpty:{title:"Please fill in this field"},isUniqueName:{title:"Task type names must be unique!"}}},createCollectionForm:{fields:{location:{label:"Location",placeholder:"Select a project",error:{required:"Please select a project"}},name:{label:"Name",placeholder:"Name",error:{required:"Enter name",maxLength:"The value must not exceed {{count}} characters"}},column:{label:"{{count}} column",selectPlaceholder:"Select column type",inputPlaceholder:"Enter column name",options:{text:"Text",number:"Number",email:"E-mail",date:"Date",phone:"Phone"},error:{requiredType:"Select column type",requiredName:"Enter column name",maxLength:"The value must not exceed {{count}} characters"}}}},createCollectionColumnForm:{fields:{name:{label:"Name",placeholder:"Name",error:{required:"Enter name",maxLength:"The value must not exceed {{count}} characters"}}}}},cie={me:"Me"},uie={title:"Members",subtitle:"Project Participants",inviteLink:"Invite Links",noResults:"No results found",noUsers:"No users",addUser:"Add a member...",owner:"Owner",links:{updateTitle:"Update Links",disableTitle:"Disable Links",description:"Users will no longer be able to use old invite links.",invalid:"Link is invalid",invite:"You are invited to join the project ‘{{project}}’.",alreadyInvited:"Your account is already joined to the project ‘{{project}}’."},leave:{title:"Leave Project",description:"Do you really want to leave the project: <b>{{project}}</b>?"},notAssigned:"Not assigned",action:{goToProject:"Go to Project",join:"Join"},remove:{title:"Remove Member",confirm:"Do you really want to remove the member: <b>{{user}}</b>?"}},die={title:"Login",success:"Authorization successful!",error:"Authorization error",requiredField:"Fill in this field",fields:{login:{label:"Login or e-mail",placeholder:"Enter your login"},password:{label:"Password",placeholder:"Enter your password"}}},fie={title:{create:{project:"Create project",folder:"Create folder",sprint:"Create task list"},edit:{project:"Edit project",folder:"Edit folder",sprint:"Edit task list"},icon:"Project icon",key:"Project key",statuses:"Task statuses",taskTypes:"Task types",features:"Additional options",customFields:"Custom fields",tags:"Tags"},statusSection:{title:"Statuses",newStatus:"New status",addStatus:"Add status",useProject:"Use project statuses",useFolder:"Use folder statuses",onlyForStatusGrouping:"Statuses can only be created when grouping by status"},customFieldSection:{title:"Custom fields",empty:"No custom fields. Add a field and set parameters.",disabled:"Custom fields option is disabled.",addField:"Add field",addVariant:"Add variant",enable:"Enable",type:{1:"Text",2:"Link",4:"Variants",8:"Collections"}},iconSection:{title:"Icon",color:"Color"},keySection:{title:"Project key"},typeSection:{title:"Task types",subtitle:"{{action}} task types",addType:"Add type"},featuresSection:{title:"Additional options"},tagSection:{title:"Tags",empty:"No tags. Add a tag and set parameters.",disabled:"Tags option is disabled.",addTag:"Add tag",enable:"Enable"},fields:{title:{label:"Name",placeholder:"For example: Development, Design, Analytics"},key:{label:"Project key",placeholder:"Enter your project key"},type:{label:"Name",placeholder:"Enter name"}},errors:{link:"Invalid link format",minMaxLength:"Value must have {{min}}-{{max}} characters",maxLength:"Value must not exceed {{count}} characters",startsWithLetter:"The first character must be a letter",title:{project:"Fill in project name",folder:"Fill in folder name",sprint:"Fill in list name"},key:{unique:"This key is already in use"},statuses:{required:"Fill in status name",uniq:"Names must be unique"},types:"Specify task types",customFields:{required:"Fill in field name",uniq:"Names must be unique"},tags:{required:"Fill in tag name",uniq:"Names must be unique"}}},hie={search:"Search in trash",tableColumn:{title:"Name",type:"Type",placement:"Location",removeDate:"Deletion date",author:"Deleted by",actions:"Selected: {{count}}"},entityType:{project:"Project",folder:"Folder",sprint:"List",task:"Task",collection:"Collection"},action:{cleanup:"Clean trash",restore:"Restore",delete:"Delete"},modals:{clearTrash:{title:"Clear trash",description:"<div>Are you sure you want to empty the trash?</div> <div>These items will be permanently deleted without the possibility of recovery.</div>"},deleteElement:{title:"Delete Element",description:"<div>Are you sure you want to delete this item from the trash?</div> <div>This action cannot be undone.</div>"},deleteElements:{title:"Delete Elements",description:"Are you sure you want to delete these elements from the trash? This action cannot be undone."}}},pie={description:"The item by this link is archived. Enable archive display in settings to see it.",taskHeader:"This task is archived.",taskDescription:"The item at this link is archived. Enable archives in settings to view it."},mie={noname:"Untitled",emptyProject:"Project is empty",emptyFolder:"Folder is empty",emptyYet:"Nothing here yet",notAssigned:"Not assigned",noTrash:{title:"Trash is empty, but it's temporary.",description:"Here you can permanently delete or restore items."},noProjects:{title:"You have no projects",description:"Create a project and start working now!",action:"Create project"},noFoldersSprints:{description_both:"Please add folders or lists to continue",description_sprint:"Please add lists to continue",action_folder:"Create folder",action_sprint:"Create task list"},noSprints:{title:"Task lists not found"},noTasks:{title:"Oops. Nothing here.",description:"You have no tasks"},noTasks2:{title:"No tasks in the selected list",description:"Choose another list or schedule the current one",action:"Add task"},noTasks3:{description:"No tasks found. Try changing the search criteria.",action:"Find task"},noResults:{title:"Nothing found",subtitle:"No results found",description:"Try adjusting the conditions or resetting the filters.",shortDescription:"Try changing the query parameters.",action:"Reset filters",searchPlaceholder:"Enter search query..."},noStatuses:{title:"No available statuses",subtitle:"No status",description:"You can add them in project, folder, or task list settings."},noTypes:{title:"No available task types",description:"You can add them in project settings."},noActivity:{title:"No activity",noComments:"No comments yet"}},gie={common:{title:"Common",submit:"Submit form",theme_light:"Light theme",theme_dark:"Dark theme"},task:{title:"Task actions",copyLink:"Copy task link",copyKey:"Copy task key",assignYourself:"Assign yourself as assignee"},editor:{title:"Editor actions",pasteImage:"Paste image"}},yie={myTasks:"My Tasks",whatsNew:"What's New",trash:"Trash",myProjects:"My Projects",otherProjects:"Other Projects",action:{addProject:"Add Project",addFolder:"Add Folder",addSprint:"Add List",addTask:"Add Task",addCollection:"Add Collection"},addMenu:{project:"Project",folder:"Folder",list:"List",task:"Task",collection:"Collection"}},vie={text:"Powered by R7-Office",text1:"R7-Office is a Russian cross-platform application suite for collaborating on office documents.",text2:"It is included in the unified register of Russian software for computers and databases.",text3:"Available in cloud, local, and mobile versions, supporting deployment in private clouds and various collaboration solutions.",rightsReserved:"© R7 JSC. All rights reserved",moreAction:"Learn more on the website"},bie={title:"Update Log",subtitle:"Updates",action:"View all updates"},Sie={main:"Home",profile:"Profile",subscription:"Subscription",download:"Download",feedback:"Report an Issue",shortcuts:"Shortcuts",logout:"Log Out"},wie={title:"Dates",startDate:"Start Date",startDateShort:"Start",dueDate:"Due Date",dueDateShort:"Due",rangePlaceholder:"Not Selected",created:"Created",updated:"Updated",today:"Today",yesterday:"Yesterday",daysShort:"days"},xie={1:"Epic",2:"Main Task",3:"Task",4:"Bug",5:"Subtask",6:"Milestone",7:"Improvement",8:"New Feature"},Cie={0:"Related (A) to task (B)",1:"Task (A) is blocked by task (B)",2:"Task (A) blocks the execution of task (B)",3:"Task (A) duplicates task (B)",4:"Start of task (A) blocks the start of task (B)",5:"Finish of task (A) blocks the finish of task (B)",6:"Start of task (A) is blocked by the start of task (B)",7:"Finish of task (A) is blocked by the finish of task (B)",8:"Start of task (A) blocks the finish of task (B)",9:"Finish of task (A) is blocked by the start of task (B)"},_ie={0:"Related to",1:"Blocked by",2:"Blocks",3:"Duplicates",4:"Start blocks start",5:"Finish blocks finish",6:"Start blocked by start",7:"Finish blocked by finish",8:"Start blocks finish",9:"Finish blocked by start"},Tie={BeExecuted:"To Do",InProcess:"In Progress",OnReview:"In Review",Done:"Done",Closed:"Closed"},Eie={0:"Inactive",1:"Active",2:"To Do",3:"In Progress",4:"Done",5:"Closed",6:"Custom",7:"In Review","-1":"Deleted"},kie={1:"Urgent",2:"High",3:"Medium",4:"Low",5:"Minimal"},Mie={0:"View only",4:"Edit",512:"Full access"},jie={Title:"Title",Description:"Description",Priority:"Priority",StartDate:"Start date",EndDate:"End date",DueDate:"Due date",Performers_one:"Assignee",Performers:"Assignees",Labels_one:"Tag",Labels:"Tags",Status:"Status",SprintId:"Task",TypeId:"Task type",Subtask:"Subtask"},Die={create:"created",move:"moved",add:"added",link:"linked",linkTo:"to",unlink:"unlinked",unlinkFrom:"from",edit:"edited",remove:"removed",cloned:"duplicated",addedSubtask:"added",deletedSubtask:"deleted"},Aie={external_one:"*The custom field is missing in this project.<br/>Add the field to the project and set the same parameters.",external_few:"*Custom fields are missing in this project.<br/>Add the fields to the project and set the same parameters.",external_many:"*Custom fields are missing in this project.<br/>Add the fields to the project and set the same parameters."},Rie={comment_one:"Comment",comment_few:"Comments",comment_many:"Comments",minComment:"The comment must contain at least {{count}} characters",maxComment:"The comment must contain no more than {{count}} characters",commentPlaceholder:"Add a comment...",draftComment:"You have an unsent comment",typeTitle:"Show:",empty:"Empty",edit:"(edited)",typeOptions:{all:"All",comments:"Comments",history:"History",attach:"Attachment",task:"Task"}},Oie={title:"Attachments",description:"Drag files here or click to select files",hint:"Maximum file size per file is 100MB",chooseList:"Select list view",chooseStrip:"Select strip view",invalidType:"Unsupported type for the following files:",invalidSize:"File size too large for the following files:",maxFiles:"Please upload no more than {{count}} files at a time.",maxSize:"File too large:"},Pie={title:"Custom fields"},Nie={placeholder:"Not Selected",action:{add:"Add tag"}},Iie={title:"Delete custom field",description:"Are you sure you want to delete the field: <b>{{title}}</b>?"},$ie={title:"Delete option",description:"Are you sure you want to delete the option: <b>{{title}}</b>?"},Lie={title:"Delete task",description:"Are you sure you want to delete the task: <b>{{title}}</b>?"},Fie={title:"Close task",description:"You have unsaved changes. Closing now will discard them."},zie={title:"Delete folder",confirm:"Are you sure you want to delete the folder: <b>{{folder}}</b>?"},Uie={title:"Delete project",confirm:'Enter "{{project}}" to confirm',description:"All folders, sprints, and tasks associated with the project will also be deleted."},Bie={title:"Delete task list",confirm:"Are you sure you want to delete the task list: <b>{{sprint}}</b>?"},Hie={title:"Delete comment",description:"Once deleted, it will be permanently removed"},qie={title:"Delete all",confirm:"Are you sure you want to delete all files?"},Vie={title:"Remove link to {{task}}",description:"You will be able to add it again later if needed."},Yie={title:"Move subtask",description:"The task will lose its parent link"},Gie={title:"Create task",error:{title:"Enter the task title",type:"Select a task type",sprint:"Select a task list",status:"Select a status"},action:{open:"Open task",create:"Create task",createSub:"Create subtask",createLinkTask:"Create linked task",attach:"Attach files",addLink:"Link tasks",addSubtask:"Add subtasks",backToParent:"Back to parent task"},fields:{title:{label:"Task title",placeholder:"Task title",shortPlaceholder:"Title",tooltip:"Edit task title"},description:{title:"Description",placeholder:"Add a description"},performer:{label:"Performers",placeholder:"Select performer",description:"Assign to me",search:"Search",contacts:"Contacts",action:{clear:"Remove all",submit:"Apply"}},priority:{label:"Priority",placeholder:"Select priority"},sprint:{label:"Task list",placeholder:"Select task list"},status:{label:"Status",placeholder:"Select status",description:"You must first select a task list."},type:{label:"Task type",placeholder:"Select type",description:"You must first select a task list.",options:{task:"Task",bug:"Bug",milestone:"Milestone"}}},taskCount:"(Tasks: {{count}})",taskList:"Task list",subtasks:"Subtasks",subtask:"{{count}} subtask",subtask_plural:"{{count}} subtasks",subtask_plural_5:"{{count}} subtasks",activity:"Activity",linkedTasks:"Linked tasks",maxSize:"Size limit exceeded",isSubtask:"This task is a subtask"},Wie={title:"Task details",performer:"Assignee",author:"Author",priority:"Priority",tags:"Tags"},Qie={title:"Filters",add:"Add filter",reset:"Reset all filters",deleteAll:"Delete all",placeholder:"Select a filter",apply:"Apply",empty:"No values available",noMoreTypes:"All filters are already added",types:"Task type",statuses:"Status",priorities:"Priority",performers:"Assignee",authors:"Author",search:"Search",contacts:"All contacts",selectAll:"Select all",deselectAll:"Deselect all",valueLabel:{types:"Select task types",statuses:"Select statuses",priorities:"Select priorities",performers:"Select assignees",authors:"Select authors"},allValue:{type:"All task types",status:"All statuses",priority:"All priorities",performer:"All assignees",author:"All authors"},valuePlural:{type:"Task types",status:"Statuses",priority:"Priorities",performer:"Contacts",author:"Contacts"}},Kie={title:"Grouping",placeholder:"Select",orderPlaceholder:"Order",addSubgroup:"Add subgroup",type:"Task type",priority:"Priority",status:"Status",performer:"Assignee",author:"Author",ascending:"Ascending",descending:"Descending"},Xie={title:"Sorting",placeholder:"Select",orderPlaceholder:"Order",type:"Task type",priority:"Priority",status:"Status",performer:"Assignee",author:"Author",ascending:"Ascending",descending:"Descending"},Zie={title:"View",columns:{name:"Title",status:"Status",priority:"Priority",performer:"Assignee"},invalidBar:"Click to schedule",units:{day:"Day",week:"Week",month:"Month",quarter:"Quarter",year:"Year"}},Jie={title:"Different statuses",description:"Task lists have different statuses, please select a new one",current:"Current status",new:"New status",choose:"Choose status"},eae={copy:"Copy link",copyWithKey:"Copy ({{key}})",copied:"Link copied",keyCopied:"Key copied"},tae={list:"List",kanban:"Board",timeline:"Gantt chart"},nae={day:"d",today:"Today",month:"m",days:"d",week:"w",year:"Year",majorFormat:{day:"MMMM YYYY",week:"MMMM YYYY",year:"YYYY",month:"YYYY",quarter:"YYYY"},minorFormat:{day:"D",week:"wo [week]",year:"YYYY-",month:"MMMM",quarter:"[Quarter] Q"},quarter:"Quarter",secondHalf:"Second half",firstHalf:"First half"},rae={Id:"No.",Key:"Key",Url:"Link",Title:"Title",Description:"Description",Status:"Status",Performer:"Performer",Author:"Author",Type:"Type",DueDate:"Due date",TimeSpent:"Time spent",TimeLeft:"Time left",Priority:"Priority",Sprint:"Sprint",Estimated:"Estimate",StartDate:"Start date",EndDate:"End date"},oae={tabs:{root:"Settings",fields:"Visible fields",export:"Export tasks"},fieldGroups:{visible:"Visible",hidden:"Hidden"},fields:{type:"Type",code:"Code",name:"Name",status:"Status",priority:"Priority",performer:"Performer",startDate:"Start date",dueDate:"Due date"}},sae={success:{deleteUser:"User successfully deleted",addUser_one:"User successfully added",addUser_few:"Users successfully added",addUser_many:"Users successfully added",editAccess:"Access rights updated",moveTask_one:"Task moved to <b>{{location}}</b>",moveTask_other:"Tasks moved to <b>{{location}}</b>",deleteTask_one:"Task has been deleted",deleteTask_other:"Tasks has been deleted",createTask:"Task successfully created!",editTask:"Task successfully updated",editLinks:"Links successfully updated",createProject:"Project created successfully",createFolder:"Folder created successfully",createSprint:"Task list created successfully",editProject:"Project updated successfully",editFolder:"Folder updated successfully",editSprint:"Task list updated successfully",leaveProject:"You have left the project",deleteFolder:"Folder was deleted",deleteProject:'Project "{{project}}" was deleted',deleteSprint:"Task list was deleted",addComment:"Comment was added",deleteComment:"Comment was deleted",addFile_one:"File was successfully added",addFile_few:"Files were successfully added",addFile_many:"Files were successfully added",linkTask:"Tasks successfully linked",deleteLink:"Link has been deleted",deleteSubTask:"Subtask has been deleted",deleteFiles:"Files were deleted",deleteTrashEl:"Element has been deleted.",deleteTrashElements:"Elements have been deleted.",restoreTrashEl:"Element has been restored.",restoreTrashElements:"Elements have been restored.",downloadFile:"Download completed.",linkDeleted:"Link successfully deleted",duplicateTask:"Task has been duplicated.",copyTask:"Task link copied.",archiveProject:"Project successfully archived",archiveFolder:"Folder successfully archived",archiveSprint:"List successfully archived",archiveTask:"Task successfully archived",unarchiveProject:"Project successfully unarchived",unarchiveFolder:"Folder successfully unarchived",unarchiveSprint:"List successfully unarchived",unarchiveTask:"Task successfully unarchived"},error:{getStatuses:"Failed to load task statuses",getStatusesExtended:"Failed to load task statuses. Check list settings or try again later.",getDefaultStatuses:"Failed to load default statuses",deleteUser:"Failed to delete user",getUsers:"Failed to load user list",editAccess:"Failed to change access rights",editTask:"Failed to edit task",editTasksOrder:"Failed to change task order",getTaskTypes:"Failed to load task types",moveTask_one:"Failed to move task",moveTask_other:"Failed to move tasks",deleteTask:"Deletion failed",createTask:"Failed to create task",createProject:"Failed to create project",createFolder:"Failed to create folder",createSprint:"Failed to create task list",dueDateBeforeStartDate:"Due date cannot be earlier than start date",startDateAfterDueDate:"Start date cannot be later than due date",editProject:"Failed to update project",editFolder:"Failed to update folder",editSprint:"Failed to update task list",leaveProject:"Failed to leave the project",getFile:"Failed to load file",collectionAlreadyExists:"A collection with this name already exists",unexpected:"Sorry, an unexpected error occurred...",deleteFolder:"Failed to delete folder",deleteProject:'Failed to delete project "{{project}}"',getSprint:"Failed to load task list",getLinks:"Failed to load task links",deleteSprint:"Failed to delete task list",searchTask:"Error searching tasks",upload:"Upload error",addComment:"Failed to add comment",deleteComment:"Failed to delete comment",linkTask:"Failed to link tasks",deleteLink:"Failed to delete link",deleteSubTask:"Failed to remove subtask",deleteFiles:"Failed to delete files",deleteTrashEl:"Failed to delete element.",restoreTrashEl:"Failed to restore element.",downloadFile:"Failed to download file.",linkDeleted:"Link was not deleted, please try again!",duplicateTask:"Failed to duplicate task.",copyTask:"Failed to copy task link.",archiveProject:"Failed to archive Project",archiveFolder:"Failed to archive Folder",archiveSprint:"Failed to archive List",archiveTask:"Failed to archive Task",unarchiveProject:"Failed to unarchive Project",unarchiveFolder:"Failed to unarchive Folder",unarchiveSprint:"Failed to unarchive List",unarchiveTask:"Failed to unarchive Task"},progress:{downloadFile:"Download in progress."}},iae={404:{title:"Something went wrong",description:"{{entity}} you are trying to access does not exist. You may have mistyped the address or it has been moved to another URL.",goBack:"Go back",goHome:"Go to homepage",entities:{page:"Page",task:"Task"}},406:{title:"You do not have access to this project",description:"Please contact the administrator for access.",goHome:"Return to home"},500:{title:"Something went wrong",description:"Please try reloading the page or check back later.",reload:"Reload page"},appName:oie,common:sie,enum:{statusType:{1:"Active",2:"Not Started",4:"Completed",5:"Closed",7:"Not Started"}},placeholder:iie,modals:aie,forms:lie,currentUser:cie,members:uie,auth:die,entitySettings:fie,trashPage:hie,archived:pie,nodata:mie,shortcuts:gie,sidebar:yie,footer:vie,updates:bie,userMenu:Sie,dates:wie,taskTypes:xie,taskLinkTypesDescription:Cie,taskLinkTypes:_ie,taskStatuses:Tie,taskStatusTypes:Eie,taskPriorities:kie,userRoles:Mie,taskActivity:jie,taskAction:Die,taskAttributes:Aie,activities:Rie,attachments:Oie,customFields:Pie,tags:Nie,removeAttribute:Iie,removeAttributeOption:$ie,removeTaskModal:Lie,closeUnsavedTaskModal:Fie,removeFolder:zie,removeProject:Uie,removeSprint:Bie,removeComment:Hie,removeFiles:qie,removeLink:Vie,moveSubtask:Yie,createTask:Gie,taskDetails:Wie,sprintFilters:Qie,sprintGrouping:Kie,sprintSorting:Xie,timelineSettings:Zie,diffStatus:Jie,copyButton:eae,sprintView:tae,gantt:nae,exportSprintFields:rae,sprintViewSettings:oae,notification:sae},aae={R7:"Р7-Проекты",CRUDOC:"Projects"},lae={title:"Р7-Проекты",nodata:"Нет данных",action:{update:"Обновить",cancel:"Отмена",loadMore:"Загрузить ещё...",disable:"Отключить",add:"Добавить",change:"Изменить",edit:"Редактировать",export:"Экспорт",delete:"Удалить",deleteAll:"Удалить все",save:"Сохранить",create:"Создать",close:"Закрыть",next:"Далее",leave:"Покинуть",download:"Скачать",downloadAll:"Скачать все",upload:"Загрузить",search:"Поиск...",searchTask:"Поиск по задачам...",backToHome:"Вернуться на главную",move:"Переместить",link:"Связать",clear:"Очистить",assign:"Назначить",duplicate:"Дублировать",copy:"Копировать",archive:"Архивировать",unarchive:"Разархивировать",archived:"Архивированные",addColumn:"Добавить столбец",addRow:"Добавить строку",pasteColumnRight:"Вставить столбец справа",pasteColumnLeft:"Вставить столбец слева",pasteRowAbove:"Вставить строку выше",pasteRowBelow:"Вставить строку ниже",deleteColumn:"Удалить столбец",deleteRow:"Удалить строку",deleteTable:"Удалить таблицу",createProject:"Создать проект",changePerformer:"Изменить исполнителя",changeStatus:"Изменить статус",addCollectionEntities:"Добавить столбцы и строки"},titles:{taskName:"Название задачи",emptyCollection:"Коллекция пуста",collectionMembers:"Участники коллекции"},description:{unsavedChanges:"У вас остались несохраненные изменения. При закрытии вы их потеряете."},labels:{addCollectionEntities:"Добавьте значения столбцов и строк",collectionValueWasDeleted:"*Значения из коллекции были удалены"},actionsLabel:"Действия",inDev:"🚧 В разработке",loading:"Загрузка...",ago:"назад"},cae={searchCollection:"Поиск по коллекции...",pickValue:"Не выбрано значение",date:"ДД.ММ.ГГГГ",searchMembers:"Поиск по участникам..."},uae={duplicateTaskModal:{title:"Дублирование задачи",actions:{duplicate:"Дублировать"}},createCollection:{title:"Создание коллекции"},editCollection:{title:"Настройки коллекции"},deleteCollection:{title:"Удалить коллекцию",description:"Вы действительно хотите удалить коллекцию: <b>{{displayName}}</b>?"},deleteCollectionColumn:{title:"Удалить столбец",description:"Вы действительно хотите удалить столбец: <b>{{displayName}}</b>?"},createCollectionColumn:{title:"Настройки столбца: {{type}}"},deleteTasks:{title:"Удалить задачи",description_one:"Вы действительно хотите переместить {{count}} задачу в корзину?",description_few:"Вы действительно хотите переместить {{count}} задачи в корзину?",description_many:"Вы действительно хотите переместить {{count}} задач в корзину?",description_other:"Вы действительно хотите переместить {{count}} задач в корзину?"},deleteTasksWithChildren:{description:"Удалить выбранные задачи?<br>Все подзадачи также будут перемещены в корзину."}},dae={duplicateTaskForm:{fields:{title:"Название новой задачи",location:"Выбор месторасположения"},errors:{hasLength:{title:"Название задачи должно содержать от 1 до 255 символов."}}},editTypeForm:{errors:{isNotEmpty:{title:"Заполните это поле"},isUniqueName:{title:"Имена типов задач должны быть уникальными!"}}},createCollectionForm:{fields:{location:{label:"Расположение",placeholder:"Выберите проект",error:{required:"Выберите проект"}},name:{label:"Название",placeholder:"Название",error:{required:"Введите название",maxLength:"Значение не должно превышать {{count}} символов"}},column:{label:"{{count}} столбец",selectPlaceholder:"Выберите тип столбца",inputPlaceholder:"Введите название столбца",options:{text:"Текст",number:"Число",email:"E-mail",date:"Дата",phone:"Телефон"},error:{requiredType:"Выберите тип столбца",requiredName:"Введите название столбца",maxLength:"Значение не должно превышать {{count}} символов"}}}},createCollectionColumnForm:{fields:{name:{label:"Название",placeholder:"Название",error:{required:"Введите название",maxLength:"Значение не должно превышать {{count}} символов"}}}}},fae={me:"Я"},hae={title:"Участники",subtitle:"Участники проекта",inviteLink:"Пригласительные ссылки",noResults:"Результатов не найдено",noUsers:"Нет пользователей",addUser:"Добавить участника...",owner:"Владелец",links:{updateTitle:"Обновление ссылок",disableTitle:"Отключение ссылок",description:"Пользователи больше не смогут использовать старые пригласительные ссылки.",invalid:"Ссылка не действительна",invite:"Вас приглашают присоединиться к проекту «{{project}}».",alreadyInvited:"Ваш аккаунт уже присоединён к проекту «{{project}}»."},leave:{title:"Покинуть проект",description:"Вы действительно хотите покинуть проект: <b>{{project}}</b>?"},notAssigned:"Не назначен",action:{goToProject:"Перейти в проект",join:"Присоединиться"},remove:{title:"Удалить участника",confirm:"Вы действительно хотите удалить участника: <b>{{user}}</b>?"}},pae={title:"Вход",success:"Успешная авторизация!",error:"Ошибка авторизации",requiredField:"Заполните это поле",fields:{login:{label:"Логин или e-mail",placeholder:"Введите ваш логин"},password:{label:"Пароль",placeholder:"Введите ваш пароль"}}},mae={title:{create:{project:"Создание проекта",folder:"Создание папки",sprint:"Создание списка задач"},edit:{project:"Редактировать проект",folder:"Редактировать папку",sprint:"Редактировать список задач"},icon:"Иконка проекта",key:"Ключ проекта",statuses:"Статусы задач",taskTypes:"Типы задач",features:"Дополнительные опции",customFields:"Пользовательские поля",tags:"Теги"},statusSection:{title:"Статусы",newStatus:"Новый статус",addStatus:"Добавить статус",useProject:"Использовать статусы проекта",useFolder:"Использовать статусы папки",onlyForStatusGrouping:"Статусы можно добавлять только при группировке по статусу"},customFieldSection:{title:"Пользовательские поля",empty:"Пользовательские поля отсутствуют. Добавьте поле и задайте ему нужные параметры.",disabled:"Опция пользовательских полей отключена.",addField:"Добавить поле",addVariant:"Добавить вариант",enable:"Включить",type:{1:"Текст",2:"Ссылка",4:"Варианты",8:"Коллекции"}},featuresSection:{title:"Дополнительные опции"},tagSection:{title:"Теги",empty:"Теги отсутствуют.<br/>Добавьте тег и задайте ему нужные параметры.",disabled:"Опция тегов отключена.",addTag:"Добавить тег",enable:"Включить"},iconSection:{title:"Иконка",color:"Цвет"},keySection:{title:"Ключ проекта"},typeSection:{title:"Типы задач",subtitle:"{{action}} тип задач",addType:"Добавить тип"},fields:{title:{label:"Название",placeholder:"Например: Разработка, Дизайн, Аналитика"},key:{label:"Ключ проекта",placeholder:"Введите ключ проекта"},type:{label:"Название",placeholder:"Введите название"}},errors:{link:"Неверный формат ссылки",minMaxLength:"Значение должно содержать {{min}}-{{max}} символов",maxLength:"Значение не должно превышать {{count}} символов",startsWithLetter:"Первым символом должна быть буква",title:{project:"Заполните название проекта",folder:"Заполните название папки",sprint:"Заполните название списка"},key:{unique:"Этот ключ уже используется"},statuses:{required:"Заполните название статуса",uniq:"Названия должны быть уникальными"},types:"Укажите типы задач",customFields:{required:"Заполните название поля",uniq:"Названия должны быть уникальными"},tags:{required:"Заполните название тега",uniq:"Названия должны быть уникальными"}}},gae={search:"Поиск по корзине",tableColumn:{title:"Название",type:"Тип",placement:"Расположение",removeDate:"Дата удаления",author:"Кем удалена",actions:"Выбрано: {{count}}"},entityType:{project:"Проект",folder:"Папка",sprint:"Список",task:"Задача",collection:"Коллекция"},action:{cleanup:"Очистить корзину",restore:"Восстановить",delete:"Удалить"},modals:{clearTrash:{title:"Очистить корзину",description:"<div>Вы уверены, что хотите очистить корзину?</div> <div>Эти элементы будут удалены навсегда без возможности восстановления.</div>"},deleteElement:{title:"Удалить элемент",description:"<div>Вы уверены, что хотите удалить этот элемент из корзины?</div> <div>Это действие нельзя будет отменить.</div>"},deleteElements:{title:"Удалить элементы",description:"Вы уверены, что хотите удалить элементы из корзины? Это действие нельзя будет отменить."}}},yae={description:"Элемент, по этой ссылке, архивирован. Включите отображение архивов в настройках, чтобы его увидеть.",taskHeader:"Эта задача архивирована",taskDescription:"Элемент, по этой ссылке, архивирован. Включите отображение архивов в настройках, чтобы его увидеть."},vae={noname:"Без названия",emptyProject:"Проект пуст",emptyFolder:"Папка пуста",emptyYet:"Здесь пока ничего нет",notAssigned:"Не назначено",noTrash:{title:"Корзина пуста, но это временно.",description:"Здесь можно удалить окончательно или восстановить."},noProjects:{title:"У вас нет проектов",description:"Создайте проект и начните работу прямо сейчас!",action:"Создать проект"},noFoldersSprints:{description_both:"Пожалуйста, добавьте папки или списки, чтобы продолжить",description_sprint:"Пожалуйста, добавьте списки, чтобы продолжить",action_folder:"Создать папку",action_sprint:"Создать список задач"},noSprints:{title:"Списки задач не найдены"},noTasks:{title:"Упс. Здесь ничего нет.",description:"У вас нет задач"},noTasks2:{title:"В выбранном списке нет задач",description:"Выберите другой список или запланируйте текущий",action:"Добавить задачу"},noTasks3:{description:"Задач не найдено. Попробуйте изменить параметры поиска.",action:"Найти задачу"},noResults:{title:"Ничего не найдено",subtitle:"Результатов не найдено",description:"Попробуйте изменить условия или сбросить настройки фильтра.",shortDescription:"Попробуйте изменить параметры запроса.",action:"Сбросить фильтры",searchPlaceholder:"Введите поисковый запрос..."},noStatuses:{title:"Нет доступных статусов",subtitle:"Без статуса",description:"Вы можете добавить их в настройках проекта, папки или списка задач."},noTypes:{title:"Нет доступных типов задач",description:"Вы можете добавить их в настройках проекта."},noActivity:{title:"Нет активности",noComments:"Комментариев пока нет"}},bae={common:{title:"Общие",submit:"Отправить форму",theme_light:"Светлое оформление",theme_dark:"Темное оформление"},task:{title:"Действия с задачей",copyLink:"Копировать ссылку на задачу",copyKey:"Копировать ключ задачи",assignYourself:"Назначить себя исполнителем"},editor:{title:"Действия с редактором",pasteImage:"Вставить картинку"}},Sae={myTasks:"Мои задачи",whatsNew:"Что нового",trash:"Корзина",myProjects:"Мои проекты",otherProjects:"Другие проекты",action:{addProject:"Добавить проект",addFolder:"Добавить папку",addSprint:"Добавить список",addTask:"Добавить задачу",addCollection:"Добавить коллекцию"},addMenu:{project:"Проект",folder:"Папка",list:"Список",task:"Задача",collection:"Коллекция"}},wae={text:"Работает на Р7-Офис",text1:"Р7-Офис — российский кроссплатформенный пакет приложений для совместной работы с офисными документами.",text2:"Входит в единый реестр российских программ для ЭВМ и баз данных.",text3:"Доступен в облачной, локальной и мобильной версиях, поддерживает развертывание в частном облаке и ряд решений для совместной работы.",rightsReserved:"© АО «Р7». Все права защищены",moreAction:"Узнать больше на сайте"},xae={title:"Журнал обновлений",subtitle:"Обновления",action:"Посмотреть все обновления"},Cae={main:"Главная",profile:"Профиль",subscription:"Подписка",download:"Скачать",feedback:"Сообщить об ошибке",shortcuts:"Горячие клавиши",logout:"Выйти"},_ae={title:"Даты",startDate:"Дата начала",startDateShort:"Начало",dueDate:"Срок",dueDateShort:"Срок",rangePlaceholder:"Не выбраны",created:"Создана",updated:"Обновлена",today:"Сегодня",yesterday:"Вчера",daysShort:"дн."},Tae={1:"Эпик",2:"Главная задач",3:"Задача",4:"Баг",5:"Подзадача",6:"Веха",7:"Улучшение",8:"Нововведение"},Eae={0:"Связано (A) с задачей (B)",1:"Задача (A) заблокирована задачей (B)",2:"Задача (A) блокирует выполнение задачи (B)",3:"Задача (A) дублирует задачу (B)",4:"Старт задачи (A) блокирует старт задачи (B)",5:"Финиш задачи (A) блокирует финиш задачи (B)",6:"Старт задачи (A) заблокирован стартом задачи (B)",7:"Финиш задачи (A) заблокирован финишем задачи (B)",8:"Старт задачи (А) блокирует финиш задачи (В)",9:"Финиш задачи (А) заблокирован стартом задачи (В)"},kae={0:"Связана с",1:"Заблокирована",2:"Блокирует",3:"Дублирует",4:"Старт блокирует старт",5:"Финиш блокирует финиш",6:"Старт заблокирован стартом",7:"Финиш заблокирован финишем",8:"Старт блокирует финиш",9:"Финиш заблокирован стартом"},Mae={BeExecuted:"К исполнению",InProcess:"В процессе",OnReview:"На проверке",Done:"Готово",Closed:"Закрыто"},jae={0:"InActive",1:"Active",2:"К исполнению",3:"В процессе",4:"Готово",5:"Закрыто",6:"Кастомный",7:"На проверке","-1":"Удален"},Dae={1:"Срочный",2:"Высокий",3:"Средний",4:"Низкий",5:"Минимальный"},Aae={0:"Просмотр",4:"Редактирование",512:"Полный доступ"},Rae={Title:"Заголовок",Description:"Описание",Priority:"Приоритет",StartDate:"Дату начала",EndDate:"Дату окончания",DueDate:"Срок",Performers_one:"Исполнителя",Performers:"Исполнителей",Labels_one:"Тег",Labels:"Теги",Status:"Статус",SprintId:"Задачу",TypeId:"Тип задачи",Subtask:"Подзадачу"},Oae={create:"создал(а)",move:"переместил(а)",add:"добавил(а)",linkTo:"с",unlinkFrom:"от",link:"связал(а)",unlink:"отвязал(а)",edit:"изменил(а)",remove:"удалил(а)",cloned:"продублировал(а)",addedSubtask:"добавил(а)",deletedSubtask:"удалил(а)"},Pae={external_one:"*Пользовательское поле отсутствует в этом проекте.<br/>Добавьте поле в проект и задайте ему такие же параметры.",external_few:"*Пользовательские поля отсутствуют в этом проекте.<br/>Добавьте поля в проект и задайте им такие же параметры.",external_many:"*Пользовательские поля отсутствуют в этом проекте.<br/>Добавьте поля в проект и задайте им такие же параметры."},Nae={comment_one:"Комментарий",comment_few:"Комментарии",comment_many:"Комментарии",minComment:"Комментарий должен содержать не менее {{count}} символа",maxComment:"Комментарий должен содержать не более {{count}} символов",commentPlaceholder:"Добавить комментарий...",draftComment:"У вас не отправленный комментарий",typeTitle:"Показать:",empty:"Отсутствует",edit:"(изменено)",typeOptions:{all:"Все",comments:"Комментарии",history:"История",attach:"Вложение",task:"Задача"}},Iae={title:"Вложения",description:"Перетащите файлы сюда или нажмите, чтобы выбрать файлы",hint:"Максимальный размер каждого файла - 100 Мб",chooseList:"Выбрать представление «Список»",chooseStrip:"Выбрать представление «Лента»",invalidType:"Не поддерживаемый тип для следующих файлов:",invalidSize:"Слишком большой размер следующих файлов:",maxFiles:"Пожалуйста, загружайте не больше {{count}} файлов одновременно.",maxSize:"Файл слишком большой:"},$ae={title:"Пользовательские поля"},Lae={placeholder:"Не выбраны",action:{add:"Добавить тег"}},Fae={title:"Удалить пользовательское поле",description:"Вы действительно хотите удалить поле: <b>{{title}}</b>?"},zae={title:"Удалить вариант",description:"Вы действительно хотите удалить вариант: <b>{{title}}</b>?"},Uae={title:"Удалить задачу",description:"Вы действительно хотите удалить задачу: <b>{{title}}</b>?"},Bae={title:"Закрыть задачу",description:"У вас остались несохраненные изменения. При закрытии вы их потеряете."},Hae={title:"Удалить папку",confirm:"Вы действительно хотите удалить папку: <b>{{folder}}</b>?"},qae={title:"Удалить проект",confirm:'Введите "{{project}}", чтобы продолжить',description:"Все папки, списки и задачи связанные с проектом так же будут удалены."},Vae={title:"Удалить список задач",confirm:"Вы действительно хотите удалить список задач: <b>{{sprint}}</b>?"},Yae={title:"Удалить комментарий",description:"После удаления он исчезнет навсегда"},Gae={title:"Удалить все",confirm:"Вы действительно хотите удалить все файлы?"},Wae={title:"Удалить ссылку на {{task}}",description:"Позже вы снова сможете добавить ее при необходимости."},Qae={title:"Переместить подзадачу",description:"Задача потеряет связь с родителем"},Kae={title:"Создание задачи",error:{title:"Заполните название задачи",type:"Выберите тип задачи",sprint:"Выберите список задач",status:"Выберите статус"},action:{open:"Открыть задачу",create:"Создать задачу",createSub:"Создать подзадачу",createLinkTask:"Создать связующую задачу",attach:"Прикрепить вложения",addLink:"Связать задачи",addSubtask:"Добавить подзадачи",backToParent:"Вернуться к родительской задаче"},fields:{title:{label:"Название задачи",placeholder:"Название задачи",shortPlaceholder:"Название",tooltip:"Редактировать название задачи"},description:{title:"Описание",placeholder:"Добавить описание"},performer:{label:"Исполнители",placeholder:"Выбрать исполнителя",description:"Назначить себя",search:"Поиск",contacts:"Контакты",action:{clear:"Убрать все",submit:"Применить"}},priority:{label:"Приоритет",placeholder:"Выбрать приоритет"},sprint:{label:"Список",placeholder:"Выбрать список задач"},status:{label:"Статус",placeholder:"Выбрать статус",description:"Сначала необходимо выбрать список задач."},type:{label:"Тип задачи",placeholder:"Выбрать тип",description:"Сначала необходимо выбрать список задач.",options:{task:"Задача",bug:"Баг",milestone:"Веха"}}},taskCount:"(Задач: {{count}})",taskList:"Список задач",subtasks:"Подзадачи",subtask:"{{count}} Подзадача",subtask_plural:"{{count}} Подзадачи",subtask_plural_5:"{{count}} Подзадач",activity:"Активность",linkedTasks:"Связанные задачи",maxSize:"Превышен допустимый размер",isSubtask:"Задача является дочерней"},Xae={title:"Детали задачи",performer:"Исполнитель",author:"Автор",priority:"Приоритет",tags:"Теги"},Zae={title:"Фильтрация",add:"Добавить фильтр",reset:"Сбросить все фильтры",deleteAll:"Удалить все",placeholder:"Выберите фильтр",apply:"Применить",empty:"Нет доступных значений",noMoreTypes:"Все фильтры уже добавлены",types:"Тип задач",statuses:"Статус",priorities:"Приоритет",performers:"Исполнитель",authors:"Автор",search:"Поиск",contacts:"Все контакты",selectAll:"Выбрать все",deselectAll:"Убрать все",valueLabel:{types:"Выбрать тип задач",statuses:"Выбрать статусы",priorities:"Выбрать приоритеты",performers:"Выбрать исполнителей",authors:"Выбрать авторов"},allValue:{type:"Все типы задач",status:"Все статусы",priority:"Все приоритеты",performer:"Все исполнители",author:"Все авторы"},valuePlural:{type:"Типы задач",status:"Статусы",priority:"Приоритеты",performer:"Контакты",author:"Контакты"}},Jae={title:"Группировка",placeholder:"Выбрать",orderPlaceholder:"Порядок",addSubgroup:"Добавить подгруппу",type:"Тип задач",priority:"Приоритет",status:"Статус",performer:"Исполнитель",author:"Автор",ascending:"По возрастанию",descending:"По убыванию"},ele={title:"Сортировка",placeholder:"Выбрать",orderPlaceholder:"Порядок",type:"Тип задач",priority:"Приоритет",status:"Статус",performer:"Исполнитель",author:"Автор",ascending:"По возрастанию",descending:"По убыванию"},tle={title:"Вид",columns:{name:"Название",status:"Статус",priority:"Приоритет",performer:"Исполнитель"},invalidBar:"Нажмите, чтобы запланировать",units:{day:"День",week:"Неделя",month:"Месяц",quarter:"Квартал",year:"Год"}},nle={title:"Разные статусы",description:"У списков задач разные статусы, пожалуйста, выберете новый",current:"Текущий статус",new:"Новый статус",choose:"Выбрать статус"},rle={copy:"Копировать ссылку",copyWithKey:"Копировать ({{key}})",copied:"Ссылка скопирована",keyCopied:"Ключ скопирован"},ole={list:"Список",kanban:"Доска",timeline:"Диаграмма Ганта"},sle={day:"д",today:"Сегодня",month:"м",days:"д",week:"н",year:"Год",majorFormat:{day:"MMMM YYYY",week:"MMMM YYYY",year:"YYYY",month:"YYYY",quarter:"YYYY"},minorFormat:{day:"D",week:"wo [неделя]",year:"YYYY-",month:"MMMM",quarter:"[Квартал] Q"},quarter:"Квартал",secondHalf:"Второе полугодие",firstHalf:"Первое полугодие"},ile={Id:"№",Key:"Ключ",Url:"Ссылка",Title:"Заголовок",Description:"Описание",Status:"Статус",Performer:"Исполнитель",Author:"Автор",Type:"Тип",DueDate:"Срок выполнения",TimeSpent:"Затраченное время",TimeLeft:"Оставшееся время",Priority:"Приоритет",Sprint:"Спринт",Estimated:"Оценка",StartDate:"Дата начала",EndDate:"Дата окончания"},ale={tabs:{root:"Настройки",fields:"Отображаемые поля",export:"Экспорт задач"},fieldGroups:{visible:"Отображаемые",hidden:"Скрытые"},fields:{type:"Тип",code:"Код",name:"Название",status:"Статус",priority:"Приоритет",performer:"Исполнитель",startDate:"Дата начала",dueDate:"Срок"}},lle={success:{deleteUser:"Участник успешно удален",addUser_one:"Участник успешно добавлен",addUser_few:"Участники успешно добавлены",addUser_many:"Участники успешно добавлены",editAccess:"Права доступа обновлены",moveTask_one:"Задача перемещена в <b>{{location}}</b>",moveTask_few:"Задачи перемещены в <b>{{location}}</b>",moveTask_many:"Задачи перемещены в <b>{{location}}</b>",moveTask_other:"Задачи перемещены в <b>{{location}}</b>",deleteTask_one:"Задача была удалена",deleteTask:"Задачи были удалены",createTask:"Задача успешно создана!",editTask:"Задача успешно обновлена",editLinks:"Ссылки успешно обновлены",createProject:"Проект успешно создан",createFolder:"Папка успешно создана",createSprint:"Список задач успешно создан",editProject:"Проект успешно обновлен",editFolder:"Папка успешно обновлена",editSprint:"Список задач успешно обновлен",leaveProject:"Проект успешно покинут",deleteFolder:"Папка была удалена",deleteProject:'Проект "{{project}}" был удален',deleteSprint:"Список задач был удален",addComment:"Комментарий был добавлен",deleteComment:"Комментарий был удален",addFile_one:"Файл был успешно добавлен",addFile_few:"Файлы были успешно добавлены",addFile_many:"Файлы были успешно добавлены",linkTask:"Задачи успешно связаны",deleteLink:"Связь была удалена",deleteSubTask:"Подзадача была удалена",deleteFiles:"Файлы удалены",deleteTrashEl:"Элемент был удален.",deleteTrashElements:"Элементы были удалены.",restoreTrashEl:"Элемент был восстановлен.",restoreTrashElements:"Элементы были восстановлены.",duplicateTask:"Задача была продублирована.",copyTask:"Ссылка на задачу была скопирована.",archiveProject:"Проект успешно заархивирован",archiveFolder:"Папка успешно заархивирована",archiveSprint:"Список успешно заархивирован",archiveTask:"Задача успешно заархивирована",unarchiveProject:"Проект успешно разархивирован",unarchiveFolder:"Папка успешно разархивирована",unarchiveSprint:"Список успешно разархивирован",unarchiveTask:"Задача успешно разархивирована"},error:{getStatuses:"Не удалось загрузить статусы задач",getStatusesExtended:"Не удалось загрузить статусы задач. Проверьте настройки списка или попробуйте позже.",getDefaultStatuses:"Не удалось загрузить статусы по умолчанию",deleteUser:"Не удалось удалить участника",getUsers:"Не удалось загрузить список участников",editAccess:"Не удалось изменить права",editTask:"Не удалось изменить задачу",editTasksOrder:"Не удалось изменить порядок задач",getTaskTypes:"Не удалось загрузить типы задач",moveTask_one:"Не удалось переместить задачу",moveTask_few:"Не удалось переместить задачи",moveTask_many:"Не удалось переместить задачи",moveTask_other:"Не удалось переместить задачи",deleteTask:"Удаление не удалось",createTask:"Не удалось создать задачу",createProject:"Не удалось создать проект",createFolder:"Не удалось создать папку",createSprint:"Не удалось создать список задач",dueDateBeforeStartDate:"Срок выполнения не может быть раньше даты начала",startDateAfterDueDate:"Дата начала не может быть позже срока выполнения",editProject:"Не удалось обновить проект",editFolder:"Не удалось обновить папку",editSprint:"Не удалось обновить список задач",leaveProject:"Не удалось покинуть проект",getFile:"Не удалось загрузить файл",collectionAlreadyExists:"Коллекция с таким названием уже существует",unexpected:"Извините, неожиданная ошибка...",deleteFolder:"Не удалось удалить папку",deleteProject:'Не удалось удалить проект "{{project}}"',getSprint:"Не удалось загрузить список задач",getLinks:"Не удалось загрузить связи задач",deleteSprint:"Не удалось удалить список задач",searchTask:"Ошибка при поиске задач",upload:"Ошибка при загрузке",addComment:"Не удалось добавить комментарий",deleteComment:"Не удалось удалить комментарий",linkTask:"Не удалось связать задачи",deleteLink:"Не удалось удалить связь",deleteSubTask:"Не удалось удалить подзадачу",deleteFiles:"Не удалось удалить файлы",deleteTrashEl:"Не удалось удалить элемент.",restoreTrashEl:"Не удалось восстановить элемент.",downloadFile:"Не удалось скачать файл.",linkDeleted:"Связь не была удалена, попробуйте еще раз!",copyTask:"Не удалось скопировать ссылку на задачу.",duplicateTask:"Не удалось продублировать задачу.",archiveProject:"Не удалось заархивировать Проект",archiveFolder:"Не удалось заархивировать Папку",archiveSprint:"Не удалось заархивировать Список",archiveTask:"Не удалось заархивировать Задачу",unarchiveProject:"Не удалось разархивировать Проект",unarchiveFolder:"Не удалось разархивировать Папку",unarchiveSprint:"Не удалось разархивировать Список",unarchiveTask:"Не удалось разархивировать Задачу"},progress:{downloadFile:"Загрузка в процессе."}},cle={404:{title:"Что-то пошло не так",description:"{{entity}}, которую вы пытаетесь открыть, не существует. Возможно, вы ошиблись в адресе или она была перемещена на другой веб-адрес.",goBack:"Вернуться назад",goHome:"Вернуться на главную",entities:{page:"Страница",task:"Задача"}},406:{title:"У вас нет доступа к этому проекту",description:"Пожалуйста, свяжитесь с администратором для получения доступа.",goHome:"Вернуться на главную"},500:{title:"Что-то пошло не так",description:"Попробуйте перезагрузить страницу или зайдите позже.",reload:"Перезагрузить страницу"},appName:aae,common:lae,enum:{statusType:{1:"Активные",2:"Не начато",4:"Завершенные",5:"Закрытые",7:"Не начато"}},placeholder:cae,modals:uae,forms:dae,currentUser:fae,members:hae,auth:pae,entitySettings:mae,trashPage:gae,archived:yae,nodata:vae,shortcuts:bae,sidebar:Sae,footer:wae,updates:xae,userMenu:Cae,dates:_ae,taskTypes:Tae,taskLinkTypesDescription:Eae,taskLinkTypes:kae,taskStatuses:Mae,taskStatusTypes:jae,taskPriorities:Dae,userRoles:Aae,taskActivity:Rae,taskAction:Oae,taskAttributes:Pae,activities:Nae,attachments:Iae,customFields:$ae,tags:Lae,removeAttribute:Fae,removeAttributeOption:zae,removeTaskModal:Uae,closeUnsavedTaskModal:Bae,removeFolder:Hae,removeProject:qae,removeSprint:Vae,removeComment:Yae,removeFiles:Gae,removeLink:Wae,moveSubtask:Qae,createTask:Kae,taskDetails:Xae,sprintFilters:Zae,sprintGrouping:Jae,sprintSorting:ele,timelineSettings:tle,diffStatus:nle,copyButton:rle,sprintView:ole,gantt:sle,exportSprintFields:ile,sprintViewSettings:ale,notification:lle},ule={en:{translation:iae,zod:Jse},ru:{translation:cle,zod:rie}};ko.use(rq).use(Qse).init({resources:ule,lng:"ru",interpolation:{escapeValue:!1}});var O_={exports:{}},P_={};/**
 * @license React
 * react-compiler-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var PD;function dle(){if(PD)return P_;PD=1;var t=t2().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return P_.c=function(e){return t.H.useMemoCache(e)},P_}var ND;function fle(){return ND||(ND=1,O_.exports=dle()),O_.exports}var be=fle(),N_={exports:{}},I_={};/**
 * @license React
 * use-sync-external-store-with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ID;function hle(){if(ID)return I_;ID=1;var t=t2();function e(c,d){return c===d&&(c!==0||1/c===1/d)||c!==c&&d!==d}var n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,o=t.useRef,s=t.useEffect,i=t.useMemo,l=t.useDebugValue;return I_.useSyncExternalStoreWithSelector=function(c,d,f,h,p){var v=o(null);if(v.current===null){var g={hasValue:!1,value:null};v.current=g}else g=v.current;v=i(function(){function w(j){if(!_){if(_=!0,E=j,j=h(j),p!==void 0&&g.hasValue){var A=g.value;if(p(A,j))return T=A}return T=j}if(A=T,n(E,j))return A;var k=h(j);return p!==void 0&&p(A,k)?(E=j,A):(E=j,T=k)}var _=!1,E,T,M=f===void 0?null:f;return[function(){return w(d())},M===null?void 0:function(){return w(M())}]},[d,f,h,p]);var S=r(c,v[0],v[1]);return s(function(){g.hasValue=!0,g.value=S},[S]),l(S),S},I_}var $D;function ple(){return $D||($D=1,N_.exports=hle()),N_.exports}var mle=ple(),gle=D.version.startsWith("19"),yle=Symbol.for(gle?"react.transitional.element":"react.element"),vle=Symbol.for("react.portal"),ble=Symbol.for("react.fragment"),Sle=Symbol.for("react.strict_mode"),wle=Symbol.for("react.profiler"),xle=Symbol.for("react.consumer"),Cle=Symbol.for("react.context"),_L=Symbol.for("react.forward_ref"),_le=Symbol.for("react.suspense"),Tle=Symbol.for("react.suspense_list"),oE=Symbol.for("react.memo"),Ele=Symbol.for("react.lazy"),kle=_L,Mle=oE;function jle(t){if(typeof t=="object"&&t!==null){const{$$typeof:e}=t;switch(e){case yle:switch(t=t.type,t){case ble:case wle:case Sle:case _le:case Tle:return t;default:switch(t=t&&t.$$typeof,t){case Cle:case _L:case Ele:case oE:return t;case xle:return t;default:return e}}case vle:return e}}}function Dle(t){return jle(t)===oE}function Ale(t,e,n,r,{areStatesEqual:o,areOwnPropsEqual:s,areStatePropsEqual:i}){let l=!1,c,d,f,h,p;function v(E,T){return c=E,d=T,f=t(c,d),h=e(r,d),p=n(f,h,d),l=!0,p}function g(){return f=t(c,d),e.dependsOnOwnProps&&(h=e(r,d)),p=n(f,h,d),p}function S(){return t.dependsOnOwnProps&&(f=t(c,d)),e.dependsOnOwnProps&&(h=e(r,d)),p=n(f,h,d),p}function w(){const E=t(c,d),T=!i(E,f);return f=E,T&&(p=n(f,h,d)),p}function _(E,T){const M=!s(T,d),j=!o(E,c,T,d);return c=E,d=T,M&&j?g():M?S():j?w():p}return function(T,M){return l?_(T,M):v(T,M)}}function Rle(t,{initMapStateToProps:e,initMapDispatchToProps:n,initMergeProps:r,...o}){const s=e(t,o),i=n(t,o),l=r(t,o);return Ale(s,i,l,t,o)}function Ole(t,e){const n={};for(const r in t){const o=t[r];typeof o=="function"&&(n[r]=(...s)=>e(o(...s)))}return n}function V9(t){return function(n){const r=t(n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function LD(t){return t.dependsOnOwnProps?!!t.dependsOnOwnProps:t.length!==1}function TL(t,e){return function(r,{displayName:o}){const s=function(l,c){return s.dependsOnOwnProps?s.mapToProps(l,c):s.mapToProps(l,void 0)};return s.dependsOnOwnProps=!0,s.mapToProps=function(l,c){s.mapToProps=t,s.dependsOnOwnProps=LD(t);let d=s(l,c);return typeof d=="function"&&(s.mapToProps=d,s.dependsOnOwnProps=LD(d),d=s(l,c)),d},s}}function sE(t,e){return(n,r)=>{throw new Error(`Invalid value of type ${typeof t} for ${e} argument when connecting component ${r.wrappedComponentName}.`)}}function Ple(t){return t&&typeof t=="object"?V9(e=>Ole(t,e)):t?typeof t=="function"?TL(t):sE(t,"mapDispatchToProps"):V9(e=>({dispatch:e}))}function Nle(t){return t?typeof t=="function"?TL(t):sE(t,"mapStateToProps"):V9(()=>({}))}function Ile(t,e,n){return{...n,...t,...e}}function $le(t){return function(n,{displayName:r,areMergedPropsEqual:o}){let s=!1,i;return function(c,d,f){const h=t(c,d,f);return s?o(h,i)||(i=h):(s=!0,i=h),i}}}function Lle(t){return t?typeof t=="function"?$le(t):sE(t,"mergeProps"):()=>Ile}function EL(t){t()}function Fle(){let t=null,e=null;return{clear(){t=null,e=null},notify(){EL(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=t;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=e={callback:n,next:null,prev:e};return o.prev?o.prev.next=o:t=o,function(){!r||t===null||(r=!1,o.next?o.next.prev=o.prev:e=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var FD={notify(){},get:()=>[]};function kL(t,e){let n,r=FD,o=0,s=!1;function i(S){f();const w=r.subscribe(S);let _=!1;return()=>{_||(_=!0,w(),h())}}function l(){r.notify()}function c(){g.onStateChange&&g.onStateChange()}function d(){return s}function f(){o++,n||(n=e?e.addNestedSub(c):t.subscribe(c),r=Fle())}function h(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=FD)}function p(){s||(s=!0,f())}function v(){s&&(s=!1,h())}const g={addNestedSub:i,notifyNestedSubs:l,handleChangeWrapper:c,isSubscribed:d,trySubscribe:p,tryUnsubscribe:v,getListeners:()=>r};return g}var zle=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ule=zle(),Ble=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Hle=Ble(),qle=()=>Ule||Hle?D.useLayoutEffect:D.useEffect,Gw=qle();function zD(t,e){return t===e?t!==0||e!==0||1/t===1/e:t!==t&&e!==e}function Id(t,e){if(zD(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(e,n[o])||!zD(t[n[o]],e[n[o]]))return!1;return!0}var Vle={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Yle={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Gle={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ML={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Wle={[kle]:Gle,[Mle]:ML};function UD(t){return Dle(t)?ML:Wle[t.$$typeof]||Vle}var Qle=Object.defineProperty,Kle=Object.getOwnPropertyNames,BD=Object.getOwnPropertySymbols,Xle=Object.getOwnPropertyDescriptor,Zle=Object.getPrototypeOf,HD=Object.prototype;function Y9(t,e){if(typeof e!="string"){if(HD){const s=Zle(e);s&&s!==HD&&Y9(t,s)}let n=Kle(e);BD&&(n=n.concat(BD(e)));const r=UD(t),o=UD(e);for(let s=0;s<n.length;++s){const i=n[s];if(!Yle[i]&&!(o&&o[i])&&!(r&&r[i])){const l=Xle(e,i);try{Qle(t,i,l)}catch{}}}}return t}var $_=Symbol.for("react-redux-context"),L_=typeof globalThis<"u"?globalThis:{};function Jle(){if(!D.createContext)return{};const t=L_[$_]??(L_[$_]=new Map);let e=t.get(D.createContext);return e||(e=D.createContext(null),t.set(D.createContext,e)),e}var lu=Jle(),ece=[null,null];function tce(t,e,n){Gw(()=>t(...e),n)}function nce(t,e,n,r,o,s){t.current=r,n.current=!1,o.current&&(o.current=null,s())}function rce(t,e,n,r,o,s,i,l,c,d,f){if(!t)return()=>{};let h=!1,p=null;const v=()=>{if(h||!l.current)return;const S=e.getState();let w,_;try{w=r(S,o.current)}catch(E){_=E,p=E}_||(p=null),w===s.current?i.current||d():(s.current=w,c.current=w,i.current=!0,f())};return n.onStateChange=v,n.trySubscribe(),v(),()=>{if(h=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}function oce(t,e){return t===e}function sce(t,e,n,{pure:r,areStatesEqual:o=oce,areOwnPropsEqual:s=Id,areStatePropsEqual:i=Id,areMergedPropsEqual:l=Id,forwardRef:c=!1,context:d=lu}={}){const f=d,h=Nle(t),p=Ple(e),v=Lle(n),g=!!t;return w=>{const _=w.displayName||w.name||"Component",E=`Connect(${_})`,T={shouldHandleStateChanges:g,displayName:E,wrappedComponentName:_,WrappedComponent:w,initMapStateToProps:h,initMapDispatchToProps:p,initMergeProps:v,areStatesEqual:o,areStatePropsEqual:i,areOwnPropsEqual:s,areMergedPropsEqual:l};function M(k){const[R,N,I]=D.useMemo(()=>{const{reactReduxForwardedRef:we,..._e}=k;return[k.context,we,_e]},[k]),L=D.useMemo(()=>{let we=f;return R!=null&&R.Consumer,we},[R,f]),F=D.useContext(L),H=!!k.store&&!!k.store.getState&&!!k.store.dispatch,B=!!F&&!!F.store,Y=H?k.store:F.store,U=B?F.getServerState:Y.getState,q=D.useMemo(()=>Rle(Y.dispatch,T),[Y]),[z,W]=D.useMemo(()=>{if(!g)return ece;const we=kL(Y,H?void 0:F.subscription),_e=we.notifyNestedSubs.bind(we);return[we,_e]},[Y,H,F]),K=D.useMemo(()=>H?F:{...F,subscription:z},[H,F,z]),G=D.useRef(void 0),X=D.useRef(I),J=D.useRef(void 0),ne=D.useRef(!1),se=D.useRef(!1),ie=D.useRef(void 0);Gw(()=>(se.current=!0,()=>{se.current=!1}),[]);const oe=D.useMemo(()=>()=>J.current&&I===X.current?J.current:q(Y.getState(),I),[Y,I]),de=D.useMemo(()=>_e=>z?rce(g,Y,z,q,X,G,ne,se,J,W,_e):()=>{},[z]);tce(nce,[X,G,ne,I,J,W]);let pe;try{pe=D.useSyncExternalStore(de,oe,U?()=>q(U(),I):oe)}catch(we){throw ie.current&&(we.message+=`
The error may be correlated with this previous error:
${ie.current.stack}

`),we}Gw(()=>{ie.current=void 0,J.current=void 0,G.current=pe});const fe=D.useMemo(()=>D.createElement(w,{...pe,ref:N}),[N,w,pe]);return D.useMemo(()=>g?D.createElement(L.Provider,{value:K},fe):fe,[L,fe,K])}const A=D.memo(M);if(A.WrappedComponent=w,A.displayName=M.displayName=E,c){const R=D.forwardRef(function(I,L){return D.createElement(A,{...I,reactReduxForwardedRef:L})});return R.displayName=E,R.WrappedComponent=w,Y9(R,w)}return Y9(A,w)}}var gDe=sce;function ice(t){const{children:e,context:n,serverState:r,store:o}=t,s=D.useMemo(()=>{const c=kL(o);return{store:o,subscription:c,getServerState:r?()=>r:void 0}},[o,r]),i=D.useMemo(()=>o.getState(),[o]);Gw(()=>{const{subscription:c}=s;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),i!==o.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[s,i]);const l=n||lu;return D.createElement(l.Provider,{value:s},e)}var ace=ice;function iE(t=lu){return function(){return D.useContext(t)}}var jL=iE();function DL(t=lu){const e=t===lu?jL:iE(t),n=()=>{const{store:r}=e();return r};return Object.assign(n,{withTypes:()=>n}),n}var AL=DL();function lce(t=lu){const e=t===lu?AL:DL(t),n=()=>e().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var aE=lce(),cce=(t,e)=>t===e;function uce(t=lu){const e=t===lu?jL:iE(t),n=(r,o={})=>{const{equalityFn:s=cce}=typeof o=="function"?{equalityFn:o}:o,i=e(),{store:l,subscription:c,getServerState:d}=i;D.useRef(!0);const f=D.useCallback({[r.name](p){return r(p)}}[r.name],[r]),h=mle.useSyncExternalStoreWithSelector(c.addNestedSub,l.getState,d||l.getState,f,s);return D.useDebugValue(h),h};return Object.assign(n,{withTypes:()=>n}),n}var RL=uce(),dce=EL;const fce=["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],hce={...Pee,components:{Menu:{defaultProps:{keepMounted:!1},styles:{dropdown:{maxWidth:"calc(100dvw - 20px)"}}},Popover:{defaultProps:{keepMounted:!1},styles:{dropdown:{maxWidth:"calc(100dvw - 20px)"}}},Flex:{defaultProps:{align:"center",gap:8}},Modal:{defaultProps:{keepMounted:!1}},Tooltip:{defaultProps:{events:{hover:!0,focus:!1,touch:!0}},styles:{tooltip:{maxWidth:"calc(100dvw - 20px)"}}}}},pce={fontFamily:"Roboto, sans-serif",headings:{fontFamily:"Roboto, sans-serif"},colors:{r7:fce},primaryColor:"r7",defaultRadius:"sm",components:{Checkbox:{defaultProps:{radius:4}},Notification:{styles:{closeButton:{alignSelf:"flex-start",color:"var(--mantine-color-gray-6)"},description:{color:"light-dark(var(--mantine-color-gray-8), var(--mantine-color-gray-3))"},icon:{marginRight:"12px",background:"none",color:"var(--notification-color)",width:"30px",height:"30px"},root:{boxShadow:"0px 0px 1px 0px #10182833, 0px 15px 30px 0px #1018280F, 0px 2px 8px 0px #1018281A"}}},TextInput:{defaultProps:{variant:"filled",radius:4}},PasswordInput:{styles:{label:{textTransform:"uppercase",fontSize:"10px",marginBottom:"16px",fontWeight:"500"}},defaultProps:{variant:"filled"}},Textarea:{styles:{label:{textTransform:"uppercase",fontSize:"10px",marginBottom:"16px",fontWeight:"500"}},defaultProps:{variant:"filled"}},Button:{defaultProps:{radius:"4px"}},Menu:{defaultProps:{shadow:"md",radius:"md"}},Popover:{defaultProps:{shadow:"md",radius:"md"}},Flex:{defaultProps:{align:"center",gap:8}},ColorSwatch:{styles:{shadowOverlay:{display:"none"}}},Modal:{defaultProps:{radius:4,overlayProps:{backgroundOpacity:.35}},styles:{header:{marginLeft:"16px",marginRight:"16px",paddingLeft:"0",paddingRight:"0",marginBottom:"0",borderRadius:"0"},body:{paddingBottom:"16px",paddingLeft:"16px",paddingRight:"16px",paddingTop:"0"},title:{color:"light-dark(var(--mantine-color-dark-5), var(--mantine-color-text))",fontSize:"18px",fontWeight:500}}},Tooltip:{styles:{tooltip:{backgroundColor:"#000",color:"#FFF",textOverflow:"ellipsis",overflow:"hidden"}}}}},mce={},gce={CRUDOC:mce,R7:pce},yce=SY(hce,gce[dq]),vce="modulepreload",bce=function(t){return"/"+t},qD={},oo=function(e,n,r){let o=Promise.resolve();if(n&&n.length>0){let i=function(d){return Promise.all(d.map(f=>Promise.resolve(f).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),c=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));o=i(n.map(d=>{if(d=bce(d),d in qD)return;qD[d]=!0;const f=d.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${h}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":vce,f||(p.as="script"),p.crossOrigin="",p.href=d,c&&p.setAttribute("nonce",c),document.head.appendChild(p),f)return new Promise((v,g)=>{p.addEventListener("load",v),p.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${d}`)))})}))}function s(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return o.then(i=>{for(const l of i||[])l.status==="rejected"&&s(l.reason);return e().catch(s)})};function Ro(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Sce=typeof Symbol=="function"&&Symbol.observable||"@@observable",VD=Sce,F_=()=>Math.random().toString(36).substring(7).split("").join("."),wce={INIT:`@@redux/INIT${F_()}`,REPLACE:`@@redux/REPLACE${F_()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${F_()}`},Ww=wce;function Ud(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function lE(t,e,n){if(typeof t!="function")throw new Error(Ro(2));if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Ro(0));if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ro(1));return n(lE)(t,e)}let r=t,o=e,s=new Map,i=s,l=0,c=!1;function d(){i===s&&(i=new Map,s.forEach((w,_)=>{i.set(_,w)}))}function f(){if(c)throw new Error(Ro(3));return o}function h(w){if(typeof w!="function")throw new Error(Ro(4));if(c)throw new Error(Ro(5));let _=!0;d();const E=l++;return i.set(E,w),function(){if(_){if(c)throw new Error(Ro(6));_=!1,d(),i.delete(E),s=null}}}function p(w){if(!Ud(w))throw new Error(Ro(7));if(typeof w.type>"u")throw new Error(Ro(8));if(typeof w.type!="string")throw new Error(Ro(17));if(c)throw new Error(Ro(9));try{c=!0,o=r(o,w)}finally{c=!1}return(s=i).forEach(E=>{E()}),w}function v(w){if(typeof w!="function")throw new Error(Ro(10));r=w,p({type:Ww.REPLACE})}function g(){const w=h;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(Ro(11));function E(){const M=_;M.next&&M.next(f())}return E(),{unsubscribe:w(E)}},[VD](){return this}}}return p({type:Ww.INIT}),{dispatch:p,subscribe:h,getState:f,replaceReducer:v,[VD]:g}}function xce(t){Object.keys(t).forEach(e=>{const n=t[e];if(typeof n(void 0,{type:Ww.INIT})>"u")throw new Error(Ro(12));if(typeof n(void 0,{type:Ww.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ro(13))})}function OL(t){const e=Object.keys(t),n={};for(let s=0;s<e.length;s++){const i=e[s];typeof t[i]=="function"&&(n[i]=t[i])}const r=Object.keys(n);let o;try{xce(n)}catch(s){o=s}return function(i={},l){if(o)throw o;let c=!1;const d={};for(let f=0;f<r.length;f++){const h=r[f],p=n[h],v=i[h],g=p(v,l);if(typeof g>"u")throw l&&l.type,new Error(Ro(14));d[h]=g,c=c||g!==v}return c=c||r.length!==Object.keys(i).length,c?d:i}}function YD(t,e){return function(...n){return e(t.apply(this,n))}}function yDe(t,e){if(typeof t=="function")return YD(t,e);if(typeof t!="object"||t===null)throw new Error(Ro(16));const n={};for(const r in t){const o=t[r];typeof o=="function"&&(n[r]=YD(o,e))}return n}function Qw(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,n)=>(...r)=>e(n(...r)))}function Cce(...t){return e=>(n,r)=>{const o=e(n,r);let s=()=>{throw new Error(Ro(15))};const i={getState:o.getState,dispatch:(c,...d)=>s(c,...d)},l=t.map(c=>c(i));return s=Qw(...l)(o.dispatch),{...o,dispatch:s}}}function cE(t){return Ud(t)&&"type"in t&&typeof t.type=="string"}var uE=Symbol.for("immer-nothing"),fv=Symbol.for("immer-draftable"),Po=Symbol.for("immer-state");function Vo(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Fi=Object,rp=Fi.getPrototypeOf,Lv="constructor",_2="prototype",G9="configurable",Kw="enumerable",iw="writable",Fv="value",Vi=t=>!!t&&!!t[Po];function Yi(t){var e;return t?PL(t)||E2(t)||!!t[fv]||!!((e=t[Lv])!=null&&e[fv])||k2(t)||M2(t):!1}var _ce=Fi[_2][Lv].toString(),GD=new WeakMap;function PL(t){if(!t||!Y1(t))return!1;const e=rp(t);if(e===null||e===Fi[_2])return!0;const n=Fi.hasOwnProperty.call(e,Lv)&&e[Lv];if(n===Object)return!0;if(!Rh(n))return!1;let r=GD.get(n);return r===void 0&&(r=Function.toString.call(n),GD.set(n,r)),r===_ce}function Tce(t){return Vi(t)||Vo(15,t),t[Po].base_}function T2(t,e,n=!0){op(t)===0?(n?Reflect.ownKeys(t):Fi.keys(t)).forEach(o=>{e(o,t[o],t)}):t.forEach((r,o)=>e(o,r,t))}function op(t){const e=t[Po];return e?e.type_:E2(t)?1:k2(t)?2:M2(t)?3:0}var hv=(t,e,n=op(t))=>n===2?t.has(e):Fi[_2].hasOwnProperty.call(t,e),qc=(t,e,n=op(t))=>n===2?t.get(e):t[e],Xw=(t,e,n,r=op(t))=>{r===2?t.set(e,n):r===3?t.add(n):t[e]=n};function Ece(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var E2=Array.isArray,k2=t=>t instanceof Map,M2=t=>t instanceof Set,Y1=t=>typeof t=="object",Rh=t=>typeof t=="function",z_=t=>typeof t=="boolean";function kce(t){const e=+t;return Number.isInteger(e)&&String(e)===t}var Mce=t=>Y1(t)?t==null?void 0:t[Po]:null,Vc=t=>t.copy_||t.base_,dE=t=>t.modified_?t.copy_:t.base_;function W9(t,e){if(k2(t))return new Map(t);if(M2(t))return new Set(t);if(E2(t))return Array[_2].slice.call(t);const n=PL(t);if(e===!0||e==="class_only"&&!n){const r=Fi.getOwnPropertyDescriptors(t);delete r[Po];let o=Reflect.ownKeys(r);for(let s=0;s<o.length;s++){const i=o[s],l=r[i];l[iw]===!1&&(l[iw]=!0,l[G9]=!0),(l.get||l.set)&&(r[i]={[G9]:!0,[iw]:!0,[Kw]:l[Kw],[Fv]:t[i]})}return Fi.create(rp(t),r)}else{const r=rp(t);if(r!==null&&n)return{...t};const o=Fi.create(r);return Fi.assign(o,t)}}function fE(t,e=!1){return Dx(t)||Vi(t)||!Yi(t)||(op(t)>1&&Fi.defineProperties(t,{set:T3,add:T3,clear:T3,delete:T3}),Fi.freeze(t),e&&T2(t,(n,r)=>{fE(r,!0)},!1)),t}function jce(){Vo(2)}var T3={[Fv]:jce};function Dx(t){return t===null||!Y1(t)?!0:Fi.isFrozen(t)}var Zw="MapSet",Jw="Patches",WD="ArrayMethods",e4={};function sp(t){const e=e4[t];return e||Vo(0,t),e}var QD=t=>!!e4[t];function Dce(t,e){e4[t]||(e4[t]=e)}var zv,NL=()=>zv,Ace=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:QD(Zw)?sp(Zw):void 0,arrayMethodsPlugin_:QD(WD)?sp(WD):void 0});function KD(t,e){e&&(t.patchPlugin_=sp(Jw),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Q9(t){K9(t),t.drafts_.forEach(Rce),t.drafts_=null}function K9(t){t===zv&&(zv=t.parent_)}var XD=t=>zv=Ace(zv,t);function Rce(t){const e=t[Po];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function ZD(t,e){e.unfinalizedDrafts_=e.drafts_.length;const n=e.drafts_[0];if(t!==void 0&&t!==n){n[Po].modified_&&(Q9(e),Vo(4)),Yi(t)&&(t=JD(e,t));const{patchPlugin_:o}=e;o&&o.generateReplacementPatches_(n[Po].base_,t,e)}else t=JD(e,n);return Oce(e,t,!0),Q9(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==uE?t:void 0}function JD(t,e){if(Dx(e))return e;const n=e[Po];if(!n)return t4(e,t.handledSet_,t);if(!Ax(n,t))return e;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(t);LL(n,t)}return n.copy_}function Oce(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&fE(e,n)}function IL(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Ax=(t,e)=>t.scope_===e,Pce=[];function $L(t,e,n,r){const o=Vc(t),s=t.type_;if(r!==void 0&&qc(o,r,s)===e){Xw(o,r,n,s);return}if(!t.draftLocations_){const l=t.draftLocations_=new Map;T2(o,(c,d)=>{if(Vi(d)){const f=l.get(d)||[];f.push(c),l.set(d,f)}})}const i=t.draftLocations_.get(e)??Pce;for(const l of i)Xw(o,l,n,s)}function Nce(t,e,n){t.callbacks_.push(function(o){var l;const s=e;if(!s||!Ax(s,o))return;(l=o.mapSetPlugin_)==null||l.fixSetContents(s);const i=dE(s);$L(t,s.draft_??s,i,n),LL(s,o)})}function LL(t,e){var r;if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(((r=t.assigned_)==null?void 0:r.size)??0)>0)){const{patchPlugin_:o}=e;if(o){const s=o.getPath(t);s&&o.generatePatches_(t,s,e)}IL(t)}}function Ice(t,e,n){const{scope_:r}=t;if(Vi(n)){const o=n[Po];Ax(o,r)&&o.callbacks_.push(function(){aw(t);const i=dE(o);$L(t,n,i,e)})}else Yi(n)&&t.callbacks_.push(function(){const s=Vc(t);t.type_===3?s.has(n)&&t4(n,r.handledSet_,r):qc(s,e,t.type_)===n&&r.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&t4(qc(t.copy_,e,t.type_),r.handledSet_,r)})}function t4(t,e,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Vi(t)||e.has(t)||!Yi(t)||Dx(t)||(e.add(t),T2(t,(r,o)=>{if(Vi(o)){const s=o[Po];if(Ax(s,n)){const i=dE(s);Xw(t,r,i,t.type_),IL(s)}}else Yi(o)&&t4(o,e,n)})),t}function $ce(t,e){const n=E2(t),r={type_:n?1:0,scope_:e?e.scope_:NL(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=r,s=n4;n&&(o=[r],s=Uv);const{revoke:i,proxy:l}=Proxy.revocable(o,s);return r.draft_=l,r.revoke_=i,[l,r]}var n4={get(t,e){if(e===Po)return t;let n=t.scope_.arrayMethodsPlugin_;const r=t.type_===1&&typeof e=="string";if(r&&n!=null&&n.isArrayOperationMethod(e))return n.createMethodInterceptor(t,e);const o=Vc(t);if(!hv(o,e,t.type_))return Lce(t,o,e);const s=o[e];if(t.finalized_||!Yi(s)||r&&t.operationMethod&&(n!=null&&n.isMutatingArrayMethod(t.operationMethod))&&kce(e))return s;if(s===U_(t.base_,e)){aw(t);const i=t.type_===1?+e:e,l=Z9(t.scope_,s,t,i);return t.copy_[i]=l}return s},has(t,e){return e in Vc(t)},ownKeys(t){return Reflect.ownKeys(Vc(t))},set(t,e,n){const r=FL(Vc(t),e);if(r!=null&&r.set)return r.set.call(t.draft_,n),!0;if(!t.modified_){const o=U_(Vc(t),e),s=o==null?void 0:o[Po];if(s&&s.base_===n)return t.copy_[e]=n,t.assigned_.set(e,!1),!0;if(Ece(n,o)&&(n!==void 0||hv(t.base_,e,t.type_)))return!0;aw(t),X9(t)}return t.copy_[e]===n&&(n!==void 0||e in t.copy_)||Number.isNaN(n)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=n,t.assigned_.set(e,!0),Ice(t,e,n)),!0},deleteProperty(t,e){return aw(t),U_(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),X9(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){const n=Vc(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{[iw]:!0,[G9]:t.type_!==1||e!=="length",[Kw]:r[Kw],[Fv]:n[e]}},defineProperty(){Vo(11)},getPrototypeOf(t){return rp(t.base_)},setPrototypeOf(){Vo(12)}},Uv={};for(let t in n4){let e=n4[t];Uv[t]=function(){const n=arguments;return n[0]=n[0][0],e.apply(this,n)}}Uv.deleteProperty=function(t,e){return Uv.set.call(this,t,e,void 0)};Uv.set=function(t,e,n){return n4.set.call(this,t[0],e,n,t[0])};function U_(t,e){const n=t[Po];return(n?Vc(n):t)[e]}function Lce(t,e,n){var o;const r=FL(e,n);return r?Fv in r?r[Fv]:(o=r.get)==null?void 0:o.call(t.draft_):void 0}function FL(t,e){if(!(e in t))return;let n=rp(t);for(;n;){const r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=rp(n)}}function X9(t){t.modified_||(t.modified_=!0,t.parent_&&X9(t.parent_))}function aw(t){t.copy_||(t.assigned_=new Map,t.copy_=W9(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Fce=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,n,r)=>{if(Rh(e)&&!Rh(n)){const s=n;n=e;const i=this;return function(c=s,...d){return i.produce(c,f=>n.call(this,f,...d))}}Rh(n)||Vo(6),r!==void 0&&!Rh(r)&&Vo(7);let o;if(Yi(e)){const s=XD(this),i=Z9(s,e,void 0);let l=!0;try{o=n(i),l=!1}finally{l?Q9(s):K9(s)}return KD(s,r),ZD(o,s)}else if(!e||!Y1(e)){if(o=n(e),o===void 0&&(o=e),o===uE&&(o=void 0),this.autoFreeze_&&fE(o,!0),r){const s=[],i=[];sp(Jw).generateReplacementPatches_(e,o,{patches_:s,inversePatches_:i}),r(s,i)}return o}else Vo(1,e)},this.produceWithPatches=(e,n)=>{if(Rh(e))return(i,...l)=>this.produceWithPatches(i,c=>e(c,...l));let r,o;return[this.produce(e,n,(i,l)=>{r=i,o=l}),r,o]},z_(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),z_(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),z_(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Yi(t)||Vo(8),Vi(t)&&(t=zL(t));const e=XD(this),n=Z9(e,t,void 0);return n[Po].isManual_=!0,K9(e),n}finishDraft(t,e){const n=t&&t[Po];(!n||!n.isManual_)&&Vo(9);const{scope_:r}=n;return KD(r,e),ZD(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let n;for(n=e.length-1;n>=0;n--){const o=e[n];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}n>-1&&(e=e.slice(n+1));const r=sp(Jw).applyPatches_;return Vi(t)?r(t,e):this.produce(t,o=>r(o,e))}};function Z9(t,e,n,r){const[o,s]=k2(e)?sp(Zw).proxyMap_(e,n):M2(e)?sp(Zw).proxySet_(e,n):$ce(e,n);return((n==null?void 0:n.scope_)??NL()).drafts_.push(o),s.callbacks_=(n==null?void 0:n.callbacks_)??[],s.key_=r,n&&r!==void 0?Nce(n,s,r):s.callbacks_.push(function(c){var f;(f=c.mapSetPlugin_)==null||f.fixSetContents(s);const{patchPlugin_:d}=c;s.modified_&&d&&d.generatePatches_(s,[],c)}),o}function zL(t){return Vi(t)||Vo(10,t),UL(t)}function UL(t){if(!Yi(t)||Dx(t))return t;const e=t[Po];let n,r=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,n=W9(t,e.scope_.immer_.useStrictShallowCopy_),r=e.scope_.immer_.shouldUseStrictIteration()}else n=W9(t,!0);return T2(n,(o,s)=>{Xw(n,o,UL(s))},r),e&&(e.finalized_=!1),n}function zce(){function e(g,S=[]){if(g.key_!==void 0){const w=g.parent_.copy_??g.parent_.base_,_=Mce(qc(w,g.key_)),E=qc(w,g.key_);if(E===void 0||E!==g.draft_&&E!==g.base_&&E!==g.copy_||_!=null&&_.base_!==g.base_)return null;const T=g.parent_.type_===3;let M;if(T){const j=g.parent_;M=Array.from(j.drafts_.keys()).indexOf(g.key_)}else M=g.key_;if(!(T&&w.size>M||hv(w,M)))return null;S.push(M)}if(g.parent_)return e(g.parent_,S);S.reverse();try{n(g.copy_,S)}catch{return null}return S}function n(g,S){let w=g;for(let _=0;_<S.length-1;_++){const E=S[_];if(w=qc(w,E),!Y1(w)||w===null)throw new Error(`Cannot resolve path at '${S.join("/")}'`)}return w}const r="replace",o="add",s="remove";function i(g,S,w){if(g.scope_.processedForPatches_.has(g))return;g.scope_.processedForPatches_.add(g);const{patches_:_,inversePatches_:E}=w;switch(g.type_){case 0:case 2:return c(g,S,_,E);case 1:return l(g,S,_,E);case 3:return d(g,S,_,E)}}function l(g,S,w,_){let{base_:E,assigned_:T}=g,M=g.copy_;M.length<E.length&&([E,M]=[M,E],[w,_]=[_,w]);const j=g.allIndicesReassigned_===!0;for(let A=0;A<E.length;A++){const k=M[A],R=E[A];if((j||(T==null?void 0:T.get(A.toString())))&&k!==R){const I=k==null?void 0:k[Po];if(I&&I.modified_)continue;const L=S.concat([A]);w.push({op:r,path:L,value:v(k)}),_.push({op:r,path:L,value:v(R)})}}for(let A=E.length;A<M.length;A++){const k=S.concat([A]);w.push({op:o,path:k,value:v(M[A])})}for(let A=M.length-1;E.length<=A;--A){const k=S.concat([A]);_.push({op:s,path:k})}}function c(g,S,w,_){const{base_:E,copy_:T,type_:M}=g;T2(g.assigned_,(j,A)=>{const k=qc(E,j,M),R=qc(T,j,M),N=A?hv(E,j)?r:o:s;if(k===R&&N===r)return;const I=S.concat(j);w.push(N===s?{op:N,path:I}:{op:N,path:I,value:v(R)}),_.push(N===o?{op:s,path:I}:N===s?{op:o,path:I,value:v(k)}:{op:r,path:I,value:v(k)})})}function d(g,S,w,_){let{base_:E,copy_:T}=g,M=0;E.forEach(j=>{if(!T.has(j)){const A=S.concat([M]);w.push({op:s,path:A,value:j}),_.unshift({op:o,path:A,value:j})}M++}),M=0,T.forEach(j=>{if(!E.has(j)){const A=S.concat([M]);w.push({op:o,path:A,value:j}),_.unshift({op:s,path:A,value:j})}M++})}function f(g,S,w){const{patches_:_,inversePatches_:E}=w;_.push({op:r,path:[],value:S===uE?void 0:S}),E.push({op:r,path:[],value:g})}function h(g,S){return S.forEach(w=>{const{path:_,op:E}=w;let T=g;for(let k=0;k<_.length-1;k++){const R=op(T);let N=_[k];typeof N!="string"&&typeof N!="number"&&(N=""+N),(R===0||R===1)&&(N==="__proto__"||N===Lv)&&Vo(19),Rh(T)&&N===_2&&Vo(19),T=qc(T,N),Y1(T)||Vo(18,_.join("/"))}const M=op(T),j=p(w.value),A=_[_.length-1];switch(E){case r:switch(M){case 2:return T.set(A,j);case 3:Vo(16);default:return T[A]=j}case o:switch(M){case 1:return A==="-"?T.push(j):T.splice(A,0,j);case 2:return T.set(A,j);case 3:return T.add(j);default:return T[A]=j}case s:switch(M){case 1:return T.splice(A,1);case 2:return T.delete(A);case 3:return T.delete(w.value);default:return delete T[A]}default:Vo(17,E)}}),g}function p(g){if(!Yi(g))return g;if(E2(g))return g.map(p);if(k2(g))return new Map(Array.from(g.entries()).map(([w,_])=>[w,p(_)]));if(M2(g))return new Set(Array.from(g).map(p));const S=Object.create(rp(g));for(const w in g)S[w]=p(g[w]);return hv(g,fv)&&(S[fv]=g[fv]),S}function v(g){return Vi(g)?p(g):g}Dce(Jw,{applyPatches_:h,generatePatches_:i,generateReplacementPatches_:f,getPath:e})}var Bv=new Fce,j2=Bv.produce,BL=Bv.produceWithPatches.bind(Bv),eA=Bv.applyPatches.bind(Bv);function Uce(t,e=`expected a function, instead received ${typeof t}`){if(typeof t!="function")throw new TypeError(e)}function Bce(t,e=`expected an object, instead received ${typeof t}`){if(typeof t!="object")throw new TypeError(e)}function Hce(t,e="expected all items to be functions, instead received the following types: "){if(!t.every(n=>typeof n=="function")){const n=t.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${e}[${n}]`)}}var tA=t=>Array.isArray(t)?t:[t];function qce(t){const e=Array.isArray(t[0])?t[0]:t;return Hce(e,"createSelector expects all input-selectors to be functions, but received the following types: "),e}function Vce(t,e){const n=[],{length:r}=t;for(let o=0;o<r;o++)n.push(t[o].apply(null,e));return n}var Yce=class{constructor(t){this.value=t}deref(){return this.value}},Gce=typeof WeakRef<"u"?WeakRef:Yce,Wce=0,nA=1;function E3(){return{s:Wce,v:void 0,o:null,p:null}}function r4(t,e={}){let n=E3();const{resultEqualityCheck:r}=e;let o,s=0;function i(){var h;let l=n;const{length:c}=arguments;for(let p=0,v=c;p<v;p++){const g=arguments[p];if(typeof g=="function"||typeof g=="object"&&g!==null){let S=l.o;S===null&&(l.o=S=new WeakMap);const w=S.get(g);w===void 0?(l=E3(),S.set(g,l)):l=w}else{let S=l.p;S===null&&(l.p=S=new Map);const w=S.get(g);w===void 0?(l=E3(),S.set(g,l)):l=w}}const d=l;let f;if(l.s===nA)f=l.v;else if(f=t.apply(null,arguments),s++,r){const p=((h=o==null?void 0:o.deref)==null?void 0:h.call(o))??o;p!=null&&r(p,f)&&(f=p,s!==0&&s--),o=typeof f=="object"&&f!==null||typeof f=="function"?new Gce(f):f}return d.s=nA,d.v=f,f}return i.clearCache=()=>{n=E3(),i.resetResultsCount()},i.resultsCount=()=>s,i.resetResultsCount=()=>{s=0},i}function Qce(t,...e){const n=typeof t=="function"?{memoize:t,memoizeOptions:e}:t,r=(...o)=>{let s=0,i=0,l,c={},d=o.pop();typeof d=="object"&&(c=d,d=o.pop()),Uce(d,`createSelector expects an output function after the inputs, but received: [${typeof d}]`);const f={...n,...c},{memoize:h,memoizeOptions:p=[],argsMemoize:v=r4,argsMemoizeOptions:g=[]}=f,S=tA(p),w=tA(g),_=qce(o),E=h(function(){return s++,d.apply(null,arguments)},...S),T=v(function(){i++;const j=Vce(_,arguments);return l=E.apply(null,j),l},...w);return Object.assign(T,{resultFunc:d,memoizedResultFunc:E,dependencies:_,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>l,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:h,argsMemoize:v})};return Object.assign(r,{withTypes:()=>r}),r}var Rx=Qce(r4),Kce=Object.assign((t,e=Rx)=>{Bce(t,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof t}`);const n=Object.keys(t),r=n.map(s=>t[s]);return e(r,(...s)=>s.reduce((i,l,c)=>(i[n[c]]=l,i),{}))},{withTypes:()=>Kce});function HL(t){return({dispatch:n,getState:r})=>o=>s=>typeof s=="function"?s(n,r,t):o(s)}var Xce=HL(),Zce=HL,Jce=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Qw:Qw.apply(null,arguments)},eue=t=>t&&typeof t.match=="function";function $s(t,e){function n(...r){if(e){let o=e(...r);if(!o)throw new Error(fs(0));return{type:t,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:t,payload:r[0]}}return n.toString=()=>`${t}`,n.type=t,n.match=r=>cE(r)&&r.type===t,n}var qL=class ev extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,ev.prototype)}static get[Symbol.species](){return ev}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new ev(...e[0].concat(this)):new ev(...e.concat(this))}};function rA(t){return Yi(t)?j2(t,()=>{}):t}function k3(t,e,n){return t.has(e)?t.get(e):t.set(e,n(e)).get(e)}function tue(t){return typeof t=="boolean"}var nue=()=>function(e){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:s=!0}=e??{};let i=new qL;return n&&(tue(n)?i.push(Xce):i.push(Zce(n.extraArgument))),i},Ox="RTK_autoBatch",Uy=()=>t=>({payload:t,meta:{[Ox]:!0}}),oA=t=>e=>{setTimeout(e,t)},rue=(t={type:"raf"})=>e=>(...n)=>{const r=e(...n);let o=!0,s=!1,i=!1;const l=new Set,c=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:oA(10):t.type==="callback"?t.queueNotification:oA(t.timeout),d=()=>{i=!1,s&&(s=!1,l.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const h=()=>o&&f(),p=r.subscribe(h);return l.add(f),()=>{p(),l.delete(f)}},dispatch(f){var h;try{return o=!((h=f==null?void 0:f.meta)!=null&&h[Ox]),s=!o,s&&(i||(i=!0,c(d))),r.dispatch(f)}finally{o=!0}}})},oue=t=>function(n){const{autoBatch:r=!0}=n??{};let o=new qL(t);return r&&o.push(rue(typeof r=="object"?r:void 0)),o};function sue(t){const e=nue(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:s=void 0,enhancers:i=void 0}=t||{};let l;if(typeof n=="function")l=n;else if(Ud(n))l=OL(n);else throw new Error(fs(1));let c;typeof r=="function"?c=r(e):c=e();let d=Qw;o&&(d=Jce({trace:!1,...typeof o=="object"&&o}));const f=Cce(...c),h=oue(f);let p=typeof i=="function"?i(h):h();const v=d(...p);return lE(l,s,v)}function VL(t){const e={},n=[];let r;const o={addCase(s,i){const l=typeof s=="string"?s:s.type;if(!l)throw new Error(fs(28));if(l in e)throw new Error(fs(29));return e[l]=i,o},addAsyncThunk(s,i){return i.pending&&(e[s.pending.type]=i.pending),i.rejected&&(e[s.rejected.type]=i.rejected),i.fulfilled&&(e[s.fulfilled.type]=i.fulfilled),i.settled&&n.push({matcher:s.settled,reducer:i.settled}),o},addMatcher(s,i){return n.push({matcher:s,reducer:i}),o},addDefaultCase(s){return r=s,o}};return t(o),[e,n,r]}function iue(t){return typeof t=="function"}function aue(t,e){let[n,r,o]=VL(e),s;if(iue(t))s=()=>rA(t());else{const l=rA(t);s=()=>l}function i(l=s(),c){let d=[n[c.type],...r.filter(({matcher:f})=>f(c)).map(({reducer:f})=>f)];return d.filter(f=>!!f).length===0&&(d=[o]),d.reduce((f,h)=>{if(h)if(Vi(f)){const v=h(f,c);return v===void 0?f:v}else{if(Yi(f))return j2(f,p=>h(p,c));{const p=h(f,c);if(p===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return f},l)}return i.getInitialState=s,i}var YL=(t,e)=>eue(t)?t.match(e):t(e);function cu(...t){return e=>t.some(n=>YL(n,e))}function pv(...t){return e=>t.every(n=>YL(n,e))}function Px(t,e){if(!t||!t.meta)return!1;const n=typeof t.meta.requestId=="string",r=e.indexOf(t.meta.requestStatus)>-1;return n&&r}function D2(t){return typeof t[0]=="function"&&"pending"in t[0]&&"fulfilled"in t[0]&&"rejected"in t[0]}function hE(...t){return t.length===0?e=>Px(e,["pending"]):D2(t)?cu(...t.map(e=>e.pending)):hE()(t[0])}function G1(...t){return t.length===0?e=>Px(e,["rejected"]):D2(t)?cu(...t.map(e=>e.rejected)):G1()(t[0])}function Nx(...t){const e=n=>n&&n.meta&&n.meta.rejectedWithValue;return t.length===0?pv(G1(...t),e):D2(t)?pv(G1(...t),e):Nx()(t[0])}function Bd(...t){return t.length===0?e=>Px(e,["fulfilled"]):D2(t)?cu(...t.map(e=>e.fulfilled)):Bd()(t[0])}function J9(...t){return t.length===0?e=>Px(e,["pending","fulfilled","rejected"]):D2(t)?cu(...t.flatMap(e=>[e.pending,e.rejected,e.fulfilled])):J9()(t[0])}var lue="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ix=(t=21)=>{let e="",n=t;for(;n--;)e+=lue[Math.random()*64|0];return e},cue=["name","message","stack","code"],B_=class{constructor(t,e){ht(this,"_type");this.payload=t,this.meta=e}},sA=class{constructor(t,e){ht(this,"_type");this.payload=t,this.meta=e}},uue=t=>{if(typeof t=="object"&&t!==null){const e={};for(const n of cue)typeof t[n]=="string"&&(e[n]=t[n]);return e}return{message:String(t)}},iA="External signal was aborted",aA=(()=>{function t(e,n,r){const o=$s(e+"/fulfilled",(c,d,f,h)=>({payload:c,meta:{...h||{},arg:f,requestId:d,requestStatus:"fulfilled"}})),s=$s(e+"/pending",(c,d,f)=>({payload:void 0,meta:{...f||{},arg:d,requestId:c,requestStatus:"pending"}})),i=$s(e+"/rejected",(c,d,f,h,p)=>({payload:h,error:(r&&r.serializeError||uue)(c||"Rejected"),meta:{...p||{},arg:f,requestId:d,rejectedWithValue:!!h,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"}}));function l(c,{signal:d}={}){return(f,h,p)=>{const v=r!=null&&r.idGenerator?r.idGenerator(c):Ix(),g=new AbortController;let S,w;function _(T){w=T,g.abort()}d&&(d.aborted?_(iA):d.addEventListener("abort",()=>_(iA),{once:!0}));const E=(async function(){var j,A;let T;try{let k=(j=r==null?void 0:r.condition)==null?void 0:j.call(r,c,{getState:h,extra:p});if(fue(k)&&(k=await k),k===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const R=new Promise((N,I)=>{S=()=>{I({name:"AbortError",message:w||"Aborted"})},g.signal.addEventListener("abort",S,{once:!0})});f(s(v,c,(A=r==null?void 0:r.getPendingMeta)==null?void 0:A.call(r,{requestId:v,arg:c},{getState:h,extra:p}))),T=await Promise.race([R,Promise.resolve(n(c,{dispatch:f,getState:h,extra:p,requestId:v,signal:g.signal,abort:_,rejectWithValue:(N,I)=>new B_(N,I),fulfillWithValue:(N,I)=>new sA(N,I)})).then(N=>{if(N instanceof B_)throw N;return N instanceof sA?o(N.payload,v,c,N.meta):o(N,v,c)})])}catch(k){T=k instanceof B_?i(null,v,c,k.payload,k.meta):i(k,v,c)}finally{S&&g.signal.removeEventListener("abort",S)}return r&&!r.dispatchConditionRejection&&i.match(T)&&T.meta.condition||f(T),T})();return Object.assign(E,{abort:_,requestId:v,arg:c,unwrap(){return E.then(due)}})}}return Object.assign(l,{pending:s,rejected:i,fulfilled:o,settled:cu(i,o),typePrefix:e})}return t.withTypes=()=>t,t})();function due(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function fue(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var hue=Symbol.for("rtk-slice-createasyncthunk");function pue(t,e){return`${t}/${e}`}function mue({creators:t}={}){var n;const e=(n=t==null?void 0:t.asyncThunk)==null?void 0:n[hue];return function(o){const{name:s,reducerPath:i=s}=o;if(!s)throw new Error(fs(11));const l=(typeof o.reducers=="function"?o.reducers(yue()):o.reducers)||{},c=Object.keys(l),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(M,j){const A=typeof M=="string"?M:M.type;if(!A)throw new Error(fs(12));if(A in d.sliceCaseReducersByType)throw new Error(fs(13));return d.sliceCaseReducersByType[A]=j,f},addMatcher(M,j){return d.sliceMatchers.push({matcher:M,reducer:j}),f},exposeAction(M,j){return d.actionCreators[M]=j,f},exposeCaseReducer(M,j){return d.sliceCaseReducersByName[M]=j,f}};c.forEach(M=>{const j=l[M],A={reducerName:M,type:pue(s,M),createNotation:typeof o.reducers=="function"};bue(j)?wue(A,j,f,e):vue(A,j,f)});function h(){const[M={},j=[],A=void 0]=typeof o.extraReducers=="function"?VL(o.extraReducers):[o.extraReducers],k={...M,...d.sliceCaseReducersByType};return aue(o.initialState,R=>{for(let N in k)R.addCase(N,k[N]);for(let N of d.sliceMatchers)R.addMatcher(N.matcher,N.reducer);for(let N of j)R.addMatcher(N.matcher,N.reducer);A&&R.addDefaultCase(A)})}const p=M=>M,v=new Map,g=new WeakMap;let S;function w(M,j){return S||(S=h()),S(M,j)}function _(){return S||(S=h()),S.getInitialState()}function E(M,j=!1){function A(R){let N=R[M];return typeof N>"u"&&j&&(N=k3(g,A,_)),N}function k(R=p){const N=k3(v,j,()=>new WeakMap);return k3(N,R,()=>{const I={};for(const[L,F]of Object.entries(o.selectors??{}))I[L]=gue(F,R,()=>k3(g,R,_),j);return I})}return{reducerPath:M,getSelectors:k,get selectors(){return k(A)},selectSlice:A}}const T={name:s,reducer:w,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:_,...E(i),injectInto(M,{reducerPath:j,...A}={}){const k=j??i;return M.inject({reducerPath:k,reducer:w},A),{...T,...E(k,!0)}}};return T}}function gue(t,e,n,r){function o(s,...i){let l=e(s);return typeof l>"u"&&r&&(l=n()),t(l,...i)}return o.unwrapped=t,o}var Jr=mue();function yue(){function t(e,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...n}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...n){return e(...n)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:n}},asyncThunk:t}}function vue({type:t,reducerName:e,createNotation:n},r,o){let s,i;if("reducer"in r){if(n&&!Sue(r))throw new Error(fs(17));s=r.reducer,i=r.prepare}else s=r;o.addCase(t,s).exposeCaseReducer(e,s).exposeAction(e,i?$s(t,i):$s(t))}function bue(t){return t._reducerDefinitionType==="asyncThunk"}function Sue(t){return t._reducerDefinitionType==="reducerWithPrepare"}function wue({type:t,reducerName:e},n,r,o){if(!o)throw new Error(fs(18));const{payloadCreator:s,fulfilled:i,pending:l,rejected:c,settled:d,options:f}=n,h=o(t,s,f);r.exposeAction(e,h),i&&r.addCase(h.fulfilled,i),l&&r.addCase(h.pending,l),c&&r.addCase(h.rejected,c),d&&r.addMatcher(h.settled,d),r.exposeCaseReducer(e,{fulfilled:i||M3,pending:l||M3,rejected:c||M3,settled:d||M3})}function M3(){}var xue="task",GL="listener",WL="completed",pE="cancelled",Cue=`task-${pE}`,_ue=`task-${WL}`,e8=`${GL}-${pE}`,Tue=`${GL}-${WL}`,$x=class{constructor(t){ht(this,"name","TaskAbortError");ht(this,"message");this.code=t,this.message=`${xue} ${pE} (reason: ${t})`}},mE=(t,e)=>{if(typeof t!="function")throw new TypeError(fs(32))},o4=()=>{},QL=(t,e=o4)=>(t.catch(e),t),KL=(t,e)=>(t.addEventListener("abort",e,{once:!0}),()=>t.removeEventListener("abort",e)),Uh=t=>{if(t.aborted)throw new $x(t.reason)};function XL(t,e){let n=o4;return new Promise((r,o)=>{const s=()=>o(new $x(t.reason));if(t.aborted){s();return}n=KL(t,s),e.finally(()=>n()).then(r,o)}).finally(()=>{n=o4})}var Eue=async(t,e)=>{try{return await Promise.resolve(),{status:"ok",value:await t()}}catch(n){return{status:n instanceof $x?"cancelled":"rejected",error:n}}finally{e==null||e()}},s4=t=>e=>QL(XL(t,e).then(n=>(Uh(t),n))),ZL=t=>{const e=s4(t);return n=>e(new Promise(r=>setTimeout(r,n)))},{assign:A1}=Object,lA={},Lx="listenerMiddleware",kue=(t,e)=>{const n=r=>KL(t,()=>r.abort(t.reason));return(r,o)=>{mE(r);const s=new AbortController;n(s);const i=Eue(async()=>{Uh(t),Uh(s.signal);const l=await r({pause:s4(s.signal),delay:ZL(s.signal),signal:s.signal});return Uh(s.signal),l},()=>s.abort(_ue));return o!=null&&o.autoJoin&&e.push(i.catch(o4)),{result:s4(t)(i),cancel(){s.abort(Cue)}}}},Mue=(t,e)=>{const n=async(r,o)=>{Uh(e);let s=()=>{};const l=[new Promise((c,d)=>{let f=t({predicate:r,effect:(h,p)=>{p.unsubscribe(),c([h,p.getState(),p.getOriginalState()])}});s=()=>{f(),d()}})];o!=null&&l.push(new Promise(c=>setTimeout(c,o,null)));try{const c=await XL(e,Promise.race(l));return Uh(e),c}finally{s()}};return(r,o)=>QL(n(r,o))},JL=t=>{let{type:e,actionCreator:n,matcher:r,predicate:o,effect:s}=t;if(e)o=$s(e).match;else if(n)e=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(fs(21));return mE(s),{predicate:o,type:e,effect:s}},eF=A1(t=>{const{type:e,predicate:n,effect:r}=JL(t);return{id:Ix(),effect:r,type:e,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(fs(22))}}},{withTypes:()=>eF}),cA=(t,e)=>{const{type:n,effect:r,predicate:o}=JL(e);return Array.from(t.values()).find(s=>(typeof n=="string"?s.type===n:s.predicate===o)&&s.effect===r)},t8=t=>{t.pending.forEach(e=>{e.abort(e8)})},jue=(t,e)=>()=>{for(const n of e.keys())t8(n);t.clear()},uA=(t,e,n)=>{try{t(e,n)}catch(r){setTimeout(()=>{throw r},0)}},tF=A1($s(`${Lx}/add`),{withTypes:()=>tF}),Due=$s(`${Lx}/removeAll`),nF=A1($s(`${Lx}/remove`),{withTypes:()=>nF}),Aue=(...t)=>{console.error(`${Lx}/error`,...t)},Rue=(t={})=>{const e=new Map,n=new Map,r=v=>{const g=n.get(v)??0;n.set(v,g+1)},o=v=>{const g=n.get(v)??1;g===1?n.delete(v):n.set(v,g-1)},{extra:s,onError:i=Aue}=t;mE(i);const l=v=>(v.unsubscribe=()=>e.delete(v.id),e.set(v.id,v),g=>{v.unsubscribe(),g!=null&&g.cancelActive&&t8(v)}),c=v=>{const g=cA(e,v)??eF(v);return l(g)};A1(c,{withTypes:()=>c});const d=v=>{const g=cA(e,v);return g&&(g.unsubscribe(),v.cancelActive&&t8(g)),!!g};A1(d,{withTypes:()=>d});const f=async(v,g,S,w)=>{const _=new AbortController,E=Mue(c,_.signal),T=[];try{v.pending.add(_),r(v),await Promise.resolve(v.effect(g,A1({},S,{getOriginalState:w,condition:(M,j)=>E(M,j).then(Boolean),take:E,delay:ZL(_.signal),pause:s4(_.signal),extra:s,signal:_.signal,fork:kue(_.signal,T),unsubscribe:v.unsubscribe,subscribe:()=>{e.set(v.id,v)},cancelActiveListeners:()=>{v.pending.forEach((M,j,A)=>{M!==_&&(M.abort(e8),A.delete(M))})},cancel:()=>{_.abort(e8),v.pending.delete(_)},throwIfCancelled:()=>{Uh(_.signal)}})))}catch(M){M instanceof $x||uA(i,M,{raisedBy:"effect"})}finally{await Promise.all(T),_.abort(Tue),o(v),v.pending.delete(_)}},h=jue(e,n);return{middleware:v=>g=>S=>{if(!cE(S))return g(S);if(tF.match(S))return c(S.payload);if(Due.match(S)){h();return}if(nF.match(S))return d(S.payload);let w=v.getState();const _=()=>{if(w===lA)throw new Error(fs(23));return w};let E;try{if(E=g(S),e.size>0){const T=v.getState(),M=Array.from(e.values());for(const j of M){let A=!1;try{A=j.predicate(S,T,w)}catch(k){A=!1,uA(i,k,{raisedBy:"predicate"})}A&&f(j,S,v,_)}}}finally{w=lA}return E},startListening:c,stopListening:d,clearListeners:h}};function fs(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Oue=class extends Error{constructor(e){super(e[0].message);ht(this,"issues");this.name="SchemaError",this.issues=e}},ii=(t=>(t.uninitialized="uninitialized",t.pending="pending",t.fulfilled="fulfilled",t.rejected="rejected",t))(ii||{}),uu="uninitialized",n8="pending",tv="fulfilled",nv="rejected";function dA(t){return{status:t,isUninitialized:t===uu,isLoading:t===n8,isSuccess:t===tv,isError:t===nv}}var fA=Ud;function gE(t,e){if(t===e||!(fA(t)&&fA(e)||Array.isArray(t)&&Array.isArray(e)))return e;const n=Object.keys(e),r=Object.keys(t);let o=n.length===r.length;const s=Array.isArray(e)?[]:{};for(const i of n)s[i]=gE(t[i],e[i]),o&&(o=t[i]===s[i]);return o?t:s}function r8(t,e,n){return t.reduce((r,o,s)=>(e(o,s)&&r.push(n(o,s)),r),[]).flat()}function Pue(t){return new RegExp("(^|:)//").test(t)}function Nue(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}function yE(t){return t!=null}function hA(t){return[...(t==null?void 0:t.values())??[]].filter(yE)}function Iue(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}var $ue=t=>t.replace(/\/$/,""),Lue=t=>t.replace(/^\//,"");function Fue(t,e){if(!t)return e;if(!e)return t;if(Pue(e))return e;const n=t.endsWith("/")||!e.startsWith("?")?"/":"";return t=$ue(t),e=Lue(e),`${t}${n}${e}`}function i4(t,e,n){return t.has(e)?t.get(e):t.set(e,n(e)).get(e)}var o8=()=>new Map,zue=t=>{const e=new AbortController;return setTimeout(()=>{const n="signal timed out",r="TimeoutError";e.abort(typeof DOMException<"u"?new DOMException(n,r):Object.assign(new Error(n),{name:r}))},t),e.signal},Uue=(...t)=>{for(const n of t)if(n.aborted)return AbortSignal.abort(n.reason);const e=new AbortController;for(const n of t)n.addEventListener("abort",()=>e.abort(n.reason),{signal:e.signal,once:!0});return e.signal},pA=(...t)=>fetch(...t),Bue=t=>t.status>=200&&t.status<=299,Hue=t=>/ion\/(vnd\.api\+)?json/.test(t.get("content-type")||"");function mA(t){if(!Ud(t))return t;const e={...t};for(const[n,r]of Object.entries(e))r===void 0&&delete e[n];return e}var que=t=>typeof t=="object"&&(Ud(t)||Array.isArray(t)||typeof t.toJSON=="function");function Vue({baseUrl:t,prepareHeaders:e=h=>h,fetchFn:n=pA,paramsSerializer:r,isJsonContentType:o=Hue,jsonContentType:s="application/json",jsonReplacer:i,timeout:l,responseHandler:c,validateStatus:d,...f}={}){return typeof fetch>"u"&&n===pA&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(p,v,g)=>{const{getState:S,extra:w,endpoint:_,forced:E,type:T}=v;let M,{url:j,headers:A=new Headers(f.headers),params:k=void 0,responseHandler:R=c??"json",validateStatus:N=d??Bue,timeout:I=l,...L}=typeof p=="string"?{url:p}:p,F={...f,signal:I?Uue(v.signal,zue(I)):v.signal,...L};A=new Headers(mA(A)),F.headers=await e(A,{getState:S,arg:p,extra:w,endpoint:_,forced:E,type:T,extraOptions:g})||A;const H=que(F.body);if(F.body!=null&&!H&&typeof F.body!="string"&&F.headers.delete("content-type"),!F.headers.has("content-type")&&H&&F.headers.set("content-type",s),H&&o(F.headers)&&(F.body=JSON.stringify(F.body,i)),F.headers.has("accept")||(R==="json"?F.headers.set("accept","application/json"):R==="text"&&F.headers.set("accept","text/plain, text/html, */*")),k){const K=~j.indexOf("?")?"&":"?",G=r?r(k):new URLSearchParams(mA(k));j+=K+G}j=Fue(t,j);const B=new Request(j,F);M={request:new Request(j,F)};let U;try{U=await n(B)}catch(K){return{error:{status:(K instanceof Error||typeof DOMException<"u"&&K instanceof DOMException)&&K.name==="TimeoutError"?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(K)},meta:M}}const q=U.clone();M.response=q;let z,W="";try{let K;if(await Promise.all([h(U,R).then(G=>z=G,G=>K=G),q.text().then(G=>W=G,()=>{})]),K)throw K}catch(K){return{error:{status:"PARSING_ERROR",originalStatus:U.status,data:W,error:String(K)},meta:M}}return N(U,z)?{data:z,meta:M}:{error:{status:U.status,data:z},meta:M}};async function h(p,v){if(typeof v=="function")return v(p);if(v==="content-type"&&(v=o(p.headers)?"json":"text"),v==="json"){const g=await p.text();return g.length?JSON.parse(g):null}return p.text()}}var gA=class{constructor(t,e=void 0){this.value=t,this.meta=e}},Fx="__rtkq/",Yue="online",Gue="offline",rF="focused",vE=$s(`${Fx}${rF}`),oF=$s(`${Fx}un${rF}`),bE=$s(`${Fx}${Yue}`),sF=$s(`${Fx}${Gue}`),A2="query",iF="mutation",aF="infinitequery";function zx(t){return t.type===A2}function Wue(t){return t.type===iF}function Ux(t){return t.type===aF}function a4(t){return zx(t)||Ux(t)}function SE(t,e,n,r,o,s){const i=Que(t)?t(e,n,r,o):t;return i?r8(i,yE,l=>s(lF(l))):[]}function Que(t){return typeof t=="function"}function lF(t){return typeof t=="string"?{type:t}:t}function Kue(t,e){return t.catch(e)}var W1=(t,e)=>t.endpointDefinitions[e],Hv=Symbol("forceQueryFn"),s8=t=>typeof t[Hv]=="function";function Xue({serializeQueryArgs:t,queryThunk:e,infiniteQueryThunk:n,mutationThunk:r,api:o,context:s,getInternalState:i}){const l=M=>{var j;return(j=i(M))==null?void 0:j.runningQueries},c=M=>{var j;return(j=i(M))==null?void 0:j.runningMutations},{unsubscribeQueryResult:d,removeMutationResult:f,updateSubscriptionOptions:h}=o.internalActions;return{buildInitiateQuery:_,buildInitiateInfiniteQuery:E,buildInitiateMutation:T,getRunningQueryThunk:p,getRunningMutationThunk:v,getRunningQueriesThunk:g,getRunningMutationsThunk:S};function p(M,j){return A=>{var N;const k=W1(s,M),R=t({queryArgs:j,endpointDefinition:k,endpointName:M});return(N=l(A))==null?void 0:N.get(R)}}function v(M,j){return A=>{var k;return(k=c(A))==null?void 0:k.get(j)}}function g(){return M=>hA(l(M))}function S(){return M=>hA(c(M))}function w(M,j){const A=(k,{subscribe:R=!0,forceRefetch:N,subscriptionOptions:I,[Hv]:L,...F}={})=>(H,B)=>{var oe;const Y=t({queryArgs:k,endpointDefinition:j,endpointName:M});let U;const q={...F,type:A2,subscribe:R,forceRefetch:N,subscriptionOptions:I,endpointName:M,originalArgs:k,queryCacheKey:Y,[Hv]:L};if(zx(j))U=e(q);else{const{direction:de,initialPageParam:pe,refetchCachedPages:fe}=F;U=n({...q,direction:de,initialPageParam:pe,refetchCachedPages:fe})}const z=o.endpoints[M].select(k),W=H(U),K=z(B()),{requestId:G,abort:X}=W,J=K.requestId!==G,ne=(oe=l(H))==null?void 0:oe.get(Y),se=()=>z(B()),ie=Object.assign(L?W.then(se):J&&!ne?Promise.resolve(K):Promise.all([ne,W]).then(se),{arg:k,requestId:G,subscriptionOptions:I,queryCacheKey:Y,abort:X,async unwrap(){const de=await ie;if(de.isError)throw de.error;return de.data},refetch:de=>H(A(k,{subscribe:!1,forceRefetch:!0,...de})),unsubscribe(){R&&H(d({queryCacheKey:Y,requestId:G}))},updateSubscriptionOptions(de){ie.subscriptionOptions=de,H(h({endpointName:M,requestId:G,queryCacheKey:Y,options:de}))}});if(!ne&&!J&&!L){const de=l(H);de.set(Y,ie),ie.then(()=>{de.delete(Y)})}return ie};return A}function _(M,j){return w(M,j)}function E(M,j){return w(M,j)}function T(M){return(j,{track:A=!0,fixedCacheKey:k}={})=>(R,N)=>{const I=r({type:"mutation",endpointName:M,originalArgs:j,track:A,fixedCacheKey:k}),L=R(I),{requestId:F,abort:H,unwrap:B}=L,Y=Kue(L.unwrap().then(W=>({data:W})),W=>({error:W})),U=()=>{R(f({requestId:F,fixedCacheKey:k}))},q=Object.assign(Y,{arg:L.arg,requestId:F,abort:H,unwrap:B,reset:U}),z=c(R);return z.set(F,q),q.then(()=>{z.delete(F)}),k&&(z.set(k,q),q.then(()=>{z.get(k)===q&&z.delete(k)})),q}}}var cF=class extends Oue{constructor(t,e,n,r){super(t),this.value=e,this.schemaName=n,this._bqMeta=r}},xh=(t,e)=>Array.isArray(t)?t.includes(e):!!t;async function Ch(t,e,n,r){const o=await t["~standard"].validate(e);if(o.issues)throw new cF(o.issues,e,n,r);return o.value}function yA(t){return t}var By=(t={})=>({...t,[Ox]:!0});function Zue({reducerPath:t,baseQuery:e,context:{endpointDefinitions:n},serializeQueryArgs:r,api:o,assertTagType:s,selectors:i,onSchemaFailure:l,catchSchemaFailure:c,skipSchemaValidation:d}){const f=(L,F,H,B)=>(Y,U)=>{const q=n[L],z=r({queryArgs:F,endpointDefinition:q,endpointName:L});if(Y(o.internalActions.queryResultPatched({queryCacheKey:z,patches:H})),!B)return;const W=o.endpoints[L].select(F)(U()),K=SE(q.providesTags,W.data,void 0,F,{},s);Y(o.internalActions.updateProvidedBy([{queryCacheKey:z,providedTags:K}]))};function h(L,F,H=0){const B=[F,...L];return H&&B.length>H?B.slice(0,-1):B}function p(L,F,H=0){const B=[...L,F];return H&&B.length>H?B.slice(1):B}const v=(L,F,H,B=!0)=>(Y,U)=>{const z=o.endpoints[L].select(F)(U()),W={patches:[],inversePatches:[],undo:()=>Y(o.util.patchQueryData(L,F,W.inversePatches,B))};if(z.status===uu)return W;let K;if("data"in z)if(Yi(z.data)){const[G,X,J]=BL(z.data,H);W.patches.push(...X),W.inversePatches.push(...J),K=G}else K=H(z.data),W.patches.push({op:"replace",path:[],value:K}),W.inversePatches.push({op:"replace",path:[],value:z.data});return W.patches.length===0||Y(o.util.patchQueryData(L,F,W.patches,B)),W},g=(L,F,H)=>B=>B(o.endpoints[L].initiate(F,{subscribe:!1,forceRefetch:!0,[Hv]:()=>({data:H})})),S=(L,F)=>L.query&&L[F]?L[F]:yA,w=async(L,{signal:F,abort:H,rejectWithValue:B,fulfillWithValue:Y,dispatch:U,getState:q,extra:z})=>{var J,ne;const W=n[L.endpointName],{metaSchema:K,skipSchemaValidation:G=d}=W,X=L.type===A2;try{let se=yA;const ie={signal:F,abort:H,dispatch:U,getState:q,extra:z,endpoint:L.endpointName,type:L.type,forced:X?_(L,q()):void 0,queryCacheKey:X?L.queryCacheKey:void 0},oe=X?L[Hv]:void 0;let de;const pe=async(Te,we,_e,De)=>{if(we==null&&Te.pages.length)return Promise.resolve({data:Te});const Ze={queryArg:L.originalArgs,pageParam:we},ze=await fe(Ze),Xe=De?h:p;return{data:{pages:Xe(Te.pages,ze.data,_e),pageParams:Xe(Te.pageParams,we,_e)},meta:ze.meta}};async function fe(Te){let we;const{extraOptions:_e,argSchema:De,rawResponseSchema:Ze,responseSchema:ze}=W;if(De&&!xh(G,"arg")&&(Te=await Ch(De,Te,"argSchema",{})),oe?we=oe():W.query?(se=S(W,"transformResponse"),we=await e(W.query(Te),ie,_e)):we=await W.queryFn(Te,ie,_e,ot=>e(ot,ie,_e)),typeof process<"u",we.error)throw new gA(we.error,we.meta);let{data:Xe}=we;Ze&&!xh(G,"rawResponse")&&(Xe=await Ch(Ze,we.data,"rawResponseSchema",we.meta));let Ke=await se(Xe,we.meta,Te);return ze&&!xh(G,"response")&&(Ke=await Ch(ze,Ke,"responseSchema",we.meta)),{...we,data:Ke}}if(X&&"infiniteQueryOptions"in W){const{infiniteQueryOptions:Te}=W,{maxPages:we=1/0}=Te,_e=L.refetchCachedPages??Te.refetchCachedPages??!0;let De;const Ze={pages:[],pageParams:[]},ze=(J=i.selectQueryEntry(q(),L.queryCacheKey))==null?void 0:J.data,Ke=_(L,q())&&!L.direction||!ze?Ze:ze;if("direction"in L&&L.direction&&Ke.pages.length){const ot=L.direction==="backward",mt=(ot?uF:i8)(Te,Ke,L.originalArgs);De=await pe(Ke,mt,we,ot)}else{const{initialPageParam:ot=Te.initialPageParam}=L,st=(ze==null?void 0:ze.pageParams)??[],mt=st[0]??ot,bt=st.length;if(De=await pe(Ke,mt,we),oe&&(De={data:De.data.pages[0]}),_e)for(let At=1;At<bt;At++){const ct=i8(Te,De.data,L.originalArgs);De=await pe(De.data,ct,we)}}de=De}else de=await fe(L.originalArgs);return K&&!xh(G,"meta")&&de.meta&&(de.meta=await Ch(K,de.meta,"metaSchema",de.meta)),Y(de.data,By({fulfilledTimeStamp:Date.now(),baseQueryMeta:de.meta}))}catch(se){let ie=se;if(ie instanceof gA){let oe=S(W,"transformErrorResponse");const{rawErrorResponseSchema:de,errorResponseSchema:pe}=W;let{value:fe,meta:Te}=ie;try{de&&!xh(G,"rawErrorResponse")&&(fe=await Ch(de,fe,"rawErrorResponseSchema",Te)),K&&!xh(G,"meta")&&(Te=await Ch(K,Te,"metaSchema",Te));let we=await oe(fe,Te,L.originalArgs);return pe&&!xh(G,"errorResponse")&&(we=await Ch(pe,we,"errorResponseSchema",Te)),B(we,By({baseQueryMeta:Te}))}catch(we){ie=we}}try{if(ie instanceof cF){const oe={endpoint:L.endpointName,arg:L.originalArgs,type:L.type,queryCacheKey:X?L.queryCacheKey:void 0};(ne=W.onSchemaFailure)==null||ne.call(W,ie,oe),l==null||l(ie,oe);const{catchSchemaFailure:de=c}=W;if(de)return B(de(ie,oe),By({baseQueryMeta:ie._bqMeta}))}}catch(oe){ie=oe}throw console.error(ie),ie}};function _(L,F){const H=i.selectQueryEntry(F,L.queryCacheKey),B=i.selectConfig(F).refetchOnMountOrArgChange,Y=H==null?void 0:H.fulfilledTimeStamp,U=L.forceRefetch??(L.subscribe&&B);return U?U===!0||(Number(new Date)-Number(Y))/1e3>=U:!1}const E=()=>aA(`${t}/executeQuery`,w,{getPendingMeta({arg:F}){const H=n[F.endpointName];return By({startedTimeStamp:Date.now(),...Ux(H)?{direction:F.direction}:{}})},condition(F,{getState:H}){var G;const B=H(),Y=i.selectQueryEntry(B,F.queryCacheKey),U=Y==null?void 0:Y.fulfilledTimeStamp,q=F.originalArgs,z=Y==null?void 0:Y.originalArgs,W=n[F.endpointName],K=F.direction;return s8(F)?!0:(Y==null?void 0:Y.status)==="pending"?!1:_(F,B)||zx(W)&&((G=W==null?void 0:W.forceRefetch)!=null&&G.call(W,{currentArg:q,previousArg:z,endpointState:Y,state:B}))?!0:!(U&&!K)},dispatchConditionRejection:!0}),T=E(),M=E(),j=aA(`${t}/executeMutation`,w,{getPendingMeta(){return By({startedTimeStamp:Date.now()})}}),A=L=>"force"in L,k=L=>"ifOlderThan"in L,R=(L,F,H={})=>(B,Y)=>{const U=A(H)&&H.force,q=k(H)&&H.ifOlderThan,z=(K=!0)=>{const G={forceRefetch:K,subscribe:!1};return o.endpoints[L].initiate(F,G)},W=o.endpoints[L].select(F)(Y());if(U)B(z());else if(q){const K=W==null?void 0:W.fulfilledTimeStamp;if(!K){B(z());return}(Number(new Date)-Number(new Date(K)))/1e3>=q&&B(z())}else B(z(!1))};function N(L){return F=>{var H,B;return((B=(H=F==null?void 0:F.meta)==null?void 0:H.arg)==null?void 0:B.endpointName)===L}}function I(L,F){return{matchPending:pv(hE(L),N(F)),matchFulfilled:pv(Bd(L),N(F)),matchRejected:pv(G1(L),N(F))}}return{queryThunk:T,mutationThunk:j,infiniteQueryThunk:M,prefetch:R,updateQueryData:v,upsertQueryData:g,patchQueryData:f,buildMatchThunkActions:I}}function i8(t,{pages:e,pageParams:n},r){const o=e.length-1;return t.getNextPageParam(e[o],e,n[o],n,r)}function uF(t,{pages:e,pageParams:n},r){var o;return(o=t.getPreviousPageParam)==null?void 0:o.call(t,e[0],e,n[0],n,r)}function dF(t,e,n,r){return SE(n[t.meta.arg.endpointName][e],Bd(t)?t.payload:void 0,Nx(t)?t.payload:void 0,t.meta.arg.originalArgs,"baseQueryMeta"in t.meta?t.meta.baseQueryMeta:void 0,r)}function vA(t){return Vi(t)?zL(t):t}function j3(t,e,n){const r=t[e];r&&n(r)}function qv(t){return("arg"in t?t.arg.fixedCacheKey:t.fixedCacheKey)??t.requestId}function bA(t,e,n){const r=t[qv(e)];r&&n(r)}var D3={};function Jue({reducerPath:t,queryThunk:e,mutationThunk:n,serializeQueryArgs:r,context:{endpointDefinitions:o,apiUid:s,extractRehydrationInfo:i,hasRehydrationInfo:l},assertTagType:c,config:d}){const f=$s(`${t}/resetApiState`);function h(N,I,L,F){var H;N[H=I.queryCacheKey]??(N[H]={status:uu,endpointName:I.endpointName}),j3(N,I.queryCacheKey,B=>{B.status=n8,B.requestId=L&&B.requestId?B.requestId:F.requestId,I.originalArgs!==void 0&&(B.originalArgs=I.originalArgs),B.startedTimeStamp=F.startedTimeStamp;const Y=o[F.arg.endpointName];Ux(Y)&&"direction"in I&&(B.direction=I.direction)})}function p(N,I,L,F){j3(N,I.arg.queryCacheKey,H=>{if(H.requestId!==I.requestId&&!F)return;const{merge:B}=o[I.arg.endpointName];if(H.status=tv,B)if(H.data!==void 0){const{fulfilledTimeStamp:Y,arg:U,baseQueryMeta:q,requestId:z}=I;let W=j2(H.data,K=>B(K,L,{arg:U.originalArgs,baseQueryMeta:q,fulfilledTimeStamp:Y,requestId:z}));H.data=W}else H.data=L;else H.data=o[I.arg.endpointName].structuralSharing??!0?gE(Vi(H.data)?Tce(H.data):H.data,L):L;delete H.error,H.fulfilledTimeStamp=I.fulfilledTimeStamp})}const v=Jr({name:`${t}/queries`,initialState:D3,reducers:{removeQueryResult:{reducer(N,{payload:{queryCacheKey:I}}){delete N[I]},prepare:Uy()},cacheEntriesUpserted:{reducer(N,I){for(const L of I.payload){const{queryDescription:F,value:H}=L;h(N,F,!0,{arg:F,requestId:I.meta.requestId,startedTimeStamp:I.meta.timestamp}),p(N,{arg:F,requestId:I.meta.requestId,fulfilledTimeStamp:I.meta.timestamp,baseQueryMeta:{}},H,!0)}},prepare:N=>({payload:N.map(F=>{const{endpointName:H,arg:B,value:Y}=F,U=o[H];return{queryDescription:{type:A2,endpointName:H,originalArgs:F.arg,queryCacheKey:r({queryArgs:B,endpointDefinition:U,endpointName:H})},value:Y}}),meta:{[Ox]:!0,requestId:Ix(),timestamp:Date.now()}})},queryResultPatched:{reducer(N,{payload:{queryCacheKey:I,patches:L}}){j3(N,I,F=>{F.data=eA(F.data,L.concat())})},prepare:Uy()}},extraReducers(N){N.addCase(e.pending,(I,{meta:L,meta:{arg:F}})=>{const H=s8(F);h(I,F,H,L)}).addCase(e.fulfilled,(I,{meta:L,payload:F})=>{const H=s8(L.arg);p(I,L,F,H)}).addCase(e.rejected,(I,{meta:{condition:L,arg:F,requestId:H},error:B,payload:Y})=>{j3(I,F.queryCacheKey,U=>{if(!L){if(U.requestId!==H)return;U.status=nv,U.error=Y??B}})}).addMatcher(l,(I,L)=>{const{queries:F}=i(L);for(const[H,B]of Object.entries(F))((B==null?void 0:B.status)===tv||(B==null?void 0:B.status)===nv)&&(I[H]=B)})}}),g=Jr({name:`${t}/mutations`,initialState:D3,reducers:{removeMutationResult:{reducer(N,{payload:I}){const L=qv(I);L in N&&delete N[L]},prepare:Uy()}},extraReducers(N){N.addCase(n.pending,(I,{meta:L,meta:{requestId:F,arg:H,startedTimeStamp:B}})=>{H.track&&(I[qv(L)]={requestId:F,status:n8,endpointName:H.endpointName,startedTimeStamp:B})}).addCase(n.fulfilled,(I,{payload:L,meta:F})=>{F.arg.track&&bA(I,F,H=>{H.requestId===F.requestId&&(H.status=tv,H.data=L,H.fulfilledTimeStamp=F.fulfilledTimeStamp)})}).addCase(n.rejected,(I,{payload:L,error:F,meta:H})=>{H.arg.track&&bA(I,H,B=>{B.requestId===H.requestId&&(B.status=nv,B.error=L??F)})}).addMatcher(l,(I,L)=>{const{mutations:F}=i(L);for(const[H,B]of Object.entries(F))((B==null?void 0:B.status)===tv||(B==null?void 0:B.status)===nv)&&H!==(B==null?void 0:B.requestId)&&(I[H]=B)})}}),S={tags:{},keys:{}},w=Jr({name:`${t}/invalidation`,initialState:S,reducers:{updateProvidedBy:{reducer(N,I){var L,F,H;for(const{queryCacheKey:B,providedTags:Y}of I.payload){_(N,B);for(const{type:U,id:q}of Y){const z=(F=(L=N.tags)[U]??(L[U]={}))[H=q||"__internal_without_id"]??(F[H]=[]);z.includes(B)||z.push(B)}N.keys[B]=Y}},prepare:Uy()}},extraReducers(N){N.addCase(v.actions.removeQueryResult,(I,{payload:{queryCacheKey:L}})=>{_(I,L)}).addMatcher(l,(I,L)=>{var H,B,Y;const{provided:F}=i(L);for(const[U,q]of Object.entries(F.tags??{}))for(const[z,W]of Object.entries(q)){const K=(B=(H=I.tags)[U]??(H[U]={}))[Y=z||"__internal_without_id"]??(B[Y]=[]);for(const G of W)K.includes(G)||K.push(G),I.keys[G]=F.keys[G]}}).addMatcher(cu(Bd(e),Nx(e)),(I,L)=>{E(I,[L])}).addMatcher(v.actions.cacheEntriesUpserted.match,(I,L)=>{const F=L.payload.map(({queryDescription:H,value:B})=>({type:"UNKNOWN",payload:B,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:H}}));E(I,F)})}});function _(N,I){var F;const L=vA(N.keys[I]??[]);for(const H of L){const B=H.type,Y=H.id??"__internal_without_id",U=(F=N.tags[B])==null?void 0:F[Y];U&&(N.tags[B][Y]=vA(U).filter(q=>q!==I))}delete N.keys[I]}function E(N,I){const L=I.map(F=>{const H=dF(F,"providesTags",o,c),{queryCacheKey:B}=F.meta.arg;return{queryCacheKey:B,providedTags:H}});w.caseReducers.updateProvidedBy(N,w.actions.updateProvidedBy(L))}const T=Jr({name:`${t}/subscriptions`,initialState:D3,reducers:{updateSubscriptionOptions(N,I){},unsubscribeQueryResult(N,I){},internal_getRTKQSubscriptions(){}}}),M=Jr({name:`${t}/internalSubscriptions`,initialState:D3,reducers:{subscriptionsUpdated:{reducer(N,I){return eA(N,I.payload)},prepare:Uy()}}}),j=Jr({name:`${t}/config`,initialState:{online:Iue(),focused:Nue(),middlewareRegistered:!1,...d},reducers:{middlewareRegistered(N,{payload:I}){N.middlewareRegistered=N.middlewareRegistered==="conflict"||s!==I?"conflict":!0}},extraReducers:N=>{N.addCase(bE,I=>{I.online=!0}).addCase(sF,I=>{I.online=!1}).addCase(vE,I=>{I.focused=!0}).addCase(oF,I=>{I.focused=!1}).addMatcher(l,I=>({...I}))}}),A=OL({queries:v.reducer,mutations:g.reducer,provided:w.reducer,subscriptions:M.reducer,config:j.reducer}),k=(N,I)=>A(f.match(I)?void 0:N,I),R={...j.actions,...v.actions,...T.actions,...M.actions,...g.actions,...w.actions,resetApiState:f};return{reducer:k,actions:R}}var qa=Symbol.for("RTKQ/skipToken"),fF={status:uu},SA=j2(fF,()=>{}),wA=j2(fF,()=>{});function ede({serializeQueryArgs:t,reducerPath:e,createSelector:n}){const r=T=>SA,o=T=>wA;return{buildQuerySelector:p,buildInfiniteQuerySelector:v,buildMutationSelector:g,selectInvalidatedBy:S,selectCachedArgsForQuery:w,selectApiState:i,selectQueries:l,selectMutations:d,selectQueryEntry:c,selectConfig:f};function s(T){return{...T,...dA(T.status)}}function i(T){return T[e]}function l(T){var M;return(M=i(T))==null?void 0:M.queries}function c(T,M){var j;return(j=l(T))==null?void 0:j[M]}function d(T){var M;return(M=i(T))==null?void 0:M.mutations}function f(T){var M;return(M=i(T))==null?void 0:M.config}function h(T,M,j){return A=>{if(A===qa)return n(r,j);const k=t({queryArgs:A,endpointDefinition:M,endpointName:T});return n(N=>c(N,k)??SA,j)}}function p(T,M){return h(T,M,s)}function v(T,M){const{infiniteQueryOptions:j}=M;function A(k){const R={...k,...dA(k.status)},{isLoading:N,isError:I,direction:L}=R,F=L==="forward",H=L==="backward";return{...R,hasNextPage:_(j,R.data,R.originalArgs),hasPreviousPage:E(j,R.data,R.originalArgs),isFetchingNextPage:N&&F,isFetchingPreviousPage:N&&H,isFetchNextPageError:I&&F,isFetchPreviousPageError:I&&H}}return h(T,M,A)}function g(){return T=>{let M;return typeof T=="object"?M=qv(T)??qa:M=T,n(M===qa?o:k=>{var R,N;return((N=(R=i(k))==null?void 0:R.mutations)==null?void 0:N[M])??wA},s)}}function S(T,M){const j=T[e],A=new Set,k=r8(M,yE,lF);for(const R of k){const N=j.provided.tags[R.type];if(!N)continue;let I=(R.id!==void 0?N[R.id]:Object.values(N).flat())??[];for(const L of I)A.add(L)}return Array.from(A.values()).flatMap(R=>{const N=j.queries[R];return N?{queryCacheKey:R,endpointName:N.endpointName,originalArgs:N.originalArgs}:[]})}function w(T,M){return r8(Object.values(l(T)),j=>(j==null?void 0:j.endpointName)===M&&j.status!==uu,j=>j.originalArgs)}function _(T,M,j){return M?i8(T,M,j)!=null:!1}function E(T,M,j){return!M||!T.getPreviousPageParam?!1:uF(T,M,j)!=null}}var u1=WeakMap?new WeakMap:void 0,xA=({endpointName:t,queryArgs:e})=>{let n="";const r=u1==null?void 0:u1.get(e);if(typeof r=="string")n=r;else{const o=JSON.stringify(e,(s,i)=>(i=typeof i=="bigint"?{$bigint:i.toString()}:i,i=Ud(i)?Object.keys(i).sort().reduce((l,c)=>(l[c]=i[c],l),{}):i,i));Ud(e)&&(u1==null||u1.set(e,o)),n=o}return`${t}(${n})`};function hF(...t){return function(n){const r=r4(d=>{var f;return(f=n.extractRehydrationInfo)==null?void 0:f.call(n,d,{reducerPath:n.reducerPath??"api"})}),o={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...n,extractRehydrationInfo:r,serializeQueryArgs(d){let f=xA;if("serializeQueryArgs"in d.endpointDefinition){const h=d.endpointDefinition.serializeQueryArgs;f=p=>{const v=h(p);return typeof v=="string"?v:xA({...p,queryArgs:v})}}else n.serializeQueryArgs&&(f=n.serializeQueryArgs);return f(d)},tagTypes:[...n.tagTypes||[]]},s={endpointDefinitions:{},batch(d){d()},apiUid:Ix(),extractRehydrationInfo:r,hasRehydrationInfo:r4(d=>r(d)!=null)},i={injectEndpoints:c,enhanceEndpoints({addTagTypes:d,endpoints:f}){if(d)for(const h of d)o.tagTypes.includes(h)||o.tagTypes.push(h);if(f)for(const[h,p]of Object.entries(f))typeof p=="function"?p(W1(s,h)):Object.assign(W1(s,h)||{},p);return i}},l=t.map(d=>d.init(i,o,s));function c(d){const f=d.endpoints({query:h=>({...h,type:A2}),mutation:h=>({...h,type:iF}),infiniteQuery:h=>({...h,type:aF})});for(const[h,p]of Object.entries(f)){if(d.overrideExisting!==!0&&h in s.endpointDefinitions){if(d.overrideExisting==="throw")throw new Error(fs(39));continue}s.endpointDefinitions[h]=p;for(const v of l)v.injectEndpoint(h,p)}return i}return i.injectEndpoints({endpoints:n.endpoints})}}function Uc(t,...e){return Object.assign(t,...e)}var tde=({api:t,queryThunk:e,internalState:n,mwApi:r})=>{const o=`${t.reducerPath}/subscriptions`;let s=null,i=null;const{updateSubscriptionOptions:l,unsubscribeQueryResult:c}=t.internalActions,d=(S,w)=>{if(l.match(w)){const{queryCacheKey:E,requestId:T,options:M}=w.payload,j=S.get(E);return j!=null&&j.has(T)&&j.set(T,M),!0}if(c.match(w)){const{queryCacheKey:E,requestId:T}=w.payload,M=S.get(E);return M&&M.delete(T),!0}if(t.internalActions.removeQueryResult.match(w))return S.delete(w.payload.queryCacheKey),!0;if(e.pending.match(w)){const{meta:{arg:E,requestId:T}}=w,M=i4(S,E.queryCacheKey,o8);return E.subscribe&&M.set(T,E.subscriptionOptions??M.get(T)??{}),!0}let _=!1;if(e.rejected.match(w)){const{meta:{condition:E,arg:T,requestId:M}}=w;if(E&&T.subscribe){const j=i4(S,T.queryCacheKey,o8);j.set(M,T.subscriptionOptions??j.get(M)??{}),_=!0}}return _},f=()=>n.currentSubscriptions,v={getSubscriptions:f,getSubscriptionCount:S=>{const _=f().get(S);return(_==null?void 0:_.size)??0},isRequestSubscribed:(S,w)=>{var E;const _=f();return!!((E=_==null?void 0:_.get(S))!=null&&E.get(w))}};function g(S){return JSON.parse(JSON.stringify(Object.fromEntries([...S].map(([w,_])=>[w,Object.fromEntries(_)]))))}return(S,w)=>{if(s||(s=g(n.currentSubscriptions)),t.util.resetApiState.match(S))return s={},n.currentSubscriptions.clear(),i=null,[!0,!1];if(t.internalActions.internal_getRTKQSubscriptions.match(S))return[!1,v];const _=d(n.currentSubscriptions,S);let E=!0;if(_){i||(i=setTimeout(()=>{const j=g(n.currentSubscriptions),[,A]=BL(s,()=>j);w.next(t.internalActions.subscriptionsUpdated(A)),s=j,i=null},500));const T=typeof S.type=="string"&&!!S.type.startsWith(o),M=e.rejected.match(S)&&S.meta.condition&&!!S.meta.arg.subscribe;E=!T&&!M}return[E,!1]}},nde=2147483647/1e3-1,rde=({reducerPath:t,api:e,queryThunk:n,context:r,internalState:o,selectors:{selectQueryEntry:s,selectConfig:i},getRunningQueryThunk:l,mwApi:c})=>{const{removeQueryResult:d,unsubscribeQueryResult:f,cacheEntriesUpserted:h}=e.internalActions,p=cu(f.match,n.fulfilled,n.rejected,h.match);function v(T){const M=o.currentSubscriptions.get(T);return M?M.size>0:!1}const g={};function S(T){var M;for(const j of T.values())(M=j==null?void 0:j.abort)==null||M.call(j)}const w=(T,M)=>{const j=M.getState(),A=i(j);if(p(T)){let k;if(h.match(T))k=T.payload.map(R=>R.queryDescription.queryCacheKey);else{const{queryCacheKey:R}=f.match(T)?T.payload:T.meta.arg;k=[R]}_(k,M,A)}if(e.util.resetApiState.match(T)){for(const[k,R]of Object.entries(g))R&&clearTimeout(R),delete g[k];S(o.runningQueries),S(o.runningMutations)}if(r.hasRehydrationInfo(T)){const{queries:k}=r.extractRehydrationInfo(T);_(Object.keys(k),M,A)}};function _(T,M,j){const A=M.getState();for(const k of T){const R=s(A,k);R!=null&&R.endpointName&&E(k,R.endpointName,M,j)}}function E(T,M,j,A){const k=W1(r,M),R=(k==null?void 0:k.keepUnusedDataFor)??A.keepUnusedDataFor;if(R===1/0)return;const N=Math.max(0,Math.min(R,nde));if(!v(T)){const I=g[T];I&&clearTimeout(I),g[T]=setTimeout(()=>{if(!v(T)){const L=s(j.getState(),T);if(L!=null&&L.endpointName){const F=j.dispatch(l(L.endpointName,L.originalArgs));F==null||F.abort()}j.dispatch(d({queryCacheKey:T}))}delete g[T]},N*1e3)}}return w},CA=new Error("Promise never resolved before cacheEntryRemoved."),ode=({api:t,reducerPath:e,context:n,queryThunk:r,mutationThunk:o,internalState:s,selectors:{selectQueryEntry:i,selectApiState:l}})=>{const c=J9(r),d=J9(o),f=Bd(r,o),h={},{removeQueryResult:p,removeMutationResult:v,cacheEntriesUpserted:g}=t.internalActions;function S(j,A,k){const R=h[j];R!=null&&R.valueResolved&&(R.valueResolved({data:A,meta:k}),delete R.valueResolved)}function w(j){const A=h[j];A&&(delete h[j],A.cacheEntryRemoved())}function _(j){const{arg:A,requestId:k}=j.meta,{endpointName:R,originalArgs:N}=A;return[R,N,k]}const E=(j,A,k)=>{const R=T(j);function N(I,L,F,H){const B=i(k,L),Y=i(A.getState(),L);!B&&Y&&M(I,H,L,A,F)}if(r.pending.match(j)){const[I,L,F]=_(j);N(I,R,F,L)}else if(g.match(j))for(const{queryDescription:I,value:L}of j.payload){const{endpointName:F,originalArgs:H,queryCacheKey:B}=I;N(F,B,j.meta.requestId,H),S(B,L,{})}else if(o.pending.match(j)){if(A.getState()[e].mutations[R]){const[L,F,H]=_(j);M(L,F,R,A,H)}}else if(f(j))S(R,j.payload,j.meta.baseQueryMeta);else if(p.match(j)||v.match(j))w(R);else if(t.util.resetApiState.match(j))for(const I of Object.keys(h))w(I)};function T(j){return c(j)?j.meta.arg.queryCacheKey:d(j)?j.meta.arg.fixedCacheKey??j.meta.requestId:p.match(j)?j.payload.queryCacheKey:v.match(j)?qv(j.payload):""}function M(j,A,k,R,N){const I=W1(n,j),L=I==null?void 0:I.onCacheEntryAdded;if(!L)return;const F={},H=new Promise(W=>{F.cacheEntryRemoved=W}),B=Promise.race([new Promise(W=>{F.valueResolved=W}),H.then(()=>{throw CA})]);B.catch(()=>{}),h[k]=F;const Y=t.endpoints[j].select(a4(I)?A:k),U=R.dispatch((W,K,G)=>G),q={...R,getCacheEntry:()=>Y(R.getState()),requestId:N,extra:U,updateCachedData:a4(I)?W=>R.dispatch(t.util.updateQueryData(j,A,W)):void 0,cacheDataLoaded:B,cacheEntryRemoved:H},z=L(A,q);Promise.resolve(z).catch(W=>{if(W!==CA)throw W})}return E},sde=({api:t,context:{apiUid:e},reducerPath:n})=>(r,o)=>{t.util.resetApiState.match(r)&&o.dispatch(t.internalActions.middlewareRegistered(e))},ide=({reducerPath:t,context:e,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:o,api:s,assertTagType:i,refetchQuery:l,internalState:c})=>{const{removeQueryResult:d}=s.internalActions,f=cu(Bd(r),Nx(r)),h=cu(Bd(o,r),G1(o,r));let p=[],v=0;const g=(_,E)=>{(o.pending.match(_)||r.pending.match(_))&&v++,h(_)&&(v=Math.max(0,v-1)),f(_)?w(dF(_,"invalidatesTags",n,i),E):h(_)?w([],E):s.util.invalidateTags.match(_)&&w(SE(_.payload,void 0,void 0,void 0,void 0,i),E)};function S(){return v>0}function w(_,E){const T=E.getState(),M=T[t];if(p.push(..._),M.config.invalidationBehavior==="delayed"&&S())return;const j=p;if(p=[],j.length===0)return;const A=s.util.selectInvalidatedBy(T,j);e.batch(()=>{const k=Array.from(A.values());for(const{queryCacheKey:R}of k){const N=M.queries[R],I=i4(c.currentSubscriptions,R,o8);N&&(I.size===0?E.dispatch(d({queryCacheKey:R})):N.status!==uu&&E.dispatch(l(N)))}})}return g},ade=({reducerPath:t,queryThunk:e,api:n,refetchQuery:r,internalState:o})=>{const{currentPolls:s,currentSubscriptions:i}=o,l=new Set;let c=null;const d=(w,_)=>{(n.internalActions.updateSubscriptionOptions.match(w)||n.internalActions.unsubscribeQueryResult.match(w))&&f(w.payload.queryCacheKey,_),(e.pending.match(w)||e.rejected.match(w)&&w.meta.condition)&&f(w.meta.arg.queryCacheKey,_),(e.fulfilled.match(w)||e.rejected.match(w)&&!w.meta.condition)&&h(w.meta.arg,_),n.util.resetApiState.match(w)&&(g(),c&&(clearTimeout(c),c=null),l.clear())};function f(w,_){l.add(w),c||(c=setTimeout(()=>{for(const E of l)p({queryCacheKey:E},_);l.clear(),c=null},0))}function h({queryCacheKey:w},_){const E=_.getState()[t],T=E.queries[w],M=i.get(w);if(!T||T.status===uu)return;const{lowestPollingInterval:j,skipPollingIfUnfocused:A}=S(M);if(!Number.isFinite(j))return;const k=s.get(w);k!=null&&k.timeout&&(clearTimeout(k.timeout),k.timeout=void 0);const R=Date.now()+j;s.set(w,{nextPollTimestamp:R,pollingInterval:j,timeout:setTimeout(()=>{(E.config.focused||!A)&&_.dispatch(r(T)),h({queryCacheKey:w},_)},j)})}function p({queryCacheKey:w},_){const T=_.getState()[t].queries[w],M=i.get(w);if(!T||T.status===uu)return;const{lowestPollingInterval:j}=S(M);if(!Number.isFinite(j)){v(w);return}const A=s.get(w),k=Date.now()+j;(!A||k<A.nextPollTimestamp)&&h({queryCacheKey:w},_)}function v(w){const _=s.get(w);_!=null&&_.timeout&&clearTimeout(_.timeout),s.delete(w)}function g(){for(const w of s.keys())v(w)}function S(w=new Map){let _=!1,E=Number.POSITIVE_INFINITY;for(const T of w.values())T.pollingInterval&&(E=Math.min(T.pollingInterval,E),_=T.skipPollingIfUnfocused||_);return{lowestPollingInterval:E,skipPollingIfUnfocused:_}}return d},lde=({api:t,context:e,queryThunk:n,mutationThunk:r})=>{const o=hE(n,r),s=G1(n,r),i=Bd(n,r),l={};return(d,f)=>{var h,p;if(o(d)){const{requestId:v,arg:{endpointName:g,originalArgs:S}}=d.meta,w=W1(e,g),_=w==null?void 0:w.onQueryStarted;if(_){const E={},T=new Promise((k,R)=>{E.resolve=k,E.reject=R});T.catch(()=>{}),l[v]=E;const M=t.endpoints[g].select(a4(w)?S:v),j=f.dispatch((k,R,N)=>N),A={...f,getCacheEntry:()=>M(f.getState()),requestId:v,extra:j,updateCachedData:a4(w)?k=>f.dispatch(t.util.updateQueryData(g,S,k)):void 0,queryFulfilled:T};_(S,A)}}else if(i(d)){const{requestId:v,baseQueryMeta:g}=d.meta;(h=l[v])==null||h.resolve({data:d.payload,meta:g}),delete l[v]}else if(s(d)){const{requestId:v,rejectedWithValue:g,baseQueryMeta:S}=d.meta;(p=l[v])==null||p.reject({error:d.payload??d.error,isUnhandledError:!g,meta:S}),delete l[v]}}},cde=({reducerPath:t,context:e,api:n,refetchQuery:r,internalState:o})=>{const{removeQueryResult:s}=n.internalActions,i=(c,d)=>{vE.match(c)&&l(d,"refetchOnFocus"),bE.match(c)&&l(d,"refetchOnReconnect")};function l(c,d){const f=c.getState()[t],h=f.queries,p=o.currentSubscriptions;e.batch(()=>{for(const v of p.keys()){const g=h[v],S=p.get(v);if(!S||!g)continue;const w=[...S.values()];(w.some(E=>E[d]===!0)||w.every(E=>E[d]===void 0)&&f.config[d])&&(S.size===0?c.dispatch(s({queryCacheKey:v})):g.status!==uu&&c.dispatch(r(g)))}})}return i};function ude(t){const{reducerPath:e,queryThunk:n,api:r,context:o,getInternalState:s}=t,{apiUid:i}=o,l={invalidateTags:$s(`${e}/invalidateTags`)},c=p=>p.type.startsWith(`${e}/`),d=[sde,rde,ide,ade,ode,lde];return{middleware:p=>{let v=!1;const g=s(p.dispatch),S={...t,internalState:g,refetchQuery:h,isThisApiSliceAction:c,mwApi:p},w=d.map(T=>T(S)),_=tde(S),E=cde(S);return T=>M=>{if(!cE(M))return T(M);v||(v=!0,p.dispatch(r.internalActions.middlewareRegistered(i)));const j={...p,next:T},A=p.getState(),[k,R]=_(M,j,A);let N;if(k?N=T(M):N=R,p.getState()[e]&&(E(M,j,A),c(M)||o.hasRehydrationInfo(M)))for(const I of w)I(M,j,A);return N}},actions:l};function h(p){return t.api.endpoints[p.endpointName].initiate(p.originalArgs,{subscribe:!1,forceRefetch:!0})}}var _A=Symbol(),pF=({createSelector:t=Rx}={})=>({name:_A,init(e,{baseQuery:n,tagTypes:r,reducerPath:o,serializeQueryArgs:s,keepUnusedDataFor:i,refetchOnMountOrArgChange:l,refetchOnFocus:c,refetchOnReconnect:d,invalidationBehavior:f,onSchemaFailure:h,catchSchemaFailure:p,skipSchemaValidation:v},g){zce();const S=oe=>oe;Object.assign(e,{reducerPath:o,endpoints:{},internalActions:{onOnline:bE,onOffline:sF,onFocus:vE,onFocusLost:oF},util:{}});const w=ede({serializeQueryArgs:s,reducerPath:o,createSelector:t}),{selectInvalidatedBy:_,selectCachedArgsForQuery:E,buildQuerySelector:T,buildInfiniteQuerySelector:M,buildMutationSelector:j}=w;Uc(e.util,{selectInvalidatedBy:_,selectCachedArgsForQuery:E});const{queryThunk:A,infiniteQueryThunk:k,mutationThunk:R,patchQueryData:N,updateQueryData:I,upsertQueryData:L,prefetch:F,buildMatchThunkActions:H}=Zue({baseQuery:n,reducerPath:o,context:g,api:e,serializeQueryArgs:s,assertTagType:S,selectors:w,onSchemaFailure:h,catchSchemaFailure:p,skipSchemaValidation:v}),{reducer:B,actions:Y}=Jue({context:g,queryThunk:A,mutationThunk:R,serializeQueryArgs:s,reducerPath:o,assertTagType:S,config:{refetchOnFocus:c,refetchOnReconnect:d,refetchOnMountOrArgChange:l,keepUnusedDataFor:i,reducerPath:o,invalidationBehavior:f}});Uc(e.util,{patchQueryData:N,updateQueryData:I,upsertQueryData:L,prefetch:F,resetApiState:Y.resetApiState,upsertQueryEntries:Y.cacheEntriesUpserted}),Uc(e.internalActions,Y);const U=new WeakMap,q=oe=>i4(U,oe,()=>({currentSubscriptions:new Map,currentPolls:new Map,runningQueries:new Map,runningMutations:new Map})),{buildInitiateQuery:z,buildInitiateInfiniteQuery:W,buildInitiateMutation:K,getRunningMutationThunk:G,getRunningMutationsThunk:X,getRunningQueriesThunk:J,getRunningQueryThunk:ne}=Xue({queryThunk:A,mutationThunk:R,infiniteQueryThunk:k,api:e,serializeQueryArgs:s,context:g,getInternalState:q});Uc(e.util,{getRunningMutationThunk:G,getRunningMutationsThunk:X,getRunningQueryThunk:ne,getRunningQueriesThunk:J});const{middleware:se,actions:ie}=ude({reducerPath:o,context:g,queryThunk:A,mutationThunk:R,infiniteQueryThunk:k,api:e,assertTagType:S,selectors:w,getRunningQueryThunk:ne,getInternalState:q});return Uc(e.util,ie),Uc(e,{reducer:B,middleware:se}),{name:_A,injectEndpoint(oe,de){var Te;const fe=(Te=e.endpoints)[oe]??(Te[oe]={});zx(de)&&Uc(fe,{name:oe,select:T(oe,de),initiate:z(oe,de)},H(A,oe)),Wue(de)&&Uc(fe,{name:oe,select:j(),initiate:K(oe)},H(R,oe)),Ux(de)&&Uc(fe,{name:oe,select:M(oe,de),initiate:W(oe,de)},H(A,oe))}}}});pF();function A3(t){return t.replace(t[0],t[0].toUpperCase())}var dde="query",fde="mutation",hde="infinitequery";function pde(t){return t.type===dde}function mde(t){return t.type===fde}function mF(t){return t.type===hde}function Hy(t,...e){return Object.assign(t,...e)}var H_=Symbol();function q_(t){const e=D.useRef(t),n=D.useMemo(()=>gE(e.current,t),[t]);return D.useEffect(()=>{e.current!==n&&(e.current=n)},[n]),n}function d1(t){const e=D.useRef(t);return D.useEffect(()=>{Id(e.current,t)||(e.current=t)},[t]),Id(e.current,t)?e.current:t}var gde=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yde=gde(),vde=()=>typeof navigator<"u"&&navigator.product==="ReactNative",bde=vde(),Sde=()=>yde||bde?D.useLayoutEffect:D.useEffect,wde=Sde(),TA=t=>t.isUninitialized?{...t,isUninitialized:!1,isFetching:!0,isLoading:t.data===void 0,status:ii.pending}:t;function V_(t,...e){const n={};return e.forEach(r=>{n[r]=t[r]}),n}var Y_=["data","status","isLoading","isSuccess","isError","error"];function xde({api:t,moduleOptions:{batch:e,hooks:{useDispatch:n,useSelector:r,useStore:o},unstable__sideEffectsInRender:s,createSelector:i},serializeQueryArgs:l,context:c}){const d=s?A=>A():D.useEffect,f=A=>{var k,R;return(R=(k=A.current)==null?void 0:k.unsubscribe)==null?void 0:R.call(k)},h=c.endpointDefinitions;return{buildQueryHooks:T,buildInfiniteQueryHooks:M,buildMutationHook:j,usePrefetch:g};function p(A,k,R){if(k!=null&&k.endpointName&&A.isUninitialized){const{endpointName:B}=k,Y=h[B];R!==qa&&l({queryArgs:k.originalArgs,endpointDefinition:Y,endpointName:B})===l({queryArgs:R,endpointDefinition:Y,endpointName:B})&&(k=void 0)}let N=A.isSuccess?A.data:k==null?void 0:k.data;N===void 0&&(N=A.data);const I=N!==void 0,L=A.isLoading,F=(!k||k.isLoading||k.isUninitialized)&&!I&&L,H=A.isSuccess||I&&(L&&!(k!=null&&k.isError)||A.isUninitialized);return{...A,data:N,currentData:A.data,isFetching:L,isLoading:F,isSuccess:H}}function v(A,k,R){if(k!=null&&k.endpointName&&A.isUninitialized){const{endpointName:B}=k,Y=h[B];R!==qa&&l({queryArgs:k.originalArgs,endpointDefinition:Y,endpointName:B})===l({queryArgs:R,endpointDefinition:Y,endpointName:B})&&(k=void 0)}let N=A.isSuccess?A.data:k==null?void 0:k.data;N===void 0&&(N=A.data);const I=N!==void 0,L=A.isLoading,F=(!k||k.isLoading||k.isUninitialized)&&!I&&L,H=A.isSuccess||L&&I;return{...A,data:N,currentData:A.data,isFetching:L,isLoading:F,isSuccess:H}}function g(A,k){const R=n(),N=d1(k);return D.useCallback((I,L)=>R(t.util.prefetch(A,I,{...N,...L})),[A,R,N])}function S(A,k,{refetchOnReconnect:R,refetchOnFocus:N,refetchOnMountOrArgChange:I,skip:L=!1,pollingInterval:F=0,skipPollingIfUnfocused:H=!1,...B}={}){const{initiate:Y}=t.endpoints[A],U=n(),q=D.useRef(void 0);if(!q.current){const pe=U(t.internalActions.internal_getRTKQSubscriptions());q.current=pe}const z=q_(L?qa:k),W=d1({refetchOnReconnect:R,refetchOnFocus:N,pollingInterval:F,skipPollingIfUnfocused:H}),K=B.initialPageParam,G=d1(K),X=B.refetchCachedPages,J=d1(X),ne=D.useRef(void 0);let{queryCacheKey:se,requestId:ie}=ne.current||{},oe=!1;se&&ie&&(oe=q.current.isRequestSubscribed(se,ie));const de=!oe&&ne.current!==void 0;return d(()=>{de&&(ne.current=void 0)},[de]),d(()=>{var Te;const pe=ne.current;if(z===qa){pe==null||pe.unsubscribe(),ne.current=void 0;return}const fe=(Te=ne.current)==null?void 0:Te.subscriptionOptions;if(!pe||pe.arg!==z){pe==null||pe.unsubscribe();const we=U(Y(z,{subscriptionOptions:W,forceRefetch:I,...mF(h[A])?{initialPageParam:G,refetchCachedPages:J}:{}}));ne.current=we}else W!==fe&&pe.updateSubscriptionOptions(W)},[U,Y,I,z,W,de,G,J,A]),[ne,U,Y,W]}function w(A,k){return(N,{skip:I=!1,selectFromResult:L}={})=>{const{select:F}=t.endpoints[A],H=q_(I?qa:N),B=D.useRef(void 0),Y=D.useMemo(()=>i([F(H),(K,G)=>G,K=>H],k,{memoizeOptions:{resultEqualityCheck:Id}}),[F,H]),U=D.useMemo(()=>L?i([Y],L,{devModeChecks:{identityFunctionCheck:"never"}}):Y,[Y,L]),q=r(K=>U(K,B.current),Id),z=o(),W=Y(z.getState(),B.current);return wde(()=>{B.current=W},[W]),q}}function _(A){D.useEffect(()=>()=>{f(A),A.current=void 0},[A])}function E(A){if(!A.current)throw new Error(fs(38));return A.current.refetch()}function T(A){const k=(I,L={})=>{const[F]=S(A,I,L);return _(F),D.useMemo(()=>({refetch:()=>E(F)}),[F])},R=({refetchOnReconnect:I,refetchOnFocus:L,pollingInterval:F=0,skipPollingIfUnfocused:H=!1}={})=>{const{initiate:B}=t.endpoints[A],Y=n(),[U,q]=D.useState(H_),z=D.useRef(void 0),W=d1({refetchOnReconnect:I,refetchOnFocus:L,pollingInterval:F,skipPollingIfUnfocused:H});d(()=>{var ne,se;const J=(ne=z.current)==null?void 0:ne.subscriptionOptions;W!==J&&((se=z.current)==null||se.updateSubscriptionOptions(W))},[W]);const K=D.useRef(W);d(()=>{K.current=W},[W]);const G=D.useCallback(function(J,ne=!1){let se;return e(()=>{f(z),z.current=se=Y(B(J,{subscriptionOptions:K.current,forceRefetch:!ne})),q(J)}),se},[Y,B]),X=D.useCallback(()=>{var J,ne;(J=z.current)!=null&&J.queryCacheKey&&Y(t.internalActions.removeQueryResult({queryCacheKey:(ne=z.current)==null?void 0:ne.queryCacheKey}))},[Y]);return D.useEffect(()=>()=>{f(z)},[]),D.useEffect(()=>{U!==H_&&!z.current&&G(U,!0)},[U,G]),D.useMemo(()=>[G,U,{reset:X}],[G,U,X])},N=w(A,p);return{useQueryState:N,useQuerySubscription:k,useLazyQuerySubscription:R,useLazyQuery(I){const[L,F,{reset:H}]=R(I),B=N(F,{...I,skip:F===H_}),Y=D.useMemo(()=>({lastArg:F}),[F]);return D.useMemo(()=>[L,{...B,reset:H},Y],[L,B,H,Y])},useQuery(I,L){const F=k(I,L),H=N(I,{selectFromResult:I===qa||L!=null&&L.skip?void 0:TA,...L}),B=V_(H,...Y_);return D.useDebugValue(B),D.useMemo(()=>({...H,...F}),[H,F])}}}function M(A){const k=(N,I={})=>{const[L,F,H,B]=S(A,N,I),Y=D.useRef(B);d(()=>{Y.current=B},[B]);const U=I.refetchCachedPages,q=d1(U),z=D.useCallback(function(G,X){let J;return e(()=>{f(L),L.current=J=F(H(G,{subscriptionOptions:Y.current,direction:X}))}),J},[L,F,H]);_(L);const W=q_(I.skip?qa:N),K=D.useCallback(G=>{if(!L.current)throw new Error(fs(38));const X={refetchCachedPages:(G==null?void 0:G.refetchCachedPages)??q};return L.current.refetch(X)},[L,q]);return D.useMemo(()=>({trigger:z,refetch:K,fetchNextPage:()=>z(W,"forward"),fetchPreviousPage:()=>z(W,"backward")}),[K,z,W])},R=w(A,v);return{useInfiniteQueryState:R,useInfiniteQuerySubscription:k,useInfiniteQuery(N,I){const{refetch:L,fetchNextPage:F,fetchPreviousPage:H}=k(N,I),B=R(N,{selectFromResult:N===qa||I!=null&&I.skip?void 0:TA,...I}),Y=V_(B,...Y_,"hasNextPage","hasPreviousPage");return D.useDebugValue(Y),D.useMemo(()=>({...B,fetchNextPage:F,fetchPreviousPage:H,refetch:L}),[B,F,H,L])}}}function j(A){return({selectFromResult:k,fixedCacheKey:R}={})=>{const{select:N,initiate:I}=t.endpoints[A],L=n(),[F,H]=D.useState();D.useEffect(()=>()=>{F!=null&&F.arg.fixedCacheKey||F==null||F.reset()},[F]);const B=D.useCallback(function(J){const ne=L(I(J,{fixedCacheKey:R}));return H(ne),ne},[L,I,R]),{requestId:Y}=F||{},U=D.useMemo(()=>N({fixedCacheKey:R,requestId:F==null?void 0:F.requestId}),[R,F,N]),q=D.useMemo(()=>k?i([U],k):U,[k,U]),z=r(q,Id),W=R==null?F==null?void 0:F.arg.originalArgs:void 0,K=D.useCallback(()=>{e(()=>{F&&H(void 0),R&&L(t.internalActions.removeMutationResult({requestId:Y,fixedCacheKey:R}))})},[L,R,F,Y]),G=V_(z,...Y_,"endpointName");D.useDebugValue(G);const X=D.useMemo(()=>({...z,originalArgs:W,reset:K}),[z,W,K]);return D.useMemo(()=>[B,X],[B,X])}}}var Cde=Symbol(),_de=({batch:t=dce,hooks:e={useDispatch:aE,useSelector:RL,useStore:AL},createSelector:n=Rx,unstable__sideEffectsInRender:r=!1,...o}={})=>({name:Cde,init(s,{serializeQueryArgs:i},l){const c=s,{buildQueryHooks:d,buildInfiniteQueryHooks:f,buildMutationHook:h,usePrefetch:p}=xde({api:s,moduleOptions:{batch:t,hooks:e,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:i,context:l});return Hy(c,{usePrefetch:p}),Hy(l,{batch:t}),{injectEndpoint(v,g){if(pde(g)){const{useQuery:S,useLazyQuery:w,useLazyQuerySubscription:_,useQueryState:E,useQuerySubscription:T}=d(v);Hy(c.endpoints[v],{useQuery:S,useLazyQuery:w,useLazyQuerySubscription:_,useQueryState:E,useQuerySubscription:T}),s[`use${A3(v)}Query`]=S,s[`useLazy${A3(v)}Query`]=w}if(mde(g)){const S=h(v);Hy(c.endpoints[v],{useMutation:S}),s[`use${A3(v)}Mutation`]=S}else if(mF(g)){const{useInfiniteQuery:S,useInfiniteQuerySubscription:w,useInfiniteQueryState:_}=f(v);Hy(c.endpoints[v],{useInfiniteQuery:S,useInfiniteQuerySubscription:w,useInfiniteQueryState:_}),s[`use${A3(v)}InfiniteQuery`]=S}}}}}),Ki=hF(pF(),_de());const Tde=!1,Xi=t=>{const e=Vue({baseUrl:t,prepareHeaders:async o=>o}),n=o=>{const s=["/v1/user","/v2/auth/login"];return typeof o!="string"&&"url"in o&&s.includes(o.url.toLowerCase())};return async(o,s,i)=>{const l=await e(o,s,i);return!n(o)&&l.error&&l.error.status===401&&window.location.replace("/login"),l}},zi=Ki({reducerPath:"settingsApi",baseQuery:Xi("/api"),endpoints:t=>({get:t.query({query:()=>({url:"/v1/settings",method:"GET"})}),getTimezones:t.query({query:()=>({url:"/v1/calendars/timezones",method:"GET"})})})}),Ede=()=>{const t=be.c(4),{data:e}=zi.useGetQuery();let n;t[0]!==(e==null?void 0:e.Culture)?(n=()=>{var s;ko.changeLanguage(((s=e==null?void 0:e.Culture)==null?void 0:s.toLowerCase())||"ru")},t[0]=e==null?void 0:e.Culture,t[1]=n):n=t[1];const r=e==null?void 0:e.Culture;let o;t[2]!==r?(o=[r],t[2]=r,t[3]=o):o=t[3],D.useEffect(n,o)},wE=D.createContext(null);wE.displayName="@mantine/modals/ModalsContext";function kde(){const t=D.useContext(wE);if(!t)throw new Error("[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component");return t}function Mde({id:t,cancelProps:e,confirmProps:n,labels:r={cancel:"",confirm:""},closeOnConfirm:o=!0,closeOnCancel:s=!0,groupProps:i,onCancel:l,onConfirm:c,children:d}){const{cancel:f,confirm:h}=r,p=kde(),v=S=>{typeof(e==null?void 0:e.onClick)=="function"&&(e==null||e.onClick(S)),typeof l=="function"&&l(),s&&p.closeModal(t)},g=S=>{typeof(n==null?void 0:n.onClick)=="function"&&(n==null||n.onClick(S)),typeof c=="function"&&c(),o&&p.closeModal(t)};return b.jsxs(b.Fragment,{children:[d&&b.jsx(je,{mb:"md",children:d}),b.jsxs(qt,{mt:d?0:"md",justify:"flex-end",...i,children:[b.jsx(In,{variant:"default",...e,onClick:v,children:(e==null?void 0:e.children)||f}),b.jsx(In,{...n,onClick:g,children:(n==null?void 0:n.children)||h})]})]})}const[jde,mp]=RV("mantine-modals"),gF=t=>{const e=t.modalId||Pd();return mp("openModal")({...t,modalId:e}),e},Dde=t=>{const e=t.modalId||Pd();return mp("openConfirmModal")({...t,modalId:e}),e},Ade=t=>{const e=t.modalId||Pd();return mp("openContextModal")({...t,modalId:e}),e},Rde=mp("closeModal"),Ode=mp("closeAllModals"),Pde=t=>mp("updateModal")(t),Nde=t=>mp("updateContextModal")(t),Sg={open:gF,close:Rde,closeAll:Ode,openConfirmModal:Dde,openContextModal:Ade,updateModal:Pde,updateContextModal:Nde};function EA(t,e){var n,r,o,s;e&&t.type==="confirm"&&((r=(n=t.props).onCancel)==null||r.call(n)),(s=(o=t.props).onClose)==null||s.call(o)}function Ide(t,e){var n;switch(e.type){case"OPEN":return{current:e.modal,modals:[...t.modals,e.modal]};case"CLOSE":{const r=t.modals.find(s=>s.id===e.modalId);if(!r)return t;EA(r,e.canceled);const o=t.modals.filter(s=>s.id!==e.modalId);return{current:o[o.length-1]||t.current,modals:o}}case"CLOSE_ALL":return t.modals.length?(t.modals.concat().reverse().forEach(r=>{EA(r,e.canceled)}),{current:t.current,modals:[]}):t;case"UPDATE":{const{modalId:r,newProps:o}=e,s=t.modals.map(l=>l.id!==r?l:l.type==="content"||l.type==="confirm"?{...l,props:{...l.props,...o}}:l.type==="context"?{...l,props:{...l.props,...o,innerProps:{...l.props.innerProps,...o.innerProps}}}:l),i=((n=t.current)==null?void 0:n.id)===r&&s.find(l=>l.id===r)||t.current;return{...t,modals:s,current:i}}default:return t}}function $de(t){if(!t)return{confirmProps:{},modalProps:{}};const{id:e,children:n,onCancel:r,onConfirm:o,closeOnConfirm:s,closeOnCancel:i,cancelProps:l,confirmProps:c,groupProps:d,labels:f,...h}=t;return{confirmProps:{id:e,children:n,onCancel:r,onConfirm:o,closeOnConfirm:s,closeOnCancel:i,cancelProps:l,confirmProps:c,groupProps:d,labels:f},modalProps:{id:e,...h}}}function Lde({children:t,modalProps:e,labels:n,modals:r}){const[o,s]=D.useReducer(Ide,{modals:[],current:null}),i=D.useRef(o);i.current=o;const l=D.useCallback(E=>{s({type:"CLOSE_ALL",canceled:E})},[i,s]),c=D.useCallback(({modalId:E,...T})=>{const M=E||Pd();return s({type:"OPEN",modal:{id:M,type:"content",props:T}}),M},[s]),d=D.useCallback(({modalId:E,...T})=>{const M=E||Pd();return s({type:"OPEN",modal:{id:M,type:"confirm",props:T}}),M},[s]),f=D.useCallback((E,{modalId:T,...M})=>{const j=T||Pd();return s({type:"OPEN",modal:{id:j,type:"context",props:M,ctx:E}}),j},[s]),h=D.useCallback((E,T)=>{s({type:"CLOSE",modalId:E,canceled:T})},[i,s]),p=D.useCallback(({modalId:E,...T})=>{s({type:"UPDATE",modalId:E,newProps:T})},[s]),v=D.useCallback(({modalId:E,...T})=>{s({type:"UPDATE",modalId:E,newProps:T})},[s]);jde({openModal:c,openConfirmModal:d,openContextModal:({modal:E,...T})=>f(E,T),closeModal:h,closeContextModal:h,closeAllModals:l,updateModal:p,updateContextModal:v});const g={modalProps:e||{},modals:o.modals,openModal:c,openConfirmModal:d,openContextModal:f,closeModal:h,closeContextModal:h,closeAll:l,updateModal:p,updateContextModal:v},S=()=>{const E=i.current.current;switch(E==null?void 0:E.type){case"context":{const{innerProps:T,...M}=E.props,j=r[E.ctx];return{modalProps:M,content:b.jsx(j,{innerProps:T,context:g,id:E.id})}}case"confirm":{const{modalProps:T,confirmProps:M}=$de(E.props);return{modalProps:T,content:b.jsx(Mde,{...M,id:E.id,labels:E.props.labels||n})}}case"content":{const{children:T,...M}=E.props;return{modalProps:M,content:T}}default:return{modalProps:{},content:null}}},{modalProps:w,content:_}=S();return b.jsxs(wE.Provider,{value:g,children:[b.jsx(Cr,{zIndex:Go("modal")+1,...e,...w,opened:o.modals.length>0,onClose:()=>{var E;return h((E=o.current)==null?void 0:E.id)},children:_}),t]})}function Fde(t){let e=t,n=!1;const r=new Set;return{getState(){return e},updateState(o){e=typeof o=="function"?o(e):o},setState(o){this.updateState(o),r.forEach(s=>s(e))},initialize(o){n||(e=o,n=!0)},subscribe(o){return r.add(o),()=>r.delete(o)}}}function zde(t){return D.useSyncExternalStore(t.subscribe,()=>t.getState(),()=>t.getState())}function Ude(t,e,n){const r=[],o=[],s={};for(const i of t){const l=i.position||e;s[l]=s[l]||0,s[l]+=1,s[l]<=n?o.push(i):r.push(i)}return{notifications:o,queue:r}}const Bde=()=>Fde({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),gp=Bde(),Hde=(t=gp)=>zde(t);function wg(t,e){const n=t.getState(),r=e([...n.notifications,...n.queue]),o=Ude(r,n.defaultPosition,n.limit);t.setState({notifications:o.notifications,queue:o.queue,limit:n.limit,defaultPosition:n.defaultPosition})}function Bx(t,e=gp){const n=t.id||Pd();return wg(e,r=>t.id&&r.some(o=>o.id===t.id)?r:[...r,{...t,id:n}]),n}function yF(t,e=gp){return wg(e,n=>n.filter(r=>{var o;return r.id===t?((o=r.onClose)==null||o.call(r,r),!1):!0})),t}function lw(t,e=gp){return wg(e,n=>n.map(r=>r.id===t.id?{...r,...t}:r)),t.id}function qde(t=gp){wg(t,()=>[])}function Vde(t=gp){wg(t,e=>e.slice(0,t.getState().limit))}const yp={show:Bx,hide:yF,update:lw,clean:qde,cleanQueue:Vde,updateState:wg};function a8(t,e){return a8=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},a8(t,e)}function vF(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,a8(t,e)}const kA={disabled:!1},l4=Rn.createContext(null);var Yde=function(e){return e.scrollTop},rv="unmounted",Eh="exited",kh="entering",v1="entered",l8="exiting",Su=(function(t){vF(e,t);function e(r,o){var s;s=t.call(this,r,o)||this;var i=o,l=i&&!i.isMounting?r.enter:r.appear,c;return s.appearStatus=null,r.in?l?(c=Eh,s.appearStatus=kh):c=v1:r.unmountOnExit||r.mountOnEnter?c=rv:c=Eh,s.state={status:c},s.nextCallback=null,s}e.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===rv?{status:Eh}:null};var n=e.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!==kh&&i!==v1&&(s=kh):(i===kh||i===v1)&&(s=l8)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,i,l;return s=i=l=o,o!=null&&typeof o!="number"&&(s=o.exit,i=o.enter,l=o.appear!==void 0?o.appear:i),{exit:s,enter:i,appear:l}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===kh){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:_1.findDOMNode(this);i&&Yde(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Eh&&this.setState({status:rv})},n.performEnter=function(o){var s=this,i=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[_1.findDOMNode(this),l],d=c[0],f=c[1],h=this.getTimeouts(),p=l?h.appear:h.enter;if(!o&&!i||kA.disabled){this.safeSetState({status:v1},function(){s.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:kh},function(){s.props.onEntering(d,f),s.onTransitionEnd(p,function(){s.safeSetState({status:v1},function(){s.props.onEntered(d,f)})})})},n.performExit=function(){var o=this,s=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:_1.findDOMNode(this);if(!s||kA.disabled){this.safeSetState({status:Eh},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:l8},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Eh},function(){o.props.onExited(l)})})})},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(l){i&&(i=!1,s.nextCallback=null,o(l))},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:_1.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],d=c[0],f=c[1];this.props.addEndListener(d,f)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===rv)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 l=r$(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Rn.createElement(l4.Provider,{value:null},typeof i=="function"?i(o,l):Rn.cloneElement(Rn.Children.only(i),l))},e})(Rn.Component);Su.contextType=l4;Su.propTypes={};function f1(){}Su.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:f1,onEntering:f1,onEntered:f1,onExit:f1,onExiting:f1,onExited:f1};Su.UNMOUNTED=rv;Su.EXITED=Eh;Su.ENTERING=kh;Su.ENTERED=v1;Su.EXITING=l8;function Gde(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xE(t,e){var n=function(s){return e&&D.isValidElement(s)?e(s):s},r=Object.create(null);return t&&D.Children.map(t,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Wde(t,e){t=t||{},e=e||{};function n(f){return f in e?e[f]:t[f]}var r=Object.create(null),o=[];for(var s in t)s in e?o.length&&(r[s]=o,o=[]):o.push(s);var i,l={};for(var c in e){if(r[c])for(i=0;i<r[c].length;i++){var d=r[c][i];l[r[c][i]]=n(d)}l[c]=n(c)}for(i=0;i<o.length;i++)l[o[i]]=n(o[i]);return l}function Nh(t,e,n){return n[e]!=null?n[e]:t.props[e]}function Qde(t,e){return xE(t.children,function(n){return D.cloneElement(n,{onExited:e.bind(null,n),in:!0,appear:Nh(n,"appear",t),enter:Nh(n,"enter",t),exit:Nh(n,"exit",t)})})}function Kde(t,e,n){var r=xE(t.children),o=Wde(e,r);return Object.keys(o).forEach(function(s){var i=o[s];if(D.isValidElement(i)){var l=s in e,c=s in r,d=e[s],f=D.isValidElement(d)&&!d.props.in;c&&(!l||f)?o[s]=D.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:Nh(i,"exit",t),enter:Nh(i,"enter",t)}):!c&&l&&!f?o[s]=D.cloneElement(i,{in:!1}):c&&l&&D.isValidElement(d)&&(o[s]=D.cloneElement(i,{onExited:n.bind(null,i),in:d.props.in,exit:Nh(i,"exit",t),enter:Nh(i,"enter",t)}))}}),o}var Xde=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},Zde={component:"div",childFactory:function(e){return e}},kd=(function(t){vF(e,t);function e(r,o){var s;s=t.call(this,r,o)||this;var i=s.handleExited.bind(Gde(s));return s.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},s}var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(o,s){var i=s.children,l=s.handleExited,c=s.firstRender;return{children:c?Qde(o,l):Kde(o,i,l),firstRender:!1}},n.handleExited=function(o,s){var i=xE(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(l){var c=T9({},l.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,s=o.component,i=o.childFactory,l=r$(o,["component","childFactory"]),c=this.state.contextValue,d=Xde(this.state.children).map(i);return delete l.appear,delete l.enter,delete l.exit,s===null?Rn.createElement(l4.Provider,{value:c},d):Rn.createElement(l4.Provider,{value:c},Rn.createElement(s,l,d))},e})(Rn.Component);kd.propTypes={};kd.defaultProps=Zde;const bF=["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"];function Jde(t,e){return t.reduce((n,r)=>(n[r.position||e].push(r),n),bF.reduce((n,r)=>(n[r]=[],n),{}))}const MA={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},efe={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function tfe({state:t,maxHeight:e,position:n,transitionDuration:r}){const[o,s]=n.split("-"),i=s==="center"?`${o}-center`:s,l={opacity:0,maxHeight:e,transform:MA[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"},c={opacity:1,transform:efe[i]},d={opacity:0,maxHeight:0,transform:MA[i]};return{...l,...{entering:c,entered:c,exiting:d,exited:d}[t]}}function nfe(t,e){return typeof e=="number"?e:e===!1||t===!1?!1:t}const SF=D.forwardRef(({data:t,onHide:e,autoClose:n,...r},o)=>{const{autoClose:s,message:i,...l}=t,c=nfe(n,t.autoClose),d=D.useRef(-1),f=()=>window.clearTimeout(d.current),h=()=>{e(t.id),f()},p=()=>{typeof c=="number"&&(d.current=window.setTimeout(h,c))};return D.useEffect(()=>{var v;(v=t.onOpen)==null||v.call(t,t)},[]),D.useEffect(()=>(p(),f),[c]),b.jsx(k7,{...r,...l,onClose:h,ref:o,onMouseEnter:f,onMouseLeave:p,children:i})});SF.displayName="@mantine/notifications/NotificationContainer";var wF={root:"m_b37d9ac7",notification:"m_5ed0edd0"};const rfe=Su,ofe={position:"bottom-right",autoClose:4e3,transitionDuration:250,containerWidth:440,notificationMaxHeight:200,limit:5,zIndex:Go("overlay"),store:gp,withinPortal:!0},sfe=(t,{zIndex:e,containerWidth:n})=>({root:{"--notifications-z-index":e==null?void 0:e.toString(),"--notifications-container-width":Pe(n)}}),wu=Ve((t,e)=>{const n=Ae("Notifications",ofe,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,position:d,autoClose:f,transitionDuration:h,containerWidth:p,notificationMaxHeight:v,limit:g,zIndex:S,store:w,portalProps:_,withinPortal:E,...T}=n,M=Lr(),j=Hde(w),A=pV(),k=I4(),R=D.useRef({}),N=D.useRef(0),L=(M.respectReducedMotion?k:!1)?1:h,F=pt({name:"Notifications",classes:wF,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,vars:c,varsResolver:sfe});D.useEffect(()=>{w==null||w.updateState(Y=>({...Y,limit:g||5,defaultPosition:d}))},[g,d]),Gh(()=>{j.notifications.length>N.current&&setTimeout(()=>A(),0),N.current=j.notifications.length},[j.notifications]);const H=Jde(j.notifications,d),B=bF.reduce((Y,U)=>(Y[U]=H[U].map(({style:q,...z})=>b.jsx(rfe,{timeout:L,onEnter:()=>R.current[z.id].offsetHeight,nodeRef:{current:R.current[z.id]},children:W=>b.jsx(SF,{ref:K=>{K&&(R.current[z.id]=K)},data:z,onHide:K=>yF(K,w),autoClose:f,...F("notification",{style:{...tfe({state:W,position:U,transitionDuration:L,maxHeight:v}),...q}})})},z.id)),Y),{});return b.jsxs($d,{withinPortal:E,..._,children:[b.jsx(je,{...F("root"),"data-position":"top-center",ref:e,...T,children:b.jsx(kd,{children:B["top-center"]})}),b.jsx(je,{...F("root"),"data-position":"top-left",...T,children:b.jsx(kd,{children:B["top-left"]})}),b.jsx(je,{...F("root",{className:Yh.classNames.fullWidth}),"data-position":"top-right",...T,children:b.jsx(kd,{children:B["top-right"]})}),b.jsx(je,{...F("root",{className:Yh.classNames.fullWidth}),"data-position":"bottom-right",...T,children:b.jsx(kd,{children:B["bottom-right"]})}),b.jsx(je,{...F("root"),"data-position":"bottom-left",...T,children:b.jsx(kd,{children:B["bottom-left"]})}),b.jsx(je,{...F("root"),"data-position":"bottom-center",...T,children:b.jsx(kd,{children:B["bottom-center"]})})]})});wu.classes=wF;wu.displayName="@mantine/notifications/Notifications";wu.show=yp.show;wu.hide=yp.hide;wu.update=yp.update;wu.clean=yp.clean;wu.cleanQueue=yp.cleanQueue;wu.updateState=yp.updateState;var cw={exports:{}},ife=cw.exports,jA;function xF(){return jA||(jA=1,(function(t,e){(function(n,r){t.exports=r()})(ife,(function(){var n=1e3,r=6e4,o=36e5,s="millisecond",i="second",l="minute",c="hour",d="day",f="week",h="month",p="quarter",v="year",g="date",S="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|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,E={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(B){var Y=["th","st","nd","rd"],U=B%100;return"["+B+(Y[(U-20)%10]||Y[U]||Y[0])+"]"}},T=function(B,Y,U){var q=String(B);return!q||q.length>=Y?B:""+Array(Y+1-q.length).join(U)+B},M={s:T,z:function(B){var Y=-B.utcOffset(),U=Math.abs(Y),q=Math.floor(U/60),z=U%60;return(Y<=0?"+":"-")+T(q,2,"0")+":"+T(z,2,"0")},m:function B(Y,U){if(Y.date()<U.date())return-B(U,Y);var q=12*(U.year()-Y.year())+(U.month()-Y.month()),z=Y.clone().add(q,h),W=U-z<0,K=Y.clone().add(q+(W?-1:1),h);return+(-(q+(U-z)/(W?z-K:K-z))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:h,y:v,w:f,d,D:g,h:c,m:l,s:i,ms:s,Q:p}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},j="en",A={};A[j]=E;var k="$isDayjsObject",R=function(B){return B instanceof F||!(!B||!B[k])},N=function B(Y,U,q){var z;if(!Y)return j;if(typeof Y=="string"){var W=Y.toLowerCase();A[W]&&(z=W),U&&(A[W]=U,z=W);var K=Y.split("-");if(!z&&K.length>1)return B(K[0])}else{var G=Y.name;A[G]=Y,z=G}return!q&&z&&(j=z),z||!q&&j},I=function(B,Y){if(R(B))return B.clone();var U=typeof Y=="object"?Y:{};return U.date=B,U.args=arguments,new F(U)},L=M;L.l=N,L.i=R,L.w=function(B,Y){return I(B,{locale:Y.$L,utc:Y.$u,x:Y.$x,$offset:Y.$offset})};var F=(function(){function B(U){this.$L=N(U.locale,null,!0),this.parse(U),this.$x=this.$x||U.x||{},this[k]=!0}var Y=B.prototype;return Y.parse=function(U){this.$d=(function(q){var z=q.date,W=q.utc;if(z===null)return new Date(NaN);if(L.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var K=z.match(w);if(K){var G=K[2]-1||0,X=(K[7]||"0").substring(0,3);return W?new Date(Date.UTC(K[1],G,K[3]||1,K[4]||0,K[5]||0,K[6]||0,X)):new Date(K[1],G,K[3]||1,K[4]||0,K[5]||0,K[6]||0,X)}}return new Date(z)})(U),this.init()},Y.init=function(){var U=this.$d;this.$y=U.getFullYear(),this.$M=U.getMonth(),this.$D=U.getDate(),this.$W=U.getDay(),this.$H=U.getHours(),this.$m=U.getMinutes(),this.$s=U.getSeconds(),this.$ms=U.getMilliseconds()},Y.$utils=function(){return L},Y.isValid=function(){return this.$d.toString()!==S},Y.isSame=function(U,q){var z=I(U);return this.startOf(q)<=z&&z<=this.endOf(q)},Y.isAfter=function(U,q){return I(U)<this.startOf(q)},Y.isBefore=function(U,q){return this.endOf(q)<I(U)},Y.$g=function(U,q,z){return L.u(U)?this[q]:this.set(z,U)},Y.unix=function(){return Math.floor(this.valueOf()/1e3)},Y.valueOf=function(){return this.$d.getTime()},Y.startOf=function(U,q){var z=this,W=!!L.u(q)||q,K=L.p(U),G=function(pe,fe){var Te=L.w(z.$u?Date.UTC(z.$y,fe,pe):new Date(z.$y,fe,pe),z);return W?Te:Te.endOf(d)},X=function(pe,fe){return L.w(z.toDate()[pe].apply(z.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(fe)),z)},J=this.$W,ne=this.$M,se=this.$D,ie="set"+(this.$u?"UTC":"");switch(K){case v:return W?G(1,0):G(31,11);case h:return W?G(1,ne):G(0,ne+1);case f:var oe=this.$locale().weekStart||0,de=(J<oe?J+7:J)-oe;return G(W?se-de:se+(6-de),ne);case d:case g:return X(ie+"Hours",0);case c:return X(ie+"Minutes",1);case l:return X(ie+"Seconds",2);case i:return X(ie+"Milliseconds",3);default:return this.clone()}},Y.endOf=function(U){return this.startOf(U,!1)},Y.$set=function(U,q){var z,W=L.p(U),K="set"+(this.$u?"UTC":""),G=(z={},z[d]=K+"Date",z[g]=K+"Date",z[h]=K+"Month",z[v]=K+"FullYear",z[c]=K+"Hours",z[l]=K+"Minutes",z[i]=K+"Seconds",z[s]=K+"Milliseconds",z)[W],X=W===d?this.$D+(q-this.$W):q;if(W===h||W===v){var J=this.clone().set(g,1);J.$d[G](X),J.init(),this.$d=J.set(g,Math.min(this.$D,J.daysInMonth())).$d}else G&&this.$d[G](X);return this.init(),this},Y.set=function(U,q){return this.clone().$set(U,q)},Y.get=function(U){return this[L.p(U)]()},Y.add=function(U,q){var z,W=this;U=Number(U);var K=L.p(q),G=function(ne){var se=I(W);return L.w(se.date(se.date()+Math.round(ne*U)),W)};if(K===h)return this.set(h,this.$M+U);if(K===v)return this.set(v,this.$y+U);if(K===d)return G(1);if(K===f)return G(7);var X=(z={},z[l]=r,z[c]=o,z[i]=n,z)[K]||1,J=this.$d.getTime()+U*X;return L.w(J,this)},Y.subtract=function(U,q){return this.add(-1*U,q)},Y.format=function(U){var q=this,z=this.$locale();if(!this.isValid())return z.invalidDate||S;var W=U||"YYYY-MM-DDTHH:mm:ssZ",K=L.z(this),G=this.$H,X=this.$m,J=this.$M,ne=z.weekdays,se=z.months,ie=z.meridiem,oe=function(fe,Te,we,_e){return fe&&(fe[Te]||fe(q,W))||we[Te].slice(0,_e)},de=function(fe){return L.s(G%12||12,fe,"0")},pe=ie||function(fe,Te,we){var _e=fe<12?"AM":"PM";return we?_e.toLowerCase():_e};return W.replace(_,(function(fe,Te){return Te||(function(we){switch(we){case"YY":return String(q.$y).slice(-2);case"YYYY":return L.s(q.$y,4,"0");case"M":return J+1;case"MM":return L.s(J+1,2,"0");case"MMM":return oe(z.monthsShort,J,se,3);case"MMMM":return oe(se,J);case"D":return q.$D;case"DD":return L.s(q.$D,2,"0");case"d":return String(q.$W);case"dd":return oe(z.weekdaysMin,q.$W,ne,2);case"ddd":return oe(z.weekdaysShort,q.$W,ne,3);case"dddd":return ne[q.$W];case"H":return String(G);case"HH":return L.s(G,2,"0");case"h":return de(1);case"hh":return de(2);case"a":return pe(G,X,!0);case"A":return pe(G,X,!1);case"m":return String(X);case"mm":return L.s(X,2,"0");case"s":return String(q.$s);case"ss":return L.s(q.$s,2,"0");case"SSS":return L.s(q.$ms,3,"0");case"Z":return K}return null})(fe)||K.replace(":","")}))},Y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Y.diff=function(U,q,z){var W,K=this,G=L.p(q),X=I(U),J=(X.utcOffset()-this.utcOffset())*r,ne=this-X,se=function(){return L.m(K,X)};switch(G){case v:W=se()/12;break;case h:W=se();break;case p:W=se()/3;break;case f:W=(ne-J)/6048e5;break;case d:W=(ne-J)/864e5;break;case c:W=ne/o;break;case l:W=ne/r;break;case i:W=ne/n;break;default:W=ne}return z?W:L.a(W)},Y.daysInMonth=function(){return this.endOf(h).$D},Y.$locale=function(){return A[this.$L]},Y.locale=function(U,q){if(!U)return this.$L;var z=this.clone(),W=N(U,q,!0);return W&&(z.$L=W),z},Y.clone=function(){return L.w(this.$d,this)},Y.toDate=function(){return new Date(this.valueOf())},Y.toJSON=function(){return this.isValid()?this.toISOString():null},Y.toISOString=function(){return this.$d.toISOString()},Y.toString=function(){return this.$d.toUTCString()},B})(),H=F.prototype;return I.prototype=H,[["$ms",s],["$s",i],["$m",l],["$H",c],["$W",d],["$M",h],["$y",v],["$D",g]].forEach((function(B){H[B[1]]=function(Y){return this.$g(Y,B[0],B[1])}})),I.extend=function(B,Y){return B.$i||(B(Y,F,I),B.$i=!0),I},I.locale=N,I.isDayjs=R,I.unix=function(B){return I(1e3*B)},I.en=A[j],I.Ls=A,I.p={},I}))})(cw)),cw.exports}var afe=xF();const rt=hu(afe);var uw={exports:{}},lfe=uw.exports,DA;function cfe(){return DA||(DA=1,(function(t,e){(function(n,r){t.exports=r(xF())})(lfe,(function(n){function r(g){return g&&typeof g=="object"&&"default"in g?g:{default:g}}var o=r(n),s="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),i="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),l="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),c="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),d=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function f(g,S,w){var _,E;return w==="m"?S?"минута":"минуту":g+" "+(_=+g,E={mm:S?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[w].split("_"),_%10==1&&_%100!=11?E[0]:_%10>=2&&_%10<=4&&(_%100<10||_%100>=20)?E[1]:E[2])}var h=function(g,S){return d.test(S)?s[g.month()]:i[g.month()]};h.s=i,h.f=s;var p=function(g,S){return d.test(S)?l[g.month()]:c[g.month()]};p.s=c,p.f=l;var v={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:h,monthsShort:p,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:f,mm:f,h:"час",hh:f,d:"день",dd:f,M:"месяц",MM:f,y:"год",yy:f},ordinal:function(g){return g},meridiem:function(g){return g<4?"ночи":g<12?"утра":g<17?"дня":"вечера"}};return o.default.locale(v,null,!0),v}))})(uw)),uw.exports}cfe();function dw(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dw=function(n){return typeof n}:dw=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},dw(t)}function ufe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dfe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ffe(t,e,n){return e&&dfe(t.prototype,e),t}function hfe(t,e){return e&&(dw(e)==="object"||typeof e=="function")?e:fw(t)}function c8(t){return c8=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},c8(t)}function fw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pfe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u8(t,e)}function u8(t,e){return u8=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},u8(t,e)}function hw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var CF=(function(t){pfe(e,t);function e(){var n,r;ufe(this,e);for(var o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return r=hfe(this,(n=c8(e)).call.apply(n,[this].concat(s))),hw(fw(r),"state",{bootstrapped:!1}),hw(fw(r),"_unsubscribe",void 0),hw(fw(r),"handlePersistorState",function(){var l=r.props.persistor,c=l.getState(),d=c.bootstrapped;d&&(r.props.onBeforeLift?Promise.resolve(r.props.onBeforeLift()).finally(function(){return r.setState({bootstrapped:!0})}):r.setState({bootstrapped:!0}),r._unsubscribe&&r._unsubscribe())}),r}return ffe(e,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),e})(D.PureComponent);hw(CF,"defaultProps",{children:null,loading:null});const _F=6048e5,mfe=864e5,CE=6e4,_E=36e5,gfe=1e3,AA=Symbol.for("constructDateFrom");function Vr(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&AA in t?t[AA](e):t instanceof Date?new t.constructor(e):new Date(e)}function Ar(t,e){return Vr(e||t,t)}function TE(t,e,n){const r=Ar(t,n==null?void 0:n.in);return isNaN(e)?Vr((n==null?void 0:n.in)||t,NaN):(e&&r.setDate(r.getDate()+e),r)}let TF={};function vp(){return TF}function yfe(t){TF=t}function ac(t,e){var l,c,d,f;const n=vp(),r=(e==null?void 0:e.weekStartsOn)??((c=(l=e==null?void 0:e.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??0,o=Ar(t,e==null?void 0:e.in),s=o.getDay(),i=(s<r?7:0)+s-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function Q1(t,e){return ac(t,{...e,weekStartsOn:1})}function EF(t,e){const n=Ar(t,e==null?void 0:e.in),r=n.getFullYear(),o=Vr(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=Q1(o),i=Vr(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const l=Q1(i);return n.getTime()>=s.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function c4(t){const e=Ar(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function Hx(t,...e){const n=Vr.bind(null,t||e.find(r=>typeof r=="object"));return e.map(n)}function Hd(t,e){const n=Ar(t,e==null?void 0:e.in);return n.setHours(0,0,0,0),n}function kF(t,e,n){const[r,o]=Hx(n==null?void 0:n.in,t,e),s=Hd(r),i=Hd(o),l=+s-c4(s),c=+i-c4(i);return Math.round((l-c)/mfe)}function vfe(t,e){const n=EF(t,e),r=Vr(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Q1(r)}function EE(t){return Vr(t,Date.now())}function MF(t,e,n){const[r,o]=Hx(n==null?void 0:n.in,t,e);return+Hd(r)==+Hd(o)}function bfe(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Sfe(t){return!(!bfe(t)&&typeof t!="number"||isNaN(+Ar(t)))}function wfe(t,e){const n=Ar(t,e==null?void 0:e.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const xfe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Cfe=(t,e,n)=>{let r;const o=xfe[t];return typeof o=="string"?r=o:e===1?r=o.one:r=o.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function R1(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const _fe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Tfe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Efe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},kfe={date:R1({formats:_fe,defaultWidth:"full"}),time:R1({formats:Tfe,defaultWidth:"full"}),dateTime:R1({formats:Efe,defaultWidth:"full"})},Mfe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},jfe=(t,e,n,r)=>Mfe[t];function Ql(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&t.formattingValues){const i=t.defaultFormattingWidth||t.defaultWidth,l=n!=null&&n.width?String(n.width):i;o=t.formattingValues[l]||t.formattingValues[i]}else{const i=t.defaultWidth,l=n!=null&&n.width?String(n.width):t.defaultWidth;o=t.values[l]||t.values[i]}const s=t.argumentCallback?t.argumentCallback(e):e;return o[s]}}const Dfe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Afe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Rfe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ofe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Pfe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Nfe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ife=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},$fe={ordinalNumber:Ife,era:Ql({values:Dfe,defaultWidth:"wide"}),quarter:Ql({values:Afe,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Ql({values:Rfe,defaultWidth:"wide"}),day:Ql({values:Ofe,defaultWidth:"wide"}),dayPeriod:Ql({values:Pfe,defaultWidth:"wide",formattingValues:Nfe,defaultFormattingWidth:"wide"})};function Kl(t){return(e,n={})=>{const r=n.width,o=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],s=e.match(o);if(!s)return null;const i=s[0],l=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?Ffe(l,h=>h.test(i)):Lfe(l,h=>h.test(i));let d;d=t.valueCallback?t.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;const f=e.slice(i.length);return{value:d,rest:f}}}function Lfe(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function Ffe(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function jF(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const o=r[0],s=e.match(t.parsePattern);if(!s)return null;let i=t.valueCallback?t.valueCallback(s[0]):s[0];i=n.valueCallback?n.valueCallback(i):i;const l=e.slice(o.length);return{value:i,rest:l}}}const zfe=/^(\d+)(th|st|nd|rd)?/i,Ufe=/\d+/i,Bfe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Hfe={any:[/^b/i,/^(a|c)/i]},qfe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Vfe={any:[/1/i,/2/i,/3/i,/4/i]},Yfe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Gfe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Wfe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Qfe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Kfe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Xfe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Zfe={ordinalNumber:jF({matchPattern:zfe,parsePattern:Ufe,valueCallback:t=>parseInt(t,10)}),era:Kl({matchPatterns:Bfe,defaultMatchWidth:"wide",parsePatterns:Hfe,defaultParseWidth:"any"}),quarter:Kl({matchPatterns:qfe,defaultMatchWidth:"wide",parsePatterns:Vfe,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Kl({matchPatterns:Yfe,defaultMatchWidth:"wide",parsePatterns:Gfe,defaultParseWidth:"any"}),day:Kl({matchPatterns:Wfe,defaultMatchWidth:"wide",parsePatterns:Qfe,defaultParseWidth:"any"}),dayPeriod:Kl({matchPatterns:Kfe,defaultMatchWidth:"any",parsePatterns:Xfe,defaultParseWidth:"any"})},kE={code:"en-US",formatDistance:Cfe,formatLong:kfe,formatRelative:jfe,localize:$fe,match:Zfe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Jfe(t,e){const n=Ar(t,e==null?void 0:e.in);return kF(n,wfe(n))+1}function DF(t,e){const n=Ar(t,e==null?void 0:e.in),r=+Q1(n)-+vfe(n);return Math.round(r/_F)+1}function ME(t,e){var f,h,p,v;const n=Ar(t,e==null?void 0:e.in),r=n.getFullYear(),o=vp(),s=(e==null?void 0:e.firstWeekContainsDate)??((h=(f=e==null?void 0:e.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??o.firstWeekContainsDate??((v=(p=o.locale)==null?void 0:p.options)==null?void 0:v.firstWeekContainsDate)??1,i=Vr((e==null?void 0:e.in)||t,0);i.setFullYear(r+1,0,s),i.setHours(0,0,0,0);const l=ac(i,e),c=Vr((e==null?void 0:e.in)||t,0);c.setFullYear(r,0,s),c.setHours(0,0,0,0);const d=ac(c,e);return+n>=+l?r+1:+n>=+d?r:r-1}function ehe(t,e){var l,c,d,f;const n=vp(),r=(e==null?void 0:e.firstWeekContainsDate)??((c=(l=e==null?void 0:e.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??1,o=ME(t,e),s=Vr((e==null?void 0:e.in)||t,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),ac(s,e)}function AF(t,e){const n=Ar(t,e==null?void 0:e.in),r=+ac(n,e)-+ehe(n,e);return Math.round(r/_F)+1}function ir(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const _d={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return ir(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):ir(n+1,2)},d(t,e){return ir(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return ir(t.getHours()%12||12,e.length)},H(t,e){return ir(t.getHours(),e.length)},m(t,e){return ir(t.getMinutes(),e.length)},s(t,e){return ir(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return ir(o,e.length)}},h1={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},RA={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return _d.y(t,e)},Y:function(t,e,n,r){const o=ME(t,r),s=o>0?o:1-o;if(e==="YY"){const i=s%100;return ir(i,2)}return e==="Yo"?n.ordinalNumber(s,{unit:"year"}):ir(s,e.length)},R:function(t,e){const n=EF(t);return ir(n,e.length)},u:function(t,e){const n=t.getFullYear();return ir(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return ir(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return ir(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return _d.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return ir(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const o=AF(t,r);return e==="wo"?n.ordinalNumber(o,{unit:"week"}):ir(o,e.length)},I:function(t,e,n){const r=DF(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):ir(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):_d.d(t,e)},D:function(t,e,n){const r=Jfe(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ir(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const o=t.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return ir(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const o=t.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return ir(s,e.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),o=r===0?7:r;switch(e){case"i":return String(o);case"ii":return ir(o,e.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const o=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let o;switch(r===12?o=h1.noon:r===0?o=h1.midnight:o=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let o;switch(r>=17?o=h1.evening:r>=12?o=h1.afternoon:r>=4?o=h1.morning:o=h1.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return _d.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):_d.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ir(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):ir(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):_d.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):_d.s(t,e)},S:function(t,e){return _d.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return PA(r);case"XXXX":case"XX":return Mh(r);case"XXXXX":case"XXX":default:return Mh(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return PA(r);case"xxxx":case"xx":return Mh(r);case"xxxxx":case"xxx":default:return Mh(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+OA(r,":");case"OOOO":default:return"GMT"+Mh(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+OA(r,":");case"zzzz":default:return"GMT"+Mh(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return ir(r,e.length)},T:function(t,e,n){return ir(+t,e.length)}};function OA(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),o=Math.trunc(r/60),s=r%60;return s===0?n+String(o):n+String(o)+e+ir(s,2)}function PA(t,e){return t%60===0?(t>0?"-":"+")+ir(Math.abs(t)/60,2):Mh(t,e)}function Mh(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),o=ir(Math.trunc(r/60),2),s=ir(r%60,2);return n+o+e+s}const NA=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},RF=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},the=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return NA(t,e);let s;switch(r){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;case"PPPP":default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",NA(r,e)).replace("{{time}}",RF(o,e))},d8={p:RF,P:the},nhe=/^D+$/,rhe=/^Y+$/,ohe=["D","DD","YY","YYYY"];function OF(t){return nhe.test(t)}function PF(t){return rhe.test(t)}function f8(t,e,n){const r=she(t,e,n);if(console.warn(r),ohe.includes(t))throw new RangeError(r)}function she(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const ihe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ahe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,lhe=/^'([^]*?)'?$/,che=/''/g,uhe=/[a-zA-Z]/;function u4(t,e,n){var f,h,p,v;const r=vp(),o=r.locale??kE,s=r.firstWeekContainsDate??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,i=r.weekStartsOn??((v=(p=r.locale)==null?void 0:p.options)==null?void 0:v.weekStartsOn)??0,l=Ar(t,n==null?void 0:n.in);if(!Sfe(l))throw new RangeError("Invalid time value");let c=e.match(ahe).map(g=>{const S=g[0];if(S==="p"||S==="P"){const w=d8[S];return w(g,o.formatLong)}return g}).join("").match(ihe).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const S=g[0];if(S==="'")return{isToken:!1,value:dhe(g)};if(RA[S])return{isToken:!0,value:g};if(S.match(uhe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:g}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const d={firstWeekContainsDate:s,weekStartsOn:i,locale:o};return c.map(g=>{if(!g.isToken)return g.value;const S=g.value;(PF(S)||OF(S))&&f8(S,e,String(t));const w=RA[S[0]];return w(l,S,o.localize,d)}).join("")}function dhe(t){const e=t.match(lhe);return e?e[1].replace(che,"'"):t}function fhe(){return Object.assign({},vp())}function hhe(t,e){const n=Ar(t,e==null?void 0:e.in).getDay();return n===0?7:n}function NF(t,e){return+Ar(t)>+Ar(e)}function jE(t,e){return+Ar(t)<+Ar(e)}function phe(t,e){const n=mhe(e)?new e(0):Vr(e,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}function mhe(t){var e;return typeof t=="function"&&((e=t.prototype)==null?void 0:e.constructor)===t}const ghe=10;class IF{constructor(){ht(this,"subPriority",0)}validate(e,n){return!0}}class yhe extends IF{constructor(e,n,r,o,s){super(),this.value=e,this.validateValue=n,this.setValue=r,this.priority=o,s&&(this.subPriority=s)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,r){return this.setValue(e,n,this.value,r)}}class vhe extends IF{constructor(n,r){super();ht(this,"priority",ghe);ht(this,"subPriority",-1);this.context=n||(o=>Vr(r,o))}set(n,r){return r.timestampIsSet?n:Vr(n,phe(n,this.context))}}class Xn{run(e,n,r,o){const s=this.parse(e,n,r,o);return s?{setter:new yhe(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(e,n,r){return!0}}class bhe extends Xn{constructor(){super(...arguments);ht(this,"priority",140);ht(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,o){switch(r){case"G":case"GG":case"GGG":return o.era(n,{width:"abbreviated"})||o.era(n,{width:"narrow"});case"GGGGG":return o.era(n,{width:"narrow"});case"GGGG":default:return o.era(n,{width:"wide"})||o.era(n,{width:"abbreviated"})||o.era(n,{width:"narrow"})}}set(n,r,o){return r.era=o,n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}const uo={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Xl={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function fo(t,e){return t&&{value:e(t.value),rest:t.rest}}function Br(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function Zl(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const r=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,s=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(o*_E+s*CE+i*gfe),rest:e.slice(n[0].length)}}function $F(t){return Br(uo.anyDigitsSigned,t)}function to(t,e){switch(t){case 1:return Br(uo.singleDigit,e);case 2:return Br(uo.twoDigits,e);case 3:return Br(uo.threeDigits,e);case 4:return Br(uo.fourDigits,e);default:return Br(new RegExp("^\\d{1,"+t+"}"),e)}}function d4(t,e){switch(t){case 1:return Br(uo.singleDigitSigned,e);case 2:return Br(uo.twoDigitsSigned,e);case 3:return Br(uo.threeDigitsSigned,e);case 4:return Br(uo.fourDigitsSigned,e);default:return Br(new RegExp("^-?\\d{1,"+t+"}"),e)}}function DE(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function LF(t,e){const n=e>0,r=n?e:1-e;let o;if(r<=50)o=t||100;else{const s=r+50,i=Math.trunc(s/100)*100,l=t>=s%100;o=t+i-(l?100:0)}return n?o:1-o}function FF(t){return t%400===0||t%4===0&&t%100!==0}class She extends Xn{constructor(){super(...arguments);ht(this,"priority",130);ht(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,o){const s=i=>({year:i,isTwoDigitYear:r==="yy"});switch(r){case"y":return fo(to(4,n),s);case"yo":return fo(o.ordinalNumber(n,{unit:"year"}),s);default:return fo(to(r.length,n),s)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,o){const s=n.getFullYear();if(o.isTwoDigitYear){const l=LF(o.year,s);return n.setFullYear(l,0,1),n.setHours(0,0,0,0),n}const i=!("era"in r)||r.era===1?o.year:1-o.year;return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}}class whe extends Xn{constructor(){super(...arguments);ht(this,"priority",130);ht(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,o){const s=i=>({year:i,isTwoDigitYear:r==="YY"});switch(r){case"Y":return fo(to(4,n),s);case"Yo":return fo(o.ordinalNumber(n,{unit:"year"}),s);default:return fo(to(r.length,n),s)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,o,s){const i=ME(n,s);if(o.isTwoDigitYear){const c=LF(o.year,i);return n.setFullYear(c,0,s.firstWeekContainsDate),n.setHours(0,0,0,0),ac(n,s)}const l=!("era"in r)||r.era===1?o.year:1-o.year;return n.setFullYear(l,0,s.firstWeekContainsDate),n.setHours(0,0,0,0),ac(n,s)}}class xhe extends Xn{constructor(){super(...arguments);ht(this,"priority",130);ht(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return d4(r==="R"?4:r.length,n)}set(n,r,o){const s=Vr(n,0);return s.setFullYear(o,0,4),s.setHours(0,0,0,0),Q1(s)}}class Che extends Xn{constructor(){super(...arguments);ht(this,"priority",130);ht(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return d4(r==="u"?4:r.length,n)}set(n,r,o){return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class _he extends Xn{constructor(){super(...arguments);ht(this,"priority",120);ht(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,o){switch(r){case"Q":case"QQ":return to(r.length,n);case"Qo":return o.ordinalNumber(n,{unit:"quarter"});case"QQQ":return o.quarter(n,{width:"abbreviated",context:"formatting"})||o.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(n,{width:"wide",context:"formatting"})||o.quarter(n,{width:"abbreviated",context:"formatting"})||o.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,o){return n.setMonth((o-1)*3,1),n.setHours(0,0,0,0),n}}class The extends Xn{constructor(){super(...arguments);ht(this,"priority",120);ht(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,o){switch(r){case"q":case"qq":return to(r.length,n);case"qo":return o.ordinalNumber(n,{unit:"quarter"});case"qqq":return o.quarter(n,{width:"abbreviated",context:"standalone"})||o.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(n,{width:"wide",context:"standalone"})||o.quarter(n,{width:"abbreviated",context:"standalone"})||o.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,o){return n.setMonth((o-1)*3,1),n.setHours(0,0,0,0),n}}class Ehe extends Xn{constructor(){super(...arguments);ht(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);ht(this,"priority",110)}parse(n,r,o){const s=i=>i-1;switch(r){case"M":return fo(Br(uo.month,n),s);case"MM":return fo(to(2,n),s);case"Mo":return fo(o.ordinalNumber(n,{unit:"month"}),s);case"MMM":return o.month(n,{width:"abbreviated",context:"formatting"})||o.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(n,{width:"wide",context:"formatting"})||o.month(n,{width:"abbreviated",context:"formatting"})||o.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,o){return n.setMonth(o,1),n.setHours(0,0,0,0),n}}class khe extends Xn{constructor(){super(...arguments);ht(this,"priority",110);ht(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,o){const s=i=>i-1;switch(r){case"L":return fo(Br(uo.month,n),s);case"LL":return fo(to(2,n),s);case"Lo":return fo(o.ordinalNumber(n,{unit:"month"}),s);case"LLL":return o.month(n,{width:"abbreviated",context:"standalone"})||o.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(n,{width:"wide",context:"standalone"})||o.month(n,{width:"abbreviated",context:"standalone"})||o.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,o){return n.setMonth(o,1),n.setHours(0,0,0,0),n}}function Mhe(t,e,n){const r=Ar(t,n==null?void 0:n.in),o=AF(r,n)-e;return r.setDate(r.getDate()-o*7),Ar(r,n==null?void 0:n.in)}class jhe extends Xn{constructor(){super(...arguments);ht(this,"priority",100);ht(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,o){switch(r){case"w":return Br(uo.week,n);case"wo":return o.ordinalNumber(n,{unit:"week"});default:return to(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,o,s){return ac(Mhe(n,o,s),s)}}function Dhe(t,e,n){const r=Ar(t,n==null?void 0:n.in),o=DF(r,n)-e;return r.setDate(r.getDate()-o*7),r}class Ahe extends Xn{constructor(){super(...arguments);ht(this,"priority",100);ht(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,o){switch(r){case"I":return Br(uo.week,n);case"Io":return o.ordinalNumber(n,{unit:"week"});default:return to(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,o){return Q1(Dhe(n,o))}}const Rhe=[31,28,31,30,31,30,31,31,30,31,30,31],Ohe=[31,29,31,30,31,30,31,31,30,31,30,31];class Phe extends Xn{constructor(){super(...arguments);ht(this,"priority",90);ht(this,"subPriority",1);ht(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,o){switch(r){case"d":return Br(uo.date,n);case"do":return o.ordinalNumber(n,{unit:"date"});default:return to(r.length,n)}}validate(n,r){const o=n.getFullYear(),s=FF(o),i=n.getMonth();return s?r>=1&&r<=Ohe[i]:r>=1&&r<=Rhe[i]}set(n,r,o){return n.setDate(o),n.setHours(0,0,0,0),n}}class Nhe extends Xn{constructor(){super(...arguments);ht(this,"priority",90);ht(this,"subpriority",1);ht(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,o){switch(r){case"D":case"DD":return Br(uo.dayOfYear,n);case"Do":return o.ordinalNumber(n,{unit:"date"});default:return to(r.length,n)}}validate(n,r){const o=n.getFullYear();return FF(o)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,o){return n.setMonth(0,o),n.setHours(0,0,0,0),n}}function AE(t,e,n){var h,p,v,g;const r=vp(),o=(n==null?void 0:n.weekStartsOn)??((p=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:p.weekStartsOn)??r.weekStartsOn??((g=(v=r.locale)==null?void 0:v.options)==null?void 0:g.weekStartsOn)??0,s=Ar(t,n==null?void 0:n.in),i=s.getDay(),c=(e%7+7)%7,d=7-o,f=e<0||e>6?e-(i+d)%7:(c+d)%7-(i+d)%7;return TE(s,f,n)}class Ihe extends Xn{constructor(){super(...arguments);ht(this,"priority",90);ht(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,o){switch(r){case"E":case"EE":case"EEE":return o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,o,s){return n=AE(n,o,s),n.setHours(0,0,0,0),n}}class $he extends Xn{constructor(){super(...arguments);ht(this,"priority",90);ht(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,o,s){const i=l=>{const c=Math.floor((l-1)/7)*7;return(l+s.weekStartsOn+6)%7+c};switch(r){case"e":case"ee":return fo(to(r.length,n),i);case"eo":return fo(o.ordinalNumber(n,{unit:"day"}),i);case"eee":return o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"eeeee":return o.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,o,s){return n=AE(n,o,s),n.setHours(0,0,0,0),n}}class Lhe extends Xn{constructor(){super(...arguments);ht(this,"priority",90);ht(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,o,s){const i=l=>{const c=Math.floor((l-1)/7)*7;return(l+s.weekStartsOn+6)%7+c};switch(r){case"c":case"cc":return fo(to(r.length,n),i);case"co":return fo(o.ordinalNumber(n,{unit:"day"}),i);case"ccc":return o.day(n,{width:"abbreviated",context:"standalone"})||o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"});case"ccccc":return o.day(n,{width:"narrow",context:"standalone"});case"cccccc":return o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(n,{width:"wide",context:"standalone"})||o.day(n,{width:"abbreviated",context:"standalone"})||o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,o,s){return n=AE(n,o,s),n.setHours(0,0,0,0),n}}function Fhe(t,e,n){const r=Ar(t,n==null?void 0:n.in),o=hhe(r,n),s=e-o;return TE(r,s,n)}class zhe extends Xn{constructor(){super(...arguments);ht(this,"priority",90);ht(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,o){const s=i=>i===0?7:i;switch(r){case"i":case"ii":return to(r.length,n);case"io":return o.ordinalNumber(n,{unit:"day"});case"iii":return fo(o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),s);case"iiiii":return fo(o.day(n,{width:"narrow",context:"formatting"}),s);case"iiiiii":return fo(o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),s);case"iiii":default:return fo(o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),s)}}validate(n,r){return r>=1&&r<=7}set(n,r,o){return n=Fhe(n,o),n.setHours(0,0,0,0),n}}class Uhe extends Xn{constructor(){super(...arguments);ht(this,"priority",80);ht(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,o){switch(r){case"a":case"aa":case"aaa":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,o){return n.setHours(DE(o),0,0,0),n}}class Bhe extends Xn{constructor(){super(...arguments);ht(this,"priority",80);ht(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,o){switch(r){case"b":case"bb":case"bbb":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,o){return n.setHours(DE(o),0,0,0),n}}class Hhe extends Xn{constructor(){super(...arguments);ht(this,"priority",80);ht(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,o){switch(r){case"B":case"BB":case"BBB":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,o){return n.setHours(DE(o),0,0,0),n}}class qhe extends Xn{constructor(){super(...arguments);ht(this,"priority",70);ht(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,o){switch(r){case"h":return Br(uo.hour12h,n);case"ho":return o.ordinalNumber(n,{unit:"hour"});default:return to(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,o){const s=n.getHours()>=12;return s&&o<12?n.setHours(o+12,0,0,0):!s&&o===12?n.setHours(0,0,0,0):n.setHours(o,0,0,0),n}}class Vhe extends Xn{constructor(){super(...arguments);ht(this,"priority",70);ht(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,o){switch(r){case"H":return Br(uo.hour23h,n);case"Ho":return o.ordinalNumber(n,{unit:"hour"});default:return to(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,o){return n.setHours(o,0,0,0),n}}class Yhe extends Xn{constructor(){super(...arguments);ht(this,"priority",70);ht(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,o){switch(r){case"K":return Br(uo.hour11h,n);case"Ko":return o.ordinalNumber(n,{unit:"hour"});default:return to(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,o){return n.getHours()>=12&&o<12?n.setHours(o+12,0,0,0):n.setHours(o,0,0,0),n}}class Ghe extends Xn{constructor(){super(...arguments);ht(this,"priority",70);ht(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,o){switch(r){case"k":return Br(uo.hour24h,n);case"ko":return o.ordinalNumber(n,{unit:"hour"});default:return to(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,o){const s=o<=24?o%24:o;return n.setHours(s,0,0,0),n}}class Whe extends Xn{constructor(){super(...arguments);ht(this,"priority",60);ht(this,"incompatibleTokens",["t","T"])}parse(n,r,o){switch(r){case"m":return Br(uo.minute,n);case"mo":return o.ordinalNumber(n,{unit:"minute"});default:return to(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,o){return n.setMinutes(o,0,0),n}}class Qhe extends Xn{constructor(){super(...arguments);ht(this,"priority",50);ht(this,"incompatibleTokens",["t","T"])}parse(n,r,o){switch(r){case"s":return Br(uo.second,n);case"so":return o.ordinalNumber(n,{unit:"second"});default:return to(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,o){return n.setSeconds(o,0),n}}class Khe extends Xn{constructor(){super(...arguments);ht(this,"priority",30);ht(this,"incompatibleTokens",["t","T"])}parse(n,r){const o=s=>Math.trunc(s*Math.pow(10,-r.length+3));return fo(to(r.length,n),o)}set(n,r,o){return n.setMilliseconds(o),n}}class Xhe extends Xn{constructor(){super(...arguments);ht(this,"priority",10);ht(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return Zl(Xl.basicOptionalMinutes,n);case"XX":return Zl(Xl.basic,n);case"XXXX":return Zl(Xl.basicOptionalSeconds,n);case"XXXXX":return Zl(Xl.extendedOptionalSeconds,n);case"XXX":default:return Zl(Xl.extended,n)}}set(n,r,o){return r.timestampIsSet?n:Vr(n,n.getTime()-c4(n)-o)}}class Zhe extends Xn{constructor(){super(...arguments);ht(this,"priority",10);ht(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return Zl(Xl.basicOptionalMinutes,n);case"xx":return Zl(Xl.basic,n);case"xxxx":return Zl(Xl.basicOptionalSeconds,n);case"xxxxx":return Zl(Xl.extendedOptionalSeconds,n);case"xxx":default:return Zl(Xl.extended,n)}}set(n,r,o){return r.timestampIsSet?n:Vr(n,n.getTime()-c4(n)-o)}}class Jhe extends Xn{constructor(){super(...arguments);ht(this,"priority",40);ht(this,"incompatibleTokens","*")}parse(n){return $F(n)}set(n,r,o){return[Vr(n,o*1e3),{timestampIsSet:!0}]}}class epe extends Xn{constructor(){super(...arguments);ht(this,"priority",20);ht(this,"incompatibleTokens","*")}parse(n){return $F(n)}set(n,r,o){return[Vr(n,o),{timestampIsSet:!0}]}}const tpe={G:new bhe,y:new She,Y:new whe,R:new xhe,u:new Che,Q:new _he,q:new The,M:new Ehe,L:new khe,w:new jhe,I:new Ahe,d:new Phe,D:new Nhe,E:new Ihe,e:new $he,c:new Lhe,i:new zhe,a:new Uhe,b:new Bhe,B:new Hhe,h:new qhe,H:new Vhe,K:new Yhe,k:new Ghe,m:new Whe,s:new Qhe,S:new Khe,X:new Xhe,x:new Zhe,t:new Jhe,T:new epe},npe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rpe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ope=/^'([^]*?)'?$/,spe=/''/g,ipe=/\S/,ape=/[a-zA-Z]/;function h8(t,e,n,r){var w,_,E,T;const o=()=>Vr(n,NaN),s=fhe(),i=s.locale??kE,l=s.firstWeekContainsDate??((_=(w=s.locale)==null?void 0:w.options)==null?void 0:_.firstWeekContainsDate)??1,c=s.weekStartsOn??((T=(E=s.locale)==null?void 0:E.options)==null?void 0:T.weekStartsOn)??0,d={firstWeekContainsDate:l,weekStartsOn:c,locale:i},f=[new vhe(r==null?void 0:r.in,n)],h=e.match(rpe).map(M=>{const j=M[0];if(j in d8){const A=d8[j];return A(M,i.formatLong)}return M}).join("").match(npe),p=[];for(let M of h){PF(M)&&f8(M,e,t),OF(M)&&f8(M,e,t);const j=M[0],A=tpe[j];if(A){const{incompatibleTokens:k}=A;if(Array.isArray(k)){const N=p.find(I=>k.includes(I.token)||I.token===j);if(N)throw new RangeError(`The format string mustn't contain \`${N.fullToken}\` and \`${M}\` at the same time`)}else if(A.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${M}\` and any other token at the same time`);p.push({token:j,fullToken:M});const R=A.run(t,M,i.match,d);if(!R)return o();f.push(R.setter),t=R.rest}else{if(j.match(ape))throw new RangeError("Format string contains an unescaped latin alphabet character `"+j+"`");if(M==="''"?M="'":j==="'"&&(M=lpe(M)),t.indexOf(M)===0)t=t.slice(M.length);else return o()}}if(t.length>0&&ipe.test(t))return o();const v=f.map(M=>M.priority).sort((M,j)=>j-M).filter((M,j,A)=>A.indexOf(M)===j).map(M=>f.filter(j=>j.priority===M).sort((j,A)=>A.subPriority-j.subPriority)).map(M=>M[0]);let g=Ar(n,r==null?void 0:r.in);if(isNaN(+g))return o();const S={};for(const M of v){if(!M.validate(g,d))return o();const j=M.set(g,S,d);Array.isArray(j)?(g=j[0],Object.assign(S,j[1])):g=j}return g}function lpe(t){return t.match(ope)[1].replace(spe,"'")}function IA(t,e,n){const[r,o]=Hx(n==null?void 0:n.in,t,e);return+ac(r,n)==+ac(o,n)}function cpe(t,e,n){const[r,o]=Hx(n==null?void 0:n.in,t,e);return r.getFullYear()===o.getFullYear()}function upe(t,e){return cpe(Vr(t,t),EE(t))}function dpe(t,e){return MF(Vr((e==null?void 0:e.in)||t,t),EE((e==null?void 0:e.in)||t))}function fpe(t,e,n){return TE(t,-1,n)}function hpe(t,e){return MF(Vr((e==null?void 0:e.in)||t,t),fpe(EE((e==null?void 0:e.in)||t)))}function zF(t,e){const n=()=>Vr(e==null?void 0:e.in,NaN),o=ype(t);let s;if(o.date){const d=vpe(o.date,2);s=bpe(d.restDateString,d.year)}if(!s||isNaN(+s))return n();const i=+s;let l=0,c;if(o.time&&(l=Spe(o.time),isNaN(l)))return n();if(o.timezone){if(c=wpe(o.timezone),isNaN(c))return n()}else{const d=new Date(i+l),f=Ar(0,e==null?void 0:e.in);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}return Ar(i+l+c,e==null?void 0:e.in)}const R3={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},ppe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,mpe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,gpe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ype(t){const e={},n=t.split(R3.dateTimeDelimiter);let r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],R3.timeZoneDelimiter.test(e.date)&&(e.date=t.split(R3.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){const o=R3.timezone.exec(r);o?(e.time=r.replace(o[1],""),e.timezone=o[1]):e.time=r}return e}function vpe(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,s=r[2]?parseInt(r[2]):null;return{year:s===null?o:s*100,restDateString:t.slice((r[1]||r[2]).length)}}function bpe(t,e){if(e===null)return new Date(NaN);const n=t.match(ppe);if(!n)return new Date(NaN);const r=!!n[4],o=qy(n[1]),s=qy(n[2])-1,i=qy(n[3]),l=qy(n[4]),c=qy(n[5])-1;if(r)return Epe(e,l,c)?xpe(e,l,c):new Date(NaN);{const d=new Date(0);return!_pe(e,s,i)||!Tpe(e,o)?new Date(NaN):(d.setUTCFullYear(e,s,Math.max(o,i)),d)}}function qy(t){return t?parseInt(t):1}function Spe(t){const e=t.match(mpe);if(!e)return NaN;const n=G_(e[1]),r=G_(e[2]),o=G_(e[3]);return kpe(n,r,o)?n*_E+r*CE+o*1e3:NaN}function G_(t){return t&&parseFloat(t.replace(",","."))||0}function wpe(t){if(t==="Z")return 0;const e=t.match(gpe);if(!e)return 0;const n=e[1]==="+"?-1:1,r=parseInt(e[2]),o=e[3]&&parseInt(e[3])||0;return Mpe(r,o)?n*(r*_E+o*CE):NaN}function xpe(t,e,n){const r=new Date(0);r.setUTCFullYear(t,0,4);const o=r.getUTCDay()||7,s=(e-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+s),r}const Cpe=[31,null,31,30,31,30,31,31,30,31,30,31];function UF(t){return t%400===0||t%4===0&&t%100!==0}function _pe(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(Cpe[e]||(UF(t)?29:28))}function Tpe(t,e){return e>=1&&e<=(UF(t)?366:365)}function Epe(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function kpe(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function Mpe(t,e){return e>=0&&e<=59}function jpe(t){const e={},n=vp();for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]===void 0?delete e[r]:e[r]=t[r]);yfe(e)}function Vy(t,e){if(t.one!==void 0&&e===1)return t.one;const n=e%10,r=e%100;return n===1&&r!==11?t.singularNominative.replace("{{count}}",String(e)):n>=2&&n<=4&&(r<10||r>20)?t.singularGenitive.replace("{{count}}",String(e)):t.pluralGenitive.replace("{{count}}",String(e))}function Ns(t){return(e,n)=>n!=null&&n.addSuffix?n.comparison&&n.comparison>0?t.future?Vy(t.future,e):"через "+Vy(t.regular,e):t.past?Vy(t.past,e):Vy(t.regular,e)+" назад":Vy(t.regular,e)}const Dpe={lessThanXSeconds:Ns({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:Ns({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:(t,e)=>e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"через полминуты":"полминуты назад":"полминуты",lessThanXMinutes:Ns({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:Ns({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:Ns({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:Ns({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:Ns({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:Ns({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:Ns({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:Ns({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:Ns({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:Ns({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:Ns({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:Ns({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:Ns({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},Ape=(t,e,n)=>Dpe[t](e,n),Rpe={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},Ope={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},Ppe={any:"{{date}}, {{time}}"},Npe={date:R1({formats:Rpe,defaultWidth:"full"}),time:R1({formats:Ope,defaultWidth:"full"}),dateTime:R1({formats:Ppe,defaultWidth:"any"})},RE=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function Ipe(t){const e=RE[t];switch(t){case 0:return"'в прошлое "+e+" в' p";case 1:case 2:case 4:return"'в прошлый "+e+" в' p";case 3:case 5:case 6:return"'в прошлую "+e+" в' p"}}function $A(t){const e=RE[t];return t===2?"'во "+e+" в' p":"'в "+e+" в' p"}function $pe(t){const e=RE[t];switch(t){case 0:return"'в следующее "+e+" в' p";case 1:case 2:case 4:return"'в следующий "+e+" в' p";case 3:case 5:case 6:return"'в следующую "+e+" в' p"}}const Lpe={lastWeek:(t,e,n)=>{const r=t.getDay();return IA(t,e,n)?$A(r):Ipe(r)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:(t,e,n)=>{const r=t.getDay();return IA(t,e,n)?$A(r):$pe(r)},other:"P"},Fpe=(t,e,n,r)=>{const o=Lpe[t];return typeof o=="function"?o(e,n,r):o},zpe={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},Upe={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},Bpe={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},Hpe={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},qpe={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},Vpe={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},Ype={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},Gpe=(t,e)=>{const n=Number(t),r=e==null?void 0:e.unit;let o;return r==="date"?o="-е":r==="week"||r==="minute"||r==="second"?o="-я":o="-й",n+o},Wpe={ordinalNumber:Gpe,era:Ql({values:zpe,defaultWidth:"wide"}),quarter:Ql({values:Upe,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Ql({values:Bpe,defaultWidth:"wide",formattingValues:Hpe,defaultFormattingWidth:"wide"}),day:Ql({values:qpe,defaultWidth:"wide"}),dayPeriod:Ql({values:Vpe,defaultWidth:"any",formattingValues:Ype,defaultFormattingWidth:"wide"})},Qpe=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,Kpe=/\d+/i,Xpe={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},Zpe={any:[/^д/i,/^н/i]},Jpe={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},eme={any:[/1/i,/2/i,/3/i,/4/i]},tme={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},nme={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},rme={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},ome={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},sme={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},ime={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},ame={ordinalNumber:jF({matchPattern:Qpe,parsePattern:Kpe,valueCallback:t=>parseInt(t,10)}),era:Kl({matchPatterns:Xpe,defaultMatchWidth:"wide",parsePatterns:Zpe,defaultParseWidth:"any"}),quarter:Kl({matchPatterns:Jpe,defaultMatchWidth:"wide",parsePatterns:eme,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Kl({matchPatterns:tme,defaultMatchWidth:"wide",parsePatterns:nme,defaultParseWidth:"any"}),day:Kl({matchPatterns:rme,defaultMatchWidth:"wide",parsePatterns:ome,defaultParseWidth:"any"}),dayPeriod:Kl({matchPatterns:sme,defaultMatchWidth:"wide",parsePatterns:ime,defaultParseWidth:"any"})},lme={code:"ru",formatDistance:Ape,formatLong:Npe,formatRelative:Fpe,localize:Wpe,match:ame,options:{weekStartsOn:1,firstWeekContainsDate:1}},cme=()=>{const t=be.c(3),{i18n:e}=at();let n,r;t[0]!==e.language?(n=()=>{jpe({locale:{en:kE,ru:lme}[e.language]})},r=[e.language],t[0]=e.language,t[1]=n,t[2]=r):(n=t[1],r=t[2]),D.useEffect(n,r)};var W_,LA;function xg(){return LA||(LA=1,W_=TypeError),W_}const ume={},dme=Object.freeze(Object.defineProperty({__proto__:null,default:ume},Symbol.toStringTag,{value:"Module"})),fme=CH(dme);var Q_,FA;function qx(){if(FA)return Q_;FA=1;var t=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=t&&e&&typeof e.get=="function"?e.get:null,r=t&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,i=o&&s&&typeof s.get=="function"?s.get:null,l=o&&Set.prototype.forEach,c=typeof WeakMap=="function"&&WeakMap.prototype,d=c?WeakMap.prototype.has:null,f=typeof WeakSet=="function"&&WeakSet.prototype,h=f?WeakSet.prototype.has:null,p=typeof WeakRef=="function"&&WeakRef.prototype,v=p?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,S=Object.prototype.toString,w=Function.prototype.toString,_=String.prototype.match,E=String.prototype.slice,T=String.prototype.replace,M=String.prototype.toUpperCase,j=String.prototype.toLowerCase,A=RegExp.prototype.test,k=Array.prototype.concat,R=Array.prototype.join,N=Array.prototype.slice,I=Math.floor,L=typeof BigInt=="function"?BigInt.prototype.valueOf:null,F=Object.getOwnPropertySymbols,H=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,B=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Y=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===B||!0)?Symbol.toStringTag:null,U=Object.prototype.propertyIsEnumerable,q=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(he){return he.__proto__}:null);function z(he,Ce){if(he===1/0||he===-1/0||he!==he||he&&he>-1e3&&he<1e3||A.call(/e/,Ce))return Ce;var St=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof he=="number"){var gt=he<0?-I(-he):I(he);if(gt!==he){var Ut=String(gt),Ot=E.call(Ce,Ut.length+1);return T.call(Ut,St,"$&_")+"."+T.call(T.call(Ot,/([0-9]{3})/g,"$&_"),/_$/,"")}}return T.call(Ce,St,"$&_")}var W=fme,K=W.custom,G=De(K)?K:null,X={__proto__:null,double:'"',single:"'"},J={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Q_=function he(Ce,St,gt,Ut){var Ot=St||{};if(Xe(Ot,"quoteStyle")&&!Xe(X,Ot.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Xe(Ot,"maxStringLength")&&(typeof Ot.maxStringLength=="number"?Ot.maxStringLength<0&&Ot.maxStringLength!==1/0:Ot.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Sn=Xe(Ot,"customInspect")?Ot.customInspect:!0;if(typeof Sn!="boolean"&&Sn!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Xe(Ot,"indent")&&Ot.indent!==null&&Ot.indent!=="	"&&!(parseInt(Ot.indent,10)===Ot.indent&&Ot.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Xe(Ot,"numericSeparator")&&typeof Ot.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Je=Ot.numericSeparator;if(typeof Ce>"u")return"undefined";if(Ce===null)return"null";if(typeof Ce=="boolean")return Ce?"true":"false";if(typeof Ce=="string")return Tt(Ce,Ot);if(typeof Ce=="number"){if(Ce===0)return 1/0/Ce>0?"0":"-0";var vt=String(Ce);return Je?z(Ce,vt):vt}if(typeof Ce=="bigint"){var $t=String(Ce)+"n";return Je?z(Ce,$t):$t}var dn=typeof Ot.depth>"u"?5:Ot.depth;if(typeof gt>"u"&&(gt=0),gt>=dn&&dn>0&&typeof Ce=="object")return oe(Ce)?"[Array]":"[Object]";var Yt=Jt(Ot,gt);if(typeof Ut>"u")Ut=[];else if(st(Ut,Ce)>=0)return"[Circular]";function Gt(hn,nn,zn){if(nn&&(Ut=N.call(Ut),Ut.push(nn)),zn){var Mo={depth:Ot.depth};return Xe(Ot,"quoteStyle")&&(Mo.quoteStyle=Ot.quoteStyle),he(hn,Mo,gt+1,Ut)}return he(hn,Ot,gt+1,Ut)}if(typeof Ce=="function"&&!pe(Ce)){var $n=ot(Ce),Tn=It(Ce,Gt);return"[Function"+($n?": "+$n:" (anonymous)")+"]"+(Tn.length>0?" { "+R.call(Tn,", ")+" }":"")}if(De(Ce)){var le=B?T.call(String(Ce),/^(Symbol\(.*\))_[^)]*$/,"$1"):H.call(Ce);return typeof Ce=="object"&&!B?Xt(le):le}if(bn(Ce)){for(var ce="<"+j.call(String(Ce.nodeName)),ye=Ce.attributes||[],$e=0;$e<ye.length;$e++)ce+=" "+ye[$e].name+"="+ne(se(ye[$e].value),"double",Ot);return ce+=">",Ce.childNodes&&Ce.childNodes.length&&(ce+="..."),ce+="</"+j.call(String(Ce.nodeName))+">",ce}if(oe(Ce)){if(Ce.length===0)return"[]";var Ye=It(Ce,Gt);return Yt&&!Zt(Ye)?"["+en(Ye,Yt)+"]":"[ "+R.call(Ye,", ")+" ]"}if(fe(Ce)){var tt=It(Ce,Gt);return!("cause"in Error.prototype)&&"cause"in Ce&&!U.call(Ce,"cause")?"{ ["+String(Ce)+"] "+R.call(k.call("[cause]: "+Gt(Ce.cause),tt),", ")+" }":tt.length===0?"["+String(Ce)+"]":"{ ["+String(Ce)+"] "+R.call(tt,", ")+" }"}if(typeof Ce=="object"&&Sn){if(G&&typeof Ce[G]=="function"&&W)return W(Ce,{depth:dn-gt});if(Sn!=="symbol"&&typeof Ce.inspect=="function")return Ce.inspect()}if(mt(Ce)){var Et=[];return r&&r.call(Ce,function(hn,nn){Et.push(Gt(nn,Ce,!0)+" => "+Gt(hn,Ce))}),un("Map",n.call(Ce),Et,Yt)}if(ct(Ce)){var nt=[];return l&&l.call(Ce,function(hn){nt.push(Gt(hn,Ce))}),un("Set",i.call(Ce),nt,Yt)}if(bt(Ce))return _n("WeakMap");if(cn(Ce))return _n("WeakSet");if(At(Ce))return _n("WeakRef");if(we(Ce))return Xt(Gt(Number(Ce)));if(Ze(Ce))return Xt(Gt(L.call(Ce)));if(_e(Ce))return Xt(g.call(Ce));if(Te(Ce))return Xt(Gt(String(Ce)));if(typeof window<"u"&&Ce===window)return"{ [object Window] }";if(typeof globalThis<"u"&&Ce===globalThis||typeof x1<"u"&&Ce===x1)return"{ [object globalThis] }";if(!de(Ce)&&!pe(Ce)){var et=It(Ce,Gt),Ge=q?q(Ce)===Object.prototype:Ce instanceof Object||Ce.constructor===Object,ut=Ce instanceof Object?"":"null prototype",Vt=!Ge&&Y&&Object(Ce)===Ce&&Y in Ce?E.call(Ke(Ce),8,-1):ut?"Object":"",fn=Ge||typeof Ce.constructor!="function"?"":Ce.constructor.name?Ce.constructor.name+" ":"",Hn=fn+(Vt||ut?"["+R.call(k.call([],Vt||[],ut||[]),": ")+"] ":"");return et.length===0?Hn+"{}":Yt?Hn+"{"+en(et,Yt)+"}":Hn+"{ "+R.call(et,", ")+" }"}return String(Ce)};function ne(he,Ce,St){var gt=St.quoteStyle||Ce,Ut=X[gt];return Ut+he+Ut}function se(he){return T.call(String(he),/"/g,"&quot;")}function ie(he){return!Y||!(typeof he=="object"&&(Y in he||typeof he[Y]<"u"))}function oe(he){return Ke(he)==="[object Array]"&&ie(he)}function de(he){return Ke(he)==="[object Date]"&&ie(he)}function pe(he){return Ke(he)==="[object RegExp]"&&ie(he)}function fe(he){return Ke(he)==="[object Error]"&&ie(he)}function Te(he){return Ke(he)==="[object String]"&&ie(he)}function we(he){return Ke(he)==="[object Number]"&&ie(he)}function _e(he){return Ke(he)==="[object Boolean]"&&ie(he)}function De(he){if(B)return he&&typeof he=="object"&&he instanceof Symbol;if(typeof he=="symbol")return!0;if(!he||typeof he!="object"||!H)return!1;try{return H.call(he),!0}catch{}return!1}function Ze(he){if(!he||typeof he!="object"||!L)return!1;try{return L.call(he),!0}catch{}return!1}var ze=Object.prototype.hasOwnProperty||function(he){return he in this};function Xe(he,Ce){return ze.call(he,Ce)}function Ke(he){return S.call(he)}function ot(he){if(he.name)return he.name;var Ce=_.call(w.call(he),/^function\s*([\w$]+)/);return Ce?Ce[1]:null}function st(he,Ce){if(he.indexOf)return he.indexOf(Ce);for(var St=0,gt=he.length;St<gt;St++)if(he[St]===Ce)return St;return-1}function mt(he){if(!n||!he||typeof he!="object")return!1;try{n.call(he);try{i.call(he)}catch{return!0}return he instanceof Map}catch{}return!1}function bt(he){if(!d||!he||typeof he!="object")return!1;try{d.call(he,d);try{h.call(he,h)}catch{return!0}return he instanceof WeakMap}catch{}return!1}function At(he){if(!v||!he||typeof he!="object")return!1;try{return v.call(he),!0}catch{}return!1}function ct(he){if(!i||!he||typeof he!="object")return!1;try{i.call(he);try{n.call(he)}catch{return!0}return he instanceof Set}catch{}return!1}function cn(he){if(!h||!he||typeof he!="object")return!1;try{h.call(he,h);try{d.call(he,d)}catch{return!0}return he instanceof WeakSet}catch{}return!1}function bn(he){return!he||typeof he!="object"?!1:typeof HTMLElement<"u"&&he instanceof HTMLElement?!0:typeof he.nodeName=="string"&&typeof he.getAttribute=="function"}function Tt(he,Ce){if(he.length>Ce.maxStringLength){var St=he.length-Ce.maxStringLength,gt="... "+St+" more character"+(St>1?"s":"");return Tt(E.call(he,0,Ce.maxStringLength),Ce)+gt}var Ut=J[Ce.quoteStyle||"single"];Ut.lastIndex=0;var Ot=T.call(T.call(he,Ut,"\\$1"),/[\x00-\x1f]/g,Ft);return ne(Ot,"single",Ce)}function Ft(he){var Ce=he.charCodeAt(0),St={8:"b",9:"t",10:"n",12:"f",13:"r"}[Ce];return St?"\\"+St:"\\x"+(Ce<16?"0":"")+M.call(Ce.toString(16))}function Xt(he){return"Object("+he+")"}function _n(he){return he+" { ? }"}function un(he,Ce,St,gt){var Ut=gt?en(St,gt):R.call(St,", ");return he+" ("+Ce+") {"+Ut+"}"}function Zt(he){for(var Ce=0;Ce<he.length;Ce++)if(st(he[Ce],`
`)>=0)return!1;return!0}function Jt(he,Ce){var St;if(he.indent==="	")St="	";else if(typeof he.indent=="number"&&he.indent>0)St=R.call(Array(he.indent+1)," ");else return null;return{base:St,prev:R.call(Array(Ce+1),St)}}function en(he,Ce){if(he.length===0)return"";var St=`
`+Ce.prev+Ce.base;return St+R.call(he,","+St)+`
`+Ce.prev}function It(he,Ce){var St=oe(he),gt=[];if(St){gt.length=he.length;for(var Ut=0;Ut<he.length;Ut++)gt[Ut]=Xe(he,Ut)?Ce(he[Ut],he):""}var Ot=typeof F=="function"?F(he):[],Sn;if(B){Sn={};for(var Je=0;Je<Ot.length;Je++)Sn["$"+Ot[Je]]=Ot[Je]}for(var vt in he)Xe(he,vt)&&(St&&String(Number(vt))===vt&&vt<he.length||B&&Sn["$"+vt]instanceof Symbol||(A.call(/[^\w$]/,vt)?gt.push(Ce(vt,he)+": "+Ce(he[vt],he)):gt.push(vt+": "+Ce(he[vt],he))));if(typeof F=="function")for(var $t=0;$t<Ot.length;$t++)U.call(he,Ot[$t])&&gt.push("["+Ce(Ot[$t])+"]: "+Ce(he[Ot[$t]],he));return gt}return Q_}var K_,zA;function hme(){if(zA)return K_;zA=1;var t=qx(),e=xg(),n=function(l,c,d){for(var f=l,h;(h=f.next)!=null;f=h)if(h.key===c)return f.next=h.next,d||(h.next=l.next,l.next=h),h},r=function(l,c){if(l){var d=n(l,c);return d&&d.value}},o=function(l,c,d){var f=n(l,c);f?f.value=d:l.next={key:c,next:l.next,value:d}},s=function(l,c){return l?!!n(l,c):!1},i=function(l,c){if(l)return n(l,c,!0)};return K_=function(){var c,d={assert:function(f){if(!d.has(f))throw new e("Side channel does not contain "+t(f))},delete:function(f){var h=c&&c.next,p=i(c,f);return p&&h&&h===p&&(c=void 0),!!p},get:function(f){return r(c,f)},has:function(f){return s(c,f)},set:function(f,h){c||(c={next:void 0}),o(c,f,h)}};return d},K_}var X_,UA;function BF(){return UA||(UA=1,X_=Object),X_}var Z_,BA;function pme(){return BA||(BA=1,Z_=Error),Z_}var J_,HA;function mme(){return HA||(HA=1,J_=EvalError),J_}var e6,qA;function gme(){return qA||(qA=1,e6=RangeError),e6}var t6,VA;function yme(){return VA||(VA=1,t6=ReferenceError),t6}var n6,YA;function vme(){return YA||(YA=1,n6=SyntaxError),n6}var r6,GA;function bme(){return GA||(GA=1,r6=URIError),r6}var o6,WA;function Sme(){return WA||(WA=1,o6=Math.abs),o6}var s6,QA;function wme(){return QA||(QA=1,s6=Math.floor),s6}var i6,KA;function xme(){return KA||(KA=1,i6=Math.max),i6}var a6,XA;function Cme(){return XA||(XA=1,a6=Math.min),a6}var l6,ZA;function _me(){return ZA||(ZA=1,l6=Math.pow),l6}var c6,JA;function Tme(){return JA||(JA=1,c6=Math.round),c6}var u6,eR;function Eme(){return eR||(eR=1,u6=Number.isNaN||function(e){return e!==e}),u6}var d6,tR;function kme(){if(tR)return d6;tR=1;var t=Eme();return d6=function(n){return t(n)||n===0?n:n<0?-1:1},d6}var f6,nR;function Mme(){return nR||(nR=1,f6=Object.getOwnPropertyDescriptor),f6}var h6,rR;function HF(){if(rR)return h6;rR=1;var t=Mme();if(t)try{t([],"length")}catch{t=null}return h6=t,h6}var p6,oR;function jme(){if(oR)return p6;oR=1;var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return p6=t,p6}var m6,sR;function Dme(){return sR||(sR=1,m6=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;e[n]=o;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,n);if(l.value!==o||l.enumerable!==!0)return!1}return!0}),m6}var g6,iR;function Ame(){if(iR)return g6;iR=1;var t=typeof Symbol<"u"&&Symbol,e=Dme();return g6=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},g6}var y6,aR;function qF(){return aR||(aR=1,y6=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),y6}var v6,lR;function VF(){if(lR)return v6;lR=1;var t=BF();return v6=t.getPrototypeOf||null,v6}var b6,cR;function Rme(){if(cR)return b6;cR=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,n=Math.max,r="[object Function]",o=function(c,d){for(var f=[],h=0;h<c.length;h+=1)f[h]=c[h];for(var p=0;p<d.length;p+=1)f[p+c.length]=d[p];return f},s=function(c,d){for(var f=[],h=d,p=0;h<c.length;h+=1,p+=1)f[p]=c[h];return f},i=function(l,c){for(var d="",f=0;f<l.length;f+=1)d+=l[f],f+1<l.length&&(d+=c);return d};return b6=function(c){var d=this;if(typeof d!="function"||e.apply(d)!==r)throw new TypeError(t+d);for(var f=s(arguments,1),h,p=function(){if(this instanceof h){var _=d.apply(this,o(f,arguments));return Object(_)===_?_:this}return d.apply(c,o(f,arguments))},v=n(0,d.length-f.length),g=[],S=0;S<v;S++)g[S]="$"+S;if(h=Function("binder","return function ("+i(g,",")+"){ return binder.apply(this,arguments); }")(p),d.prototype){var w=function(){};w.prototype=d.prototype,h.prototype=new w,w.prototype=null}return h},b6}var S6,uR;function Vx(){if(uR)return S6;uR=1;var t=Rme();return S6=Function.prototype.bind||t,S6}var w6,dR;function OE(){return dR||(dR=1,w6=Function.prototype.call),w6}var x6,fR;function YF(){return fR||(fR=1,x6=Function.prototype.apply),x6}var C6,hR;function Ome(){return hR||(hR=1,C6=typeof Reflect<"u"&&Reflect&&Reflect.apply),C6}var _6,pR;function Pme(){if(pR)return _6;pR=1;var t=Vx(),e=YF(),n=OE(),r=Ome();return _6=r||t.call(n,e),_6}var T6,mR;function GF(){if(mR)return T6;mR=1;var t=Vx(),e=xg(),n=OE(),r=Pme();return T6=function(s){if(s.length<1||typeof s[0]!="function")throw new e("a function is required");return r(t,n,s)},T6}var E6,gR;function Nme(){if(gR)return E6;gR=1;var t=GF(),e=HF(),n;try{n=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var r=!!n&&e&&e(Object.prototype,"__proto__"),o=Object,s=o.getPrototypeOf;return E6=r&&typeof r.get=="function"?t([r.get]):typeof s=="function"?function(l){return s(l==null?l:o(l))}:!1,E6}var k6,yR;function Ime(){if(yR)return k6;yR=1;var t=qF(),e=VF(),n=Nme();return k6=t?function(o){return t(o)}:e?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return e(o)}:n?function(o){return n(o)}:null,k6}var M6,vR;function $me(){if(vR)return M6;vR=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,n=Vx();return M6=n.call(t,e),M6}var j6,bR;function PE(){if(bR)return j6;bR=1;var t,e=BF(),n=pme(),r=mme(),o=gme(),s=yme(),i=vme(),l=xg(),c=bme(),d=Sme(),f=wme(),h=xme(),p=Cme(),v=_me(),g=Tme(),S=kme(),w=Function,_=function(pe){try{return w('"use strict"; return ('+pe+").constructor;")()}catch{}},E=HF(),T=jme(),M=function(){throw new l},j=E?(function(){try{return arguments.callee,M}catch{try{return E(arguments,"callee").get}catch{return M}}})():M,A=Ame()(),k=Ime(),R=VF(),N=qF(),I=YF(),L=OE(),F={},H=typeof Uint8Array>"u"||!k?t:k(Uint8Array),B={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":A&&k?k([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":F,"%AsyncGenerator%":F,"%AsyncGeneratorFunction%":F,"%AsyncIteratorPrototype%":F,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":r,"%Float16Array%":typeof Float16Array>"u"?t:Float16Array,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":F,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&k?k(k([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!k?t:k(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!A||!k?t:k(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&k?k(""[Symbol.iterator]()):t,"%Symbol%":A?Symbol:t,"%SyntaxError%":i,"%ThrowTypeError%":j,"%TypedArray%":H,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":I,"%Object.defineProperty%":T,"%Object.getPrototypeOf%":R,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":h,"%Math.min%":p,"%Math.pow%":v,"%Math.round%":g,"%Math.sign%":S,"%Reflect.getPrototypeOf%":N};if(k)try{null.error}catch(pe){var Y=k(k(pe));B["%Error.prototype%"]=Y}var U=function pe(fe){var Te;if(fe==="%AsyncFunction%")Te=_("async function () {}");else if(fe==="%GeneratorFunction%")Te=_("function* () {}");else if(fe==="%AsyncGeneratorFunction%")Te=_("async function* () {}");else if(fe==="%AsyncGenerator%"){var we=pe("%AsyncGeneratorFunction%");we&&(Te=we.prototype)}else if(fe==="%AsyncIteratorPrototype%"){var _e=pe("%AsyncGenerator%");_e&&k&&(Te=k(_e.prototype))}return B[fe]=Te,Te},q={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},z=Vx(),W=$me(),K=z.call(L,Array.prototype.concat),G=z.call(I,Array.prototype.splice),X=z.call(L,String.prototype.replace),J=z.call(L,String.prototype.slice),ne=z.call(L,RegExp.prototype.exec),se=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ie=/\\(\\)?/g,oe=function(fe){var Te=J(fe,0,1),we=J(fe,-1);if(Te==="%"&&we!=="%")throw new i("invalid intrinsic syntax, expected closing `%`");if(we==="%"&&Te!=="%")throw new i("invalid intrinsic syntax, expected opening `%`");var _e=[];return X(fe,se,function(De,Ze,ze,Xe){_e[_e.length]=ze?X(Xe,ie,"$1"):Ze||De}),_e},de=function(fe,Te){var we=fe,_e;if(W(q,we)&&(_e=q[we],we="%"+_e[0]+"%"),W(B,we)){var De=B[we];if(De===F&&(De=U(we)),typeof De>"u"&&!Te)throw new l("intrinsic "+fe+" exists, but is not available. Please file an issue!");return{alias:_e,name:we,value:De}}throw new i("intrinsic "+fe+" does not exist!")};return j6=function(fe,Te){if(typeof fe!="string"||fe.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Te!="boolean")throw new l('"allowMissing" argument must be a boolean');if(ne(/^%?[^%]*%?$/,fe)===null)throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var we=oe(fe),_e=we.length>0?we[0]:"",De=de("%"+_e+"%",Te),Ze=De.name,ze=De.value,Xe=!1,Ke=De.alias;Ke&&(_e=Ke[0],G(we,K([0,1],Ke)));for(var ot=1,st=!0;ot<we.length;ot+=1){var mt=we[ot],bt=J(mt,0,1),At=J(mt,-1);if((bt==='"'||bt==="'"||bt==="`"||At==='"'||At==="'"||At==="`")&&bt!==At)throw new i("property names with quotes must have matching quotes");if((mt==="constructor"||!st)&&(Xe=!0),_e+="."+mt,Ze="%"+_e+"%",W(B,Ze))ze=B[Ze];else if(ze!=null){if(!(mt in ze)){if(!Te)throw new l("base intrinsic for "+fe+" exists, but the property is not available.");return}if(E&&ot+1>=we.length){var ct=E(ze,mt);st=!!ct,st&&"get"in ct&&!("originalValue"in ct.get)?ze=ct.get:ze=ze[mt]}else st=W(ze,mt),ze=ze[mt];st&&!Xe&&(B[Ze]=ze)}}return ze},j6}var D6,SR;function WF(){if(SR)return D6;SR=1;var t=PE(),e=GF(),n=e([t("%String.prototype.indexOf%")]);return D6=function(o,s){var i=t(o,!!s);return typeof i=="function"&&n(o,".prototype.")>-1?e([i]):i},D6}var A6,wR;function QF(){if(wR)return A6;wR=1;var t=PE(),e=WF(),n=qx(),r=xg(),o=t("%Map%",!0),s=e("Map.prototype.get",!0),i=e("Map.prototype.set",!0),l=e("Map.prototype.has",!0),c=e("Map.prototype.delete",!0),d=e("Map.prototype.size",!0);return A6=!!o&&function(){var h,p={assert:function(v){if(!p.has(v))throw new r("Side channel does not contain "+n(v))},delete:function(v){if(h){var g=c(h,v);return d(h)===0&&(h=void 0),g}return!1},get:function(v){if(h)return s(h,v)},has:function(v){return h?l(h,v):!1},set:function(v,g){h||(h=new o),i(h,v,g)}};return p},A6}var R6,xR;function Lme(){if(xR)return R6;xR=1;var t=PE(),e=WF(),n=qx(),r=QF(),o=xg(),s=t("%WeakMap%",!0),i=e("WeakMap.prototype.get",!0),l=e("WeakMap.prototype.set",!0),c=e("WeakMap.prototype.has",!0),d=e("WeakMap.prototype.delete",!0);return R6=s?function(){var h,p,v={assert:function(g){if(!v.has(g))throw new o("Side channel does not contain "+n(g))},delete:function(g){if(s&&g&&(typeof g=="object"||typeof g=="function")){if(h)return d(h,g)}else if(r&&p)return p.delete(g);return!1},get:function(g){return s&&g&&(typeof g=="object"||typeof g=="function")&&h?i(h,g):p&&p.get(g)},has:function(g){return s&&g&&(typeof g=="object"||typeof g=="function")&&h?c(h,g):!!p&&p.has(g)},set:function(g,S){s&&g&&(typeof g=="object"||typeof g=="function")?(h||(h=new s),l(h,g,S)):r&&(p||(p=r()),p.set(g,S))}};return v}:r,R6}var O6,CR;function KF(){if(CR)return O6;CR=1;var t=xg(),e=qx(),n=hme(),r=QF(),o=Lme(),s=o||r||n;return O6=function(){var l,c={assert:function(d){if(!c.has(d))throw new t("Side channel does not contain "+e(d))},delete:function(d){return!!l&&l.delete(d)},get:function(d){return l&&l.get(d)},has:function(d){return!!l&&l.has(d)},set:function(d,f){l||(l=s()),l.set(d,f)}};return c},O6}var P6,_R;function NE(){if(_R)return P6;_R=1;var t=String.prototype.replace,e=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};return P6={default:n.RFC3986,formatters:{RFC1738:function(r){return t.call(r,e,"+")},RFC3986:function(r){return String(r)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986},P6}var N6,TR;function XF(){if(TR)return N6;TR=1;var t=NE(),e=KF(),n=Object.prototype.hasOwnProperty,r=Array.isArray,o=e(),s=function(k,R){return o.set(k,R),k},i=function(k){return o.has(k)},l=function(k){return o.get(k)},c=function(k,R){o.set(k,R)},d=(function(){for(var A=[],k=0;k<256;++k)A.push("%"+((k<16?"0":"")+k.toString(16)).toUpperCase());return A})(),f=function(k){for(;k.length>1;){var R=k.pop(),N=R.obj[R.prop];if(r(N)){for(var I=[],L=0;L<N.length;++L)typeof N[L]<"u"&&I.push(N[L]);R.obj[R.prop]=I}}},h=function(k,R){for(var N=R&&R.plainObjects?{__proto__:null}:{},I=0;I<k.length;++I)typeof k[I]<"u"&&(N[I]=k[I]);return N},p=function A(k,R,N){if(!R)return k;if(typeof R!="object"&&typeof R!="function"){if(r(k))k.push(R);else if(k&&typeof k=="object")if(i(k)){var I=l(k)+1;k[I]=R,c(k,I)}else(N&&(N.plainObjects||N.allowPrototypes)||!n.call(Object.prototype,R))&&(k[R]=!0);else return[k,R];return k}if(!k||typeof k!="object"){if(i(R)){for(var L=Object.keys(R),F=N&&N.plainObjects?{__proto__:null,0:k}:{0:k},H=0;H<L.length;H++){var B=parseInt(L[H],10);F[B+1]=R[L[H]]}return s(F,l(R)+1)}return[k].concat(R)}var Y=k;return r(k)&&!r(R)&&(Y=h(k,N)),r(k)&&r(R)?(R.forEach(function(U,q){if(n.call(k,q)){var z=k[q];z&&typeof z=="object"&&U&&typeof U=="object"?k[q]=A(z,U,N):k.push(U)}else k[q]=U}),k):Object.keys(R).reduce(function(U,q){var z=R[q];return n.call(U,q)?U[q]=A(U[q],z,N):U[q]=z,U},Y)},v=function(k,R){return Object.keys(R).reduce(function(N,I){return N[I]=R[I],N},k)},g=function(A,k,R){var N=A.replace(/\+/g," ");if(R==="iso-8859-1")return N.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(N)}catch{return N}},S=1024,w=function(k,R,N,I,L){if(k.length===0)return k;var F=k;if(typeof k=="symbol"?F=Symbol.prototype.toString.call(k):typeof k!="string"&&(F=String(k)),N==="iso-8859-1")return escape(F).replace(/%u[0-9a-f]{4}/gi,function(W){return"%26%23"+parseInt(W.slice(2),16)+"%3B"});for(var H="",B=0;B<F.length;B+=S){for(var Y=F.length>=S?F.slice(B,B+S):F,U=[],q=0;q<Y.length;++q){var z=Y.charCodeAt(q);if(z===45||z===46||z===95||z===126||z>=48&&z<=57||z>=65&&z<=90||z>=97&&z<=122||L===t.RFC1738&&(z===40||z===41)){U[U.length]=Y.charAt(q);continue}if(z<128){U[U.length]=d[z];continue}if(z<2048){U[U.length]=d[192|z>>6]+d[128|z&63];continue}if(z<55296||z>=57344){U[U.length]=d[224|z>>12]+d[128|z>>6&63]+d[128|z&63];continue}q+=1,z=65536+((z&1023)<<10|Y.charCodeAt(q)&1023),U[U.length]=d[240|z>>18]+d[128|z>>12&63]+d[128|z>>6&63]+d[128|z&63]}H+=U.join("")}return H},_=function(k){for(var R=[{obj:{o:k},prop:"o"}],N=[],I=0;I<R.length;++I)for(var L=R[I],F=L.obj[L.prop],H=Object.keys(F),B=0;B<H.length;++B){var Y=H[B],U=F[Y];typeof U=="object"&&U!==null&&N.indexOf(U)===-1&&(R.push({obj:F,prop:Y}),N.push(U))}return f(R),k},E=function(k){return Object.prototype.toString.call(k)==="[object RegExp]"},T=function(k){return!k||typeof k!="object"?!1:!!(k.constructor&&k.constructor.isBuffer&&k.constructor.isBuffer(k))},M=function(k,R,N,I){if(i(k)){var L=l(k)+1;return k[L]=R,c(k,L),k}var F=[].concat(k,R);return F.length>N?s(h(F,{plainObjects:I}),F.length-1):F},j=function(k,R){if(r(k)){for(var N=[],I=0;I<k.length;I+=1)N.push(R(k[I]));return N}return R(k)};return N6={arrayToObject:h,assign:v,combine:M,compact:_,decode:g,encode:w,isBuffer:T,isOverflow:i,isRegExp:E,maybeMap:j,merge:p},N6}var I6,ER;function Fme(){if(ER)return I6;ER=1;var t=KF(),e=XF(),n=NE(),r=Object.prototype.hasOwnProperty,o={brackets:function(w){return w+"[]"},comma:"comma",indices:function(w,_){return w+"["+_+"]"},repeat:function(w){return w}},s=Array.isArray,i=Array.prototype.push,l=function(S,w){i.apply(S,s(w)?w:[w])},c=Date.prototype.toISOString,d=n.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:n.formatters[d],indices:!1,serializeDate:function(w){return c.call(w)},skipNulls:!1,strictNullHandling:!1},h=function(w){return typeof w=="string"||typeof w=="number"||typeof w=="boolean"||typeof w=="symbol"||typeof w=="bigint"},p={},v=function S(w,_,E,T,M,j,A,k,R,N,I,L,F,H,B,Y,U,q){for(var z=w,W=q,K=0,G=!1;(W=W.get(p))!==void 0&&!G;){var X=W.get(w);if(K+=1,typeof X<"u"){if(X===K)throw new RangeError("Cyclic object value");G=!0}typeof W.get(p)>"u"&&(K=0)}if(typeof N=="function"?z=N(_,z):z instanceof Date?z=F(z):E==="comma"&&s(z)&&(z=e.maybeMap(z,function(Ze){return Ze instanceof Date?F(Ze):Ze})),z===null){if(j)return R&&!Y?R(_,f.encoder,U,"key",H):_;z=""}if(h(z)||e.isBuffer(z)){if(R){var J=Y?_:R(_,f.encoder,U,"key",H);return[B(J)+"="+B(R(z,f.encoder,U,"value",H))]}return[B(_)+"="+B(String(z))]}var ne=[];if(typeof z>"u")return ne;var se;if(E==="comma"&&s(z))Y&&R&&(z=e.maybeMap(z,R)),se=[{value:z.length>0?z.join(",")||null:void 0}];else if(s(N))se=N;else{var ie=Object.keys(z);se=I?ie.sort(I):ie}var oe=k?String(_).replace(/\./g,"%2E"):String(_),de=T&&s(z)&&z.length===1?oe+"[]":oe;if(M&&s(z)&&z.length===0)return de+"[]";for(var pe=0;pe<se.length;++pe){var fe=se[pe],Te=typeof fe=="object"&&fe&&typeof fe.value<"u"?fe.value:z[fe];if(!(A&&Te===null)){var we=L&&k?String(fe).replace(/\./g,"%2E"):String(fe),_e=s(z)?typeof E=="function"?E(de,we):de:de+(L?"."+we:"["+we+"]");q.set(w,K);var De=t();De.set(p,q),l(ne,S(Te,_e,E,T,M,j,A,k,E==="comma"&&Y&&s(z)?null:R,N,I,L,F,H,B,Y,U,De))}}return ne},g=function(w){if(!w)return f;if(typeof w.allowEmptyArrays<"u"&&typeof w.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof w.encodeDotInKeys<"u"&&typeof w.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(w.encoder!==null&&typeof w.encoder<"u"&&typeof w.encoder!="function")throw new TypeError("Encoder has to be a function.");var _=w.charset||f.charset;if(typeof w.charset<"u"&&w.charset!=="utf-8"&&w.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var E=n.default;if(typeof w.format<"u"){if(!r.call(n.formatters,w.format))throw new TypeError("Unknown format option provided.");E=w.format}var T=n.formatters[E],M=f.filter;(typeof w.filter=="function"||s(w.filter))&&(M=w.filter);var j;if(w.arrayFormat in o?j=w.arrayFormat:"indices"in w?j=w.indices?"indices":"repeat":j=f.arrayFormat,"commaRoundTrip"in w&&typeof w.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var A=typeof w.allowDots>"u"?w.encodeDotInKeys===!0?!0:f.allowDots:!!w.allowDots;return{addQueryPrefix:typeof w.addQueryPrefix=="boolean"?w.addQueryPrefix:f.addQueryPrefix,allowDots:A,allowEmptyArrays:typeof w.allowEmptyArrays=="boolean"?!!w.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:j,charset:_,charsetSentinel:typeof w.charsetSentinel=="boolean"?w.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!w.commaRoundTrip,delimiter:typeof w.delimiter>"u"?f.delimiter:w.delimiter,encode:typeof w.encode=="boolean"?w.encode:f.encode,encodeDotInKeys:typeof w.encodeDotInKeys=="boolean"?w.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof w.encoder=="function"?w.encoder:f.encoder,encodeValuesOnly:typeof w.encodeValuesOnly=="boolean"?w.encodeValuesOnly:f.encodeValuesOnly,filter:M,format:E,formatter:T,serializeDate:typeof w.serializeDate=="function"?w.serializeDate:f.serializeDate,skipNulls:typeof w.skipNulls=="boolean"?w.skipNulls:f.skipNulls,sort:typeof w.sort=="function"?w.sort:null,strictNullHandling:typeof w.strictNullHandling=="boolean"?w.strictNullHandling:f.strictNullHandling}};return I6=function(S,w){var _=S,E=g(w),T,M;typeof E.filter=="function"?(M=E.filter,_=M("",_)):s(E.filter)&&(M=E.filter,T=M);var j=[];if(typeof _!="object"||_===null)return"";var A=o[E.arrayFormat],k=A==="comma"&&E.commaRoundTrip;T||(T=Object.keys(_)),E.sort&&T.sort(E.sort);for(var R=t(),N=0;N<T.length;++N){var I=T[N],L=_[I];E.skipNulls&&L===null||l(j,v(L,I,A,k,E.allowEmptyArrays,E.strictNullHandling,E.skipNulls,E.encodeDotInKeys,E.encode?E.encoder:null,E.filter,E.sort,E.allowDots,E.serializeDate,E.format,E.formatter,E.encodeValuesOnly,E.charset,R))}var F=j.join(E.delimiter),H=E.addQueryPrefix===!0?"?":"";return E.charsetSentinel&&(E.charset==="iso-8859-1"?H+="utf8=%26%2310003%3B&":H+="utf8=%E2%9C%93&"),F.length>0?H+F:""},I6}var $6,kR;function zme(){if(kR)return $6;kR=1;var t=XF(),e=Object.prototype.hasOwnProperty,n=Array.isArray,r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:t.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(v){return v.replace(/&#(\d+);/g,function(g,S){return String.fromCharCode(parseInt(S,10))})},s=function(v,g,S){if(v&&typeof v=="string"&&g.comma&&v.indexOf(",")>-1)return v.split(",");if(g.throwOnLimitExceeded&&S>=g.arrayLimit)throw new RangeError("Array limit exceeded. Only "+g.arrayLimit+" element"+(g.arrayLimit===1?"":"s")+" allowed in an array.");return v},i="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",c=function(g,S){var w={__proto__:null},_=S.ignoreQueryPrefix?g.replace(/^\?/,""):g;_=_.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var E=S.parameterLimit===1/0?void 0:S.parameterLimit,T=_.split(S.delimiter,S.throwOnLimitExceeded?E+1:E);if(S.throwOnLimitExceeded&&T.length>E)throw new RangeError("Parameter limit exceeded. Only "+E+" parameter"+(E===1?"":"s")+" allowed.");var M=-1,j,A=S.charset;if(S.charsetSentinel)for(j=0;j<T.length;++j)T[j].indexOf("utf8=")===0&&(T[j]===l?A="utf-8":T[j]===i&&(A="iso-8859-1"),M=j,j=T.length);for(j=0;j<T.length;++j)if(j!==M){var k=T[j],R=k.indexOf("]="),N=R===-1?k.indexOf("="):R+1,I,L;if(N===-1?(I=S.decoder(k,r.decoder,A,"key"),L=S.strictNullHandling?null:""):(I=S.decoder(k.slice(0,N),r.decoder,A,"key"),I!==null&&(L=t.maybeMap(s(k.slice(N+1),S,n(w[I])?w[I].length:0),function(H){return S.decoder(H,r.decoder,A,"value")}))),L&&S.interpretNumericEntities&&A==="iso-8859-1"&&(L=o(String(L))),k.indexOf("[]=")>-1&&(L=n(L)?[L]:L),I!==null){var F=e.call(w,I);F&&S.duplicates==="combine"?w[I]=t.combine(w[I],L,S.arrayLimit,S.plainObjects):(!F||S.duplicates==="last")&&(w[I]=L)}}return w},d=function(v,g,S,w){var _=0;if(v.length>0&&v[v.length-1]==="[]"){var E=v.slice(0,-1).join("");_=Array.isArray(g)&&g[E]?g[E].length:0}for(var T=w?g:s(g,S,_),M=v.length-1;M>=0;--M){var j,A=v[M];if(A==="[]"&&S.parseArrays)t.isOverflow(T)?j=T:j=S.allowEmptyArrays&&(T===""||S.strictNullHandling&&T===null)?[]:t.combine([],T,S.arrayLimit,S.plainObjects);else{j=S.plainObjects?{__proto__:null}:{};var k=A.charAt(0)==="["&&A.charAt(A.length-1)==="]"?A.slice(1,-1):A,R=S.decodeDotInKeys?k.replace(/%2E/g,"."):k,N=parseInt(R,10);!S.parseArrays&&R===""?j={0:T}:!isNaN(N)&&A!==R&&String(N)===R&&N>=0&&S.parseArrays&&N<=S.arrayLimit?(j=[],j[N]=T):R!=="__proto__"&&(j[R]=T)}T=j}return T},f=function(g,S){var w=S.allowDots?g.replace(/\.([^.[]+)/g,"[$1]"):g;if(S.depth<=0)return!S.plainObjects&&e.call(Object.prototype,w)&&!S.allowPrototypes?void 0:[w];var _=/(\[[^[\]]*])/,E=/(\[[^[\]]*])/g,T=_.exec(w),M=T?w.slice(0,T.index):w,j=[];if(M){if(!S.plainObjects&&e.call(Object.prototype,M)&&!S.allowPrototypes)return;j.push(M)}for(var A=0;(T=E.exec(w))!==null&&A<S.depth;){A+=1;var k=T[1].slice(1,-1);if(!S.plainObjects&&e.call(Object.prototype,k)&&!S.allowPrototypes)return;j.push(T[1])}if(T){if(S.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+S.depth+" and strictDepth is true");j.push("["+w.slice(T.index)+"]")}return j},h=function(g,S,w,_){if(g){var E=f(g,w);if(E)return d(E,S,w,_)}},p=function(g){if(!g)return r;if(typeof g.allowEmptyArrays<"u"&&typeof g.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof g.decodeDotInKeys<"u"&&typeof g.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(g.decoder!==null&&typeof g.decoder<"u"&&typeof g.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof g.charset<"u"&&g.charset!=="utf-8"&&g.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof g.throwOnLimitExceeded<"u"&&typeof g.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var S=typeof g.charset>"u"?r.charset:g.charset,w=typeof g.duplicates>"u"?r.duplicates:g.duplicates;if(w!=="combine"&&w!=="first"&&w!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var _=typeof g.allowDots>"u"?g.decodeDotInKeys===!0?!0:r.allowDots:!!g.allowDots;return{allowDots:_,allowEmptyArrays:typeof g.allowEmptyArrays=="boolean"?!!g.allowEmptyArrays:r.allowEmptyArrays,allowPrototypes:typeof g.allowPrototypes=="boolean"?g.allowPrototypes:r.allowPrototypes,allowSparse:typeof g.allowSparse=="boolean"?g.allowSparse:r.allowSparse,arrayLimit:typeof g.arrayLimit=="number"?g.arrayLimit:r.arrayLimit,charset:S,charsetSentinel:typeof g.charsetSentinel=="boolean"?g.charsetSentinel:r.charsetSentinel,comma:typeof g.comma=="boolean"?g.comma:r.comma,decodeDotInKeys:typeof g.decodeDotInKeys=="boolean"?g.decodeDotInKeys:r.decodeDotInKeys,decoder:typeof g.decoder=="function"?g.decoder:r.decoder,delimiter:typeof g.delimiter=="string"||t.isRegExp(g.delimiter)?g.delimiter:r.delimiter,depth:typeof g.depth=="number"||g.depth===!1?+g.depth:r.depth,duplicates:w,ignoreQueryPrefix:g.ignoreQueryPrefix===!0,interpretNumericEntities:typeof g.interpretNumericEntities=="boolean"?g.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:typeof g.parameterLimit=="number"?g.parameterLimit:r.parameterLimit,parseArrays:g.parseArrays!==!1,plainObjects:typeof g.plainObjects=="boolean"?g.plainObjects:r.plainObjects,strictDepth:typeof g.strictDepth=="boolean"?!!g.strictDepth:r.strictDepth,strictNullHandling:typeof g.strictNullHandling=="boolean"?g.strictNullHandling:r.strictNullHandling,throwOnLimitExceeded:typeof g.throwOnLimitExceeded=="boolean"?g.throwOnLimitExceeded:!1}};return $6=function(v,g){var S=p(g);if(v===""||v===null||typeof v>"u")return S.plainObjects?{__proto__:null}:{};for(var w=typeof v=="string"?c(v,S):v,_=S.plainObjects?{__proto__:null}:{},E=Object.keys(w),T=0;T<E.length;++T){var M=E[T],j=h(M,w[M],S,typeof v=="string");_=t.merge(_,j,S)}return S.allowSparse===!0?_:t.compact(_)},$6}var L6,MR;function Ume(){if(MR)return L6;MR=1;var t=Fme(),e=zme(),n=NE();return L6={formats:n,parse:e,stringify:t},L6}var Bme=Ume();const ur=hu(Bme),F6=Ki({reducerPath:"attachmentsApi",baseQuery:Xi("/api"),tagTypes:["Attachments"],endpoints:t=>({uploadFile:t.mutation({query:e=>({url:"/v1/files/upload",method:"POST",body:e})}),linkAttach:t.mutation({query:e=>({url:`/v1/project/linkAttachment?${ur.stringify(e)}`,method:"PUT"})}),getBlob:t.query({query:e=>({url:`/v1/project/attachment?${ur.stringify(e)}`,method:"GET",responseHandler:async n=>n.blob()}),keepUnusedDataFor:0}),get:t.query({query:e=>({url:`/v1/project/attachment?${ur.stringify(e)}`,method:"GET",responseHandler:n=>n.blob()}),transformResponse:e=>window.URL.createObjectURL(e)}),getList:t.query({query:e=>({url:`/v1/project/attachments?${ur.stringify(e)}`,method:"GET"})}),deleteAttach:t.mutation({query:e=>({url:"/v1/project/attachment",body:{Ids:e},method:"DELETE"})})})}),mv=Ki({reducerPath:"authApi",baseQuery:Xi("/api"),tagTypes:["Users"],endpoints:t=>({login:t.mutation({query:e=>({url:"/v2/auth/login",method:"POST",body:e})}),logout:t.mutation({query:()=>({url:"/v2/auth/logout",method:"GET"})})})});var ai;(t=>{(e=>{e[e.None=0]="None",e[e.Owned=1]="Owned",e[e.ProjectLinks=2]="ProjectLinks"})(t.IncludeAcccessType||(t.IncludeAcccessType={})),(e=>{e[e.Default=0]="Default"})(t.CollectionViewType||(t.CollectionViewType={})),(e=>{e[e.OnPreview=0]="OnPreview",e[e.OnDetail=1]="OnDetail"})(t.CollectionColumnViewType||(t.CollectionColumnViewType={})),(e=>{e[e.None=0]="None",e[e.Int=1]="Int",e[e.String=2]="String",e[e.Double=3]="Double",e[e.Boolean=4]="Boolean",e[e.BigInt=5]="BigInt"})(t.CollectionColumnType||(t.CollectionColumnType={})),(e=>{e[e.Inactive=-1]="Inactive",e[e.Unknown=0]="Unknown",e[e.Active=1]="Active",e[e.Deleted=2]="Deleted"})(t.CollectionTableStatus||(t.CollectionTableStatus={})),(e=>{e[e.None=0]="None",e[e.ProjectIds=2]="ProjectIds"})(t.CollectionTableRequestType||(t.CollectionTableRequestType={}))})(ai||(ai={}));function IE(t){switch(t){case"text":case"email":case"date":case"phone":return ai.CollectionColumnType.String;case"number":return ai.CollectionColumnType.Int;default:return ai.CollectionColumnType.None}}function Hme(t){const e={};return t!=null&&t.length&&(t.forEach(n=>{var r;(r=n.ProjectIdsWithOrder)==null||r.forEach(({ProjectId:o,Order:s})=>{e[o]||(e[o]=[]),e[o].push({...n,isCollection:!0,pathById:[o,n.Id],rootProjectId:o,order:s??Number.MAX_SAFE_INTEGER})})}),Object.values(e).forEach(n=>{n.sort((r,o)=>(r.order??0)-(o.order??0))})),e}function ZF(t){return t?Object.values(t).flatMap(e=>e):null}var Ie;(t=>{(e=>{e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Document=2]="Document",e[e.Directory=3]="Directory",e[e.Customer=4]="Customer",e[e.User=5]="User",e[e.Favorite=6]="Favorite",e[e.Event=7]="Event",e[e.Call=8]="Call",e[e.Visitor=9]="Visitor",e[e.Reception=10]="Reception",e[e.Birthday=11]="Birthday",e[e.Meeting=12]="Meeting",e[e.Calendar=14]="Calendar",e[e.Contact=15]="Contact",e[e.Application=16]="Application",e[e.UserGroup=17]="UserGroup",e[e.ClientApplication=18]="ClientApplication",e[e.OfflineDocument=30]="OfflineDocument",e[e.EmailFolder=31]="EmailFolder",e[e.EmailMessage=32]="EmailMessage",e[e.EmailAttachment=33]="EmailAttachment",e[e.Role=34]="Role",e[e.EventParticipant=35]="EventParticipant",e[e.AddressBook=36]="AddressBook",e[e.ChangeEvent=37]="ChangeEvent",e[e.Project=38]="Project",e[e.ProjectTask=39]="ProjectTask",e[e.ProjectTaskActivity=40]="ProjectTaskActivity",e[e.Sprint=41]="Sprint",e[e.Collection=50]="Collection"})(t.Entity||(t.Entity={})),(e=>{e[e.LockCopy=-16384]="LockCopy",e[e.LockPrint=-8192]="LockPrint",e[e.Deny=-4096]="Deny",e[e.OnlyUpload=-1024]="OnlyUpload",e[e.FreeBusy=-64]="FreeBusy",e[e.Read=0]="Read",e[e.Comment=1]="Comment",e[e.Review=2]="Review",e[e.Write=4]="Write",e[e.Delete=8]="Delete",e[e.FullInternal=256]="FullInternal",e[e.Full=512]="Full",e[e.Lock=4096]="Lock"})(t.AccessType||(t.AccessType={})),(e=>{e[e.Deleted=-1]="Deleted",e[e.InActive=0]="InActive",e[e.Active=1]="Active",e[e.BeExecuted=2]="BeExecuted",e[e.InProcess=3]="InProcess",e[e.Done=4]="Done",e[e.Closed=5]="Closed",e[e.Custom=6]="Custom",e[e.NotStarted=7]="NotStarted"})(t.IStatusType||(t.IStatusType={})),(e=>{e[e.DEFAULT=0]="DEFAULT",e[e.USE_CUSTOM_STATUSES=1]="USE_CUSTOM_STATUSES"})(t.ProjectFlags||(t.ProjectFlags={})),(e=>{e[e.Banned=-2]="Banned",e[e.Deleted=-1]="Deleted",e[e.Active=1]="Active"})(t.UserStatus||(t.UserStatus={})),(e=>{e[e.SingleCall=0]="SingleCall",e[e.FiveMinutes=1]="FiveMinutes",e[e.OneHour=2]="OneHour",e[e.Day=3]="Day",e[e.Week=4]="Week",e[e.Month=5]="Month",e[e.Year=6]="Year",e[e.Unlimited=10]="Unlimited",e[e.Internal=11]="Internal"})(t.ILinkLifeTime||(t.ILinkLifeTime={})),(e=>{e[e.Unknown=0]="Unknown",e[e.Active=1]="Active",e[e.Archive=2]="Archive",e[e.ArchiveParent=4]="ArchiveParent",e[e.DeleteParent=8]="DeleteParent",e[e.Delete=16]="Delete",e[e.DeleteFromArchive=18]="DeleteFromArchive",e[e.DeleteParentArchive=20]="DeleteParentArchive"})(t.EntityState||(t.EntityState={}))})(Ie||(Ie={}));/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var qme={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qe=(t,e,n,r)=>{const o=D.forwardRef(({color:s="currentColor",size:i=24,stroke:l=2,title:c,className:d,children:f,...h},p)=>D.createElement("svg",{ref:p,...qme[t],width:i,height:i,className:["tabler-icon",`tabler-icon-${e}`,d].join(" "),...t==="filled"?{fill:s}:{strokeWidth:l,stroke:s},...h},[c&&D.createElement("title",{key:"svg-title"},c),...r.map(([v,g])=>D.createElement(v,g)),...Array.isArray(f)?f:[f]]));return o.displayName=`${n}`,o};/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Vme=[["path",{d:"M3 12h4l3 8l4 -16l3 8h4",key:"svg-0"}]],Yme=Qe("outline","activity","Activity",Vme);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Gme=[["path",{d:"M12.802 2.165l5.575 2.389c.48 .206 .863 .589 1.07 1.07l2.388 5.574c.22 .512 .22 1.092 0 1.604l-2.389 5.575c-.206 .48 -.589 .863 -1.07 1.07l-5.574 2.388c-.512 .22 -1.092 .22 -1.604 0l-5.575 -2.389a2.036 2.036 0 0 1 -1.07 -1.07l-2.388 -5.574a2.036 2.036 0 0 1 0 -1.604l2.389 -5.575c.206 -.48 .589 -.863 1.07 -1.07l5.574 -2.388a2.036 2.036 0 0 1 1.604 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],Wme=Qe("outline","alert-octagon","AlertOctagon",Gme);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qme=[["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 0",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],Kme=Qe("outline","alert-triangle","AlertTriangle",Qme);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xme=[["path",{d:"M4 6l16 0",key:"svg-0"}],["path",{d:"M4 12l16 0",key:"svg-1"}],["path",{d:"M4 18l12 0",key:"svg-2"}]],Zme=Qe("outline","align-justified","AlignJustified",Xme);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jme=[["path",{d:"M4 13h5",key:"svg-0"}],["path",{d:"M12 16v-8h3a2 2 0 0 1 2 2v1a2 2 0 0 1 -2 2h-3",key:"svg-1"}],["path",{d:"M20 8v8",key:"svg-2"}],["path",{d:"M9 16v-5.5a2.5 2.5 0 0 0 -5 0v5.5",key:"svg-3"}]],e1e=Qe("outline","api","Api",Jme);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const t1e=[["path",{d:"M4 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4",key:"svg-0"}],["path",{d:"M4 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4",key:"svg-1"}],["path",{d:"M14 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4",key:"svg-2"}],["path",{d:"M14 7l6 0",key:"svg-3"}],["path",{d:"M17 4l0 6",key:"svg-4"}]],n1e=Qe("outline","apps","Apps",t1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const r1e=[["path",{d:"M3 6a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2",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"}]],xu=Qe("outline","archive","Archive",r1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const o1e=[["path",{d:"M9 12h-3.586a1 1 0 0 1 -.707 -1.707l6.586 -6.586a1 1 0 0 1 1.414 0l6.586 6.586a1 1 0 0 1 -.707 1.707h-3.586v6h-6v-6",key:"svg-0"}],["path",{d:"M9 21h6",key:"svg-1"}]],s1e=Qe("outline","arrow-big-up-line","ArrowBigUpLine",o1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const i1e=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M16 9l-4 -4",key:"svg-1"}],["path",{d:"M8 9l4 -4",key:"svg-2"}]],a1e=Qe("outline","arrow-narrow-up","ArrowNarrowUp",i1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const l1e=[["path",{d:"M16 4l4 0l0 4",key:"svg-0"}],["path",{d:"M14 10l6 -6",key:"svg-1"}],["path",{d:"M8 20l-4 0l0 -4",key:"svg-2"}],["path",{d:"M4 20l6 -6",key:"svg-3"}],["path",{d:"M16 20l4 0l0 -4",key:"svg-4"}],["path",{d:"M14 14l6 6",key:"svg-5"}],["path",{d:"M8 4l-4 0l0 4",key:"svg-6"}],["path",{d:"M4 4l6 6",key:"svg-7"}]],c1e=Qe("outline","arrows-maximize","ArrowsMaximize",l1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const u1e=[["path",{d:"M5 9l4 0l0 -4",key:"svg-0"}],["path",{d:"M3 3l6 6",key:"svg-1"}],["path",{d:"M5 15l4 0l0 4",key:"svg-2"}],["path",{d:"M3 21l6 -6",key:"svg-3"}],["path",{d:"M19 9l-4 0l0 -4",key:"svg-4"}],["path",{d:"M15 9l6 -6",key:"svg-5"}],["path",{d:"M19 15l-4 0l0 4",key:"svg-6"}],["path",{d:"M15 15l6 6",key:"svg-7"}]],d1e=Qe("outline","arrows-minimize","ArrowsMinimize",u1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const f1e=[["path",{d:"M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6",key:"svg-0"}],["path",{d:"M9 17v1a3 3 0 0 0 6 0v-1",key:"svg-1"}]],h1e=Qe("outline","bell","Bell",f1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const p1e=[["path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11",key:"svg-0"}]],m1e=Qe("outline","bolt","Bolt",p1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const g1e=[["path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0",key:"svg-0"}],["path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0",key:"svg-1"}],["path",{d:"M3 6l0 13",key:"svg-2"}],["path",{d:"M12 6l0 13",key:"svg-3"}],["path",{d:"M21 6l0 13",key:"svg-4"}]],y1e=Qe("outline","book","Book",g1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const v1e=[["path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4",key:"svg-0"}]],b1e=Qe("outline","bookmark","Bookmark",v1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const S1e=[["path",{d:"M7 5a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2l0 -10",key:"svg-0"}],["path",{d:"M17 17v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h2",key:"svg-1"}]],JF=Qe("outline","box-multiple","BoxMultiple",S1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const w1e=[["path",{d:"M20 4l-2 14.5l-6 2l-6 -2l-2 -14.5l16 0",key:"svg-0"}],["path",{d:"M7.5 8h3v8l-2 -1",key:"svg-1"}],["path",{d:"M16.5 8h-2.5a.5 .5 0 0 0 -.5 .5v3a.5 .5 0 0 0 .5 .5h1.423a.5 .5 0 0 1 .495 .57l-.418 2.93l-2 .5",key:"svg-2"}]],x1e=Qe("outline","brand-javascript","BrandJavascript",w1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const C1e=[["path",{d:"M3 9a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2l0 -9",key:"svg-0"}],["path",{d:"M8 7v-2a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v2",key:"svg-1"}],["path",{d:"M12 12l0 .01",key:"svg-2"}],["path",{d:"M3 13a20 20 0 0 0 18 0",key:"svg-3"}]],_1e=Qe("outline","briefcase","Briefcase",C1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const T1e=[["path",{d:"M3 21v-4a4 4 0 1 1 4 4h-4",key:"svg-0"}],["path",{d:"M21 3a16 16 0 0 0 -12.8 10.2",key:"svg-1"}],["path",{d:"M21 3a16 16 0 0 1 -10.2 12.8",key:"svg-2"}],["path",{d:"M10.6 9a9 9 0 0 1 4.4 4.4",key:"svg-3"}]],E1e=Qe("outline","brush","Brush",T1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const k1e=[["path",{d:"M9 9v-1a3 3 0 0 1 6 0v1",key:"svg-0"}],["path",{d:"M8 9h8a6 6 0 0 1 1 3v3a5 5 0 0 1 -10 0v-3a6 6 0 0 1 1 -3",key:"svg-1"}],["path",{d:"M3 13l4 0",key:"svg-2"}],["path",{d:"M17 13l4 0",key:"svg-3"}],["path",{d:"M12 20l0 -6",key:"svg-4"}],["path",{d:"M4 19l3.35 -2",key:"svg-5"}],["path",{d:"M20 19l-3.35 -2",key:"svg-6"}],["path",{d:"M4 7l3.75 2.4",key:"svg-7"}],["path",{d:"M20 7l-3.75 2.4",key:"svg-8"}]],$E=Qe("outline","bug","Bug",k1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const M1e=[["path",{d:"M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7",key:"svg-0"}],["path",{d:"M9 16a5 5 0 1 1 6 0a3.5 3.5 0 0 0 -1 3a2 2 0 0 1 -4 0a3.5 3.5 0 0 0 -1 -3",key:"svg-1"}],["path",{d:"M9.7 17l4.6 0",key:"svg-2"}]],j1e=Qe("outline","bulb","Bulb",M1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const D1e=[["path",{d:"M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",key:"svg-0"}],["path",{d:"M16 3l0 4",key:"svg-1"}],["path",{d:"M8 3l0 4",key:"svg-2"}],["path",{d:"M4 11l16 0",key:"svg-3"}],["path",{d:"M8 15h2v2h-2l0 -2",key:"svg-4"}]],A1e=Qe("outline","calendar-event","CalendarEvent",D1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const R1e=[["path",{d:"M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12",key:"svg-0"}],["path",{d:"M16 3v4",key:"svg-1"}],["path",{d:"M8 3v4",key:"svg-2"}],["path",{d:"M4 11h16",key:"svg-3"}],["path",{d:"M8 14v4",key:"svg-4"}],["path",{d:"M12 14v4",key:"svg-5"}],["path",{d:"M16 14v4",key:"svg-6"}]],O1e=Qe("outline","calendar-month","CalendarMonth",R1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const P1e=[["path",{d:"M5 7h1a2 2 0 0 0 2 -2a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1a2 2 0 0 0 2 2h1a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2",key:"svg-0"}],["path",{d:"M9 13a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]],N1e=Qe("outline","camera","Camera",P1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const I1e=[["path",{d:"M12 15a3 3 0 1 0 6 0a3 3 0 1 0 -6 0",key:"svg-0"}],["path",{d:"M13 17.5v4.5l2 -1.5l2 1.5v-4.5",key:"svg-1"}],["path",{d:"M10 19h-5a2 2 0 0 1 -2 -2v-10c0 -1.1 .9 -2 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -1 1.73",key:"svg-2"}],["path",{d:"M6 9l12 0",key:"svg-3"}],["path",{d:"M6 12l3 0",key:"svg-4"}],["path",{d:"M6 15l2 0",key:"svg-5"}]],$1e=Qe("outline","certificate","Certificate",I1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const L1e=[["path",{d:"M4 19l16 0",key:"svg-0"}],["path",{d:"M4 15l4 -6l4 2l4 -5l4 4",key:"svg-1"}]],F1e=Qe("outline","chart-line","ChartLine",L1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const z1e=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],LE=Qe("outline","check","Check",z1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const U1e=[["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"}]],B1e=Qe("outline","checkbox","Checkbox",U1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const H1e=[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]],Cg=Qe("outline","chevron-down","ChevronDown",H1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const q1e=[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]],ez=Qe("outline","chevron-right","ChevronRight",q1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const V1e=[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]],Yx=Qe("outline","chevron-up","ChevronUp",V1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Y1e=[["path",{d:"M7 7l5 5l5 -5",key:"svg-0"}],["path",{d:"M7 13l5 5l5 -5",key:"svg-1"}]],G1e=Qe("outline","chevrons-down","ChevronsDown",Y1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const W1e=[["path",{d:"M11 7l-5 5l5 5",key:"svg-0"}],["path",{d:"M17 7l-5 5l5 5",key:"svg-1"}]],Q1e=Qe("outline","chevrons-left","ChevronsLeft",W1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const K1e=[["path",{d:"M7 7l5 5l-5 5",key:"svg-0"}],["path",{d:"M13 7l5 5l-5 5",key:"svg-1"}]],X1e=Qe("outline","chevrons-right","ChevronsRight",K1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Z1e=[["path",{d:"M7 11l5 -5l5 5",key:"svg-0"}],["path",{d:"M7 17l5 -5l5 5",key:"svg-1"}]],J1e=Qe("outline","chevrons-up","ChevronsUp",Z1e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const ege=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 7v5l3 3",key:"svg-1"}]],tge=Qe("outline","clock","Clock",ege);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const nge=[["path",{d:"M4 6l5.5 0",key:"svg-0"}],["path",{d:"M4 10l5.5 0",key:"svg-1"}],["path",{d:"M4 14l5.5 0",key:"svg-2"}],["path",{d:"M4 18l5.5 0",key:"svg-3"}],["path",{d:"M14.5 6l5.5 0",key:"svg-4"}],["path",{d:"M14.5 10l5.5 0",key:"svg-5"}],["path",{d:"M14.5 14l5.5 0",key:"svg-6"}],["path",{d:"M14.5 18l5.5 0",key:"svg-7"}]],_g=Qe("outline","columns","Columns",nge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const rge=[["path",{d:"M7 9a2 2 0 1 1 2 -2v10a2 2 0 1 1 -2 -2h10a2 2 0 1 1 -2 2v-10a2 2 0 1 1 2 2h-10",key:"svg-0"}]],oge=Qe("outline","command","Command",rge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const sge=[["path",{d:"M7 9.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.667l0 -8.666",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"}]],ige=Qe("outline","copy","Copy",sge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const age=[["path",{d:"M18 6v6a3 3 0 0 1 -3 3h-10l4 -4m0 8l-4 -4",key:"svg-0"}]],lge=Qe("outline","corner-down-left","CornerDownLeft",age);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const cge=[["path",{d:"M16.7 8a3 3 0 0 0 -2.7 -2h-4a3 3 0 0 0 0 6h4a3 3 0 0 1 0 6h-4a3 3 0 0 1 -2.7 -2",key:"svg-0"}],["path",{d:"M12 3v3m0 12v3",key:"svg-1"}]],uge=Qe("outline","currency-dollar","CurrencyDollar",cge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const dge=[["path",{d:"M11.5 16h-7.5a1 1 0 0 1 -1 -1v-10a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v6.5",key:"svg-0"}],["path",{d:"M7 20h4",key:"svg-1"}],["path",{d:"M9 16v4",key:"svg-2"}],["path",{d:"M15 18a3 3 0 1 0 6 0a3 3 0 1 0 -6 0",key:"svg-3"}],["path",{d:"M20.2 20.2l1.8 1.8",key:"svg-4"}]],fge=Qe("outline","device-desktop-search","DeviceDesktopSearch",dge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const hge=[["path",{d:"M3 5a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-10",key:"svg-0"}],["path",{d:"M7 20h10",key:"svg-1"}],["path",{d:"M9 16v4",key:"svg-2"}],["path",{d:"M15 16v4",key:"svg-3"}]],pge=Qe("outline","device-desktop","DeviceDesktop",hge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const mge=[["path",{d:"M3 19l18 0",key:"svg-0"}],["path",{d:"M5 7a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v8a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1l0 -8",key:"svg-1"}]],gge=Qe("outline","device-laptop","DeviceLaptop",mge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const yge=[["path",{d:"M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M11 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M11 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]],FE=Qe("outline","dots-vertical","DotsVertical",yge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const vge=[["path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1",key:"svg-0"}],["path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415",key:"svg-1"}],["path",{d:"M16 5l3 3",key:"svg-2"}]],bge=Qe("outline","edit","Edit",vge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Sge=[["path",{d:"M5 10h14",key:"svg-0"}],["path",{d:"M5 14h14",key:"svg-1"}]],wge=Qe("outline","equal","Equal",Sge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const xge=[["path",{d:"M12 19v.01",key:"svg-0"}],["path",{d:"M12 15v-10",key:"svg-1"}]],Cge=Qe("outline","exclamation-mark","ExclamationMark",xge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const _ge=[["path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6",key:"svg-0"}],["path",{d:"M11 13l9 -9",key:"svg-1"}],["path",{d:"M15 4h5v5",key:"svg-2"}]],Tge=Qe("outline","external-link","ExternalLink",_ge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ege=[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2",key:"svg-1"}],["path",{d:"M9 17h6",key:"svg-2"}],["path",{d:"M9 13h6",key:"svg-3"}]],kge=Qe("outline","file-description","FileDescription",Ege);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Mge=[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M12 21h-5a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v4.5",key:"svg-1"}],["path",{d:"M14 17.5a2.5 2.5 0 1 0 5 0a2.5 2.5 0 1 0 -5 0",key:"svg-2"}],["path",{d:"M18.5 19.5l2.5 2.5",key:"svg-3"}]],jge=Qe("outline","file-search","FileSearch",Mge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Dge=[["path",{d:"M12 10.941c2.333 -3.308 .167 -7.823 -1 -8.941c0 3.395 -2.235 5.299 -3.667 6.706c-1.43 1.408 -2.333 3.294 -2.333 5.588c0 3.704 3.134 6.706 7 6.706c3.866 0 7 -3.002 7 -6.706c0 -1.712 -1.232 -4.403 -2.333 -5.588c-2.084 3.353 -3.257 3.353 -4.667 2.235",key:"svg-0"}]],Age=Qe("outline","flame","Flame",Dge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Rge=[["path",{d:"M5 19l2.757 -7.351a1 1 0 0 1 .936 -.649h12.307a1 1 0 0 1 .986 1.164l-.996 5.211a2 2 0 0 1 -1.964 1.625h-14.026a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v2",key:"svg-0"}]],Oge=Qe("outline","folder-open","FolderOpen",Rge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Pge=[["path",{d:"M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2",key:"svg-0"}]],Gx=Qe("outline","folder","Folder",Pge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Nge=[["path",{d:"M4 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M11 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M18 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}],["path",{d:"M4 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-3"}],["path",{d:"M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-4"}],["path",{d:"M18 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-5"}],["path",{d:"M4 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-6"}],["path",{d:"M11 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-7"}],["path",{d:"M18 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-8"}]],Ige=Qe("outline","grid-dots","GridDots",Nge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const $ge=[["path",{d:"M19.5 12.572l-7.5 7.428l-7.5 -7.428a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572",key:"svg-0"}]],Lge=Qe("outline","heart","Heart",$ge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Fge=[["path",{d:"M5 12l-2 0l9 -9l9 9l-2 0",key:"svg-0"}],["path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7",key:"svg-1"}],["path",{d:"M10 12h4v4h-4l0 -4",key:"svg-2"}]],zge=Qe("outline","home-2","Home2",Fge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Uge=[["path",{d:"M5 12l-2 0l9 -9l9 9l-2 0",key:"svg-0"}],["path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7",key:"svg-1"}],["path",{d:"M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6",key:"svg-2"}]],Bge=Qe("outline","home","Home",Uge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hge=[["path",{d:"M4 4l6 0",key:"svg-0"}],["path",{d:"M14 4l6 0",key:"svg-1"}],["path",{d:"M4 10a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -8",key:"svg-2"}],["path",{d:"M14 10a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -2",key:"svg-3"}]],qge=Qe("outline","layout-kanban","LayoutKanban",Hge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Vge=[["path",{d:"M14 15.5a3.5 3.5 0 1 0 7 0a3.5 3.5 0 1 0 -7 0",key:"svg-0"}],["path",{d:"M3 19v-10.5a3.5 3.5 0 0 1 7 0v10.5",key:"svg-1"}],["path",{d:"M3 13h7",key:"svg-2"}],["path",{d:"M21 12v7",key:"svg-3"}]],zE=Qe("outline","letter-case","LetterCase",Vge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Yge=[["path",{d:"M3.5 5.5l1.5 1.5l2.5 -2.5",key:"svg-0"}],["path",{d:"M3.5 11.5l1.5 1.5l2.5 -2.5",key:"svg-1"}],["path",{d:"M3.5 17.5l1.5 1.5l2.5 -2.5",key:"svg-2"}],["path",{d:"M11 6l9 0",key:"svg-3"}],["path",{d:"M11 12l9 0",key:"svg-4"}],["path",{d:"M11 18l9 0",key:"svg-5"}]],Gge=Qe("outline","list-check","ListCheck",Yge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wge=[["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 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4",key:"svg-4"}],["path",{d:"M3 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4",key:"svg-5"}]],UE=Qe("outline","list-details","ListDetails",Wge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qge=[["path",{d:"M9 6l11 0",key:"svg-0"}],["path",{d:"M9 12l11 0",key:"svg-1"}],["path",{d:"M9 18l11 0",key:"svg-2"}],["path",{d:"M5 6l0 .01",key:"svg-3"}],["path",{d:"M5 12l0 .01",key:"svg-4"}],["path",{d:"M5 18l0 .01",key:"svg-5"}]],Wx=Qe("outline","list","List",Qge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Kge=[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]],Xge=Qe("outline","lock","Lock",Kge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zge=[["path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M9 12h12l-3 -3",key:"svg-1"}],["path",{d:"M18 15l3 -3",key:"svg-2"}]],BE=Qe("outline","logout","Logout",Zge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jge=[["path",{d:"M3 9l9 6l9 -6l-9 -6l-9 6",key:"svg-0"}],["path",{d:"M21 9v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10",key:"svg-1"}],["path",{d:"M3 19l6 -6",key:"svg-2"}],["path",{d:"M15 13l6 6",key:"svg-3"}]],e0e=Qe("outline","mail-opened","MailOpened",Jge);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const t0e=[["path",{d:"M3 7l6 -3l6 3l6 -3v13l-6 3l-6 -3l-6 3v-13",key:"svg-0"}],["path",{d:"M9 4v13",key:"svg-1"}],["path",{d:"M15 7v13",key:"svg-2"}]],n0e=Qe("outline","map","Map",t0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const r0e=[["path",{d:"M5 12l14 0",key:"svg-0"}]],o0e=Qe("outline","minus","Minus",r0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const s0e=[["path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454l0 .008",key:"svg-0"}],["path",{d:"M17 4a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2",key:"svg-1"}],["path",{d:"M19 11h2m-1 -1v2",key:"svg-2"}]],i0e=Qe("outline","moon-stars","MoonStars",s0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const a0e=[["path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4",key:"svg-0"}],["path",{d:"M13.5 6.5l4 4",key:"svg-1"}]],HE=Qe("outline","pencil","Pencil",a0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const l0e=[["path",{d:"M8 21l4 0",key:"svg-0"}],["path",{d:"M10 21l0 -18",key:"svg-1"}],["path",{d:"M10 4l9 4l-9 4",key:"svg-2"}]],c0e=Qe("outline","pennant","Pennant",l0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const u0e=[["path",{d:"M15 8h.01",key:"svg-0"}],["path",{d:"M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12",key:"svg-1"}],["path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5",key:"svg-2"}],["path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3",key:"svg-3"}]],d0e=Qe("outline","photo","Photo",u0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const f0e=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]],R2=Qe("outline","plus","Plus",f0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const h0e=[["path",{d:"M17 17h2a2 2 0 0 0 2 -2v-4a2 2 0 0 0 -2 -2h-14a2 2 0 0 0 -2 2v4a2 2 0 0 0 2 2h2",key:"svg-0"}],["path",{d:"M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4",key:"svg-1"}],["path",{d:"M7 15a2 2 0 0 1 2 -2h6a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2l0 -4",key:"svg-2"}]],p0e=Qe("outline","printer","Printer",h0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const m0e=[["path",{d:"M10 20.777a8.942 8.942 0 0 1 -2.48 -.969",key:"svg-0"}],["path",{d:"M14 3.223a9.003 9.003 0 0 1 0 17.554",key:"svg-1"}],["path",{d:"M4.579 17.093a8.961 8.961 0 0 1 -1.227 -2.592",key:"svg-2"}],["path",{d:"M3.124 10.5c.16 -.95 .468 -1.85 .9 -2.675l.169 -.305",key:"svg-3"}],["path",{d:"M6.907 4.579a8.954 8.954 0 0 1 3.093 -1.356",key:"svg-4"}],["path",{d:"M9 12l2 2l4 -4",key:"svg-5"}]],qE=Qe("outline","progress-check","ProgressCheck",m0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const g0e=[["path",{d:"M4 7h3a1 1 0 0 0 1 -1v-1a2 2 0 0 1 4 0v1a1 1 0 0 0 1 1h3a1 1 0 0 1 1 1v3a1 1 0 0 0 1 1h1a2 2 0 0 1 0 4h-1a1 1 0 0 0 -1 1v3a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-1a2 2 0 0 0 -4 0v1a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h1a2 2 0 0 0 0 -4h-1a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1",key:"svg-0"}]],y0e=Qe("outline","puzzle","Puzzle",g0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const v0e=[["path",{d:"M8 8a3.5 3 0 0 1 3.5 -3h1a3.5 3 0 0 1 3.5 3a3 3 0 0 1 -2 3a3 4 0 0 0 -2 4",key:"svg-0"}],["path",{d:"M12 19l0 .01",key:"svg-1"}]],Va=Qe("outline","question-mark","QuestionMark",v0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const b0e=[["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"}]],S0e=Qe("outline","refresh","Refresh",b0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const w0e=[["path",{d:"M4 13a8 8 0 0 1 7 7a6 6 0 0 0 3 -5a9 9 0 0 0 6 -8a3 3 0 0 0 -3 -3a9 9 0 0 0 -8 6a6 6 0 0 0 -5 3",key:"svg-0"}],["path",{d:"M7 14a6 6 0 0 0 -3 6a6 6 0 0 0 6 -3",key:"svg-1"}],["path",{d:"M14 9a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]],tz=Qe("outline","rocket","Rocket",w0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const x0e=[["path",{d:"M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]],O2=Qe("outline","search","Search",x0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const C0e=[["path",{d:"M8 9l4 -4l4 4",key:"svg-0"}],["path",{d:"M16 15l-4 4l-4 -4",key:"svg-1"}]],_0e=Qe("outline","selector","Selector",C0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const T0e=[["path",{d:"M3 7a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3",key:"svg-0"}],["path",{d:"M15 20h-9a3 3 0 0 1 -3 -3v-2a3 3 0 0 1 3 -3h12",key:"svg-1"}],["path",{d:"M7 8v.01",key:"svg-2"}],["path",{d:"M7 16v.01",key:"svg-3"}],["path",{d:"M20 15l-2 3h3l-2 3",key:"svg-4"}]],E0e=Qe("outline","server-bolt","ServerBolt",T0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const k0e=[["path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]],M0e=Qe("outline","settings","Settings",k0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const j0e=[["path",{d:"M19 8.71l-5.333 -4.148a2.666 2.666 0 0 0 -3.274 0l-5.334 4.148a2.665 2.665 0 0 0 -1.029 2.105v7.2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-7.2c0 -.823 -.38 -1.6 -1.03 -2.105",key:"svg-0"}],["path",{d:"M16 15c-2.21 1.333 -5.792 1.333 -8 0",key:"svg-1"}]],D0e=Qe("outline","smart-home","SmartHome",j0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const A0e=[["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-14",key:"svg-0"}],["path",{d:"M9 12l2 2l4 -4",key:"svg-1"}]],R0e=Qe("outline","square-check","SquareCheck",A0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const O0e=[["path",{d:"M13.446 2.6l7.955 7.954a2.045 2.045 0 0 1 0 2.892l-7.955 7.955a2.045 2.045 0 0 1 -2.892 0l-7.955 -7.955a2.045 2.045 0 0 1 0 -2.892l7.955 -7.955a2.045 2.045 0 0 1 2.892 0",key:"svg-0"}]],nz=Qe("outline","square-rotated","SquareRotated",O0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const P0e=[["path",{d:"M12 4l-8 4l8 4l8 -4l-8 -4",key:"svg-0"}],["path",{d:"M4 12l8 4l8 -4",key:"svg-1"}],["path",{d:"M4 16l8 4l8 -4",key:"svg-2"}]],N0e=Qe("outline","stack-2","Stack2",P0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const I0e=[["path",{d:"M6 9l6 0",key:"svg-0"}],["path",{d:"M4 5l4 0",key:"svg-1"}],["path",{d:"M6 5v11a1 1 0 0 0 1 1h5",key:"svg-2"}],["path",{d:"M12 8a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1l0 -2",key:"svg-3"}],["path",{d:"M12 16a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1l0 -2",key:"svg-4"}]],$0e=Qe("outline","subtask","Subtask",I0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const L0e=[["path",{d:"M14.828 14.828a4 4 0 1 0 -5.656 -5.656a4 4 0 0 0 5.656 5.656",key:"svg-0"}],["path",{d:"M6.343 17.657l-1.414 1.414",key:"svg-1"}],["path",{d:"M6.343 6.343l-1.414 -1.414",key:"svg-2"}],["path",{d:"M17.657 6.343l1.414 -1.414",key:"svg-3"}],["path",{d:"M17.657 17.657l1.414 1.414",key:"svg-4"}],["path",{d:"M4 12h-2",key:"svg-5"}],["path",{d:"M12 4v-2",key:"svg-6"}],["path",{d:"M20 12h2",key:"svg-7"}],["path",{d:"M12 20v2",key:"svg-8"}]],F0e=Qe("outline","sun-high","SunHigh",L0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const z0e=[["path",{d:"M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 7a5 5 0 1 0 5 5",key:"svg-1"}],["path",{d:"M13 3.055a9 9 0 1 0 7.941 7.945",key:"svg-2"}],["path",{d:"M15 6v3h3l3 -3h-3v-3l-3 3",key:"svg-3"}],["path",{d:"M15 9l-3 3",key:"svg-4"}]],U0e=Qe("outline","target-arrow","TargetArrow",z0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const B0e=[["path",{d:"M7 11v8a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-7a1 1 0 0 1 1 -1h3a4 4 0 0 0 4 -4v-1a2 2 0 0 1 4 0v5h3a2 2 0 0 1 2 2l-1 5a2 3 0 0 1 -2 2h-7a3 3 0 0 1 -3 -3",key:"svg-0"}]],H0e=Qe("outline","thumb-up","ThumbUp",B0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const q0e=[["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"}]],Qx=Qe("outline","trash","Trash",q0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const V0e=[["path",{d:"M5 17a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M15 17a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M5 17h-2v-4m-1 -8h11v12m-4 0h6m4 0h2v-6h-8m0 -5h5l3 5",key:"svg-2"}],["path",{d:"M3 9l4 0",key:"svg-3"}]],Y0e=Qe("outline","truck-delivery","TruckDelivery",V0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const G0e=[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 9l5 -5l5 5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]],W0e=Qe("outline","upload","Upload",G0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Q0e=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M9 10a3 3 0 1 0 6 0a3 3 0 1 0 -6 0",key:"svg-1"}],["path",{d:"M6.168 18.849a4 4 0 0 1 3.832 -2.849h4a4 4 0 0 1 3.834 2.855",key:"svg-2"}]],K0e=Qe("outline","user-circle","UserCircle",Q0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const X0e=[["path",{d:"M12 13a3 3 0 1 0 0 -6a3 3 0 0 0 0 6",key:"svg-0"}],["path",{d:"M12 3c7.2 0 9 1.8 9 9c0 7.2 -1.8 9 -9 9c-7.2 0 -9 -1.8 -9 -9c0 -7.2 1.8 -9 9 -9",key:"svg-1"}],["path",{d:"M6 20.05v-.05a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v.05",key:"svg-2"}]],Z0e=Qe("outline","user-square-rounded","UserSquareRounded",X0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const J0e=[["path",{d:"M10 13a2 2 0 1 0 4 0a2 2 0 0 0 -4 0",key:"svg-0"}],["path",{d:"M8 21v-1a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v1",key:"svg-1"}],["path",{d:"M15 5a2 2 0 1 0 4 0a2 2 0 0 0 -4 0",key:"svg-2"}],["path",{d:"M17 10h2a2 2 0 0 1 2 2v1",key:"svg-3"}],["path",{d:"M5 5a2 2 0 1 0 4 0a2 2 0 0 0 -4 0",key:"svg-4"}],["path",{d:"M3 13v-1a2 2 0 0 1 2 -2h2",key:"svg-5"}]],eye=Qe("outline","users-group","UsersGroup",J0e);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const tye=[["path",{d:"M5 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4c.96 0 1.84 .338 2.53 .901",key:"svg-1"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"svg-2"}],["path",{d:"M16 19h6",key:"svg-3"}],["path",{d:"M19 16v6",key:"svg-4"}]],nye=Qe("outline","users-plus","UsersPlus",tye);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const rye=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M3.6 9h16.8",key:"svg-1"}],["path",{d:"M3.6 15h16.8",key:"svg-2"}],["path",{d:"M11.5 3a17 17 0 0 0 0 18",key:"svg-3"}],["path",{d:"M12.5 3a17 17 0 0 1 0 18",key:"svg-4"}]],Kx=Qe("outline","world","World",rye);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const oye=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],VE=Qe("outline","x","X",oye);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const sye=[["path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.293 5.953a1 1 0 0 0 -1.32 -.083l-.094 .083l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.403 1.403l.083 .094l2 2l.094 .083a1 1 0 0 0 1.226 0l.094 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z",key:"svg-0"}]],iye=Qe("filled","circle-check-filled","CircleCheckFilled",sye);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const aye=[["path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-6.489 5.8a1 1 0 0 0 -1.218 1.567l1.292 1.293l-1.292 1.293l-.083 .094a1 1 0 0 0 1.497 1.32l1.293 -1.292l1.293 1.292l.094 .083a1 1 0 0 0 1.32 -1.497l-1.292 -1.293l1.292 -1.293l.083 -.094a1 1 0 0 0 -1.497 -1.32l-1.293 1.292l-1.293 -1.292l-.094 -.083z",key:"svg-0"}]],p8=Qe("filled","circle-x-filled","CircleXFilled",aye);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const lye=[["path",{d:"M12 7a5 5 0 1 1 -4.995 5.217l-.005 -.217l.005 -.217a5 5 0 0 1 4.995 -4.783z",key:"svg-0"}]],cye=Qe("filled","point-filled","PointFilled",lye);var rz=typeof global=="object"&&global&&global.Object===Object&&global,uye=typeof self=="object"&&self&&self.Object===Object&&self,pc=rz||uye||Function("return this")(),ma=pc.Symbol,oz=Object.prototype,dye=oz.hasOwnProperty,fye=oz.toString,Yy=ma?ma.toStringTag:void 0;function hye(t){var e=dye.call(t,Yy),n=t[Yy];try{t[Yy]=void 0;var r=!0}catch{}var o=fye.call(t);return r&&(e?t[Yy]=n:delete t[Yy]),o}var pye=Object.prototype,mye=pye.toString;function gye(t){return mye.call(t)}var yye="[object Null]",vye="[object Undefined]",jR=ma?ma.toStringTag:void 0;function Cu(t){return t==null?t===void 0?vye:yye:jR&&jR in Object(t)?hye(t):gye(t)}function ga(t){return t!=null&&typeof t=="object"}var bye="[object Symbol]";function K1(t){return typeof t=="symbol"||ga(t)&&Cu(t)==bye}function O1(t,e){for(var n=-1,r=t==null?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}var no=Array.isArray,DR=ma?ma.prototype:void 0,AR=DR?DR.toString:void 0;function sz(t){if(typeof t=="string")return t;if(no(t))return O1(t,sz)+"";if(K1(t))return AR?AR.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var Sye=/\s/;function wye(t){for(var e=t.length;e--&&Sye.test(t.charAt(e)););return e}var xye=/^\s+/;function Cye(t){return t&&t.slice(0,wye(t)+1).replace(xye,"")}function Ls(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var RR=NaN,_ye=/^[-+]0x[0-9a-f]+$/i,Tye=/^0b[01]+$/i,Eye=/^0o[0-7]+$/i,kye=parseInt;function Mye(t){if(typeof t=="number")return t;if(K1(t))return RR;if(Ls(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Ls(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Cye(t);var n=Tye.test(t);return n||Eye.test(t)?kye(t.slice(2),n?2:8):_ye.test(t)?RR:+t}var OR=1/0,jye=17976931348623157e292;function Dye(t){if(!t)return t===0?t:0;if(t=Mye(t),t===OR||t===-OR){var e=t<0?-1:1;return e*jye}return t===t?t:0}function Aye(t){var e=Dye(t),n=e%1;return e===e?n?e-n:e:0}function Xx(t){return t}var Rye="[object AsyncFunction]",Oye="[object Function]",Pye="[object GeneratorFunction]",Nye="[object Proxy]";function Vv(t){if(!Ls(t))return!1;var e=Cu(t);return e==Oye||e==Pye||e==Rye||e==Nye}var z6=pc["__core-js_shared__"],PR=(function(){var t=/[^.]+$/.exec(z6&&z6.keys&&z6.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function Iye(t){return!!PR&&PR in t}var $ye=Function.prototype,Lye=$ye.toString;function bp(t){if(t!=null){try{return Lye.call(t)}catch{}try{return t+""}catch{}}return""}var Fye=/[\\^$.*+?()[\]{}|]/g,zye=/^\[object .+?Constructor\]$/,Uye=Function.prototype,Bye=Object.prototype,Hye=Uye.toString,qye=Bye.hasOwnProperty,Vye=RegExp("^"+Hye.call(qye).replace(Fye,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Yye(t){if(!Ls(t)||Iye(t))return!1;var e=Vv(t)?Vye:zye;return e.test(bp(t))}function Gye(t,e){return t==null?void 0:t[e]}function Sp(t,e){var n=Gye(t,e);return Yye(n)?n:void 0}var m8=Sp(pc,"WeakMap"),NR=Object.create,Wye=(function(){function t(){}return function(e){if(!Ls(e))return{};if(NR)return NR(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}})();function Qye(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Kye(){}function iz(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var Xye=800,Zye=16,Jye=Date.now;function eve(t){var e=0,n=0;return function(){var r=Jye(),o=Zye-(r-n);if(n=r,o>0){if(++e>=Xye)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function tve(t){return function(){return t}}var f4=(function(){try{var t=Sp(Object,"defineProperty");return t({},"",{}),t}catch{}})(),nve=f4?function(t,e){return f4(t,"toString",{configurable:!0,enumerable:!1,value:tve(e),writable:!0})}:Xx,az=eve(nve);function rve(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function lz(t,e,n,r){for(var o=t.length,s=n+-1;++s<o;)if(e(t[s],s,t))return s;return-1}function ove(t){return t!==t}function sve(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}function ive(t,e,n){return e===e?sve(t,e,n):lz(t,ove,n)}function cz(t,e){var n=t==null?0:t.length;return!!n&&ive(t,e,0)>-1}var ave=9007199254740991,lve=/^(?:0|[1-9]\d*)$/;function P2(t,e){var n=typeof t;return e=e??ave,!!e&&(n=="number"||n!="symbol"&&lve.test(t))&&t>-1&&t%1==0&&t<e}function Tg(t,e,n){e=="__proto__"&&f4?f4(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function N2(t,e){return t===e||t!==t&&e!==e}var cve=Object.prototype,uve=cve.hasOwnProperty;function YE(t,e,n){var r=t[e];(!(uve.call(t,e)&&N2(r,n))||n===void 0&&!(e in t))&&Tg(t,e,n)}function I2(t,e,n,r){var o=!n;n||(n={});for(var s=-1,i=e.length;++s<i;){var l=e[s],c=r?r(n[l],t[l],l,n,t):void 0;c===void 0&&(c=t[l]),o?Tg(n,l,c):YE(n,l,c)}return n}var IR=Math.max;function uz(t,e,n){return e=IR(e===void 0?t.length-1:e,0),function(){for(var r=arguments,o=-1,s=IR(r.length-e,0),i=Array(s);++o<s;)i[o]=r[e+o];o=-1;for(var l=Array(e+1);++o<e;)l[o]=r[o];return l[e]=n(i),Qye(t,this,l)}}function Eg(t,e){return az(uz(t,e,Xx),t+"")}var dve=9007199254740991;function GE(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=dve}function sf(t){return t!=null&&GE(t.length)&&!Vv(t)}function g8(t,e,n){if(!Ls(n))return!1;var r=typeof e;return(r=="number"?sf(n)&&P2(e,n.length):r=="string"&&e in n)?N2(n[e],t):!1}function fve(t){return Eg(function(e,n){var r=-1,o=n.length,s=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(s=t.length>3&&typeof s=="function"?(o--,s):void 0,i&&g8(n[0],n[1],i)&&(s=o<3?void 0:s,o=1),e=Object(e);++r<o;){var l=n[r];l&&t(e,l,r,s)}return e})}var hve=Object.prototype;function Zx(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||hve;return t===n}function pve(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var mve="[object Arguments]";function $R(t){return ga(t)&&Cu(t)==mve}var dz=Object.prototype,gve=dz.hasOwnProperty,yve=dz.propertyIsEnumerable,X1=$R((function(){return arguments})())?$R:function(t){return ga(t)&&gve.call(t,"callee")&&!yve.call(t,"callee")};function vve(){return!1}var fz=typeof exports=="object"&&exports&&!exports.nodeType&&exports,LR=fz&&typeof module=="object"&&module&&!module.nodeType&&module,bve=LR&&LR.exports===fz,FR=bve?pc.Buffer:void 0,Sve=FR?FR.isBuffer:void 0,Z1=Sve||vve,wve="[object Arguments]",xve="[object Array]",Cve="[object Boolean]",_ve="[object Date]",Tve="[object Error]",Eve="[object Function]",kve="[object Map]",Mve="[object Number]",jve="[object Object]",Dve="[object RegExp]",Ave="[object Set]",Rve="[object String]",Ove="[object WeakMap]",Pve="[object ArrayBuffer]",Nve="[object DataView]",Ive="[object Float32Array]",$ve="[object Float64Array]",Lve="[object Int8Array]",Fve="[object Int16Array]",zve="[object Int32Array]",Uve="[object Uint8Array]",Bve="[object Uint8ClampedArray]",Hve="[object Uint16Array]",qve="[object Uint32Array]",Mr={};Mr[Ive]=Mr[$ve]=Mr[Lve]=Mr[Fve]=Mr[zve]=Mr[Uve]=Mr[Bve]=Mr[Hve]=Mr[qve]=!0;Mr[wve]=Mr[xve]=Mr[Pve]=Mr[Cve]=Mr[Nve]=Mr[_ve]=Mr[Tve]=Mr[Eve]=Mr[kve]=Mr[Mve]=Mr[jve]=Mr[Dve]=Mr[Ave]=Mr[Rve]=Mr[Ove]=!1;function Vve(t){return ga(t)&&GE(t.length)&&!!Mr[Cu(t)]}function $2(t){return function(e){return t(e)}}var hz=typeof exports=="object"&&exports&&!exports.nodeType&&exports,gv=hz&&typeof module=="object"&&module&&!module.nodeType&&module,Yve=gv&&gv.exports===hz,U6=Yve&&rz.process,J1=(function(){try{var t=gv&&gv.require&&gv.require("util").types;return t||U6&&U6.binding&&U6.binding("util")}catch{}})(),zR=J1&&J1.isTypedArray,Jx=zR?$2(zR):Vve,Gve=Object.prototype,Wve=Gve.hasOwnProperty;function pz(t,e){var n=no(t),r=!n&&X1(t),o=!n&&!r&&Z1(t),s=!n&&!r&&!o&&Jx(t),i=n||r||o||s,l=i?pve(t.length,String):[],c=l.length;for(var d in t)(e||Wve.call(t,d))&&!(i&&(d=="length"||o&&(d=="offset"||d=="parent")||s&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||P2(d,c)))&&l.push(d);return l}function mz(t,e){return function(n){return t(e(n))}}var Qve=mz(Object.keys,Object),Kve=Object.prototype,Xve=Kve.hasOwnProperty;function gz(t){if(!Zx(t))return Qve(t);var e=[];for(var n in Object(t))Xve.call(t,n)&&n!="constructor"&&e.push(n);return e}function kg(t){return sf(t)?pz(t):gz(t)}function Zve(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var Jve=Object.prototype,e2e=Jve.hasOwnProperty;function t2e(t){if(!Ls(t))return Zve(t);var e=Zx(t),n=[];for(var r in t)r=="constructor"&&(e||!e2e.call(t,r))||n.push(r);return n}function L2(t){return sf(t)?pz(t,!0):t2e(t)}var n2e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r2e=/^\w*$/;function WE(t,e){if(no(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||K1(t)?!0:r2e.test(t)||!n2e.test(t)||e!=null&&t in Object(e)}var Yv=Sp(Object,"create");function o2e(){this.__data__=Yv?Yv(null):{},this.size=0}function s2e(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var i2e="__lodash_hash_undefined__",a2e=Object.prototype,l2e=a2e.hasOwnProperty;function c2e(t){var e=this.__data__;if(Yv){var n=e[t];return n===i2e?void 0:n}return l2e.call(e,t)?e[t]:void 0}var u2e=Object.prototype,d2e=u2e.hasOwnProperty;function f2e(t){var e=this.__data__;return Yv?e[t]!==void 0:d2e.call(e,t)}var h2e="__lodash_hash_undefined__";function p2e(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Yv&&e===void 0?h2e:e,this}function ip(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ip.prototype.clear=o2e;ip.prototype.delete=s2e;ip.prototype.get=c2e;ip.prototype.has=f2e;ip.prototype.set=p2e;function m2e(){this.__data__=[],this.size=0}function e5(t,e){for(var n=t.length;n--;)if(N2(t[n][0],e))return n;return-1}var g2e=Array.prototype,y2e=g2e.splice;function v2e(t){var e=this.__data__,n=e5(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():y2e.call(e,n,1),--this.size,!0}function b2e(t){var e=this.__data__,n=e5(e,t);return n<0?void 0:e[n][1]}function S2e(t){return e5(this.__data__,t)>-1}function w2e(t,e){var n=this.__data__,r=e5(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function _u(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}_u.prototype.clear=m2e;_u.prototype.delete=v2e;_u.prototype.get=b2e;_u.prototype.has=S2e;_u.prototype.set=w2e;var Gv=Sp(pc,"Map");function x2e(){this.size=0,this.__data__={hash:new ip,map:new(Gv||_u),string:new ip}}function C2e(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function t5(t,e){var n=t.__data__;return C2e(e)?n[typeof e=="string"?"string":"hash"]:n.map}function _2e(t){var e=t5(this,t).delete(t);return this.size-=e?1:0,e}function T2e(t){return t5(this,t).get(t)}function E2e(t){return t5(this,t).has(t)}function k2e(t,e){var n=t5(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Tu(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Tu.prototype.clear=x2e;Tu.prototype.delete=_2e;Tu.prototype.get=T2e;Tu.prototype.has=E2e;Tu.prototype.set=k2e;var M2e="Expected a function";function QE(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(M2e);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],s=n.cache;if(s.has(o))return s.get(o);var i=t.apply(this,r);return n.cache=s.set(o,i)||s,i};return n.cache=new(QE.Cache||Tu),n}QE.Cache=Tu;var j2e=500;function D2e(t){var e=QE(t,function(r){return n.size===j2e&&n.clear(),r}),n=e.cache;return e}var A2e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,R2e=/\\(\\)?/g,O2e=D2e(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(A2e,function(n,r,o,s){e.push(o?s.replace(R2e,"$1"):r||n)}),e});function yz(t){return t==null?"":sz(t)}function F2(t,e){return no(t)?t:WE(t,e)?[t]:O2e(yz(t))}function Mg(t){if(typeof t=="string"||K1(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function z2(t,e){e=F2(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[Mg(e[n++])];return n&&n==r?t:void 0}function ft(t,e,n){var r=t==null?void 0:z2(t,e);return r===void 0?n:r}function KE(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}var UR=ma?ma.isConcatSpreadable:void 0;function P2e(t){return no(t)||X1(t)||!!(UR&&t&&t[UR])}function jg(t,e,n,r,o){var s=-1,i=t.length;for(n||(n=P2e),o||(o=[]);++s<i;){var l=t[s];e>0&&n(l)?e>1?jg(l,e-1,n,r,o):KE(o,l):r||(o[o.length]=l)}return o}function N2e(t){var e=t==null?0:t.length;return e?jg(t,1):[]}function I2e(t){return az(uz(t,void 0,N2e),t+"")}var XE=mz(Object.getPrototypeOf,Object),$2e="[object Object]",L2e=Function.prototype,F2e=Object.prototype,vz=L2e.toString,z2e=F2e.hasOwnProperty,U2e=vz.call(Object);function B2e(t){if(!ga(t)||Cu(t)!=$2e)return!1;var e=XE(t);if(e===null)return!0;var n=z2e.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&vz.call(n)==U2e}function H2e(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),n=n>o?o:n,n<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(o);++r<o;)s[r]=t[r+e];return s}function q2e(){this.__data__=new _u,this.size=0}function V2e(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function Y2e(t){return this.__data__.get(t)}function G2e(t){return this.__data__.has(t)}var W2e=200;function Q2e(t,e){var n=this.__data__;if(n instanceof _u){var r=n.__data__;if(!Gv||r.length<W2e-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Tu(r)}return n.set(t,e),this.size=n.size,this}function el(t){var e=this.__data__=new _u(t);this.size=e.size}el.prototype.clear=q2e;el.prototype.delete=V2e;el.prototype.get=Y2e;el.prototype.has=G2e;el.prototype.set=Q2e;function K2e(t,e){return t&&I2(e,kg(e),t)}function X2e(t,e){return t&&I2(e,L2(e),t)}var bz=typeof exports=="object"&&exports&&!exports.nodeType&&exports,BR=bz&&typeof module=="object"&&module&&!module.nodeType&&module,Z2e=BR&&BR.exports===bz,HR=Z2e?pc.Buffer:void 0,qR=HR?HR.allocUnsafe:void 0;function Sz(t,e){if(e)return t.slice();var n=t.length,r=qR?qR(n):new t.constructor(n);return t.copy(r),r}function n5(t,e){for(var n=-1,r=t==null?0:t.length,o=0,s=[];++n<r;){var i=t[n];e(i,n,t)&&(s[o++]=i)}return s}function wz(){return[]}var J2e=Object.prototype,ebe=J2e.propertyIsEnumerable,VR=Object.getOwnPropertySymbols,ZE=VR?function(t){return t==null?[]:(t=Object(t),n5(VR(t),function(e){return ebe.call(t,e)}))}:wz;function tbe(t,e){return I2(t,ZE(t),e)}var nbe=Object.getOwnPropertySymbols,xz=nbe?function(t){for(var e=[];t;)KE(e,ZE(t)),t=XE(t);return e}:wz;function rbe(t,e){return I2(t,xz(t),e)}function Cz(t,e,n){var r=e(t);return no(t)?r:KE(r,n(t))}function y8(t){return Cz(t,kg,ZE)}function obe(t){return Cz(t,L2,xz)}var v8=Sp(pc,"DataView"),b8=Sp(pc,"Promise"),P1=Sp(pc,"Set"),YR="[object Map]",sbe="[object Object]",GR="[object Promise]",WR="[object Set]",QR="[object WeakMap]",KR="[object DataView]",ibe=bp(v8),abe=bp(Gv),lbe=bp(b8),cbe=bp(P1),ube=bp(m8),ua=Cu;(v8&&ua(new v8(new ArrayBuffer(1)))!=KR||Gv&&ua(new Gv)!=YR||b8&&ua(b8.resolve())!=GR||P1&&ua(new P1)!=WR||m8&&ua(new m8)!=QR)&&(ua=function(t){var e=Cu(t),n=e==sbe?t.constructor:void 0,r=n?bp(n):"";if(r)switch(r){case ibe:return KR;case abe:return YR;case lbe:return GR;case cbe:return WR;case ube:return QR}return e});var dbe=Object.prototype,fbe=dbe.hasOwnProperty;function hbe(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&fbe.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var h4=pc.Uint8Array;function JE(t){var e=new t.constructor(t.byteLength);return new h4(e).set(new h4(t)),e}function pbe(t,e){var n=e?JE(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var mbe=/\w*$/;function gbe(t){var e=new t.constructor(t.source,mbe.exec(t));return e.lastIndex=t.lastIndex,e}var XR=ma?ma.prototype:void 0,ZR=XR?XR.valueOf:void 0;function ybe(t){return ZR?Object(ZR.call(t)):{}}function _z(t,e){var n=e?JE(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var vbe="[object Boolean]",bbe="[object Date]",Sbe="[object Map]",wbe="[object Number]",xbe="[object RegExp]",Cbe="[object Set]",_be="[object String]",Tbe="[object Symbol]",Ebe="[object ArrayBuffer]",kbe="[object DataView]",Mbe="[object Float32Array]",jbe="[object Float64Array]",Dbe="[object Int8Array]",Abe="[object Int16Array]",Rbe="[object Int32Array]",Obe="[object Uint8Array]",Pbe="[object Uint8ClampedArray]",Nbe="[object Uint16Array]",Ibe="[object Uint32Array]";function $be(t,e,n){var r=t.constructor;switch(e){case Ebe:return JE(t);case vbe:case bbe:return new r(+t);case kbe:return pbe(t,n);case Mbe:case jbe:case Dbe:case Abe:case Rbe:case Obe:case Pbe:case Nbe:case Ibe:return _z(t,n);case Sbe:return new r;case wbe:case _be:return new r(t);case xbe:return gbe(t);case Cbe:return new r;case Tbe:return ybe(t)}}function Tz(t){return typeof t.constructor=="function"&&!Zx(t)?Wye(XE(t)):{}}var Lbe="[object Map]";function Fbe(t){return ga(t)&&ua(t)==Lbe}var JR=J1&&J1.isMap,zbe=JR?$2(JR):Fbe,Ube="[object Set]";function Bbe(t){return ga(t)&&ua(t)==Ube}var eO=J1&&J1.isSet,Hbe=eO?$2(eO):Bbe,qbe=1,Vbe=2,Ybe=4,Ez="[object Arguments]",Gbe="[object Array]",Wbe="[object Boolean]",Qbe="[object Date]",Kbe="[object Error]",kz="[object Function]",Xbe="[object GeneratorFunction]",Zbe="[object Map]",Jbe="[object Number]",Mz="[object Object]",eSe="[object RegExp]",tSe="[object Set]",nSe="[object String]",rSe="[object Symbol]",oSe="[object WeakMap]",sSe="[object ArrayBuffer]",iSe="[object DataView]",aSe="[object Float32Array]",lSe="[object Float64Array]",cSe="[object Int8Array]",uSe="[object Int16Array]",dSe="[object Int32Array]",fSe="[object Uint8Array]",hSe="[object Uint8ClampedArray]",pSe="[object Uint16Array]",mSe="[object Uint32Array]",xr={};xr[Ez]=xr[Gbe]=xr[sSe]=xr[iSe]=xr[Wbe]=xr[Qbe]=xr[aSe]=xr[lSe]=xr[cSe]=xr[uSe]=xr[dSe]=xr[Zbe]=xr[Jbe]=xr[Mz]=xr[eSe]=xr[tSe]=xr[nSe]=xr[rSe]=xr[fSe]=xr[hSe]=xr[pSe]=xr[mSe]=!0;xr[Kbe]=xr[kz]=xr[oSe]=!1;function pw(t,e,n,r,o,s){var i,l=e&qbe,c=e&Vbe,d=e&Ybe;if(n&&(i=o?n(t,r,o,s):n(t)),i!==void 0)return i;if(!Ls(t))return t;var f=no(t);if(f){if(i=hbe(t),!l)return iz(t,i)}else{var h=ua(t),p=h==kz||h==Xbe;if(Z1(t))return Sz(t,l);if(h==Mz||h==Ez||p&&!o){if(i=c||p?{}:Tz(t),!l)return c?rbe(t,X2e(i,t)):tbe(t,K2e(i,t))}else{if(!xr[h])return o?t:{};i=$be(t,h,l)}}s||(s=new el);var v=s.get(t);if(v)return v;s.set(t,i),Hbe(t)?t.forEach(function(w){i.add(pw(w,e,n,w,t,s))}):zbe(t)&&t.forEach(function(w,_){i.set(_,pw(w,e,n,_,t,s))});var g=d?c?obe:y8:c?L2:kg,S=f?void 0:g(t);return rve(S||t,function(w,_){S&&(_=w,w=t[_]),YE(i,_,pw(w,e,n,_,t,s))}),i}var gSe=1,ySe=4;function vSe(t){return pw(t,gSe|ySe)}var bSe="__lodash_hash_undefined__";function SSe(t){return this.__data__.set(t,bSe),this}function wSe(t){return this.__data__.has(t)}function eg(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Tu;++e<n;)this.add(t[e])}eg.prototype.add=eg.prototype.push=SSe;eg.prototype.has=wSe;function xSe(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function ek(t,e){return t.has(e)}var CSe=1,_Se=2;function jz(t,e,n,r,o,s){var i=n&CSe,l=t.length,c=e.length;if(l!=c&&!(i&&c>l))return!1;var d=s.get(t),f=s.get(e);if(d&&f)return d==e&&f==t;var h=-1,p=!0,v=n&_Se?new eg:void 0;for(s.set(t,e),s.set(e,t);++h<l;){var g=t[h],S=e[h];if(r)var w=i?r(S,g,h,e,t,s):r(g,S,h,t,e,s);if(w!==void 0){if(w)continue;p=!1;break}if(v){if(!xSe(e,function(_,E){if(!ek(v,E)&&(g===_||o(g,_,n,r,s)))return v.push(E)})){p=!1;break}}else if(!(g===S||o(g,S,n,r,s))){p=!1;break}}return s.delete(t),s.delete(e),p}function TSe(t){var e=-1,n=Array(t.size);return t.forEach(function(r,o){n[++e]=[o,r]}),n}function tk(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var ESe=1,kSe=2,MSe="[object Boolean]",jSe="[object Date]",DSe="[object Error]",ASe="[object Map]",RSe="[object Number]",OSe="[object RegExp]",PSe="[object Set]",NSe="[object String]",ISe="[object Symbol]",$Se="[object ArrayBuffer]",LSe="[object DataView]",tO=ma?ma.prototype:void 0,B6=tO?tO.valueOf:void 0;function FSe(t,e,n,r,o,s,i){switch(n){case LSe:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case $Se:return!(t.byteLength!=e.byteLength||!s(new h4(t),new h4(e)));case MSe:case jSe:case RSe:return N2(+t,+e);case DSe:return t.name==e.name&&t.message==e.message;case OSe:case NSe:return t==e+"";case ASe:var l=TSe;case PSe:var c=r&ESe;if(l||(l=tk),t.size!=e.size&&!c)return!1;var d=i.get(t);if(d)return d==e;r|=kSe,i.set(t,e);var f=jz(l(t),l(e),r,o,s,i);return i.delete(t),f;case ISe:if(B6)return B6.call(t)==B6.call(e)}return!1}var zSe=1,USe=Object.prototype,BSe=USe.hasOwnProperty;function HSe(t,e,n,r,o,s){var i=n&zSe,l=y8(t),c=l.length,d=y8(e),f=d.length;if(c!=f&&!i)return!1;for(var h=c;h--;){var p=l[h];if(!(i?p in e:BSe.call(e,p)))return!1}var v=s.get(t),g=s.get(e);if(v&&g)return v==e&&g==t;var S=!0;s.set(t,e),s.set(e,t);for(var w=i;++h<c;){p=l[h];var _=t[p],E=e[p];if(r)var T=i?r(E,_,p,e,t,s):r(_,E,p,t,e,s);if(!(T===void 0?_===E||o(_,E,n,r,s):T)){S=!1;break}w||(w=p=="constructor")}if(S&&!w){var M=t.constructor,j=e.constructor;M!=j&&"constructor"in t&&"constructor"in e&&!(typeof M=="function"&&M instanceof M&&typeof j=="function"&&j instanceof j)&&(S=!1)}return s.delete(t),s.delete(e),S}var qSe=1,nO="[object Arguments]",rO="[object Array]",O3="[object Object]",VSe=Object.prototype,oO=VSe.hasOwnProperty;function YSe(t,e,n,r,o,s){var i=no(t),l=no(e),c=i?rO:ua(t),d=l?rO:ua(e);c=c==nO?O3:c,d=d==nO?O3:d;var f=c==O3,h=d==O3,p=c==d;if(p&&Z1(t)){if(!Z1(e))return!1;i=!0,f=!1}if(p&&!f)return s||(s=new el),i||Jx(t)?jz(t,e,n,r,o,s):FSe(t,e,c,n,r,o,s);if(!(n&qSe)){var v=f&&oO.call(t,"__wrapped__"),g=h&&oO.call(e,"__wrapped__");if(v||g){var S=v?t.value():t,w=g?e.value():e;return s||(s=new el),o(S,w,n,r,s)}}return p?(s||(s=new el),HSe(t,e,n,r,o,s)):!1}function r5(t,e,n,r,o){return t===e?!0:t==null||e==null||!ga(t)&&!ga(e)?t!==t&&e!==e:YSe(t,e,n,r,r5,o)}var GSe=1,WSe=2;function QSe(t,e,n,r){var o=n.length,s=o;if(t==null)return!s;for(t=Object(t);o--;){var i=n[o];if(i[2]?i[1]!==t[i[0]]:!(i[0]in t))return!1}for(;++o<s;){i=n[o];var l=i[0],c=t[l],d=i[1];if(i[2]){if(c===void 0&&!(l in t))return!1}else{var f=new el,h;if(!(h===void 0?r5(d,c,GSe|WSe,r,f):h))return!1}}return!0}function Dz(t){return t===t&&!Ls(t)}function KSe(t){for(var e=kg(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,Dz(o)]}return e}function Az(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function XSe(t){var e=KSe(t);return e.length==1&&e[0][2]?Az(e[0][0],e[0][1]):function(n){return n===t||QSe(n,t,e)}}function ZSe(t,e){return t!=null&&e in Object(t)}function JSe(t,e,n){e=F2(e,t);for(var r=-1,o=e.length,s=!1;++r<o;){var i=Mg(e[r]);if(!(s=t!=null&&n(t,i)))break;t=t[i]}return s||++r!=o?s:(o=t==null?0:t.length,!!o&&GE(o)&&P2(i,o)&&(no(t)||X1(t)))}function Rz(t,e){return t!=null&&JSe(t,e,ZSe)}var e3e=1,t3e=2;function n3e(t,e){return WE(t)&&Dz(e)?Az(Mg(t),e):function(n){var r=ft(n,t);return r===void 0&&r===e?Rz(n,t):r5(e,r,e3e|t3e)}}function r3e(t){return function(e){return e==null?void 0:e[t]}}function o3e(t){return function(e){return z2(e,t)}}function s3e(t){return WE(t)?r3e(Mg(t)):o3e(t)}function ul(t){return typeof t=="function"?t:t==null?Xx:typeof t=="object"?no(t)?n3e(t[0],t[1]):XSe(t):s3e(t)}function i3e(t,e,n,r){for(var o=-1,s=t==null?0:t.length;++o<s;){var i=t[o];e(r,i,n(i),t)}return r}function a3e(t){return function(e,n,r){for(var o=-1,s=Object(e),i=r(e),l=i.length;l--;){var c=i[++o];if(n(s[c],c,s)===!1)break}return e}}var Oz=a3e();function Pz(t,e){return t&&Oz(t,e,kg)}function l3e(t,e){return function(n,r){if(n==null)return n;if(!sf(n))return t(n,r);for(var o=n.length,s=-1,i=Object(n);++s<o&&r(i[s],s,i)!==!1;);return n}}var nk=l3e(Pz);function c3e(t,e,n,r){return nk(t,function(o,s,i){e(r,o,n(o),i)}),r}function Nz(t,e){return function(n,r){var o=no(n)?i3e:c3e,s={};return o(n,t,ul(r),s)}}function S8(t,e,n){(n!==void 0&&!N2(t[e],n)||n===void 0&&!(e in t))&&Tg(t,e,n)}function ap(t){return ga(t)&&sf(t)}function w8(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function u3e(t){return I2(t,L2(t))}function d3e(t,e,n,r,o,s,i){var l=w8(t,n),c=w8(e,n),d=i.get(c);if(d){S8(t,n,d);return}var f=s?s(l,c,n+"",t,e,i):void 0,h=f===void 0;if(h){var p=no(c),v=!p&&Z1(c),g=!p&&!v&&Jx(c);f=c,p||v||g?no(l)?f=l:ap(l)?f=iz(l):v?(h=!1,f=Sz(c,!0)):g?(h=!1,f=_z(c,!0)):f=[]:B2e(c)||X1(c)?(f=l,X1(l)?f=u3e(l):(!Ls(l)||Vv(l))&&(f=Tz(c))):h=!1}h&&(i.set(c,f),o(f,c,r,s,i),i.delete(c)),S8(t,n,f)}function Iz(t,e,n,r,o){t!==e&&Oz(e,function(s,i){if(o||(o=new el),Ls(s))d3e(t,e,i,n,Iz,r,o);else{var l=r?r(w8(t,i),s,i+"",t,e,o):void 0;l===void 0&&(l=s),S8(t,i,l)}},L2)}var f3e=200;function rk(t,e,n,r){var o=-1,s=cz,i=!0,l=t.length,c=[],d=e.length;if(!l)return c;n&&(e=O1(e,$2(n))),e.length>=f3e&&(s=ek,i=!1,e=new eg(e));e:for(;++o<l;){var f=t[o],h=n==null?f:n(f);if(f=f!==0?f:0,i&&h===h){for(var p=d;p--;)if(e[p]===h)continue e;c.push(f)}else s(e,h,r)||c.push(f)}return c}var h3e=Eg(function(t,e){return ap(t)?rk(t,jg(e,1,ap,!0)):[]});function $z(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function p3e(t,e){var n=[];return nk(t,function(r,o,s){e(r,o,s)&&n.push(r)}),n}function N1(t,e){var n=no(t)?n5:p3e;return n(t,ul(e))}function m3e(t){return function(e,n,r){var o=Object(e);if(!sf(e)){var s=ul(n);e=kg(e),n=function(l){return s(o[l],l,o)}}var i=t(e,n,r);return i>-1?o[s?e[i]:i]:void 0}}var g3e=Math.max;function y3e(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var o=n==null?0:Aye(n);return o<0&&(o=g3e(r+o,0)),lz(t,ul(e),o)}var Bh=m3e(y3e);function Lz(t,e){var n=-1,r=sf(t)?Array(t.length):[];return nk(t,function(o,s,i){r[++n]=e(o,s,i)}),r}function Dg(t,e){var n=no(t)?O1:Lz;return n(t,ul(e))}function v3e(t,e){return jg(Dg(t,e),1)}var b3e=Object.prototype,S3e=b3e.hasOwnProperty,w3e=Nz(function(t,e,n){S3e.call(t,n)?t[n].push(e):Tg(t,n,[e])}),x3e="[object String]";function Ag(t){return typeof t=="string"||!no(t)&&ga(t)&&Cu(t)==x3e}function C3e(t,e){return e.length<2?t:z2(t,H2e(e,0,-1))}var _3e="[object Map]",T3e="[object Set]",E3e=Object.prototype,k3e=E3e.hasOwnProperty;function M3e(t){if(t==null)return!0;if(sf(t)&&(no(t)||typeof t=="string"||typeof t.splice=="function"||Z1(t)||Jx(t)||X1(t)))return!t.length;var e=ua(t);if(e==_3e||e==T3e)return!t.size;if(Zx(t))return!gz(t).length;for(var n in t)if(k3e.call(t,n))return!1;return!0}function o5(t,e){return r5(t,e)}var j3e="[object Number]";function Zr(t){return typeof t=="number"||ga(t)&&Cu(t)==j3e}function Fz(t){return t==null}function s5(t){return t===null}var zz=Nz(function(t,e,n){Tg(t,n,e)});function ok(t,e){var n={};return e=ul(e),Pz(t,function(r,o,s){Tg(n,o,e(r,o,s))}),n}function D3e(t,e){for(var n,r=-1,o=t.length;++r<o;){var s=e(t[r]);s!==void 0&&(n=n===void 0?s:n+s)}return n}var Uz=fve(function(t,e,n){Iz(t,e,n)}),A3e=Object.prototype,R3e=A3e.hasOwnProperty;function O3e(t,e){e=F2(e,t);var n=-1,r=e.length;if(!r)return!0;for(var o=t==null||typeof t!="object"&&typeof t!="function";++n<r;){var s=e[n];if(typeof s=="string"){if(s==="__proto__"&&!R3e.call(t,"__proto__"))return!1;if(s==="constructor"&&n+1<r&&typeof e[n+1]=="string"&&e[n+1]==="prototype"){if(o&&n===0)continue;return!1}}}var i=C3e(t,e);return i==null||delete i[Mg($z(e))]}function P3e(t,e,n,r){if(!Ls(t))return t;e=F2(e,t);for(var o=-1,s=e.length,i=s-1,l=t;l!=null&&++o<s;){var c=Mg(e[o]),d=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return t;if(o!=i){var f=l[c];d=void 0,d===void 0&&(d=Ls(f)?f:P2(e[o+1])?[]:{})}YE(l,c,d),l=l[c]}return t}function N3e(t,e,n){for(var r=-1,o=e.length,s={};++r<o;){var i=e[r],l=z2(t,i);n(l,i)&&P3e(s,F2(i,t),l)}return s}function I3e(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function $3e(t,e){if(t!==e){var n=t!==void 0,r=t===null,o=t===t,s=K1(t),i=e!==void 0,l=e===null,c=e===e,d=K1(e);if(!l&&!d&&!s&&t>e||s&&i&&c&&!l&&!d||r&&i&&c||!n&&c||!o)return 1;if(!r&&!s&&!d&&t<e||d&&n&&o&&!r&&!s||l&&n&&o||!i&&o||!c)return-1}return 0}function L3e(t,e,n){for(var r=-1,o=t.criteria,s=e.criteria,i=o.length,l=n.length;++r<i;){var c=$3e(o[r],s[r]);if(c){if(r>=l)return c;var d=n[r];return c*(d=="desc"?-1:1)}}return t.index-e.index}function Bz(t,e,n){e.length?e=O1(e,function(s){return no(s)?function(i){return z2(i,s.length===1?s[0]:s)}:s}):e=[Xx];var r=-1;e=O1(e,$2(ul));var o=Lz(t,function(s,i,l){var c=O1(e,function(d){return d(s)});return{criteria:c,index:++r,value:s}});return I3e(o,function(s,i){return L3e(s,i,n)})}function Fs(t,e,n,r){return t==null?[]:(no(e)||(e=e==null?[]:[e]),n=n,no(n)||(n=n==null?[]:[n]),Bz(t,e,n))}function F3e(t,e){return N3e(t,e,function(n,r){return Rz(t,r)})}var sO=I2e(function(t,e){return t==null?{}:F3e(t,e)}),z3e=Array.prototype,U3e=z3e.splice;function B3e(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==s){var s=o;P2(o)?U3e.call(t,o,1):O3e(t,o)}}return t}function H3e(t,e){var n=[];if(!(t&&t.length))return n;var r=-1,o=[],s=t.length;for(e=ul(e);++r<s;){var i=t[r];e(i,r,t)&&(n.push(i),o.push(r))}return B3e(t,o),n}var q3e=Eg(function(t,e){if(t==null)return[];var n=e.length;return n>1&&g8(t,e[0],e[1])?e=[]:n>2&&g8(e[0],e[1],e[2])&&(e=[e[0]]),Bz(t,jg(e,1),[])});function iO(t,e){return t&&t.length?D3e(t,ul(e)):0}var V3e=1/0,Y3e=P1&&1/tk(new P1([,-0]))[1]==V3e?function(t){return new P1(t)}:Kye,G3e=200;function p4(t,e,n){var r=-1,o=cz,s=t.length,i=!0,l=[],c=l;if(s>=G3e){var d=e?null:Y3e(t);if(d)return tk(d);i=!1,o=ek,c=new eg}else c=e?[]:l;e:for(;++r<s;){var f=t[r],h=e?e(f):f;if(f=f!==0?f:0,i&&h===h){for(var p=c.length;p--;)if(c[p]===h)continue e;e&&c.push(h),l.push(f)}else o(c,h,n)||(c!==l&&c.push(h),l.push(f))}return l}function ha(t){return t&&t.length?p4(t):[]}function b1(t,e){return t&&t.length?p4(t,ul(e)):[]}var W3e=0;function H6(t){var e=++W3e;return yz(t)+e}var Q3e=Eg(function(t,e){return ap(t)?rk(t,e):[]});function Hz(t,e,n){var r=t.length;if(r<2)return r?p4(t[0]):[];for(var o=-1,s=Array(r);++o<r;)for(var i=t[o],l=-1;++l<r;)l!=o&&(s[o]=rk(s[o]||i,t[l],e,n));return p4(jg(s,1),e,n)}var i5=Eg(function(t){return Hz(n5(t,ap))}),qz=Eg(function(t){var e=$z(t);return ap(e)&&(e=void 0),Hz(n5(t,ap),ul(e))});const Hr=(t,e={})=>{const{successMsg:n,errorMsg:r,onSuccess:o}=e;return t.then(s=>{if(n){const i=Vv(n)?n(s):n,l={id:e.notifyId,...Ls(i)?i:{message:i}};x8(l),o==null||o(s)}return s}).catch(s=>{if(r){const i=Vv(r)?r(s):r,l={id:e.notifyId,...Ls(i)?i:{message:i}};ds(l)}throw s})},x8=t=>{Bx({color:"blue",icon:b.jsx(LE,{size:30}),...t})},ds=t=>{Bx({color:"red",icon:b.jsx(p8,{size:30}),...t})};var hs;(t=>{(e=>{e[e.All=0]="All",e[e.Projects=1]="Projects",e[e.Sprints=2]="Sprints",e[e.ProjectsAndSprints=3]="ProjectsAndSprints",e[e.Tasks=4]="Tasks"})(t.ProjectReturnDataType||(t.ProjectReturnDataType={}))})(hs||(hs={}));var cr;(t=>{(e=>{e[e.NotStated=0]="NotStated",e[e.Text=1]="Text",e[e.Link=2]="Link",e[e.Variants=4]="Variants",e[e.Collection=8]="Collection"})(t.IType||(t.IType={})),(e=>{e[e.Int=1]="Int",e[e.Long=2]="Long",e[e.String=3]="String",e[e.Double=4]="Double",e[e.Date=5]="Date",e[e.Array=6]="Array",e[e.Link=7]="Link",e[e.Select=8]="Select",e[e.Option=9]="Option",e[e.CheckBox=10]="CheckBox",e[e.Secure=11]="Secure"})(t.IValueType||(t.IValueType={}))})(cr||(cr={}));const P3=[Ie.IStatusType.BeExecuted,Ie.IStatusType.Custom,Ie.IStatusType.Active,Ie.IStatusType.Done,Ie.IStatusType.Closed];function sk(t){function e(i,l){var v,g;const c=l&&i.Flags===Ie.ProjectFlags.DEFAULT,d=c?l.statusesEntityId:i.Id,f=c?l.statusesEntityType:Ie.Entity.Project,h=[...(l==null?void 0:l.pathById)||[],i.Id],p={...i,pathById:h,rootProjectId:h[0],isProject:!i.ParentId,isFolder:!!i.ParentId,statusesEntityId:d,statusesEntityType:f,Children:[],Sprints:[]};return p.Children=((v=i.Children)==null?void 0:v.map(S=>e(S,p)))||[],p.Sprints=((g=i.Sprints)==null?void 0:g.map(S=>n(S,p)))||[],p}function n(i,l){const c=[...(l==null?void 0:l.pathById)||[],i.Id],d=l&&i.Flags===Ie.ProjectFlags.DEFAULT,f=d?l.statusesEntityId:i.Id,h=d?l.statusesEntityType:Ie.Entity.Sprint;return{...i,isSprint:!0,pathById:c,rootProjectId:c[0],statusesEntityId:f,statusesEntityType:h}}function r(i){const l={},c={},d=f=>{f.forEach(h=>{l[h.Id]=h,h.Sprints&&h.Sprints.forEach(p=>{c[p.Id]=p}),h.Children&&d(h.Children)})};return d(i),{folderEntities:l,sprintEntities:c}}const o=t.filter(i=>!i.ParentId).map(i=>e(i)),s=r(o);return{list:o,...s}}function K3e({ReturnDataType:t}){const e={States:ik(),ReturnDataType:t};return wt.endpoints.fetchProjects.select(e)(lt.getState())}const ik=t=>{const e=lt.getState().archiveSlice;return e.myProjects.isProjectsShow||e.myProjects.isSprintsShow||e.otherProjects.isProjectsShow||e.otherProjects.isSprintsShow||t?[Ie.EntityState.Active,Ie.EntityState.Archive,Ie.EntityState.ArchiveParent]:[Ie.EntityState.Active]};function Vz(t){return t.slice().sort((e,n)=>{const r=P3.includes(e.type)?P3.indexOf(e.type):Number.MAX_SAFE_INTEGER,o=P3.includes(n.type)?P3.indexOf(n.type):Number.MAX_SAFE_INTEGER;return r!==o?r-o:(e.order??0)-(n.order??0)})}const X3e=t=>Vz(t.map(e=>({...e,type:e.Type,order:e.Order}))),Z3e=t=>Vz(t.map(e=>({...e,type:e.type,order:e.order}))),ov=(t,e)=>{if(!t)return[];const n=[t.Name,...ov(t.Parent,!0)];return e?n:n.reverse()},mw=t=>t!=null&&t.Parent?mw(t.Parent):(t==null?void 0:t.ParentId)||(t==null?void 0:t.Id)||0,J3e=t=>{const{data:e}=K3e({ReturnDataType:hs.ProjectReturnDataType.Projects}),n=sk((e==null?void 0:e.Projects)||[]);let r=[];return t==null||t.Projects.forEach(o=>{const s={uniqId:H6(),id:o.Id,title:o.Name,entityType:Ie.Entity.Project,pathByName:ov(o.Parent),removeDate:o.Updated,removedBy:o.DeleteUserId,color:o.Color,iconId:o.IconId,parentId:o.ParentId,rootProjectId:mw(o),access:o.AccessType,state:o.State};r=[...r,s].sort((i,l)=>i.pathByName.length-l.pathByName.length)}),t==null||t.Sprints.forEach(o=>{var s,i;return r.push({uniqId:H6(),id:o.Id,title:o.Name,entityType:Ie.Entity.Sprint,pathByName:ov(o.Parent)||o.Id,removeDate:o.Updated,removedBy:o.DeleteUserId,color:null,iconId:null,parentId:((s=o.Parent)==null?void 0:s.Id)||null,rootProjectId:mw(o.Parent),access:((i=o.Parent)==null?void 0:i.AccessType)||Ie.AccessType.Read,state:o.State})}),t==null||t.Tasks.forEach(o=>{var s;return r.push({uniqId:H6(),id:o.Id,title:o.Title,entityType:Ie.Entity.ProjectTask,pathByName:n!=null&&n.sprintEntities[o.SprintId]?[...ov(o.Parent),n==null?void 0:n.sprintEntities[o.SprintId].Name]:ov(o.Parent),removeDate:o.Updated,removedBy:o.DeleteUserId,color:null,iconId:null,typeId:o.TypeId,parentId:o.ParentId,rootProjectId:mw(o.Parent)||o.Id,access:((s=o.Parent)==null?void 0:s.AccessType)||Ie.AccessType.Read,state:o.State})}),r};function Eu(t,e){function n(l,c){var g,S;const d=c&&l.Flags===Ie.ProjectFlags.DEFAULT,f=d?c.statusesEntityId:l.Id,h=d?c.statusesEntityType:Ie.Entity.Project,p=[...(c==null?void 0:c.pathById)||[],l.Id],v={...l,collections:(e==null?void 0:e[l.Id])??[],pathById:p,rootProjectId:p[0],isProject:!l.ParentId,isFolder:!!l.ParentId,statusesEntityId:f,statusesEntityType:h,Children:[],Sprints:[]};return v.Children=((g=l.Children)==null?void 0:g.map(w=>n(w,v)))||[],v.Sprints=((S=l.Sprints)==null?void 0:S.map(w=>r(w,v)))||[],v}function r(l,c){const d=[...(c==null?void 0:c.pathById)||[],l.Id],f=c&&l.Flags===Ie.ProjectFlags.DEFAULT,h=f?c.statusesEntityId:l.Id,p=f?c.statusesEntityType:Ie.Entity.Sprint;return{...l,isSprint:!0,pathById:d,rootProjectId:d[0],statusesEntityId:h,statusesEntityType:p}}function o(l){const c={},d={},f=h=>{h.forEach(p=>{var v,g;c[p.Id]=p,(v=p.Sprints)==null||v.forEach(S=>{d[S.Id]=S}),(g=p.Children)==null||g.forEach(S=>f([S]))})};return f(l),{folderEntities:c,sprintEntities:d}}const s=Yz(t).map(l=>n(l)),i=o(s);return{list:s,...i}}const ku=t=>{const e=lt.getState().archiveSlice;return e.myProjects.isProjectsShow||e.myProjects.isSprintsShow||e.otherProjects.isProjectsShow||e.otherProjects.isSprintsShow||t?[Ie.EntityState.Active,Ie.EntityState.Archive,Ie.EntityState.ArchiveParent]:[Ie.EntityState.Active]},ewe=(t,e)=>t.sort((n,r)=>{if(e){const o=n.OwnerId===e.Id,s=r.OwnerId===e.Id;if(o&&!s)return-1;if(!o&&s)return 1}return n.Order-r.Order}),Yz=t=>t.filter(e=>!e.ParentId),twe=t=>{switch(t){case cr.IType.NotStated:return b.jsx(Va,{size:18});case cr.IType.Text:return b.jsx(zE,{size:18});case cr.IType.Link:return b.jsx(Kx,{size:18});case cr.IType.Variants:return b.jsx(xu,{size:18});case cr.IType.Collection:return b.jsx(_g,{size:18});default:return b.jsx(Va,{size:18})}},Ui=Ki({reducerPath:"tagsApi",baseQuery:Xi("/api"),tagTypes:["Tag","Task","Project"],endpoints:t=>({get:t.query({query:e=>({url:`/v1/ProjectLabels${ur.stringify({ProjectIds:e},{addQueryPrefix:!0})}`,method:"GET"}),providesTags:(e,n,r)=>[...r.map(o=>({type:"Project",id:o}))]}),getByTask:t.query({query:e=>({url:"/v1/ProjectLabels/Links",method:"POST",body:{TaskIds:e}}),providesTags:(e,n,r)=>[...r.map(o=>({type:"Task",id:o})),...(e==null?void 0:e.flatMap(o=>o.LabelIds.map(s=>({type:"Tag",id:s}))))||[]]}),edit:t.mutation({query:e=>({url:"/v1/ProjectLabels",method:"POST",body:e}),invalidatesTags:(e,n,r)=>[{type:"Project",id:r.ProjectId},...r.Labels.map(({Id:o})=>({type:"Tag",Id:o}))]}),remove:t.mutation({query:e=>({url:`/v1/ProjectLabels${ur.stringify(e,{addQueryPrefix:!0})}`,method:"DELETE"}),invalidatesTags:(e,n,r)=>[{type:"Project",id:r.ProjectId},...r.LabelIds.map(o=>({type:"Tag",id:o}))]}),link:t.mutation({query:e=>({url:"/v1/ProjectLabels/Link",method:"POST",body:e}),invalidatesTags:(e,n,r)=>[{type:"Task",id:r.TaskId}],onQueryStarted:async(e,{dispatch:n,queryFulfilled:r,getState:o})=>{const i=Ui.util.selectCachedArgsForQuery(o(),"getByTask").map(l=>n(Ui.util.updateQueryData("getByTask",l,c=>{const d=c.find(f=>f.TaskId===e.TaskId);d&&(d.LabelIds=e.LabelIds)})));try{await r}catch{i.forEach(l=>l.undo())}}})})});var Wv;(t=>{(e=>{e[e.Highest=1]="Highest",e[e.High=2]="High",e[e.Medium=3]="Medium",e[e.Low=4]="Low",e[e.Lowest=5]="Lowest"})(t.IPriority||(t.IPriority={})),(e=>{e[e.Error=-1]="Error",e[e.Unknown=0]="Unknown",e[e.Register=1]="Register",e[e.Start=2]="Start",e[e.Done=3]="Done"})(t.IUserTaskStatus||(t.IUserTaskStatus={})),(e=>{e[e.None=0]="None",e[e.Subtasks=1]="Subtasks"})(t.ItemsExcludeFilter||(t.ItemsExcludeFilter={}))})(Wv||(Wv={}));var m4;(t=>{(e=>{e[e.Comment=1]="Comment",e[e.ChangeStatus=3]="ChangeStatus",e[e.ChangeTask=4]="ChangeTask",e[e.UploadAttachments=5]="UploadAttachments",e[e.AddTask=7]="AddTask",e[e.AssignTask=8]="AssignTask",e[e.History=2]="History",e[e.DeleteAttachments=6]="DeleteAttachments",e[e.AddLink=9]="AddLink",e[e.RemoveLink=10]="RemoveLink",e[e.CommentChanged=11]="CommentChanged",e[e.TaskCloned=12]="TaskCloned",e[e.SubtaskAdd=13]="SubtaskAdd",e[e.SubtaskDeleted=14]="SubtaskDeleted",e[e.AddTags=15]="AddTags",e[e.RemoveTags=16]="RemoveTags"})(t.IActivityType||(t.IActivityType={}))})(m4||(m4={}));const nwe=["Id","Key","Url","Title","Description","Status","Performer","Author","Type","DueDate","Priority","Sprint","StartDate"],Gz=()=>{const t=lt.getState().archiveSlice;return t.myProjects.isTasksShow||t.otherProjects.isTasksShow?[Ie.EntityState.Active,Ie.EntityState.Archive,Ie.EntityState.ArchiveParent]:[Ie.EntityState.Active]};function vDe({tasks:t,archiveState:e,sprintEntities:n,projectEntities:r,currentUserId:o}){return!e.myProjects.isTasksShow&&e.otherProjects.isTasksShow?t.filter(s=>{const i=n[s.SprintId];if(!i)return!1;const l=r[i.rootProjectId];return s.State===Ie.EntityState.Archive||s.State===Ie.EntityState.ArchiveParent?l.OwnerId!==o:!0}):!e.otherProjects.isTasksShow&&e.myProjects.isTasksShow?t.filter(s=>{const i=n[s.SprintId];if(!i)return!1;const l=r[i.rootProjectId];return s.State===Ie.EntityState.Archive||s.State===Ie.EntityState.ArchiveParent?l.OwnerId===o:!0}):t}var ak="persist:",lk="persist/FLUSH",a5="persist/REHYDRATE",ck="persist/PAUSE",uk="persist/PERSIST",dk="persist/PURGE",fk="persist/REGISTER",Wz=-1;function gw(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gw=function(n){return typeof n}:gw=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},gw(t)}function aO(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function rwe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?aO(n,!0).forEach(function(r){owe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):aO(n).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function owe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function swe(t,e,n,r){r.debug;var o=rwe({},n);return t&&gw(t)==="object"&&Object.keys(t).forEach(function(s){s!=="_persist"&&e[s]===n[s]&&(o[s]=t[s])}),o}function iwe(t){var e=t.blacklist||null,n=t.whitelist||null,r=t.transforms||[],o=t.throttle||0,s="".concat(t.keyPrefix!==void 0?t.keyPrefix:ak).concat(t.key),i=t.storage,l;t.serialize===!1?l=function(j){return j}:typeof t.serialize=="function"?l=t.serialize:l=awe;var c=t.writeFailHandler||null,d={},f={},h=[],p=null,v=null,g=function(j){Object.keys(j).forEach(function(A){_(A)&&d[A]!==j[A]&&h.indexOf(A)===-1&&h.push(A)}),Object.keys(d).forEach(function(A){j[A]===void 0&&_(A)&&h.indexOf(A)===-1&&d[A]!==void 0&&h.push(A)}),p===null&&(p=setInterval(S,o)),d=j};function S(){if(h.length===0){p&&clearInterval(p),p=null;return}var M=h.shift(),j=r.reduce(function(A,k){return k.in(A,M,d)},d[M]);if(j!==void 0)try{f[M]=l(j)}catch(A){console.error("redux-persist/createPersistoid: error serializing state",A)}else delete f[M];h.length===0&&w()}function w(){Object.keys(f).forEach(function(M){d[M]===void 0&&delete f[M]}),v=i.setItem(s,l(f)).catch(E)}function _(M){return!(n&&n.indexOf(M)===-1&&M!=="_persist"||e&&e.indexOf(M)!==-1)}function E(M){c&&c(M)}var T=function(){for(;h.length!==0;)S();return v||Promise.resolve()};return{update:g,flush:T}}function awe(t){return JSON.stringify(t)}function lwe(t){var e=t.transforms||[],n="".concat(t.keyPrefix!==void 0?t.keyPrefix:ak).concat(t.key),r=t.storage;t.debug;var o;return t.deserialize===!1?o=function(i){return i}:typeof t.deserialize=="function"?o=t.deserialize:o=cwe,r.getItem(n).then(function(s){if(s)try{var i={},l=o(s);return Object.keys(l).forEach(function(c){i[c]=e.reduceRight(function(d,f){return f.out(d,c,l)},o(l[c]))}),i}catch(c){throw c}else return})}function cwe(t){return JSON.parse(t)}function uwe(t){var e=t.storage,n="".concat(t.keyPrefix!==void 0?t.keyPrefix:ak).concat(t.key);return e.removeItem(n,dwe)}function dwe(t){}function lO(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Bc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?lO(n,!0).forEach(function(r){fwe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lO(n).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function fwe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hwe(t,e){if(t==null)return{};var n=pwe(t,e),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o<s.length;o++)r=s[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function pwe(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,s;for(s=0;s<r.length;s++)o=r[s],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}var mwe=5e3;function hk(t,e){var n=t.version!==void 0?t.version:Wz;t.debug;var r=t.stateReconciler===void 0?swe:t.stateReconciler,o=t.getStoredState||lwe,s=t.timeout!==void 0?t.timeout:mwe,i=null,l=!1,c=!0,d=function(h){return h._persist.rehydrated&&i&&!c&&i.update(h),h};return function(f,h){var p=f||{},v=p._persist,g=hwe(p,["_persist"]),S=g;if(h.type===uk){var w=!1,_=function(R,N){w||(h.rehydrate(t.key,R,N),w=!0)};if(s&&setTimeout(function(){!w&&_(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(t.key,'"')))},s),c=!1,i||(i=iwe(t)),v)return Bc({},e(S,h),{_persist:v});if(typeof h.rehydrate!="function"||typeof h.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return h.register(t.key),o(t).then(function(k){var R=t.migrate||function(N,I){return Promise.resolve(N)};R(k,n).then(function(N){_(N)},function(N){_(void 0,N)})},function(k){_(void 0,k)}),Bc({},e(S,h),{_persist:{version:n,rehydrated:!1}})}else{if(h.type===dk)return l=!0,h.result(uwe(t)),Bc({},e(S,h),{_persist:v});if(h.type===lk)return h.result(i&&i.flush()),Bc({},e(S,h),{_persist:v});if(h.type===ck)c=!0;else if(h.type===a5){if(l)return Bc({},S,{_persist:Bc({},v,{rehydrated:!0})});if(h.key===t.key){var E=e(S,h),T=h.payload,M=r!==!1&&T!==void 0?r(T,f,E,t):E,j=Bc({},M,{_persist:Bc({},v,{rehydrated:!0})});return d(j)}}}if(!v)return e(f,h);var A=e(S,h);return A===S?f:d(Bc({},A,{_persist:v}))}}function cO(t){return vwe(t)||ywe(t)||gwe()}function gwe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function ywe(t){if(Symbol.iterator in Object(t)||Object.prototype.toString.call(t)==="[object Arguments]")return Array.from(t)}function vwe(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function uO(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function C8(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?uO(n,!0).forEach(function(r){bwe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uO(n).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function bwe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qz={registry:[],bootstrapped:!1},Swe=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Qz,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case fk:return C8({},e,{registry:[].concat(cO(e.registry),[n.key])});case a5:var r=e.registry.indexOf(n.key),o=cO(e.registry);return o.splice(r,1),C8({},e,{registry:o,bootstrapped:o.length===0});default:return e}};function wwe(t,e,n){var r=lE(Swe,Qz,void 0),o=function(c){r.dispatch({type:fk,key:c})},s=function(c,d,f){var h={type:a5,payload:d,err:f,key:c};t.dispatch(h),r.dispatch(h)},i=C8({},r,{purge:function(){var c=[];return t.dispatch({type:dk,result:function(f){c.push(f)}}),Promise.all(c)},flush:function(){var c=[];return t.dispatch({type:lk,result:function(f){c.push(f)}}),Promise.all(c)},pause:function(){t.dispatch({type:ck})},persist:function(){t.dispatch({type:uk,register:o,rehydrate:s})}});return i.persist(),i}function xwe(t,e){return function(n,r){if(!n)return Promise.resolve(void 0);var o=n._persist&&n._persist.version!==void 0?n._persist.version:Wz;if(o===r||o>r)return Promise.resolve(n);var s=Object.keys(t).map(function(l){return parseInt(l)}).filter(function(l){return r>=l&&l>o}).sort(function(l,c){return l-c});try{var i=s.reduce(function(l,c){return t[c](l)},n);return Promise.resolve(i)}catch(l){return Promise.reject(l)}}}function Cwe(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.whitelist||null,o=n.blacklist||null;function s(i){return!!(r&&r.indexOf(i)===-1||o&&o.indexOf(i)!==-1)}return{in:function(l,c,d){return!s(c)&&t?t(l,c,d):l},out:function(l,c,d){return!s(c)&&e?e(l,c,d):l}}}var Gy={},N3={},I3={},dO;function _we(){if(dO)return I3;dO=1,I3.__esModule=!0,I3.default=o;function t(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(l){return typeof l}:t=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},t(s)}function e(){}var n={getItem:e,setItem:e,removeItem:e};function r(s){if((typeof self>"u"?"undefined":t(self))!=="object"||!(s in self))return!1;try{var i=self[s],l="redux-persist ".concat(s," test");i.setItem(l,"test"),i.getItem(l),i.removeItem(l)}catch{return!1}return!0}function o(s){var i="".concat(s,"Storage");return r(i)?self[i]:n}return I3}var fO;function Twe(){if(fO)return N3;fO=1,N3.__esModule=!0,N3.default=n;var t=e(_we());function e(r){return r&&r.__esModule?r:{default:r}}function n(r){var o=(0,t.default)(r);return{getItem:function(i){return new Promise(function(l,c){l(o.getItem(i))})},setItem:function(i,l){return new Promise(function(c,d){c(o.setItem(i,l))})},removeItem:function(i){return new Promise(function(l,c){l(o.removeItem(i))})}}}return N3}var hO;function Ewe(){if(hO)return Gy;hO=1,Gy.__esModule=!0,Gy.default=void 0;var t=e(Twe());function e(r){return r&&r.__esModule?r:{default:r}}var n=(0,t.default)("local");return Gy.default=n,Gy}var kwe=Ewe();const pk=hu(kwe),Mwe={dimensions:{},performerIds:[],dnd:{putInside:!1},editableTask:null,selectedTasks:[],lastRequestArgs:{}},mk=Jr({name:"sprintSlice",initialState:Mwe,reducers:{setDimensions:(t,e)=>{Object.assign(t.dimensions,e.payload)},setPutInsideAction:(t,e)=>{t.dnd.putInside=e.payload},setPerformerIdsAction:(t,e)=>{t.performerIds=e.payload},setEditableTask:(t,e)=>{t.editableTask=e.payload},setSelectedTasks:(t,e)=>{t.selectedTasks=i5(t.selectedTasks,e.payload)},clearSelectedTasks:(t,e)=>{e.payload?t.selectedTasks=t.selectedTasks.filter(n=>!e.payload.includes(n)):t.selectedTasks=[]},setLastRequestArgs:(t,e)=>{t.lastRequestArgs=e.payload}}}),{setPutInsideAction:bDe,setPerformerIdsAction:SDe,setDimensions:wDe,setEditableTask:jwe,setSelectedTasks:xDe,clearSelectedTasks:CDe,setLastRequestArgs:Dwe}=mk.actions,Awe=hk({key:"sprintSlice",storage:pk,version:1,whitelist:["selectedTasks"]},mk.reducer),_De=(t,e)=>{if(e){const n=document.createElement("a");n.href=t,n.download=e,n.target="_blank",n.rel="noopener noreferrer",document.body.appendChild(n),n.click(),document.body.removeChild(n)}else window.open(t,"_blank","noopener,noreferrer")},TDe=(t,e)=>{const n=new Blob([t]),r=URL.createObjectURL(n),o=document.createElement("a");o.href=r,o.download=e,o.target="_blank",o.rel="noopener noreferrer",document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(r)},Rwe=(t,e)=>{const n=new Blob([t],{type:"text/csv;charset=utf-8;"}),r=URL.createObjectURL(n),o=document.createElement("a");o.href=r,o.setAttribute("download",`${e}.csv`||"file.csv"),document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(r)},Owe=Ki({reducerPath:"projectTasksApi",baseQuery:Xi("/api"),tagTypes:["Activity","Task","Project","Sprint","Performer","SubTask","Counter","Attribute"],endpoints:t=>({getTasks:t.query({query:e=>{var r,o,s,i,l,c,d;const n={ProjectIds:e.projectIds??[],SprintIds:e.sprintId?[e.sprintId]:[],PerformerIds:(r=e.performerIds)==null?void 0:r.filter(f=>f!==-1),NotAssigned:(o=e.performerIds)==null?void 0:o.includes(-1),Like:e.like,Ids:e.ids,Fields:(s=e.fields)==null?void 0:s.map(f=>({Id:f})),States:e.states,Exclude:e.exclude??Wv.ItemsExcludeFilter.None};return(i=e.typeIds)!=null&&i.length&&(n.TypeIds=e.typeIds),(l=e.statusIds)!=null&&l.length&&(n.Statuses=e.statusIds),(c=e.priorities)!=null&&c.length&&(n.Priorities=e.priorities),(d=e.authorIds)!=null&&d.length&&(n.AuthorIds=e.authorIds),lt.dispatch(Dwe(n)),{url:"/v1/ProjectTask/Items",method:"POST",body:n}},providesTags:(e,n,r)=>{if(!e)return[];const o=ha([...e.map(l=>l.ProjectId),...r.projectIds??[]].filter(Zr)),s=ha([...e.map(l=>l.SprintId),r.sprintId].filter(Zr)),i=ha([...e.flatMap(l=>l.Performers),...r.performerIds??[]].filter(Zr));return[...e.map(l=>({type:"Task",id:l.Id})),...o.map(l=>({type:"Project",id:l})),...s.map(l=>({type:"Sprint",id:l})),...i.map(l=>({type:"Performer",id:l}))]}}),getTask:t.query({query:e=>({url:`/v1/ProjectTask?${ur.stringify(e)}`,method:"GET"}),providesTags:e=>{var n;return e?[{type:"Sprint",id:e.SprintId},{type:"Task",id:e.Id},...((n=e.SubTasks)==null?void 0:n.map(r=>({type:"SubTask",id:r.Id})))??[],...b1(e.Attributes,"AttributeId").map(r=>({type:"Attribute",id:r.AttributeId}))]:[]}}),getTaskById:t.query({query:e=>({url:`/v1/ProjectTask?id=${e}`,method:"GET"}),providesTags:e=>{var n;return e?[{type:"Sprint",id:e.SprintId},{type:"Task",id:e.Id},...((n=e.SubTasks)==null?void 0:n.map(r=>({type:"SubTask",id:r.Id})))??[],...b1(e.Attributes,"AttributeId").map(r=>({type:"Attribute",id:r.AttributeId}))]:[]}}),getSubtaskByIds:t.query({queryFn:async({ids:e,states:n},r,o,s)=>{const i=await Promise.all(e.map(l=>s({url:`/v1/ProjectTask?${ur.stringify({id:l,states:n})}`,method:"GET"})));return{data:ok(zz(i.map(l=>l.data),"Id"),l=>l.SubTasks??[])}},providesTags:e=>e?[...Object.keys(e).map(n=>({type:"Task",id:n})),...Object.values(e).flat().map(n=>({type:"SubTask",id:n.Id}))]:[]}),getTaskByKey:t.query({query:e=>({url:`/v1/ProjectTask?key=${e}`,method:"GET"}),providesTags:e=>{var n;return e?[{type:"Sprint",id:e.SprintId},{type:"Task",id:e.Id},...((n=e.SubTasks)==null?void 0:n.map(r=>({type:"SubTask",id:r.Id})))??[],...b1(e.Attributes,"AttributeId").map(r=>({type:"Attribute",id:r.AttributeId}))]:[]}}),createTask:t.mutation({query:e=>({url:"/v1/ProjectTask",method:"POST",body:{...e,PerformerId:e.PerformerId===0?null:e.PerformerId}}),invalidatesTags:e=>e?[{type:"Task",id:e.Id},{type:"Project",id:e.ProjectId},{type:"Counter"},...Zr(e.SprintId)?[{type:"Sprint",id:e.SprintId}]:[],...e.Performers.map(n=>({type:"Performer",id:n}))]:[]}),updateTasks:t.mutation({query:e=>({url:"/v1/ProjectTask/Bulk",method:"POST",body:e}),invalidatesTags:(e,n,r)=>e?[...r.map(o=>({type:"Task",id:o.Id})),"Project","Sprint","Performer","Counter"]:[]}),updateTask:t.mutation({query:({parentForUpdate:e,...n})=>({url:"/v1/ProjectTask",method:"POST",body:{...n,PerformerId:n.PerformerId===0?null:n.PerformerId}}),invalidatesTags:(e,n,r)=>{if(!e)return[];const o=[r.parentForUpdate,r.ParentId].filter(Zr);return[{type:"Task",id:e.Id},{type:"Project",id:e.ProjectId},{type:"Counter"},...Zr(e.SprintId)?[{type:"Sprint",id:e.SprintId}]:[],...e.Performers.map(s=>({type:"Performer",id:s})),...o.map(s=>({type:"Task",id:s}))]},async onQueryStarted({Id:e,hideNotification:n,...r},{dispatch:o,queryFulfilled:s,getState:i}){if(M3e(r))return;const l=[];for(const{endpointName:f,originalArgs:h}of Ct.util.selectInvalidatedBy(i(),[{type:"Task",id:e}]))f==="getTasks"&&l.push(o(Ct.util.updateQueryData("getTasks",h,p=>{const v=p.find(g=>g.Id===e);v&&r.Order&&v.Order!==r.Order&&$3(p,{id:e,order:r.Order}),v&&Object.assign(v,r)})));const c=Pwe(r);for(const{endpointName:f,originalArgs:h}of Ct.util.selectInvalidatedBy(i(),c.map(p=>({type:"Task",id:p.id}))))f==="getSubtaskByIds"&&l.push(o(Ct.util.updateQueryData("getSubtaskByIds",h,p=>{c.forEach(v=>{const g=p[v.id];g&&(v.action==="add"?p[v.id]=b1([{...r,Id:e},...g],"Id"):p[v.id]=g.filter(S=>S.Id!==e),r.Order&&$3(g,{id:e,order:r.Order}))})}))),f==="getTask"&&l.push(o(Ct.util.updateQueryData("getTask",h,p=>{var g,S;const v=((g=c.find(w=>w.id===p.Id))==null?void 0:g.action)==="add"?b1([{...r,Id:e},...p.SubTasks??[]],"Id"):((S=p.SubTasks)==null?void 0:S.filter(w=>w.Id!==e))??[];p.SubTasks=v,r.Order&&$3(p.SubTasks,{id:e,order:r.Order})})));const d=o(Ct.util.updateQueryData("getTask",{id:null,key:r.Key||""},f=>{Object.assign(f,r)}));try{await s}catch{!n&&ds({message:jt("notification.error.editTask")}),l.forEach(h=>h.undo()),d.undo()}}}),editPerformers:t.mutation({query:({ParentId:e,...n})=>({url:"/v1/ProjectTask/Performers",method:"POST",body:n}),invalidatesTags:(e,n,r)=>[...[r.Id,r.ParentId].filter(Zr).map(s=>({type:"Task",id:s})),{type:"Project",id:r.ProjectId},...r.Performers.map(s=>({type:"Performer",id:s}))],async onQueryStarted({Id:e,Key:n,...r},{dispatch:o,queryFulfilled:s,getState:i}){const l=[];for(const{endpointName:d,originalArgs:f}of Ct.util.selectInvalidatedBy(i(),[{type:"Task",id:e}]))d==="getTasks"&&l.push(o(Ct.util.updateQueryData("getTasks",f,h=>{const p=h.find(v=>v.Id===e);p&&Object.assign(p,r)})));const c=o(Ct.util.updateQueryData("getTask",{id:null,key:n},d=>{Object.assign(d,r)}));try{await s}catch{ds({message:jt("notification.error.editTask")}),l.forEach(f=>f.undo()),c.undo()}}}),copyTask:t.mutation({query:e=>({url:"/v1/ProjectTask/Copy",method:"POST",body:e})}),deleteTasks:t.mutation({query:e=>({url:"/v1/ProjectTask",method:"DELETE",body:e}),invalidatesTags:(e,n,{ids:r,parentIds:o})=>{lt.dispatch(wt.util.invalidateTags(["Trash"]));const s=[...r,...o].filter(Zr);return[{type:"Counter"},...s.map(i=>({type:"Task",id:i}))]}}),deleteTask:t.mutation({query:({id:e})=>({url:`/v1/ProjectTask?Id=${e}`,method:"DELETE",headers:{"Content-Type":"application/json"}}),invalidatesTags:(e,n,{id:r,parentId:o})=>{lt.dispatch(wt.util.invalidateTags(["Trash"]));const s=[r,o].filter(Zr);return[{type:"Counter"},...s.map(i=>({type:"Task",id:i}))]}}),changeStatus:t.mutation({query:({ids:e,statusId:n})=>({url:"/v1/ProjectTask/Status",method:"POST",body:{ids:e,status:n}}),onQueryStarted:async(e,{dispatch:n,getState:r,queryFulfilled:o})=>{const s=e.ids.map(d=>({type:"Task",id:d})),i=Ct.util.selectInvalidatedBy(r(),s),c=Array.from(new Map(i.filter(d=>d.endpointName==="getTasks"&&d.originalArgs!=null).map(d=>[JSON.stringify(d.originalArgs),d.originalArgs])).values()).map(d=>n(Ct.util.updateQueryData("getTasks",d,f=>{f.forEach(h=>{e.ids.includes(h.Id)&&(h.Status=e.statusId)})})));try{await o}catch{c.forEach(d=>{d.undo()})}}}),updateOrder:t.mutation({query:({parentForUpdate:e,...n})=>({url:`/v1/ProjectTask/ChangeOrder?${ur.stringify(n)}`,method:"PUT"}),invalidatesTags:(e,n,r)=>{const o=[r.parentForUpdate,r.parentId].filter(Zr);return[{type:"Task",id:r.id},...o.map(s=>({type:"Task",id:s}))]},async onQueryStarted({id:e,order:n,parentId:r,parentForUpdate:o=null},{dispatch:s,queryFulfilled:i,getState:l}){const c=[];if(r!==o)if(Zr(o))for(const{endpointName:d,originalArgs:f}of Ct.util.selectInvalidatedBy(l(),[{type:"SubTask",id:e}]))d==="getSubtaskByIds"&&c.push(s(Ct.util.updateQueryData("getSubtaskByIds",f,h=>({...h,[o]:h[o].filter(p=>p.Id!==e)}))));else for(const{endpointName:d,originalArgs:f}of Ct.util.selectInvalidatedBy(l(),[{type:"Task",id:e}]))d==="getTasks"&&c.push(s(Ct.util.updateQueryData("getTasks",f,h=>h.filter(p=>p.Id!==e))));else for(const{endpointName:d,originalArgs:f}of Ct.util.selectInvalidatedBy(l(),[{type:"Task",id:e}]))d==="getTasks"&&c.push(s(Ct.util.updateQueryData("getTasks",f,h=>{const p=h.find(v=>v.Id===e);p&&($3(h,{id:e,order:n}),p.Order=n)})));try{await i}catch{ds({message:jt("notification.error.editTasksOrder")}),c.length&&c.forEach(f=>f.undo())}}}),changeTaskState:t.mutation({query:e=>({url:`/v1/ProjectTask/ChangeState${ur.stringify(e,{addQueryPrefix:!0})}`,method:"PUT"}),invalidatesTags:["Counter"]}),getCounters:t.query({query:()=>({url:"/v1/ProjectTask/Count",method:"POST",body:{states:Gz()}}),providesTags:e=>(e==null?void 0:e.map(n=>({type:"Counter",id:n.Id})))??[]}),markAsRead:t.mutation({query:e=>({url:`v1/ProjectTask/MarkAsRead?Id=${e}`,method:"PUT"}),invalidatesTags:["Counter"],async onQueryStarted(e,{getState:n,dispatch:r,queryFulfilled:o}){await o;for(const{endpointName:s,originalArgs:i}of Ct.util.selectInvalidatedBy(n(),[{type:"SubTask",id:e}]))s==="getTaskById"&&r(Ct.util.updateQueryData("getTaskById",i,l=>{var d;const c=(d=l.SubTasks)==null?void 0:d.find(f=>f.Id===e);c&&(c.WasRead=!0)}));for(const{endpointName:s,originalArgs:i}of Ct.util.selectInvalidatedBy(n(),[{type:"Task",id:e}]))s==="getTasks"&&r(Ct.util.updateQueryData("getTasks",i,l=>{const c=l.find(d=>d.Id===e);c&&(c.WasRead=!0)}))}}),exportTasks:t.query({query:e=>({url:"/v1/ProjectTask/Export",method:"POST",body:{Fields:nwe.map(n=>({Name:n,ViewName:jt(`exportSprintFields.${n}`)})),...e}}),forceRefetch(){return!0}}),userTask:t.query({query:({id:e})=>({url:`/v1/UserTask?id=${e}`,method:"GET"}),forceRefetch(){return!0}}),downloadTasks:t.query({query:({id:e,fileName:n})=>({url:`/v1/UserTask/Download?id=${e}&type=csv`,method:"GET",responseHandler:async r=>{const o=await r.text();return Rwe(o,n||"file"),o}}),forceRefetch(){return!0}})})}),Ct=Owe.injectEndpoints({endpoints:t=>({getActivities:t.query({query:e=>({url:"/v1/ProjectTask/Activities",method:"POST",body:{TaskId:e.taskId,Types:e.types}}),providesTags:(e,n,r)=>e?[...e.map(o=>({type:"Activity",id:o.Id})),{type:"Task",id:r.taskId}]:[]}),createComment:t.mutation({query:e=>({url:"/v1/ProjectTask/Activity",method:"POST",body:{TaskId:e.taskId,ProjectId:e.projectId,Description:e.message,Type:m4.IActivityType.Comment,MentionIds:e.mentionIds}})}),editComment:t.mutation({query:e=>({url:"/v1/ProjectTask/Activity",method:"POST",body:{Id:e.id,TaskId:e.taskId,ProjectId:e.projectId,Description:e.message,Type:m4.IActivityType.Comment}}),invalidatesTags:e=>e?[{type:"Activity",id:e.Id}]:[]}),deleteComment:t.mutation({query:e=>({url:"/v1/ProjectTask/Activity",method:"DELETE",body:{Ids:[e]}}),invalidatesTags:(e,n,r)=>[{type:"Activity",id:r}]}),editAttribute:t.mutation({query:({parentForUpdate:e,...n})=>({url:"/v1/ProjectTask/Attribute",method:"POST",body:n}),invalidatesTags:(e,n,r)=>[r.TaskId,r.parentForUpdate].filter(Zr).map(o=>({type:"Task",id:o})),onQueryStarted:async(e,{dispatch:n,queryFulfilled:r,getState:o})=>{const i=Ct.util.selectCachedArgsForQuery(o(),"getTasks").map(l=>n(Ct.util.updateQueryData("getTasks",l,c=>{var f,h;const d=(h=(f=c.find(p=>p.Id===e.TaskId))==null?void 0:f.Attributes)==null?void 0:h.find(p=>p.Id===e.Id);d&&(d.Value=e.Value)})));e.parentForUpdate&&i.push(n(Ct.util.updateQueryData("getTaskById",e.parentForUpdate,l=>{var d,f,h;const c=(h=(f=(d=l.SubTasks)==null?void 0:d.find(p=>p.Id===e.TaskId))==null?void 0:f.Attributes)==null?void 0:h.find(p=>p.Id===e.Id);c&&(c.Value=e.Value)}))),i.push(n(Ct.util.updateQueryData("getTaskById",e.TaskId,l=>{var d;const c=(d=l.Attributes)==null?void 0:d.find(f=>f.Id===e.Id);c&&(c.Value=e.Value)})));try{await r}catch{i.forEach(l=>l.undo())}}})}),overrideExisting:!1}),$3=(t,e)=>{t.forEach(n=>{n.Id!==e.id&&n.Order>=e.order&&n.Order++})},Pwe=t=>[{id:t.parentForUpdate,action:"remove"},{id:t.ParentId,action:"add"}].filter(e=>Zr(e.id)),Nwe=Ki({reducerPath:"projectsApi",baseQuery:Xi("/api"),tagTypes:["Project","Statuses","Attribute","Trash"],endpoints:t=>({generateKey:t.query({query:e=>({url:`/v1/Project/generateKey?name=${e}`,method:"GET",responseHandler:n=>n.text()})}),getUniqueKey:t.query({query:e=>({url:`/v1/Project/checkKey?key=${e}`,method:"GET"})}),getTrashItems:t.query({query:e=>({url:"/v1/Project/Items",method:"POST",body:{States:[Ie.EntityState.Delete,Ie.EntityState.DeleteFromArchive],Like:e}}),providesTags:["Trash"],transformResponse(e){return J3e(e)}}),clearTrash:t.mutation({query:()=>({url:"/v1/Project/ClearTrash",method:"DELETE"}),async onQueryStarted(e,{dispatch:n,queryFulfilled:r,getState:o}){const i=wt.util.selectInvalidatedBy(o(),["Trash"]).filter(l=>l.endpointName==="getTrashItems"&&l.originalArgs!==void 0).map(l=>n(wt.util.updateQueryData("getTrashItems",l.originalArgs,c=>{for(let d=c.length-1;d>=0;d--)c[d].access===Ie.AccessType.Full&&c.splice(d,1)})));i.push(n(wt.util.updateQueryData("getTrashItems",void 0,l=>{for(let c=l.length-1;c>=0;c--)l[c].access===Ie.AccessType.Full&&l.splice(c,1)})));try{await r}catch{i.forEach(l=>l.undo())}}}),fetchProjects:t.query({query:e=>({url:"/v1/Project/Items",method:"POST",body:e}),providesTags:["Project"]}),getProjects:t.query({query:e=>({url:"/v1/Project/Items",method:"GET",body:e}),providesTags:["Project"],transformResponse:Eu}),createFolder:t.mutation({query:e=>({url:"/v1/Project",method:"POST",body:e}),invalidatesTags:["Project"]}),updateFolder:t.mutation({query:e=>({url:"/v1/Project",method:"POST",body:e}),invalidatesTags:e=>(lt.dispatch(Ui.util.invalidateTags([{type:"Project",id:e==null?void 0:e.Id}])),["Project"]),async onQueryStarted(e,{queryFulfilled:n,dispatch:r}){try{await n,r(Ct.util.invalidateTags([{type:"Sprint",id:e.Id}]))}catch{ds({message:jt("notification.error.editSprint")})}}}),deleteFolderById:t.mutation({query:e=>({url:`/v1/Project?Id=${e}`,method:"DELETE"}),invalidatesTags:["Project","Trash"]}),createSprint:t.mutation({query:e=>({url:"/v1/Project/SaveSprint",method:"POST",body:e}),invalidatesTags:["Project"]}),updateSprint:t.mutation({query:e=>({url:"/v1/Project/SaveSprint",method:"POST",body:e}),async onQueryStarted(e,{queryFulfilled:n,dispatch:r}){try{await n,r(Ct.util.invalidateTags([{type:"Sprint",id:e.Id}]))}catch{ds({message:jt("notification.error.editSprint")})}},invalidatesTags:["Project"]}),deleteSprint:t.mutation({query:e=>({url:`/v1/Project/Sprint?id=${e}`,method:"DELETE"}),invalidatesTags:["Project","Trash"]}),getAvailableStatuses:t.query({query:({ids:e,entityIds:n,entityType:r,onlyForCurrent:o=!0,IsDeleted:s=!1})=>({url:"/v1/Project/AvailableStatuses",method:"POST",body:{ids:e,entityIds:n,entityType:r,onlyForCurrent:o,IsDeleted:s}}),providesTags:(e,n,r)=>(r.entityIds||[]).map(o=>({type:"Statuses",id:o+"_"+r.entityType})),async onQueryStarted(e,{queryFulfilled:n}){try{await n}catch{ds({message:jt("notification.error.getStatuses")})}},transformResponse:e=>{if(e.length<1)throw Error("Empty task statuses");return X3e(e)}}),getDefaultStatuses:t.query({query:()=>({url:"/v1/project/getDefaultStatuses",method:"GET"}),transformResponse:e=>{if(e.length<1)throw Error("Empty default statuses");return e},async onQueryStarted(e,{queryFulfilled:n}){try{await n}catch{ds({message:jt("notification.error.getDefaultStatuses")})}}}),saveStatuses:t.mutation({query:e=>({url:"/v1/Project/SaveStatus",method:"POST",body:e}),invalidatesTags:(e,n,r)=>{var o,s;return r.length>0?[{type:"Statuses",id:((o=r.at(0))==null?void 0:o.EntityId)+"_"+((s=r.at(0))==null?void 0:s.EntityType)}]:[]}}),removeStatuses:t.mutation({query:({ids:e,newId:n})=>({url:"/v1/Project/DeleteStatus",method:"DELETE",body:{ids:e,newId:n}}),invalidatesTags:(e,n,r)=>[{type:"Statuses",id:r.entityId+"_"+r.entityType}]}),changeEntitiesState:t.mutation({query:e=>({url:"/v1/Project/ChangeState",method:"POST",body:e})}),changeProjectState:t.mutation({query:e=>({url:`/v1/Project/ChangeState${ur.stringify(e,{addQueryPrefix:!0})}`,method:"PUT"})}),changeProjectOrder:t.mutation({query:e=>({url:`/v1/Project/ChangeOrder${ur.stringify(e,{addQueryPrefix:!0})}`,method:"PUT"}),invalidatesTags:["Project"]}),changeSprintState:t.mutation({query:e=>({url:`/v1/Project/ChangeSprintState${ur.stringify(e,{addQueryPrefix:!0})}`,method:"PUT"})})})}),wt=Nwe.injectEndpoints({endpoints:t=>({getAttributes:t.query({query:e=>({url:`/v1/ProjectAttributes${ur.stringify(e,{addQueryPrefix:!0})}`,method:"GET"}),providesTags:e=>["Attribute",...(e??[]).map(n=>({type:"Attribute",id:n.AttributeId}))]}),postAttribute:t.mutation({query:e=>({url:"/v1/ProjectAttributes",method:"POST",body:e}),invalidatesTags:(e,n,r)=>(lt.dispatch(Ct.util.invalidateTags([{type:"Attribute",id:r.AttributeId}])),["Attribute"])}),deleteAttribute:t.mutation({query:e=>({url:`/v1/ProjectAttributes${ur.stringify(e,{addQueryPrefix:!0})}`,method:"DELETE"}),invalidatesTags:(e,n,r)=>[{type:"Attribute",id:r.attributeId}]})}),overrideExisting:!1});function Iwe(){const t=Date.now(),e=Math.floor(Math.random()*1e3);return+`${t}${e}`}var sv={exports:{}};/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */var $we=sv.exports,pO;function Lwe(){return pO||(pO=1,(function(t,e){(function(){var n,r="4.17.23",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",h=1,p=2,v=4,g=1,S=2,w=1,_=2,E=4,T=8,M=16,j=32,A=64,k=128,R=256,N=512,I=30,L="...",F=800,H=16,B=1,Y=2,U=3,q=1/0,z=9007199254740991,W=17976931348623157e292,K=NaN,G=4294967295,X=G-1,J=G>>>1,ne=[["ary",k],["bind",w],["bindKey",_],["curry",T],["curryRight",M],["flip",N],["partial",j],["partialRight",A],["rearg",R]],se="[object Arguments]",ie="[object Array]",oe="[object AsyncFunction]",de="[object Boolean]",pe="[object Date]",fe="[object DOMException]",Te="[object Error]",we="[object Function]",_e="[object GeneratorFunction]",De="[object Map]",Ze="[object Number]",ze="[object Null]",Xe="[object Object]",Ke="[object Promise]",ot="[object Proxy]",st="[object RegExp]",mt="[object Set]",bt="[object String]",At="[object Symbol]",ct="[object Undefined]",cn="[object WeakMap]",bn="[object WeakSet]",Tt="[object ArrayBuffer]",Ft="[object DataView]",Xt="[object Float32Array]",_n="[object Float64Array]",un="[object Int8Array]",Zt="[object Int16Array]",Jt="[object Int32Array]",en="[object Uint8Array]",It="[object Uint8ClampedArray]",he="[object Uint16Array]",Ce="[object Uint32Array]",St=/\b__p \+= '';/g,gt=/\b(__p \+=) '' \+/g,Ut=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ot=/&(?:amp|lt|gt|quot|#39);/g,Sn=/[&<>"']/g,Je=RegExp(Ot.source),vt=RegExp(Sn.source),$t=/<%-([\s\S]+?)%>/g,dn=/<%([\s\S]+?)%>/g,Yt=/<%=([\s\S]+?)%>/g,Gt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$n=/^\w*$/,Tn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,le=/[\\^$.*+?()[\]{}|]/g,ce=RegExp(le.source),ye=/^\s+/,$e=/\s/,Ye=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,tt=/\{\n\/\* \[wrapped with (.+)\] \*/,Et=/,? & /,nt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,et=/[()=,{}\[\]\/\s]/,Ge=/\\(\\)?/g,ut=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vt=/\w*$/,fn=/^[-+]0x[0-9a-f]+$/i,Hn=/^0b[01]+$/i,hn=/^\[object .+?Constructor\]$/,nn=/^0o[0-7]+$/i,zn=/^(?:0|[1-9]\d*)$/,Mo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Io=/($^)/,$o=/['\n\r\u2028\u2029\\]/g,Gr="\\ud800-\\udfff",Rr="\\u0300-\\u036f",fl="\\ufe20-\\ufe2f",Zi="\\u20d0-\\u20ff",ps=Rr+fl+Zi,Bs="\\u2700-\\u27bf",On="a-z\\xdf-\\xf6\\xf8-\\xff",hr="\\xac\\xb1\\xd7\\xf7",xa="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",mc="\\u2000-\\u206f",pr=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Hs="A-Z\\xc0-\\xd6\\xd8-\\xde",ms="\\ufe0e\\ufe0f",Lo=hr+xa+mc+pr,Cp="['’]",F5="["+Gr+"]",_p="["+Lo+"]",df="["+ps+"]",ff="\\d+",z5="["+Bs+"]",gs="["+On+"]",Tp="[^"+Gr+Lo+ff+Bs+On+Hs+"]",Ep="\\ud83c[\\udffb-\\udfff]",Lg="(?:"+df+"|"+Ep+")",gc="[^"+Gr+"]",kp="(?:\\ud83c[\\udde6-\\uddff]){2}",Mp="[\\ud800-\\udbff][\\udc00-\\udfff]",wi="["+Hs+"]",J2="\\u200d",Fg="(?:"+gs+"|"+Tp+")",eb="(?:"+wi+"|"+Tp+")",jp="(?:"+Cp+"(?:d|ll|m|re|s|t|ve))?",tb="(?:"+Cp+"(?:D|LL|M|RE|S|T|VE))?",nb=Lg+"?",hf="["+ms+"]?",Ca="(?:"+J2+"(?:"+[gc,kp,Mp].join("|")+")"+hf+nb+")*",zg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ug="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",yc=hf+nb+Ca,Mu="(?:"+[z5,kp,Mp].join("|")+")"+yc,rb="(?:"+[gc+df+"?",df,kp,Mp,F5].join("|")+")",Bg=RegExp(Cp,"g"),ob=RegExp(df,"g"),vc=RegExp(Ep+"(?="+Ep+")|"+rb+yc,"g"),_a=RegExp([wi+"?"+gs+"+"+jp+"(?="+[_p,wi,"$"].join("|")+")",eb+"+"+tb+"(?="+[_p,wi+Fg,"$"].join("|")+")",wi+"?"+Fg+"+"+jp,wi+"+"+tb,Ug,zg,ff,Mu].join("|"),"g"),Hg=RegExp("["+J2+Gr+ps+ms+"]"),pf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,hl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],qg=-1,Zn={};Zn[Xt]=Zn[_n]=Zn[un]=Zn[Zt]=Zn[Jt]=Zn[en]=Zn[It]=Zn[he]=Zn[Ce]=!0,Zn[se]=Zn[ie]=Zn[Tt]=Zn[de]=Zn[Ft]=Zn[pe]=Zn[Te]=Zn[we]=Zn[De]=Zn[Ze]=Zn[Xe]=Zn[st]=Zn[mt]=Zn[bt]=Zn[cn]=!1;var rr={};rr[se]=rr[ie]=rr[Tt]=rr[Ft]=rr[de]=rr[pe]=rr[Xt]=rr[_n]=rr[un]=rr[Zt]=rr[Jt]=rr[De]=rr[Ze]=rr[Xe]=rr[st]=rr[mt]=rr[bt]=rr[At]=rr[en]=rr[It]=rr[he]=rr[Ce]=!0,rr[Te]=rr[we]=rr[cn]=!1;var Dp={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},Ap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},sb={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Wo={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},bc=parseFloat,Rp=parseInt,ju=typeof x1=="object"&&x1&&x1.Object===Object&&x1,U5=typeof self=="object"&&self&&self.Object===Object&&self,so=ju||U5||Function("return this")(),mf=e&&!e.nodeType&&e,xi=mf&&!0&&t&&!t.nodeType&&t,gf=xi&&xi.exports===mf,Op=gf&&ju.process,qs=(function(){try{var ve=xi&&xi.require&&xi.require("util").types;return ve||Op&&Op.binding&&Op.binding("util")}catch{}})(),ib=qs&&qs.isArrayBuffer,ab=qs&&qs.isDate,Pp=qs&&qs.isMap,lb=qs&&qs.isRegExp,cb=qs&&qs.isSet,ub=qs&&qs.isTypedArray;function ys(ve,Le,Re){switch(Re.length){case 0:return ve.call(Le);case 1:return ve.call(Le,Re[0]);case 2:return ve.call(Le,Re[0],Re[1]);case 3:return ve.call(Le,Re[0],Re[1],Re[2])}return ve.apply(Le,Re)}function B5(ve,Le,Re,yt){for(var on=-1,En=ve==null?0:ve.length;++on<En;){var br=ve[on];Le(yt,br,Re(br),ve)}return yt}function vs(ve,Le){for(var Re=-1,yt=ve==null?0:ve.length;++Re<yt&&Le(ve[Re],Re,ve)!==!1;);return ve}function H5(ve,Le){for(var Re=ve==null?0:ve.length;Re--&&Le(ve[Re],Re,ve)!==!1;);return ve}function db(ve,Le){for(var Re=-1,yt=ve==null?0:ve.length;++Re<yt;)if(!Le(ve[Re],Re,ve))return!1;return!0}function pl(ve,Le){for(var Re=-1,yt=ve==null?0:ve.length,on=0,En=[];++Re<yt;){var br=ve[Re];Le(br,Re,ve)&&(En[on++]=br)}return En}function Np(ve,Le){var Re=ve==null?0:ve.length;return!!Re&&Du(ve,Le,0)>-1}function yf(ve,Le,Re){for(var yt=-1,on=ve==null?0:ve.length;++yt<on;)if(Re(Le,ve[yt]))return!0;return!1}function vr(ve,Le){for(var Re=-1,yt=ve==null?0:ve.length,on=Array(yt);++Re<yt;)on[Re]=Le(ve[Re],Re,ve);return on}function ml(ve,Le){for(var Re=-1,yt=Le.length,on=ve.length;++Re<yt;)ve[on+Re]=Le[Re];return ve}function Vg(ve,Le,Re,yt){var on=-1,En=ve==null?0:ve.length;for(yt&&En&&(Re=ve[++on]);++on<En;)Re=Le(Re,ve[on],on,ve);return Re}function fb(ve,Le,Re,yt){var on=ve==null?0:ve.length;for(yt&&on&&(Re=ve[--on]);on--;)Re=Le(Re,ve[on],on,ve);return Re}function Yg(ve,Le){for(var Re=-1,yt=ve==null?0:ve.length;++Re<yt;)if(Le(ve[Re],Re,ve))return!0;return!1}var q5=Sc("length");function V5(ve){return ve.split("")}function Y5(ve){return ve.match(nt)||[]}function hb(ve,Le,Re){var yt;return Re(ve,function(on,En,br){if(Le(on,En,br))return yt=En,!1}),yt}function Ip(ve,Le,Re,yt){for(var on=ve.length,En=Re+(yt?1:-1);yt?En--:++En<on;)if(Le(ve[En],En,ve))return En;return-1}function Du(ve,Le,Re){return Le===Le?K5(ve,Le,Re):Ip(ve,pb,Re)}function G5(ve,Le,Re,yt){for(var on=Re-1,En=ve.length;++on<En;)if(yt(ve[on],Le))return on;return-1}function pb(ve){return ve!==ve}function $p(ve,Le){var Re=ve==null?0:ve.length;return Re?Lp(ve,Le)/Re:K}function Sc(ve){return function(Le){return Le==null?n:Le[ve]}}function Gg(ve){return function(Le){return ve==null?n:ve[Le]}}function Wg(ve,Le,Re,yt,on){return on(ve,function(En,br,Wn){Re=yt?(yt=!1,En):Le(Re,En,br,Wn)}),Re}function mb(ve,Le){var Re=ve.length;for(ve.sort(Le);Re--;)ve[Re]=ve[Re].value;return ve}function Lp(ve,Le){for(var Re,yt=-1,on=ve.length;++yt<on;){var En=Le(ve[yt]);En!==n&&(Re=Re===n?En:Re+En)}return Re}function Fp(ve,Le){for(var Re=-1,yt=Array(ve);++Re<ve;)yt[Re]=Le(Re);return yt}function gb(ve,Le){return vr(Le,function(Re){return[Re,ve[Re]]})}function wc(ve){return ve&&ve.slice(0,Ru(ve)+1).replace(ye,"")}function bs(ve){return function(Le){return ve(Le)}}function Qg(ve,Le){return vr(Le,function(Re){return ve[Re]})}function vf(ve,Le){return ve.has(Le)}function Kg(ve,Le){for(var Re=-1,yt=ve.length;++Re<yt&&Du(Le,ve[Re],0)>-1;);return Re}function Xg(ve,Le){for(var Re=ve.length;Re--&&Du(Le,ve[Re],0)>-1;);return Re}function bf(ve,Le){for(var Re=ve.length,yt=0;Re--;)ve[Re]===Le&&++yt;return yt}var Sf=Gg(Dp),W5=Gg(Ap);function zp(ve){return"\\"+Wo[ve]}function yb(ve,Le){return ve==null?n:ve[Le]}function xc(ve){return Hg.test(ve)}function Zg(ve){return pf.test(ve)}function Jg(ve){for(var Le,Re=[];!(Le=ve.next()).done;)Re.push(Le.value);return Re}function Up(ve){var Le=-1,Re=Array(ve.size);return ve.forEach(function(yt,on){Re[++Le]=[on,yt]}),Re}function e0(ve,Le){return function(Re){return ve(Le(Re))}}function Ta(ve,Le){for(var Re=-1,yt=ve.length,on=0,En=[];++Re<yt;){var br=ve[Re];(br===Le||br===f)&&(ve[Re]=f,En[on++]=Re)}return En}function Bp(ve){var Le=-1,Re=Array(ve.size);return ve.forEach(function(yt){Re[++Le]=yt}),Re}function Q5(ve){var Le=-1,Re=Array(ve.size);return ve.forEach(function(yt){Re[++Le]=[yt,yt]}),Re}function K5(ve,Le,Re){for(var yt=Re-1,on=ve.length;++yt<on;)if(ve[yt]===Le)return yt;return-1}function X5(ve,Le,Re){for(var yt=Re+1;yt--;)if(ve[yt]===Le)return yt;return yt}function Au(ve){return xc(ve)?bb(ve):q5(ve)}function Tr(ve){return xc(ve)?Sb(ve):V5(ve)}function Ru(ve){for(var Le=ve.length;Le--&&$e.test(ve.charAt(Le)););return Le}var vb=Gg(sb);function bb(ve){for(var Le=vc.lastIndex=0;vc.test(ve);)++Le;return Le}function Sb(ve){return ve.match(vc)||[]}function wb(ve){return ve.match(_a)||[]}var t0=(function ve(Le){Le=Le==null?so:Ou.defaults(so.Object(),Le,Ou.pick(so,hl));var Re=Le.Array,yt=Le.Date,on=Le.Error,En=Le.Function,br=Le.Math,Wn=Le.Object,Hp=Le.RegExp,Cc=Le.String,Ss=Le.TypeError,wf=Re.prototype,xb=En.prototype,Pu=Wn.prototype,qp=Le["__core-js_shared__"],Vp=xb.toString,qn=Pu.hasOwnProperty,Cb=0,Yp=(function(){var y=/[^.]+$/.exec(qp&&qp.keys&&qp.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""})(),Qo=Pu.toString,Gp=Vp.call(Wn),Vs=so._,Nu=Hp("^"+Vp.call(qn).replace(le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Iu=gf?Le.Buffer:n,Ci=Le.Symbol,_c=Le.Uint8Array,Wp=Iu?Iu.allocUnsafe:n,Ji=e0(Wn.getPrototypeOf,Wn),n0=Wn.create,xf=Pu.propertyIsEnumerable,Ea=wf.splice,_b=Ci?Ci.isConcatSpreadable:n,So=Ci?Ci.iterator:n,ka=Ci?Ci.toStringTag:n,Ys=(function(){try{var y=Ml(Wn,"defineProperty");return y({},"",{}),y}catch{}})(),Tb=Le.clearTimeout!==so.clearTimeout&&Le.clearTimeout,Qp=yt&&yt.now!==so.Date.now&&yt.now,Tc=Le.setTimeout!==so.setTimeout&&Le.setTimeout,$u=br.ceil,Cf=br.floor,_f=Wn.getOwnPropertySymbols,Eb=Iu?Iu.isBuffer:n,ws=Le.isFinite,Lu=wf.join,Fu=e0(Wn.keys,Wn),Or=br.max,Wr=br.min,Gs=yt.now,Ws=Le.parseInt,Ma=br.random,ea=wf.reverse,Qs=Ml(Le,"DataView"),xs=Ml(Le,"Map"),Kp=Ml(Le,"Promise"),gl=Ml(Le,"Set"),Ec=Ml(Le,"WeakMap"),zu=Ml(Wn,"create"),Qr=Ec&&new Ec,Yn={},Pn=Ao(Qs),yl=Ao(xs),Ks=Ao(Kp),r0=Ao(gl),vl=Ao(Ec),Tf=Ci?Ci.prototype:n,Uu=Tf?Tf.valueOf:n,kc=Tf?Tf.toString:n;function te(y){if(Ir(y)&&!sn(y)&&!(y instanceof pn)){if(y instanceof Ko)return y;if(qn.call(y,"__wrapped__"))return km(y)}return new Ko(y)}var bl=(function(){function y(){}return function(C){if(!wr(C))return{};if(n0)return n0(C);y.prototype=C;var P=new y;return y.prototype=n,P}})();function Sl(){}function Ko(y,C){this.__wrapped__=y,this.__actions__=[],this.__chain__=!!C,this.__index__=0,this.__values__=n}te.templateSettings={escape:$t,evaluate:dn,interpolate:Yt,variable:"",imports:{_:te}},te.prototype=Sl.prototype,te.prototype.constructor=te,Ko.prototype=bl(Sl.prototype),Ko.prototype.constructor=Ko;function pn(y){this.__wrapped__=y,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function ja(){var y=new pn(this.__wrapped__);return y.__actions__=zo(this.__actions__),y.__dir__=this.__dir__,y.__filtered__=this.__filtered__,y.__iteratees__=zo(this.__iteratees__),y.__takeCount__=this.__takeCount__,y.__views__=zo(this.__views__),y}function wl(){if(this.__filtered__){var y=new pn(this);y.__dir__=-1,y.__filtered__=!0}else y=this.clone(),y.__dir__*=-1;return y}function Da(){var y=this.__wrapped__.value(),C=this.__dir__,P=sn(y),V=C<0,Z=P?y.length:0,re=iC(0,Z,this.__views__),ae=re.start,me=re.end,xe=me-ae,He=V?me:ae-1,qe=this.__iteratees__,We=qe.length,dt=0,Rt=Wr(xe,this.__takeCount__);if(!P||!V&&Z==xe&&Rt==xe)return v0(y,this.__actions__);var Qt=[];e:for(;xe--&&dt<Rt;){He+=C;for(var Cn=-1,Kt=y[He];++Cn<We;){var Nn=qe[Cn],Ln=Nn.iteratee,Ni=Nn.type,Ps=Ln(Kt);if(Ni==Y)Kt=Ps;else if(!Ps){if(Ni==B)continue e;break e}}Qt[dt++]=Kt}return Qt}pn.prototype=bl(Sl.prototype),pn.prototype.constructor=pn;function Aa(y){var C=-1,P=y==null?0:y.length;for(this.clear();++C<P;){var V=y[C];this.set(V[0],V[1])}}function o0(){this.__data__=zu?zu(null):{},this.size=0}function Bu(y){var C=this.has(y)&&delete this.__data__[y];return this.size-=C?1:0,C}function Xp(y){var C=this.__data__;if(zu){var P=C[y];return P===c?n:P}return qn.call(C,y)?C[y]:n}function Mc(y){var C=this.__data__;return zu?C[y]!==n:qn.call(C,y)}function wo(y,C){var P=this.__data__;return this.size+=this.has(y)?0:1,P[y]=zu&&C===n?c:C,this}Aa.prototype.clear=o0,Aa.prototype.delete=Bu,Aa.prototype.get=Xp,Aa.prototype.has=Mc,Aa.prototype.set=wo;function Xs(y){var C=-1,P=y==null?0:y.length;for(this.clear();++C<P;){var V=y[C];this.set(V[0],V[1])}}function kb(){this.__data__=[],this.size=0}function Z5(y){var C=this.__data__,P=ta(C,y);if(P<0)return!1;var V=C.length-1;return P==V?C.pop():Ea.call(C,P,1),--this.size,!0}function J5(y){var C=this.__data__,P=ta(C,y);return P<0?n:C[P][1]}function eC(y){return ta(this.__data__,y)>-1}function Kr(y,C){var P=this.__data__,V=ta(P,y);return V<0?(++this.size,P.push([y,C])):P[V][1]=C,this}Xs.prototype.clear=kb,Xs.prototype.delete=Z5,Xs.prototype.get=J5,Xs.prototype.has=eC,Xs.prototype.set=Kr;function _i(y){var C=-1,P=y==null?0:y.length;for(this.clear();++C<P;){var V=y[C];this.set(V[0],V[1])}}function Ef(){this.size=0,this.__data__={hash:new Aa,map:new(xs||Xs),string:new Aa}}function kf(y){var C=Vf(this,y).delete(y);return this.size-=C?1:0,C}function s0(y){return Vf(this,y).get(y)}function Hu(y){return Vf(this,y).has(y)}function qu(y,C){var P=Vf(this,y),V=P.size;return P.set(y,C),this.size+=P.size==V?0:1,this}_i.prototype.clear=Ef,_i.prototype.delete=kf,_i.prototype.get=s0,_i.prototype.has=Hu,_i.prototype.set=qu;function jc(y){var C=-1,P=y==null?0:y.length;for(this.__data__=new _i;++C<P;)this.add(y[C])}function Mb(y){return this.__data__.set(y,c),this}function tC(y){return this.__data__.has(y)}jc.prototype.add=jc.prototype.push=Mb,jc.prototype.has=tC;function Zs(y){var C=this.__data__=new Xs(y);this.size=C.size}function Dc(){this.__data__=new Xs,this.size=0}function i0(y){var C=this.__data__,P=C.delete(y);return this.size=C.size,P}function Zp(y){return this.__data__.get(y)}function jb(y){return this.__data__.has(y)}function Vu(y,C){var P=this.__data__;if(P instanceof Xs){var V=P.__data__;if(!xs||V.length<o-1)return V.push([y,C]),this.size=++P.size,this;P=this.__data__=new _i(V)}return P.set(y,C),this.size=P.size,this}Zs.prototype.clear=Dc,Zs.prototype.delete=i0,Zs.prototype.get=Zp,Zs.prototype.has=jb,Zs.prototype.set=Vu;function Jp(y,C){var P=sn(y),V=!P&&Lc(y),Z=!P&&!V&&Nl(y),re=!P&&!V&&!Z&&Il(y),ae=P||V||Z||re,me=ae?Fp(y.length,Cc):[],xe=me.length;for(var He in y)(C||qn.call(y,He))&&!(ae&&(He=="length"||Z&&(He=="offset"||He=="parent")||re&&(He=="buffer"||He=="byteLength"||He=="byteOffset")||Ai(He,xe)))&&me.push(He);return me}function Mf(y){var C=y.length;return C?y[Ju(0,C-1)]:n}function em(y,C){return Jf(zo(y),Ei(C,0,y.length))}function Db(y){return Jf(zo(y))}function tm(y,C,P){(P!==n&&!As(y[C],P)||P===n&&!(C in y))&&Cs(y,C,P)}function Ti(y,C,P){var V=y[C];(!(qn.call(y,C)&&As(V,P))||P===n&&!(C in y))&&Cs(y,C,P)}function ta(y,C){for(var P=y.length;P--;)if(As(y[P][0],C))return P;return-1}function Ab(y,C,P,V){return na(y,function(Z,re,ae){C(V,Z,P(Z),ae)}),V}function a0(y,C){return y&&ni(C,po(C),y)}function Yu(y,C){return y&&ni(C,is(C),y)}function Cs(y,C,P){C=="__proto__"&&Ys?Ys(y,C,{configurable:!0,enumerable:!0,value:P,writable:!0}):y[C]=P}function Gu(y,C){for(var P=-1,V=C.length,Z=Re(V),re=y==null;++P<V;)Z[P]=re?n:$l(y,C[P]);return Z}function Ei(y,C,P){return y===y&&(P!==n&&(y=y<=P?y:P),C!==n&&(y=y>=C?y:C)),y}function Fo(y,C,P,V,Z,re){var ae,me=C&h,xe=C&p,He=C&v;if(P&&(ae=Z?P(y,V,Z,re):P(y)),ae!==n)return ae;if(!wr(y))return y;var qe=sn(y);if(qe){if(ae=Wb(y),!me)return zo(y,ae)}else{var We=Co(y),dt=We==we||We==_e;if(Nl(y))return w0(y,me);if(We==Xe||We==se||dt&&!Z){if(ae=xe||dt?{}:N0(y),!me)return xe?Hb(y,Yu(ae,y)):Bb(y,a0(ae,y))}else{if(!rr[We])return Z?y:{};ae=Qb(y,We,me)}}re||(re=new Zs);var Rt=re.get(y);if(Rt)return Rt;re.set(y,ae),mh(y)?y.forEach(function(Kt){ae.add(Fo(Kt,C,P,Kt,y,re))}):AS(y)&&y.forEach(function(Kt,Nn){ae.set(Nn,Fo(Kt,C,P,Nn,y,re))});var Qt=He?xe?P0:bm:xe?is:po,Cn=qe?n:Qt(y);return vs(Cn||y,function(Kt,Nn){Cn&&(Nn=Kt,Kt=y[Nn]),Ti(ae,Nn,Fo(Kt,C,P,Nn,y,re))}),ae}function Rb(y){var C=po(y);return function(P){return xl(P,y,C)}}function xl(y,C,P){var V=P.length;if(y==null)return!V;for(y=Wn(y);V--;){var Z=P[V],re=C[Z],ae=y[Z];if(ae===n&&!(Z in y)||!re(ae))return!1}return!0}function l0(y,C,P){if(typeof y!="function")throw new Ss(i);return Zf(function(){y.apply(n,P)},C)}function Js(y,C,P,V){var Z=-1,re=Np,ae=!0,me=y.length,xe=[],He=C.length;if(!me)return xe;P&&(C=vr(C,bs(P))),V?(re=yf,ae=!1):C.length>=o&&(re=vf,ae=!1,C=new jc(C));e:for(;++Z<me;){var qe=y[Z],We=P==null?qe:P(qe);if(qe=V||qe!==0?qe:0,ae&&We===We){for(var dt=He;dt--;)if(C[dt]===We)continue e;xe.push(qe)}else re(C,We,V)||xe.push(qe)}return xe}var na=T0(Mi),nm=T0(om,!0);function Cl(y,C){var P=!0;return na(y,function(V,Z,re){return P=!!C(V,Z,re),P}),P}function ki(y,C,P){for(var V=-1,Z=y.length;++V<Z;){var re=y[V],ae=C(re);if(ae!=null&&(me===n?ae===ae&&!ss(ae):P(ae,me)))var me=ae,xe=re}return xe}function jf(y,C,P,V){var Z=y.length;for(P=Wt(P),P<0&&(P=-P>Z?0:Z+P),V=V===n||V>Z?Z:Wt(V),V<0&&(V+=Z),V=P>V?0:Sy(V);P<V;)y[P++]=C;return y}function rm(y,C){var P=[];return na(y,function(V,Z,re){C(V,Z,re)&&P.push(V)}),P}function io(y,C,P,V,Z){var re=-1,ae=y.length;for(P||(P=$0),Z||(Z=[]);++re<ae;){var me=y[re];C>0&&P(me)?C>1?io(me,C-1,P,V,Z):ml(Z,me):V||(Z[Z.length]=me)}return Z}var Ac=E0(),Wu=E0(!0);function Mi(y,C){return y&&Ac(y,C,po)}function om(y,C){return y&&Wu(y,C,po)}function Ra(y,C){return pl(C,function(P){return Rs(y[P])})}function ra(y,C){C=ks(C,y);for(var P=0,V=C.length;y!=null&&P<V;)y=y[Jo(C[P++])];return P&&P==V?y:n}function c0(y,C,P){var V=C(y);return sn(y)?V:ml(V,P(y))}function xo(y){return y==null?y===n?ct:ze:ka&&ka in Wn(y)?Yf(y):F0(y)}function Df(y,C){return y>C}function _s(y,C){return y!=null&&qn.call(y,C)}function ei(y,C){return y!=null&&C in Wn(y)}function _l(y,C,P){return y>=Wr(C,P)&&y<Or(C,P)}function Af(y,C,P){for(var V=P?yf:Np,Z=y[0].length,re=y.length,ae=re,me=Re(re),xe=1/0,He=[];ae--;){var qe=y[ae];ae&&C&&(qe=vr(qe,bs(C))),xe=Wr(qe.length,xe),me[ae]=!P&&(C||Z>=120&&qe.length>=120)?new jc(ae&&qe):n}qe=y[0];var We=-1,dt=me[0];e:for(;++We<Z&&He.length<xe;){var Rt=qe[We],Qt=C?C(Rt):Rt;if(Rt=P||Rt!==0?Rt:0,!(dt?vf(dt,Qt):V(He,Qt,P))){for(ae=re;--ae;){var Cn=me[ae];if(!(Cn?vf(Cn,Qt):V(y[ae],Qt,P)))continue e}dt&&dt.push(Qt),He.push(Rt)}}return He}function Ob(y,C,P,V){return Mi(y,function(Z,re,ae){C(V,P(Z),re,ae)}),V}function ti(y,C,P){C=ks(C,y),y=Kf(y,C);var V=y==null?y:y[Jo(gr(C))];return V==null?n:ys(V,y,P)}function Xo(y){return Ir(y)&&xo(y)==se}function Fr(y){return Ir(y)&&xo(y)==Tt}function sm(y){return Ir(y)&&xo(y)==pe}function Ts(y,C,P,V,Z){return y===C?!0:y==null||C==null||!Ir(y)&&!Ir(C)?y!==y&&C!==C:mn(y,C,P,V,Ts,Z)}function mn(y,C,P,V,Z,re){var ae=sn(y),me=sn(C),xe=ae?ie:Co(y),He=me?ie:Co(C);xe=xe==se?Xe:xe,He=He==se?Xe:He;var qe=xe==Xe,We=He==Xe,dt=xe==He;if(dt&&Nl(y)){if(!Nl(C))return!1;ae=!0,qe=!1}if(dt&&!qe)return re||(re=new Zs),ae||Il(y)?Hf(y,C,P,V,Z,re):Gb(y,C,xe,P,V,Z,re);if(!(P&g)){var Rt=qe&&qn.call(y,"__wrapped__"),Qt=We&&qn.call(C,"__wrapped__");if(Rt||Qt){var Cn=Rt?y.value():y,Kt=Qt?C.value():C;return re||(re=new Zs),Z(Cn,Kt,P,V,re)}}return dt?(re||(re=new Zs),O0(y,C,P,V,Z,re)):!1}function Jn(y){return Ir(y)&&Co(y)==De}function Pr(y,C,P,V){var Z=P.length,re=Z,ae=!V;if(y==null)return!re;for(y=Wn(y);Z--;){var me=P[Z];if(ae&&me[2]?me[1]!==y[me[0]]:!(me[0]in y))return!1}for(;++Z<re;){me=P[Z];var xe=me[0],He=y[xe],qe=me[1];if(ae&&me[2]){if(He===n&&!(xe in y))return!1}else{var We=new Zs;if(V)var dt=V(He,qe,xe,y,C,We);if(!(dt===n?Ts(qe,He,g|S,V,We):dt))return!1}}return!0}function Rf(y){if(!wr(y)||Kb(y))return!1;var C=Rs(y)?Nu:hn;return C.test(Ao(y))}function Qu(y){return Ir(y)&&xo(y)==st}function Rc(y){return Ir(y)&&Co(y)==mt}function im(y){return Ir(y)&&zm(y.length)&&!!Zn[xo(y)]}function Ku(y){return typeof y=="function"?y:y==null?Bo:typeof y=="object"?sn(y)?u0(y[0],y[1]):lm(y):ee(y)}function Tl(y){if(!od(y))return Fu(y);var C=[];for(var P in Wn(y))qn.call(y,P)&&P!="constructor"&&C.push(P);return C}function nC(y){if(!wr(y))return Pa(y);var C=od(y),P=[];for(var V in y)V=="constructor"&&(C||!qn.call(y,V))||P.push(V);return P}function Sr(y,C){return y<C}function am(y,C){var P=-1,V=os(y)?Re(y.length):[];return na(y,function(Z,re,ae){V[++P]=C(Z,re,ae)}),V}function lm(y){var C=Sm(y);return C.length==1&&C[0][2]?Tm(C[0][0],C[0][1]):function(P){return P===y||Pr(P,y,C)}}function u0(y,C){return Wf(y)&&sa(C)?Tm(Jo(y),C):function(P){var V=$l(P,y);return V===n&&V===C?xy(P,y):Ts(C,V,g|S)}}function Of(y,C,P,V,Z){y!==C&&Ac(C,function(re,ae){if(Z||(Z=new Zs),wr(re))rC(y,C,ae,P,Of,V,Z);else{var me=V?V(or(y,ae),re,ae+"",y,C,Z):n;me===n&&(me=re),tm(y,ae,me)}},is)}function rC(y,C,P,V,Z,re,ae){var me=or(y,P),xe=or(C,P),He=ae.get(xe);if(He){tm(y,P,He);return}var qe=re?re(me,xe,P+"",y,C,ae):n,We=qe===n;if(We){var dt=sn(xe),Rt=!dt&&Nl(xe),Qt=!dt&&!Rt&&Il(xe);qe=xe,dt||Rt||Qt?sn(me)?qe=me:Ur(me)?qe=zo(me):Rt?(We=!1,qe=w0(xe,!0)):Qt?(We=!1,qe=x0(xe,!0)):qe=[]:hh(xe)||Lc(xe)?(qe=me,Lc(me)?qe=Um(me):(!wr(me)||Rs(me))&&(qe=N0(xe))):We=!1}We&&(ae.set(xe,qe),Z(qe,xe,V,re,ae),ae.delete(xe)),tm(y,P,qe)}function cm(y,C){var P=y.length;if(P)return C+=C<0?P:0,Ai(C,P)?y[C]:n}function um(y,C,P){C.length?C=vr(C,function(re){return sn(re)?function(ae){return ra(ae,re.length===1?re[0]:re)}:re}):C=[Bo];var V=-1;C=vr(C,bs(zt()));var Z=am(y,function(re,ae,me){var xe=vr(C,function(He){return He(re)});return{criteria:xe,index:++V,value:re}});return mb(Z,function(re,ae){return Ub(re,ae,P)})}function d0(y,C){return jo(y,C,function(P,V){return xy(y,V)})}function jo(y,C,P){for(var V=-1,Z=C.length,re={};++V<Z;){var ae=C[V],me=ra(y,ae);P(me,ae)&&ed(re,ks(ae,y),me)}return re}function zr(y){return function(C){return ra(C,y)}}function Xu(y,C,P,V){var Z=V?G5:Du,re=-1,ae=C.length,me=y;for(y===C&&(C=zo(C)),P&&(me=vr(y,bs(P)));++re<ae;)for(var xe=0,He=C[re],qe=P?P(He):He;(xe=Z(me,qe,xe,V))>-1;)me!==y&&Ea.call(me,xe,1),Ea.call(y,xe,1);return y}function Zu(y,C){for(var P=y?C.length:0,V=P-1;P--;){var Z=C[P];if(P==V||Z!==re){var re=Z;Ai(Z)?Ea.call(y,Z,1):Pf(y,Z)}}return y}function Ju(y,C){return y+Cf(Ma()*(C-y+1))}function f0(y,C,P,V){for(var Z=-1,re=Or($u((C-y)/(P||1)),0),ae=Re(re);re--;)ae[V?re:++Z]=y,y+=P;return ae}function ji(y,C){var P="";if(!y||C<1||C>z)return P;do C%2&&(P+=y),C=Cf(C/2),C&&(y+=y);while(C);return P}function gn(y,C){return Em(z0(y,C,Bo),y+"")}function h0(y){return Mf(vd(y))}function p0(y,C){var P=vd(y);return Jf(P,Ei(C,0,P.length))}function ed(y,C,P,V){if(!wr(y))return y;C=ks(C,y);for(var Z=-1,re=C.length,ae=re-1,me=y;me!=null&&++Z<re;){var xe=Jo(C[Z]),He=P;if(xe==="__proto__"||xe==="constructor"||xe==="prototype")return y;if(Z!=ae){var qe=me[xe];He=V?V(qe,xe,me):n,He===n&&(He=wr(qe)?qe:Ai(C[Z+1])?[]:{})}Ti(me,xe,He),me=me[xe]}return y}var m0=Qr?function(y,C){return Qr.set(y,C),y}:Bo,Pb=Ys?function(y,C){return Ys(y,"toString",{configurable:!0,enumerable:!1,value:Sd(C),writable:!0})}:Bo;function Nb(y){return Jf(vd(y))}function Es(y,C,P){var V=-1,Z=y.length;C<0&&(C=-C>Z?0:Z+C),P=P>Z?Z:P,P<0&&(P+=Z),Z=C>P?0:P-C>>>0,C>>>=0;for(var re=Re(Z);++V<Z;)re[V]=y[V+C];return re}function Ib(y,C){var P;return na(y,function(V,Z,re){return P=C(V,Z,re),!P}),!!P}function td(y,C,P){var V=0,Z=y==null?V:y.length;if(typeof C=="number"&&C===C&&Z<=J){for(;V<Z;){var re=V+Z>>>1,ae=y[re];ae!==null&&!ss(ae)&&(P?ae<=C:ae<C)?V=re+1:Z=re}return Z}return dm(y,C,Bo,P)}function dm(y,C,P,V){var Z=0,re=y==null?0:y.length;if(re===0)return 0;C=P(C);for(var ae=C!==C,me=C===null,xe=ss(C),He=C===n;Z<re;){var qe=Cf((Z+re)/2),We=P(y[qe]),dt=We!==n,Rt=We===null,Qt=We===We,Cn=ss(We);if(ae)var Kt=V||Qt;else He?Kt=Qt&&(V||dt):me?Kt=Qt&&dt&&(V||!Rt):xe?Kt=Qt&&dt&&!Rt&&(V||!Cn):Rt||Cn?Kt=!1:Kt=V?We<=C:We<C;Kt?Z=qe+1:re=qe}return Wr(re,X)}function $b(y,C){for(var P=-1,V=y.length,Z=0,re=[];++P<V;){var ae=y[P],me=C?C(ae):ae;if(!P||!As(me,xe)){var xe=me;re[Z++]=ae===0?0:ae}}return re}function g0(y){return typeof y=="number"?y:ss(y)?K:+y}function Zo(y){if(typeof y=="string")return y;if(sn(y))return vr(y,Zo)+"";if(ss(y))return kc?kc.call(y):"";var C=y+"";return C=="0"&&1/y==-q?"-0":C}function Oa(y,C,P){var V=-1,Z=Np,re=y.length,ae=!0,me=[],xe=me;if(P)ae=!1,Z=yf;else if(re>=o){var He=C?null:Vb(y);if(He)return Bp(He);ae=!1,Z=vf,xe=new jc}else xe=C?[]:me;e:for(;++V<re;){var qe=y[V],We=C?C(qe):qe;if(qe=P||qe!==0?qe:0,ae&&We===We){for(var dt=xe.length;dt--;)if(xe[dt]===We)continue e;C&&xe.push(We),me.push(qe)}else Z(xe,We,P)||(xe!==me&&xe.push(We),me.push(qe))}return me}function Pf(y,C){C=ks(C,y);var P=-1,V=C.length;if(!V)return!0;for(var Z=y==null||typeof y!="object"&&typeof y!="function";++P<V;){var re=C[P];if(typeof re=="string"){if(re==="__proto__"&&!qn.call(y,"__proto__"))return!1;if(re==="constructor"&&P+1<V&&typeof C[P+1]=="string"&&C[P+1]==="prototype"){if(Z&&P===0)continue;return!1}}}var ae=Kf(y,C);return ae==null||delete ae[Jo(gr(C))]}function y0(y,C,P,V){return ed(y,C,P(ra(y,C)),V)}function Nf(y,C,P,V){for(var Z=y.length,re=V?Z:-1;(V?re--:++re<Z)&&C(y[re],re,y););return P?Es(y,V?0:re,V?re+1:Z):Es(y,V?re+1:0,V?Z:re)}function v0(y,C){var P=y;return P instanceof pn&&(P=P.value()),Vg(C,function(V,Z){return Z.func.apply(Z.thisArg,ml([V],Z.args))},P)}function fm(y,C,P){var V=y.length;if(V<2)return V?Oa(y[0]):[];for(var Z=-1,re=Re(V);++Z<V;)for(var ae=y[Z],me=-1;++me<V;)me!=Z&&(re[Z]=Js(re[Z]||ae,y[me],C,P));return Oa(io(re,1),C,P)}function b0(y,C,P){for(var V=-1,Z=y.length,re=C.length,ae={};++V<Z;){var me=V<re?C[V]:n;P(ae,y[V],me)}return ae}function S0(y){return Ur(y)?y:[]}function hm(y){return typeof y=="function"?y:Bo}function ks(y,C){return sn(y)?y:Wf(y,C)?[y]:U0(Gn(y))}var Lb=gn;function Di(y,C,P){var V=y.length;return P=P===n?V:P,!C&&P>=V?y:Es(y,C,P)}var If=Tb||function(y){return so.clearTimeout(y)};function w0(y,C){if(C)return y.slice();var P=y.length,V=Wp?Wp(P):new y.constructor(P);return y.copy(V),V}function $f(y){var C=new y.constructor(y.byteLength);return new _c(C).set(new _c(y)),C}function oC(y,C){var P=C?$f(y.buffer):y.buffer;return new y.constructor(P,y.byteOffset,y.byteLength)}function Fb(y){var C=new y.constructor(y.source,Vt.exec(y));return C.lastIndex=y.lastIndex,C}function zb(y){return Uu?Wn(Uu.call(y)):{}}function x0(y,C){var P=C?$f(y.buffer):y.buffer;return new y.constructor(P,y.byteOffset,y.length)}function C0(y,C){if(y!==C){var P=y!==n,V=y===null,Z=y===y,re=ss(y),ae=C!==n,me=C===null,xe=C===C,He=ss(C);if(!me&&!He&&!re&&y>C||re&&ae&&xe&&!me&&!He||V&&ae&&xe||!P&&xe||!Z)return 1;if(!V&&!re&&!He&&y<C||He&&P&&Z&&!V&&!re||me&&P&&Z||!ae&&Z||!xe)return-1}return 0}function Ub(y,C,P){for(var V=-1,Z=y.criteria,re=C.criteria,ae=Z.length,me=P.length;++V<ae;){var xe=C0(Z[V],re[V]);if(xe){if(V>=me)return xe;var He=P[V];return xe*(He=="desc"?-1:1)}}return y.index-C.index}function pm(y,C,P,V){for(var Z=-1,re=y.length,ae=P.length,me=-1,xe=C.length,He=Or(re-ae,0),qe=Re(xe+He),We=!V;++me<xe;)qe[me]=C[me];for(;++Z<ae;)(We||Z<re)&&(qe[P[Z]]=y[Z]);for(;He--;)qe[me++]=y[Z++];return qe}function _0(y,C,P,V){for(var Z=-1,re=y.length,ae=-1,me=P.length,xe=-1,He=C.length,qe=Or(re-me,0),We=Re(qe+He),dt=!V;++Z<qe;)We[Z]=y[Z];for(var Rt=Z;++xe<He;)We[Rt+xe]=C[xe];for(;++ae<me;)(dt||Z<re)&&(We[Rt+P[ae]]=y[Z++]);return We}function zo(y,C){var P=-1,V=y.length;for(C||(C=Re(V));++P<V;)C[P]=y[P];return C}function ni(y,C,P,V){var Z=!P;P||(P={});for(var re=-1,ae=C.length;++re<ae;){var me=C[re],xe=V?V(P[me],y[me],me,P,y):n;xe===n&&(xe=y[me]),Z?Cs(P,me,xe):Ti(P,me,xe)}return P}function Bb(y,C){return ni(y,wm(y),C)}function Hb(y,C){return ni(y,Gf(y),C)}function mm(y,C){return function(P,V){var Z=sn(P)?B5:Ab,re=C?C():{};return Z(P,y,zt(V,2),re)}}function El(y){return gn(function(C,P){var V=-1,Z=P.length,re=Z>1?P[Z-1]:n,ae=Z>2?P[2]:n;for(re=y.length>3&&typeof re=="function"?(Z--,re):n,ae&&Do(P[0],P[1],ae)&&(re=Z<3?n:re,Z=1),C=Wn(C);++V<Z;){var me=P[V];me&&y(C,me,V,re)}return C})}function T0(y,C){return function(P,V){if(P==null)return P;if(!os(P))return y(P,V);for(var Z=P.length,re=C?Z:-1,ae=Wn(P);(C?re--:++re<Z)&&V(ae[re],re,ae)!==!1;);return P}}function E0(y){return function(C,P,V){for(var Z=-1,re=Wn(C),ae=V(C),me=ae.length;me--;){var xe=ae[y?me:++Z];if(P(re[xe],xe,re)===!1)break}return C}}function k0(y,C,P){var V=C&w,Z=Lf(y);function re(){var ae=this&&this!==so&&this instanceof re?Z:y;return ae.apply(V?P:this,arguments)}return re}function M0(y){return function(C){C=Gn(C);var P=xc(C)?Tr(C):n,V=P?P[0]:C.charAt(0),Z=P?Di(P,1).join(""):C.slice(1);return V[y]()+Z}}function Oc(y){return function(C){return Vg(o3(bd(C).replace(Bg,"")),y,"")}}function Lf(y){return function(){var C=arguments;switch(C.length){case 0:return new y;case 1:return new y(C[0]);case 2:return new y(C[0],C[1]);case 3:return new y(C[0],C[1],C[2]);case 4:return new y(C[0],C[1],C[2],C[3]);case 5:return new y(C[0],C[1],C[2],C[3],C[4]);case 6:return new y(C[0],C[1],C[2],C[3],C[4],C[5]);case 7:return new y(C[0],C[1],C[2],C[3],C[4],C[5],C[6])}var P=bl(y.prototype),V=y.apply(P,C);return wr(V)?V:P}}function sC(y,C,P){var V=Lf(y);function Z(){for(var re=arguments.length,ae=Re(re),me=re,xe=Nr(Z);me--;)ae[me]=arguments[me];var He=re<3&&ae[0]!==xe&&ae[re-1]!==xe?[]:Ta(ae,xe);if(re-=He.length,re<P)return vm(y,C,rd,Z.placeholder,n,ae,He,n,n,P-re);var qe=this&&this!==so&&this instanceof Z?V:y;return ys(qe,this,ae)}return Z}function j0(y){return function(C,P,V){var Z=Wn(C);if(!os(C)){var re=zt(P,3);C=po(C),P=function(me){return re(Z[me],me,Z)}}var ae=y(C,P,V);return ae>-1?Z[re?C[ae]:ae]:n}}function nd(y){return oa(function(C){var P=C.length,V=P,Z=Ko.prototype.thru;for(y&&C.reverse();V--;){var re=C[V];if(typeof re!="function")throw new Ss(i);if(Z&&!ae&&Er(re)=="wrapper")var ae=new Ko([],!0)}for(V=ae?V:P;++V<P;){re=C[V];var me=Er(re),xe=me=="wrapper"?qf(re):n;xe&&Qf(xe[0])&&xe[1]==(k|T|j|R)&&!xe[4].length&&xe[9]==1?ae=ae[Er(xe[0])].apply(ae,xe[3]):ae=re.length==1&&Qf(re)?ae[me]():ae.thru(re)}return function(){var He=arguments,qe=He[0];if(ae&&He.length==1&&sn(qe))return ae.plant(qe).value();for(var We=0,dt=P?C[We].apply(this,He):qe;++We<P;)dt=C[We].call(this,dt);return dt}})}function rd(y,C,P,V,Z,re,ae,me,xe,He){var qe=C&k,We=C&w,dt=C&_,Rt=C&(T|M),Qt=C&N,Cn=dt?n:Lf(y);function Kt(){for(var Nn=arguments.length,Ln=Re(Nn),Ni=Nn;Ni--;)Ln[Ni]=arguments[Ni];if(Rt)var Ps=Nr(Kt),Ii=bf(Ln,Ps);if(V&&(Ln=pm(Ln,V,Z,Rt)),re&&(Ln=_0(Ln,re,ae,Rt)),Nn-=Ii,Rt&&Nn<He){var lo=Ta(Ln,Ps);return vm(y,C,rd,Kt.placeholder,P,Ln,lo,me,xe,He-Nn)}var Ha=We?P:this,zc=dt?Ha[y]:y;return Nn=Ln.length,me?Ln=Xf(Ln,me):Qt&&Nn>1&&Ln.reverse(),qe&&xe<Nn&&(Ln.length=xe),this&&this!==so&&this instanceof Kt&&(zc=Cn||Lf(zc)),zc.apply(Ha,Ln)}return Kt}function Ff(y,C){return function(P,V){return Ob(P,y,C(V),{})}}function zf(y,C){return function(P,V){var Z;if(P===n&&V===n)return C;if(P!==n&&(Z=P),V!==n){if(Z===n)return V;typeof P=="string"||typeof V=="string"?(P=Zo(P),V=Zo(V)):(P=g0(P),V=g0(V)),Z=y(P,V)}return Z}}function gm(y){return oa(function(C){return C=vr(C,bs(zt())),gn(function(P){var V=this;return y(C,function(Z){return ys(Z,V,P)})})})}function kl(y,C){C=C===n?" ":Zo(C);var P=C.length;if(P<2)return P?ji(C,y):C;var V=ji(C,$u(y/Au(C)));return xc(C)?Di(Tr(V),0,y).join(""):V.slice(0,y)}function qb(y,C,P,V){var Z=C&w,re=Lf(y);function ae(){for(var me=-1,xe=arguments.length,He=-1,qe=V.length,We=Re(qe+xe),dt=this&&this!==so&&this instanceof ae?re:y;++He<qe;)We[He]=V[He];for(;xe--;)We[He++]=arguments[++me];return ys(dt,Z?P:this,We)}return ae}function ym(y){return function(C,P,V){return V&&typeof V!="number"&&Do(C,P,V)&&(P=V=n),C=Ua(C),P===n?(P=C,C=0):P=Ua(P),V=V===n?C<P?1:-1:Ua(V),f0(C,P,V,y)}}function Uf(y){return function(C,P){return typeof C=="string"&&typeof P=="string"||(C=Os(C),P=Os(P)),y(C,P)}}function vm(y,C,P,V,Z,re,ae,me,xe,He){var qe=C&T,We=qe?ae:n,dt=qe?n:ae,Rt=qe?re:n,Qt=qe?n:re;C|=qe?j:A,C&=~(qe?A:j),C&E||(C&=-4);var Cn=[y,C,Z,Rt,We,Qt,dt,me,xe,He],Kt=P.apply(n,Cn);return Qf(y)&&Zb(Kt,Cn),Kt.placeholder=V,sd(Kt,y,C)}function Bf(y){var C=br[y];return function(P,V){if(P=Os(P),V=V==null?0:Wr(Wt(V),292),V&&ws(P)){var Z=(Gn(P)+"e").split("e"),re=C(Z[0]+"e"+(+Z[1]+V));return Z=(Gn(re)+"e").split("e"),+(Z[0]+"e"+(+Z[1]-V))}return C(P)}}var Vb=gl&&1/Bp(new gl([,-0]))[1]==q?function(y){return new gl(y)}:m;function D0(y){return function(C){var P=Co(C);return P==De?Up(C):P==mt?Q5(C):gb(C,y(C))}}function Uo(y,C,P,V,Z,re,ae,me){var xe=C&_;if(!xe&&typeof y!="function")throw new Ss(i);var He=V?V.length:0;if(He||(C&=-97,V=Z=n),ae=ae===n?ae:Or(Wt(ae),0),me=me===n?me:Wt(me),He-=Z?Z.length:0,C&A){var qe=V,We=Z;V=Z=n}var dt=xe?n:qf(y),Rt=[y,C,P,V,Z,qe,We,re,ae,me];if(dt&&Xb(Rt,dt),y=Rt[0],C=Rt[1],P=Rt[2],V=Rt[3],Z=Rt[4],me=Rt[9]=Rt[9]===n?xe?0:y.length:Or(Rt[9]-He,0),!me&&C&(T|M)&&(C&=-25),!C||C==w)var Qt=k0(y,C,P);else C==T||C==M?Qt=sC(y,C,me):(C==j||C==(w|j))&&!Z.length?Qt=qb(y,C,P,V):Qt=rd.apply(n,Rt);var Cn=dt?m0:Zb;return sd(Cn(Qt,Rt),y,C)}function A0(y,C,P,V){return y===n||As(y,Pu[P])&&!qn.call(V,P)?C:y}function R0(y,C,P,V,Z,re){return wr(y)&&wr(C)&&(re.set(C,y),Of(y,C,n,R0,re),re.delete(C)),y}function Yb(y){return hh(y)?n:y}function Hf(y,C,P,V,Z,re){var ae=P&g,me=y.length,xe=C.length;if(me!=xe&&!(ae&&xe>me))return!1;var He=re.get(y),qe=re.get(C);if(He&&qe)return He==C&&qe==y;var We=-1,dt=!0,Rt=P&S?new jc:n;for(re.set(y,C),re.set(C,y);++We<me;){var Qt=y[We],Cn=C[We];if(V)var Kt=ae?V(Cn,Qt,We,C,y,re):V(Qt,Cn,We,y,C,re);if(Kt!==n){if(Kt)continue;dt=!1;break}if(Rt){if(!Yg(C,function(Nn,Ln){if(!vf(Rt,Ln)&&(Qt===Nn||Z(Qt,Nn,P,V,re)))return Rt.push(Ln)})){dt=!1;break}}else if(!(Qt===Cn||Z(Qt,Cn,P,V,re))){dt=!1;break}}return re.delete(y),re.delete(C),dt}function Gb(y,C,P,V,Z,re,ae){switch(P){case Ft:if(y.byteLength!=C.byteLength||y.byteOffset!=C.byteOffset)return!1;y=y.buffer,C=C.buffer;case Tt:return!(y.byteLength!=C.byteLength||!re(new _c(y),new _c(C)));case de:case pe:case Ze:return As(+y,+C);case Te:return y.name==C.name&&y.message==C.message;case st:case bt:return y==C+"";case De:var me=Up;case mt:var xe=V&g;if(me||(me=Bp),y.size!=C.size&&!xe)return!1;var He=ae.get(y);if(He)return He==C;V|=S,ae.set(y,C);var qe=Hf(me(y),me(C),V,Z,re,ae);return ae.delete(y),qe;case At:if(Uu)return Uu.call(y)==Uu.call(C)}return!1}function O0(y,C,P,V,Z,re){var ae=P&g,me=bm(y),xe=me.length,He=bm(C),qe=He.length;if(xe!=qe&&!ae)return!1;for(var We=xe;We--;){var dt=me[We];if(!(ae?dt in C:qn.call(C,dt)))return!1}var Rt=re.get(y),Qt=re.get(C);if(Rt&&Qt)return Rt==C&&Qt==y;var Cn=!0;re.set(y,C),re.set(C,y);for(var Kt=ae;++We<xe;){dt=me[We];var Nn=y[dt],Ln=C[dt];if(V)var Ni=ae?V(Ln,Nn,dt,C,y,re):V(Nn,Ln,dt,y,C,re);if(!(Ni===n?Nn===Ln||Z(Nn,Ln,P,V,re):Ni)){Cn=!1;break}Kt||(Kt=dt=="constructor")}if(Cn&&!Kt){var Ps=y.constructor,Ii=C.constructor;Ps!=Ii&&"constructor"in y&&"constructor"in C&&!(typeof Ps=="function"&&Ps instanceof Ps&&typeof Ii=="function"&&Ii instanceof Ii)&&(Cn=!1)}return re.delete(y),re.delete(C),Cn}function oa(y){return Em(z0(y,n,mr),y+"")}function bm(y){return c0(y,po,wm)}function P0(y){return c0(y,is,Gf)}var qf=Qr?function(y){return Qr.get(y)}:m;function Er(y){for(var C=y.name+"",P=Yn[C],V=qn.call(Yn,C)?P.length:0;V--;){var Z=P[V],re=Z.func;if(re==null||re==y)return Z.name}return C}function Nr(y){var C=qn.call(te,"placeholder")?te:y;return C.placeholder}function zt(){var y=te.iteratee||wh;return y=y===wh?Ku:y,arguments.length?y(arguments[0],arguments[1]):y}function Vf(y,C){var P=y.__data__;return _m(C)?P[typeof C=="string"?"string":"hash"]:P.map}function Sm(y){for(var C=po(y),P=C.length;P--;){var V=C[P],Z=y[V];C[P]=[V,Z,sa(Z)]}return C}function Ml(y,C){var P=yb(y,C);return Rf(P)?P:n}function Yf(y){var C=qn.call(y,ka),P=y[ka];try{y[ka]=n;var V=!0}catch{}var Z=Qo.call(y);return V&&(C?y[ka]=P:delete y[ka]),Z}var wm=_f?function(y){return y==null?[]:(y=Wn(y),pl(_f(y),function(C){return xf.call(y,C)}))}:Be,Gf=_f?function(y){for(var C=[];y;)ml(C,wm(y)),y=Ji(y);return C}:Be,Co=xo;(Qs&&Co(new Qs(new ArrayBuffer(1)))!=Ft||xs&&Co(new xs)!=De||Kp&&Co(Kp.resolve())!=Ke||gl&&Co(new gl)!=mt||Ec&&Co(new Ec)!=cn)&&(Co=function(y){var C=xo(y),P=C==Xe?y.constructor:n,V=P?Ao(P):"";if(V)switch(V){case Pn:return Ft;case yl:return De;case Ks:return Ke;case r0:return mt;case vl:return cn}return C});function iC(y,C,P){for(var V=-1,Z=P.length;++V<Z;){var re=P[V],ae=re.size;switch(re.type){case"drop":y+=ae;break;case"dropRight":C-=ae;break;case"take":C=Wr(C,y+ae);break;case"takeRight":y=Or(y,C-ae);break}}return{start:y,end:C}}function xm(y){var C=y.match(tt);return C?C[1].split(Et):[]}function Cm(y,C,P){C=ks(C,y);for(var V=-1,Z=C.length,re=!1;++V<Z;){var ae=Jo(C[V]);if(!(re=y!=null&&P(y,ae)))break;y=y[ae]}return re||++V!=Z?re:(Z=y==null?0:y.length,!!Z&&zm(Z)&&Ai(ae,Z)&&(sn(y)||Lc(y)))}function Wb(y){var C=y.length,P=new y.constructor(C);return C&&typeof y[0]=="string"&&qn.call(y,"index")&&(P.index=y.index,P.input=y.input),P}function N0(y){return typeof y.constructor=="function"&&!od(y)?bl(Ji(y)):{}}function Qb(y,C,P){var V=y.constructor;switch(C){case Tt:return $f(y);case de:case pe:return new V(+y);case Ft:return oC(y,P);case Xt:case _n:case un:case Zt:case Jt:case en:case It:case he:case Ce:return x0(y,P);case De:return new V;case Ze:case bt:return new V(y);case st:return Fb(y);case mt:return new V;case At:return zb(y)}}function I0(y,C){var P=C.length;if(!P)return y;var V=P-1;return C[V]=(P>1?"& ":"")+C[V],C=C.join(P>2?", ":" "),y.replace(Ye,`{
/* [wrapped with `+C+`] */
`)}function $0(y){return sn(y)||Lc(y)||!!(_b&&y&&y[_b])}function Ai(y,C){var P=typeof y;return C=C??z,!!C&&(P=="number"||P!="symbol"&&zn.test(y))&&y>-1&&y%1==0&&y<C}function Do(y,C,P){if(!wr(P))return!1;var V=typeof C;return(V=="number"?os(P)&&Ai(C,P.length):V=="string"&&C in P)?As(P[C],y):!1}function Wf(y,C){if(sn(y))return!1;var P=typeof y;return P=="number"||P=="symbol"||P=="boolean"||y==null||ss(y)?!0:$n.test(y)||!Gt.test(y)||C!=null&&y in Wn(C)}function _m(y){var C=typeof y;return C=="string"||C=="number"||C=="symbol"||C=="boolean"?y!=="__proto__":y===null}function Qf(y){var C=Er(y),P=te[C];if(typeof P!="function"||!(C in pn.prototype))return!1;if(y===P)return!0;var V=qf(P);return!!V&&y===V[0]}function Kb(y){return!!Yp&&Yp in y}var L0=qp?Rs:Me;function od(y){var C=y&&y.constructor,P=typeof C=="function"&&C.prototype||Pu;return y===P}function sa(y){return y===y&&!wr(y)}function Tm(y,C){return function(P){return P==null?!1:P[y]===C&&(C!==n||y in Wn(P))}}function aC(y){var C=ch(y,function(V){return P.size===d&&P.clear(),V}),P=C.cache;return C}function Xb(y,C){var P=y[1],V=C[1],Z=P|V,re=Z<(w|_|k),ae=V==k&&P==T||V==k&&P==R&&y[7].length<=C[8]||V==(k|R)&&C[7].length<=C[8]&&P==T;if(!(re||ae))return y;V&w&&(y[2]=C[2],Z|=P&w?0:E);var me=C[3];if(me){var xe=y[3];y[3]=xe?pm(xe,me,C[4]):me,y[4]=xe?Ta(y[3],f):C[4]}return me=C[5],me&&(xe=y[5],y[5]=xe?_0(xe,me,C[6]):me,y[6]=xe?Ta(y[5],f):C[6]),me=C[7],me&&(y[7]=me),V&k&&(y[8]=y[8]==null?C[8]:Wr(y[8],C[8])),y[9]==null&&(y[9]=C[9]),y[0]=C[0],y[1]=Z,y}function Pa(y){var C=[];if(y!=null)for(var P in Wn(y))C.push(P);return C}function F0(y){return Qo.call(y)}function z0(y,C,P){return C=Or(C===n?y.length-1:C,0),function(){for(var V=arguments,Z=-1,re=Or(V.length-C,0),ae=Re(re);++Z<re;)ae[Z]=V[C+Z];Z=-1;for(var me=Re(C+1);++Z<C;)me[Z]=V[Z];return me[C]=P(ae),ys(y,this,me)}}function Kf(y,C){return C.length<2?y:ra(y,Es(C,0,-1))}function Xf(y,C){for(var P=y.length,V=Wr(C.length,P),Z=zo(y);V--;){var re=C[V];y[V]=Ai(re,P)?Z[re]:n}return y}function or(y,C){if(!(C==="constructor"&&typeof y[C]=="function")&&C!="__proto__")return y[C]}var Zb=Na(m0),Zf=Tc||function(y,C){return so.setTimeout(y,C)},Em=Na(Pb);function sd(y,C,P){var V=C+"";return Em(y,I0(V,Jb(xm(V),P)))}function Na(y){var C=0,P=0;return function(){var V=Gs(),Z=H-(V-P);if(P=V,Z>0){if(++C>=F)return arguments[0]}else C=0;return y.apply(n,arguments)}}function Jf(y,C){var P=-1,V=y.length,Z=V-1;for(C=C===n?V:C;++P<C;){var re=Ju(P,Z),ae=y[re];y[re]=y[P],y[P]=ae}return y.length=C,y}var U0=aC(function(y){var C=[];return y.charCodeAt(0)===46&&C.push(""),y.replace(Tn,function(P,V,Z,re){C.push(Z?re.replace(Ge,"$1"):V||P)}),C});function Jo(y){if(typeof y=="string"||ss(y))return y;var C=y+"";return C=="0"&&1/y==-q?"-0":C}function Ao(y){if(y!=null){try{return Vp.call(y)}catch{}try{return y+""}catch{}}return""}function Jb(y,C){return vs(ne,function(P){var V="_."+P[0];C&P[1]&&!Np(y,V)&&y.push(V)}),y.sort()}function km(y){if(y instanceof pn)return y.clone();var C=new Ko(y.__wrapped__,y.__chain__);return C.__actions__=zo(y.__actions__),C.__index__=y.__index__,C.__values__=y.__values__,C}function eS(y,C,P){(P?Do(y,C,P):C===n)?C=1:C=Or(Wt(C),0);var V=y==null?0:y.length;if(!V||C<1)return[];for(var Z=0,re=0,ae=Re($u(V/C));Z<V;)ae[re++]=Es(y,Z,Z+=C);return ae}function B0(y){for(var C=-1,P=y==null?0:y.length,V=0,Z=[];++C<P;){var re=y[C];re&&(Z[V++]=re)}return Z}function H0(){var y=arguments.length;if(!y)return[];for(var C=Re(y-1),P=arguments[0],V=y;V--;)C[V-1]=arguments[V];return ml(sn(P)?zo(P):[P],io(C,1))}var Mm=gn(function(y,C){return Ur(y)?Js(y,io(C,1,Ur,!0)):[]}),tS=gn(function(y,C){var P=gr(C);return Ur(P)&&(P=n),Ur(y)?Js(y,io(C,1,Ur,!0),zt(P,2)):[]}),Ia=gn(function(y,C){var P=gr(C);return Ur(P)&&(P=n),Ur(y)?Js(y,io(C,1,Ur,!0),n,P):[]});function Xr(y,C,P){var V=y==null?0:y.length;return V?(C=P||C===n?1:Wt(C),Es(y,C<0?0:C,V)):[]}function q0(y,C,P){var V=y==null?0:y.length;return V?(C=P||C===n?1:Wt(C),C=V-C,Es(y,0,C<0?0:C)):[]}function nS(y,C){return y&&y.length?Nf(y,zt(C,3),!0,!0):[]}function ho(y,C){return y&&y.length?Nf(y,zt(C,3),!0):[]}function lC(y,C,P,V){var Z=y==null?0:y.length;return Z?(P&&typeof P!="number"&&Do(y,C,P)&&(P=0,V=Z),jf(y,C,P,V)):[]}function V0(y,C,P){var V=y==null?0:y.length;if(!V)return-1;var Z=P==null?0:Wt(P);return Z<0&&(Z=Or(V+Z,0)),Ip(y,zt(C,3),Z)}function Y0(y,C,P){var V=y==null?0:y.length;if(!V)return-1;var Z=V-1;return P!==n&&(Z=Wt(P),Z=P<0?Or(V+Z,0):Wr(Z,V-1)),Ip(y,zt(C,3),Z,!0)}function mr(y){var C=y==null?0:y.length;return C?io(y,1):[]}function es(y){var C=y==null?0:y.length;return C?io(y,q):[]}function $a(y,C){var P=y==null?0:y.length;return P?(C=C===n?1:Wt(C),io(y,C)):[]}function rS(y){for(var C=-1,P=y==null?0:y.length,V={};++C<P;){var Z=y[C];V[Z[0]]=Z[1]}return V}function G0(y){return y&&y.length?y[0]:n}function oS(y,C,P){var V=y==null?0:y.length;if(!V)return-1;var Z=P==null?0:Wt(P);return Z<0&&(Z=Or(V+Z,0)),Du(y,C,Z)}function cC(y){var C=y==null?0:y.length;return C?Es(y,0,-1):[]}var jm=gn(function(y){var C=vr(y,S0);return C.length&&C[0]===y[0]?Af(C):[]}),ts=gn(function(y){var C=gr(y),P=vr(y,S0);return C===gr(P)?C=n:P.pop(),P.length&&P[0]===y[0]?Af(P,zt(C,2)):[]}),Ri=gn(function(y){var C=gr(y),P=vr(y,S0);return C=typeof C=="function"?C:n,C&&P.pop(),P.length&&P[0]===y[0]?Af(P,n,C):[]});function sS(y,C){return y==null?"":Lu.call(y,C)}function gr(y){var C=y==null?0:y.length;return C?y[C-1]:n}function iS(y,C,P){var V=y==null?0:y.length;if(!V)return-1;var Z=V;return P!==n&&(Z=Wt(P),Z=Z<0?Or(V+Z,0):Wr(Z,V-1)),C===C?X5(y,C,Z):Ip(y,pb,Z,!0)}function La(y,C){return y&&y.length?cm(y,Wt(C)):n}var Pc=gn(ia);function ia(y,C){return y&&y.length&&C&&C.length?Xu(y,C):y}function W0(y,C,P){return y&&y.length&&C&&C.length?Xu(y,C,zt(P,2)):y}function Q0(y,C,P){return y&&y.length&&C&&C.length?Xu(y,C,n,P):y}var Oi=oa(function(y,C){var P=y==null?0:y.length,V=Gu(y,C);return Zu(y,vr(C,function(Z){return Ai(Z,P)?+Z:Z}).sort(C0)),V});function aS(y,C){var P=[];if(!(y&&y.length))return P;var V=-1,Z=[],re=y.length;for(C=zt(C,3);++V<re;){var ae=y[V];C(ae,V,y)&&(P.push(ae),Z.push(V))}return Zu(y,Z),P}function jl(y){return y==null?y:ea.call(y)}function eh(y,C,P){var V=y==null?0:y.length;return V?(P&&typeof P!="number"&&Do(y,C,P)?(C=0,P=V):(C=C==null?0:Wt(C),P=P===n?V:Wt(P)),Es(y,C,P)):[]}function th(y,C){return td(y,C)}function id(y,C,P){return dm(y,C,zt(P,2))}function lS(y,C){var P=y==null?0:y.length;if(P){var V=td(y,C);if(V<P&&As(y[V],C))return V}return-1}function cS(y,C){return td(y,C,!0)}function nh(y,C,P){return dm(y,C,zt(P,2),!0)}function uS(y,C){var P=y==null?0:y.length;if(P){var V=td(y,C,!0)-1;if(As(y[V],C))return V}return-1}function Dm(y){return y&&y.length?$b(y):[]}function dS(y,C){return y&&y.length?$b(y,zt(C,2)):[]}function uC(y){var C=y==null?0:y.length;return C?Es(y,1,C):[]}function dC(y,C,P){return y&&y.length?(C=P||C===n?1:Wt(C),Es(y,0,C<0?0:C)):[]}function Vn(y,C,P){var V=y==null?0:y.length;return V?(C=P||C===n?1:Wt(C),C=V-C,Es(y,C<0?0:C,V)):[]}function sr(y,C){return y&&y.length?Nf(y,zt(C,3),!1,!0):[]}function kn(y,C){return y&&y.length?Nf(y,zt(C,3)):[]}var Dn=gn(function(y){return Oa(io(y,1,Ur,!0))}),Qn=gn(function(y){var C=gr(y);return Ur(C)&&(C=n),Oa(io(y,1,Ur,!0),zt(C,2))}),Ms=gn(function(y){var C=gr(y);return C=typeof C=="function"?C:n,Oa(io(y,1,Ur,!0),n,C)});function Dl(y){return y&&y.length?Oa(y):[]}function ad(y,C){return y&&y.length?Oa(y,zt(C,2)):[]}function K0(y,C){return C=typeof C=="function"?C:n,y&&y.length?Oa(y,n,C):[]}function Pi(y){if(!(y&&y.length))return[];var C=0;return y=pl(y,function(P){if(Ur(P))return C=Or(P.length,C),!0}),Fp(C,function(P){return vr(y,Sc(P))})}function kr(y,C){if(!(y&&y.length))return[];var P=Pi(y);return C==null?P:vr(P,function(V){return ys(C,n,V)})}var Al=gn(function(y,C){return Ur(y)?Js(y,C):[]}),Nc=gn(function(y){return fm(pl(y,Ur))}),X0=gn(function(y){var C=gr(y);return Ur(C)&&(C=n),fm(pl(y,Ur),zt(C,2))}),js=gn(function(y){var C=gr(y);return C=typeof C=="function"?C:n,fm(pl(y,Ur),n,C)}),ld=gn(Pi);function rh(y,C){return b0(y||[],C||[],Ti)}function ns(y,C){return b0(y||[],C||[],ed)}var Z0=gn(function(y){var C=y.length,P=C>1?y[C-1]:n;return P=typeof P=="function"?(y.pop(),P):n,kr(y,P)});function oh(y){var C=te(y);return C.__chain__=!0,C}function fS(y,C){return C(y),y}function Ic(y,C){return C(y)}var Am=oa(function(y){var C=y.length,P=C?y[0]:0,V=this.__wrapped__,Z=function(re){return Gu(re,y)};return C>1||this.__actions__.length||!(V instanceof pn)||!Ai(P)?this.thru(Z):(V=V.slice(P,+P+(C?1:0)),V.__actions__.push({func:Ic,args:[Z],thisArg:n}),new Ko(V,this.__chain__).thru(function(re){return C&&!re.length&&re.push(n),re}))});function Rl(){return oh(this)}function ao(){return new Ko(this.value(),this.__chain__)}function Ol(){this.__values__===n&&(this.__values__=IS(this.value()));var y=this.__index__>=this.__values__.length,C=y?n:this.__values__[this.__index__++];return{done:y,value:C}}function cd(){return this}function Fa(y){for(var C,P=this;P instanceof Sl;){var V=km(P);V.__index__=0,V.__values__=n,C?Z.__wrapped__=V:C=V;var Z=V;P=P.__wrapped__}return Z.__wrapped__=y,C}function J0(){var y=this.__wrapped__;if(y instanceof pn){var C=y;return this.__actions__.length&&(C=new pn(this)),C=C.reverse(),C.__actions__.push({func:Ic,args:[jl],thisArg:n}),new Ko(C,this.__chain__)}return this.thru(jl)}function ey(){return v0(this.__wrapped__,this.__actions__)}var hS=mm(function(y,C,P){qn.call(y,P)?++y[P]:Cs(y,P,1)});function sh(y,C,P){var V=sn(y)?db:Cl;return P&&Do(y,C,P)&&(C=n),V(y,zt(C,3))}function ty(y,C){var P=sn(y)?pl:rm;return P(y,zt(C,3))}var Ds=j0(V0),pS=j0(Y0);function rs(y,C){return io(ih(y,C),1)}function mS(y,C){return io(ih(y,C),q)}function gS(y,C,P){return P=P===n?1:Wt(P),io(ih(y,C),P)}function yS(y,C){var P=sn(y)?vs:na;return P(y,zt(C,3))}function za(y,C){var P=sn(y)?H5:nm;return P(y,zt(C,3))}var Rm=mm(function(y,C,P){qn.call(y,P)?y[P].push(C):Cs(y,P,[C])});function ny(y,C,P,V){y=os(y)?y:vd(y),P=P&&!V?Wt(P):0;var Z=y.length;return P<0&&(P=Or(Z+P,0)),gh(y)?P<=Z&&y.indexOf(C,P)>-1:!!Z&&Du(y,C,P)>-1}var ud=gn(function(y,C,P){var V=-1,Z=typeof C=="function",re=os(y)?Re(y.length):[];return na(y,function(ae){re[++V]=Z?ys(C,ae,P):ti(ae,C,P)}),re}),vS=mm(function(y,C,P){Cs(y,P,C)});function ih(y,C){var P=sn(y)?vr:am;return P(y,zt(C,3))}function bS(y,C,P,V){return y==null?[]:(sn(C)||(C=C==null?[]:[C]),P=V?n:P,sn(P)||(P=P==null?[]:[P]),um(y,C,P))}var SS=mm(function(y,C,P){y[P?0:1].push(C)},function(){return[[],[]]});function Om(y,C,P){var V=sn(y)?Vg:Wg,Z=arguments.length<3;return V(y,zt(C,4),P,Z,na)}function ry(y,C,P){var V=sn(y)?fb:Wg,Z=arguments.length<3;return V(y,zt(C,4),P,Z,nm)}function fC(y,C){var P=sn(y)?pl:rm;return P(y,Im(zt(C,3)))}function hC(y){var C=sn(y)?Mf:h0;return C(y)}function pC(y,C,P){(P?Do(y,C,P):C===n)?C=1:C=Wt(C);var V=sn(y)?em:p0;return V(y,C)}function wS(y){var C=sn(y)?Db:Nb;return C(y)}function xS(y){if(y==null)return 0;if(os(y))return gh(y)?Au(y):y.length;var C=Co(y);return C==De||C==mt?y.size:Tl(y).length}function dd(y,C,P){var V=sn(y)?Yg:Ib;return P&&Do(y,C,P)&&(C=n),V(y,zt(C,3))}var Pm=gn(function(y,C){if(y==null)return[];var P=C.length;return P>1&&Do(y,C[0],C[1])?C=[]:P>2&&Do(C[0],C[1],C[2])&&(C=[C[0]]),um(y,io(C,1),[])}),ah=Qp||function(){return so.Date.now()};function CS(y,C){if(typeof C!="function")throw new Ss(i);return y=Wt(y),function(){if(--y<1)return C.apply(this,arguments)}}function oy(y,C,P){return C=P?n:C,C=y&&C==null?y.length:C,Uo(y,k,n,n,n,n,C)}function sy(y,C){var P;if(typeof C!="function")throw new Ss(i);return y=Wt(y),function(){return--y>0&&(P=C.apply(this,arguments)),y<=1&&(C=n),P}}var Nm=gn(function(y,C,P){var V=w;if(P.length){var Z=Ta(P,Nr(Nm));V|=j}return Uo(y,V,C,P,Z)}),iy=gn(function(y,C,P){var V=w|_;if(P.length){var Z=Ta(P,Nr(iy));V|=j}return Uo(C,V,y,P,Z)});function lh(y,C,P){C=P?n:C;var V=Uo(y,T,n,n,n,n,n,C);return V.placeholder=lh.placeholder,V}function ay(y,C,P){C=P?n:C;var V=Uo(y,M,n,n,n,n,n,C);return V.placeholder=ay.placeholder,V}function ly(y,C,P){var V,Z,re,ae,me,xe,He=0,qe=!1,We=!1,dt=!0;if(typeof y!="function")throw new Ss(i);C=Os(C)||0,wr(P)&&(qe=!!P.leading,We="maxWait"in P,re=We?Or(Os(P.maxWait)||0,C):re,dt="trailing"in P?!!P.trailing:dt);function Rt(lo){var Ha=V,zc=Z;return V=Z=n,He=lo,ae=y.apply(zc,Ha),ae}function Qt(lo){return He=lo,me=Zf(Nn,C),qe?Rt(lo):ae}function Cn(lo){var Ha=lo-xe,zc=lo-He,Xk=C-Ha;return We?Wr(Xk,re-zc):Xk}function Kt(lo){var Ha=lo-xe,zc=lo-He;return xe===n||Ha>=C||Ha<0||We&&zc>=re}function Nn(){var lo=ah();if(Kt(lo))return Ln(lo);me=Zf(Nn,Cn(lo))}function Ln(lo){return me=n,dt&&V?Rt(lo):(V=Z=n,ae)}function Ni(){me!==n&&If(me),He=0,V=xe=Z=me=n}function Ps(){return me===n?ae:Ln(ah())}function Ii(){var lo=ah(),Ha=Kt(lo);if(V=arguments,Z=this,xe=lo,Ha){if(me===n)return Qt(xe);if(We)return If(me),me=Zf(Nn,C),Rt(xe)}return me===n&&(me=Zf(Nn,C)),ae}return Ii.cancel=Ni,Ii.flush=Ps,Ii}var Kn=gn(function(y,C){return l0(y,1,C)}),cy=gn(function(y,C,P){return l0(y,Os(C)||0,P)});function mC(y){return Uo(y,N)}function ch(y,C){if(typeof y!="function"||C!=null&&typeof C!="function")throw new Ss(i);var P=function(){var V=arguments,Z=C?C.apply(this,V):V[0],re=P.cache;if(re.has(Z))return re.get(Z);var ae=y.apply(this,V);return P.cache=re.set(Z,ae)||re,ae};return P.cache=new(ch.Cache||_i),P}ch.Cache=_i;function Im(y){if(typeof y!="function")throw new Ss(i);return function(){var C=arguments;switch(C.length){case 0:return!y.call(this);case 1:return!y.call(this,C[0]);case 2:return!y.call(this,C[0],C[1]);case 3:return!y.call(this,C[0],C[1],C[2])}return!y.apply(this,C)}}function gC(y){return sy(2,y)}var yC=Lb(function(y,C){C=C.length==1&&sn(C[0])?vr(C[0],bs(zt())):vr(io(C,1),bs(zt()));var P=C.length;return gn(function(V){for(var Z=-1,re=Wr(V.length,P);++Z<re;)V[Z]=C[Z].call(this,V[Z]);return ys(y,this,V)})}),fd=gn(function(y,C){var P=Ta(C,Nr(fd));return Uo(y,j,n,C,P)}),$c=gn(function(y,C){var P=Ta(C,Nr($c));return Uo(y,A,n,C,P)}),uy=oa(function(y,C){return Uo(y,R,n,n,n,C)});function $m(y,C){if(typeof y!="function")throw new Ss(i);return C=C===n?C:Wt(C),gn(y,C)}function dy(y,C){if(typeof y!="function")throw new Ss(i);return C=C==null?0:Or(Wt(C),0),gn(function(P){var V=P[C],Z=Di(P,0,C);return V&&ml(Z,V),ys(y,this,Z)})}function Pl(y,C,P){var V=!0,Z=!0;if(typeof y!="function")throw new Ss(i);return wr(P)&&(V="leading"in P?!!P.leading:V,Z="trailing"in P?!!P.trailing:Z),ly(y,C,{leading:V,maxWait:C,trailing:Z})}function aa(y){return oy(y,1)}function uh(y,C){return fd(hm(C),y)}function vC(){if(!arguments.length)return[];var y=arguments[0];return sn(y)?y:[y]}function _S(y){return Fo(y,v)}function TS(y,C){return C=typeof C=="function"?C:n,Fo(y,v,C)}function ES(y){return Fo(y,h|v)}function kS(y,C){return C=typeof C=="function"?C:n,Fo(y,h|v,C)}function bC(y,C){return C==null||xl(y,C,po(C))}function As(y,C){return y===C||y!==y&&C!==C}var MS=Uf(Df),jS=Uf(function(y,C){return y>=C}),Lc=Xo((function(){return arguments})())?Xo:function(y){return Ir(y)&&qn.call(y,"callee")&&!xf.call(y,"callee")},sn=Re.isArray,fy=ib?bs(ib):Fr;function os(y){return y!=null&&zm(y.length)&&!Rs(y)}function Ur(y){return Ir(y)&&os(y)}function dh(y){return y===!0||y===!1||Ir(y)&&xo(y)==de}var Nl=Eb||Me,DS=ab?bs(ab):sm;function Mn(y){return Ir(y)&&y.nodeType===1&&!hh(y)}function hy(y){if(y==null)return!0;if(os(y)&&(sn(y)||typeof y=="string"||typeof y.splice=="function"||Nl(y)||Il(y)||Lc(y)))return!y.length;var C=Co(y);if(C==De||C==mt)return!y.size;if(od(y))return!Tl(y).length;for(var P in y)if(qn.call(y,P))return!1;return!0}function Lm(y,C){return Ts(y,C)}function py(y,C,P){P=typeof P=="function"?P:n;var V=P?P(y,C):n;return V===n?Ts(y,C,n,P):!!V}function Fm(y){if(!Ir(y))return!1;var C=xo(y);return C==Te||C==fe||typeof y.message=="string"&&typeof y.name=="string"&&!hh(y)}function my(y){return typeof y=="number"&&ws(y)}function Rs(y){if(!wr(y))return!1;var C=xo(y);return C==we||C==_e||C==oe||C==ot}function fh(y){return typeof y=="number"&&y==Wt(y)}function zm(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=z}function wr(y){var C=typeof y;return y!=null&&(C=="object"||C=="function")}function Ir(y){return y!=null&&typeof y=="object"}var AS=Pp?bs(Pp):Jn;function RS(y,C){return y===C||Pr(y,C,Sm(C))}function OS(y,C,P){return P=typeof P=="function"?P:n,Pr(y,C,Sm(C),P)}function er(y){return yy(y)&&y!=+y}function gy(y){if(L0(y))throw new on(s);return Rf(y)}function _o(y){return y===null}function SC(y){return y==null}function yy(y){return typeof y=="number"||Ir(y)&&xo(y)==Ze}function hh(y){if(!Ir(y)||xo(y)!=Xe)return!1;var C=Ji(y);if(C===null)return!0;var P=qn.call(C,"constructor")&&C.constructor;return typeof P=="function"&&P instanceof P&&Vp.call(P)==Gp}var ph=lb?bs(lb):Qu;function vy(y){return fh(y)&&y>=-z&&y<=z}var mh=cb?bs(cb):Rc;function gh(y){return typeof y=="string"||!sn(y)&&Ir(y)&&xo(y)==bt}function ss(y){return typeof y=="symbol"||Ir(y)&&xo(y)==At}var Il=ub?bs(ub):im;function by(y){return y===n}function wC(y){return Ir(y)&&Co(y)==cn}function PS(y){return Ir(y)&&xo(y)==bn}var xC=Uf(Sr),NS=Uf(function(y,C){return y<=C});function IS(y){if(!y)return[];if(os(y))return gh(y)?Tr(y):zo(y);if(So&&y[So])return Jg(y[So]());var C=Co(y),P=C==De?Up:C==mt?Bp:vd;return P(y)}function Ua(y){if(!y)return y===0?y:0;if(y=Os(y),y===q||y===-q){var C=y<0?-1:1;return C*W}return y===y?y:0}function Wt(y){var C=Ua(y),P=C%1;return C===C?P?C-P:C:0}function Sy(y){return y?Ei(Wt(y),0,G):0}function Os(y){if(typeof y=="number")return y;if(ss(y))return K;if(wr(y)){var C=typeof y.valueOf=="function"?y.valueOf():y;y=wr(C)?C+"":C}if(typeof y!="string")return y===0?y:+y;y=wc(y);var P=Hn.test(y);return P||nn.test(y)?Rp(y.slice(2),P?2:8):fn.test(y)?K:+y}function Um(y){return ni(y,is(y))}function CC(y){return y?Ei(Wt(y),-z,z):y===0?y:0}function Gn(y){return y==null?"":Zo(y)}var $S=El(function(y,C){if(od(C)||os(C)){ni(C,po(C),y);return}for(var P in C)qn.call(C,P)&&Ti(y,P,C[P])}),Bm=El(function(y,C){ni(C,is(C),y)}),hd=El(function(y,C,P,V){ni(C,is(C),y,V)}),_C=El(function(y,C,P,V){ni(C,po(C),y,V)}),ri=oa(Gu);function wy(y,C){var P=bl(y);return C==null?P:a0(P,C)}var LS=gn(function(y,C){y=Wn(y);var P=-1,V=C.length,Z=V>2?C[2]:n;for(Z&&Do(C[0],C[1],Z)&&(V=1);++P<V;)for(var re=C[P],ae=is(re),me=-1,xe=ae.length;++me<xe;){var He=ae[me],qe=y[He];(qe===n||As(qe,Pu[He])&&!qn.call(y,He))&&(y[He]=re[He])}return y}),FS=gn(function(y){return y.push(n,R0),ys(md,n,y)});function zS(y,C){return hb(y,zt(C,3),Mi)}function yh(y,C){return hb(y,zt(C,3),om)}function oi(y,C){return y==null?y:Ac(y,zt(C,3),is)}function US(y,C){return y==null?y:Wu(y,zt(C,3),is)}function Hm(y,C){return y&&Mi(y,zt(C,3))}function Ba(y,C){return y&&om(y,zt(C,3))}function TC(y){return y==null?[]:Ra(y,po(y))}function EC(y){return y==null?[]:Ra(y,is(y))}function $l(y,C,P){var V=y==null?n:ra(y,C);return V===n?P:V}function BS(y,C){return y!=null&&Cm(y,C,_s)}function xy(y,C){return y!=null&&Cm(y,C,ei)}var kC=Ff(function(y,C,P){C!=null&&typeof C.toString!="function"&&(C=Qo.call(C)),y[C]=P},Sd(Bo)),MC=Ff(function(y,C,P){C!=null&&typeof C.toString!="function"&&(C=Qo.call(C)),qn.call(y,C)?y[C].push(P):y[C]=[P]},zt),jC=gn(ti);function po(y){return os(y)?Jp(y):Tl(y)}function is(y){return os(y)?Jp(y,!0):nC(y)}function DC(y,C){var P={};return C=zt(C,3),Mi(y,function(V,Z,re){Cs(P,C(V,Z,re),V)}),P}function HS(y,C){var P={};return C=zt(C,3),Mi(y,function(V,Z,re){Cs(P,Z,C(V,Z,re))}),P}var pd=El(function(y,C,P){Of(y,C,P)}),md=El(function(y,C,P,V){Of(y,C,P,V)}),qS=oa(function(y,C){var P={};if(y==null)return P;var V=!1;C=vr(C,function(re){return re=ks(re,y),V||(V=re.length>1),re}),ni(y,P0(y),P),V&&(P=Fo(P,h|p|v,Yb));for(var Z=C.length;Z--;)Pf(P,C[Z]);return P});function AC(y,C){return yd(y,Im(zt(C)))}var gd=oa(function(y,C){return y==null?{}:d0(y,C)});function yd(y,C){if(y==null)return{};var P=vr(P0(y),function(V){return[V]});return C=zt(C),jo(y,P,function(V,Z){return C(V,Z[0])})}function VS(y,C,P){C=ks(C,y);var V=-1,Z=C.length;for(Z||(Z=1,y=n);++V<Z;){var re=y==null?n:y[Jo(C[V])];re===n&&(V=Z,re=P),y=Rs(re)?re.call(y):re}return y}function qm(y,C,P){return y==null?y:ed(y,C,P)}function Cy(y,C,P,V){return V=typeof V=="function"?V:n,y==null?y:ed(y,C,P,V)}var Vm=D0(po),vh=D0(is);function YS(y,C,P){var V=sn(y),Z=V||Nl(y)||Il(y);if(C=zt(C,4),P==null){var re=y&&y.constructor;Z?P=V?new re:[]:wr(y)?P=Rs(re)?bl(Ji(y)):{}:P={}}return(Z?vs:Mi)(y,function(ae,me,xe){return C(P,ae,me,xe)}),P}function GS(y,C){return y==null?!0:Pf(y,C)}function RC(y,C,P){return y==null?y:y0(y,C,hm(P))}function WS(y,C,P,V){return V=typeof V=="function"?V:n,y==null?y:y0(y,C,hm(P),V)}function vd(y){return y==null?[]:Qg(y,po(y))}function _y(y){return y==null?[]:Qg(y,is(y))}function OC(y,C,P){return P===n&&(P=C,C=n),P!==n&&(P=Os(P),P=P===P?P:0),C!==n&&(C=Os(C),C=C===C?C:0),Ei(Os(y),C,P)}function Ym(y,C,P){return C=Ua(C),P===n?(P=C,C=0):P=Ua(P),y=Os(y),_l(y,C,P)}function Gm(y,C,P){if(P&&typeof P!="boolean"&&Do(y,C,P)&&(C=P=n),P===n&&(typeof C=="boolean"?(P=C,C=n):typeof y=="boolean"&&(P=y,y=n)),y===n&&C===n?(y=0,C=1):(y=Ua(y),C===n?(C=y,y=0):C=Ua(C)),y>C){var V=y;y=C,C=V}if(P||y%1||C%1){var Z=Ma();return Wr(y+Z*(C-y+bc("1e-"+((Z+"").length-1))),C)}return Ju(y,C)}var Wm=Oc(function(y,C,P){return C=C.toLowerCase(),y+(P?QS(C):C)});function QS(y){return Fc(Gn(y).toLowerCase())}function bd(y){return y=Gn(y),y&&y.replace(Mo,Sf).replace(ob,"")}function PC(y,C,P){y=Gn(y),C=Zo(C);var V=y.length;P=P===n?V:Ei(Wt(P),0,V);var Z=P;return P-=C.length,P>=0&&y.slice(P,Z)==C}function KS(y){return y=Gn(y),y&&vt.test(y)?y.replace(Sn,W5):y}function XS(y){return y=Gn(y),y&&ce.test(y)?y.replace(le,"\\$&"):y}var ZS=Oc(function(y,C,P){return y+(P?"-":"")+C.toLowerCase()}),JS=Oc(function(y,C,P){return y+(P?" ":"")+C.toLowerCase()}),Ty=M0("toLowerCase");function e3(y,C,P){y=Gn(y),C=Wt(C);var V=C?Au(y):0;if(!C||V>=C)return y;var Z=(C-V)/2;return kl(Cf(Z),P)+y+kl($u(Z),P)}function t3(y,C,P){y=Gn(y),C=Wt(C);var V=C?Au(y):0;return C&&V<C?y+kl(C-V,P):y}function Qm(y,C,P){y=Gn(y),C=Wt(C);var V=C?Au(y):0;return C&&V<C?kl(C-V,P)+y:y}function NC(y,C,P){return P||C==null?C=0:C&&(C=+C),Ws(Gn(y).replace(ye,""),C||0)}function IC(y,C,P){return(P?Do(y,C,P):C===n)?C=1:C=Wt(C),ji(Gn(y),C)}function Ey(){var y=arguments,C=Gn(y[0]);return y.length<3?C:C.replace(y[1],y[2])}var ky=Oc(function(y,C,P){return y+(P?"_":"")+C.toLowerCase()});function Km(y,C,P){return P&&typeof P!="number"&&Do(y,C,P)&&(C=P=n),P=P===n?G:P>>>0,P?(y=Gn(y),y&&(typeof C=="string"||C!=null&&!ph(C))&&(C=Zo(C),!C&&xc(y))?Di(Tr(y),0,P):y.split(C,P)):[]}var My=Oc(function(y,C,P){return y+(P?" ":"")+Fc(C)});function n3(y,C,P){return y=Gn(y),P=P==null?0:Ei(Wt(P),0,y.length),C=Zo(C),y.slice(P,P+C.length)==C}function jy(y,C,P){var V=te.templateSettings;P&&Do(y,C,P)&&(C=n),y=Gn(y),C=hd({},C,V,A0);var Z=hd({},C.imports,V.imports,A0),re=po(Z),ae=Qg(Z,re),me,xe,He=0,qe=C.interpolate||Io,We="__p += '",dt=Hp((C.escape||Io).source+"|"+qe.source+"|"+(qe===Yt?ut:Io).source+"|"+(C.evaluate||Io).source+"|$","g"),Rt="//# sourceURL="+(qn.call(C,"sourceURL")?(C.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++qg+"]")+`
`;y.replace(dt,function(Kt,Nn,Ln,Ni,Ps,Ii){return Ln||(Ln=Ni),We+=y.slice(He,Ii).replace($o,zp),Nn&&(me=!0,We+=`' +
__e(`+Nn+`) +
'`),Ps&&(xe=!0,We+=`';
`+Ps+`;
__p += '`),Ln&&(We+=`' +
((__t = (`+Ln+`)) == null ? '' : __t) +
'`),He=Ii+Kt.length,Kt}),We+=`';
`;var Qt=qn.call(C,"variable")&&C.variable;if(!Qt)We=`with (obj) {
`+We+`
}
`;else if(et.test(Qt))throw new on(l);We=(xe?We.replace(St,""):We).replace(gt,"$1").replace(Ut,"$1;"),We="function("+(Qt||"obj")+`) {
`+(Qt?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(me?", __e = _.escape":"")+(xe?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+We+`return __p
}`;var Cn=Dy(function(){return En(re,Rt+"return "+We).apply(n,ae)});if(Cn.source=We,Fm(Cn))throw Cn;return Cn}function Ll(y){return Gn(y).toLowerCase()}function Fl(y){return Gn(y).toUpperCase()}function zl(y,C,P){if(y=Gn(y),y&&(P||C===n))return wc(y);if(!y||!(C=Zo(C)))return y;var V=Tr(y),Z=Tr(C),re=Kg(V,Z),ae=Xg(V,Z)+1;return Di(V,re,ae).join("")}function bh(y,C,P){if(y=Gn(y),y&&(P||C===n))return y.slice(0,Ru(y)+1);if(!y||!(C=Zo(C)))return y;var V=Tr(y),Z=Xg(V,Tr(C))+1;return Di(V,0,Z).join("")}function Sh(y,C,P){if(y=Gn(y),y&&(P||C===n))return y.replace(ye,"");if(!y||!(C=Zo(C)))return y;var V=Tr(y),Z=Kg(V,Tr(C));return Di(V,Z).join("")}function Ul(y,C){var P=I,V=L;if(wr(C)){var Z="separator"in C?C.separator:Z;P="length"in C?Wt(C.length):P,V="omission"in C?Zo(C.omission):V}y=Gn(y);var re=y.length;if(xc(y)){var ae=Tr(y);re=ae.length}if(P>=re)return y;var me=P-Au(V);if(me<1)return V;var xe=ae?Di(ae,0,me).join(""):y.slice(0,me);if(Z===n)return xe+V;if(ae&&(me+=xe.length-me),ph(Z)){if(y.slice(me).search(Z)){var He,qe=xe;for(Z.global||(Z=Hp(Z.source,Gn(Vt.exec(Z))+"g")),Z.lastIndex=0;He=Z.exec(qe);)var We=He.index;xe=xe.slice(0,We===n?me:We)}}else if(y.indexOf(Zo(Z),me)!=me){var dt=xe.lastIndexOf(Z);dt>-1&&(xe=xe.slice(0,dt))}return xe+V}function $C(y){return y=Gn(y),y&&Je.test(y)?y.replace(Ot,vb):y}var r3=Oc(function(y,C,P){return y+(P?" ":"")+C.toUpperCase()}),Fc=M0("toUpperCase");function o3(y,C,P){return y=Gn(y),C=P?n:C,C===n?Zg(y)?wb(y):Y5(y):y.match(C)||[]}var Dy=gn(function(y,C){try{return ys(y,n,C)}catch(P){return Fm(P)?P:new on(P)}}),Xm=oa(function(y,C){return vs(C,function(P){P=Jo(P),Cs(y,P,Nm(y[P],y))}),y});function s3(y){var C=y==null?0:y.length,P=zt();return y=C?vr(y,function(V){if(typeof V[1]!="function")throw new Ss(i);return[P(V[0]),V[1]]}):[],gn(function(V){for(var Z=-1;++Z<C;){var re=y[Z];if(ys(re[0],this,V))return ys(re[1],this,V)}})}function LC(y){return Rb(Fo(y,h))}function Sd(y){return function(){return y}}function Zm(y,C){return y==null||y!==y?C:y}var i3=nd(),wd=nd(!0);function Bo(y){return y}function wh(y){return Ku(typeof y=="function"?y:Fo(y,h))}function Jm(y){return lm(Fo(y,h))}function a3(y,C){return u0(y,Fo(C,h))}var FC=gn(function(y,C){return function(P){return ti(P,y,C)}}),e1=gn(function(y,C){return function(P){return ti(y,P,C)}});function a(y,C,P){var V=po(C),Z=Ra(C,V);P==null&&!(wr(C)&&(Z.length||!V.length))&&(P=C,C=y,y=this,Z=Ra(C,po(C)));var re=!(wr(P)&&"chain"in P)||!!P.chain,ae=Rs(y);return vs(Z,function(me){var xe=C[me];y[me]=xe,ae&&(y.prototype[me]=function(){var He=this.__chain__;if(re||He){var qe=y(this.__wrapped__),We=qe.__actions__=zo(this.__actions__);return We.push({func:xe,args:arguments,thisArg:y}),qe.__chain__=He,qe}return xe.apply(y,ml([this.value()],arguments))})}),y}function u(){return so._===this&&(so._=Vs),this}function m(){}function x(y){return y=Wt(y),gn(function(C){return cm(C,y)})}var O=gm(vr),$=gm(db),Q=gm(Yg);function ee(y){return Wf(y)?Sc(Jo(y)):zr(y)}function ue(y){return function(C){return y==null?n:ra(y,C)}}var ke=ym(),Fe=ym(!0);function Be(){return[]}function Me(){return!1}function Oe(){return{}}function xt(){return""}function Bt(){return!0}function tr(y,C){if(y=Wt(y),y<1||y>z)return[];var P=G,V=Wr(y,G);C=zt(C),y-=G;for(var Z=Fp(V,C);++P<y;)C(P);return Z}function Se(y){return sn(y)?vr(y,Jo):ss(y)?[y]:zo(U0(Gn(y)))}function ge(y){var C=++Cb;return Gn(y)+C}var Ee=zf(function(y,C){return y+C},0),Ue=Bf("ceil"),Nt=zf(function(y,C){return y/C},1),Un=Bf("floor");function kt(y){return y&&y.length?ki(y,Bo,Df):n}function vn(y,C){return y&&y.length?ki(y,zt(C,2),Df):n}function An(y){return $p(y,Bo)}function Bn(y,C){return $p(y,zt(C,2))}function Bl(y){return y&&y.length?ki(y,Bo,Sr):n}function zC(y,C){return y&&y.length?ki(y,zt(C,2),Sr):n}var gH=zf(function(y,C){return y*C},1),yH=Bf("round"),vH=zf(function(y,C){return y-C},0);function bH(y){return y&&y.length?Lp(y,Bo):0}function SH(y,C){return y&&y.length?Lp(y,zt(C,2)):0}return te.after=CS,te.ary=oy,te.assign=$S,te.assignIn=Bm,te.assignInWith=hd,te.assignWith=_C,te.at=ri,te.before=sy,te.bind=Nm,te.bindAll=Xm,te.bindKey=iy,te.castArray=vC,te.chain=oh,te.chunk=eS,te.compact=B0,te.concat=H0,te.cond=s3,te.conforms=LC,te.constant=Sd,te.countBy=hS,te.create=wy,te.curry=lh,te.curryRight=ay,te.debounce=ly,te.defaults=LS,te.defaultsDeep=FS,te.defer=Kn,te.delay=cy,te.difference=Mm,te.differenceBy=tS,te.differenceWith=Ia,te.drop=Xr,te.dropRight=q0,te.dropRightWhile=nS,te.dropWhile=ho,te.fill=lC,te.filter=ty,te.flatMap=rs,te.flatMapDeep=mS,te.flatMapDepth=gS,te.flatten=mr,te.flattenDeep=es,te.flattenDepth=$a,te.flip=mC,te.flow=i3,te.flowRight=wd,te.fromPairs=rS,te.functions=TC,te.functionsIn=EC,te.groupBy=Rm,te.initial=cC,te.intersection=jm,te.intersectionBy=ts,te.intersectionWith=Ri,te.invert=kC,te.invertBy=MC,te.invokeMap=ud,te.iteratee=wh,te.keyBy=vS,te.keys=po,te.keysIn=is,te.map=ih,te.mapKeys=DC,te.mapValues=HS,te.matches=Jm,te.matchesProperty=a3,te.memoize=ch,te.merge=pd,te.mergeWith=md,te.method=FC,te.methodOf=e1,te.mixin=a,te.negate=Im,te.nthArg=x,te.omit=qS,te.omitBy=AC,te.once=gC,te.orderBy=bS,te.over=O,te.overArgs=yC,te.overEvery=$,te.overSome=Q,te.partial=fd,te.partialRight=$c,te.partition=SS,te.pick=gd,te.pickBy=yd,te.property=ee,te.propertyOf=ue,te.pull=Pc,te.pullAll=ia,te.pullAllBy=W0,te.pullAllWith=Q0,te.pullAt=Oi,te.range=ke,te.rangeRight=Fe,te.rearg=uy,te.reject=fC,te.remove=aS,te.rest=$m,te.reverse=jl,te.sampleSize=pC,te.set=qm,te.setWith=Cy,te.shuffle=wS,te.slice=eh,te.sortBy=Pm,te.sortedUniq=Dm,te.sortedUniqBy=dS,te.split=Km,te.spread=dy,te.tail=uC,te.take=dC,te.takeRight=Vn,te.takeRightWhile=sr,te.takeWhile=kn,te.tap=fS,te.throttle=Pl,te.thru=Ic,te.toArray=IS,te.toPairs=Vm,te.toPairsIn=vh,te.toPath=Se,te.toPlainObject=Um,te.transform=YS,te.unary=aa,te.union=Dn,te.unionBy=Qn,te.unionWith=Ms,te.uniq=Dl,te.uniqBy=ad,te.uniqWith=K0,te.unset=GS,te.unzip=Pi,te.unzipWith=kr,te.update=RC,te.updateWith=WS,te.values=vd,te.valuesIn=_y,te.without=Al,te.words=o3,te.wrap=uh,te.xor=Nc,te.xorBy=X0,te.xorWith=js,te.zip=ld,te.zipObject=rh,te.zipObjectDeep=ns,te.zipWith=Z0,te.entries=Vm,te.entriesIn=vh,te.extend=Bm,te.extendWith=hd,a(te,te),te.add=Ee,te.attempt=Dy,te.camelCase=Wm,te.capitalize=QS,te.ceil=Ue,te.clamp=OC,te.clone=_S,te.cloneDeep=ES,te.cloneDeepWith=kS,te.cloneWith=TS,te.conformsTo=bC,te.deburr=bd,te.defaultTo=Zm,te.divide=Nt,te.endsWith=PC,te.eq=As,te.escape=KS,te.escapeRegExp=XS,te.every=sh,te.find=Ds,te.findIndex=V0,te.findKey=zS,te.findLast=pS,te.findLastIndex=Y0,te.findLastKey=yh,te.floor=Un,te.forEach=yS,te.forEachRight=za,te.forIn=oi,te.forInRight=US,te.forOwn=Hm,te.forOwnRight=Ba,te.get=$l,te.gt=MS,te.gte=jS,te.has=BS,te.hasIn=xy,te.head=G0,te.identity=Bo,te.includes=ny,te.indexOf=oS,te.inRange=Ym,te.invoke=jC,te.isArguments=Lc,te.isArray=sn,te.isArrayBuffer=fy,te.isArrayLike=os,te.isArrayLikeObject=Ur,te.isBoolean=dh,te.isBuffer=Nl,te.isDate=DS,te.isElement=Mn,te.isEmpty=hy,te.isEqual=Lm,te.isEqualWith=py,te.isError=Fm,te.isFinite=my,te.isFunction=Rs,te.isInteger=fh,te.isLength=zm,te.isMap=AS,te.isMatch=RS,te.isMatchWith=OS,te.isNaN=er,te.isNative=gy,te.isNil=SC,te.isNull=_o,te.isNumber=yy,te.isObject=wr,te.isObjectLike=Ir,te.isPlainObject=hh,te.isRegExp=ph,te.isSafeInteger=vy,te.isSet=mh,te.isString=gh,te.isSymbol=ss,te.isTypedArray=Il,te.isUndefined=by,te.isWeakMap=wC,te.isWeakSet=PS,te.join=sS,te.kebabCase=ZS,te.last=gr,te.lastIndexOf=iS,te.lowerCase=JS,te.lowerFirst=Ty,te.lt=xC,te.lte=NS,te.max=kt,te.maxBy=vn,te.mean=An,te.meanBy=Bn,te.min=Bl,te.minBy=zC,te.stubArray=Be,te.stubFalse=Me,te.stubObject=Oe,te.stubString=xt,te.stubTrue=Bt,te.multiply=gH,te.nth=La,te.noConflict=u,te.noop=m,te.now=ah,te.pad=e3,te.padEnd=t3,te.padStart=Qm,te.parseInt=NC,te.random=Gm,te.reduce=Om,te.reduceRight=ry,te.repeat=IC,te.replace=Ey,te.result=VS,te.round=yH,te.runInContext=ve,te.sample=hC,te.size=xS,te.snakeCase=ky,te.some=dd,te.sortedIndex=th,te.sortedIndexBy=id,te.sortedIndexOf=lS,te.sortedLastIndex=cS,te.sortedLastIndexBy=nh,te.sortedLastIndexOf=uS,te.startCase=My,te.startsWith=n3,te.subtract=vH,te.sum=bH,te.sumBy=SH,te.template=jy,te.times=tr,te.toFinite=Ua,te.toInteger=Wt,te.toLength=Sy,te.toLower=Ll,te.toNumber=Os,te.toSafeInteger=CC,te.toString=Gn,te.toUpper=Fl,te.trim=zl,te.trimEnd=bh,te.trimStart=Sh,te.truncate=Ul,te.unescape=$C,te.uniqueId=ge,te.upperCase=r3,te.upperFirst=Fc,te.each=yS,te.eachRight=za,te.first=G0,a(te,(function(){var y={};return Mi(te,function(C,P){qn.call(te.prototype,P)||(y[P]=C)}),y})(),{chain:!1}),te.VERSION=r,vs(["bind","bindKey","curry","curryRight","partial","partialRight"],function(y){te[y].placeholder=te}),vs(["drop","take"],function(y,C){pn.prototype[y]=function(P){P=P===n?1:Or(Wt(P),0);var V=this.__filtered__&&!C?new pn(this):this.clone();return V.__filtered__?V.__takeCount__=Wr(P,V.__takeCount__):V.__views__.push({size:Wr(P,G),type:y+(V.__dir__<0?"Right":"")}),V},pn.prototype[y+"Right"]=function(P){return this.reverse()[y](P).reverse()}}),vs(["filter","map","takeWhile"],function(y,C){var P=C+1,V=P==B||P==U;pn.prototype[y]=function(Z){var re=this.clone();return re.__iteratees__.push({iteratee:zt(Z,3),type:P}),re.__filtered__=re.__filtered__||V,re}}),vs(["head","last"],function(y,C){var P="take"+(C?"Right":"");pn.prototype[y]=function(){return this[P](1).value()[0]}}),vs(["initial","tail"],function(y,C){var P="drop"+(C?"":"Right");pn.prototype[y]=function(){return this.__filtered__?new pn(this):this[P](1)}}),pn.prototype.compact=function(){return this.filter(Bo)},pn.prototype.find=function(y){return this.filter(y).head()},pn.prototype.findLast=function(y){return this.reverse().find(y)},pn.prototype.invokeMap=gn(function(y,C){return typeof y=="function"?new pn(this):this.map(function(P){return ti(P,y,C)})}),pn.prototype.reject=function(y){return this.filter(Im(zt(y)))},pn.prototype.slice=function(y,C){y=Wt(y);var P=this;return P.__filtered__&&(y>0||C<0)?new pn(P):(y<0?P=P.takeRight(-y):y&&(P=P.drop(y)),C!==n&&(C=Wt(C),P=C<0?P.dropRight(-C):P.take(C-y)),P)},pn.prototype.takeRightWhile=function(y){return this.reverse().takeWhile(y).reverse()},pn.prototype.toArray=function(){return this.take(G)},Mi(pn.prototype,function(y,C){var P=/^(?:filter|find|map|reject)|While$/.test(C),V=/^(?:head|last)$/.test(C),Z=te[V?"take"+(C=="last"?"Right":""):C],re=V||/^find/.test(C);Z&&(te.prototype[C]=function(){var ae=this.__wrapped__,me=V?[1]:arguments,xe=ae instanceof pn,He=me[0],qe=xe||sn(ae),We=function(Nn){var Ln=Z.apply(te,ml([Nn],me));return V&&dt?Ln[0]:Ln};qe&&P&&typeof He=="function"&&He.length!=1&&(xe=qe=!1);var dt=this.__chain__,Rt=!!this.__actions__.length,Qt=re&&!dt,Cn=xe&&!Rt;if(!re&&qe){ae=Cn?ae:new pn(this);var Kt=y.apply(ae,me);return Kt.__actions__.push({func:Ic,args:[We],thisArg:n}),new Ko(Kt,dt)}return Qt&&Cn?y.apply(this,me):(Kt=this.thru(We),Qt?V?Kt.value()[0]:Kt.value():Kt)})}),vs(["pop","push","shift","sort","splice","unshift"],function(y){var C=wf[y],P=/^(?:push|sort|unshift)$/.test(y)?"tap":"thru",V=/^(?:pop|shift)$/.test(y);te.prototype[y]=function(){var Z=arguments;if(V&&!this.__chain__){var re=this.value();return C.apply(sn(re)?re:[],Z)}return this[P](function(ae){return C.apply(sn(ae)?ae:[],Z)})}}),Mi(pn.prototype,function(y,C){var P=te[C];if(P){var V=P.name+"";qn.call(Yn,V)||(Yn[V]=[]),Yn[V].push({name:C,func:P})}}),Yn[rd(n,_).name]=[{name:"wrapper",func:n}],pn.prototype.clone=ja,pn.prototype.reverse=wl,pn.prototype.value=Da,te.prototype.at=Am,te.prototype.chain=Rl,te.prototype.commit=ao,te.prototype.next=Ol,te.prototype.plant=Fa,te.prototype.reverse=J0,te.prototype.toJSON=te.prototype.valueOf=te.prototype.value=ey,te.prototype.first=te.prototype.head,So&&(te.prototype[So]=cd),te}),Ou=t0();xi?((xi.exports=Ou)._=Ou,mf._=Ou):so._=Ou}).call($we)})(sv,sv.exports)),sv.exports}var q6=Lwe();const nr=Ki({reducerPath:"collectionsApi",baseQuery:Xi("/api"),tagTypes:["Collection","Columns","Row"],endpoints:t=>({getCollectionById:t.query({query:({id:e})=>({url:"/v1/FlexibleTable/Get",method:"POST",body:{FlexibleTableRequestIncludeAcccessType:ai.IncludeAcccessType.ProjectLinks,ids:[e]}}),providesTags:(e,n,{id:r})=>[{type:"Collection",id:r}],transformResponse:e=>e[0]}),getCollectionsByProjectId:t.query({query:({projectId:e})=>({url:`/v1/FlexibleTable/GetByProjectId?projectId=${e}`,method:"GET"}),providesTags:e=>(e||[]).map(n=>({type:"Collection",id:n.Id}))}),getDeletedCollections:t.query({query:()=>({url:"/v1/FlexibleTable/Get",method:"POST",body:{status:ai.CollectionTableStatus.Deleted,FlexibleTableRequestIncludeAcccessType:ai.IncludeAcccessType.ProjectLinks,requestType:ai.CollectionTableRequestType.ProjectIds}}),providesTags:["Collection"]}),createCollection:t.mutation({async queryFn(e,n,r,o){const s=await o({url:"/v1/FlexibleTable",method:"POST",body:e});if("data"in s){const i=s.data;if(i&&typeof i=="object"&&i.Status==="Error")return{error:{status:i.ErrorCode??400,data:i}}}return s},invalidatesTags:()=>["Collection"],async onQueryStarted(e,{queryFulfilled:n}){try{await n}catch(r){const o=r==null?void 0:r.error,s=o==null?void 0:o.data,l=((o==null?void 0:o.status)??(s==null?void 0:s.ErrorCode))===409?"notification.error.collectionAlreadyExists":"notification.error.unexpected";ds({message:jt(l)})}}}),getNormalizeCollections:t.query({query:e=>({url:"/v1/FlexibleTable/Get",method:"POST",body:{requestType:ai.CollectionTableRequestType.ProjectIds,FlexibleTableRequestIncludeAcccessType:ai.IncludeAcccessType.ProjectLinks,...e}}),transformResponse(e){return Hme(e)},providesTags:e=>{const n=ZF(e);return[{type:"Collection",id:"LIST"},...(n||[]).map(r=>({type:"Collection",id:r.Id}))]}}),getCollectionLinksByProjectId:t.query({query:({projectId:e})=>({url:`/v1/ProjectFlexibleTableLink/GetByProjectId?projectId=${e}`,method:"GET"})}),updateCollection:t.mutation({query:e=>({url:"/v1/FlexibleTable",method:"POST",body:e}),invalidatesTags:(e,n,r)=>n?[]:[{type:"Collection",id:r.id}],async onQueryStarted(e,{dispatch:n,queryFulfilled:r,getState:o}){const s=[];nr.util.selectInvalidatedBy(o(),[{type:"Collection",id:e.id}]).forEach(l=>{switch(l.endpointName){case"getNormalizeCollections":{const c=n(nr.util.updateQueryData("getNormalizeCollections",l.originalArgs,d=>{for(const f in d){const h=d[f],p=h.findIndex(v=>v.Id===e.id);p!==-1&&(e.name!==void 0&&(h[p].Name=e.name),e.color!==void 0&&(h[p].Color=e.color))}}));s.push(c);break}case"getCollectionsByProjectId":{const c=n(nr.util.updateQueryData("getCollectionsByProjectId",l.originalArgs,d=>{const f=d.findIndex(h=>h.Id===e.id);f!==-1&&(e.name!==void 0&&(d[f].Name=e.name),e.color!==void 0&&(d[f].Color=e.color))}));s.push(c);break}case"getCollectionById":{const c=n(nr.util.updateQueryData("getCollectionById",l.originalArgs,d=>{e.name!==void 0&&(d.Name=e.name),e.color!==void 0&&(d.Color=e.color)}));s.push(c);break}}});try{await r}catch{s.forEach(l=>l.undo())}}}),changeCollectionStatus:t.mutation({query:e=>({url:`/v1/FlexibleTable/ChangeStatus${ur.stringify(e,{addQueryPrefix:!0})}`,method:"PUT"}),invalidatesTags:(e,n,r)=>n?[]:[{type:"Collection",id:r.id}]}),clearCollectionsTrash:t.mutation({query:()=>({url:"/v1/FlexibleTable/ClearTrash",method:"DELETE"}),async onQueryStarted(e,{dispatch:n,queryFulfilled:r,getState:o}){const s=nr.util.selectInvalidatedBy(o(),["Collection"]).filter(i=>i.endpointName==="getDeletedCollections").map(i=>n(nr.util.updateQueryData("getDeletedCollections",i.originalArgs,l=>{for(let c=l.length-1;c>=0;c--)l[c].AccessType===Ie.AccessType.Full&&l.splice(c,1)})));try{await r}catch{s.forEach(i=>i.undo())}}}),deleteCollections:t.mutation({query:e=>({url:"/v1/FlexibleTable",method:"DELETE",body:e}),invalidatesTags:(e,n)=>n?[]:["Collection"],async onQueryStarted(e,{dispatch:n,queryFulfilled:r}){try{await r,n(wt.util.invalidateTags(["Attribute"])),n(Ct.util.invalidateTags(["Task"]))}catch{}}}),changeCollectionsStatus:t.mutation({query:({ids:e,status:n})=>({url:`/v1/FlexibleTable/ChangeStatus${ur.stringify({status:n},{addQueryPrefix:!0})}`,method:"PUT",body:{ids:e}}),invalidatesTags:(e,n)=>n?[]:["Collection"],async onQueryStarted(e,{dispatch:n,queryFulfilled:r}){try{await r,n(wt.util.invalidateTags(["Attribute"])),n(Ct.util.invalidateTags(["Task"]))}catch{}}}),getColumns:t.query({query:e=>({url:`/v1/FlexibleTableField/GetByTable?tableId=${e}`,method:"GET"}),transformResponse(e){return Fs(e||[],"Order")},providesTags:(e,n,r)=>[{type:"Columns",id:"LIST"},{type:"Columns",id:`TABLE-${r}`},...(e||[]).map(o=>({type:"Columns",id:o.Id}))]}),createColumns:t.mutation({query:({items:e})=>({url:"/v1/FlexibleTableField",method:"POST",body:e}),invalidatesTags:(e,n,r)=>[{type:"Columns",id:`TABLE-${r.items[0].tableId}`}],async onQueryStarted({items:e,index:n},{dispatch:r,queryFulfilled:o}){const s=e[0].tableId,i=r(nr.util.updateQueryData("getColumns",s,l=>{l.splice(n,0,...e.map(c=>_8({...c,id:Iwe()})))}));try{const{data:l}=await o;r(nr.util.updateQueryData("getColumns",s,c=>{l.forEach(d=>{const f=c.find(h=>q6.isEqual(q6.omit(d,"Id"),q6.omit(h,"Id")));f&&(f.Id=d.Id)})}))}catch{i.undo()}}}),changeColumnOrder:t.mutation({query:e=>({url:"/v1/FlexibleTableField/Order",method:"PUT",body:e}),invalidatesTags:(e,n,r)=>[{type:"Columns",id:`TABLE-${r.tableId}`}]}),updateColumns:t.mutation({query:e=>({url:"/v1/FlexibleTableField",method:"POST",body:e}),invalidatesTags:(e,n,r)=>[{type:"Columns",id:`TABLE-${r[0].TableId}`},"Row"],async onQueryStarted(e,{dispatch:n,queryFulfilled:r}){const o=e[0].TableId,s=n(nr.util.updateQueryData("getColumns",o,i=>{for(const l of e){const c=i.find(d=>d.Id===l.Id);c&&(l.Name!==void 0&&(c.Name=l.Name),l.Order!==void 0&&(c.Order=l.Order))}i.sort((l,c)=>l.Order-c.Order)}));try{await r}catch{s.undo()}}}),deleteColumn:t.mutation({query:e=>({url:"/v1/FlexibleTableField",method:"DELETE",body:e}),invalidatesTags:(e,n,r)=>[{type:"Columns",id:`TABLE-${r.tableId}`},"Row"],async onQueryStarted({ids:e,tableId:n},{dispatch:r,queryFulfilled:o}){const s=r(nr.util.updateQueryData("getColumns",n,i=>{e.forEach(l=>{const c=i.findIndex(d=>d.Id===l);i.splice(c,1)}),i.forEach((l,c)=>{l.Order=c})}));try{await o}catch{s.undo()}}}),getRows:t.query({query:e=>({url:"/v1/FlexibleTable/Items",method:"POST",body:e}),transformResponse(e){return{...e,Items:e.Items.sort((n,r)=>(n.Order??0)-(r.Order??0))}},providesTags:e=>["Row",...((e==null?void 0:e.Items)||[]).map(n=>({type:"Row",id:n.Id}))]}),createRows:t.mutation({query:e=>({url:"/v1/FlexibleTableEntity",method:"POST",body:e}),invalidatesTags:["Row"]}),updateRows:t.mutation({query:e=>({url:"/v1/FlexibleTableEntity",method:"POST",body:e}),invalidatesTags:["Row"]}),deleteRow:t.mutation({query:e=>({url:"/v1/FlexibleTableEntity",method:"DELETE",body:e}),invalidatesTags:(e,n,r)=>r.map(o=>({type:"Row",id:o}))}),linkCollection:t.mutation({query:e=>({url:"/v1/ProjectFlexibleTableLink",method:"POST",body:e})}),changeCollectionOrder:t.mutation({query:e=>({url:"/v1/ProjectFlexibleTableLink/Order",method:"PUT",body:e}),invalidatesTags:["Collection"]})})});function _8(t){return Array.isArray(t)?t.map(_8):t!==null&&typeof t=="object"?Object.fromEntries(Object.entries(t).map(([e,n])=>[e.charAt(0).toUpperCase()+e.slice(1),_8(n)])):t}const Hh=Ki({reducerPath:"genericViewApi",baseQuery:Xi("/api"),tagTypes:["Generic"],endpoints:t=>({getView:t.query({query:e=>({url:`/v1/GenericView?${ur.stringify(e)}`,method:"GET"}),providesTags:["Generic"]}),updateView:t.mutation({query:e=>({url:"/v1/GenericView",method:"POST",body:e}),invalidatesTags:["Generic"],onQueryStarted:async(e,{dispatch:n,queryFulfilled:r,getState:o})=>{const i=Hh.util.selectCachedArgsForQuery(o(),"getView").map(l=>n(Hh.util.updateQueryData("getView",l,c=>{const d=c.find(f=>f.EntityId===e.EntityId);d&&(d.Value=e.Value)})));try{await r}catch{i.forEach(l=>l.undo())}}})})}),V6=Ki({reducerPath:"iconsApi",baseQuery:Xi(""),endpoints:t=>({getList:t.query({query:()=>({url:"https://unpkg.com/@tabler/icons@3.0.1/icons.json",method:"GET"})})})});var mO;(t=>{(e=>{e[e.Relates=0]="Relates",e[e.BlockedBy=1]="BlockedBy",e[e.Blocks=2]="Blocks",e[e.Duplicates=3]="Duplicates",e[e.StartBlocksStart=4]="StartBlocksStart",e[e.FinishBlocksFinish=5]="FinishBlocksFinish",e[e.StartBlockedStart=6]="StartBlockedStart",e[e.FinishBlockedFinish=7]="FinishBlockedFinish",e[e.StartBlocksFinish=8]="StartBlocksFinish",e[e.FinishBlockedStart=9]="FinishBlockedStart"})(t.LinkType||(t.LinkType={}))})(mO||(mO={}));const tu=Ki({reducerPath:"tasksLinksApi",baseQuery:Xi("/api"),tagTypes:["Link","Task"],endpoints:t=>({createLink:t.mutation({query:e=>({url:"/v1/ProjectTaskLinks/Bulk",method:"POST",body:e}),invalidatesTags:e=>e?ha([...e.map(r=>r.FromId),...e.map(r=>r.ToId)]).map(r=>({type:"Task",id:r})):[]}),getLinks:t.query({query:e=>({url:"/v1/ProjectTaskLinks/GetLinks",method:"POST",body:e}),providesTags:(e,n,r)=>{if(!e)return[];const o=r.ids.map(s=>({type:"Task",id:s}));return e.reduce((s,i)=>(s.push({type:"Task",id:i.FromId},{type:"Task",id:i.ToId},{type:"Link",id:i.Id}),s),o)}}),deleteLink:t.mutation({query:e=>({url:`/v1/ProjectTaskLinks?id=${e.Id}`,method:"DELETE",body:e}),invalidatesTags:(e,n,r)=>[{type:"Link",id:r.Id}],onQueryStarted:async(e,{dispatch:n,queryFulfilled:r,getState:o})=>{const i=tu.util.selectCachedArgsForQuery(o(),"getLinks").map(l=>n(tu.util.updateQueryData("getLinks",l,c=>{for(let d=0;d<c.length;d++)if(c[d].Id===e.Id){c.splice(d,1);break}})));try{await r}catch{i.forEach(l=>l.undo())}}})})}),da=Ki({reducerPath:"shareApi",baseQuery:Xi("/api"),tagTypes:["Access"],endpoints:t=>({get:t.query({query:e=>({url:`/v1/Share?${ur.stringify(e)}`,method:"GET"}),providesTags:(e,n,r)=>[...(e==null?void 0:e.UserAccessRights.map(o=>({type:"Access",id:o.PrincipalId})))||[],{type:"Access",id:`entity_${r.entityId}`}]}),remove:t.mutation({query:e=>({url:`/v1/Share/Delete?${ur.stringify(e)}`,method:"DELETE"}),invalidatesTags:(e,n,r)=>[{type:"Access",id:r.userId}],async onQueryStarted({entityId:e,userId:n},{dispatch:r,queryFulfilled:o,getState:s}){const i=s(),l=r(da.util.updateQueryData("get",da.util.selectCachedArgsForQuery(i,"get").at(-1),d=>{H3e(d.UserAccessRights,f=>f.EntityId===e&&f.PrincipalId===n)})),c=r(wt.util.updateQueryData("getProjects",void 0,d=>{const f=d.folderEntities[e],h=Q3e(f.UserIds,n);T8(f,h)}));try{await o,x8({message:jt("notification.success.deleteUser")})}catch{ds({message:jt("notification.error.deleteUser")}),l.undo(),c.undo()}}}),give:t.mutation({query:e=>({url:`/v1/Share?${ur.stringify(e)}`,method:"POST",body:e}),invalidatesTags:e=>(e==null?void 0:e.Ids.map(n=>({type:"Access",id:`entity_${n}`})))||[],async onQueryStarted({userIds:e,type:n,ids:r},{dispatch:o,queryFulfilled:s,getState:i}){const l=i(),c=r[0];let d=!1;const f=o(da.util.updateQueryData("get",da.util.selectCachedArgsForQuery(l,"get").at(-1),p=>{e.forEach(v=>{const g=p.UserAccessRights.find(S=>S.PrincipalId===v);g?g.Type=n:(d=!0,p.UserAccessRights.push({EntityId:c,EntityType:Ie.Entity.Project,Kind:1,OwnerId:l.usersCache.currentUser.Id,PrincipalId:v,Type:n}))})})),h=o(wt.util.updateQueryData("getProjects",void 0,p=>{const v=p.folderEntities[c],g=ha([...v.UserIds,...e]);h3e(g,v.UserIds).length&&T8(v,g)}));try{await s;const p=d?jt("notification.success.addUser",{count:e.length}):jt("notification.success.editAccess");x8({message:p})}catch{ds({message:jt("notification.error.editAccess")}),f.undo(),h.undo()}}}),access:t.query({query:e=>({url:`/v1/Share/Access?${ur.stringify(e)}`,method:"GET"}),providesTags:e=>["Access",...(e==null?void 0:e.SharedLinks.map(n=>({type:"Access",id:`uid_${n.Uid}`})))??[]]}),leave:t.mutation({query:e=>({url:`/v1/Share/UnShare?${ur.stringify(e)}`,method:"PUT"}),async onQueryStarted(e,{queryFulfilled:n}){try{await n,lt.dispatch(wt.util.invalidateTags(["Project"]))}catch{ds({message:jt("notification.error.leaveProject")})}}}),generateLink:t.mutation({query:e=>({url:`/v1/link/generate?${ur.stringify(e)}`,method:"GET"})}),linkInfo:t.query({query:e=>({url:`/v1/link/info?${ur.stringify(e)}`,method:"GET"})}),deleteLink:t.mutation({query:e=>({url:`/v1/link?${ur.stringify(e)}`,method:"DELETE"}),invalidatesTags:(e,n,r)=>[{type:"Access",id:`uid_${r.uid}`}]}),applyLink:t.mutation({query:e=>({url:`/v1/link?${ur.stringify(e)}`,method:"GET"})})})}),T8=(t,e)=>{t.UserIds=e,t.Children.map(n=>T8(n,e))};var nu;(t=>{(e=>{e[e.Custom=0]="Custom",e[e.Epic=1]="Epic",e[e.LeadTask=2]="LeadTask",e[e.Task=3]="Task",e[e.Bug=4]="Bug",e[e.SubTask=5]="SubTask",e[e.Milestone=6]="Milestone",e[e.Improvement=7]="Improvement",e[e.Innovation=8]="Innovation"})(t.TaskType||(t.TaskType={}))})(nu||(nu={}));const li=Ki({reducerPath:"taskTypesApi",baseQuery:Xi("/api"),tagTypes:["Project"],endpoints:t=>({getDefault:t.query({query:()=>({url:"/v1/ProjectTask/getDefaultTypes",method:"GET"})}),getTaskTypes:t.query({query:({ProjectIds:e,IsDeleted:n=!1})=>({url:"/v1/ProjectTask/Types",method:"POST",body:{ProjectIds:e,IsDeleted:n}}),transformResponse:e=>{if(e.length<1)throw Error("Empty task types");const n=q3e(b1(v3e(e,"Types"),"Id"),"Order"),r=n.reduce((o,s)=>(o[s.Id]=s,o),{});return{list:n,mapById:r}},providesTags:(e,n,r)=>r.ProjectIds.map(o=>({type:"Project",id:o})),async onQueryStarted(e,{queryFulfilled:n}){try{await n}catch{ds({message:jt("notification.error.getTaskTypes")})}}}),save:t.mutation({query:e=>({url:"/v1/ProjectTask/SaveType",method:"POST",body:e}),invalidatesTags:e=>{var n;return e!=null&&e.length?[{type:"Project",id:(n=e.at(0))==null?void 0:n.ProjectId}]:[]}}),remove:t.mutation({query:({ids:e})=>({url:"/v1/ProjectTask/Type",method:"DELETE",body:{ids:e}}),invalidatesTags:(e,n,{projectId:r})=>[{type:"Project",id:r}]})})}),gO=()=>localStorage.getItem("AuthToken");function Kz(t,e){return function(){return t.apply(e,arguments)}}const{toString:Fwe}=Object.prototype,{getPrototypeOf:gk}=Object,{iterator:l5,toStringTag:Xz}=Symbol,c5=(t=>e=>{const n=Fwe.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),dl=t=>(t=t.toLowerCase(),e=>c5(e)===t),u5=t=>e=>typeof e===t,{isArray:Rg}=Array,tg=u5("undefined");function U2(t){return t!==null&&!tg(t)&&t.constructor!==null&&!tg(t.constructor)&&hi(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Zz=dl("ArrayBuffer");function zwe(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Zz(t.buffer),e}const Uwe=u5("string"),hi=u5("function"),Jz=u5("number"),B2=t=>t!==null&&typeof t=="object",Bwe=t=>t===!0||t===!1,yw=t=>{if(c5(t)!=="object")return!1;const e=gk(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Xz in t)&&!(l5 in t)},Hwe=t=>{if(!B2(t)||U2(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},qwe=dl("Date"),Vwe=dl("File"),Ywe=dl("Blob"),Gwe=dl("FileList"),Wwe=t=>B2(t)&&hi(t.pipe),Qwe=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||hi(t.append)&&((e=c5(t))==="formdata"||e==="object"&&hi(t.toString)&&t.toString()==="[object FormData]"))},Kwe=dl("URLSearchParams"),[Xwe,Zwe,Jwe,e4e]=["ReadableStream","Request","Response","Headers"].map(dl),t4e=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function H2(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),Rg(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{if(U2(t))return;const s=n?Object.getOwnPropertyNames(t):Object.keys(t),i=s.length;let l;for(r=0;r<i;r++)l=s[r],e.call(null,t[l],l,t)}}function eU(t,e){if(U2(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const Ih=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tU=t=>!tg(t)&&t!==Ih;function E8(){const{caseless:t,skipUndefined:e}=tU(this)&&this||{},n={},r=(o,s)=>{const i=t&&eU(n,s)||s;yw(n[i])&&yw(o)?n[i]=E8(n[i],o):yw(o)?n[i]=E8({},o):Rg(o)?n[i]=o.slice():(!e||!tg(o))&&(n[i]=o)};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&H2(arguments[o],r);return n}const n4e=(t,e,n,{allOwnKeys:r}={})=>(H2(e,(o,s)=>{n&&hi(o)?Object.defineProperty(t,s,{value:Kz(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),r4e=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),o4e=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},s4e=(t,e,n,r)=>{let o,s,i;const l={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)i=o[s],(!r||r(i,t,e))&&!l[i]&&(e[i]=t[i],l[i]=!0);t=n!==!1&&gk(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},i4e=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},a4e=t=>{if(!t)return null;if(Rg(t))return t;let e=t.length;if(!Jz(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},l4e=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&gk(Uint8Array)),c4e=(t,e)=>{const r=(t&&t[l5]).call(t);let o;for(;(o=r.next())&&!o.done;){const s=o.value;e.call(t,s[0],s[1])}},u4e=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},d4e=dl("HTMLFormElement"),f4e=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),yO=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),h4e=dl("RegExp"),nU=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};H2(n,(o,s)=>{let i;(i=e(o,s,t))!==!1&&(r[s]=i||o)}),Object.defineProperties(t,r)},p4e=t=>{nU(t,(e,n)=>{if(hi(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(hi(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},m4e=(t,e)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return Rg(t)?r(t):r(String(t).split(e)),n},g4e=()=>{},y4e=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function v4e(t){return!!(t&&hi(t.append)&&t[Xz]==="FormData"&&t[l5])}const b4e=t=>{const e=new Array(10),n=(r,o)=>{if(B2(r)){if(e.indexOf(r)>=0)return;if(U2(r))return r;if(!("toJSON"in r)){e[o]=r;const s=Rg(r)?[]:{};return H2(r,(i,l)=>{const c=n(i,o+1);!tg(c)&&(s[l]=c)}),e[o]=void 0,s}}return r};return n(t,0)},S4e=dl("AsyncFunction"),w4e=t=>t&&(B2(t)||hi(t))&&hi(t.then)&&hi(t.catch),rU=((t,e)=>t?setImmediate:e?((n,r)=>(Ih.addEventListener("message",({source:o,data:s})=>{o===Ih&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Ih.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",hi(Ih.postMessage)),x4e=typeof queueMicrotask<"u"?queueMicrotask.bind(Ih):typeof process<"u"&&process.nextTick||rU,C4e=t=>t!=null&&hi(t[l5]),Ne={isArray:Rg,isArrayBuffer:Zz,isBuffer:U2,isFormData:Qwe,isArrayBufferView:zwe,isString:Uwe,isNumber:Jz,isBoolean:Bwe,isObject:B2,isPlainObject:yw,isEmptyObject:Hwe,isReadableStream:Xwe,isRequest:Zwe,isResponse:Jwe,isHeaders:e4e,isUndefined:tg,isDate:qwe,isFile:Vwe,isBlob:Ywe,isRegExp:h4e,isFunction:hi,isStream:Wwe,isURLSearchParams:Kwe,isTypedArray:l4e,isFileList:Gwe,forEach:H2,merge:E8,extend:n4e,trim:t4e,stripBOM:r4e,inherits:o4e,toFlatObject:s4e,kindOf:c5,kindOfTest:dl,endsWith:i4e,toArray:a4e,forEachEntry:c4e,matchAll:u4e,isHTMLForm:d4e,hasOwnProperty:yO,hasOwnProp:yO,reduceDescriptors:nU,freezeMethods:p4e,toObjectSet:m4e,toCamelCase:f4e,noop:g4e,toFiniteNumber:y4e,findKey:eU,global:Ih,isContextDefined:tU,isSpecCompliantForm:v4e,toJSONObject:b4e,isAsyncFn:S4e,isThenable:w4e,setImmediate:rU,asap:x4e,isIterable:C4e};let rn=class oU extends Error{static from(e,n,r,o,s,i){const l=new oU(e.message,n||e.code,r,o,s);return l.cause=e,l.name=e.name,i&&Object.assign(l,i),l}constructor(e,n,r,o,s){super(e),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),s&&(this.response=s,this.status=s.status)}toJSON(){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:Ne.toJSONObject(this.config),code:this.code,status:this.status}}};rn.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";rn.ERR_BAD_OPTION="ERR_BAD_OPTION";rn.ECONNABORTED="ECONNABORTED";rn.ETIMEDOUT="ETIMEDOUT";rn.ERR_NETWORK="ERR_NETWORK";rn.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";rn.ERR_DEPRECATED="ERR_DEPRECATED";rn.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";rn.ERR_BAD_REQUEST="ERR_BAD_REQUEST";rn.ERR_CANCELED="ERR_CANCELED";rn.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";rn.ERR_INVALID_URL="ERR_INVALID_URL";const _4e=null;function k8(t){return Ne.isPlainObject(t)||Ne.isArray(t)}function sU(t){return Ne.endsWith(t,"[]")?t.slice(0,-2):t}function vO(t,e,n){return t?t.concat(e).map(function(o,s){return o=sU(o),!n&&s?"["+o+"]":o}).join(n?".":""):e}function T4e(t){return Ne.isArray(t)&&!t.some(k8)}const E4e=Ne.toFlatObject(Ne,{},null,function(e){return/^is[A-Z]/.test(e)});function d5(t,e,n){if(!Ne.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=Ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,w){return!Ne.isUndefined(w[S])});const r=n.metaTokens,o=n.visitor||f,s=n.dots,i=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&Ne.isSpecCompliantForm(e);if(!Ne.isFunction(o))throw new TypeError("visitor must be a function");function d(g){if(g===null)return"";if(Ne.isDate(g))return g.toISOString();if(Ne.isBoolean(g))return g.toString();if(!c&&Ne.isBlob(g))throw new rn("Blob is not supported. Use a Buffer instead.");return Ne.isArrayBuffer(g)||Ne.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function f(g,S,w){let _=g;if(g&&!w&&typeof g=="object"){if(Ne.endsWith(S,"{}"))S=r?S:S.slice(0,-2),g=JSON.stringify(g);else if(Ne.isArray(g)&&T4e(g)||(Ne.isFileList(g)||Ne.endsWith(S,"[]"))&&(_=Ne.toArray(g)))return S=sU(S),_.forEach(function(T,M){!(Ne.isUndefined(T)||T===null)&&e.append(i===!0?vO([S],M,s):i===null?S:S+"[]",d(T))}),!1}return k8(g)?!0:(e.append(vO(w,S,s),d(g)),!1)}const h=[],p=Object.assign(E4e,{defaultVisitor:f,convertValue:d,isVisitable:k8});function v(g,S){if(!Ne.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+S.join("."));h.push(g),Ne.forEach(g,function(_,E){(!(Ne.isUndefined(_)||_===null)&&o.call(e,_,Ne.isString(E)?E.trim():E,S,p))===!0&&v(_,S?S.concat(E):[E])}),h.pop()}}if(!Ne.isObject(t))throw new TypeError("data must be an object");return v(t),e}function bO(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function yk(t,e){this._pairs=[],t&&d5(t,this,e)}const iU=yk.prototype;iU.append=function(e,n){this._pairs.push([e,n])};iU.toString=function(e){const n=e?function(r){return e.call(this,r,bO)}:bO;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function k4e(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function aU(t,e,n){if(!e)return t;const r=n&&n.encode||k4e,o=Ne.isFunction(n)?{serialize:n}:n,s=o&&o.serialize;let i;if(s?i=s(e,o):i=Ne.isURLSearchParams(e)?e.toString():new yk(e,o).toString(r),i){const l=t.indexOf("#");l!==-1&&(t=t.slice(0,l)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class SO{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Ne.forEach(this.handlers,function(r){r!==null&&e(r)})}}const lU={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},M4e=typeof URLSearchParams<"u"?URLSearchParams:yk,j4e=typeof FormData<"u"?FormData:null,D4e=typeof Blob<"u"?Blob:null,A4e={isBrowser:!0,classes:{URLSearchParams:M4e,FormData:j4e,Blob:D4e},protocols:["http","https","file","blob","url","data"]},vk=typeof window<"u"&&typeof document<"u",M8=typeof navigator=="object"&&navigator||void 0,R4e=vk&&(!M8||["ReactNative","NativeScript","NS"].indexOf(M8.product)<0),O4e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",P4e=vk&&window.location.href||"http://localhost",N4e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:vk,hasStandardBrowserEnv:R4e,hasStandardBrowserWebWorkerEnv:O4e,navigator:M8,origin:P4e},Symbol.toStringTag,{value:"Module"})),cs={...N4e,...A4e};function I4e(t,e){return d5(t,new cs.classes.URLSearchParams,{visitor:function(n,r,o,s){return cs.isNode&&Ne.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...e})}function $4e(t){return Ne.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function L4e(t){const e={},n=Object.keys(t);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],e[s]=t[s];return e}function cU(t){function e(n,r,o,s){let i=n[s++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),c=s>=n.length;return i=!i&&Ne.isArray(o)?o.length:i,c?(Ne.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!l):((!o[i]||!Ne.isObject(o[i]))&&(o[i]=[]),e(n,r,o[i],s)&&Ne.isArray(o[i])&&(o[i]=L4e(o[i])),!l)}if(Ne.isFormData(t)&&Ne.isFunction(t.entries)){const n={};return Ne.forEachEntry(t,(r,o)=>{e($4e(r),o,n,0)}),n}return null}function F4e(t,e,n){if(Ne.isString(t))try{return(e||JSON.parse)(t),Ne.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const q2={transitional:lU,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=Ne.isObject(e);if(s&&Ne.isHTMLForm(e)&&(e=new FormData(e)),Ne.isFormData(e))return o?JSON.stringify(cU(e)):e;if(Ne.isArrayBuffer(e)||Ne.isBuffer(e)||Ne.isStream(e)||Ne.isFile(e)||Ne.isBlob(e)||Ne.isReadableStream(e))return e;if(Ne.isArrayBufferView(e))return e.buffer;if(Ne.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return I4e(e,this.formSerializer).toString();if((l=Ne.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return d5(l?{"files[]":e}:e,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),F4e(e)):e}],transformResponse:[function(e){const n=this.transitional||q2.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Ne.isResponse(e)||Ne.isReadableStream(e))return e;if(e&&Ne.isString(e)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(e,this.parseReviver)}catch(l){if(i)throw l.name==="SyntaxError"?rn.from(l,rn.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:cs.classes.FormData,Blob:cs.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ne.forEach(["delete","get","head","post","put","patch"],t=>{q2.headers[t]={}});const z4e=Ne.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"]),U4e=t=>{const e={};let n,r,o;return t&&t.split(`
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||e[n]&&z4e[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},wO=Symbol("internals");function Wy(t){return t&&String(t).trim().toLowerCase()}function vw(t){return t===!1||t==null?t:Ne.isArray(t)?t.map(vw):String(t)}function B4e(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const H4e=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Y6(t,e,n,r,o){if(Ne.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!Ne.isString(e)){if(Ne.isString(r))return e.indexOf(r)!==-1;if(Ne.isRegExp(r))return r.test(e)}}function q4e(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function V4e(t,e){const n=Ne.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(o,s,i){return this[r].call(this,e,o,s,i)},configurable:!0})})}let pi=class{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function s(l,c,d){const f=Wy(c);if(!f)throw new Error("header name must be a non-empty string");const h=Ne.findKey(o,f);(!h||o[h]===void 0||d===!0||d===void 0&&o[h]!==!1)&&(o[h||c]=vw(l))}const i=(l,c)=>Ne.forEach(l,(d,f)=>s(d,f,c));if(Ne.isPlainObject(e)||e instanceof this.constructor)i(e,n);else if(Ne.isString(e)&&(e=e.trim())&&!H4e(e))i(U4e(e),n);else if(Ne.isObject(e)&&Ne.isIterable(e)){let l={},c,d;for(const f of e){if(!Ne.isArray(f))throw TypeError("Object iterator must return a key-value pair");l[d=f[0]]=(c=l[d])?Ne.isArray(c)?[...c,f[1]]:[c,f[1]]:f[1]}i(l,n)}else e!=null&&s(n,e,r);return this}get(e,n){if(e=Wy(e),e){const r=Ne.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return B4e(o);if(Ne.isFunction(n))return n.call(this,o,r);if(Ne.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Wy(e),e){const r=Ne.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Y6(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function s(i){if(i=Wy(i),i){const l=Ne.findKey(r,i);l&&(!n||Y6(r,r[l],l,n))&&(delete r[l],o=!0)}}return Ne.isArray(e)?e.forEach(s):s(e),o}clear(e){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!e||Y6(this,this[s],s,e,!0))&&(delete this[s],o=!0)}return o}normalize(e){const n=this,r={};return Ne.forEach(this,(o,s)=>{const i=Ne.findKey(r,s);if(i){n[i]=vw(o),delete n[s];return}const l=e?q4e(s):String(s).trim();l!==s&&delete n[s],n[l]=vw(o),r[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return Ne.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=e&&Ne.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[wO]=this[wO]={accessors:{}}).accessors,o=this.prototype;function s(i){const l=Wy(i);r[l]||(V4e(o,i),r[l]=!0)}return Ne.isArray(e)?e.forEach(s):s(e),this}};pi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ne.reduceDescriptors(pi.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});Ne.freezeMethods(pi);function G6(t,e){const n=this||q2,r=e||n,o=pi.from(r.headers);let s=r.data;return Ne.forEach(t,function(l){s=l.call(n,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function uU(t){return!!(t&&t.__CANCEL__)}let V2=class extends rn{constructor(e,n,r){super(e??"canceled",rn.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function dU(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new rn("Request failed with status code "+n.status,[rn.ERR_BAD_REQUEST,rn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Y4e(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function G4e(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,s=0,i;return e=e!==void 0?e:1e3,function(c){const d=Date.now(),f=r[s];i||(i=d),n[o]=c,r[o]=d;let h=s,p=0;for(;h!==o;)p+=n[h++],h=h%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),d-i<e)return;const v=f&&d-f;return v?Math.round(p*1e3/v):void 0}}function W4e(t,e){let n=0,r=1e3/e,o,s;const i=(d,f=Date.now())=>{n=f,o=null,s&&(clearTimeout(s),s=null),t(...d)};return[(...d)=>{const f=Date.now(),h=f-n;h>=r?i(d,f):(o=d,s||(s=setTimeout(()=>{s=null,i(o)},r-h)))},()=>o&&i(o)]}const g4=(t,e,n=3)=>{let r=0;const o=G4e(50,250);return W4e(s=>{const i=s.loaded,l=s.lengthComputable?s.total:void 0,c=i-r,d=o(c),f=i<=l;r=i;const h={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&f?(l-i)/d:void 0,event:s,lengthComputable:l!=null,[e?"download":"upload"]:!0};t(h)},n)},xO=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},CO=t=>(...e)=>Ne.asap(()=>t(...e)),Q4e=cs.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,cs.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(cs.origin),cs.navigator&&/(msie|trident)/i.test(cs.navigator.userAgent)):()=>!0,K4e=cs.hasStandardBrowserEnv?{write(t,e,n,r,o,s,i){if(typeof document>"u")return;const l=[`${t}=${encodeURIComponent(e)}`];Ne.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),Ne.isString(r)&&l.push(`path=${r}`),Ne.isString(o)&&l.push(`domain=${o}`),s===!0&&l.push("secure"),Ne.isString(i)&&l.push(`SameSite=${i}`),document.cookie=l.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function X4e(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Z4e(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function fU(t,e,n){let r=!X4e(e);return t&&(r||n==!1)?Z4e(t,e):e}const _O=t=>t instanceof pi?{...t}:t;function lp(t,e){e=e||{};const n={};function r(d,f,h,p){return Ne.isPlainObject(d)&&Ne.isPlainObject(f)?Ne.merge.call({caseless:p},d,f):Ne.isPlainObject(f)?Ne.merge({},f):Ne.isArray(f)?f.slice():f}function o(d,f,h,p){if(Ne.isUndefined(f)){if(!Ne.isUndefined(d))return r(void 0,d,h,p)}else return r(d,f,h,p)}function s(d,f){if(!Ne.isUndefined(f))return r(void 0,f)}function i(d,f){if(Ne.isUndefined(f)){if(!Ne.isUndefined(d))return r(void 0,d)}else return r(void 0,f)}function l(d,f,h){if(h in e)return r(d,f);if(h in t)return r(void 0,d)}const c={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:l,headers:(d,f,h)=>o(_O(d),_O(f),h,!0)};return Ne.forEach(Object.keys({...t,...e}),function(f){const h=c[f]||o,p=h(t[f],e[f],f);Ne.isUndefined(p)&&h!==l||(n[f]=p)}),n}const hU=t=>{const e=lp({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:l}=e;if(e.headers=i=pi.from(i),e.url=aU(fU(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Ne.isFormData(n)){if(cs.hasStandardBrowserEnv||cs.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(Ne.isFunction(n.getHeaders)){const c=n.getHeaders(),d=["content-type","content-length"];Object.entries(c).forEach(([f,h])=>{d.includes(f.toLowerCase())&&i.set(f,h)})}}if(cs.hasStandardBrowserEnv&&(r&&Ne.isFunction(r)&&(r=r(e)),r||r!==!1&&Q4e(e.url))){const c=o&&s&&K4e.read(s);c&&i.set(o,c)}return e},J4e=typeof XMLHttpRequest<"u",exe=J4e&&function(t){return new Promise(function(n,r){const o=hU(t);let s=o.data;const i=pi.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=o,f,h,p,v,g;function S(){v&&v(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(f),o.signal&&o.signal.removeEventListener("abort",f)}let w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,!0),w.timeout=o.timeout;function _(){if(!w)return;const T=pi.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),j={data:!l||l==="text"||l==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:T,config:t,request:w};dU(function(k){n(k),S()},function(k){r(k),S()},j),w=null}"onloadend"in w?w.onloadend=_:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(_)},w.onabort=function(){w&&(r(new rn("Request aborted",rn.ECONNABORTED,t,w)),w=null)},w.onerror=function(M){const j=M&&M.message?M.message:"Network Error",A=new rn(j,rn.ERR_NETWORK,t,w);A.event=M||null,r(A),w=null},w.ontimeout=function(){let M=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const j=o.transitional||lU;o.timeoutErrorMessage&&(M=o.timeoutErrorMessage),r(new rn(M,j.clarifyTimeoutError?rn.ETIMEDOUT:rn.ECONNABORTED,t,w)),w=null},s===void 0&&i.setContentType(null),"setRequestHeader"in w&&Ne.forEach(i.toJSON(),function(M,j){w.setRequestHeader(j,M)}),Ne.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),l&&l!=="json"&&(w.responseType=o.responseType),d&&([p,g]=g4(d,!0),w.addEventListener("progress",p)),c&&w.upload&&([h,v]=g4(c),w.upload.addEventListener("progress",h),w.upload.addEventListener("loadend",v)),(o.cancelToken||o.signal)&&(f=T=>{w&&(r(!T||T.type?new V2(null,t,w):T),w.abort(),w=null)},o.cancelToken&&o.cancelToken.subscribe(f),o.signal&&(o.signal.aborted?f():o.signal.addEventListener("abort",f)));const E=Y4e(o.url);if(E&&cs.protocols.indexOf(E)===-1){r(new rn("Unsupported protocol "+E+":",rn.ERR_BAD_REQUEST,t));return}w.send(s||null)})},txe=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,o;const s=function(d){if(!o){o=!0,l();const f=d instanceof Error?d:this.reason;r.abort(f instanceof rn?f:new V2(f instanceof Error?f.message:f))}};let i=e&&setTimeout(()=>{i=null,s(new rn(`timeout of ${e}ms exceeded`,rn.ETIMEDOUT))},e);const l=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),t=null)};t.forEach(d=>d.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>Ne.asap(l),c}},nxe=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},rxe=async function*(t,e){for await(const n of oxe(t))yield*nxe(n,e)},oxe=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},TO=(t,e,n,r)=>{const o=rxe(t,e);let s=0,i,l=c=>{i||(i=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:f}=await o.next();if(d){l(),c.close();return}let h=f.byteLength;if(n){let p=s+=h;n(p)}c.enqueue(new Uint8Array(f))}catch(d){throw l(d),d}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},EO=64*1024,{isFunction:L3}=Ne,sxe=(({Request:t,Response:e})=>({Request:t,Response:e}))(Ne.global),{ReadableStream:kO,TextEncoder:MO}=Ne.global,jO=(t,...e)=>{try{return!!t(...e)}catch{return!1}},ixe=t=>{t=Ne.merge.call({skipUndefined:!0},sxe,t);const{fetch:e,Request:n,Response:r}=t,o=e?L3(e):typeof fetch=="function",s=L3(n),i=L3(r);if(!o)return!1;const l=o&&L3(kO),c=o&&(typeof MO=="function"?(g=>S=>g.encode(S))(new MO):async g=>new Uint8Array(await new n(g).arrayBuffer())),d=s&&l&&jO(()=>{let g=!1;const S=new n(cs.origin,{body:new kO,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!S}),f=i&&l&&jO(()=>Ne.isReadableStream(new r("").body)),h={stream:f&&(g=>g.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!h[g]&&(h[g]=(S,w)=>{let _=S&&S[g];if(_)return _.call(S);throw new rn(`Response type '${g}' is not supported`,rn.ERR_NOT_SUPPORT,w)})});const p=async g=>{if(g==null)return 0;if(Ne.isBlob(g))return g.size;if(Ne.isSpecCompliantForm(g))return(await new n(cs.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(Ne.isArrayBufferView(g)||Ne.isArrayBuffer(g))return g.byteLength;if(Ne.isURLSearchParams(g)&&(g=g+""),Ne.isString(g))return(await c(g)).byteLength},v=async(g,S)=>{const w=Ne.toFiniteNumber(g.getContentLength());return w??p(S)};return async g=>{let{url:S,method:w,data:_,signal:E,cancelToken:T,timeout:M,onDownloadProgress:j,onUploadProgress:A,responseType:k,headers:R,withCredentials:N="same-origin",fetchOptions:I}=hU(g),L=e||fetch;k=k?(k+"").toLowerCase():"text";let F=txe([E,T&&T.toAbortSignal()],M),H=null;const B=F&&F.unsubscribe&&(()=>{F.unsubscribe()});let Y;try{if(A&&d&&w!=="get"&&w!=="head"&&(Y=await v(R,_))!==0){let G=new n(S,{method:"POST",body:_,duplex:"half"}),X;if(Ne.isFormData(_)&&(X=G.headers.get("content-type"))&&R.setContentType(X),G.body){const[J,ne]=xO(Y,g4(CO(A)));_=TO(G.body,EO,J,ne)}}Ne.isString(N)||(N=N?"include":"omit");const U=s&&"credentials"in n.prototype,q={...I,signal:F,method:w.toUpperCase(),headers:R.normalize().toJSON(),body:_,duplex:"half",credentials:U?N:void 0};H=s&&new n(S,q);let z=await(s?L(H,I):L(S,q));const W=f&&(k==="stream"||k==="response");if(f&&(j||W&&B)){const G={};["status","statusText","headers"].forEach(se=>{G[se]=z[se]});const X=Ne.toFiniteNumber(z.headers.get("content-length")),[J,ne]=j&&xO(X,g4(CO(j),!0))||[];z=new r(TO(z.body,EO,J,()=>{ne&&ne(),B&&B()}),G)}k=k||"text";let K=await h[Ne.findKey(h,k)||"text"](z,g);return!W&&B&&B(),await new Promise((G,X)=>{dU(G,X,{data:K,headers:pi.from(z.headers),status:z.status,statusText:z.statusText,config:g,request:H})})}catch(U){throw B&&B(),U&&U.name==="TypeError"&&/Load failed|fetch/i.test(U.message)?Object.assign(new rn("Network Error",rn.ERR_NETWORK,g,H),{cause:U.cause||U}):rn.from(U,U&&U.code,g,H)}}},axe=new Map,pU=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:o}=e,s=[r,o,n];let i=s.length,l=i,c,d,f=axe;for(;l--;)c=s[l],d=f.get(c),d===void 0&&f.set(c,d=l?new Map:ixe(e)),f=d;return d};pU();const bk={http:_4e,xhr:exe,fetch:{get:pU}};Ne.forEach(bk,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const DO=t=>`- ${t}`,lxe=t=>Ne.isFunction(t)||t===null||t===!1;function cxe(t,e){t=Ne.isArray(t)?t:[t];const{length:n}=t;let r,o;const s={};for(let i=0;i<n;i++){r=t[i];let l;if(o=r,!lxe(r)&&(o=bk[(l=String(r)).toLowerCase()],o===void 0))throw new rn(`Unknown adapter '${l}'`);if(o&&(Ne.isFunction(o)||(o=o.get(e))))break;s[l||"#"+i]=o}if(!o){const i=Object.entries(s).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=n?i.length>1?`since :
`+i.map(DO).join(`
`):" "+DO(i[0]):"as no adapter specified";throw new rn("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o}const mU={getAdapter:cxe,adapters:bk};function W6(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new V2(null,t)}function AO(t){return W6(t),t.headers=pi.from(t.headers),t.data=G6.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),mU.getAdapter(t.adapter||q2.adapter,t)(t).then(function(r){return W6(t),r.data=G6.call(t,t.transformResponse,r),r.headers=pi.from(r.headers),r},function(r){return uU(r)||(W6(t),r&&r.response&&(r.response.data=G6.call(t,t.transformResponse,r.response),r.response.headers=pi.from(r.response.headers))),Promise.reject(r)})}const gU="1.13.4",f5={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{f5[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const RO={};f5.transitional=function(e,n,r){function o(s,i){return"[Axios v"+gU+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,l)=>{if(e===!1)throw new rn(o(i," has been removed"+(n?" in "+n:"")),rn.ERR_DEPRECATED);return n&&!RO[i]&&(RO[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,i,l):!0}};f5.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function uxe(t,e,n){if(typeof t!="object")throw new rn("options must be an object",rn.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const s=r[o],i=e[s];if(i){const l=t[s],c=l===void 0||i(l,s,t);if(c!==!0)throw new rn("option "+s+" must be "+c,rn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new rn("Unknown option "+s,rn.ERR_BAD_OPTION)}}const bw={assertOptions:uxe,validators:f5},Hl=bw.validators;let qh=class{constructor(e){this.defaults=e||{},this.interceptors={request:new SO,response:new SO}}async request(e,n){try{return await this._request(e,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+=`
`+s):r.stack=s}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=lp(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&bw.assertOptions(r,{silentJSONParsing:Hl.transitional(Hl.boolean),forcedJSONParsing:Hl.transitional(Hl.boolean),clarifyTimeoutError:Hl.transitional(Hl.boolean)},!1),o!=null&&(Ne.isFunction(o)?n.paramsSerializer={serialize:o}:bw.assertOptions(o,{encode:Hl.function,serialize:Hl.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),bw.assertOptions(n,{baseUrl:Hl.spelling("baseURL"),withXsrfToken:Hl.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&Ne.merge(s.common,s[n.method]);s&&Ne.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=pi.concat(i,s);const l=[];let c=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(c=c&&S.synchronous,l.unshift(S.fulfilled,S.rejected))});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let f,h=0,p;if(!c){const g=[AO.bind(this),void 0];for(g.unshift(...l),g.push(...d),p=g.length,f=Promise.resolve(n);h<p;)f=f.then(g[h++],g[h++]);return f}p=l.length;let v=n;for(;h<p;){const g=l[h++],S=l[h++];try{v=g(v)}catch(w){S.call(this,w);break}}try{f=AO.call(this,v)}catch(g){return Promise.reject(g)}for(h=0,p=d.length;h<p;)f=f.then(d[h++],d[h++]);return f}getUri(e){e=lp(this.defaults,e);const n=fU(e.baseURL,e.url,e.allowAbsoluteUrls);return aU(n,e.params,e.paramsSerializer)}};Ne.forEach(["delete","get","head","options"],function(e){qh.prototype[e]=function(n,r){return this.request(lp(r||{},{method:e,url:n,data:(r||{}).data}))}});Ne.forEach(["post","put","patch"],function(e){function n(r){return function(s,i,l){return this.request(lp(l||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}qh.prototype[e]=n(),qh.prototype[e+"Form"]=n(!0)});let dxe=class yU{constructor(e){if(typeof e!="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(l=>{r.subscribe(l),s=l}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},e(function(s,i,l){r.reason||(r.reason=new V2(s,i,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new yU(function(o){e=o}),cancel:e}}};function fxe(t){return function(n){return t.apply(null,n)}}function hxe(t){return Ne.isObject(t)&&t.isAxiosError===!0}const j8={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(j8).forEach(([t,e])=>{j8[e]=t});function vU(t){const e=new qh(t),n=Kz(qh.prototype.request,e);return Ne.extend(n,qh.prototype,e,{allOwnKeys:!0}),Ne.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return vU(lp(t,o))},n}const ro=vU(q2);ro.Axios=qh;ro.CanceledError=V2;ro.CancelToken=dxe;ro.isCancel=uU;ro.VERSION=gU;ro.toFormData=d5;ro.AxiosError=rn;ro.Cancel=ro.CanceledError;ro.all=function(e){return Promise.all(e)};ro.spread=fxe;ro.isAxiosError=hxe;ro.mergeConfig=lp;ro.AxiosHeaders=pi;ro.formToJSON=t=>cU(Ne.isHTMLForm(t)?new FormData(t):t);ro.getAdapter=mU.getAdapter;ro.HttpStatusCode=j8;ro.default=ro;const{Axios:jDe,AxiosError:DDe,CanceledError:ADe,isCancel:RDe,CancelToken:ODe,VERSION:PDe,all:NDe,Cancel:IDe,isAxiosError:OO,spread:$De,toFormData:LDe,AxiosHeaders:FDe,HttpStatusCode:zDe,formToJSON:UDe,getAdapter:BDe,mergeConfig:HDe}=ro,pxe={currentUser:null,entities:{}},Dd=Jr({name:"usersCache",initialState:pxe,reducers:{addUsers:(t,e)=>{e.payload.forEach(n=>{t.entities[n.Id]=n})},setCurrentUser:(t,e)=>{t.currentUser=e.payload}}}),Vh=Ki({reducerPath:"usersApi",baseQuery:Xi("/api"),tagTypes:["Users"],endpoints:t=>({search:t.query({query:e=>({url:"/v1/user/search",method:"POST",body:{query:e.query,size:e.size,offset:e.offset}}),transformResponse:(e,n,r)=>({currentData:e,data:[...r.prevData||[],...e],hasMore:e.length>=(r.size||0)}),async onQueryStarted(e,{dispatch:n,queryFulfilled:r}){try{const{data:o}=await r;n(Dd.actions.addUsers(o.currentData.map(s=>({Avatar:s.Avatar,ContactId:s.ContactId,Email:s.Email,FirstName:s.FirstName,Id:s.Id,Jid:s.Jid,Name:s.Name,Surname:s.Surname,Type:s.Type,Status:s.Status}))))}catch{}}}),getCurrentUser:t.query({query:()=>({url:"/v1/user",method:"GET"}),async onQueryStarted(e,{dispatch:n,queryFulfilled:r}){try{const{data:o}=await r;n(Dd.actions.setCurrentUser(o));const s={Avatar:o.Avatar,ContactId:o.ContactId,Email:o.Email,FirstName:o.FirstName,Id:o.Id,Jid:o.Jid,Name:o.Name,Surname:o.Surname,Type:o.Type,Status:o.Status};n(Dd.actions.addUsers([s]))}catch{}}}),getById:t.query({queryFn:async({ids:e,force:n},r)=>{var c,d,f,h,p,v;if(n)try{const g=await ro.post("/api/v1/user/get",{ids:e},{headers:{Authorization:gO()}});return r.dispatch(Dd.actions.addUsers(g.data)),{data:g.data}}catch(g){return OO(g)?{error:{status:((c=g.response)==null?void 0:c.status)??500,statusText:(d=g.response)==null?void 0:d.statusText,data:(f=g.response)==null?void 0:f.data}}:{error:{status:500,statusText:"",data:""}}}const s=r.getState().usersCache.entities,[i,l]=e.reduce((g,S)=>(s[S]?g[0].push(s[S]):g[1].push(S),g),[[],[]]);if(l.length===0)return{data:i};try{const g=await ro.post("/api/v1/user/get",{ids:l},{headers:{Authorization:gO()}});return r.dispatch(Dd.actions.addUsers(g.data)),{data:[...i,...g.data]}}catch(g){return OO(g)?{error:{status:((h=g.response)==null?void 0:h.status)??500,statusText:(p=g.response)==null?void 0:p.statusText,data:(v=g.response)==null?void 0:v.data}}:{error:{status:500,statusText:"",data:""}}}}})})}),mxe={sidebarOpened:!1,withoutSidebar:!1},ng=Jr({name:"layoutSlice",initialState:mxe,reducers:{initSidebar(t){t.sidebarOpened=window.matchMedia("(min-width: 1200px)").matches},openSidebar(t){t.sidebarOpened=!0},closeSidebar(t){t.sidebarOpened=!1},toggleSidebar(t){t.sidebarOpened=!t.sidebarOpened},setWithoutSidebar(t,e){t.withoutSidebar=e.payload}}}),gxe={opened:!1,isSubtaskCreate:!1},y4=Jr({name:"createTaskModal",initialState:gxe,reducers:{close(t){t.opened=!1},open(t,e){t.opened=!0,t.defaultValues=e.payload.defaultValues,t.afterCreate=e.payload.afterCreate,t.allowedProjectIds=e.payload.allowedProjectIds,t.isSubtaskCreate=e.payload.isSubtaskCreate}}}),yxe={opened:!1,task:null},v4=Jr({name:"duplicateTaskModalSlice",initialState:yxe,reducers:{setOpened:(t,e)=>e.payload}}),vxe=t=>{lt.dispatch(v4.actions.setOpened({opened:!0,task:t}))},bU=()=>{lt.dispatch(v4.actions.setOpened({opened:!1,task:null}))},bxe={skeletons:{topPreloader:!1,navigation:!1,mainContent:!1,tasks:!1}},D8=Jr({name:"devSlice",initialState:bxe,reducers:{setSkeletons(t,e){Object.assign(t.skeletons,e.payload)}}}),Sxe={myProjects:{isProjectsShow:!1,isSprintsShow:!1,isTasksShow:!1},otherProjects:{isProjectsShow:!1,isSprintsShow:!1,isTasksShow:!1}},Sk=Jr({name:"archiveSlice",initialState:Sxe,reducers:{setAllMyProjectsStates:(t,e)=>{t.myProjects=e.payload},setAllOtherProjectsStates:(t,e)=>{t.otherProjects=e.payload}}}),wxe={key:"archiveSlice",storage:pk,version:1},{setAllMyProjectsStates:xxe,setAllOtherProjectsStates:Cxe}=Sk.actions,_xe=hk(wxe,Sk.reducer),PO={opened:!1,format:"text",type:ai.CollectionColumnType.String,side:null},NO=Jr({name:"createCollectionColumnModal",initialState:PO,reducers:{open(t,e){t.opened=!0,t.format=e.payload.format,t.type=e.payload.type,t.side=e.payload.side,t.currentColumn=e.payload.currentColumn},close(){return PO}}}),Txe={opened:!1,projectId:null,collectionId:null},b4=Jr({name:"createEditCollectionModalSlice",initialState:Txe,reducers:{open(t,e){t.opened=!0,t.projectId=e.payload.projectId,t.collectionId=e.payload.collectionId},close(t){t.opened=!1,t.projectId=null,t.collectionId=null}}}),Exe={opened:!1},S4=Jr({name:"diffStatusesModal",initialState:Exe,reducers:{close(t){t.opened=!1,t.tasks=void 0,t.sprintId=void 0,t.onSuccess=void 0},open(t,e){t.opened=!0,t.tasks=e.payload.tasks,t.sprintId=e.payload.sprintId,t.onSuccess=e.payload.onSuccess}}}),IO={opened:!1,entityType:"project",editType:"create",defaultValue:{formType:null,name:"",icon:null,key:"",color:"",statuses:{provide:!1,current:[],provided:[]},types:[],custom:[],tags:[]}},du=Jr({name:"editEntityModal",initialState:IO,reducers:{close(){return IO},open(t,e){return{opened:!0,...e.payload}}}}),SU={activeSectionFor:"myProjects",projects:{},sprints:{}},h5=Jr({name:"settingsSlice",initialState:SU,reducers:{setActiveSectionFor:(t,e)=>{t.activeSectionFor=e.payload},setProjectPerformerIds:(t,e)=>{const{payload:{projectId:n,performerIds:r}}=e,o=t.projects[n];return{...t,projects:{...t.projects,[n]:{...o,performerIds:r}}}},setSprintSettings:(t,e)=>{const{payload:{sprintId:n,settings:r}}=e,o=t.sprints[n],s={...r};return(r==null?void 0:r.groupBy)===(o==null?void 0:o.sortBy)&&(s.sortBy=null),{...t,sprints:{...t.sprints,[n]:{...o,...s,collapsedStatuses:{...o==null?void 0:o.collapsedStatuses,...r.collapsedStatuses},collapsedGroup:Uz({},o==null?void 0:o.collapsedGroup,r.collapsedGroup)}}}}}}),{setActiveSectionFor:F3,setProjectPerformerIds:qDe,setSprintSettings:VDe}=h5.actions,kxe=Cwe(t=>{if(!t)return t;const e={};for(const[n,r]of Object.entries(t)){if(!r)continue;const{groupBy:o,sortOrder:s,sortBy:i,sortByOrder:l,...c}=r;e[n]=c}return{...e}},t=>t,{whitelist:["sprints"]}),Mxe={2:t=>!t||typeof t.activeSectionFor!="string"?{...t,activeSectionFor:SU.activeSectionFor}:t},jxe={key:"settingsSlice",storage:pk,version:2,migrate:xwe(Mxe),transforms:[kxe]},Dxe=hk(jxe,h5.reducer),Axe=D.lazy(()=>oo(()=>import("./NoDataImage-ZwzmHAPW.js"),[])),p5=t=>{const e=be.c(34);let n,r,o,s,i,l,c,d,f;e[0]!==t?({title:d,titleProps:f,description:o,descriptionProps:s,buttons:n,illustration:i,size:c,children:r,...l}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s,e[5]=i,e[6]=l,e[7]=c,e[8]=d,e[9]=f):(n=e[1],r=e[2],o=e[3],s=e[4],i=e[5],l=e[6],c=e[7],d=e[8],f=e[9]);const h=c===void 0?240:c;let p;e[10]!==h?(p={height:h},e[10]=h,e[11]=p):p=e[11];let v;e[12]!==i||e[13]!==h||e[14]!==d?(v=b.jsx(D.Suspense,{fallback:"Loading...",children:b.jsx(Axe,{title:d,illustration:i,size:h})}),e[12]=i,e[13]=h,e[14]=d,e[15]=v):v=e[15];let g;e[16]!==p||e[17]!==v?(g=b.jsx("div",{style:p,children:v}),e[16]=p,e[17]=v,e[18]=g):g=e[18];let S;e[19]!==d||e[20]!==f?(S=d&&b.jsx(bg,{order:2,ta:"center",maw:400,...f,children:d}),e[19]=d,e[20]=f,e[21]=S):S=e[21];let w;e[22]!==o||e[23]!==s?(w=o&&b.jsx(Dt,{fz:"md",ta:"center",c:"dimmed",maw:400,...s,...Ag(o)?{dangerouslySetInnerHTML:{__html:o}}:{children:o}}),e[22]=o,e[23]=s,e[24]=w):w=e[24];let _;e[25]!==n?(_=n!=null&&n.length?b.jsx(qt,{gap:"xs",justify:"center",children:n.map(Rxe)}):null,e[25]=n,e[26]=_):_=e[26];let E;return e[27]!==r||e[28]!==l||e[29]!==g||e[30]!==S||e[31]!==w||e[32]!==_?(E=b.jsxs(_t,{gap:"sm",justify:"center",flex:1,align:"center",...l,children:[g,S,w,_,r]}),e[27]=r,e[28]=l,e[29]=g,e[30]=S,e[31]=w,e[32]=_,e[33]=E):E=e[33],E};function Rxe(t,e){const{buttonText:n,handleClick:r,...o}=t;return b.jsx(In,{onClick:r,...o,children:n},e)}const Oxe="_root_1ypfq_1",Pxe={root:Oxe},wU=()=>{const t=be.c(12),{t:e}=at();let n;t[0]!==e?(n=e("500.title"),t[0]=e,t[1]=n):n=t[1];let r;t[2]!==e?(r=e("500.description"),t[2]=e,t[3]=r):r=t[3];let o;t[4]!==e?(o=e("500.reload"),t[4]=e,t[5]=o):o=t[5];let s;t[6]!==o?(s=[{buttonText:o,handleClick:Nxe}],t[6]=o,t[7]=s):s=t[7];let i;return t[8]!==n||t[9]!==r||t[10]!==s?(i=b.jsx(c7,{className:Pxe.root,children:b.jsx(p5,{title:n,description:r,illustration:"500",buttons:s})}),t[8]=n,t[9]=r,t[10]=s,t[11]=i):i=t[11],i};function Nxe(){return window.location.reload()}const w4=t=>{const e=be.c(4);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={overflow:"hidden"},e[0]=n):n=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=b.jsx(va,{size:"sm"}),e[1]=r):r=e[1];let o;return e[2]!==t?(o=b.jsx(_t,{h:"100vh",p:20,style:n,gap:0,align:"center",justify:"center",...t,children:r}),e[2]=t,e[3]=o):o=e[3],o},xU="comment",YDe=(t,e)=>{D.useEffect(()=>{var s,i;const n=new URLSearchParams(document.location.search),o=Number(n.get(xU))===e;(s=t.current)==null||s.setAttribute("data-focused",`${o}`),o&&((i=t.current)==null||i.scrollIntoView({behavior:"smooth",block:"end"}))},[])},fu=(t,e,n)=>{let r=t;Object.entries(e??{}).forEach(([s,i])=>{r=r.replaceAll(`:${s}`,i)});const o=ur.stringify(n,{addQueryPrefix:!0});return r+o},A8=t=>{var e;return((e=lt.getState().settingsSlice.sprints[t])==null?void 0:e.view)||"list"},R8=(t,e)=>{lt.dispatch(h5.actions.setSprintSettings({sprintId:t,settings:{view:e,groupBy:void 0,sortOrder:null,sortBy:null,sortByOrder:null}}))},Ixe="_button_b1idw_1",$xe={button:Ixe},Lxe=({sprintId:t,...e})=>{const{t:n}=at(),r=hc(),o=Qi(),[s,i]=D.useState(A8(t.toString())),l=CU.map(c=>({...c,title:n(`sprintView.${c.value}`)}));return D.useEffect(()=>{i(A8(t.toString()))},[o.pathname]),b.jsx(qt,{gap:4,align:"center",wrap:"nowrap",...e,children:l.map(({value:c,title:d,Icon:f,link:h},p,v)=>b.jsxs(D.Fragment,{children:[b.jsx(In,{className:$xe.button,variant:"subtle",radius:4,color:"light-dark(var(--mantine-color-dark-6), var(--mantine-color-dark-0))",size:"compact-sm",leftSection:b.jsx(f,{size:16}),onClick:()=>{h&&(i(c),r(fu(wn[h],{sprintId:t})),R8(t.toString(),c))},"data-active":s===c,children:d}),p<v.length-1&&b.jsx(Jc,{orientation:"vertical"})]},c))})},CU=[{value:"list",Icon:Wx,link:"sprintList"},{value:"kanban",Icon:qge,link:"sprintKanban"},{value:"timeline",Icon:Zme,link:"sprintTimeline"}],_U="%[a-f0-9]{2}",$O=new RegExp("("+_U+")|([^%]+?)","gi"),LO=new RegExp("("+_U+")+","gi");function O8(t,e){try{return[decodeURIComponent(t.join(""))]}catch{}if(t.length===1)return t;e=e||1;const n=t.slice(0,e),r=t.slice(e);return Array.prototype.concat.call([],O8(n),O8(r))}function Fxe(t){try{return decodeURIComponent(t)}catch{let e=t.match($O)||[];for(let n=1;n<e.length;n++)t=O8(e,n).join(""),e=t.match($O)||[];return t}}function zxe(t){const e={"%FE%FF":"��","%FF%FE":"��"};let n=LO.exec(t);for(;n;){try{e[n[0]]=decodeURIComponent(n[0])}catch{const o=Fxe(n[0]);o!==n[0]&&(e[n[0]]=o)}n=LO.exec(t)}e["%C2"]="�";const r=Object.keys(e);for(const o of r)t=t.replace(new RegExp(o,"g"),e[o]);return t}function Uxe(t){if(typeof t!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return decodeURIComponent(t)}catch{return zxe(t)}}function Bxe(t,e){const n={};if(Array.isArray(e))for(const r of e){const o=Object.getOwnPropertyDescriptor(t,r);o!=null&&o.enumerable&&Object.defineProperty(n,r,o)}else for(const r of Reflect.ownKeys(t)){const o=Object.getOwnPropertyDescriptor(t,r);if(o.enumerable){const s=t[r];e(r,s,t)&&Object.defineProperty(n,r,o)}}return n}function TU(t,e){if(!(typeof t=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t===""||e==="")return[];const n=t.indexOf(e);return n===-1?[]:[t.slice(0,n),t.slice(n+e.length)]}const Hxe=t=>t==null,qxe=t=>encodeURIComponent(t).replaceAll(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),P8=Symbol("encodeFragmentIdentifier");function Vxe(t){switch(t.arrayFormat){case"index":return e=>(n,r)=>{const o=n.length;return r===void 0||t.skipNull&&r===null||t.skipEmptyString&&r===""?n:r===null?[...n,[mo(e,t),"[",o,"]"].join("")]:[...n,[mo(e,t),"[",mo(o,t),"]=",mo(r,t)].join("")]};case"bracket":return e=>(n,r)=>r===void 0||t.skipNull&&r===null||t.skipEmptyString&&r===""?n:r===null?[...n,[mo(e,t),"[]"].join("")]:[...n,[mo(e,t),"[]=",mo(r,t)].join("")];case"colon-list-separator":return e=>(n,r)=>r===void 0||t.skipNull&&r===null||t.skipEmptyString&&r===""?n:r===null?[...n,[mo(e,t),":list="].join("")]:[...n,[mo(e,t),":list=",mo(r,t)].join("")];case"comma":case"separator":case"bracket-separator":{const e=t.arrayFormat==="bracket-separator"?"[]=":"=";return n=>(r,o)=>o===void 0||t.skipNull&&o===null||t.skipEmptyString&&o===""?r:(o=o===null?"":o,r.length===0?[[mo(n,t),e,mo(o,t)].join("")]:[[r,mo(o,t)].join(t.arrayFormatSeparator)])}default:return e=>(n,r)=>r===void 0||t.skipNull&&r===null||t.skipEmptyString&&r===""?n:r===null?[...n,mo(e,t)]:[...n,[mo(e,t),"=",mo(r,t)].join("")]}}function Yxe(t){let e;switch(t.arrayFormat){case"index":return(n,r,o)=>{if(e=/\[(\d*)]$/.exec(n),n=n.replace(/\[\d*]$/,""),!e){o[n]=r;return}o[n]===void 0&&(o[n]={}),o[n][e[1]]=r};case"bracket":return(n,r,o)=>{if(e=/(\[])$/.exec(n),n=n.replace(/\[]$/,""),!e){o[n]=r;return}if(o[n]===void 0){o[n]=[r];return}o[n]=[...o[n],r]};case"colon-list-separator":return(n,r,o)=>{if(e=/(:list)$/.exec(n),n=n.replace(/:list$/,""),!e){o[n]=r;return}if(o[n]===void 0){o[n]=[r];return}o[n]=[...o[n],r]};case"comma":case"separator":return(n,r,o)=>{const i=typeof r=="string"&&r.includes(t.arrayFormatSeparator)?r.split(t.arrayFormatSeparator).map(l=>$h(l,t)):r===null?r:$h(r,t);o[n]=i};case"bracket-separator":return(n,r,o)=>{const s=/(\[])$/.test(n);if(n=n.replace(/\[]$/,""),!s){o[n]=r&&$h(r,t);return}const i=r===null?[]:$h(r,t).split(t.arrayFormatSeparator);if(o[n]===void 0){o[n]=i;return}o[n]=[...o[n],...i]};default:return(n,r,o)=>{if(o[n]===void 0){o[n]=r;return}o[n]=[...[o[n]].flat(),r]}}}function EU(t){if(typeof t!="string"||t.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function mo(t,e){return e.encode?e.strict?qxe(t):encodeURIComponent(t):t}function $h(t,e){return e.decode?Uxe(t):t}function kU(t){return Array.isArray(t)?t.sort():typeof t=="object"?kU(Object.keys(t)).sort((e,n)=>Number(e)-Number(n)).map(e=>t[e]):t}function MU(t){const e=t.indexOf("#");return e!==-1&&(t=t.slice(0,e)),t}function Gxe(t){let e="";const n=t.indexOf("#");return n!==-1&&(e=t.slice(n)),e}function FO(t,e,n){return n==="string"&&typeof t=="string"?t:typeof n=="function"&&typeof t=="string"?n(t):n==="boolean"&&t===null?!0:n==="boolean"&&t!==null&&(t.toLowerCase()==="true"||t.toLowerCase()==="false")?t.toLowerCase()==="true":n==="boolean"&&t!==null&&(t.toLowerCase()==="1"||t.toLowerCase()==="0")?t.toLowerCase()==="1":n==="string[]"&&e.arrayFormat!=="none"&&typeof t=="string"?[t]:n==="number[]"&&e.arrayFormat!=="none"&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""?[Number(t)]:n==="number"&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""?Number(t):e.parseBooleans&&t!==null&&(t.toLowerCase()==="true"||t.toLowerCase()==="false")?t.toLowerCase()==="true":e.parseNumbers&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""?Number(t):t}function wk(t){t=MU(t);const e=t.indexOf("?");return e===-1?"":t.slice(e+1)}function xk(t,e){e={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...e},EU(e.arrayFormatSeparator);const n=Yxe(e),r=Object.create(null);if(typeof t!="string"||(t=t.trim().replace(/^[?#&]/,""),!t))return r;for(const o of t.split("&")){if(o==="")continue;const s=e.decode?o.replaceAll("+"," "):o;let[i,l]=TU(s,"=");i===void 0&&(i=s),l=l===void 0?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?l:$h(l,e),n($h(i,e),l,r)}for(const[o,s]of Object.entries(r))if(typeof s=="object"&&s!==null&&e.types[o]!=="string")for(const[i,l]of Object.entries(s)){const c=e.types[o],d=typeof c=="function"?c:c?c.replace("[]",""):void 0;s[i]=FO(l,e,d)}else typeof s=="object"&&s!==null&&e.types[o]==="string"?r[o]=Object.values(s).join(e.arrayFormatSeparator):r[o]=FO(s,e,e.types[o]);return e.sort===!1?r:(e.sort===!0?Object.keys(r).sort():Object.keys(r).sort(e.sort)).reduce((o,s)=>{const i=r[s];return o[s]=i&&typeof i=="object"&&!Array.isArray(i)?kU(i):i,o},Object.create(null))}function jU(t,e){if(!t)return"";e={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...e},EU(e.arrayFormatSeparator);const n=i=>e.skipNull&&Hxe(t[i])||e.skipEmptyString&&t[i]==="",r=Vxe(e),o={};for(const[i,l]of Object.entries(t))n(i)||(o[i]=l);const s=Object.keys(o);return e.sort!==!1&&s.sort(e.sort),s.map(i=>{let l=t[i];if(e.replacer&&(l=e.replacer(i,l),l===void 0)||l===void 0)return"";if(l===null)return mo(i,e);if(Array.isArray(l)){if(l.length===0&&e.arrayFormat==="bracket-separator")return mo(i,e)+"[]";let c=l;return e.replacer&&(c=l.map((d,f)=>e.replacer(`${i}[${f}]`,d)).filter(d=>d!==void 0)),c.reduce(r(i),[]).join("&")}return mo(i,e)+"="+mo(l,e)}).filter(i=>i.length>0).join("&")}function DU(t,e){var o;e={decode:!0,...e};let[n,r]=TU(t,"#");return n===void 0&&(n=t),{url:((o=n==null?void 0:n.split("?"))==null?void 0:o[0])??"",query:xk(wk(t),e),...e&&e.parseFragmentIdentifier&&r?{fragmentIdentifier:$h(r,e)}:{}}}function AU(t,e){e={encode:!0,strict:!0,[P8]:!0,...e};const n=MU(t.url).split("?")[0]||"",r=wk(t.url),o={...xk(r,{sort:!1,...e}),...t.query};let s=jU(o,e);s&&(s=`?${s}`);let i=Gxe(t.url);if(typeof t.fragmentIdentifier=="string"){const l=new URL(n);l.hash=t.fragmentIdentifier,i=e[P8]?l.hash:`#${t.fragmentIdentifier}`}return`${n}${s}${i}`}function RU(t,e,n){n={parseFragmentIdentifier:!0,[P8]:!1,...n};const{url:r,query:o,fragmentIdentifier:s}=DU(t,n);return AU({url:r,query:Bxe(o,e),fragmentIdentifier:s},n)}function Wxe(t,e,n){const r=Array.isArray(e)?o=>!e.includes(o):(o,s)=>!e(o,s);return RU(t,r,n)}const rg=Object.freeze(Object.defineProperty({__proto__:null,exclude:Wxe,extract:wk,parse:xk,parseUrl:DU,pick:RU,stringify:jU,stringifyUrl:AU},Symbol.toStringTag,{value:"Module"}));var wn;(t=>{t.login="/login",t.collection="/collections/:collectionId",t.folder="/folders/:folderId",t.sprintList="/sprints/list/:sprintId",t.sprintKanban="/sprints/kanban/:sprintId",t.sprintTimeline="/sprints/timeline/:sprintId",t.task="/issues/:taskId",t.myIssues="/my-issues",t.updates="/updates",t.invite="/invite",t.marked="/marked",t.trash="/trash",t.getSprintRoute=e=>{const n=e?A8(e.toString()):"list",r={list:t.sprintList,kanban:t.sprintKanban,timeline:t.sprintTimeline};return fu(r[n],{sprintId:e})},t.getSprintLink=(e,n)=>{const r=(0,t.getSprintRoute)(e);return n?r:window.location.origin+r},t.getTaskLink=({sprintId:e,taskKey:n,relative:r})=>rg.stringifyUrl({url:(0,t.getSprintLink)(e,r),query:{[Jv]:n}}),t.getCommentLink=({sprintId:e,taskKey:n,activityId:r})=>rg.stringifyUrl({url:(0,t.getSprintLink)(e),query:{[Jv]:n,[xU]:r}})})(wn||(wn={}));const m5=t=>Zr(t)&&!isNaN(t),ru=t=>{const{[t]:e}=q7();return D.useMemo(()=>{const n=Number(e||"NaN");return m5(n)?n:null},[e])},Qxe=()=>{var w;const t=be.c(17),e=hc(),n=Qi(),r=mi("(max-width: 768px)"),o=ru("sprintId"),[s]=jee();let i;t[0]!==s?(i=s.get("task"),t[0]=s,t[1]=i):i=t[1];const l=i;let c;t[2]!==n.pathname?(c=Li(wn.sprintList,n.pathname),t[2]=n.pathname,t[3]=c):c=t[3];const d=!!c;let f;t[4]!==n.pathname?(f=(w=CU.find(_=>_.link&&Li(wn[_.link],n.pathname)))==null?void 0:w.value,t[4]=n.pathname,t[5]=f):f=t[5];const h=f;let p,v;t[6]!==r||t[7]!==d||t[8]!==e||t[9]!==o||t[10]!==l?(p=()=>{r&&o&&!d&&(R8(o.toString(),"list"),e(fu(wn.sprintList,{sprintId:o},{task:l})))},v=[r,o,d,e,l],t[6]=r,t[7]=d,t[8]=e,t[9]=o,t[10]=l,t[11]=p,t[12]=v):(p=t[11],v=t[12]),D.useEffect(p,v);let g,S;t[13]!==h||t[14]!==o?(g=()=>{o&&h&&R8(o.toString(),h)},S=[o,h],t[13]=h,t[14]=o,t[15]=g,t[16]=S):(g=t[15],S=t[16]),D.useEffect(g,S)},Kxe=t=>{const e=be.c(8),{children:n}=t,r=Vh.useGetCurrentUserQuery(),{data:o}=zi.endpoints.get.useQueryState();Qxe();let s,i;if(e[0]!==o?(s=()=>{var h,p;if(!o)return;const c=o.ModuleSettings,d=c.ModulesAccess.includes("Projects"),f=(p=(h=c.ModuleUrls)==null?void 0:h.find(Zxe))==null?void 0:p.Url;f&&!d&&window.location.replace(f+"/dashboard?from=Projects")},i=[o],e[0]=o,e[1]=s,e[2]=i):(s=e[1],i=e[2]),D.useLayoutEffect(s,i),(o==null?void 0:o.UserId)===-1){const c=`${window.location.pathname}${window.location.search}`;c!=="/login"&&c!=="/"&&localStorage.setItem(Xxe,encodeURIComponent(c));let d;return e[3]===Symbol.for("react.memo_cache_sentinel")?(d=b.jsx(ree,{to:wn.login,replace:!0}),e[3]=d):d=e[3],d}if(r.isLoading){let c;return e[4]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx(w4,{}),e[4]=c):c=e[4],c}if(r.isError){let c;return e[5]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx(wU,{}),e[5]=c):c=e[5],c}let l;return e[6]!==n?(l=b.jsx(b.Fragment,{children:n}),e[6]=n,e[7]=l):l=e[7],l},Xxe="LOGIN_RETURN_URL";function Zxe(t){return t.Name==="Admin"}const OU="/assets/darkLogoRu-D3vMYZEA.svg",PU="/assets/lightLogoRu-DJtc4Qb2.svg",g5=t=>{const e=be.c(5),n=t===void 0?"xy":t,[r,o]=D.useState(!1);let s;e[0]!==n?(s=c=>{const{currentTarget:d}=c,{clientWidth:f,scrollWidth:h,clientHeight:p,scrollHeight:v}=d,g=f>=h,S=p>=v;o(!{x:g,y:S,xy:g&&S}[n])},e[0]=n,e[1]=s):s=e[1];const i=s;let l;return e[2]!==i||e[3]!==r?(l={isOverflown:r,checkOverflown:i},e[2]=i,e[3]=r,e[4]=l):l=e[4],l},ci=t=>{const e=be.c(13);let n,r,o;e[0]!==t?({check:n,children:r,...o}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o):(n=e[1],r=e[2],o=e[3]);const{isOverflown:s,checkOverflown:i}=g5(n),l=!s;let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c={hover:!0,focus:!0,touch:!1},e[4]=c):c=e[4];let d;e[5]!==i||e[6]!==r||e[7]!==o?(d=b.jsx(Dt,{component:"p",size:"sm",...o,truncate:!0,onMouseEnter:i,children:r}),e[5]=i,e[6]=r,e[7]=o,e[8]=d):d=e[8];let f;return e[9]!==r||e[10]!==l||e[11]!==d?(f=b.jsx(yi,{disabled:l,label:r,openDelay:400,multiline:!0,maw:1e3,events:c,children:d}),e[9]=r,e[10]=l,e[11]=d,e[12]=f):f=e[12],f},Jxe=({id:t,skip:e})=>{const{data:n,...r}=nr.useGetCollectionByIdQuery({id:t},{skip:e});return{data:n,...r}},e5e=()=>{const t=be.c(19),e=ru("collectionId")??0;let n;t[0]!==e?(n=Zr(e),t[0]=e,t[1]=n):n=t[1];const r=!n;let o;t[2]!==e||t[3]!==r?(o={id:e,skip:r},t[2]=e,t[3]=r,t[4]=o):o=t[4];const{data:s,isLoading:i}=Jxe(o),l=s==null?void 0:s.Color;let c;t[5]!==l?(c=s5(l)?"gray":l,t[5]=l,t[6]=c):c=t[6];let d;t[7]===Symbol.for("react.memo_cache_sentinel")?(d=b.jsx(_g,{}),t[7]=d):d=t[7];let f;t[8]!==c?(f=b.jsx(rf,{variant:"filled",color:c,children:d}),t[8]=c,t[9]=f):f=t[9];let h;t[10]===Symbol.for("react.memo_cache_sentinel")?(h={lineHeight:"18px"},t[10]=h):h=t[10];const p=s==null?void 0:s.Name;let v;t[11]!==p?(v=b.jsx(ci,{size:"md",style:h,children:p}),t[11]=p,t[12]=v):v=t[12];let g;t[13]!==f||t[14]!==v?(g=b.jsxs(Lt,{align:"center",gap:12,children:[f,v]}),t[13]=f,t[14]=v,t[15]=g):g=t[15];let S;return t[16]!==i||t[17]!==g?(S=b.jsx(it,{visible:i,maw:500,children:g}),t[16]=i,t[17]=g,t[18]=S):S=t[18],S},t5e=t=>{const e=be.c(4),{data:n}=t;n==null||n.ModuleSettings.ModuleUrls;let r;e[0]!==(n==null?void 0:n.ModuleSettings.ModuleUrls)?(r=(n==null?void 0:n.ModuleSettings.ModuleUrls.filter(n5e))||[],e[0]=n==null?void 0:n.ModuleSettings.ModuleUrls,e[1]=r):r=e[1];const o=r;let s;return e[2]!==o?(s=o.length>0?b.jsxs(Mt,{position:"bottom-end",withinPortal:!0,keepMounted:!1,transitionProps:{transition:"pop-top-right",duration:150},children:[b.jsx(Mt.Target,{children:b.jsx(lr,{variant:"subtle",color:"light-dark(var(--mantine-color-gray-6), var(--mantine-color-dark-0))",size:"lg",children:b.jsx(Ige,{size:22,stroke:1.5})})}),b.jsx(Mt.Dropdown,{miw:150,children:o.map(r5e)})]}):null,e[2]=o,e[3]=s):s=e[3],s};function n5e(t){return t.ShowItem}function r5e(t){return b.jsx(Mt.Item,{component:"a",href:t.Url,target:"_blank",fz:14,leftSection:b.jsx(dc,{src:t.Icon,h:24,w:24}),children:t.Title},t.Url)}var I1=(t=>(t[t.bug=0]="bug",t[t.chartLine=1]="chartLine",t[t.bolt=2]="bolt",t[t.fileSearch=3]="fileSearch",t[t.puzzle=4]="puzzle",t[t.pennant=5]="pennant",t[t.edit=6]="edit",t[t.targetArrow=7]="targetArrow",t[t.rocket=8]="rocket",t[t.arrowBigUpLine=9]="arrowBigUpLine",t[t.brush=10]="brush",t[t.alertTriangle=11]="alertTriangle",t[t.camera=12]="camera",t[t.calendarMonth=13]="calendarMonth",t[t.world=14]="world",t[t.truckDelivery=15]="truckDelivery",t[t.apps=16]="apps",t[t.home=17]="home",t[t.mailOpened=18]="mailOpened",t[t.book=19]="book",t[t.deviceDesktop=20]="deviceDesktop",t[t.selector=21]="selector",t[t.map=22]="map",t[t.photo=23]="photo",t[t.bookmark=24]="bookmark",t[t.lock=25]="lock",t[t.settings=26]="settings",t[t.bell=27]="bell",t[t.printer=28]="printer",t[t.usersGroup=29]="usersGroup",t[t.fileDescription=30]="fileDescription",t[t.briefcase=31]="briefcase",t[t.checkbox=32]="checkbox",t[t.bulb=33]="bulb",t[t.search=34]="search",t[t.deviceDesktopSearch=35]="deviceDesktopSearch",t[t.clock=36]="clock",t[t.userSquareRounded=37]="userSquareRounded",t[t.serverBolt=38]="serverBolt",t[t.thumbUp=39]="thumbUp",t[t.api=40]="api",t[t.listCheck=41]="listCheck",t[t.squareCheck=42]="squareCheck",t[t.progressCheck=43]="progressCheck",t[t.flame=44]="flame",t[t.currencyDollar=45]="currencyDollar",t[t.check=46]="check",t[t.questionMark=47]="questionMark",t[t.brandJavascript=48]="brandJavascript",t[t.activity=49]="activity",t[t.plus=50]="plus",t[t.copy=51]="copy",t[t.minus=52]="minus",t[t.pointFilled=53]="pointFilled",t[t.exclamationMark=54]="exclamationMark",t[t.heart=55]="heart",t[t.arrowNarrowUp=56]="arrowNarrowUp",t[t.folder=57]="folder",t[t.squareRotated=58]="squareRotated",t))(I1||{});const Pt={width:"90%",height:"90%"},o5e={0:b.jsx($E,{...Pt}),1:b.jsx(F1e,{...Pt}),2:b.jsx(m1e,{...Pt}),3:b.jsx(jge,{...Pt}),4:b.jsx(y0e,{...Pt}),5:b.jsx(c0e,{...Pt}),6:b.jsx(bge,{...Pt}),7:b.jsx(U0e,{...Pt}),8:b.jsx(tz,{...Pt}),9:b.jsx(s1e,{...Pt}),10:b.jsx(E1e,{...Pt}),11:b.jsx(Kme,{...Pt}),12:b.jsx(N1e,{...Pt}),13:b.jsx(O1e,{...Pt}),14:b.jsx(Kx,{...Pt}),15:b.jsx(Y0e,{...Pt}),16:b.jsx(n1e,{...Pt}),17:b.jsx(Bge,{...Pt}),18:b.jsx(e0e,{...Pt}),19:b.jsx(y1e,{...Pt}),20:b.jsx(pge,{...Pt}),21:b.jsx(_0e,{...Pt}),22:b.jsx(n0e,{...Pt}),23:b.jsx(d0e,{...Pt}),24:b.jsx(b1e,{...Pt}),25:b.jsx(Xge,{...Pt}),26:b.jsx(M0e,{...Pt}),27:b.jsx(h1e,{...Pt}),28:b.jsx(p0e,{...Pt}),29:b.jsx(eye,{...Pt}),30:b.jsx(kge,{...Pt}),31:b.jsx(_1e,{...Pt}),32:b.jsx(B1e,{...Pt}),33:b.jsx(j1e,{...Pt}),34:b.jsx(O2,{...Pt}),35:b.jsx(fge,{...Pt}),36:b.jsx(tge,{...Pt}),37:b.jsx(Z0e,{...Pt}),38:b.jsx(E0e,{...Pt}),39:b.jsx(H0e,{...Pt}),40:b.jsx(e1e,{...Pt}),41:b.jsx(Gge,{...Pt}),42:b.jsx(R0e,{...Pt}),43:b.jsx(qE,{...Pt}),44:b.jsx(Age,{...Pt}),45:b.jsx(uge,{...Pt}),46:b.jsx(LE,{...Pt}),47:b.jsx(Va,{...Pt}),48:b.jsx(x1e,{...Pt}),49:b.jsx(Yme,{...Pt}),50:b.jsx(R2,{...Pt}),51:b.jsx(ige,{...Pt}),52:b.jsx(o0e,{...Pt}),53:b.jsx(cye,{...Pt}),54:b.jsx(Cge,{...Pt}),55:b.jsx(Lge,{...Pt}),56:b.jsx(a1e,{...Pt}),57:b.jsx(Gx,{...Pt}),58:b.jsx(nz,{...Pt})},y5=t=>{const e=be.c(17);let n,r,o,s,i;e[0]!==t?({color:n,icon:r,name:o,ref:i,...s}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s,e[5]=i):(n=e[1],r=e[2],o=e[3],s=e[4],i=e[5]);const l=n||"gray.5";let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c={display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"normal"},e[6]=c):c=e[6];let d;e[7]!==r||e[8]!==o?(d=Zr(r)&&o5e[r]||s5e(o),e[7]=r,e[8]=o,e[9]=d):d=e[9];let f;e[10]!==d?(f=b.jsx(Dt,{fz:"200%",fw:400,tt:"uppercase",style:c,children:d}),e[10]=d,e[11]=f):f=e[11];let h;return e[12]!==s||e[13]!==i||e[14]!==l||e[15]!==f?(h=b.jsx(gi,{ref:i,radius:"sm",variant:"filled",size:20,color:l,...s,children:f}),e[12]=s,e[13]=i,e[14]=l,e[15]=f,e[16]=h):h=e[16],h},s5e=t=>String.fromCodePoint((t==null?void 0:t.codePointAt(0))??1),NU=t=>{const e=be.c(3),{color:n}=t,r=Lr();let o;return e[0]!==n||e[1]!==r?(o=dr(n,r),e[0]=n,e[1]=r,e[2]=o):o=e[2],o},i5e=t=>{const e=be.c(11);let n,r,o;e[0]!==t?({color:n,ref:o,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o):(n=e[1],r=e[2],o=e[3]);let s;e[4]!==n?(s={color:n},e[4]=n,e[5]=s):s=e[5];const i=NU(s);let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=b.jsx(Wx,{...a5e,stroke:1.5}),e[6]=l):l=e[6];let c;return e[7]!==r||e[8]!==o||e[9]!==i?(c=b.jsx(rf,{ref:o,size:24,variant:"transparent",...r,color:i,children:l}),e[7]=r,e[8]=o,e[9]=i,e[10]=c):c=e[10],c},a5e={width:"90%",height:"90%"},l5e=t=>{const e=be.c(7),{isOpen:n,color:r}=t,o=n?Oge:Gx;let s;e[0]!==r?(s={color:r},e[0]=r,e[1]=s):s=e[1];const i=NU(s);let l;e[2]!==o?(l=b.jsx(o,{size:20}),e[2]=o,e[3]=l):l=e[3];let c;return e[4]!==l||e[5]!==i?(c=b.jsx(rf,{variant:"transparent",size:24,color:i,children:l}),e[4]=l,e[5]=i,e[6]=c):c=e[6],c},c5e=()=>{const t=be.c(17),{t:e}=at(),n=$4(),{setColorScheme:r}=i2();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={getInitialValueInEffect:!0},t[0]=o):o=t[0];const s=ag("light",o)==="light",i=s?"dark":"light",l=n==="macos"?"⌘":"Ctrl",c=s?i0e:F0e;let d;t[1]!==i||t[2]!==r?(d=()=>{r(i)},t[1]=i,t[2]=r,t[3]=d):d=t[3];const f=ou(d,100);let h;t[4]!==f?(h=[["mod+E",f]],t[4]=f,t[5]=h):h=t[5],o2(h);let p;t[6]!==i||t[7]!==e?(p=e("shortcuts.common.theme",{context:i}),t[6]=i,t[7]=e,t[8]=p):p=t[8];const v=`${p} (${l} + E)`;let g;t[9]!==c?(g=b.jsx(c,{size:22,stroke:1.5}),t[9]=c,t[10]=g):g=t[10];let S;t[11]!==f||t[12]!==g?(S=b.jsx(lr,{variant:"subtle",color:"light-dark(var(--mantine-color-gray-6), var(--mantine-color-dark-0))",size:"lg","aria-label":"Theme",onClick:f,children:g}),t[11]=f,t[12]=g,t[13]=S):S=t[13];let w;return t[14]!==v||t[15]!==S?(w=b.jsx(yi,{label:v,openDelay:700,children:S}),t[14]=v,t[15]=S,t[16]=w):w=t[16],w},u5e="_shortcut_13ncb_1",d5e={shortcut:u5e},f5e=t=>{const e=be.c(2),{children:n}=t;let r;return e[0]!==n?(r=b.jsx(Dt,{fw:700,className:d5e.shortcut,children:n}),e[0]=n,e[1]=r):r=e[1],r},h5e=t=>{const e=be.c(11),{opened:n,onClose:r}=t,{t:o}=at(),s=p5e();let i;e[0]!==o?(i=o("userMenu.shortcuts"),e[0]=o,e[1]=i):i=e[1];let l;e[2]!==s?(l=s.map(g5e),e[2]=s,e[3]=l):l=e[3];let c;e[4]!==l?(c=b.jsx("div",{children:l}),e[4]=l,e[5]=c):c=e[5];let d;return e[6]!==r||e[7]!==n||e[8]!==i||e[9]!==c?(d=b.jsx(Cr,{opened:n,onClose:r,title:i,size:"md",children:c}),e[6]=r,e[7]=n,e[8]=i,e[9]=c,e[10]=d):d=e[10],d},p5e=()=>{const t=be.c(56),{t:e}=at(),n=$4();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={getInitialValueInEffect:!0},t[0]=r):r=t[0];const o=ag("light",r)==="light",s=n==="macos"?"⌘":"Ctrl";let i;t[1]!==e?(i=e("shortcuts.common.title"),t[1]=e,t[2]=i):i=t[2];let l;t[3]!==e?(l=e("shortcuts.common.submit"),t[3]=e,t[4]=l):l=t[4];const c=`${s} + ↩`;let d;t[5]!==l||t[6]!==c?(d={description:l,keys:c},t[5]=l,t[6]=c,t[7]=d):d=t[7];const f=o?"dark":"light";let h;t[8]!==e||t[9]!==f?(h=e("shortcuts.common.theme",{context:f}),t[8]=e,t[9]=f,t[10]=h):h=t[10];const p=`${s} + E`;let v;t[11]!==h||t[12]!==p?(v={description:h,keys:p},t[11]=h,t[12]=p,t[13]=v):v=t[13];let g;t[14]!==d||t[15]!==v?(g=[d,v],t[14]=d,t[15]=v,t[16]=g):g=t[16];let S;t[17]!==i||t[18]!==g?(S={category:i,shortcuts:g},t[17]=i,t[18]=g,t[19]=S):S=t[19];let w;t[20]!==e?(w=e("shortcuts.task.title"),t[20]=e,t[21]=w):w=t[21];let _;t[22]!==e?(_=e("shortcuts.task.copyLink"),t[22]=e,t[23]=_):_=t[23];const E=`${s} + I`;let T;t[24]!==_||t[25]!==E?(T={description:_,keys:E},t[24]=_,t[25]=E,t[26]=T):T=t[26];let M;t[27]!==e?(M=e("shortcuts.task.copyKey"),t[27]=e,t[28]=M):M=t[28];let j;t[29]!==M?(j={description:M,keys:"Q"},t[29]=M,t[30]=j):j=t[30];let A;t[31]!==e?(A=e("shortcuts.task.assignYourself"),t[31]=e,t[32]=A):A=t[32];let k;t[33]!==A?(k={description:A,keys:"M"},t[33]=A,t[34]=k):k=t[34];let R;t[35]!==T||t[36]!==j||t[37]!==k?(R=[T,j,k],t[35]=T,t[36]=j,t[37]=k,t[38]=R):R=t[38];let N;t[39]!==w||t[40]!==R?(N={category:w,shortcuts:R},t[39]=w,t[40]=R,t[41]=N):N=t[41];let I;t[42]!==e?(I=e("shortcuts.editor.title"),t[42]=e,t[43]=I):I=t[43];let L;t[44]!==e?(L=e("shortcuts.editor.pasteImage"),t[44]=e,t[45]=L):L=t[45];const F=`${s} + V`;let H;t[46]!==L||t[47]!==F?(H=[{description:L,keys:F}],t[46]=L,t[47]=F,t[48]=H):H=t[48];let B;t[49]!==I||t[50]!==H?(B={category:I,shortcuts:H},t[49]=I,t[50]=H,t[51]=B):B=t[51];let Y;return t[52]!==S||t[53]!==N||t[54]!==B?(Y=[S,N,B],t[52]=S,t[53]=N,t[54]=B,t[55]=Y):Y=t[55],Y};function m5e(t,e){return b.jsxs(qt,{justify:"space-between",wrap:"nowrap",gap:"xl",style:{marginTop:e!==0?"10px":"0"},children:[b.jsx(Dt,{fz:13,children:t.description}),b.jsx(f5e,{children:t.keys})]},e)}function g5e(t,e){return b.jsxs("div",{children:[b.jsx(Dt,{fw:500,fz:15,my:8,children:t.category}),t.shortcuts.map(m5e)]},e)}const y5e="data:image/svg+xml,%3csvg%20width='18'%20height='22'%20viewBox='0%200%2018%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.98198%200.544189C5.59973%200.544189%202.85786%203.21918%202.85786%206.51896C2.85786%209.81867%205.59973%2012.4937%208.98198%2012.4937C12.3642%2012.4937%2015.1061%209.81867%2015.1061%206.51896C15.1061%203.21918%2012.3642%200.544189%208.98198%200.544189ZM16.808%2015.4772C17.9682%2016.2061%2017.9116%2017.795%2016.855%2018.6609C14.7261%2020.4052%2011.9801%2021.4559%208.98229%2021.4559C6.00442%2021.4559%203.27467%2020.4191%201.15175%2018.6952C0.0857694%2017.8296%200.0292887%2016.2327%201.19454%2015.499C1.55729%2015.2706%201.95233%2015.0705%202.38106%2014.8981C4.10603%2014.2043%206.30925%2013.9874%208.98213%2013.9874C11.6685%2013.9874%2013.8842%2014.1904%2015.6137%2014.8768C16.0457%2015.0482%2016.4435%2015.2482%2016.808%2015.4772Z'%20fill='white'/%3e%3c/svg%3e",zO=["#FFA94D","#FFD43B","#A9E34B","#69DB7C","#38D9A9","#3BC9DB","#4DABF7","#748FFC","#9775FA","#DA77F2","#F783AC","#FF8787"],v5e=t=>{if(typeof t!="string")throw new Error("Input must be a string");const e=n=>n.trim()===""?0:Array.from(n).reduce((r,o)=>r+o.charCodeAt(0),0)%zO.length;return(()=>{try{const n=e(t);return zO[n]}catch(n){return console.error("Error generating color:",n),"#FFFFFF"}})()},x4=t=>{var w,_,E;const e=be.c(21);let n,r,o,s;e[0]!==t?({user:s,size:o,ref:r,...n}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s):(n=e[1],r=e[2],o=e[3],s=e[4]);const i=o===void 0?24:o;let l;e[5]!==(s==null?void 0:s.Id)?(l=((w=s==null?void 0:s.Id)==null?void 0:w.toString())??"",e[5]=s==null?void 0:s.Id,e[6]=l):l=e[6];const c=v5e(l),d=s==null?void 0:s.Avatar,f=s?"#fff":"var(--mantine-color-gray-6)",h=`${s?c:" var(--mantine-color-gray-3)"}`;let p;e[7]!==n.style||e[8]!==h?(p={background:h,lineHeight:"normal",...n.style},e[7]=n.style,e[8]=h,e[9]=p):p=e[9];let v;e[10]===Symbol.for("react.memo_cache_sentinel")?(v={placeholder:{fontWeight:"500"}},e[10]=v):v=e[10];let g;e[11]!==s?(g=s?b.jsxs(b.Fragment,{children:[(_=s.Surname)==null?void 0:_.at(0),(E=s.FirstName)==null?void 0:E.at(0)]}):b.jsx(dc,{w:"60%",h:"60%",style:{flexBasis:"40%"},src:y5e}),e[11]=s,e[12]=g):g=e[12];let S;return e[13]!==n||e[14]!==r||e[15]!==i||e[16]!==d||e[17]!==f||e[18]!==p||e[19]!==g?(S=b.jsx(gi,{src:d,color:f,tt:"uppercase",size:i,...n,style:p,styles:v,ref:r,children:g}),e[13]=n,e[14]=r,e[15]=i,e[16]=d,e[17]=f,e[18]=p,e[19]=g,e[20]=S):S=e[20],S},b5e=()=>{var fe;const t=be.c(70),{t:e}=at(),n=tn(S5e),[r,o]=D.useState(!1),{data:s}=zi.endpoints.get.useQueryState(),[i]=mv.useLogoutMutation();let l;t[0]!==(s==null?void 0:s.ModuleSettings.ModulesAccess)?(l=s==null?void 0:s.ModuleSettings.ModulesAccess.includes("Projects"),t[0]=s==null?void 0:s.ModuleSettings.ModulesAccess,t[1]=l):l=t[1];const c=l;let d;t[2]!==(s==null?void 0:s.ModuleSettings.ModuleUrls)?(d=(fe=s==null?void 0:s.ModuleSettings.ModuleUrls.find(w5e))==null?void 0:fe.Url,t[2]=s==null?void 0:s.ModuleSettings.ModuleUrls,t[3]=d):d=t[3];const f=d;let h;t[4]!==i?(h=async()=>{i().unwrap().then(x5e)},t[4]=i,t[5]=h):h=t[5];const p=h;let v;t[6]===Symbol.for("react.memo_cache_sentinel")?(v=()=>{o(!0)},t[6]=v):v=t[6];const g=v;let S;t[7]===Symbol.for("react.memo_cache_sentinel")?(S=()=>{o(!1)},t[7]=S):S=t[7];const w=S;let _;t[8]===Symbol.for("react.memo_cache_sentinel")?(_={transition:"pop-top-right",duration:150},t[8]=_):_=t[8];let E;t[9]===Symbol.for("react.memo_cache_sentinel")?(E={cursor:"pointer"},t[9]=E):E=t[9];let T;t[10]!==n?(T=b.jsx(Mt.Target,{children:b.jsx(x4,{user:n,size:36,style:E})}),t[10]=n,t[11]=T):T=t[11];let M;t[12]!==n?(M=b.jsx(x4,{user:n,size:50}),t[12]=n,t[13]=M):M=t[13];let j;t[14]===Symbol.for("react.memo_cache_sentinel")?(j={flex:1,minWidth:0},t[14]=j):j=t[14];const A=n.Surname??"-",k=n.FirstName??"-";let R;t[15]!==A||t[16]!==k?(R=b.jsxs(Dt,{fz:18,truncate:"end",children:[A," ",k]}),t[15]=A,t[16]=k,t[17]=R):R=t[17];let N;t[18]!==n.Email?(N=b.jsx(Dt,{fz:14,c:"dimmed",truncate:"end",children:n.Email}),t[18]=n.Email,t[19]=N):N=t[19];let I;t[20]!==R||t[21]!==N?(I=b.jsxs("div",{style:j,children:[R,N]}),t[20]=R,t[21]=N,t[22]=I):I=t[22];let L;t[23]!==I||t[24]!==M?(L=b.jsxs(qt,{px:"sm",pt:6,maw:"100dwh",w:300,children:[M,I]}),t[23]=I,t[24]=M,t[25]=L):L=t[25];let F;t[26]===Symbol.for("react.memo_cache_sentinel")?(F=b.jsx(Jc,{mt:"xs",mb:6}),t[26]=F):F=t[26];const H=`${f}/dashboard`;let B;t[27]===Symbol.for("react.memo_cache_sentinel")?(B=b.jsx(D0e,{stroke:1.5,size:20}),t[27]=B):B=t[27];let Y;t[28]!==e?(Y=e("userMenu.main"),t[28]=e,t[29]=Y):Y=t[29];let U;t[30]!==H||t[31]!==Y?(U=b.jsx(Mt.Item,{component:"a",href:H,leftSection:B,px:"md",fz:14,children:Y}),t[30]=H,t[31]=Y,t[32]=U):U=t[32];let q;t[33]!==f||t[34]!==c||t[35]!==e?(q=c&&b.jsx(Mt.Item,{component:"a",href:`${f}/profile`,leftSection:b.jsx(K0e,{stroke:1.5,size:20}),px:"md",fz:14,children:e("userMenu.profile")}),t[33]=f,t[34]=c,t[35]=e,t[36]=q):q=t[36];let z;t[37]!==(s==null?void 0:s.ModuleSettings.ModulesAccess)||t[38]!==e?(z=(s==null?void 0:s.ModuleSettings.ModulesAccess.includes("Payments"))&&b.jsx(Mt.Item,{component:"a",target:"_blank",href:"https://payments."+location.host,leftSection:b.jsx($1e,{stroke:1.5,size:20}),px:"md",fz:14,children:e("userMenu.subscription")}),t[37]=s==null?void 0:s.ModuleSettings.ModulesAccess,t[38]=e,t[39]=z):z=t[39];let W;t[40]!==(s==null?void 0:s.AppType)||t[41]!==e?(W=(s==null?void 0:s.AppType)==="saas"&&b.jsxs(b.Fragment,{children:[b.jsx(Mt.Item,{component:"a",target:"_blank",href:"https://preview."+location.host,leftSection:b.jsx(gge,{stroke:1.5,size:20}),px:"md",fz:14,children:e("userMenu.download")}),b.jsx(Mt.Item,{component:"a",target:"_blank",href:location.origin+"/feedback?from=Projects",leftSection:b.jsx($E,{stroke:1.5,size:20}),px:"md",fz:14,children:e("userMenu.feedback")})]}),t[40]=s==null?void 0:s.AppType,t[41]=e,t[42]=W):W=t[42];let K;t[43]===Symbol.for("react.memo_cache_sentinel")?(K=b.jsx(oge,{stroke:1.5,size:20}),t[43]=K):K=t[43];let G;t[44]!==e?(G=e("userMenu.shortcuts"),t[44]=e,t[45]=G):G=t[45];let X;t[46]!==G?(X=b.jsx(Mt.Item,{onClick:g,leftSection:K,px:"md",fz:14,children:G}),t[46]=G,t[47]=X):X=t[47];let J;t[48]===Symbol.for("react.memo_cache_sentinel")?(J=b.jsx(BE,{stroke:1.5,size:20}),t[48]=J):J=t[48];let ne;t[49]!==e?(ne=e("userMenu.logout"),t[49]=e,t[50]=ne):ne=t[50];let se;t[51]!==p||t[52]!==ne?(se=b.jsx(Mt.Item,{onClick:p,leftSection:J,px:"md",fz:14,children:ne}),t[51]=p,t[52]=ne,t[53]=se):se=t[53];let ie;t[54]!==L||t[55]!==U||t[56]!==q||t[57]!==z||t[58]!==W||t[59]!==X||t[60]!==se?(ie=b.jsxs(Mt.Dropdown,{children:[L,F,U,q,z,W,X,se]}),t[54]=L,t[55]=U,t[56]=q,t[57]=z,t[58]=W,t[59]=X,t[60]=se,t[61]=ie):ie=t[61];let oe;t[62]!==ie||t[63]!==T?(oe=b.jsxs(Mt,{shadow:"md",position:"bottom-end",keepMounted:!1,transitionProps:_,children:[T,ie]}),t[62]=ie,t[63]=T,t[64]=oe):oe=t[64];let de;t[65]!==r?(de=r&&b.jsx(h5e,{opened:r,onClose:w}),t[65]=r,t[66]=de):de=t[66];let pe;return t[67]!==oe||t[68]!==de?(pe=b.jsxs(b.Fragment,{children:[oe,de]}),t[67]=oe,t[68]=de,t[69]=pe):pe=t[69],pe};function S5e(t){return t.usersCache.currentUser}function w5e(t){return t.Name==="Admin"}function x5e(){window.location.href=wn.login}const Ck=t=>{const e=be.c(2);let n;return e[0]!==t?(n=b.jsx(it,{height:20,width:100,...t}),e[0]=t,e[1]=n):n=e[1],n},IU=()=>{const t=be.c(18);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={getInitialValueInEffect:!1},t[0]=e):e=t[0];const n=mi("(min-width: 992px)",!0,e);let r,o;t[1]!==n?(r=n?{px:8}:{py:8},o=!n&&b.jsx(p1,{height:16,my:5}),t[1]=n,t[2]=r,t[3]=o):(r=t[2],o=t[3]);const s=n?40:28;let i,l;t[4]===Symbol.for("react.memo_cache_sentinel")?(i=b.jsx(p1,{height:16,width:16,mx:6}),l=b.jsx(p1,{height:16,width:50}),t[4]=i,t[5]=l):(i=t[4],l=t[5]);let c;t[6]!==n?(c=n&&b.jsx(p1,{height:16}),t[6]=n,t[7]=c):c=t[7];let d;t[8]!==c?(d=b.jsxs(qt,{wrap:"nowrap",gap:8,children:[i,l,c]}),t[8]=c,t[9]=d):d=t[9];let f;t[10]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsxs(qt,{wrap:"nowrap",justify:"end",children:[b.jsx(Ck,{}),b.jsx(p1,{height:16,width:16}),b.jsx(p1,{height:24,width:24,mx:2,circle:!0})]}),t[10]=f):f=t[10];let h;t[11]!==s||t[12]!==d?(h=b.jsxs(qt,{grow:!0,mih:s,children:[d,f]}),t[11]=s,t[12]=d,t[13]=h):h=t[13];let p;return t[14]!==r||t[15]!==o||t[16]!==h?(p=b.jsxs(_t,{gap:8,...r,children:[o,h]}),t[14]=r,t[15]=o,t[16]=h,t[17]=p):p=t[17],p},p1=t=>{const e=be.c(3);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={flexShrink:0},e[0]=n):n=e[0];let r;return e[1]!==t?(r=b.jsx(it,{style:n,...t}),e[1]=t,e[2]=r):r=e[2],r},C5e=t=>{const e=be.c(7);let n,r;e[0]!==t?({message:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=b.jsx($E,{size:18}),e[3]=o):o=e[3];const s=n||"";let i;return e[4]!==r||e[5]!==s?(i=b.jsx(Kh,{variant:"light",color:"red",icon:o,...r,children:s}),e[4]=r,e[5]=s,e[6]=i):i=e[6],i},Yr=t=>{const e=be.c(11);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={States:ku(),ReturnDataType:hs.ProjectReturnDataType.Projects},e[0]=n):n=e[0];const{data:r,isFetching:o}=wt.useFetchProjectsQuery(n);let s;e[1]!==(r==null?void 0:r.Projects)?(s=(r==null?void 0:r.Projects)||[],e[1]=r==null?void 0:r.Projects,e[2]=s):s=e[2];let i;e[3]!==s?(i=Eu(s),e[3]=s,e[4]=i):i=e[4];const l=i;let c;e[5]!==t||e[6]!==l?(c=m5(t)&&l.folderEntities[t]||null,e[5]=t,e[6]=l,e[7]=c):c=e[7];const d=c;let f;return e[8]!==o||e[9]!==d?(f={project:d,isFetching:o},e[8]=o,e[9]=d,e[10]=f):f=e[10],f},_5e=t=>{const e=be.c(14),[n,r]=D.useState(""),[o]=iN(n,800),{project:s}=Yr(t==null?void 0:t.projectId);let i;e[0]!==s?(i=$U(s),e[0]=s,e[1]=i):i=e[1];const l=i,c=(t==null?void 0:t.sprintId)??null;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=Gz(),e[2]=d):d=e[2];const f=t==null?void 0:t.exclude;let h;e[3]!==o||e[4]!==l||e[5]!==c||e[6]!==f?(h={projectIds:l,sprintId:c,like:o,performerIds:null,states:d,exclude:f},e[3]=o,e[4]=l,e[5]=c,e[6]=f,e[7]=h):h=e[7];const p=t==null?void 0:t.skip;let v;e[8]!==p?(v={skip:p},e[8]=p,e[9]=v):v=e[9];const g=Ct.endpoints.getTasks.useQuery(h,v);let S;return e[10]!==o||e[11]!==n||e[12]!==g?(S={...g,debouncedQuery:o,query:n,setQuery:r},e[10]=o,e[11]=n,e[12]=g,e[13]=S):S=e[13],S},$U=t=>t?[t.Id,...t.Children.map($U).flat()].filter(Zr):null,T5e=D.createContext({}),E5e=()=>D.useContext(T5e),k5e="_badge_2qdnr_1",M5e={badge:k5e},j5e=t=>{const e=be.c(7),{size:n,withoutHover:r,onClick:o,children:s}=t,i=n===void 0?14:n,l=!r;let c;e[0]!==i?(c=b.jsx($0e,{size:i}),e[0]=i,e[1]=c):c=e[1];let d;return e[2]!==s||e[3]!==o||e[4]!==l||e[5]!==c?(d=b.jsx(pg,{className:M5e.badge,"data-hover":l,leftSection:c,onClick:o,children:s}),e[2]=s,e[3]=o,e[4]=l,e[5]=c,e[6]=d):d=e[6],d},Lh=t=>{const e=be.c(20);let n,r,o,s,i,l;e[0]!==t?({priority:n,withLabel:s,iconSize:i,textSize:l,ref:o,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s,e[5]=i,e[6]=l):(n=e[1],r=e[2],o=e[3],s=e[4],i=e[5],l=e[6]);const c=s===void 0?!0:s,d=i===void 0?20:i,f=l===void 0?"sm":l,{t:h}=at();let p;e[7]!==d||e[8]!==n?(p=D5e[n](d),e[7]=d,e[8]=n,e[9]=p):p=e[9];let v;e[10]!==n||e[11]!==h||e[12]!==f||e[13]!==c?(v=c&&b.jsx(Dt,{size:f,children:h("taskPriorities."+n)}),e[10]=n,e[11]=h,e[12]=f,e[13]=c,e[14]=v):v=e[14];let g;return e[15]!==r||e[16]!==o||e[17]!==p||e[18]!==v?(g=b.jsxs(Lt,{gap:12,ref:o,align:"center",...r,children:[p,v]}),e[15]=r,e[16]=o,e[17]=p,e[18]=v,e[19]=g):g=e[19],g},D5e={1:t=>b.jsx(J1e,{size:t,color:"var(--mantine-color-red-5)"}),2:t=>b.jsx(Yx,{size:t,color:"var(--mantine-color-red-5)"}),3:t=>b.jsx(wge,{size:t,color:"var(--mantine-color-orange-5)"}),4:t=>b.jsx(Cg,{size:t,color:"var(--mantine-color-blue-5)"}),5:t=>b.jsx(G1e,{size:t,color:"var(--mantine-color-blue-5)"})},LU=[1,2,3,4,5],A5e=t=>{const e=be.c(15),{priority:n,withLabel:r,onChange:o,readonly:s}=t,i=r===void 0?!1:r;if(s){let p;return e[0]!==n||e[1]!==i?(p=b.jsx(Lh,{priority:n,withLabel:i,pl:10}),e[0]=n,e[1]=i,e[2]=p):p=e[2],p}let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l={flip:!0,shift:!1},e[3]=l):l=e[3];let c;e[4]!==n||e[5]!==i?(c=b.jsx(Mt.Target,{children:i?b.jsx(In,{fullWidth:!0,justify:"flex-start",variant:"subtle",c:"light-dark(var(--mantine-color-dark-6), var(--mantine-color-dark-0))",size:"compact-md",onClick:R5e,children:b.jsx(Lh,{priority:n,withLabel:i})}):b.jsx(lr,{variant:"subtle",color:"dark",size:"md",onClick:O5e,children:b.jsx(Lh,{priority:n,withLabel:i})})}),e[4]=n,e[5]=i,e[6]=c):c=e[6];let d;e[7]!==o||e[8]!==n?(d=LU.map(p=>b.jsx(Mt.Item,{component:"li",onClick:v=>{v.stopPropagation(),n!==p&&(o==null||o(p))},children:b.jsx(Lh,{priority:p})},p)),e[7]=o,e[8]=n,e[9]=d):d=e[9];let f;e[10]!==d?(f=b.jsx(Mt.Dropdown,{onClick:P5e,children:d}),e[10]=d,e[11]=f):f=e[11];let h;return e[12]!==c||e[13]!==f?(h=b.jsxs(Mt,{position:"bottom-start",shadow:"md",middlewares:l,children:[c,f]}),e[12]=c,e[13]=f,e[14]=h):h=e[14],h};function R5e(t){return t.stopPropagation()}function O5e(t){return t.stopPropagation()}function P5e(t){return t.stopPropagation()}const N5e="_root_1p9cs_1",I5e="_box_1p9cs_23",UO={root:N5e,box:I5e},$5e={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},$1=t=>{const e=be.c(48);let n,r,o,s,i,l,c,d,f;e[0]!==t?({status:l,filled:c,placeholder:o,clickable:n,withLabel:d,iconSize:r,truncate:f,ref:i,...s}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s,e[5]=i,e[6]=l,e[7]=c,e[8]=d,e[9]=f):(n=e[1],r=e[2],o=e[3],s=e[4],i=e[5],l=e[6],c=e[7],d=e[8],f=e[9]);const h=c===void 0?!0:c,p=d===void 0?!0:d,v=f===void 0?!1:f,{t:g}=at(),S=Lr();let w,_,E;if(e[10]!==n||e[11]!==h||e[12]!==o||e[13]!==s||e[14]!==i||e[15]!==l||e[16]!==g||e[17]!==S||e[18]!==v){E=Symbol.for("react.early_return_sentinel");e:{w=dr(l==null?void 0:l.Color,S);let R;t:{if(g1(cc({color:(l==null?void 0:l.Color)||S.primaryColor,theme:S}).value,.6)){R="#343A40";break t}R="#fff"}const N=R;let I;if(e[22]!==o||e[23]!==(l==null?void 0:l.Name)||e[24]!==g?(I=(l==null?void 0:l.Name)??o??g("nodata.noStatuses.subtitle"),e[22]=o,e[23]=l==null?void 0:l.Name,e[24]=g,e[25]=I):I=e[25],_=I,h){const L={"--badge-bg":w,"--badge-bg-hover":Zy(w,.1),"--badge-color":N,...s.style},F=v?$5e:void 0;let H;e[26]!==_||e[27]!==F?(H=b.jsx("div",{style:F,children:_}),e[26]=_,e[27]=F,e[28]=H):H=e[28];let B;e[29]!==n||e[30]!==s||e[31]!==i||e[32]!==L||e[33]!==H?(B=b.jsx(je,{miw:0,...s,ref:i,className:UO.root,"data-clickable":n,style:L,children:H}),e[29]=n,e[30]=s,e[31]=i,e[32]=L,e[33]=H,e[34]=B):B=e[34],E=B;break e}}e[10]=n,e[11]=h,e[12]=o,e[13]=s,e[14]=i,e[15]=l,e[16]=g,e[17]=S,e[18]=v,e[19]=w,e[20]=_,e[21]=E}else w=e[19],_=e[20],E=e[21];if(E!==Symbol.for("react.early_return_sentinel"))return E;const T=r?r+"px":void 0,M=r?r+"px":void 0;let j;e[35]!==w||e[36]!==T||e[37]!==M?(j=b.jsx(je,{className:UO.box,style:{width:T,height:M,"--badge-bg":w}}),e[35]=w,e[36]=T,e[37]=M,e[38]=j):j=e[38];let A;e[39]!==_||e[40]!==v||e[41]!==p?(A=p&&b.jsx(Dt,{truncate:v,fz:14,fw:400,children:_}),e[39]=_,e[40]=v,e[41]=p,e[42]=A):A=e[42];let k;return e[43]!==s||e[44]!==i||e[45]!==j||e[46]!==A?(k=b.jsxs(Lt,{gap:8,ref:i,fz:14,...s,children:[j,A]}),e[43]=s,e[44]=i,e[45]=j,e[46]=A,e[47]=k):k=e[47],k},FU=t=>{const e=be.c(10),{message:n}=t,{t:r}=at();let o;e[0]!==r?(o=r("nodata.noStatuses.title"),e[0]=r,e[1]=o):o=e[1];let s;e[2]!==o?(s=b.jsx(Dt,{mb:8,fw:"bold",children:o}),e[2]=o,e[3]=s):s=e[3];let i;e[4]!==n||e[5]!==r?(i=n||r("nodata.noStatuses.description"),e[4]=n,e[5]=r,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==i?(l=b.jsxs(Kh,{variant:"light",color:"gray",children:[s,i]}),e[7]=s,e[8]=i,e[9]=l):l=e[9],l},L5e=t=>{const e=be.c(30),{value:n,onChange:r,statuses:o,placeholder:s,readonly:i,filled:l,withLabel:c,iconSize:d,target:f}=t,h=d===void 0?20:d;let p;if(e[0]!==o||e[1]!==n){let T;e[3]!==n?(T=M=>M.Id===n,e[3]=n,e[4]=T):T=e[4],p=o.find(T),e[0]=o,e[1]=n,e[2]=p}else p=e[2];const v=p;if(i){let T;return e[5]!==l||e[6]!==h||e[7]!==s||e[8]!==v||e[9]!==f||e[10]!==c?(T=f||b.jsx(je,{w:120,children:b.jsx($1,{truncate:!0,iconSize:h,withLabel:c,filled:l,placeholder:s,status:v,w:"fit-content",maw:120})}),e[5]=l,e[6]=h,e[7]=s,e[8]=v,e[9]=f,e[10]=c,e[11]=T):T=e[11],T}let g;e[12]!==l||e[13]!==h||e[14]!==s||e[15]!==v||e[16]!==f||e[17]!==c?(g=b.jsx(Mt.Target,{children:f?b.jsx(qt,{children:f}):b.jsx(je,{maw:140,miw:52,onClick:F5e,children:b.jsx($1,{truncate:!0,iconSize:h,withLabel:c,filled:l,clickable:!0,placeholder:s,status:v,w:"fit-content",maw:140,miw:52})})}),e[12]=l,e[13]=h,e[14]=s,e[15]=v,e[16]=f,e[17]=c,e[18]=g):g=e[18];let S;e[19]===Symbol.for("react.memo_cache_sentinel")?(S={overflow:"auto"},e[19]=S):S=e[19];let w;e[20]!==h||e[21]!==r||e[22]!==o||e[23]!==n?(w=o.length>0?o.map(T=>b.jsx(Mt.Item,{component:"li",onClick:M=>{M.stopPropagation(),n!==T.Id&&(r==null||r(T))},children:b.jsx($1,{status:T,filled:!1,iconSize:h})},T.Id)):b.jsx(FU,{}),e[20]=h,e[21]=r,e[22]=o,e[23]=n,e[24]=w):w=e[24];let _;e[25]!==w?(_=b.jsx(Mt.Dropdown,{mah:250,style:S,onClick:z5e,children:w}),e[25]=w,e[26]=_):_=e[26];let E;return e[27]!==g||e[28]!==_?(E=b.jsxs(Mt,{shadow:"md",withinPortal:!0,keepMounted:!1,position:"bottom-start",children:[g,_]}),e[27]=g,e[28]=_,e[29]=E):E=e[29],E};function F5e(t){return t.stopPropagation()}function z5e(t){return t.stopPropagation()}const U5e=()=>{var o;const{data:t,isFetching:e}=wt.useFetchProjectsQuery({States:ku(),ReturnDataType:hs.ProjectReturnDataType.Projects}),n=Eu((t==null?void 0:t.Projects)||[]);return{types:((o=li.useGetTaskTypesQuery({ProjectIds:Object.values((n==null?void 0:n.folderEntities)||[]).filter(s=>ft(s,"isProject")).map(s=>s.Id)},{skip:!n}).data)==null?void 0:o.list)||[],isFetching:e}},B5e=t=>{const e=be.c(7),{types:n}=U5e(),{data:r}=li.useGetDefaultQuery();let o;e[0]!==t||e[1]!==n?(o=Bh(n,["Id",t]),e[0]=t,e[1]=n,e[2]=o):o=e[2];const s=o;let i,l;return e[3]!==r||e[4]!==n?(i=Bh(r,["Name","Task"]),l=i?Bh(n,["PatternId",i.Id]):void 0,e[3]=r,e[4]=n,e[5]=i,e[6]=l):(i=e[5],l=e[6]),s??l??i},L1=t=>{const e=be.c(23);let n,r,o,s,i,l,c;e[0]!==t?({type:c,withLabel:s,iconSize:i,placeholder:n,textSize:l,ref:o,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s,e[5]=i,e[6]=l,e[7]=c):(n=e[1],r=e[2],o=e[3],s=e[4],i=e[5],l=e[6],c=e[7]);const d=s===void 0?!0:s,f=i===void 0?20:i,h=l===void 0?"sm":l,p=c==null?void 0:c.Name,v=c==null?void 0:c.Color,g=c==null?void 0:c.IconId;let S;e[8]!==f||e[9]!==p||e[10]!==v||e[11]!==g?(S=b.jsx(y5,{size:f,name:p,color:v,icon:g}),e[8]=f,e[9]=p,e[10]=v,e[11]=g,e[12]=S):S=e[12];let w;e[13]!==n||e[14]!==h||e[15]!==(c==null?void 0:c.Name)||e[16]!==d?(w=d&&b.jsx(Dt,{size:h,children:(c==null?void 0:c.Name)||n}),e[13]=n,e[14]=h,e[15]=c==null?void 0:c.Name,e[16]=d,e[17]=w):w=e[17];let _;return e[18]!==r||e[19]!==o||e[20]!==S||e[21]!==w?(_=b.jsxs(Lt,{gap:12,ref:o,c:"light-dark(var(--mantine-color-gray-8), var(--mantine-color-dark-0))",...r,children:[S,w]}),e[18]=r,e[19]=o,e[20]=S,e[21]=w,e[22]=_):_=e[22],_},zU=t=>{const e=be.c(10),{message:n}=t,{t:r}=at();let o;e[0]!==r?(o=r("nodata.noTypes.title"),e[0]=r,e[1]=o):o=e[1];let s;e[2]!==o?(s=b.jsx(Dt,{mb:8,fw:"bold",children:o}),e[2]=o,e[3]=s):s=e[3];let i;e[4]!==n||e[5]!==r?(i=n||r("nodata.noTypes.description"),e[4]=n,e[5]=r,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==i?(l=b.jsxs(Kh,{variant:"light",color:"gray",children:[s,i]}),e[7]=s,e[8]=i,e[9]=l):l=e[9],l},H5e=D.memo(t=>{const e=be.c(51);let n,r,o,s,i,l,c,d,f,h,p,v;e[0]!==t?({value:p,task:f,onChange:o,types:h,className:n,withLabel:v,placeholder:s,readonly:l,iconSize:d,menuProps:r,ref:c,...i}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s,e[5]=i,e[6]=l,e[7]=c,e[8]=d,e[9]=f,e[10]=h,e[11]=p,e[12]=v):(n=e[1],r=e[2],o=e[3],s=e[4],i=e[5],l=e[6],c=e[7],d=e[8],f=e[9],h=e[10],p=e[11],v=e[12]);const g=d===void 0?20:d,S=B5e(f==null?void 0:f.TypeId);let w;e[13]!==S||e[14]!==h||e[15]!==p?(w=h.find(L=>L.Id===p)||S,e[13]=S,e[14]=h,e[15]=p,e[16]=w):w=e[16];const _=w;if(l){let L;return e[17]!==n||e[18]!==g||e[19]!==s||e[20]!==i||e[21]!==_||e[22]!==v?(L=b.jsx(L1,{iconSize:g,className:n,withLabel:v,type:_,placeholder:s,...i}),e[17]=n,e[18]=g,e[19]=s,e[20]=i,e[21]=_,e[22]=v,e[23]=L):L=e[23],L}let E;e[24]!==n||e[25]!==g||e[26]!==s||e[27]!==_?(E=b.jsx(L1,{iconSize:g,className:n,withLabel:!1,type:_,placeholder:s}),e[24]=n,e[25]=g,e[26]=s,e[27]=_,e[28]=E):E=e[28];const T=E;let M;e[29]===Symbol.for("react.memo_cache_sentinel")?(M={mainAxis:6,crossAxis:-13},e[29]=M):M=e[29];let j;e[30]!==T||e[31]!==g||e[32]!==s||e[33]!==(_==null?void 0:_.Name)||e[34]!==v?(j=v?b.jsx(b.Fragment,{children:b.jsx(In,{variant:"subtle",color:"dark",leftSection:T,children:b.jsx(Dt,{size:"sm",children:(_==null?void 0:_.Name)||s})})}):b.jsx(lr,{variant:"subtle",color:"dark",size:g+8,children:T}),e[30]=T,e[31]=g,e[32]=s,e[33]=_==null?void 0:_.Name,e[34]=v,e[35]=j):j=e[35];let A;e[36]!==i||e[37]!==j?(A=b.jsx(Mt.Target,{children:b.jsx(Lt,{gap:8,onClick:q5e,...i,children:j})}),e[36]=i,e[37]=j,e[38]=A):A=e[38];let k;e[39]===Symbol.for("react.memo_cache_sentinel")?(k={overflow:"auto"},e[39]=k):k=e[39];let R;e[40]!==o||e[41]!==h||e[42]!==p?(R=h.length>0?h.map(L=>b.jsx(Mt.Item,{component:"li",onClick:()=>{p!==L.Id&&(o==null||o(L.Id))},children:b.jsx(L1,{type:L})},L.Id)):b.jsx(zU,{}),e[40]=o,e[41]=h,e[42]=p,e[43]=R):R=e[43];let N;e[44]!==c||e[45]!==R?(N=b.jsx(Mt.Dropdown,{miw:200,mah:250,style:k,ref:c,onClick:V5e,children:R}),e[44]=c,e[45]=R,e[46]=N):N=e[46];let I;return e[47]!==r||e[48]!==A||e[49]!==N?(I=b.jsxs(Mt,{shadow:"md",keepMounted:!1,position:"bottom-start",offset:M,...r,children:[A,N]}),e[47]=r,e[48]=A,e[49]=N,e[50]=I):I=e[50],I});function q5e(t){return t.stopPropagation()}function V5e(t){return t.stopPropagation()}const N8=t=>{const e=be.c(14);let n,r,o,s,i;e[0]!==t?({user:i,size:o,hoverCardProps:s,ref:r,...n}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s,e[5]=i):(n=e[1],r=e[2],o=e[3],s=e[4],i=e[5]);const l=o===void 0?24:o;let c;e[6]!==s?(c=s===void 0?{}:s,e[6]=s,e[7]=c):c=e[7];const d=c;let f;return e[8]!==d||e[9]!==n||e[10]!==r||e[11]!==l||e[12]!==i?(f=i?b.jsx(CL,{email:i.Email||void 0,name:i.Name,hoverCardProps:d,children:b.jsx(x4,{user:i,size:l,ref:r,...n})}):b.jsx(x4,{size:l,ref:r,...n}),e[8]=d,e[9]=n,e[10]=r,e[11]=l,e[12]=i,e[13]=f):f=e[13],f},UU=t=>{const e=be.c(26);let n,r,o,s,i;e[0]!==t?({user:i,fullInfo:n,isCardDisabled:o,showMe:s,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s,e[5]=i):(n=e[1],r=e[2],o=e[3],s=e[4],i=e[5]);const l=o===void 0?!1:o,c=s===void 0?!0:s,{t:d}=at(),{isOverflown:f,checkOverflown:h}=g5(),{currentUser:p}=tn(Y5e),v=c&&(i==null?void 0:i.Id)===p.Id;let g;e[6]!==v||e[7]!==d||e[8]!==(i==null?void 0:i.Name)?(g=v?d("currentUser.me"):(i==null?void 0:i.Name)||d("members.notAssigned"),e[6]=v,e[7]=d,e[8]=i==null?void 0:i.Name,e[9]=g):g=e[9];const S=g,w=n?34:24;let _;e[10]!==l?(_={disabled:l},e[10]=l,e[11]=_):_=e[11];let E;e[12]!==w||e[13]!==_||e[14]!==i?(E=b.jsx(N8,{size:w,user:i,hoverCardProps:_}),e[12]=w,e[13]=_,e[14]=i,e[15]=E):E=e[15];let T;e[16]!==h||e[17]!==n||e[18]!==f||e[19]!==S||e[20]!==(i==null?void 0:i.Email)?(T=n?b.jsxs(_t,{flex:1,gap:0,miw:0,children:[b.jsx(yi,{disabled:!f,label:S,position:"top",withArrow:!0,children:b.jsx(Dt,{fz:14,lh:"18px",onMouseEnter:h,truncate:!0,children:S})}),b.jsx(yi,{disabled:!f,label:i==null?void 0:i.Email,position:"top",withArrow:!0,children:b.jsx(Dt,{fz:12,lh:"16px",c:"gray.6",onMouseEnter:h,truncate:!0,children:i==null?void 0:i.Email})})]}):b.jsx(Dt,{style:{width:"100%",whiteSpace:"nowrap",textAlign:"left"},c:"light-dark(var(--mantine-color-dark-4), var(--mantine-color-dark-0))",size:"sm",truncate:"end",children:S}),e[16]=h,e[17]=n,e[18]=f,e[19]=S,e[20]=i==null?void 0:i.Email,e[21]=T):T=e[21];let M;return e[22]!==r||e[23]!==E||e[24]!==T?(M=b.jsxs(Lt,{align:"center",gap:8,pl:0,w:"100%",...r,children:[E,T]}),e[22]=r,e[23]=E,e[24]=T,e[25]=M):M=e[25],M};function Y5e(t){return t[Dd.reducerPath]}const G5e="_dropdown_15pgq_1",W5e="_dropdownScroll_15pgq_4",Q5e="_dropdownScrollViewport_15pgq_9",K5e="_dropdownOption_15pgq_15",Sw={dropdown:G5e,dropdownScroll:W5e,dropdownScrollViewport:Q5e,dropdownOption:K5e},X5e=({value:t,onChange:e,projectId:n,onSearch:r})=>{const{t:o}=at(),[s,i]=D.useState(""),[l]=iN(s,200),c=tn(_=>_.usersCache.currentUser.Id),{project:d}=Yr(n),{data:f,isLoading:h}=Vh.useGetByIdQuery({ids:(d==null?void 0:d.UserIds)||[]},{skip:!(d!=null&&d.UserIds.length)}),p=D.useMemo(()=>{const _=f==null?void 0:f.map(E=>({...E,isCurrent:E.Id===c,isPerformer:t==null?void 0:t.some(T=>T.Id===E.Id)}));return Fs(_,["isPerformer","isCurrent","Name"],["desc","desc","asc"])},[t,c,f]),[v,g]=D.useState(p),S=D.useMemo(()=>v.filter(_=>_.Name.toLowerCase().includes(l.trim().toLowerCase())),[v,l]),w=D.useMemo(()=>S.length?S.map(E=>{const T=(t||[]).some(M=>M.Id===E.Id);return b.jsxs(Ht.Option,{value:E.Id.toString(),onClick:()=>e==null?void 0:e(qz(t,[E],"Id")),className:Sw.dropdownOption,bg:T?"var(--mantine-primary-color-light-hover)":void 0,children:[b.jsx(UU,{user:E,style:{minWidth:0}}),b.jsx(ef,{size:"xs",checked:T})]},E.Id)}):b.jsx(Ht.Empty,{children:o("nodata.noResults.subtitle")}),[S,o,t,e]);return D.useEffect(()=>{h||g(p)},[h]),b.jsxs(b.Fragment,{children:[b.jsx(dp,{active:!0,children:b.jsx(Is,{my:8,mx:16,placeholder:o("createTask.fields.performer.search"),value:s,onChange:_=>{r==null||r(),i(_.currentTarget.value)},rightSection:h&&b.jsx(va,{size:18})})}),b.jsxs(qt,{justify:"space-between",pl:16,pr:2,children:[b.jsx(bg,{order:6,tt:"uppercase",fz:11,fw:400,c:"gray",children:o("createTask.fields.performer.contacts")}),b.jsx(In,{disabled:!(t!=null&&t.length),variant:"transparent",bg:"transparent",size:"xs",fw:500,onClick:()=>e==null?void 0:e([]),children:o("createTask.fields.performer.action.clear")})]}),b.jsx(Ht.Options,{children:b.jsx(Hi.Autosize,{className:Sw.dropdownScroll,classNames:{viewport:Sw.dropdownScrollViewport},mah:200,type:"scroll",scrollbars:"y",children:w})})]})},I8=t=>{const e=be.c(12),{value:n,compact:r,isCardDisabled:o,showCount:s}=t,i=s===void 0?3:s,l=tn(Z5e);let c;if(e[0]!==l||e[1]!==i||e[2]!==n){e:{const p=n==null?void 0:n.map(_=>({..._,isCurrent:_.Id===l})),v=Fs(p,["isCurrent","Name"],["desc","asc"]);if(v.length<=i){c={users:v,hiddenUsers:[]};break e}const g=v.slice(0,i-1),S=v.slice(i-1);let w;e[4]!==S||e[5]!==g?(w={users:g,hiddenUsers:S},e[4]=S,e[5]=g,e[6]=w):w=e[6],c=w}e[0]=l,e[1]=i,e[2]=n,e[3]=c}else c=e[3];const{users:d,hiddenUsers:f}=c;let h;return e[7]!==r||e[8]!==f||e[9]!==o||e[10]!==d?(h=b.jsx(b.Fragment,{children:d.length>1?b.jsxs(gi.Group,{spacing:"sm",children:[d.map(p=>b.jsx(N8,{size:28,user:p,hoverCardProps:{disabled:o}},p.Id)),f.length>0&&b.jsx(gi,{size:28,color:"blue",styles:{placeholder:{background:"var(--mantine-color-body)"}},style:{border:"1px solid var(--mantine-color-blue-6)"},children:f.length>99?"99+":`+${f.length}`})]}):r?b.jsx(N8,{user:d[0],hoverCardProps:{disabled:o}}):b.jsx(UU,{w:"undefined",user:d[0],isCardDisabled:o})}),e[7]=r,e[8]=f,e[9]=o,e[10]=d,e[11]=h):h=e[11],h};function Z5e(t){return t.usersCache.currentUser.Id}const BU=t=>{const e=be.c(36),{value:n,onChange:r,compact:o,projectId:s,readonly:i,offset:l,showCount:c,width:d,variant:f,target:h}=t,p=c===void 0?3:c,v=f===void 0?"subtle":f;let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g={getInitialValueInEffect:!0},e[0]=g):g=e[0];const S=ag("light",g)==="light",[w,_]=D.useState(!1);let E;e[1]!==w?(E={opened:w,onOpenedChange:_},e[1]=w,e[2]=E):E=e[2];const T=fp(E);let M;e[3]!==T?(M=I=>{I.stopPropagation(),T.toggleDropdown()},e[3]=T,e[4]=M):M=e[4];const j=M;if(i){const I=o?5:9;let L;e[5]!==o||e[6]!==w||e[7]!==p||e[8]!==n?(L=b.jsx(I8,{value:n,compact:o,isCardDisabled:w,showCount:p}),e[5]=o,e[6]=w,e[7]=p,e[8]=n,e[9]=L):L=e[9];let F;return e[10]!==I||e[11]!==L||e[12]!==d?(F=b.jsx(je,{w:d,px:I,children:L}),e[10]=I,e[11]=L,e[12]=d,e[13]=F):F=e[13],F}let A;e[14]!==o||e[15]!==j||e[16]!==S||e[17]!==w||e[18]!==p||e[19]!==h||e[20]!==n||e[21]!==v||e[22]!==d?(A=b.jsx(Ht.Target,{children:h?b.jsx(qt,{onClick:j,children:h}):b.jsx(In,{fullWidth:!o,justify:"flex-start",variant:v,size:v==="filled"?"md":"sm",color:v==="filled"?S?"gray.1":"dark.5":"dark.2",px:o?5:9,onClick:j,w:d,children:b.jsx(I8,{value:n,compact:o,isCardDisabled:w,showCount:p})})}),e[14]=o,e[15]=j,e[16]=S,e[17]=w,e[18]=p,e[19]=h,e[20]=n,e[21]=v,e[22]=d,e[23]=A):A=e[23];let k;e[24]!==r?(k=I=>{r==null||r(I)},e[24]=r,e[25]=k):k=e[25];let R;e[26]!==T.updateSelectedOptionIndex||e[27]!==s||e[28]!==k||e[29]!==n?(R=b.jsx(Ht.Dropdown,{className:Sw.dropdown,onClick:J5e,miw:300,maw:300,children:b.jsx(X5e,{value:n,projectId:s,onChange:k,onSearch:T.updateSelectedOptionIndex})}),e[26]=T.updateSelectedOptionIndex,e[27]=s,e[28]=k,e[29]=n,e[30]=R):R=e[30];let N;return e[31]!==T||e[32]!==l||e[33]!==A||e[34]!==R?(N=b.jsxs(Ht,{keepMounted:!1,store:T,position:"bottom-end",offset:l,shadow:"md",onClose:T.closeDropdown,children:[A,R]}),e[31]=T,e[32]=l,e[33]=A,e[34]=R,e[35]=N):N=e[35],N};function J5e(t){return t.stopPropagation()}const Y2=()=>{const t=ru("folderId"),{project:e}=Yr(t);return e},v5=t=>{const e=be.c(8);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={States:ku(),ReturnDataType:hs.ProjectReturnDataType.Projects},e[0]=n):n=e[0];const{data:r}=wt.useFetchProjectsQuery(n);let o;e[1]!==(r==null?void 0:r.Projects)?(o=(r==null?void 0:r.Projects)||[],e[1]=r==null?void 0:r.Projects,e[2]=o):o=e[2];let s;e[3]!==o?(s=Eu(o),e[3]=o,e[4]=s):s=e[4];const i=s;let l;return e[5]!==t||e[6]!==i.sprintEntities?(l=m5(t)&&i.sprintEntities[t]||null,e[5]=t,e[6]=i.sprintEntities,e[7]=l):l=e[7],l},G2=()=>{const t=ru("sprintId");return v5(t)},eCe=t=>{const e=Qi(),n=!!Li(wn.sprintKanban,e.pathname),r=n?"kanban":void 0,o=G2(),s=Y2(),i=o??s,{project:l}=Yr(i==null?void 0:i.rootProjectId),c=o?Ie.Entity.Sprint:Ie.Entity.Project,d=l==null?void 0:l.Settings.EnabledFeatures.includes("Attributes"),[f]=Hh.useUpdateViewMutation(),{data:h,isLoading:p}=Hh.useGetViewQuery({id:(i==null?void 0:i.Id)??0,type:c,view:r},{skip:!(i!=null&&i.Id)}),v=D.useMemo(()=>Bh(h,["EntityId",i==null?void 0:i.Id]),[h,i==null?void 0:i.Id]),g=D.useMemo(()=>v!=null&&v.Value&&!no(v.Value)?v.Value:{},[v==null?void 0:v.Value]),S=D.useMemo(()=>tCe(g),[g]),w=D.useMemo(()=>S.filter(k=>!isNaN(Number(k))).map(Number),[S]),_=(t==null?void 0:t.skipAttributesCheck)||!!w.length,{data:E,isLoading:T}=wt.useGetAttributesQuery({projectId:(i==null?void 0:i.rootProjectId)??0},{skip:!d||!(i!=null&&i.rootProjectId)||!_}),M=D.useMemo(()=>E||[],[E]),j=D.useCallback(k=>{i!=null&&i.Id&&f({Id:v==null?void 0:v.Id,EntityId:i.Id,EntityType:c,Type:r,Value:k})},[i==null?void 0:i.Id,v==null?void 0:v.Id,c,r,f]),A=DV(j,200);return{entity:i,generic:g,fieldIds:S,attributeIds:w,attributes:M,isLoading:p||T,isKanban:n,onChange:A}},tCe=t=>{const e=Object.entries(t).map(([r,o])=>({id:r,order:o.order,value:o.display})),n=Dg(N1(Fs(e,"order"),"value"),"id");return n.length?n:["type","code","name","status","archive","priority","performer"]},$8=t=>t.includes(ii.rejected)?ii.rejected:t.includes(ii.pending)?ii.pending:t.every(e=>e===ii.fulfilled)?ii.fulfilled:ii.uninitialized,HU=()=>{var k;const t=be.c(29),{t:e}=at(),{data:n,status:r}=zi.useGetQuery(),{data:o,status:s}=zi.useGetTimezonesQuery();let i;t[0]!==(n==null?void 0:n.Timezone.Id)||t[1]!==o?(i=(k=Bh(o,["Id",n==null?void 0:n.Timezone.Id]))==null?void 0:k.Name,t[0]=n==null?void 0:n.Timezone.Id,t[1]=o,t[2]=i):i=t[2];const l=i;let c;t[3]!==r||t[4]!==s?(c=$8([r,s]),t[3]=r,t[4]=s,t[5]=c):c=t[5];const d=c===ii.pending;let f;t[6]!==l?(f=(R,N)=>{const I=ww(R)?new Date(R):new Date;return Ag(N)||!(N!=null&&N.useTimezone)?I:new Date(I.toLocaleString("en-US",{timeZone:l}))},t[6]=l,t[7]=f):f=t[7];const h=f;let p;t[8]!==h?(p=R=>dpe(R,{in:N=>h(N,{useTimezone:!0})}),t[8]=h,t[9]=p):p=t[9];const v=p;let g;t[10]!==h?(g=R=>hpe(R,{in:N=>h(N,{useTimezone:!0})}),t[10]=h,t[11]=g):g=t[11];const S=g;let w;t[12]!==h?(w=R=>jE(R,h(null,{useTimezone:!0})),t[12]=h,t[13]=w):w=t[13];const _=w;let E;t[14]!==h||t[15]!==v||t[16]!==S||t[17]!==e?(E=(R,N)=>{const I=kF(R,h(null,N));return v(R)?e("dates.today"):S(R)?e("dates.yesterday"):Math.abs(I)<8?`${Math.abs(I)} ${e("dates.daysShort")}${I<0?` ${e("common.ago")}`:""}`:u4(R,HO.long)},t[14]=h,t[15]=v,t[16]=S,t[17]=e,t[18]=E):E=t[18];const T=E;let M;t[19]!==T||t[20]!==h||t[21]!==d?(M=(R,N)=>{const I=R&&h(R,N),L=nCe(I,N);return ww(I)?d?"...":L.format==="dynamic"?ww(R)?T(R,N):L.invalidValue:u4(I,HO[L.format]):L.invalidValue},t[19]=T,t[20]=h,t[21]=d,t[22]=M):M=t[22];const j=M;let A;return t[23]!==j||t[24]!==h||t[25]!==_||t[26]!==v||t[27]!==S?(A={formatDate:j,getDate:h,isToday:v,isYesterday:S,isPast:_},t[23]=j,t[24]=h,t[25]=_,t[26]=v,t[27]=S,t[28]=A):A=t[28],A},qU=t=>new Date(new Date(t).valueOf()-new Date(t).getTimezoneOffset()*60*1e3).toISOString(),BO=t=>{const e=ww(t)?new Date(t):new Date;return new Date(e.valueOf()+e.getTimezoneOffset()*60*1e3)},ww=t=>!Fz(t),nCe=(t,e)=>{const n={format:upe(t??"")?"short":"long",invalidValue:"",useTimezone:!1};return Uz(n,Ag(e)?{format:e}:e)},HO={short:"d MMM",long:"dd.MM.y",longWithTime:"Pp"},rCe=t=>{const e=be.c(18);let n,r,o,s;e[0]!==t?({value:s,onClear:n,ref:r,...o}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s):(n=e[1],r=e[2],o=e[3],s=e[4]);const{formatDate:i}=HU();let l;e[5]!==i||e[6]!==s?(l=i(s),e[5]=i,e[6]=s,e[7]=l):l=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx(rf,{variant:"transparent",color:"gray.5",size:"xs",children:b.jsx(A1e,{})}),e[8]=c):c=e[8];let d;e[9]!==n||e[10]!==s?(d=s&&b.jsx(al,{variant:"transparent",size:"sm",onClick:n}),e[9]=n,e[10]=s,e[11]=d):d=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f={input:{textOverflow:"ellipsis"}},e[12]=f):f=e[12];let h;return e[13]!==r||e[14]!==o||e[15]!==l||e[16]!==d?(h=b.jsx(Is,{ref:r,value:l,readOnly:!0,leftSection:c,rightSection:d,styles:f,...o}),e[13]=r,e[14]=o,e[15]=l,e[16]=d,e[17]=h):h=e[17],h};function oCe({direction:t,levelIndex:e,rowIndex:n,cellIndex:r,size:o}){switch(t){case"up":return e===0&&n===0?null:n===0?{levelIndex:e-1,rowIndex:r<=o[e-1][o[e-1].length-1]-1?o[e-1].length-1:o[e-1].length-2,cellIndex:r}:{levelIndex:e,rowIndex:n-1,cellIndex:r};case"down":return n===o[e].length-1?{levelIndex:e+1,rowIndex:0,cellIndex:r}:n===o[e].length-2&&r>=o[e][o[e].length-1]?{levelIndex:e+1,rowIndex:0,cellIndex:r}:{levelIndex:e,rowIndex:n+1,cellIndex:r};case"left":return e===0&&n===0&&r===0?null:n===0&&r===0?{levelIndex:e-1,rowIndex:o[e-1].length-1,cellIndex:o[e-1][o[e-1].length-1]-1}:r===0?{levelIndex:e,rowIndex:n-1,cellIndex:o[e][n-1]-1}:{levelIndex:e,rowIndex:n,cellIndex:r-1};case"right":return n===o[e].length-1&&r===o[e][n]-1?{levelIndex:e+1,rowIndex:0,cellIndex:0}:r===o[e][n]-1?{levelIndex:e,rowIndex:n+1,cellIndex:0}:{levelIndex:e,rowIndex:n,cellIndex:r+1};default:return{levelIndex:e,rowIndex:n,cellIndex:r}}}function VU({controlsRef:t,direction:e,levelIndex:n,rowIndex:r,cellIndex:o,size:s}){var c,d,f;const i=oCe({direction:e,size:s,rowIndex:r,cellIndex:o,levelIndex:n});if(!i)return;const l=(f=(d=(c=t.current)==null?void 0:c[i.levelIndex])==null?void 0:d[i.rowIndex])==null?void 0:f[i.cellIndex];l&&(l.disabled||l.getAttribute("data-hidden")||l.getAttribute("data-outside")?VU({controlsRef:t,direction:e,levelIndex:i.levelIndex,cellIndex:i.cellIndex,rowIndex:i.rowIndex,size:s}):l.focus())}function sCe(t){switch(t){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function iCe(t){var e;return(e=t.current)==null?void 0:e.map(n=>n.map(r=>r.length))}function _k({controlsRef:t,levelIndex:e,rowIndex:n,cellIndex:r,event:o}){const s=sCe(o.key);if(s){o.preventDefault();const i=iCe(t);VU({controlsRef:t,direction:s,levelIndex:e,rowIndex:n,cellIndex:r,size:i})}}function Za(t){return t==null||t===""?t:rt(t).format("YYYY-MM-DD")}function aCe(t){return t==null||t===""?t:rt(t).format("YYYY-MM-DD HH:mm:ss")}const YU={locale:"en",firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},GU=D.createContext(YU);function lCe({settings:t,children:e}){return b.jsx(GU.Provider,{value:{...YU,...t},children:e})}function wp(){const t=D.useContext(GU),e=D.useCallback(s=>s||t.locale,[t.locale]),n=D.useCallback(s=>typeof s=="number"?s:t.firstDayOfWeek,[t.firstDayOfWeek]),r=D.useCallback(s=>Array.isArray(s)?s:t.weekendDays,[t.weekendDays]),o=D.useCallback(s=>typeof s=="string"?s:t.labelSeparator,[t.labelSeparator]);return{...t,getLocale:e,getFirstDayOfWeek:n,getWeekendDays:r,getLabelSeparator:o}}var WU={day:"m_396ce5cb"};const cCe=(t,{size:e})=>({day:{"--day-size":an(e,"day-size")}}),Tk=Ve((t,e)=>{const n=Ae("Day",null,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,date:d,disabled:f,__staticSelector:h,weekend:p,outside:v,selected:g,renderDay:S,inRange:w,firstInRange:_,lastInRange:E,hidden:T,static:M,highlightToday:j,attributes:A,...k}=n,R=pt({name:h||"Day",classes:WU,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:A,vars:c,varsResolver:cCe,rootSelector:"day"});return b.jsx(Yo,{...R("day",{style:T?{display:"none"}:void 0}),component:M?"div":"button",ref:e,disabled:f,"data-today":rt(d).isSame(new Date,"day")||void 0,"data-hidden":T||void 0,"data-highlight-today":j||void 0,"data-disabled":f||void 0,"data-weekend":!f&&!v&&p||void 0,"data-outside":!f&&v||void 0,"data-selected":!f&&g||void 0,"data-in-range":w&&!f||void 0,"data-first-in-range":_&&!f||void 0,"data-last-in-range":E&&!f||void 0,"data-static":M||void 0,unstyled:l,...k,children:(S==null?void 0:S(d))||rt(d).date()})});Tk.classes=WU;Tk.displayName="@mantine/dates/Day";function uCe({locale:t,format:e="dd",firstDayOfWeek:n=1}){const r=rt().day(n),o=[];for(let s=0;s<7;s+=1)typeof e=="string"?o.push(rt(r).add(s,"days").locale(t).format(e)):o.push(e(rt(r).add(s,"days").format("YYYY-MM-DD")));return o}var QU={weekday:"m_18a3eca"};const dCe=(t,{size:e})=>({weekdaysRow:{"--wr-fz":eo(e),"--wr-spacing":co(e)}}),Ek=Ve((t,e)=>{const n=Ae("WeekdaysRow",null,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,locale:d,firstDayOfWeek:f,weekdayFormat:h,cellComponent:p="th",__staticSelector:v,withWeekNumbers:g,attributes:S,...w}=n,_=pt({name:v||"WeekdaysRow",classes:QU,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:S,vars:c,varsResolver:dCe,rootSelector:"weekdaysRow"}),E=wp(),T=uCe({locale:E.getLocale(d),format:h,firstDayOfWeek:E.getFirstDayOfWeek(f)}).map((M,j)=>b.jsx(p,{..._("weekday"),children:M},j));return b.jsxs(je,{component:"tr",ref:e,..._("weekdaysRow"),...w,children:[g&&b.jsx(p,{..._("weekday"),children:"#"}),T]})});Ek.classes=QU;Ek.displayName="@mantine/dates/WeekdaysRow";function fCe(t,e=1){let n=rt(t);if(!n.isValid())return n;const r=e===0?6:e-1;for(;n.day()!==r;)n=n.add(1,"day");return n.format("YYYY-MM-DD")}function hCe(t,e=1){let n=rt(t);for(;n.day()!==e;)n=n.subtract(1,"day");return n.format("YYYY-MM-DD")}function pCe({month:t,firstDayOfWeek:e=1,consistentWeeks:n}){const r=rt(t).subtract(rt(t).date()-1,"day"),o=rt(r.format("YYYY-M-D")),s=o.format("YYYY-MM-DD"),i=o.add(+o.daysInMonth()-1,"day").format("YYYY-MM-DD"),l=fCe(i,e),c=[];let d=rt(hCe(s,e));for(;rt(d).isBefore(l,"day");){const f=[];for(let h=0;h<7;h+=1)f.push(d.format("YYYY-MM-DD")),d=d.add(1,"day");c.push(f)}if(n&&c.length<6){const f=c[c.length-1],h=f[f.length-1];let p=rt(h).add(1,"day");for(;c.length<6;){const v=[];for(let g=0;g<7;g+=1)v.push(p.format("YYYY-MM-DD")),p=p.add(1,"day");c.push(v)}}return c}function kk(t,e){return rt(t).format("YYYY-MM")===rt(e).format("YYYY-MM")}function KU(t,e){return e?rt(t).isAfter(rt(e).subtract(1,"day"),"day"):!0}function XU(t,e){return e?rt(t).isBefore(rt(e).add(1,"day"),"day"):!0}function mCe({dates:t,minDate:e,maxDate:n,getDayProps:r,excludeDate:o,hideOutsideDates:s,month:i}){const l=t.flat().filter(f=>{var h;return XU(f,n)&&KU(f,e)&&!(o!=null&&o(f))&&!((h=r==null?void 0:r(f))!=null&&h.disabled)&&(!s||kk(f,i))}),c=l.find(f=>{var h;return(h=r==null?void 0:r(f))==null?void 0:h.selected});if(c)return c;const d=l.find(f=>rt().isSame(f,"date"));return d||l[0]}var xw={exports:{}},gCe=xw.exports,qO;function yCe(){return qO||(qO=1,(function(t,e){(function(n,r){t.exports=r()})(gCe,(function(){var n="day";return function(r,o,s){var i=function(d){return d.add(4-d.isoWeekday(),n)},l=o.prototype;l.isoWeekYear=function(){return i(this).year()},l.isoWeek=function(d){if(!this.$utils().u(d))return this.add(7*(d-this.isoWeek()),n);var f,h,p,v,g=i(this),S=(f=this.isoWeekYear(),h=this.$u,p=(h?s.utc:s)().year(f).startOf("year"),v=4-p.isoWeekday(),p.isoWeekday()>4&&(v+=7),p.add(v,n));return g.diff(S,"week")+1},l.isoWeekday=function(d){return this.$utils().u(d)?this.day()||7:this.day(this.day()%7?d:d-7)};var c=l.startOf;l.startOf=function(d,f){var h=this.$utils(),p=!!h.u(f)||f;return h.p(d)==="isoweek"?p?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(d,f)}}}))})(xw)),xw.exports}var vCe=yCe();const bCe=hu(vCe);rt.extend(bCe);function SCe(t){const e=t.find(n=>rt(n).day()===1);return rt(e).isoWeek()}var ZU={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const wCe={withCellSpacing:!0},xCe=(t,{size:e})=>({weekNumber:{"--wn-fz":eo(e),"--wn-size":an(e,"wn-size")}}),b5=Ve((t,e)=>{const n=Ae("Month",wCe,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,__staticSelector:d,locale:f,firstDayOfWeek:h,weekdayFormat:p,month:v,weekendDays:g,getDayProps:S,excludeDate:w,minDate:_,maxDate:E,renderDay:T,hideOutsideDates:M,hideWeekdays:j,getDayAriaLabel:A,static:k,__getDayRef:R,__onDayKeyDown:N,__onDayClick:I,__onDayMouseEnter:L,__preventFocus:F,__stopPropagation:H,withCellSpacing:B,size:Y,highlightToday:U,withWeekNumbers:q,attributes:z,...W}=n,K=pt({name:d||"Month",classes:ZU,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:z,vars:c,varsResolver:xCe,rootSelector:"month"}),G=wp(),X=pCe({month:v,firstDayOfWeek:G.getFirstDayOfWeek(h),consistentWeeks:G.consistentWeeks}),J=mCe({dates:X,minDate:Za(_),maxDate:Za(E),getDayProps:S,excludeDate:w,hideOutsideDates:M,month:v}),{resolvedClassNames:ne,resolvedStyles:se}=cp({classNames:r,styles:i,props:n}),ie=X.map((oe,de)=>{const pe=oe.map((fe,Te)=>{const we=!kk(fe,v),_e=(A==null?void 0:A(fe))||rt(fe).locale(f||G.locale).format("D MMMM YYYY"),De=S==null?void 0:S(fe),Ze=rt(fe).isSame(J,"date");return b.jsx("td",{...K("monthCell"),"data-with-spacing":B||void 0,children:b.jsx(Tk,{__staticSelector:d||"Month",classNames:ne,styles:se,unstyled:l,"data-mantine-stop-propagation":H||void 0,highlightToday:U,renderDay:T,date:fe,size:Y,weekend:G.getWeekendDays(g).includes(rt(fe).get("day")),outside:we,hidden:M?we:!1,"aria-label":_e,static:k,disabled:(w==null?void 0:w(fe))||!XU(fe,Za(E))||!KU(fe,Za(_)),ref:ze=>{ze&&(R==null||R(de,Te,ze))},...De,onKeyDown:ze=>{var Xe;(Xe=De==null?void 0:De.onKeyDown)==null||Xe.call(De,ze),N==null||N(ze,{rowIndex:de,cellIndex:Te,date:fe})},onMouseEnter:ze=>{var Xe;(Xe=De==null?void 0:De.onMouseEnter)==null||Xe.call(De,ze),L==null||L(ze,fe)},onClick:ze=>{var Xe;(Xe=De==null?void 0:De.onClick)==null||Xe.call(De,ze),I==null||I(ze,fe)},onMouseDown:ze=>{var Xe;(Xe=De==null?void 0:De.onMouseDown)==null||Xe.call(De,ze),F&&ze.preventDefault()},tabIndex:F||!Ze?-1:0})},fe.toString())});return b.jsxs("tr",{...K("monthRow"),children:[q&&b.jsx("td",{...K("weekNumber"),children:SCe(oe)}),pe]},de)});return b.jsxs(je,{component:"table",...K("month"),size:Y,ref:e,...W,children:[!j&&b.jsx("thead",{...K("monthThead"),children:b.jsx(Ek,{__staticSelector:d||"Month",locale:f,firstDayOfWeek:h,weekdayFormat:p,size:Y,classNames:ne,styles:se,unstyled:l,withWeekNumbers:q})}),b.jsx("tbody",{...K("monthTbody"),children:ie})]})});b5.classes=ZU;b5.displayName="@mantine/dates/Month";var JU={pickerControl:"m_dc6a3c71"};const CCe=(t,{size:e})=>({pickerControl:{"--dpc-fz":eo(e),"--dpc-size":an(e,"dpc-size")}}),S5=Ve((t,e)=>{const n=Ae("PickerControl",null,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,firstInRange:d,lastInRange:f,inRange:h,__staticSelector:p,selected:v,disabled:g,attributes:S,...w}=n,_=pt({name:p||"PickerControl",classes:JU,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:S,vars:c,varsResolver:CCe,rootSelector:"pickerControl"});return b.jsx(Yo,{..._("pickerControl"),ref:e,unstyled:l,"data-picker-control":!0,"data-selected":v&&!g||void 0,"data-disabled":g||void 0,"data-in-range":h&&!g&&!v||void 0,"data-first-in-range":d&&!g||void 0,"data-last-in-range":f&&!g||void 0,disabled:g,...w})});S5.classes=JU;S5.displayName="@mantine/dates/PickerControl";function eB({year:t,minDate:e,maxDate:n}){return!e&&!n?!1:!!(e&&rt(t).isBefore(e,"year")||n&&rt(t).isAfter(n,"year"))}function _Ce({years:t,minDate:e,maxDate:n,getYearControlProps:r}){const o=t.flat().filter(l=>{var c;return!eB({year:l,minDate:e,maxDate:n})&&!((c=r==null?void 0:r(l))!=null&&c.disabled)}),s=o.find(l=>{var c;return(c=r==null?void 0:r(l))==null?void 0:c.selected});if(s)return s;const i=o.find(l=>rt().isSame(l,"year"));return i||o[0]}function tB(t){const e=rt(t).year(),n=e-e%10;let r=0;const o=[[],[],[],[]];for(let s=0;s<4;s+=1){const i=s===3?1:3;for(let l=0;l<i;l+=1)o[s].push(rt(new Date(n+r,0)).format("YYYY-MM-DD")),r+=1}return o}var nB={yearsList:"m_9206547b",yearsListCell:"m_c5a19c7d"};const TCe={yearsListFormat:"YYYY",withCellSpacing:!0},w5=Ve((t,e)=>{const n=Ae("YearsList",TCe,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,decade:d,yearsListFormat:f,locale:h,minDate:p,maxDate:v,getYearControlProps:g,__staticSelector:S,__getControlRef:w,__onControlKeyDown:_,__onControlClick:E,__onControlMouseEnter:T,__preventFocus:M,__stopPropagation:j,withCellSpacing:A,size:k,attributes:R,...N}=n,I=pt({name:S||"YearsList",classes:nB,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:R,vars:c,rootSelector:"yearsList"}),L=wp(),F=tB(d),H=_Ce({years:F,minDate:p,maxDate:v,getYearControlProps:g}),B=F.map((Y,U)=>{const q=Y.map((z,W)=>{const K=g==null?void 0:g(z),G=rt(z).isSame(H,"year");return b.jsx("td",{...I("yearsListCell"),"data-with-spacing":A||void 0,children:b.jsx(S5,{...I("yearsListControl"),size:k,unstyled:l,"data-mantine-stop-propagation":j||void 0,disabled:eB({year:z,minDate:p,maxDate:v}),ref:X=>{X&&(w==null||w(U,W,X))},...K,onKeyDown:X=>{var J;(J=K==null?void 0:K.onKeyDown)==null||J.call(K,X),_==null||_(X,{rowIndex:U,cellIndex:W,date:z})},onClick:X=>{var J;(J=K==null?void 0:K.onClick)==null||J.call(K,X),E==null||E(X,z)},onMouseEnter:X=>{var J;(J=K==null?void 0:K.onMouseEnter)==null||J.call(K,X),T==null||T(X,z)},onMouseDown:X=>{var J;(J=K==null?void 0:K.onMouseDown)==null||J.call(K,X),M&&X.preventDefault()},tabIndex:M||!G?-1:0,children:(K==null?void 0:K.children)??rt(z).locale(L.getLocale(h)).format(f)})},W)});return b.jsx("tr",{...I("yearsListRow"),children:q},U)});return b.jsx(je,{component:"table",ref:e,size:k,...I("yearsList"),...N,children:b.jsx("tbody",{children:B})})});w5.classes=nB;w5.displayName="@mantine/dates/YearsList";function rB({month:t,minDate:e,maxDate:n}){return!e&&!n?!1:!!(e&&rt(t).isBefore(e,"month")||n&&rt(t).isAfter(n,"month"))}function ECe({months:t,minDate:e,maxDate:n,getMonthControlProps:r}){const o=t.flat().filter(l=>{var c;return!rB({month:l,minDate:e,maxDate:n})&&!((c=r==null?void 0:r(l))!=null&&c.disabled)}),s=o.find(l=>{var c;return(c=r==null?void 0:r(l))==null?void 0:c.selected});if(s)return s;const i=o.find(l=>rt().isSame(l,"month"));return i||o[0]}function kCe(t){const e=rt(t).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(rt(e).add(r,"months").format("YYYY-MM-DD")),r+=1;return n}var oB={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const MCe={monthsListFormat:"MMM",withCellSpacing:!0},x5=Ve((t,e)=>{const n=Ae("MonthsList",MCe,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,__staticSelector:d,year:f,monthsListFormat:h,locale:p,minDate:v,maxDate:g,getMonthControlProps:S,__getControlRef:w,__onControlKeyDown:_,__onControlClick:E,__onControlMouseEnter:T,__preventFocus:M,__stopPropagation:j,withCellSpacing:A,size:k,attributes:R,...N}=n,I=pt({name:d||"MonthsList",classes:oB,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:R,vars:c,rootSelector:"monthsList"}),L=wp(),F=kCe(f),H=ECe({months:F,minDate:Za(v),maxDate:Za(g),getMonthControlProps:S}),B=F.map((Y,U)=>{const q=Y.map((z,W)=>{const K=S==null?void 0:S(z),G=rt(z).isSame(H,"month");return b.jsx("td",{...I("monthsListCell"),"data-with-spacing":A||void 0,children:b.jsx(S5,{...I("monthsListControl"),size:k,unstyled:l,__staticSelector:d||"MonthsList","data-mantine-stop-propagation":j||void 0,disabled:rB({month:z,minDate:Za(v),maxDate:Za(g)}),ref:X=>{X&&(w==null||w(U,W,X))},...K,onKeyDown:X=>{var J;(J=K==null?void 0:K.onKeyDown)==null||J.call(K,X),_==null||_(X,{rowIndex:U,cellIndex:W,date:z})},onClick:X=>{var J;(J=K==null?void 0:K.onClick)==null||J.call(K,X),E==null||E(X,z)},onMouseEnter:X=>{var J;(J=K==null?void 0:K.onMouseEnter)==null||J.call(K,X),T==null||T(X,z)},onMouseDown:X=>{var J;(J=K==null?void 0:K.onMouseDown)==null||J.call(K,X),M&&X.preventDefault()},tabIndex:M||!G?-1:0,children:(K==null?void 0:K.children)??rt(z).locale(L.getLocale(p)).format(h)})},W)});return b.jsx("tr",{...I("monthsListRow"),children:q},U)});return b.jsx(je,{component:"table",ref:e,size:k,...I("monthsList"),...N,children:b.jsx("tbody",{children:B})})});x5.classes=oB;x5.displayName="@mantine/dates/MonthsList";var sB={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const jCe={hasNextLevel:!0,withNext:!0,withPrevious:!0,headerControlsOrder:["previous","level","next"]},DCe=(t,{size:e})=>({calendarHeader:{"--dch-control-size":an(e,"dch-control-size"),"--dch-fz":eo(e)}}),af=Ve((t,e)=>{const n=Ae("CalendarHeader",jCe,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,nextIcon:d,previousIcon:f,nextLabel:h,previousLabel:p,onNext:v,onPrevious:g,onLevelClick:S,label:w,nextDisabled:_,previousDisabled:E,hasNextLevel:T,levelControlAriaLabel:M,withNext:j,withPrevious:A,headerControlsOrder:k,__staticSelector:R,__preventFocus:N,__stopPropagation:I,attributes:L,...F}=n,H=pt({name:R||"CalendarHeader",classes:sB,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:L,vars:c,varsResolver:DCe,rootSelector:"calendarHeader"}),B=N?W=>W.preventDefault():void 0,Y=A&&D.createElement(Yo,{...H("calendarHeaderControl"),key:"previous","data-direction":"previous","aria-label":p,onClick:g,unstyled:l,onMouseDown:B,disabled:E,"data-disabled":E||void 0,tabIndex:N||E?-1:0,"data-mantine-stop-propagation":I||void 0},f||b.jsx(Tv,{...H("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})),U=D.createElement(Yo,{component:T?"button":"div",...H("calendarHeaderLevel"),key:"level",onClick:T?S:void 0,unstyled:l,onMouseDown:T?B:void 0,disabled:!T,"data-static":!T||void 0,"aria-label":M,tabIndex:N||!T?-1:0,"data-mantine-stop-propagation":I||void 0},w),q=j&&D.createElement(Yo,{...H("calendarHeaderControl"),key:"next","data-direction":"next","aria-label":h,onClick:v,unstyled:l,onMouseDown:B,disabled:_,"data-disabled":_||void 0,tabIndex:N||_?-1:0,"data-mantine-stop-propagation":I||void 0},d||b.jsx(Tv,{...H("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})),z=k.map(W=>W==="previous"?Y:W==="level"?U:W==="next"?q:null);return b.jsx(je,{...H("calendarHeader"),ref:e,...F,children:z})});af.classes=sB;af.displayName="@mantine/dates/CalendarHeader";function ACe(t){const e=tB(t);return[e[0][0],e[3][0]]}const RCe={decadeLabelFormat:"YYYY"},C5=Ve((t,e)=>{const n=Ae("DecadeLevel",RCe,t),{decade:r,locale:o,minDate:s,maxDate:i,yearsListFormat:l,getYearControlProps:c,__getControlRef:d,__onControlKeyDown:f,__onControlClick:h,__onControlMouseEnter:p,withCellSpacing:v,__preventFocus:g,nextIcon:S,previousIcon:w,nextLabel:_,previousLabel:E,onNext:T,onPrevious:M,nextDisabled:j,previousDisabled:A,levelControlAriaLabel:k,withNext:R,withPrevious:N,headerControlsOrder:I,decadeLabelFormat:L,classNames:F,styles:H,unstyled:B,__staticSelector:Y,__stopPropagation:U,size:q,attributes:z,...W}=n,K=wp(),[G,X]=ACe(r),J={__staticSelector:Y||"DecadeLevel",classNames:F,styles:H,unstyled:B,size:q,attributes:z},ne=typeof j=="boolean"?j:i?!rt(X).endOf("year").isBefore(i):!1,se=typeof A=="boolean"?A:s?!rt(G).startOf("year").isAfter(s):!1,ie=(oe,de)=>rt(oe).locale(o||K.locale).format(de);return b.jsxs(je,{"data-decade-level":!0,size:q,ref:e,...W,children:[b.jsx(af,{label:typeof L=="function"?L(G,X):`${ie(G,L)} – ${ie(X,L)}`,__preventFocus:g,__stopPropagation:U,nextIcon:S,previousIcon:w,nextLabel:_,previousLabel:E,onNext:T,onPrevious:M,nextDisabled:ne,previousDisabled:se,hasNextLevel:!1,levelControlAriaLabel:k,withNext:R,withPrevious:N,headerControlsOrder:I,...J}),b.jsx(w5,{decade:r,locale:o,minDate:s,maxDate:i,yearsListFormat:l,getYearControlProps:c,__getControlRef:d,__onControlKeyDown:f,__onControlClick:h,__onControlMouseEnter:p,__preventFocus:g,__stopPropagation:U,withCellSpacing:v,...J})]})});C5.classes={...w5.classes,...af.classes};C5.displayName="@mantine/dates/DecadeLevel";const OCe={yearLabelFormat:"YYYY"},_5=Ve((t,e)=>{const n=Ae("YearLevel",OCe,t),{year:r,locale:o,minDate:s,maxDate:i,monthsListFormat:l,getMonthControlProps:c,__getControlRef:d,__onControlKeyDown:f,__onControlClick:h,__onControlMouseEnter:p,withCellSpacing:v,__preventFocus:g,nextIcon:S,previousIcon:w,nextLabel:_,previousLabel:E,onNext:T,onPrevious:M,onLevelClick:j,nextDisabled:A,previousDisabled:k,hasNextLevel:R,levelControlAriaLabel:N,withNext:I,withPrevious:L,headerControlsOrder:F,yearLabelFormat:H,__staticSelector:B,__stopPropagation:Y,size:U,classNames:q,styles:z,unstyled:W,attributes:K,...G}=n,X=wp(),J={__staticSelector:B||"YearLevel",classNames:q,styles:z,unstyled:W,size:U,attributes:K},ne=typeof A=="boolean"?A:i?!rt(r).endOf("year").isBefore(i):!1,se=typeof k=="boolean"?k:s?!rt(r).startOf("year").isAfter(s):!1;return b.jsxs(je,{"data-year-level":!0,size:U,ref:e,...G,children:[b.jsx(af,{label:typeof H=="function"?H(r):rt(r).locale(o||X.locale).format(H),__preventFocus:g,__stopPropagation:Y,nextIcon:S,previousIcon:w,nextLabel:_,previousLabel:E,onNext:T,onPrevious:M,onLevelClick:j,nextDisabled:ne,previousDisabled:se,hasNextLevel:R,levelControlAriaLabel:N,withNext:I,withPrevious:L,headerControlsOrder:F,...J}),b.jsx(x5,{year:r,locale:o,minDate:s,maxDate:i,monthsListFormat:l,getMonthControlProps:c,__getControlRef:d,__onControlKeyDown:f,__onControlClick:h,__onControlMouseEnter:p,__preventFocus:g,__stopPropagation:Y,withCellSpacing:v,...J})]})});_5.classes={...af.classes,...x5.classes};_5.displayName="@mantine/dates/YearLevel";const PCe={monthLabelFormat:"MMMM YYYY"},T5=Ve((t,e)=>{const n=Ae("MonthLevel",PCe,t),{month:r,locale:o,firstDayOfWeek:s,weekdayFormat:i,weekendDays:l,getDayProps:c,excludeDate:d,minDate:f,maxDate:h,renderDay:p,hideOutsideDates:v,hideWeekdays:g,getDayAriaLabel:S,__getDayRef:w,__onDayKeyDown:_,__onDayClick:E,__onDayMouseEnter:T,withCellSpacing:M,highlightToday:j,withWeekNumbers:A,__preventFocus:k,__stopPropagation:R,nextIcon:N,previousIcon:I,nextLabel:L,previousLabel:F,onNext:H,onPrevious:B,onLevelClick:Y,nextDisabled:U,previousDisabled:q,hasNextLevel:z,levelControlAriaLabel:W,withNext:K,withPrevious:G,headerControlsOrder:X,monthLabelFormat:J,classNames:ne,styles:se,unstyled:ie,__staticSelector:oe,size:de,static:pe,attributes:fe,...Te}=n,we=wp(),_e={__staticSelector:oe||"MonthLevel",classNames:ne,styles:se,unstyled:ie,size:de,attributes:fe},De=typeof U=="boolean"?U:h?!rt(r).endOf("month").isBefore(h):!1,Ze=typeof q=="boolean"?q:f?!rt(r).startOf("month").isAfter(f):!1;return b.jsxs(je,{"data-month-level":!0,size:de,ref:e,...Te,children:[b.jsx(af,{label:typeof J=="function"?J(r):rt(r).locale(o||we.locale).format(J),__preventFocus:k,__stopPropagation:R,nextIcon:N,previousIcon:I,nextLabel:L,previousLabel:F,onNext:H,onPrevious:B,onLevelClick:Y,nextDisabled:De,previousDisabled:Ze,hasNextLevel:z,levelControlAriaLabel:W,withNext:K,withPrevious:G,headerControlsOrder:X,..._e}),b.jsx(b5,{month:r,locale:o,firstDayOfWeek:s,weekdayFormat:i,weekendDays:l,getDayProps:c,excludeDate:d,minDate:f,maxDate:h,renderDay:p,hideOutsideDates:v,hideWeekdays:g,getDayAriaLabel:S,__getDayRef:w,__onDayKeyDown:_,__onDayClick:E,__onDayMouseEnter:T,__preventFocus:k,__stopPropagation:R,static:pe,withCellSpacing:M,highlightToday:j,withWeekNumbers:A,..._e})]})});T5.classes={...b5.classes,...af.classes};T5.displayName="@mantine/dates/MonthLevel";var iB={levelsGroup:"m_30b26e33"};const lf=Ve((t,e)=>{const n=Ae("LevelsGroup",null,t),{classNames:r,className:o,style:s,styles:i,unstyled:l,vars:c,__staticSelector:d,attributes:f,...h}=n,p=pt({name:d||"LevelsGroup",classes:iB,props:n,className:o,style:s,classNames:r,styles:i,unstyled:l,attributes:f,vars:c,rootSelector:"levelsGroup"});return b.jsx(je,{ref:e,...p("levelsGroup"),...h})});lf.classes=iB;lf.displayName="@mantine/dates/LevelsGroup";const NCe={numberOfColumns:1},E5=Ve((t,e)=>{const n=Ae("DecadeLevelGroup",NCe,t),{decade:r,locale:o,minDate:s,maxDate:i,yearsListFormat:l,getYearControlProps:c,__onControlClick:d,__onControlMouseEnter:f,withCellSpacing:h,__preventFocus:p,nextIcon:v,previousIcon:g,nextLabel:S,previousLabel:w,onNext:_,onPrevious:E,nextDisabled:T,previousDisabled:M,headerControlsOrder:j,classNames:A,styles:k,unstyled:R,__staticSelector:N,__stopPropagation:I,numberOfColumns:L,levelControlAriaLabel:F,decadeLabelFormat:H,size:B,vars:Y,attributes:U,...q}=n,z=D.useRef([]),W=Array(L).fill(0).map((K,G)=>{const X=rt(r).add(G*10,"years").format("YYYY-MM-DD");return b.jsx(C5,{size:B,yearsListFormat:l,decade:X,withNext:G===L-1,withPrevious:G===0,decadeLabelFormat:H,__onControlClick:d,__onControlMouseEnter:f,__onControlKeyDown:(J,ne)=>_k({levelIndex:G,rowIndex:ne.rowIndex,cellIndex:ne.cellIndex,event:J,controlsRef:z}),__getControlRef:(J,ne,se)=>{Array.isArray(z.current[G])||(z.current[G]=[]),Array.isArray(z.current[G][J])||(z.current[G][J]=[]),z.current[G][J][ne]=se},levelControlAriaLabel:typeof F=="function"?F(X):F,locale:o,minDate:s,maxDate:i,__preventFocus:p,__stopPropagation:I,nextIcon:v,previousIcon:g,nextLabel:S,previousLabel:w,onNext:_,onPrevious:E,nextDisabled:T,previousDisabled:M,getYearControlProps:c,__staticSelector:N||"DecadeLevelGroup",classNames:A,styles:k,unstyled:R,withCellSpacing:h,headerControlsOrder:j,attributes:U},G)});return b.jsx(lf,{classNames:A,styles:k,__staticSelector:N||"DecadeLevelGroup",ref:e,size:B,unstyled:R,attributes:U,...q,children:W})});E5.classes={...lf.classes,...C5.classes};E5.displayName="@mantine/dates/DecadeLevelGroup";const ICe={numberOfColumns:1},k5=Ve((t,e)=>{const n=Ae("YearLevelGroup",ICe,t),{year:r,locale:o,minDate:s,maxDate:i,monthsListFormat:l,getMonthControlProps:c,__onControlClick:d,__onControlMouseEnter:f,withCellSpacing:h,__preventFocus:p,nextIcon:v,previousIcon:g,nextLabel:S,previousLabel:w,onNext:_,onPrevious:E,onLevelClick:T,nextDisabled:M,previousDisabled:j,hasNextLevel:A,headerControlsOrder:k,classNames:R,styles:N,unstyled:I,__staticSelector:L,__stopPropagation:F,numberOfColumns:H,levelControlAriaLabel:B,yearLabelFormat:Y,size:U,vars:q,attributes:z,...W}=n,K=D.useRef([]),G=Array(H).fill(0).map((X,J)=>{const ne=rt(r).add(J,"years").format("YYYY-MM-DD");return b.jsx(_5,{size:U,monthsListFormat:l,year:ne,withNext:J===H-1,withPrevious:J===0,yearLabelFormat:Y,__stopPropagation:F,__onControlClick:d,__onControlMouseEnter:f,__onControlKeyDown:(se,ie)=>_k({levelIndex:J,rowIndex:ie.rowIndex,cellIndex:ie.cellIndex,event:se,controlsRef:K}),__getControlRef:(se,ie,oe)=>{Array.isArray(K.current[J])||(K.current[J]=[]),Array.isArray(K.current[J][se])||(K.current[J][se]=[]),K.current[J][se][ie]=oe},levelControlAriaLabel:typeof B=="function"?B(ne):B,locale:o,minDate:s,maxDate:i,__preventFocus:p,nextIcon:v,previousIcon:g,nextLabel:S,previousLabel:w,onNext:_,onPrevious:E,onLevelClick:T,nextDisabled:M,previousDisabled:j,hasNextLevel:A,getMonthControlProps:c,classNames:R,styles:N,unstyled:I,__staticSelector:L||"YearLevelGroup",withCellSpacing:h,headerControlsOrder:k,attributes:z},J)});return b.jsx(lf,{classNames:R,styles:N,__staticSelector:L||"YearLevelGroup",ref:e,size:U,unstyled:I,attributes:z,...W,children:G})});k5.classes={..._5.classes,...lf.classes};k5.displayName="@mantine/dates/YearLevelGroup";const $Ce={numberOfColumns:1},M5=Ve((t,e)=>{const n=Ae("MonthLevelGroup",$Ce,t),{month:r,locale:o,firstDayOfWeek:s,weekdayFormat:i,weekendDays:l,getDayProps:c,excludeDate:d,minDate:f,maxDate:h,renderDay:p,hideOutsideDates:v,hideWeekdays:g,getDayAriaLabel:S,__onDayClick:w,__onDayMouseEnter:_,withCellSpacing:E,highlightToday:T,withWeekNumbers:M,__preventFocus:j,nextIcon:A,previousIcon:k,nextLabel:R,previousLabel:N,onNext:I,onPrevious:L,onLevelClick:F,nextDisabled:H,previousDisabled:B,hasNextLevel:Y,headerControlsOrder:U,classNames:q,styles:z,unstyled:W,numberOfColumns:K,levelControlAriaLabel:G,monthLabelFormat:X,__staticSelector:J,__stopPropagation:ne,size:se,static:ie,vars:oe,attributes:de,...pe}=n,fe=D.useRef([]),Te=Array(K).fill(0).map((we,_e)=>{const De=rt(r).add(_e,"months").format("YYYY-MM-DD");return b.jsx(T5,{month:De,withNext:_e===K-1,withPrevious:_e===0,monthLabelFormat:X,__stopPropagation:ne,__onDayClick:w,__onDayMouseEnter:_,__onDayKeyDown:(Ze,ze)=>_k({levelIndex:_e,rowIndex:ze.rowIndex,cellIndex:ze.cellIndex,event:Ze,controlsRef:fe}),__getDayRef:(Ze,ze,Xe)=>{Array.isArray(fe.current[_e])||(fe.current[_e]=[]),Array.isArray(fe.current[_e][Ze])||(fe.current[_e][Ze]=[]),fe.current[_e][Ze][ze]=Xe},levelControlAriaLabel:typeof G=="function"?G(De):G,locale:o,firstDayOfWeek:s,weekdayFormat:i,weekendDays:l,getDayProps:c,excludeDate:d,minDate:f,maxDate:h,renderDay:p,hideOutsideDates:v,hideWeekdays:g,getDayAriaLabel:S,__preventFocus:j,nextIcon:A,previousIcon:k,nextLabel:R,previousLabel:N,onNext:I,onPrevious:L,onLevelClick:F,nextDisabled:H,previousDisabled:B,hasNextLevel:Y,classNames:q,styles:z,unstyled:W,__staticSelector:J||"MonthLevelGroup",size:se,static:ie,withCellSpacing:E,highlightToday:T,withWeekNumbers:M,headerControlsOrder:U,attributes:de},_e)});return b.jsx(lf,{classNames:q,styles:z,__staticSelector:J||"MonthLevelGroup",ref:e,size:se,attributes:de,...pe,children:Te})});M5.classes={...lf.classes,...T5.classes};M5.displayName="@mantine/dates/MonthLevelGroup";const VO=t=>t==="range"?[null,null]:t==="multiple"?[]:null,YO=(t,e)=>{const n=e?aCe:Za;return Array.isArray(t)?t.map(n):n(t)};function aB({type:t,value:e,defaultValue:n,onChange:r,withTime:o=!1}){const s=D.useRef(t),[i,l,c]=Wi({value:YO(e,o),defaultValue:YO(n,o),finalValue:VO(t),onChange:r});let d=i;return s.current!==t&&(s.current=t,e===void 0&&(d=n!==void 0?n:VO(t),l(d))),[d,l,c]}function Q6(t,e){return t?t==="month"?0:t==="year"?1:2:e||0}function LCe(t){return t===0?"month":t===1?"year":"decade"}function Qy(t,e,n){return LCe(nV(Q6(t,0),Q6(e,0),Q6(n,2)))}const FCe={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0,enableKeyboardNavigation:!0},j5=Ve((t,e)=>{const n=Ae("Calendar",FCe,t),{vars:r,maxLevel:o,minLevel:s,defaultLevel:i,level:l,onLevelChange:c,date:d,defaultDate:f,onDateChange:h,numberOfColumns:p,columnsToScroll:v,ariaLabels:g,nextLabel:S,previousLabel:w,onYearSelect:_,onMonthSelect:E,onYearMouseEnter:T,onMonthMouseEnter:M,headerControlsOrder:j,__updateDateOnYearSelect:A,__updateDateOnMonthSelect:k,__setDateRef:R,__setLevelRef:N,firstDayOfWeek:I,weekdayFormat:L,weekendDays:F,getDayProps:H,excludeDate:B,renderDay:Y,hideOutsideDates:U,hideWeekdays:q,getDayAriaLabel:z,monthLabelFormat:W,nextIcon:K,previousIcon:G,__onDayClick:X,__onDayMouseEnter:J,withCellSpacing:ne,highlightToday:se,withWeekNumbers:ie,monthsListFormat:oe,getMonthControlProps:de,yearLabelFormat:pe,yearsListFormat:fe,getYearControlProps:Te,decadeLabelFormat:we,classNames:_e,styles:De,unstyled:Ze,minDate:ze,maxDate:Xe,locale:Ke,__staticSelector:ot,size:st,__preventFocus:mt,__stopPropagation:bt,onNextDecade:At,onPreviousDecade:ct,onNextYear:cn,onPreviousYear:bn,onNextMonth:Tt,onPreviousMonth:Ft,static:Xt,enableKeyboardNavigation:_n,attributes:un,...Zt}=n,{resolvedClassNames:Jt,resolvedStyles:en}=cp({classNames:_e,styles:De,props:n}),[It,he]=Wi({value:l?Qy(l,s,o):void 0,defaultValue:i?Qy(i,s,o):void 0,finalValue:Qy(void 0,s,o),onChange:c}),[Ce,St]=aB({type:"default",value:Za(d),defaultValue:Za(f),onChange:h});D.useImperativeHandle(R,()=>ce=>{St(ce)}),D.useImperativeHandle(N,()=>ce=>{he(ce)});const gt={__staticSelector:ot||"Calendar",styles:en,classNames:Jt,unstyled:Ze,size:st,attributes:un},Ut=v||p||1,Ot=new Date,Sn=ze&&rt(Ot).isAfter(ze)?ze:rt(Ot).format("YYYY-MM-DD"),Je=Ce||Sn,vt=()=>{const ce=rt(Je).add(Ut,"month").format("YYYY-MM-DD");Tt==null||Tt(ce),St(ce)},$t=()=>{const ce=rt(Je).subtract(Ut,"month").format("YYYY-MM-DD");Ft==null||Ft(ce),St(ce)},dn=()=>{const ce=rt(Je).add(Ut,"year").format("YYYY-MM-DD");cn==null||cn(ce),St(ce)},Yt=()=>{const ce=rt(Je).subtract(Ut,"year").format("YYYY-MM-DD");bn==null||bn(ce),St(ce)},Gt=()=>{const ce=rt(Je).add(10*Ut,"year").format("YYYY-MM-DD");At==null||At(ce),St(ce)},$n=()=>{const ce=rt(Je).subtract(10*Ut,"year").format("YYYY-MM-DD");ct==null||ct(ce),St(ce)},Tn=D.useRef(null);D.useEffect(()=>{if(!_n||Xt)return;const ce=ye=>{var tt;if(!((tt=Tn.current)!=null&&tt.contains(document.activeElement)))return;const $e=ye.ctrlKey||ye.metaKey,Ye=ye.shiftKey;switch(ye.key){case"ArrowUp":$e&&Ye?(ye.preventDefault(),$n()):$e&&(ye.preventDefault(),Yt());break;case"ArrowDown":$e&&Ye?(ye.preventDefault(),Gt()):$e&&(ye.preventDefault(),dn());break;case"y":case"Y":It==="month"&&(ye.preventDefault(),he("year"));break}};return document.addEventListener("keydown",ce),()=>{document.removeEventListener("keydown",ce)}},[_n,Xt,It,dn,Yt,Gt,$n]);const le=ce=>{Tn.current=ce,typeof e=="function"?e(ce):e&&(e.current=ce)};return b.jsxs(je,{ref:le,size:st,"data-calendar":!0,...Zt,children:[It==="month"&&b.jsx(M5,{month:Je,minDate:ze,maxDate:Xe,firstDayOfWeek:I,weekdayFormat:L,weekendDays:F,getDayProps:H,excludeDate:B,renderDay:Y,hideOutsideDates:U,hideWeekdays:q,getDayAriaLabel:z,onNext:vt,onPrevious:$t,hasNextLevel:o!=="month",onLevelClick:()=>he("year"),numberOfColumns:p,locale:Ke,levelControlAriaLabel:g==null?void 0:g.monthLevelControl,nextLabel:(g==null?void 0:g.nextMonth)??S,nextIcon:K,previousLabel:(g==null?void 0:g.previousMonth)??w,previousIcon:G,monthLabelFormat:W,__onDayClick:X,__onDayMouseEnter:J,__preventFocus:mt,__stopPropagation:bt,static:Xt,withCellSpacing:ne,highlightToday:se,withWeekNumbers:ie,headerControlsOrder:j,...gt}),It==="year"&&b.jsx(k5,{year:Je,numberOfColumns:p,minDate:ze,maxDate:Xe,monthsListFormat:oe,getMonthControlProps:de,locale:Ke,onNext:dn,onPrevious:Yt,hasNextLevel:o!=="month"&&o!=="year",onLevelClick:()=>he("decade"),levelControlAriaLabel:g==null?void 0:g.yearLevelControl,nextLabel:(g==null?void 0:g.nextYear)??S,nextIcon:K,previousLabel:(g==null?void 0:g.previousYear)??w,previousIcon:G,yearLabelFormat:pe,__onControlMouseEnter:M,__onControlClick:(ce,ye)=>{k&&St(ye),he(Qy("month",s,o)),E==null||E(ye)},__preventFocus:mt,__stopPropagation:bt,withCellSpacing:ne,headerControlsOrder:j,...gt}),It==="decade"&&b.jsx(E5,{decade:Je,minDate:ze,maxDate:Xe,yearsListFormat:fe,getYearControlProps:Te,locale:Ke,onNext:Gt,onPrevious:$n,numberOfColumns:p,nextLabel:(g==null?void 0:g.nextDecade)??S,nextIcon:K,previousLabel:(g==null?void 0:g.previousDecade)??w,previousIcon:G,decadeLabelFormat:we,__onControlMouseEnter:T,__onControlClick:(ce,ye)=>{A&&St(ye),he(Qy("year",s,o)),_==null||_(ye)},__preventFocus:mt,__stopPropagation:bt,withCellSpacing:ne,headerControlsOrder:j,...gt})]})});j5.classes={...E5.classes,...k5.classes,...M5.classes};j5.displayName="@mantine/dates/Calendar";function zCe(t){const{maxLevel:e,minLevel:n,defaultLevel:r,level:o,onLevelChange:s,nextIcon:i,previousIcon:l,date:c,defaultDate:d,onDateChange:f,numberOfColumns:h,columnsToScroll:p,ariaLabels:v,nextLabel:g,previousLabel:S,onYearSelect:w,onMonthSelect:_,onYearMouseEnter:E,onMonthMouseEnter:T,onNextMonth:M,onPreviousMonth:j,onNextYear:A,onPreviousYear:k,onNextDecade:R,onPreviousDecade:N,withCellSpacing:I,highlightToday:L,__updateDateOnYearSelect:F,__updateDateOnMonthSelect:H,__setDateRef:B,__setLevelRef:Y,withWeekNumbers:U,headerControlsOrder:q,firstDayOfWeek:z,weekdayFormat:W,weekendDays:K,getDayProps:G,excludeDate:X,renderDay:J,hideOutsideDates:ne,hideWeekdays:se,getDayAriaLabel:ie,monthLabelFormat:oe,monthsListFormat:de,getMonthControlProps:pe,yearLabelFormat:fe,yearsListFormat:Te,getYearControlProps:we,decadeLabelFormat:_e,allowSingleDateInRange:De,allowDeselect:Ze,minDate:ze,maxDate:Xe,locale:Ke,...ot}=t;return{calendarProps:{maxLevel:e,minLevel:n,defaultLevel:r,level:o,onLevelChange:s,nextIcon:i,previousIcon:l,date:c,defaultDate:d,onDateChange:f,numberOfColumns:h,columnsToScroll:p,ariaLabels:v,nextLabel:g,previousLabel:S,onYearSelect:w,onMonthSelect:_,onYearMouseEnter:E,onMonthMouseEnter:T,onNextMonth:M,onPreviousMonth:j,onNextYear:A,onPreviousYear:k,onNextDecade:R,onPreviousDecade:N,withCellSpacing:I,highlightToday:L,__updateDateOnYearSelect:F,__updateDateOnMonthSelect:H,__setDateRef:B,withWeekNumbers:U,headerControlsOrder:q,firstDayOfWeek:z,weekdayFormat:W,weekendDays:K,getDayProps:G,excludeDate:X,renderDay:J,hideOutsideDates:ne,hideWeekdays:se,getDayAriaLabel:ie,monthLabelFormat:oe,monthsListFormat:de,getMonthControlProps:pe,yearLabelFormat:fe,yearsListFormat:Te,getYearControlProps:we,decadeLabelFormat:_e,allowSingleDateInRange:De,allowDeselect:Ze,minDate:ze,maxDate:Xe,locale:Ke},others:ot}}function GO(t,e){const n=[...e].sort((r,o)=>rt(r).isAfter(rt(o))?1:-1);return rt(n[0]).startOf("day").subtract(1,"ms").isBefore(t)&&rt(n[1]).endOf("day").add(1,"ms").isAfter(t)}function UCe({type:t,level:e,value:n,defaultValue:r,onChange:o,allowSingleDateInRange:s,allowDeselect:i,onMouseLeave:l}){const[c,d]=aB({type:t,value:n,defaultValue:r,onChange:o}),[f,h]=D.useState(t==="range"&&c[0]&&!c[1]?c[0]:null),[p,v]=D.useState(null),g=j=>{if(t==="range"){if(f&&!c[1]){if(rt(j).isSame(f,e)&&!s){h(null),v(null),d([null,null]);return}const A=[j,f];A.sort((k,R)=>rt(k).isAfter(rt(R))?1:-1),d(A),v(null),h(null);return}if(c[0]&&!c[1]&&rt(j).isSame(c[0],e)&&!s){h(null),v(null),d([null,null]);return}d([j,null]),v(null),h(j);return}if(t==="multiple"){c.some(A=>rt(A).isSame(j,e))?d(c.filter(A=>!rt(A).isSame(j,e))):d([...c,j]);return}c&&i&&rt(j).isSame(c,e)?d(null):d(j)},S=j=>f&&p?GO(j,[p,f]):c[0]&&c[1]?GO(j,c):!1,w=t==="range"?j=>{l==null||l(j),v(null)}:l,_=j=>c[0]&&rt(j).isSame(c[0],e)?!(p&&rt(p).isBefore(c[0])):!1,E=j=>c[1]?rt(j).isSame(c[1],e):!c[0]||!p?!1:rt(p).isBefore(c[0])&&rt(j).isSame(c[0],e),T=j=>{if(t==="range")return{selected:c.some(k=>k&&rt(k).isSame(j,e)),inRange:S(j),firstInRange:_(j),lastInRange:E(j),"data-autofocus":!!c[0]&&rt(c[0]).isSame(j,e)||void 0};if(t==="multiple")return{selected:c.some(k=>k&&rt(k).isSame(j,e)),"data-autofocus":!!c[0]&&rt(c[0]).isSame(j,e)||void 0};const A=rt(c).isSame(j,e);return{selected:A,"data-autofocus":A||void 0}},M=t==="range"&&f?v:()=>{};return D.useEffect(()=>{if(t==="range")if(c[0]&&!c[1])h(c[0]);else{const j=c[0]==null&&c[1]==null,A=c[0]!=null&&c[1]!=null;(j||A)&&(h(null),v(null))}},[c]),{onDateChange:g,onRootMouseLeave:w,onHoveredDateChange:M,getControlProps:T,_value:c,setValue:d}}var BCe={datePickerRoot:"m_765a40cf",presetsList:"m_d6a681e1",presetButton:"m_acd30b22"};const HCe=(t,{size:e})=>({datePickerRoot:{"--preset-font-size":eo(e)}}),qCe={type:"default",defaultLevel:"month",numberOfColumns:1,size:"sm"},Mk=Ve((t,e)=>{const n=Ae("DatePicker",qCe,t),{allowDeselect:r,allowSingleDateInRange:o,value:s,defaultValue:i,onChange:l,onMouseLeave:c,classNames:d,styles:f,__staticSelector:h,__onDayClick:p,__onDayMouseEnter:v,__onPresetSelect:g,__stopPropagation:S,presets:w,className:_,style:E,unstyled:T,size:M,vars:j,attributes:A,...k}=n,{calendarProps:R,others:N}=zCe(k),I=D.useRef(null),L=D.useRef(null),F=pt({name:h||"DatePicker",classes:BCe,props:n,className:_,style:E,classNames:d,styles:f,unstyled:T,attributes:A,rootSelector:w?"datePickerRoot":void 0,varsResolver:HCe,vars:j}),{onDateChange:H,onRootMouseLeave:B,onHoveredDateChange:Y,getControlProps:U,_value:q,setValue:z}=UCe({type:N.type,level:"day",allowDeselect:r,allowSingleDateInRange:o,value:s,defaultValue:i,onChange:l,onMouseLeave:c}),{resolvedClassNames:W,resolvedStyles:K}=cp({classNames:d,styles:f,props:n}),G=b.jsx(j5,{ref:e,classNames:W,styles:K,__staticSelector:h||"DatePicker",onMouseLeave:B,size:M,...R,...w?{}:N,__stopPropagation:S,__setDateRef:I,__setLevelRef:L,minLevel:R.minLevel||"month",__onDayMouseEnter:(ne,se)=>{Y(se),v==null||v(ne,se)},__onDayClick:(ne,se)=>{H(se),p==null||p(ne,se)},getDayProps:ne=>{var se;return{...U(ne),...(se=R.getDayProps)==null?void 0:se.call(R,ne)}},getMonthControlProps:ne=>{var se;return{selected:typeof q=="string"?kk(ne,q):!1,...(se=R.getMonthControlProps)==null?void 0:se.call(R,ne)}},getYearControlProps:ne=>{var se;return{selected:typeof q=="string"?rt(ne).isSame(q,"year"):!1,...(se=R.getYearControlProps)==null?void 0:se.call(R,ne)}},hideOutsideDates:R.hideOutsideDates??R.numberOfColumns!==1,...w?{}:{className:_,style:E,attributes:A}});if(!w)return G;const X=ne=>{var ie,oe;const se=Array.isArray(ne)?ne[0]:ne;se!==void 0&&((ie=I.current)==null||ie.call(I,se),(oe=L.current)==null||oe.call(L,"month"),g?g(se):z(ne))},J=w.map((ne,se)=>b.jsx(Yo,{...F("presetButton"),onClick:()=>X(ne.value),onMouseDown:ie=>ie.preventDefault(),"data-mantine-stop-propagation":S||void 0,children:ne.label},se));return b.jsxs(je,{...F("datePickerRoot"),size:M,...N,children:[b.jsx("div",{...F("presetsList"),children:J}),G]})});Mk.classes=j5.classes;Mk.displayName="@mantine/dates/DatePicker";const lB=t=>{const e=be.c(35),{value:n,placeholder:r,onChange:o,onClear:s}=t,[i,l]=Wd(!1),{open:c,close:d}=l,{formatDate:f}=HU(),h=r2(d),{data:p}=zi.useGetQuery();let v;e[0]!==f||e[1]!==n?(v=f(n,{format:"dynamic",invalidValue:"-",useTimezone:!0}),e[0]=f,e[1]=n,e[2]=v):v=e[2];let g;e[3]!==v?(g=b.jsx(Dt,{size:"sm",children:v}),e[3]=v,e[4]=g):g=e[4];let S;e[5]!==c||e[6]!==g?(S=b.jsx(fr.Target,{children:b.jsx(In,{fullWidth:!0,justify:"flex-start",variant:"subtle",c:"light-dark(var(--mantine-color-gray-6), var(--mantine-color-dark-2))",size:"compact-md",w:90,onClick:c,children:g})}),e[5]=c,e[6]=g,e[7]=S):S=e[7];let w;e[8]!==n?(w=n?BO(n):void 0,e[8]=n,e[9]=w):w=e[9];let _;e[10]!==s||e[11]!==r||e[12]!==w?(_=b.jsx(rCe,{value:w,placeholder:r,onClear:s}),e[10]=s,e[11]=r,e[12]=w,e[13]=_):_=e[13];const E=(p==null?void 0:p.Culture)||"ru";let T;e[14]!==E?(T={locale:E},e[14]=E,e[15]=T):T=e[15];let M;e[16]!==n?(M=n?BO(n):void 0,e[16]=n,e[17]=M):M=e[17];let j;e[18]!==o||e[19]!==M?(j=b.jsx(Mk,{value:M,onChange:o}),e[18]=o,e[19]=M,e[20]=j):j=e[20];let A;e[21]!==j||e[22]!==T?(A=b.jsx(lCe,{settings:T,children:j}),e[21]=j,e[22]=T,e[23]=A):A=e[23];let k;e[24]!==A||e[25]!==_?(k=b.jsxs(_t,{children:[_,A]}),e[24]=A,e[25]=_,e[26]=k):k=e[26];let R;e[27]!==h||e[28]!==k?(R=b.jsx(fr.Dropdown,{ref:h,children:k}),e[27]=h,e[28]=k,e[29]=R):R=e[29];let N;return e[30]!==d||e[31]!==i||e[32]!==R||e[33]!==S?(N=b.jsx(je,{onClick:VCe,children:b.jsxs(fr,{opened:i,onClose:d,children:[S,R]})}),e[30]=d,e[31]=i,e[32]=R,e[33]=S,e[34]=N):N=e[34],N};function VCe(t){t.preventDefault(),t.stopPropagation()}const jk=t=>{const e=be.c(4),{t:n}=at(),[r]=Ct.useUpdateTaskMutation();let o;return e[0]!==n||e[1]!==t||e[2]!==r?(o=s=>{if(t)return Hr(r({...t,...s}).unwrap(),{successMsg:n("notification.success.editTask")}).then(()=>{lt.dispatch(tu.util.invalidateTags([{type:"Task",id:t.Id}]))})},e[0]=n,e[1]=t,e[2]=r,e[3]=o):o=e[3],o},YCe=t=>{const e=be.c(4),{t:n}=at(),[r]=Ct.useEditPerformersMutation();let o;return e[0]!==n||e[1]!==t||e[2]!==r?(o=s=>{if(t)return Hr(r({Id:t.Id,ParentId:t.ParentId??null,Key:t.Key||"",ProjectId:t.ProjectId||0,Performers:s}).unwrap(),{successMsg:n("notification.success.editTask")}).then(()=>{lt.dispatch(tu.util.invalidateTags([{type:"Task",id:t.Id}]))})},e[0]=n,e[1]=t,e[2]=r,e[3]=o):o=e[3],o},GDe=t=>{const e=be.c(3),[n]=Ct.useUpdateTaskMutation();let r;return e[0]!==t||e[1]!==n?(r=()=>{if(t)return Hr(n({...t}).unwrap()).then(()=>{lt.dispatch(tu.util.invalidateTags([{type:"Task",id:t.Id}]))})},e[0]=t,e[1]=n,e[2]=r):r=e[2],r},GCe=t=>{const e=be.c(13),{task:n}=t,{t:r}=at(),o=jk(n);let s;e[0]!==r||e[1]!==n.StartDate||e[2]!==o?(s=p=>{if(p&&n.StartDate){const v=Hd(p),g=Hd(zF(n.StartDate));if(jE(v,g)){ds({message:r("notification.error.dueDateBeforeStartDate")});return}}o({DueDate:p&&qU(p)})},e[0]=r,e[1]=n.StartDate,e[2]=o,e[3]=s):s=e[3];const i=s;let l;e[4]!==o?(l=()=>{o({DueDate:null})},e[4]=o,e[5]=l):l=e[5];const c=l,d=n.DueDate;let f;e[6]!==r?(f=r("dates.dueDate"),e[6]=r,e[7]=f):f=e[7];let h;return e[8]!==i||e[9]!==c||e[10]!==f||e[11]!==n.DueDate?(h=b.jsx(lB,{value:d,placeholder:f,onClear:c,onChange:i}),e[8]=i,e[9]=c,e[10]=f,e[11]=n.DueDate,e[12]=h):h=e[12],h},WCe=t=>{const e=be.c(13),{task:n}=t,{t:r}=at(),o=jk(n);let s;e[0]!==r||e[1]!==n.DueDate||e[2]!==o?(s=p=>{if(p&&n.DueDate){const v=Hd(p),g=Hd(zF(n.DueDate));if(jE(g,v)){ds({message:r("notification.error.startDateAfterDueDate")});return}}o({StartDate:p&&qU(p)})},e[0]=r,e[1]=n.DueDate,e[2]=o,e[3]=s):s=e[3];const i=s;let l;e[4]!==o?(l=()=>{o({StartDate:null})},e[4]=o,e[5]=l):l=e[5];const c=l,d=n.StartDate;let f;e[6]!==r?(f=r("dates.startDate"),e[6]=r,e[7]=f):f=e[7];let h;return e[8]!==i||e[9]!==c||e[10]!==f||e[11]!==n.StartDate?(h=b.jsx(lB,{value:d,placeholder:f,onClear:c,onChange:i}),e[8]=i,e[9]=c,e[10]=f,e[11]=n.StartDate,e[12]=h):h=e[12],h},S1=()=>({create:!1,delete:!1,edit:!1}),Gc=()=>({create:!0,delete:!0,edit:!0}),C4={project:{edit:!1,delete:!1},participants:S1(),folders:S1(),sprints:S1(),tasks:S1(),comments:S1()},cB={project:{edit:!0,delete:!1},participants:S1(),folders:Gc(),sprints:Gc(),tasks:Gc(),comments:Gc()},Qv={project:{edit:!0,delete:!0},participants:Gc(),folders:Gc(),sprints:Gc(),tasks:Gc(),comments:Gc()},uB=D.createContext(Qv),dB=()=>D.useContext(uB),QCe=t=>{const e=be.c(3),{projectId:n,children:r}=t,o=tn(KCe),{project:s}=Yr(n);s==null||s.AccessType,s==null||s.OwnerId;let i;e:{if((s==null?void 0:s.OwnerId)===o){i=Qv;break e}if((s==null?void 0:s.AccessType)===Ie.AccessType.Read){i=C4;break e}if((s==null?void 0:s.AccessType)===Ie.AccessType.Write){i=cB;break e}if((s==null?void 0:s.AccessType)===Ie.AccessType.Full){i=Qv;break e}i=C4}const l=i;let c;return e[0]!==l||e[1]!==r?(c=b.jsx(uB.Provider,{value:l,children:r}),e[0]=l,e[1]=r,e[2]=c):c=e[2],c},xp=t=>{const e=tn(XCe),{project:n}=Yr(t);n==null||n.AccessType,n==null||n.OwnerId;let r;e:{if((n==null?void 0:n.OwnerId)===e){r=Qv;break e}if((n==null?void 0:n.AccessType)===Ie.AccessType.Read){r=C4;break e}if((n==null?void 0:n.AccessType)===Ie.AccessType.Write){r=cB;break e}if((n==null?void 0:n.AccessType)===Ie.AccessType.Full){r=Qv;break e}r=C4}return r};function KCe(t){return t.usersCache.currentUser.Id}function XCe(t){return t.usersCache.currentUser.Id}const ZCe=()=>Rx([t=>t.usersCache.entities,(t,e)=>e],(t,e)=>{const n=e.map(r=>t[r]).filter(Boolean);return n.length?n:null}),fB=t=>{const{project:e}=Yr(t.ProjectId),n=D.useMemo(()=>{const o=t.Performers??[],s=(e==null?void 0:e.UserIds)??[];if(!o.length||!s.length)return[];const i=new Set(s);return o.filter(l=>i.has(l))},[t.Performers,e==null?void 0:e.UserIds]),r=D.useMemo(ZCe,[]);return tn(o=>r(o,n))},cf=t=>Sg.openConfirmModal({keepMounted:!1,centered:!0,labels:{confirm:jt("common.action.delete"),cancel:jt("common.action.cancel")},confirmProps:{color:"red.8",size:"md",radius:"md",fullWidth:!0},cancelProps:{size:"md",radius:"md",fullWidth:!0,variant:"subtle",color:"dark"},groupProps:{wrap:"nowrap"},...t});function JCe(t){if(!/^[0-9a-zA-Z-]+$/.test(t))throw new Error(`[@mantine/use-form] Form name "${t}" is invalid, it should contain only letters, numbers and dashes`)}const e_e=typeof window<"u"?D.useLayoutEffect:D.useEffect;function Ho(t,e){e_e(()=>{if(t)return window.addEventListener(t,e),()=>window.removeEventListener(t,e)},[t])}function t_e(t,e){t&&JCe(t),Ho(`mantine-form:${t}:set-field-value`,n=>e.setFieldValue(n.detail.path,n.detail.value)),Ho(`mantine-form:${t}:set-values`,n=>e.setValues(n.detail)),Ho(`mantine-form:${t}:set-initial-values`,n=>e.setInitialValues(n.detail)),Ho(`mantine-form:${t}:set-errors`,n=>e.setErrors(n.detail)),Ho(`mantine-form:${t}:set-field-error`,n=>e.setFieldError(n.detail.path,n.detail.error)),Ho(`mantine-form:${t}:clear-field-error`,n=>e.clearFieldError(n.detail)),Ho(`mantine-form:${t}:clear-errors`,e.clearErrors),Ho(`mantine-form:${t}:reset`,e.reset),Ho(`mantine-form:${t}:validate`,e.validate),Ho(`mantine-form:${t}:validate-field`,n=>e.validateField(n.detail)),Ho(`mantine-form:${t}:reorder-list-item`,n=>e.reorderListItem(n.detail.path,n.detail.payload)),Ho(`mantine-form:${t}:remove-list-item`,n=>e.removeListItem(n.detail.path,n.detail.index)),Ho(`mantine-form:${t}:insert-list-item`,n=>e.insertListItem(n.detail.path,n.detail.item,n.detail.index)),Ho(`mantine-form:${t}:set-dirty`,n=>e.setDirty(n.detail)),Ho(`mantine-form:${t}:set-touched`,n=>e.setTouched(n.detail)),Ho(`mantine-form:${t}:reset-dirty`,n=>e.resetDirty(n.detail)),Ho(`mantine-form:${t}:reset-touched`,e.resetTouched)}function hB(t){return e=>{if(!e)t(e);else if(typeof e=="function")t(e);else if(typeof e=="object"&&"nativeEvent"in e){const{currentTarget:n}=e;n instanceof HTMLInputElement?n.type==="checkbox"?t(n.checked):t(n.value):(n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement)&&t(n.value)}else t(e)}}function L8(t){return t===null||typeof t!="object"?{}:Object.keys(t).reduce((e,n)=>{const r=t[n];return r!=null&&r!==!1&&(e[n]=r),e},{})}function n_e(t){const[e,n]=D.useState(L8(t)),r=D.useRef(e),o=D.useCallback(c=>{n(d=>{const f=L8(typeof c=="function"?c(d):c);return r.current=f,f})},[]),s=D.useCallback(()=>o({}),[]),i=D.useCallback(c=>{r.current[c]!==void 0&&o(d=>{const f={...d};return delete f[c],f})},[e]),l=D.useCallback((c,d)=>{d==null||d===!1?i(c):r.current[c]!==d&&o(f=>({...f,[c]:d}))},[e]);return{errorsState:e,setErrors:o,clearErrors:s,setFieldError:l,clearFieldError:i}}function F8(t,e){if(e===null||typeof e!="object")return{};const n={...e};return Object.keys(e).forEach(r=>{r.includes(`${String(t)}.`)&&delete n[r]}),n}function WO(t,e){const n=t.substring(e.length+1).split(".")[0];return parseInt(n,10)}function QO(t,e,n,r){if(e===void 0)return n;const o=`${String(t)}`;let s=n;r===-1&&(s=F8(`${o}.${e}`,s));const i={...s},l=new Set;return Object.entries(s).filter(([c])=>{if(!c.startsWith(`${o}.`))return!1;const d=WO(c,o);return Number.isNaN(d)?!1:d>=e}).forEach(([c,d])=>{const f=WO(c,o),h=c.replace(`${o}.${f}`,`${o}.${f+r}`);i[h]=d,l.add(h),l.has(c)||delete i[c]}),i}function r_e(t,{from:e,to:n},r){const o=`${t}.${e}`,s=`${t}.${n}`,i={...r},l=new Set;return Object.keys(r).forEach(c=>{if(l.has(c))return;let d,f;if(c.startsWith(o)?(d=c,f=c.replace(o,s)):c.startsWith(s)&&(d=c.replace(s,o),f=c),d&&f){const h=i[d],p=i[f];p===void 0?delete i[d]:i[d]=p,h===void 0?delete i[f]:i[f]=h,l.add(d),l.add(f)}}),i}function KO(t,e,n){typeof n.value=="object"&&(n.value=E1(n.value)),!n.enumerable||n.get||n.set||!n.configurable||!n.writable||e==="__proto__"?Object.defineProperty(t,e,n):t[e]=n.value}function E1(t){if(typeof t!="object")return t;var e=0,n,r,o,s=Object.prototype.toString.call(t);if(s==="[object Object]"?o=Object.create(t.__proto__||null):s==="[object Array]"?o=Array(t.length):s==="[object Set]"?(o=new Set,t.forEach(function(i){o.add(E1(i))})):s==="[object Map]"?(o=new Map,t.forEach(function(i,l){o.set(E1(l),E1(i))})):s==="[object Date]"?o=new Date(+t):s==="[object RegExp]"?o=new RegExp(t.source,t.flags):s==="[object DataView]"?o=new t.constructor(E1(t.buffer)):s==="[object ArrayBuffer]"?o=t.slice(0):s.slice(-6)==="Array]"&&(o=new t.constructor(t)),o){for(r=Object.getOwnPropertySymbols(t);e<r.length;e++)KO(o,r[e],Object.getOwnPropertyDescriptor(t,r[e]));for(e=0,r=Object.getOwnPropertyNames(t);e<r.length;e++)Object.hasOwnProperty.call(o,n=r[e])&&o[n]===t[n]||KO(o,n,Object.getOwnPropertyDescriptor(t,n))}return o||t}function pB(t){return typeof t!="string"?[]:t.split(".")}function vo(t,e){const n=pB(t);if(n.length===0||typeof e!="object"||e===null)return;let r=e[n[0]];for(let o=1;o<n.length&&r!=null;o+=1)r=r[n[o]];return r}function W2(t,e,n){const r=pB(t);if(r.length===0)return n;const o=E1(n);if(r.length===1)return o[r[0]]=e,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]]=e,o}function o_e(t,{from:e,to:n},r){const o=vo(t,r);if(!Array.isArray(o))return r;const s=[...o],i=o[e];return s.splice(e,1),s.splice(n,0,i),W2(t,s,r)}function s_e(t,e,n,r){const o=vo(t,r);if(!Array.isArray(o))return r;const s=[...o];return s.splice(typeof n=="number"?n:s.length,0,e),W2(t,s,r)}function i_e(t,e,n){const r=vo(t,n);return Array.isArray(r)?W2(t,r.filter((o,s)=>s!==e),n):n}function a_e(t,e,n,r){const o=vo(t,r);if(!Array.isArray(o)||o.length<=n)return r;const s=[...o];return s[n]=e,W2(t,s,r)}function l_e({$values:t,$errors:e,$status:n}){const r=D.useCallback((l,c)=>{n.clearFieldDirty(l),e.setErrors(d=>r_e(l,c,d)),t.setValues({values:o_e(l,c,t.refValues.current),updateState:!0})},[]),o=D.useCallback((l,c)=>{n.clearFieldDirty(l),e.setErrors(d=>QO(l,c,d,-1)),t.setValues({values:i_e(l,c,t.refValues.current),updateState:!0})},[]),s=D.useCallback((l,c,d)=>{n.clearFieldDirty(l),e.setErrors(f=>QO(l,d,f,1)),t.setValues({values:s_e(l,c,d,t.refValues.current),updateState:!0})},[]),i=D.useCallback((l,c,d)=>{n.clearFieldDirty(l),t.setValues({values:a_e(l,d,c,t.refValues.current),updateState:!0})},[]);return{reorderListItem:r,removeListItem:o,insertListItem:s,replaceListItem:i}}var K6,XO;function c_e(){return XO||(XO=1,K6=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,o,s;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!t(e[o],n[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(s=Object.keys(e),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(!t(e[i],n[i]))return!1}return!0}return e!==e&&n!==n}),K6}var u_e=c_e();const z3=hu(u_e);function Ky(t,e){const n=Object.keys(t);if(typeof e=="string"){const r=n.filter(o=>o.startsWith(`${e}.`));return t[e]||r.some(o=>t[o])||!1}return n.some(r=>t[r])}function d_e({initialDirty:t,initialTouched:e,mode:n,$values:r}){const[o,s]=D.useState(e),[i,l]=D.useState(t),c=D.useRef(e),d=D.useRef(t),f=D.useCallback(A=>{const k=typeof A=="function"?A(c.current):A;c.current=k,n==="controlled"&&s(k)},[]),h=D.useCallback((A,k=!1)=>{const R=typeof A=="function"?A(d.current):A;d.current=R,(n==="controlled"||k)&&l(R)},[]),p=D.useCallback(()=>f({}),[]),v=D.useCallback(A=>{const k=A?{...r.refValues.current,...A}:r.refValues.current;r.setValuesSnapshot(k),h({})},[]),g=D.useCallback((A,k)=>{f(R=>Ky(R,A)===k?R:{...R,[A]:k})},[]),S=D.useCallback((A,k,R)=>{h(N=>Ky(N,A)===k?N:{...N,[A]:k},R)},[]),w=D.useCallback((A,k)=>{const R=Ky(d.current,A),N=!z3(vo(A,r.getValuesSnapshot()),k),I=F8(A,d.current);I[A]=N,h(I,R!==N)},[]),_=D.useCallback(A=>Ky(c.current,A),[]),E=D.useCallback(A=>h(k=>{if(typeof A!="string")return k;const R=F8(A,k);return delete R[A],z3(R,k)?k:R}),[]),T=D.useCallback(A=>{if(A){const R=vo(A,d.current);if(typeof R=="boolean")return R;const N=vo(A,r.refValues.current),I=vo(A,r.valuesSnapshot.current);return!z3(N,I)}return Object.keys(d.current).length>0?Ky(d.current):!z3(r.refValues.current,r.valuesSnapshot.current)},[]),M=D.useCallback(()=>d.current,[]),j=D.useCallback(()=>c.current,[]);return{touchedState:o,dirtyState:i,touchedRef:c,dirtyRef:d,setTouched:f,setDirty:h,resetDirty:v,resetTouched:p,isTouched:_,setFieldTouched:g,setFieldDirty:S,setTouchedState:s,setDirtyState:l,clearFieldDirty:E,isDirty:T,getDirty:M,getTouched:j,setCalculatedFieldDirty:w}}function f_e({initialValues:t,onValuesChange:e,mode:n}){const r=D.useRef(!1),[o,s]=D.useState(t||{}),i=D.useRef(o),l=D.useRef(o),c=D.useCallback(({values:w,subscribers:_,updateState:E=!0,mergeWithPreviousValues:T=!0})=>{const M=i.current,j=w instanceof Function?w(i.current):w,A=T?{...M,...j}:j;i.current=A,E&&(s(A),n==="uncontrolled"&&(i.current=A)),e==null||e(A,M),_==null||_.filter(Boolean).forEach(k=>k({updatedValues:A,previousValues:M}))},[e]),d=D.useCallback(w=>{var T;const _=vo(w.path,i.current),E=w.value instanceof Function?w.value(_):w.value;if(_!==E){const M=i.current,j=W2(w.path,E,i.current);c({values:j,updateState:w.updateState}),(T=w.subscribers)==null||T.filter(Boolean).forEach(A=>A({path:w.path,updatedValues:j,previousValues:M}))}},[c]),f=D.useCallback(w=>{l.current=w},[]),h=D.useCallback((w,_)=>{r.current||(r.current=!0,c({values:w,updateState:n==="controlled"}),f(w),_())},[c]),p=D.useCallback(()=>{c({values:l.current,updateState:!0,mergeWithPreviousValues:!1})},[c]),v=D.useCallback(()=>i.current,[]),g=D.useCallback(()=>l.current,[]),S=D.useCallback((w,_)=>{const E=vo(w,l.current);typeof E>"u"||d({path:w,value:E,updateState:n==="controlled",subscribers:_})},[d,n]);return{initialized:r,stateValues:o,refValues:i,valuesSnapshot:l,setValues:c,setFieldValue:d,resetValues:p,setValuesSnapshot:f,initialize:h,getValues:v,getValuesSnapshot:g,resetField:S}}function h_e({$status:t,cascadeUpdates:e}){const n=D.useRef({}),r=D.useCallback((s,i)=>{D.useEffect(()=>(n.current[s]=n.current[s]||[],n.current[s].push(i),()=>{n.current[s]=n.current[s].filter(l=>l!==i)}),[i])},[]),o=D.useCallback(s=>{var l;const i=((l=n.current[s])==null?void 0:l.map(c=>d=>c({previousValue:vo(s,d.previousValues),value:vo(s,d.updatedValues),touched:t.isTouched(s),dirty:t.isDirty(s)})))??[];if(e)for(const c in n.current)(c.startsWith(`${s}.`)||s.startsWith(`${c}.`))&&i.push(...n.current[c].map(d=>f=>d({previousValue:vo(c,f.previousValues),value:vo(c,f.updatedValues),touched:t.isTouched(c),dirty:t.isDirty(c)})));return i},[]);return{subscribers:n,watch:r,getFieldSubscribers:o}}function ZO(t,e){return t?`${t}-${e.toString()}`:e.toString()}const U3=Symbol("root-rule");function JO(t){const e=L8(t);return{hasErrors:Object.keys(e).length>0,errors:e}}function z8(t,e,n="",r={}){return typeof t!="object"||t===null?r:Object.keys(t).reduce((o,s)=>{const i=t[s],l=`${n===""?"":`${n}.`}${s}`,c=vo(l,e);let d=!1;return typeof i=="function"&&(o[l]=i(c,e,l)),typeof i=="object"&&Array.isArray(c)&&(d=!0,c.forEach((f,h)=>z8(i,e,`${l}.${h}`,o)),U3 in i&&(o[l]=i[U3](c,e,l))),typeof i=="object"&&typeof c=="object"&&c!==null&&(d||z8(i,e,l,o),U3 in i&&(o[l]=i[U3](c,e,l))),o},r)}function U8(t,e){return JO(typeof t=="function"?t(e):z8(t,e))}function B3(t,e,n){if(typeof t!="string")return{hasError:!1,error:null};const r=U8(e,n),o=Object.keys(r.errors).find(s=>t.split(".").every((i,l)=>i===s.split(".")[l]));return{hasError:!!o,error:o?r.errors[o]:null}}const p_e="__MANTINE_FORM_INDEX__";function B8(t,e){return e?typeof e=="boolean"?e:Array.isArray(e)?e.includes(t.replace(/[.][0-9]+/g,`.${p_e}`)):!1:!1}function D5({name:t,mode:e="controlled",initialValues:n,initialErrors:r={},initialDirty:o={},initialTouched:s={},clearInputErrorOnChange:i=!0,validateInputOnChange:l=!1,validateInputOnBlur:c=!1,onValuesChange:d,transformValues:f=(w=>w),enhanceGetInputProps:h,validate:p,onSubmitPreventDefault:v="always",touchTrigger:g="change",cascadeUpdates:S=!1}={}){const w=n_e(r),_=f_e({initialValues:n,onValuesChange:d,mode:e}),E=d_e({initialDirty:o,initialTouched:s,$values:_,mode:e}),T=l_e({$values:_,$errors:w,$status:E}),M=h_e({$status:E,cascadeUpdates:S}),[j,A]=D.useState(0),[k,R]=D.useState({}),[N,I]=D.useState(!1),L=D.useCallback(()=>{_.resetValues(),w.clearErrors(),E.resetDirty(),E.resetTouched(),e==="uncontrolled"&&A(oe=>oe+1)},[]),F=D.useCallback(oe=>{i&&w.clearErrors(),e==="uncontrolled"&&A(de=>de+1),Object.keys(M.subscribers.current).forEach(de=>{const pe=vo(de,_.refValues.current),fe=vo(de,oe);pe!==fe&&M.getFieldSubscribers(de).forEach(Te=>Te({previousValues:oe,updatedValues:_.refValues.current}))})},[i]),H=D.useCallback(oe=>{const de=_.refValues.current;_.initialize(oe,()=>e==="uncontrolled"&&A(pe=>pe+1)),F(de)},[F]),B=D.useCallback((oe,de,pe)=>{const fe=B8(oe,l),Te=de instanceof Function?de(vo(oe,_.refValues.current)):de;E.setCalculatedFieldDirty(oe,Te),g==="change"&&E.setFieldTouched(oe,!0),!fe&&i&&w.clearFieldError(oe),_.setFieldValue({path:oe,value:de,updateState:e==="controlled",subscribers:[...M.getFieldSubscribers(oe),fe?we=>{const _e=B3(oe,p,we.updatedValues);_e.hasError?w.setFieldError(oe,_e.error):w.clearFieldError(oe)}:null,(pe==null?void 0:pe.forceUpdate)!==!1&&e!=="controlled"?()=>R(we=>({...we,[oe]:(we[oe]||0)+1})):null]})},[d,p]),Y=D.useCallback(oe=>{const de=_.refValues.current;_.setValues({values:oe,updateState:e==="controlled"}),F(de)},[d,F]),U=D.useCallback(()=>{const oe=U8(p,_.refValues.current);return w.setErrors(oe.errors),oe},[p]),q=D.useCallback(oe=>{const de=B3(oe,p,_.refValues.current);return de.hasError?w.setFieldError(oe,de.error):w.clearFieldError(oe),de},[p]),z=(oe,{type:de="input",withError:pe=!0,withFocus:fe=!0,...Te}={})=>{const _e={onChange:hB(De=>B(oe,De,{forceUpdate:!1})),"data-path":ZO(t,oe)};return pe&&(_e.error=w.errorsState[oe]),de==="checkbox"?_e[e==="controlled"?"checked":"defaultChecked"]=vo(oe,_.refValues.current):_e[e==="controlled"?"value":"defaultValue"]=vo(oe,_.refValues.current),fe&&(_e.onFocus=()=>E.setFieldTouched(oe,!0),_e.onBlur=()=>{if(B8(oe,c)){const De=B3(oe,p,_.refValues.current);De.hasError?w.setFieldError(oe,De.error):w.clearFieldError(oe)}}),Object.assign(_e,h==null?void 0:h({inputProps:_e,field:oe,options:{type:de,withError:pe,withFocus:fe,...Te},form:ie}))},W=(oe,de)=>pe=>{v==="always"&&(pe==null||pe.preventDefault());const fe=U();if(fe.hasErrors)v==="validation-failed"&&(pe==null||pe.preventDefault()),de==null||de(fe.errors,_.refValues.current,pe);else{const Te=oe==null?void 0:oe(f(_.refValues.current),pe);Te instanceof Promise&&(I(!0),Te.finally(()=>I(!1)))}},K=oe=>f(oe||_.refValues.current),G=D.useCallback(oe=>{oe.preventDefault(),L()},[]),X=D.useCallback(oe=>oe?!B3(oe,p,_.refValues.current).hasError:!U8(p,_.refValues.current).hasErrors,[p]),J=oe=>`${j}-${String(oe)}-${k[String(oe)]||0}`,ne=D.useCallback(oe=>document.querySelector(`[data-path="${ZO(t,oe)}"]`),[]),se=D.useCallback(oe=>{_.resetField(oe,[e!=="controlled"?()=>R(de=>({...de,[oe]:(de[oe]||0)+1})):null])},[_.resetField,e,R]),ie={watch:M.watch,initialized:_.initialized.current,values:e==="uncontrolled"?_.refValues.current:_.stateValues,getValues:_.getValues,getInitialValues:_.getValuesSnapshot,setInitialValues:_.setValuesSnapshot,resetField:se,initialize:H,setValues:Y,setFieldValue:B,submitting:N,setSubmitting:I,errors:w.errorsState,setErrors:w.setErrors,setFieldError:w.setFieldError,clearFieldError:w.clearFieldError,clearErrors:w.clearErrors,resetDirty:E.resetDirty,setTouched:E.setTouched,setDirty:E.setDirty,isTouched:E.isTouched,resetTouched:E.resetTouched,isDirty:E.isDirty,getTouched:E.getTouched,getDirty:E.getDirty,reorderListItem:T.reorderListItem,insertListItem:T.insertListItem,removeListItem:T.removeListItem,replaceListItem:T.replaceListItem,reset:L,validate:U,validateField:q,getInputProps:z,onSubmit:W,onReset:G,isValid:X,getTransformedValues:K,key:J,getInputNode:ne};return t_e(t,ie),ie}function m_e(){const t=D.createContext(null);function e({form:r,children:o}){return b.jsx(t.Provider,{value:r,children:o})}function n(){const r=D.useContext(t);if(!r)throw new Error("useFormContext was called outside of FormProvider context");return r}return[e,n,D5]}function g_e(t,e){const n=e||!0;return r=>typeof r!="string"?n:t.test(r)?null:n}function eP(t,e){if(typeof t=="number")return e.length===t;const{max:n,min:r}=t;let o=!0;return typeof n=="number"&&e.length>n&&(o=!1),typeof r=="number"&&e.length<r&&(o=!1),o}function mB(t,e){const n=e||!0;return r=>typeof r=="string"?eP(t,r.trim())?null:n:typeof r=="object"&&r!==null&&"length"in r&&eP(t,r)?null:n}function gB({mode:t="controlled",clearErrorOnChange:e=!0,initialValue:n,initialError:r=null,initialTouched:o=!1,onValueChange:s,validateOnChange:i=!1,validateOnBlur:l=!1,validate:c,resolveValidationError:d,type:f="input"}){const[h,p]=D.useState(n),v=D.useRef(h),[g,S]=D.useState(0),[w,_]=D.useState(r||null),E=D.useRef(o||!1),[,T]=D.useState(E.current),[M,j]=D.useState(!1),A=D.useMemo(()=>d||(U=>U),[d]),k=D.useCallback((U,{updateState:q=t==="controlled"}={})=>{E.current=U,q&&T(U)},[]),R=D.useCallback((U,{updateKey:q=t==="uncontrolled",updateState:z=t==="controlled"}={})=>{v.current!==U&&(v.current=U,s==null||s(U),e&&w!==null&&_(null),z&&p(U),q&&S(W=>W+1),i&&H())},[w,e,s]),N=D.useCallback(()=>{R(n),_(null),k(!1)},[n]),I=D.useCallback(()=>v.current,[]),L=D.useCallback(()=>E.current,[]),F=D.useCallback(()=>v.current!==n,[n]),H=D.useCallback(async()=>{const U=c==null?void 0:c(v.current);if(U instanceof Promise){j(!0);try{const q=await U;j(!1),_(q)}catch(q){j(!1);const z=A(q);return _(z),z}}else return _(U),U},[]),B=({withError:U=!0,withFocus:q=!0}={})=>{const W={onChange:hB(K=>R(K,{updateKey:!1}))};return U&&(W.error=w),f==="checkbox"?W[t==="controlled"?"checked":"defaultChecked"]=v.current:W[t==="controlled"?"value":"defaultValue"]=v.current,q&&(W.onFocus=()=>{k(!0)},W.onBlur=()=>{B8("",!!l)&&H()}),W},Y=D.useCallback(()=>k(!1),[]);return{key:g,getValue:I,setValue:R,reset:N,getInputProps:B,isValidating:M,validate:H,error:w,setError:_,isTouched:L,isDirty:F,resetTouched:Y}}const[y_e,v_e,b_e]=m_e();let X6=!1;const WDe=({defaultValue:t,entityType:e})=>{const{t:n}=at(),r=ou(l=>{lt.dispatch(wt.endpoints.generateKey.initiate(l,{forceRefetch:!0})).unwrap().then(c=>i.setFieldValue("key",c))},1e3),o=ou(l=>{lt.dispatch(wt.endpoints.getUniqueKey.initiate(l,{forceRefetch:!0})).unwrap().then(()=>i.setFieldError("key",null)).catch(()=>i.setFieldError("key",n(`${Ad}.key.unique`))).finally(()=>i.setSubmitting(!1))},1e3),s=l=>(l&&l!==t.key&&(i.setSubmitting(!0),o(l)),null),i=b_e({initialValues:vSe(t),validateInputOnChange:["key"],validate:{name:(l,c)=>!c.formType&&!l.trim().length?n(`${Ad}.title.${e}`):null,key:(l,c)=>{if(!X6)return i.errors.key;if(c.formType!=="key")return null;const d={min:2,max:10},f=[mB(d,n(`${Ad}.minMaxLength`,d)),g_e(/^[A-Za-z]/,n(`${Ad}.startsWithLetter`)),s];X6=!1;for(const h of f){const p=h(l);if(p)return p}return null},statuses:{current:{name:H3({tPath:"statuses",value:"name",uniq:!0,required:!0})}},types:l=>e!=="project"||l.length?null:n(`${Ad}.types`),custom:{name:H3({tPath:"customFields",value:"name",uniq:!0,required:!0,maxLength:250}),options:{value:H3({tPath:"customFields",uniq:!0,required:!0,maxLength:250})}},tags:{name:H3({tPath:"tags",value:"name",required:!0,uniq:!0,maxLength:250})}},onValuesChange:(l,c)=>{l.hasNoKey&&l.name!==c.name&&r(l.name)},enhanceGetInputProps:l=>l.field==="key"?{onChange:c=>{X6=!0,i.setFieldValue("hasNoKey",!1);const d=c.target.selectionStart,f=c.target.value.replace(/[^A-Za-z0-9]/g,"").toUpperCase();l.form.setFieldValue(l.field,f),setTimeout(()=>c.target.setSelectionRange(d,d))}}:{},transformValues(l){return{...l,name:l.name.trim(),statuses:{...l.statuses,current:l.statuses.current.map(c=>({...c,name:c.name.trim(),state:tP(t.statuses.current.find(d=>d.id===c.id),c)}))},custom:l.custom.map(c=>({...c,name:c.name.trim(),options:c.options?c.options.map(d=>({...d,value:d.value.trim()})):null})),tags:l.tags.map(c=>({...c,name:c.name.trim(),state:tP(t.tags.find(d=>d.id===c.id),c)}))}}});return i},Ad="entitySettings.errors",tP=(t,e)=>e.state==="original"&&t&&!o5(sO(t,["name","color","order"]),sO(e,["name","color","order"]))?"updated":e.state,QDe=v_e,KDe=y_e,H3=({tPath:t,value:e="value",uniq:n,required:r,maxLength:o})=>(s,i,l)=>{const{t:c}=ko,d=ft(i,l.split(".").slice(0,-2).join(".")),f=ft(i,l.split(".").slice(0,-1).join(".")),h=d.filter(p=>p.state!=="removed").every(p=>p.id===f.id||p[e].trim()!==f[e].trim());return f.state==="removed"?null:s.trim().length?Zr(o)&&s.trim().length>o?c(`${Ad}.maxLength`,{count:o}):h?null:c(`${Ad}.${t}.uniq`):c(`${Ad}.${t}.required`)},S_e=({type:t,valueType:e,color:n})=>{let r,o=18;switch(t){case cr.IType.Collection:r=_g,o=20;break;case cr.IType.Text:r=zE;break;case cr.IType.Link:r=Kx;break;case cr.IType.Variants:r=xu;break;case cr.IType.NotStated:default:r=w_e[e]}return b.jsx(rf,{size:24,variant:"transparent",color:n||"gray.6",children:b.jsx(r,{size:o,stroke:1.5})})},w_e={[cr.IValueType.Int]:Va,[cr.IValueType.Long]:Va,[cr.IValueType.String]:zE,[cr.IValueType.Double]:Va,[cr.IValueType.Date]:Va,[cr.IValueType.Array]:Va,[cr.IValueType.Link]:Kx,[cr.IValueType.Select]:xu,[cr.IValueType.Option]:Va,[cr.IValueType.CheckBox]:Va,[cr.IValueType.Secure]:Va},x_e=t=>{const e=be.c(23);let n,r,o,s,i;e[0]!==t?({value:i,color:o,useHotkeys:r,iconProps:n,...s}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s,e[5]=i):(n=e[1],r=e[2],o=e[3],s=e[4],i=e[5]);const{t:l}=at(),c=Lr(),d=$4(),f=D.useRef(null),h=d==="macos"?"⌘":"Ctrl";let p;e[6]!==o||e[7]!==c?(p=o?dr(o,c):void 0,e[6]=o,e[7]=c,e[8]=p):p=e[8];let v;e[9]!==n||e[10]!==p?(v={size:18,color:p,...n},e[9]=n,e[10]=p,e[11]=v):v=e[11];const g=v;let S;e[12]!==r?(S=[["mod + I",()=>{var E;return r&&((E=f==null?void 0:f.current)==null?void 0:E.call(f))}]],e[12]=r,e[13]=S):S=e[13],o2(S);let w;e[14]!==r||e[15]!==g||e[16]!==h||e[17]!==s||e[18]!==l?(w=E=>{const{copied:T,copy:M}=E;return f.current=M,b.jsx(yi,{label:l(`copyButton.${T?"copied":"copyWithKey"}`,{key:`${h} + I`}),withArrow:!0,position:"top",opened:r?T||void 0:!1,children:b.jsx(lr,{onClick:M,variant:"subtle",color:"light-dark(var(--mantine-color-dark-6), var(--mantine-color-dark-0))",...s,children:T?b.jsx(LE,{...g}):b.jsx(JF,{...g})})})},e[14]=r,e[15]=g,e[16]=h,e[17]=s,e[18]=l,e[19]=w):w=e[19];let _;return e[20]!==w||e[21]!==i?(_=b.jsx(tx,{value:i,children:w}),e[20]=w,e[21]=i,e[22]=_):_=e[22],_},Dk=(t,e)=>{const n=nr.endpoints.getNormalizeCollections.select(null)(t).data;if(n)for(const r of Object.values(n)){const o=r.find(s=>s.Id===e);if(o)return o}},C_e=(t,e)=>{const n=Dk(t,e);return n==null?void 0:n.Name},__e="_grid_x2xa8_1",T_e="_value_x2xa8_2",E_e="_gridItem_x2xa8_9",k_e="_scrollThumb_x2xa8_50",jh={grid:__e,value:T_e,gridItem:E_e,scrollThumb:k_e},w1=5,M_e=D.memo(({tableId:t,value:e,options:n,columns:r,columnsOrder:o,withSearch:s,flex:i,w:l,onChange:c,onClear:d,isDeletedValue:f})=>{var A,k;const h=D.useRef(null),p=hc(),{t:v}=at(),g=n==null?void 0:n.find(R=>R.Id===e),[S,w]=sT(""),_=fp({onDropdownClose:()=>{_.resetSelectedOption()},onDropdownOpen:()=>{_.focusSearchInput()}}),E=!(n!=null&&n.length)||!(r!=null&&r.length),T=39,M=n!=null&&n.length?Fs(ha(n.flatMap(R=>R.Values.map(N=>Number(N.ColumnId)))),R=>o.indexOf(R)):[],j=D.useCallback(()=>{t&&p(fu(wn.collection,{collectionId:t}))},[t,p]);return b.jsxs(Ht,{store:_,withinPortal:!1,onOptionSubmit:R=>{_.closeDropdown(),c==null||c(Number(R)),w("")},children:[b.jsx(Ht.Target,{children:b.jsx(Zd,{ref:h,component:"button",type:"button",pointer:!0,rightSection:!E&&e!==null&&!f?b.jsxs(Lt,{gap:4,px:4,children:[b.jsx(lr,{size:"sm",variant:"subtle",color:"gray.6",onClick:j,children:b.jsx(Tge,{size:16})}),b.jsx(al,{size:"sm",onClick:d,"aria-label":"Clear value"})]}):b.jsx(Ht.Chevron,{}),onClick:()=>_.toggleDropdown(),rightSectionWidth:!E&&e!==null?56:void 0,multiline:!0,flex:i,w:l,h:52,styles:{input:{paddingBottom:g&&M.length<w1?0:void 0,border:f?"1px solid var(--mantine-color-orange-5)":void 0}},children:b.jsx(je,{mih:T,style:{overflow:"hidden"},children:g?M.length<w1?b.jsx(Z6,{row:g,columnIds:M,columns:r}):b.jsxs(Hi.Autosize,{scrollbars:"x",offsetScrollbars:"x",type:"always",classNames:{thumb:jh.scrollThumb},scrollbarSize:6,children:[b.jsx(Z6,{row:g,columnIds:M,columns:r}),b.jsx(Xh,{h:4})]}):b.jsx(Lt,{mih:T,align:"center",children:b.jsx(qr.Placeholder,{children:v("placeholder.pickValue")})})})})}),b.jsxs(Ht.Dropdown,{style:{zIndex:1010},children:[!E&&s&&b.jsx(Ht.Search,{value:S,onChange:R=>w(R.currentTarget.value),placeholder:v("common.action.search"),leftSection:b.jsx(O2,{color:"var(--mantine-color-gray-6)",size:16})}),b.jsxs(Hi.Autosize,{mah:300,scrollbarSize:6,children:[b.jsx(Ht.Options,{w:M.length<w1&&((A=h.current)!=null&&A.clientWidth)?((k=h.current)==null?void 0:k.clientWidth)-16:void 0,children:E?b.jsx(Ht.Empty,{children:v("common.nodata")}):D_e(n,S).map(R=>b.jsx(Ht.Option,{value:R.Id.toString(),pb:M.length<w1?0:void 0,children:b.jsx(Z6,{row:R,columnIds:M,columns:r})},R.Id))}),M.length>=w1&&b.jsx(Xh,{h:4})]})]})]})});function Z6(t){const e=be.c(30),{row:n,columnIds:r,columns:o}=t,s=Math.floor(12/r.length),i=r.length;let l;e[0]!==n?(l=g=>{var _;const S=n.Values.filter(E=>Number(E.ColumnId)===g);return((_=S.find(j_e)??S[0])==null?void 0:_.Value)??null},e[0]=n,e[1]=l):l=e[1];const c=l;let d;e[2]!==o?(d=g=>{var S;return((S=o==null?void 0:o.find(w=>w.Id===g))==null?void 0:S.Name)??String(g)},e[2]=o,e[3]=d):d=e[3];const f=d;if(i<w1){let g;e[4]===Symbol.for("react.memo_cache_sentinel")?(g={inner:{alignItems:"center"}},e[4]=g):g=e[4];let S;if(e[5]!==r||e[6]!==o||e[7]!==f||e[8]!==c||e[9]!==s){let _;e[11]!==o||e[12]!==f||e[13]!==c||e[14]!==s?(_=E=>{const T=o==null?void 0:o.find(k=>k.Id===E),M=c(E),A=(T==null?void 0:T.Format)==="date"&&M?u4(/^\d+$/.test(M)?new Date(Number(M)):new Date(M),"dd.MM.yyyy"):M==null?void 0:M.toString();return b.jsx(Ev.Col,{span:s,className:jh.gridItem,h:52,children:b.jsxs(_t,{gap:0,display:"flex",children:[b.jsx(ci,{style:{fontSize:10,lineHeight:"12px"},c:"gray.6",children:f(E)}),M?b.jsx(ci,{style:{fontSize:13,lineHeight:"17px"},className:jh.value,children:A}):b.jsx(Xh,{h:17})]})},E)},e[11]=o,e[12]=f,e[13]=c,e[14]=s,e[15]=_):_=e[15],S=r.map(_),e[5]=r,e[6]=o,e[7]=f,e[8]=c,e[9]=s,e[10]=S}else S=e[10];let w;return e[16]!==S?(w=b.jsx(Ev,{className:jh.grid,h:52,styles:g,children:S}),e[16]=S,e[17]=w):w=e[17],w}const h=r.length;let p;if(e[18]!==r||e[19]!==o||e[20]!==f||e[21]!==c){let g;e[23]!==o||e[24]!==f||e[25]!==c?(g=S=>{const w=o==null?void 0:o.find(M=>M.Id===S),_=c(S),T=(w==null?void 0:w.Format)==="date"&&_?u4(/^\d+$/.test(_)?new Date(Number(_)):new Date(_),"dd.MM.yyyy"):_==null?void 0:_.toString();return b.jsx(je,{className:jh.gridItem,children:b.jsxs(_t,{gap:0,children:[b.jsx(ci,{style:{fontSize:10,lineHeight:"12px"},c:"gray.6",children:f(S)}),_?b.jsx(ci,{style:{fontSize:13,lineHeight:"17px"},className:jh.value,children:T}):b.jsx(Xh,{h:17})]})},S)},e[23]=o,e[24]=f,e[25]=c,e[26]=g):g=e[26],p=r.map(g),e[18]=r,e[19]=o,e[20]=f,e[21]=c,e[22]=p}else p=e[22];let v;return e[27]!==r.length||e[28]!==p?(v=b.jsx(A7,{cols:h,spacing:0,"data-simple":!0,className:jh.grid,children:p}),e[27]=r.length,e[28]=p,e[29]=v):v=e[29],v}function j_e(t){return t.Value!==null}const D_e=(t,e)=>t.filter(n=>n.Values.map(r=>r.Value).toString().toLowerCase().includes(e.toLowerCase())),A_e=D.memo(t=>{const e=be.c(17),{tableId:n,taskId:r,attributeId:o,parentId:s,recordId:i,columnsOrder:l,columns:c,options:d,value:f,isDeletedValue:h}=t,[p,v]=D.useState(f?Number(f):null),[g]=Ct.useEditAttributeMutation();let S;e[0]!==g||e[1]!==o||e[2]!==s||e[3]!==i||e[4]!==r?(S=M=>{v(M),g({Value:(M==null?void 0:M.toString())||"",AttributeId:o,TaskId:r,Id:i,parentForUpdate:s})},e[0]=g,e[1]=o,e[2]=s,e[3]=i,e[4]=r,e[5]=S):S=e[5];const w=S,_=Number(n);let E;e[6]!==w?(E=()=>{w(null)},e[6]=w,e[7]=E):E=e[7];let T;return e[8]!==c||e[9]!==l||e[10]!==w||e[11]!==h||e[12]!==d||e[13]!==p||e[14]!==_||e[15]!==E?(T=b.jsx(M_e,{tableId:_,flex:1,w:200,options:d,columns:c,value:p,columnsOrder:l,withSearch:!0,onChange:w,onClear:E,isDeletedValue:h}),e[8]=c,e[9]=l,e[10]=w,e[11]=h,e[12]=d,e[13]=p,e[14]=_,e[15]=E,e[16]=T):T=e[16],T}),A5={get TASK_TAG_COLOR(){return this.COLORS[0]},get TASK_TYPE_COLOR(){return this.COLORS[7]},get TASK_STATUS_COLOR(){return this.COLORS[7]},get FOLDER_COLOR(){return this.COLORS[0]},get PROJECT_COLOR(){return this.COLORS[7]},get SPRINT_COLOR(){return this.COLORS[0]},COLORS:["gray","gray.8","orange","yellow","lime","green","teal","cyan","blue","indigo","violet","grape","pink","red"]},qd=async t=>(await lt.dispatch(wt.endpoints.getAvailableStatuses.initiate({entityType:t.entityType,entityIds:[t.entityId]})).unwrap()).map(n=>({color:n.Color,id:n.Id,name:n.Name,type:n.Type,state:"original",patternId:n.PatternId,order:n.Order})),Og=async()=>{const t=await lt.dispatch(wt.endpoints.getDefaultStatuses.initiate()).unwrap();return Fs(t.map((e,n)=>({id:e.Id,patternId:e.Id,color:e.Color,name:jt("taskStatusTypes."+e.Type),type:e.Type,state:"new",order:n+1})),"order")},R_e=async t=>{const e=await lt.dispatch(Ui.endpoints.get.initiate([t])).unwrap();return Fs(e.map(n=>({id:n.Id,name:n.Name,color:n.Color,order:n.Order,state:"original"})),"order")},O_e=async t=>{const e=await yB();return(await lt.dispatch(li.endpoints.getTaskTypes.initiate({ProjectIds:[t.Id]})).unwrap()).list.reduce((r,o)=>{const s=o.Order,i=o.PatternId??(Object.values(e).some(l=>l===o.Id)?o.Id:void 0);return[...r,{id:o.Id,patternId:i,type:o.Type,name:o.Name,color:o.Color,icon:o.IconId,state:"original",order:s??1}]},[])},yB=async()=>(await lt.dispatch(li.endpoints.getDefault.initiate()).unwrap()).reduce((e,n)=>(e[n.Name.toLowerCase()]=n.Id,e),{}),P_e=t=>[{id:1,patternId:t.task,type:nu.TaskType.Task,color:"#66ABE3",icon:I1.check,name:jt("createTask.fields.type.options.task"),state:"new",order:0},{id:2,patternId:t.bug,type:nu.TaskType.Bug,color:"#D45543",icon:I1.bug,name:jt("createTask.fields.type.options.bug"),state:"new",order:1},{id:3,patternId:t.milestone,type:nu.TaskType.Milestone,color:"#B25BE4",icon:I1.squareRotated,name:jt("createTask.fields.type.options.milestone"),state:"new",order:2}],og={formType:null,name:"",icon:null,key:"",color:"",statuses:{provide:!0,current:[],provided:[]},types:[],features:{custom:!1,tags:!1},custom:[],tags:[]},vB=async()=>{const t=await Og(),e=await yB();lt.dispatch(du.actions.open({defaultValue:{...og,hasNoKey:!0,color:A5.PROJECT_COLOR,statuses:{...og.statuses,provide:!1,current:t},types:P_e(e)},entityType:"project",editType:"create"}))},bB=async t=>{const e=await qd({entityId:t.statusesEntityId,entityType:t.statusesEntityType}),n=await Og();lt.dispatch(du.actions.open({defaultValue:{...og,color:A5.FOLDER_COLOR,statuses:{...og.statuses,current:n,provided:e}},entityType:"folder",editType:"create",parentId:t.Id}))},SB=async t=>{const e=await qd({entityId:t.statusesEntityId,entityType:t.statusesEntityType}),n=await Og();lt.dispatch(du.actions.open({defaultValue:{...og,color:A5.SPRINT_COLOR,statuses:{...og.statuses,current:n,provided:e}},entityType:"sprint",editType:"create",parentId:t.Id}))},Ak=async(t,e)=>{const n=await Og(),r=await lt.dispatch(wt.endpoints.getAttributes.initiate({projectId:t.Id})).unwrap().then(f=>f.map(h=>({id:h.AttributeId,localId:h.Id,name:h.Name,valueType:h.ValueType,type:h.Type,order:h.Order,state:"original",options:h.Values?h.Values.map(p=>({id:p.Id,value:p.Value,color:p.Color,state:"original"})):null}))),o=await qd({entityId:t.Id,entityType:Ie.Entity.Project}),s=await qd({entityId:t.statusesEntityId,entityType:t.statusesEntityType}),i=await O_e(t),l=Fs(r.map(f=>({...f,state:"original"})),"order"),c=await R_e(t.Id),d={tags:t.Settings.EnabledFeatures.includes("Labels"),custom:t.Settings.EnabledFeatures.includes("Attributes")};lt.dispatch(du.actions.open({entityType:"project",editType:"update",projectData:t,defaultValue:{formType:e??null,name:t.Name,color:t.Color,icon:t.IconId,key:t.Key,statuses:{provide:!1,current:o.length>0?o:n,provided:s},types:i,features:d,custom:l,tags:c}}))},N_e=async t=>{const{folderEntities:e}=await lt.dispatch(wt.endpoints.fetchProjects.initiate({States:ku(),ReturnDataType:hs.ProjectReturnDataType.ProjectsAndSprints})).unwrap().then(({Projects:i})=>Eu(i)),n=t.ParentId?e[t.ParentId]:null;if(!n)return;const r=await Og(),o=await qd({entityId:t.Id,entityType:Ie.Entity.Project}),s=await qd({entityId:n.statusesEntityId,entityType:n.statusesEntityType});lt.dispatch(du.actions.open({entityType:"folder",editType:"update",projectData:t,parentId:t.ParentId,defaultValue:{formType:null,name:t.Name,color:t.Color,icon:null,key:t.Key,statuses:{provide:t.Flags===Ie.ProjectFlags.DEFAULT,current:o.length>0?o:r,provided:s},types:[],custom:[],tags:[]}}))},I_e=async(t,e)=>{const{folderEntities:n}=await lt.dispatch(wt.endpoints.fetchProjects.initiate({States:ku(),ReturnDataType:hs.ProjectReturnDataType.ProjectsAndSprints})).unwrap().then(({Projects:l})=>Eu(l)),r=n[t.ProjectId];if(!r)return;const o=await Og(),s=await qd({entityId:t.Id,entityType:Ie.Entity.Sprint}),i=await qd({entityId:r.statusesEntityId,entityType:r.statusesEntityType});lt.dispatch(du.actions.open({entityType:"sprint",editType:"update",sprintData:t,parentId:t.ProjectId,defaultValue:{formType:e??null,name:t.Name,color:t.Color,icon:null,key:"",statuses:{provide:t.Flags===Ie.ProjectFlags.DEFAULT,current:s.length>0?s:o,provided:i},types:[],custom:[],tags:[]}}))},$_e="_input_10qqu_1",L_e="_isDeleted_10qqu_14",F_e="_collection_10qqu_18",z_e="_variantOptions_10qqu_36",U_e="_variantOption_10qqu_36",B_e="_variantBadge_10qqu_48",Wc={input:$_e,isDeleted:L_e,collection:F_e,variantOptions:z_e,variantOption:U_e,variantBadge:B_e},H_e=t=>{const e=be.c(34);let n,r,o,s,i,l,c,d;e[0]!==t?({value:d,options:o,readOnly:i,showActions:c,isExternal:n,projectId:s,onChange:r,...l}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s,e[5]=i,e[6]=l,e[7]=c,e[8]=d):(n=e[1],r=e[2],o=e[3],s=e[4],i=e[5],l=e[6],c=e[7],d=e[8]);let f;e[9]!==o||e[10]!==d?(f=(o==null?void 0:o.find(T=>T.value===d))??(d?{id:0,value:d,color:null}:void 0),e[9]=o,e[10]=d,e[11]=f):f=e[11];const h=f,p=i||n;let v;e[12]===Symbol.for("react.memo_cache_sentinel")?(v={input:Wc.input},e[12]=v):v=e[12];let g;e[13]!==n||e[14]!==r||e[15]!==i||e[16]!==(h==null?void 0:h.value)||e[17]!==c?(g=!i&&(h!=null&&h.value&&c?b.jsx(al,{size:"sm",c:"gray.6",onClick:T=>{T.stopPropagation(),r("")}}):!n&&b.jsx(Ht.Chevron,{})),e[13]=n,e[14]=r,e[15]=i,e[16]=h==null?void 0:h.value,e[17]=c,e[18]=g):g=e[18];const S=h!=null&&h.value?"all":"none";let w;e[19]!==h?(w=h!=null&&h.value?b.jsx(pg,{variant:h.color?"filled":"default",radius:"sm",className:Wc.variantBadge,children:h.value}):"-",e[19]=h,e[20]=w):w=e[20];let _;e[21]!==n||e[22]!==l||e[23]!==g||e[24]!==S||e[25]!==w?(_=b.jsx(Zd,{classNames:v,"data-external":n,component:"button",type:"button",pointer:!0,rightSection:g,rightSectionPointerEvents:S,...l,children:w}),e[21]=n,e[22]=l,e[23]=g,e[24]=S,e[25]=w,e[26]=_):_=e[26];let E;return e[27]!==r||e[28]!==o||e[29]!==s||e[30]!==p||e[31]!==_||e[32]!==d?(E=b.jsx(wB,{value:d,options:o,projectId:s,disabled:p,fullWidth:!0,onChange:r,children:_}),e[27]=r,e[28]=o,e[29]=s,e[30]=p,e[31]=_,e[32]=d,e[33]=E):E=e[33],E},wB=t=>{var ie;const e=be.c(54),{value:n,options:r,projectId:o,disabled:s,fullWidth:i,onChange:l,children:c}=t,{t:d}=at(),f=Lr(),h=dB(),p=$4(),v=fp({onDropdownClose:()=>{v.resetSelectedOption(),v.focusTarget(),w("")},onDropdownOpen:()=>{["ios","android"].includes(p)||v.focusSearchInput()}}),[g,S]=D.useState(""),w=S,_=(ie=Bh(r,["value",n]))==null?void 0:ie.color,{project:E}=Yr(o);let T;e[0]!==r||e[1]!==g?(T=(g?r==null?void 0:r.filter(oe=>{const{value:de}=oe;return de.toLowerCase().includes(g.toLowerCase().trim())}):r)??[],e[0]=r,e[1]=g,e[2]=T):T=e[2];const M=T;let j;if(e[3]!==M||e[4]!==f){let oe;e[6]!==f?(oe=de=>D.createElement(Ht.Option,{className:Wc.variantOption,...nP(de.color,f),value:de.value,key:de.id},de.value),e[6]=f,e[7]=oe):oe=e[7],j=M.map(oe),e[3]=M,e[4]=f,e[5]=j}else j=e[5];const A=j,k=Ht;let R;e[8]!==v||e[9]!==l?(R=oe=>{l==null||l(oe),v.closeDropdown()},e[8]=v,e[9]=l,e[10]=R):R=e[10];const N=i?void 0:"max-content",I=Ht,L=je,F=i?1:void 0;let H;e[11]!==v||e[12]!==s?(H=oe=>{!s&&oe.stopPropagation(),v.toggleDropdown()},e[11]=v,e[12]=s,e[13]=H):H=e[13];const B=nP(_,f);let Y;e[14]!==L||e[15]!==c||e[16]!==F||e[17]!==H||e[18]!==B?(Y=b.jsx(L,{flex:F,onClick:H,...B,children:c}),e[14]=L,e[15]=c,e[16]=F,e[17]=H,e[18]=B,e[19]=Y):Y=e[19];let U;e[20]!==Y||e[21]!==I.Target?(U=b.jsx(I.Target,{children:Y}),e[20]=Y,e[21]=I.Target,e[22]=U):U=e[22];let q;e[23]===Symbol.for("react.memo_cache_sentinel")?(q={overflow:"hidden"},e[23]=q):q=e[23];let z;e[24]!==w?(z=oe=>w(oe.currentTarget.value),e[24]=w,e[25]=z):z=e[25];let W;e[26]!==d?(W=d("common.action.search"),e[26]=d,e[27]=W):W=e[27];let K;e[28]!==g||e[29]!==z||e[30]!==W?(K=b.jsx(Ht.Search,{value:g,onChange:z,placeholder:W}),e[28]=g,e[29]=z,e[30]=W,e[31]=K):K=e[31];let G;e[32]!==A||e[33]!==d?(G=A!=null&&A.length?A:b.jsx(Ht.Empty,{children:d("nodata.noResults.title")}),e[32]=A,e[33]=d,e[34]=G):G=e[34];let X;e[35]!==G?(X=b.jsx(Ht.Options,{className:Wc.variantOptions,children:G}),e[35]=G,e[36]=X):X=e[36];let J;e[37]!==h.project.edit||e[38]!==v||e[39]!==E||e[40]!==d?(J=h.project.edit&&E&&b.jsx(Ht.Footer,{p:0,children:b.jsx(In,{fullWidth:!0,variant:"subtle",fz:12,fw:400,leftSection:b.jsx(R2,{size:16}),onClick:()=>{v.closeDropdown(),Ak(E,"customFields")},children:d("entitySettings.customFieldSection.addVariant")})}),e[37]=h.project.edit,e[38]=v,e[39]=E,e[40]=d,e[41]=J):J=e[41];let ne;e[42]!==K||e[43]!==X||e[44]!==J?(ne=b.jsxs(Ht.Dropdown,{style:q,onClick:q_e,children:[K,X,J]}),e[42]=K,e[43]=X,e[44]=J,e[45]=ne):ne=e[45];let se;return e[46]!==k||e[47]!==v||e[48]!==s||e[49]!==U||e[50]!==ne||e[51]!==R||e[52]!==N?(se=b.jsxs(k,{store:v,onOptionSubmit:R,disabled:s,width:N,children:[U,ne]}),e[46]=k,e[47]=v,e[48]=s,e[49]=U,e[50]=ne,e[51]=R,e[52]=N,e[53]=se):se=e[53],se},nP=(t="gray",e)=>t?{style:{"--color":dr(`${t}.6`,e),"--bg":dr(`${t}.1`,e),"--hover-color":dr(`${t}.7`,e),"--hover-bg":dr(`${t}.2`,e)}}:{};function q_e(t){return t.stopPropagation()}const XDe=D.memo(({name:t,type:e,valueType:n,value:r,options:o,taskId:s,id:i,recordId:l,isExternal:c,projectId:d,parentId:f})=>{const{t:h}=at(),p=e===cr.IType.Link,v=e===cr.IType.Variants,g=e===cr.IType.Collection,S=g?Number(t):null,w=dB(),_=mi("(max-width: 992px)"),{data:E=[]}=nr.useGetColumnsQuery(Number(S),{skip:!S}),{data:T,isLoading:M}=nr.useGetRowsQuery({tableId:Number(S)},{skip:!S}),[j]=Ct.useEditAttributeMutation(),A=gB({initialValue:r,validate:ie=>{const oe=(ie||"").trim();return oe?oe.length>500?h("entitySettings.errors.maxLength",{count:500}):p&&!xB.test(oe)?h("entitySettings.errors.link"):null:null}}),k=D.useMemo(()=>{const ie=(T==null?void 0:T.Items)??[],oe=(o==null?void 0:o.map(_e=>({value:Number(_e.value),order:_e.order})))??[],de=oe.length>0,pe=de?Fs(E,_e=>{var De;return(De=oe.find(Ze=>Ze.value===_e.Id))==null?void 0:De.order}).filter(_e=>oe.some(De=>De.value===_e.Id)):E,fe=pe.map(_e=>_e.Id),Te=de?ie.map(_e=>({Id:_e.Id,Order:_e.Order,Values:Array.from(_e.Values.filter(De=>fe.includes(De.ColumnId)).reduce((De,Ze)=>((!De.get(Ze.ColumnId)||Ze.Value!==null)&&De.set(Ze.ColumnId,Ze),De),new Map).values())})):ie,we=!M&&!!r&&!Te.some(_e=>Number(_e.Id)===Number(r));return{pickedColumns:fe,pickedColumnsData:pe,pickedCollectionRows:Te,isDeletedValue:we}},[E,T,o,r,M]),{ref:R,focused:N}=MV(),I=D.useRef(null),{ref:L,hovered:F}=ig(),{isOverflown:H,checkOverflown:B}=g5(),[Y,U]=D.useState(!1),q=!r||r.startsWith("http")?r:`https://${r}`,z=Dk(lt.getState(),Number(t)),W=g?z==null?void 0:z.Name:t,K=S_e({type:e,valueType:n,color:z==null?void 0:z.Color}),G=D.useCallback(()=>{const ie=(A.getValue()??"").trim();ie!==(r||"")&&j({TaskId:s,AttributeId:i,Value:ie,Id:l,parentForUpdate:f})},[j,A,i,f,l,s,r]),X=D.useCallback(ie=>{Ag(ie)&&A.setValue(ie),A.validate().then(oe=>{oe||(U(!1),G())})},[A,G]),J=ou(ie=>X(ie),500),ne=D.useMemo(()=>{const ie=A.getInputProps(),oe=p&&!Y;return{...ie,value:(()=>{var de;return v?ie.value:ie.value?oe&&((de=ie.value)!=null&&de.startsWith("http"))?ie.value.replace("https://","").replace("http://",""):ie.value:(!oe||!q)&&N?"":"-"})(),onBlur:()=>{X(),ie.onBlur()},styles:{input:oe?{cursor:r?"pointer":"text"}:{}},...oe?{readOnly:!!q,onClick:()=>{var de;return q&&((de=window.open(q,"_blank"))==null?void 0:de.focus())}}:{},...w.tasks.edit?{}:{readOnly:!0}}},[A,N,p,v,Y,q,w.tasks.edit,r,X]),se=D.useMemo(()=>ie=>{I.current=ie,R(ie)},[R]);return D.useEffect(()=>{A.setValue(r)},[r]),D.useEffect(()=>{var ie;Y&&((ie=I.current)==null||ie.focus())},[Y]),b.jsx(qt,{ref:L,gap:4,wrap:"nowrap",align:"start",children:g?b.jsxs(_t,{w:"100%",gap:2,children:[b.jsxs(Lt,{w:"100%",gap:4,children:[b.jsx(yi,{label:W,openDelay:400,multiline:!0,maw:1e3,position:"top-start",disabled:!H,children:b.jsx(Is,{variant:"default",readOnly:!0,value:W,leftSection:K,classNames:{input:Dr(Wc.input,Wc.collection,{[Wc.isDeleted]:k.isDeletedValue})},"data-external":c,w:150,miw:150,onMouseEnter:B})}),b.jsx(A_e,{tableId:Number(t),taskId:s,parentId:f,recordId:l,value:r,attributeId:i,columnsOrder:k.pickedColumns,columns:k.pickedColumnsData,options:k.pickedCollectionRows,isDeletedValue:k.isDeletedValue,type:e})]}),k.isDeletedValue&&b.jsx(Dt,{size:"xs",c:"orange.5",children:h("common.labels.collectionValueWasDeleted")})]}):b.jsxs(b.Fragment,{children:[b.jsx(yi,{label:W,openDelay:400,multiline:!0,maw:1e3,position:"top-start",disabled:!H,children:b.jsx(Is,{variant:"default",readOnly:!0,value:W,leftSection:K,classNames:{input:Wc.input},"data-external":c,w:150,miw:150,onMouseEnter:B})}),v?b.jsx(H_e,{options:o,...ne,showActions:_||F,isExternal:c,projectId:d,onChange:J}):b.jsx(Is,{...ne,ref:se,onKeyDown:pN([["Enter",X],["mod+Enter",X]]),classNames:{input:Wc.input},"data-external":c,"data-link":A.getValue()&&p,flex:1,variant:"default",rightSection:A.getValue()&&(_||F)&&b.jsxs(qt,{gap:4,wrap:"nowrap",children:[w.tasks.edit&&p&&b.jsx(lr,{size:"sm",variant:"subtle",color:"gray.6",onClick:()=>U(!0),children:b.jsx(HE,{size:"70%"})}),p&&b.jsx(x_e,{value:(p?q:r)||"",size:"sm",color:"gray.6",iconProps:{size:"70%"}}),w.tasks.edit&&b.jsx(al,{size:"sm",c:"gray.6",onClick:()=>X("")})]}),rightSectionWidth:w.tasks.edit&&p?82:void 0})]})})}),xB=/^(https?:\/\/)?[\w\u0410-\u044F\u0401\u0451-]+(\.[\w\u0410-\u044F\u0401\u0451-]+)+[\w\u0410-\u044F\u0401\u0451.,@?^=%&:/~+#-]*[\w\u0410-\u044F\u0401\u0451@?^=%&/~+#-]$/i,V_e="_root_7i80u_1",Y_e="_staticContent_7i80u_28",G_e="_checkbox_7i80u_40",W_e="_controls_7i80u_51",Q_e="_title_7i80u_55",K_e="_actions_7i80u_85",X_e="_simpleRoot_7i80u_135",Z_e="_simpleType_7i80u_183",J_e="_simpleTitle_7i80u_187",e6e="_simpleControls_7i80u_193",t6e="_key_7i80u_230",n6e="_type_7i80u_236",r6e="_cardProjectId_7i80u_245",o6e="_cardDescription_7i80u_250",s6e="_attributeField_7i80u_258",i6e="_attributeFieldInput_7i80u_261",a6e="_attributeButton_7i80u_307",yo={root:V_e,staticContent:Y_e,checkbox:G_e,controls:W_e,title:Q_e,actions:K_e,simpleRoot:X_e,simpleType:Z_e,simpleTitle:J_e,simpleControls:e6e,key:t6e,type:n6e,cardProjectId:r6e,cardDescription:o6e,attributeField:s6e,attributeFieldInput:i6e,attributeButton:a6e},l6e=({type:t="list",value:e,attribute:n,projectId:r,taskId:o,recordId:s,parentId:i,readonly:l})=>{var N,I;const{t:c}=at(),d=xp(r),[f]=Ct.useEditAttributeMutation(),h=D.useRef(null),[p,v]=D.useState(!1),g=t==="kanban",S=n.ValueType===cr.IValueType.Link,w=n.ValueType===cr.IValueType.Select,_=!!(e&&S),E=!e||e.startsWith("http")?e:`https://${e}`,T=gB({initialValue:e,validate:L=>{const F=(L||"").trim();return F?F.length>500?c("entitySettings.errors.maxLength",{count:500}):S&&!xB.test(F)?c("entitySettings.errors.link"):null:null},onValueChange:()=>v(!1)}),M=D.useCallback(()=>{const L=(T.getValue()??"").trim();L!==(e||"")&&f({TaskId:o,AttributeId:n.AttributeId,Value:L,Id:s,parentForUpdate:i})},[n.AttributeId,T,s,o,i,e,f]),j=ou(M,500),A=D.useCallback(L=>{Ag(L)&&T.setValue(L),w?M():T.validate().then(F=>{if(F){if(p)return;ds({message:F}),v(!0)}else j()})},[T,w,p,M,j]),k=D.useMemo(()=>{const L=T.getInputProps();return{...L,value:(()=>{var F;return _&&((F=L.value)!=null&&F.startsWith("http"))?L.value.replace("https://","").replace("http://",""):L.value})(),onBlur:()=>{A(),L.onBlur()},..._?{readOnly:!!E,onClick:F=>{var H;F.stopPropagation(),E&&((H=window.open(E,"_blank"))==null||H.focus())}}:{onClick:F=>{var H;!l&&F.stopPropagation(),(H=h.current)==null||H.focus()}},...l||!d.tasks.edit?{readOnly:!0}:{}}},[T,_,E,d.tasks.edit,l,A]);D.useEffect(()=>{T.setValue(e)},[e]);const R=D.useMemo(()=>n.Values?n.Values.map(L=>({id:L.Id,color:L.Color,value:L.Value})):null,[n.Values]);return w?b.jsx(wB,{value:e,options:R,projectId:r,disabled:l,onChange:A,children:b.jsx(In,{className:yo.attributeButton,"data-empty":!e,"data-type":t,"data-color":!!((I=(N=n.Values)==null?void 0:N.find(L=>L.Value===e))!=null&&I.Color),fw:400,children:b.jsx(Dt,{truncate:!0,fw:"500",size:"sm",children:e||"-"})})}):b.jsx(Is,{...k,error:!!k.error,ref:h,wrapperProps:{"data-type":t},variant:"default",placeholder:"-",classNames:{root:yo.attributeField,input:yo.attributeFieldInput},leftSectionProps:{onClick:k.onClick},leftSectionWidth:g?_?48:26:void 0,leftSection:(g||_)&&b.jsxs(qt,{wrap:"nowrap",gap:8,pr:g?_?4:8:0,children:[g&&twe(n.Type),_&&b.jsx(dc,{h:18,w:18,src:`https://www.google.com/s2/favicons?domain=${e}`})]}),onMouseDown:L=>L.stopPropagation(),onKeyDown:pN([["Enter",A],["mod+Enter",A]])})},c6e=t=>{const e=be.c(15),{task:n,onClose:r}=t,{t:o}=at(),s=Us();let i;e[0]!==s||e[1]!==r||e[2]!==o||e[3]!==n.Id||e[4]!==n.SprintId||e[5]!==n.State?(i=()=>{r==null||r();const p=n.State===Ie.EntityState.Archive?Ie.EntityState.Active:Ie.EntityState.Archive,v={id:n.Id,state:p},g=s(Ct.endpoints.changeTaskState.initiate(v));Hr(g,{successMsg:n.State===Ie.EntityState.Archive?o("notification.success.unarchiveTask"):o("notification.success.archiveTask"),errorMsg:o("notification.error.archiveTask")}).then(()=>{lt.dispatch(Ct.util.invalidateTags([{type:"Sprint",id:n.SprintId}]))})},e[0]=s,e[1]=r,e[2]=o,e[3]=n.Id,e[4]=n.SprintId,e[5]=n.State,e[6]=i):i=e[6];const l=i;let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx(xu,{size:18}),e[7]=c):c=e[7];const d=n.State===Ie.EntityState.ArchiveParent;let f;e[8]!==o||e[9]!==n.State?(f=n.State===Ie.EntityState.Archive||n.State===Ie.EntityState.ArchiveParent?o("common.action.unarchive"):o("common.action.archive"),e[8]=o,e[9]=n.State,e[10]=f):f=e[10];let h;return e[11]!==l||e[12]!==d||e[13]!==f?(h=b.jsx(Mt.Item,{leftSection:c,onClick:l,disabled:d,children:f}),e[11]=l,e[12]=d,e[13]=f,e[14]=h):h=e[14],h},u6e=({value:t="",onCopied:e})=>{const{t:n}=at();return b.jsx(tx,{value:t,timeout:1500,children:({copy:r})=>b.jsx(Mt.Item,{onClick:()=>{Hr(new Promise((o,s)=>{try{r(),e==null||e(),o()}catch(i){s(i)}}),{successMsg:n("notification.success.copyTask"),errorMsg:n("notification.error.copyTask")})},leftSection:b.jsx(JF,{size:18}),color:"light-dark(var(--mantine-color-dark-6), var(--mantine-color-dark-0))",children:n("common.action.copy")})})},d6e="_searchInput_1eodg_1",f6e={searchInput:d6e},h6e=D.forwardRef((t,e)=>{const n=be.c(7),{t:r}=at();let o;n[0]===Symbol.for("react.memo_cache_sentinel")?(o=b.jsx(O2,{color:"var(--mantine-color-gray-6)",size:16}),n[0]=o):o=n[0];let s;n[1]!==r?(s=r("common.action.search"),n[1]=r,n[2]=s):s=n[2];let i;return n[3]!==t||n[4]!==e||n[5]!==s?(i=b.jsx(Is,{radius:0,size:"md",variant:"default",leftSection:o,classNames:p6e,placeholder:s,...t,ref:e}),n[3]=t,n[4]=e,n[5]=s,n[6]=i):i=n[6],i}),p6e={input:f6e.searchInput},m6e=t=>{const e=be.c(8),{projects:n,searchString:r}=t,o=r===void 0?"":r;let s;if(e[0]!==n||e[1]!==o){const f=p=>p.Sprints.length>0||p.Children.some(f),h=p=>{var v,g;return{...p,Sprints:(v=p.Sprints)==null?void 0:v.filter(S=>S.Name.toLowerCase().includes(o.toLowerCase())),Children:(g=p.Children)==null?void 0:g.map(S=>h(S)).filter(f)}};s=n==null?void 0:n.map(h).filter(f),e[0]=n,e[1]=o,e[2]=s}else s=e[2];const i=s;let l;e[3]!==i?(l=i==null?void 0:i.some(g6e),e[3]=i,e[4]=l):l=e[4];const c=l;let d;return e[5]!==i||e[6]!==c?(d={hasResults:c,filteredProjects:i},e[5]=i,e[6]=c,e[7]=d):d=e[7],d};function g6e(t){return t.Sprints.length>0||t.Children.length>0}const y6e=t=>{const e=be.c(15),{sprint:n,onClick:r,currentSprint:o,readOnly:s}=t,i=s===void 0?!1:s,l=o===n.Id;let c;e[0]!==r||e[1]!==n?(c=()=>r(n),e[0]=r,e[1]=n,e[2]=c):c=e[2];let d;e[3]===Symbol.for("react.memo_cache_sentinel")?(d={root:{borderRadius:"4px"}},e[3]=d):d=e[3];let f;e[4]!==n.Name?(f=b.jsx(Dt,{truncate:"end",children:n.Name}),e[4]=n.Name,e[5]=f):f=e[5];const h=n.Color||"gray.7";let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p=b.jsx(UE,{size:16,stroke:1.5}),e[6]=p):p=e[6];let v;e[7]!==h?(v=b.jsx(gi,{size:20,radius:4,variant:"transparent",color:h,children:p}),e[7]=h,e[8]=v):v=e[8];let g;return e[9]!==i||e[10]!==l||e[11]!==c||e[12]!==f||e[13]!==v?(g=b.jsx(bx,{disabled:i,active:l,onClick:c,styles:d,label:f,leftSection:v}),e[9]=i,e[10]=l,e[11]=c,e[12]=f,e[13]=v,e[14]=g):g=e[14],g},CB=t=>{const e=be.c(29),{project:n,onClick:r,currentSprint:o,readOnly:s}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={root:{borderRadius:"4px"}},e[0]=i):i=e[0];const l=n.isFolder?I1.folder:n.IconId;let c;e[1]!==n.Color||e[2]!==n.Name||e[3]!==l?(c=b.jsx(y5,{icon:l,color:n.Color,name:n.Name}),e[1]=n.Color,e[2]=n.Name,e[3]=l,e[4]=c):c=e[4];let d;e[5]!==n.Name?(d=b.jsx(Dt,{truncate:"end",children:n.Name}),e[5]=n.Name,e[6]=d):d=e[6];let f;if(e[7]!==o||e[8]!==r||e[9]!==n.Children){let v;e[11]!==o||e[12]!==r?(v=g=>b.jsx(CB,{project:g,onClick:r,currentSprint:o},g.Id),e[11]=o,e[12]=r,e[13]=v):v=e[13],f=n.Children.map(v),e[7]=o,e[8]=r,e[9]=n.Children,e[10]=f}else f=e[10];let h;if(e[14]!==o||e[15]!==r||e[16]!==n.Sprints||e[17]!==s){let v;e[19]!==o||e[20]!==r||e[21]!==s?(v=g=>b.jsx(y6e,{sprint:g,onClick:r,currentSprint:o,readOnly:s},g.Id),e[19]=o,e[20]=r,e[21]=s,e[22]=v):v=e[22],h=n.Sprints.map(v),e[14]=o,e[15]=r,e[16]=n.Sprints,e[17]=s,e[18]=h}else h=e[18];let p;return e[23]!==s||e[24]!==c||e[25]!==d||e[26]!==f||e[27]!==h?(p=b.jsxs(bx,{disabled:s,styles:i,defaultOpened:!0,childrenOffset:12,component:"li",leftSection:c,label:d,children:[f,h]}),e[23]=s,e[24]=c,e[25]=d,e[26]=f,e[27]=h,e[28]=p):p=e[28],p},_B=t=>{const e=be.c(18),{projects:n,onClick:r,currentSprint:o,readOnly:s}=t,{t:i}=at(),[l,c]=sT("");let d;e[0]!==n||e[1]!==l?(d={projects:n,searchString:l},e[0]=n,e[1]=l,e[2]=d):d=e[2];const{filteredProjects:f,hasResults:h}=m6e(d);let p;e[3]!==c||e[4]!==s||e[5]!==l?(p=b.jsx(h6e,{disabled:s,value:l,onChange:c}),e[3]=c,e[4]=s,e[5]=l,e[6]=p):p=e[6];let v;e[7]===Symbol.for("react.memo_cache_sentinel")?(v={overflow:"auto"},e[7]=v):v=e[7];let g;e[8]!==o||e[9]!==f||e[10]!==h||e[11]!==r||e[12]!==s||e[13]!==i?(g=b.jsx(je,{p:6,mah:300,style:v,children:h?b.jsx(b.Fragment,{children:f==null?void 0:f.map(w=>b.jsx(CB,{project:w,onClick:r,currentSprint:o,readOnly:s},w.Id))}):b.jsx(Dt,{ta:"center",c:"gray.7",py:12,children:i("nodata.noSprints.title")})}),e[8]=o,e[9]=f,e[10]=h,e[11]=r,e[12]=s,e[13]=i,e[14]=g):g=e[14];let S;return e[15]!==p||e[16]!==g?(S=b.jsxs(je,{children:[p,g]}),e[15]=p,e[16]=g,e[17]=S):S=e[17],S},v6e=t=>{const e=be.c(8),{sprint:n}=t,r=n.Color||"gray.7";let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=b.jsx(UE,{size:16,stroke:1.5,style:{zIndex:1}}),e[0]=o):o=e[0];let s;e[1]!==r?(s=b.jsx(Lt,{align:"center",c:r,children:o}),e[1]=r,e[2]=s):s=e[2];let i;e[3]!==n.Name?(i=b.jsx(ci,{children:n.Name}),e[3]=n.Name,e[4]=i):i=e[4];let l;return e[5]!==s||e[6]!==i?(l=b.jsxs(Lt,{gap:10,align:"center",c:"light-dark(var(--mantine-color-gray-8), var(--mantine-color-dark-0))",maw:400,children:[s,i]}),e[5]=s,e[6]=i,e[7]=l):l=e[7],l},b6e=t=>{const e=be.c(13),{opened:n,error:r,children:o,ref:s,onClick:i}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={getInitialValueInEffect:!0},e[0]=l):l=e[0];const d=ag("light",l)==="light"?"gray.1":"dark.5";let f;e[1]===Symbol.for("react.memo_cache_sentinel")?(f={flex:1},e[1]=f):f=e[1];const h=r?"1px solid var(--mantine-color-red-6)":void 0;let p;e[2]!==h?(p={label:f,root:{border:h}},e[2]=h,e[3]=p):p=e[3];let v;e[4]!==n?(v=b.jsx(Lt,{align:"center",c:"gray.6",children:n?b.jsx(Yx,{size:16}):b.jsx(Cg,{size:16})}),e[4]=n,e[5]=v):v=e[5];let g;return e[6]!==o||e[7]!==i||e[8]!==s||e[9]!==d||e[10]!==p||e[11]!==v?(g=b.jsx(In,{component:"div",ref:s,onClick:i,variant:"filled",color:d,c:"light-dark(var(--mantine-color-gray-8), var(--mantine-color-dark-0))",radius:4,fw:400,size:"md",w:"100%",justify:"flex-start",px:12,styles:p,rightSection:v,children:o}),e[6]=o,e[7]=i,e[8]=s,e[9]=d,e[10]=p,e[11]=v,e[12]=g):g=e[12],g},TB=t=>{const e=be.c(43);let n,r,o,s,i;e[0]!==t?({onClick:o,value:i,error:n,label:r,...s}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s,e[5]=i):(n=e[1],r=e[2],o=e[3],s=e[4],i=e[5]);const{t:l}=at(),[c,d]=Wd(),{open:f,close:h,toggle:p}=d,v=r2(h),g=n?"red.6":"light-dark(var(--mantine-color-gray-5), var(--mantine-color-dark-3))";let S;e[6]!==r?(S=r&&b.jsx(Xd,{required:!0,size:"sm",mb:4,children:r}),e[6]=r,e[7]=S):S=e[7];let w;e[8]===Symbol.for("react.memo_cache_sentinel")?(w={shift:!1,flip:!1},e[8]=w):w=e[8];const _=!!n;let E;e[9]!==g||e[10]!==l||e[11]!==i?(E=i?b.jsx(v6e,{sprint:i}):b.jsx(Dt,{c:g,children:l("createTask.fields.sprint.placeholder")}),e[9]=g,e[10]=l,e[11]=i,e[12]=E):E=e[12];let T;e[13]!==c||e[14]!==_||e[15]!==E||e[16]!==p?(T=b.jsx(fr.Target,{children:b.jsx(b6e,{onClick:p,opened:c,error:_,children:E})}),e[13]=c,e[14]=_,e[15]=E,e[16]=p,e[17]=T):T=e[17];let M;e[18]===Symbol.for("react.memo_cache_sentinel")?(M={overflow:"hidden"},e[18]=M):M=e[18];const j=i==null?void 0:i.Id;let A;e[19]!==h||e[20]!==o||e[21]!==(i==null?void 0:i.Id)?(A=F=>{h(),F.Id!==(i==null?void 0:i.Id)&&o(F)},e[19]=h,e[20]=o,e[21]=i==null?void 0:i.Id,e[22]=A):A=e[22];let k;e[23]!==t.projects||e[24]!==s||e[25]!==j||e[26]!==A?(k=b.jsx(_B,{currentSprint:j,projects:t.projects,onClick:A,...s}),e[23]=t.projects,e[24]=s,e[25]=j,e[26]=A,e[27]=k):k=e[27];let R;e[28]!==v||e[29]!==k?(R=b.jsx(fr.Dropdown,{p:0,style:M,ref:v,children:k}),e[28]=v,e[29]=k,e[30]=R):R=e[30];let N;e[31]!==h||e[32]!==f||e[33]!==c||e[34]!==R||e[35]!==T?(N=b.jsxs(fr,{opened:c,onOpen:f,onClose:h,width:"target",middlewares:w,children:[T,R]}),e[31]=h,e[32]=f,e[33]=c,e[34]=R,e[35]=T,e[36]=N):N=e[36];let I;e[37]!==n?(I=!!n&&b.jsx(Qh,{size:"md",mt:5,children:n}),e[37]=n,e[38]=I):I=e[38];let L;return e[39]!==S||e[40]!==N||e[41]!==I?(L=b.jsxs("div",{children:[S,N,I]}),e[39]=S,e[40]=N,e[41]=I,e[42]=L):L=e[42],L},S6e=t=>{const e=be.c(24),{projectId:n,sprintId:r,target:o,onClose:s,onClick:i}=t,{t:l}=at(),[c,d]=Wd(),{open:f,close:h}=d,p=r2(h),{project:v}=Yr(n),{project:g}=Yr(v==null?void 0:v.rootProjectId);if(!g)return null;let S;e[0]!==f||e[1]!==l||e[2]!==o?(S=b.jsx(fr.Target,{children:o?b.jsx(qt,{onClick:f,children:o}):b.jsx(Mt.Item,{leftSection:b.jsx(BE,{size:18}),onClick:f,color:"light-dark(var(--mantine-color-dark-6), var(--mantine-color-dark-0))",children:l("common.action.move")})}),e[0]=f,e[1]=l,e[2]=o,e[3]=S):S=e[3];let w;e[4]===Symbol.for("react.memo_cache_sentinel")?(w={overflow:"hidden"},e[4]=w):w=e[4];let _;e[5]!==g?(_=[g],e[5]=g,e[6]=_):_=e[6];let E;e[7]!==h||e[8]!==i||e[9]!==s?(E=A=>{h(),s==null||s(),i==null||i(A)},e[7]=h,e[8]=i,e[9]=s,e[10]=E):E=e[10];let T;e[11]!==r||e[12]!==_||e[13]!==E?(T=b.jsx(_B,{currentSprint:r,projects:_,onClick:E}),e[11]=r,e[12]=_,e[13]=E,e[14]=T):T=e[14];let M;e[15]!==p||e[16]!==T?(M=b.jsx(fr.Dropdown,{ref:p,p:0,style:w,children:T}),e[15]=p,e[16]=T,e[17]=M):M=e[17];let j;return e[18]!==h||e[19]!==f||e[20]!==c||e[21]!==S||e[22]!==M?(j=b.jsxs(fr,{withinPortal:!0,keepMounted:!1,opened:c,onOpen:f,onClose:h,width:620,children:[S,M]}),e[18]=h,e[19]=f,e[20]=c,e[21]=S,e[22]=M,e[23]=j):j=e[23],j},rP=({sprint:t,tasks:e})=>{const n=lt.dispatch(Ct.endpoints.updateTasks.initiate(e.map(r=>({...r,ProjectId:t.ProjectId,SprintId:t.Id})))).unwrap().then(()=>{lt.dispatch(Ct.util.invalidateTags([{type:"Sprint",id:t.Id},"Counter"]))});return Hr(n,{errorMsg:jt("notification.error.moveTask",{count:e.length}),successMsg:()=>({message:b.jsx(Dt,{dangerouslySetInnerHTML:{__html:jt("notification.success.moveTask",{count:e.length,location:t.Name})}})})})},oP=async t=>{const e=await lt.dispatch(wt.endpoints.getAvailableStatuses.initiate({entityType:t.entityType,entityIds:[t.entityId]})).unwrap();return Fs(e,"Order")},w6e=async({tasks:t,currentSprint:e,newSprint:n,onSuccess:r=()=>{}})=>{if(t.every(f=>f.SprintId===n.Id))return;const o=await oP({entityId:e.statusesEntityId,entityType:e.statusesEntityType}),s=await oP({entityId:n.statusesEntityId,entityType:n.statusesEntityType}),i=[...o,...s],l=i.find(f=>f.Type===Ie.IStatusType.BeExecuted),d=t.flatMap(f=>[f,...f.SubTasks??[]]).map(f=>({...f,statusData:i.find(h=>h.Id===f.Status)??l})).map(f=>({...f,statusData:s.find(h=>{var p,v,g;return Zr(h.PatternId)&&h.PatternId===((p=f.statusData)==null?void 0:p.PatternId)||h.Id===((v=f.statusData)==null?void 0:v.Id)||h.Name===((g=f.statusData)==null?void 0:g.Name)})}));if(x6e(d)){if(t.some(f=>Zr(f.parentForUpdate))){C6e({onConfirm:()=>rP({sprint:n,tasks:d.map(({statusData:f,...h})=>({...h,Status:f.Id}))}).finally(r)});return}rP({sprint:n,tasks:d.map(({statusData:f,...h})=>({...h,Status:f.Id}))}).finally(r);return}lt.dispatch(S4.actions.open({sprintId:n.Id,tasks:d.map(({statusData:f,...h})=>({...h,newStatus:f==null?void 0:f.Id})),onSuccess:r}))},x6e=t=>t.every(e=>!Fz(e.statusData)),C6e=t=>Sg.openConfirmModal({keepMounted:!1,centered:!0,labels:{confirm:jt("common.action.move"),cancel:jt("common.action.cancel")},title:jt("moveSubtask.title"),children:jt("moveSubtask.description"),confirmProps:{size:"md",radius:"md",fullWidth:!0},cancelProps:{size:"md",radius:"md",fullWidth:!0,variant:"subtle",color:"dark"},groupProps:{wrap:"nowrap"},...t}),_6e=t=>{const e=be.c(2),{currentSprintId:n}=t,r=v5(n);if(!r)return;let o;return e[0]!==r?(o=s=>{const{tasks:i,newSprint:l,onSuccess:c}=s;return w6e({tasks:i.map(T6e),currentSprint:r,newSprint:l,onSuccess:c})},e[0]=r,e[1]=o):o=e[1],o};function T6e(t,e){return{...t,ParentId:null,parentForUpdate:t.ParentId,Order:e}}const E6e="removeTasksModal",k6e=({id:t,parentId:e,title:n},r)=>{cf({title:jt("removeTaskModal.title"),children:b.jsx(Dt,{dangerouslySetInnerHTML:{__html:jt("removeTaskModal.description",{title:n})}}),onConfirm:()=>{r==null||r();const o=lt.dispatch(Ct.endpoints.deleteTask.initiate({id:t,parentId:e})).unwrap();Hr(o,{successMsg:jt("notification.success.deleteTask_one"),errorMsg:jt("notification.error.deleteTask")}).then(()=>{lt.dispatch(tu.util.invalidateTags([{type:"Task",id:t}]))})}})},ZDe=({ids:t,parentIds:e,childrenIds:n},r)=>{const o=n!=null&&n.length?jt("modals.deleteTasksWithChildren.description"):jt("modals.deleteTasks.description",{count:t.length});cf({modalId:E6e,title:jt("modals.deleteTasks.title"),children:b.jsx(Dt,{dangerouslySetInnerHTML:{__html:o}}),onAbort:r==null?void 0:r.onAbort,onConfirm:()=>{var i;(i=r==null?void 0:r.onConfirm)==null||i.call(r);const s=lt.dispatch(Ct.endpoints.deleteTasks.initiate({ids:t,parentIds:e})).unwrap();return Hr(s,{successMsg:jt("notification.success.deleteTask",{count:t.length}),errorMsg:jt("notification.error.deleteTask"),onSuccess:()=>{var l;return(l=r==null?void 0:r.onSuccess)==null?void 0:l.call(r)}})}})},M6e=t=>{const e=be.c(32),{targetSize:n,position:r,task:o,value:s,onRemove:i}=t,{t:l}=at(),c=xp(o.ProjectId),[d,f]=Wd(),{open:h,close:p}=f;let v;e[0]!==o.SprintId?(v={currentSprintId:o.SprintId},e[0]=o.SprintId,e[1]=v):v=e[1];const g=_6e(v);if(!(c.tasks.edit||c.tasks.delete))return null;let S;e[2]!==h?(S=A=>{A.stopPropagation(),h()},e[2]=h,e[3]=S):S=e[3];let w;e[4]===Symbol.for("react.memo_cache_sentinel")?(w=b.jsx(FE,{size:18}),e[4]=w):w=e[4];let _;e[5]!==S||e[6]!==n?(_=b.jsx(Mt.Target,{children:b.jsx(lr,{variant:"subtle",color:"light-dark(var(--mantine-color-dark-6), var(--mantine-color-dark-0))",onClick:S,size:n,children:w})}),e[5]=S,e[6]=n,e[7]=_):_=e[7];let E;e[8]!==c.tasks.edit||e[9]!==p||e[10]!==g||e[11]!==l||e[12]!==o||e[13]!==s?(E=c.tasks.edit&&b.jsxs(b.Fragment,{children:[b.jsx(c6e,{task:o,onClose:p}),b.jsx(S6e,{onClick:A=>{g==null||g({tasks:[o],newSprint:A})},sprintId:o.SprintId,projectId:o.ProjectId,onClose:p}),s&&b.jsx(u6e,{value:s,onCopied:p}),b.jsx(Mt.Item,{color:"light-dark(var(--mantine-color-dark-6), var(--mantine-color-dark-0))",leftSection:b.jsx(N0e,{size:18}),onClick:()=>{vxe(o),p()},children:l("common.action.duplicate")})]}),e[8]=c.tasks.edit,e[9]=p,e[10]=g,e[11]=l,e[12]=o,e[13]=s,e[14]=E):E=e[14];let T;e[15]!==c.tasks.delete||e[16]!==p||e[17]!==i||e[18]!==l||e[19]!==o.Id||e[20]!==o.ParentId||e[21]!==o.Title?(T=c.tasks.delete&&b.jsx(Mt.Item,{color:"red",onClick:()=>{k6e({id:o.Id,parentId:o.ParentId,title:o.Title},i),p()},leftSection:b.jsx(Qx,{size:18}),children:l("common.action.delete")}),e[15]=c.tasks.delete,e[16]=p,e[17]=i,e[18]=l,e[19]=o.Id,e[20]=o.ParentId,e[21]=o.Title,e[22]=T):T=e[22];let M;e[23]!==E||e[24]!==T?(M=b.jsxs(Mt.Dropdown,{onClick:j6e,children:[E,T]}),e[23]=E,e[24]=T,e[25]=M):M=e[25];let j;return e[26]!==p||e[27]!==d||e[28]!==r||e[29]!==_||e[30]!==M?(j=b.jsxs(Mt,{position:r,closeOnItemClick:!1,opened:d,onClose:p,children:[_,M]}),e[26]=p,e[27]=d,e[28]=r,e[29]=_,e[30]=M,e[31]=j):j=e[31],j};function j6e(t){return t.stopPropagation()}const D6e="_root_1iwmy_1",A6e="_actions_1iwmy_24",R6e="_subtaskTarget_1iwmy_34",O6e="_taskActions_1iwmy_45",P6e={root:D6e,actions:A6e,subtaskTarget:R6e,taskActions:O6e},N6e=t=>{const e=be.c(25);let n,r,o,s,i,l;e[0]!==t?({hidden:r,task:l,onRename:s,onOpenChange:o,className:n,...i}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s,e[5]=i,e[6]=l):(n=e[1],r=e[2],o=e[3],s=e[4],i=e[5],l=e[6]);const c=xp(l.ProjectId);let d;e[7]!==l.Key||e[8]!==l.SprintId?(d=wn.getTaskLink({sprintId:l.SprintId,taskKey:l.Key}),e[7]=l.Key,e[8]=l.SprintId,e[9]=d):d=e[9];const f=d;if(!c.tasks.edit&&!c.tasks.delete)return null;const h=+!r;let p;e[10]!==c.tasks.edit||e[11]!==o||e[12]!==s?(p=c.tasks.edit&&b.jsx(lr,{size:24,variant:"subtle",color:"dark",onClick:w=>{w.stopPropagation(),s==null||s(),o(!1)},children:b.jsx(HE,{size:18})}),e[10]=c.tasks.edit,e[11]=o,e[12]=s,e[13]=p):p=e[13];let v;e[14]!==l||e[15]!==f?(v=b.jsx(M6e,{task:l,value:f,targetSize:24}),e[14]=l,e[15]=f,e[16]=v):v=e[16];let g;e[17]!==p||e[18]!==v?(g=b.jsxs(qt,{gap:4,className:P6e.taskActions,children:[p,v]}),e[17]=p,e[18]=v,e[19]=g):g=e[19];let S;return e[20]!==n||e[21]!==i||e[22]!==h||e[23]!==g?(S=b.jsx(il,{pos:"absolute",top:2,right:2,p:2,opacity:h,className:n,...i,children:g}),e[20]=n,e[21]=i,e[22]=h,e[23]=g,e[24]=S):S=e[24],S};function I6e(t){if(t.length===0)return!0;for(const e of t)if(!("group"in e)||e.items.length>0)return!1;return!0}function $6e({options:t,search:e,limit:n}){const r=e.trim().toLowerCase(),o=[];for(let s=0;s<t.length;s+=1){const i=t[s];if(o.length===n)return o;i.label.toLowerCase().includes(r)&&o.push(i)}return o}const L6e="_pillsRoot_ifrlo_1",F6e="_pillsWrapper_ifrlo_4",z6e="_pillsInput_ifrlo_8",U6e="_pill_ifrlo_1",B6e="_optionsDropdownScroll_ifrlo_30",H6e="_optionsDropdownScrollViewport_ifrlo_35",q6e="_optionsDropdownOption_ifrlo_42",V6e="_optionsDropdownCheckIcon_ifrlo_61",Qc={pillsRoot:L6e,pillsWrapper:F6e,pillsInput:z6e,pill:U6e,optionsDropdownScroll:B6e,optionsDropdownScrollViewport:H6e,optionsDropdownOption:q6e,optionsDropdownCheckIcon:V6e};function Y6e(t,e){return Array.isArray(t)?t.includes(e):t===e}const G6e=t=>{const e=be.c(25),{data:n,value:r,withCheckIcon:o,checkIconPosition:s,readOnly:i}=t;let l;e[0]!==n.value||e[1]!==r?(l=Y6e(r,n.value),e[0]=n.value,e[1]=r,e[2]=l):l=e[2];const c=l;let d;e[3]!==c||e[4]!==o?(d=o&&c&&b.jsx(r7,{className:Qc.optionsDropdownCheckIcon}),e[3]=c,e[4]=o,e[5]=d):d=e[5];const f=d,h=s==="right"||void 0,p=c||void 0,v=`var(--mantine-color-${n.color}-6)`,g=`var(--mantine-color-${n.color}-1)`,S=`var(--mantine-color-${n.color}-${i?"1":"2"})`,w=i?"default":"pointer";let _;e[6]!==v||e[7]!==g||e[8]!==S||e[9]!==w?(_={color:v,backgroundColor:g,"--hover-bg":S,cursor:w},e[6]=v,e[7]=g,e[8]=S,e[9]=w,e[10]=_):_=e[10];const E=s==="left"&&f;let T;e[11]!==n.label?(T=b.jsx(ci,{fw:500,lh:"20px",children:n.label}),e[11]=n.label,e[12]=T):T=e[12];const M=s==="right"&&f;let j;e[13]!==E||e[14]!==T||e[15]!==M?(j=b.jsxs(b.Fragment,{children:[E,T,M]}),e[13]=E,e[14]=T,e[15]=M,e[16]=j):j=e[16];let A;return e[17]!==c||e[18]!==n.disabled||e[19]!==n.value||e[20]!==j||e[21]!==h||e[22]!==p||e[23]!==_?(A=b.jsx(Ht.Option,{value:n.value,disabled:n.disabled,className:Qc.optionsDropdownOption,"data-reverse":h,"data-checked":p,"aria-selected":c,active:c,style:_,children:j}),e[17]=c,e[18]=n.disabled,e[19]=n.value,e[20]=j,e[21]=h,e[22]=p,e[23]=_,e[24]=A):A=e[24],A},W6e=t=>{const e=be.c(37),{data:n,value:r,maxOptionsHeight:o,hidden:s,withCheckIcon:i,checkIconPosition:l,nothingFoundMessage:c,footer:d,readOnly:f,onClear:h,onClose:p}=t,{t:v}=at();let g,S;if(e[0]!==l||e[1]!==n||e[2]!==f||e[3]!==r||e[4]!==i){const I=$6e({options:n,search:"",limit:1/0});g=I6e(I);let L;e[7]!==l||e[8]!==f||e[9]!==r||e[10]!==i?(L=F=>b.jsx(G6e,{data:F,withCheckIcon:i,value:r,checkIconPosition:l,readOnly:f},F.value),e[7]=l,e[8]=f,e[9]=r,e[10]=i,e[11]=L):L=e[11],S=I.map(L),e[0]=l,e[1]=n,e[2]=f,e[3]=r,e[4]=i,e[5]=g,e[6]=S}else g=e[5],S=e[6];const w=S;let _;e[12]===Symbol.for("react.memo_cache_sentinel")?(_={minWidth:"150px"},e[12]=_):_=e[12];let E;e[13]===Symbol.for("react.memo_cache_sentinel")?(E={viewport:Qc.optionsDropdownScrollViewport},e[13]=E):E=e[13];const T=o??(f?245:165);let M;e[14]!==w||e[15]!==T?(M=b.jsx(Hi.Autosize,{className:Qc.optionsDropdownScroll,classNames:E,mah:T,type:"scroll",scrollbarSize:"var(--combobox-padding)",children:w}),e[14]=w,e[15]=T,e[16]=M):M=e[16];let j;e[17]!==g||e[18]!==c?(j=g&&c&&b.jsx(Ht.Empty,{children:c}),e[17]=g,e[18]=c,e[19]=j):j=e[19];let A;e[20]!==M||e[21]!==j?(A=b.jsxs(Ht.Options,{children:[M,j]}),e[20]=M,e[21]=j,e[22]=A):A=e[22];let k;e[23]!==d||e[24]!==p?(k=b.jsx("div",{onClick:p,children:d}),e[23]=d,e[24]=p,e[25]=k):k=e[25];let R;e[26]!==g||e[27]!==h||e[28]!==f||e[29]!==v||e[30]!==(r==null?void 0:r.length)?(R=!f&&!g&&b.jsx(In,{disabled:!(r!=null&&r.length),onClick:h,size:"md",fullWidth:!0,fz:14,fw:500,mt:2,children:v("common.action.clear")}),e[26]=g,e[27]=h,e[28]=f,e[29]=v,e[30]=r==null?void 0:r.length,e[31]=R):R=e[31];let N;return e[32]!==s||e[33]!==A||e[34]!==k||e[35]!==R?(N=b.jsxs(Ht.Dropdown,{hidden:s,onClick:Q6e,style:_,children:[A,k,R]}),e[32]=s,e[33]=A,e[34]=k,e[35]=R,e[36]=N):N=e[36],N};function Q6e(t){return t.stopPropagation()}const K6e={data:[],maxDisplayValues:1/0,withCheckIcon:!0,checkIconPosition:"right"},X6e=t=>{const e=be.c(57),{t:n}=at(),{value:r,onChange:o,data:s,disabled:i,readOnly:l,maxDisplayValues:c,nothingFoundMessage:d,withCheckIcon:f,checkIconPosition:h,footer:p,embedded:v,nowrap:g,w:S}={...K6e,...t},w=zz(s,"value"),_=fp({onDropdownClose:()=>{_.resetSelectedOption()}}),[E,T]=Wi({value:r,finalValue:[],onChange:o}),M=E.slice(0,c).map((J,ne)=>{var se,ie,oe,de;return b.jsx(kv,{className:Qc.pill,withRemoveButton:!((se=w[J])!=null&&se.disabled)&&!l,onRemove:()=>{T(E.filter(pe=>J!==pe))},disabled:i,bg:`${(ie=w[J])==null?void 0:ie.color}.1`,c:`${(oe=w[J])==null?void 0:oe.color}.6`,styles:{remove:{opacity:.5}},children:b.jsx(ci,{fz:12,fw:500,lh:2,children:((de=w[J])==null?void 0:de.label)||J})},`${J}-${ne}`)}),j=E.length-c,A=l?s.filter(J=>E.includes(J.value)):s,k=l&&j<1,R=!v&&k?"default":"pointer";let N;e:{if(j<=0){N=null;break e}let J;e[0]!==M?(J=M.pop(),e[0]=M,e[1]=J):J=e[1];const ne=J;let se;e[2]!==R?(se={cursor:R,flexShrink:0},e[2]=R,e[3]=se):se=e[3];let ie;e[4]!==j||e[5]!==se?(ie=b.jsxs(pg,{variant:"outline",h:24,px:4,fz:12,w:"max-content",style:se,children:["+",j]}),e[4]=j,e[5]=se,e[6]=ie):ie=e[6];let oe;e[7]!==ne||e[8]!==ie?(oe=b.jsxs(qt,{gap:8,wrap:"nowrap",className:Qc.pill,miw:97,children:[ne,ie]}),e[7]=ne,e[8]=ie,e[9]=oe):oe=e[9],N=oe}const I=N;let L;e[10]!==E||e[11]!==_||e[12]!==w||e[13]!==l||e[14]!==T?(L=J=>{l||(_.updateSelectedOptionIndex("selected"),E.includes(w[J].value)?T(E.filter(ne=>ne!==w[J].value)):T([...E,w[J].value]))},e[10]=E,e[11]=_,e[12]=w,e[13]=l,e[14]=T,e[15]=L):L=e[15];let F;e[16]===Symbol.for("react.memo_cache_sentinel")?(F={root:Qc.pillsRoot,wrapper:Qc.pillsWrapper,input:Qc.pillsInput},e[16]=F):F=e[16];let H;e[17]!==k?(H={"data-readonly":k},e[17]=k,e[18]=H):H=e[18];let B;e[19]!==_||e[20]!==k?(B=J=>{k||(J.stopPropagation(),_.toggleDropdown())},e[19]=_,e[20]=k,e[21]=B):B=e[21];let Y;e[22]!==R?(Y={input:{cursor:R}},e[22]=R,e[23]=Y):Y=e[23];let U;e[24]!==E.length||e[25]!==I||e[26]!==g||e[27]!==n||e[28]!==M?(U=E.length?b.jsxs(kv.Group,{styles:{group:{flexWrap:g?"nowrap":"wrap"}},children:[M,I]}):b.jsx(Dt,{fz:14,lh:"24px",c:"light-dark(var(--mantine-color-dark-6), var(--mantine-color-dark-0))",children:n("tags.placeholder")}),e[24]=E.length,e[25]=I,e[26]=g,e[27]=n,e[28]=M,e[29]=U):U=e[29];let q;e[30]!==i||e[31]!==H||e[32]!==B||e[33]!==Y||e[34]!==U||e[35]!==S?(q=b.jsx(Ht.DropdownTarget,{children:b.jsx(E7,{classNames:F,mod:H,disabled:i,onClick:B,styles:Y,w:S,children:U})}),e[30]=i,e[31]=H,e[32]=B,e[33]=Y,e[34]=U,e[35]=S,e[36]=q):q=e[36];const z=!l&&p;let W;e[37]!==T?(W=()=>T([]),e[37]=T,e[38]=W):W=e[38];let K;e[39]!==_?(K=()=>_.closeDropdown(),e[39]=_,e[40]=K):K=e[40];let G;e[41]!==E||e[42]!==h||e[43]!==i||e[44]!==A||e[45]!==d||e[46]!==l||e[47]!==K||e[48]!==z||e[49]!==W||e[50]!==f?(G=b.jsx(W6e,{data:A,value:E,hidden:i,nothingFoundMessage:d,withCheckIcon:f,checkIconPosition:h,footer:z,readOnly:l,onClear:W,onClose:K}),e[41]=E,e[42]=h,e[43]=i,e[44]=A,e[45]=d,e[46]=l,e[47]=K,e[48]=z,e[49]=W,e[50]=f,e[51]=G):G=e[51];let X;return e[52]!==_||e[53]!==L||e[54]!==G||e[55]!==q?(X=b.jsxs(Ht,{store:_,onOptionSubmit:L,children:[q,G]}),e[52]=_,e[53]=L,e[54]=G,e[55]=q,e[56]=X):X=e[56],X},Z6e=t=>{var k;const e=be.c(26),{projectId:n,taskId:r,embedded:o}=t,s=Us(),{project:i}=Yr(n),{project:l}=Yr(i==null?void 0:i.rootProjectId);let c;e[0]!==l?(c=l?[l.Id]:[],e[0]=l,e[1]=c):c=e[1];const d=!l;let f;e[2]!==d?(f={skip:d},e[2]=d,e[3]=f):f=e[3];const{data:h}=Ui.useGetQuery(c,f);let p;e[4]!==h?(p=Fs(h||[],"Order").map(e9e),e[4]=h,e[5]=p):p=e[5];const v=p;let g;e[6]!==r?(g=[r],e[6]=r,e[7]=g):g=e[7];let S;e[8]!==o?(S={skip:o},e[8]=o,e[9]=S):S=e[9];const{data:w}=Ui.useGetByTaskQuery(g,S);let _;if(e[10]!==h||e[11]!==r||e[12]!==w){const R=((k=w==null?void 0:w.find(I=>I.TaskId===r))==null?void 0:k.LabelIds)??[];let N;e[14]!==h?(N=I=>h==null?void 0:h.find(L=>L.Id===I),e[14]=h,e[15]=N):N=e[15],_=Fs(R.map(N).filter(J6e),"Order").map(t9e),e[10]=h,e[11]=r,e[12]=w,e[13]=_}else _=e[13];const E=_,[T]=Ui.useLinkMutation();let M;e[16]!==T||e[17]!==s||e[18]!==n||e[19]!==(l==null?void 0:l.Id)||e[20]!==r?(M=R=>{T({ProjectId:(l==null?void 0:l.Id)??n,TaskId:r,LabelIds:R.map(Number)}).then(()=>{s(Ct.util.invalidateTags(["Activity"]))})},e[16]=T,e[17]=s,e[18]=n,e[19]=l==null?void 0:l.Id,e[20]=r,e[21]=M):M=e[21];const j=M;let A;return e[22]!==v||e[23]!==j||e[24]!==E?(A={value:E,data:v,onChange:j},e[22]=v,e[23]=j,e[24]=E,e[25]=A):A=e[25],A},J6e=t=>Zr(t==null?void 0:t.Order);function e9e(t){return{value:t.Id.toString(),label:t.Name,color:t.Color}}function t9e(t){return String(t.Id)}const n9e=t=>{const e=be.c(21),{projectId:n,taskId:r,value:o,embedded:s,nowrap:i,w:l,readOnly:c}=t;let d;e[0]!==o?(d=o===void 0?[]:o,e[0]=o,e[1]=d):d=e[1];const f=d,{t:h}=at(),p=xp(n),{project:v}=Yr(n),{project:g}=Yr(v==null?void 0:v.rootProjectId);let S;e[2]!==s||e[3]!==n||e[4]!==r?(S={projectId:n,taskId:r,embedded:s},e[2]=s,e[3]=n,e[4]=r,e[5]=S):S=e[5];const{value:w,data:_,onChange:E}=Z6e(S),T=s?f:w;if(s&&!T.length)return null;const M=c||!p.tasks.edit;let j;e[6]!==h?(j=h("nodata.noResults.title"),e[6]=h,e[7]=j):j=e[7];let A;e[8]!==g||e[9]!==h?(A=g&&b.jsx(In,{variant:"subtle",size:"md",leftSection:b.jsx(R2,{size:15}),fullWidth:!0,fz:12,fw:400,mt:2,onClick:()=>Ak(g,"tags"),children:h("tags.action.add")}),e[8]=g,e[9]=h,e[10]=A):A=e[10];let k;return e[11]!==_||e[12]!==s||e[13]!==i||e[14]!==E||e[15]!==M||e[16]!==j||e[17]!==A||e[18]!==T||e[19]!==l?(k=b.jsx(X6e,{readOnly:M,embedded:s,nowrap:i,value:T,data:_,onChange:E,maxDisplayValues:3,nothingFoundMessage:j,w:l,footer:A}),e[11]=_,e[12]=s,e[13]=i,e[14]=E,e[15]=M,e[16]=j,e[17]=A,e[18]=T,e[19]=l,e[20]=k):k=e[20],k},r9e=t=>{const e=be.c(19),{originalValue:n,onUpdate:r,allowEqual:o,updateOnBlur:s,defaultEdit:i}=t,l=i===void 0?!1:i,[c,d]=D.useState(""),[f,h]=D.useState(l);let p;e[0]!==n?(p=()=>{h(!0),d(n)},e[0]=n,e[1]=p):p=e[1];const v=p;let g;e[2]!==o||e[3]!==r||e[4]!==n||e[5]!==c?(g=j=>{j==null||j.preventDefault();const A=c.trim();A&&((o||A!==n)&&(r==null||r(A)),h(!1))},e[2]=o,e[3]=r,e[4]=n,e[5]=c,e[6]=g):g=e[6];const S=g;let w;e[7]!==S||e[8]!==s?(w=()=>s?S():h(!1),e[7]=S,e[8]=s,e[9]=w):w=e[9];const _=r2(w);let E;e[10]!==c?(E=c.trim(),e[10]=c,e[11]=E):E=e[11];const T=!E;let M;return e[12]!==v||e[13]!==S||e[14]!==f||e[15]!==_||e[16]!==T||e[17]!==c?(M={value:c,setValue:d,handleEdit:v,handleUpdate:S,ref:_,isEdit:f,setIsEdit:h,valueEmpty:T},e[12]=v,e[13]=S,e[14]=f,e[15]=_,e[16]=T,e[17]=c,e[18]=M):M=e[18],M},o9e=t=>{const e=be.c(69),{task:n,onUpdate:r,onClick:o,isMyTasks:s,isNested:i}=t,{t:l}=at(),c=Us(),{project:d}=Yr(n.ProjectId),{project:f}=Yr(d==null?void 0:d.rootProjectId);let h;e[0]!==(f==null?void 0:f.Settings.EnabledFeatures)?(h=f==null?void 0:f.Settings.EnabledFeatures.includes("Labels"),e[0]=f==null?void 0:f.Settings.EnabledFeatures,e[1]=h):h=e[1];const p=h;let v;e[2]!==r||e[3]!==n.Title?(v={originalValue:n.Title,updateOnBlur:!0,onUpdate:r},e[2]=r,e[3]=n.Title,e[4]=v):v=e[4];const{isEdit:g,setIsEdit:S,value:w,setValue:_,valueEmpty:E,handleEdit:T,handleUpdate:M,ref:j}=r9e(v);let A,k;if(e[5]!==c||e[6]!==g||e[7]!==n?(A=()=>{c(jwe(g?n:null))},k=[c,g,n],e[5]=c,e[6]=g,e[7]=n,e[8]=A,e[9]=k):(A=e[8],k=e[9]),D.useEffect(A,k),g){const U=!!n.ParentId;let q;e[10]===Symbol.for("react.memo_cache_sentinel")?(q={flex:1,minWidth:500},e[10]=q):q=e[10];const z=E?"var(--mantine-color-red-6)":void 0;let W;e[11]!==z?(W={input:{borderColor:z}},e[11]=z,e[12]=W):W=e[12];let K;e[13]!==l?(K=l("createTask.fields.title.shortPlaceholder"),e[13]=l,e[14]=K):K=e[14];let G;e[15]!==_?(G=we=>_(we.currentTarget.value),e[15]=_,e[16]=G):G=e[16];let X;e[17]!==G||e[18]!==W||e[19]!==K||e[20]!==w?(X=b.jsx(Is,{flex:1,maxLength:500,styles:W,placeholder:K,value:w,onChange:G}),e[17]=G,e[18]=W,e[19]=K,e[20]=w,e[21]=X):X=e[21];let J;e[22]!==S?(J=()=>S(!1),e[22]=S,e[23]=J):J=e[23];let ne;e[24]!==l?(ne=l("common.action.cancel"),e[24]=l,e[25]=ne):ne=e[25];let se;e[26]!==J||e[27]!==ne?(se=b.jsx(In,{variant:"subtle",color:"dark",size:"compact-sm",onClick:J,children:ne}),e[26]=J,e[27]=ne,e[28]=se):se=e[28];let ie;e[29]===Symbol.for("react.memo_cache_sentinel")?(ie=b.jsx(lge,{size:16}),e[29]=ie):ie=e[29];let oe;e[30]!==l?(oe=l("common.action.save"),e[30]=l,e[31]=oe):oe=e[31];let de;e[32]!==oe?(de=b.jsx(In,{variant:"filled",color:"blue",type:"submit",size:"compact-sm",rightSection:ie,children:oe}),e[32]=oe,e[33]=de):de=e[33];let pe;e[34]!==se||e[35]!==de?(pe=b.jsxs(Lt,{gap:8,children:[se,de]}),e[34]=se,e[35]=de,e[36]=pe):pe=e[36];let fe;e[37]!==X||e[38]!==pe?(fe=b.jsx(dp,{children:b.jsxs(Lt,{align:"center",flex:1,children:[X,pe]})}),e[37]=X,e[38]=pe,e[39]=fe):fe=e[39];let Te;return e[40]!==M||e[41]!==j||e[42]!==fe||e[43]!==U?(Te=b.jsx("form",{onSubmit:M,onClick:s9e,"data-child":U,ref:j,style:q,children:fe}),e[40]=M,e[41]=j,e[42]=fe,e[43]=U,e[44]=Te):Te=e[44],Te}const R=!!n.ParentId;let N;e[45]!==n.State?(N=(n.State===Ie.EntityState.Archive||n.State===Ie.EntityState.ArchiveParent)&&b.jsx(xu,{size:16,color:"var(--mantine-color-dark-2)"}),e[45]=n.State,e[46]=N):N=e[46];const I=i?26:45;let L;e[47]!==I?(L={minWidth:I},e[47]=I,e[48]=L):L=e[48];let F;e[49]!==o||e[50]!==L||e[51]!==n.Title?(F=b.jsx(ci,{className:yo.cardDescription,style:L,onClick:o,flex:1,children:n.Title}),e[49]=o,e[50]=L,e[51]=n.Title,e[52]=F):F=e[52];let H;e[53]!==p||e[54]!==s||e[55]!==n.Id||e[56]!==n.LabelIds||e[57]!==n.ProjectId?(H=p&&b.jsxs(qt,{gap:60,wrap:"nowrap",children:[b.jsx(n9e,{embedded:!0,nowrap:!0,w:275,projectId:n.ProjectId,taskId:n.Id,value:n.LabelIds,readOnly:s}),b.jsx("span",{})]}),e[53]=p,e[54]=s,e[55]=n.Id,e[56]=n.LabelIds,e[57]=n.ProjectId,e[58]=H):H=e[58];let B;e[59]!==T||e[60]!==s||e[61]!==n?(B=!s&&b.jsx(N6e,{top:"50%",style:{transform:"translateY(-50%)"},task:n,onOpenChange:()=>{T()},className:yo.actions}),e[59]=T,e[60]=s,e[61]=n,e[62]=B):B=e[62];let Y;return e[63]!==H||e[64]!==B||e[65]!==R||e[66]!==N||e[67]!==F?(Y=b.jsxs(Lt,{align:"center",gap:8,className:yo.title,"data-child":R,flex:1,children:[N,F,H,B]}),e[63]=H,e[64]=B,e[65]=R,e[66]=N,e[67]=F,e[68]=Y):Y=e[68],Y};function s9e(t){return t.stopPropagation()}const i9e=t=>{const e=be.c(102),{task:n,types:r,statuses:o,lefSection:s,codeColWidth:i,setCodeColWidth:l,toggleChildren:c,isMyTasks:d,hasChildren:f,isNested:h,selected:p,disabled:v,onSelect:g,groupBy:S}=t,w=xp(n.ProjectId),_=mi("(max-width: 768px)"),E=v5(n.SprintId),{fieldIds:T,attributes:M}=eCe(),j=fB(n),A=jk(n),k=YCe(n),R=tn(a9e),N=_?(R??0)-(n.ParentId?28:0):void 0,I=D.useRef(null),[L,F]=D.useState(!1);let H;e[0]!==l?(H=()=>{var Jt;const Zt=(Jt=I.current)==null?void 0:Jt.getBoundingClientRect().width;Zt&&(l==null||l(Zt),F(!0))},e[0]=l,e[1]=H):H=e[1];let B;e[2]!==i||e[3]!==l?(B=[i,l],e[2]=i,e[3]=l,e[4]=B):B=e[4],D.useLayoutEffect(H,B),E==null||E.rootProjectId;let Y;if(e[5]!==M||e[6]!==(E==null?void 0:E.rootProjectId)||e[7]!==n.Attributes||e[8]!==n.Id||e[9]!==n.ParentId){let Zt;e[11]!==(E==null?void 0:E.rootProjectId)||e[12]!==n.Attributes||e[13]!==n.Id||e[14]!==n.ParentId?(Zt=(Jt,en)=>{var he;const It=(he=n.Attributes)==null?void 0:he.find(Ce=>Ce.AttributeId===en.AttributeId);return Jt[en.Id]=b.jsx(l6e,{value:(It==null?void 0:It.Value)??"",attribute:en,projectId:(E==null?void 0:E.rootProjectId)??0,taskId:n.Id,recordId:It==null?void 0:It.Id,parentId:n.ParentId}),Jt},e[11]=E==null?void 0:E.rootProjectId,e[12]=n.Attributes,e[13]=n.Id,e[14]=n.ParentId,e[15]=Zt):Zt=e[15],Y=(M??[]).reduce(Zt,{}),e[5]=M,e[6]=E==null?void 0:E.rootProjectId,e[7]=n.Attributes,e[8]=n.Id,e[9]=n.ParentId,e[10]=Y}else Y=e[10];const U=Y;let q;e[16]!==T?(q=T.includes("type"),e[16]=T,e[17]=q):q=e[17];const z=q;let W;e[18]!==T?(W=T.includes("code"),e[18]=T,e[19]=W):W=e[19];const K=W;let G;e[20]!==A?(G=Zt=>A({TypeId:Zt}),e[20]=A,e[21]=G):G=e[21];const X=!w.tasks.edit||d;let J;e[22]!==G||e[23]!==X||e[24]!==n||e[25]!==r?(J=b.jsx(H5e,{className:yo.type,value:n.TypeId,task:n,onChange:G,types:r,withLabel:!1,readonly:X}),e[22]=G,e[23]=X,e[24]=n,e[25]=r,e[26]=J):J=e[26];let ne;e[27]!==J||e[28]!==n?(ne=b.jsx(J6,{task:n,children:J}),e[27]=J,e[28]=n,e[29]=ne):ne=e[29];let se,ie;e[30]===Symbol.for("react.memo_cache_sentinel")?(se=Dr(yo.cardProjectId,yo.key),ie={whiteSpace:"nowrap"},e[30]=se,e[31]=ie):(se=e[30],ie=e[31]);const oe=L?i:void 0;let de;e[32]!==oe||e[33]!==n.Key?(de=b.jsx(Dt,{size:"sm",className:se,style:ie,ref:I,w:oe,h:28,children:n.Key}),e[32]=oe,e[33]=n.Key,e[34]=de):de=e[34];let pe;e[35]!==z||e[36]!==de||e[37]!==n?(pe=b.jsx(J6,{task:n,disabled:z,children:de}),e[35]=z,e[36]=de,e[37]=n,e[38]=pe):pe=e[38];const fe=z||K;let Te;e[39]!==A?(Te=Zt=>A({Title:Zt}),e[39]=A,e[40]=Te):Te=e[40];let we;e[41]!==d||e[42]!==h||e[43]!==Te||e[44]!==n?(we=b.jsx(o9e,{task:n,onUpdate:Te,isMyTasks:d,isNested:h}),e[41]=d,e[42]=h,e[43]=Te,e[44]=n,e[45]=we):we=e[45];let _e;e[46]!==fe||e[47]!==we||e[48]!==n?(_e=b.jsx(J6,{task:n,disabled:fe,flex:1,display:"flex",children:we}),e[46]=fe,e[47]=we,e[48]=n,e[49]=_e):_e=e[49];let De;e[50]!==A?(De=Zt=>A({Status:Zt.Id}),e[50]=A,e[51]=De):De=e[51];const Ze=!w.tasks.edit||d;let ze;e[52]!==o||e[53]!==De||e[54]!==Ze||e[55]!==n.Status?(ze=b.jsx(Lt,{w:130,justify:"flex-end",children:b.jsx(L5e,{value:n.Status,onChange:De,statuses:o,readonly:Ze,iconSize:20})}),e[52]=o,e[53]=De,e[54]=Ze,e[55]=n.Status,e[56]=ze):ze=e[56];let Xe;e[57]!==A?(Xe=Zt=>A({Priority:Zt}),e[57]=A,e[58]=Xe):Xe=e[58];const Ke=!w.tasks.edit||d;let ot;e[59]!==Xe||e[60]!==Ke||e[61]!==n.Priority?(ot=b.jsx(A5e,{priority:n.Priority,onChange:Xe,withLabel:!1,readonly:Ke}),e[59]=Xe,e[60]=Ke,e[61]=n.Priority,e[62]=ot):ot=e[62];let st;e[63]!==k?(st=Zt=>k(Dg(Zt,"Id")),e[63]=k,e[64]=st):st=e[64];const mt=!w.tasks.edit||d;let bt;e[65]!==j||e[66]!==st||e[67]!==mt||e[68]!==n.ProjectId?(bt=b.jsx(BU,{projectId:n.ProjectId,value:j,onChange:st,compact:!0,readonly:mt,width:72}),e[65]=j,e[66]=st,e[67]=mt,e[68]=n.ProjectId,e[69]=bt):bt=e[69];let At,ct;e[70]!==n?(At=b.jsx(WCe,{task:n}),ct=b.jsx(GCe,{task:n}),e[70]=n,e[71]=At,e[72]=ct):(At=e[71],ct=e[72]);let cn;e[73]!==U||e[74]!==pe||e[75]!==_e||e[76]!==ze||e[77]!==ot||e[78]!==bt||e[79]!==At||e[80]!==ct||e[81]!==ne?(cn={type:ne,code:pe,name:_e,status:ze,priority:ot,performer:bt,startDate:At,dueDate:ct,...U},e[73]=U,e[74]=pe,e[75]=_e,e[76]=ze,e[77]=ot,e[78]=bt,e[79]=At,e[80]=ct,e[81]=ne,e[82]=cn):cn=e[82];const bn=cn,Tt=S==="status"?"status":S==="type"?"type":S==="priority"?"priority":S==="performer"?"performer":null;let Ft,Xt;if(e[83]!==w.sprints.edit||e[84]!==bn||e[85]!==v||e[86]!==T||e[87]!==Tt||e[88]!==f||e[89]!==d||e[90]!==_||e[91]!==s||e[92]!==g||e[93]!==p||e[94]!==N||e[95]!==n.Id||e[96]!==c){const Zt=Tt?N1(T,he=>he!==Tt):T,Jt=N1(Zt,l9e),It=[...N1(Zt,c9e)].sort(u9e);Ft=Jt.length?b.jsxs(Lt,{"data-visible":p==null?void 0:p.includes(n.Id),className:yo.staticContent,w:N,children:[b.jsxs(Lt,{align:"center",onClick:d9e,children:[!d&&w.sprints.edit&&b.jsx(ef,{checked:p==null?void 0:p.includes(n.Id),onChange:()=>{g==null||g(n.Id)},disabled:v,className:yo.checkbox}),s]}),Jt.map(he=>b.jsx(D.Fragment,{children:bn[he]},he))]}):null,Xt=f||It.length?b.jsxs(Lt,{className:yo.controls,gap:"14px",align:"center",children:[!_&&f?b.jsx(j5e,{onClick:he=>{c&&(he.stopPropagation(),c())}}):b.jsx(je,{w:29}),It.map(he=>b.jsx(D.Fragment,{children:bn[he]},he))]}):null,e[83]=w.sprints.edit,e[84]=bn,e[85]=v,e[86]=T,e[87]=Tt,e[88]=f,e[89]=d,e[90]=_,e[91]=s,e[92]=g,e[93]=p,e[94]=N,e[95]=n.Id,e[96]=c,e[97]=Ft,e[98]=Xt}else Ft=e[97],Xt=e[98];const _n=Xt;let un;return e[99]!==_n||e[100]!==Ft?(un=b.jsxs(b.Fragment,{children:[Ft,_n]}),e[99]=_n,e[100]=Ft,e[101]=un):un=e[101],un},J6=t=>{const e=be.c(17);let n,r,o,s,i;e[0]!==t?({task:i,disabled:r,children:n,ref:o,...s}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s,e[5]=i):(n=e[1],r=e[2],o=e[3],s=e[4],i=e[5]);const l=tn(f9e);let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c={indicator:{width:10,left:-8,top:-5}},e[6]=c):c=e[6];let d;e[7]!==l||e[8]!==r||e[9]!==i.Performers||e[10]!==i.WasRead?(d=i.WasRead||!i.Performers.includes(l)||r,e[7]=l,e[8]=r,e[9]=i.Performers,e[10]=i.WasRead,e[11]=d):d=e[11];let f;return e[12]!==n||e[13]!==o||e[14]!==s||e[15]!==d?(f=b.jsx(cx,{ref:o,withBorder:!0,position:"top-start",styles:c,disabled:d,...s,children:n}),e[12]=n,e[13]=o,e[14]=s,e[15]=d,e[16]=f):f=e[16],f};function a9e(t){return t.sprintSlice.dimensions.scrollAreaWidth}function l9e(t){return["type","code","name"].includes(t)}function c9e(t){return!["type","code","name"].includes(t)}function u9e(t,e){return t==="status"&&e==="priority"?-1:t==="priority"&&e==="status"?1:0}function d9e(t){return t.stopPropagation()}function f9e(t){return t.usersCache.currentUser.Id}const JDe=D.memo(t=>{const e=be.c(42);let n,r,o,s,i,l,c,d,f,h,p,v,g,S;e[0]!==t?({task:v,statuses:p,types:S,border:n,lefSection:c,isNested:l,toggleChildren:g,isMyTasks:i,hasChildren:s,selected:h,disabled:r,onSelect:d,groupBy:o,...f}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s,e[5]=i,e[6]=l,e[7]=c,e[8]=d,e[9]=f,e[10]=h,e[11]=p,e[12]=v,e[13]=g,e[14]=S):(n=e[1],r=e[2],o=e[3],s=e[4],i=e[5],l=e[6],c=e[7],d=e[8],f=e[9],h=e[10],p=e[11],v=e[12],g=e[13],S=e[14]);const{codeColWidth:w,childCodeColWidth:_,setCodeColWidth:E,setChildCodeColWidth:T}=E5e(),M=l?_:w,j=l?T:E;let A;e[15]!==r||e[16]!==o||e[17]!==s||e[18]!==i||e[19]!==l||e[20]!==c||e[21]!==d||e[22]!==h||e[23]!==p||e[24]!==M||e[25]!==j||e[26]!==v||e[27]!==g||e[28]!==S?(A={task:v,types:S,statuses:p,lefSection:c,isNested:l,codeColWidth:M,setCodeColWidth:j,toggleChildren:g,isMyTasks:i,hasChildren:s,selected:h,disabled:r,onSelect:d,groupBy:o},e[15]=r,e[16]=o,e[17]=s,e[18]=i,e[19]=l,e[20]=c,e[21]=d,e[22]=h,e[23]=p,e[24]=M,e[25]=j,e[26]=v,e[27]=g,e[28]=S,e[29]=A):A=e[29];const k=i9e(A);let R;e[30]!==v.Key?(R=()=>Kk(v.Key),e[30]=v.Key,e[31]=R):R=e[31];const N=R,I=`${l?"60":"0"}px`;let L;e[32]!==I?(L={"--inserter-size":I},e[32]=I,e[33]=L):L=e[33];let F;e[34]!==n||e[35]!==k||e[36]!==N||e[37]!==f?(F=b.jsx(je,{className:yo.root,onClick:N,tabIndex:0,"data-border":n,miw:0,...f,children:k}),e[34]=n,e[35]=k,e[36]=N,e[37]=f,e[38]=F):F=e[38];let H;return e[39]!==L||e[40]!==F?(H=b.jsx(qt,{gap:0,style:L,children:F}),e[39]=L,e[40]=F,e[41]=H):H=e[41],H}),h9e=D.memo(t=>{const e=be.c(3),{task:n,disabled:r}=t,o=fB(n);let s;return e[0]!==r||e[1]!==o?(s=b.jsx(I8,{value:o,isCardDisabled:r,compact:!0}),e[0]=r,e[1]=o,e[2]=s):s=e[2],s}),EB=t=>{const e=be.c(24),n=Us();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={},e[0]=r):r=e[0];const[o,s]=D.useState(r);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={},e[1]=i):i=e[1];const[l,c]=D.useState(i);let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=[],e[2]=d):d=e[2];const[f,h]=D.useState(d);let p;e[3]!==t?(p=Array.isArray(t)?t:t?[t]:[],e[3]=t,e[4]=p):p=e[4];const v=p;let g;if(e[5]!==v){const N=w3e(v,"statusesEntityType");g=ok(N,p9e),e[5]=v,e[6]=g}else g=e[6];const S=g;let w,_;e[7]!==n||e[8]!==S?(w=()=>{s([]),Object.entries(S).forEach(N=>{const[I,L]=N;L.forEach(F=>{c(H=>({...H,[F]:!0}))}),n(wt.endpoints.getAvailableStatuses.initiate({entityType:Number(I),entityIds:L})).unwrap().then(F=>{L.forEach(H=>{s(B=>({...B,[H]:F??[]})),c(B=>({...B,[H]:!1})),h(B=>ha([...B,H]))})})})},_=[S,n],e[7]=n,e[8]=S,e[9]=w,e[10]=_):(w=e[9],_=e[10]),D.useEffect(w,_);let E;e[11]!==o?(E=Object.values(o).flat(),e[11]=o,e[12]=E):E=e[12];const T=E;let M;e[13]!==l?(M=Object.values(l),e[13]=l,e[14]=M):M=e[14];const j=M.includes(!0);let A;if(e[15]!==S||e[16]!==f){let N;e[18]!==f?(N=I=>!f.includes(I),e[18]=f,e[19]=N):N=e[19],A=Object.values(S).flat().some(N),e[15]=S,e[16]=f,e[17]=A}else A=e[17];const k=A;let R;return e[20]!==j||e[21]!==k||e[22]!==T?(R={isLoading:k,isFetching:j,statuses:T},e[20]=j,e[21]=k,e[22]=T,e[23]=R):R=e[23],R};function p9e(t){return ha(Dg(t,"statusesEntityId"))}const m9e=D.memo(t=>{const e=be.c(5),{task:n}=t,{Status:r}=n,o=v5(n.SprintId),{statuses:s}=EB(o);let i;e[0]!==r||e[1]!==s?(i=(s==null?void 0:s.find(d=>d.Id===r))||(s==null?void 0:s.find(g9e)),e[0]=r,e[1]=s,e[2]=i):i=e[2];const l=i;let c;return e[3]!==l?(c=b.jsx($1,{maw:250,truncate:!0,status:l}),e[3]=l,e[4]=c):c=e[4],c});function g9e(t){return t.Type===Ie.IStatusType.BeExecuted}const y9e=D.memo(t=>{const e=be.c(6),{task:n}=t,{TypeId:r}=n,{project:o}=Yr(n.ProjectId),s=(o==null?void 0:o.rootProjectId)||0;let i;e[0]!==s?(i={ProjectIds:[s]},e[0]=s,e[1]=i):i=e[1];const l=!o;let c;e[2]!==l?(c={skip:l},e[2]=l,e[3]=c):c=e[3];const{data:d}=li.useGetTaskTypesQuery(i,c),f=d==null?void 0:d.mapById[r];let h;return e[4]!==f?(h=b.jsx(L1,{withLabel:!1,type:f}),e[4]=f,e[5]=h):h=e[5],h}),v9e=D.memo(t=>{const e=be.c(51);let n,r,o,s,i,l,c,d,f;e[0]!==t?({task:f,showPerformer:i,showStatus:l,showType:c,showPriority:d,border:n,rightSection:s,onClick:r,...o}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s,e[5]=i,e[6]=l,e[7]=c,e[8]=d,e[9]=f):(n=e[1],r=e[2],o=e[3],s=e[4],i=e[5],l=e[6],c=e[7],d=e[8],f=e[9]);const h=i===void 0?!0:i,p=l===void 0?!0:l,v=c===void 0?!0:c,g=d===void 0?!0:d,{Key:S,Title:w,Priority:_}=f,[E,T]=D.useState(!1),{isOverflown:M,checkOverflown:j}=g5();let A;e[10]!==E||e[11]!==r?(A=K=>{r&&r(K),T(!E)},e[10]=E,e[11]=r,e[12]=A):A=e[12];const k=A,R=!M;let N;e[13]===Symbol.for("react.memo_cache_sentinel")?(N={hover:!0,focus:!0,touch:!1},e[13]=N):N=e[13];let I;e[14]!==w||e[15]!==j?(I=b.jsx(Dt,{size:"sm",className:yo.cardDescription,truncate:"end",w:"48vw",onMouseEnter:j,children:w}),e[14]=w,e[15]=j,e[16]=I):I=e[16];let L;e[17]!==w||e[18]!==R||e[19]!==I?(L=b.jsx(Lt,{align:"center",gap:8,miw:0,className:yo.simpleTitle,children:b.jsx(yi,{disabled:R,label:w,openDelay:400,multiline:!0,maw:1e3,events:N,children:I})}),e[17]=w,e[18]=R,e[19]=I,e[20]=L):L=e[20];let F;e[21]!==v||e[22]!==f?(F=v&&b.jsx(y9e,{task:f}),e[21]=v,e[22]=f,e[23]=F):F=e[23];let H;e[24]!==S?(H=b.jsx(Dt,{size:"sm",className:yo.cardProjectId+" "+yo.key,children:S}),e[24]=S,e[25]=H):H=e[25];let B;e[26]!==F||e[27]!==H?(B=b.jsxs(Lt,{gap:8,className:yo.simpleType,children:[F,H]}),e[26]=F,e[27]=H,e[28]=B):B=e[28];let Y;e[29]!==p||e[30]!==f?(Y=p&&b.jsx(m9e,{task:f}),e[29]=p,e[30]=f,e[31]=Y):Y=e[31];let U;e[32]!==_||e[33]!==g?(U=g&&b.jsx(Lh,{priority:_,withLabel:!1}),e[32]=_,e[33]=g,e[34]=U):U=e[34];let q;e[35]!==E||e[36]!==h||e[37]!==f?(q=h&&b.jsx(je,{w:60,children:b.jsx(h9e,{task:f,disabled:E})}),e[35]=E,e[36]=h,e[37]=f,e[38]=q):q=e[38];let z;e[39]!==s||e[40]!==Y||e[41]!==U||e[42]!==q?(z=b.jsxs(Lt,{gap:8,className:yo.simpleControls,children:[Y,U,q,s]}),e[39]=s,e[40]=Y,e[41]=U,e[42]=q,e[43]=z):z=e[43];let W;return e[44]!==n||e[45]!==k||e[46]!==o||e[47]!==B||e[48]!==z||e[49]!==L?(W=b.jsxs(je,{className:yo.simpleRoot,...o,onClick:k,"data-border":n,children:[L,B,z]}),e[44]=n,e[45]=k,e[46]=o,e[47]=B,e[48]=z,e[49]=L,e[50]=W):W=e[50],W}),b9e=t=>{const e=be.c(35),{onClose:n}=t,{t:r}=at(),{isSuccess:o,data:s,isLoading:i,isError:l,debouncedQuery:c,query:d,setQuery:f,isFetching:h}=_5e();let p;e:{if(!o){p=null;break e}let k;e[0]!==s?(k=s||[],e[0]=s,e[1]=k):k=e[1];let R;if(e[2]!==n||e[3]!==k){let I;e[5]!==n?(I=(L,F,H)=>b.jsx(v9e,{task:L,border:F<H.length-1,onClick:()=>{Kk(L.Key),n()}},L.Id),e[5]=n,e[6]=I):I=e[6],R=k.map(I),e[2]=n,e[3]=k,e[4]=R}else R=e[4];const N=R;if(!c){p=N;break e}p=N}const v=p;let g;e[7]!==h?(g=h?b.jsx(va,{size:16}):b.jsx(O2,{size:16}),e[7]=h,e[8]=g):g=e[8];let S;e[9]!==r?(S=r("nodata.noResults.searchPlaceholder"),e[9]=r,e[10]=S):S=e[10];let w;e[11]!==f?(w=k=>f(k.currentTarget.value),e[11]=f,e[12]=w):w=e[12];let _;e[13]!==d||e[14]!==f?(_=d&&b.jsx(lr,{variant:"subtle",color:"gray",radius:"md","aria-label":"Clear",onClick:()=>f(""),children:b.jsx(VE,{size:16,color:"gray"})}),e[13]=d,e[14]=f,e[15]=_):_=e[15];let E;e[16]===Symbol.for("react.memo_cache_sentinel")?(E={zIndex:1},e[16]=E):E=e[16];let T;e[17]!==d||e[18]!==g||e[19]!==S||e[20]!==w||e[21]!==_?(T=b.jsx(Is,{leftSection:g,variant:"filled",placeholder:S,value:d,onChange:w,"data-autofocus":!0,rightSection:_,style:E}),e[17]=d,e[18]=g,e[19]=S,e[20]=w,e[21]=_,e[22]=T):T=e[22];let M;e[23]!==(s==null?void 0:s.length)||e[24]!==l||e[25]!==i||e[26]!==o||e[27]!==v||e[28]!==r?(M=i?b.jsx(S9e,{}):o?(s==null?void 0:s.length)===0?b.jsx(p5,{title:r("nodata.noResults.title"),description:r("nodata.noResults.shortDescription"),illustration:"noResults",size:120}):b.jsx("div",{style:{height:"320px",width:"100%",overflow:"auto"},children:v}):l?b.jsx(C5e,{message:r("notification.error.searchTask"),w:"100%"}):null,e[23]=s==null?void 0:s.length,e[24]=l,e[25]=i,e[26]=o,e[27]=v,e[28]=r,e[29]=M):M=e[29];let j;e[30]!==M?(j=b.jsx(Lt,{h:320,justify:"center",children:M}),e[30]=M,e[31]=j):j=e[31];let A;return e[32]!==T||e[33]!==j?(A=b.jsxs(_t,{gap:"lg",children:[T,j]}),e[32]=T,e[33]=j,e[34]=A):A=e[34],A},S9e=()=>{const t=be.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsx(_t,{gap:4,w:"100%",children:Array.from({length:6}).map(w9e)}),t[0]=e):e=t[0],e};function w9e(t,e){return b.jsx(IU,{},e)}const x9e=t=>{const e=be.c(7),{onClose:n,opened:r,placeholder:o}=t;let s;e[0]!==n?(s=b.jsx(b9e,{onClose:n}),e[0]=n,e[1]=s):s=e[1];let i;return e[2]!==n||e[3]!==r||e[4]!==o||e[5]!==s?(i=b.jsx(Cr,{opened:r,onClose:n,closeOnEscape:!0,closeOnClickOutside:!0,keepMounted:!1,title:o,shadow:"xl",size:"xl",children:s}),e[2]=n,e[3]=r,e[4]=o,e[5]=s,e[6]=i):i=e[6],i},C9e=()=>{const t=be.c(12),{t:e}=at(),[n,r]=Wd(!1),{open:o,close:s}=r;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=b.jsx(O2,{size:22,stroke:1.5}),t[0]=i):i=t[0];let l;t[1]!==o?(l=b.jsx(lr,{onClick:o,variant:"subtle",color:"light-dark(var(--mantine-color-gray-6), var(--mantine-color-dark-0))","aria-label":"Search",size:"lg",children:i}),t[1]=o,t[2]=l):l=t[2];let c;t[3]!==e?(c=e("common.action.searchTask"),t[3]=e,t[4]=c):c=t[4];let d;t[5]!==s||t[6]!==n||t[7]!==c?(d=b.jsx(x9e,{placeholder:c,opened:n,onClose:s}),t[5]=s,t[6]=n,t[7]=c,t[8]=d):d=t[8];let f;return t[9]!==l||t[10]!==d?(f=b.jsxs(b.Fragment,{children:[l,d]}),t[9]=l,t[10]=d,t[11]=f):f=t[11],f},_9e="_iconBell_4aec9_1",T9e={iconBell:_9e},sP=()=>lt.dispatch(ng.actions.toggleSidebar()),E9e=()=>{const t=be.c(46),{t:e}=at(),n=tn(k9e);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={getInitialValueInEffect:!0},t[0]=r):r=t[0];const o=ag("light",r)==="light",s=tn(M9e),{data:i}=zi.endpoints.get.useQueryState(),l=Y2(),c=G2(),d=mi("(max-width: 992px)"),f=!!x_(wn.myIssues),h=!!x_(wn.trash),p=!!x_(wn.collection);let v;t[1]!==s||t[2]!==n?(v=!n&&!s&&b.jsx(lr,{variant:"subtle",color:"dark.1",visibleFrom:"lg",onClick:sP,children:b.jsx(X1e,{size:16})}),t[1]=s,t[2]=n,t[3]=v):v=t[3];let g;t[4]!==s||t[5]!==o||t[6]!==n?(g=s?b.jsx(dc,{src:o?PU:OU,h:"30",w:160}):b.jsx(i7,{opened:n,onClick:sP,hiddenFrom:"lg",size:"sm",color:"gray.6"}),t[4]=s,t[5]=o,t[6]=n,t[7]=g):g=t[7];let S;t[8]===Symbol.for("react.memo_cache_sentinel")?(S={overflowX:"hidden",height:"100%"},t[8]=S):S=t[8];let w;t[9]!==h||t[10]!==e?(w=h&&b.jsxs(Lt,{children:[b.jsx(Qx,{stroke:1.2})," ",e("sidebar.trash")]}),t[9]=h,t[10]=e,t[11]=w):w=t[11];let _;t[12]!==f||t[13]!==e?(_=f&&b.jsxs(Lt,{children:[b.jsx(qE,{stroke:1.2})," ",e("sidebar.myTasks")]}),t[12]=f,t[13]=e,t[14]=_):_=t[14];let E;t[15]!==l?(E=l&&b.jsxs(Lt,{align:"center",gap:12,style:{overflow:"hidden"},children:[b.jsx(y5,{size:24,name:l.Name,icon:l.isFolder?I1.folder:l.IconId,color:l.Color}),b.jsx(ci,{size:"md",children:l.Name})]}),t[15]=l,t[16]=E):E=t[16];let T;t[17]!==p?(T=p&&b.jsx(e5e,{}),t[17]=p,t[18]=T):T=t[18];let M;t[19]!==c?(M=c&&b.jsxs(Lt,{align:"center",gap:12,style:{overflow:"hidden"},children:[b.jsx(gi,{variant:"transparent",radius:"sm",size:24,color:c.Color||"gray.5",children:b.jsx(Wx,{size:18})}),b.jsx(ci,{size:"md",children:c.Name})]}),t[19]=c,t[20]=M):M=t[20];let j;t[21]!==c?(j=c&&b.jsx(Lxe,{visibleFrom:"sm",sprintId:c.Id}),t[21]=c,t[22]=j):j=t[22];let A;t[23]!==w||t[24]!==_||t[25]!==E||t[26]!==T||t[27]!==M||t[28]!==j?(A=b.jsxs(Lt,{gap:16,align:"center",flex:1,style:S,children:[w,_,E,T,M,j]}),t[23]=w,t[24]=_,t[25]=E,t[26]=T,t[27]=M,t[28]=j,t[29]=A):A=t[29];const k=d?0:8;let R,N;t[30]===Symbol.for("react.memo_cache_sentinel")?(R=b.jsx(c5e,{}),N=b.jsx(C9e,{}),t[30]=R,t[31]=N):(R=t[30],N=t[31]);let I;t[32]===Symbol.for("react.memo_cache_sentinel")?(I=b.jsx(toe,{actionIconProps:{className:T9e.iconBell,variant:"subtle",color:"light-dark(var(--mantine-color-gray-6), var(--mantine-color-dark-0))"}}),t[32]=I):I=t[32];let L;t[33]!==i?(L=b.jsx(t5e,{data:i}),t[33]=i,t[34]=L):L=t[34];let F;t[35]!==k||t[36]!==L?(F=b.jsxs(qt,{gap:k,children:[R,N,I,L]}),t[35]=k,t[36]=L,t[37]=F):F=t[37];let H;t[38]===Symbol.for("react.memo_cache_sentinel")?(H=b.jsx(b5e,{}),t[38]=H):H=t[38];let B;t[39]!==F?(B=b.jsxs(Lt,{gap:8,children:[F,H]}),t[39]=F,t[40]=B):B=t[40];let Y;return t[41]!==v||t[42]!==A||t[43]!==B||t[44]!==g?(Y=b.jsxs(Lt,{h:"100%",px:"md",gap:16,children:[v,g,A,B]}),t[41]=v,t[42]=A,t[43]=B,t[44]=g,t[45]=Y):Y=t[45],Y};function k9e(t){return t.layoutSlice.sidebarOpened}function M9e(t){return t.layoutSlice.withoutSidebar}const Vd=-1,m1={Title:"",TypeId:Vd,Priority:3,Status:Vd,sprint:null,performers:[]},j9e=t=>({Title:(t==null?void 0:t.Title)||m1.Title,TypeId:(t==null?void 0:t.TypeId)||m1.TypeId,Priority:(t==null?void 0:t.Priority)||m1.Priority,Status:(t==null?void 0:t.Status)||m1.Status,Order:t==null?void 0:t.Order,sprint:(t==null?void 0:t.sprint)||m1.sprint,performers:(t==null?void 0:t.performers)||m1.performers}),D9e=t=>{var S,w;const e=be.c(16),{defaultValues:n,afterCreate:r}=t,{t:o}=at(),[s,i]=Ct.useCreateTaskMutation(),{isLoading:l}=i;let c;e[0]!==n?(c=j9e(n),e[0]=n,e[1]=c):c=e[1];let d;e[2]!==o?(d={Title:_=>_.trim().length>0?null:o("createTask.error.title"),TypeId:_=>_!==Vd?null:o("createTask.error.type"),sprint:_=>_!==null?null:o("createTask.error.sprint"),Status:_=>_!==Vd?null:o("createTask.error.status")},e[2]=o,e[3]=d):d=e[3];let f;e[4]!==c||e[5]!==d?(f={initialValues:c,validate:d},e[4]=c,e[5]=d,e[6]=f):f=e[6];const h=D5(f);let p;e[7]!==r||e[8]!==s||e[9]!==((S=n==null?void 0:n.sprint)==null?void 0:S.State)||e[10]!==o?(p=async _=>{var M,j,A;if(!_.sprint)return;const E={ProjectId:_.sprint.ProjectId,SprintId:_.sprint.Id,Title:_.Title,TypeId:_.TypeId,Status:_.Status,Priority:_.Priority,Performers:Dg(_.performers,"Id"),Order:_.Order,State:((M=n==null?void 0:n.sprint)==null?void 0:M.State)===Ie.EntityState.Archive||((j=n==null?void 0:n.sprint)==null?void 0:j.State)===Ie.EntityState.ArchiveParent?Ie.EntityState.ArchiveParent:(A=n==null?void 0:n.sprint)==null?void 0:A.State},T="newTaskNotify"+new Date().valueOf();Hr(s({...E,ProjectId:_.sprint.ProjectId}).unwrap(),{notifyId:T,successMsg:k=>({message:b.jsxs(_t,{gap:4,children:[o("notification.success.createTask"),b.jsxs(qt,{gap:8,mt:4,children:[b.jsx(tx,{value:wn.getTaskLink({sprintId:k.SprintId,taskKey:k.Key}),children:R=>{const{copied:N,copy:I}=R;return b.jsx(In,{px:7,fw:"400",onClick:I,size:"xs",variant:"light",color:"blue.6",children:o(`copyButton.${N?"copied":"copy"}`)})}}),b.jsx(In,{px:7,fw:"400",size:"xs",variant:"light",color:"blue.6",onClick:()=>{Kk(k.Key),yp.hide(T)},children:o("createTask.action.open")})]})]})}),errorMsg:o("notification.error.createTask")}).then(k=>r==null?void 0:r(k))},e[7]=r,e[8]=s,e[9]=(w=n==null?void 0:n.sprint)==null?void 0:w.State,e[10]=o,e[11]=p):p=e[11];const v=p;let g;return e[12]!==h||e[13]!==v||e[14]!==l?(g={form:h,handleAdd:v,isLoading:l},e[12]=h,e[13]=v,e[14]=l,e[15]=g):g=e[15],g},A9e=t=>{var T;const e=be.c(24),{form:n}=t,{t:r}=at(),o=tn(R9e),s=n.values.performers,[i,l]=D.useState(!1),c=fp({opened:i,onOpenedChange:l,onDropdownClose:()=>c.resetSelectedOption()});let d;e[0]!==o||e[1]!==n?(d=()=>n.setFieldValue("performers",M=>ha([...M,o])),e[0]=o,e[1]=n,e[2]=d):d=e[2];const f=d;let h;e[3]!==f?(h=[["M",f]],e[3]=f,e[4]=h):h=e[4],o2(h);let p;e[5]!==r?(p=r("createTask.fields.performer.label"),e[5]=r,e[6]=p):p=e[6];let v;e[7]!==p?(v=b.jsx(Xd,{size:"sm",children:p}),e[7]=p,e[8]=v):v=e[8];let g;e[9]!==n?(g=M=>n.setFieldValue("performers",M||[]),e[9]=n,e[10]=g):g=e[10];const S=(T=n.values.sprint)==null?void 0:T.rootProjectId;let w;e[11]!==g||e[12]!==S||e[13]!==s?(w=b.jsx(BU,{value:s,onChange:g,projectId:S,variant:"filled",showCount:7}),e[11]=g,e[12]=S,e[13]=s,e[14]=w):w=e[14];let _;e[15]!==f||e[16]!==o||e[17]!==r||e[18]!==s?(_=!s.some(M=>M.Id===o.Id)&&b.jsx(In,{fw:500,variant:"transparent",px:0,color:"blue",size:"compact-xs",onClick:f,children:r("createTask.fields.performer.description")}),e[15]=f,e[16]=o,e[17]=r,e[18]=s,e[19]=_):_=e[19];let E;return e[20]!==v||e[21]!==w||e[22]!==_?(E=b.jsxs(_t,{align:"start",gap:4,children:[v,w,_]}),e[20]=v,e[21]=w,e[22]=_,e[23]=E):E=e[23],E};function R9e(t){return t.usersCache.currentUser}const O9e=t=>{const e=be.c(13),{opened:n,error:r,children:o,ref:s,onClick:i}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={getInitialValueInEffect:!0},e[0]=l):l=e[0];const d=ag("light",l)==="light"?"gray.1":"dark.5";let f;e[1]===Symbol.for("react.memo_cache_sentinel")?(f={flex:1},e[1]=f):f=e[1];const h=r?"1px solid var(--mantine-color-red-6)":void 0;let p;e[2]!==h?(p={label:f,root:{border:h}},e[2]=h,e[3]=p):p=e[3];let v;e[4]!==n?(v=b.jsx(Lt,{align:"center",c:"gray.6",children:n?b.jsx(Yx,{size:16}):b.jsx(Cg,{size:16})}),e[4]=n,e[5]=v):v=e[5];let g;return e[6]!==o||e[7]!==i||e[8]!==s||e[9]!==d||e[10]!==p||e[11]!==v?(g=b.jsx(In,{component:"div",ref:s,onClick:i,variant:"filled",color:d,c:"light-dark(var(--mantine-color-gray-8), var(--mantine-color-dark-0))",radius:4,fw:400,size:"md",w:"100%",justify:"flex-start",px:12,styles:p,rightSection:v,children:o}),e[6]=o,e[7]=i,e[8]=s,e[9]=d,e[10]=p,e[11]=v,e[12]=g):g=e[12],g},Rk=t=>{const e=be.c(27),{options:n,value:r,onChange:o,error:s,loading:i,label:l,required:c}=t,[d,f]=D.useState(!1),h=fp({opened:d,onOpenedChange:f,onDropdownClose:()=>h.resetSelectedOption()});if(i){let A;return e[0]===Symbol.for("react.memo_cache_sentinel")?(A=b.jsx(it,{h:42}),e[0]=A):A=e[0],A}let p;e[1]!==h||e[2]!==o?(p=A=>{o==null||o(A),h.closeDropdown()},e[1]=h,e[2]=o,e[3]=p):p=e[3];let v;e[4]!==l||e[5]!==c?(v=!!l&&b.jsx(Xd,{required:c,size:"sm",mb:4,children:l}),e[4]=l,e[5]=c,e[6]=v):v=e[6];let g;e[7]===Symbol.for("react.memo_cache_sentinel")?(g=b.jsx(Qh,{}),e[7]=g):g=e[7];const S=!!s;let w;e[8]!==h.toggleDropdown||e[9]!==d||e[10]!==S||e[11]!==r?(w=b.jsx(Ht.Target,{children:b.jsx(O9e,{onClick:h.toggleDropdown,opened:d,error:S,children:r})}),e[8]=h.toggleDropdown,e[9]=d,e[10]=S,e[11]=r,e[12]=w):w=e[12];let _;e[13]===Symbol.for("react.memo_cache_sentinel")?(_={overflowY:"scroll",maxHeight:"40vh"},e[13]=_):_=e[13];let E;e[14]!==n?(E=b.jsx(Ht.Dropdown,{children:b.jsx(Ht.Options,{style:_,children:n})}),e[14]=n,e[15]=E):E=e[15];let T;e[16]!==h||e[17]!==p||e[18]!==v||e[19]!==w||e[20]!==E?(T=b.jsxs(Ht,{store:h,onOptionSubmit:p,children:[v,g,w,E]}),e[16]=h,e[17]=p,e[18]=v,e[19]=w,e[20]=E,e[21]=T):T=e[21];let M;e[22]!==s?(M=!!s&&b.jsx(Qh,{size:"md",mt:5,children:s}),e[22]=s,e[23]=M):M=e[23];let j;return e[24]!==T||e[25]!==M?(j=b.jsxs("div",{children:[T,M]}),e[24]=T,e[25]=M,e[26]=j):j=e[26],j},P9e=t=>{const e=be.c(13),{form:n}=t,{t:r}=at(),o=n.values.Priority;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=LU.map(N9e),e[0]=s):s=e[0];const i=s;let l;e[1]!==r||e[2]!==o?(l=o?b.jsx(Lh,{priority:o}):r("createTask.fields.priority.placeholder"),e[1]=r,e[2]=o,e[3]=l):l=e[3];let c;e[4]!==r?(c=r("createTask.fields.priority.label"),e[4]=r,e[5]=c):c=e[5];let d;e[6]!==n?(d=h=>n.setFieldValue("Priority",Number(h)),e[6]=n,e[7]=d):d=e[7];let f;return e[8]!==n.errors.Priority||e[9]!==l||e[10]!==c||e[11]!==d?(f=b.jsx(Rk,{value:l,required:!0,label:c,error:n.errors.Priority,options:i,onChange:d}),e[8]=n.errors.Priority,e[9]=l,e[10]=c,e[11]=d,e[12]=f):f=e[12],f};function N9e(t){return b.jsx(Ht.Option,{value:t.toString(),children:b.jsx(Lh,{priority:t})},t)}const I9e=t=>{var S;const e=be.c(17),{form:n,allowedProjectIds:r,readOnly:o}=t,{t:s}=at(),{data:i}=wt.endpoints.getProjects.useQueryState();i==null||i.list;let l;if(e[0]!==r||e[1]!==(i==null?void 0:i.list)){e:{const w=((i==null?void 0:i.list)??[]).filter($9e);if(r){let _;e[3]!==r?(_=E=>r.includes(E.Id),e[3]=r,e[4]=_):_=e[4],l=w.filter(_);break e}l=w}e[0]=r,e[1]=i==null?void 0:i.list,e[2]=l}else l=e[2];const c=l,d=n.errors.sprint,f=(S=n.values.sprint)==null?void 0:S.Id,h=n.values.sprint;let p;e[5]!==s?(p=s("createTask.fields.sprint.label"),e[5]=s,e[6]=p):p=e[6];let v;e[7]!==n?(v=w=>{n.setValues({sprint:w,Status:-1,TypeId:-1,performers:[]})},e[7]=n,e[8]=v):v=e[8];let g;return e[9]!==d||e[10]!==n.values.sprint||e[11]!==c||e[12]!==o||e[13]!==f||e[14]!==p||e[15]!==v?(g=b.jsx(TB,{currentSprint:f,projects:c,value:h,error:d,label:p,readOnly:o,onClick:v}),e[9]=d,e[10]=n.values.sprint,e[11]=c,e[12]=o,e[13]=f,e[14]=p,e[15]=v,e[16]=g):g=e[16],g};function $9e(t){return[Ie.AccessType.Write,Ie.AccessType.Full].includes(t.AccessType)}const L9e=t=>{const e=be.c(30),{form:n}=t,{t:r}=at(),{statuses:o,isFetching:s}=EB(n.values.sprint);let i,l;e[0]!==n||e[1]!==s||e[2]!==o?(i=()=>{var T;if(!s&&n.values.Status===Vd&&o.length>0){const M=(T=o.at(0))==null?void 0:T.Id;M&&n.setFieldValue("Status",M)}},l=[n,o,s],e[0]=n,e[1]=s,e[2]=o,e[3]=i,e[4]=l):(i=e[3],l=e[4]),D.useEffect(i,l);const c=n.values.Status;let d;if(e[5]!==o||e[6]!==c){let T;e[8]!==c?(T=M=>M.Id===c,e[8]=c,e[9]=T):T=e[9],d=o.find(T),e[5]=o,e[6]=c,e[7]=d}else d=e[7];const f=d;let h;e[10]!==n.values.sprint||e[11]!==o||e[12]!==r?(h=o.length>0?o.map(F9e):b.jsx(FU,{message:n.values.sprint?void 0:r("createTask.fields.status.description")}),e[10]=n.values.sprint,e[11]=o,e[12]=r,e[13]=h):h=e[13];const p=h,v=n.errors.Status,g=!!v;let S;e[14]!==g||e[15]!==f||e[16]!==r||e[17]!==c?(S=c&&c!==Vd?b.jsx($1,{status:f}):b.jsx(Dt,{c:g?"red.6":"light-dark(var(--mantine-color-gray-5), var(--mantine-color-dark-3))",children:r("createTask.fields.status.placeholder")}),e[14]=g,e[15]=f,e[16]=r,e[17]=c,e[18]=S):S=e[18];let w;e[19]!==r?(w=r("createTask.fields.status.label"),e[19]=r,e[20]=w):w=e[20];let _;e[21]!==n?(_=T=>n.setFieldValue("Status",Number(T)),e[21]=n,e[22]=_):_=e[22];let E;return e[23]!==v||e[24]!==s||e[25]!==p||e[26]!==S||e[27]!==w||e[28]!==_?(E=b.jsx(Rk,{loading:s,value:S,required:!0,label:w,error:v,options:p,onChange:_}),e[23]=v,e[24]=s,e[25]=p,e[26]=S,e[27]=w,e[28]=_,e[29]=E):E=e[29],E};function F9e(t){return b.jsx(Ht.Option,{value:t.Id.toString(),style:{display:"flex"},children:b.jsx($1,{status:t})},t.Id)}const z9e=t=>{const{data:e,isFetching:n}=li.useGetTaskTypesQuery({ProjectIds:t?[t]:[]},{skip:!t});return{types:(e==null?void 0:e.list)||U9e,isFetching:n}},U9e=[],B9e=t=>{var M;const e=be.c(30),{form:n}=t,{t:r}=at(),{types:o,isFetching:s}=z9e(((M=n.values.sprint)==null?void 0:M.rootProjectId)||0);let i,l;e[0]!==n||e[1]!==s||e[2]!==o?(i=()=>{var j;if(!s&&n.values.TypeId===Vd&&o.length>0){const A=(j=o.at(0))==null?void 0:j.Id;A&&n.setFieldValue("TypeId",A)}},l=[n,o,s],e[0]=n,e[1]=s,e[2]=o,e[3]=i,e[4]=l):(i=e[3],l=e[4]),D.useEffect(i,l);const c=n.values.TypeId;let d;if(e[5]!==o||e[6]!==c){let j;e[8]!==c?(j=A=>A.Id===c,e[8]=c,e[9]=j):j=e[9],d=o.find(j),e[5]=o,e[6]=c,e[7]=d}else d=e[7];const f=d;let h;e[10]!==n.values.sprint||e[11]!==r||e[12]!==o?(h=o.length>0?o.map(H9e):b.jsx(zU,{message:n.values.sprint?void 0:r("createTask.fields.type.description")}),e[10]=n.values.sprint,e[11]=r,e[12]=o,e[13]=h):h=e[13];const p=h,v=n.errors.TypeId,S=!!v?"red.6":"light-dark(var(--mantine-color-gray-5), var(--mantine-color-dark-3))";let w;e[14]!==S||e[15]!==r||e[16]!==f||e[17]!==c?(w=c&&c!==Vd?b.jsx(L1,{type:f}):b.jsx(Dt,{c:S,children:r("createTask.fields.type.placeholder")}),e[14]=S,e[15]=r,e[16]=f,e[17]=c,e[18]=w):w=e[18];let _;e[19]!==r?(_=r("createTask.fields.type.label"),e[19]=r,e[20]=_):_=e[20];let E;e[21]!==n?(E=j=>n.setFieldValue("TypeId",Number(j)),e[21]=n,e[22]=E):E=e[22];let T;return e[23]!==v||e[24]!==s||e[25]!==p||e[26]!==w||e[27]!==_||e[28]!==E?(T=b.jsx(Rk,{loading:s,value:w,required:!0,label:_,error:v,options:p,onChange:E}),e[23]=v,e[24]=s,e[25]=p,e[26]=w,e[27]=_,e[28]=E,e[29]=T):T=e[29],T};function H9e(t){return b.jsx(Ht.Option,{value:t.Id.toString(),children:b.jsx(L1,{type:t})},t.Id)}const q9e=t=>{const e=be.c(52),{defaultValues:n,afterCreate:r,allowedProjectIds:o,isSubtaskCreate:s}=t,{t:i}=at(),l=D.useRef(null);let c;e[0]!==r?(c=q=>{r==null||r(q)},e[0]=r,e[1]=c):c=e[1];let d;e[2]!==n||e[3]!==c?(d={defaultValues:n,afterCreate:c},e[2]=n,e[3]=c,e[4]=d):d=e[4];const{handleAdd:f,form:h,isLoading:p}=D9e(d);let v,g;e[5]===Symbol.for("react.memo_cache_sentinel")?(v=[["mod + Enter",()=>{var q;return(q=l==null?void 0:l.current)==null?void 0:q.requestSubmit()}]],g=[],e[5]=v,e[6]=g):(v=e[5],g=e[6]),o2(v,g);let S;e[7]!==h||e[8]!==f?(S=h.onSubmit(f),e[7]=h,e[8]=f,e[9]=S):S=e[9];let w;e[10]===Symbol.for("react.memo_cache_sentinel")?(w={flex:1},e[10]=w):w=e[10];let _;e[11]!==o||e[12]!==h||e[13]!==s?(_=b.jsx(I9e,{readOnly:s,form:h,allowedProjectIds:o}),e[11]=o,e[12]=h,e[13]=s,e[14]=_):_=e[14];let E,T;e[15]!==h?(E=b.jsx(B9e,{form:h}),T=b.jsx(L9e,{form:h}),e[15]=h,e[16]=E,e[17]=T):(E=e[16],T=e[17]);let M;e[18]!==i?(M=i("createTask.fields.title.label"),e[18]=i,e[19]=M):M=e[19];let j;e[20]!==M?(j=b.jsx(Xd,{required:!0,size:"sm",mb:4,children:M}),e[20]=M,e[21]=j):j=e[21];const A=n==null?void 0:n.sprint;let k;e[22]!==i?(k=i("createTask.fields.title.placeholder"),e[22]=i,e[23]=k):k=e[23];let R;e[24]!==h?(R=h.getInputProps("Title"),e[24]=h,e[25]=R):R=e[25];let N;e[26]!==A||e[27]!==k||e[28]!==R?(N=b.jsx(Is,{"data-autofocus":A,variant:"filled",w:"100%",size:"md",placeholder:k,maxLength:500,...R}),e[26]=A,e[27]=k,e[28]=R,e[29]=N):N=e[29];let I;e[30]!==j||e[31]!==N?(I=b.jsxs("div",{children:[j,N]}),e[30]=j,e[31]=N,e[32]=I):I=e[32];let L,F;e[33]!==h?(L=b.jsx(A9e,{form:h}),F=b.jsx(P9e,{form:h}),e[33]=h,e[34]=L,e[35]=F):(L=e[34],F=e[35]);let H;e[36]!==i?(H=i("createTask.action.create"),e[36]=i,e[37]=H):H=e[37];let B;e[38]!==p||e[39]!==H?(B=b.jsx(In,{variant:"filled",fullWidth:!0,h:46,color:"blue",type:"submit",loading:p,size:"md",radius:4,children:H}),e[38]=p,e[39]=H,e[40]=B):B=e[40];let Y;e[41]!==I||e[42]!==L||e[43]!==F||e[44]!==B||e[45]!==_||e[46]!==E||e[47]!==T?(Y=b.jsxs(_t,{gap:24,style:w,justify:"flex-start",children:[_,E,T,I,L,F,B]}),e[41]=I,e[42]=L,e[43]=F,e[44]=B,e[45]=_,e[46]=E,e[47]=T,e[48]=Y):Y=e[48];let U;return e[49]!==Y||e[50]!==S?(U=b.jsx("form",{ref:l,onSubmit:S,children:Y}),e[49]=Y,e[50]=S,e[51]=U):U=e[51],U},V9e=t=>lt.dispatch(y4.actions.open(t||{})),iP=()=>lt.dispatch(y4.actions.close()),Y9e=D.memo(()=>{const t=be.c(13),{t:e}=at(),{opened:n,defaultValues:r,afterCreate:o,allowedProjectIds:s,isSubtaskCreate:i}=tn(G9e);let l;t[0]!==e?(l=e("createTask.title"),t[0]=e,t[1]=l):l=t[1];let c;t[2]!==o?(c=h=>{iP(),o==null||o(h)},t[2]=o,t[3]=c):c=t[3];let d;t[4]!==s||t[5]!==r||t[6]!==i||t[7]!==c?(d=b.jsx(q9e,{defaultValues:r,afterCreate:c,allowedProjectIds:s,isSubtaskCreate:i}),t[4]=s,t[5]=r,t[6]=i,t[7]=c,t[8]=d):d=t[8];let f;return t[9]!==n||t[10]!==l||t[11]!==d?(f=b.jsx(Cr,{size:"lg",opened:n,onClose:iP,title:l,children:d}),t[9]=n,t[10]=l,t[11]=d,t[12]=f):f=t[12],f});function G9e(t){return t.createTaskModal}const W9e="_label_1squf_1",Q9e={label:W9e},K9e=t=>{const e=be.c(68),{task:n}=t,{t:r}=at(),{data:o}=Vh.useGetCurrentUserQuery(),{data:s}=wt.useGetProjectsQuery(),[i,l]=Ct.useCopyTaskMutation(),{isLoading:c}=l,d=Us(),f=(s==null?void 0:s.sprintEntities[n.SprintId])||null;let h;e[0]!==f||e[1]!==n.Title?(h={title:n.Title,sprint:f},e[0]=f,e[1]=n.Title,e[2]=h):h=e[2];let p;e[3]!==r?(p=mB({min:1,max:255},r("forms.duplicateTaskForm.errors.hasLength.title")),e[3]=r,e[4]=p):p=e[4];let v;e[5]!==p?(v={title:p},e[5]=p,e[6]=v):v=e[6];let g;e[7]!==h||e[8]!==v?(g={initialValues:h,validate:v},e[7]=h,e[8]=v,e[9]=g):g=e[9];const S=D5(g);let w;if(e[10]!==(s==null?void 0:s.folderEntities)||e[11]!==(o==null?void 0:o.Id)){let J;e[13]!==(o==null?void 0:o.Id)?(J=ne=>ne.OwnerId===(o==null?void 0:o.Id)?-1:1,e[13]=o==null?void 0:o.Id,e[14]=J):J=e[14],w=Object.values((s==null?void 0:s.folderEntities)||[]).filter(X9e).sort(Z9e).sort(J),e[10]=s==null?void 0:s.folderEntities,e[11]=o==null?void 0:o.Id,e[12]=w}else w=e[12];const _=w;let E;e[15]!==i||e[16]!==d||e[17]!==r||e[18]!==n.Id||e[19]!==n.PerformerId||e[20]!==n.Performers||e[21]!==n.Status||e[22]!==o?(E=J=>{const ne=J.sprint;if(ne&&o){const se={ids:[n.Id],title:J.title,toSprintId:ne.Id,performerId:n.PerformerId,performers:n.Performers,status:n.Status};Hr(i(se).unwrap(),{errorMsg:r("notification.error.duplicateTask"),successMsg:r("notification.success.duplicateTask")}).then(()=>{d(Ct.util.invalidateTags([{type:"Sprint",id:ne.Id},{type:"Counter"}])),bU()})}},e[15]=i,e[16]=d,e[17]=r,e[18]=n.Id,e[19]=n.PerformerId,e[20]=n.Performers,e[21]=n.Status,e[22]=o,e[23]=E):E=e[23];const T=E;let M;e[24]!==S||e[25]!==T?(M=S.onSubmit(T),e[24]=S,e[25]=T,e[26]=M):M=e[26];let j;e[27]!==r?(j=r("forms.duplicateTaskForm.fields.title"),e[27]=r,e[28]=j):j=e[28];let A;e[29]!==r?(A=r("forms.duplicateTaskForm.fields.title"),e[29]=r,e[30]=A):A=e[30];let k;e[31]===Symbol.for("react.memo_cache_sentinel")?(k={label:Q9e.label},e[31]=k):k=e[31];let R;e[32]!==S?(R=S.key("title"),e[32]=S,e[33]=R):R=e[33];let N;e[34]!==S?(N=S.getInputProps("title"),e[34]=S,e[35]=N):N=e[35];let I;e[36]!==j||e[37]!==A||e[38]!==R||e[39]!==N?(I=b.jsx(Is,{withAsterisk:!0,label:j,placeholder:A,classNames:k,...N},R),e[36]=j,e[37]=A,e[38]=R,e[39]=N,e[40]=I):I=e[40];const L=n.SprintId;let F;e[41]!==S?(F=S.getInputProps("sprint"),e[41]=S,e[42]=F):F=e[42];const H=F.value;let B;e[43]!==S?(B=S.getInputProps("sprint"),e[43]=S,e[44]=B):B=e[44];const Y=B.onChange;let U;e[45]!==S?(U=S.key("sprint"),e[45]=S,e[46]=U):U=e[46];let q;e[47]!==r?(q=r("forms.duplicateTaskForm.fields.location"),e[47]=r,e[48]=q):q=e[48];let z;e[49]!==_||e[50]!==F.value||e[51]!==B.onChange||e[52]!==U||e[53]!==q||e[54]!==n.SprintId?(z=b.jsx(TB,{projects:_,currentSprint:L,value:H,onClick:Y,label:q},U),e[49]=_,e[50]=F.value,e[51]=B.onChange,e[52]=U,e[53]=q,e[54]=n.SprintId,e[55]=z):z=e[55];let W;e[56]!==r?(W=r("modals.duplicateTaskModal.actions.duplicate"),e[56]=r,e[57]=W):W=e[57];let K;e[58]!==c||e[59]!==W?(K=b.jsx(In,{type:"submit",loading:c,children:W}),e[58]=c,e[59]=W,e[60]=K):K=e[60];let G;e[61]!==I||e[62]!==z||e[63]!==K?(G=b.jsxs(_t,{gap:24,children:[I,z,K]}),e[61]=I,e[62]=z,e[63]=K,e[64]=G):G=e[64];let X;return e[65]!==G||e[66]!==M?(X=b.jsx("form",{onSubmit:M,children:G}),e[65]=G,e[66]=M,e[67]=X):X=e[67],X};function X9e(t){return ft(t,"isProject")}function Z9e(t,e){return e.Order-t.Order}const J9e=()=>{const t=be.c(8),{t:e}=at(),{task:n,opened:r}=tn(e8e);if(!n)return null;let o;t[0]!==e?(o=e("modals.duplicateTaskModal.title"),t[0]=e,t[1]=o):o=t[1];let s;t[2]!==n?(s=b.jsx(K9e,{task:n}),t[2]=n,t[3]=s):s=t[3];let i;return t[4]!==r||t[5]!==o||t[6]!==s?(i=b.jsx(Cr,{size:540,opened:r,onClose:bU,title:o,children:s}),t[4]=r,t[5]=o,t[6]=s,t[7]=i):i=t[7],i};function e8e(t){return t.duplicateTaskModalSlice}const t8e=t=>{const e=be.c(12),{builder:n}=t,r=n===void 0?4:n;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={getInitialValueInEffect:!1},e[0]=o):o=e[0];const s=mi("(min-width: 992px)",!0,o),i=!s,l=s?0:12;let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsxs(qt,{gap:8,wrap:"nowrap",h:26,children:[b.jsx(it,{height:16,width:16,mx:3,circle:!0}),b.jsx(Ck,{}),b.jsx(it,{height:20,width:60})]}),e[1]=c):c=e[1];const d=s===!1?0:28;let f;e[2]!==r?(f=Array.from({length:r}).map(n8e),e[2]=r,e[3]=f):f=e[3];let h;e[4]===Symbol.for("react.memo_cache_sentinel")?(h=b.jsx(it,{height:12,w:150,mb:8,mt:10}),e[4]=h):h=e[4];let p;e[5]!==d||e[6]!==f?(p=b.jsxs(_t,{gap:12,children:[c,b.jsxs(je,{pl:d,children:[f,h]})]}),e[5]=d,e[6]=f,e[7]=p):p=e[7];let v;return e[8]!==i||e[9]!==l||e[10]!==p?(v=b.jsx(il,{withBorder:i,radius:8,p:l,children:p}),e[8]=i,e[9]=l,e[10]=p,e[11]=v):v=e[11],v};function n8e(t,e){return b.jsx(IU,{},e)}const kB=t=>{const e=be.c(6),{builder:n}=t;let r;e[0]!==n?(r=n===void 0?[4,4,4,4,4,4]:n,e[0]=n,e[1]=r):r=e[1];const o=r;let s;e[2]!==o?(s=o.map(r8e),e[2]=o,e[3]=s):s=e[3];let i;return e[4]!==s?(i=b.jsx(_t,{children:s}),e[4]=s,e[5]=i):i=e[5],i};function r8e(t,e){return b.jsx(t8e,{builder:t},e)}const aP=t=>{const e=be.c(6),{builder:n}=t;let r;e[0]!==n?(r=n===void 0?[[4,4,4,4,4,4]]:n,e[0]=n,e[1]=r):r=e[1];const o=r;let s;e[2]!==o?(s=o.map(o8e),e[2]=o,e[3]=s):s=e[3];let i;return e[4]!==s?(i=b.jsx(_t,{children:s}),e[4]=s,e[5]=i):i=e[5],i};function o8e(t,e){return b.jsxs(il,{p:16,withBorder:!0,radius:8,children:[b.jsxs(qt,{gap:8,wrap:"nowrap",h:26,mb:12,children:[b.jsx(it,{height:16,width:16,mx:3,circle:!0}),b.jsx(it,{height:20,width:150}),b.jsx(it,{height:20,width:60})]}),b.jsx(kB,{builder:t})]},e)}const s8e=t=>{const e=be.c(6),{builder:n}=t,r=n===void 0?4:n;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=b.jsxs(qt,{gap:8,wrap:"nowrap",h:42,justify:"space-between",children:[b.jsxs(qt,{gap:8,wrap:"nowrap",children:[b.jsx(Ck,{}),b.jsx(it,{height:20,width:60})]}),b.jsx(it,{height:16,width:16,mx:3,circle:!0})]}),e[0]=o):o=e[0];let s;e[1]!==r?(s=Array.from({length:r}).map(i8e),e[1]=r,e[2]=s):s=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=b.jsx(it,{height:12,w:150,m:9}),e[3]=i):i=e[3];let l;return e[4]!==s?(l=b.jsxs(il,{bg:"light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-8))",maw:400,p:6,h:"100%",children:[o,b.jsxs(_t,{gap:0,mt:6,children:[s,i]})]}),e[4]=s,e[5]=l):l=e[5],l};function i8e(t,e){return b.jsx(it,{h:72,my:3},e)}const a8e="_root_bfmp6_1",l8e="_dragging_bfmp6_14",c8e="_createTaskKanban_bfmp6_16",u8e={root:a8e,dragging:l8e,createTaskKanban:c8e},d8e=t=>{const e=be.c(9),{builder:n}=t;let r;e[0]!==n?(r=n===void 0?[5,2,3]:n,e[0]=n,e[1]=r):r=e[1];const o=r,s=`repeat(${o.length}, minmax(250px, 400px))`;let i;e[2]!==s?(i={gridTemplateColumns:s,height:"100%"},e[2]=s,e[3]=i):i=e[3];let l;e[4]!==o?(l=o.map(f8e),e[4]=o,e[5]=l):l=e[5];let c;return e[6]!==i||e[7]!==l?(c=b.jsx("div",{className:u8e.root,style:i,children:l}),e[6]=i,e[7]=l,e[8]=c):c=e[8],c};function f8e(t,e){return b.jsx(s8e,{builder:t},e)}const h8e=t=>{const e=be.c(10),{noHeader:n}=t;let r;e[0]!==n?(r=!n&&b.jsxs(qt,{h:32,justify:"space-between",wrap:"nowrap",children:[b.jsxs(qt,{gap:8,px:10,wrap:"nowrap",children:[b.jsx(it,{h:16,w:16,circle:!0}),b.jsx(it,{h:16,w:32})]}),b.jsxs(qt,{px:10,wrap:"nowrap",children:[b.jsx(it,{h:16,w:32}),b.jsx(it,{h:16,w:32}),b.jsx(it,{h:16,w:32}),b.jsx(it,{h:16,w:32}),b.jsx(it,{h:16,w:32})]})]}),e[0]=n,e[1]=r):r=e[1];let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o={display:"flex",overflow:"hidden"},e[2]=o):o=e[2];let s,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=b.jsx(je,{w:"100%",children:b.jsxs(qt,{h:56,pos:"relative",px:12,children:[b.jsx(it,{h:16,w:80}),b.jsx(Jc,{pos:"absolute",bottom:-1,left:0,w:"100%"})]})}),i=b.jsx(Jc,{orientation:"vertical"}),e[3]=s,e[4]=i):(s=e[3],i=e[4]);let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=b.jsx(it,{h:12,w:80,mt:9,ml:10}),e[5]=l):l=e[5];let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx(us.Tr,{}),e[6]=c):c=e[6];let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d=b.jsxs(il,{withBorder:!0,flex:1,style:o,children:[s,i,b.jsx(je,{w:"100%",children:b.jsxs(_t,{gap:0,h:56,pos:"relative",children:[l,b.jsx(us,{withColumnBorders:!0,verticalSpacing:4,pos:"absolute",bottom:0,left:0,children:b.jsxs(us.Tbody,{children:[c,b.jsx(us.Tr,{children:Array.from({length:10}).map(p8e)})]})}),b.jsx(Jc,{pos:"absolute",bottom:-1,left:0,w:"100%"})]})})]}),e[7]=d):d=e[7];let f;return e[8]!==r?(f=b.jsxs(_t,{gap:8,flex:1,h:"100%",children:[r,d]}),e[8]=r,e[9]=f):f=e[9],f};function p8e(t,e){return b.jsx(us.Td,{children:b.jsx(it,{h:16,w:16,circle:!0})},e)}const m8e="_root_ui18r_1",g8e="_filters_ui18r_9",y8e="_filterButton_ui18r_16",Xy={root:m8e,filters:g8e,filterButton:y8e},lP=()=>{const t=be.c(40),e=Qi();let n;t[0]!==e.pathname?(n=Li(wn.folder,e.pathname),t[0]=e.pathname,t[1]=n):n=t[1];const r=!!n;let o;t[2]!==e.pathname?(o=Li(wn.myIssues,e.pathname),t[2]=e.pathname,t[3]=o):o=t[3];const s=!!o;let i;t[4]!==e.pathname?(i=Li(wn.sprintList,e.pathname),t[4]=e.pathname,t[5]=i):i=t[5];const l=!!i;let c;t[6]!==e.pathname?(c=Li(wn.sprintKanban,e.pathname),t[6]=e.pathname,t[7]=c):c=t[7];const d=!!c;let f;t[8]!==e.pathname?(f=Li(wn.sprintTimeline,e.pathname),t[8]=e.pathname,t[9]=f):f=t[9];const h=!!f,p=l||d||h,v=p||s||r;let g;t[10]===Symbol.for("react.memo_cache_sentinel")?(g={gap:"16px 24px",justifyContent:"space-between"},t[10]=g):g=t[10];let S;t[11]!==v?(S=v&&b.jsx(it,{height:36,className:Xy.root}),t[11]=v,t[12]=S):S=t[12];let w;t[13]!==r?(w=r&&b.jsx(gi.Group,{spacing:"sm",children:Array.from({length:4}).map(v8e)}),t[13]=r,t[14]=w):w=t[14];let _;t[15]!==S||t[16]!==w?(_=b.jsxs(Lt,{flex:1,children:[S,w]}),t[15]=S,t[16]=w,t[17]=_):_=t[17];let E;t[18]!==p?(E=p&&b.jsxs(Lt,{className:Xy.filters,children:[b.jsx(it,{height:30,width:120,className:Xy.filterButton}),b.jsx(it,{height:30,width:120,className:Xy.filterButton}),b.jsx(it,{height:30,width:120,className:Xy.filterButton}),b.jsx(gi,{radius:"xl",size:36,children:b.jsx(it,{h:"100%",circle:!0})}),b.jsx(it,{height:36,width:150})]}),t[18]=p,t[19]=E):E=t[19];let T;t[20]!==_||t[21]!==E?(T=b.jsxs(qt,{h:38,style:g,children:[_,E]}),t[20]=_,t[21]=E,t[22]=T):T=t[22];let M;t[23]!==r?(M=r&&b.jsx(aP,{}),t[23]=r,t[24]=M):M=t[24];let j;t[25]!==s?(j=s&&b.jsx(aP,{builder:[[3],[1,2],[2,3]]}),t[25]=s,t[26]=j):j=t[26];let A;t[27]!==l?(A=l&&b.jsx(kB,{}),t[27]=l,t[28]=A):A=t[28];let k;t[29]!==d?(k=d&&b.jsx(Lt,{pos:"relative",flex:1,children:b.jsx(d8e,{})}),t[29]=d,t[30]=k):k=t[30];let R;t[31]!==h?(R=h&&b.jsx(h8e,{}),t[31]=h,t[32]=R):R=t[32];let N;return t[33]!==T||t[34]!==M||t[35]!==j||t[36]!==A||t[37]!==k||t[38]!==R?(N=b.jsxs(_t,{gap:20,flex:1,children:[T,M,j,A,k,R]}),t[33]=T,t[34]=M,t[35]=j,t[36]=A,t[37]=k,t[38]=R,t[39]=N):N=t[39],N};function v8e(t,e){return b.jsx(gi,{radius:"xl",size:30,children:b.jsx(it,{h:"100%",circle:!0})},e)}const Ok=t=>lt.dispatch(b4.actions.open(t)),_4=()=>lt.dispatch(b4.actions.close()),Pk=()=>{const t=be.c(3),e=ru("collectionId")??0,{data:n}=nr.useGetNormalizeCollectionsQuery(null);let r;if(t[0]!==e||t[1]!==n){const o=ZF(n);r=o==null?void 0:o.find(s=>s.Id===e),t[0]=e,t[1]=n,t[2]=r}else r=t[2];return r},MB=()=>{const t=be.c(2),e=G2(),n=Y2(),r=Pk(),o=(e==null?void 0:e.rootProjectId)??(n==null?void 0:n.rootProjectId)??(r==null?void 0:r.rootProjectId);let s;return t[0]!==o?(s=i=>{const{collectionId:l}=i===void 0?{}:i;return Ok({projectId:o,collectionId:l})},t[0]=o,t[1]=s):s=t[1],s},b8e=({collectionId:t,name:e,color:n})=>{const r={id:t,name:e,color:n};return{hasChanges:r.name!==void 0||r.color!==void 0,params:r}},S8e=(t,e,n,r)=>({Id:Number(t.id),TableId:n,Name:t.name,Format:t.format,Type:t.type||IE(t.format),ViewType:(r==null?void 0:r.ViewType)||ai.CollectionColumnViewType.OnDetail,Order:e,Pattern:(r==null?void 0:r.Pattern)||""}),jB=(t,e)=>({name:t.name,format:t.format,order:t.order,type:IE(t.format),tableId:e,viewType:ai.CollectionColumnViewType.OnDetail,pattern:""}),w8e=(t,e,n)=>{if(!n)return!0;const r=t.type||IE(t.format);return n.Name!==t.name||n.Format!==t.format||n.Type!==r||n.Order!==e},e9=t=>!isNaN(Number(t)),x8e=({formColumns:t,originalColumns:e,collectionId:n})=>{const r=e.map(c=>c.Id),o=t.filter(c=>e9(c.id)).map(c=>Number(c.id)),s=r.filter(c=>!o.includes(c)),i=t.filter(c=>e9(c.id)).map((c,d)=>{const f=e.find(h=>h.Id===Number(c.id));return{column:S8e(c,d,n,f),hasChanges:w8e(c,d,f)}}).filter(c=>c.hasChanges).map(c=>c.column);return{columnsToCreate:t.filter(c=>!e9(c.id)).map(c=>jB(c,n)),columnsToUpdate:i,columnsToDelete:s}},C8e=({columnName:t,onConfirm:e})=>cf({title:jt("modals.deleteCollectionColumn.title"),children:b.jsx(Dt,{dangerouslySetInnerHTML:{__html:jt("modals.deleteCollectionColumn.description",{displayName:t})}}),onConfirm:e}),_8e=()=>{const t=be.c(6),e=Us(),[n]=nr.useDeleteColumnMutation();let r;t[0]!==n||t[1]!==e?(r=i=>{const{id:l,name:c,tableId:d}=i;C8e({columnName:c,onConfirm:()=>{n({ids:[l],tableId:d}).then(()=>{e(wt.util.invalidateTags(["Attribute"]))})}})},t[0]=n,t[1]=e,t[2]=r):r=t[2];const o=r;let s;return t[3]!==n||t[4]!==o?(s={handleDeleteColumn:o,deleteColumnMutation:n},t[3]=n,t[4]=o,t[5]=s):s=t[5],s},T8e=(t,e,n)=>{const r=Us(),[o]=nr.useCreateCollectionMutation(),[s]=nr.useUpdateCollectionMutation(),[i]=nr.useLinkCollectionMutation(),[l]=nr.useCreateColumnsMutation(),[c]=nr.useUpdateColumnsMutation(),{deleteColumnMutation:d}=_8e();return{handleSubmit:D.useCallback(async h=>{var v;if(t){const{hasChanges:g,params:S}=b8e({collectionId:t,name:h.name,color:h.color}),{columnsToCreate:w,columnsToUpdate:_,columnsToDelete:E}=x8e({formColumns:h.columns,originalColumns:e||[],collectionId:t});try{await Promise.all([g&&s(S),_.length>0&&c(_),E.length>0&&d({ids:E,tableId:t}),w.length>0&&l({items:w,index:_.length})]),E.length>0&&r(wt.util.invalidateTags(["Attribute"]))}finally{_4()}return}const p={name:h.name,color:h.color};try{const g=await o(p);if(!g.data)return;const S=h.columns.map(w=>jB(w,g.data.Id));await Promise.all([((v=h.project)==null?void 0:v.Id)&&i({projectId:h.project.Id,tableId:g.data.Id,accessType:Ie.AccessType.Full}),l({items:S,index:0})])}finally{_4()}},[t,e,n,o,s,i,l,c,d,r])}},DB=(t,e)=>{var o;if(!m5(e))return null;const n=wt.endpoints.fetchProjects.select({States:ku(),ReturnDataType:hs.ProjectReturnDataType.Projects})(t);return(o=n.data)!=null&&o.Projects&&Eu(n.data.Projects).folderEntities[e]||null},E8e=t=>Sg.openConfirmModal({keepMounted:!1,centered:!0,labels:{confirm:jt("common.action.close"),cancel:jt("common.action.cancel")},confirmProps:{color:"red.8",size:"md",radius:"md",fullWidth:!0},cancelProps:{size:"md",radius:"md",fullWidth:!0,variant:"subtle",color:"dark"},groupProps:{wrap:"nowrap"},title:jt("common.action.close"),children:jt("common.description.unsavedChanges"),...t}),k8e=D.lazy(()=>oo(()=>import("./CreateEditCollectionForm-D-22gOkq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])).then(t=>({default:t.CreateEditCollectionForm}))),M8e=()=>{const t=be.c(38),{t:e}=at(),n=tn(j8e),r=D.useRef(null),{opened:o,collectionId:s,projectId:i}=tn(D8e),{project:l}=Yr(i);let c;t[0]!==s?(c=U=>s?Dk(U,s):void 0,t[0]=s,t[1]=c):c=t[1];const d=tn(c),f=!s;let h;t[2]!==f?(h={skip:f},t[2]=f,t[3]=h):h=t[3];const{data:p,isFetching:v}=nr.useGetColumnsQuery(s??0,h),{handleSubmit:g}=T8e(s||null,p,d);let S;t[4]===Symbol.for("react.memo_cache_sentinel")?(S={States:ik(),ReturnDataType:hs.ProjectReturnDataType.Projects},t[4]=S):S=t[4];const w=!o;let _;t[5]!==w?(_={skip:w},t[5]=w,t[6]=_):_=t[6];const{data:E}=wt.useFetchProjectsQuery(S,_);E==null||E.Projects;let T;if(t[7]!==n||t[8]!==(E==null?void 0:E.Projects)){const U=Yz((E==null?void 0:E.Projects)||[]).filter(A8e);T=ewe(U,n),t[7]=n,t[8]=E==null?void 0:E.Projects,t[9]=T}else T=t[9];const M=T;let j;e:{if(s){let q;t[10]!==i?(q=DB(lt.getState(),i),t[10]=i,t[11]=q):q=t[11];const z=q,W=d==null?void 0:d.Name,K=(d==null?void 0:d.Color)||A5.COLORS[0];let G;t[12]!==p?(G=p==null?void 0:p.map(R8e),t[12]=p,t[13]=G):G=t[13];let X;t[14]!==s||t[15]!==z||t[16]!==K||t[17]!==G||t[18]!==W?(X={collectionId:s,name:W,color:K,columns:G,project:z},t[14]=s,t[15]=z,t[16]=K,t[17]=G,t[18]=W,t[19]=X):X=t[19],j=X;break e}let U;t[20]!==l?(U={collectionId:null,name:void 0,color:void 0,columns:void 0,project:l},t[20]=l,t[21]=U):U=t[21],j=U}const A=j,k=!!s;let R;t[22]!==k||t[23]!==e?(R=e(k?"modals.editCollection.title":"modals.createCollection.title"),t[22]=k,t[23]=e,t[24]=R):R=t[24];const N=R;let I;t[25]===Symbol.for("react.memo_cache_sentinel")?(I=()=>{var U;(U=r.current)!=null&&U.isDirty()?E8e({onConfirm:_4}):_4()},t[25]=I):I=t[25];const L=I,F=`collection-form-${(p==null?void 0:p.length)??"create"}`;let H;t[26]===Symbol.for("react.memo_cache_sentinel")?(H=U=>{r.current=U},t[26]=H):H=t[26];let B;t[27]!==A||t[28]!==g||t[29]!==k||t[30]!==v||t[31]!==M||t[32]!==F?(B=b.jsx(k8e,{defaultValues:A,projects:M,onSubmit:g,isLoading:v,isEdit:k,onFormInit:H},F),t[27]=A,t[28]=g,t[29]=k,t[30]=v,t[31]=M,t[32]=F,t[33]=B):B=t[33];let Y;return t[34]!==N||t[35]!==o||t[36]!==B?(Y=b.jsx(Cr,{size:"lg",opened:o,onClose:L,title:N,keepMounted:!1,children:B}),t[34]=N,t[35]=o,t[36]=B,t[37]=Y):Y=t[37],Y};function j8e(t){return t.usersCache.currentUser}function D8e(t){return t.createEditCollectionModalSlice}function A8e(t){return t.AccessType===Ie.AccessType.Full||t.AccessType===Ie.AccessType.Write&&t.State===Ie.EntityState.Active}function R8e(t){return{id:String(t.Id),name:t.Name,format:t.Format,type:t.Type,order:t.Order}}const O8e=D.lazy(()=>oo(()=>import("./DiffStatusesModalContent-MBg9vnOy.js"),__vite__mapDeps([9,10]))),P8e=()=>{const t=be.c(9),{t:e}=at(),n=tn(N8e),r=aE();let o;t[0]!==r?(o=()=>r(S4.actions.close()),t[0]=r,t[1]=o):o=t[1];let s;t[2]!==e?(s=e("diffStatus.title"),t[2]=e,t[3]=s):s=t[3];let i;t[4]===Symbol.for("react.memo_cache_sentinel")?(i=b.jsx(O8e,{}),t[4]=i):i=t[4];let l;return t[5]!==n||t[6]!==o||t[7]!==s?(l=b.jsx(Cr,{size:"lg",opened:n,onClose:o,title:s,children:i}),t[5]=n,t[6]=o,t[7]=s,t[8]=l):l=t[8],l};function N8e(t){return t.diffStatusesModal.opened}const Nk=t=>{const{pathname:e}=ui.state.location;return e.includes(wn.trash)?!1:e.split("/").map(Number).filter(Boolean).includes(t)},rc=t=>{ui.navigate({pathname:fu(wn.folder,{folderId:t}),search:ui.state.location.search},{replace:!0})},I8e=t=>{ui.navigate({pathname:fu(wn.sprintList,{sprintId:t}),search:ui.state.location.search},{replace:!0})},$8e=(t,e)=>{const n=ui.state.location.pathname.split("/").findLast(Number);if(ui.state.location.pathname.includes(wn.trash)||!t[e].includes(Number(n)))return;const r=Object.keys(t).map(Number).filter(o=>o!==e);if(!r.length){ui.navigate({pathname:wn.myIssues,search:ui.state.location.search},{replace:!0});return}rc(r[0])},Ik=({ReturnDataType:t})=>wt.endpoints.fetchProjects.useQueryState({States:ku(),ReturnDataType:t}),Gi=()=>lt.dispatch(du.actions.close()),Pg=t=>{const e=be.c(6),{opened:n,children:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=b.jsx(Cr.Overlay,{}),e[0]=o):o=e[0];let s;e[1]!==r?(s=b.jsx(Cr.Content,{children:r}),e[1]=r,e[2]=s):s=e[2];let i;return e[3]!==n||e[4]!==s?(i=b.jsxs(Cr.Root,{opened:n,onClose:Gi,size:"lg",children:[o,s]}),e[3]=n,e[4]=s,e[5]=i):i=e[5],i},L8e=D.lazy(()=>oo(()=>import("./index-Da4jHil4.js"),__vite__mapDeps([11,12,13,3,4,5,1,2,14,15,16]))),F8e=()=>{const t=be.c(26),{t:e}=at(),[n,r]=wt.useCreateFolderMutation(),{isLoading:o}=r,{opened:s,defaultValue:i,entityType:l,parentId:c,editType:d}=tn(z8e),{project:f}=Yr(c),h=!!(f!=null&&f.ParentId);let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p={ReturnDataType:hs.ProjectReturnDataType.Projects},t[0]=p):p=t[0];const{status:v}=Ik(p),[g,S]=D.useState(null);let w,_;t[1]!==g||t[2]!==v?(w=()=>{!s5(g)&&v===ii.fulfilled&&(rc(g),S(null))},_=[v,g],t[1]=g,t[2]=v,t[3]=w,t[4]=_):(w=t[3],_=t[4]),D.useEffect(w,_);let E;t[5]!==n||t[6]!==c||t[7]!==(f==null?void 0:f.State)||t[8]!==e?(E=I=>{c&&Hr(n({Name:I.name||"",Color:I.color,IconId:null,ParentId:c,Flags:I.statuses.provide?Ie.ProjectFlags.DEFAULT:Ie.ProjectFlags.USE_CUSTOM_STATUSES,TaskStatuses:I.statuses.current.map(U8e),TaskTypes:null,State:(f==null?void 0:f.State)===Ie.EntityState.Archive?Ie.EntityState.ArchiveParent:(f==null?void 0:f.State)||null}).unwrap(),{successMsg:e("notification.success.createFolder"),errorMsg:e("notification.error.createFolder")}).then(L=>{Gi(),S(L.Id)})},t[5]=n,t[6]=c,t[7]=f==null?void 0:f.State,t[8]=e,t[9]=E):E=t[9];const T=E,M=s&&l==="folder"&&d==="create",j=`entitySettings.title.create.${l}`;let A;t[10]!==e||t[11]!==j?(A=e(j),t[10]=e,t[11]=j,t[12]=A):A=t[12];let k;t[13]!==e?(k=e("common.action.create"),t[13]=e,t[14]=k):k=t[14];let R;t[15]!==i||t[16]!==l||t[17]!==T||t[18]!==o||t[19]!==h||t[20]!==A||t[21]!==k?(R=b.jsx(L8e,{title:A,entityType:l,onConfirm:T,onClose:Gi,confirmLabel:k,defaultValue:i,isLoading:o,parentIsFolder:h}),t[15]=i,t[16]=l,t[17]=T,t[18]=o,t[19]=h,t[20]=A,t[21]=k,t[22]=R):R=t[22];let N;return t[23]!==M||t[24]!==R?(N=b.jsx(Pg,{opened:M,children:R}),t[23]=M,t[24]=R,t[25]=N):N=t[25],N};function z8e(t){return t.editEntityModal}function U8e(t){return{Color:t.color,Name:t.name,PatternId:t.patternId,Type:t.type,Order:t.order}}const B8e=D.lazy(()=>oo(()=>import("./index-Da4jHil4.js"),__vite__mapDeps([11,12,13,3,4,5,1,2,14,15,16]))),H8e=()=>{const t=be.c(25),{t:e}=at(),[n,r]=wt.useCreateFolderMutation(),{isLoading:o}=r,[s]=wt.usePostAttributeMutation(),[i]=Ui.useEditMutation(),{opened:l,defaultValue:c,entityType:d,editType:f}=tn(q8e);let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h={ReturnDataType:hs.ProjectReturnDataType.Projects},t[0]=h):h=t[0];const{status:p}=Ik(h),[v,g]=D.useState(null);let S,w;t[1]!==v||t[2]!==p?(S=()=>{!s5(v)&&p===ii.fulfilled&&(rc(v),g(null))},w=[p,v],t[1]=v,t[2]=p,t[3]=S,t[4]=w):(S=t[3],w=t[4]),D.useEffect(S,w);let _;t[5]!==n||t[6]!==i||t[7]!==s||t[8]!==e?(_=N=>{var L,F;const I=[];(L=N.features)!=null&&L.custom&&I.push("Attributes"),(F=N.features)!=null&&F.tags&&I.push("Labels"),Hr(n({Name:N.name||"",Key:N.key||null,Color:N.color,IconId:N.icon,TaskStatuses:N.statuses.current.map(V8e),TaskTypes:N.types.map(Y8e),State:Ie.EntityState.Active,Settings:{EnabledFeatures:I}}).unwrap(),{successMsg:e("notification.success.createProject"),errorMsg:e("notification.error.createProject")}).then(async H=>{const B=[];return N.custom.forEach((Y,U)=>{var q;B.push(s({ProjectId:H.Id,Order:U,Name:Y.name,ValueType:Y.valueType,Type:Y.type,Values:((q=Y.options)==null?void 0:q.map(G8e))??null}).unwrap())}),N.tags.length&&B.push(i({ProjectId:H.Id,Labels:N.tags.map(W8e)}).unwrap()),await Promise.all(B),H}).then(H=>{Gi(),g(H.Id)})},t[5]=n,t[6]=i,t[7]=s,t[8]=e,t[9]=_):_=t[9];const E=_,T=l&&d==="project"&&f==="create",M=`entitySettings.title.create.${d}`;let j;t[10]!==e||t[11]!==M?(j=e(M),t[10]=e,t[11]=M,t[12]=j):j=t[12];let A;t[13]!==e?(A=e("common.action.create"),t[13]=e,t[14]=A):A=t[14];let k;t[15]!==c||t[16]!==d||t[17]!==E||t[18]!==o||t[19]!==j||t[20]!==A?(k=b.jsx(B8e,{title:j,entityType:d,onConfirm:E,onClose:Gi,confirmLabel:A,defaultValue:c,isLoading:o}),t[15]=c,t[16]=d,t[17]=E,t[18]=o,t[19]=j,t[20]=A,t[21]=k):k=t[21];let R;return t[22]!==T||t[23]!==k?(R=b.jsx(Pg,{opened:T,children:k}),t[22]=T,t[23]=k,t[24]=R):R=t[24],R};function q8e(t){return t.editEntityModal}function V8e(t){return{Color:t.color,Name:t.name,Type:t.type,PatternId:t.patternId,Order:t.order}}function Y8e(t){return{Color:t.color,IconId:t.icon,Name:t.name,Type:t.type??nu.TaskType.Custom,PatternId:t.patternId,Order:t.order}}function G8e(t,e){return{Order:e,Value:t.value,Color:t.color}}function W8e(t,e){return{Name:t.name,Color:t.color,Order:e}}const Q8e=D.lazy(()=>oo(()=>import("./index-Da4jHil4.js"),__vite__mapDeps([11,12,13,3,4,5,1,2,14,15,16]))),K8e=()=>{const t=be.c(26),{t:e}=at(),[n,r]=wt.useCreateSprintMutation(),{isLoading:o}=r,{opened:s,defaultValue:i,entityType:l,parentId:c,editType:d}=tn(X8e),{project:f}=Yr(c),h=!!(f!=null&&f.ParentId);let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p={ReturnDataType:hs.ProjectReturnDataType.Projects},t[0]=p):p=t[0];const{status:v}=Ik(p),[g,S]=D.useState(null);let w,_;t[1]!==g||t[2]!==v?(w=()=>{!s5(g)&&v===ii.fulfilled&&(I8e(g),S(null))},_=[v,g],t[1]=g,t[2]=v,t[3]=w,t[4]=_):(w=t[3],_=t[4]),D.useEffect(w,_);let E;t[5]!==n||t[6]!==c||t[7]!==(f==null?void 0:f.State)||t[8]!==e?(E=I=>{c&&Hr(n({Name:I.name||"",Color:I.color,ProjectId:c,Flags:I.statuses.provide?Ie.ProjectFlags.DEFAULT:Ie.ProjectFlags.USE_CUSTOM_STATUSES,TaskStatuses:I.statuses.current.map(Z8e),State:(f==null?void 0:f.State)===Ie.EntityState.Archive?Ie.EntityState.ArchiveParent:(f==null?void 0:f.State)||null}).unwrap(),{successMsg:e("notification.success.createSprint"),errorMsg:e("notification.error.createSprint")}).then(L=>{Gi(),S(L.Id)})},t[5]=n,t[6]=c,t[7]=f==null?void 0:f.State,t[8]=e,t[9]=E):E=t[9];const T=E,M=s&&l==="sprint"&&d==="create",j=`entitySettings.title.create.${l}`;let A;t[10]!==e||t[11]!==j?(A=e(j),t[10]=e,t[11]=j,t[12]=A):A=t[12];let k;t[13]!==e?(k=e("common.action.create"),t[13]=e,t[14]=k):k=t[14];let R;t[15]!==i||t[16]!==l||t[17]!==T||t[18]!==o||t[19]!==h||t[20]!==A||t[21]!==k?(R=b.jsx(Q8e,{title:A,entityType:l,onConfirm:T,onClose:Gi,confirmLabel:k,defaultValue:i,isLoading:o,parentIsFolder:h}),t[15]=i,t[16]=l,t[17]=T,t[18]=o,t[19]=h,t[20]=A,t[21]=k,t[22]=R):R=t[22];let N;return t[23]!==M||t[24]!==R?(N=b.jsx(Pg,{opened:M,children:R}),t[23]=M,t[24]=R,t[25]=N):N=t[25],N};function X8e(t){return t.editEntityModal}function Z8e(t){return{Color:t.color,Name:t.name,PatternId:t.patternId,Type:t.type,Order:t.order}}const $k=async({statuses:t,entityId:e,entityType:n})=>{const r=[],o=t.filter(p=>p.state==="new"),s=t.filter(p=>p.state==="updated"),i=t.filter(p=>p.state==="removed"),l=i.map(p=>p.id),c=Z3e(t.filter(p=>!l.includes(p.id))),d=()=>lt.dispatch(wt.endpoints.removeStatuses.initiate({newId:c[0].id,ids:i.map(p=>p.id),entityId:e,entityType:n})).unwrap(),f=()=>lt.dispatch(wt.endpoints.saveStatuses.initiate(s.map(p=>({Id:p.id,Name:p.name,Color:p.color,EntityId:e,EntityType:n,Type:p.type,PatternId:p.patternId,Order:p.order,IsDeleted:!1})))).unwrap(),h=()=>lt.dispatch(wt.endpoints.saveStatuses.initiate(o.map(p=>({Name:p.name,Color:p.color,EntityId:e,EntityType:n,Type:p.type,PatternId:p.patternId,Order:p.order,IsDeleted:!1})))).unwrap();return i.length?r.push(d().then(async()=>{lt.dispatch(Ct.util.invalidateTags(["Task"])),s.length&&await f()}).then(()=>{o.length&&h()})):s.length?r.push(f().then(()=>{o.length&&h()})):o.length&&r.push(h()),r},J8e=D.lazy(()=>oo(()=>import("./index-Da4jHil4.js"),__vite__mapDeps([11,12,13,3,4,5,1,2,14,15,16]))),eTe=D.memo(()=>{const t=be.c(17),{t:e}=at(),[n,r]=wt.useUpdateFolderMutation(),{isLoading:o}=r,{entityType:s,projectData:i,defaultValue:l,parentId:c}=tn(nTe),{project:d}=Yr(c),f=!!(d!=null&&d.ParentId);let h;t[0]!==i||t[1]!==e||t[2]!==n?(h=async _=>{if(!i)return;const E={Name:i.Name,Color:i.Color,Description:i.Description,Flags:i.Flags},T={Name:_.name,Color:_.color,Flags:_.statuses.provide?Ie.ProjectFlags.DEFAULT:Ie.ProjectFlags.USE_CUSTOM_STATUSES},M=o5(E,T)?[]:[n({...i,...T}).unwrap()],j=await $k({entityId:i.Id,entityType:Ie.Entity.Project,statuses:_.statuses.provide?[]:_.statuses.current});Hr(Promise.all([...M,...j]),{successMsg:e("notification.success.editFolder"),errorMsg:e("notification.error.editFolder")}).then(rTe)},t[0]=i,t[1]=e,t[2]=n,t[3]=h):h=t[3];const p=h,v=`entitySettings.title.edit.${s}`;let g;t[4]!==e||t[5]!==v?(g=e(v),t[4]=e,t[5]=v,t[6]=g):g=t[6];let S;t[7]!==e?(S=e("common.action.save"),t[7]=e,t[8]=S):S=t[8];let w;return t[9]!==l||t[10]!==s||t[11]!==p||t[12]!==o||t[13]!==f||t[14]!==g||t[15]!==S?(w=b.jsx(J8e,{title:g,entityType:s,onConfirm:p,onClose:Gi,confirmLabel:S,defaultValue:l,isLoading:o,parentIsFolder:f}),t[9]=l,t[10]=s,t[11]=p,t[12]=o,t[13]=f,t[14]=g,t[15]=S,t[16]=w):w=t[16],w}),tTe=()=>{const t=be.c(3),{opened:e,entityType:n,editType:r}=tn(oTe),o=e&&n==="folder"&&r==="update";let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=b.jsx(eTe,{}),t[0]=s):s=t[0];let i;return t[1]!==o?(i=b.jsx(Pg,{opened:o,children:s}),t[1]=o,t[2]=i):i=t[2],i};function nTe(t){return t.editEntityModal}function rTe(){return Gi()}function oTe(t){return t.editEntityModal}const sTe=({entityId:t,attributes:e})=>{const n=[],o=e.filter(i=>i.state!=="removed").map((i,l)=>({...i,order:l})).filter(i=>["new","updated"].includes(i.state)),s=e.filter(i=>i.state==="removed");return o.length&&n.push(...o.map(i=>{var l;return lt.dispatch(wt.endpoints.postAttribute.initiate({ProjectId:t,Order:i.order,Name:i.name,ValueType:i.valueType,Type:i.type,Values:((l=i.options)==null?void 0:l.map((c,d)=>({Order:d,Value:c.value,Color:c.color,...Zr(c.id)?{Id:c.id}:{}})))??null,...i.state==="updated"?{Id:i.localId,AttributeId:i.id}:{}})).unwrap()})),s.length&&n.push(...s.map(i=>lt.dispatch(wt.endpoints.deleteAttribute.initiate({projectId:t,attributeId:i.id})).unwrap())),n},iTe=({entityId:t,tags:e})=>{const n=[],r=e.map((i,l)=>({Id:Ag(i.id)?void 0:i.id,Name:i.name,Color:i.color,Order:l,state:i.state})),o=r.filter(i=>i.state!=="removed"),s=r.filter(i=>i.state==="removed");return e.some(i=>i.state!=="original")&&n.push(lt.dispatch(Ui.endpoints.edit.initiate({ProjectId:t,Labels:o.map(({state:i,...l})=>l)})).unwrap()),s.length&&n.push(lt.dispatch(Ui.endpoints.remove.initiate({ProjectId:t,LabelIds:s.map(i=>Number(i.Id))})).unwrap()),n},cP=t=>{lt.dispatch(Ct.util.invalidateTags([{type:"Project",id:t}]))},aTe=({types:t,entityId:e})=>{const n=[],r=t.filter(i=>i.state==="new"),o=t.filter(i=>i.state==="updated"),s=t.filter(i=>i.state==="removed");return s.length&&!r.length&&n.push(lt.dispatch(li.endpoints.remove.initiate({ids:s.map(i=>i.id),projectId:e})).unwrap().then(()=>cP(e))),r.length&&!s.length&&n.push(lt.dispatch(li.endpoints.save.initiate(r.map(i=>({PatternId:i.patternId??null,Color:i.color,IconId:i.icon,Name:i.name,ProjectId:e,Type:nu.TaskType.Custom,Order:i.order,IsDeleted:!1})))).unwrap()),r.length&&s.length&&n.push(lt.dispatch(li.endpoints.remove.initiate({ids:s.map(i=>i.id),projectId:e})).unwrap().then(()=>{cP(e),n.push(lt.dispatch(li.endpoints.save.initiate(r.map(i=>({PatternId:i.patternId??null,Color:i.color,IconId:i.icon,Name:i.name,ProjectId:e,Type:nu.TaskType.Custom,Order:i.order,IsDeleted:!1})))).unwrap())})),o.length&&n.push(lt.dispatch(li.endpoints.save.initiate(o.map(i=>({Id:i.id,PatternId:i.patternId??null,Color:i.color,IconId:i.icon,Name:i.name,ProjectId:e,Type:nu.TaskType.Custom,Order:i.order,IsDeleted:!1})))).unwrap()),n},lTe=D.lazy(()=>oo(()=>import("./index-Da4jHil4.js"),__vite__mapDeps([11,12,13,3,4,5,1,2,14,15,16]))),cTe=D.memo(()=>{const t=be.c(16),{t:e}=at(),[n,r]=wt.useUpdateFolderMutation(),{isLoading:o}=r,{entityType:s,projectData:i,defaultValue:l}=tn(dTe);let c;t[0]!==i||t[1]!==e||t[2]!==n?(c=async g=>{var M,j;if(!i)return;const S={Name:i.Name,Color:i.Color,IconId:i.IconId,Key:i.Key,Settings:i.Settings},w=[];(M=g.features)!=null&&M.custom&&w.push("Attributes"),(j=g.features)!=null&&j.tags&&w.push("Labels");const _={Name:g.name,Color:g.color,IconId:g.icon,Key:g.key||"",Settings:{...i.Settings,EnabledFeatures:w}},E=o5(S,_)?[]:[n({...i,..._}).unwrap()],T=await $k({entityId:i.Id,entityType:Ie.Entity.Project,statuses:g.statuses.provide?[]:g.statuses.current});Hr(Promise.all([...E,...T,...aTe({entityId:i.Id,types:g.types}),...sTe({entityId:i.Id,attributes:g.custom})]).then(()=>iTe({entityId:i.Id,tags:g.tags})),{successMsg:e("notification.success.editProject"),errorMsg:e("notification.error.editProject")}).then(fTe)},t[0]=i,t[1]=e,t[2]=n,t[3]=c):c=t[3];const d=c,f=`entitySettings.title.edit.${s}`;let h;t[4]!==e||t[5]!==f?(h=e(f),t[4]=e,t[5]=f,t[6]=h):h=t[6];let p;t[7]!==e?(p=e("common.action.save"),t[7]=e,t[8]=p):p=t[8];let v;return t[9]!==l||t[10]!==s||t[11]!==d||t[12]!==o||t[13]!==h||t[14]!==p?(v=b.jsx(lTe,{title:h,entityType:s,onConfirm:d,onClose:Gi,confirmLabel:p,defaultValue:l,isLoading:o}),t[9]=l,t[10]=s,t[11]=d,t[12]=o,t[13]=h,t[14]=p,t[15]=v):v=t[15],v}),uTe=()=>{const t=be.c(3),{opened:e,entityType:n,editType:r}=tn(hTe),o=e&&n==="project"&&r==="update";let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=b.jsx(cTe,{}),t[0]=s):s=t[0];let i;return t[1]!==o?(i=b.jsx(Pg,{opened:o,children:s}),t[1]=o,t[2]=i):i=t[2],i};function dTe(t){return t.editEntityModal}function fTe(){return Gi()}function hTe(t){return t.editEntityModal}const pTe=D.lazy(()=>oo(()=>import("./index-Da4jHil4.js"),__vite__mapDeps([11,12,13,3,4,5,1,2,14,15,16]))),mTe=D.memo(()=>{const t=be.c(24),{t:e}=at(),{entityType:n,sprintData:r,defaultValue:o,parentId:s}=tn(yTe),i=(r==null?void 0:r.Id)??0;let l;t[0]!==i?(l={projectIds:null,sprintId:i,performerIds:null},t[0]=i,t[1]=l):l=t[1];const c=!r;let d;t[2]!==c?(d={skip:c},t[2]=c,t[3]=d):d=t[3];const{data:f}=Ct.useGetTasksQuery(l,d),[h,p]=wt.useUpdateSprintMutation(),{isLoading:v}=p,[g]=Ct.useUpdateTasksMutation(),{project:S}=Yr(s),w=!!(S!=null&&S.ParentId);let _;t[4]!==o||t[5]!==r||t[6]!==e||t[7]!==f||t[8]!==h||t[9]!==g?(_=async k=>{if(!r)return;const R={Name:r.Name,Color:r.Color,Flags:r.Flags},N={Name:k.name,Color:k.color,Flags:k.statuses.provide?Ie.ProjectFlags.DEFAULT:Ie.ProjectFlags.USE_CUSTOM_STATUSES},I=o5(R,N)?[]:[h({...r,...N}).unwrap()],L=o.statuses.provide!==k.statuses.provide?[g((f||[]).map(H=>{var B,Y;return{...H,Status:k.statuses.provide?((B=k.statuses.provided.find(vTe))==null?void 0:B.id)||0:((Y=k.statuses.current.find(bTe))==null?void 0:Y.id)||0}}))]:[],F=await $k({entityId:r.Id,entityType:Ie.Entity.Sprint,statuses:k.statuses.provide?[]:k.statuses.current});Hr(Promise.all([...I,...F,...L]),{successMsg:e("notification.success.editSprint"),errorMsg:e("notification.error.editSprint")}).then(Gi)},t[4]=o,t[5]=r,t[6]=e,t[7]=f,t[8]=h,t[9]=g,t[10]=_):_=t[10];const E=_,T=`entitySettings.title.edit.${n}`;let M;t[11]!==e||t[12]!==T?(M=e(T),t[11]=e,t[12]=T,t[13]=M):M=t[13];let j;t[14]!==e?(j=e("common.action.save"),t[14]=e,t[15]=j):j=t[15];let A;return t[16]!==o||t[17]!==n||t[18]!==E||t[19]!==v||t[20]!==w||t[21]!==M||t[22]!==j?(A=b.jsx(pTe,{title:M,entityType:n,onConfirm:E,onClose:Gi,confirmLabel:j,defaultValue:o,isLoading:v,parentIsFolder:w}),t[16]=o,t[17]=n,t[18]=E,t[19]=v,t[20]=w,t[21]=M,t[22]=j,t[23]=A):A=t[23],A}),gTe=()=>{const t=be.c(3),{opened:e,entityType:n,editType:r}=tn(STe),o=e&&n==="sprint"&&r==="update";let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=b.jsx(mTe,{}),t[0]=s):s=t[0];let i;return t[1]!==o?(i=b.jsx(Pg,{opened:o,children:s}),t[1]=o,t[2]=i):i=t[2],i};function yTe(t){return t.editEntityModal}function vTe(t){return t.state!=="new"}function bTe(t){return t.state!=="new"}function STe(t){return t.editEntityModal}const wTe=()=>{const t=be.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsx(AB,{}),t[0]=e):e=t[0];let n;return t[1]===Symbol.for("react.memo_cache_sentinel")?(n=b.jsxs(je,{children:[e,b.jsxs(_t,{gap:16,children:[b.jsx(H8,{}),b.jsx(H8,{})]})]}),t[1]=n):n=t[1],n},AB=()=>{const t=be.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsxs(qt,{gap:8,my:18,wrap:"nowrap",children:[b.jsx(it,{circle:!0,h:32,w:32,style:{flexShrink:0}}),b.jsx(it,{h:32})]}),t[0]=e):e=t[0],e},H8=()=>{const t=be.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsx(it,{circle:!0,h:32,w:32,style:{flexShrink:0}}),t[0]=e):e=t[0];let n;return t[1]===Symbol.for("react.memo_cache_sentinel")?(n=b.jsxs(qt,{gap:8,wrap:"nowrap",align:"start",children:[e,b.jsxs(_t,{gap:6,w:"100%",children:[b.jsxs(qt,{gap:8,mb:6,children:[b.jsx(it,{h:16,w:120}),b.jsx(it,{h:16,w:50})]}),b.jsx(it,{h:14}),b.jsx(it,{h:14}),b.jsx(it,{h:14,w:"80%"})]})]}),t[1]=n):n=t[1],n},xTe=Object.assign(wTe,{Input:AB,Comment:H8}),RB=(t,e)=>{const n=be.c(12),r=Number(t),o=String(t),s=tn(_Te);let i;n[0]!==s?(i=typeof s=="object"?CTe(s):s,n[0]=s,n[1]=i):i=n[1];const l=i;let c;n[2]!==l?(c=S=>S.archiveSlice[l],n[2]=l,n[3]=c):c=n[3];const d=tn(c);let f;n[4]!==d.isTasksShow?(f=d.isTasksShow?[Ie.EntityState.Active,Ie.EntityState.Archive,Ie.EntityState.ArchiveParent]:[Ie.EntityState.Active],n[4]=d.isTasksShow,n[5]=f):f=n[5];const h=f;let p;n[6]!==r||n[7]!==h||n[8]!==o?(p=r?{id:r,key:null,states:h}:{key:o,id:null,states:h},n[6]=r,n[7]=h,n[8]=o,n[9]=p):p=n[9];const v=t===null||(e==null?void 0:e.skip);let g;return n[10]!==v?(g={skip:v},n[10]=v,n[11]=g):g=n[11],Ct.useGetTaskQuery(p,g)};function CTe(t){return Object.values(t).map(e=>e[0]).toString().replace(/,/g,"")}function _Te(t){return t.settingsSlice.activeSectionFor}const TTe="_layout_l0mwt_1",ETe="_column_l0mwt_8",t9={layout:TTe,column:ETe},kTe=t=>{const e=be.c(29),{header:n,above:r,content:o,sidebar:s,actions:i,status:l,fillSize:c}=t,d=mi("(max-width: 992px)"),f=tn(MTe),{data:h}=RB(f),p=D.useRef(null),v=D.useRef(null);let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{var L,F;(L=p.current)==null||L.scrollTo(0,0),(F=v.current)==null||F.scrollTo(0,0)},e[0]=g):g=e[0];const S=h==null?void 0:h.Id;let w;e[1]!==S?(w=[S],e[1]=S,e[2]=w):w=e[2],D.useEffect(g,w);let _;e[3]!==i||e[4]!==n||e[5]!==d||e[6]!==l?(_=d?b.jsxs(b.Fragment,{children:[b.jsx(Lt,{p:8,pb:0,justify:"flex-end",children:i}),b.jsx(Lt,{p:8,pt:0,children:n}),b.jsx(Lt,{p:8,pt:0,children:l})]}):b.jsxs(Lt,{p:16,justify:"space-between",children:[n,i]}),e[3]=i,e[4]=n,e[5]=d,e[6]=l,e[7]=_):_=e[7];let E;e[8]===Symbol.for("react.memo_cache_sentinel")?(E={scrollPaddingTop:"120px"},e[8]=E):E=e[8];const T=d?8:16,M=d&&s;let j;e[9]!==r||e[10]!==o||e[11]!==T||e[12]!==M?(j=b.jsxs(_t,{gap:T,children:[r,M,o]}),e[9]=r,e[10]=o,e[11]=T,e[12]=M,e[13]=j):j=e[13];let A;e[14]===Symbol.for("react.memo_cache_sentinel")?(A=b.jsx(Xh,{h:16}),e[14]=A):A=e[14];let k;e[15]!==c||e[16]!==j?(k=b.jsxs("div",{ref:p,className:t9.column,"data-full-size":c,style:E,children:[j,A]}),e[15]=c,e[16]=j,e[17]=k):k=e[17];let R;e[18]!==c||e[19]!==d||e[20]!==s||e[21]!==l?(R=!d&&b.jsxs("div",{ref:v,className:t9.column,"data-full-size":c,children:[b.jsxs(_t,{gap:16,children:[l,s]}),b.jsx(Xh,{h:16})]}),e[18]=c,e[19]=d,e[20]=s,e[21]=l,e[22]=R):R=e[22];let N;e[23]!==k||e[24]!==R?(N=b.jsxs("div",{className:t9.layout,children:[k,R]}),e[23]=k,e[24]=R,e[25]=N):N=e[25];let I;return e[26]!==N||e[27]!==_?(I=b.jsxs(b.Fragment,{children:[_,N]}),e[26]=N,e[27]=_,e[28]=I):I=e[28],I};function MTe(t){return t.taskModalSlice.taskKey}const jTe=t=>{const e=be.c(21),{actionsRightSection:n}=t;let r,o;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=b.jsx(it,{h:26,w:100}),o=b.jsx(it,{h:24,w:100}),e[0]=r,e[1]=o):(r=e[0],o=e[1]);let s;e[2]!==n?(s=b.jsx(qt,{gap:4,children:n}),e[2]=n,e[3]=s):s=e[3];let i;e[4]===Symbol.for("react.memo_cache_sentinel")?(i=b.jsx(it,{h:20,my:10,w:"70%","data-is":"title"}),e[4]=i):i=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=b.jsxs(_t,{gap:16,children:[i,b.jsxs(qt,{gap:8,"data-is":"actions",children:[b.jsx(it,{h:30,w:30}),b.jsx(it,{h:30,w:30}),b.jsx(it,{h:30,w:30})]})]}),e[5]=l):l=e[5];let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx(it,{h:14,w:120}),e[6]=c):c=e[6];let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d=b.jsxs(_t,{gap:16,"data-is":"description",children:[c,b.jsxs(_t,{gap:6,children:[b.jsx(it,{h:16}),b.jsx(it,{h:16}),b.jsx(it,{h:16,w:"80%"})]})]}),e[7]=d):d=e[7];let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsxs(_t,{gap:16,children:[d,b.jsxs(_t,{gap:12,mt:30,"data-is":"attachments",children:[b.jsx(it,{h:14,w:120}),b.jsx(it,{h:100,w:150})]})]}),e[8]=f):f=e[8];let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=b.jsx(it,{h:14,w:120}),e[9]=h):h=e[9];let p;e[10]===Symbol.for("react.memo_cache_sentinel")?(p=b.jsxs(b.Fragment,{children:[f,b.jsxs(je,{mt:50,"data-is":"activities",children:[b.jsxs(_t,{gap:8,children:[h,b.jsxs(qt,{gap:8,children:[b.jsx(it,{h:14,w:60}),b.jsx(it,{h:30,w:30}),b.jsx(it,{h:30,w:30}),b.jsx(it,{h:30,w:30})]})]}),b.jsx(xTe,{})]})]}),e[10]=p):p=e[10];let v;e[11]===Symbol.for("react.memo_cache_sentinel")?(v=b.jsx(it,{h:16,w:100}),e[11]=v):v=e[11];let g;e[12]===Symbol.for("react.memo_cache_sentinel")?(g=b.jsxs(_t,{gap:8,children:[v,b.jsxs(qt,{gap:8,wrap:"nowrap",children:[b.jsx(it,{h:24,w:24,circle:!0,style:{flexShrink:0}}),b.jsx(it,{h:16})]})]}),e[12]=g):g=e[12];let S;e[13]===Symbol.for("react.memo_cache_sentinel")?(S=b.jsx(it,{h:16,w:100}),e[13]=S):S=e[13];let w;e[14]===Symbol.for("react.memo_cache_sentinel")?(w=b.jsxs(_t,{gap:8,children:[S,b.jsxs(qt,{gap:8,wrap:"nowrap",children:[b.jsx(it,{h:24,w:24,style:{flexShrink:0}}),b.jsx(it,{h:16})]})]}),e[14]=w):w=e[14];let _;e[15]===Symbol.for("react.memo_cache_sentinel")?(_=b.jsxs(_t,{gap:8,children:[b.jsx(it,{h:16,w:100}),b.jsx(it,{h:16})]}),e[15]=_):_=e[15];let E;e[16]===Symbol.for("react.memo_cache_sentinel")?(E=b.jsxs(_t,{gap:8,children:[b.jsx(it,{h:16,w:100}),b.jsx(it,{h:16})]}),e[16]=E):E=e[16];let T;e[17]===Symbol.for("react.memo_cache_sentinel")?(T=b.jsxs(_t,{gap:8,children:[b.jsx(it,{h:16,w:100}),b.jsx(it,{h:16})]}),e[17]=T):T=e[17];let M;e[18]===Symbol.for("react.memo_cache_sentinel")?(M=b.jsxs(_t,{gap:24,children:[g,w,_,E,T,b.jsxs(_t,{gap:8,children:[b.jsx(it,{h:16}),b.jsx(it,{h:16})]})]}),e[18]=M):M=e[18];let j;return e[19]!==s?(j=b.jsx(kTe,{status:r,header:o,actions:s,above:l,content:p,sidebar:M}),e[19]=s,e[20]=j):j=e[20],j},OB=D.createContext(null),DTe=()=>D.useContext(OB),ATe=t=>{const e=be.c(10),[n,r]=D.useState(!1),[o,s]=D.useState(!1),[i,l]=D.useState(null),[c,d]=D.useState(!1),[f,h]=D.useState(!1);let p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{r(!1),s(!1),l(null),d(!1),h(!1)},e[0]=p):p=e[0];const v=p;let g;e[1]!==i||e[2]!==n||e[3]!==o||e[4]!==c||e[5]!==f?(g={isDescriptionEdit:n,setDescriptionEdit:r,isDescriptionUnsaved:o,setDescriptionUnsaved:s,commentsEdit:i,setCommentsEdit:l,showLinksForm:c,setShowLinksForm:d,showSubtaskForm:f,setShowSubtaskForm:h,reset:v},e[1]=i,e[2]=n,e[3]=o,e[4]=c,e[5]=f,e[6]=g):g=e[6];const S=g;let w;return e[7]!==t.children||e[8]!==S?(w=b.jsx(OB.Provider,{value:S,children:t.children}),e[7]=t.children,e[8]=S,e[9]=w):w=e[9],w},RTe=t=>Sg.openConfirmModal({keepMounted:!1,centered:!0,labels:{confirm:jt("common.action.close"),cancel:jt("common.action.cancel")},title:jt("closeUnsavedTaskModal.title"),children:jt("closeUnsavedTaskModal.description"),confirmProps:{color:"red.8",size:"md",radius:"md",fullWidth:!0},cancelProps:{size:"md",radius:"md",fullWidth:!0,variant:"subtle",color:"dark"},groupProps:{wrap:"nowrap"},...t}),OTe=()=>{const t=be.c(3),{isDescriptionUnsaved:e,reset:n}=DTe();let r;return t[0]!==e||t[1]!==n?(r=o=>{e?RTe({onConfirm:()=>{n(),o()}}):(n(),o())},t[0]=e,t[1]=n,t[2]=r):r=t[2],r},PTe=()=>{const t=be.c(17),{opened:e,taskKey:n}=tn(NTe),{search:r}=Qi();let o,s;t[0]!==r||t[1]!==n?(o=rg.parse(r)[Jv],s=(o==null?void 0:o.toString())||n,t[0]=r,t[1]=n,t[2]=o,t[3]=s):(o=t[2],s=t[3]);const i=s,{data:l}=RB(i),[c]=Ct.useMarkAsReadMutation(),d=Us();let f;t[4]!==d||t[5]!==c||t[6]!==o||t[7]!==(l==null?void 0:l.Id)?(f=()=>{const g=l==null?void 0:l.Id.toString(),S=o==null?void 0:o.toString();g&&S?(d(e2.actions.openTask(S)),c(Number(g))):d(e2.actions.close())},t[4]=d,t[5]=c,t[6]=o,t[7]=l==null?void 0:l.Id,t[8]=f):f=t[8];const h=l==null?void 0:l.Id;let p;t[9]!==d||t[10]!==c||t[11]!==o||t[12]!==h?(p=[d,c,o,h],t[9]=d,t[10]=c,t[11]=o,t[12]=h,t[13]=p):p=t[13],D.useEffect(f,p);let v;return t[14]!==e||t[15]!==l?(v={opened:e,task:l},t[14]=e,t[15]=l,t[16]=v):v=t[16],v};function NTe(t){return t.taskModalSlice}const ITe=D.lazy(()=>oo(()=>import("./TaskPanel-1n1xV0vy.js").then(t=>t.aM),__vite__mapDeps([17,18,19,20,21,22,23,12,24,25,2,26,27,6,28,13,4,29,30,31]))),$Te=()=>lt.dispatch(e2.actions.close()),LTe=()=>{const t=be.c(28),[e,n]=Wd(!1),{toggle:r}=n,o=mi("(max-width: 992px)"),{opened:s,task:i}=PTe(),l=OTe();let c;t[0]!==l?(c=()=>l(Bje),t[0]=l,t[1]=c):c=t[1];const d=c,f=o?!0:e;let h;t[2]!==e||t[3]!==o||t[4]!==r?(h=!o&&b.jsx(lr,{onClick:r,variant:"subtle",color:"light-dark(var(--mantine-color-dark-6), var(--mantine-color-dark-0))",children:e?b.jsx(d1e,{size:18}):b.jsx(c1e,{size:18})}),t[2]=e,t[3]=o,t[4]=r,t[5]=h):h=t[5];let p;t[6]===Symbol.for("react.memo_cache_sentinel")?(p=b.jsx(VE,{size:18}),t[6]=p):p=t[6];let v;t[7]!==d?(v=b.jsx(lr,{onClick:d,variant:"subtle",color:"light-dark(var(--mantine-color-dark-6), var(--mantine-color-dark-0))",children:p}),t[7]=d,t[8]=v):v=t[8];let g;t[9]!==h||t[10]!==v?(g=b.jsxs(b.Fragment,{children:[h,v]}),t[9]=h,t[10]=v,t[11]=g):g=t[11];const S=g;let w;t[12]===Symbol.for("react.memo_cache_sentinel")?(w=b.jsx(Cr.Overlay,{}),t[12]=w):w=t[12];let _;t[13]!==S?(_=b.jsx(jTe,{actionsRightSection:S}),t[13]=S,t[14]=_):_=t[14];const E=i==null?void 0:i.Id,T=(i==null?void 0:i.Key)||null;let M;t[15]!==S||t[16]!==f||t[17]!==E||t[18]!==T?(M=b.jsx(ITe,{fillSize:f,taskKey:T,onClose:$Te,actionsRightSection:S},E),t[15]=S,t[16]=f,t[17]=E,t[18]=T,t[19]=M):M=t[19];let j;t[20]!==M||t[21]!==_?(j=b.jsx(Cr.Content,{mah:"100dvh",children:b.jsx(Cr.Body,{p:0,children:b.jsx(D.Suspense,{fallback:_,children:M})})}),t[20]=M,t[21]=_,t[22]=j):j=t[22];let A;return t[23]!==f||t[24]!==d||t[25]!==s||t[26]!==j?(A=b.jsxs(Cr.Root,{size:"80vw",fullScreen:f,opened:s,onClose:d,keepMounted:!1,p:0,centered:!0,children:[w,j]}),t[23]=f,t[24]=d,t[25]=s,t[26]=j,t[27]=A):A=t[27],A},FTe=()=>{const t=be.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsx(ATe,{children:b.jsx(LTe,{})}),t[0]=e):e=t[0],e},zTe=t=>{const e=be.c(4),{count:n}=t;let r;e[0]!==n?(r=Array(n||4).fill(null).map(BTe),e[0]=n,e[1]=r):r=e[1];let o;return e[2]!==r?(o=b.jsx("div",{children:r}),e[2]=r,e[3]=o):o=e[3],o},UTe=()=>{const t=be.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsxs(Lt,{gap:8,h:56,px:12,justify:"space-between",children:[b.jsxs(Lt,{gap:8,flex:1,children:[b.jsx(it,{style:{flexShrink:0},w:38,h:38,radius:"xl"}),b.jsx(it,{w:"50%",h:20})]}),b.jsx(it,{w:"10%",h:20})]}),t[0]=e):e=t[0],e};function BTe(t,e){return b.jsx(UTe,{},e)}const uP={opened:!1,project:null,collection:null,type:"project"},T4=Jr({name:"manageUsersModal",initialState:uP,reducers:{close(){return{...uP}},open(t,e){return{...t,...e.payload,opened:!0}}}}),dP=t=>lt.dispatch(T4.actions.open(t)),HTe=()=>lt.dispatch(T4.actions.close()),qTe="_modalContent_1ur4i_1",VTe="_modalBody_1ur4i_6",fP={modalContent:qTe,modalBody:VTe},YTe=D.lazy(()=>oo(()=>import("./ParticipantsForm-IJ1jnSPu.js"),__vite__mapDeps([32,28,23,24,33]))),GTe={project:"members.subtitle",collection:"common.titles.collectionMembers"},WTe={project:Ie.Entity.Project,collection:Ie.Entity.Collection},QTe=()=>{const t=be.c(77),{t:e}=at(),n=Us(),{opened:r,project:o,collection:s,type:i}=tn(KTe),l=tn(XTe),c=tn(ZTe),d=(s==null?void 0:s.Id)||0;let f;t[0]!==d?(f={entityId:d,entityType:Ie.Entity.Collection},t[0]=d,t[1]=f):f=t[1];const h=!r||!s||i!=="collection";let p;t[2]!==h?(p={skip:h},t[2]=h,t[3]=p):p=t[3];const{data:v,status:g,isFetching:S}=da.useGetQuery(f,p),w=(o==null?void 0:o.Id)||0;let _;t[4]!==w?(_={entityId:w,entityType:Ie.Entity.Project},t[4]=w,t[5]=_):_=t[5];const E=!r||!o;let T;t[6]!==E?(T={skip:E},t[6]=E,t[7]=T):T=t[7];const{data:M,status:j,isFetching:A}=da.useGetQuery(_,T);let k;e:{if(i!=="collection"){k=M;break e}if(!v||!M){k=void 0;break e}let Ke,ot;t[8]!==v.UserAccessRights?(Ke=v.UserAccessRights??[],ot=new Set(Ke.map(JTe)),t[8]=v.UserAccessRights,t[9]=Ke,t[10]=ot):(Ke=t[9],ot=t[10]);const st=ot;let mt;if(t[11]!==Ke||t[12]!==st||t[13]!==v||t[14]!==M.UserAccessRights){let bt;t[16]!==st?(bt=ct=>!st.has(ct.PrincipalId),t[16]=st,t[17]=bt):bt=t[17];const At=(M.UserAccessRights??[]).filter(bt).map(e7e);mt={...v,UserAccessRights:[...Ke,...At]},t[11]=Ke,t[12]=st,t[13]=v,t[14]=M.UserAccessRights,t[15]=mt}else mt=t[15];k=mt}const R=k;let N;e:{if(i==="collection"){let Ke;t[18]!==g||t[19]!==j?(Ke=$8([g,j]),t[18]=g,t[19]=j,t[20]=Ke):Ke=t[20],N=Ke;break e}N=j}const I=N;let L;e:{if(!(R!=null&&R.UserAccessRights)||!o){let ot;t[21]===Symbol.for("react.memo_cache_sentinel")?(ot=[],t[21]=ot):ot=t[21],L=ot;break e}let Ke;if(t[22]!==l||t[23]!==R.UserAccessRights||t[24]!==o.OwnerId){const ot=R.UserAccessRights.map(t7e);Ke=ha([...ot,o.OwnerId,l]),t[22]=l,t[23]=R.UserAccessRights,t[24]=o.OwnerId,t[25]=Ke}else Ke=t[25];L=Ke}const F=L;let H;t[26]!==F?(H={ids:F},t[26]=F,t[27]=H):H=t[27];const B=I!==ii.fulfilled;let Y;t[28]!==B?(Y={skip:B},t[28]=B,t[29]=Y):Y=t[29];const{status:U,isFetching:q}=Vh.useGetByIdQuery(H,Y);let z;t[30]!==I||t[31]!==U?(z=$8([I,U]),t[30]=I,t[31]=U,t[32]=z):z=t[32];const W=z;let K;t[33]!==(s==null?void 0:s.OwnerId)||t[34]!==l||t[35]!==R||t[36]!==(o==null?void 0:o.OwnerId)||t[37]!==F||t[38]!==i||t[39]!==c?(K=()=>{if(!R)return[];const ot=(F.map(st=>{var bn;const mt=i==="project"?st===(o==null?void 0:o.OwnerId):st===(s==null?void 0:s.OwnerId),bt=st===l,At=((bn=R.UserAccessRights.find(Tt=>Tt.PrincipalId===st))==null?void 0:bn.Type)??Ie.AccessType.Read,ct=c[st];return ct?{Email:ct.Email,isOwner:mt,isCurrent:bt,accessType:At,Avatar:ct.Avatar,FirstName:ct.FirstName,Id:ct.Id,Name:ct.Name,Surname:ct.Surname,Status:ct.Status}:null}).filter(Boolean)||[]).filter(n7e);return Fs(ot,["isCurrent","isOwner","Name"],["desc","desc","asc"])},t[33]=s==null?void 0:s.OwnerId,t[34]=l,t[35]=R,t[36]=o==null?void 0:o.OwnerId,t[37]=F,t[38]=i,t[39]=c,t[40]=K):K=t[40],o==null||o.OwnerId,s==null||s.OwnerId;let G;t[41]!==K?(G=K(),t[41]=K,t[42]=G):G=t[42];const X=G,[J]=da.useGiveMutation(),[ne]=da.useRemoveMutation();let se;t[43]!==n||t[44]!==J||t[45]!==o||t[46]!==i?(se=Ke=>{!o||i==="collection"||J({entityType:Ie.Entity.Project,ids:[o.Id],type:Ke.type,userIds:Ke.userIds}).unwrap().then(()=>{n(wt.util.invalidateTags(["Project"]))})},t[43]=n,t[44]=J,t[45]=o,t[46]=i,t[47]=se):se=t[47];const ie=se;let oe;t[48]!==s||t[49]!==J||t[50]!==o||t[51]!==i?(oe=Ke=>{e:switch(i){case"project":{if(!o)return;J({entityType:Ie.Entity.Project,ids:[o.Id],type:Ke.type,userIds:Ke.userIds});break e}case"collection":{if(!s)return;J({entityType:WTe[i],ids:[s.Id],type:Ke.type,userIds:Ke.userIds});break e}}},t[48]=s,t[49]=J,t[50]=o,t[51]=i,t[52]=oe):oe=t[52];const de=oe;let pe;t[53]!==n||t[54]!==o||t[55]!==ne||t[56]!==e||t[57]!==i?(pe=Ke=>{!o||i==="collection"||cf({title:e("members.remove.title"),children:b.jsx(Dt,{dangerouslySetInnerHTML:{__html:e("members.remove.confirm",{user:Ke.Name})}}),onConfirm:()=>{ne({entityId:o.Id,entityType:Ie.Entity.Project,userId:Ke.Id}).unwrap().then(()=>{n(wt.util.invalidateTags(["Project"])),n(Ct.util.invalidateTags([{type:"Performer",id:Ke.Id}]))})}})},t[53]=n,t[54]=o,t[55]=ne,t[56]=e,t[57]=i,t[58]=pe):pe=t[58];const fe=pe;if(!o)return null;let Te;t[59]!==e||t[60]!==i?(Te=i?e(GTe[i]):"",t[59]=e,t[60]=i,t[61]=Te):Te=t[61];let we;t[62]===Symbol.for("react.memo_cache_sentinel")?(we={content:fP.modalContent,body:fP.modalBody},t[62]=we):we=t[62];let _e;t[63]===Symbol.for("react.memo_cache_sentinel")?(_e=b.jsx(zTe,{}),t[63]=_e):_e=t[63];const De=A||S||q,Ze=i??"project";let ze;t[64]!==ie||t[65]!==fe||t[66]!==de||t[67]!==o.Id||t[68]!==W||t[69]!==De||t[70]!==Ze||t[71]!==X?(ze=b.jsx(D.Suspense,{fallback:_e,children:b.jsx(YTe,{usersData:X,onRemove:fe,onUpdate:de,onAdd:ie,status:W,isFetching:De,projectId:o.Id,type:Ze})}),t[64]=ie,t[65]=fe,t[66]=de,t[67]=o.Id,t[68]=W,t[69]=De,t[70]=Ze,t[71]=X,t[72]=ze):ze=t[72];let Xe;return t[73]!==r||t[74]!==Te||t[75]!==ze?(Xe=b.jsx(Cr,{opened:r,onClose:r7e,title:Te,size:"lg",classNames:we,children:ze}),t[73]=r,t[74]=Te,t[75]=ze,t[76]=Xe):Xe=t[76],Xe};function KTe(t){return t.manageUsersModal}function XTe(t){return t.usersCache.currentUser.Id}function ZTe(t){return t.usersCache.entities}function JTe(t){return t.PrincipalId}function e7e(t){return{...t,EntityType:Ie.Entity.Collection,Type:Ie.AccessType.Read}}function t7e(t){return t.PrincipalId}function n7e(t,e,n){return n.findIndex(r=>r.Id===t.Id)===e}function r7e(){return HTe()}const o7e=t=>{localStorage.setItem("showFeatures",t)},s7e=()=>localStorage.getItem("showFeatures")==="true";function E4({projectId:t,projects:e}){var n;if(!t||!(e!=null&&e.length))return null;for(const r of e){if(r.Id===t)return r;if((n=r.Children)!=null&&n.length){const o=E4({projectId:t,projects:r.Children});if(o)return o}}return null}const q8=({sprintId:t,projects:e})=>{var n,r;for(const o of e){const s=(n=o.Sprints)==null?void 0:n.find(i=>i.Id===t);if(s)return s;if((r=o.Children)!=null&&r.length){const i=q8({sprintId:t,projects:o.Children});if(i)return i}}return null},i7e=({skip:t})=>nr.useGetNormalizeCollectionsQuery(null,{skip:t}),hP=t=>[...t].sort((e,n)=>e.order-n.order),eAe=t=>{const e=be.c(6),{projectId:n,collectionId:r,sortByOrder:o}=t,s=o===void 0?!0:o;let i;e[0]!==r||e[1]!==n||e[2]!==s?(i=d=>{if(!d.data)return d;if(!n&&!r){if(s===!1)return d;const f={};for(const[h,p]of Object.entries(d.data))f[Number(h)]=hP(p);return{...d,data:f}}if(n&&!r){const f=d.data[n]||[],h=s?hP(f):f;return{...d,data:h}}if(n&&r){const h=(d.data[n]||[]).find(p=>p.Id===r);return{...d,data:h?[h]:[]}}if(r&&!n){for(const[f,h]of Object.entries(d.data)){const p=h.find(v=>v.Id===r);if(p)return{...d,data:[p]}}return{...d,data:[]}}return d},e[0]=r,e[1]=n,e[2]=s,e[3]=i):i=e[3];const l=i;let c;return e[4]!==l?(c={selectFromResult:l},e[4]=l,e[5]=c):c=e[5],nr.useGetNormalizeCollectionsQuery(null,c)},Lk=t=>{const e=be.c(22);let n;e[0]!==t?(n=t===void 0?{}:t,e[0]=t,e[1]=n):n=e[1];const{withCollections:r}=n,o=r===void 0?!1:r,s=tn(a7e);let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i={States:ku(),ReturnDataType:hs.ProjectReturnDataType.Projects},e[2]=i):i=e[2];const{data:l,isLoading:c,isSuccess:d}=wt.useFetchProjectsQuery(i),f=!o;let h;e[3]!==f?(h={skip:f},e[3]=f,e[4]=h):h=e[4];const{data:p,isLoading:v}=i7e(h);let g;e[5]!==p?(g=p===void 0?{}:p,e[5]=p,e[6]=g):g=e[6];const S=g;let w;e:{if(!l){let N;e[7]===Symbol.for("react.memo_cache_sentinel")?(N={myProjects:[],otherProjects:[]},e[7]=N):N=e[7],w=N;break e}let j,A;if(e[8]!==S||e[9]!==s||e[10]!==l.Projects){const N=l.Projects.filter(l7e),I=Eu(N,S).list,L=Fs(I,"Order");j=N1(L,["OwnerId",s]),A=i5(L,j),e[8]=S,e[9]=s,e[10]=l.Projects,e[11]=j,e[12]=A}else j=e[11],A=e[12];const k=A;let R;e[13]!==j||e[14]!==k?(R={myProjects:j,otherProjects:k},e[13]=j,e[14]=k,e[15]=R):R=e[15],w=R}const{myProjects:_,otherProjects:E}=w,T=c||v;let M;return e[16]!==l||e[17]!==d||e[18]!==_||e[19]!==E||e[20]!==T?(M={myProjects:_,otherProjects:E,data:l,isSuccess:d,isLoading:T},e[16]=l,e[17]=d,e[18]=_,e[19]=E,e[20]=T,e[21]=M):M=e[21],M};function a7e(t){return t.usersCache.currentUser.Id}function l7e(t){return!t.ParentId}const Fk=()=>{var v;const t=be.c(10),{data:e}=Lk(),{data:n}=wt.useGetProjectsQuery(),r=ru("sprintId"),o=ru("folderId"),s=ru("taskId"),i=e==null?void 0:e.Projects;let l;t[0]!==o||t[1]!==i?(l=E4({projectId:o,projects:i}),t[0]=o,t[1]=i,t[2]=l):l=t[2];const c=l,d=r?(v=n==null?void 0:n.sprintEntities)==null?void 0:v[r]:void 0;let f;t[3]!==(e==null?void 0:e.Tasks)||t[4]!==s?(f=e==null?void 0:e.Tasks.find(g=>g.Id===s),t[3]=e==null?void 0:e.Tasks,t[4]=s,t[5]=f):f=t[5];const h=f;let p;return t[6]!==c||t[7]!==d||t[8]!==h?(p={project:c,sprint:d,task:h},t[6]=c,t[7]=d,t[8]=h,t[9]=p):p=t[9],p},zk=()=>{const t=be.c(14),e=tn(c7e),{data:n,isLoading:r,isSuccess:o}=Lk();let s;e:{if(!n){let v;t[0]===Symbol.for("react.memo_cache_sentinel")?(v={myProjects:[],otherProjects:[]},t[0]=v):v=t[0],s=v;break e}let d,f;if(t[1]!==e||t[2]!==n.Projects){const v=n.Projects.filter(u7e),g=sk(v).list,S=Fs(g,"Order");d=N1(S,["OwnerId",e]),f=i5(S,d),t[1]=e,t[2]=n.Projects,t[3]=d,t[4]=f}else d=t[3],f=t[4];const h=f;let p;t[5]!==d||t[6]!==h?(p={myProjects:d,otherProjects:h},t[5]=d,t[6]=h,t[7]=p):p=t[7],s=p}const{myProjects:i,otherProjects:l}=s;let c;return t[8]!==n||t[9]!==r||t[10]!==o||t[11]!==i||t[12]!==l?(c={myProjects:i,otherProjects:l,data:n,isLoading:r,isSuccess:o},t[8]=n,t[9]=r,t[10]=o,t[11]=i,t[12]=l,t[13]=c):c=t[13],c};function c7e(t){return t.usersCache.currentUser.Id}function u7e(t){return!t.ParentId}const d7e=()=>{const t=be.c(7),{project:e,sprint:n}=Fk(),{myProjects:r,otherProjects:o}=zk(),s=Us();let i,l;t[0]!==s||t[1]!==r||t[2]!==o||t[3]!==e||t[4]!==n?(i=()=>{e&&(E4({projectId:e.Id,projects:r})?s(F3("myProjects")):E4({projectId:e.Id,projects:o})&&s(F3("otherProjects"))),n&&(q8({sprintId:n.Id,projects:r})?s(F3("myProjects")):q8({sprintId:n.Id,projects:o})&&s(F3("otherProjects")))},l=[s,r,o,e,n],t[0]=s,t[1]=r,t[2]=o,t[3]=e,t[4]=n,t[5]=i,t[6]=l):(i=t[5],l=t[6]),D.useEffect(i,l)},pP=200,f7e=t=>{const e=be.c(6),[n,r]=D.useState(null),[o,s]=D.useState(null);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=h=>{s(null),r(h.targetTouches[0].clientX)},e[0]=i):i=e[0];const l=i;let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=h=>s(h.targetTouches[0].clientX),e[1]=c):c=e[1];const d=c;let f;return e[2]!==t||e[3]!==o||e[4]!==n?(f={onTouchStart:l,onTouchMove:d,onTouchEnd:()=>{if(!n||!o)return;const p=n-o,v=p>pP,g=p<-pP;v&&(t==null||t("left")),g&&(t==null||t("right"))}},e[2]=t,e[3]=o,e[4]=n,e[5]=f):f=e[5],f},h7e=()=>lt.dispatch(ng.actions.toggleSidebar()),p7e=()=>lt.dispatch(ng.actions.closeSidebar()),m7e=()=>lt.dispatch(ng.actions.initSidebar()),uf=()=>{const t=be.c(4),e=tn(g7e),n=mi("(max-width: 768px)"),r=mi("(max-width: 1200px)");let o;return t[0]!==r||t[1]!==n||t[2]!==e?(o={opened:e,isBurger:r,isMobile:n,toggle:h7e,close:p7e,initSidebar:m7e},t[0]=r,t[1]=n,t[2]=e,t[3]=o):o=t[3],o};function g7e(t){return t.layoutSlice.sidebarOpened}const y7e="/assets/r7-info-bg-CK6upiXH.png",v7e="/assets/r7-logo-full-dark-CdE23pEH.svg",b7e="/assets/r7-logo-full-Bqyi7oVL.svg",Uk=()=>{const{colorScheme:t}=i2();return t==="dark"},S7e="_copyright_8dmtx_1",w7e="_copyrightModalBody_8dmtx_7",x7e="_copyrightWidth_8dmtx_14",C7e="_copyrightHeight_8dmtx_19",_7e="_copyrightText_8dmtx_24",_h={copyright:S7e,copyrightModalBody:w7e,copyrightWidth:x7e,copyrightHeight:C7e,copyrightText:_7e},T7e=()=>{const t=be.c(49),{t:e}=at(),[n,r]=Wd(!1),{open:o,close:s}=r,i=Uk();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l={alignSelf:"center",cursor:"pointer"},t[0]=l):l=t[0];let c;t[1]!==e?(c=e("footer.text"),t[1]=e,t[2]=c):c=t[2];let d;t[3]!==o||t[4]!==c?(d=b.jsx(je,{className:_h.copyright,children:b.jsxs(In,{variant:"light",color:"gray.6",size:"xs",fw:400,radius:"xl",style:l,onClick:o,children:[" ",c," "]})}),t[3]=o,t[4]=c,t[5]=d):d=t[5];let f,h;t[6]===Symbol.for("react.memo_cache_sentinel")?(f={body:_h.copyrightModalBody},h={body:{background:`url(${y7e}) no-repeat right top`,padding:"0",overflow:"hidden"}},t[6]=f,t[7]=h):(f=t[6],h=t[7]);let p,v;t[8]===Symbol.for("react.memo_cache_sentinel")?(p={position:"absolute",right:20,top:20},v=b.jsx(VE,{}),t[8]=p,t[9]=v):(p=t[8],v=t[9]);let g;t[10]!==s?(g=b.jsx(lr,{variant:"transparent",color:"dark",onClick:s,style:p,children:v}),t[10]=s,t[11]=g):g=t[11];const S=i?v7e:b7e;let w;t[12]!==S?(w=b.jsx(qt,{children:b.jsx(dc,{src:S})}),t[12]=S,t[13]=w):w=t[13];let _;t[14]!==e?(_=e("footer.text1"),t[14]=e,t[15]=_):_=t[15];let E;t[16]!==_?(E=b.jsx(Dt,{fz:"sm",mt:"xs",className:_h.copyrightText,children:_}),t[16]=_,t[17]=E):E=t[17];let T;t[18]!==e?(T=e("footer.text2"),t[18]=e,t[19]=T):T=t[19];let M;t[20]!==T?(M=b.jsx(Dt,{fz:"sm",className:_h.copyrightText,children:T}),t[20]=T,t[21]=M):M=t[21];let j;t[22]!==e?(j=e("footer.text3"),t[22]=e,t[23]=j):j=t[23];let A;t[24]!==j?(A=b.jsx(Dt,{fz:"sm",className:_h.copyrightText,children:j}),t[24]=j,t[25]=A):A=t[25];let k;t[26]!==e?(k=e("footer.moreAction"),t[26]=e,t[27]=k):k=t[27];let R;t[28]!==k?(R=b.jsx(In,{onClick:E7e,children:k}),t[28]=k,t[29]=R):R=t[29];let N;t[30]!==e?(N=e("footer.rightsReserved"),t[30]=e,t[31]=N):N=t[31];let I;t[32]!==N?(I=b.jsx(Dt,{fz:"xs",c:"gray.6",children:N}),t[32]=N,t[33]=I):I=t[33];let L;t[34]!==w||t[35]!==E||t[36]!==M||t[37]!==A||t[38]!==R||t[39]!==I?(L=b.jsx(_t,{pt:"xl",pb:"md",px:"xl",h:380,className:_h.copyrightHeight,children:b.jsxs(_t,{align:"flex-start",gap:"sm",w:380,className:_h.copyrightWidth,children:[w,E,M,A,R,I]})}),t[34]=w,t[35]=E,t[36]=M,t[37]=A,t[38]=R,t[39]=I,t[40]=L):L=t[40];let F;t[41]!==s||t[42]!==n||t[43]!==L||t[44]!==g?(F=b.jsxs(Cr,{centered:!0,withCloseButton:!1,opened:n,size:640,padding:0,onClose:s,classNames:f,styles:h,children:[g,L]}),t[41]=s,t[42]=n,t[43]=L,t[44]=g,t[45]=F):F=t[45];let H;return t[46]!==F||t[47]!==d?(H=b.jsxs(b.Fragment,{children:[d,F]}),t[46]=F,t[47]=d,t[48]=H):H=t[48],H};function E7e(){return window.open("https://r7-office.ru")}const k7e="_footer_3elwa_1",M7e={footer:k7e},j7e=()=>{const t=be.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsx(je,{className:M7e.footer,children:b.jsx(T7e,{})}),t[0]=e):e=t[0],e},D7e="_drawer_1fu7y_1",A7e="_addMenuTarget_1fu7y_6",R7e="_addMenuTargetLabel_1fu7y_13",O7e="_counter_1fu7y_18",P7e="_visibilityHidden_1fu7y_38",Kv={drawer:D7e,addMenuTarget:A7e,addMenuTargetLabel:R7e,counter:O7e,visibilityHidden:P7e},N7e=()=>{const t=be.c(3),e=G2(),n=Y2(),r=Pk(),o=(e==null?void 0:e.rootProjectId)??(n==null?void 0:n.rootProjectId)??(r==null?void 0:r.rootProjectId);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=b.jsx(I7e,{}),t[0]=s):s=t[0];let i;return t[1]!==o?(i=b.jsx(QCe,{projectId:o,children:s}),t[1]=o,t[2]=i):i=t[2],i},I7e=()=>{const t=be.c(65),{t:e}=at(),n=MB(),r=ru("folderId"),o=G2(),s=Y2(),i=Pk(),l=(o==null?void 0:o.rootProjectId)??(s==null?void 0:s.rootProjectId)??(i==null?void 0:i.rootProjectId),c=xp(l||0),{project:d}=Yr(o==null?void 0:o.ProjectId),[f,h]=D.useState(!1);let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p={States:ku(),ReturnDataType:hs.ProjectReturnDataType.Projects},t[0]=p):p=t[0];const{data:v}=wt.useFetchProjectsQuery(p);let g;t[1]!==(v==null?void 0:v.Projects)?(g=(v==null?void 0:v.Projects)||[],t[1]=v==null?void 0:v.Projects,t[2]=g):g=t[2];let S;t[3]!==g?(S=Eu(g),t[3]=g,t[4]=S):S=t[4];const w=S,{toggle:_,isBurger:E}=uf(),T=s??d;let M;t[5]!==c.tasks.create||t[6]!==r||t[7]!==w.sprintEntities||t[8]!==o?(M=c.tasks.create?o:null,M||(M=Object.values(w.sprintEntities).find(fe=>fe.rootProjectId===r)||null),t[5]=c.tasks.create,t[6]=r,t[7]=w.sprintEntities,t[8]=o,t[9]=M):M=t[9];let j;t[10]!==e?(j=e("sidebar.addMenu.project"),t[10]=e,t[11]=j):j=t[11];let A;t[12]!==j?(A={isEnabled:!0,key:"project",label:j,icon:tz,onClick:vB},t[12]=j,t[13]=A):A=t[13];const k=!!(T&&c.folders.create&&T.pathById.length<=2);let R;t[14]!==e?(R=e("sidebar.addMenu.folder"),t[14]=e,t[15]=R):R=t[15];let N;t[16]!==T?(N=()=>T&&bB(T),t[16]=T,t[17]=N):N=t[17];let I;t[18]!==k||t[19]!==R||t[20]!==N?(I={isEnabled:k,key:"folder",label:R,icon:Gx,onClick:N},t[18]=k,t[19]=R,t[20]=N,t[21]=I):I=t[21];const L=!!(T&&c.sprints.create);let F;t[22]!==e?(F=e("sidebar.addMenu.list"),t[22]=e,t[23]=F):F=t[23];let H;t[24]!==T?(H=()=>T&&SB(T),t[24]=T,t[25]=H):H=t[25];let B;t[26]!==F||t[27]!==H||t[28]!==L?(B={isEnabled:L,key:"list",label:F,icon:Wx,onClick:H},t[26]=F,t[27]=H,t[28]=L,t[29]=B):B=t[29];let Y;t[30]!==e?(Y=e("sidebar.addMenu.task"),t[30]=e,t[31]=Y):Y=t[31];let U;t[32]!==M?(U=()=>V9e({defaultValues:{sprint:M}}),t[32]=M,t[33]=U):U=t[33];let q;t[34]!==Y||t[35]!==U?(q={isEnabled:!0,key:"task",label:Y,icon:nz,onClick:U},t[34]=Y,t[35]=U,t[36]=q):q=t[36];let z;t[37]!==e?(z=e("sidebar.addMenu.collection"),t[37]=e,t[38]=z):z=t[38];let W;t[39]!==n||t[40]!==z?(W={isEnabled:!0,key:"collection",label:z,icon:_g,onClick:n},t[39]=n,t[40]=z,t[41]=W):W=t[41];let K;t[42]!==B||t[43]!==q||t[44]!==W||t[45]!==A||t[46]!==I?(K=[A,I,B,q,W].filter($7e),t[42]=B,t[43]=q,t[44]=W,t[45]=A,t[46]=I,t[47]=K):K=t[47];const G=K;let X;t[48]===Symbol.for("react.memo_cache_sentinel")?(X={root:Kv.addMenuTarget,label:Kv.addMenuTargetLabel},t[48]=X):X=t[48];let J,ne;t[49]===Symbol.for("react.memo_cache_sentinel")?(J=()=>h(L7e),ne=b.jsx(R2,{size:24,stroke:1.5}),t[49]=J,t[50]=ne):(J=t[49],ne=t[50]);let se;t[51]!==f?(se=f?b.jsx(Yx,{size:20,stroke:1.5}):b.jsx(Cg,{size:20,stroke:1.5}),t[51]=f,t[52]=se):se=t[52];let ie;t[53]!==e?(ie=e("common.action.add"),t[53]=e,t[54]=ie):ie=t[54];let oe;t[55]!==se||t[56]!==ie?(oe=b.jsx(Mt.Target,{children:b.jsx(In,{classNames:X,fullWidth:!0,size:"md",onClick:J,leftSection:ne,rightSection:se,children:ie})}),t[55]=se,t[56]=ie,t[57]=oe):oe=t[57];let de;t[58]!==E||t[59]!==G||t[60]!==_?(de=b.jsx(Mt.Dropdown,{children:G.map(fe=>b.jsx(Mt.Item,{leftSection:b.jsx(fe.icon,{size:24,stroke:1.25}),onClick:()=>{var Te;E&&_(),(Te=fe.onClick)==null||Te.call(fe)},children:fe.label},fe.key))}),t[58]=E,t[59]=G,t[60]=_,t[61]=de):de=t[61];let pe;return t[62]!==oe||t[63]!==de?(pe=b.jsxs(Mt,{width:"target",onChange:h,closeOnItemClick:!0,children:[oe,de]}),t[62]=oe,t[63]=de,t[64]=pe):pe=t[64],pe};function $7e(t){return t.isEnabled}function L7e(t){return!t}const F7e=t=>D.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 138 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},D.createElement("path",{d:"M51.6466 21.9581L55.6466 12.1449C55.6873 12.1041 55.6466 12.0294 55.5719 12.0294H51.9997C51.9725 12.0294 51.9476 12.0158 51.925 11.9887L50.6958 10.0124C50.6551 9.97167 50.6958 9.89697 50.7705 9.89697H58.071C58.1118 9.89697 58.1457 9.93772 58.1457 9.97847V11.5201L54.071 22.0803C54.071 22.1211 54.0303 22.1211 53.9963 22.1211H51.7688C51.6534 22.0803 51.6126 22.0396 51.6534 21.9649L51.6466 21.9581Z",fill:"white"}),D.createElement("path",{d:"M57.4732 17.9239L58.132 16.0495C58.132 16.0088 58.1659 16.0088 58.1999 16.0088H61.4597C61.4936 16.0088 61.5276 16.0495 61.5276 16.0903V17.9646C61.5276 18.0054 61.4936 18.0461 61.4597 18.0461H57.5004C57.4665 18.0054 57.4325 17.9646 57.4665 17.9239H57.4732Z",fill:"white"}),D.createElement("path",{d:"M45.0962 9.90063C46.2046 9.90063 47.118 10.0343 47.8365 10.3017C48.5606 10.569 49.098 10.9728 49.4489 11.5131C49.7998 12.0533 49.9753 12.7356 49.9753 13.5599C49.9753 14.1169 49.8694 14.6042 49.6578 15.0219C49.4462 15.4397 49.1677 15.7933 48.8223 16.083C48.477 16.3726 48.1039 16.6093 47.7028 16.7931L51.2953 22.1149H48.4213L45.5056 17.428H44.1271V22.1149H41.5372V9.90063H45.0962ZM44.9124 12.0227H44.1271V15.3227H44.9626C45.8203 15.3227 46.433 15.1807 46.8006 14.8966C47.1737 14.607 47.3603 14.1837 47.3603 13.6267C47.3603 13.0475 47.1598 12.6353 46.7588 12.3903C46.3633 12.1452 45.7479 12.0227 44.9124 12.0227Z",fill:"white"}),D.createElement("path",{d:"M67.0389 9.90065C68.6151 9.90065 69.7652 10.2404 70.4893 10.9199C71.2133 11.5938 71.5754 12.524 71.5754 13.7103C71.5754 14.245 71.4946 14.7574 71.3331 15.2475C71.1716 15.7321 70.907 16.1637 70.5394 16.5425C70.1774 16.9212 69.6928 17.222 69.0857 17.4448C68.4786 17.662 67.7295 17.7706 66.8384 17.7706H65.7272V22.1149H63.1373V9.90065H67.0389ZM66.9052 12.0227H65.7272V15.6485H66.5794C67.0639 15.6485 67.4845 15.5845 67.8409 15.4564C68.1974 15.3283 68.4731 15.1278 68.668 14.8549C68.8629 14.582 68.9604 14.2311 68.9604 13.8022C68.9604 13.2007 68.7933 12.7551 68.4591 12.4655C68.125 12.1703 67.607 12.0227 66.9052 12.0227Z",fill:"white"}),D.createElement("path",{d:"M76.5847 9.90065C77.6931 9.90065 78.6065 10.0343 79.325 10.3017C80.049 10.569 80.5865 10.9728 80.9374 11.5131C81.2883 12.0533 81.4637 12.7356 81.4637 13.5599C81.4637 14.1169 81.3579 14.6042 81.1463 15.022C80.9346 15.4397 80.6561 15.7934 80.3108 16.083C79.9655 16.3726 79.5923 16.6093 79.1913 16.7931L82.7838 22.1149H79.9098L76.9941 17.428H75.6156V22.1149H73.0257V9.90065H76.5847ZM76.4009 12.0227H75.6156V15.3227H76.451C77.3088 15.3227 77.9214 15.1807 78.289 14.8966C78.6622 14.607 78.8488 14.1837 78.8488 13.6268C78.8488 13.0475 78.6483 12.6354 78.2473 12.3903C77.8518 12.1452 77.2364 12.0227 76.4009 12.0227Z",fill:"white"}),D.createElement("path",{d:"M94.5519 15.9911C94.5519 16.9323 94.4349 17.7901 94.201 18.5643C93.9671 19.3329 93.6106 19.9957 93.1316 20.5526C92.6582 21.1096 92.0567 21.5385 91.3271 21.8392C90.5974 22.1344 89.7341 22.282 88.7372 22.282C87.7402 22.282 86.8769 22.1344 86.1473 21.8392C85.4176 21.5385 84.8133 21.1096 84.3343 20.5526C83.8609 19.9957 83.5073 19.3301 83.2733 18.5559C83.0394 17.7817 82.9224 16.9212 82.9224 15.9744C82.9224 14.7101 83.1285 13.61 83.5407 12.6743C83.9584 11.7331 84.5989 11.0034 85.4622 10.4855C86.3255 9.96749 87.4227 9.7085 88.7539 9.7085C90.0795 9.7085 91.1683 9.96749 92.0205 10.4855C92.8782 11.0034 93.5132 11.7331 93.9253 12.6743C94.343 13.6156 94.5519 14.7212 94.5519 15.9911ZM85.6376 15.9911C85.6376 16.8432 85.7435 17.5784 85.9551 18.1967C86.1723 18.8093 86.5093 19.2827 86.966 19.6169C87.4227 19.9455 88.0131 20.1098 88.7372 20.1098C89.4724 20.1098 90.0683 19.9455 90.525 19.6169C90.9817 19.2827 91.3131 18.8093 91.5192 18.1967C91.7309 17.5784 91.8367 16.8432 91.8367 15.9911C91.8367 14.7101 91.5972 13.7019 91.1182 12.9667C90.6392 12.2316 89.8511 11.864 88.7539 11.864C88.0242 11.864 87.4283 12.031 86.966 12.3652C86.5093 12.6938 86.1723 13.1673 85.9551 13.7855C85.7435 14.3982 85.6376 15.1333 85.6376 15.9911Z",fill:"white"}),D.createElement("path",{d:"M94.9496 25.7073C94.6154 25.7073 94.323 25.6879 94.0723 25.6489C93.8161 25.6154 93.5989 25.5737 93.4207 25.5236V23.3681C93.5989 23.4071 93.7911 23.4433 93.9972 23.4767C94.1977 23.5157 94.4121 23.5352 94.6404 23.5352C94.9412 23.5352 95.2113 23.4767 95.4508 23.3597C95.6903 23.2483 95.8797 23.0339 96.0189 22.7164C96.1582 22.399 96.2278 21.9423 96.2278 21.3463V9.90065H98.8177V21.3296C98.8177 22.3767 98.6534 23.2205 98.3248 23.861C98.0017 24.5071 97.5478 24.9749 96.963 25.2646C96.3838 25.5598 95.7126 25.7073 94.9496 25.7073Z",fill:"white"}),D.createElement("path",{d:"M108.071 22.1149H101.037V9.90065H108.071V12.0227H103.627V14.7045H107.762V16.8265H103.627V19.9762H108.071V22.1149Z",fill:"white"}),D.createElement("path",{d:"M114.96 11.8807C114.465 11.8807 114.025 11.9781 113.64 12.1731C113.261 12.3624 112.941 12.6381 112.679 13.0002C112.423 13.3622 112.228 13.7994 112.095 14.3118C111.961 14.8242 111.894 15.4007 111.894 16.0412C111.894 16.9045 112 17.6425 112.212 18.2551C112.429 18.8622 112.763 19.3273 113.214 19.6503C113.665 19.9678 114.247 20.1265 114.96 20.1265C115.456 20.1265 115.952 20.0709 116.447 19.9595C116.949 19.8481 117.492 19.6893 118.076 19.4833V21.6554C117.536 21.8782 117.004 22.0369 116.481 22.1316C115.957 22.2319 115.37 22.282 114.718 22.282C113.459 22.282 112.423 22.023 111.61 21.505C110.802 20.9815 110.204 20.2519 109.814 19.3162C109.424 18.3749 109.229 17.2777 109.229 16.0245C109.229 15.0999 109.354 14.2533 109.605 13.4847C109.856 12.7161 110.223 12.0505 110.708 11.488C111.192 10.9255 111.791 10.491 112.504 10.1847C113.217 9.87837 114.036 9.72521 114.96 9.72521C115.567 9.72521 116.174 9.80318 116.782 9.95913C117.394 10.1095 117.979 10.3184 118.536 10.5857L117.701 12.691C117.244 12.4738 116.784 12.2845 116.322 12.1229C115.86 11.9614 115.406 11.8807 114.96 11.8807Z",fill:"white"}),D.createElement("path",{d:"M124.54 22.1149H121.95V12.0561H118.633V9.90065H127.856V12.0561H124.54V22.1149Z",fill:"white"}),D.createElement("path",{d:"M136.09 18.723C136.09 19.447 135.915 20.0764 135.564 20.6111C135.213 21.1458 134.701 21.558 134.027 21.8476C133.359 22.1372 132.545 22.282 131.587 22.282C131.164 22.282 130.749 22.2542 130.343 22.1985C129.942 22.1428 129.554 22.062 129.181 21.9562C128.814 21.8448 128.463 21.7083 128.129 21.5468V19.1407C128.708 19.3969 129.309 19.6281 129.933 19.8341C130.557 20.0402 131.175 20.1433 131.788 20.1433C132.211 20.1433 132.551 20.0876 132.807 19.9762C133.069 19.8648 133.258 19.7116 133.375 19.5167C133.492 19.3217 133.551 19.0989 133.551 18.8483C133.551 18.542 133.448 18.2802 133.242 18.063C133.035 17.8458 132.751 17.6425 132.389 17.4531C132.033 17.2637 131.629 17.0604 131.178 16.8432C130.894 16.7096 130.585 16.548 130.251 16.3587C129.916 16.1637 129.599 15.927 129.298 15.6485C128.997 15.3701 128.75 15.0331 128.555 14.6376C128.365 14.2366 128.271 13.7576 128.271 13.2007C128.271 12.471 128.438 11.8472 128.772 11.3293C129.106 10.8113 129.582 10.4158 130.201 10.1429C130.824 9.86445 131.56 9.72521 132.406 9.72521C133.041 9.72521 133.645 9.8004 134.219 9.95078C134.798 10.0956 135.403 10.3072 136.032 10.5857L135.196 12.5992C134.634 12.3708 134.13 12.1954 133.684 12.0728C133.239 11.9447 132.785 11.8807 132.323 11.8807C132 11.8807 131.724 11.9336 131.495 12.0394C131.267 12.1397 131.094 12.2845 130.977 12.4738C130.861 12.6576 130.802 12.8721 130.802 13.1171C130.802 13.4068 130.886 13.6518 131.053 13.8523C131.225 14.0473 131.482 14.2366 131.821 14.4204C132.167 14.6042 132.595 14.8187 133.108 15.0637C133.732 15.3589 134.264 15.668 134.704 15.9911C135.149 16.3085 135.492 16.6845 135.731 17.1189C135.971 17.5478 136.09 18.0825 136.09 18.723Z",fill:"white"}),D.createElement("path",{d:"M27.846 0H4.15396C1.85979 0 0 1.85979 0 4.15396V27.846C0 30.1402 1.85979 32 4.15396 32H27.846C30.1402 32 32 30.1402 32 27.846V4.15396C32 1.85979 30.1402 0 27.846 0Z",fill:"#61B6FA"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.7987 10.2353C25.1892 10.6258 25.1892 11.259 24.7987 11.6495L14.6837 21.7644C14.2932 22.155 13.66 22.155 13.2695 21.7644L8.21208 16.707C7.82156 16.3165 7.82156 15.6833 8.21208 15.2928C8.60261 14.9023 9.23577 14.9023 9.6263 15.2928L13.9766 19.6431L23.3845 10.2353C23.775 9.84475 24.4082 9.84475 24.7987 10.2353Z",fill:"white"})),z7e=t=>D.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 140 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},D.createElement("g",{clipPath:"url(#clip0_3531_2520)"},D.createElement("path",{d:"M51.1464 21.9578L55.1464 12.1446C55.1872 12.1039 55.1464 12.0292 55.0717 12.0292H51.4996C51.4724 12.0292 51.4475 12.0156 51.4249 11.9884L50.1957 10.0122C50.1549 9.97143 50.1957 9.89673 50.2704 9.89673H57.5709C57.6116 9.89673 57.6456 9.93747 57.6456 9.97822V11.5198L53.5709 22.0801C53.5709 22.1208 53.5301 22.1208 53.4962 22.1208H51.2687C51.1532 22.0801 51.1125 22.0393 51.1532 21.9646L51.1464 21.9578Z",fill:"white"}),D.createElement("path",{d:"M56.9732 17.9239L57.632 16.0495C57.632 16.0088 57.6659 16.0088 57.6999 16.0088H60.9597C60.9936 16.0088 61.0276 16.0495 61.0276 16.0903V17.9646C61.0276 18.0054 60.9936 18.0461 60.9597 18.0461H57.0004C56.9665 18.0054 56.9325 17.9646 56.9665 17.9239H56.9732Z",fill:"white"}),D.createElement("path",{d:"M50.1686 13.6522C50.1686 14.9561 49.7543 15.9476 48.8782 16.6607C48.0022 17.333 46.7934 17.6862 45.211 17.6862H44.0429V22.114H41.3333V9.88989H45.4147C46.9563 9.88989 48.1244 10.2091 48.9529 10.8407C49.7475 11.4722 50.1618 12.423 50.1618 13.6522H50.1686ZM44.0497 15.5877H44.9258C45.7611 15.5877 46.3859 15.4315 46.8001 15.1123C47.2144 14.7931 47.4249 14.3585 47.4249 13.7677C47.4249 13.1768 47.2552 12.7422 46.9224 12.423C46.5896 12.1446 46.0463 11.9884 45.2993 11.9884H44.0497V15.5877Z",fill:"white"}),D.createElement("path",{d:"M135.668 18.2995C135.668 19.5701 135.244 20.5258 134.397 21.1666C133.556 21.8019 132.308 22.1195 130.653 22.1195H127.309V9.89893H129.9V14.5882H130.736C132.302 14.5882 133.514 14.9142 134.372 15.5662C135.236 16.2126 135.668 17.1237 135.668 18.2995ZM129.9 19.9964H130.577C131.43 19.9964 132.054 19.857 132.45 19.5784C132.845 19.2942 133.043 18.8679 133.043 18.2995C133.043 17.7311 132.851 17.3243 132.466 17.0791C132.088 16.8339 131.419 16.7114 130.46 16.7114H129.9V19.9964ZM139.739 22.1195H137.156V9.89893H139.739V22.1195Z",fill:"white"}),D.createElement("path",{d:"M122.623 22.1195H120.032V12.0555H116.714V9.89893H125.942V12.0555H122.623V22.1195Z",fill:"white"}),D.createElement("path",{d:"M116.504 22.1195H113.562L109.132 15.9256V22.1195H106.541V9.89893H109.132V15.817L113.512 9.89893H116.27L111.815 15.7668L116.504 22.1195Z",fill:"white"}),D.createElement("path",{d:"M104.728 22.1195H97.6896V9.89893H104.728V12.0221H100.281V14.7052H104.418V16.8284H100.281V19.9796H104.728V22.1195Z",fill:"white"}),D.createElement("path",{d:"M95.8767 15.9924C95.8767 18.0152 95.3751 19.5699 94.3721 20.6566C93.369 21.7432 91.9313 22.2865 90.0589 22.2865C88.1866 22.2865 86.7489 21.7432 85.7458 20.6566C84.7427 19.5699 84.2412 18.0096 84.2412 15.9756C84.2412 13.9417 84.7427 12.3897 85.7458 11.3198C86.7544 10.2443 88.1977 9.70654 90.0757 9.70654C91.9536 9.70654 93.3885 10.2471 94.3804 11.3282C95.3779 12.4092 95.8767 13.964 95.8767 15.9924ZM86.9578 15.9924C86.9578 17.3576 87.2169 18.3858 87.7352 19.0768C88.2534 19.7678 89.028 20.1133 90.0589 20.1133C92.1263 20.1133 93.1601 18.7396 93.1601 15.9924C93.1601 13.2395 92.1319 11.8631 90.0757 11.8631C89.0447 11.8631 88.2674 12.2114 87.7436 12.908C87.2197 13.599 86.9578 14.6271 86.9578 15.9924Z",fill:"white"}),D.createElement("path",{d:"M77.1399 15.6498H77.9925C78.7894 15.6498 79.3857 15.4938 79.7813 15.1817C80.177 14.8641 80.3748 14.4043 80.3748 13.8025C80.3748 13.1951 80.2076 12.7465 79.8733 12.4567C79.5445 12.1669 79.0262 12.0221 78.3185 12.0221H77.1399V15.6498ZM82.9911 13.7105C82.9911 15.0257 82.5787 16.0315 81.754 16.7281C80.9348 17.4246 79.7674 17.7729 78.2517 17.7729H77.1399V22.1195H74.5487V9.89893H78.4523C79.9346 9.89893 81.0602 10.2193 81.8292 10.8602C82.6038 11.4955 82.9911 12.4456 82.9911 13.7105Z",fill:"white"}),D.createElement("path",{d:"M72.3219 22.1193H69.739V12.0553H65.242V22.1193H62.6508V9.89868H72.3219V22.1193Z",fill:"white"}),D.createElement("path",{d:"M27.846 0H4.15396C1.85979 0 0 1.85979 0 4.15396V27.846C0 30.1402 1.85979 32 4.15396 32H27.846C30.1402 32 32 30.1402 32 27.846V4.15396C32 1.85979 30.1402 0 27.846 0Z",fill:"#61B6FA"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.7987 10.2353C25.1892 10.6258 25.1892 11.259 24.7987 11.6495L14.6837 21.7644C14.2932 22.155 13.66 22.155 13.2695 21.7644L8.21208 16.707C7.82156 16.3165 7.82156 15.6833 8.21208 15.2928C8.60261 14.9023 9.23577 14.9023 9.6263 15.2928L13.9766 19.6431L23.3845 10.2353C23.775 9.84475 24.4082 9.84475 24.7987 10.2353Z",fill:"white"})),D.createElement("defs",null,D.createElement("clipPath",{id:"clip0_3531_2520"},D.createElement("rect",{width:140,height:32,fill:"white"})))),U7e=t=>D.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 138 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},D.createElement("path",{d:"M51.6466 21.9581L55.6466 12.1449C55.6873 12.1041 55.6466 12.0294 55.5719 12.0294H51.9997C51.9725 12.0294 51.9476 12.0158 51.925 11.9887L50.6958 10.0124C50.6551 9.97167 50.6958 9.89697 50.7705 9.89697H58.071C58.1118 9.89697 58.1457 9.93772 58.1457 9.97847V11.5201L54.071 22.0803C54.071 22.1211 54.0303 22.1211 53.9963 22.1211H51.7688C51.6534 22.0803 51.6126 22.0396 51.6534 21.9649L51.6466 21.9581Z",fill:"#333333"}),D.createElement("path",{d:"M57.4732 17.9239L58.132 16.0495C58.132 16.0088 58.1659 16.0088 58.1999 16.0088H61.4597C61.4936 16.0088 61.5276 16.0495 61.5276 16.0903V17.9646C61.5276 18.0054 61.4936 18.0461 61.4597 18.0461H57.5004C57.4665 18.0054 57.4325 17.9646 57.4665 17.9239H57.4732Z",fill:"#333333"}),D.createElement("path",{d:"M45.0962 9.90063C46.2046 9.90063 47.118 10.0343 47.8365 10.3017C48.5606 10.569 49.098 10.9728 49.4489 11.5131C49.7998 12.0533 49.9753 12.7356 49.9753 13.5599C49.9753 14.1169 49.8694 14.6042 49.6578 15.0219C49.4462 15.4397 49.1677 15.7933 48.8223 16.083C48.477 16.3726 48.1039 16.6093 47.7028 16.7931L51.2953 22.1149H48.4213L45.5056 17.428H44.1271V22.1149H41.5372V9.90063H45.0962ZM44.9124 12.0227H44.1271V15.3227H44.9626C45.8203 15.3227 46.433 15.1807 46.8006 14.8966C47.1737 14.607 47.3603 14.1837 47.3603 13.6267C47.3603 13.0475 47.1598 12.6353 46.7588 12.3903C46.3633 12.1452 45.7479 12.0227 44.9124 12.0227Z",fill:"#333333"}),D.createElement("path",{d:"M67.0389 9.90065C68.6151 9.90065 69.7652 10.2404 70.4893 10.9199C71.2133 11.5938 71.5754 12.524 71.5754 13.7103C71.5754 14.245 71.4946 14.7574 71.3331 15.2475C71.1716 15.7321 70.907 16.1637 70.5394 16.5425C70.1774 16.9212 69.6928 17.222 69.0857 17.4448C68.4786 17.662 67.7295 17.7706 66.8384 17.7706H65.7272V22.1149H63.1373V9.90065H67.0389ZM66.9052 12.0227H65.7272V15.6485H66.5794C67.0639 15.6485 67.4845 15.5845 67.8409 15.4564C68.1974 15.3283 68.4731 15.1278 68.668 14.8549C68.8629 14.582 68.9604 14.2311 68.9604 13.8022C68.9604 13.2007 68.7933 12.7551 68.4591 12.4655C68.125 12.1703 67.607 12.0227 66.9052 12.0227Z",fill:"#333333"}),D.createElement("path",{d:"M76.5847 9.90065C77.6931 9.90065 78.6065 10.0343 79.325 10.3017C80.049 10.569 80.5865 10.9728 80.9374 11.5131C81.2883 12.0533 81.4637 12.7356 81.4637 13.5599C81.4637 14.1169 81.3579 14.6042 81.1463 15.022C80.9346 15.4397 80.6561 15.7934 80.3108 16.083C79.9655 16.3726 79.5923 16.6093 79.1913 16.7931L82.7838 22.1149H79.9098L76.9941 17.428H75.6156V22.1149H73.0257V9.90065H76.5847ZM76.4009 12.0227H75.6156V15.3227H76.451C77.3088 15.3227 77.9214 15.1807 78.289 14.8966C78.6622 14.607 78.8488 14.1837 78.8488 13.6268C78.8488 13.0475 78.6483 12.6354 78.2473 12.3903C77.8518 12.1452 77.2364 12.0227 76.4009 12.0227Z",fill:"#333333"}),D.createElement("path",{d:"M94.5519 15.9911C94.5519 16.9323 94.4349 17.7901 94.201 18.5643C93.9671 19.3329 93.6106 19.9957 93.1316 20.5526C92.6582 21.1096 92.0567 21.5385 91.3271 21.8392C90.5974 22.1344 89.7341 22.282 88.7372 22.282C87.7402 22.282 86.8769 22.1344 86.1473 21.8392C85.4176 21.5385 84.8133 21.1096 84.3343 20.5526C83.8609 19.9957 83.5073 19.3301 83.2733 18.5559C83.0394 17.7817 82.9224 16.9212 82.9224 15.9744C82.9224 14.7101 83.1285 13.61 83.5407 12.6743C83.9584 11.7331 84.5989 11.0034 85.4622 10.4855C86.3255 9.96749 87.4227 9.7085 88.7539 9.7085C90.0795 9.7085 91.1683 9.96749 92.0205 10.4855C92.8782 11.0034 93.5132 11.7331 93.9253 12.6743C94.343 13.6156 94.5519 14.7212 94.5519 15.9911ZM85.6376 15.9911C85.6376 16.8432 85.7435 17.5784 85.9551 18.1967C86.1723 18.8093 86.5093 19.2827 86.966 19.6169C87.4227 19.9455 88.0131 20.1098 88.7372 20.1098C89.4724 20.1098 90.0683 19.9455 90.525 19.6169C90.9817 19.2827 91.3131 18.8093 91.5192 18.1967C91.7309 17.5784 91.8367 16.8432 91.8367 15.9911C91.8367 14.7101 91.5972 13.7019 91.1182 12.9667C90.6392 12.2316 89.8511 11.864 88.7539 11.864C88.0242 11.864 87.4283 12.031 86.966 12.3652C86.5093 12.6938 86.1723 13.1673 85.9551 13.7855C85.7435 14.3982 85.6376 15.1333 85.6376 15.9911Z",fill:"#333333"}),D.createElement("path",{d:"M94.9496 25.7073C94.6154 25.7073 94.323 25.6879 94.0723 25.6489C93.8161 25.6154 93.5989 25.5737 93.4207 25.5236V23.3681C93.5989 23.4071 93.7911 23.4433 93.9972 23.4767C94.1977 23.5157 94.4121 23.5352 94.6404 23.5352C94.9412 23.5352 95.2113 23.4767 95.4508 23.3597C95.6903 23.2483 95.8797 23.0339 96.0189 22.7164C96.1582 22.399 96.2278 21.9423 96.2278 21.3463V9.90065H98.8177V21.3296C98.8177 22.3767 98.6534 23.2205 98.3248 23.861C98.0017 24.5071 97.5478 24.9749 96.963 25.2646C96.3838 25.5598 95.7126 25.7073 94.9496 25.7073Z",fill:"#333333"}),D.createElement("path",{d:"M108.071 22.1149H101.037V9.90065H108.071V12.0227H103.627V14.7045H107.762V16.8265H103.627V19.9762H108.071V22.1149Z",fill:"#333333"}),D.createElement("path",{d:"M114.96 11.8807C114.465 11.8807 114.025 11.9781 113.64 12.1731C113.261 12.3624 112.941 12.6381 112.679 13.0002C112.423 13.3622 112.228 13.7994 112.095 14.3118C111.961 14.8242 111.894 15.4007 111.894 16.0412C111.894 16.9045 112 17.6425 112.212 18.2551C112.429 18.8622 112.763 19.3273 113.214 19.6503C113.665 19.9678 114.247 20.1265 114.96 20.1265C115.456 20.1265 115.952 20.0709 116.447 19.9595C116.949 19.8481 117.492 19.6893 118.076 19.4833V21.6554C117.536 21.8782 117.004 22.0369 116.481 22.1316C115.957 22.2319 115.37 22.282 114.718 22.282C113.459 22.282 112.423 22.023 111.61 21.505C110.802 20.9815 110.204 20.2519 109.814 19.3162C109.424 18.3749 109.229 17.2777 109.229 16.0245C109.229 15.0999 109.354 14.2533 109.605 13.4847C109.856 12.7161 110.223 12.0505 110.708 11.488C111.192 10.9255 111.791 10.491 112.504 10.1847C113.217 9.87837 114.036 9.72521 114.96 9.72521C115.567 9.72521 116.174 9.80318 116.782 9.95913C117.394 10.1095 117.979 10.3184 118.536 10.5857L117.701 12.691C117.244 12.4738 116.784 12.2845 116.322 12.1229C115.86 11.9614 115.406 11.8807 114.96 11.8807Z",fill:"#333333"}),D.createElement("path",{d:"M124.54 22.1149H121.95V12.0561H118.633V9.90065H127.856V12.0561H124.54V22.1149Z",fill:"#333333"}),D.createElement("path",{d:"M136.09 18.723C136.09 19.4471 135.915 20.0764 135.564 20.6111C135.213 21.1458 134.701 21.558 134.027 21.8476C133.359 22.1372 132.545 22.282 131.587 22.282C131.164 22.282 130.749 22.2542 130.343 22.1985C129.942 22.1428 129.554 22.062 129.181 21.9562C128.814 21.8448 128.463 21.7083 128.129 21.5468V19.1407C128.708 19.3969 129.309 19.6281 129.933 19.8341C130.557 20.0402 131.175 20.1433 131.788 20.1433C132.211 20.1433 132.551 20.0876 132.807 19.9762C133.069 19.8648 133.258 19.7116 133.375 19.5167C133.492 19.3217 133.551 19.0989 133.551 18.8483C133.551 18.542 133.448 18.2802 133.242 18.063C133.035 17.8458 132.751 17.6425 132.389 17.4531C132.033 17.2637 131.629 17.0604 131.178 16.8432C130.894 16.7096 130.585 16.548 130.251 16.3587C129.916 16.1637 129.599 15.927 129.298 15.6485C128.997 15.3701 128.75 15.0331 128.555 14.6376C128.365 14.2366 128.271 13.7576 128.271 13.2007C128.271 12.471 128.438 11.8472 128.772 11.3293C129.106 10.8113 129.582 10.4158 130.201 10.1429C130.824 9.86445 131.56 9.72521 132.406 9.72521C133.041 9.72521 133.645 9.8004 134.219 9.95078C134.798 10.0956 135.403 10.3072 136.032 10.5857L135.196 12.5992C134.634 12.3708 134.13 12.1954 133.684 12.0728C133.239 11.9447 132.785 11.8807 132.323 11.8807C132 11.8807 131.724 11.9336 131.495 12.0394C131.267 12.1397 131.094 12.2845 130.977 12.4738C130.861 12.6576 130.802 12.8721 130.802 13.1171C130.802 13.4068 130.886 13.6518 131.053 13.8523C131.225 14.0473 131.482 14.2366 131.821 14.4204C132.167 14.6042 132.595 14.8187 133.108 15.0637C133.732 15.3589 134.264 15.668 134.704 15.9911C135.149 16.3085 135.492 16.6845 135.731 17.1189C135.971 17.5478 136.09 18.0825 136.09 18.723Z",fill:"#333333"}),D.createElement("path",{d:"M27.846 0H4.15396C1.85979 0 0 1.85979 0 4.15396V27.846C0 30.1402 1.85979 32 4.15396 32H27.846C30.1402 32 32 30.1402 32 27.846V4.15396C32 1.85979 30.1402 0 27.846 0Z",fill:"#61B6FA"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.7987 10.2353C25.1892 10.6258 25.1892 11.259 24.7987 11.6495L14.6837 21.7644C14.2932 22.155 13.66 22.155 13.2695 21.7644L8.21208 16.707C7.82156 16.3165 7.82156 15.6833 8.21208 15.2928C8.60261 14.9023 9.23577 14.9023 9.6263 15.2928L13.9766 19.6431L23.3845 10.2353C23.775 9.84475 24.4082 9.84475 24.7987 10.2353Z",fill:"white"})),B7e=t=>D.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 140 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},D.createElement("g",{clipPath:"url(#clip0_2073_1939)"},D.createElement("path",{d:"M51.1464 21.9578L55.1464 12.1446C55.1872 12.1039 55.1464 12.0292 55.0717 12.0292H51.4996C51.4724 12.0292 51.4475 12.0156 51.4249 11.9884L50.1957 10.0122C50.1549 9.97143 50.1957 9.89673 50.2704 9.89673H57.5709C57.6116 9.89673 57.6456 9.93747 57.6456 9.97822V11.5198L53.5709 22.0801C53.5709 22.1208 53.5301 22.1208 53.4962 22.1208H51.2687C51.1532 22.0801 51.1125 22.0393 51.1532 21.9646L51.1464 21.9578Z",fill:"#333333"}),D.createElement("path",{d:"M56.9732 17.9239L57.632 16.0495C57.632 16.0088 57.6659 16.0088 57.6999 16.0088H60.9597C60.9936 16.0088 61.0276 16.0495 61.0276 16.0903V17.9646C61.0276 18.0054 60.9936 18.0461 60.9597 18.0461H57.0004C56.9665 18.0054 56.9325 17.9646 56.9665 17.9239H56.9732Z",fill:"#333333"}),D.createElement("path",{d:"M50.1686 13.6522C50.1686 14.9561 49.7543 15.9476 48.8782 16.6607C48.0022 17.333 46.7934 17.6862 45.211 17.6862H44.0429V22.114H41.3333V9.88989H45.4147C46.9563 9.88989 48.1244 10.2091 48.9529 10.8407C49.7475 11.4722 50.1618 12.423 50.1618 13.6522H50.1686ZM44.0497 15.5877H44.9258C45.7611 15.5877 46.3859 15.4315 46.8001 15.1123C47.2144 14.7931 47.4249 14.3585 47.4249 13.7677C47.4249 13.1768 47.2552 12.7422 46.9224 12.423C46.5896 12.1446 46.0463 11.9884 45.2993 11.9884H44.0497V15.5877Z",fill:"#333333"}),D.createElement("path",{d:"M135.668 18.2995C135.668 19.5701 135.244 20.5258 134.397 21.1666C133.556 21.8019 132.308 22.1195 130.653 22.1195H127.309V9.89893H129.9V14.5882H130.736C132.302 14.5882 133.514 14.9142 134.372 15.5662C135.236 16.2126 135.668 17.1237 135.668 18.2995ZM129.9 19.9964H130.577C131.43 19.9964 132.054 19.857 132.45 19.5784C132.845 19.2942 133.043 18.8679 133.043 18.2995C133.043 17.7311 132.851 17.3243 132.466 17.0791C132.088 16.8339 131.419 16.7114 130.46 16.7114H129.9V19.9964ZM139.739 22.1195H137.156V9.89893H139.739V22.1195Z",fill:"#333333"}),D.createElement("path",{d:"M122.623 22.1195H120.032V12.0555H116.714V9.89893H125.942V12.0555H122.623V22.1195Z",fill:"#333333"}),D.createElement("path",{d:"M116.504 22.1195H113.562L109.132 15.9256V22.1195H106.541V9.89893H109.132V15.817L113.512 9.89893H116.27L111.815 15.7668L116.504 22.1195Z",fill:"#333333"}),D.createElement("path",{d:"M104.728 22.1195H97.6896V9.89893H104.728V12.0221H100.281V14.7052H104.418V16.8284H100.281V19.9796H104.728V22.1195Z",fill:"#333333"}),D.createElement("path",{d:"M95.8767 15.9924C95.8767 18.0152 95.3751 19.5699 94.3721 20.6566C93.369 21.7432 91.9313 22.2865 90.0589 22.2865C88.1866 22.2865 86.7489 21.7432 85.7458 20.6566C84.7427 19.5699 84.2412 18.0096 84.2412 15.9756C84.2412 13.9417 84.7427 12.3897 85.7458 11.3198C86.7544 10.2443 88.1977 9.70654 90.0757 9.70654C91.9536 9.70654 93.3885 10.2471 94.3804 11.3282C95.3779 12.4092 95.8767 13.964 95.8767 15.9924ZM86.9578 15.9924C86.9578 17.3576 87.2169 18.3858 87.7352 19.0768C88.2534 19.7678 89.028 20.1133 90.0589 20.1133C92.1263 20.1133 93.1601 18.7396 93.1601 15.9924C93.1601 13.2395 92.1319 11.8631 90.0757 11.8631C89.0447 11.8631 88.2674 12.2114 87.7436 12.908C87.2197 13.599 86.9578 14.6271 86.9578 15.9924Z",fill:"#333333"}),D.createElement("path",{d:"M77.1399 15.6498H77.9925C78.7894 15.6498 79.3857 15.4938 79.7813 15.1817C80.177 14.8641 80.3748 14.4043 80.3748 13.8025C80.3748 13.1951 80.2076 12.7465 79.8733 12.4567C79.5445 12.1669 79.0262 12.0221 78.3185 12.0221H77.1399V15.6498ZM82.9911 13.7105C82.9911 15.0257 82.5787 16.0315 81.754 16.7281C80.9348 17.4246 79.7674 17.7729 78.2517 17.7729H77.1399V22.1195H74.5487V9.89893H78.4523C79.9346 9.89893 81.0602 10.2193 81.8292 10.8602C82.6038 11.4955 82.9911 12.4456 82.9911 13.7105Z",fill:"#333333"}),D.createElement("path",{d:"M72.3219 22.1193H69.739V12.0553H65.242V22.1193H62.6508V9.89868H72.3219V22.1193Z",fill:"#333333"}),D.createElement("path",{d:"M27.846 0H4.15396C1.85979 0 0 1.85979 0 4.15396V27.846C0 30.1402 1.85979 32 4.15396 32H27.846C30.1402 32 32 30.1402 32 27.846V4.15396C32 1.85979 30.1402 0 27.846 0Z",fill:"#61B6FA"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.7987 10.2353C25.1892 10.6258 25.1892 11.259 24.7987 11.6495L14.6837 21.7644C14.2932 22.155 13.66 22.155 13.2695 21.7644L8.21208 16.707C7.82156 16.3165 7.82156 15.6833 8.21208 15.2928C8.60261 14.9023 9.23577 14.9023 9.6263 15.2928L13.9766 19.6431L23.3845 10.2353C23.775 9.84475 24.4082 9.84475 24.7987 10.2353Z",fill:"white"})),D.createElement("defs",null,D.createElement("clipPath",{id:"clip0_2073_1939"},D.createElement("rect",{width:140,height:32,fill:"white"})))),H7e={light:{ru:b.jsx(B7e,{}),en:b.jsx(U7e,{})},dark:{ru:b.jsx(z7e,{}),en:b.jsx(F7e,{})}},q7e=t=>{const e=be.c(6),n=Uk(),{i18n:r}=at(),s=H7e[n?"dark":"light"][r.language],i=n?"white":"black";let l;e[0]!==s?(l=s,e[0]=s,e[1]=l):l=e[1];let c;return e[2]!==t||e[3]!==i||e[4]!==l?(c=b.jsx(Lt,{w:150,c:i,...t,children:l}),e[2]=t,e[3]=i,e[4]=l,e[5]=c):c=e[5],c},V7e=()=>{var M,j;const t=be.c(13),e=(j=(M=wt.useGetProjectsQuery().data)==null?void 0:M.list.at(0))==null?void 0:j.Id,{isBurger:n,isMobile:r,toggle:o}=uf(),s=Lt,i="space-between",l="center",c="md",d=32,f=65,h=V7,p=e?fu(wn.folder,{folderId:e}):"/",v=n?o:void 0;let g;t[0]===Symbol.for("react.memo_cache_sentinel")?(g=b.jsx(q7e,{}),t[0]=g):g=t[0];let S;t[1]!==h||t[2]!==p||t[3]!==v?(S=b.jsx(h,{to:p,onClick:v,children:g}),t[1]=h,t[2]=p,t[3]=v,t[4]=S):S=t[4];const w=r?"transparent":"subtle";let _;t[5]===Symbol.for("react.memo_cache_sentinel")?(_=b.jsx(Q1e,{size:16}),t[5]=_):_=t[5];let E;t[6]!==w||t[7]!==o?(E=b.jsx(lr,{variant:w,color:"dark.1",mr:8,onClick:o,children:_}),t[6]=w,t[7]=o,t[8]=E):E=t[8];let T;return t[9]!==s||t[10]!==E||t[11]!==S?(T=b.jsxs(s,{justify:i,align:l,px:c,pl:d,h:f,children:[S,E]}),t[9]=s,t[10]=E,t[11]=S,t[12]=T):T=t[12],T},PB=t=>{const e=be.c(6),{value:n,active:r,isHidden:o}=t;if(!n)return null;let s;e[0]!==o?(s=Dr(Kv.counter,{[Kv.visibilityHidden]:o}),e[0]=o,e[1]=s):s=e[1];let i;return e[2]!==r||e[3]!==s||e[4]!==n?(i=b.jsx(pg,{className:s,"data-active":r,children:n}),e[2]=r,e[3]=s,e[4]=n,e[5]=i):i=e[5],i},Y7e="_navBg_y48pn_13",G7e={navBg:Y7e},W7e="_root_wup34_1",Q7e={root:W7e},K7e=t=>{const e=be.c(12),{leftSection:n,active:r,counter:o,onClick:s,children:i}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Dr(Q7e.root,G7e.navBg),e[0]=l):l=e[0];let c;e[1]!==i?(c=b.jsx(Dt,{flex:1,truncate:!0,children:i}),e[1]=i,e[2]=c):c=e[2];const d=o==null?void 0:o.value,f=o==null?void 0:o.active;let h;e[3]!==d||e[4]!==f?(h=b.jsx(PB,{value:d,active:f}),e[3]=d,e[4]=f,e[5]=h):h=e[5];let p;return e[6]!==r||e[7]!==n||e[8]!==s||e[9]!==c||e[10]!==h?(p=b.jsxs("div",{className:l,"data-active":r,onClick:s,children:[n,c,h]}),e[6]=r,e[7]=n,e[8]=s,e[9]=c,e[10]=h,e[11]=p):p=e[11],p},X7e=t=>{const e=be.c(26),{t:n}=at(),{data:r}=Ct.useGetCountersQuery();let o;e[0]!==r?(o=iO(r,"PerformerCount"),e[0]=r,e[1]=o):o=e[1];const s=o;let i;e[2]!==r?(i=iO(r,"UnreadCount"),e[2]=r,e[3]=i):i=e[3];const l=!!i;let c;e[4]!==l||e[5]!==s?(c={value:s,active:l},e[4]=l,e[5]=s,e[6]=c):c=e[6];const d=c,{isBurger:f,toggle:h}=uf();let p;e[7]!==n?(p=n("sidebar.myTasks"),e[7]=n,e[8]=p):p=e[8];let v;e[9]!==d||e[10]!==p?(v={value:wn.myIssues,label:p,icon:qE,counter:d},e[9]=d,e[10]=p,e[11]=v):v=e[11];let g;e[12]!==n?(g=n("sidebar.trash"),e[12]=n,e[13]=g):g=e[13];let S;e[14]!==g?(S={value:wn.trash,label:g,icon:Qx},e[14]=g,e[15]=S):S=e[15];let w;e[16]!==v||e[17]!==S?(w=[v,S],e[16]=v,e[17]=S,e[18]=w):w=e[18];const _=w;let E;e[19]!==f||e[20]!==_||e[21]!==h?(E=_.map(M=>b.jsx(Eee,{to:M.value,children:j=>{const{isActive:A}=j;return b.jsx(K7e,{active:A,counter:M.counter,leftSection:b.jsx(M.icon,{size:24,stroke:1.2}),onClick:k=>{var R;f&&h(),A||(R=M.onClick)==null||R.call(M,k)},children:M.label})}},M.value)),e[19]=f,e[20]=_,e[21]=h,e[22]=E):E=e[22];let T;return e[23]!==t||e[24]!==E?(T=b.jsx(_t,{gap:2,...t,children:E}),e[23]=t,e[24]=E,e[25]=T):T=e[25],T},V8=(t,e)=>t.reduce((n,r)=>!e.isProjectsShow&&r.State!==Ie.EntityState.Active?n:[...n,{data:r,id:r.Id.toString(),name:r.Name,isDroppable:r.isProject||r.isFolder,collapsed:!0,children:[...V8(r.Children,e),...Z7e(r.Sprints,e),...J7e(r.collections||[])]}],[]).sort(NB);function Z7e(t,e){return t.reduce((n,r)=>!e.isSprintsShow&&r.State!==Ie.EntityState.Active?n:[...n,{data:r,id:r.Id.toString(),name:r.Name,isDroppable:!1,collapsed:!0,children:[]}],[]).sort(NB)}function J7e(t){const e=[];for(const n of t)e.push({id:n.Id.toString(),name:n.Name,collapsed:!0,isDroppable:!1,data:n,children:[]});return e}const NB=(t,e)=>{var n,r,o,s;return(n=t.data)!=null&&n.Order&&((r=e.data)!=null&&r.Order)?((o=t.data)==null?void 0:o.Order)-((s=e.data)==null?void 0:s.Order):0},eEe=()=>{const t=be.c(11),e=tn(tEe);let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={withCollections:!0},t[0]=n):n=t[0];const{myProjects:r,otherProjects:o,isLoading:s}=Lk(n);let i;t[1]!==e.myProjects||t[2]!==r?(i=V8(r,e.myProjects),t[1]=e.myProjects,t[2]=r,t[3]=i):i=t[3];const l=i;let c;t[4]!==e.otherProjects||t[5]!==o?(c=V8(o,e.otherProjects),t[4]=e.otherProjects,t[5]=o,t[6]=c):c=t[6];const d=c;let f;return t[7]!==s||t[8]!==l||t[9]!==d?(f={isLoading:s,myProjectsTree:l,otherProjectsTree:d},t[7]=s,t[8]=l,t[9]=d,t[10]=f):f=t[10],f};function tEe(t){return t.archiveSlice}function nEe(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return D.useMemo(()=>r=>{e.forEach(o=>o(r))},e)}const R5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ng(t){const e=Object.prototype.toString.call(t);return e==="[object Window]"||e==="[object global]"}function Bk(t){return"nodeType"in t}function zs(t){var e,n;return t?Ng(t)?t:Bk(t)&&(e=(n=t.ownerDocument)==null?void 0:n.defaultView)!=null?e:window:window}function Hk(t){const{Document:e}=zs(t);return t instanceof e}function Q2(t){return Ng(t)?!1:t instanceof zs(t).HTMLElement}function IB(t){return t instanceof zs(t).SVGElement}function Ig(t){return t?Ng(t)?t.document:Bk(t)?Hk(t)?t:Q2(t)||IB(t)?t.ownerDocument:document:document:document}const ol=R5?D.useLayoutEffect:D.useEffect;function O5(t){const e=D.useRef(t);return ol(()=>{e.current=t}),D.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.current==null?void 0:e.current(...r)},[])}function rEe(){const t=D.useRef(null),e=D.useCallback((r,o)=>{t.current=setInterval(r,o)},[]),n=D.useCallback(()=>{t.current!==null&&(clearInterval(t.current),t.current=null)},[]);return[e,n]}function Xv(t,e){e===void 0&&(e=[t]);const n=D.useRef(t);return ol(()=>{n.current!==t&&(n.current=t)},e),n}function K2(t,e){const n=D.useRef();return D.useMemo(()=>{const r=t(n.current);return n.current=r,r},[...e])}function k4(t){const e=O5(t),n=D.useRef(null),r=D.useCallback(o=>{o!==n.current&&(e==null||e(o,n.current)),n.current=o},[]);return[n,r]}function M4(t){const e=D.useRef();return D.useEffect(()=>{e.current=t},[t]),e.current}let n9={};function X2(t,e){return D.useMemo(()=>{if(e)return e;const n=n9[t]==null?0:n9[t]+1;return n9[t]=n,t+"-"+n},[t,e])}function $B(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((s,i)=>{const l=Object.entries(i);for(const[c,d]of l){const f=s[c];f!=null&&(s[c]=f+t*d)}return s},{...e})}}const F1=$B(1),Zv=$B(-1);function oEe(t){return"clientX"in t&&"clientY"in t}function P5(t){if(!t)return!1;const{KeyboardEvent:e}=zs(t.target);return e&&t instanceof e}function sEe(t){if(!t)return!1;const{TouchEvent:e}=zs(t.target);return e&&t instanceof e}function j4(t){if(sEe(t)){if(t.touches&&t.touches.length){const{clientX:e,clientY:n}=t.touches[0];return{x:e,y:n}}else if(t.changedTouches&&t.changedTouches.length){const{clientX:e,clientY:n}=t.changedTouches[0];return{x:e,y:n}}}return oEe(t)?{x:t.clientX,y:t.clientY}:null}const lc=Object.freeze({Translate:{toString(t){if(!t)return;const{x:e,y:n}=t;return"translate3d("+(e?Math.round(e):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(t){if(!t)return;const{scaleX:e,scaleY:n}=t;return"scaleX("+e+") scaleY("+n+")"}},Transform:{toString(t){if(t)return[lc.Translate.toString(t),lc.Scale.toString(t)].join(" ")}},Transition:{toString(t){let{property:e,duration:n,easing:r}=t;return e+" "+n+"ms "+r}}}),mP="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function iEe(t){return t.matches(mP)?t:t.querySelector(mP)}const aEe={display:"none"};function lEe(t){let{id:e,value:n}=t;return Rn.createElement("div",{id:e,style:aEe},n)}function cEe(t){let{id:e,announcement:n,ariaLiveType:r="assertive"}=t;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Rn.createElement("div",{id:e,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function uEe(){const[t,e]=D.useState("");return{announce:D.useCallback(r=>{r!=null&&e(r)},[]),announcement:t}}const LB=D.createContext(null);function dEe(t){const e=D.useContext(LB);D.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(t)},[t,e])}function fEe(){const[t]=D.useState(()=>new Set),e=D.useCallback(r=>(t.add(r),()=>t.delete(r)),[t]);return[D.useCallback(r=>{let{type:o,event:s}=r;t.forEach(i=>{var l;return(l=i[o])==null?void 0:l.call(i,s)})},[t]),e]}const hEe={draggable:`
    To pick up a draggable item, press the space bar.
    While dragging, use the arrow keys to move the item.
    Press space again to drop the item in its new position, or press escape to cancel.
  `},pEe={onDragStart(t){let{active:e}=t;return"Picked up draggable item "+e.id+"."},onDragOver(t){let{active:e,over:n}=t;return n?"Draggable item "+e.id+" was moved over droppable area "+n.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(t){let{active:e,over:n}=t;return n?"Draggable item "+e.id+" was dropped over droppable area "+n.id:"Draggable item "+e.id+" was dropped."},onDragCancel(t){let{active:e}=t;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function mEe(t){let{announcements:e=pEe,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=hEe}=t;const{announce:s,announcement:i}=uEe(),l=X2("DndLiveRegion"),[c,d]=D.useState(!1);if(D.useEffect(()=>{d(!0)},[]),dEe(D.useMemo(()=>({onDragStart(h){let{active:p}=h;s(e.onDragStart({active:p}))},onDragMove(h){let{active:p,over:v}=h;e.onDragMove&&s(e.onDragMove({active:p,over:v}))},onDragOver(h){let{active:p,over:v}=h;s(e.onDragOver({active:p,over:v}))},onDragEnd(h){let{active:p,over:v}=h;s(e.onDragEnd({active:p,over:v}))},onDragCancel(h){let{active:p,over:v}=h;s(e.onDragCancel({active:p,over:v}))}}),[s,e])),!c)return null;const f=Rn.createElement(Rn.Fragment,null,Rn.createElement(lEe,{id:r,value:o.draggable}),Rn.createElement(cEe,{id:l,announcement:i}));return n?Qa.createPortal(f,n):f}var To;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(To||(To={}));function D4(){}function gP(t,e){return D.useMemo(()=>({sensor:t,options:e??{}}),[t,e])}function gEe(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return D.useMemo(()=>[...e].filter(r=>r!=null),[...e])}const sl=Object.freeze({x:0,y:0});function FB(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function yEe(t,e){const n=j4(t);if(!n)return"0 0";const r={x:(n.x-e.left)/e.width*100,y:(n.y-e.top)/e.height*100};return r.x+"% "+r.y+"%"}function zB(t,e){let{data:{value:n}}=t,{data:{value:r}}=e;return n-r}function vEe(t,e){let{data:{value:n}}=t,{data:{value:r}}=e;return r-n}function yP(t){let{left:e,top:n,height:r,width:o}=t;return[{x:e,y:n},{x:e+o,y:n},{x:e,y:n+r},{x:e+o,y:n+r}]}function UB(t,e){if(!t||t.length===0)return null;const[n]=t;return n[e]}function vP(t,e,n){return e===void 0&&(e=t.left),n===void 0&&(n=t.top),{x:e+t.width*.5,y:n+t.height*.5}}const tAe=t=>{let{collisionRect:e,droppableRects:n,droppableContainers:r}=t;const o=vP(e,e.left,e.top),s=[];for(const i of r){const{id:l}=i,c=n.get(l);if(c){const d=FB(vP(c),o);s.push({id:l,data:{droppableContainer:i,value:d}})}}return s.sort(zB)},BB=t=>{let{collisionRect:e,droppableRects:n,droppableContainers:r}=t;const o=yP(e),s=[];for(const i of r){const{id:l}=i,c=n.get(l);if(c){const d=yP(c),f=o.reduce((p,v,g)=>p+FB(d[g],v),0),h=Number((f/4).toFixed(4));s.push({id:l,data:{droppableContainer:i,value:h}})}}return s.sort(zB)};function bEe(t,e){const n=Math.max(e.top,t.top),r=Math.max(e.left,t.left),o=Math.min(e.left+e.width,t.left+t.width),s=Math.min(e.top+e.height,t.top+t.height),i=o-r,l=s-n;if(r<o&&n<s){const c=e.width*e.height,d=t.width*t.height,f=i*l,h=f/(c+d-f);return Number(h.toFixed(4))}return 0}const SEe=t=>{let{collisionRect:e,droppableRects:n,droppableContainers:r}=t;const o=[];for(const s of r){const{id:i}=s,l=n.get(i);if(l){const c=bEe(l,e);c>0&&o.push({id:i,data:{droppableContainer:s,value:c}})}}return o.sort(vEe)};function wEe(t,e,n){return{...t,scaleX:e&&n?e.width/n.width:1,scaleY:e&&n?e.height/n.height:1}}function HB(t,e){return t&&e?{x:t.left-e.left,y:t.top-e.top}:sl}function xEe(t){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return o.reduce((i,l)=>({...i,top:i.top+t*l.y,bottom:i.bottom+t*l.y,left:i.left+t*l.x,right:i.right+t*l.x}),{...n})}}const CEe=xEe(1);function qB(t){if(t.startsWith("matrix3d(")){const e=t.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(t.startsWith("matrix(")){const e=t.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function _Ee(t,e,n){const r=qB(e);if(!r)return t;const{scaleX:o,scaleY:s,x:i,y:l}=r,c=t.left-i-(1-o)*parseFloat(n),d=t.top-l-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),f=o?t.width/o:t.width,h=s?t.height/s:t.height;return{width:f,height:h,top:d,right:c+f,bottom:d+h,left:c}}const TEe={ignoreTransform:!1};function $g(t,e){e===void 0&&(e=TEe);let n=t.getBoundingClientRect();if(e.ignoreTransform){const{transform:d,transformOrigin:f}=zs(t).getComputedStyle(t);d&&(n=_Ee(n,d,f))}const{top:r,left:o,width:s,height:i,bottom:l,right:c}=n;return{top:r,left:o,width:s,height:i,bottom:l,right:c}}function bP(t){return $g(t,{ignoreTransform:!0})}function EEe(t){const e=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:e,bottom:n,width:e,height:n}}function kEe(t,e){return e===void 0&&(e=zs(t).getComputedStyle(t)),e.position==="fixed"}function MEe(t,e){e===void 0&&(e=zs(t).getComputedStyle(t));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const s=e[o];return typeof s=="string"?n.test(s):!1})}function N5(t,e){const n=[];function r(o){if(e!=null&&n.length>=e||!o)return n;if(Hk(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Q2(o)||IB(o)||n.includes(o))return n;const s=zs(t).getComputedStyle(o);return o!==t&&MEe(o,s)&&n.push(o),kEe(o,s)?n:r(o.parentNode)}return t?r(t):n}function VB(t){const[e]=N5(t,1);return e??null}function r9(t){return!R5||!t?null:Ng(t)?t:Bk(t)?Hk(t)||t===Ig(t).scrollingElement?window:Q2(t)?t:null:null}function YB(t){return Ng(t)?t.scrollX:t.scrollLeft}function GB(t){return Ng(t)?t.scrollY:t.scrollTop}function Y8(t){return{x:YB(t),y:GB(t)}}var Oo;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(Oo||(Oo={}));function WB(t){return!R5||!t?!1:t===document.scrollingElement}function QB(t){const e={x:0,y:0},n=WB(t)?{height:window.innerHeight,width:window.innerWidth}:{height:t.clientHeight,width:t.clientWidth},r={x:t.scrollWidth-n.width,y:t.scrollHeight-n.height},o=t.scrollTop<=e.y,s=t.scrollLeft<=e.x,i=t.scrollTop>=r.y,l=t.scrollLeft>=r.x;return{isTop:o,isLeft:s,isBottom:i,isRight:l,maxScroll:r,minScroll:e}}const jEe={x:.2,y:.2};function DEe(t,e,n,r,o){let{top:s,left:i,right:l,bottom:c}=n;r===void 0&&(r=10),o===void 0&&(o=jEe);const{isTop:d,isBottom:f,isLeft:h,isRight:p}=QB(t),v={x:0,y:0},g={x:0,y:0},S={height:e.height*o.y,width:e.width*o.x};return!d&&s<=e.top+S.height?(v.y=Oo.Backward,g.y=r*Math.abs((e.top+S.height-s)/S.height)):!f&&c>=e.bottom-S.height&&(v.y=Oo.Forward,g.y=r*Math.abs((e.bottom-S.height-c)/S.height)),!p&&l>=e.right-S.width?(v.x=Oo.Forward,g.x=r*Math.abs((e.right-S.width-l)/S.width)):!h&&i<=e.left+S.width&&(v.x=Oo.Backward,g.x=r*Math.abs((e.left+S.width-i)/S.width)),{direction:v,speed:g}}function AEe(t){if(t===document.scrollingElement){const{innerWidth:s,innerHeight:i}=window;return{top:0,left:0,right:s,bottom:i,width:s,height:i}}const{top:e,left:n,right:r,bottom:o}=t.getBoundingClientRect();return{top:e,left:n,right:r,bottom:o,width:t.clientWidth,height:t.clientHeight}}function KB(t){return t.reduce((e,n)=>F1(e,Y8(n)),sl)}function REe(t){return t.reduce((e,n)=>e+YB(n),0)}function OEe(t){return t.reduce((e,n)=>e+GB(n),0)}function XB(t,e){if(e===void 0&&(e=$g),!t)return;const{top:n,left:r,bottom:o,right:s}=e(t);VB(t)&&(o<=0||s<=0||n>=window.innerHeight||r>=window.innerWidth)&&t.scrollIntoView({block:"center",inline:"center"})}const PEe=[["x",["left","right"],REe],["y",["top","bottom"],OEe]];class qk{constructor(e,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=N5(n),o=KB(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[s,i,l]of PEe)for(const c of i)Object.defineProperty(this,c,{get:()=>{const d=l(r),f=o[s]-d;return this.rect[c]+f},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class yv{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=e}add(e,n,r){var o;(o=this.target)==null||o.addEventListener(e,n,r),this.listeners.push([e,n,r])}}function NEe(t){const{EventTarget:e}=zs(t);return t instanceof e?t:Ig(t)}function o9(t,e){const n=Math.abs(t.x),r=Math.abs(t.y);return typeof e=="number"?Math.sqrt(n**2+r**2)>e:"x"in e&&"y"in e?n>e.x&&r>e.y:"x"in e?n>e.x:"y"in e?r>e.y:!1}var ca;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(ca||(ca={}));function SP(t){t.preventDefault()}function IEe(t){t.stopPropagation()}var Fn;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(Fn||(Fn={}));const ZB={start:[Fn.Space,Fn.Enter],cancel:[Fn.Esc],end:[Fn.Space,Fn.Enter,Fn.Tab]},$Ee=(t,e)=>{let{currentCoordinates:n}=e;switch(t.code){case Fn.Right:return{...n,x:n.x+25};case Fn.Left:return{...n,x:n.x-25};case Fn.Down:return{...n,y:n.y+25};case Fn.Up:return{...n,y:n.y-25}}};class JB{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:n}}=e;this.props=e,this.listeners=new yv(Ig(n)),this.windowListeners=new yv(zs(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ca.Resize,this.handleCancel),this.windowListeners.add(ca.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ca.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:n}=this.props,r=e.node.current;r&&XB(r),n(sl)}handleKeyDown(e){if(P5(e)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:s=ZB,coordinateGetter:i=$Ee,scrollBehavior:l="smooth"}=o,{code:c}=e;if(s.end.includes(c)){this.handleEnd(e);return}if(s.cancel.includes(c)){this.handleCancel(e);return}const{collisionRect:d}=r.current,f=d?{x:d.left,y:d.top}:sl;this.referenceCoordinates||(this.referenceCoordinates=f);const h=i(e,{active:n,context:r.current,currentCoordinates:f});if(h){const p=Zv(h,f),v={x:0,y:0},{scrollableAncestors:g}=r.current;for(const S of g){const w=e.code,{isTop:_,isRight:E,isLeft:T,isBottom:M,maxScroll:j,minScroll:A}=QB(S),k=AEe(S),R={x:Math.min(w===Fn.Right?k.right-k.width/2:k.right,Math.max(w===Fn.Right?k.left:k.left+k.width/2,h.x)),y:Math.min(w===Fn.Down?k.bottom-k.height/2:k.bottom,Math.max(w===Fn.Down?k.top:k.top+k.height/2,h.y))},N=w===Fn.Right&&!E||w===Fn.Left&&!T,I=w===Fn.Down&&!M||w===Fn.Up&&!_;if(N&&R.x!==h.x){const L=S.scrollLeft+p.x,F=w===Fn.Right&&L<=j.x||w===Fn.Left&&L>=A.x;if(F&&!p.y){S.scrollTo({left:L,behavior:l});return}F?v.x=S.scrollLeft-L:v.x=w===Fn.Right?S.scrollLeft-j.x:S.scrollLeft-A.x,v.x&&S.scrollBy({left:-v.x,behavior:l});break}else if(I&&R.y!==h.y){const L=S.scrollTop+p.y,F=w===Fn.Down&&L<=j.y||w===Fn.Up&&L>=A.y;if(F&&!p.x){S.scrollTo({top:L,behavior:l});return}F?v.y=S.scrollTop-L:v.y=w===Fn.Down?S.scrollTop-j.y:S.scrollTop-A.y,v.y&&S.scrollBy({top:-v.y,behavior:l});break}}this.handleMove(e,F1(Zv(h,this.referenceCoordinates),v))}}}handleMove(e,n){const{onMove:r}=this.props;e.preventDefault(),r(n)}handleEnd(e){const{onEnd:n}=this.props;e.preventDefault(),this.detach(),n()}handleCancel(e){const{onCancel:n}=this.props;e.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}JB.activators=[{eventName:"onKeyDown",handler:(t,e,n)=>{let{keyboardCodes:r=ZB,onActivation:o}=e,{active:s}=n;const{code:i}=t.nativeEvent;if(r.start.includes(i)){const l=s.activatorNode.current;return l&&t.target!==l?!1:(t.preventDefault(),o==null||o({event:t.nativeEvent}),!0)}return!1}}];function wP(t){return!!(t&&"distance"in t)}function xP(t){return!!(t&&"delay"in t)}class Vk{constructor(e,n,r){var o;r===void 0&&(r=NEe(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=n;const{event:s}=e,{target:i}=s;this.props=e,this.events=n,this.document=Ig(i),this.documentListeners=new yv(this.document),this.listeners=new yv(r),this.windowListeners=new yv(zs(i)),this.initialCoordinates=(o=j4(s))!=null?o:sl,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(ca.Resize,this.handleCancel),this.windowListeners.add(ca.DragStart,SP),this.windowListeners.add(ca.VisibilityChange,this.handleCancel),this.windowListeners.add(ca.ContextMenu,SP),this.documentListeners.add(ca.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(xP(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(wP(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,n){const{active:r,onPending:o}=this.props;o(r,e,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:e}=this,{onStart:n}=this.props;e&&(this.activated=!0,this.documentListeners.add(ca.Click,IEe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ca.SelectionChange,this.removeTextSelection),n(e))}handleMove(e){var n;const{activated:r,initialCoordinates:o,props:s}=this,{onMove:i,options:{activationConstraint:l}}=s;if(!o)return;const c=(n=j4(e))!=null?n:sl,d=Zv(o,c);if(!r&&l){if(wP(l)){if(l.tolerance!=null&&o9(d,l.tolerance))return this.handleCancel();if(o9(d,l.distance))return this.handleStart()}if(xP(l)&&o9(d,l.tolerance))return this.handleCancel();this.handlePending(l,d);return}e.cancelable&&e.preventDefault(),i(c)}handleEnd(){const{onAbort:e,onEnd:n}=this.props;this.detach(),this.activated||e(this.props.active),n()}handleCancel(){const{onAbort:e,onCancel:n}=this.props;this.detach(),this.activated||e(this.props.active),n()}handleKeydown(e){e.code===Fn.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const LEe={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class eH extends Vk{constructor(e){const{event:n}=e,r=Ig(n.target);super(e,LEe,r)}}eH.activators=[{eventName:"onPointerDown",handler:(t,e)=>{let{nativeEvent:n}=t,{onActivation:r}=e;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const FEe={move:{name:"mousemove"},end:{name:"mouseup"}};var G8;(function(t){t[t.RightClick=2]="RightClick"})(G8||(G8={}));class tH extends Vk{constructor(e){super(e,FEe,Ig(e.event.target))}}tH.activators=[{eventName:"onMouseDown",handler:(t,e)=>{let{nativeEvent:n}=t,{onActivation:r}=e;return n.button===G8.RightClick?!1:(r==null||r({event:n}),!0)}}];const s9={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class nH extends Vk{constructor(e){super(e,s9)}static setup(){return window.addEventListener(s9.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(s9.move.name,e)};function e(){}}}nH.activators=[{eventName:"onTouchStart",handler:(t,e)=>{let{nativeEvent:n}=t,{onActivation:r}=e;const{touches:o}=n;return o.length>1?!1:(r==null||r({event:n}),!0)}}];var vv;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(vv||(vv={}));var A4;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(A4||(A4={}));function zEe(t){let{acceleration:e,activator:n=vv.Pointer,canScroll:r,draggingRect:o,enabled:s,interval:i=5,order:l=A4.TreeOrder,pointerCoordinates:c,scrollableAncestors:d,scrollableAncestorRects:f,delta:h,threshold:p}=t;const v=BEe({delta:h,disabled:!s}),[g,S]=rEe(),w=D.useRef({x:0,y:0}),_=D.useRef({x:0,y:0}),E=D.useMemo(()=>{switch(n){case vv.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case vv.DraggableRect:return o}},[n,o,c]),T=D.useRef(null),M=D.useCallback(()=>{const A=T.current;if(!A)return;const k=w.current.x*_.current.x,R=w.current.y*_.current.y;A.scrollBy(k,R)},[]),j=D.useMemo(()=>l===A4.TreeOrder?[...d].reverse():d,[l,d]);D.useEffect(()=>{if(!s||!d.length||!E){S();return}for(const A of j){if((r==null?void 0:r(A))===!1)continue;const k=d.indexOf(A),R=f[k];if(!R)continue;const{direction:N,speed:I}=DEe(A,R,E,e,p);for(const L of["x","y"])v[L][N[L]]||(I[L]=0,N[L]=0);if(I.x>0||I.y>0){S(),T.current=A,g(M,i),w.current=I,_.current=N;return}}w.current={x:0,y:0},_.current={x:0,y:0},S()},[e,M,r,S,s,i,JSON.stringify(E),JSON.stringify(v),g,d,j,f,JSON.stringify(p)])}const UEe={x:{[Oo.Backward]:!1,[Oo.Forward]:!1},y:{[Oo.Backward]:!1,[Oo.Forward]:!1}};function BEe(t){let{delta:e,disabled:n}=t;const r=M4(e);return K2(o=>{if(n||!r||!o)return UEe;const s={x:Math.sign(e.x-r.x),y:Math.sign(e.y-r.y)};return{x:{[Oo.Backward]:o.x[Oo.Backward]||s.x===-1,[Oo.Forward]:o.x[Oo.Forward]||s.x===1},y:{[Oo.Backward]:o.y[Oo.Backward]||s.y===-1,[Oo.Forward]:o.y[Oo.Forward]||s.y===1}}},[n,e,r])}function HEe(t,e){const n=e!=null?t.get(e):void 0,r=n?n.node.current:null;return K2(o=>{var s;return e==null?null:(s=r??o)!=null?s:null},[r,e])}function qEe(t,e){return D.useMemo(()=>t.reduce((n,r)=>{const{sensor:o}=r,s=o.activators.map(i=>({eventName:i.eventName,handler:e(i.handler,r)}));return[...n,...s]},[]),[t,e])}var sg;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(sg||(sg={}));var W8;(function(t){t.Optimized="optimized"})(W8||(W8={}));const CP=new Map;function VEe(t,e){let{dragging:n,dependencies:r,config:o}=e;const[s,i]=D.useState(null),{frequency:l,measure:c,strategy:d}=o,f=D.useRef(t),h=w(),p=Xv(h),v=D.useCallback(function(_){_===void 0&&(_=[]),!p.current&&i(E=>E===null?_:E.concat(_.filter(T=>!E.includes(T))))},[p]),g=D.useRef(null),S=K2(_=>{if(h&&!n)return CP;if(!_||_===CP||f.current!==t||s!=null){const E=new Map;for(let T of t){if(!T)continue;if(s&&s.length>0&&!s.includes(T.id)&&T.rect.current){E.set(T.id,T.rect.current);continue}const M=T.node.current,j=M?new qk(c(M),M):null;T.rect.current=j,j&&E.set(T.id,j)}return E}return _},[t,s,n,h,c]);return D.useEffect(()=>{f.current=t},[t]),D.useEffect(()=>{h||v()},[n,h]),D.useEffect(()=>{s&&s.length>0&&i(null)},[JSON.stringify(s)]),D.useEffect(()=>{h||typeof l!="number"||g.current!==null||(g.current=setTimeout(()=>{v(),g.current=null},l))},[l,h,v,...r]),{droppableRects:S,measureDroppableContainers:v,measuringScheduled:s!=null};function w(){switch(d){case sg.Always:return!1;case sg.BeforeDragging:return n;default:return!n}}}function Yk(t,e){return K2(n=>t?n||(typeof e=="function"?e(t):t):null,[e,t])}function YEe(t,e){return Yk(t,e)}function GEe(t){let{callback:e,disabled:n}=t;const r=O5(e),o=D.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:s}=window;return new s(r)},[r,n]);return D.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function I5(t){let{callback:e,disabled:n}=t;const r=O5(e),o=D.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:s}=window;return new s(r)},[n]);return D.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function WEe(t){return new qk($g(t),t)}function _P(t,e,n){e===void 0&&(e=WEe);const[r,o]=D.useState(null);function s(){o(c=>{if(!t)return null;if(t.isConnected===!1){var d;return(d=c??n)!=null?d:null}const f=e(t);return JSON.stringify(c)===JSON.stringify(f)?c:f})}const i=GEe({callback(c){if(t)for(const d of c){const{type:f,target:h}=d;if(f==="childList"&&h instanceof HTMLElement&&h.contains(t)){s();break}}}}),l=I5({callback:s});return ol(()=>{s(),t?(l==null||l.observe(t),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(l==null||l.disconnect(),i==null||i.disconnect())},[t]),r}function QEe(t){const e=Yk(t);return HB(t,e)}const TP=[];function KEe(t){const e=D.useRef(t),n=K2(r=>t?r&&r!==TP&&t&&e.current&&t.parentNode===e.current.parentNode?r:N5(t):TP,[t]);return D.useEffect(()=>{e.current=t},[t]),n}function XEe(t){const[e,n]=D.useState(null),r=D.useRef(t),o=D.useCallback(s=>{const i=r9(s.target);i&&n(l=>l?(l.set(i,Y8(i)),new Map(l)):null)},[]);return D.useEffect(()=>{const s=r.current;if(t!==s){i(s);const l=t.map(c=>{const d=r9(c);return d?(d.addEventListener("scroll",o,{passive:!0}),[d,Y8(d)]):null}).filter(c=>c!=null);n(l.length?new Map(l):null),r.current=t}return()=>{i(t),i(s)};function i(l){l.forEach(c=>{const d=r9(c);d==null||d.removeEventListener("scroll",o)})}},[o,t]),D.useMemo(()=>t.length?e?Array.from(e.values()).reduce((s,i)=>F1(s,i),sl):KB(t):sl,[t,e])}function EP(t,e){e===void 0&&(e=[]);const n=D.useRef(null);return D.useEffect(()=>{n.current=null},e),D.useEffect(()=>{const r=t!==sl;r&&!n.current&&(n.current=t),!r&&n.current&&(n.current=null)},[t]),n.current?Zv(t,n.current):sl}function ZEe(t){D.useEffect(()=>{if(!R5)return;const e=t.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of e)n==null||n()}},t.map(e=>{let{sensor:n}=e;return n}))}function JEe(t,e){return D.useMemo(()=>t.reduce((n,r)=>{let{eventName:o,handler:s}=r;return n[o]=i=>{s(i,e)},n},{}),[t,e])}function rH(t){return D.useMemo(()=>t?EEe(t):null,[t])}const kP=[];function eke(t,e){e===void 0&&(e=$g);const[n]=t,r=rH(n?zs(n):null),[o,s]=D.useState(kP);function i(){s(()=>t.length?t.map(c=>WB(c)?r:new qk(e(c),c)):kP)}const l=I5({callback:i});return ol(()=>{l==null||l.disconnect(),i(),t.forEach(c=>l==null?void 0:l.observe(c))},[t]),o}function oH(t){if(!t)return null;if(t.children.length>1)return t;const e=t.children[0];return Q2(e)?e:t}function tke(t){let{measure:e}=t;const[n,r]=D.useState(null),o=D.useCallback(d=>{for(const{target:f}of d)if(Q2(f)){r(h=>{const p=e(f);return h?{...h,width:p.width,height:p.height}:p});break}},[e]),s=I5({callback:o}),i=D.useCallback(d=>{const f=oH(d);s==null||s.disconnect(),f&&(s==null||s.observe(f)),r(f?e(f):null)},[e,s]),[l,c]=k4(i);return D.useMemo(()=>({nodeRef:l,rect:n,setRef:c}),[n,l,c])}const nke=[{sensor:eH,options:{}},{sensor:JB,options:{}}],rke={current:{}},Cw={draggable:{measure:bP},droppable:{measure:bP,strategy:sg.WhileDragging,frequency:W8.Optimized},dragOverlay:{measure:$g}};class bv extends Map{get(e){var n;return e!=null&&(n=super.get(e))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:n}=e;return!n})}getNodeFor(e){var n,r;return(n=(r=this.get(e))==null?void 0:r.node.current)!=null?n:void 0}}const oke={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new bv,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:D4},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Cw,measureDroppableContainers:D4,windowRect:null,measuringScheduled:!1},sH={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:D4,draggableNodes:new Map,over:null,measureDroppableContainers:D4},Z2=D.createContext(sH),iH=D.createContext(oke);function ske(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new bv}}}function ike(t,e){switch(e.type){case To.DragStart:return{...t,draggable:{...t.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case To.DragMove:return t.draggable.active==null?t:{...t,draggable:{...t.draggable,translate:{x:e.coordinates.x-t.draggable.initialCoordinates.x,y:e.coordinates.y-t.draggable.initialCoordinates.y}}};case To.DragEnd:case To.DragCancel:return{...t,draggable:{...t.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case To.RegisterDroppable:{const{element:n}=e,{id:r}=n,o=new bv(t.droppable.containers);return o.set(r,n),{...t,droppable:{...t.droppable,containers:o}}}case To.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=e,s=t.droppable.containers.get(n);if(!s||r!==s.key)return t;const i=new bv(t.droppable.containers);return i.set(n,{...s,disabled:o}),{...t,droppable:{...t.droppable,containers:i}}}case To.UnregisterDroppable:{const{id:n,key:r}=e,o=t.droppable.containers.get(n);if(!o||r!==o.key)return t;const s=new bv(t.droppable.containers);return s.delete(n),{...t,droppable:{...t.droppable,containers:s}}}default:return t}}function ake(t){let{disabled:e}=t;const{active:n,activatorEvent:r,draggableNodes:o}=D.useContext(Z2),s=M4(r),i=M4(n==null?void 0:n.id);return D.useEffect(()=>{if(!e&&!r&&s&&i!=null){if(!P5(s)||document.activeElement===s.target)return;const l=o.get(i);if(!l)return;const{activatorNode:c,node:d}=l;if(!c.current&&!d.current)return;requestAnimationFrame(()=>{for(const f of[c.current,d.current]){if(!f)continue;const h=iEe(f);if(h){h.focus();break}}})}},[r,e,o,i,s]),null}function aH(t,e){let{transform:n,...r}=e;return t!=null&&t.length?t.reduce((o,s)=>s({transform:o,...r}),n):n}function lke(t){return D.useMemo(()=>({draggable:{...Cw.draggable,...t==null?void 0:t.draggable},droppable:{...Cw.droppable,...t==null?void 0:t.droppable},dragOverlay:{...Cw.dragOverlay,...t==null?void 0:t.dragOverlay}}),[t==null?void 0:t.draggable,t==null?void 0:t.droppable,t==null?void 0:t.dragOverlay])}function cke(t){let{activeNode:e,measure:n,initialRect:r,config:o=!0}=t;const s=D.useRef(!1),{x:i,y:l}=typeof o=="boolean"?{x:o,y:o}:o;ol(()=>{if(!i&&!l||!e){s.current=!1;return}if(s.current||!r)return;const d=e==null?void 0:e.node.current;if(!d||d.isConnected===!1)return;const f=n(d),h=HB(f,r);if(i||(h.x=0),l||(h.y=0),s.current=!0,Math.abs(h.x)>0||Math.abs(h.y)>0){const p=VB(d);p&&p.scrollBy({top:h.y,left:h.x})}},[e,i,l,r,n])}const $5=D.createContext({...sl,scaleX:1,scaleY:1});var Md;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(Md||(Md={}));const uke=D.memo(function(e){var n,r,o,s;let{id:i,accessibility:l,autoScroll:c=!0,children:d,sensors:f=nke,collisionDetection:h=SEe,measuring:p,modifiers:v,...g}=e;const S=D.useReducer(ike,void 0,ske),[w,_]=S,[E,T]=fEe(),[M,j]=D.useState(Md.Uninitialized),A=M===Md.Initialized,{draggable:{active:k,nodes:R,translate:N},droppable:{containers:I}}=w,L=k!=null?R.get(k):null,F=D.useRef({initial:null,translated:null}),H=D.useMemo(()=>{var Sn;return k!=null?{id:k,data:(Sn=L==null?void 0:L.data)!=null?Sn:rke,rect:F}:null},[k,L]),B=D.useRef(null),[Y,U]=D.useState(null),[q,z]=D.useState(null),W=Xv(g,Object.values(g)),K=X2("DndDescribedBy",i),G=D.useMemo(()=>I.getEnabled(),[I]),X=lke(p),{droppableRects:J,measureDroppableContainers:ne,measuringScheduled:se}=VEe(G,{dragging:A,dependencies:[N.x,N.y],config:X.droppable}),ie=HEe(R,k),oe=D.useMemo(()=>q?j4(q):null,[q]),de=Ot(),pe=YEe(ie,X.draggable.measure);cke({activeNode:k!=null?R.get(k):null,config:de.layoutShiftCompensation,initialRect:pe,measure:X.draggable.measure});const fe=_P(ie,X.draggable.measure,pe),Te=_P(ie?ie.parentElement:null),we=D.useRef({activatorEvent:null,active:null,activeNode:ie,collisionRect:null,collisions:null,droppableRects:J,draggableNodes:R,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),_e=I.getNodeFor((n=we.current.over)==null?void 0:n.id),De=tke({measure:X.dragOverlay.measure}),Ze=(r=De.nodeRef.current)!=null?r:ie,ze=A?(o=De.rect)!=null?o:fe:null,Xe=!!(De.nodeRef.current&&De.rect),Ke=QEe(Xe?null:fe),ot=rH(Ze?zs(Ze):null),st=KEe(A?_e??ie:null),mt=eke(st),bt=aH(v,{transform:{x:N.x-Ke.x,y:N.y-Ke.y,scaleX:1,scaleY:1},activatorEvent:q,active:H,activeNodeRect:fe,containerNodeRect:Te,draggingNodeRect:ze,over:we.current.over,overlayNodeRect:De.rect,scrollableAncestors:st,scrollableAncestorRects:mt,windowRect:ot}),At=oe?F1(oe,N):null,ct=XEe(st),cn=EP(ct),bn=EP(ct,[fe]),Tt=F1(bt,cn),Ft=ze?CEe(ze,bt):null,Xt=H&&Ft?h({active:H,collisionRect:Ft,droppableRects:J,droppableContainers:G,pointerCoordinates:At}):null,_n=UB(Xt,"id"),[un,Zt]=D.useState(null),Jt=Xe?bt:F1(bt,bn),en=wEe(Jt,(s=un==null?void 0:un.rect)!=null?s:null,fe),It=D.useRef(null),he=D.useCallback((Sn,Je)=>{let{sensor:vt,options:$t}=Je;if(B.current==null)return;const dn=R.get(B.current);if(!dn)return;const Yt=Sn.nativeEvent,Gt=new vt({active:B.current,activeNode:dn,event:Yt,options:$t,context:we,onAbort(Tn){if(!R.get(Tn))return;const{onDragAbort:ce}=W.current,ye={id:Tn};ce==null||ce(ye),E({type:"onDragAbort",event:ye})},onPending(Tn,le,ce,ye){if(!R.get(Tn))return;const{onDragPending:Ye}=W.current,tt={id:Tn,constraint:le,initialCoordinates:ce,offset:ye};Ye==null||Ye(tt),E({type:"onDragPending",event:tt})},onStart(Tn){const le=B.current;if(le==null)return;const ce=R.get(le);if(!ce)return;const{onDragStart:ye}=W.current,$e={activatorEvent:Yt,active:{id:le,data:ce.data,rect:F}};Qa.unstable_batchedUpdates(()=>{ye==null||ye($e),j(Md.Initializing),_({type:To.DragStart,initialCoordinates:Tn,active:le}),E({type:"onDragStart",event:$e}),U(It.current),z(Yt)})},onMove(Tn){_({type:To.DragMove,coordinates:Tn})},onEnd:$n(To.DragEnd),onCancel:$n(To.DragCancel)});It.current=Gt;function $n(Tn){return async function(){const{active:ce,collisions:ye,over:$e,scrollAdjustedTranslate:Ye}=we.current;let tt=null;if(ce&&Ye){const{cancelDrop:Et}=W.current;tt={activatorEvent:Yt,active:ce,collisions:ye,delta:Ye,over:$e},Tn===To.DragEnd&&typeof Et=="function"&&await Promise.resolve(Et(tt))&&(Tn=To.DragCancel)}B.current=null,Qa.unstable_batchedUpdates(()=>{_({type:Tn}),j(Md.Uninitialized),Zt(null),U(null),z(null),It.current=null;const Et=Tn===To.DragEnd?"onDragEnd":"onDragCancel";if(tt){const nt=W.current[Et];nt==null||nt(tt),E({type:Et,event:tt})}})}}},[R]),Ce=D.useCallback((Sn,Je)=>(vt,$t)=>{const dn=vt.nativeEvent,Yt=R.get($t);if(B.current!==null||!Yt||dn.dndKit||dn.defaultPrevented)return;const Gt={active:Yt};Sn(vt,Je.options,Gt)===!0&&(dn.dndKit={capturedBy:Je.sensor},B.current=$t,he(vt,Je))},[R,he]),St=qEe(f,Ce);ZEe(f),ol(()=>{fe&&M===Md.Initializing&&j(Md.Initialized)},[fe,M]),D.useEffect(()=>{const{onDragMove:Sn}=W.current,{active:Je,activatorEvent:vt,collisions:$t,over:dn}=we.current;if(!Je||!vt)return;const Yt={active:Je,activatorEvent:vt,collisions:$t,delta:{x:Tt.x,y:Tt.y},over:dn};Qa.unstable_batchedUpdates(()=>{Sn==null||Sn(Yt),E({type:"onDragMove",event:Yt})})},[Tt.x,Tt.y]),D.useEffect(()=>{const{active:Sn,activatorEvent:Je,collisions:vt,droppableContainers:$t,scrollAdjustedTranslate:dn}=we.current;if(!Sn||B.current==null||!Je||!dn)return;const{onDragOver:Yt}=W.current,Gt=$t.get(_n),$n=Gt&&Gt.rect.current?{id:Gt.id,rect:Gt.rect.current,data:Gt.data,disabled:Gt.disabled}:null,Tn={active:Sn,activatorEvent:Je,collisions:vt,delta:{x:dn.x,y:dn.y},over:$n};Qa.unstable_batchedUpdates(()=>{Zt($n),Yt==null||Yt(Tn),E({type:"onDragOver",event:Tn})})},[_n]),ol(()=>{we.current={activatorEvent:q,active:H,activeNode:ie,collisionRect:Ft,collisions:Xt,droppableRects:J,draggableNodes:R,draggingNode:Ze,draggingNodeRect:ze,droppableContainers:I,over:un,scrollableAncestors:st,scrollAdjustedTranslate:Tt},F.current={initial:ze,translated:Ft}},[H,ie,Xt,Ft,R,Ze,ze,J,I,un,st,Tt]),zEe({...de,delta:N,draggingRect:Ft,pointerCoordinates:At,scrollableAncestors:st,scrollableAncestorRects:mt});const gt=D.useMemo(()=>({active:H,activeNode:ie,activeNodeRect:fe,activatorEvent:q,collisions:Xt,containerNodeRect:Te,dragOverlay:De,draggableNodes:R,droppableContainers:I,droppableRects:J,over:un,measureDroppableContainers:ne,scrollableAncestors:st,scrollableAncestorRects:mt,measuringConfiguration:X,measuringScheduled:se,windowRect:ot}),[H,ie,fe,q,Xt,Te,De,R,I,J,un,ne,st,mt,X,se,ot]),Ut=D.useMemo(()=>({activatorEvent:q,activators:St,active:H,activeNodeRect:fe,ariaDescribedById:{draggable:K},dispatch:_,draggableNodes:R,over:un,measureDroppableContainers:ne}),[q,St,H,fe,_,K,R,un,ne]);return Rn.createElement(LB.Provider,{value:T},Rn.createElement(Z2.Provider,{value:Ut},Rn.createElement(iH.Provider,{value:gt},Rn.createElement($5.Provider,{value:en},d)),Rn.createElement(ake,{disabled:(l==null?void 0:l.restoreFocus)===!1})),Rn.createElement(mEe,{...l,hiddenTextDescribedById:K}));function Ot(){const Sn=(Y==null?void 0:Y.autoScrollEnabled)===!1,Je=typeof c=="object"?c.enabled===!1:c===!1,vt=A&&!Sn&&!Je;return typeof c=="object"?{...c,enabled:vt}:{enabled:vt}}}),dke=D.createContext(null),MP="button",fke="Draggable";function hke(t){let{id:e,data:n,disabled:r=!1,attributes:o}=t;const s=X2(fke),{activators:i,activatorEvent:l,active:c,activeNodeRect:d,ariaDescribedById:f,draggableNodes:h,over:p}=D.useContext(Z2),{role:v=MP,roleDescription:g="draggable",tabIndex:S=0}=o??{},w=(c==null?void 0:c.id)===e,_=D.useContext(w?$5:dke),[E,T]=k4(),[M,j]=k4(),A=JEe(i,e),k=Xv(n);ol(()=>(h.set(e,{id:e,key:s,node:E,activatorNode:M,data:k}),()=>{const N=h.get(e);N&&N.key===s&&h.delete(e)}),[h,e]);const R=D.useMemo(()=>({role:v,tabIndex:S,"aria-disabled":r,"aria-pressed":w&&v===MP?!0:void 0,"aria-roledescription":g,"aria-describedby":f.draggable}),[r,v,S,w,g,f.draggable]);return{active:c,activatorEvent:l,activeNodeRect:d,attributes:R,isDragging:w,listeners:r?void 0:A,node:E,over:p,setNodeRef:T,setActivatorNodeRef:j,transform:_}}function Gk(){return D.useContext(iH)}const pke="Droppable",mke={timeout:25};function gke(t){let{data:e,disabled:n=!1,id:r,resizeObserverConfig:o}=t;const s=X2(pke),{active:i,dispatch:l,over:c,measureDroppableContainers:d}=D.useContext(Z2),f=D.useRef({disabled:n}),h=D.useRef(!1),p=D.useRef(null),v=D.useRef(null),{disabled:g,updateMeasurementsFor:S,timeout:w}={...mke,...o},_=Xv(S??r),E=D.useCallback(()=>{if(!h.current){h.current=!0;return}v.current!=null&&clearTimeout(v.current),v.current=setTimeout(()=>{d(Array.isArray(_.current)?_.current:[_.current]),v.current=null},w)},[w]),T=I5({callback:E,disabled:g||!i}),M=D.useCallback((R,N)=>{T&&(N&&(T.unobserve(N),h.current=!1),R&&T.observe(R))},[T]),[j,A]=k4(M),k=Xv(e);return D.useEffect(()=>{!T||!j.current||(T.disconnect(),h.current=!1,T.observe(j.current))},[j,T]),D.useEffect(()=>(l({type:To.RegisterDroppable,element:{id:r,key:s,disabled:n,node:j,rect:p,data:k}}),()=>l({type:To.UnregisterDroppable,key:s,id:r})),[r]),D.useEffect(()=>{n!==f.current.disabled&&(l({type:To.SetDroppableDisabled,id:r,key:s,disabled:n}),f.current.disabled=n)},[r,s,n,l]),{active:i,rect:p,isOver:(c==null?void 0:c.id)===r,node:j,over:c,setNodeRef:A}}function yke(t){let{animation:e,children:n}=t;const[r,o]=D.useState(null),[s,i]=D.useState(null),l=M4(n);return!n&&!r&&l&&o(l),ol(()=>{if(!s)return;const c=r==null?void 0:r.key,d=r==null?void 0:r.props.id;if(c==null||d==null){o(null);return}Promise.resolve(e(d,s)).then(()=>{o(null)})},[e,r,s]),Rn.createElement(Rn.Fragment,null,n,r?D.cloneElement(r,{ref:i}):null)}const vke={x:0,y:0,scaleX:1,scaleY:1};function bke(t){let{children:e}=t;return Rn.createElement(Z2.Provider,{value:sH},Rn.createElement($5.Provider,{value:vke},e))}const Ske={position:"fixed",touchAction:"none"},wke=t=>P5(t)?"transform 250ms ease":void 0,xke=D.forwardRef((t,e)=>{let{as:n,activatorEvent:r,adjustScale:o,children:s,className:i,rect:l,style:c,transform:d,transition:f=wke}=t;if(!l)return null;const h=o?d:{...d,scaleX:1,scaleY:1},p={...Ske,width:l.width,height:l.height,top:l.top,left:l.left,transform:lc.Transform.toString(h),transformOrigin:o&&r?yEe(r,l):void 0,transition:typeof f=="function"?f(r):f,...c};return Rn.createElement(n,{className:i,style:p,ref:e},s)}),Cke=t=>e=>{let{active:n,dragOverlay:r}=e;const o={},{styles:s,className:i}=t;if(s!=null&&s.active)for(const[l,c]of Object.entries(s.active))c!==void 0&&(o[l]=n.node.style.getPropertyValue(l),n.node.style.setProperty(l,c));if(s!=null&&s.dragOverlay)for(const[l,c]of Object.entries(s.dragOverlay))c!==void 0&&r.node.style.setProperty(l,c);return i!=null&&i.active&&n.node.classList.add(i.active),i!=null&&i.dragOverlay&&r.node.classList.add(i.dragOverlay),function(){for(const[c,d]of Object.entries(o))n.node.style.setProperty(c,d);i!=null&&i.active&&n.node.classList.remove(i.active)}},_ke=t=>{let{transform:{initial:e,final:n}}=t;return[{transform:lc.Transform.toString(e)},{transform:lc.Transform.toString(n)}]},Q8={duration:250,easing:"ease",keyframes:_ke,sideEffects:Cke({styles:{active:{opacity:"0"}}})};function Tke(t){let{config:e,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=t;return O5((s,i)=>{if(e===null)return;const l=n.get(s);if(!l)return;const c=l.node.current;if(!c)return;const d=oH(i);if(!d)return;const{transform:f}=zs(i).getComputedStyle(i),h=qB(f);if(!h)return;const p=typeof e=="function"?e:Eke(e);return XB(c,o.draggable.measure),p({active:{id:s,data:l.data,node:c,rect:o.draggable.measure(c)},draggableNodes:n,dragOverlay:{node:i,rect:o.dragOverlay.measure(d)},droppableContainers:r,measuringConfiguration:o,transform:h})})}function Eke(t){const{duration:e,easing:n,sideEffects:r,keyframes:o}={...Q8,...t};return s=>{let{active:i,dragOverlay:l,transform:c,...d}=s;if(!e)return;const f={x:l.rect.left-i.rect.left,y:l.rect.top-i.rect.top},h={scaleX:c.scaleX!==1?i.rect.width*c.scaleX/l.rect.width:1,scaleY:c.scaleY!==1?i.rect.height*c.scaleY/l.rect.height:1},p={x:c.x-f.x,y:c.y-f.y,...h},v=o({...d,active:i,dragOverlay:l,transform:{initial:c,final:p}}),[g]=v,S=v[v.length-1];if(JSON.stringify(g)===JSON.stringify(S))return;const w=r==null?void 0:r({active:i,dragOverlay:l,...d}),_=l.node.animate(v,{duration:e,easing:n,fill:"forwards"});return new Promise(E=>{_.onfinish=()=>{w==null||w(),E()}})}}let jP=0;function kke(t){return D.useMemo(()=>{if(t!=null)return jP++,jP},[t])}const Mke=Rn.memo(t=>{let{adjustScale:e=!1,children:n,dropAnimation:r,style:o,transition:s,modifiers:i,wrapperElement:l="div",className:c,zIndex:d=999}=t;const{activatorEvent:f,active:h,activeNodeRect:p,containerNodeRect:v,draggableNodes:g,droppableContainers:S,dragOverlay:w,over:_,measuringConfiguration:E,scrollableAncestors:T,scrollableAncestorRects:M,windowRect:j}=Gk(),A=D.useContext($5),k=kke(h==null?void 0:h.id),R=aH(i,{activatorEvent:f,active:h,activeNodeRect:p,containerNodeRect:v,draggingNodeRect:w.rect,over:_,overlayNodeRect:w.rect,scrollableAncestors:T,scrollableAncestorRects:M,transform:A,windowRect:j}),N=Yk(p),I=Tke({config:r,draggableNodes:g,droppableContainers:S,measuringConfiguration:E}),L=N?w.setRef:void 0;return Rn.createElement(bke,null,Rn.createElement(yke,{animation:I},h&&k?Rn.createElement(xke,{key:k,id:h.id,ref:L,as:l,activatorEvent:f,adjustScale:e,className:c,transition:s,rect:N,style:{zIndex:d,...o},transform:R},n):null))});function L5(t,e,n){const r=t.slice();return r.splice(n<0?r.length+n:n,0,r.splice(e,1)[0]),r}function jke(t,e){return t.reduce((n,r,o)=>{const s=e.get(r);return s&&(n[o]=s),n},Array(t.length))}function q3(t){return t!==null&&t>=0}function Dke(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function Ake(t){return typeof t=="boolean"?{draggable:t,droppable:t}:t}const V3={scaleX:1,scaleY:1},nAe=t=>{var e;let{rects:n,activeNodeRect:r,activeIndex:o,overIndex:s,index:i}=t;const l=(e=n[o])!=null?e:r;if(!l)return null;const c=Rke(n,i,o);if(i===o){const d=n[s];return d?{x:o<s?d.left+d.width-(l.left+l.width):d.left-l.left,y:0,...V3}:null}return i>o&&i<=s?{x:-l.width-c,y:0,...V3}:i<o&&i>=s?{x:l.width+c,y:0,...V3}:{x:0,y:0,...V3}};function Rke(t,e,n){const r=t[e],o=t[e-1],s=t[e+1];return!r||!o&&!s?0:n<e?o?r.left-(o.left+o.width):s.left-(r.left+r.width):s?s.left-(r.left+r.width):r.left-(o.left+o.width)}const lH=t=>{let{rects:e,activeIndex:n,overIndex:r,index:o}=t;const s=L5(e,r,n),i=e[o],l=s[o];return!l||!i?null:{x:l.left-i.left,y:l.top-i.top,scaleX:l.width/i.width,scaleY:l.height/i.height}},Y3={scaleX:1,scaleY:1},Oke=t=>{var e;let{activeIndex:n,activeNodeRect:r,index:o,rects:s,overIndex:i}=t;const l=(e=s[n])!=null?e:r;if(!l)return null;if(o===n){const d=s[i];return d?{x:0,y:n<i?d.top+d.height-(l.top+l.height):d.top-l.top,...Y3}:null}const c=Pke(s,o,n);return o>n&&o<=i?{x:0,y:-l.height-c,...Y3}:o<n&&o>=i?{x:0,y:l.height+c,...Y3}:{x:0,y:0,...Y3}};function Pke(t,e,n){const r=t[e],o=t[e-1],s=t[e+1];return r?n<e?o?r.top-(o.top+o.height):s?s.top-(r.top+r.height):0:s?s.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}const cH="Sortable",uH=Rn.createContext({activeIndex:-1,containerId:cH,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:lH,disabled:{draggable:!1,droppable:!1}});function Nke(t){let{children:e,id:n,items:r,strategy:o=lH,disabled:s=!1}=t;const{active:i,dragOverlay:l,droppableRects:c,over:d,measureDroppableContainers:f}=Gk(),h=X2(cH,n),p=l.rect!==null,v=D.useMemo(()=>r.map(A=>typeof A=="object"&&"id"in A?A.id:A),[r]),g=i!=null,S=i?v.indexOf(i.id):-1,w=d?v.indexOf(d.id):-1,_=D.useRef(v),E=!Dke(v,_.current),T=w!==-1&&S===-1||E,M=Ake(s);ol(()=>{E&&g&&f(v)},[E,v,g,f]),D.useEffect(()=>{_.current=v},[v]);const j=D.useMemo(()=>({activeIndex:S,containerId:h,disabled:M,disableTransforms:T,items:v,overIndex:w,useDragOverlay:p,sortedRects:jke(v,c),strategy:o}),[S,h,M.draggable,M.droppable,T,v,w,c,p,o]);return Rn.createElement(uH.Provider,{value:j},e)}const Ike=t=>{let{id:e,items:n,activeIndex:r,overIndex:o}=t;return L5(n,r,o).indexOf(e)},$ke=t=>{let{containerId:e,isSorting:n,wasDragging:r,index:o,items:s,newIndex:i,previousItems:l,previousContainerId:c,transition:d}=t;return!d||!r||l!==s&&o===i?!1:n?!0:i!==o&&e===c},Lke={duration:200,easing:"ease"},dH="transform",Fke=lc.Transition.toString({property:dH,duration:0,easing:"linear"}),zke={roleDescription:"sortable"};function Uke(t){let{disabled:e,index:n,node:r,rect:o}=t;const[s,i]=D.useState(null),l=D.useRef(n);return ol(()=>{if(!e&&n!==l.current&&r.current){const c=o.current;if(c){const d=$g(r.current,{ignoreTransform:!0}),f={x:c.left-d.left,y:c.top-d.top,scaleX:c.width/d.width,scaleY:c.height/d.height};(f.x||f.y)&&i(f)}}n!==l.current&&(l.current=n)},[e,n,r,o]),D.useEffect(()=>{s&&i(null)},[s]),s}function Bke(t){let{animateLayoutChanges:e=$ke,attributes:n,disabled:r,data:o,getNewIndex:s=Ike,id:i,strategy:l,resizeObserverConfig:c,transition:d=Lke}=t;const{items:f,containerId:h,activeIndex:p,disabled:v,disableTransforms:g,sortedRects:S,overIndex:w,useDragOverlay:_,strategy:E}=D.useContext(uH),T=Hke(r,v),M=f.indexOf(i),j=D.useMemo(()=>({sortable:{containerId:h,index:M,items:f},...o}),[h,o,M,f]),A=D.useMemo(()=>f.slice(f.indexOf(i)),[f,i]),{rect:k,node:R,isOver:N,setNodeRef:I}=gke({id:i,data:j,disabled:T.droppable,resizeObserverConfig:{updateMeasurementsFor:A,...c}}),{active:L,activatorEvent:F,activeNodeRect:H,attributes:B,setNodeRef:Y,listeners:U,isDragging:q,over:z,setActivatorNodeRef:W,transform:K}=hke({id:i,data:j,attributes:{...zke,...n},disabled:T.draggable}),G=nEe(I,Y),X=!!L,J=X&&!g&&q3(p)&&q3(w),ne=!_&&q,se=ne&&J?K:null,oe=J?se??(l??E)({rects:S,activeNodeRect:H,activeIndex:p,overIndex:w,index:M}):null,de=q3(p)&&q3(w)?s({id:i,items:f,activeIndex:p,overIndex:w}):M,pe=L==null?void 0:L.id,fe=D.useRef({activeId:pe,items:f,newIndex:de,containerId:h}),Te=f!==fe.current.items,we=e({active:L,containerId:h,isDragging:q,isSorting:X,id:i,index:M,items:f,newIndex:fe.current.newIndex,previousItems:fe.current.items,previousContainerId:fe.current.containerId,transition:d,wasDragging:fe.current.activeId!=null}),_e=Uke({disabled:!we,index:M,node:R,rect:k});return D.useEffect(()=>{X&&fe.current.newIndex!==de&&(fe.current.newIndex=de),h!==fe.current.containerId&&(fe.current.containerId=h),f!==fe.current.items&&(fe.current.items=f)},[X,de,h,f]),D.useEffect(()=>{if(pe===fe.current.activeId)return;if(pe!=null&&fe.current.activeId==null){fe.current.activeId=pe;return}const Ze=setTimeout(()=>{fe.current.activeId=pe},50);return()=>clearTimeout(Ze)},[pe]),{active:L,activeIndex:p,attributes:B,data:j,rect:k,index:M,newIndex:de,items:f,isOver:N,isSorting:X,isDragging:q,listeners:U,node:R,overIndex:w,over:z,setNodeRef:G,setActivatorNodeRef:W,setDroppableNodeRef:I,setDraggableNodeRef:Y,transform:_e??oe,transition:De()};function De(){if(_e||Te&&fe.current.newIndex===M)return Fke;if(!(ne&&!P5(F)||!d)&&(X||we))return lc.Transition.toString({...d,property:dH})}}function Hke(t,e){var n,r;return typeof t=="boolean"?{draggable:t,droppable:!1}:{draggable:(n=t==null?void 0:t.draggable)!=null?n:e.draggable,droppable:(r=t==null?void 0:t.droppable)!=null?r:e.droppable}}function R4(t){if(!t)return!1;const e=t.data.current;return!!(e&&"sortable"in e&&typeof e.sortable=="object"&&"containerId"in e.sortable&&"items"in e.sortable&&"index"in e.sortable)}const qke=[Fn.Down,Fn.Right,Fn.Up,Fn.Left],rAe=(t,e)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:s,over:i,scrollableAncestors:l}}=e;if(qke.includes(t.code)){if(t.preventDefault(),!n||!r)return;const c=[];s.getEnabled().forEach(h=>{if(!h||h!=null&&h.disabled)return;const p=o.get(h.id);if(p)switch(t.code){case Fn.Down:r.top<p.top&&c.push(h);break;case Fn.Up:r.top>p.top&&c.push(h);break;case Fn.Left:r.left>p.left&&c.push(h);break;case Fn.Right:r.left<p.left&&c.push(h);break}});const d=BB({collisionRect:r,droppableRects:o,droppableContainers:c});let f=UB(d,"id");if(f===(i==null?void 0:i.id)&&d.length>1&&(f=d[1].id),f!=null){const h=s.get(n.id),p=s.get(f),v=p?o.get(p.id):null,g=p==null?void 0:p.node.current;if(g&&v&&h&&p){const w=N5(g).some((A,k)=>l[k]!==A),_=fH(h,p),E=Vke(h,p),T=w||!_?{x:0,y:0}:{x:E?r.width-v.width:0,y:E?r.height-v.height:0},M={x:v.left,y:v.top};return T.x&&T.y?M:Zv(M,T)}}}};function fH(t,e){return!R4(t)||!R4(e)?!1:t.data.current.sortable.containerId===e.data.current.sortable.containerId}function Vke(t,e){return!R4(t)||!R4(e)||!fH(t,e)?!1:t.data.current.sortable.index<e.data.current.sortable.index}const hH=D.createContext({activeDragParentId:null}),Yke=()=>D.useContext(hH),Gke="_Wrapper_jidgh_1",Wke="_clone_jidgh_12",Qke="_TreeItem_jidgh_18",Kke="_Text_jidgh_22",Xke="_Count_jidgh_29",Zke="_disableInteraction_jidgh_45",Jke="_disableSelection_jidgh_49",eMe="_dragParentHighlight_jidgh_68",tMe="_navBg_jidgh_75",Hc={Wrapper:Gke,clone:Wke,TreeItem:Qke,Text:Kke,Count:Xke,disableInteraction:Zke,disableSelection:Jke,dragParentHighlight:eMe,navBg:tMe};function nMe(t){var bt;const e=be.c(88);let n,r;e[0]!==t?({ref:r,...n}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let o,s,i,l,c,d,f,h,p,v,g,S,w,_,E,T;if(e[3]!==n){const{clone:At,isDragging:ct,disableSelection:cn,disableInteraction:bn,style:Tt,handleProps:Ft,wrapperRef:Xt,childCount:_n,onCollapse:un,value:Zt,paddingLeft:Jt,data:en,renderTreeItem:It,renderIcon:he,expanded:Ce,id:St,...gt}=n;s=At,c=cn,l=bn,_=Tt,f=Ft,T=Xt,o=_n,p=un,E=Zt,v=Jt,i=en,S=It,g=he,d=Ce,h=St,w=gt,e[3]=n,e[4]=o,e[5]=s,e[6]=i,e[7]=l,e[8]=c,e[9]=d,e[10]=f,e[11]=h,e[12]=p,e[13]=v,e[14]=g,e[15]=S,e[16]=w,e[17]=_,e[18]=E,e[19]=T}else o=e[4],s=e[5],i=e[6],l=e[7],c=e[8],d=e[9],f=e[10],h=e[11],p=e[12],v=e[13],g=e[14],S=e[15],w=e[16],_=e[17],E=e[18],T=e[19];const M=ft(i,"isProject"),{hovered:j,ref:A}=ig(),{folderId:k,sprintId:R,collectionId:N}=q7();let I;e[20]!==N||e[21]!==k||e[22]!==h||e[23]!==R?(I=k===(h==null?void 0:h.toString())||R===(h==null?void 0:h.toString())||N===h.toString(),e[20]=N,e[21]=k,e[22]=h,e[23]=R,e[24]=I):I=e[24];const L=I,{active:F}=Gk(),B=j&&!!!F,{activeDragParentId:Y}=Yke(),U=Y===h;let q;e[25]!==i?(q=(ft(i,"pathById")||[]).map(String).slice(0,-1),e[25]=i,e[26]=q):q=e[26];const z=q,W=`${v}px`;let K;e[27]!==W?(K={paddingLeft:W},e[27]=W,e[28]=K):K=e[28];const G=K;let X;e:{if(M){X=!0;break e}const At=(bt=F==null?void 0:F.data.current)==null?void 0:bt.data;let ct;e[29]!==At?(ct=ft(At,"isProject"),e[29]=At,e[30]=ct):ct=e[30];const cn=ct;let bn;if(e[31]!==(F==null?void 0:F.id)||e[32]!==cn||e[33]!==d||e[34]!==z){const Tt=(F==null?void 0:F.id.toString())||"";bn=!cn&&z.every(Ft=>d.includes(Ft))&&!z.includes(Tt),e[31]=F==null?void 0:F.id,e[32]=cn,e[33]=d,e[34]=z,e[35]=bn}else bn=e[35];X=bn}const J=X;let ne;e[36]!==s||e[37]!==l||e[38]!==c||e[39]!==U||e[40]!==J?(ne=J?Dr(Hc.Wrapper,Hc.navBg,s&&Hc.clone,c&&Hc.disableSelection,l&&Hc.disableInteraction,U&&Hc.dragParentHighlight):void 0,e[36]=s,e[37]=l,e[38]=c,e[39]=U,e[40]=J,e[41]=ne):ne=e[41];const se=ne,ie=d.includes(h)?Cg:ez;let oe;e[42]!==d||e[43]!==h?(oe=d.includes(h),e[42]=d,e[43]=h,e[44]=oe):oe=e[44];const de=oe;let pe;e[45]!==i||e[46]!==de||e[47]!==g?(pe=g==null?void 0:g(i,de),e[45]=i,e[46]=de,e[47]=g,e[48]=pe):pe=e[48];const fe=pe;let Te;e[49]!==i||e[50]!==L||e[51]!==J||e[52]!==S||e[53]!==E?(Te=S?S({data:i,isActive:L,isOpen:!J}):E,e[49]=i,e[50]=L,e[51]=J,e[52]=S,e[53]=E,e[54]=Te):Te=e[54];const we=Te;let _e;e[55]!==ie||e[56]!==fe||e[57]!==p||e[58]!==B?(_e=p&&b.jsx(b.Fragment,{children:B?b.jsx(lr,{size:24,color:"gray.6",variant:"subtle",onClick:p,children:b.jsx(ie,{})}):fe}),e[55]=ie,e[56]=fe,e[57]=p,e[58]=B,e[59]=_e):_e=e[59];const De=!p&&fe;let Ze;e[60]!==f||e[61]!==we?(Ze=b.jsx("div",{className:Hc.Text,...f,children:we}),e[60]=f,e[61]=we,e[62]=Ze):Ze=e[62];let ze;e[63]!==_e||e[64]!==De||e[65]!==Ze?(ze=b.jsxs(Lt,{gap:12,miw:0,children:[_e,De,Ze]}),e[63]=_e,e[64]=De,e[65]=Ze,e[66]=ze):ze=e[66];let Xe;e[67]!==o||e[68]!==s?(Xe=s&&o&&o>1&&b.jsx("span",{className:Hc.Count,children:o}),e[67]=o,e[68]=s,e[69]=Xe):Xe=e[69];let Ke;e[70]!==r||e[71]!==_||e[72]!==ze||e[73]!==Xe?(Ke=b.jsxs("div",{className:Hc.TreeItem,ref:r,style:_,children:[ze,Xe]}),e[70]=r,e[71]=_,e[72]=ze,e[73]=Xe,e[74]=Ke):Ke=e[74];let ot;e[75]!==J||e[76]!==Ke?(ot=b.jsx(H4,{in:J,w:"100%",children:Ke}),e[75]=J,e[76]=Ke,e[77]=ot):ot=e[77];let st;e[78]!==se||e[79]!==L||e[80]!==w||e[81]!==ot||e[82]!==T||e[83]!==G?(st=b.jsx(je,{className:se,ref:T,style:G,...w,"data-active":L,children:ot}),e[78]=se,e[79]=L,e[80]=w,e[81]=ot,e[82]=T,e[83]=G,e[84]=st):st=e[84];let mt;return e[85]!==A||e[86]!==st?(mt=b.jsx("div",{ref:A,children:st}),e[85]=A,e[86]=st,e[87]=mt):mt=e[87],mt}const rMe=D.memo(nMe),oMe=({isSorting:t,wasDragging:e})=>!(t||e);function sMe(t){const e=be.c(35);let n,r,o,s,i,l,c;e[0]!==t?({id:s,depth:o,data:r,indentationWidth:i,clone:n,isTransform:l,...c}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s,e[5]=i,e[6]=l,e[7]=c):(n=e[1],r=e[2],o=e[3],s=e[4],i=e[5],l=e[6],c=e[7]);let d;e[8]!==r?(d={data:r},e[8]=r,e[9]=d):d=e[9];let f;e[10]!==s||e[11]!==d?(f={id:s,data:d,animateLayoutChanges:oMe},e[10]=s,e[11]=d,e[12]=f):f=e[12];const{attributes:h,isDragging:p,isSorting:v,listeners:g,setDraggableNodeRef:S,setDroppableNodeRef:w,transform:_,transition:E}=Bke(f);let T;e[13]!==l||e[14]!==_?(T=l?lc.Translate.toString(_):void 0,e[13]=l,e[14]=_,e[15]=T):T=e[15];let M;e[16]!==c.style||e[17]!==T||e[18]!==E?(M={transform:T,transition:E,...c.style},e[16]=c.style,e[17]=T,e[18]=E,e[19]=M):M=e[19];const j=M,A=i*(o+1);let k;e[20]!==h||e[21]!==g?(k={...h,...g},e[20]=h,e[21]=g,e[22]=k):k=e[22];const R=k;let N;return e[23]!==n||e[24]!==r||e[25]!==R||e[26]!==s||e[27]!==p||e[28]!==v||e[29]!==A||e[30]!==c||e[31]!==S||e[32]!==w||e[33]!==j?(N=b.jsx(rMe,{ref:S,wrapperRef:w,isDragging:p,disableInteraction:v,paddingLeft:A,handleProps:R,data:r,clone:n,id:s,...c,style:j}),e[23]=n,e[24]=r,e[25]=R,e[26]=s,e[27]=p,e[28]=v,e[29]=A,e[30]=c,e[31]=S,e[32]=w,e[33]=j,e[34]=N):N=e[34],N}const DP=D.memo(sMe);function iMe(t,e){return Math.round(t/e)}function AP(t,e,n,r,o){var q,z;const s=t.findIndex(({id:W})=>W===n),i=t.findIndex(({id:W})=>W===e),l=t[i],c=L5(t,i,s),d=c[s-1],f=c.slice(s+1).find(W=>W.parentId!==l.id),h=iMe(r,o),p=aMe({previousItem:d,activeItem:l}),v=l.depth+h,g=lMe({previousItem:d,activeItem:l,nextItem:f});let S;v>=p?S=p:v<g?S=g:S=v;const w=ft(l==null?void 0:l.data,"isFolder"),_=ft(l==null?void 0:l.data,"isProject"),E=ft(l==null?void 0:l.data,"isCollection"),T=ft(l==null?void 0:l.data,"rootProjectId"),M=ft(d==null?void 0:d.data,"isFolder"),j=ft(d==null?void 0:d.data,"isCollection"),A=ft(d==null?void 0:d.data,"rootProjectId"),k=ft(f==null?void 0:f.data,"isProject"),R=ft(f==null?void 0:f.data,"isCollection"),N=!(!(l!=null&&l.isDroppable)&&((z=(q=d==null?void 0:d.children)==null?void 0:q[0])!=null&&z.isDroppable)),I=!(!_&&!d),L=!(!_&&T!==A),F=!(w&&k&&!M),H=((f==null?void 0:f.depth)||0)!==(d==null?void 0:d.depth)||!(w&&!M),B=E?(d&&d.depth===l.depth?j||!j&&R:!1)&&(f&&f.depth===S?R:!0):!0,Y=N&&I&&L&&F&&H&&B;return Y||(S=l.depth),{depth:S,maxDepth:p,minDepth:g,parentId:U(),isTransform:Y};function U(){var K;return S===0||!d?null:S===d.depth?d.parentId:S>d.depth?d.id:((K=c.slice(0,s).reverse().find(G=>G.depth===S))==null?void 0:K.parentId)??null}}function aMe({activeItem:t,previousItem:e}){const n=ft(t.data,"isProject"),r=ft(t.data,"isFolder");if(n)return 0;if(r){const o=ft(e==null?void 0:e.data,"isFolder"),i=(ft(t.data,"Children")||[]).length===0;return o&&i||!o&&i&&(e==null?void 0:e.depth)>t.depth?2:1}return e?e.isDroppable?e.depth+1:e.depth:0}function lMe({previousItem:t,activeItem:e,nextItem:n}){const r=ft(e.data,"isProject");if(r)return 0;if(t&&ft(t.data,"isFolder")&&(t.children.length>1||t.children.length>0&&!t.children.some(s=>s.id===e.id)))return 2;if(n){const o=ft(e.data,"isFolder"),s=ft(n.data,"isFolder");if(!(r||o)&&s)return n.depth+1}return Math.max((n==null?void 0:n.depth)||1,1)}function K8(t,e=null,n=0){const r=[];for(let o=0;o<t.length;o++){const{data:s,...i}=t[o],l=o===t.length-1;r.push({...i,parentId:e,depth:n,index:o,isLast:l,data:s}),i.children.length>0&&r.push(...K8(i.children,i.id,n+1))}return r}function cMe(t){const e={id:"root",name:"",isDroppable:!1,children:[],data:null},n={[e.id]:e},r=t.map(o=>({...o,children:[]}));for(const o of r){const{id:s,name:i,isDroppable:l,children:c,data:d}=o,f=o.parentId??e.id;n[s]={id:s,name:i,isDroppable:l,children:c,data:d};const h=n[f];h&&h.children.push(o)}return e.children}function uMe(t,e){function n(r,o){const s=r.length;for(let i=0;i<s;i++){const l=r[i];if(l.id===e)return{item:l,prev:i>0?r[i-1]:void 0,next:i<s-1?r[i+1]:void 0,parentItem:o};if(l.children.length>0){const c=n(l.children,l);if(c)return c}}}return n(t)}function pH(t,e){for(const n of t){if(n.id===e)return n;if(n.children.length>0){const r=pH(n.children,e);if(r)return r}}}function mH(t,e=0){let n=e;for(const r of t)r.children.length>0?n=mH(r.children,n+1):n+=1;return n}function dMe(t,e){const n=pH(t,e);return n?mH(n.children):0}const fMe=[{id:"Home",name:"Home",isDroppable:!0,children:[],data:{}},{id:"Collections",name:"Collections",isDroppable:!0,children:[{id:"Spring",name:"Spring",isDroppable:!0,children:[],data:{},parentId:null,depth:0,index:0,isLast:!1},{name:"Summer",id:"Summer",isDroppable:!0,children:[],data:{},parentId:null,depth:0,index:0,isLast:!1},{name:"Fall",id:"Fall",isDroppable:!0,children:[],data:{},parentId:null,depth:0,index:0,isLast:!1},{name:"Winter",id:"Winter",isDroppable:!0,children:[],data:{},parentId:null,depth:0,index:0,isLast:!0}],data:{}},{id:"About Us",name:"About Us",isDroppable:!0,children:[],data:{}},{id:"My Account",name:"My Account",isDroppable:!0,children:[{name:"Addresses",id:"Addresses",isDroppable:!0,children:[],data:{},parentId:null,depth:0,index:0,isLast:!1},{name:"Order History",id:"Order History",isDroppable:!0,children:[],data:{},parentId:null,depth:0,index:0,isLast:!0}],data:{}}],hMe={droppable:{strategy:sg.Always}},pMe={keyframes({transform:t}){return[{opacity:1,transform:lc.Transform.toString(t.initial)},{opacity:0,transform:lc.Transform.toString({...t.final,x:t.final.x+5,y:t.final.y+5})}]},easing:"ease-out",sideEffects({active:t}){t.node.animate([{opacity:0},{opacity:1}],{duration:Q8.duration,easing:Q8.easing})}};function RP(t){var Ot,Sn;const e=be.c(111),{collapsible:n,data:r,indentationWidth:o,renderTreeItem:s,renderIcon:i,selected:l,onDragEnd:c}=t,d=r===void 0?fMe:r,f=o===void 0?50:o;let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h=[],e[0]=h):h=e[0];const[p,v]=D.useState(h);let g;e[1]===Symbol.for("react.memo_cache_sentinel")?(g=[],e[1]=g):g=e[1];const[S,w]=D.useState(g),[_,E]=D.useState(null),[T,M]=D.useState(null),[j,A]=D.useState(0);let k;e[2]===Symbol.for("react.memo_cache_sentinel")?(k={activeId:null},e[2]=k):k=e[2];const R=D.useRef(k);let N;e[3]!==p?(N=K8(p),e[3]=p,e[4]=N):N=e[4];const I=N;let L;e:{if(!_||!T){L=null;break e}let Je;e[5]!==_||e[6]!==I||e[7]!==f||e[8]!==j||e[9]!==T?(Je=AP(I,_,T,j,f),e[5]=_,e[6]=I,e[7]=f,e[8]=j,e[9]=T,e[10]=Je):Je=e[10],L=Je}const F=L;let H;e[11]!==I||e[12]!==f||e[13]!==j||e[14]!==T?(H=()=>{const Je=R.current.activeId,vt=T;return!Je||!vt?null:AP(I,Je,vt,j,f)},e[11]=I,e[12]=f,e[13]=j,e[14]=T,e[15]=H):H=e[15];const B=H;let Y;e[16]!==I||e[17]!==j?(Y={items:I,offset:j},e[16]=I,e[17]=j,e[18]=Y):Y=e[18];const U=D.useRef(Y),q=gEe(gP(tH,wMe),gP(nH,xMe));let z;e[19]!==_||e[20]!==I?(z=_?I.find(Je=>{const{id:vt}=Je;return vt===_}):null,e[19]=_,e[20]=I,e[21]=z):z=e[21];const W=z;let K;if(e[22]!==W||e[23]!==I){e:{let Je;e[25]!==I?(Je=I.map(SMe),e[25]=I,e[26]=Je):Je=e[26];const vt=Je;if(!W){K=vt;break e}if(!!ft(W.data,"isCollection")){const Yt=ft(W.data,"rootProjectId");if(!Yt){K=vt;break e}K=I.filter((Gt,$n)=>{const Tn=!!ft(Gt.data,"isCollection"),le=!!ft(Gt.data,"isProject"),ce=ft(Gt.data,"rootProjectId");return!!(Tn&&ce===Yt||le&&Gt.id===Yt.toString()||!Tn&&!le&&I.slice($n+1).some($e=>{const Ye=ft($e.data,"isCollection"),tt=ft($e.data,"rootProjectId");return Ye&&tt===Yt}))}).map(bMe);break e}let dn;e[27]!==I?(dn=I.filter(vMe).map(yMe),e[27]=I,e[28]=dn):dn=e[28],K=dn}e[22]=W,e[23]=I,e[24]=K}else K=e[24];const G=K;let X,J;e[29]!==I||e[30]!==j?(X=()=>{U.current={items:I,offset:j}},J=[I,j],e[29]=I,e[30]=j,e[31]=X,e[32]=J):(X=e[31],J=e[32]),D.useEffect(X,J);let ne;e[33]===Symbol.for("react.memo_cache_sentinel")?(ne=Je=>{w(vt=>i5(vt,[Je]))},e[33]=ne):ne=e[33];const se=ne;let ie;e[34]!==p?(ie=p.flatMap(gMe),e[34]=p,e[35]=ie):ie=e[35];const oe=ie;let de;e[36]!==I||e[37]!==l?(de=(ft((Ot=I.find(Je=>Je.id===l))==null?void 0:Ot.data,"pathById")||[]).map(mMe),e[36]=I,e[37]=l,e[38]=de):de=e[38];const pe=de;let fe;if(e[39]!==oe||e[40]!==l){let Je;e[42]!==l?(Je=vt=>vt.includes(l),e[42]=l,e[43]=Je):Je=e[43],fe=oe.find(Je),e[39]=oe,e[40]=l,e[41]=fe}else fe=e[41];const Te=fe;let we;e[44]!==Te||e[45]!==pe?(we=pe.length?pe:Te||[],e[44]=Te,e[45]=pe,e[46]=we):we=e[46];const _e=we;let De,Ze;e[47]!==_e?(De=()=>{w(Je=>ha([...Je,..._e]))},Ze=[_e],e[47]=_e,e[48]=De,e[49]=Ze):(De=e[48],Ze=e[49]),D.useEffect(De,Ze);let ze,Xe;e[50]!==d?(ze=()=>{v(d)},Xe=[d],e[50]=d,e[51]=ze,e[52]=Xe):(ze=e[51],Xe=e[52]),D.useEffect(ze,Xe);let Ke;e[53]===Symbol.for("react.memo_cache_sentinel")?(Ke=Je=>{const{active:vt}=Je,{id:$t}=vt,dn=$t.toString();E(dn),M(dn),R.current={activeId:dn},A(0),document.body.style.setProperty("cursor","grabbing")},e[53]=Ke):Ke=e[53];const ot=Ke;let st;e[54]===Symbol.for("react.memo_cache_sentinel")?(st=Je=>{const{delta:vt}=Je;A(vt.x),U.current.offset=vt.x},e[54]=st):st=e[54];const mt=st;let bt;e[55]!==I?(bt=Je=>{var le,ce;const{active:vt,over:$t}=Je;if(!$t){M(null);return}const dn=(le=vt.data.current)==null?void 0:le.data,Yt=(ce=$t.data.current)==null?void 0:ce.data,Gt=!!ft(dn,"isCollection"),$n=!!ft(Yt,"isCollection"),Tn=!!ft(Yt,"isProject");if(Gt){const ye=ft(dn,"rootProjectId"),$e=ft(Yt,"rootProjectId");if(!ye)return;if($n&&$e===ye){M($t.id.toString());return}if(Tn&&$t.id===ye.toString()){M($t.id.toString());return}if(!$n&&!Tn){const Ye=I.find(tt=>tt.id===$t.id);if(Ye){const tt=I.indexOf(Ye);if(I.slice(tt+1).some(nt=>{const et=ft(nt.data,"isCollection"),Ge=ft(nt.data,"rootProjectId");return et&&Ge===ye})){M($t.id.toString());return}}}return}Gt===$n&&M($t.id.toString())},e[55]=I,e[56]=bt):bt=e[56];const At=bt;let ct;e[57]===Symbol.for("react.memo_cache_sentinel")?(ct=()=>{E(null),A(0),M(null),R.current={activeId:null},document.body.style.setProperty("cursor","")},e[57]=ct):ct=e[57];const cn=ct;let bn;e[58]!==B||e[59]!==p||e[60]!==c||e[61]!==T?(bn=Je=>{var Tn;const{active:vt}=Je,$t=B(),dn=T,Yt=(Tn=vt.data.current)==null?void 0:Tn.data,Gt=ft(Yt,"isProject"),$n=ft(Yt,"isCollection");if($t&&dn&&$t.isTransform){const{depth:le,parentId:ce}=$t,ye=JSON.parse(JSON.stringify(K8(p))),$e=ye.findIndex(Ge=>{const{id:ut}=Ge;return ut===vt.id}),Ye=ye[$e];let tt=ye.findIndex(Ge=>{const{id:ut}=Ge;return ut===dn});if($n){const Ge=ye[tt],ut=ft(Ge==null?void 0:Ge.data,"isProject");if(!ft(Ge==null?void 0:Ge.data,"isCollection")){const fn=ft(Yt,"rootProjectId");if(fn){let Hn;ut?Hn=ye.findIndex(hn=>{const nn=ft(hn.data,"isCollection"),zn=ft(hn.data,"rootProjectId");return nn&&zn===fn}):(Hn=ye.slice(tt+1).findIndex(hn=>{const nn=ft(hn.data,"isCollection"),zn=ft(hn.data,"rootProjectId");return nn&&zn===fn}),Hn!==-1&&(Hn=Hn+(tt+1))),Hn!==-1&&(tt=Hn)}}}const Et=ye[tt];if(Gt&&le>0)ye[$e]={...Ye,depth:0,parentId:null};else if(!Gt&&!$n&&!le&&!ce){const Ge=Et.id;ye[$e]={...Ye,depth:1,parentId:Ge}}else ye[$e]={...Ye,depth:le,parentId:ce};const nt=L5(ye,$e,tt),et=cMe(nt);if(c){const Ge=uMe(et,vt.id);Ge&&v(et),Ge&&c(Ge)}else v(et)}cn()},e[58]=B,e[59]=p,e[60]=c,e[61]=T,e[62]=bn):bn=e[62];const Tt=bn;let Ft;e[63]===Symbol.for("react.memo_cache_sentinel")?(Ft=()=>{cn()},e[63]=Ft):Ft=e[63];const Xt=Ft;let _n;e:{if(!_){_n=null;break e}if((F==null?void 0:F.parentId)!==void 0){_n=F.parentId;break e}let Je;e[64]!==_||e[65]!==I?(Je=((Sn=I.find(vt=>vt.id===_))==null?void 0:Sn.parentId)??null,e[64]=_,e[65]=I,e[66]=Je):Je=e[66],_n=Je}const un=_n;let Zt;if(e[67]!==_||e[68]!==n||e[69]!==S||e[70]!==I||e[71]!==f||e[72]!==F||e[73]!==i||e[74]!==s){let Je;e[76]!==_||e[77]!==n||e[78]!==S||e[79]!==f||e[80]!==F||e[81]!==i||e[82]!==s?(Je=vt=>{const{id:$t,name:dn,children:Yt,depth:Gt,data:$n}=vt,le=ft($n,"isCollection")?"collection-"+$t:$t;return b.jsx(DP,{id:$t,value:dn,depth:$t===_&&F?F.depth:Gt,indentationWidth:f,onCollapse:n&&Yt.length>0?()=>se($t):void 0,data:$n,renderTreeItem:s,renderIcon:i,expanded:S,isTransform:!!(F!=null&&F.isTransform)},le)},e[76]=_,e[77]=n,e[78]=S,e[79]=f,e[80]=F,e[81]=i,e[82]=s,e[83]=Je):Je=e[83],Zt=I.map(Je),e[67]=_,e[68]=n,e[69]=S,e[70]=I,e[71]=f,e[72]=F,e[73]=i,e[74]=s,e[75]=Zt}else Zt=e[75];const Jt=Zt;let en;e:{if(!_||!W){en=null;break e}const Je=dMe(p,_)+1,vt=!!(F!=null&&F.isTransform);let $t;e[84]!==_||e[85]!==W.data||e[86]!==W.depth||e[87]!==W.name||e[88]!==S||e[89]!==f||e[90]!==i||e[91]!==s||e[92]!==Je||e[93]!==vt?($t=b.jsx(DP,{id:_,depth:W.depth,clone:!0,childCount:Je,value:W.name,indentationWidth:f,data:W.data,renderTreeItem:s,renderIcon:i,expanded:S,isTransform:vt}),e[84]=_,e[85]=W.data,e[86]=W.depth,e[87]=W.name,e[88]=S,e[89]=f,e[90]=i,e[91]=s,e[92]=Je,e[93]=vt,e[94]=$t):$t=e[94],en=$t}const It=en;let he;e[95]!==un?(he={activeDragParentId:un},e[95]=un,e[96]=he):he=e[96];let Ce;e[97]!==It?(Ce=Qa.createPortal(b.jsx(Mke,{dropAnimation:pMe,children:It}),document.body),e[97]=It,e[98]=Ce):Ce=e[98];let St;e[99]!==G||e[100]!==Ce||e[101]!==Jt?(St=b.jsxs(Nke,{items:G,strategy:Oke,children:[Jt,Ce]}),e[99]=G,e[100]=Ce,e[101]=Jt,e[102]=St):St=e[102];let gt;e[103]!==Tt||e[104]!==At||e[105]!==q||e[106]!==St?(gt=b.jsx(uke,{sensors:q,collisionDetection:BB,measuring:hMe,onDragStart:ot,onDragMove:mt,onDragOver:At,onDragEnd:Tt,onDragCancel:Xt,children:St}),e[103]=Tt,e[104]=At,e[105]=q,e[106]=St,e[107]=gt):gt=e[107];let Ut;return e[108]!==he||e[109]!==gt?(Ut=b.jsx(hH.Provider,{value:he,children:gt}),e[108]=he,e[109]=gt,e[110]=Ut):Ut=e[110],Ut}function mMe(t){return t.toString()}function gMe(t){return ft(t.data,"collections").map(n=>[t.id.toString(),n.Id.toString()])}function yMe(t){const{id:e}=t;return e}function vMe(t){return!ft(t.data,"isCollection")}function bMe(t){const{id:e}=t;return e}function SMe(t){const{id:e}=t;return e}const wMe={activationConstraint:{delay:150,tolerance:5,distance:10}},xMe={activationConstraint:{delay:150,tolerance:5}},CMe=async t=>{const e=await lt.dispatch(nr.endpoints.deleteCollections.initiate({ids:[t]})).unwrap();return lt.dispatch(wt.util.invalidateTags(["Attribute"])),lt.dispatch(nr.util.invalidateTags(["Collection"])),e},_Me=({collectionName:t,collectionId:e,rootProjectId:n})=>{cf({title:jt("modals.deleteCollection.title"),children:b.jsx(Dt,{dangerouslySetInnerHTML:{__html:jt("modals.deleteCollection.description",{displayName:t})}}),onConfirm:()=>{CMe(e).then(()=>{n&&Nk(n)&&rc(n)})}})},TMe=({id:t,rootProjectId:e,name:n})=>cf({title:jt("removeFolder.title"),children:b.jsx(Dt,{dangerouslySetInnerHTML:{__html:jt("removeFolder.confirm",{folder:n})}}),onConfirm:()=>{const r=lt.dispatch(wt.endpoints.deleteFolderById.initiate(t)).unwrap();Hr(r,{successMsg:jt("notification.success.deleteFolder"),errorMsg:jt("notification.error.deleteFolder")}).then(()=>{Nk(e)&&rc(e)})}}),EMe="_removeButton_1hooe_1",kMe={removeButton:EMe},Wk="removeProjectModal",MMe=D.memo(t=>{const e=be.c(50),{projectId:n,name:r}=t,{t:o}=at();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={States:ik(),ReturnDataType:hs.ProjectReturnDataType.Projects},e[0]=s):s=e[0];const{data:i}=wt.endpoints.fetchProjects.useQueryState(s);let l;e[1]!==(i==null?void 0:i.Projects)?(l=(i==null?void 0:i.Projects)??[],e[1]=i==null?void 0:i.Projects,e[2]=l):l=e[2];let c;e[3]!==l?(c=sk(l),e[3]=l,e[4]=c):c=e[4];const d=c.list,[f,h]=wt.useDeleteFolderByIdMutation(),{isLoading:p}=h,[v,g]=sT("");let S;e[5]!==f||e[6]!==r||e[7]!==n||e[8]!==d||e[9]!==o?(S=async q=>{q.preventDefault(),Hr(f(n).unwrap(),{successMsg:o("notification.success.deleteProject",{project:r}),errorMsg:o("notification.error.deleteProject",{project:r})}).then(()=>{Sg.close(Wk),$8e(DMe(d),n)})},e[5]=f,e[6]=r,e[7]=n,e[8]=d,e[9]=o,e[10]=S):S=e[10];const w=S;let _;e[11]===Symbol.for("react.memo_cache_sentinel")?(_=b.jsx(p5,{mt:"md",illustration:"trash",size:160}),e[11]=_):_=e[11];let E;e[12]!==o?(E=o("removeProject.description"),e[12]=o,e[13]=E):E=e[13];let T;e[14]!==E?(T=b.jsx(Dt,{c:"gray.6",children:E}),e[14]=E,e[15]=T):T=e[15];let M;e[16]!==r||e[17]!==o?(M=o("removeProject.confirm",{project:r.trim()}),e[16]=r,e[17]=o,e[18]=M):M=e[18];let j;e[19]!==r||e[20]!==g||e[21]!==M||e[22]!==v?(j=b.jsx(Is,{"data-autofocus":!0,value:v,onChange:g,placeholder:r,label:M}),e[19]=r,e[20]=g,e[21]=M,e[22]=v,e[23]=j):j=e[23];let A;e[24]!==o?(A=o("common.action.cancel"),e[24]=o,e[25]=A):A=e[25];let k;e[26]!==A?(k=b.jsx(In,{variant:"subtle",color:"dark",fullWidth:!0,radius:"md",size:"md",onClick:AMe,children:A}),e[26]=A,e[27]=k):k=e[27];let R;e[28]!==v?(R=v.trim().toLocaleLowerCase(),e[28]=v,e[29]=R):R=e[29];let N;e[30]!==r?(N=r.trim().toLocaleLowerCase(),e[30]=r,e[31]=N):N=e[31];const I=R!==N;let L;e[32]!==o?(L=o("common.action.delete"),e[32]=o,e[33]=L):L=e[33];let F;e[34]!==p||e[35]!==I||e[36]!==L?(F=b.jsx(In,{loading:p,className:kMe.removeButton,variant:"filled",color:"red",disabled:I,radius:"md",size:"md",type:"submit",fullWidth:!0,children:L}),e[34]=p,e[35]=I,e[36]=L,e[37]=F):F=e[37];let H;e[38]!==k||e[39]!==F?(H=b.jsxs(Lt,{gap:"md",children:[k,F]}),e[38]=k,e[39]=F,e[40]=H):H=e[40];let B;e[41]!==j||e[42]!==H?(B=b.jsxs(_t,{gap:24,children:[j,H]}),e[41]=j,e[42]=H,e[43]=B):B=e[43];let Y;e[44]!==w||e[45]!==B?(Y=b.jsx("form",{onSubmit:w,children:B}),e[44]=w,e[45]=B,e[46]=Y):Y=e[46];let U;return e[47]!==Y||e[48]!==T?(U=b.jsx(b.Fragment,{children:b.jsxs(_t,{gap:"md",children:[_,T,Y]})}),e[47]=Y,e[48]=T,e[49]=U):U=e[49],U}),jMe=t=>{gF({modalId:Wk,title:jt("removeProject.title"),children:b.jsx(MMe,{...t})})},DMe=t=>{const e=n=>[n.Id,...n.Children.flatMap(e),...Dg(n.Sprints,"Id")];return t.reduce((n,r)=>(n[r.Id]=ha(e(r)),n),{})??{}};function AMe(){return Sg.close(Wk)}const RMe=({id:t,rootProjectId:e,name:n})=>cf({title:jt("removeSprint.title"),children:b.jsx(Dt,{dangerouslySetInnerHTML:{__html:jt("removeSprint.confirm",{sprint:n})}}),onConfirm:()=>{const r=lt.dispatch(wt.endpoints.deleteSprint.initiate(t)).unwrap();Hr(r,{successMsg:jt("notification.success.deleteSprint"),errorMsg:jt("notification.error.deleteSprint")}).then(()=>{Nk(e)&&rc(e)})}}),OMe=t=>{const e=be.c(27),{project:n,sprint:r,collection:o,type:s}=t,{myProjects:i,otherProjects:l}=zk(),{t:c}=at(),d=Us(),{activeSectionFor:f}=tn(PMe),{isProjectsShow:h,isSprintsShow:p}=tn(A=>A.archiveSlice[f])||{},{project:v,sprint:g}=Fk();let S;e[0]!==o||e[1]!==n||e[2]!==r||e[3]!==s?(S=()=>{e:switch(s){case"project":{if(!n)return;Ak(n);break e}case"folder":{if(!n)return;N_e(n);break e}case"sprint":{if(!r)return;I_e(r);break e}case"collection":{if(!o)return;const A=o.Id;Ok({collectionId:A,projectId:o.rootProjectId});break e}}},e[0]=o,e[1]=n,e[2]=r,e[3]=s,e[4]=S):S=e[4];const w=S;let _;e[5]!==f||e[6]!==(v==null?void 0:v.Id)||e[7]!==(g==null?void 0:g.Id)||e[8]!==d||e[9]!==h||e[10]!==p||e[11]!==i||e[12]!==l||e[13]!==n||e[14]!==r||e[15]!==c||e[16]!==s?(_=()=>{const A=(n==null?void 0:n.State)===Ie.EntityState.Archive||(r==null?void 0:r.State)===Ie.EntityState.Archive?Ie.EntityState.Active:Ie.EntityState.Archive,k=()=>d(wt.util.invalidateTags(["Project"]));if(s==="project"&&n){const R={id:n.Id,state:A},N=d(wt.endpoints.changeProjectState.initiate(R));Hr(N.unwrap().then(k),A===Ie.EntityState.Archive?{successMsg:c("notification.success.archiveProject"),errorMsg:c("notification.error.archiveProject")}:{successMsg:c("notification.success.unarchiveProject"),errorMsg:c("notification.error.unarchiveProject")}).then(()=>{!h&&A===Ie.EntityState.Archive&&n.Id===(v==null?void 0:v.Id)?rc(f==="myProjects"?i[0].Id:l[0].Id):(d(wt.util.invalidateTags(["Project"])),d(Ct.util.invalidateTags(["Sprint"])))})}if(s==="folder"&&n){const R={id:n.Id,state:A},N=d(wt.endpoints.changeProjectState.initiate(R));Hr(N.unwrap().then(k),A===Ie.EntityState.Archive?{successMsg:c("notification.success.archiveFolder"),errorMsg:c("notification.error.archiveFolder")}:{successMsg:c("notification.success.unarchiveFolder"),errorMsg:c("notification.error.unarchiveFolder")}).then(()=>{!h&&A===Ie.EntityState.Archive&&n.Id===(v==null?void 0:v.Id)?rc(f==="myProjects"?i[0].Id:l[0].Id):(d(wt.util.invalidateTags(["Project"])),d(Ct.util.invalidateTags(["Sprint"])))})}if(s==="sprint"&&r){const R={id:r.Id,state:A},N=d(wt.endpoints.changeSprintState.initiate(R));Hr(N.unwrap().then(k),A===Ie.EntityState.Archive?{successMsg:c("notification.success.archiveSprint"),errorMsg:c("notification.error.archiveSprint")}:{successMsg:c("notification.success.unarchiveSprint"),errorMsg:c("notification.error.unarchiveSprint")}).then(()=>{!p&&A===Ie.EntityState.Archive&&r.Id===(g==null?void 0:g.Id)?rc(f==="myProjects"?i[0].Id:l[0].Id):d(Ct.util.invalidateTags(["Task"]))})}},e[5]=f,e[6]=v==null?void 0:v.Id,e[7]=g==null?void 0:g.Id,e[8]=d,e[9]=h,e[10]=p,e[11]=i,e[12]=l,e[13]=n,e[14]=r,e[15]=c,e[16]=s,e[17]=_):_=e[17],v==null||v.Id,g==null||g.Id;const E=_;let T;e[18]!==o||e[19]!==n||e[20]!==r||e[21]!==s?(T=()=>{e:switch(s){case"project":{if(!n)return;jMe({projectId:n.Id,name:n.Name});break e}case"folder":{if(!n)return;TMe({id:n.Id,rootProjectId:n.rootProjectId,name:n.Name});break e}case"sprint":{if(!r)return;RMe({id:r.Id,rootProjectId:r.rootProjectId,name:r.Name});break e}case"collection":{if(!o)return;const A=o==null?void 0:o.Id,k=C_e(lt.getState(),A);_Me({collectionId:A,collectionName:k||"",rootProjectId:o==null?void 0:o.rootProjectId});break e}}},e[18]=o,e[19]=n,e[20]=r,e[21]=s,e[22]=T):T=e[22];const M=T;let j;return e[23]!==E||e[24]!==M||e[25]!==w?(j={handleArchive:E,handleEdit:w,handleDelete:M},e[23]=E,e[24]=M,e[25]=w,e[26]=j):j=e[26],j};function PMe(t){return t.settingsSlice}const NMe=t=>t<=1?1e3*2:t<=2?1e3*5:t<=7?1e3*10:1e3*30,IMe=({sprint:t,applyLastArgs:e=!1})=>{const{t:n}=at(),r=Us(),o=tn(d=>d.sprintSlice.lastRequestArgs),s=D.useCallback(async d=>r(Ct.endpoints.exportTasks.initiate(e?{...o,SprintIds:d}:{SprintIds:d})).unwrap(),[o,e,r]),i=D.useCallback(async({id:d,tick:f=0})=>{const h=await r(Ct.endpoints.userTask.initiate({id:d})).unwrap();return h.Status===Wv.IUserTaskStatus.Error||h.Status===Wv.IUserTaskStatus.Done?h:new Promise(p=>{setTimeout(()=>{p(i({id:d,tick:f+=1}))},NMe(f))})},[r]),l=D.useCallback(async d=>r(Ct.endpoints.downloadTasks.initiate(d)).unwrap(),[r]);return{handleDownload:D.useCallback(async()=>{if(!t)return;const d=Bx({message:n("notification.progress.downloadFile"),loading:!0,autoClose:!1});let f=null,h=null;try{f=await s([t.Id])}catch{lw({id:d,message:n("500.description"),loading:!1,autoClose:!0,icon:b.jsx(p8,{}),color:"red"});return}try{h=f?await i({id:f.Id}):null,h&&await l({id:h.Id,fileName:t==null?void 0:t.Name}),lw({id:d,message:n("notification.success.downloadFile"),loading:!1,autoClose:!0,icon:b.jsx(iye,{})});return}catch{lw({id:d,message:n("notification.error.downloadFile"),loading:!1,autoClose:!0,icon:b.jsx(p8,{}),color:"red"});return}},[t,s,i,l,n])}},$Me=t=>{const e=be.c(121),{canCreateFolder:n,type:r,project:o,sprint:s,collection:i,onClose:l}=t,{t:c}=at(),d=Us(),f=hc(),h=xp((o==null?void 0:o.Id)||(s==null?void 0:s.ProjectId)||0);let p;e[0]!==s?(p={sprint:s},e[0]=s,e[1]=p):p=e[1];const{handleDownload:v}=IMe(p);let g;e[2]!==i||e[3]!==o||e[4]!==s||e[5]!==r?(g={project:o,sprint:s,collection:i,type:r},e[2]=i,e[3]=o,e[4]=s,e[5]=r,e[6]=g):g=e[6];const{handleArchive:S,handleEdit:w,handleDelete:_}=OMe(g),E=tn(FMe),[T]=da.useLeaveMutation(),M=mi("(max-width: 1200px)");let j;e[7]!==M||e[8]!==l?(j=gt=>Ut=>{Ut.stopPropagation(),M&&l(),setTimeout(gt,0)},e[7]=M,e[8]=l,e[9]=j):j=e[9];const A=j;let k;e[10]!==d||e[11]!==A||e[12]!==T||e[13]!==f||e[14]!==o||e[15]!==c?(k=gt=>{o&&cf({title:c("members.leave.title"),labels:{confirm:c("common.action.leave"),cancel:c("common.action.cancel")},children:b.jsx(Dt,{dangerouslySetInnerHTML:{__html:c("members.leave.description",{project:o.Name})}}),onConfirm:()=>{A(()=>{const Ut=T({entityId:o.Id,entityType:Ie.Entity.Project}).unwrap();Hr(Ut,{successMsg:c("notification.success.leaveProject"),errorMsg:c("notification.error.leaveProject")}).then(async()=>{await d(wt.endpoints.getProjects.initiate(void 0,{forceRefetch:!0})).unwrap()}).then(()=>f("/"))})(gt)}})},e[10]=d,e[11]=A,e[12]=T,e[13]=f,e[14]=o,e[15]=c,e[16]=k):k=e[16];const R=k;s==null||s.State;const{folders:N,project:I,sprints:L}=h,F=E===(o==null?void 0:o.OwnerId),H=r==="folder"||r==="project",B=N.create&&H&&o&&n,Y=L.create&&H&&!!o,U=r==="folder"&&N.edit||r==="sprint"&&L.edit||r==="project"&&I.edit||r==="collection"&&!!i&&(i.AccessType===Ie.AccessType.Full||i.AccessType===Ie.AccessType.Write),q=r==="folder"&&N.delete||r==="sprint"&&L.delete||r==="project"&&I.delete||r==="collection"&&!!i&&(i.AccessType===Ie.AccessType.Full||i.AccessType===Ie.AccessType.Write),z=!!(o&&B);let W;e[17]!==c?(W=c("sidebar.action.addFolder"),e[17]=c,e[18]=W):W=e[18];let K;e[19]!==o?(K=()=>o&&bB(o),e[19]=o,e[20]=K):K=e[20];let G;e[21]!==A||e[22]!==K?(G=A(K),e[21]=A,e[22]=K,e[23]=G):G=e[23];let X;e[24]!==z||e[25]!==W||e[26]!==G?(X={isEnabled:z,value:"addFolder",label:W,icon:Gx,onClick:G},e[24]=z,e[25]=W,e[26]=G,e[27]=X):X=e[27];const J=!!(o&&Y);let ne;e[28]!==c?(ne=c("sidebar.action.addSprint"),e[28]=c,e[29]=ne):ne=e[29];let se;e[30]!==o?(se=()=>o&&SB(o),e[30]=o,e[31]=se):se=e[31];let ie;e[32]!==A||e[33]!==se?(ie=A(se),e[32]=A,e[33]=se,e[34]=ie):ie=e[34];let oe;e[35]!==J||e[36]!==ne||e[37]!==ie?(oe={isEnabled:J,value:"addSprint",label:ne,icon:UE,onClick:ie},e[35]=J,e[36]=ne,e[37]=ie,e[38]=oe):oe=e[38];const de=!!(r==="project"&&o&&I.edit);let pe;e[39]!==c?(pe=c("sidebar.action.addCollection"),e[39]=c,e[40]=pe):pe=e[40];let fe;e[41]!==o?(fe=()=>o&&Ok({projectId:o.Id}),e[41]=o,e[42]=fe):fe=e[42];let Te;e[43]!==A||e[44]!==fe?(Te=A(fe),e[43]=A,e[44]=fe,e[45]=Te):Te=e[45];let we;e[46]!==de||e[47]!==pe||e[48]!==Te?(we={isEnabled:de,value:"addCollection",label:pe,icon:_g,onClick:Te},e[46]=de,e[47]=pe,e[48]=Te,e[49]=we):we=e[49];const _e=B||Y;let De;e[50]!==_e?(De={isEnabled:_e,value:"divider"},e[50]=_e,e[51]=De):De=e[51];const Ze=!!(U&&(o&&r==="project"||i&&r==="collection"));let ze;e[52]!==c?(ze=c("members.title"),e[52]=c,e[53]=ze):ze=e[53];let Xe;e[54]!==i||e[55]!==o||e[56]!==r?(Xe=()=>{if(r==="collection"&&i){const gt=DB(lt.getState(),i==null?void 0:i.rootProjectId);dP({project:gt,collection:i,type:"collection"})}else dP({project:o})},e[54]=i,e[55]=o,e[56]=r,e[57]=Xe):Xe=e[57];let Ke;e[58]!==A||e[59]!==Xe?(Ke=A(Xe),e[58]=A,e[59]=Xe,e[60]=Ke):Ke=e[60];let ot;e[61]!==Ze||e[62]!==ze||e[63]!==Ke?(ot={isEnabled:Ze,value:"openMembers",label:ze,icon:nye,onClick:Ke},e[61]=Ze,e[62]=ze,e[63]=Ke,e[64]=ot):ot=e[64];let st;e[65]!==c?(st=c("common.action.edit"),e[65]=c,e[66]=st):st=e[66];let mt;e[67]!==A||e[68]!==w?(mt=A(w),e[67]=A,e[68]=w,e[69]=mt):mt=e[69];let bt;e[70]!==U||e[71]!==st||e[72]!==mt?(bt={isEnabled:U,value:"edit",label:st,icon:HE,onClick:mt},e[70]=U,e[71]=st,e[72]=mt,e[73]=bt):bt=e[73];const At=r!=="collection"&&U;let ct;e[74]!==(o==null?void 0:o.State)||e[75]!==(s==null?void 0:s.State)||e[76]!==c?(ct=(o==null?void 0:o.State)===Ie.EntityState.Archive||(o==null?void 0:o.State)===Ie.EntityState.ArchiveParent||(s==null?void 0:s.State)===Ie.EntityState.Archive||(s==null?void 0:s.State)===Ie.EntityState.ArchiveParent?c("common.action.unarchive"):c("common.action.archive"),e[74]=o==null?void 0:o.State,e[75]=s==null?void 0:s.State,e[76]=c,e[77]=ct):ct=e[77];let cn;e[78]!==A||e[79]!==S?(cn=A(S),e[78]=A,e[79]=S,e[80]=cn):cn=e[80];const bn=(o==null?void 0:o.State)===Ie.EntityState.ArchiveParent||(s==null?void 0:s.State)===Ie.EntityState.ArchiveParent;let Tt;e[81]!==At||e[82]!==ct||e[83]!==cn||e[84]!==bn?(Tt={isEnabled:At,value:"archive",label:ct,icon:xu,onClick:cn,disabled:bn},e[81]=At,e[82]=ct,e[83]=cn,e[84]=bn,e[85]=Tt):Tt=e[85];const Ft=r==="sprint";let Xt;e[86]!==c?(Xt=c("common.action.export"),e[86]=c,e[87]=Xt):Xt=e[87];let _n;e[88]!==A||e[89]!==v?(_n=A(v),e[88]=A,e[89]=v,e[90]=_n):_n=e[90];let un;e[91]!==Ft||e[92]!==Xt||e[93]!==_n?(un={isEnabled:Ft,value:"export",label:Xt,icon:W0e,onClick:_n},e[91]=Ft,e[92]=Xt,e[93]=_n,e[94]=un):un=e[94];const Zt=!!(o&&r==="project"&&!F);let Jt;e[95]!==c?(Jt=c("common.action.leave"),e[95]=c,e[96]=Jt):Jt=e[96];let en;e[97]!==R||e[98]!==Zt||e[99]!==Jt?(en={isEnabled:Zt,isDanger:!0,value:"leave",label:Jt,icon:BE,onClick:R},e[97]=R,e[98]=Zt,e[99]=Jt,e[100]=en):en=e[100];let It;e[101]!==c?(It=c("common.action.delete"),e[101]=c,e[102]=It):It=e[102];let he;e[103]!==A||e[104]!==_?(he=A(_),e[103]=A,e[104]=_,e[105]=he):he=e[105];let Ce;e[106]!==q||e[107]!==It||e[108]!==he?(Ce={isEnabled:q,isDanger:!0,value:"delete",label:It,icon:Qx,onClick:he},e[106]=q,e[107]=It,e[108]=he,e[109]=Ce):Ce=e[109];let St;return e[110]!==oe||e[111]!==we||e[112]!==De||e[113]!==ot||e[114]!==bt||e[115]!==Tt||e[116]!==un||e[117]!==en||e[118]!==Ce||e[119]!==X?(St={actions:[X,oe,we,De,ot,bt,Tt,un,en,Ce].filter(zMe),isDivider:LMe},e[110]=oe,e[111]=we,e[112]=De,e[113]=ot,e[114]=bt,e[115]=Tt,e[116]=un,e[117]=en,e[118]=Ce,e[119]=X,e[120]=St):St=e[120],St},LMe=t=>t.value==="divider";function FMe(t){return t.usersCache.currentUser.Id}function zMe(t){return t.isEnabled}const Qk=t=>{const e=be.c(26);let n,r,o;e[0]!==t?({opened:n,setOpened:o,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o):(n=e[1],r=e[2],o=e[3]);const{t:s}=at(),{actions:i,isDivider:l}=$Me(r);let c;e[4]!==o?(c=_=>{_.stopPropagation(),o==null||o(UMe)},e[4]=o,e[5]=c):c=e[5];const d=c;if(!i.length&&r.type!=="project")return null;let f;e[6]!==s?(f=s("common.actionsLabel"),e[6]=s,e[7]=f):f=e[7];let h;e[8]===Symbol.for("react.memo_cache_sentinel")?(h=b.jsx(FE,{size:18,color:"var(--mantine-color-gray-5)"}),e[8]=h):h=e[8];let p;e[9]!==d?(p=b.jsx(lr,{size:"sm",variant:"subtle",color:"dark.1",onClick:d,children:h}),e[9]=d,e[10]=p):p=e[10];let v;e[11]!==f||e[12]!==p?(v=b.jsx(Mt.Target,{children:b.jsx(yi,{label:f,withArrow:!0,position:"right",children:p})}),e[11]=f,e[12]=p,e[13]=v):v=e[13];let g;if(e[14]!==i||e[15]!==l){let _;e[17]!==l?(_=E=>l(E)?b.jsx(Mt.Divider,{},E.value):b.jsx(Mt.Item,{leftSection:b.jsx(E.icon,{size:18}),color:E.isDanger?"red.8":void 0,onClick:E.onClick,disabled:E.disabled,children:E.label},E.value),e[17]=l,e[18]=_):_=e[18],g=i.map(_),e[14]=i,e[15]=l,e[16]=g}else g=e[16];let S;e[19]!==g?(S=b.jsx(Mt.Dropdown,{fw:400,children:g}),e[19]=g,e[20]=S):S=e[20];let w;return e[21]!==n||e[22]!==o||e[23]!==v||e[24]!==S?(w=b.jsxs(Mt,{opened:n,onChange:o,children:[v,S]}),e[21]=n,e[22]=o,e[23]=v,e[24]=S,e[25]=w):w=e[25],w};function UMe(t){return!t}const BMe=D.memo(t=>{const e=be.c(11),{collection:n,isActive:r,isOpen:o,onClick:s}=t,[i,l]=D.useState(!1),{isBurger:c}=uf(),{hovered:d,ref:f}=ig(),p=d||c||r||o||i;let v;e[0]!==n.Name?(v=b.jsx(ci,{children:n.Name}),e[0]=n.Name,e[1]=v):v=e[1];let g;e[2]!==n||e[3]!==i||e[4]!==p?(g=p&&b.jsx(Qk,{opened:i,setOpened:l,collection:n,type:"collection",onClose:HMe}),e[2]=n,e[3]=i,e[4]=p,e[5]=g):g=e[5];let S;return e[6]!==s||e[7]!==f||e[8]!==v||e[9]!==g?(S=b.jsxs(Lt,{ref:f,justify:"space-between",onClick:s,children:[v,g]}),e[6]=s,e[7]=f,e[8]=v,e[9]=g,e[10]=S):S=e[10],S});function HMe(){}const qMe=D.memo(t=>{const e=be.c(17),{project:n,type:r,onClick:o,isActive:s,isOpen:i}=t,[l,c]=D.useState(!1),{isBurger:d,close:f}=uf(),{hovered:h,ref:p}=ig(),g=h||d||s||i||l,S=n.pathById.length,w=n.State===Ie.EntityState.Archive||n.State===Ie.EntityState.ArchiveParent,_=S<=2;let E;e[0]!==w?(E=w&&b.jsx(xu,{size:16,color:"var(--mantine-color-dark-2)"}),e[0]=w,e[1]=E):E=e[1];let T;e[2]!==o||e[3]!==n.Name?(T=b.jsx(ci,{onClick:o,flex:1,children:n.Name}),e[2]=o,e[3]=n.Name,e[4]=T):T=e[4];let M;e[5]!==l||e[6]!==_||e[7]!==f||e[8]!==n||e[9]!==r||e[10]!==g?(M=g&&b.jsx(Qk,{opened:l,setOpened:c,project:n,canCreateFolder:_,type:r,onClose:f}),e[5]=l,e[6]=_,e[7]=f,e[8]=n,e[9]=r,e[10]=g,e[11]=M):M=e[11];let j;return e[12]!==p||e[13]!==E||e[14]!==T||e[15]!==M?(j=b.jsxs(Lt,{ref:p,justify:"space-between",children:[E,T,M]}),e[12]=p,e[13]=E,e[14]=T,e[15]=M,e[16]=j):j=e[16],j}),VMe=D.memo(t=>{const e=be.c(20),{sprint:n,onClick:r,isActive:o,isOpen:s}=t,[i,l]=D.useState(!1),{data:c}=Ct.useGetCountersQuery(),{isBurger:d,close:f}=uf(),{hovered:h,ref:p}=ig(),g=h||d||o||s||i;let S;e[0]!==c||e[1]!==n.Id?(S=Bh(c,["Id",n.Id]),e[0]=c,e[1]=n.Id,e[2]=S):S=e[2];const w=S,_=n.State===Ie.EntityState.Archive||n.State===Ie.EntityState.ArchiveParent;let E;e[3]!==_?(E=_&&b.jsx(xu,{size:16,color:"var(--mantine-color-dark-2)"}),e[3]=_,e[4]=E):E=e[4];let T;e[5]!==r||e[6]!==n.Name?(T=b.jsx(ci,{onClick:r,flex:1,children:n.Name}),e[5]=r,e[6]=n.Name,e[7]=T):T=e[7];let M;e[8]!==i||e[9]!==f||e[10]!==(w==null?void 0:w.TotalCount)||e[11]!==(w==null?void 0:w.UnreadCount)||e[12]!==n||e[13]!==g?(M=g?b.jsx(Qk,{opened:i,setOpened:l,sprint:n,type:"sprint",onClose:f}):b.jsx(PB,{value:w==null?void 0:w.TotalCount,active:!!(w!=null&&w.UnreadCount),isHidden:g}),e[8]=i,e[9]=f,e[10]=w==null?void 0:w.TotalCount,e[11]=w==null?void 0:w.UnreadCount,e[12]=n,e[13]=g,e[14]=M):M=e[14];let j;return e[15]!==p||e[16]!==E||e[17]!==T||e[18]!==M?(j=b.jsxs(Lt,{ref:p,justify:"space-between",children:[E,T,M]}),e[15]=p,e[16]=E,e[17]=T,e[18]=M,e[19]=j):j=e[19],j}),YMe=()=>{const t=be.c(17),e=hc(),{folderId:n,sprintId:r,collectionId:o}=q7(),{isBurger:s,close:i}=uf(),[l,c]=D.useState(null),[d]=wt.useUpdateSprintMutation(),[f]=wt.useChangeProjectOrderMutation(),[h]=nr.useChangeCollectionOrderMutation();let p,v;t[0]!==o||t[1]!==n||t[2]!==r?(p=()=>{c(n||r||o||null)},v=[n,r,o],t[0]=o,t[1]=n,t[2]=r,t[3]=p,t[4]=v):(p=t[3],v=t[4]),D.useEffect(p,v);let g;t[5]!==i||t[6]!==s||t[7]!==e?(g=M=>{const{data:j,isActive:A,isOpen:k}=M,R=ft(j,"isFolder"),N=ft(j,"isProject"),I=ft(j,"isSprint"),L=ft(j,"isCollection");return N||R?b.jsx(qMe,{project:j,data:j,type:N?"project":"folder",onClick:()=>{e(fu(wn.folder,{folderId:(j==null?void 0:j.Id)||null})),s&&i()},isActive:A,isOpen:k},j==null?void 0:j.Id):I?b.jsx(VMe,{sprint:j,data:j,onClick:()=>{e(wn.getSprintRoute((j==null?void 0:j.Id)||null)),s&&i()},isOpen:k,isActive:A},j==null?void 0:j.Id):L?b.jsx(BMe,{collection:j,data:j,isOpen:k,isActive:A,onClick:()=>{j&&(e(fu(wn.collection,{collectionId:j.Id})),s&&i())}},j==null?void 0:j.Id):null},t[5]=i,t[6]=s,t[7]=e,t[8]=g):g=t[8];const S=g,w=WMe;let _;t[9]!==h||t[10]!==f||t[11]!==d?(_=M=>{var I;if(!M||!M.item)return;const j=ft(M==null?void 0:M.item.data,"isProject"),A=ft(M==null?void 0:M.item.data,"isFolder"),k=ft(M==null?void 0:M.item.data,"isCollection"),R=GMe(M);if(k){h({projectId:Number(M.item.parentId),tableId:Number(M.item.id),order:R});return}if(j||A){const L=M.item.data,F=M.parentItem,H={id:L.Id,order:R,parentId:F?Number(F.id):null};f(H);return}const N=M.item.data;d({...N,Order:R,ProjectId:Number((I=M.parentItem)==null?void 0:I.id)??N.ProjectId}).unwrap()},t[9]=h,t[10]=f,t[11]=d,t[12]=_):_=t[12];const E=_;let T;return t[13]!==E||t[14]!==S||t[15]!==l?(T={handleDragEnd:E,renderTreeItem:S,renderIcon:w,selected:l},t[13]=E,t[14]=S,t[15]=l,t[16]=T):T=t[16],T},GMe=t=>{const e=ft(t==null?void 0:t.prev,"data"),n=ft(t==null?void 0:t.next,"data"),r=ft(t==null?void 0:t.item,"data");return e?ft(r,"isCollection")?ft(e,"isCollection")?!n||!ft(n,"isCollection")?Number(e.order)+1||0:Number(n.order)||0:0:ft(r,"isProject")||ft(r,"isFolder")?ft(n,"isProject")||ft(n,"isFolder")?(n==null?void 0:n.Order)??1:(ft(e,"isProject")||ft(e,"isFolder"))&&Number(e==null?void 0:e.Order)+1||1:n?(n==null?void 0:n.Order)??0:e?Number(e.Order)+1||1:0:0};function WMe(t,e){const n=ft(t,"isFolder"),r=ft(t,"isProject"),o=ft(t,"isSprint"),s=ft(t,"isCollection"),i=(t==null?void 0:t.Color)||void 0;if(r)return b.jsx(y5,{size:24,name:t==null?void 0:t.Name,color:i,icon:t==null?void 0:t.IconId});if(n)return b.jsx(l5e,{isOpen:e,color:i});if(o)return b.jsx(i5e,{size:24,color:i});if(s)return b.jsx(rf,{size:24,variant:"transparent",color:i,children:b.jsx(_g,{size:20,stroke:1.5})})}const QMe=t=>{const e=be.c(2),{opened:n}=t;let r;return e[0]!==n?(r=n?b.jsx(Cg,{size:16}):b.jsx(ez,{size:16}),e[0]=n,e[1]=r):r=e[1],r},KMe={myProjects:xxe,otherProjects:Cxe},XMe=t=>{const e=be.c(15),{sectionFor:n}=t,r=Us(),{myProjects:o,otherProjects:s,data:i}=zk();let l;e[0]!==n?(l=w=>w.archiveSlice[n],e[0]=n,e[1]=l):l=e[1];const c=tn(l),{project:d,sprint:f}=Fk(),h=Object.values(c).every(JMe),p=KMe[n];let v;e[2]!==p||e[3]!==h||e[4]!==(i==null?void 0:i.Projects)||e[5]!==r||e[6]!==o||e[7]!==s||e[8]!==d||e[9]!==n||e[10]!==f?(v=()=>{r(p({isProjectsShow:!h,isSprintsShow:!h,isTasksShow:!h})),r(wt.util.invalidateTags(["Project"])),r(Ct.util.invalidateTags(["Counter"])),ZMe({sprint:f,project:d,projects:i==null?void 0:i.Projects})&&rc(n==="myProjects"?o[0].Id:s[0].Id)},e[2]=p,e[3]=h,e[4]=i==null?void 0:i.Projects,e[5]=r,e[6]=o,e[7]=s,e[8]=d,e[9]=n,e[10]=f,e[11]=v):v=e[11];const g=v;let S;return e[12]!==h||e[13]!==g?(S=b.jsx(Yc,{checked:h,onChange:g,size:"xs"}),e[12]=h,e[13]=g,e[14]=S):S=e[14],S};function ZMe({project:t,sprint:e,projects:n}){function r(l,c){const d=c==null?void 0:c.find(f=>f.Id===(l==null?void 0:l.Id));return!l||!d?[]:[d.State,...r(l.Parent,c)]}function o(l){return l===Ie.EntityState.Archive}const s=e&&n&&[e.State,...r(e.Parent,n)],i=t&&n&&[t.State,...r(t.Parent,n)];return(s==null?void 0:s.some(o))||(i==null?void 0:i.some(o))}function JMe(t){return t}const eje=t=>{const e=be.c(17),{sectionFor:n}=t,{t:r}=at();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=b.jsx(Mt.Target,{children:b.jsx(lr,{size:22,variant:"subtle",color:"var(--mantine-color-gray-5)",children:b.jsx(FE,{size:18})})}),e[0]=o):o=e[0];let s;e[1]!==n||e[2]!==r?(s=n==="myProjects"&&b.jsxs(b.Fragment,{children:[b.jsx(_t,{px:4,children:b.jsx(Mt.Item,{px:16,onClick:vB,children:b.jsxs(Lt,{gap:12,children:[b.jsx(R2,{size:20,stroke:1.2}),b.jsx(Dt,{size:"sm",c:"light-dark(var(--mantine-color-gray-8), var(--mantine-color-dark-0))",children:r("common.action.createProject")})]})})}),b.jsx(Mt.Divider,{my:8})]}),e[1]=n,e[2]=r,e[3]=s):s=e[3];let i;e[4]===Symbol.for("react.memo_cache_sentinel")?(i=b.jsx(xu,{size:20,stroke:1.2}),e[4]=i):i=e[4];let l;e[5]!==r?(l=r("common.action.archived"),e[5]=r,e[6]=l):l=e[6];let c;e[7]!==l?(c=b.jsxs(Lt,{gap:12,children:[i,b.jsx(Dt,{size:"sm",c:"light-dark(var(--mantine-color-gray-8), var(--mantine-color-dark-0))",children:l})]}),e[7]=l,e[8]=c):c=e[8];let d;e[9]!==n?(d=b.jsx(Mt.Item,{w:"fit-content",bg:"transparent",px:0,children:b.jsx(XMe,{sectionFor:n})}),e[9]=n,e[10]=d):d=e[10];let f;e[11]!==c||e[12]!==d?(f=b.jsx(_t,{px:4,children:b.jsxs(Lt,{justify:"space-between",align:"center",px:16,children:[c,d]})}),e[11]=c,e[12]=d,e[13]=f):f=e[13];let h;return e[14]!==s||e[15]!==f?(h=b.jsxs(Mt,{width:256,children:[o,b.jsxs(Mt.Dropdown,{py:8,px:0,children:[s,f]})]}),e[14]=s,e[15]=f,e[16]=h):h=e[16],h},tje="_action_1oyq6_1",nje="_button_1oyq6_15",rje="_buttonInner_1oyq6_22",oje="_buttonSection_1oyq6_26",G3={action:tje,button:nje,buttonInner:rje,buttonSection:oje},OP=t=>{const e=be.c(18),{label:n,sectionFor:r,children:o}=t,[s,i]=D.useState(!0);let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={inner:G3.buttonInner,section:G3.buttonSection},e[0]=l):l=e[0];const c=l;let d;e[1]===Symbol.for("react.memo_cache_sentinel")?(d=()=>i(sje),e[1]=d):d=e[1];let f;e[2]!==s?(f=b.jsx(QMe,{opened:s}),e[2]=s,e[3]=f):f=e[3];let h;e[4]!==n||e[5]!==f?(h=b.jsx(In,{onClick:d,leftSection:f,className:G3.button,classNames:c,size:"compact-md",color:"gray.6",variant:"transparent",children:n}),e[4]=n,e[5]=f,e[6]=h):h=e[6];let p;e[7]!==r?(p=b.jsx(eje,{sectionFor:r}),e[7]=r,e[8]=p):p=e[8];let v;e[9]!==h||e[10]!==p?(v=b.jsxs("div",{className:G3.action,children:[h,p]}),e[9]=h,e[10]=p,e[11]=v):v=e[11];let g;e[12]!==o||e[13]!==s?(g=b.jsx(H4,{in:s,children:o}),e[12]=o,e[13]=s,e[14]=g):g=e[14];let S;return e[15]!==v||e[16]!==g?(S=b.jsxs(_t,{gap:4,children:[v,g]}),e[15]=v,e[16]=g,e[17]=S):S=e[17],S};function sje(t){return!t}const ije=()=>{const t=be.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsx(_t,{gap:0,children:Array.from({length:4}).map(lje)}),t[0]=e):e=t[0],e},aje=["70%","40%","65%","75%"];function lje(t,e){return b.jsxs(qt,{justify:"flex-start",align:"center",gap:"lg",preventGrowOverflow:!0,wrap:"nowrap",mih:"41.67px",mb:2,children:[b.jsx(it,{h:20,w:"20px"}),b.jsx(it,{h:10,w:aje[e]})]},e)}const cje=D.memo(t=>{const e=be.c(30),{t:n}=at(),{handleDragEnd:r,renderTreeItem:o,renderIcon:s,selected:i}=YMe(),{isLoading:l,myProjectsTree:c,otherProjectsTree:d}=eEe(),{isLoading:f}=Ct.useGetCountersQuery(),h=tn(uje);if(l||f||h){let j,A;e[0]===Symbol.for("react.memo_cache_sentinel")?(j=b.jsxs(qt,{justify:"space-between",gap:"lg",preventGrowOverflow:!0,mt:16,mb:6,wrap:"nowrap",mih:30,children:[b.jsx(it,{h:10,w:"45%"}),b.jsx(it,{h:10,w:"10px"})]}),A=b.jsx(ije,{}),e[0]=j,e[1]=A):(j=e[0],A=e[1]);let k;return e[2]!==t?(k=b.jsxs(_t,{gap:"0",maw:300,...t,children:[j,A]}),e[2]=t,e[3]=k):k=e[3],k}let p;e[4]!==n?(p=n("sidebar.myProjects"),e[4]=n,e[5]=p):p=e[5];const v=i||"";let g;e[6]!==r||e[7]!==c||e[8]!==s||e[9]!==o||e[10]!==v?(g=b.jsx(RP,{collapsible:!0,data:c,indentationWidth:16,selected:v,onDragEnd:r,renderTreeItem:o,renderIcon:s}),e[6]=r,e[7]=c,e[8]=s,e[9]=o,e[10]=v,e[11]=g):g=e[11];let S;e[12]!==p||e[13]!==g?(S=b.jsx(OP,{label:p,sectionFor:"myProjects",children:g}),e[12]=p,e[13]=g,e[14]=S):S=e[14];let w;e[15]!==n?(w=n("sidebar.otherProjects"),e[15]=n,e[16]=w):w=e[16];const _=i||"";let E;e[17]!==r||e[18]!==d||e[19]!==s||e[20]!==o||e[21]!==_?(E=b.jsx(RP,{collapsible:!0,data:d,indentationWidth:16,renderTreeItem:o,renderIcon:s,selected:_,onDragEnd:r}),e[17]=r,e[18]=d,e[19]=s,e[20]=o,e[21]=_,e[22]=E):E=e[22];let T;e[23]!==w||e[24]!==E?(T=b.jsx(OP,{label:w,sectionFor:"otherProjects",children:E}),e[23]=w,e[24]=E,e[25]=T):T=e[25];let M;return e[26]!==t||e[27]!==S||e[28]!==T?(M=b.jsxs(_t,{gap:12,maw:300,...t,children:[S,T]}),e[26]=t,e[27]=S,e[28]=T,e[29]=M):M=e[29],M});function uje(t){return t.devSlice.skeletons.navigation}const PP=()=>{const t=be.c(5);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={gap:12},t[0]=e):e=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=b.jsx(V7e,{}),t[1]=n):n=t[1];let r,o;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=b.jsxs(fi.Section,{children:[n,b.jsx(je,{px:12,children:b.jsx(N7e,{})})]}),o=b.jsx(X7e,{px:12}),t[2]=r,t[3]=o):(r=t[2],o=t[3]);let s;return t[4]===Symbol.for("react.memo_cache_sentinel")?(s=b.jsxs(fi.Navbar,{style:e,children:[r,o,b.jsx(fi.Section,{grow:!0,component:Hi,scrollbarSize:12,children:b.jsx(cje,{px:12})}),b.jsx(j7e,{})]}),t[4]=s):s=t[4],s},dje=()=>{const{opened:t,isBurger:e,initSidebar:n,toggle:r}=uf(),o=f7e(s=>{s==="left"&&r()});return D.useEffect(()=>{n()},[e]),e?b.jsx(ll,{...o,classNames:{body:Kv.drawer},withCloseButton:!1,overlayProps:{opacity:.5},opened:t,onClose:r,size:300,children:b.jsx(PP,{})}):b.jsx(PP,{})},fje="_main_1skh4_1",hje={main:fje},NP=t=>{const e=be.c(19),{children:n}=t,{t:r}=at();d7e();const{isLoading:o,isError:s}=wt.useGetProjectsQuery(),i=tn(gje),l=tn(yje),c=tn(vje),d=mi("(max-width: 576px)");let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f={height:cq,offset:!1},e[0]=f):f=e[0];const h=c||(d?!l:void 0),p=c||(d?void 0:!l);let v;e[1]!==h||e[2]!==p?(v={width:300,breakpoint:"lg",collapsed:{mobile:h,desktop:p}},e[1]=h,e[2]=p,e[3]=v):v=e[3];let g,S;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=b.jsx(fi.Header,{children:b.jsx(E9e,{})}),S=b.jsx(dje,{}),e[4]=g,e[5]=S):(g=e[4],S=e[5]);let w;e[6]!==n||e[7]!==s||e[8]!==o||e[9]!==i||e[10]!==r?(w=b.jsx(fi.Main,{className:hje.main,children:o||i?b.jsx(lP,{}):s?b.jsx(p5,{title:r("500.title"),description:r("500.description"),illustration:"500",buttons:[{buttonText:r("500.reload"),handleClick:bje}]}):b.jsx(D.Suspense,{fallback:b.jsx(lP,{}),children:n||b.jsx(oee,{})})}),e[6]=n,e[7]=s,e[8]=o,e[9]=i,e[10]=r,e[11]=w):w=e[11];let _;e[12]!==v||e[13]!==w?(_=b.jsxs(fi,{withBorder:!1,layout:"alt",header:f,navbar:v,padding:"md",children:[g,S,w]}),e[12]=v,e[13]=w,e[14]=_):_=e[14];let E,T;e[15]===Symbol.for("react.memo_cache_sentinel")?(T=b.jsx(pje,{}),E=s7e()&&b.jsx(mje,{}),e[15]=E,e[16]=T):(E=e[15],T=e[16]);let M;return e[17]!==_?(M=b.jsxs(b.Fragment,{children:[_,T,E]}),e[17]=_,e[18]=M):M=e[18],M},pje=()=>{const t=be.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsxs(D.Suspense,{fallback:"Loading...",children:[b.jsx(FTe,{}),b.jsx(H8e,{}),b.jsx(uTe,{}),b.jsx(F8e,{}),b.jsx(tTe,{}),b.jsx(K8e,{}),b.jsx(gTe,{}),b.jsx(P8e,{}),b.jsx(Y9e,{}),b.jsx(J9e,{}),b.jsx(M8e,{}),b.jsx(QTe,{})]}),t[0]=e):e=t[0],e},mje=()=>{const t=be.c(2),e=MB();let n;return t[0]!==e?(n=[["ctrl + C",()=>e()]],t[0]=e,t[1]=n):n=t[1],o2(n),null};function gje(t){return t.devSlice.skeletons.mainContent}function yje(t){return t.layoutSlice.sidebarOpened}function vje(t){return t.layoutSlice.withoutSidebar}function bje(){return window.location.reload()}const Sje="_icon_sa1sa_5",wje="_title_sa1sa_22",xje="_description_sa1sa_32",i9={icon:Sje,title:wje,description:xje},O4=()=>{const t=be.c(28),{t:e}=at(),n=B$(),r=hc();let o;t[0]!==r?(o=()=>{r("/")},t[0]=r,t[1]=o):o=t[1];const s=o;let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i={height:"100dvh",color:"light-dark(var(--mantine-color-dark-8), var(--mantine-color-gray-5))"},t[2]=i):i=t[2];let l;t[3]===Symbol.for("react.memo_cache_sentinel")?(l=b.jsx("div",{className:i9.icon,children:b.jsx(Wme,{size:120,color:"red"})}),t[3]=l):l=t[3];let c;t[4]!==e?(c=e("notification.error.unexpected"),t[4]=e,t[5]=c):c=t[5];let d;t[6]!==c?(d=b.jsx(bg,{className:i9.title,children:c}),t[6]=c,t[7]=d):d=t[7];const f=(n==null?void 0:n.statusText)||(n==null?void 0:n.message);let h;t[8]!==f?(h=b.jsx(Dt,{fz:"md",ta:"center",className:i9.description,children:f}),t[8]=f,t[9]=h):h=t[9];let p;t[10]===Symbol.for("react.memo_cache_sentinel")?(p=b.jsx(S0e,{size:18}),t[10]=p):p=t[10];let v;t[11]!==e?(v=e("common.action.update"),t[11]=e,t[12]=v):v=t[12];let g;t[13]!==v?(g=b.jsx(In,{size:"md",leftSection:p,variant:"subtle",onClick:Cje,children:v}),t[13]=v,t[14]=g):g=t[14];let S;t[15]===Symbol.for("react.memo_cache_sentinel")?(S=b.jsx(zge,{size:18}),t[15]=S):S=t[15];let w;t[16]!==e?(w=e("common.action.backToHome"),t[16]=e,t[17]=w):w=t[17];let _;t[18]!==s||t[19]!==w?(_=b.jsx(In,{size:"md",variant:"subtle",leftSection:S,onClick:s,children:w}),t[18]=s,t[19]=w,t[20]=_):_=t[20];let E;t[21]!==_||t[22]!==g?(E=b.jsxs(qt,{justify:"center",mt:"md",children:[g,_]}),t[21]=_,t[22]=g,t[23]=E):E=t[23];let T;return t[24]!==E||t[25]!==d||t[26]!==h?(T=b.jsx(ex,{style:i,children:b.jsxs(_t,{children:[l,d,h,E]})}),t[24]=E,t[25]=d,t[26]=h,t[27]=T):T=t[27],T};O4.withLayout=t=>function(){return b.jsx(t,{children:b.jsx(O4,{})})};function Cje(){return window.location.reload()}const _je=()=>{const t=be.c(62),{t:e}=at(),[n,r]=mv.useLoginMutation(),{isLoading:o,isError:s,isSuccess:i}=r,l=Uk();let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c={Login:"",Password:""},t[0]=c):c=t[0];let d;t[1]!==e?(d={initialValues:c,validate:{Login:K=>(K||"").trim().length>0?null:e("auth.requiredField"),Password:K=>(K||"").trim().length>0?null:e("auth.requiredField")}},t[1]=e,t[2]=d):d=t[2];const f=D5(d);let h;t[3]!==n?(h=K=>{n(K).unwrap().then(Tje)},t[3]=n,t[4]=h):h=t[4];const p=h;let v;t[5]!==f||t[6]!==p?(v=f.onSubmit(p),t[5]=f,t[6]=p,t[7]=v):v=t[7];let g;t[8]===Symbol.for("react.memo_cache_sentinel")?(g={radius:"sm",blur:2},t[8]=g):g=t[8];let S;t[9]!==o?(S=b.jsx(g7,{visible:o,zIndex:1e3,overlayProps:g}),t[9]=o,t[10]=S):S=t[10];let w;t[11]!==e?(w=e("auth.title"),t[11]=e,t[12]=w):w=t[12];let _;t[13]!==w?(_=b.jsx(bg,{order:2,ta:"center",children:w}),t[13]=w,t[14]=_):_=t[14];const E=l?OU:PU;let T;t[15]!==E?(T=b.jsx(Lt,{component:"span",gap:8,justify:"center",children:b.jsx(dc,{src:E,h:"30",w:160})}),t[15]=E,t[16]=T):T=t[16];let M;t[17]!==T||t[18]!==_?(M=b.jsxs(qt,{gap:8,justify:"space-between",children:[_,T]}),t[17]=T,t[18]=_,t[19]=M):M=t[19];let j;t[20]===Symbol.for("react.memo_cache_sentinel")?(j=b.jsx(Jc,{}),t[20]=j):j=t[20];let A;t[21]!==s||t[22]!==e?(A=s&&b.jsx(Kh,{color:"red",children:e("auth.error")}),t[21]=s,t[22]=e,t[23]=A):A=t[23];let k;t[24]!==i||t[25]!==e?(k=i&&b.jsx(Kh,{color:"blue",children:e("auth.success")}),t[24]=i,t[25]=e,t[26]=k):k=t[26];let R;t[27]!==e?(R=e("auth.fields.login.label"),t[27]=e,t[28]=R):R=t[28];let N;t[29]!==e?(N=e("auth.fields.login.placeholder"),t[29]=e,t[30]=N):N=t[30];let I;t[31]!==f?(I=f.getInputProps("Login"),t[31]=f,t[32]=I):I=t[32];let L;t[33]!==R||t[34]!==N||t[35]!==I?(L=b.jsx(Is,{"data-autofocus":!0,variant:"default",label:R,placeholder:N,required:!0,...I}),t[33]=R,t[34]=N,t[35]=I,t[36]=L):L=t[36];let F;t[37]!==e?(F=e("auth.fields.password.label"),t[37]=e,t[38]=F):F=t[38];let H;t[39]!==e?(H=e("auth.fields.password.placeholder"),t[39]=e,t[40]=H):H=t[40];let B;t[41]!==f?(B=f.getInputProps("Password"),t[41]=f,t[42]=B):B=t[42];let Y;t[43]!==F||t[44]!==H||t[45]!==B?(Y=b.jsx(M7,{variant:"default",label:F,placeholder:H,required:!0,...B}),t[43]=F,t[44]=H,t[45]=B,t[46]=Y):Y=t[46];let U;t[47]!==M||t[48]!==A||t[49]!==k||t[50]!==L||t[51]!==Y?(U=b.jsx(dp,{active:!0,children:b.jsxs(_t,{gap:16,children:[M,j,A,k,L,Y]})}),t[47]=M,t[48]=A,t[49]=k,t[50]=L,t[51]=Y,t[52]=U):U=t[52];let q;t[53]!==e?(q=e("auth.title"),t[53]=e,t[54]=q):q=t[54];let z;t[55]!==q?(z=b.jsx(In,{type:"submit",fullWidth:!0,"data-cy":"submitButton",mt:32,children:q}),t[55]=q,t[56]=z):z=t[56];let W;return t[57]!==U||t[58]!==z||t[59]!==v||t[60]!==S?(W=b.jsx(il,{shadow:"md",p:24,w:"100%",maw:450,children:b.jsxs("form",{onSubmit:v,"data-cy":"loginForm",children:[S,U,z]})}),t[57]=U,t[58]=z,t[59]=v,t[60]=S,t[61]=W):W=t[61],W};function Tje(t){window.location.href="/"}const IP=void 0,Eje=()=>{const t=be.c(7),{data:e,isLoading:n}=zi.endpoints.get.useQueryState(),r=hc();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=window.location.search.includes("login=true"),t[0]=o):o=t[0];const s=o;let i,l;if(t[1]!==e||t[2]!==r?(i=()=>{var h;if(!e||s||IP)return;if(e.UserId>0){r("/",{replace:!0});return}const d=(h=e.ModuleSettings.ModuleUrls.find(kje))==null?void 0:h.Url;if(!d)return;const f=encodeURIComponent(window.location.origin);window.location.href=`${d}/login?returnUrl=${f}`},l=[e,r,s],t[1]=e,t[2]=r,t[3]=i,t[4]=l):(i=t[3],l=t[4]),D.useEffect(i,l),n){let c;return t[5]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx(w4,{}),t[5]=c):c=t[5],c}if(s||IP){let c;return t[6]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx(_t,{p:24,mih:"100dvh",align:"center",justify:"center",bg:"blue.1",children:b.jsx(_je,{})}),t[6]=c):c=t[6],c}};function kje(t){return t.Name==="Admin"}const Mje=D.lazy(()=>oo(()=>import("./CollectionPage-lLWADpGQ.js"),__vite__mapDeps([34,35,36]))),jje=D.lazy(()=>oo(()=>import("./FolderPage-D9D2CeAx.js"),__vite__mapDeps([37,38,39,40,12,13,21,5,15,41,42,18,19,20,43,44,22,23,24,45,46,47,30,48,49]))),Dje=D.lazy(()=>oo(()=>import("./ListSprintPage-B7uA3eVN.js"),__vite__mapDeps([50,18,19,20,38,43,44,22,23,24,45,46,48,51,39,40,12,13,21,5,15,41,25,14,52,53]))),Aje=D.lazy(()=>oo(()=>import("./KanbanSprintPage-BBCLFtNf.js"),__vite__mapDeps([54,18,19,20,48,44,22,23,51,39,40,12,13,21,5,15,41,25,14,52,55]))),Rje=D.lazy(()=>oo(()=>import("./TimelinePage-DzRa-wq_.js"),__vite__mapDeps([56,18,19,20,48,25,12,27,40,13,21,5,15,41,6,28,23,24,51,39,14,52,57]))),Oje=D.lazy(()=>oo(()=>import("./index-DGvge4Tw.js"),__vite__mapDeps([58,39,42,18,19,20,43,44,22,23,24,45,46,47,30,48,53]))),Pje=D.lazy(()=>oo(()=>import("./UpdatesPage-Fzkd8GDv.js"),__vite__mapDeps([59,26,60]))),Nje=D.lazy(()=>oo(()=>import("./TrashPage-mq2sVjsM.js"),__vite__mapDeps([61,39,35,62]))),Ije=D.lazy(()=>oo(()=>import("./index-fNBtxS9K.js"),__vite__mapDeps([63,64,12,65]))),$je=D.lazy(()=>oo(()=>import("./index-BBpliREt.js"),__vite__mapDeps([64,12,65]))),Lje=D.lazy(()=>oo(()=>import("./RedirectToFirstProject-Cti-lQ9j.js"),[])),Fje="",zje={basename:Fje},ui=hee([{path:wn.login,element:b.jsx(Eje,{}),ErrorBoundary:O4},{path:"/",element:b.jsx(Kxe,{children:b.jsx(NP,{})}),ErrorBoundary:O4.withLayout(NP),children:[{path:wn.collection,element:b.jsx(Mje,{})},{path:wn.folder,element:b.jsx(jje,{})},{path:wn.sprintList,element:b.jsx(Dje,{})},{path:wn.sprintKanban,element:b.jsx(Aje,{})},{path:wn.sprintTimeline,element:b.jsx(Rje,{})},{path:wn.myIssues,element:b.jsx(Oje,{})},{path:wn.updates,element:b.jsx(Pje,{})},{path:wn.trash,element:b.jsx(Nje,{})},{path:wn.invite,element:b.jsx(Ije,{})},{path:"/",index:!0,element:b.jsx(Lje,{})},{path:"*",element:b.jsx($je,{})}]}],zje),Uje={opened:!1,taskKey:null},Jv="task",Kk=t=>{const e=ui.state.location.search,n=rg.parse(e);n[Jv]=t,ui.navigate({search:rg.stringify(n)})},Bje=()=>{const t=ui.state.location.search;ui.navigate({search:rg.exclude(t,[Jv])})},e2=Jr({name:"taskModalSlice",initialState:Uje,reducers:{close:t=>{t.taskKey=null,t.opened=!1},openTask:(t,e)=>{t.taskKey=e.payload,t.opened=!0}}}),$P={entities:[],selectedEntities:[],availableEntities:-1},X8=Jr({name:"trashTableSlice",initialState:$P,reducers:{setTrashTableEntities:(t,e)=>{const n=e.payload,r=n.reduce((o,s)=>s.access===Ie.AccessType.Full?++o:o,0);t.entities=n,t.availableEntities=r},changeSelectedEntities:(t,e)=>{t.selectedEntities=qz(t.selectedEntities,e.payload,"uniqId")},selectAllEntities:t=>{t.selectedEntities.length?t.selectedEntities=[]:t.selectedEntities=t.entities.reduce((e,n)=>n.access===Ie.AccessType.Full?[...e,n]:e,[])},clearState:()=>$P}}),{setTrashTableEntities:oAe,selectAllEntities:sAe,changeSelectedEntities:iAe,clearState:aAe}=X8.actions,Hje=t=>h8(t,"dd.MM.y",new Date),lAe=t=>t.toSorted((e,n)=>NF(h8(e.date,"dd.MM.y",new Date),h8(n.date,"dd.MM.y",new Date))?-1:1),qje=JSON.parse(`[{"date":"10.05.2025","ru":[{"img":"/images/updates/ru/task-list-export.png","title":"Экспорт списка задач","features":[{"title":"Выгрузка задач","description":"Экспортируйте список задач в удобном формате для внешнего использования или анализа."},{"title":"Хранение и отчётность","description":"Это поможет сохранить данные локально и использовать их для отчетов, бэкапов или передачи."}]},{"img":"/images/updates/ru/archive.png","title":"Архив","features":[{"title":"Архивирование элементов","description":"Переносите завершённые или неактуальные задачи, списки и проекты в архив."},{"title":"Чистота рабочего пространства","description":"Архив помогает поддерживать порядок в активных задачах, не теряя истории работы."}]}],"en":[{"img":"/images/updates/en/task-list-export.png","title":"Task List Export","features":[{"title":"Export tasks","description":"Export your task list in a convenient format for external use or analysis."},{"title":"Storage and reporting","description":"This allows you to store data locally and use it for reports, backups, or sharing."}]},{"img":"/images/updates/en/archive.png","title":"Archive","features":[{"title":"Archiving items","description":"Move completed or outdated tasks, lists, and projects to the archive."},{"title":"Clean workspace","description":"The archive keeps your active workspace tidy without losing your work history."}]}]},{"date":"01.03.2025","ru":[{"img":"/images/updates/ru/attachments-in-comments.png","title":"Вложения в комментарии","features":[{"title":"Прикрепление файлов","description":"Добавляйте файлы в комментарии к задачам для наглядного сопровождения обсуждений."},{"title":"Удобство просмотра","description":"Вложения отображаются прямо в комментариях и доступны для просмотра всеми участниками."}]},{"img":"/images/updates/ru/mention-in-comments.png","title":"Отметить пользователя в комментариях","features":[{"title":"Упоминания через @","description":"Используйте символ @, чтобы отметить участника в комментариях к задаче."},{"title":"Быстрая коммуникация","description":"Это помогает направить сообщение конкретному человеку и ускоряет обсуждение."}]},{"img":"/images/updates/ru/multilanguage.png","title":"Мультиязычность","features":[{"title":"Смена языка","description":"Переключайте язык интерфейса на английский в настройках профиля пользователя."},{"title":"Работа в международной команде","description":"Это позволяет комфортно использовать платформу участникам с разным языком интерфейса."}]}],"en":[{"img":"/images/updates/en/attachments-in-comments.png","title":"Attachments in Comments","features":[{"title":"Attach files","description":"Add files to task comments for clearer context in discussions."},{"title":"Easy preview","description":"Attachments are shown directly in the comments and accessible to all team members."}]},{"img":"/images/updates/en/mention-in-comments.png","title":"Mention Users in Comments","features":[{"title":"@ Mentions","description":"Use the @ symbol to mention team members directly in task comments."},{"title":"Faster communication","description":"Helps direct messages to specific people and speeds up collaboration."}]},{"img":"/images/updates/en/multilanguage.png","title":"Multilanguage Support","features":[{"title":"Language switch","description":"Change the interface language to English from the user profile settings."},{"title":"Global teamwork","description":"Enables a smoother experience for international teams with different language preferences."}]}]},{"date":"10.01.2025","ru":[{"img":"/images/updates/ru/notifications.png","title":"Уведомления","features":[{"title":"Отображение событий","description":"Важные события отображаются в отдельном блоке уведомлений."},{"title":"Контроль изменений","description":"Это помогает отслеживать ключевые действия и быстро реагировать на них в повседневной работе."}]},{"img":"/images/updates/ru/trash.png","title":"Корзина","features":[{"title":"Удаление объектов","description":"Удалённые задачи, списки и проекты сначала попадают в корзину пользователя."},{"title":"Очистка и восстановление","description":"После удаления доступна функция восстановления в исходном виде."}]},{"img":"/images/updates/ru/task-duplication.png","title":"Дублирование задачи","features":[{"title":"Создание копии","description":"Дублируйте задачи целиком с сохранением всех полей и свойств."},{"title":"Повторное использование","description":"Это удобно при работе с шаблонами и повторяющимися задачами, позволяя экономить время на настройке."}]}],"en":[{"img":"/images/updates/en/notifications.png","title":"Notifications","features":[{"title":"Event display","description":"Important events are shown in a separate notification block."},{"title":"Change tracking","description":"Helps monitor key actions and quickly respond to them during daily workflows."}]},{"img":"/images/updates/en/trash.png","title":"Trash","features":[{"title":"Object removal","description":"Deleted tasks, lists, and projects are first moved to the user's trash."},{"title":"Cleanup and recovery","description":"After deletion, the restore function is available to return the item to its original state."}]},{"img":"/images/updates/en/task-duplication.png","title":"Task Duplication","features":[{"title":"Create a copy","description":"Fully duplicate tasks while preserving all fields and properties."},{"title":"Reuse","description":"Useful for templates and recurring tasks, saving time on configuration."}]}]},{"date":"24.10.2024","ru":[{"img":"/images/updates/ru/custom-fields.png","title":"Пользовательские поля","features":[{"title":"Настройка полей","description":"Добавляйте пользовательские поля для задач, чтобы персонализировать проекты и собирать уникальные данные."},{"title":"Типы данных","description":"Используйте текст, ссылки и варианты для гибкого управления информацией в задачах."}]},{"img":"/images/updates/ru/unread-task.png","title":"Непрочитанные задачи","features":[{"title":"Оповещение о непрочитанных задачах","description":"Связывайте задачи друг с другом для четкого планирования и координации."},{"title":"Отображение непрочитанных задач","description":"Используйте функцию отображения для того, чтобы видеть только те задачи, которые ещё не были просмотрены. Это поможет вам легко найти и работать с задачами, требующими вашего внимания."}]},{"img":"/images/updates/ru/subtask.png","title":"Подзадачи","features":[{"title":"Создание подзадач","description":"Создавайте подзадачи для более детализированного планирования задач и разделения работы."},{"title":"Связь с основной задачей","description":"Подзадачи связаны с основной задачей, что помогает отслеживать их выполнение в рамках общего проекта."}]}],"en":[{"img":"/images/updates/en/custom-fields.png","title":"Custom Fields","features":[{"title":"Field configuration","description":"Add custom fields to tasks to personalize projects and collect unique data."},{"title":"Data types","description":"Use text, links, and options for flexible information management within tasks."}]},{"img":"/images/updates/en/unread-task.png","title":"Unread Tasks","features":[{"title":"Unread task notifications","description":"Link tasks to one another for clear planning and coordination."},{"title":"Unread task display","description":"Use the display filter to view only tasks that haven't been seen yet. This helps you quickly find and focus on tasks that need your attention."}]},{"img":"/images/updates/en/subtask.png","title":"Subtasks","features":[{"title":"Subtask creation","description":"Create subtasks for more detailed task planning and work division."},{"title":"Link to parent task","description":"Subtasks are connected to the main task, helping you track their progress within the overall project."}]}]},{"date":"11.07.2024","ru":[{"img":"/images/updates/ru/kanban.png","title":"Вид представления - Доска Kanban","features":[{"title":"Визуальное управление задачами","description":"Отображение задач по статусам в виде карточек."},{"title":"Быстрое перемещение","description":"Перетаскивайте задачи между колонками с помощью drag & drop."}]},{"img":"/images/updates/ru/gantt.png","title":"Вид представления - Диаграмма Ганта","features":[{"title":"Планирование сроков","description":"Отображайте продолжительность задач на временной шкале."},{"title":"Редактирование прямо на диаграмме","description":"Меняйте даты начала и окончания задач."}]},{"img":"/images/updates/ru/dnd-between-statuses.png","title":"Перемещение задачи между статусами","features":[{"title":"Drag & Drop","description":"Быстро меняйте статус задачи с помощью простого перетаскивания."},{"title":"Автоматическое обновление","description":"Новое положение сохраняется моментально."}]},{"img":"/images/updates/ru/task-links.png","title":"Связывание задач","features":[{"title":"Гибкие зависимости","description":"Устанавливайте связи между задачами: блокирует, дублирует и др."},{"title":"Переход между задачами","description":"Быстрый доступ к связанным задачам."}]},{"img":"/images/updates/ru/multiple-participants.png","title":"Массовое добавление пользователей","features":[{"title":"Приглашение по списку","description":"Добавляйте сразу несколько участников с помощью email."},{"title":"Ускоренная работа","description":"Массовая отправка упрощает настройку доступа."}]}],"en":[{"img":"/images/updates/en/kanban.png","title":"Type of performance - Kanban","features":[{"title":"Visual task control","description":"Display tasks as cards grouped by status."},{"title":"Quick rearrangement","description":"Drag & drop tasks between columns easily."}]},{"img":"/images/updates/en/gantt.png","title":"Type of presentation - Gantt chart","features":[{"title":"Timeline management","description":"See task durations and project structure at a glance."},{"title":"Interactive","description":"Adjust dates directly in the chart."}]},{"img":"/images/updates/en/dnd-between-statuses.png","title":"Moving a task between statuses","features":[{"title":"Simple task movement","description":"Update task status just by dragging."},{"title":"Instant save","description":"No need to confirm or reload."}]},{"img":"/images/updates/en/task-links.png","title":"Task linking","features":[{"title":"Smart dependencies","description":"Connect tasks logically with relation types."},{"title":"Linked navigation","description":"Jump between related tasks instantly."}]},{"img":"/images/updates/en/multiple-participants.png","title":"Mass addition of users to the project","features":[{"title":"Bulk invite","description":"Add multiple users by email in one action."},{"title":"Save time","description":"Quickly assemble your team."}]}]}]`),Vje="viewedUpdate",Yje=t=>{const e=localStorage.getItem(Vje),n=e?new Date(e):null;return n?NF(Hje(t),n):!0},LP=Jr({name:"updatesSlice",initialState:{count:qje.filter(t=>Yje(t.date)).length},reducers:{clear(t){t.count=0}}}),Gje=Rue(),lt=sue({reducer:{[zi.reducerPath]:zi.reducer,[Vh.reducerPath]:Vh.reducer,[wt.reducerPath]:wt.reducer,[nr.reducerPath]:nr.reducer,[F6.reducerPath]:F6.reducer,[V6.reducerPath]:V6.reducer,[da.reducerPath]:da.reducer,[Ct.reducerPath]:Ct.reducer,[li.reducerPath]:li.reducer,[mv.reducerPath]:mv.reducer,[tu.reducerPath]:tu.reducer,[Hh.reducerPath]:Hh.reducer,[Ui.reducerPath]:Ui.reducer,DCNotificationApi:_3.DCNotificationApi,DCContactApi:_3.DCContactApi,DCSettingsApi:_3.DCSettingsApi,DCUserApi:_3.DCUserApi,[e2.reducerPath]:e2.reducer,[v4.reducerPath]:v4.reducer,[Dd.reducerPath]:Dd.reducer,[du.reducerPath]:du.reducer,[S4.reducerPath]:S4.reducer,[ng.reducerPath]:ng.reducer,[y4.reducerPath]:y4.reducer,[b4.reducerPath]:b4.reducer,[D8.reducerPath]:D8.reducer,[T4.reducerPath]:T4.reducer,[NO.reducerPath]:NO.reducer,[LP.reducerPath]:LP.reducer,[mk.reducerPath]:Awe,[X8.reducerPath]:X8.reducer,[h5.reducerPath]:Dxe,[Sk.reducerPath]:_xe},middleware:t=>t({serializableCheck:{ignoredActions:["createTaskModal/open","attachmentsApi/executeQuery/fulfilled","attachmentsApi/executeQuery/pending",lk,a5,ck,uk,dk,fk],ignoredPaths:["createTaskModal","attachmentsApi.queries","attachmentsApi.mutations"]}}).concat(Ct.middleware).concat(wt.middleware).concat(nr.middleware).concat(li.middleware).concat(Vh.middleware).concat(F6.middleware).concat(V6.middleware).concat(da.middleware).concat(zi.middleware).concat(mv.middleware).concat(tu.middleware).concat(Hh.middleware).concat(Ui.middleware).concat(...noe).prepend(Gje.middleware)}),Us=()=>aE(),tn=RL,Wje=wwe(lt);rt.locale("ru");const Qje=t=>{const e=be.c(2),{children:n}=t;cme();let r;return e[0]!==n?(r=b.jsx(aq,{i18n:ko,children:b.jsx(ace,{store:lt,children:b.jsx(CF,{persistor:Wje,children:b.jsx(SN,{theme:yce,defaultColorScheme:"light",withCssVariables:!0,children:b.jsx(Kje,{children:n})})})})}),e[0]=n,e[1]=r):r=e[1],r},Kje=t=>{const e=be.c(5),{children:n}=t;Ede();let r;e[0]!==n?(r=b.jsx(Lde,{children:n}),e[0]=n,e[1]=r):r=e[1];let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=b.jsx(wu,{position:"bottom-right"}),e[2]=o):o=e[2];let s;return e[3]!==r?(s=b.jsxs(b.Fragment,{children:[r,o]}),e[3]=r,e[4]=s):s=e[4],s},Xje=()=>{const t=be.c(4),{isLoading:e,isSuccess:n,isError:r}=zi.useGetQuery();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={skip:window.location.pathname===wn.login},t[0]=o):o=t[0];const{isLoading:s}=zi.useGetTimezonesQuery(void 0,o),i=tn(Zje);if(r){let l;return t[1]===Symbol.for("react.memo_cache_sentinel")?(l=b.jsx(wU,{}),t[1]=l):l=t[1],l}if(e||s||i){let l;return t[2]===Symbol.for("react.memo_cache_sentinel")?(l=b.jsx(w4,{}),t[2]=l):l=t[2],l}if(n){let l;return t[3]===Symbol.for("react.memo_cache_sentinel")?(l=b.jsx(wee,{router:ui,fallbackElement:b.jsx(w4,{})}),t[3]=l):l=t[3],l}return null};function Zje(t){return t.devSlice.skeletons.topPreloader}const Jje=()=>{const t=be.c(26),e=tn(eDe),n=Us();let r;t[0]!==n||t[1]!==e?(r=g=>{const w=g.target.name==="all"?ok(e,()=>g.target.checked):{[g.target.name]:g.target.checked};n(D8.actions.setSkeletons(w))},t[0]=n,t[1]=e,t[2]=r):r=t[2];const o=r;let s;t[3]===Symbol.for("react.memo_cache_sentinel")?(s={zIndex:1},t[3]=s):s=t[3];const i=Object.values(e).every(tDe);let l;t[4]!==o||t[5]!==i?(l=b.jsx(Yc,{name:"all",label:"Switch all",checked:i,onChange:o}),t[4]=o,t[5]=i,t[6]=l):l=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx(Jc,{}),t[7]=c):c=t[7];let d;t[8]!==o||t[9]!==e.topPreloader?(d=b.jsx(Yc,{name:"topPreloader",label:"Top preloader",checked:e.topPreloader,onChange:o}),t[8]=o,t[9]=e.topPreloader,t[10]=d):d=t[10];let f;t[11]!==o||t[12]!==e.navigation?(f=b.jsx(Yc,{name:"navigation",label:"Navigation",checked:e.navigation,onChange:o}),t[11]=o,t[12]=e.navigation,t[13]=f):f=t[13];let h;t[14]!==o||t[15]!==e.mainContent?(h=b.jsx(Yc,{name:"mainContent",label:"Main Content",checked:e.mainContent,onChange:o}),t[14]=o,t[15]=e.mainContent,t[16]=h):h=t[16];let p;t[17]!==o||t[18]!==e.tasks?(p=b.jsx(Yc,{name:"tasks",label:"Task List",checked:e.tasks,onChange:o}),t[17]=o,t[18]=e.tasks,t[19]=p):p=t[19];let v;return t[20]!==l||t[21]!==d||t[22]!==f||t[23]!==h||t[24]!==p?(v=b.jsx(il,{pos:"absolute",bottom:10,right:10,p:10,withBorder:!0,style:s,children:b.jsxs(_t,{children:[l,c,d,f,h,p]})}),t[20]=l,t[21]=d,t[22]=f,t[23]=h,t[24]=p,t[25]=v):v=t[25],v};function eDe(t){return t.devSlice.skeletons}function tDe(t){return t}const nDe=t=>{localStorage.setItem("showDevtools",t)},rDe=()=>localStorage.getItem("showDevtools")==="true";function oDe(){const t=be.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsxs(Qje,{children:[b.jsx(Xje,{}),rDe()&&b.jsx(Jje,{})]}),t[0]=e):e=t[0],e}const sDe="PROD-1779720251[25.05.2026, 17:44:11]-5052613a",iDe=document.getElementById("root");window.appVersion=sDe;window.appFeature=o7e;window.appDevtools=nDe;OH.createRoot(iDe).render(b.jsx(oDe,{}));export{A1e as $,lr as A,In as B,$1 as C,Bh as D,L5e as E,Lt as F,qt as G,S4 as H,O2 as I,Ie as J,Qe as K,va as L,x_e as M,Cr as N,Lr as O,y5 as P,yi as Q,bge as R,_t as S,Is as T,g7 as U,LE as V,$E as W,nz as X,Pd as Y,R2 as Z,Jc as _,VE as a,sg as a$,wge as a0,gi as a1,it as a2,Eg as a3,p4 as a4,jg as a5,ap as a6,oo as a7,sO as a8,H6 as a9,A5 as aA,dr as aB,r7 as aC,Mye as aD,Ve as aE,Ae as aF,pt as aG,No as aH,cDe as aI,Pe as aJ,_r as aK,ai as aL,zE as aM,x4 as aN,xTe as aO,m4 as aP,pw as aQ,z9e as aR,Vh as aS,QCe as aT,w4 as aU,gEe as aV,gP as aW,nH as aX,tH as aY,Hi as aZ,uke as a_,B2e as aa,Vv as ab,Us as ac,CDe as ad,Wv as ae,Fs as af,iN as ag,Lk as ah,sk as ai,eCe as aj,Gz as ak,Ct as al,Yr as am,Dg as an,Ui as ao,vDe as ap,w3e as aq,q3e as ar,zge as as,ex as at,vB as au,p5 as av,zk as aw,Xxe as ax,rc as ay,lP as az,hc as b,Tv as b$,V9e as b0,o5 as b1,tAe as b2,ul as b3,no as b4,nk as b5,RB as b6,sT as b7,aP as b8,ci as b9,N8 as bA,L1 as bB,Lh as bC,pN as bD,xp as bE,fB as bF,jk as bG,YCe as bH,H5e as bI,A5e as bJ,BU as bK,n9e as bL,l6e as bM,xu as bN,rf as bO,mi as bP,Wd as bQ,ig as bR,P6e as bS,j5e as bT,N6e as bU,cx as bV,bi as bW,nT as bX,H4 as bY,Si as bZ,Wi as b_,pg as ba,Yje as bb,lAe as bc,qje as bd,c7 as be,li as bf,HU as bg,Rn as bh,r$ as bi,T9 as bj,Zd as bk,hu as bl,Uk as bm,OTe as bn,Kk as bo,Yo as bp,Xx as bq,rve as br,O1 as bs,kg as bt,tve as bu,N1 as bv,M3e as bw,Cg as bx,ez as by,UU as bz,be as c,Yc as c$,vM as c0,UY as c1,pc as c2,v3e as c3,b1 as c4,CL as c5,qz as c6,i5 as c7,Ag as c8,I8 as c9,Aw as cA,Eo as cB,s2 as cC,eo as cD,an as cE,m9e as cF,kv as cG,fV as cH,_5e as cI,E7 as cJ,C5e as cK,DTe as cL,v9e as cM,dP as cN,ag as cO,ef as cP,hs as cQ,ku as cR,Eu as cS,m5 as cT,dq as cU,ui as cV,Gx as cW,bB as cX,SB as cY,qDe as cZ,Eee as c_,UE as ca,F6 as cb,Hr as cc,dB as cd,Mt as ce,FE as cf,Wx as cg,Qx as ch,cf as ci,_De as cj,dc as ck,MB as cl,nr as cm,_8e as cn,IE as co,L5 as cp,Dk as cq,_Me as cr,Pk as cs,ru as ct,h6e as cu,Ht as cv,Sa as cw,Dr as cx,fp as cy,cp as cz,jee as d,oAe as d$,Gk as d0,dI as d1,Mke as d2,Bke as d3,lc as d4,B1e as d5,R0e as d6,cr as d7,S_e as d8,Nke as d9,Fje as dA,ur as dB,x8 as dC,Yx as dD,S0e as dE,ou as dF,ii as dG,zTe as dH,g8 as dI,L2 as dJ,N2 as dK,Oz as dL,Pz as dM,JSe as dN,K1 as dO,Dye as dP,YE as dQ,Uz as dR,ok as dS,vSe as dT,N2e as dU,$z as dV,us as dW,iAe as dX,sAe as dY,B5e as dZ,_g as d_,Oke as da,BB as db,G2 as dc,IMe as dd,fr as de,gDe as df,yDe as dg,ace as dh,_1 as di,lE as dj,Cce as dk,Qw as dl,Qa as dm,X3e as dn,I_e as dp,u8e as dq,d8e as dr,t2 as ds,al as dt,mO as du,zz as dv,Sg as dw,jt as dx,ro as dy,uDe as dz,da as e,qU as e$,aAe as e0,Tw as e1,r2 as e2,co as e3,Xd as e4,m_e as e5,ft as e6,C8e as e7,il as e8,d0e as e9,Qi as eA,Li as eB,dN as eC,Ar as eD,Vr as eE,Hx as eF,kF as eG,vp as eH,I2e as eI,F2 as eJ,I2 as eK,obe as eL,O3e as eM,Sfe as eN,Hd as eO,TE as eP,dpe as eQ,u4 as eR,bfe as eS,wfe as eT,ac as eU,NU as eV,hke as eW,gke as eX,v6e as eY,tu as eZ,MF as e_,Bx as ea,TDe as eb,p8 as ec,D9e as ed,Vd as ee,o2 as ef,lge as eg,Xh as eh,VDe as ei,wDe as ej,T5e as ek,xDe as el,JDe as em,_6e as en,ZDe as eo,BE as ep,S6e as eq,K0e as er,kB as es,nu as et,LU as eu,Dd as ev,N0e as ew,ll as ex,_0e as ey,a1e as ez,bg as f,r1 as f$,h8e as f0,B1 as f1,Qh as f2,D5 as f3,YDe as f4,QDe as f5,twe as f6,qr as f7,eAe as f8,C_e as f9,Gh as fA,YV as fB,NQ as fC,B4 as fD,fve as fE,Aye as fF,yz as fG,H2e as fH,Ls as fI,P3e as fJ,tx as fK,lDe as fL,$d as fM,Go as fN,r9e as fO,$0e as fP,M6e as fQ,XDe as fR,Nd as fS,GDe as fT,rg as fU,cc as fV,Zy as fW,dp as fX,i2 as fY,i7 as fZ,Gge as f_,A7 as fa,o5e as fb,P3 as fc,s5 as fd,HE as fe,I1 as ff,JB as fg,eH as fh,rAe as fi,WDe as fj,KDe as fk,rN as fl,d9 as fm,nV as fn,g_e as fo,NO as fp,rt as fq,Mk as fr,BO as fs,zi as ft,lCe as fu,nAe as fv,pu as fw,aT as fx,tT as fy,Gd as fz,lt as g,SN as g0,sc as g1,M0e as g2,h1e as g3,GV as g4,ql as g5,W0e as g6,Ga as g7,X1e as g8,zP as g9,ko as ga,rq as gb,Tge as gc,e1e as gd,Kme as ge,ige as gf,o0e as gg,Zme as gh,aq as gi,n1e as gj,f2 as gk,jE as gl,NF as gm,rCe as gn,zF as go,jTe as gp,t9 as gq,kTe as gr,Bje as gs,e2 as gt,fu as h,Zr as i,b as j,wn as k,ng as l,ds as m,Dt as n,tn as o,wt as p,v5 as q,D as r,Xy as s,EB as t,at as u,ha as v,Ev as w,je as x,Fz as y,rP as z};
