@luminix/mui-cms 0.0.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/.eslintrc.cjs +18 -0
  2. package/README.md +30 -0
  3. package/bundle/mui-cms.bundle.iife.js +196 -0
  4. package/bundle/style.css +1 -0
  5. package/bundle/vite.svg +1 -0
  6. package/dist/mui-cms.js +3163 -0
  7. package/dist/vite.svg +1 -0
  8. package/package.json +46 -0
  9. package/tsconfig.json +25 -0
  10. package/tsconfig.node.json +11 -0
  11. package/types/components/Breadcrumbs.d.ts +3 -0
  12. package/types/components/DesktopPageTitle.d.ts +2 -0
  13. package/types/components/Layout/AppBar/MenuButton.d.ts +3 -0
  14. package/types/components/Layout/AppBar.d.ts +4 -0
  15. package/types/components/Layout/BackButton.d.ts +4 -0
  16. package/types/components/Layout/Drawer.d.ts +4 -0
  17. package/types/components/Layout/SearchBar.d.ts +4 -0
  18. package/types/components/Link.d.ts +7 -0
  19. package/types/components/LuminixCms.d.ts +4 -0
  20. package/types/components/ModelIndex/Filter/Content.d.ts +3 -0
  21. package/types/components/ModelIndex/Filter/Row.d.ts +4 -0
  22. package/types/components/ModelIndex/Filter/ValueInput/AsyncAutocomplete.d.ts +3 -0
  23. package/types/components/ModelIndex/Filter/ValueInput/DatePicker.d.ts +4 -0
  24. package/types/components/ModelIndex/Filter/ValueInput/Switch.d.ts +3 -0
  25. package/types/components/ModelIndex/Filter/ValueInput/TextField.d.ts +4 -0
  26. package/types/components/ModelIndex/Filter/ValueInput.d.ts +3 -0
  27. package/types/components/ModelIndex/Filter/useRow.d.ts +19 -0
  28. package/types/components/ModelIndex/Filter.d.ts +3 -0
  29. package/types/components/ModelIndex/InstanceActions.d.ts +5 -0
  30. package/types/components/ModelIndex/MassActions.d.ts +4 -0
  31. package/types/components/ModelIndex/Pagination.d.ts +4 -0
  32. package/types/components/ModelIndex/PaginationDetails.d.ts +3 -0
  33. package/types/components/ModelIndex/PerPageSwitch.d.ts +3 -0
  34. package/types/components/ModelIndex/Sort.d.ts +3 -0
  35. package/types/components/ModelIndex/StaticActions.d.ts +4 -0
  36. package/types/components/ModelIndex/Table/ShrinkedCell.d.ts +4 -0
  37. package/types/components/ModelIndex/Table/TableBody/Skeleton.d.ts +3 -0
  38. package/types/components/ModelIndex/Table/TableBody/TableRow.d.ts +4 -0
  39. package/types/components/ModelIndex/Table/TableBody.d.ts +4 -0
  40. package/types/components/ModelIndex/Table/TableFooter.d.ts +4 -0
  41. package/types/components/ModelIndex/Table/TableHead.d.ts +4 -0
  42. package/types/components/ModelIndex/Table/TableToolbar.d.ts +3 -0
  43. package/types/components/ModelIndex/Table.d.ts +4 -0
  44. package/types/components/ModelIndex/Tabs.d.ts +3 -0
  45. package/types/components/RecursiveList.d.ts +4 -0
  46. package/types/components/RecursiveMenu.d.ts +4 -0
  47. package/types/contexts/DialogContext.d.ts +4 -0
  48. package/types/contexts/LayoutContext.d.ts +4 -0
  49. package/types/contexts/ModelContext.d.ts +4 -0
  50. package/types/contexts/ModelFilterContext.d.ts +4 -0
  51. package/types/contexts/ModelFilterRowContext.d.ts +4 -0
  52. package/types/contexts/NotificationContext.d.ts +4 -0
  53. package/types/contexts/TableContext.d.ts +4 -0
  54. package/types/dist.d.ts +3 -0
  55. package/types/facades/Cms.d.ts +31 -0
  56. package/types/facades/Filter.d.ts +24 -0
  57. package/types/hooks/useActionEvent.d.ts +2 -0
  58. package/types/hooks/useBackButton.d.ts +6 -0
  59. package/types/hooks/useCurrentModel.d.ts +1 -0
  60. package/types/hooks/useDialog.d.ts +1 -0
  61. package/types/hooks/useDisplaceNotifications.d.ts +1 -0
  62. package/types/hooks/useHandleError.d.ts +1 -0
  63. package/types/hooks/useHasBackButton.d.ts +6 -0
  64. package/types/hooks/useHasSearch.d.ts +7 -0
  65. package/types/hooks/useIsDesktopMode.d.ts +7 -0
  66. package/types/hooks/useKeyChord.d.ts +1 -0
  67. package/types/hooks/useKeyPress.d.ts +1 -0
  68. package/types/hooks/useLayoutConfig.d.ts +8 -0
  69. package/types/hooks/useMenu.d.ts +12 -0
  70. package/types/hooks/useNotifications.d.ts +1 -0
  71. package/types/hooks/useNotify.d.ts +1 -0
  72. package/types/hooks/useOptimistic.d.ts +32 -0
  73. package/types/hooks/usePageTitle.d.ts +7 -0
  74. package/types/hooks/useSearch.d.ts +6 -0
  75. package/types/hooks/useSelection.d.ts +10 -0
  76. package/types/hooks/useSetPageTitle.d.ts +8 -0
  77. package/types/hooks/useTable.d.ts +1 -0
  78. package/types/index.d.ts +2 -0
  79. package/types/main.d.ts +0 -0
  80. package/types/plugins/CmsPlugin.d.ts +18 -0
  81. package/types/plugins/i18NextPlugin.d.ts +19 -0
  82. package/types/providers/DialogProvider.d.ts +4 -0
  83. package/types/providers/LayoutProvider.d.ts +5 -0
  84. package/types/providers/ModelProvider.d.ts +3 -0
  85. package/types/providers/NotificationProvider.d.ts +4 -0
  86. package/types/providers/TableProvider.d.ts +4 -0
  87. package/types/routes.d.ts +3 -0
  88. package/types/support/ModelIndex/Filter/inputs.d.ts +4 -0
  89. package/types/support/ModelIndex/Filter/searchParams.d.ts +18 -0
  90. package/types/support/ModelIndex/relation.d.ts +4 -0
  91. package/types/support/array.d.ts +9 -0
  92. package/types/support/date.d.ts +1 -0
  93. package/types/support/error.d.ts +2 -0
  94. package/types/support/handlers.d.ts +9 -0
  95. package/types/support/misc.d.ts +16 -0
  96. package/types/support/searchParams.d.ts +1 -0
  97. package/types/types/Config.d.ts +13 -0
  98. package/types/types/Contexts.d.ts +72 -0
  99. package/types/types/Dialog.d.ts +9 -0
  100. package/types/types/Filter.d.ts +20 -0
  101. package/types/types/Menu.d.ts +11 -0
  102. package/types/types/Notifications.d.ts +13 -0
  103. package/types/types/Plugin.d.ts +8 -0
  104. package/types/types/PropTypes.d.ts +100 -0
  105. package/types/types/Reducers.d.ts +4 -0
  106. package/types/types/Table.d.ts +41 -0
  107. package/types/types/Tabs.d.ts +4 -0
  108. package/types/views/Dashboard.d.ts +3 -0
  109. package/types/views/Error.d.ts +4 -0
  110. package/types/views/Layout/Layout.d.ts +4 -0
  111. package/types/views/ModelIndex.d.ts +3 -0
  112. package/types/views/ModelItem.d.ts +4 -0
@@ -0,0 +1,196 @@
1
+ var RG=Object.defineProperty;var kG=(sl,oi,ma)=>oi in sl?RG(sl,oi,{enumerable:!0,configurable:!0,writable:!0,value:ma}):sl[oi]=ma;var xx=(sl,oi,ma)=>kG(sl,typeof oi!="symbol"?oi+"":oi,ma);(function(){"use strict";function sl(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var oi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ma(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function al(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Sx={exports:{}},Ff={},wx={exports:{}},rn={};var _x;function G2(){if(_x)return rn;_x=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.iterator;function x(H){return H===null||typeof H!="object"?null:(H=b&&H[b]||H["@@iterator"],typeof H=="function"?H:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,w={};function T(H,be,Ke){this.props=H,this.context=be,this.refs=w,this.updater=Ke||k}T.prototype.isReactComponent={},T.prototype.setState=function(H,be){if(typeof H!="object"&&typeof H!="function"&&H!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,H,be,"setState")},T.prototype.forceUpdate=function(H){this.updater.enqueueForceUpdate(this,H,"forceUpdate")};function P(){}P.prototype=T.prototype;function I(H,be,Ke){this.props=H,this.context=be,this.refs=w,this.updater=Ke||k}var D=I.prototype=new P;D.constructor=I,E(D,T.prototype),D.isPureReactComponent=!0;var M=Array.isArray,L=Object.prototype.hasOwnProperty,A={current:null},z={key:!0,ref:!0,__self:!0,__source:!0};function G(H,be,Ke){var Ie,$e={},Ee=null,Ye=null;if(be!=null)for(Ie in be.ref!==void 0&&(Ye=be.ref),be.key!==void 0&&(Ee=""+be.key),be)L.call(be,Ie)&&!z.hasOwnProperty(Ie)&&($e[Ie]=be[Ie]);var Ce=arguments.length-2;if(Ce===1)$e.children=Ke;else if(1<Ce){for(var Fe=Array(Ce),mt=0;mt<Ce;mt++)Fe[mt]=arguments[mt+2];$e.children=Fe}if(H&&H.defaultProps)for(Ie in Ce=H.defaultProps,Ce)$e[Ie]===void 0&&($e[Ie]=Ce[Ie]);return{$$typeof:e,type:H,key:Ee,ref:Ye,props:$e,_owner:A.current}}function q(H,be){return{$$typeof:e,type:H.type,key:be,ref:H.ref,props:H.props,_owner:H._owner}}function X(H){return typeof H=="object"&&H!==null&&H.$$typeof===e}function ne(H){var be={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(Ke){return be[Ke]})}var Q=/\/+/g;function Z(H,be){return typeof H=="object"&&H!==null&&H.key!=null?ne(""+H.key):be.toString(36)}function V(H,be,Ke,Ie,$e){var Ee=typeof H;(Ee==="undefined"||Ee==="boolean")&&(H=null);var Ye=!1;if(H===null)Ye=!0;else switch(Ee){case"string":case"number":Ye=!0;break;case"object":switch(H.$$typeof){case e:case t:Ye=!0}}if(Ye)return Ye=H,$e=$e(Ye),H=Ie===""?"."+Z(Ye,0):Ie,M($e)?(Ke="",H!=null&&(Ke=H.replace(Q,"$&/")+"/"),V($e,be,Ke,"",function(mt){return mt})):$e!=null&&(X($e)&&($e=q($e,Ke+(!$e.key||Ye&&Ye.key===$e.key?"":(""+$e.key).replace(Q,"$&/")+"/")+H)),be.push($e)),1;if(Ye=0,Ie=Ie===""?".":Ie+":",M(H))for(var Ce=0;Ce<H.length;Ce++){Ee=H[Ce];var Fe=Ie+Z(Ee,Ce);Ye+=V(Ee,be,Ke,Fe,$e)}else if(Fe=x(H),typeof Fe=="function")for(H=Fe.call(H),Ce=0;!(Ee=H.next()).done;)Ee=Ee.value,Fe=Ie+Z(Ee,Ce++),Ye+=V(Ee,be,Ke,Fe,$e);else if(Ee==="object")throw be=String(H),Error("Objects are not valid as a React child (found: "+(be==="[object Object]"?"object with keys {"+Object.keys(H).join(", ")+"}":be)+"). If you meant to render a collection of children, use an array instead.");return Ye}function ce(H,be,Ke){if(H==null)return H;var Ie=[],$e=0;return V(H,Ie,"","",function(Ee){return be.call(Ke,Ee,$e++)}),Ie}function ue(H){if(H._status===-1){var be=H._result;be=be(),be.then(function(Ke){(H._status===0||H._status===-1)&&(H._status=1,H._result=Ke)},function(Ke){(H._status===0||H._status===-1)&&(H._status=2,H._result=Ke)}),H._status===-1&&(H._status=0,H._result=be)}if(H._status===1)return H._result.default;throw H._result}var se={current:null},U={transition:null},ae={ReactCurrentDispatcher:se,ReactCurrentBatchConfig:U,ReactCurrentOwner:A};function Se(){throw Error("act(...) is not supported in production builds of React.")}return rn.Children={map:ce,forEach:function(H,be,Ke){ce(H,function(){be.apply(this,arguments)},Ke)},count:function(H){var be=0;return ce(H,function(){be++}),be},toArray:function(H){return ce(H,function(be){return be})||[]},only:function(H){if(!X(H))throw Error("React.Children.only expected to receive a single React element child.");return H}},rn.Component=T,rn.Fragment=n,rn.Profiler=i,rn.PureComponent=I,rn.StrictMode=r,rn.Suspense=p,rn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ae,rn.act=Se,rn.cloneElement=function(H,be,Ke){if(H==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+H+".");var Ie=E({},H.props),$e=H.key,Ee=H.ref,Ye=H._owner;if(be!=null){if(be.ref!==void 0&&(Ee=be.ref,Ye=A.current),be.key!==void 0&&($e=""+be.key),H.type&&H.type.defaultProps)var Ce=H.type.defaultProps;for(Fe in be)L.call(be,Fe)&&!z.hasOwnProperty(Fe)&&(Ie[Fe]=be[Fe]===void 0&&Ce!==void 0?Ce[Fe]:be[Fe])}var Fe=arguments.length-2;if(Fe===1)Ie.children=Ke;else if(1<Fe){Ce=Array(Fe);for(var mt=0;mt<Fe;mt++)Ce[mt]=arguments[mt+2];Ie.children=Ce}return{$$typeof:e,type:H.type,key:$e,ref:Ee,props:Ie,_owner:Ye}},rn.createContext=function(H){return H={$$typeof:u,_currentValue:H,_currentValue2:H,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},H.Provider={$$typeof:a,_context:H},H.Consumer=H},rn.createElement=G,rn.createFactory=function(H){var be=G.bind(null,H);return be.type=H,be},rn.createRef=function(){return{current:null}},rn.forwardRef=function(H){return{$$typeof:f,render:H}},rn.isValidElement=X,rn.lazy=function(H){return{$$typeof:g,_payload:{_status:-1,_result:H},_init:ue}},rn.memo=function(H,be){return{$$typeof:h,type:H,compare:be===void 0?null:be}},rn.startTransition=function(H){var be=U.transition;U.transition={};try{H()}finally{U.transition=be}},rn.unstable_act=Se,rn.useCallback=function(H,be){return se.current.useCallback(H,be)},rn.useContext=function(H){return se.current.useContext(H)},rn.useDebugValue=function(){},rn.useDeferredValue=function(H){return se.current.useDeferredValue(H)},rn.useEffect=function(H,be){return se.current.useEffect(H,be)},rn.useId=function(){return se.current.useId()},rn.useImperativeHandle=function(H,be,Ke){return se.current.useImperativeHandle(H,be,Ke)},rn.useInsertionEffect=function(H,be){return se.current.useInsertionEffect(H,be)},rn.useLayoutEffect=function(H,be){return se.current.useLayoutEffect(H,be)},rn.useMemo=function(H,be){return se.current.useMemo(H,be)},rn.useReducer=function(H,be,Ke){return se.current.useReducer(H,be,Ke)},rn.useRef=function(H){return se.current.useRef(H)},rn.useState=function(H){return se.current.useState(H)},rn.useSyncExternalStore=function(H,be,Ke){return se.current.useSyncExternalStore(H,be,Ke)},rn.useTransition=function(){return se.current.useTransition()},rn.version="18.3.1",rn}wx.exports=G2();var R=wx.exports;const xe=ma(R),bm=sl({__proto__:null,default:xe},[R]);var Cx;function K2(){if(Cx)return Ff;Cx=1;var e=R,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(f,p,h){var g,b={},x=null,k=null;h!==void 0&&(x=""+h),p.key!==void 0&&(x=""+p.key),p.ref!==void 0&&(k=p.ref);for(g in p)r.call(p,g)&&!a.hasOwnProperty(g)&&(b[g]=p[g]);if(f&&f.defaultProps)for(g in p=f.defaultProps,p)b[g]===void 0&&(b[g]=p[g]);return{$$typeof:t,type:f,key:x,ref:k,props:b,_owner:i.current}}return Ff.Fragment=n,Ff.jsx=u,Ff.jsxs=u,Ff}Sx.exports=K2();var S=Sx.exports,bv={},Ex={exports:{}},Ao={},yv={exports:{}},xv={};var Rx;function V2(){return Rx||(Rx=1,function(e){function t(U,ae){var Se=U.length;U.push(ae);e:for(;0<Se;){var H=Se-1>>>1,be=U[H];if(0<i(be,ae))U[H]=ae,U[Se]=be,Se=H;else break e}}function n(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var ae=U[0],Se=U.pop();if(Se!==ae){U[0]=Se;e:for(var H=0,be=U.length,Ke=be>>>1;H<Ke;){var Ie=2*(H+1)-1,$e=U[Ie],Ee=Ie+1,Ye=U[Ee];if(0>i($e,Se))Ee<be&&0>i(Ye,$e)?(U[H]=Ye,U[Ee]=Se,H=Ee):(U[H]=$e,U[Ie]=Se,H=Ie);else if(Ee<be&&0>i(Ye,Se))U[H]=Ye,U[Ee]=Se,H=Ee;else break e}}return ae}function i(U,ae){var Se=U.sortIndex-ae.sortIndex;return Se!==0?Se:U.id-ae.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var p=[],h=[],g=1,b=null,x=3,k=!1,E=!1,w=!1,T=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function D(U){for(var ae=n(h);ae!==null;){if(ae.callback===null)r(h);else if(ae.startTime<=U)r(h),ae.sortIndex=ae.expirationTime,t(p,ae);else break;ae=n(h)}}function M(U){if(w=!1,D(U),!E)if(n(p)!==null)E=!0,ue(L);else{var ae=n(h);ae!==null&&se(M,ae.startTime-U)}}function L(U,ae){E=!1,w&&(w=!1,P(G),G=-1),k=!0;var Se=x;try{for(D(ae),b=n(p);b!==null&&(!(b.expirationTime>ae)||U&&!ne());){var H=b.callback;if(typeof H=="function"){b.callback=null,x=b.priorityLevel;var be=H(b.expirationTime<=ae);ae=e.unstable_now(),typeof be=="function"?b.callback=be:b===n(p)&&r(p),D(ae)}else r(p);b=n(p)}if(b!==null)var Ke=!0;else{var Ie=n(h);Ie!==null&&se(M,Ie.startTime-ae),Ke=!1}return Ke}finally{b=null,x=Se,k=!1}}var A=!1,z=null,G=-1,q=5,X=-1;function ne(){return!(e.unstable_now()-X<q)}function Q(){if(z!==null){var U=e.unstable_now();X=U;var ae=!0;try{ae=z(!0,U)}finally{ae?Z():(A=!1,z=null)}}else A=!1}var Z;if(typeof I=="function")Z=function(){I(Q)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,ce=V.port2;V.port1.onmessage=Q,Z=function(){ce.postMessage(null)}}else Z=function(){T(Q,0)};function ue(U){z=U,A||(A=!0,Z())}function se(U,ae){G=T(function(){U(e.unstable_now())},ae)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(U){U.callback=null},e.unstable_continueExecution=function(){E||k||(E=!0,ue(L))},e.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"):q=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return n(p)},e.unstable_next=function(U){switch(x){case 1:case 2:case 3:var ae=3;break;default:ae=x}var Se=x;x=ae;try{return U()}finally{x=Se}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(U,ae){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var Se=x;x=U;try{return ae()}finally{x=Se}},e.unstable_scheduleCallback=function(U,ae,Se){var H=e.unstable_now();switch(typeof Se=="object"&&Se!==null?(Se=Se.delay,Se=typeof Se=="number"&&0<Se?H+Se:H):Se=H,U){case 1:var be=-1;break;case 2:be=250;break;case 5:be=1073741823;break;case 4:be=1e4;break;default:be=5e3}return be=Se+be,U={id:g++,callback:ae,priorityLevel:U,startTime:Se,expirationTime:be,sortIndex:-1},Se>H?(U.sortIndex=Se,t(h,U),n(p)===null&&U===n(h)&&(w?(P(G),G=-1):w=!0,se(M,Se-H))):(U.sortIndex=be,t(p,U),E||k||(E=!0,ue(L))),U},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(U){var ae=x;return function(){var Se=x;x=ae;try{return U.apply(this,arguments)}finally{x=Se}}}}(xv)),xv}var kx;function X2(){return kx||(kx=1,yv.exports=V2()),yv.exports}var Tx;function q2(){if(Tx)return Ao;Tx=1;var e=R,t=X2();function n(o){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+o,d=1;d<arguments.length;d++)s+="&args[]="+encodeURIComponent(arguments[d]);return"Minified React error #"+o+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function a(o,s){u(o,s),u(o+"Capture",s)}function u(o,s){for(i[o]=s,o=0;o<s.length;o++)r.add(s[o])}var f=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,h=/^[: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]*$/,g={},b={};function x(o){return p.call(b,o)?!0:p.call(g,o)?!1:h.test(o)?b[o]=!0:(g[o]=!0,!1)}function k(o,s,d,m){if(d!==null&&d.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return m?!1:d!==null?!d.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function E(o,s,d,m){if(s===null||typeof s>"u"||k(o,s,d,m))return!0;if(m)return!1;if(d!==null)switch(d.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function w(o,s,d,m,y,_,$){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=m,this.attributeNamespace=y,this.mustUseProperty=d,this.propertyName=o,this.type=s,this.sanitizeURL=_,this.removeEmptyString=$}var T={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){T[o]=new w(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var s=o[0];T[s]=new w(s,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){T[o]=new w(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){T[o]=new w(o,2,!1,o,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(o){T[o]=new w(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){T[o]=new w(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){T[o]=new w(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){T[o]=new w(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){T[o]=new w(o,5,!1,o.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function I(o){return o[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(o){var s=o.replace(P,I);T[s]=new w(s,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var s=o.replace(P,I);T[s]=new w(s,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var s=o.replace(P,I);T[s]=new w(s,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){T[o]=new w(o,1,!1,o.toLowerCase(),null,!1,!1)}),T.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){T[o]=new w(o,1,!1,o.toLowerCase(),null,!0,!0)});function D(o,s,d,m){var y=T.hasOwnProperty(s)?T[s]:null;(y!==null?y.type!==0:m||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(E(s,d,y,m)&&(d=null),m||y===null?x(s)&&(d===null?o.removeAttribute(s):o.setAttribute(s,""+d)):y.mustUseProperty?o[y.propertyName]=d===null?y.type===3?!1:"":d:(s=y.attributeName,m=y.attributeNamespace,d===null?o.removeAttribute(s):(y=y.type,d=y===3||y===4&&d===!0?"":""+d,m?o.setAttributeNS(m,s,d):o.setAttribute(s,d))))}var M=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,L=Symbol.for("react.element"),A=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),X=Symbol.for("react.provider"),ne=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),se=Symbol.for("react.offscreen"),U=Symbol.iterator;function ae(o){return o===null||typeof o!="object"?null:(o=U&&o[U]||o["@@iterator"],typeof o=="function"?o:null)}var Se=Object.assign,H;function be(o){if(H===void 0)try{throw Error()}catch(d){var s=d.stack.trim().match(/\n( *(at )?)/);H=s&&s[1]||""}return`
2
+ `+H+o}var Ke=!1;function Ie(o,s){if(!o||Ke)return"";Ke=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(_e){var m=_e}Reflect.construct(o,[],s)}else{try{s.call()}catch(_e){m=_e}o.call(s.prototype)}else{try{throw Error()}catch(_e){m=_e}o()}}catch(_e){if(_e&&m&&typeof _e.stack=="string"){for(var y=_e.stack.split(`
3
+ `),_=m.stack.split(`
4
+ `),$=y.length-1,B=_.length-1;1<=$&&0<=B&&y[$]!==_[B];)B--;for(;1<=$&&0<=B;$--,B--)if(y[$]!==_[B]){if($!==1||B!==1)do if($--,B--,0>B||y[$]!==_[B]){var Y=`
5
+ `+y[$].replace(" at new "," at ");return o.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",o.displayName)),Y}while(1<=$&&0<=B);break}}}finally{Ke=!1,Error.prepareStackTrace=d}return(o=o?o.displayName||o.name:"")?be(o):""}function $e(o){switch(o.tag){case 5:return be(o.type);case 16:return be("Lazy");case 13:return be("Suspense");case 19:return be("SuspenseList");case 0:case 2:case 15:return o=Ie(o.type,!1),o;case 11:return o=Ie(o.type.render,!1),o;case 1:return o=Ie(o.type,!0),o;default:return""}}function Ee(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case z:return"Fragment";case A:return"Portal";case q:return"Profiler";case G:return"StrictMode";case Z:return"Suspense";case V:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case ne:return(o.displayName||"Context")+".Consumer";case X:return(o._context.displayName||"Context")+".Provider";case Q:var s=o.render;return o=o.displayName,o||(o=s.displayName||s.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case ce:return s=o.displayName||null,s!==null?s:Ee(o.type)||"Memo";case ue:s=o._payload,o=o._init;try{return Ee(o(s))}catch{}}return null}function Ye(o){var s=o.type;switch(o.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=s.render,o=o.displayName||o.name||"",s.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ee(s);case 8:return s===G?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function Ce(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Fe(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function mt(o){var s=Fe(o)?"checked":"value",d=Object.getOwnPropertyDescriptor(o.constructor.prototype,s),m=""+o[s];if(!o.hasOwnProperty(s)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var y=d.get,_=d.set;return Object.defineProperty(o,s,{configurable:!0,get:function(){return y.call(this)},set:function($){m=""+$,_.call(this,$)}}),Object.defineProperty(o,s,{enumerable:d.enumerable}),{getValue:function(){return m},setValue:function($){m=""+$},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function it(o){o._valueTracker||(o._valueTracker=mt(o))}function Qe(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var d=s.getValue(),m="";return o&&(m=Fe(o)?o.checked?"true":"false":o.value),o=m,o!==d?(s.setValue(o),!0):!1}function vt(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}function wt(o,s){var d=s.checked;return Se({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:d??o._wrapperState.initialChecked})}function yt(o,s){var d=s.defaultValue==null?"":s.defaultValue,m=s.checked!=null?s.checked:s.defaultChecked;d=Ce(s.value!=null?s.value:d),o._wrapperState={initialChecked:m,initialValue:d,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function at(o,s){s=s.checked,s!=null&&D(o,"checked",s,!1)}function Wt(o,s){at(o,s);var d=Ce(s.value),m=s.type;if(d!=null)m==="number"?(d===0&&o.value===""||o.value!=d)&&(o.value=""+d):o.value!==""+d&&(o.value=""+d);else if(m==="submit"||m==="reset"){o.removeAttribute("value");return}s.hasOwnProperty("value")?sn(o,s.type,d):s.hasOwnProperty("defaultValue")&&sn(o,s.type,Ce(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(o.defaultChecked=!!s.defaultChecked)}function bt(o,s,d){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var m=s.type;if(!(m!=="submit"&&m!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+o._wrapperState.initialValue,d||s===o.value||(o.value=s),o.defaultValue=s}d=o.name,d!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,d!==""&&(o.name=d)}function sn(o,s,d){(s!=="number"||vt(o.ownerDocument)!==o)&&(d==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+d&&(o.defaultValue=""+d))}var Dt=Array.isArray;function Et(o,s,d,m){if(o=o.options,s){s={};for(var y=0;y<d.length;y++)s["$"+d[y]]=!0;for(d=0;d<o.length;d++)y=s.hasOwnProperty("$"+o[d].value),o[d].selected!==y&&(o[d].selected=y),y&&m&&(o[d].defaultSelected=!0)}else{for(d=""+Ce(d),s=null,y=0;y<o.length;y++){if(o[y].value===d){o[y].selected=!0,m&&(o[y].defaultSelected=!0);return}s!==null||o[y].disabled||(s=o[y])}s!==null&&(s.selected=!0)}}function en(o,s){if(s.dangerouslySetInnerHTML!=null)throw Error(n(91));return Se({},s,{value:void 0,defaultValue:void 0,children:""+o._wrapperState.initialValue})}function Kt(o,s){var d=s.value;if(d==null){if(d=s.children,s=s.defaultValue,d!=null){if(s!=null)throw Error(n(92));if(Dt(d)){if(1<d.length)throw Error(n(93));d=d[0]}s=d}s==null&&(s=""),d=s}o._wrapperState={initialValue:Ce(d)}}function Lt(o,s){var d=Ce(s.value),m=Ce(s.defaultValue);d!=null&&(d=""+d,d!==o.value&&(o.value=d),s.defaultValue==null&&o.defaultValue!==d&&(o.defaultValue=d)),m!=null&&(o.defaultValue=""+m)}function an(o){var s=o.textContent;s===o._wrapperState.initialValue&&s!==""&&s!==null&&(o.value=s)}function Tn(o){switch(o){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function fn(o,s){return o==null||o==="http://www.w3.org/1999/xhtml"?Tn(s):o==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":o}var pt,We=function(o){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,d,m,y){MSApp.execUnsafeLocalFunction(function(){return o(s,d,m,y)})}:o}(function(o,s){if(o.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in o)o.innerHTML=s;else{for(pt=pt||document.createElement("div"),pt.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=pt.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;s.firstChild;)o.appendChild(s.firstChild)}});function jt(o,s){if(s){var d=o.firstChild;if(d&&d===o.lastChild&&d.nodeType===3){d.nodeValue=s;return}}o.textContent=s}var hn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Mn=["Webkit","ms","Moz","O"];Object.keys(hn).forEach(function(o){Mn.forEach(function(s){s=s+o.charAt(0).toUpperCase()+o.substring(1),hn[s]=hn[o]})});function et(o,s,d){return s==null||typeof s=="boolean"||s===""?"":d||typeof s!="number"||s===0||hn.hasOwnProperty(o)&&hn[o]?(""+s).trim():s+"px"}function Pt(o,s){o=o.style;for(var d in s)if(s.hasOwnProperty(d)){var m=d.indexOf("--")===0,y=et(d,s[d],m);d==="float"&&(d="cssFloat"),m?o.setProperty(d,y):o[d]=y}}var Be=Se({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function tt(o,s){if(s){if(Be[o]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(n(137,o));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(n(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(n(61))}if(s.style!=null&&typeof s.style!="object")throw Error(n(62))}}function At(o,s){if(o.indexOf("-")===-1)return typeof s.is=="string";switch(o){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 Ft=null;function Gt(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var pn=null,cn=null,Dn=null;function Ln(o){if(o=jr(o)){if(typeof pn!="function")throw Error(n(280));var s=o.stateNode;s&&(s=Hd(s),pn(o.stateNode,o.type,s))}}function $r(o){cn?Dn?Dn.push(o):Dn=[o]:cn=o}function wo(){if(cn){var o=cn,s=Dn;if(Dn=cn=null,Ln(o),s)for(o=0;o<s.length;o++)Ln(s[o])}}function vi(o,s){return o(s)}function zo(){}var Bo=!1;function wr(o,s,d){if(Bo)return o(s,d);Bo=!0;try{return vi(o,s,d)}finally{Bo=!1,(cn!==null||Dn!==null)&&(zo(),wo())}}function jn(o,s){var d=o.stateNode;if(d===null)return null;var m=Hd(d);if(m===null)return null;d=m[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(o=o.type,m=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!m;break e;default:o=!1}if(o)return null;if(d&&typeof d!="function")throw Error(n(231,s,typeof d));return d}var bn=!1;if(f)try{var K={};Object.defineProperty(K,"passive",{get:function(){bn=!0}}),window.addEventListener("test",K,K),window.removeEventListener("test",K,K)}catch{bn=!1}function ee(o,s,d,m,y,_,$,B,Y){var _e=Array.prototype.slice.call(arguments,3);try{s.apply(d,_e)}catch(ze){this.onError(ze)}}var ge=!1,ke=null,qe=!1,ft=null,Ct={onError:function(o){ge=!0,ke=o}};function Ve(o,s,d,m,y,_,$,B,Y){ge=!1,ke=null,ee.apply(Ct,arguments)}function Tt(o,s,d,m,y,_,$,B,Y){if(Ve.apply(this,arguments),ge){if(ge){var _e=ke;ge=!1,ke=null}else throw Error(n(198));qe||(qe=!0,ft=_e)}}function oe(o){var s=o,d=o;if(o.alternate)for(;s.return;)s=s.return;else{o=s;do s=o,s.flags&4098&&(d=s.return),o=s.return;while(o)}return s.tag===3?d:null}function re(o){if(o.tag===13){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function je(o){if(oe(o)!==o)throw Error(n(188))}function Ae(o){var s=o.alternate;if(!s){if(s=oe(o),s===null)throw Error(n(188));return s!==o?null:o}for(var d=o,m=s;;){var y=d.return;if(y===null)break;var _=y.alternate;if(_===null){if(m=y.return,m!==null){d=m;continue}break}if(y.child===_.child){for(_=y.child;_;){if(_===d)return je(y),o;if(_===m)return je(y),s;_=_.sibling}throw Error(n(188))}if(d.return!==m.return)d=y,m=_;else{for(var $=!1,B=y.child;B;){if(B===d){$=!0,d=y,m=_;break}if(B===m){$=!0,m=y,d=_;break}B=B.sibling}if(!$){for(B=_.child;B;){if(B===d){$=!0,d=_,m=y;break}if(B===m){$=!0,m=_,d=y;break}B=B.sibling}if(!$)throw Error(n(189))}}if(d.alternate!==m)throw Error(n(190))}if(d.tag!==3)throw Error(n(188));return d.stateNode.current===d?o:s}function Je(o){return o=Ae(o),o!==null?He(o):null}function He(o){if(o.tag===5||o.tag===6)return o;for(o=o.child;o!==null;){var s=He(o);if(s!==null)return s;o=o.sibling}return null}var St=t.unstable_scheduleCallback,ln=t.unstable_cancelCallback,Vr=t.unstable_shouldYield,Bi=t.unstable_requestPaint,wn=t.unstable_now,Us=t.unstable_getCurrentPriorityLevel,Ui=t.unstable_ImmediatePriority,_o=t.unstable_UserBlockingPriority,Hi=t.unstable_NormalPriority,Ia=t.unstable_LowPriority,Hs=t.unstable_IdlePriority,zt=null,mn=null;function Xr(o){if(mn&&typeof mn.onCommitFiberRoot=="function")try{mn.onCommitFiberRoot(zt,o,void 0,(o.current.flags&128)===128)}catch{}}var un=Math.clz32?Math.clz32:gd,Uo=Math.log,Au=Math.LN2;function gd(o){return o>>>=0,o===0?32:31-(Uo(o)/Au|0)|0}var Tl=64,vd=4194304;function Ol(o){switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function Aa(o,s){var d=o.pendingLanes;if(d===0)return 0;var m=0,y=o.suspendedLanes,_=o.pingedLanes,$=d&268435455;if($!==0){var B=$&~y;B!==0?m=Ol(B):(_&=$,_!==0&&(m=Ol(_)))}else $=d&~y,$!==0?m=Ol($):_!==0&&(m=Ol(_));if(m===0)return 0;if(s!==0&&s!==m&&!(s&y)&&(y=m&-m,_=s&-s,y>=_||y===16&&(_&4194240)!==0))return s;if(m&4&&(m|=d&16),s=o.entangledLanes,s!==0)for(o=o.entanglements,s&=m;0<s;)d=31-un(s),y=1<<d,m|=o[d],s&=~y;return m}function e0(o,s){switch(o){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _y(o,s){for(var d=o.suspendedLanes,m=o.pingedLanes,y=o.expirationTimes,_=o.pendingLanes;0<_;){var $=31-un(_),B=1<<$,Y=y[$];Y===-1?(!(B&d)||B&m)&&(y[$]=e0(B,s)):Y<=s&&(o.expiredLanes|=B),_&=~B}}function bd(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function eh(){var o=Tl;return Tl<<=1,!(Tl&4194240)&&(Tl=64),o}function Du(o){for(var s=[],d=0;31>d;d++)s.push(o);return s}function Nu(o,s,d){o.pendingLanes|=s,s!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,s=31-un(s),o[s]=d}function t0(o,s){var d=o.pendingLanes&~s;o.pendingLanes=s,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=s,o.mutableReadLanes&=s,o.entangledLanes&=s,s=o.entanglements;var m=o.eventTimes;for(o=o.expirationTimes;0<d;){var y=31-un(d),_=1<<y;s[y]=0,m[y]=-1,o[y]=-1,d&=~_}}function $u(o,s){var d=o.entangledLanes|=s;for(o=o.entanglements;d;){var m=31-un(d),y=1<<m;y&s|o[m]&s&&(o[m]|=s),d&=~y}}var _n=0;function Da(o){return o&=-o,1<o?4<o?o&268435455?16:536870912:4:1}var th,yd,n0,nh,rh,xd=!1,Mu=[],Ws=null,Gs=null,Ks=null,Pl=new Map,Lu=new Map,Vs=[],Cy="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function r0(o,s){switch(o){case"focusin":case"focusout":Ws=null;break;case"dragenter":case"dragleave":Gs=null;break;case"mouseover":case"mouseout":Ks=null;break;case"pointerover":case"pointerout":Pl.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lu.delete(s.pointerId)}}function Na(o,s,d,m,y,_){return o===null||o.nativeEvent!==_?(o={blockedOn:s,domEventName:d,eventSystemFlags:m,nativeEvent:_,targetContainers:[y]},s!==null&&(s=jr(s),s!==null&&yd(s)),o):(o.eventSystemFlags|=m,s=o.targetContainers,y!==null&&s.indexOf(y)===-1&&s.push(y),o)}function Ey(o,s,d,m,y){switch(s){case"focusin":return Ws=Na(Ws,o,s,d,m,y),!0;case"dragenter":return Gs=Na(Gs,o,s,d,m,y),!0;case"mouseover":return Ks=Na(Ks,o,s,d,m,y),!0;case"pointerover":var _=y.pointerId;return Pl.set(_,Na(Pl.get(_)||null,o,s,d,m,y)),!0;case"gotpointercapture":return _=y.pointerId,Lu.set(_,Na(Lu.get(_)||null,o,s,d,m,y)),!0}return!1}function o0(o){var s=Vi(o.target);if(s!==null){var d=oe(s);if(d!==null){if(s=d.tag,s===13){if(s=re(d),s!==null){o.blockedOn=s,rh(o.priority,function(){n0(d)});return}}else if(s===3&&d.stateNode.current.memoizedState.isDehydrated){o.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Sd(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var d=Cd(o.domEventName,o.eventSystemFlags,s[0],o.nativeEvent);if(d===null){d=o.nativeEvent;var m=new d.constructor(d.type,d);Ft=m,d.target.dispatchEvent(m),Ft=null}else return s=jr(d),s!==null&&yd(s),o.blockedOn=d,!1;s.shift()}return!0}function i0(o,s,d){Sd(o)&&d.delete(s)}function Ry(){xd=!1,Ws!==null&&Sd(Ws)&&(Ws=null),Gs!==null&&Sd(Gs)&&(Gs=null),Ks!==null&&Sd(Ks)&&(Ks=null),Pl.forEach(i0),Lu.forEach(i0)}function On(o,s){o.blockedOn===s&&(o.blockedOn=null,xd||(xd=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ry)))}function En(o){function s(y){return On(y,o)}if(0<Mu.length){On(Mu[0],o);for(var d=1;d<Mu.length;d++){var m=Mu[d];m.blockedOn===o&&(m.blockedOn=null)}}for(Ws!==null&&On(Ws,o),Gs!==null&&On(Gs,o),Ks!==null&&On(Ks,o),Pl.forEach(s),Lu.forEach(s),d=0;d<Vs.length;d++)m=Vs[d],m.blockedOn===o&&(m.blockedOn=null);for(;0<Vs.length&&(d=Vs[0],d.blockedOn===null);)o0(d),d.blockedOn===null&&Vs.shift()}var Il=M.ReactCurrentBatchConfig,wd=!0;function ky(o,s,d,m){var y=_n,_=Il.transition;Il.transition=null;try{_n=1,oh(o,s,d,m)}finally{_n=y,Il.transition=_}}function Ty(o,s,d,m){var y=_n,_=Il.transition;Il.transition=null;try{_n=4,oh(o,s,d,m)}finally{_n=y,Il.transition=_}}function oh(o,s,d,m){if(wd){var y=Cd(o,s,d,m);if(y===null)Sh(o,s,m,_d,d),r0(o,m);else if(Ey(y,o,s,d,m))m.stopPropagation();else if(r0(o,m),s&4&&-1<Cy.indexOf(o)){for(;y!==null;){var _=jr(y);if(_!==null&&th(_),_=Cd(o,s,d,m),_===null&&Sh(o,s,m,_d,d),_===y)break;y=_}y!==null&&m.stopPropagation()}else Sh(o,s,m,null,d)}}var _d=null;function Cd(o,s,d,m){if(_d=null,o=Gt(m),o=Vi(o),o!==null)if(s=oe(o),s===null)o=null;else if(d=s.tag,d===13){if(o=re(s),o!==null)return o;o=null}else if(d===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;o=null}else s!==o&&(o=null);return _d=o,null}function s0(o){switch(o){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Us()){case Ui:return 1;case _o:return 4;case Hi:case Ia:return 16;case Hs:return 536870912;default:return 16}default:return 16}}var Gn=null,ju=null,Wi=null;function ih(){if(Wi)return Wi;var o,s=ju,d=s.length,m,y="value"in Gn?Gn.value:Gn.textContent,_=y.length;for(o=0;o<d&&s[o]===y[o];o++);var $=d-o;for(m=1;m<=$&&s[d-m]===y[_-m];m++);return Wi=y.slice(o,1<m?1-m:void 0)}function Al(o){var s=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&s===13&&(o=13)):o=s,o===10&&(o=13),32<=o||o===13?o:0}function qr(){return!0}function sh(){return!1}function io(o){function s(d,m,y,_,$){this._reactName=d,this._targetInst=y,this.type=m,this.nativeEvent=_,this.target=$,this.currentTarget=null;for(var B in o)o.hasOwnProperty(B)&&(d=o[B],this[B]=d?d(_):_[B]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?qr:sh,this.isPropagationStopped=sh,this}return Se(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=qr)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=qr)},persist:function(){},isPersistent:qr}),s}var $a={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ed=io($a),Dl=Se({},$a,{view:0,detail:0}),a0=io(Dl),Yr,ah,Mr,Rd=Se({},Dl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fh,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Mr&&(Mr&&o.type==="mousemove"?(Yr=o.screenX-Mr.screenX,ah=o.screenY-Mr.screenY):ah=Yr=0,Mr=o),Yr)},movementY:function(o){return"movementY"in o?o.movementY:ah}}),lh=io(Rd),Xs=Se({},Rd,{dataTransfer:0}),kd=io(Xs),uh=Se({},Dl,{relatedTarget:0}),Fn=io(uh),qs=Se({},$a,{animationName:0,elapsedTime:0,pseudoElement:0}),ch=io(qs),Oy=Se({},$a,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),dh=io(Oy),Py=Se({},$a,{data:0}),l0=io(Py),Iy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},u0={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"},Td={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nl(o){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(o):(o=Td[o])?!!s[o]:!1}function fh(){return Nl}var c0=Se({},Dl,{key:function(o){if(o.key){var s=Iy[o.key]||o.key;if(s!=="Unidentified")return s}return o.type==="keypress"?(o=Al(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?u0[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fh,charCode:function(o){return o.type==="keypress"?Al(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Al(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),d0=io(c0),ph=Se({},Rd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Od=io(ph),f0=Se({},Dl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fh}),Ay=io(f0),hh=Se({},$a,{propertyName:0,elapsedTime:0,pseudoElement:0}),mh=io(hh),Dy=Se({},Rd,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),p0=io(Dy),Co=[9,13,27,32],Fu=f&&"CompositionEvent"in window,hs=null;f&&"documentMode"in document&&(hs=document.documentMode);var h0=f&&"TextEvent"in window&&!hs,gh=f&&(!Fu||hs&&8<hs&&11>=hs),m0=" ",g0=!1;function v0(o,s){switch(o){case"keyup":return Co.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function b0(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var $l=!1;function Ml(o,s){switch(o){case"compositionend":return b0(s);case"keypress":return s.which!==32?null:(g0=!0,m0);case"textInput":return o=s.data,o===m0&&g0?null:o;default:return null}}function Ny(o,s){if($l)return o==="compositionend"||!Fu&&v0(o,s)?(o=ih(),Wi=ju=Gn=null,$l=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return gh&&s.locale!=="ko"?null:s.data;default:return null}}var $y={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 Pd(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s==="input"?!!$y[o.type]:s==="textarea"}function vh(o,s,d,m){$r(m),s=Fd(s,"onChange"),0<s.length&&(d=new Ed("onChange","change",null,d,m),o.push({event:d,listeners:s}))}var Ho=null,Ys=null;function My(o){E0(o,0)}function Id(o){var s=Vt(o);if(Qe(s))return o}function Ly(o,s){if(o==="change")return s}var Ma=!1;if(f){var Eo;if(f){var Ad="oninput"in document;if(!Ad){var y0=document.createElement("div");y0.setAttribute("oninput","return;"),Ad=typeof y0.oninput=="function"}Eo=Ad}else Eo=!1;Ma=Eo&&(!document.documentMode||9<document.documentMode)}function x0(){Ho&&(Ho.detachEvent("onpropertychange",S0),Ys=Ho=null)}function S0(o){if(o.propertyName==="value"&&Id(Ys)){var s=[];vh(s,Ys,o,Gt(o)),wr(My,s)}}function jy(o,s,d){o==="focusin"?(x0(),Ho=s,Ys=d,Ho.attachEvent("onpropertychange",S0)):o==="focusout"&&x0()}function Fy(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Id(Ys)}function Ll(o,s){if(o==="click")return Id(s)}function ie(o,s){if(o==="input"||o==="change")return Id(s)}function Te(o,s){return o===s&&(o!==0||1/o===1/s)||o!==o&&s!==s}var we=typeof Object.is=="function"?Object.is:Te;function ct(o,s){if(we(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var d=Object.keys(o),m=Object.keys(s);if(d.length!==m.length)return!1;for(m=0;m<d.length;m++){var y=d[m];if(!p.call(s,y)||!we(o[y],s[y]))return!1}return!0}function Bt(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function yn(o,s){var d=Bt(o);o=0;for(var m;d;){if(d.nodeType===3){if(m=o+d.textContent.length,o<=s&&m>=s)return{node:d,offset:s-o};o=m}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=Bt(d)}}function lr(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?lr(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function Nn(){for(var o=window,s=vt();s instanceof o.HTMLIFrameElement;){try{var d=typeof s.contentWindow.location.href=="string"}catch{d=!1}if(d)o=s.contentWindow;else break;s=vt(o.document)}return s}function zu(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s&&(s==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||s==="textarea"||o.contentEditable==="true")}function zy(o){var s=Nn(),d=o.focusedElem,m=o.selectionRange;if(s!==d&&d&&d.ownerDocument&&lr(d.ownerDocument.documentElement,d)){if(m!==null&&zu(d)){if(s=m.start,o=m.end,o===void 0&&(o=s),"selectionStart"in d)d.selectionStart=s,d.selectionEnd=Math.min(o,d.value.length);else if(o=(s=d.ownerDocument||document)&&s.defaultView||window,o.getSelection){o=o.getSelection();var y=d.textContent.length,_=Math.min(m.start,y);m=m.end===void 0?_:Math.min(m.end,y),!o.extend&&_>m&&(y=m,m=_,_=y),y=yn(d,_);var $=yn(d,m);y&&$&&(o.rangeCount!==1||o.anchorNode!==y.node||o.anchorOffset!==y.offset||o.focusNode!==$.node||o.focusOffset!==$.offset)&&(s=s.createRange(),s.setStart(y.node,y.offset),o.removeAllRanges(),_>m?(o.addRange(s),o.extend($.node,$.offset)):(s.setEnd($.node,$.offset),o.addRange(s)))}}for(s=[],o=d;o=o.parentNode;)o.nodeType===1&&s.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<s.length;d++)o=s[d],o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}var Wo=f&&"documentMode"in document&&11>=document.documentMode,ms=null,bh=null,Gi=null,jl=!1;function Bu(o,s,d){var m=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;jl||ms==null||ms!==vt(m)||(m=ms,"selectionStart"in m&&zu(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),Gi&&ct(Gi,m)||(Gi=m,m=Fd(bh,"onSelect"),0<m.length&&(s=new Ed("onSelect","select",null,s,d),o.push({event:s,listeners:m}),s.target=ms)))}function xn(o,s){var d={};return d[o.toLowerCase()]=s.toLowerCase(),d["Webkit"+o]="webkit"+s,d["Moz"+o]="moz"+s,d}var Fl={animationend:xn("Animation","AnimationEnd"),animationiteration:xn("Animation","AnimationIteration"),animationstart:xn("Animation","AnimationStart"),transitionend:xn("Transition","TransitionEnd")},Dd={},Uu={};f&&(Uu=document.createElement("div").style,"AnimationEvent"in window||(delete Fl.animationend.animation,delete Fl.animationiteration.animation,delete Fl.animationstart.animation),"TransitionEvent"in window||delete Fl.transitionend.transition);function Nd(o){if(Dd[o])return Dd[o];if(!Fl[o])return o;var s=Fl[o],d;for(d in s)if(s.hasOwnProperty(d)&&d in Uu)return Dd[o]=s[d];return o}var w0=Nd("animationend"),_0=Nd("animationiteration"),Hu=Nd("animationstart"),gs=Nd("transitionend"),Wu=new Map,yh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function bi(o,s){Wu.set(o,s),a(s,[o])}for(var $d=0;$d<yh.length;$d++){var Md=yh[$d],Ld=Md.toLowerCase(),C0=Md[0].toUpperCase()+Md.slice(1);bi(Ld,"on"+C0)}bi(w0,"onAnimationEnd"),bi(_0,"onAnimationIteration"),bi(Hu,"onAnimationStart"),bi("dblclick","onDoubleClick"),bi("focusin","onFocus"),bi("focusout","onBlur"),bi(gs,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vs="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(" "),La=new Set("cancel close invalid load scroll toggle".split(" ").concat(vs));function Gu(o,s,d){var m=o.type||"unknown-event";o.currentTarget=d,Tt(m,s,void 0,o),o.currentTarget=null}function E0(o,s){s=(s&4)!==0;for(var d=0;d<o.length;d++){var m=o[d],y=m.event;m=m.listeners;e:{var _=void 0;if(s)for(var $=m.length-1;0<=$;$--){var B=m[$],Y=B.instance,_e=B.currentTarget;if(B=B.listener,Y!==_&&y.isPropagationStopped())break e;Gu(y,B,_e),_=Y}else for($=0;$<m.length;$++){if(B=m[$],Y=B.instance,_e=B.currentTarget,B=B.listener,Y!==_&&y.isPropagationStopped())break e;Gu(y,B,_e),_=Y}}}if(qe)throw o=ft,qe=!1,ft=null,o}function Bn(o,s){var d=s[Ud];d===void 0&&(d=s[Ud]=new Set);var m=o+"__bubble";d.has(m)||(jd(s,o,2,!1),d.add(m))}function xh(o,s,d){var m=0;s&&(m|=4),jd(d,o,m,s)}var ja="_reactListening"+Math.random().toString(36).slice(2);function Qs(o){if(!o[ja]){o[ja]=!0,r.forEach(function(d){d!=="selectionchange"&&(La.has(d)||xh(d,!1,o),xh(d,!0,o))});var s=o.nodeType===9?o:o.ownerDocument;s===null||s[ja]||(s[ja]=!0,xh("selectionchange",!1,s))}}function jd(o,s,d,m){switch(s0(s)){case 1:var y=ky;break;case 4:y=Ty;break;default:y=oh}d=y.bind(null,s,d,o),y=void 0,!bn||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(y=!0),m?y!==void 0?o.addEventListener(s,d,{capture:!0,passive:y}):o.addEventListener(s,d,!0):y!==void 0?o.addEventListener(s,d,{passive:y}):o.addEventListener(s,d,!1)}function Sh(o,s,d,m,y){var _=m;if(!(s&1)&&!(s&2)&&m!==null)e:for(;;){if(m===null)return;var $=m.tag;if($===3||$===4){var B=m.stateNode.containerInfo;if(B===y||B.nodeType===8&&B.parentNode===y)break;if($===4)for($=m.return;$!==null;){var Y=$.tag;if((Y===3||Y===4)&&(Y=$.stateNode.containerInfo,Y===y||Y.nodeType===8&&Y.parentNode===y))return;$=$.return}for(;B!==null;){if($=Vi(B),$===null)return;if(Y=$.tag,Y===5||Y===6){m=_=$;continue e}B=B.parentNode}}m=m.return}wr(function(){var _e=_,ze=Gt(d),Ge=[];e:{var Le=Wu.get(o);if(Le!==void 0){var dt=Ed,gt=o;switch(o){case"keypress":if(Al(d)===0)break e;case"keydown":case"keyup":dt=d0;break;case"focusin":gt="focus",dt=Fn;break;case"focusout":gt="blur",dt=Fn;break;case"beforeblur":case"afterblur":dt=Fn;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":dt=lh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":dt=kd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":dt=Ay;break;case w0:case _0:case Hu:dt=ch;break;case gs:dt=mh;break;case"scroll":dt=a0;break;case"wheel":dt=p0;break;case"copy":case"cut":case"paste":dt=dh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":dt=Od}var xt=(s&4)!==0,rr=!xt&&o==="scroll",de=xt?Le!==null?Le+"Capture":null:Le;xt=[];for(var te=_e,me;te!==null;){me=te;var Xe=me.stateNode;if(me.tag===5&&Xe!==null&&(me=Xe,de!==null&&(Xe=jn(te,de),Xe!=null&&xt.push(zl(te,Xe,me)))),rr)break;te=te.return}0<xt.length&&(Le=new dt(Le,gt,null,d,ze),Ge.push({event:Le,listeners:xt}))}}if(!(s&7)){e:{if(Le=o==="mouseover"||o==="pointerover",dt=o==="mouseout"||o==="pointerout",Le&&d!==Ft&&(gt=d.relatedTarget||d.fromElement)&&(Vi(gt)||gt[Ro]))break e;if((dt||Le)&&(Le=ze.window===ze?ze:(Le=ze.ownerDocument)?Le.defaultView||Le.parentWindow:window,dt?(gt=d.relatedTarget||d.toElement,dt=_e,gt=gt?Vi(gt):null,gt!==null&&(rr=oe(gt),gt!==rr||gt.tag!==5&&gt.tag!==6)&&(gt=null)):(dt=null,gt=_e),dt!==gt)){if(xt=lh,Xe="onMouseLeave",de="onMouseEnter",te="mouse",(o==="pointerout"||o==="pointerover")&&(xt=Od,Xe="onPointerLeave",de="onPointerEnter",te="pointer"),rr=dt==null?Le:Vt(dt),me=gt==null?Le:Vt(gt),Le=new xt(Xe,te+"leave",dt,d,ze),Le.target=rr,Le.relatedTarget=me,Xe=null,Vi(ze)===_e&&(xt=new xt(de,te+"enter",gt,d,ze),xt.target=me,xt.relatedTarget=rr,Xe=xt),rr=Xe,dt&&gt)t:{for(xt=dt,de=gt,te=0,me=xt;me;me=Bl(me))te++;for(me=0,Xe=de;Xe;Xe=Bl(Xe))me++;for(;0<te-me;)xt=Bl(xt),te--;for(;0<me-te;)de=Bl(de),me--;for(;te--;){if(xt===de||de!==null&&xt===de.alternate)break t;xt=Bl(xt),de=Bl(de)}xt=null}else xt=null;dt!==null&&ur(Ge,Le,dt,xt,!1),gt!==null&&rr!==null&&ur(Ge,rr,gt,xt,!0)}}e:{if(Le=_e?Vt(_e):window,dt=Le.nodeName&&Le.nodeName.toLowerCase(),dt==="select"||dt==="input"&&Le.type==="file")var _t=Ly;else if(Pd(Le))if(Ma)_t=ie;else{_t=Fy;var Ot=jy}else(dt=Le.nodeName)&&dt.toLowerCase()==="input"&&(Le.type==="checkbox"||Le.type==="radio")&&(_t=Ll);if(_t&&(_t=_t(o,_e))){vh(Ge,_t,d,ze);break e}Ot&&Ot(o,Le,_e),o==="focusout"&&(Ot=Le._wrapperState)&&Ot.controlled&&Le.type==="number"&&sn(Le,"number",Le.value)}switch(Ot=_e?Vt(_e):window,o){case"focusin":(Pd(Ot)||Ot.contentEditable==="true")&&(ms=Ot,bh=_e,Gi=null);break;case"focusout":Gi=bh=ms=null;break;case"mousedown":jl=!0;break;case"contextmenu":case"mouseup":case"dragend":jl=!1,Bu(Ge,d,ze);break;case"selectionchange":if(Wo)break;case"keydown":case"keyup":Bu(Ge,d,ze)}var kt;if(Fu)e:{switch(o){case"compositionstart":var Nt="onCompositionStart";break e;case"compositionend":Nt="onCompositionEnd";break e;case"compositionupdate":Nt="onCompositionUpdate";break e}Nt=void 0}else $l?v0(o,d)&&(Nt="onCompositionEnd"):o==="keydown"&&d.keyCode===229&&(Nt="onCompositionStart");Nt&&(gh&&d.locale!=="ko"&&($l||Nt!=="onCompositionStart"?Nt==="onCompositionEnd"&&$l&&(kt=ih()):(Gn=ze,ju="value"in Gn?Gn.value:Gn.textContent,$l=!0)),Ot=Fd(_e,Nt),0<Ot.length&&(Nt=new l0(Nt,o,null,d,ze),Ge.push({event:Nt,listeners:Ot}),kt?Nt.data=kt:(kt=b0(d),kt!==null&&(Nt.data=kt)))),(kt=h0?Ml(o,d):Ny(o,d))&&(_e=Fd(_e,"onBeforeInput"),0<_e.length&&(ze=new l0("onBeforeInput","beforeinput",null,d,ze),Ge.push({event:ze,listeners:_e}),ze.data=kt))}E0(Ge,s)})}function zl(o,s,d){return{instance:o,listener:s,currentTarget:d}}function Fd(o,s){for(var d=s+"Capture",m=[];o!==null;){var y=o,_=y.stateNode;y.tag===5&&_!==null&&(y=_,_=jn(o,d),_!=null&&m.unshift(zl(o,_,y)),_=jn(o,s),_!=null&&m.push(zl(o,_,y))),o=o.return}return m}function Bl(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5);return o||null}function ur(o,s,d,m,y){for(var _=s._reactName,$=[];d!==null&&d!==m;){var B=d,Y=B.alternate,_e=B.stateNode;if(Y!==null&&Y===m)break;B.tag===5&&_e!==null&&(B=_e,y?(Y=jn(d,_),Y!=null&&$.unshift(zl(d,Y,B))):y||(Y=jn(d,_),Y!=null&&$.push(zl(d,Y,B)))),d=d.return}$.length!==0&&o.push({event:s,listeners:$})}var Lr=/\r\n?/g,By=/\u0000|\uFFFD/g;function R0(o){return(typeof o=="string"?o:""+o).replace(Lr,`
6
+ `).replace(By,"")}function Ku(o,s,d){if(s=R0(s),R0(o)!==s&&d)throw Error(n(425))}function zd(){}var Vu=null,Fa=null;function Xu(o,s){return o==="textarea"||o==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Js=typeof setTimeout=="function"?setTimeout:void 0,qu=typeof clearTimeout=="function"?clearTimeout:void 0,Ul=typeof Promise=="function"?Promise:void 0,Bd=typeof queueMicrotask=="function"?queueMicrotask:typeof Ul<"u"?function(o){return Ul.resolve(null).then(o).catch(Hl)}:Js;function Hl(o){setTimeout(function(){throw o})}function wh(o,s){var d=s,m=0;do{var y=d.nextSibling;if(o.removeChild(d),y&&y.nodeType===8)if(d=y.data,d==="/$"){if(m===0){o.removeChild(y),En(s);return}m--}else d!=="$"&&d!=="$?"&&d!=="$!"||m++;d=y}while(d);En(s)}function Zs(o){for(;o!=null;o=o.nextSibling){var s=o.nodeType;if(s===1||s===3)break;if(s===8){if(s=o.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return o}function k0(o){o=o.previousSibling;for(var s=0;o;){if(o.nodeType===8){var d=o.data;if(d==="$"||d==="$!"||d==="$?"){if(s===0)return o;s--}else d==="/$"&&s++}o=o.previousSibling}return null}var Wl=Math.random().toString(36).slice(2),Ki="__reactFiber$"+Wl,ea="__reactProps$"+Wl,Ro="__reactContainer$"+Wl,Ud="__reactEvents$"+Wl,j="__reactListeners$"+Wl,Gl="__reactHandles$"+Wl;function Vi(o){var s=o[Ki];if(s)return s;for(var d=o.parentNode;d;){if(s=d[Ro]||d[Ki]){if(d=s.alternate,s.child!==null||d!==null&&d.child!==null)for(o=k0(o);o!==null;){if(d=o[Ki])return d;o=k0(o)}return s}o=d,d=o.parentNode}return null}function jr(o){return o=o[Ki]||o[Ro],!o||o.tag!==5&&o.tag!==6&&o.tag!==13&&o.tag!==3?null:o}function Vt(o){if(o.tag===5||o.tag===6)return o.stateNode;throw Error(n(33))}function Hd(o){return o[ea]||null}var _h=[],Kl=-1;function so(o){return{current:o}}function Un(o){0>Kl||(o.current=_h[Kl],_h[Kl]=null,Kl--)}function zn(o,s){Kl++,_h[Kl]=o.current,o.current=s}var ta={},Fr=so(ta),ao=so(!1),Qr=ta;function Vl(o,s){var d=o.type.contextTypes;if(!d)return ta;var m=o.stateNode;if(m&&m.__reactInternalMemoizedUnmaskedChildContext===s)return m.__reactInternalMemoizedMaskedChildContext;var y={},_;for(_ in d)y[_]=s[_];return m&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=s,o.__reactInternalMemoizedMaskedChildContext=y),y}function lo(o){return o=o.childContextTypes,o!=null}function Wd(){Un(ao),Un(Fr)}function T0(o,s,d){if(Fr.current!==ta)throw Error(n(168));zn(Fr,s),zn(ao,d)}function O0(o,s,d){var m=o.stateNode;if(s=s.childContextTypes,typeof m.getChildContext!="function")return d;m=m.getChildContext();for(var y in m)if(!(y in s))throw Error(n(108,Ye(o)||"Unknown",y));return Se({},d,m)}function Go(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||ta,Qr=Fr.current,zn(Fr,o),zn(ao,ao.current),!0}function P0(o,s,d){var m=o.stateNode;if(!m)throw Error(n(169));d?(o=O0(o,s,Qr),m.__reactInternalMemoizedMergedChildContext=o,Un(ao),Un(Fr),zn(Fr,o)):Un(ao),zn(ao,d)}var bs=null,Gd=!1,Ch=!1;function I0(o){bs===null?bs=[o]:bs.push(o)}function za(o){Gd=!0,I0(o)}function na(){if(!Ch&&bs!==null){Ch=!0;var o=0,s=_n;try{var d=bs;for(_n=1;o<d.length;o++){var m=d[o];do m=m(!0);while(m!==null)}bs=null,Gd=!1}catch(y){throw bs!==null&&(bs=bs.slice(o+1)),St(Ui,na),y}finally{_n=s,Ch=!1}}return null}var Xl=[],zr=0,Kd=null,Vd=0,Ko=[],Vo=0,Ba=null,Xi=1,qi="";function Ua(o,s){Xl[zr++]=Vd,Xl[zr++]=Kd,Kd=o,Vd=s}function A0(o,s,d){Ko[Vo++]=Xi,Ko[Vo++]=qi,Ko[Vo++]=Ba,Ba=o;var m=Xi;o=qi;var y=32-un(m)-1;m&=~(1<<y),d+=1;var _=32-un(s)+y;if(30<_){var $=y-y%5;_=(m&(1<<$)-1).toString(32),m>>=$,y-=$,Xi=1<<32-un(s)+y|d<<y|m,qi=_+o}else Xi=1<<_|d<<y|m,qi=o}function Yu(o){o.return!==null&&(Ua(o,1),A0(o,1,0))}function Ha(o){for(;o===Kd;)Kd=Xl[--zr],Xl[zr]=null,Vd=Xl[--zr],Xl[zr]=null;for(;o===Ba;)Ba=Ko[--Vo],Ko[Vo]=null,qi=Ko[--Vo],Ko[Vo]=null,Xi=Ko[--Vo],Ko[Vo]=null}var Br=null,ko=null,Hn=!1,yi=null;function Yi(o,s){var d=ei(5,null,null,0);d.elementType="DELETED",d.stateNode=s,d.return=o,s=o.deletions,s===null?(o.deletions=[d],o.flags|=16):s.push(d)}function Xd(o,s){switch(o.tag){case 5:var d=o.type;return s=s.nodeType!==1||d.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(o.stateNode=s,Br=o,ko=Zs(s.firstChild),!0):!1;case 6:return s=o.pendingProps===""||s.nodeType!==3?null:s,s!==null?(o.stateNode=s,Br=o,ko=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(d=Ba!==null?{id:Xi,overflow:qi}:null,o.memoizedState={dehydrated:s,treeContext:d,retryLane:1073741824},d=ei(18,null,null,0),d.stateNode=s,d.return=o,o.child=d,Br=o,ko=null,!0):!1;default:return!1}}function ys(o){return(o.mode&1)!==0&&(o.flags&128)===0}function uo(o){if(Hn){var s=ko;if(s){var d=s;if(!Xd(o,s)){if(ys(o))throw Error(n(418));s=Zs(d.nextSibling);var m=Br;s&&Xd(o,s)?Yi(m,d):(o.flags=o.flags&-4097|2,Hn=!1,Br=o)}}else{if(ys(o))throw Error(n(418));o.flags=o.flags&-4097|2,Hn=!1,Br=o}}}function D0(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;Br=o}function Qu(o){if(o!==Br)return!1;if(!Hn)return D0(o),Hn=!0,!1;var s;if((s=o.tag!==3)&&!(s=o.tag!==5)&&(s=o.type,s=s!=="head"&&s!=="body"&&!Xu(o.type,o.memoizedProps)),s&&(s=ko)){if(ys(o))throw Eh(),Error(n(418));for(;s;)Yi(o,s),s=Zs(s.nextSibling)}if(D0(o),o.tag===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(n(317));e:{for(o=o.nextSibling,s=0;o;){if(o.nodeType===8){var d=o.data;if(d==="/$"){if(s===0){ko=Zs(o.nextSibling);break e}s--}else d!=="$"&&d!=="$!"&&d!=="$?"||s++}o=o.nextSibling}ko=null}}else ko=Br?Zs(o.stateNode.nextSibling):null;return!0}function Eh(){for(var o=ko;o;)o=Zs(o.nextSibling)}function Qi(){ko=Br=null,Hn=!1}function Ji(o){yi===null?yi=[o]:yi.push(o)}var N0=M.ReactCurrentBatchConfig;function Ju(o,s,d){if(o=d.ref,o!==null&&typeof o!="function"&&typeof o!="object"){if(d._owner){if(d=d._owner,d){if(d.tag!==1)throw Error(n(309));var m=d.stateNode}if(!m)throw Error(n(147,o));var y=m,_=""+o;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===_?s.ref:(s=function($){var B=y.refs;$===null?delete B[_]:B[_]=$},s._stringRef=_,s)}if(typeof o!="string")throw Error(n(284));if(!d._owner)throw Error(n(290,o))}return o}function Wa(o,s){throw o=Object.prototype.toString.call(s),Error(n(31,o==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":o))}function $0(o){var s=o._init;return s(o._payload)}function Rh(o){function s(de,te){if(o){var me=de.deletions;me===null?(de.deletions=[te],de.flags|=16):me.push(te)}}function d(de,te){if(!o)return null;for(;te!==null;)s(de,te),te=te.sibling;return null}function m(de,te){for(de=new Map;te!==null;)te.key!==null?de.set(te.key,te):de.set(te.index,te),te=te.sibling;return de}function y(de,te){return de=Ri(de,te),de.index=0,de.sibling=null,de}function _(de,te,me){return de.index=me,o?(me=de.alternate,me!==null?(me=me.index,me<te?(de.flags|=2,te):me):(de.flags|=2,te)):(de.flags|=1048576,te)}function $(de){return o&&de.alternate===null&&(de.flags|=2),de}function B(de,te,me,Xe){return te===null||te.tag!==6?(te=fm(me,de.mode,Xe),te.return=de,te):(te=y(te,me),te.return=de,te)}function Y(de,te,me,Xe){var _t=me.type;return _t===z?ze(de,te,me.props.children,Xe,me.key):te!==null&&(te.elementType===_t||typeof _t=="object"&&_t!==null&&_t.$$typeof===ue&&$0(_t)===te.type)?(Xe=y(te,me.props),Xe.ref=Ju(de,te,me),Xe.return=de,Xe):(Xe=Pf(me.type,me.key,me.props,null,de.mode,Xe),Xe.ref=Ju(de,te,me),Xe.return=de,Xe)}function _e(de,te,me,Xe){return te===null||te.tag!==4||te.stateNode.containerInfo!==me.containerInfo||te.stateNode.implementation!==me.implementation?(te=pm(me,de.mode,Xe),te.return=de,te):(te=y(te,me.children||[]),te.return=de,te)}function ze(de,te,me,Xe,_t){return te===null||te.tag!==7?(te=tl(me,de.mode,Xe,_t),te.return=de,te):(te=y(te,me),te.return=de,te)}function Ge(de,te,me){if(typeof te=="string"&&te!==""||typeof te=="number")return te=fm(""+te,de.mode,me),te.return=de,te;if(typeof te=="object"&&te!==null){switch(te.$$typeof){case L:return me=Pf(te.type,te.key,te.props,null,de.mode,me),me.ref=Ju(de,null,te),me.return=de,me;case A:return te=pm(te,de.mode,me),te.return=de,te;case ue:var Xe=te._init;return Ge(de,Xe(te._payload),me)}if(Dt(te)||ae(te))return te=tl(te,de.mode,me,null),te.return=de,te;Wa(de,te)}return null}function Le(de,te,me,Xe){var _t=te!==null?te.key:null;if(typeof me=="string"&&me!==""||typeof me=="number")return _t!==null?null:B(de,te,""+me,Xe);if(typeof me=="object"&&me!==null){switch(me.$$typeof){case L:return me.key===_t?Y(de,te,me,Xe):null;case A:return me.key===_t?_e(de,te,me,Xe):null;case ue:return _t=me._init,Le(de,te,_t(me._payload),Xe)}if(Dt(me)||ae(me))return _t!==null?null:ze(de,te,me,Xe,null);Wa(de,me)}return null}function dt(de,te,me,Xe,_t){if(typeof Xe=="string"&&Xe!==""||typeof Xe=="number")return de=de.get(me)||null,B(te,de,""+Xe,_t);if(typeof Xe=="object"&&Xe!==null){switch(Xe.$$typeof){case L:return de=de.get(Xe.key===null?me:Xe.key)||null,Y(te,de,Xe,_t);case A:return de=de.get(Xe.key===null?me:Xe.key)||null,_e(te,de,Xe,_t);case ue:var Ot=Xe._init;return dt(de,te,me,Ot(Xe._payload),_t)}if(Dt(Xe)||ae(Xe))return de=de.get(me)||null,ze(te,de,Xe,_t,null);Wa(te,Xe)}return null}function gt(de,te,me,Xe){for(var _t=null,Ot=null,kt=te,Nt=te=0,Er=null;kt!==null&&Nt<me.length;Nt++){kt.index>Nt?(Er=kt,kt=null):Er=kt.sibling;var Sn=Le(de,kt,me[Nt],Xe);if(Sn===null){kt===null&&(kt=Er);break}o&&kt&&Sn.alternate===null&&s(de,kt),te=_(Sn,te,Nt),Ot===null?_t=Sn:Ot.sibling=Sn,Ot=Sn,kt=Er}if(Nt===me.length)return d(de,kt),Hn&&Ua(de,Nt),_t;if(kt===null){for(;Nt<me.length;Nt++)kt=Ge(de,me[Nt],Xe),kt!==null&&(te=_(kt,te,Nt),Ot===null?_t=kt:Ot.sibling=kt,Ot=kt);return Hn&&Ua(de,Nt),_t}for(kt=m(de,kt);Nt<me.length;Nt++)Er=dt(kt,de,Nt,me[Nt],Xe),Er!==null&&(o&&Er.alternate!==null&&kt.delete(Er.key===null?Nt:Er.key),te=_(Er,te,Nt),Ot===null?_t=Er:Ot.sibling=Er,Ot=Er);return o&&kt.forEach(function(ha){return s(de,ha)}),Hn&&Ua(de,Nt),_t}function xt(de,te,me,Xe){var _t=ae(me);if(typeof _t!="function")throw Error(n(150));if(me=_t.call(me),me==null)throw Error(n(151));for(var Ot=_t=null,kt=te,Nt=te=0,Er=null,Sn=me.next();kt!==null&&!Sn.done;Nt++,Sn=me.next()){kt.index>Nt?(Er=kt,kt=null):Er=kt.sibling;var ha=Le(de,kt,Sn.value,Xe);if(ha===null){kt===null&&(kt=Er);break}o&&kt&&ha.alternate===null&&s(de,kt),te=_(ha,te,Nt),Ot===null?_t=ha:Ot.sibling=ha,Ot=ha,kt=Er}if(Sn.done)return d(de,kt),Hn&&Ua(de,Nt),_t;if(kt===null){for(;!Sn.done;Nt++,Sn=me.next())Sn=Ge(de,Sn.value,Xe),Sn!==null&&(te=_(Sn,te,Nt),Ot===null?_t=Sn:Ot.sibling=Sn,Ot=Sn);return Hn&&Ua(de,Nt),_t}for(kt=m(de,kt);!Sn.done;Nt++,Sn=me.next())Sn=dt(kt,de,Nt,Sn.value,Xe),Sn!==null&&(o&&Sn.alternate!==null&&kt.delete(Sn.key===null?Nt:Sn.key),te=_(Sn,te,Nt),Ot===null?_t=Sn:Ot.sibling=Sn,Ot=Sn);return o&&kt.forEach(function(lx){return s(de,lx)}),Hn&&Ua(de,Nt),_t}function rr(de,te,me,Xe){if(typeof me=="object"&&me!==null&&me.type===z&&me.key===null&&(me=me.props.children),typeof me=="object"&&me!==null){switch(me.$$typeof){case L:e:{for(var _t=me.key,Ot=te;Ot!==null;){if(Ot.key===_t){if(_t=me.type,_t===z){if(Ot.tag===7){d(de,Ot.sibling),te=y(Ot,me.props.children),te.return=de,de=te;break e}}else if(Ot.elementType===_t||typeof _t=="object"&&_t!==null&&_t.$$typeof===ue&&$0(_t)===Ot.type){d(de,Ot.sibling),te=y(Ot,me.props),te.ref=Ju(de,Ot,me),te.return=de,de=te;break e}d(de,Ot);break}else s(de,Ot);Ot=Ot.sibling}me.type===z?(te=tl(me.props.children,de.mode,Xe,me.key),te.return=de,de=te):(Xe=Pf(me.type,me.key,me.props,null,de.mode,Xe),Xe.ref=Ju(de,te,me),Xe.return=de,de=Xe)}return $(de);case A:e:{for(Ot=me.key;te!==null;){if(te.key===Ot)if(te.tag===4&&te.stateNode.containerInfo===me.containerInfo&&te.stateNode.implementation===me.implementation){d(de,te.sibling),te=y(te,me.children||[]),te.return=de,de=te;break e}else{d(de,te);break}else s(de,te);te=te.sibling}te=pm(me,de.mode,Xe),te.return=de,de=te}return $(de);case ue:return Ot=me._init,rr(de,te,Ot(me._payload),Xe)}if(Dt(me))return gt(de,te,me,Xe);if(ae(me))return xt(de,te,me,Xe);Wa(de,me)}return typeof me=="string"&&me!==""||typeof me=="number"?(me=""+me,te!==null&&te.tag===6?(d(de,te.sibling),te=y(te,me),te.return=de,de=te):(d(de,te),te=fm(me,de.mode,Xe),te.return=de,de=te),$(de)):d(de,te)}return rr}var er=Rh(!0),qd=Rh(!1),Zu=so(null),To=null,ra=null,ql=null;function xs(){ql=ra=To=null}function Yd(o){var s=Zu.current;Un(Zu),o._currentValue=s}function Tr(o,s,d){for(;o!==null;){var m=o.alternate;if((o.childLanes&s)!==s?(o.childLanes|=s,m!==null&&(m.childLanes|=s)):m!==null&&(m.childLanes&s)!==s&&(m.childLanes|=s),o===d)break;o=o.return}}function oa(o,s){To=o,ql=ra=null,o=o.dependencies,o!==null&&o.firstContext!==null&&(o.lanes&s&&(Zr=!0),o.firstContext=null)}function Xo(o){var s=o._currentValue;if(ql!==o)if(o={context:o,memoizedValue:s,next:null},ra===null){if(To===null)throw Error(n(308));ra=o,To.dependencies={lanes:0,firstContext:o}}else ra=ra.next=o;return s}var Ga=null;function kh(o){Ga===null?Ga=[o]:Ga.push(o)}function Qd(o,s,d,m){var y=s.interleaved;return y===null?(d.next=d,kh(s)):(d.next=y.next,y.next=d),s.interleaved=d,Ss(o,m)}function Ss(o,s){o.lanes|=s;var d=o.alternate;for(d!==null&&(d.lanes|=s),d=o,o=o.return;o!==null;)o.childLanes|=s,d=o.alternate,d!==null&&(d.childLanes|=s),d=o,o=o.return;return d.tag===3?d.stateNode:null}var qo=!1;function Jd(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function M0(o,s){o=o.updateQueue,s.updateQueue===o&&(s.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function ws(o,s){return{eventTime:o,lane:s,tag:0,payload:null,callback:null,next:null}}function Yo(o,s,d){var m=o.updateQueue;if(m===null)return null;if(m=m.shared,gn&2){var y=m.pending;return y===null?s.next=s:(s.next=y.next,y.next=s),m.pending=s,Ss(o,d)}return y=m.interleaved,y===null?(s.next=s,kh(m)):(s.next=y.next,y.next=s),m.interleaved=s,Ss(o,d)}function Zd(o,s,d){if(s=s.updateQueue,s!==null&&(s=s.shared,(d&4194240)!==0)){var m=s.lanes;m&=o.pendingLanes,d|=m,s.lanes=d,$u(o,d)}}function L0(o,s){var d=o.updateQueue,m=o.alternate;if(m!==null&&(m=m.updateQueue,d===m)){var y=null,_=null;if(d=d.firstBaseUpdate,d!==null){do{var $={eventTime:d.eventTime,lane:d.lane,tag:d.tag,payload:d.payload,callback:d.callback,next:null};_===null?y=_=$:_=_.next=$,d=d.next}while(d!==null);_===null?y=_=s:_=_.next=s}else y=_=s;d={baseState:m.baseState,firstBaseUpdate:y,lastBaseUpdate:_,shared:m.shared,effects:m.effects},o.updateQueue=d;return}o=d.lastBaseUpdate,o===null?d.firstBaseUpdate=s:o.next=s,d.lastBaseUpdate=s}function Yl(o,s,d,m){var y=o.updateQueue;qo=!1;var _=y.firstBaseUpdate,$=y.lastBaseUpdate,B=y.shared.pending;if(B!==null){y.shared.pending=null;var Y=B,_e=Y.next;Y.next=null,$===null?_=_e:$.next=_e,$=Y;var ze=o.alternate;ze!==null&&(ze=ze.updateQueue,B=ze.lastBaseUpdate,B!==$&&(B===null?ze.firstBaseUpdate=_e:B.next=_e,ze.lastBaseUpdate=Y))}if(_!==null){var Ge=y.baseState;$=0,ze=_e=Y=null,B=_;do{var Le=B.lane,dt=B.eventTime;if((m&Le)===Le){ze!==null&&(ze=ze.next={eventTime:dt,lane:0,tag:B.tag,payload:B.payload,callback:B.callback,next:null});e:{var gt=o,xt=B;switch(Le=s,dt=d,xt.tag){case 1:if(gt=xt.payload,typeof gt=="function"){Ge=gt.call(dt,Ge,Le);break e}Ge=gt;break e;case 3:gt.flags=gt.flags&-65537|128;case 0:if(gt=xt.payload,Le=typeof gt=="function"?gt.call(dt,Ge,Le):gt,Le==null)break e;Ge=Se({},Ge,Le);break e;case 2:qo=!0}}B.callback!==null&&B.lane!==0&&(o.flags|=64,Le=y.effects,Le===null?y.effects=[B]:Le.push(B))}else dt={eventTime:dt,lane:Le,tag:B.tag,payload:B.payload,callback:B.callback,next:null},ze===null?(_e=ze=dt,Y=Ge):ze=ze.next=dt,$|=Le;if(B=B.next,B===null){if(B=y.shared.pending,B===null)break;Le=B,B=Le.next,Le.next=null,y.lastBaseUpdate=Le,y.shared.pending=null}}while(!0);if(ze===null&&(Y=Ge),y.baseState=Y,y.firstBaseUpdate=_e,y.lastBaseUpdate=ze,s=y.shared.interleaved,s!==null){y=s;do $|=y.lane,y=y.next;while(y!==s)}else _===null&&(y.shared.lanes=0);ua|=$,o.lanes=$,o.memoizedState=Ge}}function Th(o,s,d){if(o=s.effects,s.effects=null,o!==null)for(s=0;s<o.length;s++){var m=o[s],y=m.callback;if(y!==null){if(m.callback=null,m=d,typeof y!="function")throw Error(n(191,y));y.call(m)}}}var ec={},Zi=so(ec),tc=so(ec),Ql=so(ec);function _s(o){if(o===ec)throw Error(n(174));return o}function Oh(o,s){switch(zn(Ql,s),zn(tc,o),zn(Zi,ec),o=s.nodeType,o){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:fn(null,"");break;default:o=o===8?s.parentNode:s,s=o.namespaceURI||null,o=o.tagName,s=fn(s,o)}Un(Zi),zn(Zi,s)}function ia(){Un(Zi),Un(tc),Un(Ql)}function Ph(o){_s(Ql.current);var s=_s(Zi.current),d=fn(s,o.type);s!==d&&(zn(tc,o),zn(Zi,d))}function ef(o){tc.current===o&&(Un(Zi),Un(tc))}var Kn=so(0);function Ka(o){for(var s=o;s!==null;){if(s.tag===13){var d=s.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||d.data==="$?"||d.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if(s.flags&128)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Ih=[];function tf(){for(var o=0;o<Ih.length;o++)Ih[o]._workInProgressVersionPrimary=null;Ih.length=0}var nc=M.ReactCurrentDispatcher,Ah=M.ReactCurrentBatchConfig,sa=0,Yn=null,nr=null,mr=null,Jl=!1,rc=!1,Va=0,Yt=0;function Ur(){throw Error(n(321))}function Dh(o,s){if(s===null)return!1;for(var d=0;d<s.length&&d<o.length;d++)if(!we(o[d],s[d]))return!1;return!0}function Xa(o,s,d,m,y,_){if(sa=_,Yn=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,nc.current=o===null||o.memoizedState===null?Hy:uf,o=d(m,y),rc){_=0;do{if(rc=!1,Va=0,25<=_)throw Error(n(301));_+=1,mr=nr=null,s.updateQueue=null,nc.current=nu,o=d(m,y)}while(rc)}if(nc.current=lf,s=nr!==null&&nr.next!==null,sa=0,mr=nr=Yn=null,Jl=!1,s)throw Error(n(300));return o}function nf(){var o=Va!==0;return Va=0,o}function es(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mr===null?Yn.memoizedState=mr=o:mr=mr.next=o,mr}function Qo(){if(nr===null){var o=Yn.alternate;o=o!==null?o.memoizedState:null}else o=nr.next;var s=mr===null?Yn.memoizedState:mr.next;if(s!==null)mr=s,nr=o;else{if(o===null)throw Error(n(310));nr=o,o={memoizedState:nr.memoizedState,baseState:nr.baseState,baseQueue:nr.baseQueue,queue:nr.queue,next:null},mr===null?Yn.memoizedState=mr=o:mr=mr.next=o}return mr}function Hr(o,s){return typeof s=="function"?s(o):s}function Nh(o){var s=Qo(),d=s.queue;if(d===null)throw Error(n(311));d.lastRenderedReducer=o;var m=nr,y=m.baseQueue,_=d.pending;if(_!==null){if(y!==null){var $=y.next;y.next=_.next,_.next=$}m.baseQueue=y=_,d.pending=null}if(y!==null){_=y.next,m=m.baseState;var B=$=null,Y=null,_e=_;do{var ze=_e.lane;if((sa&ze)===ze)Y!==null&&(Y=Y.next={lane:0,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null}),m=_e.hasEagerState?_e.eagerState:o(m,_e.action);else{var Ge={lane:ze,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null};Y===null?(B=Y=Ge,$=m):Y=Y.next=Ge,Yn.lanes|=ze,ua|=ze}_e=_e.next}while(_e!==null&&_e!==_);Y===null?$=m:Y.next=B,we(m,s.memoizedState)||(Zr=!0),s.memoizedState=m,s.baseState=$,s.baseQueue=Y,d.lastRenderedState=m}if(o=d.interleaved,o!==null){y=o;do _=y.lane,Yn.lanes|=_,ua|=_,y=y.next;while(y!==o)}else y===null&&(d.lanes=0);return[s.memoizedState,d.dispatch]}function Zl(o){var s=Qo(),d=s.queue;if(d===null)throw Error(n(311));d.lastRenderedReducer=o;var m=d.dispatch,y=d.pending,_=s.memoizedState;if(y!==null){d.pending=null;var $=y=y.next;do _=o(_,$.action),$=$.next;while($!==y);we(_,s.memoizedState)||(Zr=!0),s.memoizedState=_,s.baseQueue===null&&(s.baseState=_),d.lastRenderedState=_}return[_,m]}function rf(){}function $h(o,s){var d=Yn,m=Qo(),y=s(),_=!we(m.memoizedState,y);if(_&&(m.memoizedState=y,Zr=!0),m=m.queue,ts(Cs.bind(null,d,m,o),[o]),m.getSnapshot!==s||_||mr!==null&&mr.memoizedState.tag&1){if(d.flags|=2048,eu(9,co.bind(null,d,m,y,s),void 0,null),Cr===null)throw Error(n(349));sa&30||Mh(d,s,y)}return y}function Mh(o,s,d){o.flags|=16384,o={getSnapshot:s,value:d},s=Yn.updateQueue,s===null?(s={lastEffect:null,stores:null},Yn.updateQueue=s,s.stores=[o]):(d=s.stores,d===null?s.stores=[o]:d.push(o))}function co(o,s,d,m){s.value=d,s.getSnapshot=m,of(s)&&Lh(o)}function Cs(o,s,d){return d(function(){of(s)&&Lh(o)})}function of(o){var s=o.getSnapshot;o=o.value;try{var d=s();return!we(o,d)}catch{return!0}}function Lh(o){var s=Ss(o,1);s!==null&&Ei(s,o,1,-1)}function oc(o){var s=es();return typeof o=="function"&&(o=o()),s.memoizedState=s.baseState=o,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Hr,lastRenderedState:o},s.queue=o,o=o.dispatch=H0.bind(null,Yn,o),[s.memoizedState,o]}function eu(o,s,d,m){return o={tag:o,create:s,destroy:d,deps:m,next:null},s=Yn.updateQueue,s===null?(s={lastEffect:null,stores:null},Yn.updateQueue=s,s.lastEffect=o.next=o):(d=s.lastEffect,d===null?s.lastEffect=o.next=o:(m=d.next,d.next=o,o.next=m,s.lastEffect=o)),o}function sf(){return Qo().memoizedState}function ic(o,s,d,m){var y=es();Yn.flags|=o,y.memoizedState=eu(1|s,d,void 0,m===void 0?null:m)}function tu(o,s,d,m){var y=Qo();m=m===void 0?null:m;var _=void 0;if(nr!==null){var $=nr.memoizedState;if(_=$.destroy,m!==null&&Dh(m,$.deps)){y.memoizedState=eu(s,d,_,m);return}}Yn.flags|=o,y.memoizedState=eu(1|s,d,_,m)}function af(o,s){return ic(8390656,8,o,s)}function ts(o,s){return tu(2048,8,o,s)}function j0(o,s){return tu(4,2,o,s)}function Es(o,s){return tu(4,4,o,s)}function jh(o,s){if(typeof s=="function")return o=o(),s(o),function(){s(null)};if(s!=null)return o=o(),s.current=o,function(){s.current=null}}function Fh(o,s,d){return d=d!=null?d.concat([o]):null,tu(4,4,jh.bind(null,s,o),d)}function sc(){}function F0(o,s){var d=Qo();s=s===void 0?null:s;var m=d.memoizedState;return m!==null&&s!==null&&Dh(s,m[1])?m[0]:(d.memoizedState=[o,s],o)}function z0(o,s){var d=Qo();s=s===void 0?null:s;var m=d.memoizedState;return m!==null&&s!==null&&Dh(s,m[1])?m[0]:(o=o(),d.memoizedState=[o,s],o)}function B0(o,s,d){return sa&21?(we(d,s)||(d=eh(),Yn.lanes|=d,ua|=d,o.baseState=!0),s):(o.baseState&&(o.baseState=!1,Zr=!0),o.memoizedState=d)}function U0(o,s){var d=_n;_n=d!==0&&4>d?d:4,o(!0);var m=Ah.transition;Ah.transition={};try{o(!1),s()}finally{_n=d,Ah.transition=m}}function zh(){return Qo().memoizedState}function Uy(o,s,d){var m=fa(o);if(d={lane:m,action:d,hasEagerState:!1,eagerState:null,next:null},Bh(o))Jr(s,d);else if(d=Qd(o,s,d,m),d!==null){var y=no();Ei(d,o,m,y),xi(d,s,m)}}function H0(o,s,d){var m=fa(o),y={lane:m,action:d,hasEagerState:!1,eagerState:null,next:null};if(Bh(o))Jr(s,y);else{var _=o.alternate;if(o.lanes===0&&(_===null||_.lanes===0)&&(_=s.lastRenderedReducer,_!==null))try{var $=s.lastRenderedState,B=_($,d);if(y.hasEagerState=!0,y.eagerState=B,we(B,$)){var Y=s.interleaved;Y===null?(y.next=y,kh(s)):(y.next=Y.next,Y.next=y),s.interleaved=y;return}}catch{}finally{}d=Qd(o,s,y,m),d!==null&&(y=no(),Ei(d,o,m,y),xi(d,s,m))}}function Bh(o){var s=o.alternate;return o===Yn||s!==null&&s===Yn}function Jr(o,s){rc=Jl=!0;var d=o.pending;d===null?s.next=s:(s.next=d.next,d.next=s),o.pending=s}function xi(o,s,d){if(d&4194240){var m=s.lanes;m&=o.pendingLanes,d|=m,s.lanes=d,$u(o,d)}}var lf={readContext:Xo,useCallback:Ur,useContext:Ur,useEffect:Ur,useImperativeHandle:Ur,useInsertionEffect:Ur,useLayoutEffect:Ur,useMemo:Ur,useReducer:Ur,useRef:Ur,useState:Ur,useDebugValue:Ur,useDeferredValue:Ur,useTransition:Ur,useMutableSource:Ur,useSyncExternalStore:Ur,useId:Ur,unstable_isNewReconciler:!1},Hy={readContext:Xo,useCallback:function(o,s){return es().memoizedState=[o,s===void 0?null:s],o},useContext:Xo,useEffect:af,useImperativeHandle:function(o,s,d){return d=d!=null?d.concat([o]):null,ic(4194308,4,jh.bind(null,s,o),d)},useLayoutEffect:function(o,s){return ic(4194308,4,o,s)},useInsertionEffect:function(o,s){return ic(4,2,o,s)},useMemo:function(o,s){var d=es();return s=s===void 0?null:s,o=o(),d.memoizedState=[o,s],o},useReducer:function(o,s,d){var m=es();return s=d!==void 0?d(s):s,m.memoizedState=m.baseState=s,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:s},m.queue=o,o=o.dispatch=Uy.bind(null,Yn,o),[m.memoizedState,o]},useRef:function(o){var s=es();return o={current:o},s.memoizedState=o},useState:oc,useDebugValue:sc,useDeferredValue:function(o){return es().memoizedState=o},useTransition:function(){var o=oc(!1),s=o[0];return o=U0.bind(null,o[1]),es().memoizedState=o,[s,o]},useMutableSource:function(){},useSyncExternalStore:function(o,s,d){var m=Yn,y=es();if(Hn){if(d===void 0)throw Error(n(407));d=d()}else{if(d=s(),Cr===null)throw Error(n(349));sa&30||Mh(m,s,d)}y.memoizedState=d;var _={value:d,getSnapshot:s};return y.queue=_,af(Cs.bind(null,m,_,o),[o]),m.flags|=2048,eu(9,co.bind(null,m,_,d,s),void 0,null),d},useId:function(){var o=es(),s=Cr.identifierPrefix;if(Hn){var d=qi,m=Xi;d=(m&~(1<<32-un(m)-1)).toString(32)+d,s=":"+s+"R"+d,d=Va++,0<d&&(s+="H"+d.toString(32)),s+=":"}else d=Yt++,s=":"+s+"r"+d.toString(32)+":";return o.memoizedState=s},unstable_isNewReconciler:!1},uf={readContext:Xo,useCallback:F0,useContext:Xo,useEffect:ts,useImperativeHandle:Fh,useInsertionEffect:j0,useLayoutEffect:Es,useMemo:z0,useReducer:Nh,useRef:sf,useState:function(){return Nh(Hr)},useDebugValue:sc,useDeferredValue:function(o){var s=Qo();return B0(s,nr.memoizedState,o)},useTransition:function(){var o=Nh(Hr)[0],s=Qo().memoizedState;return[o,s]},useMutableSource:rf,useSyncExternalStore:$h,useId:zh,unstable_isNewReconciler:!1},nu={readContext:Xo,useCallback:F0,useContext:Xo,useEffect:ts,useImperativeHandle:Fh,useInsertionEffect:j0,useLayoutEffect:Es,useMemo:z0,useReducer:Zl,useRef:sf,useState:function(){return Zl(Hr)},useDebugValue:sc,useDeferredValue:function(o){var s=Qo();return nr===null?s.memoizedState=o:B0(s,nr.memoizedState,o)},useTransition:function(){var o=Zl(Hr)[0],s=Qo().memoizedState;return[o,s]},useMutableSource:rf,useSyncExternalStore:$h,useId:zh,unstable_isNewReconciler:!1};function Jo(o,s){if(o&&o.defaultProps){s=Se({},s),o=o.defaultProps;for(var d in o)s[d]===void 0&&(s[d]=o[d]);return s}return s}function cf(o,s,d,m){s=o.memoizedState,d=d(m,s),d=d==null?s:Se({},s,d),o.memoizedState=d,o.lanes===0&&(o.updateQueue.baseState=d)}var df={isMounted:function(o){return(o=o._reactInternals)?oe(o)===o:!1},enqueueSetState:function(o,s,d){o=o._reactInternals;var m=no(),y=fa(o),_=ws(m,y);_.payload=s,d!=null&&(_.callback=d),s=Yo(o,_,y),s!==null&&(Ei(s,o,y,m),Zd(s,o,y))},enqueueReplaceState:function(o,s,d){o=o._reactInternals;var m=no(),y=fa(o),_=ws(m,y);_.tag=1,_.payload=s,d!=null&&(_.callback=d),s=Yo(o,_,y),s!==null&&(Ei(s,o,y,m),Zd(s,o,y))},enqueueForceUpdate:function(o,s){o=o._reactInternals;var d=no(),m=fa(o),y=ws(d,m);y.tag=2,s!=null&&(y.callback=s),s=Yo(o,y,m),s!==null&&(Ei(s,o,m,d),Zd(s,o,m))}};function Uh(o,s,d,m,y,_,$){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(m,_,$):s.prototype&&s.prototype.isPureReactComponent?!ct(d,m)||!ct(y,_):!0}function qa(o,s,d){var m=!1,y=ta,_=s.contextType;return typeof _=="object"&&_!==null?_=Xo(_):(y=lo(s)?Qr:Fr.current,m=s.contextTypes,_=(m=m!=null)?Vl(o,y):ta),s=new s(d,_),o.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=df,o.stateNode=s,s._reactInternals=o,m&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=y,o.__reactInternalMemoizedMaskedChildContext=_),s}function ru(o,s,d,m){o=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(d,m),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(d,m),s.state!==o&&df.enqueueReplaceState(s,s.state,null)}function Hh(o,s,d,m){var y=o.stateNode;y.props=d,y.state=o.memoizedState,y.refs={},Jd(o);var _=s.contextType;typeof _=="object"&&_!==null?y.context=Xo(_):(_=lo(s)?Qr:Fr.current,y.context=Vl(o,_)),y.state=o.memoizedState,_=s.getDerivedStateFromProps,typeof _=="function"&&(cf(o,s,_,d),y.state=o.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(s=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),s!==y.state&&df.enqueueReplaceState(y,y.state,null),Yl(o,d,y,m),y.state=o.memoizedState),typeof y.componentDidMount=="function"&&(o.flags|=4194308)}function Ya(o,s){try{var d="",m=s;do d+=$e(m),m=m.return;while(m);var y=d}catch(_){y=`
7
+ Error generating stack: `+_.message+`
8
+ `+_.stack}return{value:o,source:s,stack:y,digest:null}}function ff(o,s,d){return{value:o,source:null,stack:d??null,digest:s??null}}function ou(o,s){try{console.error(s.value)}catch(d){setTimeout(function(){throw d})}}var W0=typeof WeakMap=="function"?WeakMap:Map;function ac(o,s,d){d=ws(-1,d),d.tag=3,d.payload={element:null};var m=s.value;return d.callback=function(){_f||(_f=!0,im=m),ou(o,s)},d}function pf(o,s,d){d=ws(-1,d),d.tag=3;var m=o.type.getDerivedStateFromError;if(typeof m=="function"){var y=s.value;d.payload=function(){return m(y)},d.callback=function(){ou(o,s)}}var _=o.stateNode;return _!==null&&typeof _.componentDidCatch=="function"&&(d.callback=function(){ou(o,s),typeof m!="function"&&(ca===null?ca=new Set([this]):ca.add(this));var $=s.stack;this.componentDidCatch(s.value,{componentStack:$!==null?$:""})}),d}function lc(o,s,d){var m=o.pingCache;if(m===null){m=o.pingCache=new W0;var y=new Set;m.set(s,y)}else y=m.get(s),y===void 0&&(y=new Set,m.set(s,y));y.has(d)||(y.add(d),o=Qy.bind(null,o,s,d),s.then(o,o))}function G0(o){do{var s;if((s=o.tag===13)&&(s=o.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return o;o=o.return}while(o!==null);return null}function Wh(o,s,d,m,y){return o.mode&1?(o.flags|=65536,o.lanes=y,o):(o===s?o.flags|=65536:(o.flags|=128,d.flags|=131072,d.flags&=-52805,d.tag===1&&(d.alternate===null?d.tag=17:(s=ws(-1,1),s.tag=2,Yo(d,s,1))),d.lanes|=1),o)}var hf=M.ReactCurrentOwner,Zr=!1;function Or(o,s,d,m){s.child=o===null?qd(s,null,d,m):er(s,o.child,d,m)}function K0(o,s,d,m,y){d=d.render;var _=s.ref;return oa(s,y),m=Xa(o,s,d,m,_,y),d=nf(),o!==null&&!Zr?(s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~y,Si(o,s,y)):(Hn&&d&&Yu(s),s.flags|=1,Or(o,s,m,y),s.child)}function Gh(o,s,d,m,y){if(o===null){var _=d.type;return typeof _=="function"&&!Of(_)&&_.defaultProps===void 0&&d.compare===null&&d.defaultProps===void 0?(s.tag=15,s.type=_,ns(o,s,_,m,y)):(o=Pf(d.type,null,m,s,s.mode,y),o.ref=s.ref,o.return=s,s.child=o)}if(_=o.child,!(o.lanes&y)){var $=_.memoizedProps;if(d=d.compare,d=d!==null?d:ct,d($,m)&&o.ref===s.ref)return Si(o,s,y)}return s.flags|=1,o=Ri(_,m),o.ref=s.ref,o.return=s,s.child=o}function ns(o,s,d,m,y){if(o!==null){var _=o.memoizedProps;if(ct(_,m)&&o.ref===s.ref)if(Zr=!1,s.pendingProps=m=_,(o.lanes&y)!==0)o.flags&131072&&(Zr=!0);else return s.lanes=o.lanes,Si(o,s,y)}return Xh(o,s,d,m,y)}function Kh(o,s,d){var m=s.pendingProps,y=m.children,_=o!==null?o.memoizedState:null;if(m.mode==="hidden")if(!(s.mode&1))s.memoizedState={baseLanes:0,cachePool:null,transitions:null},zn(lu,Po),Po|=d;else{if(!(d&1073741824))return o=_!==null?_.baseLanes|d:d,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:o,cachePool:null,transitions:null},s.updateQueue=null,zn(lu,Po),Po|=o,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},m=_!==null?_.baseLanes:d,zn(lu,Po),Po|=m}else _!==null?(m=_.baseLanes|d,s.memoizedState=null):m=d,zn(lu,Po),Po|=m;return Or(o,s,y,d),s.child}function Vh(o,s){var d=s.ref;(o===null&&d!==null||o!==null&&o.ref!==d)&&(s.flags|=512,s.flags|=2097152)}function Xh(o,s,d,m,y){var _=lo(d)?Qr:Fr.current;return _=Vl(s,_),oa(s,y),d=Xa(o,s,d,m,_,y),m=nf(),o!==null&&!Zr?(s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~y,Si(o,s,y)):(Hn&&m&&Yu(s),s.flags|=1,Or(o,s,d,y),s.child)}function qh(o,s,d,m,y){if(lo(d)){var _=!0;Go(s)}else _=!1;if(oa(s,y),s.stateNode===null)gf(o,s),qa(s,d,m),Hh(s,d,m,y),m=!0;else if(o===null){var $=s.stateNode,B=s.memoizedProps;$.props=B;var Y=$.context,_e=d.contextType;typeof _e=="object"&&_e!==null?_e=Xo(_e):(_e=lo(d)?Qr:Fr.current,_e=Vl(s,_e));var ze=d.getDerivedStateFromProps,Ge=typeof ze=="function"||typeof $.getSnapshotBeforeUpdate=="function";Ge||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(B!==m||Y!==_e)&&ru(s,$,m,_e),qo=!1;var Le=s.memoizedState;$.state=Le,Yl(s,m,$,y),Y=s.memoizedState,B!==m||Le!==Y||ao.current||qo?(typeof ze=="function"&&(cf(s,d,ze,m),Y=s.memoizedState),(B=qo||Uh(s,d,B,m,Le,Y,_e))?(Ge||typeof $.UNSAFE_componentWillMount!="function"&&typeof $.componentWillMount!="function"||(typeof $.componentWillMount=="function"&&$.componentWillMount(),typeof $.UNSAFE_componentWillMount=="function"&&$.UNSAFE_componentWillMount()),typeof $.componentDidMount=="function"&&(s.flags|=4194308)):(typeof $.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=m,s.memoizedState=Y),$.props=m,$.state=Y,$.context=_e,m=B):(typeof $.componentDidMount=="function"&&(s.flags|=4194308),m=!1)}else{$=s.stateNode,M0(o,s),B=s.memoizedProps,_e=s.type===s.elementType?B:Jo(s.type,B),$.props=_e,Ge=s.pendingProps,Le=$.context,Y=d.contextType,typeof Y=="object"&&Y!==null?Y=Xo(Y):(Y=lo(d)?Qr:Fr.current,Y=Vl(s,Y));var dt=d.getDerivedStateFromProps;(ze=typeof dt=="function"||typeof $.getSnapshotBeforeUpdate=="function")||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(B!==Ge||Le!==Y)&&ru(s,$,m,Y),qo=!1,Le=s.memoizedState,$.state=Le,Yl(s,m,$,y);var gt=s.memoizedState;B!==Ge||Le!==gt||ao.current||qo?(typeof dt=="function"&&(cf(s,d,dt,m),gt=s.memoizedState),(_e=qo||Uh(s,d,_e,m,Le,gt,Y)||!1)?(ze||typeof $.UNSAFE_componentWillUpdate!="function"&&typeof $.componentWillUpdate!="function"||(typeof $.componentWillUpdate=="function"&&$.componentWillUpdate(m,gt,Y),typeof $.UNSAFE_componentWillUpdate=="function"&&$.UNSAFE_componentWillUpdate(m,gt,Y)),typeof $.componentDidUpdate=="function"&&(s.flags|=4),typeof $.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof $.componentDidUpdate!="function"||B===o.memoizedProps&&Le===o.memoizedState||(s.flags|=4),typeof $.getSnapshotBeforeUpdate!="function"||B===o.memoizedProps&&Le===o.memoizedState||(s.flags|=1024),s.memoizedProps=m,s.memoizedState=gt),$.props=m,$.state=gt,$.context=Y,m=_e):(typeof $.componentDidUpdate!="function"||B===o.memoizedProps&&Le===o.memoizedState||(s.flags|=4),typeof $.getSnapshotBeforeUpdate!="function"||B===o.memoizedProps&&Le===o.memoizedState||(s.flags|=1024),m=!1)}return Yh(o,s,d,m,_,y)}function Yh(o,s,d,m,y,_){Vh(o,s);var $=(s.flags&128)!==0;if(!m&&!$)return y&&P0(s,d,!1),Si(o,s,_);m=s.stateNode,hf.current=s;var B=$&&typeof d.getDerivedStateFromError!="function"?null:m.render();return s.flags|=1,o!==null&&$?(s.child=er(s,o.child,null,_),s.child=er(s,null,B,_)):Or(o,s,B,_),s.memoizedState=m.state,y&&P0(s,d,!0),s.child}function V0(o){var s=o.stateNode;s.pendingContext?T0(o,s.pendingContext,s.pendingContext!==s.context):s.context&&T0(o,s.context,!1),Oh(o,s.containerInfo)}function rs(o,s,d,m,y){return Qi(),Ji(y),s.flags|=256,Or(o,s,d,m),s.child}var uc={dehydrated:null,treeContext:null,retryLane:0};function cc(o){return{baseLanes:o,cachePool:null,transitions:null}}function mf(o,s,d){var m=s.pendingProps,y=Kn.current,_=!1,$=(s.flags&128)!==0,B;if((B=$)||(B=o!==null&&o.memoizedState===null?!1:(y&2)!==0),B?(_=!0,s.flags&=-129):(o===null||o.memoizedState!==null)&&(y|=1),zn(Kn,y&1),o===null)return uo(s),o=s.memoizedState,o!==null&&(o=o.dehydrated,o!==null)?(s.mode&1?o.data==="$!"?s.lanes=8:s.lanes=1073741824:s.lanes=1,null):($=m.children,o=m.fallback,_?(m=s.mode,_=s.child,$={mode:"hidden",children:$},!(m&1)&&_!==null?(_.childLanes=0,_.pendingProps=$):_=If($,m,0,null),o=tl(o,m,d,null),_.return=s,o.return=s,_.sibling=o,s.child=_,s.child.memoizedState=cc(d),s.memoizedState=uc,o):iu(s,$));if(y=o.memoizedState,y!==null&&(B=y.dehydrated,B!==null))return It(o,s,$,m,B,y,d);if(_){_=m.fallback,$=s.mode,y=o.child,B=y.sibling;var Y={mode:"hidden",children:m.children};return!($&1)&&s.child!==y?(m=s.child,m.childLanes=0,m.pendingProps=Y,s.deletions=null):(m=Ri(y,Y),m.subtreeFlags=y.subtreeFlags&14680064),B!==null?_=Ri(B,_):(_=tl(_,$,d,null),_.flags|=2),_.return=s,m.return=s,m.sibling=_,s.child=m,m=_,_=s.child,$=o.child.memoizedState,$=$===null?cc(d):{baseLanes:$.baseLanes|d,cachePool:null,transitions:$.transitions},_.memoizedState=$,_.childLanes=o.childLanes&~d,s.memoizedState=uc,m}return _=o.child,o=_.sibling,m=Ri(_,{mode:"visible",children:m.children}),!(s.mode&1)&&(m.lanes=d),m.return=s,m.sibling=null,o!==null&&(d=s.deletions,d===null?(s.deletions=[o],s.flags|=16):d.push(o)),s.child=m,s.memoizedState=null,m}function iu(o,s){return s=If({mode:"visible",children:s},o.mode,0,null),s.return=o,o.child=s}function Rs(o,s,d,m){return m!==null&&Ji(m),er(s,o.child,null,d),o=iu(s,s.pendingProps.children),o.flags|=2,s.memoizedState=null,o}function It(o,s,d,m,y,_,$){if(d)return s.flags&256?(s.flags&=-257,m=ff(Error(n(422))),Rs(o,s,$,m)):s.memoizedState!==null?(s.child=o.child,s.flags|=128,null):(_=m.fallback,y=s.mode,m=If({mode:"visible",children:m.children},y,0,null),_=tl(_,y,$,null),_.flags|=2,m.return=s,_.return=s,m.sibling=_,s.child=m,s.mode&1&&er(s,o.child,null,$),s.child.memoizedState=cc($),s.memoizedState=uc,_);if(!(s.mode&1))return Rs(o,s,$,null);if(y.data==="$!"){if(m=y.nextSibling&&y.nextSibling.dataset,m)var B=m.dgst;return m=B,_=Error(n(419)),m=ff(_,m,void 0),Rs(o,s,$,m)}if(B=($&o.childLanes)!==0,Zr||B){if(m=Cr,m!==null){switch($&-$){case 4:y=2;break;case 16:y=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:y=32;break;case 536870912:y=268435456;break;default:y=0}y=y&(m.suspendedLanes|$)?0:y,y!==0&&y!==_.retryLane&&(_.retryLane=y,Ss(o,y),Ei(m,o,y,-1))}return dm(),m=ff(Error(n(421))),Rs(o,s,$,m)}return y.data==="$?"?(s.flags|=128,s.child=o.child,s=Jy.bind(null,o),y._reactRetry=s,null):(o=_.treeContext,ko=Zs(y.nextSibling),Br=s,Hn=!0,yi=null,o!==null&&(Ko[Vo++]=Xi,Ko[Vo++]=qi,Ko[Vo++]=Ba,Xi=o.id,qi=o.overflow,Ba=s),s=iu(s,m.children),s.flags|=4096,s)}function dc(o,s,d){o.lanes|=s;var m=o.alternate;m!==null&&(m.lanes|=s),Tr(o.return,s,d)}function fc(o,s,d,m,y){var _=o.memoizedState;_===null?o.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:m,tail:d,tailMode:y}:(_.isBackwards=s,_.rendering=null,_.renderingStartTime=0,_.last=m,_.tail=d,_.tailMode=y)}function aa(o,s,d){var m=s.pendingProps,y=m.revealOrder,_=m.tail;if(Or(o,s,m.children,d),m=Kn.current,m&2)m=m&1|2,s.flags|=128;else{if(o!==null&&o.flags&128)e:for(o=s.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&dc(o,d,s);else if(o.tag===19)dc(o,d,s);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}m&=1}if(zn(Kn,m),!(s.mode&1))s.memoizedState=null;else switch(y){case"forwards":for(d=s.child,y=null;d!==null;)o=d.alternate,o!==null&&Ka(o)===null&&(y=d),d=d.sibling;d=y,d===null?(y=s.child,s.child=null):(y=d.sibling,d.sibling=null),fc(s,!1,y,d,_);break;case"backwards":for(d=null,y=s.child,s.child=null;y!==null;){if(o=y.alternate,o!==null&&Ka(o)===null){s.child=y;break}o=y.sibling,y.sibling=d,d=y,y=o}fc(s,!0,d,null,_);break;case"together":fc(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function gf(o,s){!(s.mode&1)&&o!==null&&(o.alternate=null,s.alternate=null,s.flags|=2)}function Si(o,s,d){if(o!==null&&(s.dependencies=o.dependencies),ua|=s.lanes,!(d&s.childLanes))return null;if(o!==null&&s.child!==o.child)throw Error(n(153));if(s.child!==null){for(o=s.child,d=Ri(o,o.pendingProps),s.child=d,d.return=s;o.sibling!==null;)o=o.sibling,d=d.sibling=Ri(o,o.pendingProps),d.return=s;d.sibling=null}return s.child}function X0(o,s,d){switch(s.tag){case 3:V0(s),Qi();break;case 5:Ph(s);break;case 1:lo(s.type)&&Go(s);break;case 4:Oh(s,s.stateNode.containerInfo);break;case 10:var m=s.type._context,y=s.memoizedProps.value;zn(Zu,m._currentValue),m._currentValue=y;break;case 13:if(m=s.memoizedState,m!==null)return m.dehydrated!==null?(zn(Kn,Kn.current&1),s.flags|=128,null):d&s.child.childLanes?mf(o,s,d):(zn(Kn,Kn.current&1),o=Si(o,s,d),o!==null?o.sibling:null);zn(Kn,Kn.current&1);break;case 19:if(m=(d&s.childLanes)!==0,o.flags&128){if(m)return aa(o,s,d);s.flags|=128}if(y=s.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),zn(Kn,Kn.current),m)break;return null;case 22:case 23:return s.lanes=0,Kh(o,s,d)}return Si(o,s,d)}var Pr,Qh,q0,Jh;Pr=function(o,s){for(var d=s.child;d!==null;){if(d.tag===5||d.tag===6)o.appendChild(d.stateNode);else if(d.tag!==4&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===s)break;for(;d.sibling===null;){if(d.return===null||d.return===s)return;d=d.return}d.sibling.return=d.return,d=d.sibling}},Qh=function(){},q0=function(o,s,d,m){var y=o.memoizedProps;if(y!==m){o=s.stateNode,_s(Zi.current);var _=null;switch(d){case"input":y=wt(o,y),m=wt(o,m),_=[];break;case"select":y=Se({},y,{value:void 0}),m=Se({},m,{value:void 0}),_=[];break;case"textarea":y=en(o,y),m=en(o,m),_=[];break;default:typeof y.onClick!="function"&&typeof m.onClick=="function"&&(o.onclick=zd)}tt(d,m);var $;d=null;for(_e in y)if(!m.hasOwnProperty(_e)&&y.hasOwnProperty(_e)&&y[_e]!=null)if(_e==="style"){var B=y[_e];for($ in B)B.hasOwnProperty($)&&(d||(d={}),d[$]="")}else _e!=="dangerouslySetInnerHTML"&&_e!=="children"&&_e!=="suppressContentEditableWarning"&&_e!=="suppressHydrationWarning"&&_e!=="autoFocus"&&(i.hasOwnProperty(_e)?_||(_=[]):(_=_||[]).push(_e,null));for(_e in m){var Y=m[_e];if(B=y!=null?y[_e]:void 0,m.hasOwnProperty(_e)&&Y!==B&&(Y!=null||B!=null))if(_e==="style")if(B){for($ in B)!B.hasOwnProperty($)||Y&&Y.hasOwnProperty($)||(d||(d={}),d[$]="");for($ in Y)Y.hasOwnProperty($)&&B[$]!==Y[$]&&(d||(d={}),d[$]=Y[$])}else d||(_||(_=[]),_.push(_e,d)),d=Y;else _e==="dangerouslySetInnerHTML"?(Y=Y?Y.__html:void 0,B=B?B.__html:void 0,Y!=null&&B!==Y&&(_=_||[]).push(_e,Y)):_e==="children"?typeof Y!="string"&&typeof Y!="number"||(_=_||[]).push(_e,""+Y):_e!=="suppressContentEditableWarning"&&_e!=="suppressHydrationWarning"&&(i.hasOwnProperty(_e)?(Y!=null&&_e==="onScroll"&&Bn("scroll",o),_||B===Y||(_=[])):(_=_||[]).push(_e,Y))}d&&(_=_||[]).push("style",d);var _e=_;(s.updateQueue=_e)&&(s.flags|=4)}},Jh=function(o,s,d,m){d!==m&&(s.flags|=4)};function pc(o,s){if(!Hn)switch(o.tailMode){case"hidden":s=o.tail;for(var d=null;s!==null;)s.alternate!==null&&(d=s),s=s.sibling;d===null?o.tail=null:d.sibling=null;break;case"collapsed":d=o.tail;for(var m=null;d!==null;)d.alternate!==null&&(m=d),d=d.sibling;m===null?s||o.tail===null?o.tail=null:o.tail.sibling=null:m.sibling=null}}function Ir(o){var s=o.alternate!==null&&o.alternate.child===o.child,d=0,m=0;if(s)for(var y=o.child;y!==null;)d|=y.lanes|y.childLanes,m|=y.subtreeFlags&14680064,m|=y.flags&14680064,y.return=o,y=y.sibling;else for(y=o.child;y!==null;)d|=y.lanes|y.childLanes,m|=y.subtreeFlags,m|=y.flags,y.return=o,y=y.sibling;return o.subtreeFlags|=m,o.childLanes=d,s}function Wy(o,s,d){var m=s.pendingProps;switch(Ha(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ir(s),null;case 1:return lo(s.type)&&Wd(),Ir(s),null;case 3:return m=s.stateNode,ia(),Un(ao),Un(Fr),tf(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(o===null||o.child===null)&&(Qu(s)?s.flags|=4:o===null||o.memoizedState.isDehydrated&&!(s.flags&256)||(s.flags|=1024,yi!==null&&(lm(yi),yi=null))),Qh(o,s),Ir(s),null;case 5:ef(s);var y=_s(Ql.current);if(d=s.type,o!==null&&s.stateNode!=null)q0(o,s,d,m,y),o.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!m){if(s.stateNode===null)throw Error(n(166));return Ir(s),null}if(o=_s(Zi.current),Qu(s)){m=s.stateNode,d=s.type;var _=s.memoizedProps;switch(m[Ki]=s,m[ea]=_,o=(s.mode&1)!==0,d){case"dialog":Bn("cancel",m),Bn("close",m);break;case"iframe":case"object":case"embed":Bn("load",m);break;case"video":case"audio":for(y=0;y<vs.length;y++)Bn(vs[y],m);break;case"source":Bn("error",m);break;case"img":case"image":case"link":Bn("error",m),Bn("load",m);break;case"details":Bn("toggle",m);break;case"input":yt(m,_),Bn("invalid",m);break;case"select":m._wrapperState={wasMultiple:!!_.multiple},Bn("invalid",m);break;case"textarea":Kt(m,_),Bn("invalid",m)}tt(d,_),y=null;for(var $ in _)if(_.hasOwnProperty($)){var B=_[$];$==="children"?typeof B=="string"?m.textContent!==B&&(_.suppressHydrationWarning!==!0&&Ku(m.textContent,B,o),y=["children",B]):typeof B=="number"&&m.textContent!==""+B&&(_.suppressHydrationWarning!==!0&&Ku(m.textContent,B,o),y=["children",""+B]):i.hasOwnProperty($)&&B!=null&&$==="onScroll"&&Bn("scroll",m)}switch(d){case"input":it(m),bt(m,_,!0);break;case"textarea":it(m),an(m);break;case"select":case"option":break;default:typeof _.onClick=="function"&&(m.onclick=zd)}m=y,s.updateQueue=m,m!==null&&(s.flags|=4)}else{$=y.nodeType===9?y:y.ownerDocument,o==="http://www.w3.org/1999/xhtml"&&(o=Tn(d)),o==="http://www.w3.org/1999/xhtml"?d==="script"?(o=$.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild)):typeof m.is=="string"?o=$.createElement(d,{is:m.is}):(o=$.createElement(d),d==="select"&&($=o,m.multiple?$.multiple=!0:m.size&&($.size=m.size))):o=$.createElementNS(o,d),o[Ki]=s,o[ea]=m,Pr(o,s,!1,!1),s.stateNode=o;e:{switch($=At(d,m),d){case"dialog":Bn("cancel",o),Bn("close",o),y=m;break;case"iframe":case"object":case"embed":Bn("load",o),y=m;break;case"video":case"audio":for(y=0;y<vs.length;y++)Bn(vs[y],o);y=m;break;case"source":Bn("error",o),y=m;break;case"img":case"image":case"link":Bn("error",o),Bn("load",o),y=m;break;case"details":Bn("toggle",o),y=m;break;case"input":yt(o,m),y=wt(o,m),Bn("invalid",o);break;case"option":y=m;break;case"select":o._wrapperState={wasMultiple:!!m.multiple},y=Se({},m,{value:void 0}),Bn("invalid",o);break;case"textarea":Kt(o,m),y=en(o,m),Bn("invalid",o);break;default:y=m}tt(d,y),B=y;for(_ in B)if(B.hasOwnProperty(_)){var Y=B[_];_==="style"?Pt(o,Y):_==="dangerouslySetInnerHTML"?(Y=Y?Y.__html:void 0,Y!=null&&We(o,Y)):_==="children"?typeof Y=="string"?(d!=="textarea"||Y!=="")&&jt(o,Y):typeof Y=="number"&&jt(o,""+Y):_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&_!=="autoFocus"&&(i.hasOwnProperty(_)?Y!=null&&_==="onScroll"&&Bn("scroll",o):Y!=null&&D(o,_,Y,$))}switch(d){case"input":it(o),bt(o,m,!1);break;case"textarea":it(o),an(o);break;case"option":m.value!=null&&o.setAttribute("value",""+Ce(m.value));break;case"select":o.multiple=!!m.multiple,_=m.value,_!=null?Et(o,!!m.multiple,_,!1):m.defaultValue!=null&&Et(o,!!m.multiple,m.defaultValue,!0);break;default:typeof y.onClick=="function"&&(o.onclick=zd)}switch(d){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}}m&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return Ir(s),null;case 6:if(o&&s.stateNode!=null)Jh(o,s,o.memoizedProps,m);else{if(typeof m!="string"&&s.stateNode===null)throw Error(n(166));if(d=_s(Ql.current),_s(Zi.current),Qu(s)){if(m=s.stateNode,d=s.memoizedProps,m[Ki]=s,(_=m.nodeValue!==d)&&(o=Br,o!==null))switch(o.tag){case 3:Ku(m.nodeValue,d,(o.mode&1)!==0);break;case 5:o.memoizedProps.suppressHydrationWarning!==!0&&Ku(m.nodeValue,d,(o.mode&1)!==0)}_&&(s.flags|=4)}else m=(d.nodeType===9?d:d.ownerDocument).createTextNode(m),m[Ki]=s,s.stateNode=m}return Ir(s),null;case 13:if(Un(Kn),m=s.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(Hn&&ko!==null&&s.mode&1&&!(s.flags&128))Eh(),Qi(),s.flags|=98560,_=!1;else if(_=Qu(s),m!==null&&m.dehydrated!==null){if(o===null){if(!_)throw Error(n(318));if(_=s.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(n(317));_[Ki]=s}else Qi(),!(s.flags&128)&&(s.memoizedState=null),s.flags|=4;Ir(s),_=!1}else yi!==null&&(lm(yi),yi=null),_=!0;if(!_)return s.flags&65536?s:null}return s.flags&128?(s.lanes=d,s):(m=m!==null,m!==(o!==null&&o.memoizedState!==null)&&m&&(s.child.flags|=8192,s.mode&1&&(o===null||Kn.current&1?gr===0&&(gr=3):dm())),s.updateQueue!==null&&(s.flags|=4),Ir(s),null);case 4:return ia(),Qh(o,s),o===null&&Qs(s.stateNode.containerInfo),Ir(s),null;case 10:return Yd(s.type._context),Ir(s),null;case 17:return lo(s.type)&&Wd(),Ir(s),null;case 19:if(Un(Kn),_=s.memoizedState,_===null)return Ir(s),null;if(m=(s.flags&128)!==0,$=_.rendering,$===null)if(m)pc(_,!1);else{if(gr!==0||o!==null&&o.flags&128)for(o=s.child;o!==null;){if($=Ka(o),$!==null){for(s.flags|=128,pc(_,!1),m=$.updateQueue,m!==null&&(s.updateQueue=m,s.flags|=4),s.subtreeFlags=0,m=d,d=s.child;d!==null;)_=d,o=m,_.flags&=14680066,$=_.alternate,$===null?(_.childLanes=0,_.lanes=o,_.child=null,_.subtreeFlags=0,_.memoizedProps=null,_.memoizedState=null,_.updateQueue=null,_.dependencies=null,_.stateNode=null):(_.childLanes=$.childLanes,_.lanes=$.lanes,_.child=$.child,_.subtreeFlags=0,_.deletions=null,_.memoizedProps=$.memoizedProps,_.memoizedState=$.memoizedState,_.updateQueue=$.updateQueue,_.type=$.type,o=$.dependencies,_.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),d=d.sibling;return zn(Kn,Kn.current&1|2),s.child}o=o.sibling}_.tail!==null&&wn()>Qa&&(s.flags|=128,m=!0,pc(_,!1),s.lanes=4194304)}else{if(!m)if(o=Ka($),o!==null){if(s.flags|=128,m=!0,d=o.updateQueue,d!==null&&(s.updateQueue=d,s.flags|=4),pc(_,!0),_.tail===null&&_.tailMode==="hidden"&&!$.alternate&&!Hn)return Ir(s),null}else 2*wn()-_.renderingStartTime>Qa&&d!==1073741824&&(s.flags|=128,m=!0,pc(_,!1),s.lanes=4194304);_.isBackwards?($.sibling=s.child,s.child=$):(d=_.last,d!==null?d.sibling=$:s.child=$,_.last=$)}return _.tail!==null?(s=_.tail,_.rendering=s,_.tail=s.sibling,_.renderingStartTime=wn(),s.sibling=null,d=Kn.current,zn(Kn,m?d&1|2:d&1),s):(Ir(s),null);case 22:case 23:return cm(),m=s.memoizedState!==null,o!==null&&o.memoizedState!==null!==m&&(s.flags|=8192),m&&s.mode&1?Po&1073741824&&(Ir(s),s.subtreeFlags&6&&(s.flags|=8192)):Ir(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function Gy(o,s){switch(Ha(s),s.tag){case 1:return lo(s.type)&&Wd(),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return ia(),Un(ao),Un(Fr),tf(),o=s.flags,o&65536&&!(o&128)?(s.flags=o&-65537|128,s):null;case 5:return ef(s),null;case 13:if(Un(Kn),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(n(340));Qi()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return Un(Kn),null;case 4:return ia(),null;case 10:return Yd(s.type._context),null;case 22:case 23:return cm(),null;case 24:return null;default:return null}}var vf=!1,Vn=!1,eo=typeof WeakSet=="function"?WeakSet:Set,ht=null;function su(o,s){var d=o.ref;if(d!==null)if(typeof d=="function")try{d(null)}catch(m){Qn(o,s,m)}else d.current=null}function hc(o,s,d){try{d()}catch(m){Qn(o,s,m)}}var Y0=!1;function Ky(o,s){if(Vu=wd,o=Nn(),zu(o)){if("selectionStart"in o)var d={start:o.selectionStart,end:o.selectionEnd};else e:{d=(d=o.ownerDocument)&&d.defaultView||window;var m=d.getSelection&&d.getSelection();if(m&&m.rangeCount!==0){d=m.anchorNode;var y=m.anchorOffset,_=m.focusNode;m=m.focusOffset;try{d.nodeType,_.nodeType}catch{d=null;break e}var $=0,B=-1,Y=-1,_e=0,ze=0,Ge=o,Le=null;t:for(;;){for(var dt;Ge!==d||y!==0&&Ge.nodeType!==3||(B=$+y),Ge!==_||m!==0&&Ge.nodeType!==3||(Y=$+m),Ge.nodeType===3&&($+=Ge.nodeValue.length),(dt=Ge.firstChild)!==null;)Le=Ge,Ge=dt;for(;;){if(Ge===o)break t;if(Le===d&&++_e===y&&(B=$),Le===_&&++ze===m&&(Y=$),(dt=Ge.nextSibling)!==null)break;Ge=Le,Le=Ge.parentNode}Ge=dt}d=B===-1||Y===-1?null:{start:B,end:Y}}else d=null}d=d||{start:0,end:0}}else d=null;for(Fa={focusedElem:o,selectionRange:d},wd=!1,ht=s;ht!==null;)if(s=ht,o=s.child,(s.subtreeFlags&1028)!==0&&o!==null)o.return=s,ht=o;else for(;ht!==null;){s=ht;try{var gt=s.alternate;if(s.flags&1024)switch(s.tag){case 0:case 11:case 15:break;case 1:if(gt!==null){var xt=gt.memoizedProps,rr=gt.memoizedState,de=s.stateNode,te=de.getSnapshotBeforeUpdate(s.elementType===s.type?xt:Jo(s.type,xt),rr);de.__reactInternalSnapshotBeforeUpdate=te}break;case 3:var me=s.stateNode.containerInfo;me.nodeType===1?me.textContent="":me.nodeType===9&&me.documentElement&&me.removeChild(me.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Xe){Qn(s,s.return,Xe)}if(o=s.sibling,o!==null){o.return=s.return,ht=o;break}ht=s.return}return gt=Y0,Y0=!1,gt}function ks(o,s,d){var m=s.updateQueue;if(m=m!==null?m.lastEffect:null,m!==null){var y=m=m.next;do{if((y.tag&o)===o){var _=y.destroy;y.destroy=void 0,_!==void 0&&hc(s,d,_)}y=y.next}while(y!==m)}}function mc(o,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var d=s=s.next;do{if((d.tag&o)===o){var m=d.create;d.destroy=m()}d=d.next}while(d!==s)}}function bf(o){var s=o.ref;if(s!==null){var d=o.stateNode;switch(o.tag){case 5:o=d;break;default:o=d}typeof s=="function"?s(o):s.current=o}}function Q0(o){var s=o.alternate;s!==null&&(o.alternate=null,Q0(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&(delete s[Ki],delete s[ea],delete s[Ud],delete s[j],delete s[Gl])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function J0(o){return o.tag===5||o.tag===3||o.tag===4}function Z0(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||J0(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Zh(o,s,d){var m=o.tag;if(m===5||m===6)o=o.stateNode,s?d.nodeType===8?d.parentNode.insertBefore(o,s):d.insertBefore(o,s):(d.nodeType===8?(s=d.parentNode,s.insertBefore(o,d)):(s=d,s.appendChild(o)),d=d._reactRootContainer,d!=null||s.onclick!==null||(s.onclick=zd));else if(m!==4&&(o=o.child,o!==null))for(Zh(o,s,d),o=o.sibling;o!==null;)Zh(o,s,d),o=o.sibling}function yf(o,s,d){var m=o.tag;if(m===5||m===6)o=o.stateNode,s?d.insertBefore(o,s):d.appendChild(o);else if(m!==4&&(o=o.child,o!==null))for(yf(o,s,d),o=o.sibling;o!==null;)yf(o,s,d),o=o.sibling}var _r=null,wi=!1;function os(o,s,d){for(d=d.child;d!==null;)em(o,s,d),d=d.sibling}function em(o,s,d){if(mn&&typeof mn.onCommitFiberUnmount=="function")try{mn.onCommitFiberUnmount(zt,d)}catch{}switch(d.tag){case 5:Vn||su(d,s);case 6:var m=_r,y=wi;_r=null,os(o,s,d),_r=m,wi=y,_r!==null&&(wi?(o=_r,d=d.stateNode,o.nodeType===8?o.parentNode.removeChild(d):o.removeChild(d)):_r.removeChild(d.stateNode));break;case 18:_r!==null&&(wi?(o=_r,d=d.stateNode,o.nodeType===8?wh(o.parentNode,d):o.nodeType===1&&wh(o,d),En(o)):wh(_r,d.stateNode));break;case 4:m=_r,y=wi,_r=d.stateNode.containerInfo,wi=!0,os(o,s,d),_r=m,wi=y;break;case 0:case 11:case 14:case 15:if(!Vn&&(m=d.updateQueue,m!==null&&(m=m.lastEffect,m!==null))){y=m=m.next;do{var _=y,$=_.destroy;_=_.tag,$!==void 0&&(_&2||_&4)&&hc(d,s,$),y=y.next}while(y!==m)}os(o,s,d);break;case 1:if(!Vn&&(su(d,s),m=d.stateNode,typeof m.componentWillUnmount=="function"))try{m.props=d.memoizedProps,m.state=d.memoizedState,m.componentWillUnmount()}catch(B){Qn(d,s,B)}os(o,s,d);break;case 21:os(o,s,d);break;case 22:d.mode&1?(Vn=(m=Vn)||d.memoizedState!==null,os(o,s,d),Vn=m):os(o,s,d);break;default:os(o,s,d)}}function au(o){var s=o.updateQueue;if(s!==null){o.updateQueue=null;var d=o.stateNode;d===null&&(d=o.stateNode=new eo),s.forEach(function(m){var y=Zy.bind(null,o,m);d.has(m)||(d.add(m),m.then(y,y))})}}function Oo(o,s){var d=s.deletions;if(d!==null)for(var m=0;m<d.length;m++){var y=d[m];try{var _=o,$=s,B=$;e:for(;B!==null;){switch(B.tag){case 5:_r=B.stateNode,wi=!1;break e;case 3:_r=B.stateNode.containerInfo,wi=!0;break e;case 4:_r=B.stateNode.containerInfo,wi=!0;break e}B=B.return}if(_r===null)throw Error(n(160));em(_,$,y),_r=null,wi=!1;var Y=y.alternate;Y!==null&&(Y.return=null),y.return=null}catch(_e){Qn(y,s,_e)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)tm(s,o),s=s.sibling}function tm(o,s){var d=o.alternate,m=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:if(Oo(s,o),_i(o),m&4){try{ks(3,o,o.return),mc(3,o)}catch(xt){Qn(o,o.return,xt)}try{ks(5,o,o.return)}catch(xt){Qn(o,o.return,xt)}}break;case 1:Oo(s,o),_i(o),m&512&&d!==null&&su(d,d.return);break;case 5:if(Oo(s,o),_i(o),m&512&&d!==null&&su(d,d.return),o.flags&32){var y=o.stateNode;try{jt(y,"")}catch(xt){Qn(o,o.return,xt)}}if(m&4&&(y=o.stateNode,y!=null)){var _=o.memoizedProps,$=d!==null?d.memoizedProps:_,B=o.type,Y=o.updateQueue;if(o.updateQueue=null,Y!==null)try{B==="input"&&_.type==="radio"&&_.name!=null&&at(y,_),At(B,$);var _e=At(B,_);for($=0;$<Y.length;$+=2){var ze=Y[$],Ge=Y[$+1];ze==="style"?Pt(y,Ge):ze==="dangerouslySetInnerHTML"?We(y,Ge):ze==="children"?jt(y,Ge):D(y,ze,Ge,_e)}switch(B){case"input":Wt(y,_);break;case"textarea":Lt(y,_);break;case"select":var Le=y._wrapperState.wasMultiple;y._wrapperState.wasMultiple=!!_.multiple;var dt=_.value;dt!=null?Et(y,!!_.multiple,dt,!1):Le!==!!_.multiple&&(_.defaultValue!=null?Et(y,!!_.multiple,_.defaultValue,!0):Et(y,!!_.multiple,_.multiple?[]:"",!1))}y[ea]=_}catch(xt){Qn(o,o.return,xt)}}break;case 6:if(Oo(s,o),_i(o),m&4){if(o.stateNode===null)throw Error(n(162));y=o.stateNode,_=o.memoizedProps;try{y.nodeValue=_}catch(xt){Qn(o,o.return,xt)}}break;case 3:if(Oo(s,o),_i(o),m&4&&d!==null&&d.memoizedState.isDehydrated)try{En(s.containerInfo)}catch(xt){Qn(o,o.return,xt)}break;case 4:Oo(s,o),_i(o);break;case 13:Oo(s,o),_i(o),y=o.child,y.flags&8192&&(_=y.memoizedState!==null,y.stateNode.isHidden=_,!_||y.alternate!==null&&y.alternate.memoizedState!==null||(om=wn())),m&4&&au(o);break;case 22:if(ze=d!==null&&d.memoizedState!==null,o.mode&1?(Vn=(_e=Vn)||ze,Oo(s,o),Vn=_e):Oo(s,o),_i(o),m&8192){if(_e=o.memoizedState!==null,(o.stateNode.isHidden=_e)&&!ze&&o.mode&1)for(ht=o,ze=o.child;ze!==null;){for(Ge=ht=ze;ht!==null;){switch(Le=ht,dt=Le.child,Le.tag){case 0:case 11:case 14:case 15:ks(4,Le,Le.return);break;case 1:su(Le,Le.return);var gt=Le.stateNode;if(typeof gt.componentWillUnmount=="function"){m=Le,d=Le.return;try{s=m,gt.props=s.memoizedProps,gt.state=s.memoizedState,gt.componentWillUnmount()}catch(xt){Qn(m,d,xt)}}break;case 5:su(Le,Le.return);break;case 22:if(Le.memoizedState!==null){la(Ge);continue}}dt!==null?(dt.return=Le,ht=dt):la(Ge)}ze=ze.sibling}e:for(ze=null,Ge=o;;){if(Ge.tag===5){if(ze===null){ze=Ge;try{y=Ge.stateNode,_e?(_=y.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none"):(B=Ge.stateNode,Y=Ge.memoizedProps.style,$=Y!=null&&Y.hasOwnProperty("display")?Y.display:null,B.style.display=et("display",$))}catch(xt){Qn(o,o.return,xt)}}}else if(Ge.tag===6){if(ze===null)try{Ge.stateNode.nodeValue=_e?"":Ge.memoizedProps}catch(xt){Qn(o,o.return,xt)}}else if((Ge.tag!==22&&Ge.tag!==23||Ge.memoizedState===null||Ge===o)&&Ge.child!==null){Ge.child.return=Ge,Ge=Ge.child;continue}if(Ge===o)break e;for(;Ge.sibling===null;){if(Ge.return===null||Ge.return===o)break e;ze===Ge&&(ze=null),Ge=Ge.return}ze===Ge&&(ze=null),Ge.sibling.return=Ge.return,Ge=Ge.sibling}}break;case 19:Oo(s,o),_i(o),m&4&&au(o);break;case 21:break;default:Oo(s,o),_i(o)}}function _i(o){var s=o.flags;if(s&2){try{e:{for(var d=o.return;d!==null;){if(J0(d)){var m=d;break e}d=d.return}throw Error(n(160))}switch(m.tag){case 5:var y=m.stateNode;m.flags&32&&(jt(y,""),m.flags&=-33);var _=Z0(o);yf(o,_,y);break;case 3:case 4:var $=m.stateNode.containerInfo,B=Z0(o);Zh(o,B,$);break;default:throw Error(n(161))}}catch(Y){Qn(o,o.return,Y)}o.flags&=-3}s&4096&&(o.flags&=-4097)}function xf(o,s,d){ht=o,nm(o)}function nm(o,s,d){for(var m=(o.mode&1)!==0;ht!==null;){var y=ht,_=y.child;if(y.tag===22&&m){var $=y.memoizedState!==null||vf;if(!$){var B=y.alternate,Y=B!==null&&B.memoizedState!==null||Vn;B=vf;var _e=Vn;if(vf=$,(Vn=Y)&&!_e)for(ht=y;ht!==null;)$=ht,Y=$.child,$.tag===22&&$.memoizedState!==null?ev(y):Y!==null?(Y.return=$,ht=Y):ev(y);for(;_!==null;)ht=_,nm(_),_=_.sibling;ht=y,vf=B,Vn=_e}Ci(o)}else y.subtreeFlags&8772&&_!==null?(_.return=y,ht=_):Ci(o)}}function Ci(o){for(;ht!==null;){var s=ht;if(s.flags&8772){var d=s.alternate;try{if(s.flags&8772)switch(s.tag){case 0:case 11:case 15:Vn||mc(5,s);break;case 1:var m=s.stateNode;if(s.flags&4&&!Vn)if(d===null)m.componentDidMount();else{var y=s.elementType===s.type?d.memoizedProps:Jo(s.type,d.memoizedProps);m.componentDidUpdate(y,d.memoizedState,m.__reactInternalSnapshotBeforeUpdate)}var _=s.updateQueue;_!==null&&Th(s,_,m);break;case 3:var $=s.updateQueue;if($!==null){if(d=null,s.child!==null)switch(s.child.tag){case 5:d=s.child.stateNode;break;case 1:d=s.child.stateNode}Th(s,$,d)}break;case 5:var B=s.stateNode;if(d===null&&s.flags&4){d=B;var Y=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":Y.autoFocus&&d.focus();break;case"img":Y.src&&(d.src=Y.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var _e=s.alternate;if(_e!==null){var ze=_e.memoizedState;if(ze!==null){var Ge=ze.dehydrated;Ge!==null&&En(Ge)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Vn||s.flags&512&&bf(s)}catch(Le){Qn(s,s.return,Le)}}if(s===o){ht=null;break}if(d=s.sibling,d!==null){d.return=s.return,ht=d;break}ht=s.return}}function la(o){for(;ht!==null;){var s=ht;if(s===o){ht=null;break}var d=s.sibling;if(d!==null){d.return=s.return,ht=d;break}ht=s.return}}function ev(o){for(;ht!==null;){var s=ht;try{switch(s.tag){case 0:case 11:case 15:var d=s.return;try{mc(4,s)}catch(Y){Qn(s,d,Y)}break;case 1:var m=s.stateNode;if(typeof m.componentDidMount=="function"){var y=s.return;try{m.componentDidMount()}catch(Y){Qn(s,y,Y)}}var _=s.return;try{bf(s)}catch(Y){Qn(s,_,Y)}break;case 5:var $=s.return;try{bf(s)}catch(Y){Qn(s,$,Y)}}}catch(Y){Qn(s,s.return,Y)}if(s===o){ht=null;break}var B=s.sibling;if(B!==null){B.return=s.return,ht=B;break}ht=s.return}}var tv=Math.ceil,Sf=M.ReactCurrentDispatcher,rm=M.ReactCurrentOwner,Zo=M.ReactCurrentBatchConfig,gn=0,Cr=null,cr=null,Ar=0,Po=0,lu=so(0),gr=0,gc=null,ua=0,vc=0,wf=0,bc=null,fo=null,om=0,Qa=1/0,Ts=null,_f=!1,im=null,ca=null,Cf=!1,da=null,to=0,yc=0,sm=null,Ef=-1,xc=0;function no(){return gn&6?wn():Ef!==-1?Ef:Ef=wn()}function fa(o){return o.mode&1?gn&2&&Ar!==0?Ar&-Ar:N0.transition!==null?(xc===0&&(xc=eh()),xc):(o=_n,o!==0||(o=window.event,o=o===void 0?16:s0(o.type)),o):1}function Ei(o,s,d,m){if(50<yc)throw yc=0,sm=null,Error(n(185));Nu(o,d,m),(!(gn&2)||o!==Cr)&&(o===Cr&&(!(gn&2)&&(vc|=d),gr===4&&pa(o,Ar)),po(o,m),d===1&&gn===0&&!(s.mode&1)&&(Qa=wn()+500,Gd&&na()))}function po(o,s){var d=o.callbackNode;_y(o,s);var m=Aa(o,o===Cr?Ar:0);if(m===0)d!==null&&ln(d),o.callbackNode=null,o.callbackPriority=0;else if(s=m&-m,o.callbackPriority!==s){if(d!=null&&ln(d),s===1)o.tag===0?za(nv.bind(null,o)):I0(nv.bind(null,o)),Bd(function(){!(gn&6)&&na()}),d=null;else{switch(Da(m)){case 1:d=Ui;break;case 4:d=_o;break;case 16:d=Hi;break;case 536870912:d=Hs;break;default:d=Hi}d=uv(d,Rf.bind(null,o))}o.callbackPriority=s,o.callbackNode=d}}function Rf(o,s){if(Ef=-1,xc=0,gn&6)throw Error(n(327));var d=o.callbackNode;if(uu()&&o.callbackNode!==d)return null;var m=Aa(o,o===Cr?Ar:0);if(m===0)return null;if(m&30||m&o.expiredLanes||s)s=kf(o,m);else{s=m;var y=gn;gn|=2;var _=ov();(Cr!==o||Ar!==s)&&(Ts=null,Qa=wn()+500,Za(o,s));do try{qy();break}catch(B){rv(o,B)}while(!0);xs(),Sf.current=_,gn=y,cr!==null?s=0:(Cr=null,Ar=0,s=gr)}if(s!==0){if(s===2&&(y=bd(o),y!==0&&(m=y,s=am(o,y))),s===1)throw d=gc,Za(o,0),pa(o,m),po(o,wn()),d;if(s===6)pa(o,m);else{if(y=o.current.alternate,!(m&30)&&!Vy(y)&&(s=kf(o,m),s===2&&(_=bd(o),_!==0&&(m=_,s=am(o,_))),s===1))throw d=gc,Za(o,0),pa(o,m),po(o,wn()),d;switch(o.finishedWork=y,o.finishedLanes=m,s){case 0:case 1:throw Error(n(345));case 2:el(o,fo,Ts);break;case 3:if(pa(o,m),(m&130023424)===m&&(s=om+500-wn(),10<s)){if(Aa(o,0)!==0)break;if(y=o.suspendedLanes,(y&m)!==m){no(),o.pingedLanes|=o.suspendedLanes&y;break}o.timeoutHandle=Js(el.bind(null,o,fo,Ts),s);break}el(o,fo,Ts);break;case 4:if(pa(o,m),(m&4194240)===m)break;for(s=o.eventTimes,y=-1;0<m;){var $=31-un(m);_=1<<$,$=s[$],$>y&&(y=$),m&=~_}if(m=y,m=wn()-m,m=(120>m?120:480>m?480:1080>m?1080:1920>m?1920:3e3>m?3e3:4320>m?4320:1960*tv(m/1960))-m,10<m){o.timeoutHandle=Js(el.bind(null,o,fo,Ts),m);break}el(o,fo,Ts);break;case 5:el(o,fo,Ts);break;default:throw Error(n(329))}}}return po(o,wn()),o.callbackNode===d?Rf.bind(null,o):null}function am(o,s){var d=bc;return o.current.memoizedState.isDehydrated&&(Za(o,s).flags|=256),o=kf(o,s),o!==2&&(s=fo,fo=d,s!==null&&lm(s)),o}function lm(o){fo===null?fo=o:fo.push.apply(fo,o)}function Vy(o){for(var s=o;;){if(s.flags&16384){var d=s.updateQueue;if(d!==null&&(d=d.stores,d!==null))for(var m=0;m<d.length;m++){var y=d[m],_=y.getSnapshot;y=y.value;try{if(!we(_(),y))return!1}catch{return!1}}}if(d=s.child,s.subtreeFlags&16384&&d!==null)d.return=s,s=d;else{if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function pa(o,s){for(s&=~wf,s&=~vc,o.suspendedLanes|=s,o.pingedLanes&=~s,o=o.expirationTimes;0<s;){var d=31-un(s),m=1<<d;o[d]=-1,s&=~m}}function nv(o){if(gn&6)throw Error(n(327));uu();var s=Aa(o,0);if(!(s&1))return po(o,wn()),null;var d=kf(o,s);if(o.tag!==0&&d===2){var m=bd(o);m!==0&&(s=m,d=am(o,m))}if(d===1)throw d=gc,Za(o,0),pa(o,s),po(o,wn()),d;if(d===6)throw Error(n(345));return o.finishedWork=o.current.alternate,o.finishedLanes=s,el(o,fo,Ts),po(o,wn()),null}function um(o,s){var d=gn;gn|=1;try{return o(s)}finally{gn=d,gn===0&&(Qa=wn()+500,Gd&&na())}}function Ja(o){da!==null&&da.tag===0&&!(gn&6)&&uu();var s=gn;gn|=1;var d=Zo.transition,m=_n;try{if(Zo.transition=null,_n=1,o)return o()}finally{_n=m,Zo.transition=d,gn=s,!(gn&6)&&na()}}function cm(){Po=lu.current,Un(lu)}function Za(o,s){o.finishedWork=null,o.finishedLanes=0;var d=o.timeoutHandle;if(d!==-1&&(o.timeoutHandle=-1,qu(d)),cr!==null)for(d=cr.return;d!==null;){var m=d;switch(Ha(m),m.tag){case 1:m=m.type.childContextTypes,m!=null&&Wd();break;case 3:ia(),Un(ao),Un(Fr),tf();break;case 5:ef(m);break;case 4:ia();break;case 13:Un(Kn);break;case 19:Un(Kn);break;case 10:Yd(m.type._context);break;case 22:case 23:cm()}d=d.return}if(Cr=o,cr=o=Ri(o.current,null),Ar=Po=s,gr=0,gc=null,wf=vc=ua=0,fo=bc=null,Ga!==null){for(s=0;s<Ga.length;s++)if(d=Ga[s],m=d.interleaved,m!==null){d.interleaved=null;var y=m.next,_=d.pending;if(_!==null){var $=_.next;_.next=y,m.next=$}d.pending=m}Ga=null}return o}function rv(o,s){do{var d=cr;try{if(xs(),nc.current=lf,Jl){for(var m=Yn.memoizedState;m!==null;){var y=m.queue;y!==null&&(y.pending=null),m=m.next}Jl=!1}if(sa=0,mr=nr=Yn=null,rc=!1,Va=0,rm.current=null,d===null||d.return===null){gr=1,gc=s,cr=null;break}e:{var _=o,$=d.return,B=d,Y=s;if(s=Ar,B.flags|=32768,Y!==null&&typeof Y=="object"&&typeof Y.then=="function"){var _e=Y,ze=B,Ge=ze.tag;if(!(ze.mode&1)&&(Ge===0||Ge===11||Ge===15)){var Le=ze.alternate;Le?(ze.updateQueue=Le.updateQueue,ze.memoizedState=Le.memoizedState,ze.lanes=Le.lanes):(ze.updateQueue=null,ze.memoizedState=null)}var dt=G0($);if(dt!==null){dt.flags&=-257,Wh(dt,$,B,_,s),dt.mode&1&&lc(_,_e,s),s=dt,Y=_e;var gt=s.updateQueue;if(gt===null){var xt=new Set;xt.add(Y),s.updateQueue=xt}else gt.add(Y);break e}else{if(!(s&1)){lc(_,_e,s),dm();break e}Y=Error(n(426))}}else if(Hn&&B.mode&1){var rr=G0($);if(rr!==null){!(rr.flags&65536)&&(rr.flags|=256),Wh(rr,$,B,_,s),Ji(Ya(Y,B));break e}}_=Y=Ya(Y,B),gr!==4&&(gr=2),bc===null?bc=[_]:bc.push(_),_=$;do{switch(_.tag){case 3:_.flags|=65536,s&=-s,_.lanes|=s;var de=ac(_,Y,s);L0(_,de);break e;case 1:B=Y;var te=_.type,me=_.stateNode;if(!(_.flags&128)&&(typeof te.getDerivedStateFromError=="function"||me!==null&&typeof me.componentDidCatch=="function"&&(ca===null||!ca.has(me)))){_.flags|=65536,s&=-s,_.lanes|=s;var Xe=pf(_,B,s);L0(_,Xe);break e}}_=_.return}while(_!==null)}sv(d)}catch(_t){s=_t,cr===d&&d!==null&&(cr=d=d.return);continue}break}while(!0)}function ov(){var o=Sf.current;return Sf.current=lf,o===null?lf:o}function dm(){(gr===0||gr===3||gr===2)&&(gr=4),Cr===null||!(ua&268435455)&&!(vc&268435455)||pa(Cr,Ar)}function kf(o,s){var d=gn;gn|=2;var m=ov();(Cr!==o||Ar!==s)&&(Ts=null,Za(o,s));do try{Xy();break}catch(y){rv(o,y)}while(!0);if(xs(),gn=d,Sf.current=m,cr!==null)throw Error(n(261));return Cr=null,Ar=0,gr}function Xy(){for(;cr!==null;)iv(cr)}function qy(){for(;cr!==null&&!Vr();)iv(cr)}function iv(o){var s=lv(o.alternate,o,Po);o.memoizedProps=o.pendingProps,s===null?sv(o):cr=s,rm.current=null}function sv(o){var s=o;do{var d=s.alternate;if(o=s.return,s.flags&32768){if(d=Gy(d,s),d!==null){d.flags&=32767,cr=d;return}if(o!==null)o.flags|=32768,o.subtreeFlags=0,o.deletions=null;else{gr=6,cr=null;return}}else if(d=Wy(d,s,Po),d!==null){cr=d;return}if(s=s.sibling,s!==null){cr=s;return}cr=s=o}while(s!==null);gr===0&&(gr=5)}function el(o,s,d){var m=_n,y=Zo.transition;try{Zo.transition=null,_n=1,Yy(o,s,d,m)}finally{Zo.transition=y,_n=m}return null}function Yy(o,s,d,m){do uu();while(da!==null);if(gn&6)throw Error(n(327));d=o.finishedWork;var y=o.finishedLanes;if(d===null)return null;if(o.finishedWork=null,o.finishedLanes=0,d===o.current)throw Error(n(177));o.callbackNode=null,o.callbackPriority=0;var _=d.lanes|d.childLanes;if(t0(o,_),o===Cr&&(cr=Cr=null,Ar=0),!(d.subtreeFlags&2064)&&!(d.flags&2064)||Cf||(Cf=!0,uv(Hi,function(){return uu(),null})),_=(d.flags&15990)!==0,d.subtreeFlags&15990||_){_=Zo.transition,Zo.transition=null;var $=_n;_n=1;var B=gn;gn|=4,rm.current=null,Ky(o,d),tm(d,o),zy(Fa),wd=!!Vu,Fa=Vu=null,o.current=d,xf(d),Bi(),gn=B,_n=$,Zo.transition=_}else o.current=d;if(Cf&&(Cf=!1,da=o,to=y),_=o.pendingLanes,_===0&&(ca=null),Xr(d.stateNode),po(o,wn()),s!==null)for(m=o.onRecoverableError,d=0;d<s.length;d++)y=s[d],m(y.value,{componentStack:y.stack,digest:y.digest});if(_f)throw _f=!1,o=im,im=null,o;return to&1&&o.tag!==0&&uu(),_=o.pendingLanes,_&1?o===sm?yc++:(yc=0,sm=o):yc=0,na(),null}function uu(){if(da!==null){var o=Da(to),s=Zo.transition,d=_n;try{if(Zo.transition=null,_n=16>o?16:o,da===null)var m=!1;else{if(o=da,da=null,to=0,gn&6)throw Error(n(331));var y=gn;for(gn|=4,ht=o.current;ht!==null;){var _=ht,$=_.child;if(ht.flags&16){var B=_.deletions;if(B!==null){for(var Y=0;Y<B.length;Y++){var _e=B[Y];for(ht=_e;ht!==null;){var ze=ht;switch(ze.tag){case 0:case 11:case 15:ks(8,ze,_)}var Ge=ze.child;if(Ge!==null)Ge.return=ze,ht=Ge;else for(;ht!==null;){ze=ht;var Le=ze.sibling,dt=ze.return;if(Q0(ze),ze===_e){ht=null;break}if(Le!==null){Le.return=dt,ht=Le;break}ht=dt}}}var gt=_.alternate;if(gt!==null){var xt=gt.child;if(xt!==null){gt.child=null;do{var rr=xt.sibling;xt.sibling=null,xt=rr}while(xt!==null)}}ht=_}}if(_.subtreeFlags&2064&&$!==null)$.return=_,ht=$;else e:for(;ht!==null;){if(_=ht,_.flags&2048)switch(_.tag){case 0:case 11:case 15:ks(9,_,_.return)}var de=_.sibling;if(de!==null){de.return=_.return,ht=de;break e}ht=_.return}}var te=o.current;for(ht=te;ht!==null;){$=ht;var me=$.child;if($.subtreeFlags&2064&&me!==null)me.return=$,ht=me;else e:for($=te;ht!==null;){if(B=ht,B.flags&2048)try{switch(B.tag){case 0:case 11:case 15:mc(9,B)}}catch(_t){Qn(B,B.return,_t)}if(B===$){ht=null;break e}var Xe=B.sibling;if(Xe!==null){Xe.return=B.return,ht=Xe;break e}ht=B.return}}if(gn=y,na(),mn&&typeof mn.onPostCommitFiberRoot=="function")try{mn.onPostCommitFiberRoot(zt,o)}catch{}m=!0}return m}finally{_n=d,Zo.transition=s}}return!1}function Tf(o,s,d){s=Ya(d,s),s=ac(o,s,1),o=Yo(o,s,1),s=no(),o!==null&&(Nu(o,1,s),po(o,s))}function Qn(o,s,d){if(o.tag===3)Tf(o,o,d);else for(;s!==null;){if(s.tag===3){Tf(s,o,d);break}else if(s.tag===1){var m=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(ca===null||!ca.has(m))){o=Ya(d,o),o=pf(s,o,1),s=Yo(s,o,1),o=no(),s!==null&&(Nu(s,1,o),po(s,o));break}}s=s.return}}function Qy(o,s,d){var m=o.pingCache;m!==null&&m.delete(s),s=no(),o.pingedLanes|=o.suspendedLanes&d,Cr===o&&(Ar&d)===d&&(gr===4||gr===3&&(Ar&130023424)===Ar&&500>wn()-om?Za(o,0):wf|=d),po(o,s)}function av(o,s){s===0&&(o.mode&1?(s=vd,vd<<=1,!(vd&130023424)&&(vd=4194304)):s=1);var d=no();o=Ss(o,s),o!==null&&(Nu(o,s,d),po(o,d))}function Jy(o){var s=o.memoizedState,d=0;s!==null&&(d=s.retryLane),av(o,d)}function Zy(o,s){var d=0;switch(o.tag){case 13:var m=o.stateNode,y=o.memoizedState;y!==null&&(d=y.retryLane);break;case 19:m=o.stateNode;break;default:throw Error(n(314))}m!==null&&m.delete(s),av(o,d)}var lv;lv=function(o,s,d){if(o!==null)if(o.memoizedProps!==s.pendingProps||ao.current)Zr=!0;else{if(!(o.lanes&d)&&!(s.flags&128))return Zr=!1,X0(o,s,d);Zr=!!(o.flags&131072)}else Zr=!1,Hn&&s.flags&1048576&&A0(s,Vd,s.index);switch(s.lanes=0,s.tag){case 2:var m=s.type;gf(o,s),o=s.pendingProps;var y=Vl(s,Fr.current);oa(s,d),y=Xa(null,s,m,o,y,d);var _=nf();return s.flags|=1,typeof y=="object"&&y!==null&&typeof y.render=="function"&&y.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,lo(m)?(_=!0,Go(s)):_=!1,s.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,Jd(s),y.updater=df,s.stateNode=y,y._reactInternals=s,Hh(s,m,o,d),s=Yh(null,s,m,!0,_,d)):(s.tag=0,Hn&&_&&Yu(s),Or(null,s,y,d),s=s.child),s;case 16:m=s.elementType;e:{switch(gf(o,s),o=s.pendingProps,y=m._init,m=y(m._payload),s.type=m,y=s.tag=tx(m),o=Jo(m,o),y){case 0:s=Xh(null,s,m,o,d);break e;case 1:s=qh(null,s,m,o,d);break e;case 11:s=K0(null,s,m,o,d);break e;case 14:s=Gh(null,s,m,Jo(m.type,o),d);break e}throw Error(n(306,m,""))}return s;case 0:return m=s.type,y=s.pendingProps,y=s.elementType===m?y:Jo(m,y),Xh(o,s,m,y,d);case 1:return m=s.type,y=s.pendingProps,y=s.elementType===m?y:Jo(m,y),qh(o,s,m,y,d);case 3:e:{if(V0(s),o===null)throw Error(n(387));m=s.pendingProps,_=s.memoizedState,y=_.element,M0(o,s),Yl(s,m,null,d);var $=s.memoizedState;if(m=$.element,_.isDehydrated)if(_={element:m,isDehydrated:!1,cache:$.cache,pendingSuspenseBoundaries:$.pendingSuspenseBoundaries,transitions:$.transitions},s.updateQueue.baseState=_,s.memoizedState=_,s.flags&256){y=Ya(Error(n(423)),s),s=rs(o,s,m,d,y);break e}else if(m!==y){y=Ya(Error(n(424)),s),s=rs(o,s,m,d,y);break e}else for(ko=Zs(s.stateNode.containerInfo.firstChild),Br=s,Hn=!0,yi=null,d=qd(s,null,m,d),s.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling;else{if(Qi(),m===y){s=Si(o,s,d);break e}Or(o,s,m,d)}s=s.child}return s;case 5:return Ph(s),o===null&&uo(s),m=s.type,y=s.pendingProps,_=o!==null?o.memoizedProps:null,$=y.children,Xu(m,y)?$=null:_!==null&&Xu(m,_)&&(s.flags|=32),Vh(o,s),Or(o,s,$,d),s.child;case 6:return o===null&&uo(s),null;case 13:return mf(o,s,d);case 4:return Oh(s,s.stateNode.containerInfo),m=s.pendingProps,o===null?s.child=er(s,null,m,d):Or(o,s,m,d),s.child;case 11:return m=s.type,y=s.pendingProps,y=s.elementType===m?y:Jo(m,y),K0(o,s,m,y,d);case 7:return Or(o,s,s.pendingProps,d),s.child;case 8:return Or(o,s,s.pendingProps.children,d),s.child;case 12:return Or(o,s,s.pendingProps.children,d),s.child;case 10:e:{if(m=s.type._context,y=s.pendingProps,_=s.memoizedProps,$=y.value,zn(Zu,m._currentValue),m._currentValue=$,_!==null)if(we(_.value,$)){if(_.children===y.children&&!ao.current){s=Si(o,s,d);break e}}else for(_=s.child,_!==null&&(_.return=s);_!==null;){var B=_.dependencies;if(B!==null){$=_.child;for(var Y=B.firstContext;Y!==null;){if(Y.context===m){if(_.tag===1){Y=ws(-1,d&-d),Y.tag=2;var _e=_.updateQueue;if(_e!==null){_e=_e.shared;var ze=_e.pending;ze===null?Y.next=Y:(Y.next=ze.next,ze.next=Y),_e.pending=Y}}_.lanes|=d,Y=_.alternate,Y!==null&&(Y.lanes|=d),Tr(_.return,d,s),B.lanes|=d;break}Y=Y.next}}else if(_.tag===10)$=_.type===s.type?null:_.child;else if(_.tag===18){if($=_.return,$===null)throw Error(n(341));$.lanes|=d,B=$.alternate,B!==null&&(B.lanes|=d),Tr($,d,s),$=_.sibling}else $=_.child;if($!==null)$.return=_;else for($=_;$!==null;){if($===s){$=null;break}if(_=$.sibling,_!==null){_.return=$.return,$=_;break}$=$.return}_=$}Or(o,s,y.children,d),s=s.child}return s;case 9:return y=s.type,m=s.pendingProps.children,oa(s,d),y=Xo(y),m=m(y),s.flags|=1,Or(o,s,m,d),s.child;case 14:return m=s.type,y=Jo(m,s.pendingProps),y=Jo(m.type,y),Gh(o,s,m,y,d);case 15:return ns(o,s,s.type,s.pendingProps,d);case 17:return m=s.type,y=s.pendingProps,y=s.elementType===m?y:Jo(m,y),gf(o,s),s.tag=1,lo(m)?(o=!0,Go(s)):o=!1,oa(s,d),qa(s,m,y),Hh(s,m,y,d),Yh(null,s,m,!0,o,d);case 19:return aa(o,s,d);case 22:return Kh(o,s,d)}throw Error(n(156,s.tag))};function uv(o,s){return St(o,s)}function ex(o,s,d,m){this.tag=o,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ei(o,s,d,m){return new ex(o,s,d,m)}function Of(o){return o=o.prototype,!(!o||!o.isReactComponent)}function tx(o){if(typeof o=="function")return Of(o)?1:0;if(o!=null){if(o=o.$$typeof,o===Q)return 11;if(o===ce)return 14}return 2}function Ri(o,s){var d=o.alternate;return d===null?(d=ei(o.tag,s,o.key,o.mode),d.elementType=o.elementType,d.type=o.type,d.stateNode=o.stateNode,d.alternate=o,o.alternate=d):(d.pendingProps=s,d.type=o.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=o.flags&14680064,d.childLanes=o.childLanes,d.lanes=o.lanes,d.child=o.child,d.memoizedProps=o.memoizedProps,d.memoizedState=o.memoizedState,d.updateQueue=o.updateQueue,s=o.dependencies,d.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},d.sibling=o.sibling,d.index=o.index,d.ref=o.ref,d}function Pf(o,s,d,m,y,_){var $=2;if(m=o,typeof o=="function")Of(o)&&($=1);else if(typeof o=="string")$=5;else e:switch(o){case z:return tl(d.children,y,_,s);case G:$=8,y|=8;break;case q:return o=ei(12,d,s,y|2),o.elementType=q,o.lanes=_,o;case Z:return o=ei(13,d,s,y),o.elementType=Z,o.lanes=_,o;case V:return o=ei(19,d,s,y),o.elementType=V,o.lanes=_,o;case se:return If(d,y,_,s);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case X:$=10;break e;case ne:$=9;break e;case Q:$=11;break e;case ce:$=14;break e;case ue:$=16,m=null;break e}throw Error(n(130,o==null?o:typeof o,""))}return s=ei($,d,s,y),s.elementType=o,s.type=m,s.lanes=_,s}function tl(o,s,d,m){return o=ei(7,o,m,s),o.lanes=d,o}function If(o,s,d,m){return o=ei(22,o,m,s),o.elementType=se,o.lanes=d,o.stateNode={isHidden:!1},o}function fm(o,s,d){return o=ei(6,o,null,s),o.lanes=d,o}function pm(o,s,d){return s=ei(4,o.children!==null?o.children:[],o.key,s),s.lanes=d,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}function nx(o,s,d,m,y){this.tag=s,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Du(0),this.expirationTimes=Du(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Du(0),this.identifierPrefix=m,this.onRecoverableError=y,this.mutableSourceEagerHydrationData=null}function hm(o,s,d,m,y,_,$,B,Y){return o=new nx(o,s,d,B,Y),s===1?(s=1,_===!0&&(s|=8)):s=0,_=ei(3,null,null,s),o.current=_,_.stateNode=o,_.memoizedState={element:m,isDehydrated:d,cache:null,transitions:null,pendingSuspenseBoundaries:null},Jd(_),o}function rx(o,s,d){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:A,key:m==null?null:""+m,children:o,containerInfo:s,implementation:d}}function cv(o){if(!o)return ta;o=o._reactInternals;e:{if(oe(o)!==o||o.tag!==1)throw Error(n(170));var s=o;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(lo(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(n(171))}if(o.tag===1){var d=o.type;if(lo(d))return O0(o,d,s)}return s}function dv(o,s,d,m,y,_,$,B,Y){return o=hm(d,m,!0,o,y,_,$,B,Y),o.context=cv(null),d=o.current,m=no(),y=fa(d),_=ws(m,y),_.callback=s??null,Yo(d,_,y),o.current.lanes=y,Nu(o,y,m),po(o,m),o}function Af(o,s,d,m){var y=s.current,_=no(),$=fa(y);return d=cv(d),s.context===null?s.context=d:s.pendingContext=d,s=ws(_,$),s.payload={element:o},m=m===void 0?null:m,m!==null&&(s.callback=m),o=Yo(y,s,$),o!==null&&(Ei(o,y,$,_),Zd(o,y,$)),$}function Df(o){if(o=o.current,!o.child)return null;switch(o.child.tag){case 5:return o.child.stateNode;default:return o.child.stateNode}}function fv(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var d=o.retryLane;o.retryLane=d!==0&&d<s?d:s}}function mm(o,s){fv(o,s),(o=o.alternate)&&fv(o,s)}function ox(){return null}var pv=typeof reportError=="function"?reportError:function(o){console.error(o)};function Nf(o){this._internalRoot=o}Sc.prototype.render=Nf.prototype.render=function(o){var s=this._internalRoot;if(s===null)throw Error(n(409));Af(o,s,null,null)},Sc.prototype.unmount=Nf.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var s=o.containerInfo;Ja(function(){Af(null,o,null,null)}),s[Ro]=null}};function Sc(o){this._internalRoot=o}Sc.prototype.unstable_scheduleHydration=function(o){if(o){var s=nh();o={blockedOn:null,target:o,priority:s};for(var d=0;d<Vs.length&&s!==0&&s<Vs[d].priority;d++);Vs.splice(d,0,o),d===0&&o0(o)}};function gm(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function $f(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11&&(o.nodeType!==8||o.nodeValue!==" react-mount-point-unstable "))}function hv(){}function ix(o,s,d,m,y){if(y){if(typeof m=="function"){var _=m;m=function(){var _e=Df($);_.call(_e)}}var $=dv(s,m,o,0,null,!1,!1,"",hv);return o._reactRootContainer=$,o[Ro]=$.current,Qs(o.nodeType===8?o.parentNode:o),Ja(),$}for(;y=o.lastChild;)o.removeChild(y);if(typeof m=="function"){var B=m;m=function(){var _e=Df(Y);B.call(_e)}}var Y=hm(o,0,!1,null,null,!1,!1,"",hv);return o._reactRootContainer=Y,o[Ro]=Y.current,Qs(o.nodeType===8?o.parentNode:o),Ja(function(){Af(s,Y,d,m)}),Y}function nl(o,s,d,m,y){var _=d._reactRootContainer;if(_){var $=_;if(typeof y=="function"){var B=y;y=function(){var Y=Df($);B.call(Y)}}Af(s,$,o,y)}else $=ix(d,s,o,y,m);return Df($)}th=function(o){switch(o.tag){case 3:var s=o.stateNode;if(s.current.memoizedState.isDehydrated){var d=Ol(s.pendingLanes);d!==0&&($u(s,d|1),po(s,wn()),!(gn&6)&&(Qa=wn()+500,na()))}break;case 13:Ja(function(){var m=Ss(o,1);if(m!==null){var y=no();Ei(m,o,1,y)}}),mm(o,1)}},yd=function(o){if(o.tag===13){var s=Ss(o,134217728);if(s!==null){var d=no();Ei(s,o,134217728,d)}mm(o,134217728)}},n0=function(o){if(o.tag===13){var s=fa(o),d=Ss(o,s);if(d!==null){var m=no();Ei(d,o,s,m)}mm(o,s)}},nh=function(){return _n},rh=function(o,s){var d=_n;try{return _n=o,s()}finally{_n=d}},pn=function(o,s,d){switch(s){case"input":if(Wt(o,d),s=d.name,d.type==="radio"&&s!=null){for(d=o;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<d.length;s++){var m=d[s];if(m!==o&&m.form===o.form){var y=Hd(m);if(!y)throw Error(n(90));Qe(m),Wt(m,y)}}}break;case"textarea":Lt(o,d);break;case"select":s=d.value,s!=null&&Et(o,!!d.multiple,s,!1)}},vi=um,zo=Ja;var sx={usingClientEntryPoint:!1,Events:[jr,Vt,Hd,$r,wo,um]},wc={findFiberByHostInstance:Vi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ax={bundleType:wc.bundleType,version:wc.version,rendererPackageName:wc.rendererPackageName,rendererConfig:wc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(o){return o=Je(o),o===null?null:o.stateNode},findFiberByHostInstance:wc.findFiberByHostInstance||ox,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Mf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Mf.isDisabled&&Mf.supportsFiber)try{zt=Mf.inject(ax),mn=Mf}catch{}}return Ao.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sx,Ao.createPortal=function(o,s){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!gm(s))throw Error(n(200));return rx(o,s,null,d)},Ao.createRoot=function(o,s){if(!gm(o))throw Error(n(299));var d=!1,m="",y=pv;return s!=null&&(s.unstable_strictMode===!0&&(d=!0),s.identifierPrefix!==void 0&&(m=s.identifierPrefix),s.onRecoverableError!==void 0&&(y=s.onRecoverableError)),s=hm(o,1,!1,null,null,d,!1,m,y),o[Ro]=s.current,Qs(o.nodeType===8?o.parentNode:o),new Nf(s)},Ao.findDOMNode=function(o){if(o==null)return null;if(o.nodeType===1)return o;var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(n(188)):(o=Object.keys(o).join(","),Error(n(268,o)));return o=Je(s),o=o===null?null:o.stateNode,o},Ao.flushSync=function(o){return Ja(o)},Ao.hydrate=function(o,s,d){if(!$f(s))throw Error(n(200));return nl(null,o,s,!0,d)},Ao.hydrateRoot=function(o,s,d){if(!gm(o))throw Error(n(405));var m=d!=null&&d.hydratedSources||null,y=!1,_="",$=pv;if(d!=null&&(d.unstable_strictMode===!0&&(y=!0),d.identifierPrefix!==void 0&&(_=d.identifierPrefix),d.onRecoverableError!==void 0&&($=d.onRecoverableError)),s=dv(s,null,o,1,d??null,y,!1,_,$),o[Ro]=s.current,Qs(o),m)for(o=0;o<m.length;o++)d=m[o],y=d._getVersion,y=y(d._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[d,y]:s.mutableSourceEagerHydrationData.push(d,y);return new Sc(s)},Ao.render=function(o,s,d){if(!$f(s))throw Error(n(200));return nl(null,o,s,!1,d)},Ao.unmountComponentAtNode=function(o){if(!$f(o))throw Error(n(40));return o._reactRootContainer?(Ja(function(){nl(null,null,o,!1,function(){o._reactRootContainer=null,o[Ro]=null})}),!0):!1},Ao.unstable_batchedUpdates=um,Ao.unstable_renderSubtreeIntoContainer=function(o,s,d,m){if(!$f(d))throw Error(n(200));if(o==null||o._reactInternals===void 0)throw Error(n(38));return nl(o,s,d,!1,m)},Ao.version="18.3.1-next-f1338f8080-20240426",Ao}function Ox(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ox)}catch(e){console.error(e)}}Ox(),Ex.exports=q2();var ym=Ex.exports;const du=ma(ym),Y2=sl({__proto__:null,default:du},[ym]);var Px=ym;bv.createRoot=Px.createRoot,bv.hydrateRoot=Px.hydrateRoot;var xm={exports:{}};xm.exports,function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",h=500,g="__lodash_placeholder__",b=1,x=2,k=4,E=1,w=2,T=1,P=2,I=4,D=8,M=16,L=32,A=64,z=128,G=256,q=512,X=30,ne="...",Q=800,Z=16,V=1,ce=2,ue=3,se=1/0,U=9007199254740991,ae=17976931348623157e292,Se=NaN,H=4294967295,be=H-1,Ke=H>>>1,Ie=[["ary",z],["bind",T],["bindKey",P],["curry",D],["curryRight",M],["flip",q],["partial",L],["partialRight",A],["rearg",G]],$e="[object Arguments]",Ee="[object Array]",Ye="[object AsyncFunction]",Ce="[object Boolean]",Fe="[object Date]",mt="[object DOMException]",it="[object Error]",Qe="[object Function]",vt="[object GeneratorFunction]",wt="[object Map]",yt="[object Number]",at="[object Null]",Wt="[object Object]",bt="[object Promise]",sn="[object Proxy]",Dt="[object RegExp]",Et="[object Set]",en="[object String]",Kt="[object Symbol]",Lt="[object Undefined]",an="[object WeakMap]",Tn="[object WeakSet]",fn="[object ArrayBuffer]",pt="[object DataView]",We="[object Float32Array]",jt="[object Float64Array]",hn="[object Int8Array]",Mn="[object Int16Array]",et="[object Int32Array]",Pt="[object Uint8Array]",Be="[object Uint8ClampedArray]",tt="[object Uint16Array]",At="[object Uint32Array]",Ft=/\b__p \+= '';/g,Gt=/\b(__p \+=) '' \+/g,pn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,cn=/&(?:amp|lt|gt|quot|#39);/g,Dn=/[&<>"']/g,Ln=RegExp(cn.source),$r=RegExp(Dn.source),wo=/<%-([\s\S]+?)%>/g,vi=/<%([\s\S]+?)%>/g,zo=/<%=([\s\S]+?)%>/g,Bo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wr=/^\w*$/,jn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bn=/[\\^$.*+?()[\]{}|]/g,K=RegExp(bn.source),ee=/^\s+/,ge=/\s/,ke=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qe=/\{\n\/\* \[wrapped with (.+)\] \*/,ft=/,? & /,Ct=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ve=/[()=,{}\[\]\/\s]/,Tt=/\\(\\)?/g,oe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,je=/^[-+]0x[0-9a-f]+$/i,Ae=/^0b[01]+$/i,Je=/^\[object .+?Constructor\]$/,He=/^0o[0-7]+$/i,St=/^(?:0|[1-9]\d*)$/,ln=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Vr=/($^)/,Bi=/['\n\r\u2028\u2029\\]/g,wn="\\ud800-\\udfff",Us="\\u0300-\\u036f",Ui="\\ufe20-\\ufe2f",_o="\\u20d0-\\u20ff",Hi=Us+Ui+_o,Ia="\\u2700-\\u27bf",Hs="a-z\\xdf-\\xf6\\xf8-\\xff",zt="\\xac\\xb1\\xd7\\xf7",mn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Xr="\\u2000-\\u206f",un=" \\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",Uo="A-Z\\xc0-\\xd6\\xd8-\\xde",Au="\\ufe0e\\ufe0f",gd=zt+mn+Xr+un,Tl="['’]",vd="["+wn+"]",Ol="["+gd+"]",Aa="["+Hi+"]",e0="\\d+",_y="["+Ia+"]",bd="["+Hs+"]",eh="[^"+wn+gd+e0+Ia+Hs+Uo+"]",Du="\\ud83c[\\udffb-\\udfff]",Nu="(?:"+Aa+"|"+Du+")",t0="[^"+wn+"]",$u="(?:\\ud83c[\\udde6-\\uddff]){2}",_n="[\\ud800-\\udbff][\\udc00-\\udfff]",Da="["+Uo+"]",th="\\u200d",yd="(?:"+bd+"|"+eh+")",n0="(?:"+Da+"|"+eh+")",nh="(?:"+Tl+"(?:d|ll|m|re|s|t|ve))?",rh="(?:"+Tl+"(?:D|LL|M|RE|S|T|VE))?",xd=Nu+"?",Mu="["+Au+"]?",Ws="(?:"+th+"(?:"+[t0,$u,_n].join("|")+")"+Mu+xd+")*",Gs="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ks="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Pl=Mu+xd+Ws,Lu="(?:"+[_y,$u,_n].join("|")+")"+Pl,Vs="(?:"+[t0+Aa+"?",Aa,$u,_n,vd].join("|")+")",Cy=RegExp(Tl,"g"),r0=RegExp(Aa,"g"),Na=RegExp(Du+"(?="+Du+")|"+Vs+Pl,"g"),Ey=RegExp([Da+"?"+bd+"+"+nh+"(?="+[Ol,Da,"$"].join("|")+")",n0+"+"+rh+"(?="+[Ol,Da+yd,"$"].join("|")+")",Da+"?"+yd+"+"+nh,Da+"+"+rh,Ks,Gs,e0,Lu].join("|"),"g"),o0=RegExp("["+th+wn+Hi+Au+"]"),Sd=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,i0=["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"],Ry=-1,On={};On[We]=On[jt]=On[hn]=On[Mn]=On[et]=On[Pt]=On[Be]=On[tt]=On[At]=!0,On[$e]=On[Ee]=On[fn]=On[Ce]=On[pt]=On[Fe]=On[it]=On[Qe]=On[wt]=On[yt]=On[Wt]=On[Dt]=On[Et]=On[en]=On[an]=!1;var En={};En[$e]=En[Ee]=En[fn]=En[pt]=En[Ce]=En[Fe]=En[We]=En[jt]=En[hn]=En[Mn]=En[et]=En[wt]=En[yt]=En[Wt]=En[Dt]=En[Et]=En[en]=En[Kt]=En[Pt]=En[Be]=En[tt]=En[At]=!0,En[it]=En[Qe]=En[an]=!1;var Il={À:"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",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},wd={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ky={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ty={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},oh=parseFloat,_d=parseInt,Cd=typeof oi=="object"&&oi&&oi.Object===Object&&oi,s0=typeof self=="object"&&self&&self.Object===Object&&self,Gn=Cd||s0||Function("return this")(),ju=t&&!t.nodeType&&t,Wi=ju&&!0&&e&&!e.nodeType&&e,ih=Wi&&Wi.exports===ju,Al=ih&&Cd.process,qr=function(){try{var ie=Wi&&Wi.require&&Wi.require("util").types;return ie||Al&&Al.binding&&Al.binding("util")}catch{}}(),sh=qr&&qr.isArrayBuffer,io=qr&&qr.isDate,$a=qr&&qr.isMap,Ed=qr&&qr.isRegExp,Dl=qr&&qr.isSet,a0=qr&&qr.isTypedArray;function Yr(ie,Te,we){switch(we.length){case 0:return ie.call(Te);case 1:return ie.call(Te,we[0]);case 2:return ie.call(Te,we[0],we[1]);case 3:return ie.call(Te,we[0],we[1],we[2])}return ie.apply(Te,we)}function ah(ie,Te,we,ct){for(var Bt=-1,yn=ie==null?0:ie.length;++Bt<yn;){var lr=ie[Bt];Te(ct,lr,we(lr),ie)}return ct}function Mr(ie,Te){for(var we=-1,ct=ie==null?0:ie.length;++we<ct&&Te(ie[we],we,ie)!==!1;);return ie}function Rd(ie,Te){for(var we=ie==null?0:ie.length;we--&&Te(ie[we],we,ie)!==!1;);return ie}function lh(ie,Te){for(var we=-1,ct=ie==null?0:ie.length;++we<ct;)if(!Te(ie[we],we,ie))return!1;return!0}function Xs(ie,Te){for(var we=-1,ct=ie==null?0:ie.length,Bt=0,yn=[];++we<ct;){var lr=ie[we];Te(lr,we,ie)&&(yn[Bt++]=lr)}return yn}function kd(ie,Te){var we=ie==null?0:ie.length;return!!we&&Nl(ie,Te,0)>-1}function uh(ie,Te,we){for(var ct=-1,Bt=ie==null?0:ie.length;++ct<Bt;)if(we(Te,ie[ct]))return!0;return!1}function Fn(ie,Te){for(var we=-1,ct=ie==null?0:ie.length,Bt=Array(ct);++we<ct;)Bt[we]=Te(ie[we],we,ie);return Bt}function qs(ie,Te){for(var we=-1,ct=Te.length,Bt=ie.length;++we<ct;)ie[Bt+we]=Te[we];return ie}function ch(ie,Te,we,ct){var Bt=-1,yn=ie==null?0:ie.length;for(ct&&yn&&(we=ie[++Bt]);++Bt<yn;)we=Te(we,ie[Bt],Bt,ie);return we}function Oy(ie,Te,we,ct){var Bt=ie==null?0:ie.length;for(ct&&Bt&&(we=ie[--Bt]);Bt--;)we=Te(we,ie[Bt],Bt,ie);return we}function dh(ie,Te){for(var we=-1,ct=ie==null?0:ie.length;++we<ct;)if(Te(ie[we],we,ie))return!0;return!1}var Py=ph("length");function l0(ie){return ie.split("")}function Iy(ie){return ie.match(Ct)||[]}function u0(ie,Te,we){var ct;return we(ie,function(Bt,yn,lr){if(Te(Bt,yn,lr))return ct=yn,!1}),ct}function Td(ie,Te,we,ct){for(var Bt=ie.length,yn=we+(ct?1:-1);ct?yn--:++yn<Bt;)if(Te(ie[yn],yn,ie))return yn;return-1}function Nl(ie,Te,we){return Te===Te?Id(ie,Te,we):Td(ie,c0,we)}function fh(ie,Te,we,ct){for(var Bt=we-1,yn=ie.length;++Bt<yn;)if(ct(ie[Bt],Te))return Bt;return-1}function c0(ie){return ie!==ie}function d0(ie,Te){var we=ie==null?0:ie.length;return we?hh(ie,Te)/we:Se}function ph(ie){return function(Te){return Te==null?n:Te[ie]}}function Od(ie){return function(Te){return ie==null?n:ie[Te]}}function f0(ie,Te,we,ct,Bt){return Bt(ie,function(yn,lr,Nn){we=ct?(ct=!1,yn):Te(we,yn,lr,Nn)}),we}function Ay(ie,Te){var we=ie.length;for(ie.sort(Te);we--;)ie[we]=ie[we].value;return ie}function hh(ie,Te){for(var we,ct=-1,Bt=ie.length;++ct<Bt;){var yn=Te(ie[ct]);yn!==n&&(we=we===n?yn:we+yn)}return we}function mh(ie,Te){for(var we=-1,ct=Array(ie);++we<ie;)ct[we]=Te(we);return ct}function Dy(ie,Te){return Fn(Te,function(we){return[we,ie[we]]})}function p0(ie){return ie&&ie.slice(0,Ad(ie)+1).replace(ee,"")}function Co(ie){return function(Te){return ie(Te)}}function Fu(ie,Te){return Fn(Te,function(we){return ie[we]})}function hs(ie,Te){return ie.has(Te)}function h0(ie,Te){for(var we=-1,ct=ie.length;++we<ct&&Nl(Te,ie[we],0)>-1;);return we}function gh(ie,Te){for(var we=ie.length;we--&&Nl(Te,ie[we],0)>-1;);return we}function m0(ie,Te){for(var we=ie.length,ct=0;we--;)ie[we]===Te&&++ct;return ct}var g0=Od(Il),v0=Od(wd);function b0(ie){return"\\"+Ty[ie]}function $l(ie,Te){return ie==null?n:ie[Te]}function Ml(ie){return o0.test(ie)}function Ny(ie){return Sd.test(ie)}function $y(ie){for(var Te,we=[];!(Te=ie.next()).done;)we.push(Te.value);return we}function Pd(ie){var Te=-1,we=Array(ie.size);return ie.forEach(function(ct,Bt){we[++Te]=[Bt,ct]}),we}function vh(ie,Te){return function(we){return ie(Te(we))}}function Ho(ie,Te){for(var we=-1,ct=ie.length,Bt=0,yn=[];++we<ct;){var lr=ie[we];(lr===Te||lr===g)&&(ie[we]=g,yn[Bt++]=we)}return yn}function Ys(ie){var Te=-1,we=Array(ie.size);return ie.forEach(function(ct){we[++Te]=ct}),we}function My(ie){var Te=-1,we=Array(ie.size);return ie.forEach(function(ct){we[++Te]=[ct,ct]}),we}function Id(ie,Te,we){for(var ct=we-1,Bt=ie.length;++ct<Bt;)if(ie[ct]===Te)return ct;return-1}function Ly(ie,Te,we){for(var ct=we+1;ct--;)if(ie[ct]===Te)return ct;return ct}function Ma(ie){return Ml(ie)?x0(ie):Py(ie)}function Eo(ie){return Ml(ie)?S0(ie):l0(ie)}function Ad(ie){for(var Te=ie.length;Te--&&ge.test(ie.charAt(Te)););return Te}var y0=Od(ky);function x0(ie){for(var Te=Na.lastIndex=0;Na.test(ie);)++Te;return Te}function S0(ie){return ie.match(Na)||[]}function jy(ie){return ie.match(Ey)||[]}var Fy=function ie(Te){Te=Te==null?Gn:Ll.defaults(Gn.Object(),Te,Ll.pick(Gn,i0));var we=Te.Array,ct=Te.Date,Bt=Te.Error,yn=Te.Function,lr=Te.Math,Nn=Te.Object,zu=Te.RegExp,zy=Te.String,Wo=Te.TypeError,ms=we.prototype,bh=yn.prototype,Gi=Nn.prototype,jl=Te["__core-js_shared__"],Bu=bh.toString,xn=Gi.hasOwnProperty,Fl=0,Dd=function(){var l=/[^.]+$/.exec(jl&&jl.keys&&jl.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),Uu=Gi.toString,Nd=Bu.call(Nn),w0=Gn._,_0=zu("^"+Bu.call(xn).replace(bn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Hu=ih?Te.Buffer:n,gs=Te.Symbol,Wu=Te.Uint8Array,yh=Hu?Hu.allocUnsafe:n,bi=vh(Nn.getPrototypeOf,Nn),$d=Nn.create,Md=Gi.propertyIsEnumerable,Ld=ms.splice,C0=gs?gs.isConcatSpreadable:n,vs=gs?gs.iterator:n,La=gs?gs.toStringTag:n,Gu=function(){try{var l=aa(Nn,"defineProperty");return l({},"",{}),l}catch{}}(),E0=Te.clearTimeout!==Gn.clearTimeout&&Te.clearTimeout,Bn=ct&&ct.now!==Gn.Date.now&&ct.now,xh=Te.setTimeout!==Gn.setTimeout&&Te.setTimeout,ja=lr.ceil,Qs=lr.floor,jd=Nn.getOwnPropertySymbols,Sh=Hu?Hu.isBuffer:n,zl=Te.isFinite,Fd=ms.join,Bl=vh(Nn.keys,Nn),ur=lr.max,Lr=lr.min,By=ct.now,R0=Te.parseInt,Ku=lr.random,zd=ms.reverse,Vu=aa(Te,"DataView"),Fa=aa(Te,"Map"),Xu=aa(Te,"Promise"),Js=aa(Te,"Set"),qu=aa(Te,"WeakMap"),Ul=aa(Nn,"create"),Bd=qu&&new qu,Hl={},wh=la(Vu),Zs=la(Fa),k0=la(Xu),Wl=la(Js),Ki=la(qu),ea=gs?gs.prototype:n,Ro=ea?ea.valueOf:n,Ud=ea?ea.toString:n;function j(l){if(dr(l)&&!Xt(l)&&!(l instanceof Vt)){if(l instanceof jr)return l;if(xn.call(l,"__wrapped__"))return tv(l)}return new jr(l)}var Gl=function(){function l(){}return function(c){if(!or(c))return{};if($d)return $d(c);l.prototype=c;var v=new l;return l.prototype=n,v}}();function Vi(){}function jr(l,c){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=n}j.templateSettings={escape:wo,evaluate:vi,interpolate:zo,variable:"",imports:{_:j}},j.prototype=Vi.prototype,j.prototype.constructor=j,jr.prototype=Gl(Vi.prototype),jr.prototype.constructor=jr;function Vt(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=H,this.__views__=[]}function Hd(){var l=new Vt(this.__wrapped__);return l.__actions__=Jr(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=Jr(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=Jr(this.__views__),l}function _h(){if(this.__filtered__){var l=new Vt(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function Kl(){var l=this.__wrapped__.value(),c=this.__dir__,v=Xt(l),C=c<0,N=v?l.length:0,F=Qh(0,N,this.__views__),W=F.start,J=F.end,le=J-W,De=C?J:W-1,Ne=this.__iteratees__,Ue=Ne.length,lt=0,Rt=Lr(le,this.__takeCount__);if(!v||!C&&N==le&&Rt==le)return eu(l,this.__actions__);var $t=[];e:for(;le--&&lt<Rt;){De+=c;for(var tn=-1,Mt=l[De];++tn<Ue;){var dn=Ne[tn],vn=dn.iteratee,Ti=dn.type,Io=vn(Mt);if(Ti==ce)Mt=Io;else if(!Io){if(Ti==V)continue e;break e}}$t[lt++]=Mt}return $t}Vt.prototype=Gl(Vi.prototype),Vt.prototype.constructor=Vt;function so(l){var c=-1,v=l==null?0:l.length;for(this.clear();++c<v;){var C=l[c];this.set(C[0],C[1])}}function Un(){this.__data__=Ul?Ul(null):{},this.size=0}function zn(l){var c=this.has(l)&&delete this.__data__[l];return this.size-=c?1:0,c}function ta(l){var c=this.__data__;if(Ul){var v=c[l];return v===p?n:v}return xn.call(c,l)?c[l]:n}function Fr(l){var c=this.__data__;return Ul?c[l]!==n:xn.call(c,l)}function ao(l,c){var v=this.__data__;return this.size+=this.has(l)?0:1,v[l]=Ul&&c===n?p:c,this}so.prototype.clear=Un,so.prototype.delete=zn,so.prototype.get=ta,so.prototype.has=Fr,so.prototype.set=ao;function Qr(l){var c=-1,v=l==null?0:l.length;for(this.clear();++c<v;){var C=l[c];this.set(C[0],C[1])}}function Vl(){this.__data__=[],this.size=0}function lo(l){var c=this.__data__,v=Br(c,l);if(v<0)return!1;var C=c.length-1;return v==C?c.pop():Ld.call(c,v,1),--this.size,!0}function Wd(l){var c=this.__data__,v=Br(c,l);return v<0?n:c[v][1]}function T0(l){return Br(this.__data__,l)>-1}function O0(l,c){var v=this.__data__,C=Br(v,l);return C<0?(++this.size,v.push([l,c])):v[C][1]=c,this}Qr.prototype.clear=Vl,Qr.prototype.delete=lo,Qr.prototype.get=Wd,Qr.prototype.has=T0,Qr.prototype.set=O0;function Go(l){var c=-1,v=l==null?0:l.length;for(this.clear();++c<v;){var C=l[c];this.set(C[0],C[1])}}function P0(){this.size=0,this.__data__={hash:new so,map:new(Fa||Qr),string:new so}}function bs(l){var c=dc(this,l).delete(l);return this.size-=c?1:0,c}function Gd(l){return dc(this,l).get(l)}function Ch(l){return dc(this,l).has(l)}function I0(l,c){var v=dc(this,l),C=v.size;return v.set(l,c),this.size+=v.size==C?0:1,this}Go.prototype.clear=P0,Go.prototype.delete=bs,Go.prototype.get=Gd,Go.prototype.has=Ch,Go.prototype.set=I0;function za(l){var c=-1,v=l==null?0:l.length;for(this.__data__=new Go;++c<v;)this.add(l[c])}function na(l){return this.__data__.set(l,p),this}function Xl(l){return this.__data__.has(l)}za.prototype.add=za.prototype.push=na,za.prototype.has=Xl;function zr(l){var c=this.__data__=new Qr(l);this.size=c.size}function Kd(){this.__data__=new Qr,this.size=0}function Vd(l){var c=this.__data__,v=c.delete(l);return this.size=c.size,v}function Ko(l){return this.__data__.get(l)}function Vo(l){return this.__data__.has(l)}function Ba(l,c){var v=this.__data__;if(v instanceof Qr){var C=v.__data__;if(!Fa||C.length<i-1)return C.push([l,c]),this.size=++v.size,this;v=this.__data__=new Go(C)}return v.set(l,c),this.size=v.size,this}zr.prototype.clear=Kd,zr.prototype.delete=Vd,zr.prototype.get=Ko,zr.prototype.has=Vo,zr.prototype.set=Ba;function Xi(l,c){var v=Xt(l),C=!v&&_c(l),N=!v&&!C&&cu(l),F=!v&&!C&&!N&&Lf(l),W=v||C||N||F,J=W?mh(l.length,zy):[],le=J.length;for(var De in l)(c||xn.call(l,De))&&!(W&&(De=="length"||N&&(De=="offset"||De=="parent")||F&&(De=="buffer"||De=="byteLength"||De=="byteOffset")||Vn(De,le)))&&J.push(De);return J}function qi(l){var c=l.length;return c?l[Jl(0,c-1)]:n}function Ua(l,c){return xf(Jr(l),ys(c,0,l.length))}function A0(l){return xf(Jr(l))}function Yu(l,c,v){(v!==n&&!Os(l[c],v)||v===n&&!(c in l))&&Yi(l,c,v)}function Ha(l,c,v){var C=l[c];(!(xn.call(l,c)&&Os(C,v))||v===n&&!(c in l))&&Yi(l,c,v)}function Br(l,c){for(var v=l.length;v--;)if(Os(l[v][0],c))return v;return-1}function ko(l,c,v,C){return Ji(l,function(N,F,W){c(C,N,v(N),W)}),C}function Hn(l,c){return l&&xi(c,Wr(c),l)}function yi(l,c){return l&&xi(c,ni(c),l)}function Yi(l,c,v){c=="__proto__"&&Gu?Gu(l,c,{configurable:!0,enumerable:!0,value:v,writable:!0}):l[c]=v}function Xd(l,c){for(var v=-1,C=c.length,N=we(C),F=l==null;++v<C;)N[v]=F?n:dx(l,c[v]);return N}function ys(l,c,v){return l===l&&(v!==n&&(l=l<=v?l:v),c!==n&&(l=l>=c?l:c)),l}function uo(l,c,v,C,N,F){var W,J=c&b,le=c&x,De=c&k;if(v&&(W=N?v(l,C,N,F):v(l)),W!==n)return W;if(!or(l))return l;var Ne=Xt(l);if(Ne){if(W=pc(l),!J)return Jr(l,W)}else{var Ue=Pr(l),lt=Ue==Qe||Ue==vt;if(cu(l))return Fh(l,J);if(Ue==Wt||Ue==$e||lt&&!N){if(W=le||lt?{}:Ir(l),!J)return le?Hy(l,yi(W,l)):lf(l,Hn(W,l))}else{if(!En[Ue])return N?l:{};W=Wy(l,Ue,J)}}F||(F=new zr);var Rt=F.get(l);if(Rt)return Rt;F.set(l,W),O2(l)?l.forEach(function(Mt){W.add(uo(Mt,c,v,Mt,l,F))}):k2(l)&&l.forEach(function(Mt,dn){W.set(dn,uo(Mt,c,v,dn,l,F))});var $t=De?le?cc:uc:le?ni:Wr,tn=Ne?n:$t(l);return Mr(tn||l,function(Mt,dn){tn&&(dn=Mt,Mt=l[dn]),Ha(W,dn,uo(Mt,c,v,dn,l,F))}),W}function D0(l){var c=Wr(l);return function(v){return Qu(v,l,c)}}function Qu(l,c,v){var C=v.length;if(l==null)return!C;for(l=Nn(l);C--;){var N=v[C],F=c[N],W=l[N];if(W===n&&!(N in l)||!F(W))return!1}return!0}function Eh(l,c,v){if(typeof l!="function")throw new Wo(u);return au(function(){l.apply(n,v)},c)}function Qi(l,c,v,C){var N=-1,F=kd,W=!0,J=l.length,le=[],De=c.length;if(!J)return le;v&&(c=Fn(c,Co(v))),C?(F=uh,W=!1):c.length>=i&&(F=hs,W=!1,c=new za(c));e:for(;++N<J;){var Ne=l[N],Ue=v==null?Ne:v(Ne);if(Ne=C||Ne!==0?Ne:0,W&&Ue===Ue){for(var lt=De;lt--;)if(c[lt]===Ue)continue e;le.push(Ne)}else F(c,Ue,C)||le.push(Ne)}return le}var Ji=Jo(To),N0=Jo(ra,!0);function Ju(l,c){var v=!0;return Ji(l,function(C,N,F){return v=!!c(C,N,F),v}),v}function Wa(l,c,v){for(var C=-1,N=l.length;++C<N;){var F=l[C],W=c(F);if(W!=null&&(J===n?W===W&&!ki(W):v(W,J)))var J=W,le=F}return le}function $0(l,c,v,C){var N=l.length;for(v=Qt(v),v<0&&(v=-v>N?0:N+v),C=C===n||C>N?N:Qt(C),C<0&&(C+=N),C=v>C?0:I2(C);v<C;)l[v++]=c;return l}function Rh(l,c){var v=[];return Ji(l,function(C,N,F){c(C,N,F)&&v.push(C)}),v}function er(l,c,v,C,N){var F=-1,W=l.length;for(v||(v=vf),N||(N=[]);++F<W;){var J=l[F];c>0&&v(J)?c>1?er(J,c-1,v,C,N):qs(N,J):C||(N[N.length]=J)}return N}var qd=cf(),Zu=cf(!0);function To(l,c){return l&&qd(l,c,Wr)}function ra(l,c){return l&&Zu(l,c,Wr)}function ql(l,c){return Xs(c,function(v){return rl(l[v])})}function xs(l,c){c=ts(c,l);for(var v=0,C=c.length;l!=null&&v<C;)l=l[Ci(c[v++])];return v&&v==C?l:n}function Yd(l,c,v){var C=c(l);return Xt(l)?C:qs(C,v(l))}function Tr(l){return l==null?l===n?Lt:at:La&&La in Nn(l)?gf(l):Zh(l)}function oa(l,c){return l>c}function Xo(l,c){return l!=null&&xn.call(l,c)}function Ga(l,c){return l!=null&&c in Nn(l)}function kh(l,c,v){return l>=Lr(c,v)&&l<ur(c,v)}function Qd(l,c,v){for(var C=v?uh:kd,N=l[0].length,F=l.length,W=F,J=we(F),le=1/0,De=[];W--;){var Ne=l[W];W&&c&&(Ne=Fn(Ne,Co(c))),le=Lr(Ne.length,le),J[W]=!v&&(c||N>=120&&Ne.length>=120)?new za(W&&Ne):n}Ne=l[0];var Ue=-1,lt=J[0];e:for(;++Ue<N&&De.length<le;){var Rt=Ne[Ue],$t=c?c(Rt):Rt;if(Rt=v||Rt!==0?Rt:0,!(lt?hs(lt,$t):C(De,$t,v))){for(W=F;--W;){var tn=J[W];if(!(tn?hs(tn,$t):C(l[W],$t,v)))continue e}lt&&lt.push($t),De.push(Rt)}}return De}function Ss(l,c,v,C){return To(l,function(N,F,W){c(C,v(N),F,W)}),C}function qo(l,c,v){c=ts(c,l),l=_r(l,c);var C=l==null?l:l[Ci(to(c))];return C==null?n:Yr(C,l,v)}function Jd(l){return dr(l)&&Tr(l)==$e}function M0(l){return dr(l)&&Tr(l)==fn}function ws(l){return dr(l)&&Tr(l)==Fe}function Yo(l,c,v,C,N){return l===c?!0:l==null||c==null||!dr(l)&&!dr(c)?l!==l&&c!==c:Zd(l,c,v,C,Yo,N)}function Zd(l,c,v,C,N,F){var W=Xt(l),J=Xt(c),le=W?Ee:Pr(l),De=J?Ee:Pr(c);le=le==$e?Wt:le,De=De==$e?Wt:De;var Ne=le==Wt,Ue=De==Wt,lt=le==De;if(lt&&cu(l)){if(!cu(c))return!1;W=!0,Ne=!1}if(lt&&!Ne)return F||(F=new zr),W||Lf(l)?qh(l,c,v,C,N,F):Yh(l,c,le,v,C,N,F);if(!(v&E)){var Rt=Ne&&xn.call(l,"__wrapped__"),$t=Ue&&xn.call(c,"__wrapped__");if(Rt||$t){var tn=Rt?l.value():l,Mt=$t?c.value():c;return F||(F=new zr),N(tn,Mt,v,C,F)}}return lt?(F||(F=new zr),V0(l,c,v,C,N,F)):!1}function L0(l){return dr(l)&&Pr(l)==wt}function Yl(l,c,v,C){var N=v.length,F=N,W=!C;if(l==null)return!F;for(l=Nn(l);N--;){var J=v[N];if(W&&J[2]?J[1]!==l[J[0]]:!(J[0]in l))return!1}for(;++N<F;){J=v[N];var le=J[0],De=l[le],Ne=J[1];if(W&&J[2]){if(De===n&&!(le in l))return!1}else{var Ue=new zr;if(C)var lt=C(De,Ne,le,l,c,Ue);if(!(lt===n?Yo(Ne,De,E|w,C,Ue):lt))return!1}}return!0}function Th(l){if(!or(l)||Y0(l))return!1;var c=rl(l)?_0:Je;return c.test(la(l))}function ec(l){return dr(l)&&Tr(l)==Dt}function Zi(l){return dr(l)&&Pr(l)==Et}function tc(l){return dr(l)&&mv(l.length)&&!!On[Tr(l)]}function Ql(l){return typeof l=="function"?l:l==null?ri:typeof l=="object"?Xt(l)?Kn(l[0],l[1]):ef(l):U2(l)}function _s(l){if(!ks(l))return Bl(l);var c=[];for(var v in Nn(l))xn.call(l,v)&&v!="constructor"&&c.push(v);return c}function Oh(l){if(!or(l))return Z0(l);var c=ks(l),v=[];for(var C in l)C=="constructor"&&(c||!xn.call(l,C))||v.push(C);return v}function ia(l,c){return l<c}function Ph(l,c){var v=-1,C=ti(l)?we(l.length):[];return Ji(l,function(N,F,W){C[++v]=c(N,F,W)}),C}function ef(l){var c=fc(l);return c.length==1&&c[0][2]?bf(c[0][0],c[0][1]):function(v){return v===l||Yl(v,l,c)}}function Kn(l,c){return ht(l)&&mc(c)?bf(Ci(l),c):function(v){var C=dx(v,l);return C===n&&C===c?fx(v,l):Yo(c,C,E|w)}}function Ka(l,c,v,C,N){l!==c&&qd(c,function(F,W){if(N||(N=new zr),or(F))Ih(l,c,W,v,Ka,C,N);else{var J=C?C(os(l,W),F,W+"",l,c,N):n;J===n&&(J=F),Yu(l,W,J)}},ni)}function Ih(l,c,v,C,N,F,W){var J=os(l,v),le=os(c,v),De=W.get(le);if(De){Yu(l,v,De);return}var Ne=F?F(J,le,v+"",l,c,W):n,Ue=Ne===n;if(Ue){var lt=Xt(le),Rt=!lt&&cu(le),$t=!lt&&!Rt&&Lf(le);Ne=le,lt||Rt||$t?Xt(J)?Ne=J:vr(J)?Ne=Jr(J):Rt?(Ue=!1,Ne=Fh(le,!0)):$t?(Ue=!1,Ne=U0(le,!0)):Ne=[]:vm(le)||_c(le)?(Ne=J,_c(J)?Ne=A2(J):(!or(J)||rl(J))&&(Ne=Ir(le))):Ue=!1}Ue&&(W.set(le,Ne),N(Ne,le,C,F,W),W.delete(le)),Yu(l,v,Ne)}function tf(l,c){var v=l.length;if(v)return c+=c<0?v:0,Vn(c,v)?l[c]:n}function nc(l,c,v){c.length?c=Fn(c,function(F){return Xt(F)?function(W){return xs(W,F.length===1?F[0]:F)}:F}):c=[ri];var C=-1;c=Fn(c,Co(It()));var N=Ph(l,function(F,W,J){var le=Fn(c,function(De){return De(F)});return{criteria:le,index:++C,value:F}});return Ay(N,function(F,W){return Uy(F,W,v)})}function Ah(l,c){return sa(l,c,function(v,C){return fx(l,C)})}function sa(l,c,v){for(var C=-1,N=c.length,F={};++C<N;){var W=c[C],J=xs(l,W);v(J,W)&&Xa(F,ts(W,l),J)}return F}function Yn(l){return function(c){return xs(c,l)}}function nr(l,c,v,C){var N=C?fh:Nl,F=-1,W=c.length,J=l;for(l===c&&(c=Jr(c)),v&&(J=Fn(l,Co(v)));++F<W;)for(var le=0,De=c[F],Ne=v?v(De):De;(le=N(J,Ne,le,C))>-1;)J!==l&&Ld.call(J,le,1),Ld.call(l,le,1);return l}function mr(l,c){for(var v=l?c.length:0,C=v-1;v--;){var N=c[v];if(v==C||N!==F){var F=N;Vn(N)?Ld.call(l,N,1):of(l,N)}}return l}function Jl(l,c){return l+Qs(Ku()*(c-l+1))}function rc(l,c,v,C){for(var N=-1,F=ur(ja((c-l)/(v||1)),0),W=we(F);F--;)W[C?F:++N]=l,l+=v;return W}function Va(l,c){var v="";if(!l||c<1||c>U)return v;do c%2&&(v+=l),c=Qs(c/2),c&&(l+=l);while(c);return v}function Yt(l,c){return Oo(yf(l,c,ri),l+"")}function Ur(l){return qi(jf(l))}function Dh(l,c){var v=jf(l);return xf(v,ys(c,0,v.length))}function Xa(l,c,v,C){if(!or(l))return l;c=ts(c,l);for(var N=-1,F=c.length,W=F-1,J=l;J!=null&&++N<F;){var le=Ci(c[N]),De=v;if(le==="__proto__"||le==="constructor"||le==="prototype")return l;if(N!=W){var Ne=J[le];De=C?C(Ne,le,J):n,De===n&&(De=or(Ne)?Ne:Vn(c[N+1])?[]:{})}Ha(J,le,De),J=J[le]}return l}var nf=Bd?function(l,c){return Bd.set(l,c),l}:ri,es=Gu?function(l,c){return Gu(l,"toString",{configurable:!0,enumerable:!1,value:hx(c),writable:!0})}:ri;function Qo(l){return xf(jf(l))}function Hr(l,c,v){var C=-1,N=l.length;c<0&&(c=-c>N?0:N+c),v=v>N?N:v,v<0&&(v+=N),N=c>v?0:v-c>>>0,c>>>=0;for(var F=we(N);++C<N;)F[C]=l[C+c];return F}function Nh(l,c){var v;return Ji(l,function(C,N,F){return v=c(C,N,F),!v}),!!v}function Zl(l,c,v){var C=0,N=l==null?C:l.length;if(typeof c=="number"&&c===c&&N<=Ke){for(;C<N;){var F=C+N>>>1,W=l[F];W!==null&&!ki(W)&&(v?W<=c:W<c)?C=F+1:N=F}return N}return rf(l,c,ri,v)}function rf(l,c,v,C){var N=0,F=l==null?0:l.length;if(F===0)return 0;c=v(c);for(var W=c!==c,J=c===null,le=ki(c),De=c===n;N<F;){var Ne=Qs((N+F)/2),Ue=v(l[Ne]),lt=Ue!==n,Rt=Ue===null,$t=Ue===Ue,tn=ki(Ue);if(W)var Mt=C||$t;else De?Mt=$t&&(C||lt):J?Mt=$t&&lt&&(C||!Rt):le?Mt=$t&&lt&&!Rt&&(C||!tn):Rt||tn?Mt=!1:Mt=C?Ue<=c:Ue<c;Mt?N=Ne+1:F=Ne}return Lr(F,be)}function $h(l,c){for(var v=-1,C=l.length,N=0,F=[];++v<C;){var W=l[v],J=c?c(W):W;if(!v||!Os(J,le)){var le=J;F[N++]=W===0?0:W}}return F}function Mh(l){return typeof l=="number"?l:ki(l)?Se:+l}function co(l){if(typeof l=="string")return l;if(Xt(l))return Fn(l,co)+"";if(ki(l))return Ud?Ud.call(l):"";var c=l+"";return c=="0"&&1/l==-se?"-0":c}function Cs(l,c,v){var C=-1,N=kd,F=l.length,W=!0,J=[],le=J;if(v)W=!1,N=uh;else if(F>=i){var De=c?null:K0(l);if(De)return Ys(De);W=!1,N=hs,le=new za}else le=c?[]:J;e:for(;++C<F;){var Ne=l[C],Ue=c?c(Ne):Ne;if(Ne=v||Ne!==0?Ne:0,W&&Ue===Ue){for(var lt=le.length;lt--;)if(le[lt]===Ue)continue e;c&&le.push(Ue),J.push(Ne)}else N(le,Ue,v)||(le!==J&&le.push(Ue),J.push(Ne))}return J}function of(l,c){return c=ts(c,l),l=_r(l,c),l==null||delete l[Ci(to(c))]}function Lh(l,c,v,C){return Xa(l,c,v(xs(l,c)),C)}function oc(l,c,v,C){for(var N=l.length,F=C?N:-1;(C?F--:++F<N)&&c(l[F],F,l););return v?Hr(l,C?0:F,C?F+1:N):Hr(l,C?F+1:0,C?N:F)}function eu(l,c){var v=l;return v instanceof Vt&&(v=v.value()),ch(c,function(C,N){return N.func.apply(N.thisArg,qs([C],N.args))},v)}function sf(l,c,v){var C=l.length;if(C<2)return C?Cs(l[0]):[];for(var N=-1,F=we(C);++N<C;)for(var W=l[N],J=-1;++J<C;)J!=N&&(F[N]=Qi(F[N]||W,l[J],c,v));return Cs(er(F,1),c,v)}function ic(l,c,v){for(var C=-1,N=l.length,F=c.length,W={};++C<N;){var J=C<F?c[C]:n;v(W,l[C],J)}return W}function tu(l){return vr(l)?l:[]}function af(l){return typeof l=="function"?l:ri}function ts(l,c){return Xt(l)?l:ht(l,c)?[l]:nm($n(l))}var j0=Yt;function Es(l,c,v){var C=l.length;return v=v===n?C:v,!c&&v>=C?l:Hr(l,c,v)}var jh=E0||function(l){return Gn.clearTimeout(l)};function Fh(l,c){if(c)return l.slice();var v=l.length,C=yh?yh(v):new l.constructor(v);return l.copy(C),C}function sc(l){var c=new l.constructor(l.byteLength);return new Wu(c).set(new Wu(l)),c}function F0(l,c){var v=c?sc(l.buffer):l.buffer;return new l.constructor(v,l.byteOffset,l.byteLength)}function z0(l){var c=new l.constructor(l.source,re.exec(l));return c.lastIndex=l.lastIndex,c}function B0(l){return Ro?Nn(Ro.call(l)):{}}function U0(l,c){var v=c?sc(l.buffer):l.buffer;return new l.constructor(v,l.byteOffset,l.length)}function zh(l,c){if(l!==c){var v=l!==n,C=l===null,N=l===l,F=ki(l),W=c!==n,J=c===null,le=c===c,De=ki(c);if(!J&&!De&&!F&&l>c||F&&W&&le&&!J&&!De||C&&W&&le||!v&&le||!N)return 1;if(!C&&!F&&!De&&l<c||De&&v&&N&&!C&&!F||J&&v&&N||!W&&N||!le)return-1}return 0}function Uy(l,c,v){for(var C=-1,N=l.criteria,F=c.criteria,W=N.length,J=v.length;++C<W;){var le=zh(N[C],F[C]);if(le){if(C>=J)return le;var De=v[C];return le*(De=="desc"?-1:1)}}return l.index-c.index}function H0(l,c,v,C){for(var N=-1,F=l.length,W=v.length,J=-1,le=c.length,De=ur(F-W,0),Ne=we(le+De),Ue=!C;++J<le;)Ne[J]=c[J];for(;++N<W;)(Ue||N<F)&&(Ne[v[N]]=l[N]);for(;De--;)Ne[J++]=l[N++];return Ne}function Bh(l,c,v,C){for(var N=-1,F=l.length,W=-1,J=v.length,le=-1,De=c.length,Ne=ur(F-J,0),Ue=we(Ne+De),lt=!C;++N<Ne;)Ue[N]=l[N];for(var Rt=N;++le<De;)Ue[Rt+le]=c[le];for(;++W<J;)(lt||N<F)&&(Ue[Rt+v[W]]=l[N++]);return Ue}function Jr(l,c){var v=-1,C=l.length;for(c||(c=we(C));++v<C;)c[v]=l[v];return c}function xi(l,c,v,C){var N=!v;v||(v={});for(var F=-1,W=c.length;++F<W;){var J=c[F],le=C?C(v[J],l[J],J,v,l):n;le===n&&(le=l[J]),N?Yi(v,J,le):Ha(v,J,le)}return v}function lf(l,c){return xi(l,Si(l),c)}function Hy(l,c){return xi(l,X0(l),c)}function uf(l,c){return function(v,C){var N=Xt(v)?ah:ko,F=c?c():{};return N(v,l,It(C,2),F)}}function nu(l){return Yt(function(c,v){var C=-1,N=v.length,F=N>1?v[N-1]:n,W=N>2?v[2]:n;for(F=l.length>3&&typeof F=="function"?(N--,F):n,W&&eo(v[0],v[1],W)&&(F=N<3?n:F,N=1),c=Nn(c);++C<N;){var J=v[C];J&&l(c,J,C,F)}return c})}function Jo(l,c){return function(v,C){if(v==null)return v;if(!ti(v))return l(v,C);for(var N=v.length,F=c?N:-1,W=Nn(v);(c?F--:++F<N)&&C(W[F],F,W)!==!1;);return v}}function cf(l){return function(c,v,C){for(var N=-1,F=Nn(c),W=C(c),J=W.length;J--;){var le=W[l?J:++N];if(v(F[le],le,F)===!1)break}return c}}function df(l,c,v){var C=c&T,N=ru(l);function F(){var W=this&&this!==Gn&&this instanceof F?N:l;return W.apply(C?v:this,arguments)}return F}function Uh(l){return function(c){c=$n(c);var v=Ml(c)?Eo(c):n,C=v?v[0]:c.charAt(0),N=v?Es(v,1).join(""):c.slice(1);return C[l]()+N}}function qa(l){return function(c){return ch(z2(F2(c).replace(Cy,"")),l,"")}}function ru(l){return function(){var c=arguments;switch(c.length){case 0:return new l;case 1:return new l(c[0]);case 2:return new l(c[0],c[1]);case 3:return new l(c[0],c[1],c[2]);case 4:return new l(c[0],c[1],c[2],c[3]);case 5:return new l(c[0],c[1],c[2],c[3],c[4]);case 6:return new l(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new l(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var v=Gl(l.prototype),C=l.apply(v,c);return or(C)?C:v}}function Hh(l,c,v){var C=ru(l);function N(){for(var F=arguments.length,W=we(F),J=F,le=Rs(N);J--;)W[J]=arguments[J];var De=F<3&&W[0]!==le&&W[F-1]!==le?[]:Ho(W,le);if(F-=De.length,F<v)return Zr(l,c,ou,N.placeholder,n,W,De,n,n,v-F);var Ne=this&&this!==Gn&&this instanceof N?C:l;return Yr(Ne,this,W)}return N}function Ya(l){return function(c,v,C){var N=Nn(c);if(!ti(c)){var F=It(v,3);c=Wr(c),v=function(J){return F(N[J],J,N)}}var W=l(c,v,C);return W>-1?N[F?c[W]:W]:n}}function ff(l){return rs(function(c){var v=c.length,C=v,N=jr.prototype.thru;for(l&&c.reverse();C--;){var F=c[C];if(typeof F!="function")throw new Wo(u);if(N&&!W&&iu(F)=="wrapper")var W=new jr([],!0)}for(C=W?C:v;++C<v;){F=c[C];var J=iu(F),le=J=="wrapper"?mf(F):n;le&&hc(le[0])&&le[1]==(z|D|L|G)&&!le[4].length&&le[9]==1?W=W[iu(le[0])].apply(W,le[3]):W=F.length==1&&hc(F)?W[J]():W.thru(F)}return function(){var De=arguments,Ne=De[0];if(W&&De.length==1&&Xt(Ne))return W.plant(Ne).value();for(var Ue=0,lt=v?c[Ue].apply(this,De):Ne;++Ue<v;)lt=c[Ue].call(this,lt);return lt}})}function ou(l,c,v,C,N,F,W,J,le,De){var Ne=c&z,Ue=c&T,lt=c&P,Rt=c&(D|M),$t=c&q,tn=lt?n:ru(l);function Mt(){for(var dn=arguments.length,vn=we(dn),Ti=dn;Ti--;)vn[Ti]=arguments[Ti];if(Rt)var Io=Rs(Mt),Oi=m0(vn,Io);if(C&&(vn=H0(vn,C,N,Rt)),F&&(vn=Bh(vn,F,W,Rt)),dn-=Oi,Rt&&dn<De){var br=Ho(vn,Io);return Zr(l,c,ou,Mt.placeholder,v,vn,br,J,le,De-dn)}var Ps=Ue?v:this,il=lt?Ps[l]:l;return dn=vn.length,J?vn=wi(vn,J):$t&&dn>1&&vn.reverse(),Ne&&le<dn&&(vn.length=le),this&&this!==Gn&&this instanceof Mt&&(il=tn||ru(il)),il.apply(Ps,vn)}return Mt}function W0(l,c){return function(v,C){return Ss(v,l,c(C),{})}}function ac(l,c){return function(v,C){var N;if(v===n&&C===n)return c;if(v!==n&&(N=v),C!==n){if(N===n)return C;typeof v=="string"||typeof C=="string"?(v=co(v),C=co(C)):(v=Mh(v),C=Mh(C)),N=l(v,C)}return N}}function pf(l){return rs(function(c){return c=Fn(c,Co(It())),Yt(function(v){var C=this;return l(c,function(N){return Yr(N,C,v)})})})}function lc(l,c){c=c===n?" ":co(c);var v=c.length;if(v<2)return v?Va(c,l):c;var C=Va(c,ja(l/Ma(c)));return Ml(c)?Es(Eo(C),0,l).join(""):C.slice(0,l)}function G0(l,c,v,C){var N=c&T,F=ru(l);function W(){for(var J=-1,le=arguments.length,De=-1,Ne=C.length,Ue=we(Ne+le),lt=this&&this!==Gn&&this instanceof W?F:l;++De<Ne;)Ue[De]=C[De];for(;le--;)Ue[De++]=arguments[++J];return Yr(lt,N?v:this,Ue)}return W}function Wh(l){return function(c,v,C){return C&&typeof C!="number"&&eo(c,v,C)&&(v=C=n),c=ol(c),v===n?(v=c,c=0):v=ol(v),C=C===n?c<v?1:-1:ol(C),rc(c,v,C,l)}}function hf(l){return function(c,v){return typeof c=="string"&&typeof v=="string"||(c=is(c),v=is(v)),l(c,v)}}function Zr(l,c,v,C,N,F,W,J,le,De){var Ne=c&D,Ue=Ne?W:n,lt=Ne?n:W,Rt=Ne?F:n,$t=Ne?n:F;c|=Ne?L:A,c&=~(Ne?A:L),c&I||(c&=~(T|P));var tn=[l,c,N,Rt,Ue,$t,lt,J,le,De],Mt=v.apply(n,tn);return hc(l)&&em(Mt,tn),Mt.placeholder=C,tm(Mt,l,c)}function Or(l){var c=lr[l];return function(v,C){if(v=is(v),C=C==null?0:Lr(Qt(C),292),C&&zl(v)){var N=($n(v)+"e").split("e"),F=c(N[0]+"e"+(+N[1]+C));return N=($n(F)+"e").split("e"),+(N[0]+"e"+(+N[1]-C))}return c(v)}}var K0=Js&&1/Ys(new Js([,-0]))[1]==se?function(l){return new Js(l)}:vx;function Gh(l){return function(c){var v=Pr(c);return v==wt?Pd(c):v==Et?My(c):Dy(c,l(c))}}function ns(l,c,v,C,N,F,W,J){var le=c&P;if(!le&&typeof l!="function")throw new Wo(u);var De=C?C.length:0;if(De||(c&=~(L|A),C=N=n),W=W===n?W:ur(Qt(W),0),J=J===n?J:Qt(J),De-=N?N.length:0,c&A){var Ne=C,Ue=N;C=N=n}var lt=le?n:mf(l),Rt=[l,c,v,C,N,Ne,Ue,F,W,J];if(lt&&J0(Rt,lt),l=Rt[0],c=Rt[1],v=Rt[2],C=Rt[3],N=Rt[4],J=Rt[9]=Rt[9]===n?le?0:l.length:ur(Rt[9]-De,0),!J&&c&(D|M)&&(c&=~(D|M)),!c||c==T)var $t=df(l,c,v);else c==D||c==M?$t=Hh(l,c,J):(c==L||c==(T|L))&&!N.length?$t=G0(l,c,v,C):$t=ou.apply(n,Rt);var tn=lt?nf:em;return tm(tn($t,Rt),l,c)}function Kh(l,c,v,C){return l===n||Os(l,Gi[v])&&!xn.call(C,v)?c:l}function Vh(l,c,v,C,N,F){return or(l)&&or(c)&&(F.set(c,l),Ka(l,c,n,Vh,F),F.delete(c)),l}function Xh(l){return vm(l)?n:l}function qh(l,c,v,C,N,F){var W=v&E,J=l.length,le=c.length;if(J!=le&&!(W&&le>J))return!1;var De=F.get(l),Ne=F.get(c);if(De&&Ne)return De==c&&Ne==l;var Ue=-1,lt=!0,Rt=v&w?new za:n;for(F.set(l,c),F.set(c,l);++Ue<J;){var $t=l[Ue],tn=c[Ue];if(C)var Mt=W?C(tn,$t,Ue,c,l,F):C($t,tn,Ue,l,c,F);if(Mt!==n){if(Mt)continue;lt=!1;break}if(Rt){if(!dh(c,function(dn,vn){if(!hs(Rt,vn)&&($t===dn||N($t,dn,v,C,F)))return Rt.push(vn)})){lt=!1;break}}else if(!($t===tn||N($t,tn,v,C,F))){lt=!1;break}}return F.delete(l),F.delete(c),lt}function Yh(l,c,v,C,N,F,W){switch(v){case pt:if(l.byteLength!=c.byteLength||l.byteOffset!=c.byteOffset)return!1;l=l.buffer,c=c.buffer;case fn:return!(l.byteLength!=c.byteLength||!F(new Wu(l),new Wu(c)));case Ce:case Fe:case yt:return Os(+l,+c);case it:return l.name==c.name&&l.message==c.message;case Dt:case en:return l==c+"";case wt:var J=Pd;case Et:var le=C&E;if(J||(J=Ys),l.size!=c.size&&!le)return!1;var De=W.get(l);if(De)return De==c;C|=w,W.set(l,c);var Ne=qh(J(l),J(c),C,N,F,W);return W.delete(l),Ne;case Kt:if(Ro)return Ro.call(l)==Ro.call(c)}return!1}function V0(l,c,v,C,N,F){var W=v&E,J=uc(l),le=J.length,De=uc(c),Ne=De.length;if(le!=Ne&&!W)return!1;for(var Ue=le;Ue--;){var lt=J[Ue];if(!(W?lt in c:xn.call(c,lt)))return!1}var Rt=F.get(l),$t=F.get(c);if(Rt&&$t)return Rt==c&&$t==l;var tn=!0;F.set(l,c),F.set(c,l);for(var Mt=W;++Ue<le;){lt=J[Ue];var dn=l[lt],vn=c[lt];if(C)var Ti=W?C(vn,dn,lt,c,l,F):C(dn,vn,lt,l,c,F);if(!(Ti===n?dn===vn||N(dn,vn,v,C,F):Ti)){tn=!1;break}Mt||(Mt=lt=="constructor")}if(tn&&!Mt){var Io=l.constructor,Oi=c.constructor;Io!=Oi&&"constructor"in l&&"constructor"in c&&!(typeof Io=="function"&&Io instanceof Io&&typeof Oi=="function"&&Oi instanceof Oi)&&(tn=!1)}return F.delete(l),F.delete(c),tn}function rs(l){return Oo(yf(l,n,wf),l+"")}function uc(l){return Yd(l,Wr,Si)}function cc(l){return Yd(l,ni,X0)}var mf=Bd?function(l){return Bd.get(l)}:vx;function iu(l){for(var c=l.name+"",v=Hl[c],C=xn.call(Hl,c)?v.length:0;C--;){var N=v[C],F=N.func;if(F==null||F==l)return N.name}return c}function Rs(l){var c=xn.call(j,"placeholder")?j:l;return c.placeholder}function It(){var l=j.iteratee||mx;return l=l===mx?Ql:l,arguments.length?l(arguments[0],arguments[1]):l}function dc(l,c){var v=l.__data__;return su(c)?v[typeof c=="string"?"string":"hash"]:v.map}function fc(l){for(var c=Wr(l),v=c.length;v--;){var C=c[v],N=l[C];c[v]=[C,N,mc(N)]}return c}function aa(l,c){var v=$l(l,c);return Th(v)?v:n}function gf(l){var c=xn.call(l,La),v=l[La];try{l[La]=n;var C=!0}catch{}var N=Uu.call(l);return C&&(c?l[La]=v:delete l[La]),N}var Si=jd?function(l){return l==null?[]:(l=Nn(l),Xs(jd(l),function(c){return Md.call(l,c)}))}:bx,X0=jd?function(l){for(var c=[];l;)qs(c,Si(l)),l=bi(l);return c}:bx,Pr=Tr;(Vu&&Pr(new Vu(new ArrayBuffer(1)))!=pt||Fa&&Pr(new Fa)!=wt||Xu&&Pr(Xu.resolve())!=bt||Js&&Pr(new Js)!=Et||qu&&Pr(new qu)!=an)&&(Pr=function(l){var c=Tr(l),v=c==Wt?l.constructor:n,C=v?la(v):"";if(C)switch(C){case wh:return pt;case Zs:return wt;case k0:return bt;case Wl:return Et;case Ki:return an}return c});function Qh(l,c,v){for(var C=-1,N=v.length;++C<N;){var F=v[C],W=F.size;switch(F.type){case"drop":l+=W;break;case"dropRight":c-=W;break;case"take":c=Lr(c,l+W);break;case"takeRight":l=ur(l,c-W);break}}return{start:l,end:c}}function q0(l){var c=l.match(qe);return c?c[1].split(ft):[]}function Jh(l,c,v){c=ts(c,l);for(var C=-1,N=c.length,F=!1;++C<N;){var W=Ci(c[C]);if(!(F=l!=null&&v(l,W)))break;l=l[W]}return F||++C!=N?F:(N=l==null?0:l.length,!!N&&mv(N)&&Vn(W,N)&&(Xt(l)||_c(l)))}function pc(l){var c=l.length,v=new l.constructor(c);return c&&typeof l[0]=="string"&&xn.call(l,"index")&&(v.index=l.index,v.input=l.input),v}function Ir(l){return typeof l.constructor=="function"&&!ks(l)?Gl(bi(l)):{}}function Wy(l,c,v){var C=l.constructor;switch(c){case fn:return sc(l);case Ce:case Fe:return new C(+l);case pt:return F0(l,v);case We:case jt:case hn:case Mn:case et:case Pt:case Be:case tt:case At:return U0(l,v);case wt:return new C;case yt:case en:return new C(l);case Dt:return z0(l);case Et:return new C;case Kt:return B0(l)}}function Gy(l,c){var v=c.length;if(!v)return l;var C=v-1;return c[C]=(v>1?"& ":"")+c[C],c=c.join(v>2?", ":" "),l.replace(ke,`{
9
+ /* [wrapped with `+c+`] */
10
+ `)}function vf(l){return Xt(l)||_c(l)||!!(C0&&l&&l[C0])}function Vn(l,c){var v=typeof l;return c=c??U,!!c&&(v=="number"||v!="symbol"&&St.test(l))&&l>-1&&l%1==0&&l<c}function eo(l,c,v){if(!or(v))return!1;var C=typeof c;return(C=="number"?ti(v)&&Vn(c,v.length):C=="string"&&c in v)?Os(v[c],l):!1}function ht(l,c){if(Xt(l))return!1;var v=typeof l;return v=="number"||v=="symbol"||v=="boolean"||l==null||ki(l)?!0:wr.test(l)||!Bo.test(l)||c!=null&&l in Nn(c)}function su(l){var c=typeof l;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?l!=="__proto__":l===null}function hc(l){var c=iu(l),v=j[c];if(typeof v!="function"||!(c in Vt.prototype))return!1;if(l===v)return!0;var C=mf(v);return!!C&&l===C[0]}function Y0(l){return!!Dd&&Dd in l}var Ky=jl?rl:yx;function ks(l){var c=l&&l.constructor,v=typeof c=="function"&&c.prototype||Gi;return l===v}function mc(l){return l===l&&!or(l)}function bf(l,c){return function(v){return v==null?!1:v[l]===c&&(c!==n||l in Nn(v))}}function Q0(l){var c=me(l,function(C){return v.size===h&&v.clear(),C}),v=c.cache;return c}function J0(l,c){var v=l[1],C=c[1],N=v|C,F=N<(T|P|z),W=C==z&&v==D||C==z&&v==G&&l[7].length<=c[8]||C==(z|G)&&c[7].length<=c[8]&&v==D;if(!(F||W))return l;C&T&&(l[2]=c[2],N|=v&T?0:I);var J=c[3];if(J){var le=l[3];l[3]=le?H0(le,J,c[4]):J,l[4]=le?Ho(l[3],g):c[4]}return J=c[5],J&&(le=l[5],l[5]=le?Bh(le,J,c[6]):J,l[6]=le?Ho(l[5],g):c[6]),J=c[7],J&&(l[7]=J),C&z&&(l[8]=l[8]==null?c[8]:Lr(l[8],c[8])),l[9]==null&&(l[9]=c[9]),l[0]=c[0],l[1]=N,l}function Z0(l){var c=[];if(l!=null)for(var v in Nn(l))c.push(v);return c}function Zh(l){return Uu.call(l)}function yf(l,c,v){return c=ur(c===n?l.length-1:c,0),function(){for(var C=arguments,N=-1,F=ur(C.length-c,0),W=we(F);++N<F;)W[N]=C[c+N];N=-1;for(var J=we(c+1);++N<c;)J[N]=C[N];return J[c]=v(W),Yr(l,this,J)}}function _r(l,c){return c.length<2?l:xs(l,Hr(c,0,-1))}function wi(l,c){for(var v=l.length,C=Lr(c.length,v),N=Jr(l);C--;){var F=c[C];l[C]=Vn(F,v)?N[F]:n}return l}function os(l,c){if(!(c==="constructor"&&typeof l[c]=="function")&&c!="__proto__")return l[c]}var em=_i(nf),au=xh||function(l,c){return Gn.setTimeout(l,c)},Oo=_i(es);function tm(l,c,v){var C=c+"";return Oo(l,Gy(C,ev(q0(C),v)))}function _i(l){var c=0,v=0;return function(){var C=By(),N=Z-(C-v);if(v=C,N>0){if(++c>=Q)return arguments[0]}else c=0;return l.apply(n,arguments)}}function xf(l,c){var v=-1,C=l.length,N=C-1;for(c=c===n?C:c;++v<c;){var F=Jl(v,N),W=l[F];l[F]=l[v],l[v]=W}return l.length=c,l}var nm=Q0(function(l){var c=[];return l.charCodeAt(0)===46&&c.push(""),l.replace(jn,function(v,C,N,F){c.push(N?F.replace(Tt,"$1"):C||v)}),c});function Ci(l){if(typeof l=="string"||ki(l))return l;var c=l+"";return c=="0"&&1/l==-se?"-0":c}function la(l){if(l!=null){try{return Bu.call(l)}catch{}try{return l+""}catch{}}return""}function ev(l,c){return Mr(Ie,function(v){var C="_."+v[0];c&v[1]&&!kd(l,C)&&l.push(C)}),l.sort()}function tv(l){if(l instanceof Vt)return l.clone();var c=new jr(l.__wrapped__,l.__chain__);return c.__actions__=Jr(l.__actions__),c.__index__=l.__index__,c.__values__=l.__values__,c}function Sf(l,c,v){(v?eo(l,c,v):c===n)?c=1:c=ur(Qt(c),0);var C=l==null?0:l.length;if(!C||c<1)return[];for(var N=0,F=0,W=we(ja(C/c));N<C;)W[F++]=Hr(l,N,N+=c);return W}function rm(l){for(var c=-1,v=l==null?0:l.length,C=0,N=[];++c<v;){var F=l[c];F&&(N[C++]=F)}return N}function Zo(){var l=arguments.length;if(!l)return[];for(var c=we(l-1),v=arguments[0],C=l;C--;)c[C-1]=arguments[C];return qs(Xt(v)?Jr(v):[v],er(c,1))}var gn=Yt(function(l,c){return vr(l)?Qi(l,er(c,1,vr,!0)):[]}),Cr=Yt(function(l,c){var v=to(c);return vr(v)&&(v=n),vr(l)?Qi(l,er(c,1,vr,!0),It(v,2)):[]}),cr=Yt(function(l,c){var v=to(c);return vr(v)&&(v=n),vr(l)?Qi(l,er(c,1,vr,!0),n,v):[]});function Ar(l,c,v){var C=l==null?0:l.length;return C?(c=v||c===n?1:Qt(c),Hr(l,c<0?0:c,C)):[]}function Po(l,c,v){var C=l==null?0:l.length;return C?(c=v||c===n?1:Qt(c),c=C-c,Hr(l,0,c<0?0:c)):[]}function lu(l,c){return l&&l.length?oc(l,It(c,3),!0,!0):[]}function gr(l,c){return l&&l.length?oc(l,It(c,3),!0):[]}function gc(l,c,v,C){var N=l==null?0:l.length;return N?(v&&typeof v!="number"&&eo(l,c,v)&&(v=0,C=N),$0(l,c,v,C)):[]}function ua(l,c,v){var C=l==null?0:l.length;if(!C)return-1;var N=v==null?0:Qt(v);return N<0&&(N=ur(C+N,0)),Td(l,It(c,3),N)}function vc(l,c,v){var C=l==null?0:l.length;if(!C)return-1;var N=C-1;return v!==n&&(N=Qt(v),N=v<0?ur(C+N,0):Lr(N,C-1)),Td(l,It(c,3),N,!0)}function wf(l){var c=l==null?0:l.length;return c?er(l,1):[]}function bc(l){var c=l==null?0:l.length;return c?er(l,se):[]}function fo(l,c){var v=l==null?0:l.length;return v?(c=c===n?1:Qt(c),er(l,c)):[]}function om(l){for(var c=-1,v=l==null?0:l.length,C={};++c<v;){var N=l[c];C[N[0]]=N[1]}return C}function Qa(l){return l&&l.length?l[0]:n}function Ts(l,c,v){var C=l==null?0:l.length;if(!C)return-1;var N=v==null?0:Qt(v);return N<0&&(N=ur(C+N,0)),Nl(l,c,N)}function _f(l){var c=l==null?0:l.length;return c?Hr(l,0,-1):[]}var im=Yt(function(l){var c=Fn(l,tu);return c.length&&c[0]===l[0]?Qd(c):[]}),ca=Yt(function(l){var c=to(l),v=Fn(l,tu);return c===to(v)?c=n:v.pop(),v.length&&v[0]===l[0]?Qd(v,It(c,2)):[]}),Cf=Yt(function(l){var c=to(l),v=Fn(l,tu);return c=typeof c=="function"?c:n,c&&v.pop(),v.length&&v[0]===l[0]?Qd(v,n,c):[]});function da(l,c){return l==null?"":Fd.call(l,c)}function to(l){var c=l==null?0:l.length;return c?l[c-1]:n}function yc(l,c,v){var C=l==null?0:l.length;if(!C)return-1;var N=C;return v!==n&&(N=Qt(v),N=N<0?ur(C+N,0):Lr(N,C-1)),c===c?Ly(l,c,N):Td(l,c0,N,!0)}function sm(l,c){return l&&l.length?tf(l,Qt(c)):n}var Ef=Yt(xc);function xc(l,c){return l&&l.length&&c&&c.length?nr(l,c):l}function no(l,c,v){return l&&l.length&&c&&c.length?nr(l,c,It(v,2)):l}function fa(l,c,v){return l&&l.length&&c&&c.length?nr(l,c,n,v):l}var Ei=rs(function(l,c){var v=l==null?0:l.length,C=Xd(l,c);return mr(l,Fn(c,function(N){return Vn(N,v)?+N:N}).sort(zh)),C});function po(l,c){var v=[];if(!(l&&l.length))return v;var C=-1,N=[],F=l.length;for(c=It(c,3);++C<F;){var W=l[C];c(W,C,l)&&(v.push(W),N.push(C))}return mr(l,N),v}function Rf(l){return l==null?l:zd.call(l)}function am(l,c,v){var C=l==null?0:l.length;return C?(v&&typeof v!="number"&&eo(l,c,v)?(c=0,v=C):(c=c==null?0:Qt(c),v=v===n?C:Qt(v)),Hr(l,c,v)):[]}function lm(l,c){return Zl(l,c)}function Vy(l,c,v){return rf(l,c,It(v,2))}function pa(l,c){var v=l==null?0:l.length;if(v){var C=Zl(l,c);if(C<v&&Os(l[C],c))return C}return-1}function nv(l,c){return Zl(l,c,!0)}function um(l,c,v){return rf(l,c,It(v,2),!0)}function Ja(l,c){var v=l==null?0:l.length;if(v){var C=Zl(l,c,!0)-1;if(Os(l[C],c))return C}return-1}function cm(l){return l&&l.length?$h(l):[]}function Za(l,c){return l&&l.length?$h(l,It(c,2)):[]}function rv(l){var c=l==null?0:l.length;return c?Hr(l,1,c):[]}function ov(l,c,v){return l&&l.length?(c=v||c===n?1:Qt(c),Hr(l,0,c<0?0:c)):[]}function dm(l,c,v){var C=l==null?0:l.length;return C?(c=v||c===n?1:Qt(c),c=C-c,Hr(l,c<0?0:c,C)):[]}function kf(l,c){return l&&l.length?oc(l,It(c,3),!1,!0):[]}function Xy(l,c){return l&&l.length?oc(l,It(c,3)):[]}var qy=Yt(function(l){return Cs(er(l,1,vr,!0))}),iv=Yt(function(l){var c=to(l);return vr(c)&&(c=n),Cs(er(l,1,vr,!0),It(c,2))}),sv=Yt(function(l){var c=to(l);return c=typeof c=="function"?c:n,Cs(er(l,1,vr,!0),n,c)});function el(l){return l&&l.length?Cs(l):[]}function Yy(l,c){return l&&l.length?Cs(l,It(c,2)):[]}function uu(l,c){return c=typeof c=="function"?c:n,l&&l.length?Cs(l,n,c):[]}function Tf(l){if(!(l&&l.length))return[];var c=0;return l=Xs(l,function(v){if(vr(v))return c=ur(v.length,c),!0}),mh(c,function(v){return Fn(l,ph(v))})}function Qn(l,c){if(!(l&&l.length))return[];var v=Tf(l);return c==null?v:Fn(v,function(C){return Yr(c,n,C)})}var Qy=Yt(function(l,c){return vr(l)?Qi(l,c):[]}),av=Yt(function(l){return sf(Xs(l,vr))}),Jy=Yt(function(l){var c=to(l);return vr(c)&&(c=n),sf(Xs(l,vr),It(c,2))}),Zy=Yt(function(l){var c=to(l);return c=typeof c=="function"?c:n,sf(Xs(l,vr),n,c)}),lv=Yt(Tf);function uv(l,c){return ic(l||[],c||[],Ha)}function ex(l,c){return ic(l||[],c||[],Xa)}var ei=Yt(function(l){var c=l.length,v=c>1?l[c-1]:n;return v=typeof v=="function"?(l.pop(),v):n,Qn(l,v)});function Of(l){var c=j(l);return c.__chain__=!0,c}function tx(l,c){return c(l),l}function Ri(l,c){return c(l)}var Pf=rs(function(l){var c=l.length,v=c?l[0]:0,C=this.__wrapped__,N=function(F){return Xd(F,l)};return c>1||this.__actions__.length||!(C instanceof Vt)||!Vn(v)?this.thru(N):(C=C.slice(v,+v+(c?1:0)),C.__actions__.push({func:Ri,args:[N],thisArg:n}),new jr(C,this.__chain__).thru(function(F){return c&&!F.length&&F.push(n),F}))});function tl(){return Of(this)}function If(){return new jr(this.value(),this.__chain__)}function fm(){this.__values__===n&&(this.__values__=P2(this.value()));var l=this.__index__>=this.__values__.length,c=l?n:this.__values__[this.__index__++];return{done:l,value:c}}function pm(){return this}function nx(l){for(var c,v=this;v instanceof Vi;){var C=tv(v);C.__index__=0,C.__values__=n,c?N.__wrapped__=C:c=C;var N=C;v=v.__wrapped__}return N.__wrapped__=l,c}function hm(){var l=this.__wrapped__;if(l instanceof Vt){var c=l;return this.__actions__.length&&(c=new Vt(this)),c=c.reverse(),c.__actions__.push({func:Ri,args:[Rf],thisArg:n}),new jr(c,this.__chain__)}return this.thru(Rf)}function rx(){return eu(this.__wrapped__,this.__actions__)}var cv=uf(function(l,c,v){xn.call(l,v)?++l[v]:Yi(l,v,1)});function dv(l,c,v){var C=Xt(l)?lh:Ju;return v&&eo(l,c,v)&&(c=n),C(l,It(c,3))}function Af(l,c){var v=Xt(l)?Xs:Rh;return v(l,It(c,3))}var Df=Ya(ua),fv=Ya(vc);function mm(l,c){return er(nl(l,c),1)}function ox(l,c){return er(nl(l,c),se)}function pv(l,c,v){return v=v===n?1:Qt(v),er(nl(l,c),v)}function Nf(l,c){var v=Xt(l)?Mr:Ji;return v(l,It(c,3))}function Sc(l,c){var v=Xt(l)?Rd:N0;return v(l,It(c,3))}var gm=uf(function(l,c,v){xn.call(l,v)?l[v].push(c):Yi(l,v,[c])});function $f(l,c,v,C){l=ti(l)?l:jf(l),v=v&&!C?Qt(v):0;var N=l.length;return v<0&&(v=ur(N+v,0)),gv(l)?v<=N&&l.indexOf(c,v)>-1:!!N&&Nl(l,c,v)>-1}var hv=Yt(function(l,c,v){var C=-1,N=typeof c=="function",F=ti(l)?we(l.length):[];return Ji(l,function(W){F[++C]=N?Yr(c,W,v):qo(W,c,v)}),F}),ix=uf(function(l,c,v){Yi(l,v,c)});function nl(l,c){var v=Xt(l)?Fn:Ph;return v(l,It(c,3))}function sx(l,c,v,C){return l==null?[]:(Xt(c)||(c=c==null?[]:[c]),v=C?n:v,Xt(v)||(v=v==null?[]:[v]),nc(l,c,v))}var wc=uf(function(l,c,v){l[v?0:1].push(c)},function(){return[[],[]]});function ax(l,c,v){var C=Xt(l)?ch:f0,N=arguments.length<3;return C(l,It(c,4),v,N,Ji)}function Mf(l,c,v){var C=Xt(l)?Oy:f0,N=arguments.length<3;return C(l,It(c,4),v,N,N0)}function o(l,c){var v=Xt(l)?Xs:Rh;return v(l,Xe(It(c,3)))}function s(l){var c=Xt(l)?qi:Ur;return c(l)}function d(l,c,v){(v?eo(l,c,v):c===n)?c=1:c=Qt(c);var C=Xt(l)?Ua:Dh;return C(l,c)}function m(l){var c=Xt(l)?A0:Qo;return c(l)}function y(l){if(l==null)return 0;if(ti(l))return gv(l)?Ma(l):l.length;var c=Pr(l);return c==wt||c==Et?l.size:_s(l).length}function _(l,c,v){var C=Xt(l)?dh:Nh;return v&&eo(l,c,v)&&(c=n),C(l,It(c,3))}var $=Yt(function(l,c){if(l==null)return[];var v=c.length;return v>1&&eo(l,c[0],c[1])?c=[]:v>2&&eo(c[0],c[1],c[2])&&(c=[c[0]]),nc(l,er(c,1),[])}),B=Bn||function(){return Gn.Date.now()};function Y(l,c){if(typeof c!="function")throw new Wo(u);return l=Qt(l),function(){if(--l<1)return c.apply(this,arguments)}}function _e(l,c,v){return c=v?n:c,c=l&&c==null?l.length:c,ns(l,z,n,n,n,n,c)}function ze(l,c){var v;if(typeof c!="function")throw new Wo(u);return l=Qt(l),function(){return--l>0&&(v=c.apply(this,arguments)),l<=1&&(c=n),v}}var Ge=Yt(function(l,c,v){var C=T;if(v.length){var N=Ho(v,Rs(Ge));C|=L}return ns(l,C,c,v,N)}),Le=Yt(function(l,c,v){var C=T|P;if(v.length){var N=Ho(v,Rs(Le));C|=L}return ns(c,C,l,v,N)});function dt(l,c,v){c=v?n:c;var C=ns(l,D,n,n,n,n,n,c);return C.placeholder=dt.placeholder,C}function gt(l,c,v){c=v?n:c;var C=ns(l,M,n,n,n,n,n,c);return C.placeholder=gt.placeholder,C}function xt(l,c,v){var C,N,F,W,J,le,De=0,Ne=!1,Ue=!1,lt=!0;if(typeof l!="function")throw new Wo(u);c=is(c)||0,or(v)&&(Ne=!!v.leading,Ue="maxWait"in v,F=Ue?ur(is(v.maxWait)||0,c):F,lt="trailing"in v?!!v.trailing:lt);function Rt(br){var Ps=C,il=N;return C=N=n,De=br,W=l.apply(il,Ps),W}function $t(br){return De=br,J=au(dn,c),Ne?Rt(br):W}function tn(br){var Ps=br-le,il=br-De,H2=c-Ps;return Ue?Lr(H2,F-il):H2}function Mt(br){var Ps=br-le,il=br-De;return le===n||Ps>=c||Ps<0||Ue&&il>=F}function dn(){var br=B();if(Mt(br))return vn(br);J=au(dn,tn(br))}function vn(br){return J=n,lt&&C?Rt(br):(C=N=n,W)}function Ti(){J!==n&&jh(J),De=0,C=le=N=J=n}function Io(){return J===n?W:vn(B())}function Oi(){var br=B(),Ps=Mt(br);if(C=arguments,N=this,le=br,Ps){if(J===n)return $t(le);if(Ue)return jh(J),J=au(dn,c),Rt(le)}return J===n&&(J=au(dn,c)),W}return Oi.cancel=Ti,Oi.flush=Io,Oi}var rr=Yt(function(l,c){return Eh(l,1,c)}),de=Yt(function(l,c,v){return Eh(l,is(c)||0,v)});function te(l){return ns(l,q)}function me(l,c){if(typeof l!="function"||c!=null&&typeof c!="function")throw new Wo(u);var v=function(){var C=arguments,N=c?c.apply(this,C):C[0],F=v.cache;if(F.has(N))return F.get(N);var W=l.apply(this,C);return v.cache=F.set(N,W)||F,W};return v.cache=new(me.Cache||Go),v}me.Cache=Go;function Xe(l){if(typeof l!="function")throw new Wo(u);return function(){var c=arguments;switch(c.length){case 0:return!l.call(this);case 1:return!l.call(this,c[0]);case 2:return!l.call(this,c[0],c[1]);case 3:return!l.call(this,c[0],c[1],c[2])}return!l.apply(this,c)}}function _t(l){return ze(2,l)}var Ot=j0(function(l,c){c=c.length==1&&Xt(c[0])?Fn(c[0],Co(It())):Fn(er(c,1),Co(It()));var v=c.length;return Yt(function(C){for(var N=-1,F=Lr(C.length,v);++N<F;)C[N]=c[N].call(this,C[N]);return Yr(l,this,C)})}),kt=Yt(function(l,c){var v=Ho(c,Rs(kt));return ns(l,L,n,c,v)}),Nt=Yt(function(l,c){var v=Ho(c,Rs(Nt));return ns(l,A,n,c,v)}),Er=rs(function(l,c){return ns(l,G,n,n,n,c)});function Sn(l,c){if(typeof l!="function")throw new Wo(u);return c=c===n?c:Qt(c),Yt(l,c)}function ha(l,c){if(typeof l!="function")throw new Wo(u);return c=c==null?0:ur(Qt(c),0),Yt(function(v){var C=v[c],N=Es(v,0,c);return C&&qs(N,C),Yr(l,this,N)})}function lx(l,c,v){var C=!0,N=!0;if(typeof l!="function")throw new Wo(u);return or(v)&&(C="leading"in v?!!v.leading:C,N="trailing"in v?!!v.trailing:N),xt(l,c,{leading:C,maxWait:c,trailing:N})}function rH(l){return _e(l,1)}function oH(l,c){return kt(af(c),l)}function iH(){if(!arguments.length)return[];var l=arguments[0];return Xt(l)?l:[l]}function sH(l){return uo(l,k)}function aH(l,c){return c=typeof c=="function"?c:n,uo(l,k,c)}function lH(l){return uo(l,b|k)}function uH(l,c){return c=typeof c=="function"?c:n,uo(l,b|k,c)}function cH(l,c){return c==null||Qu(l,c,Wr(c))}function Os(l,c){return l===c||l!==l&&c!==c}var dH=hf(oa),fH=hf(function(l,c){return l>=c}),_c=Jd(function(){return arguments}())?Jd:function(l){return dr(l)&&xn.call(l,"callee")&&!Md.call(l,"callee")},Xt=we.isArray,pH=sh?Co(sh):M0;function ti(l){return l!=null&&mv(l.length)&&!rl(l)}function vr(l){return dr(l)&&ti(l)}function hH(l){return l===!0||l===!1||dr(l)&&Tr(l)==Ce}var cu=Sh||yx,mH=io?Co(io):ws;function gH(l){return dr(l)&&l.nodeType===1&&!vm(l)}function vH(l){if(l==null)return!0;if(ti(l)&&(Xt(l)||typeof l=="string"||typeof l.splice=="function"||cu(l)||Lf(l)||_c(l)))return!l.length;var c=Pr(l);if(c==wt||c==Et)return!l.size;if(ks(l))return!_s(l).length;for(var v in l)if(xn.call(l,v))return!1;return!0}function bH(l,c){return Yo(l,c)}function yH(l,c,v){v=typeof v=="function"?v:n;var C=v?v(l,c):n;return C===n?Yo(l,c,n,v):!!C}function ux(l){if(!dr(l))return!1;var c=Tr(l);return c==it||c==mt||typeof l.message=="string"&&typeof l.name=="string"&&!vm(l)}function xH(l){return typeof l=="number"&&zl(l)}function rl(l){if(!or(l))return!1;var c=Tr(l);return c==Qe||c==vt||c==Ye||c==sn}function R2(l){return typeof l=="number"&&l==Qt(l)}function mv(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=U}function or(l){var c=typeof l;return l!=null&&(c=="object"||c=="function")}function dr(l){return l!=null&&typeof l=="object"}var k2=$a?Co($a):L0;function SH(l,c){return l===c||Yl(l,c,fc(c))}function wH(l,c,v){return v=typeof v=="function"?v:n,Yl(l,c,fc(c),v)}function _H(l){return T2(l)&&l!=+l}function CH(l){if(Ky(l))throw new Bt(a);return Th(l)}function EH(l){return l===null}function RH(l){return l==null}function T2(l){return typeof l=="number"||dr(l)&&Tr(l)==yt}function vm(l){if(!dr(l)||Tr(l)!=Wt)return!1;var c=bi(l);if(c===null)return!0;var v=xn.call(c,"constructor")&&c.constructor;return typeof v=="function"&&v instanceof v&&Bu.call(v)==Nd}var cx=Ed?Co(Ed):ec;function kH(l){return R2(l)&&l>=-U&&l<=U}var O2=Dl?Co(Dl):Zi;function gv(l){return typeof l=="string"||!Xt(l)&&dr(l)&&Tr(l)==en}function ki(l){return typeof l=="symbol"||dr(l)&&Tr(l)==Kt}var Lf=a0?Co(a0):tc;function TH(l){return l===n}function OH(l){return dr(l)&&Pr(l)==an}function PH(l){return dr(l)&&Tr(l)==Tn}var IH=hf(ia),AH=hf(function(l,c){return l<=c});function P2(l){if(!l)return[];if(ti(l))return gv(l)?Eo(l):Jr(l);if(vs&&l[vs])return $y(l[vs]());var c=Pr(l),v=c==wt?Pd:c==Et?Ys:jf;return v(l)}function ol(l){if(!l)return l===0?l:0;if(l=is(l),l===se||l===-se){var c=l<0?-1:1;return c*ae}return l===l?l:0}function Qt(l){var c=ol(l),v=c%1;return c===c?v?c-v:c:0}function I2(l){return l?ys(Qt(l),0,H):0}function is(l){if(typeof l=="number")return l;if(ki(l))return Se;if(or(l)){var c=typeof l.valueOf=="function"?l.valueOf():l;l=or(c)?c+"":c}if(typeof l!="string")return l===0?l:+l;l=p0(l);var v=Ae.test(l);return v||He.test(l)?_d(l.slice(2),v?2:8):je.test(l)?Se:+l}function A2(l){return xi(l,ni(l))}function DH(l){return l?ys(Qt(l),-U,U):l===0?l:0}function $n(l){return l==null?"":co(l)}var NH=nu(function(l,c){if(ks(c)||ti(c)){xi(c,Wr(c),l);return}for(var v in c)xn.call(c,v)&&Ha(l,v,c[v])}),D2=nu(function(l,c){xi(c,ni(c),l)}),vv=nu(function(l,c,v,C){xi(c,ni(c),l,C)}),$H=nu(function(l,c,v,C){xi(c,Wr(c),l,C)}),MH=rs(Xd);function LH(l,c){var v=Gl(l);return c==null?v:Hn(v,c)}var jH=Yt(function(l,c){l=Nn(l);var v=-1,C=c.length,N=C>2?c[2]:n;for(N&&eo(c[0],c[1],N)&&(C=1);++v<C;)for(var F=c[v],W=ni(F),J=-1,le=W.length;++J<le;){var De=W[J],Ne=l[De];(Ne===n||Os(Ne,Gi[De])&&!xn.call(l,De))&&(l[De]=F[De])}return l}),FH=Yt(function(l){return l.push(n,Vh),Yr(N2,n,l)});function zH(l,c){return u0(l,It(c,3),To)}function BH(l,c){return u0(l,It(c,3),ra)}function UH(l,c){return l==null?l:qd(l,It(c,3),ni)}function HH(l,c){return l==null?l:Zu(l,It(c,3),ni)}function WH(l,c){return l&&To(l,It(c,3))}function GH(l,c){return l&&ra(l,It(c,3))}function KH(l){return l==null?[]:ql(l,Wr(l))}function VH(l){return l==null?[]:ql(l,ni(l))}function dx(l,c,v){var C=l==null?n:xs(l,c);return C===n?v:C}function XH(l,c){return l!=null&&Jh(l,c,Xo)}function fx(l,c){return l!=null&&Jh(l,c,Ga)}var qH=W0(function(l,c,v){c!=null&&typeof c.toString!="function"&&(c=Uu.call(c)),l[c]=v},hx(ri)),YH=W0(function(l,c,v){c!=null&&typeof c.toString!="function"&&(c=Uu.call(c)),xn.call(l,c)?l[c].push(v):l[c]=[v]},It),QH=Yt(qo);function Wr(l){return ti(l)?Xi(l):_s(l)}function ni(l){return ti(l)?Xi(l,!0):Oh(l)}function JH(l,c){var v={};return c=It(c,3),To(l,function(C,N,F){Yi(v,c(C,N,F),C)}),v}function ZH(l,c){var v={};return c=It(c,3),To(l,function(C,N,F){Yi(v,N,c(C,N,F))}),v}var eW=nu(function(l,c,v){Ka(l,c,v)}),N2=nu(function(l,c,v,C){Ka(l,c,v,C)}),tW=rs(function(l,c){var v={};if(l==null)return v;var C=!1;c=Fn(c,function(F){return F=ts(F,l),C||(C=F.length>1),F}),xi(l,cc(l),v),C&&(v=uo(v,b|x|k,Xh));for(var N=c.length;N--;)of(v,c[N]);return v});function nW(l,c){return $2(l,Xe(It(c)))}var rW=rs(function(l,c){return l==null?{}:Ah(l,c)});function $2(l,c){if(l==null)return{};var v=Fn(cc(l),function(C){return[C]});return c=It(c),sa(l,v,function(C,N){return c(C,N[0])})}function oW(l,c,v){c=ts(c,l);var C=-1,N=c.length;for(N||(N=1,l=n);++C<N;){var F=l==null?n:l[Ci(c[C])];F===n&&(C=N,F=v),l=rl(F)?F.call(l):F}return l}function iW(l,c,v){return l==null?l:Xa(l,c,v)}function sW(l,c,v,C){return C=typeof C=="function"?C:n,l==null?l:Xa(l,c,v,C)}var M2=Gh(Wr),L2=Gh(ni);function aW(l,c,v){var C=Xt(l),N=C||cu(l)||Lf(l);if(c=It(c,4),v==null){var F=l&&l.constructor;N?v=C?new F:[]:or(l)?v=rl(F)?Gl(bi(l)):{}:v={}}return(N?Mr:To)(l,function(W,J,le){return c(v,W,J,le)}),v}function lW(l,c){return l==null?!0:of(l,c)}function uW(l,c,v){return l==null?l:Lh(l,c,af(v))}function cW(l,c,v,C){return C=typeof C=="function"?C:n,l==null?l:Lh(l,c,af(v),C)}function jf(l){return l==null?[]:Fu(l,Wr(l))}function dW(l){return l==null?[]:Fu(l,ni(l))}function fW(l,c,v){return v===n&&(v=c,c=n),v!==n&&(v=is(v),v=v===v?v:0),c!==n&&(c=is(c),c=c===c?c:0),ys(is(l),c,v)}function pW(l,c,v){return c=ol(c),v===n?(v=c,c=0):v=ol(v),l=is(l),kh(l,c,v)}function hW(l,c,v){if(v&&typeof v!="boolean"&&eo(l,c,v)&&(c=v=n),v===n&&(typeof c=="boolean"?(v=c,c=n):typeof l=="boolean"&&(v=l,l=n)),l===n&&c===n?(l=0,c=1):(l=ol(l),c===n?(c=l,l=0):c=ol(c)),l>c){var C=l;l=c,c=C}if(v||l%1||c%1){var N=Ku();return Lr(l+N*(c-l+oh("1e-"+((N+"").length-1))),c)}return Jl(l,c)}var mW=qa(function(l,c,v){return c=c.toLowerCase(),l+(v?j2(c):c)});function j2(l){return px($n(l).toLowerCase())}function F2(l){return l=$n(l),l&&l.replace(ln,g0).replace(r0,"")}function gW(l,c,v){l=$n(l),c=co(c);var C=l.length;v=v===n?C:ys(Qt(v),0,C);var N=v;return v-=c.length,v>=0&&l.slice(v,N)==c}function vW(l){return l=$n(l),l&&$r.test(l)?l.replace(Dn,v0):l}function bW(l){return l=$n(l),l&&K.test(l)?l.replace(bn,"\\$&"):l}var yW=qa(function(l,c,v){return l+(v?"-":"")+c.toLowerCase()}),xW=qa(function(l,c,v){return l+(v?" ":"")+c.toLowerCase()}),SW=Uh("toLowerCase");function wW(l,c,v){l=$n(l),c=Qt(c);var C=c?Ma(l):0;if(!c||C>=c)return l;var N=(c-C)/2;return lc(Qs(N),v)+l+lc(ja(N),v)}function _W(l,c,v){l=$n(l),c=Qt(c);var C=c?Ma(l):0;return c&&C<c?l+lc(c-C,v):l}function CW(l,c,v){l=$n(l),c=Qt(c);var C=c?Ma(l):0;return c&&C<c?lc(c-C,v)+l:l}function EW(l,c,v){return v||c==null?c=0:c&&(c=+c),R0($n(l).replace(ee,""),c||0)}function RW(l,c,v){return(v?eo(l,c,v):c===n)?c=1:c=Qt(c),Va($n(l),c)}function kW(){var l=arguments,c=$n(l[0]);return l.length<3?c:c.replace(l[1],l[2])}var TW=qa(function(l,c,v){return l+(v?"_":"")+c.toLowerCase()});function OW(l,c,v){return v&&typeof v!="number"&&eo(l,c,v)&&(c=v=n),v=v===n?H:v>>>0,v?(l=$n(l),l&&(typeof c=="string"||c!=null&&!cx(c))&&(c=co(c),!c&&Ml(l))?Es(Eo(l),0,v):l.split(c,v)):[]}var PW=qa(function(l,c,v){return l+(v?" ":"")+px(c)});function IW(l,c,v){return l=$n(l),v=v==null?0:ys(Qt(v),0,l.length),c=co(c),l.slice(v,v+c.length)==c}function AW(l,c,v){var C=j.templateSettings;v&&eo(l,c,v)&&(c=n),l=$n(l),c=vv({},c,C,Kh);var N=vv({},c.imports,C.imports,Kh),F=Wr(N),W=Fu(N,F),J,le,De=0,Ne=c.interpolate||Vr,Ue="__p += '",lt=zu((c.escape||Vr).source+"|"+Ne.source+"|"+(Ne===zo?oe:Vr).source+"|"+(c.evaluate||Vr).source+"|$","g"),Rt="//# sourceURL="+(xn.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ry+"]")+`
11
+ `;l.replace(lt,function(Mt,dn,vn,Ti,Io,Oi){return vn||(vn=Ti),Ue+=l.slice(De,Oi).replace(Bi,b0),dn&&(J=!0,Ue+=`' +
12
+ __e(`+dn+`) +
13
+ '`),Io&&(le=!0,Ue+=`';
14
+ `+Io+`;
15
+ __p += '`),vn&&(Ue+=`' +
16
+ ((__t = (`+vn+`)) == null ? '' : __t) +
17
+ '`),De=Oi+Mt.length,Mt}),Ue+=`';
18
+ `;var $t=xn.call(c,"variable")&&c.variable;if(!$t)Ue=`with (obj) {
19
+ `+Ue+`
20
+ }
21
+ `;else if(Ve.test($t))throw new Bt(f);Ue=(le?Ue.replace(Ft,""):Ue).replace(Gt,"$1").replace(pn,"$1;"),Ue="function("+($t||"obj")+`) {
22
+ `+($t?"":`obj || (obj = {});
23
+ `)+"var __t, __p = ''"+(J?", __e = _.escape":"")+(le?`, __j = Array.prototype.join;
24
+ function print() { __p += __j.call(arguments, '') }
25
+ `:`;
26
+ `)+Ue+`return __p
27
+ }`;var tn=B2(function(){return yn(F,Rt+"return "+Ue).apply(n,W)});if(tn.source=Ue,ux(tn))throw tn;return tn}function DW(l){return $n(l).toLowerCase()}function NW(l){return $n(l).toUpperCase()}function $W(l,c,v){if(l=$n(l),l&&(v||c===n))return p0(l);if(!l||!(c=co(c)))return l;var C=Eo(l),N=Eo(c),F=h0(C,N),W=gh(C,N)+1;return Es(C,F,W).join("")}function MW(l,c,v){if(l=$n(l),l&&(v||c===n))return l.slice(0,Ad(l)+1);if(!l||!(c=co(c)))return l;var C=Eo(l),N=gh(C,Eo(c))+1;return Es(C,0,N).join("")}function LW(l,c,v){if(l=$n(l),l&&(v||c===n))return l.replace(ee,"");if(!l||!(c=co(c)))return l;var C=Eo(l),N=h0(C,Eo(c));return Es(C,N).join("")}function jW(l,c){var v=X,C=ne;if(or(c)){var N="separator"in c?c.separator:N;v="length"in c?Qt(c.length):v,C="omission"in c?co(c.omission):C}l=$n(l);var F=l.length;if(Ml(l)){var W=Eo(l);F=W.length}if(v>=F)return l;var J=v-Ma(C);if(J<1)return C;var le=W?Es(W,0,J).join(""):l.slice(0,J);if(N===n)return le+C;if(W&&(J+=le.length-J),cx(N)){if(l.slice(J).search(N)){var De,Ne=le;for(N.global||(N=zu(N.source,$n(re.exec(N))+"g")),N.lastIndex=0;De=N.exec(Ne);)var Ue=De.index;le=le.slice(0,Ue===n?J:Ue)}}else if(l.indexOf(co(N),J)!=J){var lt=le.lastIndexOf(N);lt>-1&&(le=le.slice(0,lt))}return le+C}function FW(l){return l=$n(l),l&&Ln.test(l)?l.replace(cn,y0):l}var zW=qa(function(l,c,v){return l+(v?" ":"")+c.toUpperCase()}),px=Uh("toUpperCase");function z2(l,c,v){return l=$n(l),c=v?n:c,c===n?Ny(l)?jy(l):Iy(l):l.match(c)||[]}var B2=Yt(function(l,c){try{return Yr(l,n,c)}catch(v){return ux(v)?v:new Bt(v)}}),BW=rs(function(l,c){return Mr(c,function(v){v=Ci(v),Yi(l,v,Ge(l[v],l))}),l});function UW(l){var c=l==null?0:l.length,v=It();return l=c?Fn(l,function(C){if(typeof C[1]!="function")throw new Wo(u);return[v(C[0]),C[1]]}):[],Yt(function(C){for(var N=-1;++N<c;){var F=l[N];if(Yr(F[0],this,C))return Yr(F[1],this,C)}})}function HW(l){return D0(uo(l,b))}function hx(l){return function(){return l}}function WW(l,c){return l==null||l!==l?c:l}var GW=ff(),KW=ff(!0);function ri(l){return l}function mx(l){return Ql(typeof l=="function"?l:uo(l,b))}function VW(l){return ef(uo(l,b))}function XW(l,c){return Kn(l,uo(c,b))}var qW=Yt(function(l,c){return function(v){return qo(v,l,c)}}),YW=Yt(function(l,c){return function(v){return qo(l,v,c)}});function gx(l,c,v){var C=Wr(c),N=ql(c,C);v==null&&!(or(c)&&(N.length||!C.length))&&(v=c,c=l,l=this,N=ql(c,Wr(c)));var F=!(or(v)&&"chain"in v)||!!v.chain,W=rl(l);return Mr(N,function(J){var le=c[J];l[J]=le,W&&(l.prototype[J]=function(){var De=this.__chain__;if(F||De){var Ne=l(this.__wrapped__),Ue=Ne.__actions__=Jr(this.__actions__);return Ue.push({func:le,args:arguments,thisArg:l}),Ne.__chain__=De,Ne}return le.apply(l,qs([this.value()],arguments))})}),l}function QW(){return Gn._===this&&(Gn._=w0),this}function vx(){}function JW(l){return l=Qt(l),Yt(function(c){return tf(c,l)})}var ZW=pf(Fn),eG=pf(lh),tG=pf(dh);function U2(l){return ht(l)?ph(Ci(l)):Yn(l)}function nG(l){return function(c){return l==null?n:xs(l,c)}}var rG=Wh(),oG=Wh(!0);function bx(){return[]}function yx(){return!1}function iG(){return{}}function sG(){return""}function aG(){return!0}function lG(l,c){if(l=Qt(l),l<1||l>U)return[];var v=H,C=Lr(l,H);c=It(c),l-=H;for(var N=mh(C,c);++v<l;)c(v);return N}function uG(l){return Xt(l)?Fn(l,Ci):ki(l)?[l]:Jr(nm($n(l)))}function cG(l){var c=++Fl;return $n(l)+c}var dG=ac(function(l,c){return l+c},0),fG=Or("ceil"),pG=ac(function(l,c){return l/c},1),hG=Or("floor");function mG(l){return l&&l.length?Wa(l,ri,oa):n}function gG(l,c){return l&&l.length?Wa(l,It(c,2),oa):n}function vG(l){return d0(l,ri)}function bG(l,c){return d0(l,It(c,2))}function yG(l){return l&&l.length?Wa(l,ri,ia):n}function xG(l,c){return l&&l.length?Wa(l,It(c,2),ia):n}var SG=ac(function(l,c){return l*c},1),wG=Or("round"),_G=ac(function(l,c){return l-c},0);function CG(l){return l&&l.length?hh(l,ri):0}function EG(l,c){return l&&l.length?hh(l,It(c,2)):0}return j.after=Y,j.ary=_e,j.assign=NH,j.assignIn=D2,j.assignInWith=vv,j.assignWith=$H,j.at=MH,j.before=ze,j.bind=Ge,j.bindAll=BW,j.bindKey=Le,j.castArray=iH,j.chain=Of,j.chunk=Sf,j.compact=rm,j.concat=Zo,j.cond=UW,j.conforms=HW,j.constant=hx,j.countBy=cv,j.create=LH,j.curry=dt,j.curryRight=gt,j.debounce=xt,j.defaults=jH,j.defaultsDeep=FH,j.defer=rr,j.delay=de,j.difference=gn,j.differenceBy=Cr,j.differenceWith=cr,j.drop=Ar,j.dropRight=Po,j.dropRightWhile=lu,j.dropWhile=gr,j.fill=gc,j.filter=Af,j.flatMap=mm,j.flatMapDeep=ox,j.flatMapDepth=pv,j.flatten=wf,j.flattenDeep=bc,j.flattenDepth=fo,j.flip=te,j.flow=GW,j.flowRight=KW,j.fromPairs=om,j.functions=KH,j.functionsIn=VH,j.groupBy=gm,j.initial=_f,j.intersection=im,j.intersectionBy=ca,j.intersectionWith=Cf,j.invert=qH,j.invertBy=YH,j.invokeMap=hv,j.iteratee=mx,j.keyBy=ix,j.keys=Wr,j.keysIn=ni,j.map=nl,j.mapKeys=JH,j.mapValues=ZH,j.matches=VW,j.matchesProperty=XW,j.memoize=me,j.merge=eW,j.mergeWith=N2,j.method=qW,j.methodOf=YW,j.mixin=gx,j.negate=Xe,j.nthArg=JW,j.omit=tW,j.omitBy=nW,j.once=_t,j.orderBy=sx,j.over=ZW,j.overArgs=Ot,j.overEvery=eG,j.overSome=tG,j.partial=kt,j.partialRight=Nt,j.partition=wc,j.pick=rW,j.pickBy=$2,j.property=U2,j.propertyOf=nG,j.pull=Ef,j.pullAll=xc,j.pullAllBy=no,j.pullAllWith=fa,j.pullAt=Ei,j.range=rG,j.rangeRight=oG,j.rearg=Er,j.reject=o,j.remove=po,j.rest=Sn,j.reverse=Rf,j.sampleSize=d,j.set=iW,j.setWith=sW,j.shuffle=m,j.slice=am,j.sortBy=$,j.sortedUniq=cm,j.sortedUniqBy=Za,j.split=OW,j.spread=ha,j.tail=rv,j.take=ov,j.takeRight=dm,j.takeRightWhile=kf,j.takeWhile=Xy,j.tap=tx,j.throttle=lx,j.thru=Ri,j.toArray=P2,j.toPairs=M2,j.toPairsIn=L2,j.toPath=uG,j.toPlainObject=A2,j.transform=aW,j.unary=rH,j.union=qy,j.unionBy=iv,j.unionWith=sv,j.uniq=el,j.uniqBy=Yy,j.uniqWith=uu,j.unset=lW,j.unzip=Tf,j.unzipWith=Qn,j.update=uW,j.updateWith=cW,j.values=jf,j.valuesIn=dW,j.without=Qy,j.words=z2,j.wrap=oH,j.xor=av,j.xorBy=Jy,j.xorWith=Zy,j.zip=lv,j.zipObject=uv,j.zipObjectDeep=ex,j.zipWith=ei,j.entries=M2,j.entriesIn=L2,j.extend=D2,j.extendWith=vv,gx(j,j),j.add=dG,j.attempt=B2,j.camelCase=mW,j.capitalize=j2,j.ceil=fG,j.clamp=fW,j.clone=sH,j.cloneDeep=lH,j.cloneDeepWith=uH,j.cloneWith=aH,j.conformsTo=cH,j.deburr=F2,j.defaultTo=WW,j.divide=pG,j.endsWith=gW,j.eq=Os,j.escape=vW,j.escapeRegExp=bW,j.every=dv,j.find=Df,j.findIndex=ua,j.findKey=zH,j.findLast=fv,j.findLastIndex=vc,j.findLastKey=BH,j.floor=hG,j.forEach=Nf,j.forEachRight=Sc,j.forIn=UH,j.forInRight=HH,j.forOwn=WH,j.forOwnRight=GH,j.get=dx,j.gt=dH,j.gte=fH,j.has=XH,j.hasIn=fx,j.head=Qa,j.identity=ri,j.includes=$f,j.indexOf=Ts,j.inRange=pW,j.invoke=QH,j.isArguments=_c,j.isArray=Xt,j.isArrayBuffer=pH,j.isArrayLike=ti,j.isArrayLikeObject=vr,j.isBoolean=hH,j.isBuffer=cu,j.isDate=mH,j.isElement=gH,j.isEmpty=vH,j.isEqual=bH,j.isEqualWith=yH,j.isError=ux,j.isFinite=xH,j.isFunction=rl,j.isInteger=R2,j.isLength=mv,j.isMap=k2,j.isMatch=SH,j.isMatchWith=wH,j.isNaN=_H,j.isNative=CH,j.isNil=RH,j.isNull=EH,j.isNumber=T2,j.isObject=or,j.isObjectLike=dr,j.isPlainObject=vm,j.isRegExp=cx,j.isSafeInteger=kH,j.isSet=O2,j.isString=gv,j.isSymbol=ki,j.isTypedArray=Lf,j.isUndefined=TH,j.isWeakMap=OH,j.isWeakSet=PH,j.join=da,j.kebabCase=yW,j.last=to,j.lastIndexOf=yc,j.lowerCase=xW,j.lowerFirst=SW,j.lt=IH,j.lte=AH,j.max=mG,j.maxBy=gG,j.mean=vG,j.meanBy=bG,j.min=yG,j.minBy=xG,j.stubArray=bx,j.stubFalse=yx,j.stubObject=iG,j.stubString=sG,j.stubTrue=aG,j.multiply=SG,j.nth=sm,j.noConflict=QW,j.noop=vx,j.now=B,j.pad=wW,j.padEnd=_W,j.padStart=CW,j.parseInt=EW,j.random=hW,j.reduce=ax,j.reduceRight=Mf,j.repeat=RW,j.replace=kW,j.result=oW,j.round=wG,j.runInContext=ie,j.sample=s,j.size=y,j.snakeCase=TW,j.some=_,j.sortedIndex=lm,j.sortedIndexBy=Vy,j.sortedIndexOf=pa,j.sortedLastIndex=nv,j.sortedLastIndexBy=um,j.sortedLastIndexOf=Ja,j.startCase=PW,j.startsWith=IW,j.subtract=_G,j.sum=CG,j.sumBy=EG,j.template=AW,j.times=lG,j.toFinite=ol,j.toInteger=Qt,j.toLength=I2,j.toLower=DW,j.toNumber=is,j.toSafeInteger=DH,j.toString=$n,j.toUpper=NW,j.trim=$W,j.trimEnd=MW,j.trimStart=LW,j.truncate=jW,j.unescape=FW,j.uniqueId=cG,j.upperCase=zW,j.upperFirst=px,j.each=Nf,j.eachRight=Sc,j.first=Qa,gx(j,function(){var l={};return To(j,function(c,v){xn.call(j.prototype,v)||(l[v]=c)}),l}(),{chain:!1}),j.VERSION=r,Mr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){j[l].placeholder=j}),Mr(["drop","take"],function(l,c){Vt.prototype[l]=function(v){v=v===n?1:ur(Qt(v),0);var C=this.__filtered__&&!c?new Vt(this):this.clone();return C.__filtered__?C.__takeCount__=Lr(v,C.__takeCount__):C.__views__.push({size:Lr(v,H),type:l+(C.__dir__<0?"Right":"")}),C},Vt.prototype[l+"Right"]=function(v){return this.reverse()[l](v).reverse()}}),Mr(["filter","map","takeWhile"],function(l,c){var v=c+1,C=v==V||v==ue;Vt.prototype[l]=function(N){var F=this.clone();return F.__iteratees__.push({iteratee:It(N,3),type:v}),F.__filtered__=F.__filtered__||C,F}}),Mr(["head","last"],function(l,c){var v="take"+(c?"Right":"");Vt.prototype[l]=function(){return this[v](1).value()[0]}}),Mr(["initial","tail"],function(l,c){var v="drop"+(c?"":"Right");Vt.prototype[l]=function(){return this.__filtered__?new Vt(this):this[v](1)}}),Vt.prototype.compact=function(){return this.filter(ri)},Vt.prototype.find=function(l){return this.filter(l).head()},Vt.prototype.findLast=function(l){return this.reverse().find(l)},Vt.prototype.invokeMap=Yt(function(l,c){return typeof l=="function"?new Vt(this):this.map(function(v){return qo(v,l,c)})}),Vt.prototype.reject=function(l){return this.filter(Xe(It(l)))},Vt.prototype.slice=function(l,c){l=Qt(l);var v=this;return v.__filtered__&&(l>0||c<0)?new Vt(v):(l<0?v=v.takeRight(-l):l&&(v=v.drop(l)),c!==n&&(c=Qt(c),v=c<0?v.dropRight(-c):v.take(c-l)),v)},Vt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Vt.prototype.toArray=function(){return this.take(H)},To(Vt.prototype,function(l,c){var v=/^(?:filter|find|map|reject)|While$/.test(c),C=/^(?:head|last)$/.test(c),N=j[C?"take"+(c=="last"?"Right":""):c],F=C||/^find/.test(c);N&&(j.prototype[c]=function(){var W=this.__wrapped__,J=C?[1]:arguments,le=W instanceof Vt,De=J[0],Ne=le||Xt(W),Ue=function(dn){var vn=N.apply(j,qs([dn],J));return C&&lt?vn[0]:vn};Ne&&v&&typeof De=="function"&&De.length!=1&&(le=Ne=!1);var lt=this.__chain__,Rt=!!this.__actions__.length,$t=F&&!lt,tn=le&&!Rt;if(!F&&Ne){W=tn?W:new Vt(this);var Mt=l.apply(W,J);return Mt.__actions__.push({func:Ri,args:[Ue],thisArg:n}),new jr(Mt,lt)}return $t&&tn?l.apply(this,J):(Mt=this.thru(Ue),$t?C?Mt.value()[0]:Mt.value():Mt)})}),Mr(["pop","push","shift","sort","splice","unshift"],function(l){var c=ms[l],v=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",C=/^(?:pop|shift)$/.test(l);j.prototype[l]=function(){var N=arguments;if(C&&!this.__chain__){var F=this.value();return c.apply(Xt(F)?F:[],N)}return this[v](function(W){return c.apply(Xt(W)?W:[],N)})}}),To(Vt.prototype,function(l,c){var v=j[c];if(v){var C=v.name+"";xn.call(Hl,C)||(Hl[C]=[]),Hl[C].push({name:c,func:v})}}),Hl[ou(n,P).name]=[{name:"wrapper",func:n}],Vt.prototype.clone=Hd,Vt.prototype.reverse=_h,Vt.prototype.value=Kl,j.prototype.at=Pf,j.prototype.chain=tl,j.prototype.commit=If,j.prototype.next=fm,j.prototype.plant=nx,j.prototype.reverse=hm,j.prototype.toJSON=j.prototype.valueOf=j.prototype.value=rx,j.prototype.first=j.prototype.head,vs&&(j.prototype[vs]=pm),j},Ll=Fy();Wi?((Wi.exports=Ll)._=Ll,ju._=Ll):Gn._=Ll}).call(oi)}(xm,xm.exports);var Q2=xm.exports;const ve=ma(Q2);var Ix=Symbol.for("immer-nothing"),Ax=Symbol.for("immer-draftable"),ii=Symbol.for("immer-state");function ss(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Cc=Object.getPrototypeOf;function Ec(e){return!!e&&!!e[ii]}function ga(e){var t;return e?Dx(e)||Array.isArray(e)||!!e[Ax]||!!((t=e.constructor)!=null&&t[Ax])||_m(e)||Cm(e):!1}var J2=Object.prototype.constructor.toString();function Dx(e){if(!e||typeof e!="object")return!1;const t=Cc(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===J2}function Sm(e,t){wm(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function wm(e){const t=e[ii];return t?t.type_:Array.isArray(e)?1:_m(e)?2:Cm(e)?3:0}function Sv(e,t){return wm(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Nx(e,t,n){const r=wm(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Z2(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function _m(e){return e instanceof Map}function Cm(e){return e instanceof Set}function fu(e){return e.copy_||e.base_}function wv(e,t){if(_m(e))return new Map(e);if(Cm(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Dx(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[ii];let i=Reflect.ownKeys(r);for(let a=0;a<i.length;a++){const u=i[a],f=r[u];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(r[u]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[u]})}return Object.create(Cc(e),r)}else{const r=Cc(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function _v(e,t=!1){return Em(e)||Ec(e)||!ga(e)||(wm(e)>1&&(e.set=e.add=e.clear=e.delete=ek),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>_v(r,!0))),e}function ek(){ss(2)}function Em(e){return Object.isFrozen(e)}var tk={};function pu(e){const t=tk[e];return t||ss(0,e),t}var zf;function $x(){return zf}function nk(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Mx(e,t){t&&(pu("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Cv(e){Ev(e),e.drafts_.forEach(rk),e.drafts_=null}function Ev(e){e===zf&&(zf=e.parent_)}function Lx(e){return zf=nk(zf,e)}function rk(e){const t=e[ii];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function jx(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[ii].modified_&&(Cv(t),ss(4)),ga(e)&&(e=Rm(t,e),t.parent_||km(t,e)),t.patches_&&pu("Patches").generateReplacementPatches_(n[ii].base_,e,t.patches_,t.inversePatches_)):e=Rm(t,n,[]),Cv(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ix?e:void 0}function Rm(e,t,n){if(Em(t))return t;const r=t[ii];if(!r)return Sm(t,(i,a)=>Fx(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return km(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,u=!1;r.type_===3&&(a=new Set(i),i.clear(),u=!0),Sm(a,(f,p)=>Fx(e,r,i,f,p,n,u)),km(e,i,!1),n&&e.patches_&&pu("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Fx(e,t,n,r,i,a,u){if(Ec(i)){const f=a&&t&&t.type_!==3&&!Sv(t.assigned_,r)?a.concat(r):void 0,p=Rm(e,i,f);if(Nx(n,r,p),Ec(p))e.canAutoFreeze_=!1;else return}else u&&n.add(i);if(ga(i)&&!Em(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Rm(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&km(e,i)}}function km(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&_v(t,n)}function ok(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:$x(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=Rv;n&&(i=[r],a=Bf);const{revoke:u,proxy:f}=Proxy.revocable(i,a);return r.draft_=f,r.revoke_=u,f}var Rv={get(e,t){if(t===ii)return e;const n=fu(e);if(!Sv(n,t))return ik(e,n,t);const r=n[t];return e.finalized_||!ga(r)?r:r===kv(e.base_,t)?(Ov(e),e.copy_[t]=Pv(r,e)):r},has(e,t){return t in fu(e)},ownKeys(e){return Reflect.ownKeys(fu(e))},set(e,t,n){const r=zx(fu(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=kv(fu(e),t),a=i==null?void 0:i[ii];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Z2(n,i)&&(n!==void 0||Sv(e.base_,t)))return!0;Ov(e),Tv(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return kv(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ov(e),Tv(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=fu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){ss(11)},getPrototypeOf(e){return Cc(e.base_)},setPrototypeOf(){ss(12)}},Bf={};Sm(Rv,(e,t)=>{Bf[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Bf.deleteProperty=function(e,t){return Bf.set.call(this,e,t,void 0)},Bf.set=function(e,t,n){return Rv.set.call(this,e[0],t,n,e[0])};function kv(e,t){const n=e[ii];return(n?fu(n):e)[t]}function ik(e,t,n){var i;const r=zx(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function zx(e,t){if(!(t in e))return;let n=Cc(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Cc(n)}}function Tv(e){e.modified_||(e.modified_=!0,e.parent_&&Tv(e.parent_))}function Ov(e){e.copy_||(e.copy_=wv(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var sk=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const u=this;return function(p=a,...h){return u.produce(p,g=>n.call(this,g,...h))}}typeof n!="function"&&ss(6),r!==void 0&&typeof r!="function"&&ss(7);let i;if(ga(t)){const a=Lx(this),u=Pv(t,void 0);let f=!0;try{i=n(u),f=!1}finally{f?Cv(a):Ev(a)}return Mx(a,r),jx(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Ix&&(i=void 0),this.autoFreeze_&&_v(i,!0),r){const a=[],u=[];pu("Patches").generateReplacementPatches_(t,i,a,u),r(a,u)}return i}else ss(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(u,...f)=>this.produceWithPatches(u,p=>t(p,...f));let r,i;return[this.produce(t,n,(u,f)=>{r=u,i=f}),r,i]},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){ga(e)||ss(8),Ec(e)&&(e=ak(e));const t=Lx(this),n=Pv(e,void 0);return n[ii].isManual_=!0,Ev(t),n}finishDraft(e,t){const n=e&&e[ii];(!n||!n.isManual_)&&ss(9);const{scope_:r}=n;return Mx(r,t),jx(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=pu("Patches").applyPatches_;return Ec(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Pv(e,t){const n=_m(e)?pu("MapSet").proxyMap_(e,t):Cm(e)?pu("MapSet").proxySet_(e,t):ok(e,t);return(t?t.scope_:$x()).drafts_.push(n),n}function ak(e){return Ec(e)||ss(10,e),Bx(e)}function Bx(e){if(!ga(e)||Em(e))return e;const t=e[ii];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=wv(e,t.scope_.immer_.useStrictShallowCopy_)}else n=wv(e,!0);return Sm(n,(r,i)=>{Nx(n,r,Bx(i))}),t&&(t.finalized_=!1),n}var si=new sk,hu=si.produce;si.produceWithPatches.bind(si),si.setAutoFreeze.bind(si),si.setUseStrictShallowCopy.bind(si),si.applyPatches.bind(si),si.createDraft.bind(si),si.finishDraft.bind(si);function Ux(e,t){return function(){return e.apply(t,arguments)}}const{toString:lk}=Object.prototype,{getPrototypeOf:Iv}=Object,Tm=(e=>t=>{const n=lk.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),as=e=>(e=e.toLowerCase(),t=>Tm(t)===e),Om=e=>t=>typeof t===e,{isArray:Rc}=Array,Uf=Om("undefined");function uk(e){return e!==null&&!Uf(e)&&e.constructor!==null&&!Uf(e.constructor)&&Pi(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Hx=as("ArrayBuffer");function ck(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Hx(e.buffer),t}const dk=Om("string"),Pi=Om("function"),Wx=Om("number"),Pm=e=>e!==null&&typeof e=="object",fk=e=>e===!0||e===!1,Im=e=>{if(Tm(e)!=="object")return!1;const t=Iv(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},pk=as("Date"),hk=as("File"),mk=as("Blob"),gk=as("FileList"),vk=e=>Pm(e)&&Pi(e.pipe),bk=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Pi(e.append)&&((t=Tm(e))==="formdata"||t==="object"&&Pi(e.toString)&&e.toString()==="[object FormData]"))},yk=as("URLSearchParams"),[xk,Sk,wk,_k]=["ReadableStream","Request","Response","Headers"].map(as),Ck=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Hf(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Rc(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),u=a.length;let f;for(r=0;r<u;r++)f=a[r],t.call(null,e[f],f,e)}}function Gx(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Kx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vx=e=>!Uf(e)&&e!==Kx;function Av(){const{caseless:e}=Vx(this)&&this||{},t={},n=(r,i)=>{const a=e&&Gx(t,i)||i;Im(t[a])&&Im(r)?t[a]=Av(t[a],r):Im(r)?t[a]=Av({},r):Rc(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Hf(arguments[r],n);return t}const Ek=(e,t,n,{allOwnKeys:r}={})=>(Hf(t,(i,a)=>{n&&Pi(i)?e[a]=Ux(i,n):e[a]=i},{allOwnKeys:r}),e),Rk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),kk=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Tk=(e,t,n,r)=>{let i,a,u;const f={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)u=i[a],(!r||r(u,e,t))&&!f[u]&&(t[u]=e[u],f[u]=!0);e=n!==!1&&Iv(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ok=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Pk=e=>{if(!e)return null;if(Rc(e))return e;let t=e.length;if(!Wx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ik=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Iv(Uint8Array)),Ak=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},Dk=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Nk=as("HTMLFormElement"),$k=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Xx=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Mk=as("RegExp"),qx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Hf(n,(i,a)=>{let u;(u=t(i,a,e))!==!1&&(r[a]=u||i)}),Object.defineProperties(e,r)},Lk=e=>{qx(e,(t,n)=>{if(Pi(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Pi(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},jk=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return Rc(e)?r(e):r(String(e).split(t)),n},Fk=()=>{},zk=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Dv="abcdefghijklmnopqrstuvwxyz",Yx="0123456789",Qx={DIGIT:Yx,ALPHA:Dv,ALPHA_DIGIT:Dv+Dv.toUpperCase()+Yx},Bk=(e=16,t=Qx.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Uk(e){return!!(e&&Pi(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Hk=e=>{const t=new Array(10),n=(r,i)=>{if(Pm(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=Rc(r)?[]:{};return Hf(r,(u,f)=>{const p=n(u,i+1);!Uf(p)&&(a[f]=p)}),t[i]=void 0,a}}return r};return n(e,0)},Wk=as("AsyncFunction"),Re={isArray:Rc,isArrayBuffer:Hx,isBuffer:uk,isFormData:bk,isArrayBufferView:ck,isString:dk,isNumber:Wx,isBoolean:fk,isObject:Pm,isPlainObject:Im,isReadableStream:xk,isRequest:Sk,isResponse:wk,isHeaders:_k,isUndefined:Uf,isDate:pk,isFile:hk,isBlob:mk,isRegExp:Mk,isFunction:Pi,isStream:vk,isURLSearchParams:yk,isTypedArray:Ik,isFileList:gk,forEach:Hf,merge:Av,extend:Ek,trim:Ck,stripBOM:Rk,inherits:kk,toFlatObject:Tk,kindOf:Tm,kindOfTest:as,endsWith:Ok,toArray:Pk,forEachEntry:Ak,matchAll:Dk,isHTMLForm:Nk,hasOwnProperty:Xx,hasOwnProp:Xx,reduceDescriptors:qx,freezeMethods:Lk,toObjectSet:jk,toCamelCase:$k,noop:Fk,toFiniteNumber:zk,findKey:Gx,global:Kx,isContextDefined:Vx,ALPHABET:Qx,generateString:Bk,isSpecCompliantForm:Uk,toJSONObject:Hk,isAsyncFn:Wk,isThenable:e=>e&&(Pm(e)||Pi(e))&&Pi(e.then)&&Pi(e.catch)};function qt(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}Re.inherits(qt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Re.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Jx=qt.prototype,Zx={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Zx[e]={value:e}}),Object.defineProperties(qt,Zx),Object.defineProperty(Jx,"isAxiosError",{value:!0}),qt.from=(e,t,n,r,i,a)=>{const u=Object.create(Jx);return Re.toFlatObject(e,u,function(p){return p!==Error.prototype},f=>f!=="isAxiosError"),qt.call(u,e.message,t,n,r,i),u.cause=e,u.name=e.name,a&&Object.assign(u,a),u};const Gk=null;function Nv(e){return Re.isPlainObject(e)||Re.isArray(e)}function eS(e){return Re.endsWith(e,"[]")?e.slice(0,-2):e}function tS(e,t,n){return e?e.concat(t).map(function(i,a){return i=eS(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function Kk(e){return Re.isArray(e)&&!e.some(Nv)}const Vk=Re.toFlatObject(Re,{},null,function(t){return/^is[A-Z]/.test(t)});function Am(e,t,n){if(!Re.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Re.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,T){return!Re.isUndefined(T[w])});const r=n.metaTokens,i=n.visitor||g,a=n.dots,u=n.indexes,p=(n.Blob||typeof Blob<"u"&&Blob)&&Re.isSpecCompliantForm(t);if(!Re.isFunction(i))throw new TypeError("visitor must be a function");function h(E){if(E===null)return"";if(Re.isDate(E))return E.toISOString();if(!p&&Re.isBlob(E))throw new qt("Blob is not supported. Use a Buffer instead.");return Re.isArrayBuffer(E)||Re.isTypedArray(E)?p&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function g(E,w,T){let P=E;if(E&&!T&&typeof E=="object"){if(Re.endsWith(w,"{}"))w=r?w:w.slice(0,-2),E=JSON.stringify(E);else if(Re.isArray(E)&&Kk(E)||(Re.isFileList(E)||Re.endsWith(w,"[]"))&&(P=Re.toArray(E)))return w=eS(w),P.forEach(function(D,M){!(Re.isUndefined(D)||D===null)&&t.append(u===!0?tS([w],M,a):u===null?w:w+"[]",h(D))}),!1}return Nv(E)?!0:(t.append(tS(T,w,a),h(E)),!1)}const b=[],x=Object.assign(Vk,{defaultVisitor:g,convertValue:h,isVisitable:Nv});function k(E,w){if(!Re.isUndefined(E)){if(b.indexOf(E)!==-1)throw Error("Circular reference detected in "+w.join("."));b.push(E),Re.forEach(E,function(P,I){(!(Re.isUndefined(P)||P===null)&&i.call(t,P,Re.isString(I)?I.trim():I,w,x))===!0&&k(P,w?w.concat(I):[I])}),b.pop()}}if(!Re.isObject(e))throw new TypeError("data must be an object");return k(e),t}function nS(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function $v(e,t){this._pairs=[],e&&Am(e,this,t)}const rS=$v.prototype;rS.append=function(t,n){this._pairs.push([t,n])},rS.toString=function(t){const n=t?function(r){return t.call(this,r,nS)}:nS;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Xk(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oS(e,t,n){if(!t)return e;const r=n&&n.encode||Xk,i=n&&n.serialize;let a;if(i?a=i(t,n):a=Re.isURLSearchParams(t)?t.toString():new $v(t,n).toString(r),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class iS{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Re.forEach(this.handlers,function(r){r!==null&&t(r)})}}const sS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qk={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:$v,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Mv=typeof window<"u"&&typeof document<"u",Yk=(e=>Mv&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Qk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Jk=Mv&&window.location.href||"http://localhost",ls={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Mv,hasStandardBrowserEnv:Yk,hasStandardBrowserWebWorkerEnv:Qk,origin:Jk},Symbol.toStringTag,{value:"Module"})),...qk};function Zk(e,t){return Am(e,new ls.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return ls.isNode&&Re.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function eT(e){return Re.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function tT(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function aS(e){function t(n,r,i,a){let u=n[a++];if(u==="__proto__")return!0;const f=Number.isFinite(+u),p=a>=n.length;return u=!u&&Re.isArray(i)?i.length:u,p?(Re.hasOwnProp(i,u)?i[u]=[i[u],r]:i[u]=r,!f):((!i[u]||!Re.isObject(i[u]))&&(i[u]=[]),t(n,r,i[u],a)&&Re.isArray(i[u])&&(i[u]=tT(i[u])),!f)}if(Re.isFormData(e)&&Re.isFunction(e.entries)){const n={};return Re.forEachEntry(e,(r,i)=>{t(eT(r),i,n,0)}),n}return null}function nT(e,t,n){if(Re.isString(e))try{return(t||JSON.parse)(e),Re.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Wf={transitional:sS,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=Re.isObject(t);if(a&&Re.isHTMLForm(t)&&(t=new FormData(t)),Re.isFormData(t))return i?JSON.stringify(aS(t)):t;if(Re.isArrayBuffer(t)||Re.isBuffer(t)||Re.isStream(t)||Re.isFile(t)||Re.isBlob(t)||Re.isReadableStream(t))return t;if(Re.isArrayBufferView(t))return t.buffer;if(Re.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Zk(t,this.formSerializer).toString();if((f=Re.isFileList(t))||r.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return Am(f?{"files[]":t}:t,p&&new p,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),nT(t)):t}],transformResponse:[function(t){const n=this.transitional||Wf.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(Re.isResponse(t)||Re.isReadableStream(t))return t;if(t&&Re.isString(t)&&(r&&!this.responseType||i)){const u=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(f){if(u)throw f.name==="SyntaxError"?qt.from(f,qt.ERR_BAD_RESPONSE,this,null,this.response):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ls.classes.FormData,Blob:ls.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Re.forEach(["delete","get","head","post","put","patch"],e=>{Wf.headers[e]={}});const rT=Re.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"]),oT=e=>{const t={};let n,r,i;return e&&e.split(`
28
+ `).forEach(function(u){i=u.indexOf(":"),n=u.substring(0,i).trim().toLowerCase(),r=u.substring(i+1).trim(),!(!n||t[n]&&rT[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},lS=Symbol("internals");function Gf(e){return e&&String(e).trim().toLowerCase()}function Dm(e){return e===!1||e==null?e:Re.isArray(e)?e.map(Dm):String(e)}function iT(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const sT=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Lv(e,t,n,r,i){if(Re.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!Re.isString(t)){if(Re.isString(r))return t.indexOf(r)!==-1;if(Re.isRegExp(r))return r.test(t)}}function aT(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function lT(e,t){const n=Re.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,u){return this[r].call(this,t,i,a,u)},configurable:!0})})}let Do=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(f,p,h){const g=Gf(p);if(!g)throw new Error("header name must be a non-empty string");const b=Re.findKey(i,g);(!b||i[b]===void 0||h===!0||h===void 0&&i[b]!==!1)&&(i[b||p]=Dm(f))}const u=(f,p)=>Re.forEach(f,(h,g)=>a(h,g,p));if(Re.isPlainObject(t)||t instanceof this.constructor)u(t,n);else if(Re.isString(t)&&(t=t.trim())&&!sT(t))u(oT(t),n);else if(Re.isHeaders(t))for(const[f,p]of t.entries())a(p,f,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=Gf(t),t){const r=Re.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return iT(i);if(Re.isFunction(n))return n.call(this,i,r);if(Re.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Gf(t),t){const r=Re.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Lv(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(u){if(u=Gf(u),u){const f=Re.findKey(r,u);f&&(!n||Lv(r,r[f],f,n))&&(delete r[f],i=!0)}}return Re.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||Lv(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return Re.forEach(this,(i,a)=>{const u=Re.findKey(r,a);if(u){n[u]=Dm(i),delete n[a];return}const f=t?aT(a):String(a).trim();f!==a&&delete n[a],n[f]=Dm(i),r[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Re.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&Re.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
29
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[lS]=this[lS]={accessors:{}}).accessors,i=this.prototype;function a(u){const f=Gf(u);r[f]||(lT(i,u),r[f]=!0)}return Re.isArray(t)?t.forEach(a):a(t),this}};Do.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Re.reduceDescriptors(Do.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),Re.freezeMethods(Do);function jv(e,t){const n=this||Wf,r=t||n,i=Do.from(r.headers);let a=r.data;return Re.forEach(e,function(f){a=f.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function uS(e){return!!(e&&e.__CANCEL__)}function kc(e,t,n){qt.call(this,e??"canceled",qt.ERR_CANCELED,t,n),this.name="CanceledError"}Re.inherits(kc,qt,{__CANCEL__:!0});function cS(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new qt("Request failed with status code "+n.status,[qt.ERR_BAD_REQUEST,qt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function uT(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function cT(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,u;return t=t!==void 0?t:1e3,function(p){const h=Date.now(),g=r[a];u||(u=h),n[i]=p,r[i]=h;let b=a,x=0;for(;b!==i;)x+=n[b++],b=b%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),h-u<t)return;const k=g&&h-g;return k?Math.round(x*1e3/k):void 0}}function dT(e,t){let n=0;const r=1e3/t;let i=null;return function(){const u=this===!0,f=Date.now();if(u||f-n>r)return i&&(clearTimeout(i),i=null),n=f,e.apply(null,arguments);i||(i=setTimeout(()=>(i=null,n=Date.now(),e.apply(null,arguments)),r-(f-n)))}}const Nm=(e,t,n=3)=>{let r=0;const i=cT(50,250);return dT(a=>{const u=a.loaded,f=a.lengthComputable?a.total:void 0,p=u-r,h=i(p),g=u<=f;r=u;const b={loaded:u,total:f,progress:f?u/f:void 0,bytes:p,rate:h||void 0,estimated:h&&f&&g?(f-u)/h:void 0,event:a,lengthComputable:f!=null};b[t?"download":"upload"]=!0,e(b)},n)},fT=ls.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(a){let u=a;return t&&(n.setAttribute("href",u),u=n.href),n.setAttribute("href",u),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(u){const f=Re.isString(u)?i(u):u;return f.protocol===r.protocol&&f.host===r.host}}():function(){return function(){return!0}}(),pT=ls.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const u=[e+"="+encodeURIComponent(t)];Re.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),Re.isString(r)&&u.push("path="+r),Re.isString(i)&&u.push("domain="+i),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function hT(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mT(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function dS(e,t){return e&&!hT(t)?mT(e,t):t}const fS=e=>e instanceof Do?{...e}:e;function mu(e,t){t=t||{};const n={};function r(h,g,b){return Re.isPlainObject(h)&&Re.isPlainObject(g)?Re.merge.call({caseless:b},h,g):Re.isPlainObject(g)?Re.merge({},g):Re.isArray(g)?g.slice():g}function i(h,g,b){if(Re.isUndefined(g)){if(!Re.isUndefined(h))return r(void 0,h,b)}else return r(h,g,b)}function a(h,g){if(!Re.isUndefined(g))return r(void 0,g)}function u(h,g){if(Re.isUndefined(g)){if(!Re.isUndefined(h))return r(void 0,h)}else return r(void 0,g)}function f(h,g,b){if(b in t)return r(h,g);if(b in e)return r(void 0,h)}const p={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f,headers:(h,g)=>i(fS(h),fS(g),!0)};return Re.forEach(Object.keys(Object.assign({},e,t)),function(g){const b=p[g]||i,x=b(e[g],t[g],g);Re.isUndefined(x)&&b!==f||(n[g]=x)}),n}const pS=e=>{const t=mu({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:u,auth:f}=t;t.headers=u=Do.from(u),t.url=oS(dS(t.baseURL,t.url),e.params,e.paramsSerializer),f&&u.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):"")));let p;if(Re.isFormData(n)){if(ls.hasStandardBrowserEnv||ls.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if((p=u.getContentType())!==!1){const[h,...g]=p?p.split(";").map(b=>b.trim()).filter(Boolean):[];u.setContentType([h||"multipart/form-data",...g].join("; "))}}if(ls.hasStandardBrowserEnv&&(r&&Re.isFunction(r)&&(r=r(t)),r||r!==!1&&fT(t.url))){const h=i&&a&&pT.read(a);h&&u.set(i,h)}return t},gT=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=pS(e);let a=i.data;const u=Do.from(i.headers).normalize();let{responseType:f}=i,p;function h(){i.cancelToken&&i.cancelToken.unsubscribe(p),i.signal&&i.signal.removeEventListener("abort",p)}let g=new XMLHttpRequest;g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout;function b(){if(!g)return;const k=Do.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),w={data:!f||f==="text"||f==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:k,config:e,request:g};cS(function(P){n(P),h()},function(P){r(P),h()},w),g=null}"onloadend"in g?g.onloadend=b:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(b)},g.onabort=function(){g&&(r(new qt("Request aborted",qt.ECONNABORTED,i,g)),g=null)},g.onerror=function(){r(new qt("Network Error",qt.ERR_NETWORK,i,g)),g=null},g.ontimeout=function(){let E=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||sS;i.timeoutErrorMessage&&(E=i.timeoutErrorMessage),r(new qt(E,w.clarifyTimeoutError?qt.ETIMEDOUT:qt.ECONNABORTED,i,g)),g=null},a===void 0&&u.setContentType(null),"setRequestHeader"in g&&Re.forEach(u.toJSON(),function(E,w){g.setRequestHeader(w,E)}),Re.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),f&&f!=="json"&&(g.responseType=i.responseType),typeof i.onDownloadProgress=="function"&&g.addEventListener("progress",Nm(i.onDownloadProgress,!0)),typeof i.onUploadProgress=="function"&&g.upload&&g.upload.addEventListener("progress",Nm(i.onUploadProgress)),(i.cancelToken||i.signal)&&(p=k=>{g&&(r(!k||k.type?new kc(null,e,g):k),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(p),i.signal&&(i.signal.aborted?p():i.signal.addEventListener("abort",p)));const x=uT(i.url);if(x&&ls.protocols.indexOf(x)===-1){r(new qt("Unsupported protocol "+x+":",qt.ERR_BAD_REQUEST,e));return}g.send(a||null)})},vT=(e,t)=>{let n=new AbortController,r;const i=function(p){if(!r){r=!0,u();const h=p instanceof Error?p:this.reason;n.abort(h instanceof qt?h:new kc(h instanceof Error?h.message:h))}};let a=t&&setTimeout(()=>{i(new qt(`timeout ${t} of ms exceeded`,qt.ETIMEDOUT))},t);const u=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(p=>{p&&(p.removeEventListener?p.removeEventListener("abort",i):p.unsubscribe(i))}),e=null)};e.forEach(p=>p&&p.addEventListener&&p.addEventListener("abort",i));const{signal:f}=n;return f.unsubscribe=u,[f,()=>{a&&clearTimeout(a),a=null}]},bT=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},yT=async function*(e,t,n){for await(const r of e)yield*bT(ArrayBuffer.isView(r)?r:await n(String(r)),t)},hS=(e,t,n,r,i)=>{const a=yT(e,t,i);let u=0;return new ReadableStream({type:"bytes",async pull(f){const{done:p,value:h}=await a.next();if(p){f.close(),r();return}let g=h.byteLength;n&&n(u+=g),f.enqueue(new Uint8Array(h))},cancel(f){return r(f),a.return()}},{highWaterMark:2})},mS=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},$m=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",gS=$m&&typeof ReadableStream=="function",Fv=$m&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),xT=gS&&(()=>{let e=!1;const t=new Request(ls.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),vS=64*1024,zv=gS&&!!(()=>{try{return Re.isReadableStream(new Response("").body)}catch{}})(),Mm={stream:zv&&(e=>e.body)};$m&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Mm[t]&&(Mm[t]=Re.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new qt(`Response type '${t}' is not supported`,qt.ERR_NOT_SUPPORT,r)})})})(new Response);const ST=async e=>{if(e==null)return 0;if(Re.isBlob(e))return e.size;if(Re.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(Re.isArrayBufferView(e))return e.byteLength;if(Re.isURLSearchParams(e)&&(e=e+""),Re.isString(e))return(await Fv(e)).byteLength},wT=async(e,t)=>{const n=Re.toFiniteNumber(e.getContentLength());return n??ST(t)},Bv={http:Gk,xhr:gT,fetch:$m&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:a,timeout:u,onDownloadProgress:f,onUploadProgress:p,responseType:h,headers:g,withCredentials:b="same-origin",fetchOptions:x}=pS(e);h=h?(h+"").toLowerCase():"text";let[k,E]=i||a||u?vT([i,a],u):[],w,T;const P=()=>{!w&&setTimeout(()=>{k&&k.unsubscribe()}),w=!0};let I;try{if(p&&xT&&n!=="get"&&n!=="head"&&(I=await wT(g,r))!==0){let A=new Request(t,{method:"POST",body:r,duplex:"half"}),z;Re.isFormData(r)&&(z=A.headers.get("content-type"))&&g.setContentType(z),A.body&&(r=hS(A.body,vS,mS(I,Nm(p)),null,Fv))}Re.isString(b)||(b=b?"cors":"omit"),T=new Request(t,{...x,signal:k,method:n.toUpperCase(),headers:g.normalize().toJSON(),body:r,duplex:"half",withCredentials:b});let D=await fetch(T);const M=zv&&(h==="stream"||h==="response");if(zv&&(f||M)){const A={};["status","statusText","headers"].forEach(G=>{A[G]=D[G]});const z=Re.toFiniteNumber(D.headers.get("content-length"));D=new Response(hS(D.body,vS,f&&mS(z,Nm(f,!0)),M&&P,Fv),A)}h=h||"text";let L=await Mm[Re.findKey(Mm,h)||"text"](D,e);return!M&&P(),E&&E(),await new Promise((A,z)=>{cS(A,z,{data:L,headers:Do.from(D.headers),status:D.status,statusText:D.statusText,config:e,request:T})})}catch(D){throw P(),D&&D.name==="TypeError"&&/fetch/i.test(D.message)?Object.assign(new qt("Network Error",qt.ERR_NETWORK,e,T),{cause:D.cause||D}):qt.from(D,D&&D.code,e,T)}})};Re.forEach(Bv,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const bS=e=>`- ${e}`,_T=e=>Re.isFunction(e)||e===null||e===!1,yS={getAdapter:e=>{e=Re.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a<t;a++){n=e[a];let u;if(r=n,!_T(n)&&(r=Bv[(u=String(n)).toLowerCase()],r===void 0))throw new qt(`Unknown adapter '${u}'`);if(r)break;i[u||"#"+a]=r}if(!r){const a=Object.entries(i).map(([f,p])=>`adapter ${f} `+(p===!1?"is not supported by the environment":"is not available in the build"));let u=t?a.length>1?`since :
30
+ `+a.map(bS).join(`
31
+ `):" "+bS(a[0]):"as no adapter specified";throw new qt("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return r},adapters:Bv};function Uv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kc(null,e)}function xS(e){return Uv(e),e.headers=Do.from(e.headers),e.data=jv.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),yS.getAdapter(e.adapter||Wf.adapter)(e).then(function(r){return Uv(e),r.data=jv.call(e,e.transformResponse,r),r.headers=Do.from(r.headers),r},function(r){return uS(r)||(Uv(e),r&&r.response&&(r.response.data=jv.call(e,e.transformResponse,r.response),r.response.headers=Do.from(r.response.headers))),Promise.reject(r)})}const SS="1.7.2",Hv={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Hv[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const wS={};Hv.transitional=function(t,n,r){function i(a,u){return"[Axios v"+SS+"] Transitional option '"+a+"'"+u+(r?". "+r:"")}return(a,u,f)=>{if(t===!1)throw new qt(i(u," has been removed"+(n?" in "+n:"")),qt.ERR_DEPRECATED);return n&&!wS[u]&&(wS[u]=!0,console.warn(i(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,u,f):!0}};function CT(e,t,n){if(typeof e!="object")throw new qt("options must be an object",qt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],u=t[a];if(u){const f=e[a],p=f===void 0||u(f,a,e);if(p!==!0)throw new qt("option "+a+" must be "+p,qt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new qt("Unknown option "+a,qt.ERR_BAD_OPTION)}}const Wv={assertOptions:CT,validators:Hv},ll=Wv.validators;let gu=class{constructor(t){this.defaults=t,this.interceptors={request:new iS,response:new iS}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
32
+ `+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=mu(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&Wv.assertOptions(r,{silentJSONParsing:ll.transitional(ll.boolean),forcedJSONParsing:ll.transitional(ll.boolean),clarifyTimeoutError:ll.transitional(ll.boolean)},!1),i!=null&&(Re.isFunction(i)?n.paramsSerializer={serialize:i}:Wv.assertOptions(i,{encode:ll.function,serialize:ll.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=a&&Re.merge(a.common,a[n.method]);a&&Re.forEach(["delete","get","head","post","put","patch","common"],E=>{delete a[E]}),n.headers=Do.concat(u,a);const f=[];let p=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(p=p&&w.synchronous,f.unshift(w.fulfilled,w.rejected))});const h=[];this.interceptors.response.forEach(function(w){h.push(w.fulfilled,w.rejected)});let g,b=0,x;if(!p){const E=[xS.bind(this),void 0];for(E.unshift.apply(E,f),E.push.apply(E,h),x=E.length,g=Promise.resolve(n);b<x;)g=g.then(E[b++],E[b++]);return g}x=f.length;let k=n;for(b=0;b<x;){const E=f[b++],w=f[b++];try{k=E(k)}catch(T){w.call(this,T);break}}try{g=xS.call(this,k)}catch(E){return Promise.reject(E)}for(b=0,x=h.length;b<x;)g=g.then(h[b++],h[b++]);return g}getUri(t){t=mu(this.defaults,t);const n=dS(t.baseURL,t.url);return oS(n,t.params,t.paramsSerializer)}};Re.forEach(["delete","get","head","options"],function(t){gu.prototype[t]=function(n,r){return this.request(mu(r||{},{method:t,url:n,data:(r||{}).data}))}}),Re.forEach(["post","put","patch"],function(t){function n(r){return function(a,u,f){return this.request(mu(f||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:u}))}}gu.prototype[t]=n(),gu.prototype[t+"Form"]=n(!0)});let ET=class W2{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const u=new Promise(f=>{r.subscribe(f),a=f}).then(i);return u.cancel=function(){r.unsubscribe(a)},u},t(function(a,u,f){r.reason||(r.reason=new kc(a,u,f),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new W2(function(i){t=i}),cancel:t}}};function RT(e){return function(n){return e.apply(null,n)}}function kT(e){return Re.isObject(e)&&e.isAxiosError===!0}const Gv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Gv).forEach(([e,t])=>{Gv[t]=e});function _S(e){const t=new gu(e),n=Ux(gu.prototype.request,t);return Re.extend(n,gu.prototype,t,{allOwnKeys:!0}),Re.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return _S(mu(e,i))},n}const Xn=_S(Wf);Xn.Axios=gu,Xn.CanceledError=kc,Xn.CancelToken=ET,Xn.isCancel=uS,Xn.VERSION=SS,Xn.toFormData=Am,Xn.AxiosError=qt,Xn.Cancel=Xn.CanceledError,Xn.all=function(t){return Promise.all(t)},Xn.spread=RT,Xn.isAxiosError=kT,Xn.mergeConfig=mu,Xn.AxiosHeaders=Do,Xn.formToJSON=e=>aS(Re.isHTMLForm(e)?new FormData(e):e),Xn.getAdapter=yS.getAdapter,Xn.HttpStatusCode=Gv,Xn.default=Xn;const{Axios:$G,AxiosError:MG,CanceledError:LG,isCancel:jG,CancelToken:FG,VERSION:zG,all:BG,Cancel:UG,isAxiosError:Kv,spread:HG,toFormData:WG,AxiosHeaders:GG,HttpStatusCode:KG,formToJSON:VG,getAdapter:XG,mergeConfig:qG}=Xn;var TT=Object.defineProperty,CS=e=>{throw TypeError(e)},OT=(e,t,n)=>t in e?TT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nn=(e,t,n)=>OT(e,typeof t!="symbol"?t+"":t,n),Vv=(e,t,n)=>t.has(e)||CS("Cannot "+n),pe=(e,t,n)=>(Vv(e,t,"read from private field"),n?n.call(e):t.get(e)),ES=(e,t,n)=>t.has(e)?CS("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),PT=(e,t,n,r)=>(Vv(e,t,"write to private field"),t.set(e,n),n),IT=(e,t,n)=>(Vv(e,t,"access private method"),n),RS,kS;class AT extends(kS=Error,RS=Symbol.toStringTag,kS){constructor(t){super(`[Luminix] Facade "${t}" not found`),nn(this,RS,"FacadeNotFoundException")}}class DT{constructor(t){nn(this,"_user"),this.app=t}attempt(t,n=!1,r){const i=document.createElement("form");i.method="post",i.action=this.app.make("route").url("login"),i.style.display="none";const a=this.app.make("config").get("auth.csrf");if(typeof a=="string"){const p=document.createElement("input");p.type="hidden",p.name="_token",p.value=a,i.appendChild(p)}const u=document.createElement("input");u.type="email",u.name="email",u.value=t.email,i.appendChild(u);const f=document.createElement("input");if(f.type="password",f.name="password",f.value=t.password,i.appendChild(f),n){const p=document.createElement("input");p.type="checkbox",p.name="remember",p.value="1",p.checked=!0,i.appendChild(p)}r&&i.addEventListener("submit",r),document.body.appendChild(i),i.submit()}check(){return!!this.app.make("config").get("auth.user")}logout(t){const n=document.createElement("form");n.method="post",n.action=this.app.make("route").url("logout"),n.style.display="none";const r=this.app.make("config").get("auth.csrf");if(typeof r=="string"){const i=document.createElement("input");i.type="hidden",i.name="_token",i.value=r,n.appendChild(i)}document.body.appendChild(n),t&&n.addEventListener("submit",t),n.submit()}user(){if(!this._user){const{model:t,config:n}=this.app.make(),r=t.make("user"),i=n.get("auth.user");if(!i)return null;this._user=new r(i)}return this._user}id(){var t;return((t=this.user())==null?void 0:t.getKey())||null}}class NT{constructor(t){this._debug=t}emergency(...t){this._debug&&console.error(...t)}alert(...t){this._debug&&console.error(...t)}critical(...t){this._debug&&console.error(...t)}error(...t){this._debug&&console.error(...t)}warning(...t){this._debug&&console.warn(...t)}notice(...t){this._debug&&console.info(...t)}info(...t){this._debug&&console.info(...t)}debug(...t){this._debug&&console.debug(...t)}}class Tc{constructor(t){nn(this,"locked",[]),this.bag=t,Object.freeze(this.bag)}get(t,n){return ve.get(this.bag,t,n)}set(t,n){if(this.locked.some(r=>t.startsWith(r)))throw new Error(`Cannot set a locked path "${t}"`);if(typeof n=="object"&&n!==null&&this.locked.some(r=>ve.has(n,r.slice(t.length+1))))throw new Error(`Cannot set a path "${t}" that would override a locked path`);if(t==="."){if(this.locked.length)throw new Error("Cannot set the root path when there are locked paths");if(typeof n!="object"||n===null)throw new TypeError("Value must be an object");this.bag=hu(this.bag,()=>n),this.emit("change",{path:t,value:n,type:"set"});return}this.bag=hu(this.bag,r=>{ve.set(r,t,n)}),this.emit("change",{path:t,value:n,type:"set"})}merge(t,n){if(typeof n!="object"||n===null)throw new TypeError("Value must be an object");if(t==="."){if(this.locked.some(i=>ve.has(n,i)))throw new Error(`Cannot merge a path "${t}" that would override a locked path`);this.bag=hu(this.bag,i=>({...i,...n})),this.emit("change",{path:t,value:n,type:"merge"});return}const r=this.get(t);if(typeof r=="object"&&r!==null)return this.set(t,{...r,...n});if(r===null||typeof r>"u")return this.set(t,n);throw new Error(`Cannot merge a non-object path "${t}"`)}has(t){return ve.has(this.bag,t)}delete(t){if(this.locked.some(n=>t.startsWith(n)))throw new Error(`Cannot delete a locked path "${t}"`);this.bag=hu(this.bag,n=>{ve.unset(n,t)}),this.emit("change",{path:t,value:null,type:"delete"})}lock(t){if(!this.has(t))throw new Error(`Cannot lock a non-existing path "${t}"`);this.locked.push(t)}clone(){return new Tc(this.bag)}all(){return this.bag}isEmpty(){return ve.isEmpty(this.bag)}on(t,n){return()=>null}once(t,n){}emit(t,n){}}function ul(e){var t,n,r,i,a;return a=class extends(n=e,t=Symbol.toStringTag,n){constructor(...u){super(...u),ES(this,r),nn(this,"emitter"),nn(this,t,e.name),this.emitter=IT(this,r,i).call(this)}on(u,f){if(typeof u!="string")throw new TypeError("event must be a string");if(typeof f!="function")throw new TypeError("callback must be a function");return this.emitter.on(u,f)}once(u,f){if(typeof u!="string")throw new TypeError("event must be a string");if(typeof f!="function")throw new TypeError("callback must be a function");const p=this.emitter.on(u,h=>{p(),f(h)})}emit(u,f={}){if(typeof u!="string")throw new TypeError("event must be a string");if(typeof f!="object")throw new TypeError("data must be an object");this.emitter.emit(u,{...f,source:this})}},r=new WeakSet,i=function(){return{emit(u,f){for(let p=0,h=this.events[u]||[],g=h.length;p<g;p++)h[p](f)},events:{},on(u,f){var p;return((p=this.events)[u]||(p[u]=[])).push(f),()=>{var h;this.events[u]=(h=this.events[u])==null?void 0:h.filter(g=>f!==g)}}}},a}function TS(...e){return e.reduce((t,n)=>t.flatMap(r=>n.map(i=>[r,i].flat())))}function cl(e){return!(typeof e!="object"||e===null||!Reflect.has(e,"constructor")||Reflect.get(e.constructor,"name")!=="Collection")}var OS,PS;class Rr extends(PS=Error,OS=Symbol.toStringTag,PS){constructor(){super("[Luminix] Method not implemented."),nn(this,OS,"MethodNotImplementedException")}}function ut(e=[],t=Xv){if(!Array.isArray(e))throw new TypeError("collect() expects an array");return new(ul(t))([...e])}const va=e=>{e.emit("change",{items:e.all()})},Lm=(e,t)=>Array.isArray(e)?e[t]??null:e.get(t);var IS,AS,fe;class Xv{constructor(t=[]){ES(this,fe),nn(this,IS,"Collection"),PT(this,fe,t)}get items(){return[...pe(this,fe)]}[(AS=Symbol.iterator,IS=Symbol.toStringTag,AS)](){return pe(this,fe)[Symbol.iterator]()}all(){return[...pe(this,fe)]}average(t){return typeof t=="string"?this.avg(t):this.avg()}avg(t){return typeof t=="string"?this.sum(t)/pe(this,fe).length:this.sum()/pe(this,fe).length}chunk(t){const n=[];for(let r=0;r<pe(this,fe).length;r+=t)n.push(pe(this,fe).slice(r,r+t));return ut(n.map(r=>ut(r)))}chunkWhile(t){const n=[];let r=ut();for(let i=0;i<pe(this,fe).length;i++)t(pe(this,fe)[i],i,r)?r.push(pe(this,fe)[i]):(n.push(r),r=ut());return r.count()>0&&n.push(r),ut(n)}collapse(){return ut(pe(this,fe).flat())}collect(){return ut(pe(this,fe))}combine(t){const n={};return pe(this,fe).forEach((r,i)=>{if(typeof r!="string")throw new TypeError("The `combine` method expects the keys to be strings");n[r]=Lm(t,i)}),n}concat(t){return Array.isArray(t)?ut([...pe(this,fe),...t]):ut([...pe(this,fe),...t.all()])}contains(t,n){return typeof t=="function"?pe(this,fe).some((r,i)=>t(r,i,this)):pe(this,fe).some(r=>{if(typeof n>"u")return r==t;if(typeof t!="string")throw new TypeError("The key must be a string");return r[t]==n})}containsOneItem(){return pe(this,fe).length===1}containsStrict(t,n){return typeof t=="function"?pe(this,fe).some((r,i)=>t(r,i,this)):pe(this,fe).some(r=>{if(typeof n>"u")return r===t;if(typeof t!="string")throw new TypeError("The key must be a string");return r[t]===n})}count(){return pe(this,fe).length}countBy(t){return typeof t=="function"?pe(this,fe).reduce((n,r,i)=>{const a=t(r,i,this);return n[a]=n[a]?n[a]+1:1,n},{}):pe(this,fe).reduce((n,r)=>{if(!["string","number"].includes(typeof r))throw new TypeError("The countBy method expects the items to be strings or numbers");return n[String(r)]=n[String(r)]?n[String(r)]+1:1,n},{})}crossJoin(...t){return ut(TS(pe(this,fe),...t.map(n=>Array.isArray(n)?n:n.all())))}diff(t){return Array.isArray(t)?ut(pe(this,fe).filter(n=>!t.includes(n))):ut(pe(this,fe).filter(n=>!t.contains(n)))}doesntContain(t,n){return typeof t=="function"?pe(this,fe).every((r,i)=>!t(r,i,this)):pe(this,fe).every(r=>{if(typeof n>"u")return r!=t;if(typeof t!="string")throw new TypeError("The key must be a string");return r[t]!=n})}dump(){console.log(this.toArray())}duplicates(t){return ut(typeof t=="string"?pe(this,fe).reduce((n,r,i)=>(pe(this,fe).slice(i+1).some(a=>a[t]==r[t])&&n.push(r[t]),n),[]):pe(this,fe).reduce((n,r,i)=>(pe(this,fe).slice(i+1).some(a=>a==r)&&n.push(r),n),[]))}duplicatesStrict(t){return ut(typeof t=="string"?pe(this,fe).reduce((n,r,i)=>(pe(this,fe).slice(i+1).some(a=>a[t]===r[t])&&n.push(r[t]),n),[]):pe(this,fe).reduce((n,r,i)=>(pe(this,fe).slice(i+1).some(a=>a===r)&&n.push(r),n),[]))}each(t){let n=0;for(const r of this){if(t(r,n,this)===!1)break;n++}return this}eachSpread(t){for(const n of this){if(!Array.isArray(n)&&!cl(n))throw new TypeError("The items in the collection must be arrays or collections");const r=Array.isArray(n)?n:n.all();if(t(...r)===!1)break}return this}ensure(t){const n=Array.isArray(t)?t:[t];return pe(this,fe).forEach((r,i)=>{if(!n.some(a=>typeof a=="string"?typeof r===a:r instanceof a))throw new TypeError(`The item at index ${i} is not of the expected type`)}),this}every(t){return pe(this,fe).every((n,r)=>t(n,r,this))}except(t){return ut(pe(this,fe).filter((n,r)=>!t.includes(r)))}filter(t){return ut(pe(this,fe).filter((n,r)=>typeof t!="function"?!!n:t(n,r,this)))}first(t){return typeof t=="function"?pe(this,fe).find((n,r)=>t(n,r,this))??null:pe(this,fe)[0]??null}firstOrFail(t){const n=this.first(t);if(n===null)throw new Error("No matching item found");return n}firstWhere(t,n,r){if(typeof t!="string")throw new TypeError("The key must be a string");if(typeof n>"u")return this.first(i=>!!i[t]);if(typeof r>"u")return pe(this,fe).find(i=>i[t]==n)??null;if(typeof n!="string")throw new TypeError("The operator must be a string");return r===null?pe(this,fe).find(i=>i[t]===null)??null:pe(this,fe).find(i=>{switch(n){case"=":return i[t]==r;case"!=":return i[t]!=r;case">":return i[t]>r;case"<":return i[t]<r;case">=":return i[t]>=r;case"<=":return i[t]<=r;default:throw new Error("Unsupported operator")}})??null}flatMap(t){return ut(pe(this,fe).flatMap((n,r)=>t(n,r,this)))}forget(t){return pe(this,fe).splice(t,1),va(this),this}forPage(t,n){return ut(pe(this,fe).slice((t-1)*n,t*n))}get(t,n){if(typeof t!="number")throw new TypeError("The key must be a number");return typeof n>"u"?pe(this,fe)[t]??null:typeof n=="function"?pe(this,fe)[t]??n():pe(this,fe)[t]??n}groupBy(t){const n=Array.isArray(t)?t:[t];return pe(this,fe).reduce((r,i,a)=>{const u=n.map(f=>{if(typeof f=="function"){const p=f(i,a,this);return Array.isArray(p)?p:[p]}return[String(i[f])]});return TS(...u).forEach(f=>{const p=Array.isArray(f)?f.join("."):f;ve.set(r,p,[...ve.get(r,p,[]),i])}),r},{})}has(t){return pe(this,fe).length>t}hasAny(t){return t.some(n=>this.has(n))}implode(t,n){if(typeof n>"u"){if(typeof t!="string")throw new TypeError("The glue must be a string");if(!pe(this,fe).every(r=>["string","number"].includes(typeof r)))throw new TypeError("The items must be strings or numbers");return pe(this,fe).join(t)}if(typeof t=="function")return pe(this,fe).map((r,i)=>t(r,i,this)).join(n);if(typeof t!="string")throw new TypeError("The key must be a string");if(!pe(this,fe).every(r=>typeof r=="object"))throw new TypeError("The items must be objects");return pe(this,fe).map(r=>r[t]).join(n)}intersect(t){return Array.isArray(t)?ut(pe(this,fe).filter(n=>t.includes(n))):ut(pe(this,fe).filter(n=>t.contains(n)))}isEmpty(){return pe(this,fe).length===0}isNotEmpty(){return!this.isEmpty()}join(t,n){return typeof n>"u"?pe(this,fe).join(t):pe(this,fe).slice(0,-1).join(t)+n+pe(this,fe)[pe(this,fe).length-1]}keyBy(t){if(typeof t=="function")return pe(this,fe).reduce((n,r,i)=>(n[t(r,i,this)]=r,n),{});if(typeof t!="string")throw new TypeError("The key must be a string");return pe(this,fe).reduce((n,r)=>(n[String(r[t])]=r,n),{})}last(t){return typeof t=="function"?pe(this,fe).toReversed().find((n,r)=>t(n,r,this))??null:pe(this,fe)[pe(this,fe).length-1]??null}map(t){return ut(pe(this,fe).map((n,r)=>t(n,r,this)))}mapInto(t){return ut(pe(this,fe).map(n=>new t(n)))}mapSpread(t){return ut(pe(this,fe).map(n=>{if(!Array.isArray(n)&&!cl(n))throw new TypeError("The items in the collection must be arrays or collections");const r=Array.isArray(n)?n:n.all();return t(...r)}))}mapToGroups(t){return pe(this,fe).reduce((n,r,i)=>{const a=t(r,i,this);return Object.entries(a).forEach(([u,f])=>{n[u]=n[u]??[],n[u].push(f)}),n},{})}mapWithKeys(t){return pe(this,fe).reduce((n,r,i)=>{const a=t(r,i,this);return Object.entries(a).forEach(([u,f])=>{n[u]=f}),n},{})}max(t){return typeof t=="string"?pe(this,fe).reduce((n,r)=>r[t]>n?r[t]:n,pe(this,fe)[0][t]):pe(this,fe).reduce((n,r)=>r>n?r:n,pe(this,fe)[0])}median(t){if(typeof t=="string"){const i=this.pluck(t).sort(),a=Math.floor(i.count()/2);return i.count()%2===0?ut([Lm(i,a-1),Lm(i,a)]).avg():Lm(i,a)}const n=pe(this,fe).toSorted(),r=Math.floor(n.length/2);return n.length%2===0?ut([n[r-1],n[r]]).avg():n[r]??null}merge(t){return Array.isArray(t)?ut([...pe(this,fe),...t]):ut([...pe(this,fe),...t.all()])}min(t){return typeof t=="string"?pe(this,fe).reduce((n,r)=>r[t]<n?r[t]:n,pe(this,fe)[0][t]):pe(this,fe).reduce((n,r)=>r<n?r:n,pe(this,fe)[0])}mode(t){const n=typeof t=="string"?this.filter(i=>["number","string"].includes(typeof i[t])).countBy(i=>i[t]):this.countBy(),r=Math.max(...Object.values(n));return Object.entries(n).filter(([,i])=>i===r).map(([i])=>i)}nth(t,n=0){return this.chunk(t).filter(r=>r.count()>n).map(r=>r.get(n))}only(t){return ut(pe(this,fe).filter((n,r)=>t.includes(r)))}pad(t,n=null){const r=pe(this,fe).slice();for(;r.length<Math.abs(t);)t>0?r.push(n):r.unshift(n);return ut(r)}partition(t){return[this.filter(t),this.reject(t)]}percentage(t,n=2){return Math.round(100*(10^n)*this.filter(t).count()/pe(this,fe).length)/(10^n)}pipe(t){return t(this)}pipeInto(t){return new t(this)}pipeThrough(t){return t.reduce((n,r)=>{if(!cl(n)&&!Array.isArray(n))throw new TypeError("The pipeline expects the carry to be a collection or an array");return r(cl(n)?n:ut(n))},this)}pluck(t){return this.map(n=>n[t])}pop(t=1){const n=pe(this,fe).splice(pe(this,fe).length-t,t);return va(this),t===1?n[0]??null:ut(n)}prepend(t){const n=pe(this,fe).unshift(t);return va(this),n}pull(t){const n=pe(this,fe).splice(t,1)[0]??null;return va(this),n}push(...t){const n=pe(this,fe).push(...t);return va(this),n}put(t,n){return pe(this,fe).splice(t,1,n),va(this),this}random(t=1){if(pe(this,fe).length<t)throw new Error("The collection has fewer items than the requested amount");const n=ut(ve.sampleSize(pe(this,fe),t));return t===1?n.first():n}reduce(t,n=null){return pe(this,fe).reduce((r,i,a)=>t(r,i,a,this),n)}reject(t){return this.filter((n,r)=>!t(n,r,this))}replace(t){const n=pe(this,fe).slice();return Object.entries(t).forEach(([r,i])=>{n[parseInt(r)]=i}),ut(n)}reverse(){return ut(pe(this,fe).toReversed())}search(t,n=!1){if(typeof t!="function"||pe(this,fe).every(i=>typeof i=="function")){const i=pe(this,fe).findIndex(a=>n?a===t:a==t);return i===-1?!1:i}const r=pe(this,fe).findIndex((i,a)=>t(i,a,this));return r===-1?!1:r}select(t){return this.map(n=>t.reduce((r,i)=>(r[i]=n[i],r),{}))}shift(t=1){const n=pe(this,fe).splice(0,t);return va(this),t===1?n[0]??null:ut(n)}shuffle(){return ut(ve.shuffle(pe(this,fe)))}skip(t){return ut(pe(this,fe).slice(t))}skipUntil(t){return typeof t=="function"?this.skip(pe(this,fe).findIndex((n,r)=>t(n,r,this))):this.skip(pe(this,fe).findIndex(n=>n==t))}skipWhile(t){return typeof t=="function"?this.skip(pe(this,fe).findIndex((n,r)=>!t(n,r,this))):this.skip(pe(this,fe).findIndex(n=>n!=t))}slice(t,n){return ut(typeof n>"u"?pe(this,fe).slice(t):typeof t>"u"?pe(this,fe).slice(0,n):pe(this,fe).slice(t,t+n))}sliding(t,n=1){const r=[];for(let i=0;i<pe(this,fe).length&&!(i+t>pe(this,fe).length);i+=n)r.push(pe(this,fe).slice(i,i+t));return ut(r.map(i=>ut(i)))}sole(t,n){if(typeof t=="function"){const r=this.filter(t);return r.count()===1?r.first():null}if(typeof t=="string"){const r=this.where(t,n);return r.count()===1?r.first():null}return pe(this,fe).length===1?this.first():null}some(...t){return this.contains(...t)}sort(t){return ut(pe(this,fe).toSorted(t))}sortBy(t,n="asc"){if(typeof t=="function"){let r=-1;return ut(pe(this,fe).toSorted((i,a)=>(r++,t(i,r,this)-t(a,r,this))))}if(Array.isArray(t))return t.every(r=>Array.isArray(r))?ut(pe(this,fe).toSorted((r,i)=>{for(const[a,u]of t){const f=r[a]??-1/0,p=i[a]??-1/0;if(f>p)return u==="asc"?1:-1;if(f<p)return u==="asc"?-1:1}return 0})):ut(pe(this,fe).toSorted((r,i)=>{for(const a of t){const u=a(r,i);if(u!==0)return u}return 0}));if(typeof t!="string")throw new TypeError("The key must be a string");return ut(pe(this,fe).toSorted((r,i)=>{const a=r[t]??-1/0,u=i[t]??-1/0;return a>u?n==="asc"?1:-1:a<u?n==="asc"?-1:1:0}))}sortDesc(){return this.sort((t,n)=>t>n?-1:t<n?1:0)}splice(t,n,...r){const i=n===void 0?pe(this,fe).length:n,a=pe(this,fe).splice(t,i,...r);return va(this),ut(a)}split(t){const n=[];for(let r=0;r<t;r++){const i=pe(this,fe).slice(n.flat().length,n.flat().length+Math.min(Math.ceil((pe(this,fe).length-n.flat().length)/(t-r)),pe(this,fe).length-n.flat().length));n.push(ut(i))}return ut(n)}splitIn(t){const n=Math.ceil(pe(this,fe).length/t);return this.chunk(n)}sum(t){return typeof t=="string"?pe(this,fe).reduce((n,r)=>{const i=r[t];if(typeof i!="number")throw new TypeError("The items must be numbers");return n+i},0):pe(this,fe).reduce((n,r)=>{if(typeof r!="number")throw new TypeError("The items must be numbers");return n+r},0)}take(t){return ut(pe(this,fe).slice(0,t))}takeUntil(t){return typeof t=="function"?this.take(pe(this,fe).findIndex((n,r)=>t(n,r,this))):this.take(pe(this,fe).findIndex(n=>n==t))}takeWhile(t){return typeof t=="function"?this.take(pe(this,fe).findIndex((n,r)=>!t(n,r,this))):this.take(pe(this,fe).findIndex(n=>n!=t))}tap(t){return t(this),this}toArray(){const t=n=>typeof n!="object"?n:Array.isArray(n)?n.map(t):n&&"toArray"in n&&typeof n.toArray=="function"?n.toArray():n&&"toJson"in n&&typeof n.toJson=="function"?n.toJson():n;return pe(this,fe).map(t)}toJson(){return JSON.stringify(pe(this,fe))}transform(t){for(const[n,r]of pe(this,fe).entries())pe(this,fe).splice(n,1,t(r,n,this));return va(this),this}unique(t){return ut(typeof t=="string"?[...new Set(pe(this,fe).map(n=>n[t]))].map(n=>pe(this,fe).find(r=>r[t]==n)):[...new Set(pe(this,fe))])}uniqueStrict(t){return ut(typeof t=="string"?[...new Set(pe(this,fe).map(n=>n[t]))].map(n=>pe(this,fe).find(r=>r[t]===n)):[...new Set(pe(this,fe))])}unless(t,n,r){return t?typeof r=="function"&&r(this):n(this),this}unlessEmpty(t,n){return this.whenNotEmpty(t,n)}unlessNotEmpty(t,n){return this.whenEmpty(t,n)}value(t){return pe(this,fe).length===0?null:pe(this,fe)[0][t]}when(t,n,r){return t?n(this):typeof r=="function"&&r(this),this}whenEmpty(t,n){return this.isEmpty()?t(this):typeof n=="function"&&n(this),this}whenNotEmpty(t,n){return this.isNotEmpty()?t(this):typeof n=="function"&&n(this),this}where(t,n,r){if(typeof r>"u")return ut(pe(this,fe).filter(a=>a[t]==n));if(typeof n!="string")throw new TypeError("The operator must be a string");if(r===null)return ut(pe(this,fe).filter(a=>a[t]===null));const i={"=":a=>a[t]==r,"!=":a=>a[t]!=r,">":a=>a[t]>r,"<":a=>a[t]<r,">=":a=>a[t]>=r,"<=":a=>a[t]<=r};if(!(n in i))throw new Error("Unsupported operator");return ut(pe(this,fe).filter((a,u)=>i[n](a,u,this)))}whereStrict(t,n,r){if(typeof r>"u")return ut(pe(this,fe).filter(a=>a[t]===n));if(typeof n!="string")throw new TypeError("The operator must be a string");if(r===null)return ut(pe(this,fe).filter(a=>a[t]===null));const i={"=":a=>a[t]===r,"!=":a=>a[t]!==r,">":a=>a[t]>r,"<":a=>a[t]<r,">=":a=>a[t]>=r,"<=":a=>a[t]<=r};if(!(n in i))throw new Error("Unsupported operator");return ut(pe(this,fe).filter((a,u)=>i[n](a,u,this)))}whereBetween(t,[n,r]){return ut(pe(this,fe).filter(i=>i[t]>=n&&i[t]<=r))}whereIn(t,n){return ut(pe(this,fe).filter(r=>n.includes(r[t])))}whereInstanceOf(t){return ut(pe(this,fe).filter(n=>n instanceof t))}whereNotBetween(t,[n,r]){return ut(pe(this,fe).filter(i=>i[t]<n||i[t]>r))}whereNotIn(t,n){return ut(pe(this,fe).filter(r=>!n.includes(r[t])))}whereNotNull(t){return ut(pe(this,fe).filter(n=>n[t]!==null))}whereNull(t){return ut(pe(this,fe).filter(n=>n[t]===null))}zip(t){return Array.isArray(t)?ut(pe(this,fe).map((n,r)=>[n,t[r]??null])):ut(pe(this,fe).map((n,r)=>[n,t.get(r)]))}on(t,n){throw new Rr}once(t,n){throw new Rr}emit(t,n){throw new Rr}}fe=new WeakMap;const qv=ul(Xv);var DS,NS;class $S extends(NS=Xv,DS=Symbol.toStringTag,NS){constructor(){super(...arguments),nn(this,DS,"Collection")}intersect(t){return this.filter(n=>t.some(r=>r.getKey()===n.getKey()))}}const Kf=(...e)=>{const t=new URLSearchParams;return e.forEach(n=>{const[,...r]=n.split("?");new URLSearchParams(r.join("")).forEach((i,a)=>{t.set(a,i)})}),t};var MS,LS;let $T=class extends(LS=Error,MS=Symbol.toStringTag,LS){constructor(t){super(`[Luminix] Model "${t}" does not have a primary key`),nn(this,MS,"ModelWithoutPrimaryKeyException")}};const MT=ul(Tc);class LT{constructor(t,n,r={}){nn(this,"bag"),this.facades=t,this.abstract=n,this.query=r,this.bag=new MT(r),this.bag.on("change",()=>{this.emit("change",{data:this.bag})})}on(t,n){throw new Rr}once(t,n){throw new Rr}emit(t,n){throw new Rr}lock(t){this.bag.lock(t)}whereBetween(t,n){return this.bag.has("where")||this.bag.set("where",{}),this.bag.set(`where.${ve.camelCase(t)}Between`,n),this}whereNotBetween(t,n){return this.bag.has("where")||this.bag.set("where",{}),this.bag.set(`where.${ve.camelCase(t)}NotBetween`,n),this}whereNull(t){return this.bag.has("where")||this.bag.set("where",{}),this.bag.set(`where.${ve.camelCase(t)}Null`,!0),this}whereNotNull(t){return this.bag.has("where")||this.bag.set("where",{}),this.bag.set(`where.${ve.camelCase(t)}NotNull`,!0),this}limit(t){return this.bag.set("per_page",t),this}where(t,n,r){if(this.bag.has("where")||this.bag.set("where",{}),typeof t=="function")return t(this)||this;if(typeof r>"u")return this.bag.set(`where.${ve.camelCase(t)}`,n),this;if(typeof n!="string")throw new Error(`Invalid operator ${n} provided for where clause.`);const i={"=":"","!=":"NotEquals",">":"GreaterThan",">=":"GreaterThanOrEquals","<":"LessThan","<=":"LessThanOrEquals"}[n]||ve.upperFirst(ve.camelCase(n));return this.bag.set(`where.${ve.camelCase(t)}${i}`,r),this}with(t){const n=this.bag.get("with",[]);return(Array.isArray(t)?t:[t]).forEach(r=>{n.includes(r)||n.push(r)}),this.bag.set("with",n),this}withOnly(t){return this.bag.set("with",Array.isArray(t)?t:[t]),this}without(t){const n=this.bag.get("with",[]);return(Array.isArray(t)?t:[t]).forEach(r=>{n.includes(r)&&n.splice(n.indexOf(r),1)}),this.bag.set("with",n),this}orderBy(t,n="asc"){return this.bag.set("order_by",`${t}:${n}`),this}searchBy(t){return this.bag.set("q",t),this}minified(){return this.bag.set("minified",!0),this}unset(t){return this.bag.delete(t),this}include(t){for(const[n,r]of t.entries())this.bag.set(n,r);return this}async exec(t=1,n){try{this.bag.set("page",t),this.emit("submit",{data:this.bag});const{data:r}=await this.facades.route.call(`luminix.${this.abstract}.index`,{params:this.bag.all(),errorBag:`${this.abstract}.fetch`}),i=this.facades.model.make(this.abstract),a=ut(r.data.map(u=>{const f=new i(u);return f.exists=!0,this.facades.model.emit("fetch",{class:this.abstract,model:f}),f}),$S);if(n){const[u]=n.split("?");return{...r,data:a,links:{first:`${u}?${Kf(n,r.links.first).toString()}`,last:`${u}?${Kf(n,r.links.last).toString()}`,next:r.links.next&&`${u}?${Kf(n,r.links.next).toString()}`,prev:r.links.prev&&`${u}?${Kf(n,r.links.prev).toString()}`},meta:{...r.meta,links:r.meta.links.map(f=>({...f,url:f.url&&`${u}?${Kf(n,f.url).toString()}`}))}}}return{...r,data:a}}catch(r){throw this.emit("error",{error:r}),r}}async get(t=1,n){const r=await this.exec(t,n);return this.emit("success",{response:r,items:r.data}),r}async first(){const t=await this.limit(1).exec(1);return this.emit("success",{response:t,items:t.data.first()}),t.data.first()}async find(t){const n=this.facades.model.schema(this.abstract).primaryKey;if(!n)throw new $T(this.abstract);const r=await this.where(n,t).limit(1).exec(1);return this.emit("success",{response:r,items:r.data.sole()}),r.data.sole()}async all(){const t=this.facades.config.get("luminix.backend.api.max_per_page",150),n=await this.limit(t).exec(1),r=n.meta.last_page;if(r===1)return n.data;const i=Array.from({length:r-1},(f,p)=>p+2),a=await Promise.all(i.map(f=>this.limit(t).exec(f))),u=ut(a.reduce((f,p)=>(f.push(...p.data),f),n.data).all(),$S);return this.emit("success",{response:{...n,data:u},items:u}),u}}const jT=ul(LT);var jS,FS;class ba extends(FS=Error,jS=Symbol.toStringTag,FS){constructor(t){super(`[Luminix] Expected ${t} to be reducible.`),nn(this,jS,"NotReducibleException")}}var zS,BS;class No extends(BS=TypeError,zS=Symbol.toStringTag,BS){constructor(t,n="Model"){super(`[Luminix] "${t}" expects ${n}`),nn(this,zS,"NotModelException")}}var US,HS;class FT extends(HS=Error,US=Symbol.toStringTag,HS){constructor(t,n,r,i){super(`[Luminix] Could not determine inverse relation for "${n}" in model "${t}". Please specify a relation in model "${r}" of type ${i} that points back to "${t}".`),nn(this,US,"NoInverseRelationException")}}var WS,GS;class zT extends(GS=Error,WS=Symbol.toStringTag,GS){constructor(t){super(`[Luminix] Relation "${t}" is not supported`),nn(this,WS,"UnsupportedRelationException")}}function Dr(e){return typeof e=="object"&&e!==null&&e.__isModel===!0}class jm{constructor(t,n,r,i=null){if(nn(this,"unsubscribeQuery",null),this.meta=t,this.facades=n,this.parent=r,this.items=i,i!==null&&!Dr(i)&&!(cl(i)&&i.every(Dr)))throw new No("Relation.constructor()","Model, Collection<Model> or null")}make(t){const n=this.getRelated();if(t===null||typeof t>"u"){this.set(null);return}if(this.isSingle()){if(typeof t!="object"||Array.isArray(t))throw new TypeError("Relation.make() expects an object");this.set(new n(t))}if(this.isMultiple()){if(!Array.isArray(t))throw new TypeError("Relation.make() expects an array");this.set(ut(t.map(r=>new n(r))))}}guessInverseRelation(){const{relations:t}=this.getRelated().getSchema();if(typeof this.facades.model.guessInverseRelation!="function")throw new ba("ModelFacade");const n=this.getType(),r=this.facades.model.guessInverseRelation({HasOne:["BelongsTo"],HasMany:["BelongsTo"],BelongsTo:["HasOne","HasMany"],BelongsToMany:["BelongsToMany"],MorphTo:["MorphMany","MorphOne"],MorphOne:["MorphTo"],MorphMany:["MorphTo"],MorphToMany:["MorphToMany"]},this.parent,n,this.getRelated());if(!(n in r))throw new zT(n);for(const i in t){const a=t[i];if((a.model===this.parent.getType()||["MorphOne","MorphMany"].includes(n))&&r[n].includes(a.type))return i}throw new FT(this.parent.getType(),n,this.getRelated().getSchemaName(),r[n].join(" or "))}set(t){if(t!==null&&!Dr(t)&&!(cl(t)&&t.every(Dr)))throw new No("Relation.set()","Model, Collection<Model> or null");!this.items||Dr(this.items)?this.items=t:cl(t)&&this.items.splice(0,this.items.count(),...t)}getForeignKey(){return this.meta.foreignKey}getName(){return this.meta.name}getType(){return this.meta.type}getModel(){return this.meta.model}getRelated(){return this.facades.model.make(this.meta.model)}query(){const t=this.getRelated().query();return this.unsubscribeQuery&&this.unsubscribeQuery(),this.unsubscribeQuery=t.on("success",n=>{this.items=n.items}),t}isLoaded(){return this.items!==null}getLoadedItems(){return this.items}isSingle(){return Dr(this.items)}isMultiple(){return cl(this.items)}getParent(){return this.parent}where(...t){return this.query().where(...t)}whereNull(t){return this.query().whereNull(t)}whereNotNull(t){return this.query().whereNotNull(t)}whereBetween(t,n){return this.query().whereBetween(t,n)}whereNotBetween(t,n){return this.query().whereNotBetween(t,n)}orderBy(t,n="asc"){return this.query().orderBy(t,n)}searchBy(t){return this.query().searchBy(t)}minified(){return this.query().minified()}limit(t){return this.query().limit(t)}}var KS,VS;class XS extends(VS=Error,KS=Symbol.toStringTag,VS){constructor(t,n){super(`[Luminix] Model "${t}" must be persisted before calling "${n}"`),nn(this,KS,"ModelNotPersistedException")}}function BT(e,t){var n;n=Symbol.toStringTag;class r{constructor(a={}){nn(this,"_attributes",new Tc({})),nn(this,"_original",{}),nn(this,"_relations",{}),nn(this,"_changedKeys",[]),nn(this,"exists",!1),nn(this,"wasRecentlyCreated",!1),nn(this,n,ve.upperFirst(ve.camelCase(t))),this.makeRelations(),this.makeAttributes(a)}cast(a,u){return a==null||!u?a:["boolean","bool"].includes(u)?!!a:["date","datetime","immutable_date","immutable_datetime"].includes(u)&&typeof a=="string"?new Date(a):["float","double","integer","int"].includes(u)||u.startsWith("decimal:")?Number(a):a}mutate(a,u){return a==null||!u?a:["boolean","bool"].includes(u)?!!a:["date","datetime","immutable_date","immutable_datetime"].includes(u)&&a instanceof Date?a.toISOString():["float","double","integer","int"].includes(u)||u.startsWith("decimal:")?Number(a):a}makeRelations(){const{relations:a}=e.make("model").schema(t);if(this._relations={},!a)return;const u=e.make("model").relationMap({},t);Object.entries(a).forEach(([f,p])=>{const{type:h}=p,g=h in u?u[h]:jm;this._relations[f]=new g({name:f,...p},e.make(),this,null)})}makeAttributes(a){const{relations:u}=e.make("model").schema(t),f=Object.keys(u||{}),p=ve.omit(a,f);if(this.fillable.filter(h=>!(h in p)).forEach(h=>{p[h]=null}),u&&Object.keys(u).forEach(h=>{this.relation(ve.camelCase(h)).make(a[h])}),!this.validateJsonObject(p)){if(e.isProduction())throw new TypeError(`[Luminix] Invalid attributes for model "${t}"`);e.make("log").warning(`Invalid attributes for model "${t}".
33
+ This will throw an error in production.`,{attributes:a,abstract:t})}this._attributes.set(".",p),this._original=p,this._changedKeys.splice(0,this._changedKeys.length)}makePrimaryKeyReplacer(){return{[this.getKeyName()]:this.getKey()}}dispatchChangeEvent(a){this.emit("change",{value:a})}dispatchCreateEvent(a){this.emit("create",{value:a}),e.make("model").emit("create",{class:t,model:this})}dispatchUpdateEvent(a){this.emit("update",{value:a}),e.make("model").emit("update",{class:t,model:this})}dispatchSaveEvent(){this.emit("save",{value:this.diff()}),e.make("model").emit("save",{class:t,model:this})}dispatchDeleteEvent(a=!1){this.emit("delete",{force:a,[this.getKeyName()]:this.getKey()}),e.make("model").emit("delete",{class:t,model:this,force:a})}dispatchRestoreEvent(){this.emit("restore",{value:this.attributes}),e.make("model").emit("restore",{class:t,model:this})}dispatchErrorEvent(a,u){this.emit("error",{error:a,operation:u}),e.make("model").emit("error",{class:t,model:this,error:a,operation:u})}updateChangedKeys(a){const u=(f,p)=>typeof f=="object"&&f!==null?ve.isEqual(f,p):f==p;!this._changedKeys.includes(a)&&!u(ve.get(this._original,a),this._attributes.get(a))?this._changedKeys.push(a):this._changedKeys.includes(a)&&u(ve.get(this._original,a),this._attributes.get(a))&&this._changedKeys.splice(this._changedKeys.indexOf(a),1)}validateJsonObject(a){return typeof a!="object"||a===null?!1:Object.entries(a).every(([,u])=>["boolean","number","string"].includes(typeof u)||u===null||this.validateJsonObject(u)||Array.isArray(u)&&u.every(f=>this.validateJsonObject(f)))}get attributes(){return this._attributes.all()}get original(){return this._original}get relations(){return this._relations}get fillable(){return e.make("model").schema(t).fillable}get primaryKey(){return e.make("model").schema(t).primaryKey}get timestamps(){return e.make("model").schema(t).timestamps}get casts(){return{...e.make("model").schema(t).casts,...this.timestamps?{created_at:"datetime",updated_at:"datetime"}:{}}}get isDirty(){return this._changedKeys.length>0}getAttribute(a){let u=this._attributes.get(a,null);a in this.casts&&(u=this.cast(u,this.casts[a]));const f=e.make("model")[`model${ve.upperFirst(ve.camelCase(t))}Get${ve.upperFirst(ve.camelCase(a))}Attribute`];if(typeof f!="function")throw new ba("ModelFacade");return f.bind(e.make("model"))(u,this)}setAttribute(a,u){const f=e.make("model")[`model${ve.upperFirst(ve.camelCase(t))}Set${ve.upperFirst(ve.camelCase(a))}Attribute`];if(typeof f!="function")throw new ba("ModelFacade");const p=f.bind(e.make("model"))(this.mutate(u,this.casts[a]),this);if(!this.validateJsonObject({[a]:p})){if(e.isProduction())throw new TypeError(`[Luminix] Attribute "${a}" in model "${t}" must be a boolean, number, string or null`);e.make("log").warning(`Invalid type for attribute "${a}" in model "${t}" after mutation.
34
+ This will throw an error in production.`,{key:a,value:u,mutated:p,cast:this.casts[a],item:this.toJson()});return}this._attributes.set(a,p),this.updateChangedKeys(a),this.dispatchChangeEvent({[a]:p})}getKey(){return this.getAttribute(this.primaryKey)}getKeyName(){return this.primaryKey}fill(a){const u=ve.pick(a,this.fillable),f=Object.entries(u).reduce((p,[h,g])=>{const b=e.make("model")[`model${ve.upperFirst(ve.camelCase(t))}Set${ve.upperFirst(ve.camelCase(h))}Attribute`];if(typeof b!="function")throw new ba("ModelFacade");return p[h]=b.bind(e.make("model"))(this.mutate(g,this.casts[h]),this),p},{});if(!this.validateJsonObject(f)){if(e.isProduction())throw new TypeError(`[Luminix] Invalid attributes for model "${t}"`);e.make("log").warning(`Invalid attributes for model "${t}" after mutation.
35
+ This will throw an error in production.`,{attributes:a,mutatedAttributes:f,item:this.toJson(),casts:this.casts});return}this._attributes.merge(".",f),Object.keys(f).forEach(p=>this.updateChangedKeys(p)),this.dispatchChangeEvent(f)}dump(){e.make("log").info({...this.toJson(),[Symbol.toStringTag]:ve.upperFirst(ve.camelCase(t))})}toJson(){const a=Object.entries(this.relations).reduce((f,[p,h])=>(h.isLoaded()&&(h.isSingle()?f[ve.snakeCase(p)]=h.getLoadedItems().toJson():h.isMultiple()&&(f[ve.snakeCase(p)]=h.getLoadedItems().map(g=>g.toJson()).all())),f),{}),u=e.make("model")[`model${ve.upperFirst(ve.camelCase(t))}Json`];if(typeof u!="function")throw new ba("ModelFacade");return u.bind(e.make("model"))({...this.attributes,...a},this)}diff(){return this._changedKeys.reduce((a,u)=>(a[u]=this._attributes.get(u),a),{})}getType(){return t}relation(a){if(a===ve.camelCase(a))return this.relations[ve.snakeCase(a)]}getErrorBag(a){return`${this.exists?`${t}[${this.getKey()}].`:`${t}.`}${a}`}getRouteForSave(){return this.exists?[`luminix.${t}.update`,this.makePrimaryKeyReplacer()]:`luminix.${t}.store`}getRouteForUpdate(){return[`luminix.${t}.update`,this.makePrimaryKeyReplacer()]}getRouteForDelete(){return[`luminix.${t}.destroy`,this.makePrimaryKeyReplacer()]}getRouteForRefresh(){return[`luminix.${t}.show`,this.makePrimaryKeyReplacer()]}getLabel(){const{labeledBy:a}=e.make("model").schema(t);return this.getAttribute(a)}async refresh(){if(!this.exists)throw new XS(t,"refresh");const{data:a}=await e.make("route").call(this.getRouteForRefresh(),{errorBag:this.getErrorBag("fetch")});this.makeAttributes(a)}async save(a={}){try{const{additionalPayload:u={},sendsOnlyModifiedFields:f=!0}=a,p=this.exists,h={...ve.pick(f&&p?this.diff():this.attributes,this.fillable),...u};if(ve.isEmpty(h))return;const g=await e.make("route").call(this.getRouteForSave(),{data:h,errorBag:this.getErrorBag(p?"update":"store")});if([200,201].includes(g.status))return this.makeAttributes(g.data),this.exists=!0,this.dispatchSaveEvent(),p?this.dispatchUpdateEvent(g.data):(this.wasRecentlyCreated=!0,this.dispatchCreateEvent(g.data)),g;throw g}catch(u){throw this.dispatchErrorEvent(u,"save"),u}}async push(){throw new Rr}async delete(){try{const a=await e.make("route").call(this.getRouteForDelete(),{errorBag:this.getErrorBag("delete")});if(a.status===204)return this.dispatchDeleteEvent(),a;throw a}catch(a){throw this.dispatchErrorEvent(a,"delete"),a}}async update(a){try{const u=await e.make("route").call(this.getRouteForUpdate(),{data:a,errorBag:this.getErrorBag("update")});if(u.status===200){this.makeAttributes(u.data),this.dispatchUpdateEvent(u.data);return}throw u}catch(u){throw this.dispatchErrorEvent(u,"save"),u}}async forceDelete(){try{const a=await e.make("route").call(this.getRouteForDelete(),{params:{force:!0},errorBag:this.getErrorBag("forceDelete")});if(a.status===204)return this.dispatchDeleteEvent(!0),a;throw a}catch(a){throw this.dispatchErrorEvent(a,"forceDelete"),a}}async restore(){try{const a=await e.make("route").call(this.getRouteForUpdate(),{params:{restore:!0},errorBag:this.getErrorBag("restore")});if(a.status===200)return this.dispatchRestoreEvent(),a;throw a}catch(a){throw this.dispatchErrorEvent(a,"restore"),a}}static getSchemaName(){return t}static getSchema(){return e.make("model").schema(t)}static query(){return new jT(e.make(),t)}static where(...a){return this.query().where(...a)}static whereNull(a){return this.query().whereNull(a)}static whereNotNull(a){return this.query().whereNotNull(a)}static whereBetween(a,u){return this.query().whereBetween(a,u)}static whereNotBetween(a,u){return this.query().whereNotBetween(a,u)}static orderBy(a,u="asc"){return this.query().orderBy(a,u)}static searchBy(a){return this.query().searchBy(a)}static minified(){return this.query().minified()}static limit(a){return this.query().limit(a)}static get(a=1,u){return this.query().get(a,u)}static find(a){return this.query().find(a)}static first(){return this.query().first()}static async create(a){const u=e.make("model").make(t),f=new u;return f.fill(a),await f.save(),f}static async update(a,u){const f=e.make("model").make(t),p=new f({id:a});return p.fill(u),p.exists=!0,await p.save(),p}static delete(a){if(Array.isArray(a))return e.make("route").call(`luminix.${t}.destroyMany`,{params:{ids:a},errorBag:`${t}.deleteMany`});const u=e.make("model").make(t);return new u({id:a}).delete()}static async restore(a){if(Array.isArray(a))return e.make("route").call(`luminix.${t}.restoreMany`,{data:{ids:a},errorBag:`${t}.restoreMany`});const u=e.make("model").make(t);return new u({id:a}).restore()}static forceDelete(a){if(Array.isArray(a))return e.make("route").call(`luminix.${t}.destroyMany`,{params:{ids:a,force:!0},errorBag:`${t}.forceDeleteMany`});const u=e.make("model").make(t);return new u({id:a}).forceDelete()}static singular(){return e.make("model").schema(t).displayName.singular}static plural(){return e.make("model").schema(t).displayName.plural}on(a,u){throw new Rr}once(a,u){throw new Rr}emit(a,u){throw new Rr}}return nn(r,"name",ve.upperFirst(ve.camelCase(t))),ul(r)}function UT(e,t,n){var r,i;return class extends(i=n,r=Symbol.toStringTag,i){constructor(a={}){return super(a),nn(this,r,ve.upperFirst(ve.camelCase(t))),new Proxy(this,{get:(u,f)=>{if(f==="__isModel")return!0;if(f in u)return Reflect.get(u,f);if(f!==ve.camelCase(f))return;const p=ve.snakeCase(f);if(Object.keys(u.attributes).includes(p))return u.getAttribute(p);if(Object.keys(u.relations).includes(p))return u.relations[p].getLoadedItems();if(f.endsWith("Relation")&&Object.keys(u.relations).includes(ve.snakeCase(f.slice(0,-8))))return()=>u.relation(f.slice(0,-8));if(e.model.hasReducer(`model${u.constructor.name}Get${ve.upperFirst(f)}Attribute`)){const h=e.model[`model${u.constructor.name}Get${ve.upperFirst(f)}Attribute`];if(typeof h!="function")throw new ba("ModelFacade");return h.bind(e.model)(void 0,u)}return Reflect.get(u,f)},set:(u,f,p)=>f in u&&typeof u[f]!="function"?Reflect.set(u,f,p):(u.setAttribute(ve.snakeCase(f),p),!0)})}}}var qS,YS;class HT extends(YS=Error,qS=Symbol.toStringTag,YS){constructor(t,n){super(`[Luminix] Cannot create reducer '${t}' on '${n}' as it is a reserved property`),nn(this,qS,"ReducerOverrideException")}}function Vf(e){return class extends e{constructor(...t){return super(...t),nn(this,"reducers",{}),new Proxy(this,{get(n,r,i){return typeof r=="symbol"||r in n?Reflect.get(n,r,i):(a,...u)=>{const{[r]:f=ut()}=n.reducers;return ga(a)?hu(a,p=>f.sortBy("priority").reduce((h,g)=>g.callback(h,...u),p)):f.sortBy("priority").reduce((p,h)=>h.callback(p,...u),a)}}})}reducer(t,n,r=10){if(t in this)throw new HT(t,this);return this.reducers[t]||(this.reducers[t]=ut()),this.reducers[t].push({callback:n,priority:r}),()=>this.removeReducer(t,n)}removeReducer(t,n){const r=this.reducers[t].search(i=>i.callback===n);r!==!1&&this.reducers[t].pull(r)}getReducer(t){return this.reducers[t]||(this.reducers[t]=ut()),this.reducers[t]}hasReducer(t){return!!this.reducers[t]&&this.reducers[t].count()>0}clearReducer(t){this.reducers[t].splice(0,this.reducers[t].count())}flushReducers(){Object.values(this.reducers).forEach(t=>t.splice(0,t.count()))}}}var QS,JS;class ZS extends(JS=Error,QS=Symbol.toStringTag,JS){constructor(t){super(`[Luminix] Model "${t}" not found`),nn(this,QS,"ModelNotFoundException")}}var ew,tw;let Xf=class extends(tw=TypeError,ew=Symbol.toStringTag,tw){constructor(t,n,r){super(`[Luminix] "${t}" expects a related model of type "${n}". Received "${r}" instead.`),nn(this,ew,"ModelInvalidRelatedTypeException")}};class nw extends jm{constructor(t,n,r,i=null){if(!Dr(i)&&i!==null)throw new No("BelongsTo.constructor()","Model or null");super(t,n,r,i),this.meta=t,this.facades=n,this.parent=r,this.items=i}isSingle(){return!0}isMultiple(){return!1}query(){const t=super.query(),n=this.guessInverseRelation();return t.where(n,this.parent.getKey()),t.lock(`where.${n}`),t}get(){return this.query().first()}async associate(t){if(!Dr(t))throw new No("BelongsTo.associate()");if(t.getType()!==this.getRelated().getSchemaName())throw new Xf("BelongsTo.associate()",this.getRelated().getSchemaName(),t.getType());if(!t.exists)throw new XS(this.getRelated().getSchemaName(),"save");return this.parent.update({[this.getForeignKey()]:t.getKey()})}dissociate(){return this.parent.update({[this.getForeignKey()]:null})}}class rw extends jm{constructor(t,n,r,i=null){if(i!==null&&!(i instanceof qv&&i.every(Dr)))throw new No("BelongsToMany.constructor()","Collection<Model> or null");super(t,n,r,i),this.meta=t,this.facades=n,this.parent=r,this.items=i}isSingle(){return!1}isMultiple(){return!0}query(){const t=super.query(),n=this.guessInverseRelation();return t.where(n,this.parent.getKey()),t.lock(`where.${n}`),t}get(t=1,n){return this.query().get(t,n)}all(){return this.query().all()}first(){return this.query().first()}find(t){return this.query().find(t)}attachQuietly(t,n={}){return this.facades.route.call([`luminix.${this.parent.getType()}.${this.getName()}:attach`,{[this.parent.getKeyName()]:this.parent.getKey(),itemId:t}],{data:n,errorBag:`${this.parent.getType()}[${this.parent.getKey()}].${this.getName()}:attach`})}async attach(t,n={}){if(await this.attachQuietly(t,n),this.items){const r=this.items.search(a=>a.getKey()===t),i=await this.getRelated().find(t);if(!i)return;r!==!1?this.items.put(r,i):this.items.push(i)}else this.items=await this.all()}async detachQuietly(t){await this.facades.route.call([`luminix.${this.parent.getType()}.${this.getName()}:detach`,{[this.parent.getKeyName()]:this.parent.getKey(),itemId:t}],{errorBag:`${this.parent.getType()}[${this.parent.getKey()}].${this.getName()}:detach`})}async detach(t){if(await this.detachQuietly(t),this.items){const n=this.items.search(r=>r.getKey()===t);n!==!1&&this.items.pull(n)}}async syncQuietly(t){await this.facades.route.call([`luminix.${this.parent.getType()}.${this.getName()}:sync`,{[this.parent.getKeyName()]:this.parent.getKey()}],{data:t,errorBag:`${this.parent.getType()}[${this.parent.getKey()}].${this.getName()}:sync`})}async syncWithPivotValuesQuietly(t,n){await this.facades.route.call([`luminix.${this.parent.getType()}.${this.getName()}:sync`,{[this.parent.getKeyName()]:this.parent.getKey()}],{data:t.map(r=>({[this.getRelated().getSchema().primaryKey]:r,...n})),errorBag:`${this.parent.getType()}[${this.parent.getKey()}].${this.getName()}:sync`})}async sync(t){await this.syncQuietly(t);const n=await this.all();this.items?this.items.splice(0,this.items.count(),...n):this.items=n}async syncWithPivotValues(t,n){await this.syncWithPivotValuesQuietly(t,n);const r=await this.all();this.items?this.items.splice(0,this.items.count(),...r):this.items=r}}class Yv extends jm{query(){const t=super.query(),n=this.guessInverseRelation();return t.where(n,this.parent.getKey()),t.lock(`where.${n}`),t}async saveQuietly(t){if(!Dr(t))throw new No("HasOneOrMany.saveQuietly()");if(t.getType()!==this.getRelated().getSchemaName())throw new Xf("HasOneOrMany.saveQuietly()",this.getRelated().getSchemaName(),t.getType());t.setAttribute(this.getForeignKey(),this.parent.getKey()),await t.save()}}class WT extends Yv{constructor(t,n,r,i=null){if(!Dr(i)&&i!==null)throw new No("HasOne.constructor()","Model or null");super(t,n,r,i),this.meta=t,this.facades=n,this.parent=r,this.items=i}isSingle(){return!0}isMultiple(){return!1}get(){return this.query().first()}async save(t){await this.saveQuietly(t),this.items=t}}class GT extends Yv{constructor(t,n,r,i=null){if(i!==null&&!(i instanceof qv&&i.every(Dr)))throw new No("HasMany.constructor()","Collection<Model> or null");super(t,n,r,i),this.meta=t,this.facades=n,this.parent=r,this.items=i}isSingle(){return!1}isMultiple(){return!0}get(t=1,n){return this.query().get(t,n)}all(){return this.query().all()}first(){return this.query().first()}find(t){return this.query().find(t)}async saveManyQuietly(t){if(!Array.isArray(t)||!t.every(Dr))throw new No("HasMany.saveManyQuietly()","Model[]");if(!t.every(n=>n.getType()===this.getRelated().getSchemaName()))throw new Xf("HasMany.saveManyQuietly()",this.getRelated().getSchemaName(),t.map(n=>n.getType()).join(", "));await Promise.all(t.map(n=>(n.setAttribute(this.getForeignKey(),this.parent.getKey()),n.save())))}async saveMany(t){await this.saveManyQuietly(t);const n=await this.all();this.items?this.items.splice(0,this.items.count(),...n):this.items=n}async save(t){await this.saveQuietly(t),this.items===null?this.items=await this.all():this.items.push(t)}}let ow=class extends Yv{query(){const t=this.getRelated().query();t.once("success",r=>{this.items=r.items});const n=this.guessInverseRelation();return t.where(n+"_id",this.parent.getKey()),t.where(n+"_type",this.getRelated().getSchemaName()),t.lock(`where.${n}_id`),t.lock(`where.${n}_type`),t}async saveQuietly(t){if(!Dr(t))throw new No("MorphOneOrMany.saveQuietly()");if(t.getType()!==this.getRelated().getSchemaName())throw new Xf("MorphOneOrMany.saveQuietly()",this.getRelated().getSchemaName(),t.getType());const n=this.guessInverseRelation();t.setAttribute(n+"_id",this.parent.getKey()),t.setAttribute(n+"_type",this.parent.getType()),await t.save()}},KT=class extends ow{constructor(t,n,r,i=null){if(i!==null&&!(i instanceof qv&&i.every(Dr)))throw new No("MorphMany.constructor()","Collection<Model> or null");super(t,n,r,i),this.meta=t,this.facades=n,this.parent=r,this.items=i}isSingle(){return!1}isMultiple(){return!0}get(t=1,n){return this.query().get(t,n)}all(){return this.query().all()}first(){return this.query().first()}find(t){return this.query().find(t)}async saveManyQuietly(t){if(!Array.isArray(t)||!t.every(Dr))throw new No("MorphMany.saveManyQuietly()");if(!t.every(n=>n.getType()===this.getRelated().getSchemaName()))throw new Xf("MorphMany.saveManyQuietly()",this.getRelated().getSchemaName(),t.map(n=>n.getType()).join(", "));await Promise.all(t.map(n=>(n.setAttribute(this.getName()+"_id",this.parent.getKey()),n.setAttribute(this.getName()+"_type",this.parent.getType()),n.save())))}async save(t){await this.saveQuietly(t),this.items?this.items.push(t):this.items=await this.all()}async saveMany(t){await this.saveManyQuietly(t);const n=await this.all();this.items?this.items.splice(0,this.items.count(),...n):this.items=n}},VT=class extends ow{constructor(t,n,r,i=null){if(super(t,n,r,i),this.meta=t,this.facades=n,this.parent=r,this.items=i,i!==null&&!Dr(i))throw new No("MorphOne.constructor()","Model or null")}isSingle(){return!0}isMultiple(){return!1}get(){return this.query().first()}async save(t){await this.saveQuietly(t),this.items=t}},XT=class extends nw{getRelated(){return this.facades.model.make(this.parent.getAttribute(this.getName()+"_type"))}async associate(t){if(!Dr(t))throw new No("MorphTo.associate()");return t.exists||await t.save(),this.parent.update({[this.getName()+"_id"]:t.getKey(),[this.getName()+"_type"]:t.getType()})}dissociate(){return this.parent.update({[this.getName()+"_id"]:null,[this.getName()+"_type"]:null})}},qT=class extends rw{constructor(t,n,r,i=null){super(t,n,r,i),this.meta=t,this.facades=n,this.parent=r,this.items=i}query(){const t=super.query(),n=this.guessInverseRelation();return t.where(n+"_id",this.parent.getKey()),t.where(n+"_type",this.parent.getType()),t.lock(`where.${n}_id`),t.lock(`where.${n}_type`),t}};var iw;iw=Symbol.toStringTag;const YT=ul(Vf(class{constructor(t){nn(this,"_models",{}),nn(this,iw,"ModelFacade"),this._schema=t}boot(t){this._schema&&(Object.keys(this._schema).forEach(n=>{const r=this[`model${ve.upperFirst(ve.camelCase(n))}`];if(typeof this.model!="function"||typeof r!="function")throw new ba("ModelFacade");const i=this.model(BT(t,n),n),a=r(i);this._models[n]=UT(t.make(),n,a)}),this.reducer("relationMap",()=>({BelongsTo:nw,BelongsToMany:rw,HasOne:WT,HasMany:GT,MorphMany:KT,MorphOne:VT,MorphTo:XT,MorphToMany:qT}),0))}schema(t){if(!this._schema||t&&!this._schema[t])throw new ZS(t||"undefined");return t?this._schema[t]:this._schema}make(t){if(t&&!this._models[t])throw new ZS(t);return t?this._models[t]:this._models}toString(){return"model"}on(t,n){throw new Rr}once(t,n){throw new Rr}emit(t,n){throw new Rr}reducer(t,n,r){throw new Rr}removeReducer(t){throw new Rr}getReducer(t){throw new Rr}hasReducer(t){throw new Rr}clearReducer(t){throw new Rr}flushReducers(){throw new Rr}}));var sw,aw;let QT=class extends(aw=Error,sw=Symbol.toStringTag,aw){constructor(){super("[Luminix] Embed element not found. Make sure to include the `@luminixEmbed()` directive in your Blade template."),nn(this,sw,"NoEmbedException")}};const lw=(e,t="data")=>{if(!document.querySelector("#luminix-embed"))throw new QT;const n=document.getElementById(`luminix-${t}::`+e);return n?n.dataset.json&&n.dataset.value?JSON.parse(n.dataset.value):n.dataset.value:null},uw=ul(Tc),JT=e=>Kv(e)&&e.response!==void 0&&e.response.data!==null&&"message"in e.response.data&&typeof e.response.data.message=="string"&&"errors"in e.response.data&&typeof e.response.data.errors=="object"&&e.response.data.errors!==null&&Object.values(e.response.data.errors).every(t=>Array.isArray(t)&&t.every(n=>typeof n=="string"))&&e.response.status===422;let ZT=class{constructor(){nn(this,"bags");const t={};document.querySelectorAll('#luminix-embed [id^="luminix-error"]').forEach(n=>{const r=n.id.replace("luminix-error::","");t[r]=lw(r,"error")}),this.bags={default:new uw(t)}}bag(t="default"){return this.bags[t]||(this.bags[t]=new uw({})),this.bags[t]}add(t,n,r="default"){this.bag(r).set(t,n)}set(t,n="default"){this.bag(n).set(".",t)}all(t="default"){return this.bag(t).all()}get(t,n="default"){return this.bag(n).get(t,null)}clear(t="default"){this.bag(t).set(".",{})}};var cw,dw;let eO=class extends(dw=Error,cw=Symbol.toStringTag,dw){constructor(t){super(`[Luminix] Route "${t}" not found`),nn(this,cw,"RouteNotFoundException")}};const tO=Vf(class{constructor(t,n,r=""){this.routes=t,this.error=n,this.appUrl=r}isRouteTuple(t){if(!Array.isArray(t)||t.length<2)return!1;const[n,...r]=t;if(typeof n!="string")return!1;const i=["get","post","put","patch","delete"];return!!r.every(a=>i.includes(a))}extractGenerator(t){let n,r=!1;return Array.isArray(t)?[n,r]=t:n=t,[n,r]}get(t){if(!this.exists(t))throw new eO(t);return ve.get(this.routes,t)}url(t){const[n,r]=this.extractGenerator(t),i=this.get(n)[0].replace(/^\/|\/$/g,""),a=/{([^}]+)}/g;if(r===!1){if(typeof this.replaceRouteParams!="function")throw new ba("RouteFacade");return this.appUrl+this.replaceRouteParams(`/${i}`)}const u=i.match(a),f=u?u.map(x=>x.slice(1,-1)):[],p=Object.keys(r),h=f.filter(x=>!p.includes(x)),g=p.filter(x=>!f.includes(x));if(h.length>0)throw new TypeError(`Missing values for parameter(s): ${h.join(", ")}`);if(g.length>0)throw new TypeError(`Unexpected parameters: ${g.join(", ")}`);const b=f.reduce((x,k)=>x.replace(`{${k}}`,`${r[k]}`),i);return this.appUrl+`/${b}`}methods(t){const[n]=this.extractGenerator(t);return this.get(n).slice(1)}exists(t){return ve.has(this.routes,t)&&this.isRouteTuple(ve.get(this.routes,t))}async call(t,n={}){if(typeof this.axiosOptions!="function"||typeof this.axiosError!="function")throw new ba("RouteFacade");const[r,i]=this.extractGenerator(t),[,...a]=this.get(r),u=this.url(i?[r,i]:r),f=this.axiosOptions(n,r),{method:p=a[0],errorBag:h="default",...g}=f,{data:b,...x}=g;this.error.clear(h);try{return["get","delete"].includes(p)?await Xn[p](u,g):await Xn[p](u,b,x)}catch(k){if(JT(k)){const{errors:E}=k.response.data;this.error.set(Object.entries(E).reduce((w,[T,P])=>(w[T]=P.join(" "),w),{}),h)}else Xn.isAxiosError(k)&&this.error.set(this.axiosError({axios:k.message},{error:k,name:r,replace:i,config:n}),h);throw k}}toString(){return"route"}}),nO=ul(class{constructor(){nn(this,"facades",{}),nn(this,"booted",!1),nn(this,"_plugins",[])}make(t=void 0){if(!t)return this.facades;if(t in this.facades)return this.facades[t]}has(t){return!!this.facades[t]}bind(t,n){this.facades[t]||(this.facades[t]=n)}plugins(){return this._plugins}async boot(t={}){var n,r,i,a,u,f;if(this.booted)throw new window.Error("[Luminix] App already booted");this.booted=!0,(n=t.app)!=null&&n.debug&&console.log("[Luminix] Booting started..."),this.emit("init",{register:k=>{this._plugins.push(k),typeof k.register=="function"&&k.register(this)}});const p=(((r=t.app)==null?void 0:r.url)??"")+(((i=t.app)==null?void 0:i.bootUrl)??"/luminix-api/init");if(document.getElementById("luminix-data::config")){if(document.getElementById("luminix-data::config")){const k=lw("config");k&&typeof k=="object"&&ve.merge(t,k)}}else try{const{data:k}=await Xn.get(p);k&&typeof k=="object"&&ve.merge(t,k)}catch(k){(a=t.app)!=null&&a.debug&&console.error(k)}this.bind("log",new NT(!!((u=t.app)!=null&&u.debug)));const{log:h}=this.facades,{manifest:{routes:g={},models:b={}}={},...x}=t;this.bind("config",new Tc(x)),this.facades.config.has("auth.user")||this.facades.config.set("auth.user",null),this.facades.config.lock("auth.user"),this.bind("error",new ZT),this.bind("route",new tO(g,this.facades.error,((f=t.app)==null?void 0:f.url)??"")),this.bind("model",new YT(b)),this.bind("auth",new DT(this)),this.emit("booting");for(const k of Object.values(this.facades))typeof k=="object"&&k!==null&&"boot"in k&&typeof k.boot=="function"&&k.boot(this);for(const k of this._plugins)typeof k.boot=="function"&&k.boot(this.facades);return h.info("[Luminix] App boot completed",{config:this.facades.config.all(),plugins:this._plugins,manifest:{routes:g,models:b}}),this.emit("booted"),this.facades}environment(...t){return t.length>0?t.includes(this.facades.config.get("app.env","production")):this.facades.config.get("app.env","production")}getLocale(){return this.facades.config.get("app.locale","en")}getPlugin(t){for(const n of this._plugins)if(n instanceof t)return n}hasDebugModeEnabled(){return this.facades.config.get("app.debug",!1)}isLocal(){return this.facades.config.get("app.env","production")==="local"}isProduction(){return this.facades.config.get("app.env","production")==="production"}on(t,n){throw new window.Error("Method not implemented.")}once(t,n){throw new window.Error("Method not implemented.")}emit(t,n){throw new window.Error("Method not implemented.")}});let Jn;function Ut(e=void 0){if(Jn||(Jn=new nO),typeof e!="string")return{boot:Jn.boot.bind(Jn),make:Jn.make.bind(Jn),plugins:Jn.plugins.bind(Jn),on:Jn.once.bind(Jn),environment:Jn.environment.bind(Jn),getLocale:Jn.getLocale.bind(Jn),getPlugin:Jn.getPlugin.bind(Jn),hasDebugModeEnabled:Jn.hasDebugModeEnabled.bind(Jn),isLocal:Jn.isLocal.bind(Jn),isProduction:Jn.isProduction.bind(Jn)};if(!Jn.has(e))throw new AT(e);return Jn.make(e)}function ho(e){return ut(e)}function dl(e,t){const n=Ut("config");return typeof e>"u"?n:n.get(e,t)}function Qv(e,t="default"){return e?Ut().make("error").get(e,t):Ut().make("error")}function Jv(...e){const t=Ut("log");return e.length?t.debug(...e):t}function Oc(e){const t=Ut("model");return e?t.make(e):t}function Zv(e,t=!1){const n=Ut("route");return e?t?n.url([e,t]):n.url(e):n}let e1=class{constructor(){nn(this,"name"),nn(this,"version")}register(t){}boot(t){}};function tr(){return tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tr.apply(this,arguments)}var yr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(yr||(yr={}));const fw="popstate";function rO(e){e===void 0&&(e={});function t(r,i){let{pathname:a,search:u,hash:f}=r.location;return qf("",{pathname:a,search:u,hash:f},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:fl(i)}return iO(t,n,null,e)}function Jt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Pc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function oO(){return Math.random().toString(36).substr(2,8)}function pw(e,t){return{usr:e.state,key:e.key,idx:t}}function qf(e,t,n,r){return n===void 0&&(n=null),tr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?pl(t):t,{state:n,key:t&&t.key||r||oO()})}function fl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function pl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function iO(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,u=i.history,f=yr.Pop,p=null,h=g();h==null&&(h=0,u.replaceState(tr({},u.state,{idx:h}),""));function g(){return(u.state||{idx:null}).idx}function b(){f=yr.Pop;let T=g(),P=T==null?null:T-h;h=T,p&&p({action:f,location:w.location,delta:P})}function x(T,P){f=yr.Push;let I=qf(w.location,T,P);h=g()+1;let D=pw(I,h),M=w.createHref(I);try{u.pushState(D,"",M)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;i.location.assign(M)}a&&p&&p({action:f,location:w.location,delta:1})}function k(T,P){f=yr.Replace;let I=qf(w.location,T,P);h=g();let D=pw(I,h),M=w.createHref(I);u.replaceState(D,"",M),a&&p&&p({action:f,location:w.location,delta:0})}function E(T){let P=i.location.origin!=="null"?i.location.origin:i.location.href,I=typeof T=="string"?T:fl(T);return I=I.replace(/ $/,"%20"),Jt(P,"No window.location.(origin|href) available to create URL for href: "+I),new URL(I,P)}let w={get action(){return f},get location(){return e(i,u)},listen(T){if(p)throw new Error("A history only accepts one active listener");return i.addEventListener(fw,b),p=T,()=>{i.removeEventListener(fw,b),p=null}},createHref(T){return t(i,T)},createURL:E,encodeLocation(T){let P=E(T);return{pathname:P.pathname,search:P.search,hash:P.hash}},push:x,replace:k,go(T){return u.go(T)}};return w}var Wn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Wn||(Wn={}));const sO=new Set(["lazy","caseSensitive","path","id","index","children"]);function aO(e){return e.index===!0}function Yf(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let u=[...n,String(a)],f=typeof i.id=="string"?i.id:u.join("-");if(Jt(i.index!==!0||!i.children,"Cannot specify children on an index route"),Jt(!r[f],'Found a route id collision on id "'+f+`". Route id's must be globally unique within Data Router usages`),aO(i)){let p=tr({},i,t(i),{id:f});return r[f]=p,p}else{let p=tr({},i,t(i),{id:f,children:void 0});return r[f]=p,i.children&&(p.children=Yf(i.children,t,u,r)),p}})}function vu(e,t,n){return n===void 0&&(n="/"),Fm(e,t,n,!1)}function Fm(e,t,n,r){let i=typeof t=="string"?pl(t):t,a=hl(i.pathname||"/",n);if(a==null)return null;let u=hw(e);uO(u);let f=null;for(let p=0;f==null&&p<u.length;++p){let h=xO(a);f=bO(u[p],h,r)}return f}function lO(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function hw(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(a,u,f)=>{let p={relativePath:f===void 0?a.path||"":f,caseSensitive:a.caseSensitive===!0,childrenIndex:u,route:a};p.relativePath.startsWith("/")&&(Jt(p.relativePath.startsWith(r),'Absolute route path "'+p.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),p.relativePath=p.relativePath.slice(r.length));let h=Is([r,p.relativePath]),g=n.concat(p);a.children&&a.children.length>0&&(Jt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),hw(a.children,t,g,h)),!(a.path==null&&!a.index)&&t.push({path:h,score:gO(h,a.index),routesMeta:g})};return e.forEach((a,u)=>{var f;if(a.path===""||!((f=a.path)!=null&&f.includes("?")))i(a,u);else for(let p of mw(a.path))i(a,u,p)}),t}function mw(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let u=mw(r.join("/")),f=[];return f.push(...u.map(p=>p===""?a:[a,p].join("/"))),i&&f.push(...u),f.map(p=>e.startsWith("/")&&p===""?"/":p)}function uO(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:vO(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const cO=/^:[\w-]+$/,dO=3,fO=2,pO=1,hO=10,mO=-2,gw=e=>e==="*";function gO(e,t){let n=e.split("/"),r=n.length;return n.some(gw)&&(r+=mO),t&&(r+=fO),n.filter(i=>!gw(i)).reduce((i,a)=>i+(cO.test(a)?dO:a===""?pO:hO),r)}function vO(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function bO(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},a="/",u=[];for(let f=0;f<r.length;++f){let p=r[f],h=f===r.length-1,g=a==="/"?t:t.slice(a.length)||"/",b=vw({path:p.relativePath,caseSensitive:p.caseSensitive,end:h},g),x=p.route;if(!b&&h&&n&&!r[r.length-1].route.index&&(b=vw({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},g)),!b)return null;Object.assign(i,b.params),u.push({params:i,pathname:Is([a,b.pathname]),pathnameBase:_O(Is([a,b.pathnameBase])),route:x}),b.pathnameBase!=="/"&&(a=Is([a,b.pathnameBase]))}return u}function vw(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=yO(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],u=a.replace(/(.)\/+$/,"$1"),f=i.slice(1);return{params:r.reduce((h,g,b)=>{let{paramName:x,isOptional:k}=g;if(x==="*"){let w=f[b]||"";u=a.slice(0,a.length-w.length).replace(/(.)\/+$/,"$1")}const E=f[b];return k&&!E?h[x]=void 0:h[x]=(E||"").replace(/%2F/g,"/"),h},{}),pathname:a,pathnameBase:u,pattern:e}}function yO(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Pc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,f,p)=>(r.push({paramName:f,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function xO(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Pc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function hl(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function SO(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?pl(e):e;return{pathname:n?n.startsWith("/")?n:wO(n,t):t,search:CO(r),hash:EO(i)}}function wO(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function t1(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function bw(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function n1(e,t){let n=bw(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function r1(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=pl(e):(i=tr({},e),Jt(!i.pathname||!i.pathname.includes("?"),t1("?","pathname","search",i)),Jt(!i.pathname||!i.pathname.includes("#"),t1("#","pathname","hash",i)),Jt(!i.search||!i.search.includes("#"),t1("#","search","hash",i)));let a=e===""||i.pathname==="",u=a?"/":i.pathname,f;if(u==null)f=n;else{let b=t.length-1;if(!r&&u.startsWith("..")){let x=u.split("/");for(;x[0]==="..";)x.shift(),b-=1;i.pathname=x.join("/")}f=b>=0?t[b]:"/"}let p=SO(i,f),h=u&&u!=="/"&&u.endsWith("/"),g=(a||u===".")&&n.endsWith("/");return!p.pathname.endsWith("/")&&(h||g)&&(p.pathname+="/"),p}const Is=e=>e.join("/").replace(/\/\/+/g,"/"),_O=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),CO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,EO=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class o1{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function zm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const yw=["post","put","patch","delete"],RO=new Set(yw),kO=["get",...yw],TO=new Set(kO),OO=new Set([301,302,303,307,308]),PO=new Set([307,308]),i1={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},IO={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Qf={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},s1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,AO=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),xw="remix-router-transitions";function DO(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Jt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let K=e.detectErrorBoundary;i=ee=>({hasErrorBoundary:K(ee)})}else i=AO;let a={},u=Yf(e.routes,i,void 0,a),f,p=e.basename||"/",h=e.unstable_dataStrategy||jO,g=e.unstable_patchRoutesOnMiss,b=tr({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),x=null,k=new Set,E=null,w=null,T=null,P=e.hydrationData!=null,I=vu(u,e.history.location,p),D=null;if(I==null&&!g){let K=mo(404,{pathname:e.history.location.pathname}),{matches:ee,route:ge}=Aw(u);I=ee,D={[ge.id]:K}}I&&g&&!e.hydrationData&&Bo(I,u,e.history.location.pathname).active&&(I=null);let M;if(!I)M=!1,I=[];else if(I.some(K=>K.route.lazy))M=!1;else if(!I.some(K=>K.route.loader))M=!0;else if(b.v7_partialHydration){let K=e.hydrationData?e.hydrationData.loaderData:null,ee=e.hydrationData?e.hydrationData.errors:null,ge=ke=>ke.route.loader?typeof ke.route.loader=="function"&&ke.route.loader.hydrate===!0?!1:K&&K[ke.route.id]!==void 0||ee&&ee[ke.route.id]!==void 0:!0;if(ee){let ke=I.findIndex(qe=>ee[qe.route.id]!==void 0);M=I.slice(0,ke+1).every(ge)}else M=I.every(ge)}else M=e.hydrationData!=null;let L,A={historyAction:e.history.action,location:e.history.location,matches:I,initialized:M,navigation:i1,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||D,fetchers:new Map,blockers:new Map},z=yr.Pop,G=!1,q,X=!1,ne=new Map,Q=null,Z=!1,V=!1,ce=[],ue=[],se=new Map,U=0,ae=-1,Se=new Map,H=new Set,be=new Map,Ke=new Map,Ie=new Set,$e=new Map,Ee=new Map,Ye=new Map,Ce=!1;function Fe(){if(x=e.history.listen(K=>{let{action:ee,location:ge,delta:ke}=K;if(Ce){Ce=!1;return}Pc(Ee.size===0||ke!=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 qe=pn({currentLocation:A.location,nextLocation:ge,historyAction:ee});if(qe&&ke!=null){Ce=!0,e.history.go(ke*-1),Gt(qe,{state:"blocked",location:ge,proceed(){Gt(qe,{state:"proceeding",proceed:void 0,reset:void 0,location:ge}),e.history.go(ke)},reset(){let ft=new Map(A.blockers);ft.set(qe,Qf),Qe({blockers:ft})}});return}return at(ee,ge)}),n){QO(t,ne);let K=()=>JO(t,ne);t.addEventListener("pagehide",K),Q=()=>t.removeEventListener("pagehide",K)}return A.initialized||at(yr.Pop,A.location,{initialHydration:!0}),L}function mt(){x&&x(),Q&&Q(),k.clear(),q&&q.abort(),A.fetchers.forEach((K,ee)=>hn(ee)),A.blockers.forEach((K,ee)=>Ft(ee))}function it(K){return k.add(K),()=>k.delete(K)}function Qe(K,ee){ee===void 0&&(ee={}),A=tr({},A,K);let ge=[],ke=[];b.v7_fetcherPersist&&A.fetchers.forEach((qe,ft)=>{qe.state==="idle"&&(Ie.has(ft)?ke.push(ft):ge.push(ft))}),[...k].forEach(qe=>qe(A,{deletedFetchers:ke,unstable_viewTransitionOpts:ee.viewTransitionOpts,unstable_flushSync:ee.flushSync===!0})),b.v7_fetcherPersist&&(ge.forEach(qe=>A.fetchers.delete(qe)),ke.forEach(qe=>hn(qe)))}function vt(K,ee,ge){var ke,qe;let{flushSync:ft}=ge===void 0?{}:ge,Ct=A.actionData!=null&&A.navigation.formMethod!=null&&us(A.navigation.formMethod)&&A.navigation.state==="loading"&&((ke=K.state)==null?void 0:ke._isRedirect)!==!0,Ve;ee.actionData?Object.keys(ee.actionData).length>0?Ve=ee.actionData:Ve=null:Ct?Ve=A.actionData:Ve=null;let Tt=ee.loaderData?Pw(A.loaderData,ee.loaderData,ee.matches||[],ee.errors):A.loaderData,oe=A.blockers;oe.size>0&&(oe=new Map(oe),oe.forEach((Ae,Je)=>oe.set(Je,Qf)));let re=G===!0||A.navigation.formMethod!=null&&us(A.navigation.formMethod)&&((qe=K.state)==null?void 0:qe._isRedirect)!==!0;f&&(u=f,f=void 0),Z||z===yr.Pop||(z===yr.Push?e.history.push(K,K.state):z===yr.Replace&&e.history.replace(K,K.state));let je;if(z===yr.Pop){let Ae=ne.get(A.location.pathname);Ae&&Ae.has(K.pathname)?je={currentLocation:A.location,nextLocation:K}:ne.has(K.pathname)&&(je={currentLocation:K,nextLocation:A.location})}else if(X){let Ae=ne.get(A.location.pathname);Ae?Ae.add(K.pathname):(Ae=new Set([K.pathname]),ne.set(A.location.pathname,Ae)),je={currentLocation:A.location,nextLocation:K}}Qe(tr({},ee,{actionData:Ve,loaderData:Tt,historyAction:z,location:K,initialized:!0,navigation:i1,revalidation:"idle",restoreScrollPosition:zo(K,ee.matches||A.matches),preventScrollReset:re,blockers:oe}),{viewTransitionOpts:je,flushSync:ft===!0}),z=yr.Pop,G=!1,X=!1,Z=!1,V=!1,ce=[],ue=[]}async function wt(K,ee){if(typeof K=="number"){e.history.go(K);return}let ge=a1(A.location,A.matches,p,b.v7_prependBasename,K,b.v7_relativeSplatPath,ee==null?void 0:ee.fromRouteId,ee==null?void 0:ee.relative),{path:ke,submission:qe,error:ft}=Sw(b.v7_normalizeFormMethod,!1,ge,ee),Ct=A.location,Ve=qf(A.location,ke,ee&&ee.state);Ve=tr({},Ve,e.history.encodeLocation(Ve));let Tt=ee&&ee.replace!=null?ee.replace:void 0,oe=yr.Push;Tt===!0?oe=yr.Replace:Tt===!1||qe!=null&&us(qe.formMethod)&&qe.formAction===A.location.pathname+A.location.search&&(oe=yr.Replace);let re=ee&&"preventScrollReset"in ee?ee.preventScrollReset===!0:void 0,je=(ee&&ee.unstable_flushSync)===!0,Ae=pn({currentLocation:Ct,nextLocation:Ve,historyAction:oe});if(Ae){Gt(Ae,{state:"blocked",location:Ve,proceed(){Gt(Ae,{state:"proceeding",proceed:void 0,reset:void 0,location:Ve}),wt(K,ee)},reset(){let Je=new Map(A.blockers);Je.set(Ae,Qf),Qe({blockers:Je})}});return}return await at(oe,Ve,{submission:qe,pendingError:ft,preventScrollReset:re,replace:ee&&ee.replace,enableViewTransition:ee&&ee.unstable_viewTransition,flushSync:je})}function yt(){if(fn(),Qe({revalidation:"loading"}),A.navigation.state!=="submitting"){if(A.navigation.state==="idle"){at(A.historyAction,A.location,{startUninterruptedRevalidation:!0});return}at(z||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation})}}async function at(K,ee,ge){q&&q.abort(),q=null,z=K,Z=(ge&&ge.startUninterruptedRevalidation)===!0,vi(A.location,A.matches),G=(ge&&ge.preventScrollReset)===!0,X=(ge&&ge.enableViewTransition)===!0;let ke=f||u,qe=ge&&ge.overrideNavigation,ft=vu(ke,ee,p),Ct=(ge&&ge.flushSync)===!0,Ve=Bo(ft,ke,ee.pathname);if(Ve.active&&Ve.matches&&(ft=Ve.matches),!ft){let{error:He,notFoundMatches:St,route:ln}=cn(ee.pathname);vt(ee,{matches:St,loaderData:{},errors:{[ln.id]:He}},{flushSync:Ct});return}if(A.initialized&&!V&&WO(A.location,ee)&&!(ge&&ge.submission&&us(ge.submission.formMethod))){vt(ee,{matches:ft},{flushSync:Ct});return}q=new AbortController;let Tt=Ic(e.history,ee,q.signal,ge&&ge.submission),oe;if(ge&&ge.pendingError)oe=[Ac(ft).route.id,{type:Wn.error,error:ge.pendingError}];else if(ge&&ge.submission&&us(ge.submission.formMethod)){let He=await Wt(Tt,ee,ge.submission,ft,Ve.active,{replace:ge.replace,flushSync:Ct});if(He.shortCircuited)return;if(He.pendingActionResult){let[St,ln]=He.pendingActionResult;if(ai(ln)&&zm(ln.error)&&ln.error.status===404){q=null,vt(ee,{matches:He.matches,loaderData:{},errors:{[St]:ln.error}});return}}ft=He.matches||ft,oe=He.pendingActionResult,qe=c1(ee,ge.submission),Ct=!1,Ve.active=!1,Tt=Ic(e.history,Tt.url,Tt.signal)}let{shortCircuited:re,matches:je,loaderData:Ae,errors:Je}=await bt(Tt,ee,ft,Ve.active,qe,ge&&ge.submission,ge&&ge.fetcherSubmission,ge&&ge.replace,ge&&ge.initialHydration===!0,Ct,oe);re||(q=null,vt(ee,tr({matches:je||ft},Iw(oe),{loaderData:Ae,errors:Je})))}async function Wt(K,ee,ge,ke,qe,ft){ft===void 0&&(ft={}),fn();let Ct=qO(ee,ge);if(Qe({navigation:Ct},{flushSync:ft.flushSync===!0}),qe){let oe=await wr(ke,ee.pathname,K.signal);if(oe.type==="aborted")return{shortCircuited:!0};if(oe.type==="error"){let{boundaryId:re,error:je}=Dn(ee.pathname,oe);return{matches:oe.partialMatches,pendingActionResult:[re,{type:Wn.error,error:je}]}}else if(oe.matches)ke=oe.matches;else{let{notFoundMatches:re,error:je,route:Ae}=cn(ee.pathname);return{matches:re,pendingActionResult:[Ae.id,{type:Wn.error,error:je}]}}}let Ve,Tt=Jf(ke,ee);if(!Tt.route.action&&!Tt.route.lazy)Ve={type:Wn.error,error:mo(405,{method:K.method,pathname:ee.pathname,routeId:Tt.route.id})};else if(Ve=(await an("action",K,[Tt],ke))[0],K.signal.aborted)return{shortCircuited:!0};if(yu(Ve)){let oe;return ft&&ft.replace!=null?oe=ft.replace:oe=kw(Ve.response.headers.get("Location"),new URL(K.url),p)===A.location.pathname+A.location.search,await Lt(K,Ve,{submission:ge,replace:oe}),{shortCircuited:!0}}if(bu(Ve))throw mo(400,{type:"defer-action"});if(ai(Ve)){let oe=Ac(ke,Tt.route.id);return(ft&&ft.replace)!==!0&&(z=yr.Push),{matches:ke,pendingActionResult:[oe.route.id,Ve]}}return{matches:ke,pendingActionResult:[Tt.route.id,Ve]}}async function bt(K,ee,ge,ke,qe,ft,Ct,Ve,Tt,oe,re){let je=qe||c1(ee,ft),Ae=ft||Ct||jw(je),Je=!Z&&(!b.v7_partialHydration||!Tt);if(ke){if(Je){let mn=sn(re);Qe(tr({navigation:je},mn!==void 0?{actionData:mn}:{}),{flushSync:oe})}let zt=await wr(ge,ee.pathname,K.signal);if(zt.type==="aborted")return{shortCircuited:!0};if(zt.type==="error"){let{boundaryId:mn,error:Xr}=Dn(ee.pathname,zt);return{matches:zt.partialMatches,loaderData:{},errors:{[mn]:Xr}}}else if(zt.matches)ge=zt.matches;else{let{error:mn,notFoundMatches:Xr,route:un}=cn(ee.pathname);return{matches:Xr,loaderData:{},errors:{[un.id]:mn}}}}let He=f||u,[St,ln]=ww(e.history,A,ge,Ae,ee,b.v7_partialHydration&&Tt===!0,b.v7_skipActionErrorRevalidation,V,ce,ue,Ie,be,H,He,p,re);if(Ln(zt=>!(ge&&ge.some(mn=>mn.route.id===zt))||St&&St.some(mn=>mn.route.id===zt)),ae=++U,St.length===0&&ln.length===0){let zt=Be();return vt(ee,tr({matches:ge,loaderData:{},errors:re&&ai(re[1])?{[re[0]]:re[1].error}:null},Iw(re),zt?{fetchers:new Map(A.fetchers)}:{}),{flushSync:oe}),{shortCircuited:!0}}if(Je){let zt={};if(!ke){zt.navigation=je;let mn=sn(re);mn!==void 0&&(zt.actionData=mn)}ln.length>0&&(zt.fetchers=Dt(ln)),Qe(zt,{flushSync:oe})}ln.forEach(zt=>{se.has(zt.key)&&et(zt.key),zt.controller&&se.set(zt.key,zt.controller)});let Vr=()=>ln.forEach(zt=>et(zt.key));q&&q.signal.addEventListener("abort",Vr);let{loaderResults:Bi,fetcherResults:wn}=await Tn(A.matches,ge,St,ln,K);if(K.signal.aborted)return{shortCircuited:!0};q&&q.signal.removeEventListener("abort",Vr),ln.forEach(zt=>se.delete(zt.key));let Us=Dw([...Bi,...wn]);if(Us){if(Us.idx>=St.length){let zt=ln[Us.idx-St.length].key;H.add(zt)}return await Lt(K,Us.result,{replace:Ve}),{shortCircuited:!0}}let{loaderData:Ui,errors:_o}=Ow(A,ge,St,Bi,re,ln,wn,$e);$e.forEach((zt,mn)=>{zt.subscribe(Xr=>{(Xr||zt.done)&&$e.delete(mn)})}),b.v7_partialHydration&&Tt&&A.errors&&Object.entries(A.errors).filter(zt=>{let[mn]=zt;return!St.some(Xr=>Xr.route.id===mn)}).forEach(zt=>{let[mn,Xr]=zt;_o=Object.assign(_o||{},{[mn]:Xr})});let Hi=Be(),Ia=tt(ae),Hs=Hi||Ia||ln.length>0;return tr({matches:ge,loaderData:Ui,errors:_o},Hs?{fetchers:new Map(A.fetchers)}:{})}function sn(K){if(K&&!ai(K[1]))return{[K[0]]:K[1].data};if(A.actionData)return Object.keys(A.actionData).length===0?null:A.actionData}function Dt(K){return K.forEach(ee=>{let ge=A.fetchers.get(ee.key),ke=Zf(void 0,ge?ge.data:void 0);A.fetchers.set(ee.key,ke)}),new Map(A.fetchers)}function Et(K,ee,ge,ke){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.");se.has(K)&&et(K);let qe=(ke&&ke.unstable_flushSync)===!0,ft=f||u,Ct=a1(A.location,A.matches,p,b.v7_prependBasename,ge,b.v7_relativeSplatPath,ee,ke==null?void 0:ke.relative),Ve=vu(ft,Ct,p),Tt=Bo(Ve,ft,Ct);if(Tt.active&&Tt.matches&&(Ve=Tt.matches),!Ve){We(K,ee,mo(404,{pathname:Ct}),{flushSync:qe});return}let{path:oe,submission:re,error:je}=Sw(b.v7_normalizeFormMethod,!0,Ct,ke);if(je){We(K,ee,je,{flushSync:qe});return}let Ae=Jf(Ve,oe);if(G=(ke&&ke.preventScrollReset)===!0,re&&us(re.formMethod)){en(K,ee,oe,Ae,Ve,Tt.active,qe,re);return}be.set(K,{routeId:ee,path:oe}),Kt(K,ee,oe,Ae,Ve,Tt.active,qe,re)}async function en(K,ee,ge,ke,qe,ft,Ct,Ve){fn(),be.delete(K);function Tt(un){if(!un.route.action&&!un.route.lazy){let Uo=mo(405,{method:Ve.formMethod,pathname:ge,routeId:ee});return We(K,ee,Uo,{flushSync:Ct}),!0}return!1}if(!ft&&Tt(ke))return;let oe=A.fetchers.get(K);pt(K,YO(Ve,oe),{flushSync:Ct});let re=new AbortController,je=Ic(e.history,ge,re.signal,Ve);if(ft){let un=await wr(qe,ge,je.signal);if(un.type==="aborted")return;if(un.type==="error"){let{error:Uo}=Dn(ge,un);We(K,ee,Uo,{flushSync:Ct});return}else if(un.matches){if(qe=un.matches,ke=Jf(qe,ge),Tt(ke))return}else{We(K,ee,mo(404,{pathname:ge}),{flushSync:Ct});return}}se.set(K,re);let Ae=U,He=(await an("action",je,[ke],qe))[0];if(je.signal.aborted){se.get(K)===re&&se.delete(K);return}if(b.v7_fetcherPersist&&Ie.has(K)){if(yu(He)||ai(He)){pt(K,ml(void 0));return}}else{if(yu(He))if(se.delete(K),ae>Ae){pt(K,ml(void 0));return}else return H.add(K),pt(K,Zf(Ve)),Lt(je,He,{fetcherSubmission:Ve});if(ai(He)){We(K,ee,He.error);return}}if(bu(He))throw mo(400,{type:"defer-action"});let St=A.navigation.location||A.location,ln=Ic(e.history,St,re.signal),Vr=f||u,Bi=A.navigation.state!=="idle"?vu(Vr,A.navigation.location,p):A.matches;Jt(Bi,"Didn't find any matches after fetcher action");let wn=++U;Se.set(K,wn);let Us=Zf(Ve,He.data);A.fetchers.set(K,Us);let[Ui,_o]=ww(e.history,A,Bi,Ve,St,!1,b.v7_skipActionErrorRevalidation,V,ce,ue,Ie,be,H,Vr,p,[ke.route.id,He]);_o.filter(un=>un.key!==K).forEach(un=>{let Uo=un.key,Au=A.fetchers.get(Uo),gd=Zf(void 0,Au?Au.data:void 0);A.fetchers.set(Uo,gd),se.has(Uo)&&et(Uo),un.controller&&se.set(Uo,un.controller)}),Qe({fetchers:new Map(A.fetchers)});let Hi=()=>_o.forEach(un=>et(un.key));re.signal.addEventListener("abort",Hi);let{loaderResults:Ia,fetcherResults:Hs}=await Tn(A.matches,Bi,Ui,_o,ln);if(re.signal.aborted)return;re.signal.removeEventListener("abort",Hi),Se.delete(K),se.delete(K),_o.forEach(un=>se.delete(un.key));let zt=Dw([...Ia,...Hs]);if(zt){if(zt.idx>=Ui.length){let un=_o[zt.idx-Ui.length].key;H.add(un)}return Lt(ln,zt.result)}let{loaderData:mn,errors:Xr}=Ow(A,A.matches,Ui,Ia,void 0,_o,Hs,$e);if(A.fetchers.has(K)){let un=ml(He.data);A.fetchers.set(K,un)}tt(wn),A.navigation.state==="loading"&&wn>ae?(Jt(z,"Expected pending action"),q&&q.abort(),vt(A.navigation.location,{matches:Bi,loaderData:mn,errors:Xr,fetchers:new Map(A.fetchers)})):(Qe({errors:Xr,loaderData:Pw(A.loaderData,mn,Bi,Xr),fetchers:new Map(A.fetchers)}),V=!1)}async function Kt(K,ee,ge,ke,qe,ft,Ct,Ve){let Tt=A.fetchers.get(K);pt(K,Zf(Ve,Tt?Tt.data:void 0),{flushSync:Ct});let oe=new AbortController,re=Ic(e.history,ge,oe.signal);if(ft){let He=await wr(qe,ge,re.signal);if(He.type==="aborted")return;if(He.type==="error"){let{error:St}=Dn(ge,He);We(K,ee,St,{flushSync:Ct});return}else if(He.matches)qe=He.matches,ke=Jf(qe,ge);else{We(K,ee,mo(404,{pathname:ge}),{flushSync:Ct});return}}se.set(K,oe);let je=U,Je=(await an("loader",re,[ke],qe))[0];if(bu(Je)&&(Je=await Lw(Je,re.signal,!0)||Je),se.get(K)===oe&&se.delete(K),!re.signal.aborted){if(Ie.has(K)){pt(K,ml(void 0));return}if(yu(Je))if(ae>je){pt(K,ml(void 0));return}else{H.add(K),await Lt(re,Je);return}if(ai(Je)){We(K,ee,Je.error);return}Jt(!bu(Je),"Unhandled fetcher deferred data"),pt(K,ml(Je.data))}}async function Lt(K,ee,ge){let{submission:ke,fetcherSubmission:qe,replace:ft}=ge===void 0?{}:ge;ee.response.headers.has("X-Remix-Revalidate")&&(V=!0);let Ct=ee.response.headers.get("Location");Jt(Ct,"Expected a Location header on the redirect Response"),Ct=kw(Ct,new URL(K.url),p);let Ve=qf(A.location,Ct,{_isRedirect:!0});if(n){let Je=!1;if(ee.response.headers.has("X-Remix-Reload-Document"))Je=!0;else if(s1.test(Ct)){const He=e.history.createURL(Ct);Je=He.origin!==t.location.origin||hl(He.pathname,p)==null}if(Je){ft?t.location.replace(Ct):t.location.assign(Ct);return}}q=null;let Tt=ft===!0?yr.Replace:yr.Push,{formMethod:oe,formAction:re,formEncType:je}=A.navigation;!ke&&!qe&&oe&&re&&je&&(ke=jw(A.navigation));let Ae=ke||qe;if(PO.has(ee.response.status)&&Ae&&us(Ae.formMethod))await at(Tt,Ve,{submission:tr({},Ae,{formAction:Ct}),preventScrollReset:G});else{let Je=c1(Ve,ke);await at(Tt,Ve,{overrideNavigation:Je,fetcherSubmission:qe,preventScrollReset:G})}}async function an(K,ee,ge,ke){try{let qe=await FO(h,K,ee,ge,ke,a,i);return await Promise.all(qe.map((ft,Ct)=>{if(KO(ft)){let Ve=ft.result;return{type:Wn.redirect,response:UO(Ve,ee,ge[Ct].route.id,ke,p,b.v7_relativeSplatPath)}}return BO(ft)}))}catch(qe){return ge.map(()=>({type:Wn.error,error:qe}))}}async function Tn(K,ee,ge,ke,qe){let[ft,...Ct]=await Promise.all([ge.length?an("loader",qe,ge,ee):[],...ke.map(Ve=>{if(Ve.matches&&Ve.match&&Ve.controller){let Tt=Ic(e.history,Ve.path,Ve.controller.signal);return an("loader",Tt,[Ve.match],Ve.matches).then(oe=>oe[0])}else return Promise.resolve({type:Wn.error,error:mo(404,{pathname:Ve.path})})})]);return await Promise.all([Mw(K,ge,ft,ft.map(()=>qe.signal),!1,A.loaderData),Mw(K,ke.map(Ve=>Ve.match),Ct,ke.map(Ve=>Ve.controller?Ve.controller.signal:null),!0)]),{loaderResults:ft,fetcherResults:Ct}}function fn(){V=!0,ce.push(...Ln()),be.forEach((K,ee)=>{se.has(ee)&&(ue.push(ee),et(ee))})}function pt(K,ee,ge){ge===void 0&&(ge={}),A.fetchers.set(K,ee),Qe({fetchers:new Map(A.fetchers)},{flushSync:(ge&&ge.flushSync)===!0})}function We(K,ee,ge,ke){ke===void 0&&(ke={});let qe=Ac(A.matches,ee);hn(K),Qe({errors:{[qe.route.id]:ge},fetchers:new Map(A.fetchers)},{flushSync:(ke&&ke.flushSync)===!0})}function jt(K){return b.v7_fetcherPersist&&(Ke.set(K,(Ke.get(K)||0)+1),Ie.has(K)&&Ie.delete(K)),A.fetchers.get(K)||IO}function hn(K){let ee=A.fetchers.get(K);se.has(K)&&!(ee&&ee.state==="loading"&&Se.has(K))&&et(K),be.delete(K),Se.delete(K),H.delete(K),Ie.delete(K),A.fetchers.delete(K)}function Mn(K){if(b.v7_fetcherPersist){let ee=(Ke.get(K)||0)-1;ee<=0?(Ke.delete(K),Ie.add(K)):Ke.set(K,ee)}else hn(K);Qe({fetchers:new Map(A.fetchers)})}function et(K){let ee=se.get(K);Jt(ee,"Expected fetch controller: "+K),ee.abort(),se.delete(K)}function Pt(K){for(let ee of K){let ge=jt(ee),ke=ml(ge.data);A.fetchers.set(ee,ke)}}function Be(){let K=[],ee=!1;for(let ge of H){let ke=A.fetchers.get(ge);Jt(ke,"Expected fetcher: "+ge),ke.state==="loading"&&(H.delete(ge),K.push(ge),ee=!0)}return Pt(K),ee}function tt(K){let ee=[];for(let[ge,ke]of Se)if(ke<K){let qe=A.fetchers.get(ge);Jt(qe,"Expected fetcher: "+ge),qe.state==="loading"&&(et(ge),Se.delete(ge),ee.push(ge))}return Pt(ee),ee.length>0}function At(K,ee){let ge=A.blockers.get(K)||Qf;return Ee.get(K)!==ee&&Ee.set(K,ee),ge}function Ft(K){A.blockers.delete(K),Ee.delete(K)}function Gt(K,ee){let ge=A.blockers.get(K)||Qf;Jt(ge.state==="unblocked"&&ee.state==="blocked"||ge.state==="blocked"&&ee.state==="blocked"||ge.state==="blocked"&&ee.state==="proceeding"||ge.state==="blocked"&&ee.state==="unblocked"||ge.state==="proceeding"&&ee.state==="unblocked","Invalid blocker state transition: "+ge.state+" -> "+ee.state);let ke=new Map(A.blockers);ke.set(K,ee),Qe({blockers:ke})}function pn(K){let{currentLocation:ee,nextLocation:ge,historyAction:ke}=K;if(Ee.size===0)return;Ee.size>1&&Pc(!1,"A router only supports one blocker at a time");let qe=Array.from(Ee.entries()),[ft,Ct]=qe[qe.length-1],Ve=A.blockers.get(ft);if(!(Ve&&Ve.state==="proceeding")&&Ct({currentLocation:ee,nextLocation:ge,historyAction:ke}))return ft}function cn(K){let ee=mo(404,{pathname:K}),ge=f||u,{matches:ke,route:qe}=Aw(ge);return Ln(),{notFoundMatches:ke,route:qe,error:ee}}function Dn(K,ee){return{boundaryId:Ac(ee.partialMatches).route.id,error:mo(400,{type:"route-discovery",pathname:K,message:ee.error!=null&&"message"in ee.error?ee.error:String(ee.error)})}}function Ln(K){let ee=[];return $e.forEach((ge,ke)=>{(!K||K(ke))&&(ge.cancel(),ee.push(ke),$e.delete(ke))}),ee}function $r(K,ee,ge){if(E=K,T=ee,w=ge||null,!P&&A.navigation===i1){P=!0;let ke=zo(A.location,A.matches);ke!=null&&Qe({restoreScrollPosition:ke})}return()=>{E=null,T=null,w=null}}function wo(K,ee){return w&&w(K,ee.map(ke=>lO(ke,A.loaderData)))||K.key}function vi(K,ee){if(E&&T){let ge=wo(K,ee);E[ge]=T()}}function zo(K,ee){if(E){let ge=wo(K,ee),ke=E[ge];if(typeof ke=="number")return ke}return null}function Bo(K,ee,ge){if(g)if(K){let ke=K[K.length-1].route;if(ke.path&&(ke.path==="*"||ke.path.endsWith("/*")))return{active:!0,matches:Fm(ee,ge,p,!0)}}else return{active:!0,matches:Fm(ee,ge,p,!0)||[]};return{active:!1,matches:null}}async function wr(K,ee,ge){let ke=K,qe=ke.length>0?ke[ke.length-1].route:null;for(;;){let ft=f==null,Ct=f||u;try{await LO(g,ee,ke,Ct,a,i,Ye,ge)}catch(re){return{type:"error",error:re,partialMatches:ke}}finally{ft&&(u=[...u])}if(ge.aborted)return{type:"aborted"};let Ve=vu(Ct,ee,p),Tt=!1;if(Ve){let re=Ve[Ve.length-1].route;if(re.index)return{type:"success",matches:Ve};if(re.path&&re.path.length>0)if(re.path==="*")Tt=!0;else return{type:"success",matches:Ve}}let oe=Fm(Ct,ee,p,!0);if(!oe||ke.map(re=>re.route.id).join("-")===oe.map(re=>re.route.id).join("-"))return{type:"success",matches:Tt?Ve:null};if(ke=oe,qe=ke[ke.length-1].route,qe.path==="*")return{type:"success",matches:ke}}}function jn(K){a={},f=Yf(K,i,void 0,a)}function bn(K,ee){let ge=f==null;Ew(K,ee,f||u,a,i),ge&&(u=[...u],Qe({}))}return L={get basename(){return p},get future(){return b},get state(){return A},get routes(){return u},get window(){return t},initialize:Fe,subscribe:it,enableScrollRestoration:$r,navigate:wt,fetch:Et,revalidate:yt,createHref:K=>e.history.createHref(K),encodeLocation:K=>e.history.encodeLocation(K),getFetcher:jt,deleteFetcher:Mn,dispose:mt,getBlocker:At,deleteBlocker:Ft,patchRoutes:bn,_internalFetchControllers:se,_internalActiveDeferreds:$e,_internalSetRoutes:jn},L}function NO(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function a1(e,t,n,r,i,a,u,f){let p,h;if(u){p=[];for(let b of t)if(p.push(b),b.route.id===u){h=b;break}}else p=t,h=t[t.length-1];let g=r1(i||".",n1(p,a),hl(e.pathname,n)||e.pathname,f==="path");return i==null&&(g.search=e.search,g.hash=e.hash),(i==null||i===""||i===".")&&h&&h.route.index&&!u1(g.search)&&(g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(g.pathname=g.pathname==="/"?n:Is([n,g.pathname])),fl(g)}function Sw(e,t,n,r){if(!r||!NO(r))return{path:n};if(r.formMethod&&!XO(r.formMethod))return{path:n,error:mo(405,{method:r.formMethod})};let i=()=>({path:n,error:mo(400,{type:"invalid-body"})}),a=r.formMethod||"get",u=e?a.toUpperCase():a.toLowerCase(),f=Nw(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!us(u))return i();let x=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((k,E)=>{let[w,T]=E;return""+k+w+"="+T+`
36
+ `},""):String(r.body);return{path:n,submission:{formMethod:u,formAction:f,formEncType:r.formEncType,formData:void 0,json:void 0,text:x}}}else if(r.formEncType==="application/json"){if(!us(u))return i();try{let x=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:u,formAction:f,formEncType:r.formEncType,formData:void 0,json:x,text:void 0}}}catch{return i()}}}Jt(typeof FormData=="function","FormData is not available in this environment");let p,h;if(r.formData)p=l1(r.formData),h=r.formData;else if(r.body instanceof FormData)p=l1(r.body),h=r.body;else if(r.body instanceof URLSearchParams)p=r.body,h=Tw(p);else if(r.body==null)p=new URLSearchParams,h=new FormData;else try{p=new URLSearchParams(r.body),h=Tw(p)}catch{return i()}let g={formMethod:u,formAction:f,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:h,json:void 0,text:void 0};if(us(g.formMethod))return{path:n,submission:g};let b=pl(n);return t&&b.search&&u1(b.search)&&p.append("index",""),b.search="?"+p,{path:fl(b),submission:g}}function $O(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function ww(e,t,n,r,i,a,u,f,p,h,g,b,x,k,E,w){let T=w?ai(w[1])?w[1].error:w[1].data:void 0,P=e.createURL(t.location),I=e.createURL(i),D=w&&ai(w[1])?w[0]:void 0,M=D?$O(n,D):n,L=w?w[1].statusCode:void 0,A=u&&L&&L>=400,z=M.filter((q,X)=>{let{route:ne}=q;if(ne.lazy)return!0;if(ne.loader==null)return!1;if(a)return typeof ne.loader!="function"||ne.loader.hydrate?!0:t.loaderData[ne.id]===void 0&&(!t.errors||t.errors[ne.id]===void 0);if(MO(t.loaderData,t.matches[X],q)||p.some(V=>V===q.route.id))return!0;let Q=t.matches[X],Z=q;return Cw(q,tr({currentUrl:P,currentParams:Q.params,nextUrl:I,nextParams:Z.params},r,{actionResult:T,actionStatus:L,defaultShouldRevalidate:A?!1:f||P.pathname+P.search===I.pathname+I.search||P.search!==I.search||_w(Q,Z)}))}),G=[];return b.forEach((q,X)=>{if(a||!n.some(ce=>ce.route.id===q.routeId)||g.has(X))return;let ne=vu(k,q.path,E);if(!ne){G.push({key:X,routeId:q.routeId,path:q.path,matches:null,match:null,controller:null});return}let Q=t.fetchers.get(X),Z=Jf(ne,q.path),V=!1;x.has(X)?V=!1:h.includes(X)?V=!0:Q&&Q.state!=="idle"&&Q.data===void 0?V=f:V=Cw(Z,tr({currentUrl:P,currentParams:t.matches[t.matches.length-1].params,nextUrl:I,nextParams:n[n.length-1].params},r,{actionResult:T,actionStatus:L,defaultShouldRevalidate:A?!1:f})),V&&G.push({key:X,routeId:q.routeId,path:q.path,matches:ne,match:Z,controller:new AbortController})}),[z,G]}function MO(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function _w(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Cw(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function LO(e,t,n,r,i,a,u,f){let p=[t,...n.map(h=>h.route.id)].join("-");try{let h=u.get(p);h||(h=e({path:t,matches:n,patch:(g,b)=>{f.aborted||Ew(g,b,r,i,a)}}),u.set(p,h)),h&&GO(h)&&await h}finally{u.delete(p)}}function Ew(e,t,n,r,i){if(e){var a;let u=r[e];Jt(u,"No route found to patch children into: routeId = "+e);let f=Yf(t,i,[e,"patch",String(((a=u.children)==null?void 0:a.length)||"0")],r);u.children?u.children.push(...f):u.children=f}else{let u=Yf(t,i,["patch",String(n.length||"0")],r);n.push(...u)}}async function Rw(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Jt(i,"No route found in manifest");let a={};for(let u in r){let p=i[u]!==void 0&&u!=="hasErrorBoundary";Pc(!p,'Route "'+i.id+'" has a static property "'+u+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+u+'" will be ignored.')),!p&&!sO.has(u)&&(a[u]=r[u])}Object.assign(i,a),Object.assign(i,tr({},t(i),{lazy:void 0}))}function jO(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function FO(e,t,n,r,i,a,u,f){let p=r.reduce((b,x)=>b.add(x.route.id),new Set),h=new Set,g=await e({matches:i.map(b=>{let x=p.has(b.route.id);return tr({},b,{shouldLoad:x,resolve:E=>(h.add(b.route.id),x?zO(t,n,b,a,u,E,f):Promise.resolve({type:Wn.data,result:void 0}))})}),request:n,params:i[0].params,context:f});return i.forEach(b=>Jt(h.has(b.route.id),'`match.resolve()` was not called for route id "'+b.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),g.filter((b,x)=>p.has(i[x].route.id))}async function zO(e,t,n,r,i,a,u){let f,p,h=g=>{let b,x=new Promise((w,T)=>b=T);p=()=>b(),t.signal.addEventListener("abort",p);let k=w=>typeof g!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):g({request:t,params:n.params,context:u},...w!==void 0?[w]:[]),E;return a?E=a(w=>k(w)):E=(async()=>{try{return{type:"data",result:await k()}}catch(w){return{type:"error",result:w}}})(),Promise.race([E,x])};try{let g=n.route[e];if(n.route.lazy)if(g){let b,[x]=await Promise.all([h(g).catch(k=>{b=k}),Rw(n.route,i,r)]);if(b!==void 0)throw b;f=x}else if(await Rw(n.route,i,r),g=n.route[e],g)f=await h(g);else if(e==="action"){let b=new URL(t.url),x=b.pathname+b.search;throw mo(405,{method:t.method,pathname:x,routeId:n.route.id})}else return{type:Wn.data,result:void 0};else if(g)f=await h(g);else{let b=new URL(t.url),x=b.pathname+b.search;throw mo(404,{pathname:x})}Jt(f.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(g){return{type:Wn.error,result:g}}finally{p&&t.signal.removeEventListener("abort",p)}return f}async function BO(e){let{result:t,type:n,status:r}=e;if($w(t)){let u;try{let f=t.headers.get("Content-Type");f&&/\bapplication\/json\b/.test(f)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(f){return{type:Wn.error,error:f}}return n===Wn.error?{type:Wn.error,error:new o1(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:Wn.data,data:u,statusCode:t.status,headers:t.headers}}if(n===Wn.error)return{type:Wn.error,error:t,statusCode:zm(t)?t.status:r};if(VO(t)){var i,a;return{type:Wn.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}return{type:Wn.data,data:t,statusCode:r}}function UO(e,t,n,r,i,a){let u=e.headers.get("Location");if(Jt(u,"Redirects returned/thrown from loaders/actions must have a Location header"),!s1.test(u)){let f=r.slice(0,r.findIndex(p=>p.route.id===n)+1);u=a1(new URL(t.url),f,i,!0,u,a),e.headers.set("Location",u)}return e}function kw(e,t,n){if(s1.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=hl(i.pathname,n)!=null;if(i.origin===t.origin&&a)return i.pathname+i.search+i.hash}return e}function Ic(e,t,n,r){let i=e.createURL(Nw(t)).toString(),a={signal:n};if(r&&us(r.formMethod)){let{formMethod:u,formEncType:f}=r;a.method=u.toUpperCase(),f==="application/json"?(a.headers=new Headers({"Content-Type":f}),a.body=JSON.stringify(r.json)):f==="text/plain"?a.body=r.text:f==="application/x-www-form-urlencoded"&&r.formData?a.body=l1(r.formData):a.body=r.formData}return new Request(i,a)}function l1(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Tw(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function HO(e,t,n,r,i,a){let u={},f=null,p,h=!1,g={},b=r&&ai(r[1])?r[1].error:void 0;return n.forEach((x,k)=>{let E=t[k].route.id;if(Jt(!yu(x),"Cannot handle redirect results in processLoaderData"),ai(x)){let w=x.error;b!==void 0&&(w=b,b=void 0),f=f||{};{let T=Ac(e,E);f[T.route.id]==null&&(f[T.route.id]=w)}u[E]=void 0,h||(h=!0,p=zm(x.error)?x.error.status:500),x.headers&&(g[E]=x.headers)}else bu(x)?(i.set(E,x.deferredData),u[E]=x.deferredData.data,x.statusCode!=null&&x.statusCode!==200&&!h&&(p=x.statusCode),x.headers&&(g[E]=x.headers)):(u[E]=x.data,x.statusCode&&x.statusCode!==200&&!h&&(p=x.statusCode),x.headers&&(g[E]=x.headers))}),b!==void 0&&r&&(f={[r[0]]:b},u[r[0]]=void 0),{loaderData:u,errors:f,statusCode:p||200,loaderHeaders:g}}function Ow(e,t,n,r,i,a,u,f){let{loaderData:p,errors:h}=HO(t,n,r,i,f);for(let g=0;g<a.length;g++){let{key:b,match:x,controller:k}=a[g];Jt(u!==void 0&&u[g]!==void 0,"Did not find corresponding fetcher result");let E=u[g];if(!(k&&k.signal.aborted))if(ai(E)){let w=Ac(e.matches,x==null?void 0:x.route.id);h&&h[w.route.id]||(h=tr({},h,{[w.route.id]:E.error})),e.fetchers.delete(b)}else if(yu(E))Jt(!1,"Unhandled fetcher revalidation redirect");else if(bu(E))Jt(!1,"Unhandled fetcher deferred data");else{let w=ml(E.data);e.fetchers.set(b,w)}}return{loaderData:p,errors:h}}function Pw(e,t,n,r){let i=tr({},t);for(let a of n){let u=a.route.id;if(t.hasOwnProperty(u)?t[u]!==void 0&&(i[u]=t[u]):e[u]!==void 0&&a.route.loader&&(i[u]=e[u]),r&&r.hasOwnProperty(u))break}return i}function Iw(e){return e?ai(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ac(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Aw(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function mo(e,t){let{pathname:n,routeId:r,method:i,type:a,message:u}=t===void 0?{}:t,f="Unknown Server Error",p="Unknown @remix-run/router error";return e===400?(f="Bad Request",a==="route-discovery"?p='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnMiss()` '+(`function threw the following error:
37
+ `+u):i&&n&&r?p="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?p="defer() is not supported in actions":a==="invalid-body"&&(p="Unable to encode submission body")):e===403?(f="Forbidden",p='Route "'+r+'" does not match URL "'+n+'"'):e===404?(f="Not Found",p='No route matches URL "'+n+'"'):e===405&&(f="Method Not Allowed",i&&n&&r?p="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(p='Invalid request method "'+i.toUpperCase()+'"')),new o1(e||500,f,new Error(p),!0)}function Dw(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(yu(n))return{result:n,idx:t}}}function Nw(e){let t=typeof e=="string"?pl(e):e;return fl(tr({},t,{hash:""}))}function WO(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function GO(e){return typeof e=="object"&&e!=null&&"then"in e}function KO(e){return $w(e.result)&&OO.has(e.result.status)}function bu(e){return e.type===Wn.deferred}function ai(e){return e.type===Wn.error}function yu(e){return(e&&e.type)===Wn.redirect}function VO(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function $w(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function XO(e){return TO.has(e.toLowerCase())}function us(e){return RO.has(e.toLowerCase())}async function Mw(e,t,n,r,i,a){for(let u=0;u<n.length;u++){let f=n[u],p=t[u];if(!p)continue;let h=e.find(b=>b.route.id===p.route.id),g=h!=null&&!_w(h,p)&&(a&&a[p.route.id])!==void 0;if(bu(f)&&(i||g)){let b=r[u];Jt(b,"Expected an AbortSignal for revalidating fetcher deferred result"),await Lw(f,b,i).then(x=>{x&&(n[u]=x||n[u])})}}}async function Lw(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Wn.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Wn.error,error:i}}return{type:Wn.data,data:e.deferredData.data}}}function u1(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Jf(e,t){let n=typeof t=="string"?pl(t).search:t.search;if(e[e.length-1].route.index&&u1(n||""))return e[e.length-1];let r=bw(e);return r[r.length-1]}function jw(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:u}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(u!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:u,text:void 0}}}function c1(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function qO(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Zf(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function YO(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ml(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function QO(e,t){try{let n=e.sessionStorage.getItem(xw);if(n){let r=JSON.parse(n);for(let[i,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(i,new Set(a||[]))}}catch{}}function JO(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(xw,JSON.stringify(n))}catch(r){Pc(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}function Bm(){return Bm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bm.apply(this,arguments)}const ep=R.createContext(null),Fw=R.createContext(null),ya=R.createContext(null),d1=R.createContext(null),As=R.createContext({outlet:null,matches:[],isDataRoute:!1}),zw=R.createContext(null);function ZO(e,t){let{relative:n}=t===void 0?{}:t;tp()||Jt(!1);let{basename:r,navigator:i}=R.useContext(ya),{hash:a,pathname:u,search:f}=f1(e,{relative:n}),p=u;return r!=="/"&&(p=u==="/"?r:Is([r,u])),i.createHref({pathname:p,search:f,hash:a})}function tp(){return R.useContext(d1)!=null}function xu(){return tp()||Jt(!1),R.useContext(d1).location}function Bw(e){R.useContext(ya).static||R.useLayoutEffect(e)}function np(){let{isDataRoute:e}=R.useContext(As);return e?m3():e3()}function e3(){tp()||Jt(!1);let e=R.useContext(ep),{basename:t,future:n,navigator:r}=R.useContext(ya),{matches:i}=R.useContext(As),{pathname:a}=xu(),u=JSON.stringify(n1(i,n.v7_relativeSplatPath)),f=R.useRef(!1);return Bw(()=>{f.current=!0}),R.useCallback(function(h,g){if(g===void 0&&(g={}),!f.current)return;if(typeof h=="number"){r.go(h);return}let b=r1(h,JSON.parse(u),a,g.relative==="path");e==null&&t!=="/"&&(b.pathname=b.pathname==="/"?t:Is([t,b.pathname])),(g.replace?r.replace:r.push)(b,g.state,g)},[t,r,u,a,e])}const t3=R.createContext(null);function n3(e){let t=R.useContext(As).outlet;return t&&R.createElement(t3.Provider,{value:e},t)}function r3(){let{matches:e}=R.useContext(As),t=e[e.length-1];return t?t.params:{}}function f1(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=R.useContext(ya),{matches:i}=R.useContext(As),{pathname:a}=xu(),u=JSON.stringify(n1(i,r.v7_relativeSplatPath));return R.useMemo(()=>r1(e,JSON.parse(u),a,n==="path"),[e,u,a,n])}function o3(e,t,n,r){tp()||Jt(!1);let{navigator:i}=R.useContext(ya),{matches:a}=R.useContext(As),u=a[a.length-1],f=u?u.params:{};u&&u.pathname;let p=u?u.pathnameBase:"/";u&&u.route;let h=xu(),g;g=h;let b=g.pathname||"/",x=b;if(p!=="/"){let w=p.replace(/^\//,"").split("/");x="/"+b.replace(/^\//,"").split("/").slice(w.length).join("/")}let k=vu(e,{pathname:x});return u3(k&&k.map(w=>Object.assign({},w,{params:Object.assign({},f,w.params),pathname:Is([p,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?p:Is([p,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),a,n,r)}function i3(){let e=h3(),t=zm(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),n?R.createElement("pre",{style:i},n):null,null)}const s3=R.createElement(i3,null);class a3 extends R.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?R.createElement(As.Provider,{value:this.props.routeContext},R.createElement(zw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function l3(e){let{routeContext:t,match:n,children:r}=e,i=R.useContext(ep);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),R.createElement(As.Provider,{value:t},r)}function u3(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if((a=n)!=null&&a.errors)e=n.matches;else return null}let u=e,f=(i=n)==null?void 0:i.errors;if(f!=null){let g=u.findIndex(b=>b.route.id&&(f==null?void 0:f[b.route.id])!==void 0);g>=0||Jt(!1),u=u.slice(0,Math.min(u.length,g+1))}let p=!1,h=-1;if(n&&r&&r.v7_partialHydration)for(let g=0;g<u.length;g++){let b=u[g];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(h=g),b.route.id){let{loaderData:x,errors:k}=n,E=b.route.loader&&x[b.route.id]===void 0&&(!k||k[b.route.id]===void 0);if(b.route.lazy||E){p=!0,h>=0?u=u.slice(0,h+1):u=[u[0]];break}}}return u.reduceRight((g,b,x)=>{let k,E=!1,w=null,T=null;n&&(k=f&&b.route.id?f[b.route.id]:void 0,w=b.route.errorElement||s3,p&&(h<0&&x===0?(E=!0,T=null):h===x&&(E=!0,T=b.route.hydrateFallbackElement||null)));let P=t.concat(u.slice(0,x+1)),I=()=>{let D;return k?D=w:E?D=T:b.route.Component?D=R.createElement(b.route.Component,null):b.route.element?D=b.route.element:D=g,R.createElement(l3,{match:b,routeContext:{outlet:g,matches:P,isDataRoute:n!=null},children:D})};return n&&(b.route.ErrorBoundary||b.route.errorElement||x===0)?R.createElement(a3,{location:n.location,revalidation:n.revalidation,component:w,error:k,children:I(),routeContext:{outlet:null,matches:P,isDataRoute:!0}}):I()},null)}var Uw=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Uw||{}),rp=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(rp||{});function c3(e){let t=R.useContext(ep);return t||Jt(!1),t}function d3(e){let t=R.useContext(Fw);return t||Jt(!1),t}function f3(e){let t=R.useContext(As);return t||Jt(!1),t}function p1(e){let t=f3(),n=t.matches[t.matches.length-1];return n.route.id||Jt(!1),n.route.id}function p3(){return p1(rp.UseRouteId)}function h3(){var e;let t=R.useContext(zw),n=d3(rp.UseRouteError),r=p1(rp.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function m3(){let{router:e}=c3(Uw.UseNavigateStable),t=p1(rp.UseNavigateStable),n=R.useRef(!1);return Bw(()=>{n.current=!0}),R.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Bm({fromRouteId:t},a)))},[e,t])}function g3(e){return n3(e.context)}function v3(e){let{basename:t="/",children:n=null,location:r,navigationType:i=yr.Pop,navigator:a,static:u=!1,future:f}=e;tp()&&Jt(!1);let p=t.replace(/^\/*/,"/"),h=R.useMemo(()=>({basename:p,navigator:a,static:u,future:Bm({v7_relativeSplatPath:!1},f)}),[p,f,a,u]);typeof r=="string"&&(r=pl(r));let{pathname:g="/",search:b="",hash:x="",state:k=null,key:E="default"}=r,w=R.useMemo(()=>{let T=hl(g,p);return T==null?null:{location:{pathname:T,search:b,hash:x,state:k,key:E},navigationType:i}},[p,g,b,x,k,E,i]);return w==null?null:R.createElement(ya.Provider,{value:h},R.createElement(d1.Provider,{children:n,value:w}))}new Promise(()=>{});function b3(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:R.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:R.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:R.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function Su(){return Su=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Su.apply(this,arguments)}function Hw(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const Um="get",h1="application/x-www-form-urlencoded";function Hm(e){return e!=null&&typeof e.tagName=="string"}function y3(e){return Hm(e)&&e.tagName.toLowerCase()==="button"}function x3(e){return Hm(e)&&e.tagName.toLowerCase()==="form"}function S3(e){return Hm(e)&&e.tagName.toLowerCase()==="input"}function w3(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _3(e,t){return e.button===0&&(!t||t==="_self")&&!w3(e)}function m1(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function C3(e,t){let n=m1(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(a=>{n.append(i,a)})}),n}let Wm=null;function E3(){if(Wm===null)try{new FormData(document.createElement("form"),0),Wm=!1}catch{Wm=!0}return Wm}const R3=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function g1(e){return e!=null&&!R3.has(e)?null:e}function k3(e,t){let n,r,i,a,u;if(x3(e)){let f=e.getAttribute("action");r=f?hl(f,t):null,n=e.getAttribute("method")||Um,i=g1(e.getAttribute("enctype"))||h1,a=new FormData(e)}else if(y3(e)||S3(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=e.getAttribute("formaction")||f.getAttribute("action");if(r=p?hl(p,t):null,n=e.getAttribute("formmethod")||f.getAttribute("method")||Um,i=g1(e.getAttribute("formenctype"))||g1(f.getAttribute("enctype"))||h1,a=new FormData(f,e),!E3()){let{name:h,type:g,value:b}=e;if(g==="image"){let x=h?h+".":"";a.append(x+"x","0"),a.append(x+"y","0")}else h&&a.append(h,b)}}else{if(Hm(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Um,r=null,i=h1,u=e}return a&&i==="text/plain"&&(u=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:u}}const T3=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],O3=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"],P3="6";try{window.__reactRouterVersion=P3}catch{}function I3(e,t){return DO({basename:t==null?void 0:t.basename,future:Su({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:rO({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||A3(),routes:e,mapRouteProperties:b3,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnMiss:t==null?void 0:t.unstable_patchRoutesOnMiss,window:t==null?void 0:t.window}).initialize()}function A3(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Su({},t,{errors:D3(t.errors)})),t}function D3(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new o1(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let u=new a(i.message);u.stack="",n[r]=u}catch{}}if(n[r]==null){let a=new Error(i.message);a.stack="",n[r]=a}}else n[r]=i;return n}const N3=R.createContext({isTransitioning:!1}),$3=R.createContext(new Map),Ww=bm["startTransition"],Gw=Y2["flushSync"];function M3(e){Ww?Ww(e):e()}function op(e){Gw?Gw(e):e()}class L3{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function j3(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=R.useState(n.state),[u,f]=R.useState(),[p,h]=R.useState({isTransitioning:!1}),[g,b]=R.useState(),[x,k]=R.useState(),[E,w]=R.useState(),T=R.useRef(new Map),{v7_startTransition:P}=r||{},I=R.useCallback(G=>{P?M3(G):G()},[P]),D=R.useCallback((G,q)=>{let{deletedFetchers:X,unstable_flushSync:ne,unstable_viewTransitionOpts:Q}=q;X.forEach(V=>T.current.delete(V)),G.fetchers.forEach((V,ce)=>{V.data!==void 0&&T.current.set(ce,V.data)});let Z=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!Q||Z){ne?op(()=>a(G)):I(()=>a(G));return}if(ne){op(()=>{x&&(g&&g.resolve(),x.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:Q.currentLocation,nextLocation:Q.nextLocation})});let V=n.window.document.startViewTransition(()=>{op(()=>a(G))});V.finished.finally(()=>{op(()=>{b(void 0),k(void 0),f(void 0),h({isTransitioning:!1})})}),op(()=>k(V));return}x?(g&&g.resolve(),x.skipTransition(),w({state:G,currentLocation:Q.currentLocation,nextLocation:Q.nextLocation})):(f(G),h({isTransitioning:!0,flushSync:!1,currentLocation:Q.currentLocation,nextLocation:Q.nextLocation}))},[n.window,x,g,T,I]);R.useLayoutEffect(()=>n.subscribe(D),[n,D]),R.useEffect(()=>{p.isTransitioning&&!p.flushSync&&b(new L3)},[p]),R.useEffect(()=>{if(g&&u&&n.window){let G=u,q=g.promise,X=n.window.document.startViewTransition(async()=>{I(()=>a(G)),await q});X.finished.finally(()=>{b(void 0),k(void 0),f(void 0),h({isTransitioning:!1})}),k(X)}},[I,u,g,n.window]),R.useEffect(()=>{g&&u&&i.location.key===u.location.key&&g.resolve()},[g,x,i.location,u]),R.useEffect(()=>{!p.isTransitioning&&E&&(f(E.state),h({isTransitioning:!0,flushSync:!1,currentLocation:E.currentLocation,nextLocation:E.nextLocation}),w(void 0))},[p.isTransitioning,E]),R.useEffect(()=>{},[]);let M=R.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:G=>n.navigate(G),push:(G,q,X)=>n.navigate(G,{state:q,preventScrollReset:X==null?void 0:X.preventScrollReset}),replace:(G,q,X)=>n.navigate(G,{replace:!0,state:q,preventScrollReset:X==null?void 0:X.preventScrollReset})}),[n]),L=n.basename||"/",A=R.useMemo(()=>({router:n,navigator:M,static:!1,basename:L}),[n,M,L]),z=R.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return R.createElement(R.Fragment,null,R.createElement(ep.Provider,{value:A},R.createElement(Fw.Provider,{value:i},R.createElement($3.Provider,{value:T.current},R.createElement(N3.Provider,{value:p},R.createElement(v3,{basename:L,location:i.location,navigationType:i.historyAction,navigator:M,future:z},i.initialized||n.future.v7_partialHydration?R.createElement(F3,{routes:n.routes,future:n.future,state:i}):t))))),null)}const F3=R.memo(z3);function z3(e){let{routes:t,future:n,state:r}=e;return o3(t,void 0,r,n)}const B3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",U3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Gm=R.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:u,state:f,target:p,to:h,preventScrollReset:g,unstable_viewTransition:b}=t,x=Hw(t,T3),{basename:k}=R.useContext(ya),E,w=!1;if(typeof h=="string"&&U3.test(h)&&(E=h,B3))try{let D=new URL(window.location.href),M=h.startsWith("//")?new URL(D.protocol+h):new URL(h),L=hl(M.pathname,k);M.origin===D.origin&&L!=null?h=L+M.search+M.hash:w=!0}catch{}let T=ZO(h,{relative:i}),P=G3(h,{replace:u,state:f,target:p,preventScrollReset:g,relative:i,unstable_viewTransition:b});function I(D){r&&r(D),D.defaultPrevented||P(D)}return R.createElement("a",Su({},x,{href:E||T,onClick:w||a?r:I,ref:n,target:p}))}),H3=R.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:i,replace:a,state:u,method:f=Um,action:p,onSubmit:h,relative:g,preventScrollReset:b,unstable_viewTransition:x}=e,k=Hw(e,O3),E=q3(),w=Y3(p,{relative:g}),T=f.toLowerCase()==="get"?"get":"post",P=I=>{if(h&&h(I),I.defaultPrevented)return;I.preventDefault();let D=I.nativeEvent.submitter,M=(D==null?void 0:D.getAttribute("formmethod"))||f;E(D||I.currentTarget,{fetcherKey:n,method:M,navigate:r,replace:a,state:u,relative:g,preventScrollReset:b,unstable_viewTransition:x})};return R.createElement("form",Su({ref:t,method:T,action:w,onSubmit:i?h:P},k))});var v1;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(v1||(v1={}));var Kw;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Kw||(Kw={}));function W3(e){let t=R.useContext(ep);return t||Jt(!1),t}function G3(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:u,unstable_viewTransition:f}=t===void 0?{}:t,p=np(),h=xu(),g=f1(e,{relative:u});return R.useCallback(b=>{if(_3(b,n)){b.preventDefault();let x=r!==void 0?r:fl(h)===fl(g);p(e,{replace:x,state:i,preventScrollReset:a,relative:u,unstable_viewTransition:f})}},[h,p,g,r,i,n,e,a,u,f])}function Ii(e){let t=R.useRef(m1(e)),n=R.useRef(!1),r=xu(),i=R.useMemo(()=>C3(r.search,n.current?null:t.current),[r.search]),a=np(),u=R.useCallback((f,p)=>{const h=m1(typeof f=="function"?f(i):f);n.current=!0,a("?"+h,p)},[a,i]);return[i,u]}function K3(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let V3=0,X3=()=>"__"+String(++V3)+"__";function q3(){let{router:e}=W3(v1.UseSubmit),{basename:t}=R.useContext(ya),n=p3();return R.useCallback(function(r,i){i===void 0&&(i={}),K3();let{action:a,method:u,encType:f,formData:p,body:h}=k3(r,t);if(i.navigate===!1){let g=i.fetcherKey||X3();e.fetch(g,n,i.action||a,{preventScrollReset:i.preventScrollReset,formData:p,body:h,formMethod:i.method||u,formEncType:i.encType||f,unstable_flushSync:i.unstable_flushSync})}else e.navigate(i.action||a,{preventScrollReset:i.preventScrollReset,formData:p,body:h,formMethod:i.method||u,formEncType:i.encType||f,replace:i.replace,state:i.state,fromRouteId:n,unstable_flushSync:i.unstable_flushSync,unstable_viewTransition:i.unstable_viewTransition})},[e,t,n])}function Y3(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=R.useContext(ya),i=R.useContext(As);i||Jt(!1);let[a]=i.matches.slice(-1),u=Su({},f1(e||".",{relative:n})),f=xu();if(e==null){u.search=f.search;let p=new URLSearchParams(u.search);p.has("index")&&p.get("index")===""&&(p.delete("index"),u.search=p.toString()?"?"+p.toString():"")}return(!e||e===".")&&a.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(u.pathname=u.pathname==="/"?r:Is([r,u.pathname])),fl(u)}var Q3=Object.defineProperty,J3=(e,t,n)=>t in e?Q3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vw=(e,t,n)=>J3(e,typeof t!="symbol"?t+"":t,n),Xw={exports:{}},ip={};var qw;function Z3(){if(qw)return ip;qw=1;var e=xe,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(f,p,h){var g,b={},x=null,k=null;h!==void 0&&(x=""+h),p.key!==void 0&&(x=""+p.key),p.ref!==void 0&&(k=p.ref);for(g in p)r.call(p,g)&&!a.hasOwnProperty(g)&&(b[g]=p[g]);if(f&&f.defaultProps)for(g in p=f.defaultProps,p)b[g]===void 0&&(b[g]=p[g]);return{$$typeof:t,type:f,key:x,ref:k,props:b,_owner:i.current}}return ip.Fragment=n,ip.jsx=u,ip.jsxs=u,ip}Xw.exports=Z3();var nt=Xw.exports,eP={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function b1(e){if(typeof e=="number")return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();n.includes(".")?t=parseFloat(n):t=parseInt(n,10);var r=(e.match(/[^0-9]*$/)||"").toString();return eP[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function y1(e){var t=b1(e);return"".concat(t.value).concat(t.unit)}var tP=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if(typeof window>"u"||!window.document)return r;var i=document.createElement("style");document.head.appendChild(i);var a=i.sheet,u=`
38
+ @keyframes `.concat(r,` {
39
+ `).concat(t,`
40
+ }
41
+ `);return a&&a.insertRule(u,0),r},Km=function(){return Km=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Km.apply(this,arguments)},nP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},rP=tP("GridLoader","0% {transform: scale(1)} 50% {transform: scale(0.5); opacity: 0.7} 100% {transform: scale(1); opacity: 1}","grid"),xa=function(e){return Math.random()*e};function oP(e){var t=e.loading,n=t===void 0?!0:t,r=e.color,i=r===void 0?"#000000":r,a=e.speedMultiplier,u=a===void 0?1:a,f=e.cssOverride,p=f===void 0?{}:f,h=e.size,g=h===void 0?15:h,b=e.margin,x=b===void 0?2:b,k=nP(e,["loading","color","speedMultiplier","cssOverride","size","margin"]),E=b1(g),w=b1(x),T=parseFloat(E.value.toString())*3+parseFloat(w.value.toString())*6,P=Km({width:"".concat(T).concat(E.unit),fontSize:0,display:"inline-block"},p),I=function(D){return{display:"inline-block",backgroundColor:i,width:"".concat(y1(g)),height:"".concat(y1(g)),margin:y1(x),borderRadius:"100%",animationFillMode:"both",animation:"".concat(rP," ").concat((D/100+.6)/u,"s ").concat(D/100-.2,"s infinite ease")}};return n?R.createElement("span",Km({style:P},k,{ref:function(D){D&&D.style.setProperty("width","".concat(T).concat(E.unit),"important")}}),R.createElement("span",{style:I(xa(100))}),R.createElement("span",{style:I(xa(100))}),R.createElement("span",{style:I(xa(100))}),R.createElement("span",{style:I(xa(100))}),R.createElement("span",{style:I(xa(100))}),R.createElement("span",{style:I(xa(100))}),R.createElement("span",{style:I(xa(100))}),R.createElement("span",{style:I(xa(100))}),R.createElement("span",{style:I(xa(100))})):null}const iP=()=>(xe.useEffect(()=>(document.body.style.margin="0",()=>{document.body.style.margin=""}),[]),nt.jsxs("div",{style:{height:"100vh",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",gap:"1rem"},className:"test",children:[nt.jsx("img",{src:"https://avatars.githubusercontent.com/u/158327540?s=100&v=4",alt:"Luminix"}),nt.jsx(oP,{color:"#1d9798"})]})),Yw={booted:!1,router:null},sP=xe.createContext(Yw);class aP{getUseFormProps(t){return{...t,...this.expandUseFormProps({},t)}}getFormInputComponent(t){return this.replaceFormInputComponent("input",t)}getDefaultInputsForModel(t,n=[]){const r=t.getType(),i=ho(Oc(r).getSchema().attributes),a=t.fillable.flatMap(u=>this.getDefaultInputProps({name:u},{attributes:i,confirmed:n,item:t}));return this[`selectDefaultInputsFor${ve.upperFirst(ve.camelCase(r))}`](a,t)}}const lP=Vf(aP),Qw=xe.createContext({form:null});function gl(){const{form:e}=xe.useContext(Qw);return e}function wu(e="default"){const[t,n]=xe.useState({});return xe.useEffect(()=>{const r=Qv().bag(e).on("change",({source:i})=>{n(Object.entries(i.all()).reduce((a,[u,f])=>(a[ve.camelCase(u+"Error")]=f,a),{}))});return()=>{r(),Qv().clear(e)}},[e]),t}const uP=e=>{const{label:t,sanitize:n,className:r,...i}=e,{inputProps:a,errorBag:u}=gl(),{[`${ve.camelCase(e.name)}Error`]:f}=wu(u);return nt.jsxs(nt.Fragment,{children:[nt.jsxs("p",{children:[t&&nt.jsxs(nt.Fragment,{children:[nt.jsx("label",{className:`luminix-form-label luminix-form-${e.type}-label`.trim(),htmlFor:e.id,children:t}),nt.jsx("br",{})]}),nt.jsx("input",{className:`luminix-form-input luminix-form-${e.type}-input ${r??""}`.trim(),...a(e.name,n),...i})]}),f&&nt.jsx("p",{className:"luminix-form-error",children:f})]})},cP=e=>{const{label:t,options:n,className:r,...i}=e,{selectProps:a,errorBag:u}=gl(),{[`${ve.camelCase(e.name)}Error`]:f}=wu(u);return nt.jsxs(nt.Fragment,{children:[nt.jsxs("p",{children:[t&&nt.jsxs(nt.Fragment,{children:[nt.jsx("label",{className:"luminix-form-label luminix-form-select-label".trim(),htmlFor:e.id,children:t}),nt.jsx("br",{})]}),nt.jsx("select",{className:`luminix-form-input luminix-form-select-input ${r??""}`.trim(),...a(e.name),...i,children:n.map(p=>nt.jsx("option",{value:p.value,children:p.label},p.value))})]}),f&&nt.jsx("p",{children:f})]})},dP=e=>{const{label:t,options:n,className:r,id:i,...a}=e,{radioProps:u,errorBag:f}=gl(),{[`${ve.camelCase(e.name)}Error`]:p}=wu(f);return nt.jsxs(nt.Fragment,{children:[t&&nt.jsx(nt.Fragment,{children:nt.jsx("label",{className:"luminix-form-label luminix-form-radio-label",children:t})}),n.map(({value:h,label:g})=>nt.jsxs("p",{children:[nt.jsx("input",{id:i?`${i}::${h}`:void 0,className:`luminix-form-input luminix-form-radio-input ${r??""}`.trim(),...u(e.name,h),...a}),nt.jsx("label",{htmlFor:i?`${i}::${h}`:void 0,children:g})]},h)),p&&nt.jsx("p",{children:p})]})},fP=e=>{const{label:t,className:n,...r}=e,{checkboxProps:i,errorBag:a}=gl(),{[`${ve.camelCase(e.name)}Error`]:u}=wu(a);return nt.jsxs(nt.Fragment,{children:[nt.jsxs("p",{children:[nt.jsx("input",{className:`luminix-form-input luminix-form-checkbox-input ${n??""}`.trim(),...i(e.name),...r}),t&&nt.jsx("label",{htmlFor:e.id,className:"luminix-form-label luminix-form-checkbox-label",children:t})]}),u&&nt.jsx("p",{children:u})]})},pP=e=>{const{label:t,type:n,sanitize:r,className:i,...a}=e,{textareaProps:u,errorBag:f}=gl(),{[`${ve.camelCase(e.name)}Error`]:p}=wu(f);return nt.jsxs(nt.Fragment,{children:[nt.jsxs("p",{children:[t&&nt.jsxs(nt.Fragment,{children:[nt.jsx("label",{className:"luminix-form-label luminix-form-textarea-label".trim(),htmlFor:e.id,children:t}),nt.jsx("br",{})]}),nt.jsx("textarea",{className:`luminix-form-input luminix-form-textarea-input ${i??""}`.trim(),...u(e.name,r),...a})]}),p&&nt.jsx("p",{className:"luminix-form-error",children:p})]})},hP=e=>{const{label:t,className:n,...r}=e,{datetimeLocalProps:i,errorBag:a}=gl(),{[`${ve.camelCase(e.name)}Error`]:u}=wu(a);return nt.jsxs(nt.Fragment,{children:[nt.jsxs("p",{children:[t&&nt.jsxs(nt.Fragment,{children:[nt.jsx("label",{className:"luminix-form-label luminix-form-datetime-local-label".trim(),htmlFor:e.id,children:t}),nt.jsx("br",{})]}),nt.jsx("input",{className:`luminix-form-input luminix-form-datetime-local-input ${n??""}`.trim(),...i(e.name),...r,type:"datetime-local"})]}),u&&nt.jsx("p",{className:"luminix-form-error",children:u})]})};function sp(e){return ve.upperFirst(ve.snakeCase(e)).replaceAll("_"," ")}class mP extends e1{constructor(){super(...arguments),Vw(this,"name","Luminix React Plugin"),Vw(this,"app")}register(t){this.app=t,t.bind("forms",new lP)}boot(){this.registerUrlParamReplacementForReactRouter(),this.registerInputComponents(),this.registerFormInputSelector()}registerUrlParamReplacementForReactRouter(){Zv().reducer("replaceRouteParams",t=>{const n=t.replace(/^\/+|\/+$/g,""),r=/{([^}]+)}/g;return`/${n.replace(r,":$1")}`})}registerInputComponents(){this.app.make("forms").reducer("replaceFormInputComponent",(t,n)=>n==="select"?cP:n==="radio"?dP:n==="checkbox"?fP:n==="textarea"?pP:n==="datetime-local"?hP:uP,0)}registerFormInputSelector(){const t=this.app.make("forms");t.reducer("getDefaultInputProps",({name:n},{attributes:r,item:i,confirmed:a})=>{const u=(f=>{var p;const h=r.where("name",f).first(),g=`luminix-form-${i.getType()}-${i.getKey()||"new"}-${f}`;if(!h)return null;const b=t.mapAttributeCastToInputTypes({date:"date",datetime:"datetime-local",timestamp:"datetime-local",hashed:"password",int:"number",float:"number",boolean:"checkbox"},i,h);if(h.cast&&h.cast in b)return{name:f,type:b[h.cast],label:sp(f),id:g};const x=t.mapAttributeTypeToInputTypes({"tinyint(1)":"checkbox",int:"number",float:"number",timestamp:"datetime-local",text:"textarea",tinytext:"textarea",mediumtext:"textarea",longtext:"textarea",date:"date"},i,h);if(h.type&&h.type in x)return{name:f,type:x[h.type],label:sp(f),id:g};if((p=h.type)!=null&&p.startsWith("enum(")){const k=h.type.match(/enum\((.*)\)/);if(k)return{name:f,type:"select",label:sp(f),id:g,options:[{label:"-- Select a value --",value:""},...k[1].split(",").map(E=>{const w=E.replace(/['"]+/g,"");return{label:sp(w.trim()),value:w.trim()}})]}}return{name:f,type:"text",label:sp(f),id:g}})(n);return a.includes(n)&&u?[u,{...u,name:`${n}_confirmation`,label:`Confirm ${u.label}`,id:`luminix-form-${i.getType()}-${i.getKey()||"new"}-${n}-confirmation`}]:u},0)}}const gP=({routes:e,config:t={},plugins:n=[],onInit:r,onBooting:i,onBooted:a,fallbackElement:u=nt.jsx(iP,{}),...f})=>{const[p,h]=xe.useState(Yw);return xe.useEffect(()=>{Ut().on("init",g=>{g.register(new mP),n.forEach(b=>{g.register(b)}),r&&r(g)}),Ut().on("booting",g=>{i&&i(g)}),Ut().on("booted",g=>{const{route:b}=Ut().make();if(typeof b.routerOptions!="function")throw new Error("Expect RouteFacade to be Reducible");const x=b.routerOptions({});h({booted:!0,router:I3(e(g.source),x)}),a&&a(g)}),Ut().boot(t)},[]),nt.jsx(sP.Provider,{value:p,children:p.router?nt.jsx(j3,{router:p.router,fallbackElement:u,...f}):u})};function Jw(e,t){return t[e]()}function vP(e,t={}){const{replaceLinksWith:n,method:r="get",page:i=1,id:a}=t,[u,f]=xe.useState({loading:!0,error:null}),p=xe.useCallback(()=>{if(f(({meta:g,links:b})=>({loading:!0,error:null,meta:g,links:b})),!e)return;const h=Jw(r,{get:()=>[i,n],all:()=>[],first:()=>[],find:()=>[a]});if(!h){Jv().error(`useQuery: method '${r}' is not supported`);return}e[r](...h).then(g=>{const b=Jw(r,{get:()=>g.data,all:()=>g,first:()=>g?ho([g]):null,find:()=>g?ho([g]):null});f({loading:!1,error:null,data:b??void 0,...r==="get"?g:void 0})}).catch(g=>{f({loading:!1,error:g}),Jv().error(g)})},[e,i,n,r,a]);return xe.useEffect(p,[p]),{...u,refresh:p}}function bP(e){const[t,n]=Ii(),[r,i]=xe.useState(null),a=xu(),u=t.has("page")?Number(t.get("page")):1;xe.useEffect(()=>{i(e().include(t))},[t,e]);const f=xe.useMemo(()=>`${a.pathname}?${t.toString()}`,[a.pathname,t]),p=vP(r,{replaceLinksWith:f,page:u}),{meta:{current_page:h,last_page:g}={}}=p;return xe.useEffect(()=>{h&&g&&h>g&&n(b=>(b.set("page",g.toString()),b),{replace:!0})},[h,g,n]),p}const Zw=xe.createContext({refresh:()=>{},loading:!1,error:new Error("Trying to access QueryContext outside of QueryProvider")}),yP=({factory:e,children:t})=>{const n=bP(e);return nt.jsx(Zw.Provider,{value:n,children:t})};function xP(e,t){var n;if(Kv(e)&&((n=e.response)==null?void 0:n.status)===422){const{data:r}=e.response,i=Object.entries(r.errors).reduce((a,[u,f])=>(a[u]=f.join(", "),a),{});Qv().set(i,t)}}function SP(e){return e}const wP=ve.throttle((...e)=>{Jv().debug(...e)},1e3);function _P(e){const{initialValues:t,onSubmit:n,onChange:r,onError:i,onSuccess:a,action:u,transformPayload:f=SP,preventDefault:p=!0,errorBag:h="default",method:g,autoSave:b=!1,debounce:x=1e3,debug:k=!1}=e,E=xe.useRef(),[w,T]=xe.useState(t),[P,I]=xe.useState(!1),D=xe.useCallback(ve.debounce(M=>{var L;b&&((L=E.current)==null||L.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0})))},x),[x,b]);return xe.useEffect(()=>{D(w)},[D,w]),xe.useMemo(()=>{const M=(Q,Z)=>{T(V=>{const ce=Q==="."?Z:hu(V,ue=>{ve.set(ue,Q,Z)});return r&&r(ce),k&&wP("Form data changed",{form:E.current,path:Q,value:Z,data:ce,prev:V}),ce})},L=(Q,Z=V=>V.target.value)=>({name:Q,value:ve.get(w,Q,"")??"",onChange:V=>{M(Q,Z(V))}}),A=Q=>({name:Q,value:(()=>{const Z=ve.get(w,Q);if(Z){const V=Z instanceof Date?Z:new Date(Z),ce=`${V.getFullYear()}`,ue=`${ve.padStart(`${V.getMonth()+1}`,2,"0")}`,se=`${ve.padStart(`${V.getDate()}`,2,"0")}`,U=`${ve.padStart(`${V.getHours()}`,2,"0")}`,ae=`${ve.padStart(`${V.getMinutes()}`,2,"0")}`;return`${ce}-${ue}-${se}T${U}:${ae}`}return""})(),onChange:Z=>{const{value:V}=Z.target;M(Q,V?new Date(V).toISOString():null)}}),z=Q=>({name:Q,value:ve.get(w,Q,"")??"",onChange:Z=>{M(Q,Z.target.value)}}),G=Q=>({name:Q,checked:!!ve.get(w,Q),onChange:Z=>{M(Q,Z.target.checked)}}),q=(Q,Z)=>({name:Q,value:Z,checked:ve.get(w,Q)===Z,onChange:V=>{M(Q,V.target.value)}}),X=async Q=>{Q.preventDefault();try{I(!0);let Z=!0;if(n&&(Z=await n(w)),Z!==!1&&u){const V=await Xn({method:g,url:u,data:f(w)});a&&a(V)}}catch(Z){xP(Z,h),i&&i(Z)}finally{I(!1)}},ne=()=>({onSubmit:p?X:void 0,action:u,method:g==null?void 0:g.toUpperCase(),ref:E});return Ut("forms").getUseFormProps({data:w,setProp:M,formProps:ne,inputProps:L,textareaProps:L,selectProps:z,checkboxProps:G,radioProps:q,datetimeLocalProps:A,isSubmitting:P,form:E.current,errorBag:h})},[w,r,P,n,u,g,k,f,a,h,i,p])}function Vm(e){const t=xe.useMemo(()=>Ut("forms").getFormInputComponent(e.type),[e.type]),{errorBag:n}=gl(),{[`${ve.camelCase(e.name)}Error`]:r}=wu(n);return nt.jsx("div",{className:`luminix-form-control luminix-form-${e.type}-control ${r?"luminix-form-control-error":""}`,children:nt.jsx(t,{...e})})}Vm.displayName="Input";function e_(e){const{initialValues:t,onSubmit:n,onChange:r,onError:i,onSuccess:a,action:u,transformPayload:f,preventDefault:p=!0,errorBag:h,method:g,children:b,autoSave:x,debounce:k,debug:E,className:w,...T}=e,P=_P({initialValues:t,onSubmit:n,onChange:r,onError:i,onSuccess:a,action:u,transformPayload:f,preventDefault:p,errorBag:h,method:g,autoSave:x,debounce:k,debug:E}),{data:I,...D}=P;return nt.jsx(Qw.Provider,{value:{form:P},children:nt.jsx("form",{className:`luminix-form ${w||""}`.trim(),...T,...P.formProps(),children:typeof b=="function"?b(I,D):b})})}e_.Input=Vm;const x1=xe.createContext({item:null});function CP(){const{item:e}=xe.useContext(x1);return e}function t_({confirmed:e=[]}){const t=CP();return xe.useMemo(()=>Ut("forms").getDefaultInputsForModel(t,e).map(n=>n&&nt.jsx(Vm,{...n},n.name)),[t,...e])}function S1({children:e,className:t,...n}){return nt.jsx("button",{type:"submit",className:`luminix-form-submit ${t??""}`.trim(),...n,children:e})}S1.displayName="Submit";const EP=()=>({});function w1(){const{item:e}=xe.useContext(x1),{setProp:t}=gl();return xe.useEffect(()=>e.on("save",()=>{t(".",e.toJson())}),[e,t]),null}function Xm({item:e,children:t,onSubmit:n,onSuccess:r,onError:i,getSaveOptions:a=EP,hideSubmit:u=!1,submitText:f="Submit",confirmed:p=[],...h}){const g=e.getRouteForSave(),b=xe.useMemo(()=>typeof p=="string"?[p]:p,[p]),x=xe.useCallback(async k=>{let E=!0;if(n&&(E=await n(k)),e.fill(k),E!==!1){const{additionalPayload:w,...T}=a(k),P={additionalPayload:{...w,...ve.pick(k,b.map(I=>`${I}_confirmation`))},...T};e.save(P).then(I=>{r&&I&&r(I)}).catch(i)}return!1},[e,n,r,i,a,b]);return nt.jsx(x1.Provider,{value:{item:e},children:nt.jsx(e_,{initialValues:e.toJson(),onSubmit:x,action:Zv().url(g),method:Zv().methods(g)[0],errorBag:e.getErrorBag(e.exists?"update":"store"),...h,children:(k,E)=>t?typeof t=="function"?nt.jsxs(nt.Fragment,{children:[nt.jsx(w1,{}),t(k,E)]}):nt.jsxs(nt.Fragment,{children:[nt.jsx(w1,{}),t]}):nt.jsxs(nt.Fragment,{children:[nt.jsx(w1,{}),nt.jsx(t_,{confirmed:b}),!u&&nt.jsx(S1,{style:{marginTop:"1rem"},children:f})]})})})}Xm.Input=Vm,Xm.DefaultInputs=t_,Xm.Submit=S1;function _1(e,t){const[n,r]=xe.useState(t?t(e.collect()):e.collect()),i=xe.useRef(!1);return xe.useEffect(()=>{i.current=!0},[]),xe.useEffect(()=>(i.current?i.current=!1:r(t?t(e.collect()):e.collect()),e.on("change",()=>{r(()=>t?t(e.collect()):e.collect())})),[e,t]),n}const RP=e=>e.pluck("callback");function C1(e,t,n,...r){const i=_1(e.getReducer(t),RP);return xe.useMemo(()=>ga(n)?hu(n,a=>i.reduce((u,f)=>f(u,...r),a)):i.reduce((a,u)=>u(a,...r),n),[i,n,...r])}function ap(){return xe.useContext(Zw)}function Sa(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const kP=Object.freeze(Object.defineProperty({__proto__:null,default:Sa},Symbol.toStringTag,{value:"Module"})),Dc="$$material";function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O.apply(null,arguments)}function Oe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function n_(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var TP=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,OP=n_(function(e){return TP.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),PP=!1;function IP(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function AP(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var DP=function(){function e(n){var r=this;this._insertTag=function(i){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,a),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!PP:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(AP(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=IP(i);try{a.insertRule(r,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),ro="-ms-",qm="-moz-",Rn="-webkit-",r_="comm",E1="rule",R1="decl",NP="@import",o_="@keyframes",$P="@layer",MP=Math.abs,Ym=String.fromCharCode,LP=Object.assign;function jP(e,t){return Gr(e,0)^45?(((t<<2^Gr(e,0))<<2^Gr(e,1))<<2^Gr(e,2))<<2^Gr(e,3):0}function i_(e){return e.trim()}function FP(e,t){return(e=t.exec(e))?e[0]:e}function kn(e,t,n){return e.replace(t,n)}function k1(e,t){return e.indexOf(t)}function Gr(e,t){return e.charCodeAt(t)|0}function lp(e,t,n){return e.slice(t,n)}function Ds(e){return e.length}function T1(e){return e.length}function Qm(e,t){return t.push(e),e}function zP(e,t){return e.map(t).join("")}var Jm=1,Nc=1,s_=0,$o=0,xr=0,$c="";function Zm(e,t,n,r,i,a,u){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Jm,column:Nc,length:u,return:""}}function up(e,t){return LP(Zm("",null,null,"",null,null,0),e,{length:-e.length},t)}function BP(){return xr}function UP(){return xr=$o>0?Gr($c,--$o):0,Nc--,xr===10&&(Nc=1,Jm--),xr}function li(){return xr=$o<s_?Gr($c,$o++):0,Nc++,xr===10&&(Nc=1,Jm++),xr}function Ns(){return Gr($c,$o)}function eg(){return $o}function cp(e,t){return lp($c,e,t)}function dp(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function a_(e){return Jm=Nc=1,s_=Ds($c=e),$o=0,[]}function l_(e){return $c="",e}function tg(e){return i_(cp($o-1,O1(e===91?e+2:e===40?e+1:e)))}function HP(e){for(;(xr=Ns())&&xr<33;)li();return dp(e)>2||dp(xr)>3?"":" "}function WP(e,t){for(;--t&&li()&&!(xr<48||xr>102||xr>57&&xr<65||xr>70&&xr<97););return cp(e,eg()+(t<6&&Ns()==32&&li()==32))}function O1(e){for(;li();)switch(xr){case e:return $o;case 34:case 39:e!==34&&e!==39&&O1(xr);break;case 40:e===41&&O1(e);break;case 92:li();break}return $o}function GP(e,t){for(;li()&&e+xr!==57;)if(e+xr===84&&Ns()===47)break;return"/*"+cp(t,$o-1)+"*"+Ym(e===47?e:li())}function KP(e){for(;!dp(Ns());)li();return cp(e,$o)}function VP(e){return l_(ng("",null,null,null,[""],e=a_(e),0,[0],e))}function ng(e,t,n,r,i,a,u,f,p){for(var h=0,g=0,b=u,x=0,k=0,E=0,w=1,T=1,P=1,I=0,D="",M=i,L=a,A=r,z=D;T;)switch(E=I,I=li()){case 40:if(E!=108&&Gr(z,b-1)==58){k1(z+=kn(tg(I),"&","&\f"),"&\f")!=-1&&(P=-1);break}case 34:case 39:case 91:z+=tg(I);break;case 9:case 10:case 13:case 32:z+=HP(E);break;case 92:z+=WP(eg()-1,7);continue;case 47:switch(Ns()){case 42:case 47:Qm(XP(GP(li(),eg()),t,n),p);break;default:z+="/"}break;case 123*w:f[h++]=Ds(z)*P;case 125*w:case 59:case 0:switch(I){case 0:case 125:T=0;case 59+g:P==-1&&(z=kn(z,/\f/g,"")),k>0&&Ds(z)-b&&Qm(k>32?c_(z+";",r,n,b-1):c_(kn(z," ","")+";",r,n,b-2),p);break;case 59:z+=";";default:if(Qm(A=u_(z,t,n,h,g,i,f,D,M=[],L=[],b),a),I===123)if(g===0)ng(z,t,A,A,M,a,b,f,L);else switch(x===99&&Gr(z,3)===110?100:x){case 100:case 108:case 109:case 115:ng(e,A,A,r&&Qm(u_(e,A,A,0,0,i,f,D,i,M=[],b),L),i,L,b,f,r?M:L);break;default:ng(z,A,A,A,[""],L,0,f,L)}}h=g=k=0,w=P=1,D=z="",b=u;break;case 58:b=1+Ds(z),k=E;default:if(w<1){if(I==123)--w;else if(I==125&&w++==0&&UP()==125)continue}switch(z+=Ym(I),I*w){case 38:P=g>0?1:(z+="\f",-1);break;case 44:f[h++]=(Ds(z)-1)*P,P=1;break;case 64:Ns()===45&&(z+=tg(li())),x=Ns(),g=b=Ds(D=z+=KP(eg())),I++;break;case 45:E===45&&Ds(z)==2&&(w=0)}}return a}function u_(e,t,n,r,i,a,u,f,p,h,g){for(var b=i-1,x=i===0?a:[""],k=T1(x),E=0,w=0,T=0;E<r;++E)for(var P=0,I=lp(e,b+1,b=MP(w=u[E])),D=e;P<k;++P)(D=i_(w>0?x[P]+" "+I:kn(I,/&\f/g,x[P])))&&(p[T++]=D);return Zm(e,t,n,i===0?E1:f,p,h,g)}function XP(e,t,n){return Zm(e,t,n,r_,Ym(BP()),lp(e,2,-2),0)}function c_(e,t,n,r){return Zm(e,t,n,R1,lp(e,0,r),lp(e,r+1,-1),r)}function Mc(e,t){for(var n="",r=T1(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function qP(e,t,n,r){switch(e.type){case $P:if(e.children.length)break;case NP:case R1:return e.return=e.return||e.value;case r_:return"";case o_:return e.return=e.value+"{"+Mc(e.children,r)+"}";case E1:e.value=e.props.join(",")}return Ds(n=Mc(e.children,r))?e.return=e.value+"{"+n+"}":""}function YP(e){var t=T1(e);return function(n,r,i,a){for(var u="",f=0;f<t;f++)u+=e[f](n,r,i,a)||"";return u}}function QP(e){return function(t){t.root||(t=t.return)&&e(t)}}var JP=function(t,n,r){for(var i=0,a=0;i=a,a=Ns(),i===38&&a===12&&(n[r]=1),!dp(a);)li();return cp(t,$o)},ZP=function(t,n){var r=-1,i=44;do switch(dp(i)){case 0:i===38&&Ns()===12&&(n[r]=1),t[r]+=JP($o-1,n,r);break;case 2:t[r]+=tg(i);break;case 4:if(i===44){t[++r]=Ns()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ym(i)}while(i=li());return t},eI=function(t,n){return l_(ZP(a_(t),n))},d_=new WeakMap,tI=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!d_.get(r))&&!i){d_.set(t,!0);for(var a=[],u=eI(n,a),f=r.props,p=0,h=0;p<u.length;p++)for(var g=0;g<f.length;g++,h++)t.props[h]=a[p]?u[p].replace(/&\f/g,f[g]):f[g]+" "+u[p]}}},nI=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function f_(e,t){switch(jP(e,t)){case 5103:return Rn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Rn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Rn+e+qm+e+ro+e+e;case 6828:case 4268:return Rn+e+ro+e+e;case 6165:return Rn+e+ro+"flex-"+e+e;case 5187:return Rn+e+kn(e,/(\w+).+(:[^]+)/,Rn+"box-$1$2"+ro+"flex-$1$2")+e;case 5443:return Rn+e+ro+"flex-item-"+kn(e,/flex-|-self/,"")+e;case 4675:return Rn+e+ro+"flex-line-pack"+kn(e,/align-content|flex-|-self/,"")+e;case 5548:return Rn+e+ro+kn(e,"shrink","negative")+e;case 5292:return Rn+e+ro+kn(e,"basis","preferred-size")+e;case 6060:return Rn+"box-"+kn(e,"-grow","")+Rn+e+ro+kn(e,"grow","positive")+e;case 4554:return Rn+kn(e,/([^-])(transform)/g,"$1"+Rn+"$2")+e;case 6187:return kn(kn(kn(e,/(zoom-|grab)/,Rn+"$1"),/(image-set)/,Rn+"$1"),e,"")+e;case 5495:case 3959:return kn(e,/(image-set\([^]*)/,Rn+"$1$`$1");case 4968:return kn(kn(e,/(.+:)(flex-)?(.*)/,Rn+"box-pack:$3"+ro+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Rn+e+e;case 4095:case 3583:case 4068:case 2532:return kn(e,/(.+)-inline(.+)/,Rn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ds(e)-1-t>6)switch(Gr(e,t+1)){case 109:if(Gr(e,t+4)!==45)break;case 102:return kn(e,/(.+:)(.+)-([^]+)/,"$1"+Rn+"$2-$3$1"+qm+(Gr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~k1(e,"stretch")?f_(kn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Gr(e,t+1)!==115)break;case 6444:switch(Gr(e,Ds(e)-3-(~k1(e,"!important")&&10))){case 107:return kn(e,":",":"+Rn)+e;case 101:return kn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rn+(Gr(e,14)===45?"inline-":"")+"box$3$1"+Rn+"$2$3$1"+ro+"$2box$3")+e}break;case 5936:switch(Gr(e,t+11)){case 114:return Rn+e+ro+kn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rn+e+ro+kn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rn+e+ro+kn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Rn+e+ro+e+e}return e}var rI=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case R1:t.return=f_(t.value,t.length);break;case o_:return Mc([up(t,{value:kn(t.value,"@","@"+Rn)})],i);case E1:if(t.length)return zP(t.props,function(a){switch(FP(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mc([up(t,{props:[kn(a,/:(read-\w+)/,":"+qm+"$1")]})],i);case"::placeholder":return Mc([up(t,{props:[kn(a,/:(plac\w+)/,":"+Rn+"input-$1")]}),up(t,{props:[kn(a,/:(plac\w+)/,":"+qm+"$1")]}),up(t,{props:[kn(a,/:(plac\w+)/,ro+"input-$1")]})],i)}return""})}},oI=[rI],p_=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(w){var T=w.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var i=t.stylisPlugins||oI,a={},u,f=[];u=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(w){for(var T=w.getAttribute("data-emotion").split(" "),P=1;P<T.length;P++)a[T[P]]=!0;f.push(w)});var p,h=[tI,nI];{var g,b=[qP,QP(function(w){g.insert(w)})],x=YP(h.concat(i,b)),k=function(T){return Mc(VP(T),x)};p=function(T,P,I,D){g=I,k(T?T+"{"+P.styles+"}":P.styles),D&&(E.inserted[P.name]=!0)}}var E={key:n,sheet:new DP({key:n,container:u,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:p};return E.sheet.hydrate(f),E},h_={exports:{}},Pn={};var m_;function iI(){if(m_)return Pn;m_=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,k=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function D(L){if(typeof L=="object"&&L!==null){var A=L.$$typeof;switch(A){case t:switch(L=L.type,L){case p:case h:case r:case a:case i:case b:return L;default:switch(L=L&&L.$$typeof,L){case f:case g:case E:case k:case u:return L;default:return A}}case n:return A}}}function M(L){return D(L)===h}return Pn.AsyncMode=p,Pn.ConcurrentMode=h,Pn.ContextConsumer=f,Pn.ContextProvider=u,Pn.Element=t,Pn.ForwardRef=g,Pn.Fragment=r,Pn.Lazy=E,Pn.Memo=k,Pn.Portal=n,Pn.Profiler=a,Pn.StrictMode=i,Pn.Suspense=b,Pn.isAsyncMode=function(L){return M(L)||D(L)===p},Pn.isConcurrentMode=M,Pn.isContextConsumer=function(L){return D(L)===f},Pn.isContextProvider=function(L){return D(L)===u},Pn.isElement=function(L){return typeof L=="object"&&L!==null&&L.$$typeof===t},Pn.isForwardRef=function(L){return D(L)===g},Pn.isFragment=function(L){return D(L)===r},Pn.isLazy=function(L){return D(L)===E},Pn.isMemo=function(L){return D(L)===k},Pn.isPortal=function(L){return D(L)===n},Pn.isProfiler=function(L){return D(L)===a},Pn.isStrictMode=function(L){return D(L)===i},Pn.isSuspense=function(L){return D(L)===b},Pn.isValidElementType=function(L){return typeof L=="string"||typeof L=="function"||L===r||L===h||L===a||L===i||L===b||L===x||typeof L=="object"&&L!==null&&(L.$$typeof===E||L.$$typeof===k||L.$$typeof===u||L.$$typeof===f||L.$$typeof===g||L.$$typeof===T||L.$$typeof===P||L.$$typeof===I||L.$$typeof===w)},Pn.typeOf=D,Pn}h_.exports=iI();var sI=h_.exports,g_=sI,aI={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},lI={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},v_={};v_[g_.ForwardRef]=aI,v_[g_.Memo]=lI;var uI=!0;function cI(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var b_=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||uI===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},y_=function(t,n,r){b_(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function dI(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var fI={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},pI=!1,hI=/[A-Z]|^ms/g,mI=/_EMO_([^_]+?)_([^]*?)_EMO_/g,x_=function(t){return t.charCodeAt(1)===45},S_=function(t){return t!=null&&typeof t!="boolean"},P1=n_(function(e){return x_(e)?e:e.replace(hI,"-$&").toLowerCase()}),w_=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(mI,function(r,i,a){return $s={name:i,styles:a,next:$s},i})}return fI[t]!==1&&!x_(t)&&typeof n=="number"&&n!==0?n+"px":n},gI="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function fp(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return $s={name:i.name,styles:i.styles,next:$s},i.name;var a=n;if(a.styles!==void 0){var u=a.next;if(u!==void 0)for(;u!==void 0;)$s={name:u.name,styles:u.styles,next:$s},u=u.next;var f=a.styles+";";return f}return vI(e,t,n)}case"function":{if(e!==void 0){var p=$s,h=n(e);return $s=p,fp(e,t,h)}break}}var g=n;if(t==null)return g;var b=t[g];return b!==void 0?b:g}function vI(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=fp(e,t,n[i])+";";else for(var a in n){var u=n[a];if(typeof u!="object"){var f=u;t!=null&&t[f]!==void 0?r+=a+"{"+t[f]+"}":S_(f)&&(r+=P1(a)+":"+w_(a,f)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&pI)throw new Error(gI);if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var p=0;p<u.length;p++)S_(u[p])&&(r+=P1(a)+":"+w_(a,u[p])+";");else{var h=fp(e,t,u);switch(a){case"animation":case"animationName":{r+=P1(a)+":"+h+";";break}default:r+=a+"{"+h+"}"}}}}return r}var __=/label:\s*([^\s;\n{]+)\s*(;|$)/g,$s;function I1(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";$s=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,i+=fp(n,t,a);else{var u=a;i+=u[0]}for(var f=1;f<e.length;f++)if(i+=fp(n,t,e[f]),r){var p=a;i+=p[f]}__.lastIndex=0;for(var h="",g;(g=__.exec(i))!==null;)h+="-"+g[1];var b=dI(i)+h;return{name:b,styles:i,next:$s}}var bI=function(t){return t()},C_=bm.useInsertionEffect?bm.useInsertionEffect:!1,yI=C_||bI,E_=C_||R.useLayoutEffect,R_=R.createContext(typeof HTMLElement<"u"?p_({key:"css"}):null),xI=R_.Provider,k_=function(t){return R.forwardRef(function(n,r){var i=R.useContext(R_);return t(n,i,r)})},pp=R.createContext({}),A1={exports:{}},T_;function O_(){return T_||(T_=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var a in i)({}).hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(A1)),A1.exports}O_();var SI=k_(function(e,t){var n=e.styles,r=I1([n],void 0,R.useContext(pp)),i=R.useRef();return E_(function(){var a=t.key+"-global",u=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),f=!1,p=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(u.before=t.sheet.tags[0]),p!==null&&(f=!0,p.setAttribute("data-emotion",a),u.hydrate([p])),i.current=[u,f],function(){u.flush()}},[t]),E_(function(){var a=i.current,u=a[0],f=a[1];if(f){a[1]=!1;return}if(r.next!==void 0&&y_(t,r.next,!0),u.tags.length){var p=u.tags[u.tags.length-1].nextElementSibling;u.before=p,u.flush()}t.insert("",r,u,!1)},[t,r.name]),null});function Lc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return I1(t)}var vl=function(){var t=Lc.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},wI=OP,_I=function(t){return t!=="theme"},P_=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?wI:_I},I_=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(u){return t.__emotion_forwardProp(u)&&a(u)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},CI=!1,EI=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return b_(n,r,i),yI(function(){return y_(n,r,i)}),null},RI=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,u;n!==void 0&&(a=n.label,u=n.target);var f=I_(t,n,r),p=f||P_(i),h=!p("as");return function(){var g=arguments,b=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&b.push("label:"+a+";"),g[0]==null||g[0].raw===void 0)b.push.apply(b,g);else{b.push(g[0][0]);for(var x=g.length,k=1;k<x;k++)b.push(g[k],g[0][k])}var E=k_(function(w,T,P){var I=h&&w.as||i,D="",M=[],L=w;if(w.theme==null){L={};for(var A in w)L[A]=w[A];L.theme=R.useContext(pp)}typeof w.className=="string"?D=cI(T.registered,M,w.className):w.className!=null&&(D=w.className+" ");var z=I1(b.concat(M),T.registered,L);D+=T.key+"-"+z.name,u!==void 0&&(D+=" "+u);var G=h&&f===void 0?P_(I):p,q={};for(var X in w)h&&X==="as"||G(X)&&(q[X]=w[X]);return q.className=D,P&&(q.ref=P),R.createElement(R.Fragment,null,R.createElement(EI,{cache:T,serialized:z,isStringTag:typeof I=="string"}),R.createElement(I,q))});return E.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",E.defaultProps=t.defaultProps,E.__emotion_real=E,E.__emotion_base=i,E.__emotion_styles=b,E.__emotion_forwardProp=f,Object.defineProperty(E,"toString",{value:function(){return u===void 0&&CI?"NO_COMPONENT_SELECTOR":"."+u}}),E.withComponent=function(w,T){return e(w,O({},n,T,{shouldForwardProp:I_(E,T,!0)})).apply(void 0,b)},E}},kI=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],D1=RI.bind();kI.forEach(function(e){D1[e]=D1(e)});var A_={exports:{}},N1,D_;function TI(){if(D_)return N1;D_=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return N1=e,N1}var $1,N_;function OI(){if(N_)return $1;N_=1;var e=TI();function t(){}function n(){}return n.resetWarningCache=t,$1=function(){function r(u,f,p,h,g,b){if(b!==e){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},$1}A_.exports=OI()();var PI=A_.exports;const Me=ma(PI);let M1;typeof document=="object"&&(M1=p_({key:"css",prepend:!0}));function II(e){const{injectFirst:t,children:n}=e;return t&&M1?S.jsx(xI,{value:M1,children:n}):n}function AI(e){return e==null||Object.keys(e).length===0}function $_(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(AI(i)?n:i):t;return S.jsx(SI,{styles:r})}var DI={LESSOPEN:"| /usr/bin/lesspipe %s",KDE_FULL_SESSION:"true",LANGUAGE:"pt_BR:pt:en",USER:"bruno",PAM_KWALLET5_LOGIN:"/run/user/1000/kwallet5.socket",npm_config_user_agent:"npm/10.8.1 node/v20.16.0 linux x64 workspaces/false",QT_SCREEN_SCALE_FACTORS:"HDMI-1=1;DP-1=1;DP-2=1;DP-3=1;",XDG_SEAT:"seat0",SSH_AGENT_PID:"2161",XDG_SESSION_TYPE:"x11",GIT_ASKPASS:"/usr/share/code/resources/app/extensions/git/dist/askpass.sh",npm_node_execpath:"/home/bruno/.nvm/versions/node/v20.16.0/bin/node",XCURSOR_SIZE:"24",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/bruno",CHROME_DESKTOP:"code-url-handler.desktop",KDE_APPLICATIONS_AS_SCOPE:"1",TERM_PROGRAM_VERSION:"1.92.2",DESKTOP_SESSION:"plasma",NVM_BIN:"/home/bruno/.nvm/versions/node/v20.16.0/bin",npm_package_json:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/package.json",NVM_INC:"/home/bruno/.nvm/versions/node/v20.16.0/include/node",GTK_RC_FILES:"/etc/gtk/gtkrc:/home/bruno/.gtkrc:/home/bruno/.config/gtkrc",XDG_SEAT_PATH:"/org/freedesktop/DisplayManager/Seat0",KDE_SESSION_VERSION:"5",VSCODE_GIT_ASKPASS_MAIN:"/usr/share/code/resources/app/extensions/git/dist/askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"/usr/share/code/code",npm_config_userconfig:"/home/bruno/.npmrc",npm_config_local_prefix:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",SYSTEMD_EXEC_PID:"1995",DBUS_SESSION_BUS_ADDRESS:"unix:path=/run/user/1000/bus",COLORTERM:"truecolor",COLOR:"1",NVM_DIR:"/home/bruno/.nvm",MANDATORY_PATH:"/usr/share/gconf/plasma.mandatory.path",IM_CONFIG_PHASE:"1",LOGNAME:"bruno",QT_AUTO_SCREEN_SCALE_FACTOR:"0",_:"/home/bruno/.nvm/versions/node/v20.16.0/bin/npm",npm_config_prefix:"/home/bruno/.nvm/versions/node/v20.16.0",npm_config_npm_version:"10.8.1",XDG_SESSION_CLASS:"user",DEFAULTS_PATH:"/usr/share/gconf/plasma.default.path",TERM:"xterm-256color",XDG_SESSION_ID:"3",npm_config_cache:"/home/bruno/.npm",GTK2_RC_FILES:"/etc/gtk-2.0/gtkrc:/home/bruno/.gtkrc-2.0:/home/bruno/.config/gtkrc-2.0",npm_config_node_gyp:"/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/bruno/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/:/home/bruno/.local/bin:/home/bruno/bin:/home/bruno/.nvm/versions/node/v20.16.0/bin:/home/bruno/.local/bin:/home/bruno/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/bruno/flutter/3.13.6/flutter/bin:/home/bruno/flutter/3.13.6/flutter/bin",SESSION_MANAGER:"local/bruno-kubuntu:@/tmp/.ICE-unix/2305,unix/bruno-kubuntu:/tmp/.ICE-unix/2305",NODE:"/home/bruno/.nvm/versions/node/v20.16.0/bin/node",npm_package_name:"@luminix/mui-cms",XDG_SESSION_PATH:"/org/freedesktop/DisplayManager/Session1",XDG_RUNTIME_DIR:"/run/user/1000",XCURSOR_THEME:"breeze_cursors",GDK_BACKEND:"x11",DISPLAY:":0",LANG:"pt_BR.UTF-8",XDG_CURRENT_DESKTOP:"KDE",XDG_SESSION_DESKTOP:"KDE",XAUTHORITY:"/home/bruno/.Xauthority",LS_COLORS:"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:",VSCODE_GIT_IPC_HANDLE:"/run/user/1000/vscode-git-92453d0315.sock",TERM_PROGRAM:"vscode",npm_lifecycle_script:"tsc && vite build --config vite.config.bundle.ts",SSH_AUTH_SOCK:"/tmp/ssh-XXXXXX2s2tOE/agent.2017",ORIGINAL_XDG_CURRENT_DESKTOP:"KDE",SHELL:"/bin/bash",npm_package_version:"0.0.1-beta.0",npm_lifecycle_event:"build:bundle",QT_ACCESSIBILITY:"1",LESSCLOSE:"/usr/bin/lesspipe %s %s",GPG_AGENT_INFO:"/run/user/1000/gnupg/S.gpg-agent:0:1",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",XDG_VTNR:"1",npm_config_globalconfig:"/home/bruno/.nvm/versions/node/v20.16.0/etc/npmrc",npm_config_init_module:"/home/bruno/.npm-init.js",PWD:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",npm_execpath:"/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/bin/npm-cli.js",XDG_CONFIG_DIRS:"/home/bruno/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings",NVM_CD_FLAGS:"",XDG_DATA_DIRS:"/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop",npm_config_global_prefix:"/home/bruno/.nvm/versions/node/v20.16.0",npm_command:"run-script",KDE_SESSION_UID:"1000",INIT_CWD:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",EDITOR:"vi",NODE_ENV:"production"};function L1(e,t){const n=D1(e,t);return DI.NODE_ENV!=="production"?(...r)=>{const i=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
42
+ `)):r.some(a=>a===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),n(...r)}:n}const M_=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},NI=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:$_,StyledEngineProvider:II,ThemeContext:pp,css:Lc,default:L1,internal_processStyles:M_,keyframes:vl},Symbol.toStringTag,{value:"Module"}));function wa(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function L_(e){if(!wa(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=L_(e[n])}),t}function go(e,t,n={clone:!0}){const r=n.clone?O({},e):e;return wa(e)&&wa(t)&&Object.keys(t).forEach(i=>{wa(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&wa(e[i])?r[i]=go(e[i],t[i],n):n.clone?r[i]=wa(t[i])?L_(t[i]):t[i]:r[i]=t[i]}),r}const $I=Object.freeze(Object.defineProperty({__proto__:null,default:go,isPlainObject:wa},Symbol.toStringTag,{value:"Module"})),MI=["values","unit","step"],LI=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>O({},n,{[r.key]:r.val}),{})};function j_(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Oe(e,MI),a=LI(t),u=Object.keys(a);function f(x){return`@media (min-width:${typeof t[x]=="number"?t[x]:x}${n})`}function p(x){return`@media (max-width:${(typeof t[x]=="number"?t[x]:x)-r/100}${n})`}function h(x,k){const E=u.indexOf(k);return`@media (min-width:${typeof t[x]=="number"?t[x]:x}${n}) and (max-width:${(E!==-1&&typeof t[u[E]]=="number"?t[u[E]]:k)-r/100}${n})`}function g(x){return u.indexOf(x)+1<u.length?h(x,u[u.indexOf(x)+1]):f(x)}function b(x){const k=u.indexOf(x);return k===0?f(u[1]):k===u.length-1?p(u[k]):h(x,u[u.indexOf(x)+1]).replace("@media","@media not all and")}return O({keys:u,values:a,up:f,down:p,between:h,only:g,not:b,unit:n},i)}const jI={borderRadius:4};function hp(e,t){return t?go(e,t,{clone:!1}):e}const j1={xs:0,sm:600,md:900,lg:1200,xl:1536},F_={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${j1[e]}px)`};function cs(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||F_;return t.reduce((u,f,p)=>(u[a.up(a.keys[p])]=n(t[p]),u),{})}if(typeof t=="object"){const a=r.breakpoints||F_;return Object.keys(t).reduce((u,f)=>{if(Object.keys(a.values||j1).indexOf(f)!==-1){const p=a.up(f);u[p]=n(t[f],f)}else{const p=f;u[p]=t[p]}return u},{})}return n(t)}function z_(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function B_(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function FI(e,...t){const n=z_(e),r=[n,...t].reduce((i,a)=>go(i,a),{});return B_(Object.keys(n),r)}function zI(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,a)=>{a<e.length&&(n[i]=!0)}):r.forEach(i=>{e[i]!=null&&(n[i]=!0)}),n}function F1({values:e,breakpoints:t,base:n}){const r=n||zI(e,t),i=Object.keys(r);if(i.length===0)return e;let a;return i.reduce((u,f,p)=>(Array.isArray(e)?(u[f]=e[p]!=null?e[p]:e[a],a=p):typeof e=="object"?(u[f]=e[f]!=null?e[f]:e[a],a=f):u[f]=e,u),{})}var BI={LESSOPEN:"| /usr/bin/lesspipe %s",KDE_FULL_SESSION:"true",LANGUAGE:"pt_BR:pt:en",USER:"bruno",PAM_KWALLET5_LOGIN:"/run/user/1000/kwallet5.socket",npm_config_user_agent:"npm/10.8.1 node/v20.16.0 linux x64 workspaces/false",QT_SCREEN_SCALE_FACTORS:"HDMI-1=1;DP-1=1;DP-2=1;DP-3=1;",XDG_SEAT:"seat0",SSH_AGENT_PID:"2161",XDG_SESSION_TYPE:"x11",GIT_ASKPASS:"/usr/share/code/resources/app/extensions/git/dist/askpass.sh",npm_node_execpath:"/home/bruno/.nvm/versions/node/v20.16.0/bin/node",XCURSOR_SIZE:"24",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/bruno",CHROME_DESKTOP:"code-url-handler.desktop",KDE_APPLICATIONS_AS_SCOPE:"1",TERM_PROGRAM_VERSION:"1.92.2",DESKTOP_SESSION:"plasma",NVM_BIN:"/home/bruno/.nvm/versions/node/v20.16.0/bin",npm_package_json:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/package.json",NVM_INC:"/home/bruno/.nvm/versions/node/v20.16.0/include/node",GTK_RC_FILES:"/etc/gtk/gtkrc:/home/bruno/.gtkrc:/home/bruno/.config/gtkrc",XDG_SEAT_PATH:"/org/freedesktop/DisplayManager/Seat0",KDE_SESSION_VERSION:"5",VSCODE_GIT_ASKPASS_MAIN:"/usr/share/code/resources/app/extensions/git/dist/askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"/usr/share/code/code",npm_config_userconfig:"/home/bruno/.npmrc",npm_config_local_prefix:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",SYSTEMD_EXEC_PID:"1995",DBUS_SESSION_BUS_ADDRESS:"unix:path=/run/user/1000/bus",COLORTERM:"truecolor",COLOR:"1",NVM_DIR:"/home/bruno/.nvm",MANDATORY_PATH:"/usr/share/gconf/plasma.mandatory.path",IM_CONFIG_PHASE:"1",LOGNAME:"bruno",QT_AUTO_SCREEN_SCALE_FACTOR:"0",_:"/home/bruno/.nvm/versions/node/v20.16.0/bin/npm",npm_config_prefix:"/home/bruno/.nvm/versions/node/v20.16.0",npm_config_npm_version:"10.8.1",XDG_SESSION_CLASS:"user",DEFAULTS_PATH:"/usr/share/gconf/plasma.default.path",TERM:"xterm-256color",XDG_SESSION_ID:"3",npm_config_cache:"/home/bruno/.npm",GTK2_RC_FILES:"/etc/gtk-2.0/gtkrc:/home/bruno/.gtkrc-2.0:/home/bruno/.config/gtkrc-2.0",npm_config_node_gyp:"/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/bruno/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/:/home/bruno/.local/bin:/home/bruno/bin:/home/bruno/.nvm/versions/node/v20.16.0/bin:/home/bruno/.local/bin:/home/bruno/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/bruno/flutter/3.13.6/flutter/bin:/home/bruno/flutter/3.13.6/flutter/bin",SESSION_MANAGER:"local/bruno-kubuntu:@/tmp/.ICE-unix/2305,unix/bruno-kubuntu:/tmp/.ICE-unix/2305",NODE:"/home/bruno/.nvm/versions/node/v20.16.0/bin/node",npm_package_name:"@luminix/mui-cms",XDG_SESSION_PATH:"/org/freedesktop/DisplayManager/Session1",XDG_RUNTIME_DIR:"/run/user/1000",XCURSOR_THEME:"breeze_cursors",GDK_BACKEND:"x11",DISPLAY:":0",LANG:"pt_BR.UTF-8",XDG_CURRENT_DESKTOP:"KDE",XDG_SESSION_DESKTOP:"KDE",XAUTHORITY:"/home/bruno/.Xauthority",LS_COLORS:"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:",VSCODE_GIT_IPC_HANDLE:"/run/user/1000/vscode-git-92453d0315.sock",TERM_PROGRAM:"vscode",npm_lifecycle_script:"tsc && vite build --config vite.config.bundle.ts",SSH_AUTH_SOCK:"/tmp/ssh-XXXXXX2s2tOE/agent.2017",ORIGINAL_XDG_CURRENT_DESKTOP:"KDE",SHELL:"/bin/bash",npm_package_version:"0.0.1-beta.0",npm_lifecycle_event:"build:bundle",QT_ACCESSIBILITY:"1",LESSCLOSE:"/usr/bin/lesspipe %s %s",GPG_AGENT_INFO:"/run/user/1000/gnupg/S.gpg-agent:0:1",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",XDG_VTNR:"1",npm_config_globalconfig:"/home/bruno/.nvm/versions/node/v20.16.0/etc/npmrc",npm_config_init_module:"/home/bruno/.npm-init.js",PWD:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",npm_execpath:"/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/bin/npm-cli.js",XDG_CONFIG_DIRS:"/home/bruno/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings",NVM_CD_FLAGS:"",XDG_DATA_DIRS:"/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop",npm_config_global_prefix:"/home/bruno/.nvm/versions/node/v20.16.0",npm_command:"run-script",KDE_SESSION_UID:"1000",INIT_CWD:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",EDITOR:"vi",NODE_ENV:"production"};function ye(e){if(typeof e!="string")throw new Error(BI.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Sa(7));return e.charAt(0).toUpperCase()+e.slice(1)}const UI=Object.freeze(Object.defineProperty({__proto__:null,default:ye},Symbol.toStringTag,{value:"Module"}));function jc(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function rg(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=jc(e,n)||r,t&&(i=t(i,r,e)),i}function fr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=u=>{if(u[t]==null)return null;const f=u[t],p=u.theme,h=jc(p,r)||{};return cs(u,f,b=>{let x=rg(h,i,b);return b===x&&typeof b=="string"&&(x=rg(h,i,`${t}${b==="default"?"":ye(b)}`,b)),n===!1?x:{[n]:x}})};return a.propTypes={},a.filterProps=[t],a}function HI(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const WI={m:"margin",p:"padding"},GI={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},U_={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},KI=HI(e=>{if(e.length>2)if(U_[e])e=U_[e];else return[e];const[t,n]=e.split(""),r=WI[t],i=GI[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),z1=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],B1=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...z1,...B1];function mp(e,t,n,r){var i;const a=(i=jc(e,t,!1))!=null?i:n;return typeof a=="number"?u=>typeof u=="string"?u:a*u:Array.isArray(a)?u=>typeof u=="string"?u:a[u]:typeof a=="function"?a:()=>{}}function U1(e){return mp(e,"spacing",8)}function _u(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function VI(e,t){return n=>e.reduce((r,i)=>(r[i]=_u(t,n),r),{})}function XI(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=KI(n),a=VI(i,r),u=e[n];return cs(e,u,a)}function H_(e,t){const n=U1(e.theme);return Object.keys(e).map(r=>XI(e,t,r,n)).reduce(hp,{})}function ir(e){return H_(e,z1)}ir.propTypes={},ir.filterProps=z1;function sr(e){return H_(e,B1)}sr.propTypes={},sr.filterProps=B1;function qI(e=8){if(e.mui)return e;const t=U1({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const u=t(a);return typeof u=="number"?`${u}px`:u}).join(" ");return n.mui=!0,n}function og(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(a=>{r[a]=i}),r),{}),n=r=>Object.keys(r).reduce((i,a)=>t[a]?hp(i,t[a](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Ai(e){return typeof e!="number"?e:`${e}px solid`}function Di(e,t){return fr({prop:e,themeKey:"borders",transform:t})}const YI=Di("border",Ai),QI=Di("borderTop",Ai),JI=Di("borderRight",Ai),ZI=Di("borderBottom",Ai),eA=Di("borderLeft",Ai),tA=Di("borderColor"),nA=Di("borderTopColor"),rA=Di("borderRightColor"),oA=Di("borderBottomColor"),iA=Di("borderLeftColor"),sA=Di("outline",Ai),aA=Di("outlineColor"),ig=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=mp(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:_u(t,r)});return cs(e,e.borderRadius,n)}return null};ig.propTypes={},ig.filterProps=["borderRadius"],og(YI,QI,JI,ZI,eA,tA,nA,rA,oA,iA,ig,sA,aA);const sg=e=>{if(e.gap!==void 0&&e.gap!==null){const t=mp(e.theme,"spacing",8),n=r=>({gap:_u(t,r)});return cs(e,e.gap,n)}return null};sg.propTypes={},sg.filterProps=["gap"];const ag=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=mp(e.theme,"spacing",8),n=r=>({columnGap:_u(t,r)});return cs(e,e.columnGap,n)}return null};ag.propTypes={},ag.filterProps=["columnGap"];const lg=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=mp(e.theme,"spacing",8),n=r=>({rowGap:_u(t,r)});return cs(e,e.rowGap,n)}return null};lg.propTypes={},lg.filterProps=["rowGap"];const lA=fr({prop:"gridColumn"}),uA=fr({prop:"gridRow"}),cA=fr({prop:"gridAutoFlow"}),dA=fr({prop:"gridAutoColumns"}),fA=fr({prop:"gridAutoRows"}),pA=fr({prop:"gridTemplateColumns"}),hA=fr({prop:"gridTemplateRows"}),mA=fr({prop:"gridTemplateAreas"}),gA=fr({prop:"gridArea"});og(sg,ag,lg,lA,uA,cA,dA,fA,pA,hA,mA,gA);function Fc(e,t){return t==="grey"?t:e}const vA=fr({prop:"color",themeKey:"palette",transform:Fc}),bA=fr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fc}),yA=fr({prop:"backgroundColor",themeKey:"palette",transform:Fc});og(vA,bA,yA);function ui(e){return e<=1&&e!==0?`${e*100}%`:e}const xA=fr({prop:"width",transform:ui}),H1=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||j1[n];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:ui(n)}};return cs(e,e.maxWidth,t)}return null};H1.filterProps=["maxWidth"];const SA=fr({prop:"minWidth",transform:ui}),wA=fr({prop:"height",transform:ui}),_A=fr({prop:"maxHeight",transform:ui}),CA=fr({prop:"minHeight",transform:ui});fr({prop:"size",cssProperty:"width",transform:ui}),fr({prop:"size",cssProperty:"height",transform:ui});const EA=fr({prop:"boxSizing"});og(xA,H1,SA,wA,_A,CA,EA);const gp={border:{themeKey:"borders",transform:Ai},borderTop:{themeKey:"borders",transform:Ai},borderRight:{themeKey:"borders",transform:Ai},borderBottom:{themeKey:"borders",transform:Ai},borderLeft:{themeKey:"borders",transform:Ai},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ai},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ig},color:{themeKey:"palette",transform:Fc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fc},backgroundColor:{themeKey:"palette",transform:Fc},p:{style:sr},pt:{style:sr},pr:{style:sr},pb:{style:sr},pl:{style:sr},px:{style:sr},py:{style:sr},padding:{style:sr},paddingTop:{style:sr},paddingRight:{style:sr},paddingBottom:{style:sr},paddingLeft:{style:sr},paddingX:{style:sr},paddingY:{style:sr},paddingInline:{style:sr},paddingInlineStart:{style:sr},paddingInlineEnd:{style:sr},paddingBlock:{style:sr},paddingBlockStart:{style:sr},paddingBlockEnd:{style:sr},m:{style:ir},mt:{style:ir},mr:{style:ir},mb:{style:ir},ml:{style:ir},mx:{style:ir},my:{style:ir},margin:{style:ir},marginTop:{style:ir},marginRight:{style:ir},marginBottom:{style:ir},marginLeft:{style:ir},marginX:{style:ir},marginY:{style:ir},marginInline:{style:ir},marginInlineStart:{style:ir},marginInlineEnd:{style:ir},marginBlock:{style:ir},marginBlockStart:{style:ir},marginBlockEnd:{style:ir},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:sg},rowGap:{style:lg},columnGap:{style:ag},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ui},maxWidth:{style:H1},minWidth:{transform:ui},height:{transform:ui},maxHeight:{transform:ui},minHeight:{transform:ui},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function RA(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function kA(e,t){return typeof e=="function"?e(t):e}function W_(){function e(n,r,i,a){const u={[n]:r,theme:i},f=a[n];if(!f)return{[n]:r};const{cssProperty:p=n,themeKey:h,transform:g,style:b}=f;if(r==null)return null;if(h==="typography"&&r==="inherit")return{[n]:r};const x=jc(i,h)||{};return b?b(u):cs(u,r,E=>{let w=rg(x,g,E);return E===w&&typeof E=="string"&&(w=rg(x,g,`${n}${E==="default"?"":ye(E)}`,E)),p===!1?w:{[p]:w}})}function t(n){var r;const{sx:i,theme:a={}}=n||{};if(!i)return null;const u=(r=a.unstable_sxConfig)!=null?r:gp;function f(p){let h=p;if(typeof p=="function")h=p(a);else if(typeof p!="object")return p;if(!h)return null;const g=z_(a.breakpoints),b=Object.keys(g);let x=g;return Object.keys(h).forEach(k=>{const E=kA(h[k],a);if(E!=null)if(typeof E=="object")if(u[k])x=hp(x,e(k,E,a,u));else{const w=cs({theme:a},E,T=>({[k]:T}));RA(w,E)?x[k]=t({sx:E,theme:a}):x=hp(x,w)}else x=hp(x,e(k,E,a,u))}),B_(b,x)}return Array.isArray(i)?i.map(f):f(i)}return t}const zc=W_();zc.filterProps=["sx"];function G_(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const TA=["breakpoints","palette","spacing","shape"];function Bc(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:a={}}=e,u=Oe(e,TA),f=j_(n),p=qI(i);let h=go({breakpoints:f,direction:"ltr",components:{},palette:O({mode:"light"},r),spacing:p,shape:O({},jI,a)},u);return h.applyStyles=G_,h=t.reduce((g,b)=>go(g,b),h),h.unstable_sxConfig=O({},gp,u==null?void 0:u.unstable_sxConfig),h.unstable_sx=function(b){return zc({sx:b,theme:this})},h}const OA=Object.freeze(Object.defineProperty({__proto__:null,default:Bc,private_createBreakpoints:j_,unstable_applyStyles:G_},Symbol.toStringTag,{value:"Module"}));function PA(e){return Object.keys(e).length===0}function W1(e=null){const t=R.useContext(pp);return!t||PA(t)?e:t}const IA=Bc();function vp(e=IA){return W1(e)}function AA({styles:e,themeId:t,defaultTheme:n={}}){const r=vp(n),i=typeof e=="function"?e(t&&r[t]||r):e;return S.jsx($_,{styles:i})}const DA=["sx"],NA=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:gp;return Object.keys(e).forEach(a=>{i[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function bp(e){const{sx:t}=e,n=Oe(e,DA),{systemProps:r,otherProps:i}=NA(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...u)=>{const f=t(...u);return wa(f)?O({},r,f):r}:a=O({},r,t),O({},i,{sx:a})}const $A=Object.freeze(Object.defineProperty({__proto__:null,default:zc,extendSxProp:bp,unstable_createStyleFunctionSx:W_,unstable_defaultSxConfig:gp},Symbol.toStringTag,{value:"Module"})),K_=e=>e,V_=(()=>{let e=K_;return{configure(t){e=t},generate(t){return e(t)},reset(){e=K_}}})();function X_(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=X_(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pe(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=X_(e))&&(r&&(r+=" "),r+=t);return r}const MA=["className","component"];function LA(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,a=L1("div",{shouldForwardProp:f=>f!=="theme"&&f!=="sx"&&f!=="as"})(zc);return R.forwardRef(function(p,h){const g=vp(n),b=bp(p),{className:x,component:k="div"}=b,E=Oe(b,MA);return S.jsx(a,O({as:k,ref:h,className:Pe(x,i?i(r):r),theme:t&&g[t]||g},E))})}const jA={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ze(e,t,n="Mui"){const r=jA[t];return r?`${n}-${r}`:`${V_.generate(e)}-${t}`}function rt(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Ze(e,i,n)}),r}var q_={exports:{}},In={};var Y_;function FA(){if(Y_)return In;Y_=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),E;E=Symbol.for("react.module.reference");function w(T){if(typeof T=="object"&&T!==null){var P=T.$$typeof;switch(P){case e:switch(T=T.type,T){case n:case i:case r:case h:case g:return T;default:switch(T=T&&T.$$typeof,T){case f:case u:case p:case x:case b:case a:return T;default:return P}}case t:return P}}}return In.ContextConsumer=u,In.ContextProvider=a,In.Element=e,In.ForwardRef=p,In.Fragment=n,In.Lazy=x,In.Memo=b,In.Portal=t,In.Profiler=i,In.StrictMode=r,In.Suspense=h,In.SuspenseList=g,In.isAsyncMode=function(){return!1},In.isConcurrentMode=function(){return!1},In.isContextConsumer=function(T){return w(T)===u},In.isContextProvider=function(T){return w(T)===a},In.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===e},In.isForwardRef=function(T){return w(T)===p},In.isFragment=function(T){return w(T)===n},In.isLazy=function(T){return w(T)===x},In.isMemo=function(T){return w(T)===b},In.isPortal=function(T){return w(T)===t},In.isProfiler=function(T){return w(T)===i},In.isStrictMode=function(T){return w(T)===r},In.isSuspense=function(T){return w(T)===h},In.isSuspenseList=function(T){return w(T)===g},In.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===n||T===i||T===r||T===h||T===g||T===k||typeof T=="object"&&T!==null&&(T.$$typeof===x||T.$$typeof===b||T.$$typeof===a||T.$$typeof===u||T.$$typeof===p||T.$$typeof===E||T.getModuleId!==void 0)},In.typeOf=w,In}q_.exports=FA();var Q_=q_.exports;const zA=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function J_(e){const t=`${e}`.match(zA);return t&&t[1]||""}function Z_(e,t=""){return e.displayName||e.name||J_(e)||t}function eC(e,t,n){const r=Z_(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function BA(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Z_(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Q_.ForwardRef:return eC(e,e.render,"ForwardRef");case Q_.Memo:return eC(e,e.type,"memo");default:return}}}const UA=Object.freeze(Object.defineProperty({__proto__:null,default:BA,getFunctionName:J_},Symbol.toStringTag,{value:"Module"}));var HA={LESSOPEN:"| /usr/bin/lesspipe %s",KDE_FULL_SESSION:"true",LANGUAGE:"pt_BR:pt:en",USER:"bruno",PAM_KWALLET5_LOGIN:"/run/user/1000/kwallet5.socket",npm_config_user_agent:"npm/10.8.1 node/v20.16.0 linux x64 workspaces/false",QT_SCREEN_SCALE_FACTORS:"HDMI-1=1;DP-1=1;DP-2=1;DP-3=1;",XDG_SEAT:"seat0",SSH_AGENT_PID:"2161",XDG_SESSION_TYPE:"x11",GIT_ASKPASS:"/usr/share/code/resources/app/extensions/git/dist/askpass.sh",npm_node_execpath:"/home/bruno/.nvm/versions/node/v20.16.0/bin/node",XCURSOR_SIZE:"24",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/bruno",CHROME_DESKTOP:"code-url-handler.desktop",KDE_APPLICATIONS_AS_SCOPE:"1",TERM_PROGRAM_VERSION:"1.92.2",DESKTOP_SESSION:"plasma",NVM_BIN:"/home/bruno/.nvm/versions/node/v20.16.0/bin",npm_package_json:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/package.json",NVM_INC:"/home/bruno/.nvm/versions/node/v20.16.0/include/node",GTK_RC_FILES:"/etc/gtk/gtkrc:/home/bruno/.gtkrc:/home/bruno/.config/gtkrc",XDG_SEAT_PATH:"/org/freedesktop/DisplayManager/Seat0",KDE_SESSION_VERSION:"5",VSCODE_GIT_ASKPASS_MAIN:"/usr/share/code/resources/app/extensions/git/dist/askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"/usr/share/code/code",npm_config_userconfig:"/home/bruno/.npmrc",npm_config_local_prefix:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",SYSTEMD_EXEC_PID:"1995",DBUS_SESSION_BUS_ADDRESS:"unix:path=/run/user/1000/bus",COLORTERM:"truecolor",COLOR:"1",NVM_DIR:"/home/bruno/.nvm",MANDATORY_PATH:"/usr/share/gconf/plasma.mandatory.path",IM_CONFIG_PHASE:"1",LOGNAME:"bruno",QT_AUTO_SCREEN_SCALE_FACTOR:"0",_:"/home/bruno/.nvm/versions/node/v20.16.0/bin/npm",npm_config_prefix:"/home/bruno/.nvm/versions/node/v20.16.0",npm_config_npm_version:"10.8.1",XDG_SESSION_CLASS:"user",DEFAULTS_PATH:"/usr/share/gconf/plasma.default.path",TERM:"xterm-256color",XDG_SESSION_ID:"3",npm_config_cache:"/home/bruno/.npm",GTK2_RC_FILES:"/etc/gtk-2.0/gtkrc:/home/bruno/.gtkrc-2.0:/home/bruno/.config/gtkrc-2.0",npm_config_node_gyp:"/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/bruno/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/:/home/bruno/.local/bin:/home/bruno/bin:/home/bruno/.nvm/versions/node/v20.16.0/bin:/home/bruno/.local/bin:/home/bruno/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/bruno/flutter/3.13.6/flutter/bin:/home/bruno/flutter/3.13.6/flutter/bin",SESSION_MANAGER:"local/bruno-kubuntu:@/tmp/.ICE-unix/2305,unix/bruno-kubuntu:/tmp/.ICE-unix/2305",NODE:"/home/bruno/.nvm/versions/node/v20.16.0/bin/node",npm_package_name:"@luminix/mui-cms",XDG_SESSION_PATH:"/org/freedesktop/DisplayManager/Session1",XDG_RUNTIME_DIR:"/run/user/1000",XCURSOR_THEME:"breeze_cursors",GDK_BACKEND:"x11",DISPLAY:":0",LANG:"pt_BR.UTF-8",XDG_CURRENT_DESKTOP:"KDE",XDG_SESSION_DESKTOP:"KDE",XAUTHORITY:"/home/bruno/.Xauthority",LS_COLORS:"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:",VSCODE_GIT_IPC_HANDLE:"/run/user/1000/vscode-git-92453d0315.sock",TERM_PROGRAM:"vscode",npm_lifecycle_script:"tsc && vite build --config vite.config.bundle.ts",SSH_AUTH_SOCK:"/tmp/ssh-XXXXXX2s2tOE/agent.2017",ORIGINAL_XDG_CURRENT_DESKTOP:"KDE",SHELL:"/bin/bash",npm_package_version:"0.0.1-beta.0",npm_lifecycle_event:"build:bundle",QT_ACCESSIBILITY:"1",LESSCLOSE:"/usr/bin/lesspipe %s %s",GPG_AGENT_INFO:"/run/user/1000/gnupg/S.gpg-agent:0:1",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",XDG_VTNR:"1",npm_config_globalconfig:"/home/bruno/.nvm/versions/node/v20.16.0/etc/npmrc",npm_config_init_module:"/home/bruno/.npm-init.js",PWD:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",npm_execpath:"/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/bin/npm-cli.js",XDG_CONFIG_DIRS:"/home/bruno/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings",NVM_CD_FLAGS:"",XDG_DATA_DIRS:"/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop",npm_config_global_prefix:"/home/bruno/.nvm/versions/node/v20.16.0",npm_command:"run-script",KDE_SESSION_UID:"1000",INIT_CWD:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",EDITOR:"vi",NODE_ENV:"production"};const WA=["ownerState"],GA=["variants"],KA=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function VA(e){return Object.keys(e).length===0}function XA(e){return typeof e=="string"&&e.charCodeAt(0)>96}function G1(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const qA=Bc(),tC=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ug({defaultTheme:e,theme:t,themeId:n}){return VA(t)?e:t[n]||t}function YA(e){return e?(t,n)=>n[e]:null}function cg(e,t){let{ownerState:n}=t,r=Oe(t,WA);const i=typeof e=="function"?e(O({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(a=>cg(a,O({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:a=[]}=i;let f=Oe(i,GA);return a.forEach(p=>{let h=!0;typeof p.props=="function"?h=p.props(O({ownerState:n},r,n)):Object.keys(p.props).forEach(g=>{(n==null?void 0:n[g])!==p.props[g]&&r[g]!==p.props[g]&&(h=!1)}),h&&(Array.isArray(f)||(f=[f]),f.push(typeof p.style=="function"?p.style(O({ownerState:n},r,n)):p.style))}),f}return i}function QA(e={}){const{themeId:t,defaultTheme:n=qA,rootShouldForwardProp:r=G1,slotShouldForwardProp:i=G1}=e,a=u=>zc(O({},u,{theme:ug(O({},u,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(u,f={})=>{M_(u,L=>L.filter(A=>!(A!=null&&A.__mui_systemSx)));const{name:p,slot:h,skipVariantsResolver:g,skipSx:b,overridesResolver:x=YA(tC(h))}=f,k=Oe(f,KA),E=g!==void 0?g:h&&h!=="Root"&&h!=="root"||!1,w=b||!1;let T;HA.NODE_ENV!=="production"&&p&&(T=`${p}-${tC(h||"Root")}`);let P=G1;h==="Root"||h==="root"?P=r:h?P=i:XA(u)&&(P=void 0);const I=L1(u,O({shouldForwardProp:P,label:T},k)),D=L=>typeof L=="function"&&L.__emotion_real!==L||wa(L)?A=>cg(L,O({},A,{theme:ug({theme:A.theme,defaultTheme:n,themeId:t})})):L,M=(L,...A)=>{let z=D(L);const G=A?A.map(D):[];p&&x&&G.push(ne=>{const Q=ug(O({},ne,{defaultTheme:n,themeId:t}));if(!Q.components||!Q.components[p]||!Q.components[p].styleOverrides)return null;const Z=Q.components[p].styleOverrides,V={};return Object.entries(Z).forEach(([ce,ue])=>{V[ce]=cg(ue,O({},ne,{theme:Q}))}),x(ne,V)}),p&&!E&&G.push(ne=>{var Q;const Z=ug(O({},ne,{defaultTheme:n,themeId:t})),V=Z==null||(Q=Z.components)==null||(Q=Q[p])==null?void 0:Q.variants;return cg({variants:V},O({},ne,{theme:Z}))}),w||G.push(a);const q=G.length-A.length;if(Array.isArray(L)&&q>0){const ne=new Array(q).fill("");z=[...L,...ne],z.raw=[...L.raw,...ne]}const X=I(z,...G);return u.muiName&&(X.muiName=u.muiName),X};return I.withConfig&&(M.withConfig=I.withConfig),M}}const nC=QA();function yp(e,t){const n=O({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=O({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=i:!i||!Object.keys(i)?n[r]=a:(n[r]=O({},a),Object.keys(i).forEach(u=>{n[r][u]=yp(i[u],a[u])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function rC(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:yp(t.components[n].defaultProps,r)}function oC({props:e,name:t,defaultTheme:n,themeId:r}){let i=vp(n);return r&&(i=i[r]||i),rC({theme:i,name:t,props:e})}const Mo=typeof window<"u"?R.useLayoutEffect:R.useEffect;var JA={LESSOPEN:"| /usr/bin/lesspipe %s",KDE_FULL_SESSION:"true",LANGUAGE:"pt_BR:pt:en",USER:"bruno",PAM_KWALLET5_LOGIN:"/run/user/1000/kwallet5.socket",npm_config_user_agent:"npm/10.8.1 node/v20.16.0 linux x64 workspaces/false",QT_SCREEN_SCALE_FACTORS:"HDMI-1=1;DP-1=1;DP-2=1;DP-3=1;",XDG_SEAT:"seat0",SSH_AGENT_PID:"2161",XDG_SESSION_TYPE:"x11",GIT_ASKPASS:"/usr/share/code/resources/app/extensions/git/dist/askpass.sh",npm_node_execpath:"/home/bruno/.nvm/versions/node/v20.16.0/bin/node",XCURSOR_SIZE:"24",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/bruno",CHROME_DESKTOP:"code-url-handler.desktop",KDE_APPLICATIONS_AS_SCOPE:"1",TERM_PROGRAM_VERSION:"1.92.2",DESKTOP_SESSION:"plasma",NVM_BIN:"/home/bruno/.nvm/versions/node/v20.16.0/bin",npm_package_json:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/package.json",NVM_INC:"/home/bruno/.nvm/versions/node/v20.16.0/include/node",GTK_RC_FILES:"/etc/gtk/gtkrc:/home/bruno/.gtkrc:/home/bruno/.config/gtkrc",XDG_SEAT_PATH:"/org/freedesktop/DisplayManager/Seat0",KDE_SESSION_VERSION:"5",VSCODE_GIT_ASKPASS_MAIN:"/usr/share/code/resources/app/extensions/git/dist/askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"/usr/share/code/code",npm_config_userconfig:"/home/bruno/.npmrc",npm_config_local_prefix:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",SYSTEMD_EXEC_PID:"1995",DBUS_SESSION_BUS_ADDRESS:"unix:path=/run/user/1000/bus",COLORTERM:"truecolor",COLOR:"1",NVM_DIR:"/home/bruno/.nvm",MANDATORY_PATH:"/usr/share/gconf/plasma.mandatory.path",IM_CONFIG_PHASE:"1",LOGNAME:"bruno",QT_AUTO_SCREEN_SCALE_FACTOR:"0",_:"/home/bruno/.nvm/versions/node/v20.16.0/bin/npm",npm_config_prefix:"/home/bruno/.nvm/versions/node/v20.16.0",npm_config_npm_version:"10.8.1",XDG_SESSION_CLASS:"user",DEFAULTS_PATH:"/usr/share/gconf/plasma.default.path",TERM:"xterm-256color",XDG_SESSION_ID:"3",npm_config_cache:"/home/bruno/.npm",GTK2_RC_FILES:"/etc/gtk-2.0/gtkrc:/home/bruno/.gtkrc-2.0:/home/bruno/.config/gtkrc-2.0",npm_config_node_gyp:"/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/bruno/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/:/home/bruno/.local/bin:/home/bruno/bin:/home/bruno/.nvm/versions/node/v20.16.0/bin:/home/bruno/.local/bin:/home/bruno/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/bruno/flutter/3.13.6/flutter/bin:/home/bruno/flutter/3.13.6/flutter/bin",SESSION_MANAGER:"local/bruno-kubuntu:@/tmp/.ICE-unix/2305,unix/bruno-kubuntu:/tmp/.ICE-unix/2305",NODE:"/home/bruno/.nvm/versions/node/v20.16.0/bin/node",npm_package_name:"@luminix/mui-cms",XDG_SESSION_PATH:"/org/freedesktop/DisplayManager/Session1",XDG_RUNTIME_DIR:"/run/user/1000",XCURSOR_THEME:"breeze_cursors",GDK_BACKEND:"x11",DISPLAY:":0",LANG:"pt_BR.UTF-8",XDG_CURRENT_DESKTOP:"KDE",XDG_SESSION_DESKTOP:"KDE",XAUTHORITY:"/home/bruno/.Xauthority",LS_COLORS:"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:",VSCODE_GIT_IPC_HANDLE:"/run/user/1000/vscode-git-92453d0315.sock",TERM_PROGRAM:"vscode",npm_lifecycle_script:"tsc && vite build --config vite.config.bundle.ts",SSH_AUTH_SOCK:"/tmp/ssh-XXXXXX2s2tOE/agent.2017",ORIGINAL_XDG_CURRENT_DESKTOP:"KDE",SHELL:"/bin/bash",npm_package_version:"0.0.1-beta.0",npm_lifecycle_event:"build:bundle",QT_ACCESSIBILITY:"1",LESSCLOSE:"/usr/bin/lesspipe %s %s",GPG_AGENT_INFO:"/run/user/1000/gnupg/S.gpg-agent:0:1",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",XDG_VTNR:"1",npm_config_globalconfig:"/home/bruno/.nvm/versions/node/v20.16.0/etc/npmrc",npm_config_init_module:"/home/bruno/.npm-init.js",PWD:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",npm_execpath:"/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/bin/npm-cli.js",XDG_CONFIG_DIRS:"/home/bruno/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings",NVM_CD_FLAGS:"",XDG_DATA_DIRS:"/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop",npm_config_global_prefix:"/home/bruno/.nvm/versions/node/v20.16.0",npm_command:"run-script",KDE_SESSION_UID:"1000",INIT_CWD:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",EDITOR:"vi",NODE_ENV:"production"};function ZA(e,t,n,r,i){const[a,u]=R.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Mo(()=>{let f=!0;if(!n)return;const p=n(e),h=()=>{f&&u(p.matches)};return h(),p.addListener(h),()=>{f=!1,p.removeListener(h)}},[e,n]),a}const iC=R.useSyncExternalStore;function e5(e,t,n,r,i){const a=R.useCallback(()=>t,[t]),u=R.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:g}=r(e);return()=>g}return a},[a,e,r,i,n]),[f,p]=R.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const g=n(e);return[()=>g.matches,b=>(g.addListener(b),()=>{g.removeListener(b)})]},[a,n,e]);return iC(p,f,u)}function dg(e,t={}){const n=W1(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:f=!1}=rC({name:"MuiUseMediaQuery",props:t,theme:n});let p=typeof e=="function"?e(n):e;p=p.replace(/^@media( ?)/m,"");const g=(iC!==void 0?e5:ZA)(p,i,a,u,f);return JA.NODE_ENV!=="production"&&R.useDebugValue({query:p,match:g}),g}function K1(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const t5=Object.freeze(Object.defineProperty({__proto__:null,default:K1},Symbol.toStringTag,{value:"Module"}));function n5(e,t=0,n=1){return K1(e,t,n)}function r5(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function sC(e){if(e.type)return e;if(e.charAt(0)==="#")return sC(r5(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Sa(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(Sa(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}function o5(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function i5(e,t){return e=sC(e),t=n5(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,o5(e)}function V1(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function xp(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Uc(e,t){var n,r;return R.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function kr(e){return e&&e.ownerDocument||document}function ds(e){return kr(e).defaultView||window}function fg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let aC=0;function s5(e){const[t,n]=R.useState(e),r=e||t;return R.useEffect(()=>{t==null&&(aC+=1,n(`mui-${aC}`))},[t]),r}const lC=bm.useId;function Hc(e){if(lC!==void 0){const t=lC();return e??t}return s5(e)}var a5={LESSOPEN:"| /usr/bin/lesspipe %s",KDE_FULL_SESSION:"true",LANGUAGE:"pt_BR:pt:en",USER:"bruno",PAM_KWALLET5_LOGIN:"/run/user/1000/kwallet5.socket",npm_config_user_agent:"npm/10.8.1 node/v20.16.0 linux x64 workspaces/false",QT_SCREEN_SCALE_FACTORS:"HDMI-1=1;DP-1=1;DP-2=1;DP-3=1;",XDG_SEAT:"seat0",SSH_AGENT_PID:"2161",XDG_SESSION_TYPE:"x11",GIT_ASKPASS:"/usr/share/code/resources/app/extensions/git/dist/askpass.sh",npm_node_execpath:"/home/bruno/.nvm/versions/node/v20.16.0/bin/node",XCURSOR_SIZE:"24",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/bruno",CHROME_DESKTOP:"code-url-handler.desktop",KDE_APPLICATIONS_AS_SCOPE:"1",TERM_PROGRAM_VERSION:"1.92.2",DESKTOP_SESSION:"plasma",NVM_BIN:"/home/bruno/.nvm/versions/node/v20.16.0/bin",npm_package_json:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/package.json",NVM_INC:"/home/bruno/.nvm/versions/node/v20.16.0/include/node",GTK_RC_FILES:"/etc/gtk/gtkrc:/home/bruno/.gtkrc:/home/bruno/.config/gtkrc",XDG_SEAT_PATH:"/org/freedesktop/DisplayManager/Seat0",KDE_SESSION_VERSION:"5",VSCODE_GIT_ASKPASS_MAIN:"/usr/share/code/resources/app/extensions/git/dist/askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"/usr/share/code/code",npm_config_userconfig:"/home/bruno/.npmrc",npm_config_local_prefix:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",SYSTEMD_EXEC_PID:"1995",DBUS_SESSION_BUS_ADDRESS:"unix:path=/run/user/1000/bus",COLORTERM:"truecolor",COLOR:"1",NVM_DIR:"/home/bruno/.nvm",MANDATORY_PATH:"/usr/share/gconf/plasma.mandatory.path",IM_CONFIG_PHASE:"1",LOGNAME:"bruno",QT_AUTO_SCREEN_SCALE_FACTOR:"0",_:"/home/bruno/.nvm/versions/node/v20.16.0/bin/npm",npm_config_prefix:"/home/bruno/.nvm/versions/node/v20.16.0",npm_config_npm_version:"10.8.1",XDG_SESSION_CLASS:"user",DEFAULTS_PATH:"/usr/share/gconf/plasma.default.path",TERM:"xterm-256color",XDG_SESSION_ID:"3",npm_config_cache:"/home/bruno/.npm",GTK2_RC_FILES:"/etc/gtk-2.0/gtkrc:/home/bruno/.gtkrc-2.0:/home/bruno/.config/gtkrc-2.0",npm_config_node_gyp:"/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/bruno/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/:/home/bruno/.local/bin:/home/bruno/bin:/home/bruno/.nvm/versions/node/v20.16.0/bin:/home/bruno/.local/bin:/home/bruno/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/bruno/flutter/3.13.6/flutter/bin:/home/bruno/flutter/3.13.6/flutter/bin",SESSION_MANAGER:"local/bruno-kubuntu:@/tmp/.ICE-unix/2305,unix/bruno-kubuntu:/tmp/.ICE-unix/2305",NODE:"/home/bruno/.nvm/versions/node/v20.16.0/bin/node",npm_package_name:"@luminix/mui-cms",XDG_SESSION_PATH:"/org/freedesktop/DisplayManager/Session1",XDG_RUNTIME_DIR:"/run/user/1000",XCURSOR_THEME:"breeze_cursors",GDK_BACKEND:"x11",DISPLAY:":0",LANG:"pt_BR.UTF-8",XDG_CURRENT_DESKTOP:"KDE",XDG_SESSION_DESKTOP:"KDE",XAUTHORITY:"/home/bruno/.Xauthority",LS_COLORS:"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:",VSCODE_GIT_IPC_HANDLE:"/run/user/1000/vscode-git-92453d0315.sock",TERM_PROGRAM:"vscode",npm_lifecycle_script:"tsc && vite build --config vite.config.bundle.ts",SSH_AUTH_SOCK:"/tmp/ssh-XXXXXX2s2tOE/agent.2017",ORIGINAL_XDG_CURRENT_DESKTOP:"KDE",SHELL:"/bin/bash",npm_package_version:"0.0.1-beta.0",npm_lifecycle_event:"build:bundle",QT_ACCESSIBILITY:"1",LESSCLOSE:"/usr/bin/lesspipe %s %s",GPG_AGENT_INFO:"/run/user/1000/gnupg/S.gpg-agent:0:1",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",XDG_VTNR:"1",npm_config_globalconfig:"/home/bruno/.nvm/versions/node/v20.16.0/etc/npmrc",npm_config_init_module:"/home/bruno/.npm-init.js",PWD:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",npm_execpath:"/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/bin/npm-cli.js",XDG_CONFIG_DIRS:"/home/bruno/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings",NVM_CD_FLAGS:"",XDG_DATA_DIRS:"/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop",npm_config_global_prefix:"/home/bruno/.nvm/versions/node/v20.16.0",npm_command:"run-script",KDE_SESSION_UID:"1000",INIT_CWD:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",EDITOR:"vi",NODE_ENV:"production"};function _a({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=R.useRef(e!==void 0),[a,u]=R.useState(t),f=i?e:a;if(a5.NODE_ENV!=="production"){R.useEffect(()=>{i!==(e!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${r} state of ${n} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
43
+ `))},[r,n,e]);const{current:h}=R.useRef(t);R.useEffect(()=>{!i&&!Object.is(h,t)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
44
+ `))},[JSON.stringify(t)])}const p=R.useCallback(h=>{i||u(h)},[]);return[f,p]}function Nr(e){const t=R.useRef(e);return Mo(()=>{t.current=e}),R.useRef((...n)=>(0,t.current)(...n)).current}function An(...e){return R.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{fg(n,t)})},e)}const uC={};function l5(e,t){const n=R.useRef(uC);return n.current===uC&&(n.current=e(t)),n}const u5=[];function c5(e){R.useEffect(e,u5)}class Sp{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Sp}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Ca(){const e=l5(Sp.create).current;return c5(e.disposeEffect),e}let pg=!0,X1=!1;const d5=new Sp,f5={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function p5(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&f5[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function h5(e){e.metaKey||e.altKey||e.ctrlKey||(pg=!0)}function q1(){pg=!1}function m5(){this.visibilityState==="hidden"&&X1&&(pg=!0)}function g5(e){e.addEventListener("keydown",h5,!0),e.addEventListener("mousedown",q1,!0),e.addEventListener("pointerdown",q1,!0),e.addEventListener("touchstart",q1,!0),e.addEventListener("visibilitychange",m5,!0)}function v5(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return pg||p5(t)}function Y1(){const e=R.useCallback(i=>{i!=null&&g5(i.ownerDocument)},[]),t=R.useRef(!1);function n(){return t.current?(X1=!0,d5.start(100,()=>{X1=!1}),t.current=!1,!0):!1}function r(i){return v5(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function cC(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Wc;function dC(){if(Wc)return Wc;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Wc="reverse",e.scrollLeft>0?Wc="default":(e.scrollLeft=1,e.scrollLeft===0&&(Wc="negative")),document.body.removeChild(e),Wc}function b5(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(dC()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Q1=e=>{const t=R.useRef({});return R.useEffect(()=>{t.current=e}),t.current};function y5(e){return R.Children.toArray(e).filter(t=>R.isValidElement(t))}function ot(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((a,u)=>{if(u){const f=t(u);f!==""&&a.push(f),n&&n[u]&&a.push(n[u])}return a},[]).join(" ")}),r}function Gc(e){return typeof e=="string"}function Kc(e,t,n){return e===void 0||Gc(e)?t:O({},t,{ownerState:O({},t.ownerState,n)})}function hg(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function fC(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function pC(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){const k=Pe(n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),E=O({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),w=O({},n,i,r);return k.length>0&&(w.className=k),Object.keys(E).length>0&&(w.style=E),{props:w,internalRef:void 0}}const u=hg(O({},i,r)),f=fC(r),p=fC(i),h=t(u),g=Pe(h==null?void 0:h.className,n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),b=O({},h==null?void 0:h.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),x=O({},h,n,p,f);return g.length>0&&(x.className=g),Object.keys(b).length>0&&(x.style=b),{props:x,internalRef:h.ref}}function hC(e,t,n){return typeof e=="function"?e(t,n):e}const x5=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function vo(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:a=!1}=e,u=Oe(e,x5),f=a?{}:hC(r,i),{props:p,internalRef:h}=pC(O({},u,{externalSlotProps:f})),g=An(h,f==null?void 0:f.ref,(t=e.additionalProps)==null?void 0:t.ref);return Kc(n,O({},p,{ref:g}),i)}const mC=R.createContext(null);function gC(){return R.useContext(mC)}const S5=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function w5(e,t){return typeof t=="function"?t(e):O({},e,t)}function _5(e){const{children:t,theme:n}=e,r=gC(),i=R.useMemo(()=>{const a=r===null?n:w5(r,n);return a!=null&&(a[S5]=r!==null),a},[n,r]);return S.jsx(mC.Provider,{value:i,children:t})}const C5=["value"],vC=R.createContext();function E5(e){let{value:t}=e,n=Oe(e,C5);return S.jsx(vC.Provider,O({value:t??!0},n))}const wp=()=>{const e=R.useContext(vC);return e??!1},bC=R.createContext(void 0);function R5({value:e,children:t}){return S.jsx(bC.Provider,{value:e,children:t})}function k5(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?yp(i.defaultProps,r):!i.styleOverrides&&!i.variants?yp(i,r):r}function T5({props:e,name:t}){const n=R.useContext(bC);return k5({props:e,name:t,theme:{components:n}})}const yC={};function xC(e,t,n,r=!1){return R.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const a=n(i),u=e?O({},t,{[e]:a}):a;return r?()=>u:u}return e?O({},t,{[e]:n}):O({},t,n)},[e,t,n,r])}function O5(e){const{children:t,theme:n,themeId:r}=e,i=W1(yC),a=gC()||yC,u=xC(r,i,n),f=xC(r,a,n,!0),p=u.direction==="rtl";return S.jsx(_5,{theme:f,children:S.jsx(pp.Provider,{value:u,children:S.jsx(E5,{value:p,children:S.jsx(R5,{value:u==null?void 0:u.components,children:t})})})})}const P5=(e,t)=>e.filter(n=>t.includes(n)),Vc=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((i,a)=>{n((u,f)=>{a<=e.keys.length-1&&(a===0?Object.assign(u,f):u[e.up(e.keys[a])]=f)},i)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:P5(e.keys,Object.keys(t))).forEach(a=>{if(e.keys.indexOf(a)!==-1){const u=t[a];u!==void 0&&n((f,p)=>{r===a?Object.assign(f,p):f[e.up(a)]=p},u)}}):(typeof t=="number"||typeof t=="string")&&n((i,a)=>{Object.assign(i,a)},t)};function Ea(e){return e?`Level${e}`:""}function _p(e){return e.unstable_level>0&&e.container}function SC(e){return function(n){return`var(--Grid-${n}Spacing${Ea(e.unstable_level)})`}}function J1(e){return function(n){return e.unstable_level===0?`var(--Grid-${n}Spacing)`:`var(--Grid-${n}Spacing${Ea(e.unstable_level-1)})`}}function Z1(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${Ea(e.unstable_level-1)})`}const I5=({theme:e,ownerState:t})=>{const n=SC(t),r={};return Vc(e.breakpoints,t.gridSize,(i,a)=>{let u={};a===!0&&(u={flexBasis:0,flexGrow:1,maxWidth:"100%"}),a==="auto"&&(u={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof a=="number"&&(u={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${a} / ${Z1(t)}${_p(t)?` + ${n("column")}`:""})`}),i(r,u)}),r},A5=({theme:e,ownerState:t})=>{const n={};return Vc(e.breakpoints,t.gridOffset,(r,i)=>{let a={};i==="auto"&&(a={marginLeft:"auto"}),typeof i=="number"&&(a={marginLeft:i===0?"0px":`calc(100% * ${i} / ${Z1(t)})`}),r(n,a)}),n},D5=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=_p(t)?{[`--Grid-columns${Ea(t.unstable_level)}`]:Z1(t)}:{"--Grid-columns":12};return Vc(e.breakpoints,t.columns,(r,i)=>{r(n,{[`--Grid-columns${Ea(t.unstable_level)}`]:i})}),n},N5=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=J1(t),r=_p(t)?{[`--Grid-rowSpacing${Ea(t.unstable_level)}`]:n("row")}:{};return Vc(e.breakpoints,t.rowSpacing,(i,a)=>{var u;i(r,{[`--Grid-rowSpacing${Ea(t.unstable_level)}`]:typeof a=="string"?a:(u=e.spacing)==null?void 0:u.call(e,a)})}),r},$5=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=J1(t),r=_p(t)?{[`--Grid-columnSpacing${Ea(t.unstable_level)}`]:n("column")}:{};return Vc(e.breakpoints,t.columnSpacing,(i,a)=>{var u;i(r,{[`--Grid-columnSpacing${Ea(t.unstable_level)}`]:typeof a=="string"?a:(u=e.spacing)==null?void 0:u.call(e,a)})}),r},M5=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Vc(e.breakpoints,t.direction,(r,i)=>{r(n,{flexDirection:i})}),n},L5=({ownerState:e})=>{const t=SC(e),n=J1(e);return O({minWidth:0,boxSizing:"border-box"},e.container&&O({display:"flex",flexWrap:"wrap"},e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||_p(e))&&O({padding:`calc(${n("row")} / 2) calc(${n("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${n("row")} 0px 0px ${n("column")}`}))},j5=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},F5=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([i,a])=>{n(a)&&r.push(`spacing-${i}-${String(a)}`)}),r}return[]},z5=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`];var B5={LESSOPEN:"| /usr/bin/lesspipe %s",KDE_FULL_SESSION:"true",LANGUAGE:"pt_BR:pt:en",USER:"bruno",PAM_KWALLET5_LOGIN:"/run/user/1000/kwallet5.socket",npm_config_user_agent:"npm/10.8.1 node/v20.16.0 linux x64 workspaces/false",QT_SCREEN_SCALE_FACTORS:"HDMI-1=1;DP-1=1;DP-2=1;DP-3=1;",XDG_SEAT:"seat0",SSH_AGENT_PID:"2161",XDG_SESSION_TYPE:"x11",GIT_ASKPASS:"/usr/share/code/resources/app/extensions/git/dist/askpass.sh",npm_node_execpath:"/home/bruno/.nvm/versions/node/v20.16.0/bin/node",XCURSOR_SIZE:"24",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/bruno",CHROME_DESKTOP:"code-url-handler.desktop",KDE_APPLICATIONS_AS_SCOPE:"1",TERM_PROGRAM_VERSION:"1.92.2",DESKTOP_SESSION:"plasma",NVM_BIN:"/home/bruno/.nvm/versions/node/v20.16.0/bin",npm_package_json:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/package.json",NVM_INC:"/home/bruno/.nvm/versions/node/v20.16.0/include/node",GTK_RC_FILES:"/etc/gtk/gtkrc:/home/bruno/.gtkrc:/home/bruno/.config/gtkrc",XDG_SEAT_PATH:"/org/freedesktop/DisplayManager/Seat0",KDE_SESSION_VERSION:"5",VSCODE_GIT_ASKPASS_MAIN:"/usr/share/code/resources/app/extensions/git/dist/askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"/usr/share/code/code",npm_config_userconfig:"/home/bruno/.npmrc",npm_config_local_prefix:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",SYSTEMD_EXEC_PID:"1995",DBUS_SESSION_BUS_ADDRESS:"unix:path=/run/user/1000/bus",COLORTERM:"truecolor",COLOR:"1",NVM_DIR:"/home/bruno/.nvm",MANDATORY_PATH:"/usr/share/gconf/plasma.mandatory.path",IM_CONFIG_PHASE:"1",LOGNAME:"bruno",QT_AUTO_SCREEN_SCALE_FACTOR:"0",_:"/home/bruno/.nvm/versions/node/v20.16.0/bin/npm",npm_config_prefix:"/home/bruno/.nvm/versions/node/v20.16.0",npm_config_npm_version:"10.8.1",XDG_SESSION_CLASS:"user",DEFAULTS_PATH:"/usr/share/gconf/plasma.default.path",TERM:"xterm-256color",XDG_SESSION_ID:"3",npm_config_cache:"/home/bruno/.npm",GTK2_RC_FILES:"/etc/gtk-2.0/gtkrc:/home/bruno/.gtkrc-2.0:/home/bruno/.config/gtkrc-2.0",npm_config_node_gyp:"/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/bruno/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/:/home/bruno/.local/bin:/home/bruno/bin:/home/bruno/.nvm/versions/node/v20.16.0/bin:/home/bruno/.local/bin:/home/bruno/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/bruno/flutter/3.13.6/flutter/bin:/home/bruno/flutter/3.13.6/flutter/bin",SESSION_MANAGER:"local/bruno-kubuntu:@/tmp/.ICE-unix/2305,unix/bruno-kubuntu:/tmp/.ICE-unix/2305",NODE:"/home/bruno/.nvm/versions/node/v20.16.0/bin/node",npm_package_name:"@luminix/mui-cms",XDG_SESSION_PATH:"/org/freedesktop/DisplayManager/Session1",XDG_RUNTIME_DIR:"/run/user/1000",XCURSOR_THEME:"breeze_cursors",GDK_BACKEND:"x11",DISPLAY:":0",LANG:"pt_BR.UTF-8",XDG_CURRENT_DESKTOP:"KDE",XDG_SESSION_DESKTOP:"KDE",XAUTHORITY:"/home/bruno/.Xauthority",LS_COLORS:"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:",VSCODE_GIT_IPC_HANDLE:"/run/user/1000/vscode-git-92453d0315.sock",TERM_PROGRAM:"vscode",npm_lifecycle_script:"tsc && vite build --config vite.config.bundle.ts",SSH_AUTH_SOCK:"/tmp/ssh-XXXXXX2s2tOE/agent.2017",ORIGINAL_XDG_CURRENT_DESKTOP:"KDE",SHELL:"/bin/bash",npm_package_version:"0.0.1-beta.0",npm_lifecycle_event:"build:bundle",QT_ACCESSIBILITY:"1",LESSCLOSE:"/usr/bin/lesspipe %s %s",GPG_AGENT_INFO:"/run/user/1000/gnupg/S.gpg-agent:0:1",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",XDG_VTNR:"1",npm_config_globalconfig:"/home/bruno/.nvm/versions/node/v20.16.0/etc/npmrc",npm_config_init_module:"/home/bruno/.npm-init.js",PWD:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",npm_execpath:"/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/bin/npm-cli.js",XDG_CONFIG_DIRS:"/home/bruno/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings",NVM_CD_FLAGS:"",XDG_DATA_DIRS:"/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop",npm_config_global_prefix:"/home/bruno/.nvm/versions/node/v20.16.0",npm_command:"run-script",KDE_SESSION_UID:"1000",INIT_CWD:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",EDITOR:"vi",NODE_ENV:"production"};const U5=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],H5=Bc(),W5=nC("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function G5(e){return oC({props:e,name:"MuiGrid",defaultTheme:H5})}function K5(e={}){const{createStyledComponent:t=W5,useThemeProps:n=G5,componentName:r="MuiGrid"}=e,i=R.createContext(void 0),a=(p,h)=>{const{container:g,direction:b,spacing:x,wrap:k,gridSize:E}=p,w={root:["root",g&&"container",k!=="wrap"&&`wrap-xs-${String(k)}`,...z5(b),...j5(E),...g?F5(x,h.breakpoints.keys[0]):[]]};return ot(w,T=>Ze(r,T),{})},u=t(D5,$5,N5,I5,M5,L5,A5),f=R.forwardRef(function(h,g){var b,x,k,E,w,T,P,I;const D=vp(),M=n(h),L=bp(M),A=R.useContext(i),{className:z,children:G,columns:q=12,container:X=!1,component:ne="div",direction:Q="row",wrap:Z="wrap",spacing:V=0,rowSpacing:ce=V,columnSpacing:ue=V,disableEqualOverflow:se,unstable_level:U=0}=L,ae=Oe(L,U5);let Se=se;U&&se!==void 0&&(Se=h.disableEqualOverflow);const H={},be={},Ke={};Object.entries(ae).forEach(([it,Qe])=>{D.breakpoints.values[it]!==void 0?H[it]=Qe:D.breakpoints.values[it.replace("Offset","")]!==void 0?be[it.replace("Offset","")]=Qe:Ke[it]=Qe});const Ie=(b=h.columns)!=null?b:U?void 0:q,$e=(x=h.spacing)!=null?x:U?void 0:V,Ee=(k=(E=h.rowSpacing)!=null?E:h.spacing)!=null?k:U?void 0:ce,Ye=(w=(T=h.columnSpacing)!=null?T:h.spacing)!=null?w:U?void 0:ue,Ce=O({},L,{level:U,columns:Ie,container:X,direction:Q,wrap:Z,spacing:$e,rowSpacing:Ee,columnSpacing:Ye,gridSize:H,gridOffset:be,disableEqualOverflow:(P=(I=Se)!=null?I:A)!=null?P:!1,parentDisableEqualOverflow:A}),Fe=a(Ce,D);let mt=S.jsx(u,O({ref:g,as:ne,ownerState:Ce,className:Pe(Fe.root,z)},Ke,{children:R.Children.map(G,it=>{if(R.isValidElement(it)&&Uc(it,["Grid"])){var Qe;return R.cloneElement(it,{unstable_level:(Qe=it.props.unstable_level)!=null?Qe:U+1})}return it})}));return Se!==void 0&&Se!==(A??!1)&&(mt=S.jsx(i.Provider,{value:Se,children:mt})),mt});return B5.NODE_ENV!=="production"&&(f.propTypes={children:Me.node,className:Me.string,columns:Me.oneOfType([Me.arrayOf(Me.number),Me.number,Me.object]),columnSpacing:Me.oneOfType([Me.arrayOf(Me.oneOfType([Me.number,Me.string])),Me.number,Me.object,Me.string]),component:Me.elementType,container:Me.bool,direction:Me.oneOfType([Me.oneOf(["column-reverse","column","row-reverse","row"]),Me.arrayOf(Me.oneOf(["column-reverse","column","row-reverse","row"])),Me.object]),disableEqualOverflow:Me.bool,lg:Me.oneOfType([Me.oneOf(["auto"]),Me.number,Me.bool]),lgOffset:Me.oneOfType([Me.oneOf(["auto"]),Me.number]),md:Me.oneOfType([Me.oneOf(["auto"]),Me.number,Me.bool]),mdOffset:Me.oneOfType([Me.oneOf(["auto"]),Me.number]),rowSpacing:Me.oneOfType([Me.arrayOf(Me.oneOfType([Me.number,Me.string])),Me.number,Me.object,Me.string]),sm:Me.oneOfType([Me.oneOf(["auto"]),Me.number,Me.bool]),smOffset:Me.oneOfType([Me.oneOf(["auto"]),Me.number]),spacing:Me.oneOfType([Me.arrayOf(Me.oneOfType([Me.number,Me.string])),Me.number,Me.object,Me.string]),sx:Me.oneOfType([Me.arrayOf(Me.oneOfType([Me.func,Me.object,Me.bool])),Me.func,Me.object]),wrap:Me.oneOf(["nowrap","wrap-reverse","wrap"]),xl:Me.oneOfType([Me.oneOf(["auto"]),Me.number,Me.bool]),xlOffset:Me.oneOfType([Me.oneOf(["auto"]),Me.number]),xs:Me.oneOfType([Me.oneOf(["auto"]),Me.number,Me.bool]),xsOffset:Me.oneOfType([Me.oneOf(["auto"]),Me.number])}),f.muiName="Grid",f}var V5={LESSOPEN:"| /usr/bin/lesspipe %s",KDE_FULL_SESSION:"true",LANGUAGE:"pt_BR:pt:en",USER:"bruno",PAM_KWALLET5_LOGIN:"/run/user/1000/kwallet5.socket",npm_config_user_agent:"npm/10.8.1 node/v20.16.0 linux x64 workspaces/false",QT_SCREEN_SCALE_FACTORS:"HDMI-1=1;DP-1=1;DP-2=1;DP-3=1;",XDG_SEAT:"seat0",SSH_AGENT_PID:"2161",XDG_SESSION_TYPE:"x11",GIT_ASKPASS:"/usr/share/code/resources/app/extensions/git/dist/askpass.sh",npm_node_execpath:"/home/bruno/.nvm/versions/node/v20.16.0/bin/node",XCURSOR_SIZE:"24",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/bruno",CHROME_DESKTOP:"code-url-handler.desktop",KDE_APPLICATIONS_AS_SCOPE:"1",TERM_PROGRAM_VERSION:"1.92.2",DESKTOP_SESSION:"plasma",NVM_BIN:"/home/bruno/.nvm/versions/node/v20.16.0/bin",npm_package_json:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/package.json",NVM_INC:"/home/bruno/.nvm/versions/node/v20.16.0/include/node",GTK_RC_FILES:"/etc/gtk/gtkrc:/home/bruno/.gtkrc:/home/bruno/.config/gtkrc",XDG_SEAT_PATH:"/org/freedesktop/DisplayManager/Seat0",KDE_SESSION_VERSION:"5",VSCODE_GIT_ASKPASS_MAIN:"/usr/share/code/resources/app/extensions/git/dist/askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"/usr/share/code/code",npm_config_userconfig:"/home/bruno/.npmrc",npm_config_local_prefix:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",SYSTEMD_EXEC_PID:"1995",DBUS_SESSION_BUS_ADDRESS:"unix:path=/run/user/1000/bus",COLORTERM:"truecolor",COLOR:"1",NVM_DIR:"/home/bruno/.nvm",MANDATORY_PATH:"/usr/share/gconf/plasma.mandatory.path",IM_CONFIG_PHASE:"1",LOGNAME:"bruno",QT_AUTO_SCREEN_SCALE_FACTOR:"0",_:"/home/bruno/.nvm/versions/node/v20.16.0/bin/npm",npm_config_prefix:"/home/bruno/.nvm/versions/node/v20.16.0",npm_config_npm_version:"10.8.1",XDG_SESSION_CLASS:"user",DEFAULTS_PATH:"/usr/share/gconf/plasma.default.path",TERM:"xterm-256color",XDG_SESSION_ID:"3",npm_config_cache:"/home/bruno/.npm",GTK2_RC_FILES:"/etc/gtk-2.0/gtkrc:/home/bruno/.gtkrc-2.0:/home/bruno/.config/gtkrc-2.0",npm_config_node_gyp:"/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/bruno/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/:/home/bruno/.local/bin:/home/bruno/bin:/home/bruno/.nvm/versions/node/v20.16.0/bin:/home/bruno/.local/bin:/home/bruno/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/bruno/flutter/3.13.6/flutter/bin:/home/bruno/flutter/3.13.6/flutter/bin",SESSION_MANAGER:"local/bruno-kubuntu:@/tmp/.ICE-unix/2305,unix/bruno-kubuntu:/tmp/.ICE-unix/2305",NODE:"/home/bruno/.nvm/versions/node/v20.16.0/bin/node",npm_package_name:"@luminix/mui-cms",XDG_SESSION_PATH:"/org/freedesktop/DisplayManager/Session1",XDG_RUNTIME_DIR:"/run/user/1000",XCURSOR_THEME:"breeze_cursors",GDK_BACKEND:"x11",DISPLAY:":0",LANG:"pt_BR.UTF-8",XDG_CURRENT_DESKTOP:"KDE",XDG_SESSION_DESKTOP:"KDE",XAUTHORITY:"/home/bruno/.Xauthority",LS_COLORS:"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:",VSCODE_GIT_IPC_HANDLE:"/run/user/1000/vscode-git-92453d0315.sock",TERM_PROGRAM:"vscode",npm_lifecycle_script:"tsc && vite build --config vite.config.bundle.ts",SSH_AUTH_SOCK:"/tmp/ssh-XXXXXX2s2tOE/agent.2017",ORIGINAL_XDG_CURRENT_DESKTOP:"KDE",SHELL:"/bin/bash",npm_package_version:"0.0.1-beta.0",npm_lifecycle_event:"build:bundle",QT_ACCESSIBILITY:"1",LESSCLOSE:"/usr/bin/lesspipe %s %s",GPG_AGENT_INFO:"/run/user/1000/gnupg/S.gpg-agent:0:1",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",XDG_VTNR:"1",npm_config_globalconfig:"/home/bruno/.nvm/versions/node/v20.16.0/etc/npmrc",npm_config_init_module:"/home/bruno/.npm-init.js",PWD:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",npm_execpath:"/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/bin/npm-cli.js",XDG_CONFIG_DIRS:"/home/bruno/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings",NVM_CD_FLAGS:"",XDG_DATA_DIRS:"/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop",npm_config_global_prefix:"/home/bruno/.nvm/versions/node/v20.16.0",npm_command:"run-script",KDE_SESSION_UID:"1000",INIT_CWD:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",EDITOR:"vi",NODE_ENV:"production"};const X5=["component","direction","spacing","divider","children","className","useFlexGap"],q5=Bc(),Y5=nC("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Q5(e){return oC({props:e,name:"MuiStack",defaultTheme:q5})}function J5(e,t){const n=R.Children.toArray(e).filter(Boolean);return n.reduce((r,i,a)=>(r.push(i),a<n.length-1&&r.push(R.cloneElement(t,{key:`separator-${a}`})),r),[])}const Z5=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],eD=({ownerState:e,theme:t})=>{let n=O({display:"flex",flexDirection:"column"},cs({theme:t},F1({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=U1(t),i=Object.keys(t.breakpoints.values).reduce((p,h)=>((typeof e.spacing=="object"&&e.spacing[h]!=null||typeof e.direction=="object"&&e.direction[h]!=null)&&(p[h]=!0),p),{}),a=F1({values:e.direction,base:i}),u=F1({values:e.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((p,h,g)=>{if(!a[p]){const x=h>0?a[g[h-1]]:"column";a[p]=x}}),n=go(n,cs({theme:t},u,(p,h)=>e.useFlexGap?{gap:_u(r,p)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Z5(h?a[h]:e.direction)}`]:_u(r,p)}}))}return n=FI(t.breakpoints,n),n};function tD(e={}){const{createStyledComponent:t=Y5,useThemeProps:n=Q5,componentName:r="MuiStack"}=e,i=()=>ot({root:["root"]},p=>Ze(r,p),{}),a=t(eD),u=R.forwardRef(function(p,h){const g=n(p),b=bp(g),{component:x="div",direction:k="column",spacing:E=0,divider:w,children:T,className:P,useFlexGap:I=!1}=b,D=Oe(b,X5),M={direction:k,spacing:E,useFlexGap:I},L=i();return S.jsx(a,O({as:x,ownerState:M,ref:h,className:Pe(L.root,P)},D,{children:w?J5(T,w):T}))});return V5.NODE_ENV!=="production"&&(u.propTypes={children:Me.node,direction:Me.oneOfType([Me.oneOf(["column-reverse","column","row-reverse","row"]),Me.arrayOf(Me.oneOf(["column-reverse","column","row-reverse","row"])),Me.object]),divider:Me.node,spacing:Me.oneOfType([Me.arrayOf(Me.oneOfType([Me.number,Me.string])),Me.number,Me.object,Me.string]),sx:Me.oneOfType([Me.arrayOf(Me.oneOfType([Me.func,Me.object,Me.bool])),Me.func,Me.object])}),u}function nD(e,t){return O({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var pr={},wC={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(wC);var _C=wC.exports;const rD=al(kP),oD=al(t5);var Cp={LESSOPEN:"| /usr/bin/lesspipe %s",KDE_FULL_SESSION:"true",LANGUAGE:"pt_BR:pt:en",USER:"bruno",PAM_KWALLET5_LOGIN:"/run/user/1000/kwallet5.socket",npm_config_user_agent:"npm/10.8.1 node/v20.16.0 linux x64 workspaces/false",QT_SCREEN_SCALE_FACTORS:"HDMI-1=1;DP-1=1;DP-2=1;DP-3=1;",XDG_SEAT:"seat0",SSH_AGENT_PID:"2161",XDG_SESSION_TYPE:"x11",GIT_ASKPASS:"/usr/share/code/resources/app/extensions/git/dist/askpass.sh",npm_node_execpath:"/home/bruno/.nvm/versions/node/v20.16.0/bin/node",XCURSOR_SIZE:"24",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/bruno",CHROME_DESKTOP:"code-url-handler.desktop",KDE_APPLICATIONS_AS_SCOPE:"1",TERM_PROGRAM_VERSION:"1.92.2",DESKTOP_SESSION:"plasma",NVM_BIN:"/home/bruno/.nvm/versions/node/v20.16.0/bin",npm_package_json:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/package.json",NVM_INC:"/home/bruno/.nvm/versions/node/v20.16.0/include/node",GTK_RC_FILES:"/etc/gtk/gtkrc:/home/bruno/.gtkrc:/home/bruno/.config/gtkrc",XDG_SEAT_PATH:"/org/freedesktop/DisplayManager/Seat0",KDE_SESSION_VERSION:"5",VSCODE_GIT_ASKPASS_MAIN:"/usr/share/code/resources/app/extensions/git/dist/askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"/usr/share/code/code",npm_config_userconfig:"/home/bruno/.npmrc",npm_config_local_prefix:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",SYSTEMD_EXEC_PID:"1995",DBUS_SESSION_BUS_ADDRESS:"unix:path=/run/user/1000/bus",COLORTERM:"truecolor",COLOR:"1",NVM_DIR:"/home/bruno/.nvm",MANDATORY_PATH:"/usr/share/gconf/plasma.mandatory.path",IM_CONFIG_PHASE:"1",LOGNAME:"bruno",QT_AUTO_SCREEN_SCALE_FACTOR:"0",_:"/home/bruno/.nvm/versions/node/v20.16.0/bin/npm",npm_config_prefix:"/home/bruno/.nvm/versions/node/v20.16.0",npm_config_npm_version:"10.8.1",XDG_SESSION_CLASS:"user",DEFAULTS_PATH:"/usr/share/gconf/plasma.default.path",TERM:"xterm-256color",XDG_SESSION_ID:"3",npm_config_cache:"/home/bruno/.npm",GTK2_RC_FILES:"/etc/gtk-2.0/gtkrc:/home/bruno/.gtkrc-2.0:/home/bruno/.config/gtkrc-2.0",npm_config_node_gyp:"/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/bruno/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/:/home/bruno/.local/bin:/home/bruno/bin:/home/bruno/.nvm/versions/node/v20.16.0/bin:/home/bruno/.local/bin:/home/bruno/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/bruno/flutter/3.13.6/flutter/bin:/home/bruno/flutter/3.13.6/flutter/bin",SESSION_MANAGER:"local/bruno-kubuntu:@/tmp/.ICE-unix/2305,unix/bruno-kubuntu:/tmp/.ICE-unix/2305",NODE:"/home/bruno/.nvm/versions/node/v20.16.0/bin/node",npm_package_name:"@luminix/mui-cms",XDG_SESSION_PATH:"/org/freedesktop/DisplayManager/Session1",XDG_RUNTIME_DIR:"/run/user/1000",XCURSOR_THEME:"breeze_cursors",GDK_BACKEND:"x11",DISPLAY:":0",LANG:"pt_BR.UTF-8",XDG_CURRENT_DESKTOP:"KDE",XDG_SESSION_DESKTOP:"KDE",XAUTHORITY:"/home/bruno/.Xauthority",LS_COLORS:"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:",VSCODE_GIT_IPC_HANDLE:"/run/user/1000/vscode-git-92453d0315.sock",TERM_PROGRAM:"vscode",npm_lifecycle_script:"tsc && vite build --config vite.config.bundle.ts",SSH_AUTH_SOCK:"/tmp/ssh-XXXXXX2s2tOE/agent.2017",ORIGINAL_XDG_CURRENT_DESKTOP:"KDE",SHELL:"/bin/bash",npm_package_version:"0.0.1-beta.0",npm_lifecycle_event:"build:bundle",QT_ACCESSIBILITY:"1",LESSCLOSE:"/usr/bin/lesspipe %s %s",GPG_AGENT_INFO:"/run/user/1000/gnupg/S.gpg-agent:0:1",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",XDG_VTNR:"1",npm_config_globalconfig:"/home/bruno/.nvm/versions/node/v20.16.0/etc/npmrc",npm_config_init_module:"/home/bruno/.npm-init.js",PWD:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",npm_execpath:"/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/bin/npm-cli.js",XDG_CONFIG_DIRS:"/home/bruno/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings",NVM_CD_FLAGS:"",XDG_DATA_DIRS:"/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop",npm_config_global_prefix:"/home/bruno/.nvm/versions/node/v20.16.0",npm_command:"run-script",KDE_SESSION_UID:"1000",INIT_CWD:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",EDITOR:"vi",NODE_ENV:"production"},CC=_C;Object.defineProperty(pr,"__esModule",{value:!0});var Ht=pr.alpha=OC;pr.blend=mD,pr.colorChannel=void 0;var Ep=pr.darken=tb;pr.decomposeColor=Ni;var mg=pr.emphasize=PC,iD=pr.getContrastRatio=cD;pr.getLuminance=gg,pr.hexToRgb=RC,pr.hslToRgb=TC;var Rp=pr.lighten=nb;pr.private_safeAlpha=dD,pr.private_safeColorChannel=void 0,pr.private_safeDarken=fD,pr.private_safeEmphasize=hD,pr.private_safeLighten=pD,pr.recomposeColor=Xc,pr.rgbToHex=uD;var EC=CC(rD),sD=CC(oD);function eb(e,t=0,n=1){return(0,sD.default)(e,t,n)}function RC(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function aD(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Ni(e){if(e.type)return e;if(e.charAt(0)==="#")return Ni(RC(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,EC.default)(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error((0,EC.default)(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}const kC=e=>{const t=Ni(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};pr.colorChannel=kC;const lD=(e,t)=>{try{return kC(e)}catch{return t&&Cp.NODE_ENV!=="production"&&console.warn(t),e}};pr.private_safeColorChannel=lD;function Xc(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function uD(e){if(e.indexOf("#")===0)return e;const{values:t}=Ni(e);return`#${t.map((n,r)=>aD(r===3?Math.round(255*n):n)).join("")}`}function TC(e){e=Ni(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),u=(h,g=(h+n/30)%12)=>i-a*Math.max(Math.min(g-3,9-g,1),-1);let f="rgb";const p=[Math.round(u(0)*255),Math.round(u(8)*255),Math.round(u(4)*255)];return e.type==="hsla"&&(f+="a",p.push(t[3])),Xc({type:f,values:p})}function gg(e){e=Ni(e);let t=e.type==="hsl"||e.type==="hsla"?Ni(TC(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function cD(e,t){const n=gg(e),r=gg(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function OC(e,t){return e=Ni(e),t=eb(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Xc(e)}function dD(e,t,n){try{return OC(e,t)}catch{return n&&Cp.NODE_ENV!=="production"&&console.warn(n),e}}function tb(e,t){if(e=Ni(e),t=eb(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Xc(e)}function fD(e,t,n){try{return tb(e,t)}catch{return n&&Cp.NODE_ENV!=="production"&&console.warn(n),e}}function nb(e,t){if(e=Ni(e),t=eb(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Xc(e)}function pD(e,t,n){try{return nb(e,t)}catch{return n&&Cp.NODE_ENV!=="production"&&console.warn(n),e}}function PC(e,t=.15){return gg(e)>.5?tb(e,t):nb(e,t)}function hD(e,t,n){try{return PC(e,t)}catch{return n&&Cp.NODE_ENV!=="production"&&console.warn(n),e}}function mD(e,t,n,r=1){const i=(p,h)=>Math.round((p**(1/r)*(1-n)+h**(1/r)*n)**r),a=Ni(e),u=Ni(t),f=[i(a.values[0],u.values[0]),i(a.values[1],u.values[1]),i(a.values[2],u.values[2])];return Xc({type:"rgb",values:f})}const kp={black:"#000",white:"#fff"},gD={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},qc={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Yc={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Tp={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Qc={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Jc={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Zc={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var vD={LESSOPEN:"| /usr/bin/lesspipe %s",KDE_FULL_SESSION:"true",LANGUAGE:"pt_BR:pt:en",USER:"bruno",PAM_KWALLET5_LOGIN:"/run/user/1000/kwallet5.socket",npm_config_user_agent:"npm/10.8.1 node/v20.16.0 linux x64 workspaces/false",QT_SCREEN_SCALE_FACTORS:"HDMI-1=1;DP-1=1;DP-2=1;DP-3=1;",XDG_SEAT:"seat0",SSH_AGENT_PID:"2161",XDG_SESSION_TYPE:"x11",GIT_ASKPASS:"/usr/share/code/resources/app/extensions/git/dist/askpass.sh",npm_node_execpath:"/home/bruno/.nvm/versions/node/v20.16.0/bin/node",XCURSOR_SIZE:"24",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/bruno",CHROME_DESKTOP:"code-url-handler.desktop",KDE_APPLICATIONS_AS_SCOPE:"1",TERM_PROGRAM_VERSION:"1.92.2",DESKTOP_SESSION:"plasma",NVM_BIN:"/home/bruno/.nvm/versions/node/v20.16.0/bin",npm_package_json:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/package.json",NVM_INC:"/home/bruno/.nvm/versions/node/v20.16.0/include/node",GTK_RC_FILES:"/etc/gtk/gtkrc:/home/bruno/.gtkrc:/home/bruno/.config/gtkrc",XDG_SEAT_PATH:"/org/freedesktop/DisplayManager/Seat0",KDE_SESSION_VERSION:"5",VSCODE_GIT_ASKPASS_MAIN:"/usr/share/code/resources/app/extensions/git/dist/askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"/usr/share/code/code",npm_config_userconfig:"/home/bruno/.npmrc",npm_config_local_prefix:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",SYSTEMD_EXEC_PID:"1995",DBUS_SESSION_BUS_ADDRESS:"unix:path=/run/user/1000/bus",COLORTERM:"truecolor",COLOR:"1",NVM_DIR:"/home/bruno/.nvm",MANDATORY_PATH:"/usr/share/gconf/plasma.mandatory.path",IM_CONFIG_PHASE:"1",LOGNAME:"bruno",QT_AUTO_SCREEN_SCALE_FACTOR:"0",_:"/home/bruno/.nvm/versions/node/v20.16.0/bin/npm",npm_config_prefix:"/home/bruno/.nvm/versions/node/v20.16.0",npm_config_npm_version:"10.8.1",XDG_SESSION_CLASS:"user",DEFAULTS_PATH:"/usr/share/gconf/plasma.default.path",TERM:"xterm-256color",XDG_SESSION_ID:"3",npm_config_cache:"/home/bruno/.npm",GTK2_RC_FILES:"/etc/gtk-2.0/gtkrc:/home/bruno/.gtkrc-2.0:/home/bruno/.config/gtkrc-2.0",npm_config_node_gyp:"/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/bruno/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/:/home/bruno/.local/bin:/home/bruno/bin:/home/bruno/.nvm/versions/node/v20.16.0/bin:/home/bruno/.local/bin:/home/bruno/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/bruno/flutter/3.13.6/flutter/bin:/home/bruno/flutter/3.13.6/flutter/bin",SESSION_MANAGER:"local/bruno-kubuntu:@/tmp/.ICE-unix/2305,unix/bruno-kubuntu:/tmp/.ICE-unix/2305",NODE:"/home/bruno/.nvm/versions/node/v20.16.0/bin/node",npm_package_name:"@luminix/mui-cms",XDG_SESSION_PATH:"/org/freedesktop/DisplayManager/Session1",XDG_RUNTIME_DIR:"/run/user/1000",XCURSOR_THEME:"breeze_cursors",GDK_BACKEND:"x11",DISPLAY:":0",LANG:"pt_BR.UTF-8",XDG_CURRENT_DESKTOP:"KDE",XDG_SESSION_DESKTOP:"KDE",XAUTHORITY:"/home/bruno/.Xauthority",LS_COLORS:"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:",VSCODE_GIT_IPC_HANDLE:"/run/user/1000/vscode-git-92453d0315.sock",TERM_PROGRAM:"vscode",npm_lifecycle_script:"tsc && vite build --config vite.config.bundle.ts",SSH_AUTH_SOCK:"/tmp/ssh-XXXXXX2s2tOE/agent.2017",ORIGINAL_XDG_CURRENT_DESKTOP:"KDE",SHELL:"/bin/bash",npm_package_version:"0.0.1-beta.0",npm_lifecycle_event:"build:bundle",QT_ACCESSIBILITY:"1",LESSCLOSE:"/usr/bin/lesspipe %s %s",GPG_AGENT_INFO:"/run/user/1000/gnupg/S.gpg-agent:0:1",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",XDG_VTNR:"1",npm_config_globalconfig:"/home/bruno/.nvm/versions/node/v20.16.0/etc/npmrc",npm_config_init_module:"/home/bruno/.npm-init.js",PWD:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",npm_execpath:"/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/bin/npm-cli.js",XDG_CONFIG_DIRS:"/home/bruno/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings",NVM_CD_FLAGS:"",XDG_DATA_DIRS:"/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop",npm_config_global_prefix:"/home/bruno/.nvm/versions/node/v20.16.0",npm_command:"run-script",KDE_SESSION_UID:"1000",INIT_CWD:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",EDITOR:"vi",NODE_ENV:"production"};const bD=["mode","contrastThreshold","tonalOffset"],IC={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:kp.white,default:kp.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},rb={text:{primary:kp.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:kp.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function AC(e,t,n,r){const i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Rp(e.main,i):t==="dark"&&(e.dark=Ep(e.main,a)))}function yD(e="light"){return e==="dark"?{main:Qc[200],light:Qc[50],dark:Qc[400]}:{main:Qc[700],light:Qc[400],dark:Qc[800]}}function xD(e="light"){return e==="dark"?{main:qc[200],light:qc[50],dark:qc[400]}:{main:qc[500],light:qc[300],dark:qc[700]}}function SD(e="light"){return e==="dark"?{main:Yc[500],light:Yc[300],dark:Yc[700]}:{main:Yc[700],light:Yc[400],dark:Yc[800]}}function wD(e="light"){return e==="dark"?{main:Jc[400],light:Jc[300],dark:Jc[700]}:{main:Jc[700],light:Jc[500],dark:Jc[900]}}function _D(e="light"){return e==="dark"?{main:Zc[400],light:Zc[300],dark:Zc[700]}:{main:Zc[800],light:Zc[500],dark:Zc[900]}}function CD(e="light"){return e==="dark"?{main:Tp[400],light:Tp[300],dark:Tp[700]}:{main:"#ed6c02",light:Tp[500],dark:Tp[900]}}function ED(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Oe(e,bD),a=e.primary||yD(t),u=e.secondary||xD(t),f=e.error||SD(t),p=e.info||wD(t),h=e.success||_D(t),g=e.warning||CD(t);function b(w){return iD(w,rb.text.primary)>=n?rb.text.primary:IC.text.primary}const x=({color:w,name:T,mainShade:P=500,lightShade:I=300,darkShade:D=700})=>{if(w=O({},w),!w.main&&w[P]&&(w.main=w[P]),!w.hasOwnProperty("main"))throw new Error(Sa(11,T?` (${T})`:"",P));if(typeof w.main!="string")throw new Error(Sa(12,T?` (${T})`:"",JSON.stringify(w.main)));return AC(w,"light",I,r),AC(w,"dark",D,r),w.contrastText||(w.contrastText=b(w.main)),w},k={dark:rb,light:IC};return vD.NODE_ENV!=="production"&&(k[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),go(O({common:O({},kp),mode:t,primary:x({color:a,name:"primary"}),secondary:x({color:u,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:x({color:f,name:"error"}),warning:x({color:g,name:"warning"}),info:x({color:p,name:"info"}),success:x({color:h,name:"success"}),grey:gD,contrastThreshold:n,getContrastText:b,augmentColor:x,tonalOffset:r},k[t]),i)}var RD={LESSOPEN:"| /usr/bin/lesspipe %s",KDE_FULL_SESSION:"true",LANGUAGE:"pt_BR:pt:en",USER:"bruno",PAM_KWALLET5_LOGIN:"/run/user/1000/kwallet5.socket",npm_config_user_agent:"npm/10.8.1 node/v20.16.0 linux x64 workspaces/false",QT_SCREEN_SCALE_FACTORS:"HDMI-1=1;DP-1=1;DP-2=1;DP-3=1;",XDG_SEAT:"seat0",SSH_AGENT_PID:"2161",XDG_SESSION_TYPE:"x11",GIT_ASKPASS:"/usr/share/code/resources/app/extensions/git/dist/askpass.sh",npm_node_execpath:"/home/bruno/.nvm/versions/node/v20.16.0/bin/node",XCURSOR_SIZE:"24",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/bruno",CHROME_DESKTOP:"code-url-handler.desktop",KDE_APPLICATIONS_AS_SCOPE:"1",TERM_PROGRAM_VERSION:"1.92.2",DESKTOP_SESSION:"plasma",NVM_BIN:"/home/bruno/.nvm/versions/node/v20.16.0/bin",npm_package_json:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/package.json",NVM_INC:"/home/bruno/.nvm/versions/node/v20.16.0/include/node",GTK_RC_FILES:"/etc/gtk/gtkrc:/home/bruno/.gtkrc:/home/bruno/.config/gtkrc",XDG_SEAT_PATH:"/org/freedesktop/DisplayManager/Seat0",KDE_SESSION_VERSION:"5",VSCODE_GIT_ASKPASS_MAIN:"/usr/share/code/resources/app/extensions/git/dist/askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"/usr/share/code/code",npm_config_userconfig:"/home/bruno/.npmrc",npm_config_local_prefix:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",SYSTEMD_EXEC_PID:"1995",DBUS_SESSION_BUS_ADDRESS:"unix:path=/run/user/1000/bus",COLORTERM:"truecolor",COLOR:"1",NVM_DIR:"/home/bruno/.nvm",MANDATORY_PATH:"/usr/share/gconf/plasma.mandatory.path",IM_CONFIG_PHASE:"1",LOGNAME:"bruno",QT_AUTO_SCREEN_SCALE_FACTOR:"0",_:"/home/bruno/.nvm/versions/node/v20.16.0/bin/npm",npm_config_prefix:"/home/bruno/.nvm/versions/node/v20.16.0",npm_config_npm_version:"10.8.1",XDG_SESSION_CLASS:"user",DEFAULTS_PATH:"/usr/share/gconf/plasma.default.path",TERM:"xterm-256color",XDG_SESSION_ID:"3",npm_config_cache:"/home/bruno/.npm",GTK2_RC_FILES:"/etc/gtk-2.0/gtkrc:/home/bruno/.gtkrc-2.0:/home/bruno/.config/gtkrc-2.0",npm_config_node_gyp:"/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/node_modules/.bin:/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/bruno/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/:/home/bruno/.local/bin:/home/bruno/bin:/home/bruno/.nvm/versions/node/v20.16.0/bin:/home/bruno/.local/bin:/home/bruno/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/bruno/flutter/3.13.6/flutter/bin:/home/bruno/flutter/3.13.6/flutter/bin",SESSION_MANAGER:"local/bruno-kubuntu:@/tmp/.ICE-unix/2305,unix/bruno-kubuntu:/tmp/.ICE-unix/2305",NODE:"/home/bruno/.nvm/versions/node/v20.16.0/bin/node",npm_package_name:"@luminix/mui-cms",XDG_SESSION_PATH:"/org/freedesktop/DisplayManager/Session1",XDG_RUNTIME_DIR:"/run/user/1000",XCURSOR_THEME:"breeze_cursors",GDK_BACKEND:"x11",DISPLAY:":0",LANG:"pt_BR.UTF-8",XDG_CURRENT_DESKTOP:"KDE",XDG_SESSION_DESKTOP:"KDE",XAUTHORITY:"/home/bruno/.Xauthority",LS_COLORS:"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:",VSCODE_GIT_IPC_HANDLE:"/run/user/1000/vscode-git-92453d0315.sock",TERM_PROGRAM:"vscode",npm_lifecycle_script:"tsc && vite build --config vite.config.bundle.ts",SSH_AUTH_SOCK:"/tmp/ssh-XXXXXX2s2tOE/agent.2017",ORIGINAL_XDG_CURRENT_DESKTOP:"KDE",SHELL:"/bin/bash",npm_package_version:"0.0.1-beta.0",npm_lifecycle_event:"build:bundle",QT_ACCESSIBILITY:"1",LESSCLOSE:"/usr/bin/lesspipe %s %s",GPG_AGENT_INFO:"/run/user/1000/gnupg/S.gpg-agent:0:1",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",XDG_VTNR:"1",npm_config_globalconfig:"/home/bruno/.nvm/versions/node/v20.16.0/etc/npmrc",npm_config_init_module:"/home/bruno/.npm-init.js",PWD:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",npm_execpath:"/home/bruno/.nvm/versions/node/v20.16.0/lib/node_modules/npm/bin/npm-cli.js",XDG_CONFIG_DIRS:"/home/bruno/.config/kdedefaults:/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings",NVM_CD_FLAGS:"",XDG_DATA_DIRS:"/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop",npm_config_global_prefix:"/home/bruno/.nvm/versions/node/v20.16.0",npm_command:"run-script",KDE_SESSION_UID:"1000",INIT_CWD:"/mnt/97fb2f28-9f80-45b1-996a-6cffbde28b5a/www/luminix/js-cms",EDITOR:"vi",NODE_ENV:"production"};const kD=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function TD(e){return Math.round(e*1e5)/1e5}const DC={textTransform:"uppercase"},NC='"Roboto", "Helvetica", "Arial", sans-serif';function OD(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=NC,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:u=400,fontWeightMedium:f=500,fontWeightBold:p=700,htmlFontSize:h=16,allVariants:g,pxToRem:b}=n,x=Oe(n,kD);RD.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof h!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const k=i/14,E=b||(P=>`${P/h*k}rem`),w=(P,I,D,M,L)=>O({fontFamily:r,fontWeight:P,fontSize:E(I),lineHeight:D},r===NC?{letterSpacing:`${TD(M/I)}em`}:{},L,g),T={h1:w(a,96,1.167,-1.5),h2:w(a,60,1.2,-.5),h3:w(u,48,1.167,0),h4:w(u,34,1.235,.25),h5:w(u,24,1.334,0),h6:w(f,20,1.6,.15),subtitle1:w(u,16,1.75,.15),subtitle2:w(f,14,1.57,.1),body1:w(u,16,1.5,.15),body2:w(u,14,1.43,.15),button:w(f,14,1.75,.4,DC),caption:w(u,12,1.66,.4),overline:w(u,12,2.66,1,DC),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return go(O({htmlFontSize:h,pxToRem:E,fontFamily:r,fontSize:i,fontWeightLight:a,fontWeightRegular:u,fontWeightMedium:f,fontWeightBold:p},T),x,{clone:!1})}const PD=.2,ID=.14,AD=.12;function Zn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${PD})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ID})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${AD})`].join(",")}const DD=["none",Zn(0,2,1,-1,0,1,1,0,0,1,3,0),Zn(0,3,1,-2,0,2,2,0,0,1,5,0),Zn(0,3,3,-2,0,3,4,0,0,1,8,0),Zn(0,2,4,-1,0,4,5,0,0,1,10,0),Zn(0,3,5,-1,0,5,8,0,0,1,14,0),Zn(0,3,5,-1,0,6,10,0,0,1,18,0),Zn(0,4,5,-2,0,7,10,1,0,2,16,1),Zn(0,5,5,-3,0,8,10,1,0,3,14,2),Zn(0,5,6,-3,0,9,12,1,0,3,16,2),Zn(0,6,6,-3,0,10,14,1,0,4,18,3),Zn(0,6,7,-4,0,11,15,1,0,4,20,3),Zn(0,7,8,-4,0,12,17,2,0,5,22,4),Zn(0,7,8,-4,0,13,19,2,0,5,24,4),Zn(0,7,9,-4,0,14,21,2,0,5,26,4),Zn(0,8,9,-5,0,15,22,2,0,6,28,5),Zn(0,8,10,-5,0,16,24,2,0,6,30,5),Zn(0,8,11,-5,0,17,26,2,0,6,32,5),Zn(0,9,11,-5,0,18,28,2,0,7,34,6),Zn(0,9,12,-6,0,19,29,2,0,7,36,6),Zn(0,10,13,-6,0,20,31,3,0,8,38,7),Zn(0,10,13,-6,0,21,33,3,0,8,40,7),Zn(0,10,14,-6,0,22,35,3,0,8,42,7),Zn(0,11,14,-7,0,23,36,3,0,9,44,8),Zn(0,11,15,-7,0,24,38,3,0,9,46,8)],ND=["duration","easing","delay"],$D={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},$C={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function MC(e){return`${Math.round(e)}ms`}function MD(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function LD(e){const t=O({},$D,e.easing),n=O({},$C,e.duration);return O({getAutoHeightDuration:MD,create:(i=["all"],a={})=>{const{duration:u=n.standard,easing:f=t.easeInOut,delay:p=0}=a;return Oe(a,ND),(Array.isArray(i)?i:[i]).map(h=>`${h} ${typeof u=="string"?u:MC(u)} ${f} ${typeof p=="string"?p:MC(p)}`).join(",")}},e,{easing:t,duration:n})}const jD={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},FD=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ob(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:a={}}=e,u=Oe(e,FD);if(e.vars)throw new Error(Sa(18));const f=ED(r),p=Bc(e);let h=go(p,{mixins:nD(p.breakpoints,n),palette:f,shadows:DD.slice(),typography:OD(f,a),transitions:LD(i),zIndex:O({},jD)});return h=go(h,u),h=t.reduce((g,b)=>go(g,b),h),h.unstable_sxConfig=O({},gp,u==null?void 0:u.unstable_sxConfig),h.unstable_sx=function(b){return zc({sx:b,theme:this})},h}function zD(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function BD(e){return parseFloat(e)}const ib=ob();function Lo(){const e=vp(ib);return e[Dc]||e}var Op={},sb={exports:{}},LC;function UD(){return LC||(LC=1,function(e){function t(n,r){if(n==null)return{};var i={};for(var a in n)if({}.hasOwnProperty.call(n,a)){if(r.includes(a))continue;i[a]=n[a]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(sb)),sb.exports}const jC=al(NI),HD=al($I),WD=al(UI),GD=al(UA),KD=al(OA),VD=al($A);var ed=_C;Object.defineProperty(Op,"__esModule",{value:!0});var XD=Op.default=aN;Op.shouldForwardProp=vg,Op.systemDefaultTheme=void 0;var $i=ed(O_()),ab=ed(UD()),FC=tN(jC),qD=HD;ed(WD),ed(GD);var YD=ed(KD),QD=ed(VD);const JD=["ownerState"],ZD=["variants"],eN=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function zC(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(zC=function(r){return r?n:t})(e)}function tN(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=zC(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function nN(e){return Object.keys(e).length===0}function rN(e){return typeof e=="string"&&e.charCodeAt(0)>96}function vg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const oN=Op.systemDefaultTheme=(0,YD.default)(),iN=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function bg({defaultTheme:e,theme:t,themeId:n}){return nN(t)?e:t[n]||t}function sN(e){return e?(t,n)=>n[e]:null}function yg(e,t){let{ownerState:n}=t,r=(0,ab.default)(t,JD);const i=typeof e=="function"?e((0,$i.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(a=>yg(a,(0,$i.default)({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:a=[]}=i;let f=(0,ab.default)(i,ZD);return a.forEach(p=>{let h=!0;typeof p.props=="function"?h=p.props((0,$i.default)({ownerState:n},r,n)):Object.keys(p.props).forEach(g=>{(n==null?void 0:n[g])!==p.props[g]&&r[g]!==p.props[g]&&(h=!1)}),h&&(Array.isArray(f)||(f=[f]),f.push(typeof p.style=="function"?p.style((0,$i.default)({ownerState:n},r,n)):p.style))}),f}return i}function aN(e={}){const{themeId:t,defaultTheme:n=oN,rootShouldForwardProp:r=vg,slotShouldForwardProp:i=vg}=e,a=u=>(0,QD.default)((0,$i.default)({},u,{theme:bg((0,$i.default)({},u,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(u,f={})=>{(0,FC.internal_processStyles)(u,L=>L.filter(A=>!(A!=null&&A.__mui_systemSx)));const{name:p,slot:h,skipVariantsResolver:g,skipSx:b,overridesResolver:x=sN(iN(h))}=f,k=(0,ab.default)(f,eN),E=g!==void 0?g:h&&h!=="Root"&&h!=="root"||!1,w=b||!1;let T,P=vg;h==="Root"||h==="root"?P=r:h?P=i:rN(u)&&(P=void 0);const I=(0,FC.default)(u,(0,$i.default)({shouldForwardProp:P,label:T},k)),D=L=>typeof L=="function"&&L.__emotion_real!==L||(0,qD.isPlainObject)(L)?A=>yg(L,(0,$i.default)({},A,{theme:bg({theme:A.theme,defaultTheme:n,themeId:t})})):L,M=(L,...A)=>{let z=D(L);const G=A?A.map(D):[];p&&x&&G.push(ne=>{const Q=bg((0,$i.default)({},ne,{defaultTheme:n,themeId:t}));if(!Q.components||!Q.components[p]||!Q.components[p].styleOverrides)return null;const Z=Q.components[p].styleOverrides,V={};return Object.entries(Z).forEach(([ce,ue])=>{V[ce]=yg(ue,(0,$i.default)({},ne,{theme:Q}))}),x(ne,V)}),p&&!E&&G.push(ne=>{var Q;const Z=bg((0,$i.default)({},ne,{defaultTheme:n,themeId:t})),V=Z==null||(Q=Z.components)==null||(Q=Q[p])==null?void 0:Q.variants;return yg({variants:V},(0,$i.default)({},ne,{theme:Z}))}),w||G.push(a);const q=G.length-A.length;if(Array.isArray(L)&&q>0){const ne=new Array(q).fill("");z=[...L,...ne],z.raw=[...L.raw,...ne]}const X=I(z,...G);return u.muiName&&(X.muiName=u.muiName),X};return I.withConfig&&(M.withConfig=I.withConfig),M}}function BC(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Sr=e=>BC(e)&&e!=="classes",he=XD({themeId:Dc,defaultTheme:ib,rootShouldForwardProp:Sr}),lN=["theme"];function uN(e){let{theme:t}=e,n=Oe(e,lN);const r=t[Dc];return S.jsx(O5,O({},n,{themeId:r?Dc:void 0,theme:r||t}))}const UC=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function st(e){return T5(e)}function cN(e){return Ze("MuiSvgIcon",e)}rt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const dN=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],fN=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${ye(t)}`,`fontSize${ye(n)}`]};return ot(i,cN,r)},pN=he("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ye(n.color)}`],t[`fontSize${ye(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,a,u,f,p,h,g,b,x,k,E;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(u=a.pxToRem)==null?void 0:u.call(a,20))||"1.25rem",medium:((f=e.typography)==null||(p=f.pxToRem)==null?void 0:p.call(f,24))||"1.5rem",large:((h=e.typography)==null||(g=h.pxToRem)==null?void 0:g.call(h,35))||"2.1875rem"}[t.fontSize],color:(b=(x=(e.vars||e).palette)==null||(x=x[t.color])==null?void 0:x.main)!=null?b:{action:(k=(e.vars||e).palette)==null||(k=k.action)==null?void 0:k.active,disabled:(E=(e.vars||e).palette)==null||(E=E.action)==null?void 0:E.disabled,inherit:void 0}[t.color]}}),lb=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:u="inherit",component:f="svg",fontSize:p="medium",htmlColor:h,inheritViewBox:g=!1,titleAccess:b,viewBox:x="0 0 24 24"}=r,k=Oe(r,dN),E=R.isValidElement(i)&&i.type==="svg",w=O({},r,{color:u,component:f,fontSize:p,instanceFontSize:t.fontSize,inheritViewBox:g,viewBox:x,hasSvgAsChild:E}),T={};g||(T.viewBox=x);const P=fN(w);return S.jsxs(pN,O({as:f,className:Pe(P.root,a),focusable:"false",color:h,"aria-hidden":b?void 0:!0,role:b?"img":void 0,ref:n},T,k,E&&i.props,{ownerState:w,children:[E?i.props.children:i,b?S.jsx("title",{children:b}):null]}))});lb.muiName="SvgIcon";function on(e,t){function n(r,i){return S.jsx(lb,O({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=lb.muiName,R.memo(R.forwardRef(n))}function ub(e,t){return ub=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ub(e,t)}function HC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ub(e,t)}const WC={disabled:!1},xg=xe.createContext(null);var hN=function(t){return t.scrollTop},Pp="unmounted",Cu="exited",Eu="entering",td="entered",cb="exiting",ci=function(e){HC(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var u=i,f=u&&!u.isMounting?r.enter:r.appear,p;return a.appearStatus=null,r.in?f?(p=Cu,a.appearStatus=Eu):p=td:r.unmountOnExit||r.mountOnEnter?p=Pp:p=Cu,a.state={status:p},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var u=i.in;return u&&a.status===Pp?{status:Cu}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var u=this.state.status;this.props.in?u!==Eu&&u!==td&&(a=Eu):(u===Eu||u===td)&&(a=cb)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,u,f;return a=u=f=i,i!=null&&typeof i!="number"&&(a=i.exit,u=i.enter,f=i.appear!==void 0?i.appear:u),{exit:a,enter:u,appear:f}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Eu){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:du.findDOMNode(this);u&&hN(u)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Cu&&this.setState({status:Pp})},n.performEnter=function(i){var a=this,u=this.props.enter,f=this.context?this.context.isMounting:i,p=this.props.nodeRef?[f]:[du.findDOMNode(this),f],h=p[0],g=p[1],b=this.getTimeouts(),x=f?b.appear:b.enter;if(!i&&!u||WC.disabled){this.safeSetState({status:td},function(){a.props.onEntered(h)});return}this.props.onEnter(h,g),this.safeSetState({status:Eu},function(){a.props.onEntering(h,g),a.onTransitionEnd(x,function(){a.safeSetState({status:td},function(){a.props.onEntered(h,g)})})})},n.performExit=function(){var i=this,a=this.props.exit,u=this.getTimeouts(),f=this.props.nodeRef?void 0:du.findDOMNode(this);if(!a||WC.disabled){this.safeSetState({status:Cu},function(){i.props.onExited(f)});return}this.props.onExit(f),this.safeSetState({status:cb},function(){i.props.onExiting(f),i.onTransitionEnd(u.exit,function(){i.safeSetState({status:Cu},function(){i.props.onExited(f)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,u=!0;return this.nextCallback=function(f){u&&(u=!1,a.nextCallback=null,i(f))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var u=this.props.nodeRef?this.props.nodeRef.current:du.findDOMNode(this),f=i==null&&!this.props.addEndListener;if(!u||f){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var p=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],h=p[0],g=p[1];this.props.addEndListener(h,g)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Pp)return null;var a=this.props,u=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var f=Oe(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return xe.createElement(xg.Provider,{value:null},typeof u=="function"?u(i,f):xe.cloneElement(xe.Children.only(u),f))},t}(xe.Component);ci.contextType=xg,ci.propTypes={};function nd(){}ci.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:nd,onEntering:nd,onEntered:nd,onExit:nd,onExiting:nd,onExited:nd},ci.UNMOUNTED=Pp,ci.EXITED=Cu,ci.ENTERING=Eu,ci.ENTERED=td,ci.EXITING=cb;function mN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function db(e,t){var n=function(a){return t&&R.isValidElement(a)?t(a):a},r=Object.create(null);return e&&R.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function gN(e,t){e=e||{},t=t||{};function n(g){return g in t?t[g]:e[g]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var u,f={};for(var p in t){if(r[p])for(u=0;u<r[p].length;u++){var h=r[p][u];f[r[p][u]]=n(h)}f[p]=n(p)}for(u=0;u<i.length;u++)f[i[u]]=n(i[u]);return f}function Ru(e,t,n){return n[t]!=null?n[t]:e.props[t]}function vN(e,t){return db(e.children,function(n){return R.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ru(n,"appear",e),enter:Ru(n,"enter",e),exit:Ru(n,"exit",e)})})}function bN(e,t,n){var r=db(e.children),i=gN(t,r);return Object.keys(i).forEach(function(a){var u=i[a];if(R.isValidElement(u)){var f=a in t,p=a in r,h=t[a],g=R.isValidElement(h)&&!h.props.in;p&&(!f||g)?i[a]=R.cloneElement(u,{onExited:n.bind(null,u),in:!0,exit:Ru(u,"exit",e),enter:Ru(u,"enter",e)}):!p&&f&&!g?i[a]=R.cloneElement(u,{in:!1}):p&&f&&R.isValidElement(h)&&(i[a]=R.cloneElement(u,{onExited:n.bind(null,u),in:h.props.in,exit:Ru(u,"exit",e),enter:Ru(u,"enter",e)}))}}),i}var yN=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},xN={component:"div",childFactory:function(t){return t}},fb=function(e){HC(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var u=a.handleExited.bind(mN(a));return a.state={contextValue:{isMounting:!0},handleExited:u,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,a){var u=a.children,f=a.handleExited,p=a.firstRender;return{children:p?vN(i,f):bN(i,u,f),firstRender:!1}},n.handleExited=function(i,a){var u=db(this.props.children);i.key in u||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(f){var p=O({},f.children);return delete p[i.key],{children:p}}))},n.render=function(){var i=this.props,a=i.component,u=i.childFactory,f=Oe(i,["component","childFactory"]),p=this.state.contextValue,h=yN(this.state.children).map(u);return delete f.appear,delete f.enter,delete f.exit,a===null?xe.createElement(xg.Provider,{value:p},h):xe.createElement(xg.Provider,{value:p},xe.createElement(a,f,h))},t}(xe.Component);fb.propTypes={},fb.defaultProps=xN;const Sg=e=>e.scrollTop;function Ms(e,t){var n,r;const{timeout:i,easing:a,style:u={}}=e;return{duration:(n=u.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=u.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:u.transitionDelay}}function SN(e){return Ze("MuiCollapse",e)}rt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const wN=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],_N=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return ot(r,SN,n)},CN=he("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>O({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&O({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),EN=he("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>O({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),RN=he("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>O({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),pb=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiCollapse"}),{addEndListener:i,children:a,className:u,collapsedSize:f="0px",component:p,easing:h,in:g,onEnter:b,onEntered:x,onEntering:k,onExit:E,onExited:w,onExiting:T,orientation:P="vertical",style:I,timeout:D=$C.standard,TransitionComponent:M=ci}=r,L=Oe(r,wN),A=O({},r,{orientation:P,collapsedSize:f}),z=_N(A),G=Lo(),q=Ca(),X=R.useRef(null),ne=R.useRef(),Q=typeof f=="number"?`${f}px`:f,Z=P==="horizontal",V=Z?"width":"height",ce=R.useRef(null),ue=An(n,ce),se=Ee=>Ye=>{if(Ee){const Ce=ce.current;Ye===void 0?Ee(Ce):Ee(Ce,Ye)}},U=()=>X.current?X.current[Z?"clientWidth":"clientHeight"]:0,ae=se((Ee,Ye)=>{X.current&&Z&&(X.current.style.position="absolute"),Ee.style[V]=Q,b&&b(Ee,Ye)}),Se=se((Ee,Ye)=>{const Ce=U();X.current&&Z&&(X.current.style.position="");const{duration:Fe,easing:mt}=Ms({style:I,timeout:D,easing:h},{mode:"enter"});if(D==="auto"){const it=G.transitions.getAutoHeightDuration(Ce);Ee.style.transitionDuration=`${it}ms`,ne.current=it}else Ee.style.transitionDuration=typeof Fe=="string"?Fe:`${Fe}ms`;Ee.style[V]=`${Ce}px`,Ee.style.transitionTimingFunction=mt,k&&k(Ee,Ye)}),H=se((Ee,Ye)=>{Ee.style[V]="auto",x&&x(Ee,Ye)}),be=se(Ee=>{Ee.style[V]=`${U()}px`,E&&E(Ee)}),Ke=se(w),Ie=se(Ee=>{const Ye=U(),{duration:Ce,easing:Fe}=Ms({style:I,timeout:D,easing:h},{mode:"exit"});if(D==="auto"){const mt=G.transitions.getAutoHeightDuration(Ye);Ee.style.transitionDuration=`${mt}ms`,ne.current=mt}else Ee.style.transitionDuration=typeof Ce=="string"?Ce:`${Ce}ms`;Ee.style[V]=Q,Ee.style.transitionTimingFunction=Fe,T&&T(Ee)}),$e=Ee=>{D==="auto"&&q.start(ne.current||0,Ee),i&&i(ce.current,Ee)};return S.jsx(M,O({in:g,onEnter:ae,onEntered:H,onEntering:Se,onExit:be,onExited:Ke,onExiting:Ie,addEndListener:$e,nodeRef:ce,timeout:D==="auto"?null:D},L,{children:(Ee,Ye)=>S.jsx(CN,O({as:p,className:Pe(z.root,u,{entered:z.entered,exited:!g&&Q==="0px"&&z.hidden}[Ee]),style:O({[Z?"minWidth":"minHeight"]:Q},I),ref:ue},Ye,{ownerState:O({},A,{state:Ee}),children:S.jsx(EN,{ownerState:O({},A,{state:Ee}),className:z.wrapper,ref:X,children:S.jsx(RN,{ownerState:O({},A,{state:Ee}),className:z.wrapperInner,children:a})})}))}))});pb.muiSupportAuto=!0;function kN(e){return Ze("MuiPaper",e)}rt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const TN=["className","component","elevation","square","variant"],ON=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ot(a,kN,i)},PN=he("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return O({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&O({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ht("#fff",UC(t.elevation))}, ${Ht("#fff",UC(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Mi=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:u=1,square:f=!1,variant:p="elevation"}=r,h=Oe(r,TN),g=O({},r,{component:a,elevation:u,square:f,variant:p}),b=ON(g);return S.jsx(PN,O({as:a,ownerState:g,className:Pe(b.root,i),ref:n},h))}),IN=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],AN=["component","slots","slotProps"],DN=["component"];function hb(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:a,getSlotOwnerState:u,internalForwardedProps:f}=t,p=Oe(t,IN),{component:h,slots:g={[e]:void 0},slotProps:b={[e]:void 0}}=a,x=Oe(a,AN),k=g[e]||r,E=hC(b[e],i),w=pC(O({className:n},p,{externalForwardedProps:e==="root"?x:void 0,externalSlotProps:E})),{props:{component:T},internalRef:P}=w,I=Oe(w.props,DN),D=An(P,E==null?void 0:E.ref,t.ref),M=u?u(I):{},L=O({},i,M),A=e==="root"?T||h:T,z=Kc(k,O({},e==="root"&&!h&&!g[e]&&f,e!=="root"&&!g[e]&&f,I,A&&{as:A},{ref:D}),L);return Object.keys(M).forEach(G=>{delete z[G]}),[k,z]}function NN(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:u,in:f,onExited:p,timeout:h}=e,[g,b]=R.useState(!1),x=Pe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),k={width:u,height:u,top:-(u/2)+a,left:-(u/2)+i},E=Pe(n.child,g&&n.childLeaving,r&&n.childPulsate);return!f&&!g&&b(!0),R.useEffect(()=>{if(!f&&p!=null){const w=setTimeout(p,h);return()=>{clearTimeout(w)}}},[p,f,h]),S.jsx("span",{className:x,style:k,children:S.jsx("span",{className:E})})}const Li=rt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),$N=["center","classes","className"];let wg=e=>e,GC,KC,VC,XC;const mb=550,MN=80,LN=vl(GC||(GC=wg`
45
+ 0% {
46
+ transform: scale(0);
47
+ opacity: 0.1;
48
+ }
49
+
50
+ 100% {
51
+ transform: scale(1);
52
+ opacity: 0.3;
53
+ }
54
+ `)),jN=vl(KC||(KC=wg`
55
+ 0% {
56
+ opacity: 1;
57
+ }
58
+
59
+ 100% {
60
+ opacity: 0;
61
+ }
62
+ `)),FN=vl(VC||(VC=wg`
63
+ 0% {
64
+ transform: scale(1);
65
+ }
66
+
67
+ 50% {
68
+ transform: scale(0.92);
69
+ }
70
+
71
+ 100% {
72
+ transform: scale(1);
73
+ }
74
+ `)),zN=he("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),BN=he(NN,{name:"MuiTouchRipple",slot:"Ripple"})(XC||(XC=wg`
75
+ opacity: 0;
76
+ position: absolute;
77
+
78
+ &.${0} {
79
+ opacity: 0.3;
80
+ transform: scale(1);
81
+ animation-name: ${0};
82
+ animation-duration: ${0}ms;
83
+ animation-timing-function: ${0};
84
+ }
85
+
86
+ &.${0} {
87
+ animation-duration: ${0}ms;
88
+ }
89
+
90
+ & .${0} {
91
+ opacity: 1;
92
+ display: block;
93
+ width: 100%;
94
+ height: 100%;
95
+ border-radius: 50%;
96
+ background-color: currentColor;
97
+ }
98
+
99
+ & .${0} {
100
+ opacity: 0;
101
+ animation-name: ${0};
102
+ animation-duration: ${0}ms;
103
+ animation-timing-function: ${0};
104
+ }
105
+
106
+ & .${0} {
107
+ position: absolute;
108
+ /* @noflip */
109
+ left: 0px;
110
+ top: 0;
111
+ animation-name: ${0};
112
+ animation-duration: 2500ms;
113
+ animation-timing-function: ${0};
114
+ animation-iteration-count: infinite;
115
+ animation-delay: 200ms;
116
+ }
117
+ `),Li.rippleVisible,LN,mb,({theme:e})=>e.transitions.easing.easeInOut,Li.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Li.child,Li.childLeaving,jN,mb,({theme:e})=>e.transitions.easing.easeInOut,Li.childPulsate,FN,({theme:e})=>e.transitions.easing.easeInOut),UN=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:u}=r,f=Oe(r,$N),[p,h]=R.useState([]),g=R.useRef(0),b=R.useRef(null);R.useEffect(()=>{b.current&&(b.current(),b.current=null)},[p]);const x=R.useRef(!1),k=Ca(),E=R.useRef(null),w=R.useRef(null),T=R.useCallback(M=>{const{pulsate:L,rippleX:A,rippleY:z,rippleSize:G,cb:q}=M;h(X=>[...X,S.jsx(BN,{classes:{ripple:Pe(a.ripple,Li.ripple),rippleVisible:Pe(a.rippleVisible,Li.rippleVisible),ripplePulsate:Pe(a.ripplePulsate,Li.ripplePulsate),child:Pe(a.child,Li.child),childLeaving:Pe(a.childLeaving,Li.childLeaving),childPulsate:Pe(a.childPulsate,Li.childPulsate)},timeout:mb,pulsate:L,rippleX:A,rippleY:z,rippleSize:G},g.current)]),g.current+=1,b.current=q},[a]),P=R.useCallback((M={},L={},A=()=>{})=>{const{pulsate:z=!1,center:G=i||L.pulsate,fakeElement:q=!1}=L;if((M==null?void 0:M.type)==="mousedown"&&x.current){x.current=!1;return}(M==null?void 0:M.type)==="touchstart"&&(x.current=!0);const X=q?null:w.current,ne=X?X.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Q,Z,V;if(G||M===void 0||M.clientX===0&&M.clientY===0||!M.clientX&&!M.touches)Q=Math.round(ne.width/2),Z=Math.round(ne.height/2);else{const{clientX:ce,clientY:ue}=M.touches&&M.touches.length>0?M.touches[0]:M;Q=Math.round(ce-ne.left),Z=Math.round(ue-ne.top)}if(G)V=Math.sqrt((2*ne.width**2+ne.height**2)/3),V%2===0&&(V+=1);else{const ce=Math.max(Math.abs((X?X.clientWidth:0)-Q),Q)*2+2,ue=Math.max(Math.abs((X?X.clientHeight:0)-Z),Z)*2+2;V=Math.sqrt(ce**2+ue**2)}M!=null&&M.touches?E.current===null&&(E.current=()=>{T({pulsate:z,rippleX:Q,rippleY:Z,rippleSize:V,cb:A})},k.start(MN,()=>{E.current&&(E.current(),E.current=null)})):T({pulsate:z,rippleX:Q,rippleY:Z,rippleSize:V,cb:A})},[i,T,k]),I=R.useCallback(()=>{P({},{pulsate:!0})},[P]),D=R.useCallback((M,L)=>{if(k.clear(),(M==null?void 0:M.type)==="touchend"&&E.current){E.current(),E.current=null,k.start(0,()=>{D(M,L)});return}E.current=null,h(A=>A.length>0?A.slice(1):A),b.current=L},[k]);return R.useImperativeHandle(n,()=>({pulsate:I,start:P,stop:D}),[I,P,D]),S.jsx(zN,O({className:Pe(Li.root,a.root,u),ref:w},f,{children:S.jsx(fb,{component:null,exit:!0,children:p})}))});function HN(e){return Ze("MuiButtonBase",e)}const WN=rt("MuiButtonBase",["root","disabled","focusVisible"]),GN=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],KN=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,u=ot({root:["root",t&&"disabled",n&&"focusVisible"]},HN,i);return n&&r&&(u.root+=` ${r}`),u},VN=he("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${WN.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),di=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:u,className:f,component:p="button",disabled:h=!1,disableRipple:g=!1,disableTouchRipple:b=!1,focusRipple:x=!1,LinkComponent:k="a",onBlur:E,onClick:w,onContextMenu:T,onDragLeave:P,onFocus:I,onFocusVisible:D,onKeyDown:M,onKeyUp:L,onMouseDown:A,onMouseLeave:z,onMouseUp:G,onTouchEnd:q,onTouchMove:X,onTouchStart:ne,tabIndex:Q=0,TouchRippleProps:Z,touchRippleRef:V,type:ce}=r,ue=Oe(r,GN),se=R.useRef(null),U=R.useRef(null),ae=An(U,V),{isFocusVisibleRef:Se,onFocus:H,onBlur:be,ref:Ke}=Y1(),[Ie,$e]=R.useState(!1);h&&Ie&&$e(!1),R.useImperativeHandle(i,()=>({focusVisible:()=>{$e(!0),se.current.focus()}}),[]);const[Ee,Ye]=R.useState(!1);R.useEffect(()=>{Ye(!0)},[]);const Ce=Ee&&!g&&!h;R.useEffect(()=>{Ie&&x&&!g&&Ee&&U.current.pulsate()},[g,x,Ie,Ee]);function Fe(We,jt,hn=b){return Nr(Mn=>(jt&&jt(Mn),!hn&&U.current&&U.current[We](Mn),!0))}const mt=Fe("start",A),it=Fe("stop",T),Qe=Fe("stop",P),vt=Fe("stop",G),wt=Fe("stop",We=>{Ie&&We.preventDefault(),z&&z(We)}),yt=Fe("start",ne),at=Fe("stop",q),Wt=Fe("stop",X),bt=Fe("stop",We=>{be(We),Se.current===!1&&$e(!1),E&&E(We)},!1),sn=Nr(We=>{se.current||(se.current=We.currentTarget),H(We),Se.current===!0&&($e(!0),D&&D(We)),I&&I(We)}),Dt=()=>{const We=se.current;return p&&p!=="button"&&!(We.tagName==="A"&&We.href)},Et=R.useRef(!1),en=Nr(We=>{x&&!Et.current&&Ie&&U.current&&We.key===" "&&(Et.current=!0,U.current.stop(We,()=>{U.current.start(We)})),We.target===We.currentTarget&&Dt()&&We.key===" "&&We.preventDefault(),M&&M(We),We.target===We.currentTarget&&Dt()&&We.key==="Enter"&&!h&&(We.preventDefault(),w&&w(We))}),Kt=Nr(We=>{x&&We.key===" "&&U.current&&Ie&&!We.defaultPrevented&&(Et.current=!1,U.current.stop(We,()=>{U.current.pulsate(We)})),L&&L(We),w&&We.target===We.currentTarget&&Dt()&&We.key===" "&&!We.defaultPrevented&&w(We)});let Lt=p;Lt==="button"&&(ue.href||ue.to)&&(Lt=k);const an={};Lt==="button"?(an.type=ce===void 0?"button":ce,an.disabled=h):(!ue.href&&!ue.to&&(an.role="button"),h&&(an["aria-disabled"]=h));const Tn=An(n,Ke,se),fn=O({},r,{centerRipple:a,component:p,disabled:h,disableRipple:g,disableTouchRipple:b,focusRipple:x,tabIndex:Q,focusVisible:Ie}),pt=KN(fn);return S.jsxs(VN,O({as:Lt,className:Pe(pt.root,f),ownerState:fn,onBlur:bt,onClick:w,onContextMenu:it,onFocus:sn,onKeyDown:en,onKeyUp:Kt,onMouseDown:mt,onMouseLeave:wt,onMouseUp:vt,onDragLeave:Qe,onTouchEnd:at,onTouchMove:Wt,onTouchStart:yt,ref:Tn,tabIndex:h?-1:Q,type:ce},an,ue,{children:[u,Ce?S.jsx(UN,O({ref:ae,center:a},Z)):null]}))});function XN(e){return Ze("MuiAlert",e)}const qC=rt("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function qN(e){return Ze("MuiIconButton",e)}const YN=rt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),QN=["edge","children","className","color","disabled","disableFocusRipple","size"],JN=e=>{const{classes:t,disabled:n,color:r,edge:i,size:a}=e,u={root:["root",n&&"disabled",r!=="default"&&`color${ye(r)}`,i&&`edge${ye(i)}`,`size${ye(a)}`]};return ot(u,qN,t)},ZN=he(di,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ye(n.color)}`],n.edge&&t[`edge${ye(n.edge)}`],t[`size${ye(n.size)}`]]}})(({theme:e,ownerState:t})=>O({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ht(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return O({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&O({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":O({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ht(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${YN.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),bo=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:u,color:f="default",disabled:p=!1,disableFocusRipple:h=!1,size:g="medium"}=r,b=Oe(r,QN),x=O({},r,{edge:i,color:f,disabled:p,disableFocusRipple:h,size:g}),k=JN(x);return S.jsx(ZN,O({className:Pe(k.root,u),centerRipple:!0,focusRipple:!h,disabled:p,ref:n},b,{ownerState:x,children:a}))}),e$=on(S.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),t$=on(S.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),n$=on(S.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),r$=on(S.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),YC=on(S.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),o$=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],i$=e=>{const{variant:t,color:n,severity:r,classes:i}=e,a={root:["root",`color${ye(n||r)}`,`${t}${ye(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return ot(a,XN,i)},s$=he(Mi,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ye(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?Ep:Rp,n=e.palette.mode==="light"?Rp:Ep;return O({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${qC.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${qC.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:O({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),a$=he("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),l$=he("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),QC=he("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),JC={success:S.jsx(e$,{fontSize:"inherit"}),warning:S.jsx(t$,{fontSize:"inherit"}),error:S.jsx(n$,{fontSize:"inherit"}),info:S.jsx(r$,{fontSize:"inherit"})},u$=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiAlert"}),{action:i,children:a,className:u,closeText:f="Close",color:p,components:h={},componentsProps:g={},icon:b,iconMapping:x=JC,onClose:k,role:E="alert",severity:w="success",slotProps:T={},slots:P={},variant:I="standard"}=r,D=Oe(r,o$),M=O({},r,{color:p,severity:w,variant:I,colorSeverity:p||w}),L=i$(M),A={slots:O({closeButton:h.CloseButton,closeIcon:h.CloseIcon},P),slotProps:O({},g,T)},[z,G]=hb("closeButton",{elementType:bo,externalForwardedProps:A,ownerState:M}),[q,X]=hb("closeIcon",{elementType:YC,externalForwardedProps:A,ownerState:M});return S.jsxs(s$,O({role:E,elevation:0,ownerState:M,className:Pe(L.root,u),ref:n},D,{children:[b!==!1?S.jsx(a$,{ownerState:M,className:L.icon,children:b||x[w]||JC[w]}):null,S.jsx(l$,{ownerState:M,className:L.message,children:a}),i!=null?S.jsx(QC,{ownerState:M,className:L.action,children:i}):null,i==null&&k?S.jsx(QC,{ownerState:M,className:L.action,children:S.jsx(z,O({size:"small","aria-label":f,title:f,color:"inherit",onClick:k},G,{children:S.jsx(q,O({fontSize:"small"},X))}))}):null]}))});function c$(e){return Ze("MuiTypography",e)}rt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const d$=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],f$=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:u}=e,f={root:["root",a,e.align!=="inherit"&&`align${ye(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return ot(f,c$,u)},p$=he("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ye(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>O({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),ZC={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},h$={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},m$=e=>h$[e]||e,ar=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiTypography"}),i=m$(r.color),a=bp(O({},r,{color:i})),{align:u="inherit",className:f,component:p,gutterBottom:h=!1,noWrap:g=!1,paragraph:b=!1,variant:x="body1",variantMapping:k=ZC}=a,E=Oe(a,d$),w=O({},a,{align:u,color:i,className:f,component:p,gutterBottom:h,noWrap:g,paragraph:b,variant:x,variantMapping:k}),T=p||(b?"p":k[x]||ZC[x])||"span",P=f$(w);return S.jsx(p$,O({as:T,ref:n,ownerState:w,className:Pe(P.root,f)},E))});function g$(e){return Ze("MuiAlertTitle",e)}rt("MuiAlertTitle",["root"]);const v$=["className"],b$=e=>{const{classes:t}=e;return ot({root:["root"]},g$,t)},y$=he(ar,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})),x$=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiAlertTitle"}),{className:i}=r,a=Oe(r,v$),u=r,f=b$(u);return S.jsx(y$,O({gutterBottom:!0,component:"div",ownerState:u,ref:n,className:Pe(f.root,i)},a))});function S$(e){return Ze("MuiAppBar",e)}rt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const w$=["className","color","enableColorOnDark","position"],_$=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${ye(t)}`,`position${ye(n)}`]};return ot(i,S$,r)},_g=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,C$=he(Mi,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ye(n.position)}`],t[`color${ye(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return O({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&O({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&O({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&O({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:_g(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:_g(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:_g(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:_g(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),eE=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:u=!1,position:f="fixed"}=r,p=Oe(r,w$),h=O({},r,{color:a,position:f,enableColorOnDark:u}),g=_$(h);return S.jsx(C$,O({square:!0,component:"header",ownerState:h,elevation:4,className:Pe(g.root,i,f==="fixed"&&"mui-fixed"),ref:n},p))});function tE(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function E$(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:a,trim:u=!1}=e;return(f,{inputValue:p,getOptionLabel:h})=>{let g=u?p.trim():p;n&&(g=g.toLowerCase()),t&&(g=tE(g));const b=g?f.filter(x=>{let k=(a||h)(x);return n&&(k=k.toLowerCase()),t&&(k=tE(k)),i==="start"?k.indexOf(g)===0:k.indexOf(g)>-1}):f;return typeof r=="number"?b.slice(0,r):b}}function Cg(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const R$=E$(),nE=5,k$=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function T$(e){const{unstable_isActiveElementInListbox:t=k$,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:u=!1,clearOnBlur:f=!e.freeSolo,clearOnEscape:p=!1,componentName:h="useAutocomplete",defaultValue:g=e.multiple?[]:null,disableClearable:b=!1,disableCloseOnSelect:x=!1,disabled:k,disabledItemsFocusable:E=!1,disableListWrap:w=!1,filterOptions:T=R$,filterSelectedOptions:P=!1,freeSolo:I=!1,getOptionDisabled:D,getOptionKey:M,getOptionLabel:L=oe=>{var re;return(re=oe.label)!=null?re:oe},groupBy:A,handleHomeEndKeys:z=!e.freeSolo,id:G,includeInputInList:q=!1,inputValue:X,isOptionEqualToValue:ne=(oe,re)=>oe===re,multiple:Q=!1,onChange:Z,onClose:V,onHighlightChange:ce,onInputChange:ue,onOpen:se,open:U,openOnFocus:ae=!1,options:Se,readOnly:H=!1,selectOnFocus:be=!e.freeSolo,value:Ke}=e,Ie=Hc(G);let $e=L;$e=oe=>{const re=L(oe);return typeof re!="string"?String(re):re};const Ee=R.useRef(!1),Ye=R.useRef(!0),Ce=R.useRef(null),Fe=R.useRef(null),[mt,it]=R.useState(null),[Qe,vt]=R.useState(-1),wt=i?0:-1,yt=R.useRef(wt),[at,Wt]=_a({controlled:Ke,default:g,name:h}),[bt,sn]=_a({controlled:X,default:"",name:h,state:"inputValue"}),[Dt,Et]=R.useState(!1),en=R.useCallback((oe,re)=>{if(!(Q?at.length<re.length:re!==null)&&!f)return;let Ae;if(Q)Ae="";else if(re==null)Ae="";else{const Je=$e(re);Ae=typeof Je=="string"?Je:""}bt!==Ae&&(sn(Ae),ue&&ue(oe,Ae,"reset"))},[$e,bt,Q,ue,sn,f,at]),[Kt,Lt]=_a({controlled:U,default:!1,name:h,state:"open"}),[an,Tn]=R.useState(!0),fn=!Q&&at!=null&&bt===$e(at),pt=Kt&&!H,We=pt?T(Se.filter(oe=>!(P&&(Q?at:[at]).some(re=>re!==null&&ne(oe,re)))),{inputValue:fn&&an?"":bt,getOptionLabel:$e}):[],jt=Q1({filteredOptions:We,value:at,inputValue:bt});R.useEffect(()=>{const oe=at!==jt.value;Dt&&!oe||I&&!oe||en(null,at)},[at,en,Dt,jt.value,I]);const hn=Kt&&We.length>0&&!H,Mn=Nr(oe=>{oe===-1?Ce.current.focus():mt.querySelector(`[data-tag-index="${oe}"]`).focus()});R.useEffect(()=>{Q&&Qe>at.length-1&&(vt(-1),Mn(-1))},[at,Q,Qe,Mn]);function et(oe,re){if(!Fe.current||oe<0||oe>=We.length)return-1;let je=oe;for(;;){const Ae=Fe.current.querySelector(`[data-option-index="${je}"]`),Je=E?!1:!Ae||Ae.disabled||Ae.getAttribute("aria-disabled")==="true";if(Ae&&Ae.hasAttribute("tabindex")&&!Je)return je;if(re==="next"?je=(je+1)%We.length:je=(je-1+We.length)%We.length,je===oe)return-1}}const Pt=Nr(({event:oe,index:re,reason:je="auto"})=>{if(yt.current=re,re===-1?Ce.current.removeAttribute("aria-activedescendant"):Ce.current.setAttribute("aria-activedescendant",`${Ie}-option-${re}`),ce&&ce(oe,re===-1?null:We[re],je),!Fe.current)return;const Ae=Fe.current.querySelector(`[role="option"].${n}-focused`);Ae&&(Ae.classList.remove(`${n}-focused`),Ae.classList.remove(`${n}-focusVisible`));let Je=Fe.current;if(Fe.current.getAttribute("role")!=="listbox"&&(Je=Fe.current.parentElement.querySelector('[role="listbox"]')),!Je)return;if(re===-1){Je.scrollTop=0;return}const He=Fe.current.querySelector(`[data-option-index="${re}"]`);if(He&&(He.classList.add(`${n}-focused`),je==="keyboard"&&He.classList.add(`${n}-focusVisible`),Je.scrollHeight>Je.clientHeight&&je!=="mouse"&&je!=="touch")){const St=He,ln=Je.clientHeight+Je.scrollTop,Vr=St.offsetTop+St.offsetHeight;Vr>ln?Je.scrollTop=Vr-Je.clientHeight:St.offsetTop-St.offsetHeight*(A?1.3:0)<Je.scrollTop&&(Je.scrollTop=St.offsetTop-St.offsetHeight*(A?1.3:0))}}),Be=Nr(({event:oe,diff:re,direction:je="next",reason:Ae="auto"})=>{if(!pt)return;const He=et((()=>{const St=We.length-1;if(re==="reset")return wt;if(re==="start")return 0;if(re==="end")return St;const ln=yt.current+re;return ln<0?ln===-1&&q?-1:w&&yt.current!==-1||Math.abs(re)>1?0:St:ln>St?ln===St+1&&q?-1:w||Math.abs(re)>1?St:0:ln})(),je);if(Pt({index:He,reason:Ae,event:oe}),r&&re!=="reset")if(He===-1)Ce.current.value=bt;else{const St=$e(We[He]);Ce.current.value=St,St.toLowerCase().indexOf(bt.toLowerCase())===0&&bt.length>0&&Ce.current.setSelectionRange(bt.length,St.length)}}),tt=()=>{const oe=(re,je)=>{const Ae=re?$e(re):"",Je=je?$e(je):"";return Ae===Je};if(yt.current!==-1&&jt.filteredOptions&&jt.filteredOptions.length!==We.length&&jt.inputValue===bt&&(Q?at.length===jt.value.length&&jt.value.every((re,je)=>$e(at[je])===$e(re)):oe(jt.value,at))){const re=jt.filteredOptions[yt.current];if(re)return Cg(We,je=>$e(je)===$e(re))}return-1},At=R.useCallback(()=>{if(!pt)return;const oe=tt();if(oe!==-1){yt.current=oe;return}const re=Q?at[0]:at;if(We.length===0||re==null){Be({diff:"reset"});return}if(Fe.current){if(re!=null){const je=We[yt.current];if(Q&&je&&Cg(at,Je=>ne(je,Je))!==-1)return;const Ae=Cg(We,Je=>ne(Je,re));Ae===-1?Be({diff:"reset"}):Pt({index:Ae});return}if(yt.current>=We.length-1){Pt({index:We.length-1});return}Pt({index:yt.current})}},[We.length,Q?!1:at,P,Be,Pt,pt,bt,Q]),Ft=Nr(oe=>{fg(Fe,oe),oe&&At()});R.useEffect(()=>{At()},[At]);const Gt=oe=>{Kt||(Lt(!0),Tn(!0),se&&se(oe))},pn=(oe,re)=>{Kt&&(Lt(!1),V&&V(oe,re))},cn=(oe,re,je,Ae)=>{if(Q){if(at.length===re.length&&at.every((Je,He)=>Je===re[He]))return}else if(at===re)return;Z&&Z(oe,re,je,Ae),Wt(re)},Dn=R.useRef(!1),Ln=(oe,re,je="selectOption",Ae="options")=>{let Je=je,He=re;if(Q){He=Array.isArray(at)?at.slice():[];const St=Cg(He,ln=>ne(re,ln));St===-1?He.push(re):Ae!=="freeSolo"&&(He.splice(St,1),Je="removeOption")}en(oe,He),cn(oe,He,Je,{option:re}),!x&&(!oe||!oe.ctrlKey&&!oe.metaKey)&&pn(oe,Je),(u===!0||u==="touch"&&Dn.current||u==="mouse"&&!Dn.current)&&Ce.current.blur()};function $r(oe,re){if(oe===-1)return-1;let je=oe;for(;;){if(re==="next"&&je===at.length||re==="previous"&&je===-1)return-1;const Ae=mt.querySelector(`[data-tag-index="${je}"]`);if(!Ae||!Ae.hasAttribute("tabindex")||Ae.disabled||Ae.getAttribute("aria-disabled")==="true")je+=re==="next"?1:-1;else return je}}const wo=(oe,re)=>{if(!Q)return;bt===""&&pn(oe,"toggleInput");let je=Qe;Qe===-1?bt===""&&re==="previous"&&(je=at.length-1):(je+=re==="next"?1:-1,je<0&&(je=0),je===at.length&&(je=-1)),je=$r(je,re),vt(je),Mn(je)},vi=oe=>{Ee.current=!0,sn(""),ue&&ue(oe,"","clear"),cn(oe,Q?[]:null,"clear")},zo=oe=>re=>{if(oe.onKeyDown&&oe.onKeyDown(re),!re.defaultMuiPrevented&&(Qe!==-1&&["ArrowLeft","ArrowRight"].indexOf(re.key)===-1&&(vt(-1),Mn(-1)),re.which!==229))switch(re.key){case"Home":pt&&z&&(re.preventDefault(),Be({diff:"start",direction:"next",reason:"keyboard",event:re}));break;case"End":pt&&z&&(re.preventDefault(),Be({diff:"end",direction:"previous",reason:"keyboard",event:re}));break;case"PageUp":re.preventDefault(),Be({diff:-nE,direction:"previous",reason:"keyboard",event:re}),Gt(re);break;case"PageDown":re.preventDefault(),Be({diff:nE,direction:"next",reason:"keyboard",event:re}),Gt(re);break;case"ArrowDown":re.preventDefault(),Be({diff:1,direction:"next",reason:"keyboard",event:re}),Gt(re);break;case"ArrowUp":re.preventDefault(),Be({diff:-1,direction:"previous",reason:"keyboard",event:re}),Gt(re);break;case"ArrowLeft":wo(re,"previous");break;case"ArrowRight":wo(re,"next");break;case"Enter":if(yt.current!==-1&&pt){const je=We[yt.current],Ae=D?D(je):!1;if(re.preventDefault(),Ae)return;Ln(re,je,"selectOption"),r&&Ce.current.setSelectionRange(Ce.current.value.length,Ce.current.value.length)}else I&&bt!==""&&fn===!1&&(Q&&re.preventDefault(),Ln(re,bt,"createOption","freeSolo"));break;case"Escape":pt?(re.preventDefault(),re.stopPropagation(),pn(re,"escape")):p&&(bt!==""||Q&&at.length>0)&&(re.preventDefault(),re.stopPropagation(),vi(re));break;case"Backspace":if(Q&&!H&&bt===""&&at.length>0){const je=Qe===-1?at.length-1:Qe,Ae=at.slice();Ae.splice(je,1),cn(re,Ae,"removeOption",{option:at[je]})}break;case"Delete":if(Q&&!H&&bt===""&&at.length>0&&Qe!==-1){const je=Qe,Ae=at.slice();Ae.splice(je,1),cn(re,Ae,"removeOption",{option:at[je]})}break}},Bo=oe=>{Et(!0),ae&&!Ee.current&&Gt(oe)},wr=oe=>{if(t(Fe)){Ce.current.focus();return}Et(!1),Ye.current=!0,Ee.current=!1,a&&yt.current!==-1&&pt?Ln(oe,We[yt.current],"blur"):a&&I&&bt!==""?Ln(oe,bt,"blur","freeSolo"):f&&en(oe,at),pn(oe,"blur")},jn=oe=>{const re=oe.target.value;bt!==re&&(sn(re),Tn(!1),ue&&ue(oe,re,"input")),re===""?!b&&!Q&&cn(oe,null,"clear"):Gt(oe)},bn=oe=>{const re=Number(oe.currentTarget.getAttribute("data-option-index"));yt.current!==re&&Pt({event:oe,index:re,reason:"mouse"})},K=oe=>{Pt({event:oe,index:Number(oe.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Dn.current=!0},ee=oe=>{const re=Number(oe.currentTarget.getAttribute("data-option-index"));Ln(oe,We[re],"selectOption"),Dn.current=!1},ge=oe=>re=>{const je=at.slice();je.splice(oe,1),cn(re,je,"removeOption",{option:at[oe]})},ke=oe=>{Kt?pn(oe,"toggleInput"):Gt(oe)},qe=oe=>{oe.currentTarget.contains(oe.target)&&oe.target.getAttribute("id")!==Ie&&oe.preventDefault()},ft=oe=>{oe.currentTarget.contains(oe.target)&&(Ce.current.focus(),be&&Ye.current&&Ce.current.selectionEnd-Ce.current.selectionStart===0&&Ce.current.select(),Ye.current=!1)},Ct=oe=>{!k&&(bt===""||!Kt)&&ke(oe)};let Ve=I&&bt.length>0;Ve=Ve||(Q?at.length>0:at!==null);let Tt=We;return A&&(Tt=We.reduce((oe,re,je)=>{const Ae=A(re);return oe.length>0&&oe[oe.length-1].group===Ae?oe[oe.length-1].options.push(re):oe.push({key:je,index:je,group:Ae,options:[re]}),oe},[])),k&&Dt&&wr(),{getRootProps:(oe={})=>O({"aria-owns":hn?`${Ie}-listbox`:null},oe,{onKeyDown:zo(oe),onMouseDown:qe,onClick:ft}),getInputLabelProps:()=>({id:`${Ie}-label`,htmlFor:Ie}),getInputProps:()=>({id:Ie,value:bt,onBlur:wr,onFocus:Bo,onChange:jn,onMouseDown:Ct,"aria-activedescendant":pt?"":null,"aria-autocomplete":r?"both":"list","aria-controls":hn?`${Ie}-listbox`:void 0,"aria-expanded":hn,autoComplete:"off",ref:Ce,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:k}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:vi}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:ke}),getTagProps:({index:oe})=>O({key:oe,"data-tag-index":oe,tabIndex:-1},!H&&{onDelete:ge(oe)}),getListboxProps:()=>({role:"listbox",id:`${Ie}-listbox`,"aria-labelledby":`${Ie}-label`,ref:Ft,onMouseDown:oe=>{oe.preventDefault()}}),getOptionProps:({index:oe,option:re})=>{var je;const Ae=(Q?at:[at]).some(He=>He!=null&&ne(re,He)),Je=D?D(re):!1;return{key:(je=M==null?void 0:M(re))!=null?je:$e(re),tabIndex:-1,role:"option",id:`${Ie}-option-${oe}`,onMouseMove:bn,onClick:ee,onTouchStart:K,"data-option-index":oe,"aria-disabled":Je,"aria-selected":Ae}},id:Ie,inputValue:bt,value:at,dirty:Ve,expanded:pt&&mt,popupOpen:pt,focused:Dt||Qe!==-1,anchorEl:mt,setAnchorEl:it,focusedTag:Qe,groupedOptions:Tt}}var gb={};Object.defineProperty(gb,"__esModule",{value:!0});var rE=gb.default=void 0,O$=I$(R),P$=jC;function oE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(oE=function(r){return r?n:t})(e)}function I$(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=oE(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function A$(e){return Object.keys(e).length===0}function D$(e=null){const t=O$.useContext(P$.ThemeContext);return!t||A$(t)?e:t}rE=gb.default=D$;var jo="top",ji="bottom",Fi="right",Fo="left",vb="auto",Ip=[jo,ji,Fi,Fo],rd="start",Ap="end",N$="clippingParents",iE="viewport",Dp="popper",$$="reference",sE=Ip.reduce(function(e,t){return e.concat([t+"-"+rd,t+"-"+Ap])},[]),aE=[].concat(Ip,[vb]).reduce(function(e,t){return e.concat([t,t+"-"+rd,t+"-"+Ap])},[]),M$="beforeRead",L$="read",j$="afterRead",F$="beforeMain",z$="main",B$="afterMain",U$="beforeWrite",H$="write",W$="afterWrite",G$=[M$,L$,j$,F$,z$,B$,U$,H$,W$];function Ls(e){return e?(e.nodeName||"").toLowerCase():null}function fi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ku(e){var t=fi(e).Element;return e instanceof t||e instanceof Element}function zi(e){var t=fi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function bb(e){if(typeof ShadowRoot>"u")return!1;var t=fi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function K$(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!zi(a)||!Ls(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(u){var f=i[u];f===!1?a.removeAttribute(u):a.setAttribute(u,f===!0?"":f)}))})}function V$(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},u=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),f=u.reduce(function(p,h){return p[h]="",p},{});!zi(i)||!Ls(i)||(Object.assign(i.style,f),Object.keys(a).forEach(function(p){i.removeAttribute(p)}))})}}const X$={name:"applyStyles",enabled:!0,phase:"write",fn:K$,effect:V$,requires:["computeStyles"]};function js(e){return e.split("-")[0]}var Tu=Math.max,Eg=Math.min,od=Math.round;function yb(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function lE(){return!/^((?!chrome|android).)*safari/i.test(yb())}function id(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&zi(e)&&(i=e.offsetWidth>0&&od(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&od(r.height)/e.offsetHeight||1);var u=ku(e)?fi(e):window,f=u.visualViewport,p=!lE()&&n,h=(r.left+(p&&f?f.offsetLeft:0))/i,g=(r.top+(p&&f?f.offsetTop:0))/a,b=r.width/i,x=r.height/a;return{width:b,height:x,top:g,right:h+b,bottom:g+x,left:h,x:h,y:g}}function xb(e){var t=id(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function uE(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&bb(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ra(e){return fi(e).getComputedStyle(e)}function q$(e){return["table","td","th"].indexOf(Ls(e))>=0}function bl(e){return((ku(e)?e.ownerDocument:e.document)||window.document).documentElement}function Rg(e){return Ls(e)==="html"?e:e.assignedSlot||e.parentNode||(bb(e)?e.host:null)||bl(e)}function cE(e){return!zi(e)||Ra(e).position==="fixed"?null:e.offsetParent}function Y$(e){var t=/firefox/i.test(yb()),n=/Trident/i.test(yb());if(n&&zi(e)){var r=Ra(e);if(r.position==="fixed")return null}var i=Rg(e);for(bb(i)&&(i=i.host);zi(i)&&["html","body"].indexOf(Ls(i))<0;){var a=Ra(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Np(e){for(var t=fi(e),n=cE(e);n&&q$(n)&&Ra(n).position==="static";)n=cE(n);return n&&(Ls(n)==="html"||Ls(n)==="body"&&Ra(n).position==="static")?t:n||Y$(e)||t}function Sb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $p(e,t,n){return Tu(e,Eg(t,n))}function Q$(e,t,n){var r=$p(e,t,n);return r>n?n:r}function dE(){return{top:0,right:0,bottom:0,left:0}}function fE(e){return Object.assign({},dE(),e)}function pE(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var J$=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,fE(typeof t!="number"?t:pE(t,Ip))};function Z$(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,u=n.modifiersData.popperOffsets,f=js(n.placement),p=Sb(f),h=[Fo,Fi].indexOf(f)>=0,g=h?"height":"width";if(!(!a||!u)){var b=J$(i.padding,n),x=xb(a),k=p==="y"?jo:Fo,E=p==="y"?ji:Fi,w=n.rects.reference[g]+n.rects.reference[p]-u[p]-n.rects.popper[g],T=u[p]-n.rects.reference[p],P=Np(a),I=P?p==="y"?P.clientHeight||0:P.clientWidth||0:0,D=w/2-T/2,M=b[k],L=I-x[g]-b[E],A=I/2-x[g]/2+D,z=$p(M,A,L),G=p;n.modifiersData[r]=(t={},t[G]=z,t.centerOffset=z-A,t)}}function eM(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||uE(t.elements.popper,i)&&(t.elements.arrow=i))}const tM={name:"arrow",enabled:!0,phase:"main",fn:Z$,effect:eM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function sd(e){return e.split("-")[1]}var nM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rM(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:od(n*i)/i||0,y:od(r*i)/i||0}}function hE(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,u=e.offsets,f=e.position,p=e.gpuAcceleration,h=e.adaptive,g=e.roundOffsets,b=e.isFixed,x=u.x,k=x===void 0?0:x,E=u.y,w=E===void 0?0:E,T=typeof g=="function"?g({x:k,y:w}):{x:k,y:w};k=T.x,w=T.y;var P=u.hasOwnProperty("x"),I=u.hasOwnProperty("y"),D=Fo,M=jo,L=window;if(h){var A=Np(n),z="clientHeight",G="clientWidth";if(A===fi(n)&&(A=bl(n),Ra(A).position!=="static"&&f==="absolute"&&(z="scrollHeight",G="scrollWidth")),A=A,i===jo||(i===Fo||i===Fi)&&a===Ap){M=ji;var q=b&&A===L&&L.visualViewport?L.visualViewport.height:A[z];w-=q-r.height,w*=p?1:-1}if(i===Fo||(i===jo||i===ji)&&a===Ap){D=Fi;var X=b&&A===L&&L.visualViewport?L.visualViewport.width:A[G];k-=X-r.width,k*=p?1:-1}}var ne=Object.assign({position:f},h&&nM),Q=g===!0?rM({x:k,y:w},fi(n)):{x:k,y:w};if(k=Q.x,w=Q.y,p){var Z;return Object.assign({},ne,(Z={},Z[M]=I?"0":"",Z[D]=P?"0":"",Z.transform=(L.devicePixelRatio||1)<=1?"translate("+k+"px, "+w+"px)":"translate3d("+k+"px, "+w+"px, 0)",Z))}return Object.assign({},ne,(t={},t[M]=I?w+"px":"",t[D]=P?k+"px":"",t.transform="",t))}function oM(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,u=a===void 0?!0:a,f=n.roundOffsets,p=f===void 0?!0:f,h={placement:js(t.placement),variation:sd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,hE(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:p})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,hE(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:p})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const iM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:oM,data:{}};var kg={passive:!0};function sM(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,u=r.resize,f=u===void 0?!0:u,p=fi(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&h.forEach(function(g){g.addEventListener("scroll",n.update,kg)}),f&&p.addEventListener("resize",n.update,kg),function(){a&&h.forEach(function(g){g.removeEventListener("scroll",n.update,kg)}),f&&p.removeEventListener("resize",n.update,kg)}}const aM={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:sM,data:{}};var lM={left:"right",right:"left",bottom:"top",top:"bottom"};function Tg(e){return e.replace(/left|right|bottom|top/g,function(t){return lM[t]})}var uM={start:"end",end:"start"};function mE(e){return e.replace(/start|end/g,function(t){return uM[t]})}function wb(e){var t=fi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function _b(e){return id(bl(e)).left+wb(e).scrollLeft}function cM(e,t){var n=fi(e),r=bl(e),i=n.visualViewport,a=r.clientWidth,u=r.clientHeight,f=0,p=0;if(i){a=i.width,u=i.height;var h=lE();(h||!h&&t==="fixed")&&(f=i.offsetLeft,p=i.offsetTop)}return{width:a,height:u,x:f+_b(e),y:p}}function dM(e){var t,n=bl(e),r=wb(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Tu(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),u=Tu(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),f=-r.scrollLeft+_b(e),p=-r.scrollTop;return Ra(i||n).direction==="rtl"&&(f+=Tu(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:u,x:f,y:p}}function Cb(e){var t=Ra(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function gE(e){return["html","body","#document"].indexOf(Ls(e))>=0?e.ownerDocument.body:zi(e)&&Cb(e)?e:gE(Rg(e))}function Mp(e,t){var n;t===void 0&&(t=[]);var r=gE(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=fi(r),u=i?[a].concat(a.visualViewport||[],Cb(r)?r:[]):r,f=t.concat(u);return i?f:f.concat(Mp(Rg(u)))}function Eb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fM(e,t){var n=id(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function vE(e,t,n){return t===iE?Eb(cM(e,n)):ku(t)?fM(t,n):Eb(dM(bl(e)))}function pM(e){var t=Mp(Rg(e)),n=["absolute","fixed"].indexOf(Ra(e).position)>=0,r=n&&zi(e)?Np(e):e;return ku(r)?t.filter(function(i){return ku(i)&&uE(i,r)&&Ls(i)!=="body"}):[]}function hM(e,t,n,r){var i=t==="clippingParents"?pM(e):[].concat(t),a=[].concat(i,[n]),u=a[0],f=a.reduce(function(p,h){var g=vE(e,h,r);return p.top=Tu(g.top,p.top),p.right=Eg(g.right,p.right),p.bottom=Eg(g.bottom,p.bottom),p.left=Tu(g.left,p.left),p},vE(e,u,r));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function bE(e){var t=e.reference,n=e.element,r=e.placement,i=r?js(r):null,a=r?sd(r):null,u=t.x+t.width/2-n.width/2,f=t.y+t.height/2-n.height/2,p;switch(i){case jo:p={x:u,y:t.y-n.height};break;case ji:p={x:u,y:t.y+t.height};break;case Fi:p={x:t.x+t.width,y:f};break;case Fo:p={x:t.x-n.width,y:f};break;default:p={x:t.x,y:t.y}}var h=i?Sb(i):null;if(h!=null){var g=h==="y"?"height":"width";switch(a){case rd:p[h]=p[h]-(t[g]/2-n[g]/2);break;case Ap:p[h]=p[h]+(t[g]/2-n[g]/2);break}}return p}function Lp(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,u=a===void 0?e.strategy:a,f=n.boundary,p=f===void 0?N$:f,h=n.rootBoundary,g=h===void 0?iE:h,b=n.elementContext,x=b===void 0?Dp:b,k=n.altBoundary,E=k===void 0?!1:k,w=n.padding,T=w===void 0?0:w,P=fE(typeof T!="number"?T:pE(T,Ip)),I=x===Dp?$$:Dp,D=e.rects.popper,M=e.elements[E?I:x],L=hM(ku(M)?M:M.contextElement||bl(e.elements.popper),p,g,u),A=id(e.elements.reference),z=bE({reference:A,element:D,strategy:"absolute",placement:i}),G=Eb(Object.assign({},D,z)),q=x===Dp?G:A,X={top:L.top-q.top+P.top,bottom:q.bottom-L.bottom+P.bottom,left:L.left-q.left+P.left,right:q.right-L.right+P.right},ne=e.modifiersData.offset;if(x===Dp&&ne){var Q=ne[i];Object.keys(X).forEach(function(Z){var V=[Fi,ji].indexOf(Z)>=0?1:-1,ce=[jo,ji].indexOf(Z)>=0?"y":"x";X[Z]+=Q[ce]*V})}return X}function mM(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,u=n.padding,f=n.flipVariations,p=n.allowedAutoPlacements,h=p===void 0?aE:p,g=sd(r),b=g?f?sE:sE.filter(function(E){return sd(E)===g}):Ip,x=b.filter(function(E){return h.indexOf(E)>=0});x.length===0&&(x=b);var k=x.reduce(function(E,w){return E[w]=Lp(e,{placement:w,boundary:i,rootBoundary:a,padding:u})[js(w)],E},{});return Object.keys(k).sort(function(E,w){return k[E]-k[w]})}function gM(e){if(js(e)===vb)return[];var t=Tg(e);return[mE(e),t,mE(t)]}function vM(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,u=n.altAxis,f=u===void 0?!0:u,p=n.fallbackPlacements,h=n.padding,g=n.boundary,b=n.rootBoundary,x=n.altBoundary,k=n.flipVariations,E=k===void 0?!0:k,w=n.allowedAutoPlacements,T=t.options.placement,P=js(T),I=P===T,D=p||(I||!E?[Tg(T)]:gM(T)),M=[T].concat(D).reduce(function(Ie,$e){return Ie.concat(js($e)===vb?mM(t,{placement:$e,boundary:g,rootBoundary:b,padding:h,flipVariations:E,allowedAutoPlacements:w}):$e)},[]),L=t.rects.reference,A=t.rects.popper,z=new Map,G=!0,q=M[0],X=0;X<M.length;X++){var ne=M[X],Q=js(ne),Z=sd(ne)===rd,V=[jo,ji].indexOf(Q)>=0,ce=V?"width":"height",ue=Lp(t,{placement:ne,boundary:g,rootBoundary:b,altBoundary:x,padding:h}),se=V?Z?Fi:Fo:Z?ji:jo;L[ce]>A[ce]&&(se=Tg(se));var U=Tg(se),ae=[];if(a&&ae.push(ue[Q]<=0),f&&ae.push(ue[se]<=0,ue[U]<=0),ae.every(function(Ie){return Ie})){q=ne,G=!1;break}z.set(ne,ae)}if(G)for(var Se=E?3:1,H=function($e){var Ee=M.find(function(Ye){var Ce=z.get(Ye);if(Ce)return Ce.slice(0,$e).every(function(Fe){return Fe})});if(Ee)return q=Ee,"break"},be=Se;be>0;be--){var Ke=H(be);if(Ke==="break")break}t.placement!==q&&(t.modifiersData[r]._skip=!0,t.placement=q,t.reset=!0)}}const bM={name:"flip",enabled:!0,phase:"main",fn:vM,requiresIfExists:["offset"],data:{_skip:!1}};function yE(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function xE(e){return[jo,Fi,ji,Fo].some(function(t){return e[t]>=0})}function yM(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,u=Lp(t,{elementContext:"reference"}),f=Lp(t,{altBoundary:!0}),p=yE(u,r),h=yE(f,i,a),g=xE(p),b=xE(h);t.modifiersData[n]={referenceClippingOffsets:p,popperEscapeOffsets:h,isReferenceHidden:g,hasPopperEscaped:b},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":b})}const xM={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:yM};function SM(e,t,n){var r=js(e),i=[Fo,jo].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,u=a[0],f=a[1];return u=u||0,f=(f||0)*i,[Fo,Fi].indexOf(r)>=0?{x:f,y:u}:{x:u,y:f}}function wM(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,u=aE.reduce(function(g,b){return g[b]=SM(b,t.rects,a),g},{}),f=u[t.placement],p=f.x,h=f.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=p,t.modifiersData.popperOffsets.y+=h),t.modifiersData[r]=u}const _M={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wM};function CM(e){var t=e.state,n=e.name;t.modifiersData[n]=bE({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const EM={name:"popperOffsets",enabled:!0,phase:"read",fn:CM,data:{}};function RM(e){return e==="x"?"y":"x"}function kM(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,u=n.altAxis,f=u===void 0?!1:u,p=n.boundary,h=n.rootBoundary,g=n.altBoundary,b=n.padding,x=n.tether,k=x===void 0?!0:x,E=n.tetherOffset,w=E===void 0?0:E,T=Lp(t,{boundary:p,rootBoundary:h,padding:b,altBoundary:g}),P=js(t.placement),I=sd(t.placement),D=!I,M=Sb(P),L=RM(M),A=t.modifiersData.popperOffsets,z=t.rects.reference,G=t.rects.popper,q=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,X=typeof q=="number"?{mainAxis:q,altAxis:q}:Object.assign({mainAxis:0,altAxis:0},q),ne=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Q={x:0,y:0};if(A){if(a){var Z,V=M==="y"?jo:Fo,ce=M==="y"?ji:Fi,ue=M==="y"?"height":"width",se=A[M],U=se+T[V],ae=se-T[ce],Se=k?-G[ue]/2:0,H=I===rd?z[ue]:G[ue],be=I===rd?-G[ue]:-z[ue],Ke=t.elements.arrow,Ie=k&&Ke?xb(Ke):{width:0,height:0},$e=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:dE(),Ee=$e[V],Ye=$e[ce],Ce=$p(0,z[ue],Ie[ue]),Fe=D?z[ue]/2-Se-Ce-Ee-X.mainAxis:H-Ce-Ee-X.mainAxis,mt=D?-z[ue]/2+Se+Ce+Ye+X.mainAxis:be+Ce+Ye+X.mainAxis,it=t.elements.arrow&&Np(t.elements.arrow),Qe=it?M==="y"?it.clientTop||0:it.clientLeft||0:0,vt=(Z=ne==null?void 0:ne[M])!=null?Z:0,wt=se+Fe-vt-Qe,yt=se+mt-vt,at=$p(k?Eg(U,wt):U,se,k?Tu(ae,yt):ae);A[M]=at,Q[M]=at-se}if(f){var Wt,bt=M==="x"?jo:Fo,sn=M==="x"?ji:Fi,Dt=A[L],Et=L==="y"?"height":"width",en=Dt+T[bt],Kt=Dt-T[sn],Lt=[jo,Fo].indexOf(P)!==-1,an=(Wt=ne==null?void 0:ne[L])!=null?Wt:0,Tn=Lt?en:Dt-z[Et]-G[Et]-an+X.altAxis,fn=Lt?Dt+z[Et]+G[Et]-an-X.altAxis:Kt,pt=k&&Lt?Q$(Tn,Dt,fn):$p(k?Tn:en,Dt,k?fn:Kt);A[L]=pt,Q[L]=pt-Dt}t.modifiersData[r]=Q}}const TM={name:"preventOverflow",enabled:!0,phase:"main",fn:kM,requiresIfExists:["offset"]};function OM(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function PM(e){return e===fi(e)||!zi(e)?wb(e):OM(e)}function IM(e){var t=e.getBoundingClientRect(),n=od(t.width)/e.offsetWidth||1,r=od(t.height)/e.offsetHeight||1;return n!==1||r!==1}function AM(e,t,n){n===void 0&&(n=!1);var r=zi(t),i=zi(t)&&IM(t),a=bl(t),u=id(e,i,n),f={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(r||!r&&!n)&&((Ls(t)!=="body"||Cb(a))&&(f=PM(t)),zi(t)?(p=id(t,!0),p.x+=t.clientLeft,p.y+=t.clientTop):a&&(p.x=_b(a))),{x:u.left+f.scrollLeft-p.x,y:u.top+f.scrollTop-p.y,width:u.width,height:u.height}}function DM(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var u=[].concat(a.requires||[],a.requiresIfExists||[]);u.forEach(function(f){if(!n.has(f)){var p=t.get(f);p&&i(p)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function NM(e){var t=DM(e);return G$.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function $M(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function MM(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var SE={placement:"bottom",modifiers:[],strategy:"absolute"};function wE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function LM(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?SE:i;return function(f,p,h){h===void 0&&(h=a);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},SE,a),modifiersData:{},elements:{reference:f,popper:p},attributes:{},styles:{}},b=[],x=!1,k={state:g,setOptions:function(P){var I=typeof P=="function"?P(g.options):P;w(),g.options=Object.assign({},a,g.options,I),g.scrollParents={reference:ku(f)?Mp(f):f.contextElement?Mp(f.contextElement):[],popper:Mp(p)};var D=NM(MM([].concat(r,g.options.modifiers)));return g.orderedModifiers=D.filter(function(M){return M.enabled}),E(),k.update()},forceUpdate:function(){if(!x){var P=g.elements,I=P.reference,D=P.popper;if(wE(I,D)){g.rects={reference:AM(I,Np(D),g.options.strategy==="fixed"),popper:xb(D)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(X){return g.modifiersData[X.name]=Object.assign({},X.data)});for(var M=0;M<g.orderedModifiers.length;M++){if(g.reset===!0){g.reset=!1,M=-1;continue}var L=g.orderedModifiers[M],A=L.fn,z=L.options,G=z===void 0?{}:z,q=L.name;typeof A=="function"&&(g=A({state:g,options:G,name:q,instance:k})||g)}}}},update:$M(function(){return new Promise(function(T){k.forceUpdate(),T(g)})}),destroy:function(){w(),x=!0}};if(!wE(f,p))return k;k.setOptions(h).then(function(T){!x&&h.onFirstUpdate&&h.onFirstUpdate(T)});function E(){g.orderedModifiers.forEach(function(T){var P=T.name,I=T.options,D=I===void 0?{}:I,M=T.effect;if(typeof M=="function"){var L=M({state:g,name:P,instance:k,options:D}),A=function(){};b.push(L||A)}})}function w(){b.forEach(function(T){return T()}),b=[]}return k}}var jM=[aM,EM,iM,X$,_M,bM,TM,tM,xM],FM=LM({defaultModifiers:jM});function zM(e){return typeof e=="function"?e():e}const _E=R.forwardRef(function(t,n){const{children:r,container:i,disablePortal:a=!1}=t,[u,f]=R.useState(null),p=An(R.isValidElement(r)?r.ref:null,n);if(Mo(()=>{a||f(zM(i)||document.body)},[i,a]),Mo(()=>{if(u&&!a)return fg(n,u),()=>{fg(n,null)}},[n,u,a]),a){if(R.isValidElement(r)){const h={ref:p};return R.cloneElement(r,h)}return S.jsx(R.Fragment,{children:r})}return S.jsx(R.Fragment,{children:u&&ym.createPortal(r,u)})});function BM(e){return Ze("MuiPopper",e)}rt("MuiPopper",["root"]);const UM=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],HM=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function WM(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Rb(e){return typeof e=="function"?e():e}function GM(e){return e.nodeType!==void 0}const KM=e=>{const{classes:t}=e;return ot({root:["root"]},BM,t)},VM={},XM=R.forwardRef(function(t,n){var r;const{anchorEl:i,children:a,direction:u,disablePortal:f,modifiers:p,open:h,placement:g,popperOptions:b,popperRef:x,slotProps:k={},slots:E={},TransitionProps:w}=t,T=Oe(t,UM),P=R.useRef(null),I=An(P,n),D=R.useRef(null),M=An(D,x),L=R.useRef(M);Mo(()=>{L.current=M},[M]),R.useImperativeHandle(x,()=>D.current,[]);const A=WM(g,u),[z,G]=R.useState(A),[q,X]=R.useState(Rb(i));R.useEffect(()=>{D.current&&D.current.forceUpdate()}),R.useEffect(()=>{i&&X(Rb(i))},[i]),Mo(()=>{if(!q||!h)return;const ce=U=>{G(U.placement)};let ue=[{name:"preventOverflow",options:{altBoundary:f}},{name:"flip",options:{altBoundary:f}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:U})=>{ce(U)}}];p!=null&&(ue=ue.concat(p)),b&&b.modifiers!=null&&(ue=ue.concat(b.modifiers));const se=FM(q,P.current,O({placement:A},b,{modifiers:ue}));return L.current(se),()=>{se.destroy(),L.current(null)}},[q,f,p,h,b,A]);const ne={placement:z};w!==null&&(ne.TransitionProps=w);const Q=KM(t),Z=(r=E.root)!=null?r:"div",V=vo({elementType:Z,externalSlotProps:k.root,externalForwardedProps:T,additionalProps:{role:"tooltip",ref:I},ownerState:t,className:Q.root});return S.jsx(Z,O({},V,{children:typeof a=="function"?a(ne):a}))}),qM=R.forwardRef(function(t,n){const{anchorEl:r,children:i,container:a,direction:u="ltr",disablePortal:f=!1,keepMounted:p=!1,modifiers:h,open:g,placement:b="bottom",popperOptions:x=VM,popperRef:k,style:E,transition:w=!1,slotProps:T={},slots:P={}}=t,I=Oe(t,HM),[D,M]=R.useState(!0),L=()=>{M(!1)},A=()=>{M(!0)};if(!p&&!g&&(!w||D))return null;let z;if(a)z=a;else if(r){const X=Rb(r);z=X&&GM(X)?kr(X).body:kr(null).body}const G=!g&&p&&(!w||D)?"none":void 0,q=w?{in:g,onEnter:L,onExited:A}:void 0;return S.jsx(_E,{disablePortal:f,container:z,children:S.jsx(XM,O({anchorEl:r,direction:u,disablePortal:f,modifiers:h,ref:n,open:w?!D:g,placement:b,popperOptions:x,popperRef:k,slotProps:T,slots:P},I,{style:O({position:"fixed",top:0,left:0,display:G},E),TransitionProps:q,children:i}))})}),YM=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],QM=he(qM,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),jp=R.forwardRef(function(t,n){var r;const i=rE(),a=st({props:t,name:"MuiPopper"}),{anchorEl:u,component:f,components:p,componentsProps:h,container:g,disablePortal:b,keepMounted:x,modifiers:k,open:E,placement:w,popperOptions:T,popperRef:P,transition:I,slots:D,slotProps:M}=a,L=Oe(a,YM),A=(r=D==null?void 0:D.root)!=null?r:p==null?void 0:p.Root,z=O({anchorEl:u,container:g,disablePortal:b,keepMounted:x,modifiers:k,open:E,placement:w,popperOptions:T,popperRef:P,transition:I},L);return S.jsx(QM,O({as:f,direction:i==null?void 0:i.direction,slots:{root:A},slotProps:M??h},z,{ref:n}))});function JM(e){return Ze("MuiListSubheader",e)}rt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const ZM=["className","color","component","disableGutters","disableSticky","inset"],eL=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:a}=e,u={root:["root",n!=="default"&&`color${ye(n)}`,!r&&"gutters",i&&"inset",!a&&"sticky"]};return ot(u,JM,t)},tL=he("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ye(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>O({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),CE=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiListSubheader"}),{className:i,color:a="default",component:u="li",disableGutters:f=!1,disableSticky:p=!1,inset:h=!1}=r,g=Oe(r,ZM),b=O({},r,{color:a,component:u,disableGutters:f,disableSticky:p,inset:h}),x=eL(b);return S.jsx(tL,O({as:u,className:Pe(x.root,i),ref:n,ownerState:b},g))});CE.muiSkipListHighlight=!0;const nL=on(S.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function rL(e){return Ze("MuiChip",e)}const Cn=rt("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),oL=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],iL=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:a,onDelete:u,clickable:f,variant:p}=e,h={root:["root",p,n&&"disabled",`size${ye(r)}`,`color${ye(i)}`,f&&"clickable",f&&`clickableColor${ye(i)}`,u&&"deletable",u&&`deletableColor${ye(i)}`,`${p}${ye(i)}`],label:["label",`label${ye(r)}`],avatar:["avatar",`avatar${ye(r)}`,`avatarColor${ye(i)}`],icon:["icon",`icon${ye(r)}`,`iconColor${ye(a)}`],deleteIcon:["deleteIcon",`deleteIcon${ye(r)}`,`deleteIconColor${ye(i)}`,`deleteIcon${ye(p)}Color${ye(i)}`]};return ot(h,rL,t)},sL=he("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:a,onDelete:u,size:f,variant:p}=n;return[{[`& .${Cn.avatar}`]:t.avatar},{[`& .${Cn.avatar}`]:t[`avatar${ye(f)}`]},{[`& .${Cn.avatar}`]:t[`avatarColor${ye(r)}`]},{[`& .${Cn.icon}`]:t.icon},{[`& .${Cn.icon}`]:t[`icon${ye(f)}`]},{[`& .${Cn.icon}`]:t[`iconColor${ye(i)}`]},{[`& .${Cn.deleteIcon}`]:t.deleteIcon},{[`& .${Cn.deleteIcon}`]:t[`deleteIcon${ye(f)}`]},{[`& .${Cn.deleteIcon}`]:t[`deleteIconColor${ye(r)}`]},{[`& .${Cn.deleteIcon}`]:t[`deleteIcon${ye(p)}Color${ye(r)}`]},t.root,t[`size${ye(f)}`],t[`color${ye(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${ye(r)})`],u&&t.deletable,u&&r!=="default"&&t[`deletableColor${ye(r)}`],t[p],t[`${p}${ye(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return O({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Cn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Cn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Cn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Cn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Cn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Cn.icon}`]:O({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&O({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Cn.deleteIcon}`]:O({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Ht(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Ht(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Ht(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Cn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ht(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Cn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>O({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ht(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Cn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ht(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Cn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>O({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Cn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Cn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Cn.avatar}`]:{marginLeft:4},[`& .${Cn.avatarSmall}`]:{marginLeft:2},[`& .${Cn.icon}`]:{marginLeft:4},[`& .${Cn.iconSmall}`]:{marginLeft:2},[`& .${Cn.deleteIcon}`]:{marginRight:5},[`& .${Cn.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ht(e.palette[t.color].main,.7)}`,[`&.${Cn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ht(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Cn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ht(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Cn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ht(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),aL=he("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ye(r)}`]]}})(({ownerState:e})=>O({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function EE(e){return e.key==="Backspace"||e.key==="Delete"}const lL=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiChip"}),{avatar:i,className:a,clickable:u,color:f="default",component:p,deleteIcon:h,disabled:g=!1,icon:b,label:x,onClick:k,onDelete:E,onKeyDown:w,onKeyUp:T,size:P="medium",variant:I="filled",tabIndex:D,skipFocusWhenDisabled:M=!1}=r,L=Oe(r,oL),A=R.useRef(null),z=An(A,n),G=ae=>{ae.stopPropagation(),E&&E(ae)},q=ae=>{ae.currentTarget===ae.target&&EE(ae)&&ae.preventDefault(),w&&w(ae)},X=ae=>{ae.currentTarget===ae.target&&(E&&EE(ae)?E(ae):ae.key==="Escape"&&A.current&&A.current.blur()),T&&T(ae)},ne=u!==!1&&k?!0:u,Q=ne||E?di:p||"div",Z=O({},r,{component:Q,disabled:g,size:P,color:f,iconColor:R.isValidElement(b)&&b.props.color||f,onDelete:!!E,clickable:ne,variant:I}),V=iL(Z),ce=Q===di?O({component:p||"div",focusVisibleClassName:V.focusVisible},E&&{disableRipple:!0}):{};let ue=null;E&&(ue=h&&R.isValidElement(h)?R.cloneElement(h,{className:Pe(h.props.className,V.deleteIcon),onClick:G}):S.jsx(nL,{className:Pe(V.deleteIcon),onClick:G}));let se=null;i&&R.isValidElement(i)&&(se=R.cloneElement(i,{className:Pe(V.avatar,i.props.className)}));let U=null;return b&&R.isValidElement(b)&&(U=R.cloneElement(b,{className:Pe(V.icon,b.props.className)})),S.jsxs(sL,O({as:Q,className:Pe(V.root,a),disabled:ne&&g?!0:void 0,onClick:k,onKeyDown:q,onKeyUp:X,ref:z,tabIndex:M&&g?-1:D,ownerState:Z},ce,L,{children:[se||U,S.jsx(aL,{className:Pe(V.label),ownerState:Z,children:x}),ue]}))}),uL=["onChange","maxRows","minRows","style","value"];function Og(e){return parseInt(e,10)||0}const cL={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function dL(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const fL=R.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:u,value:f}=t,p=Oe(t,uL),{current:h}=R.useRef(f!=null),g=R.useRef(null),b=An(n,g),x=R.useRef(null),k=R.useRef(null),E=R.useCallback(()=>{const P=g.current,D=ds(P).getComputedStyle(P);if(D.width==="0px")return{outerHeightStyle:0,overflowing:!1};const M=k.current;M.style.width=D.width,M.value=P.value||t.placeholder||"x",M.value.slice(-1)===`
118
+ `&&(M.value+=" ");const L=D.boxSizing,A=Og(D.paddingBottom)+Og(D.paddingTop),z=Og(D.borderBottomWidth)+Og(D.borderTopWidth),G=M.scrollHeight;M.value="x";const q=M.scrollHeight;let X=G;a&&(X=Math.max(Number(a)*q,X)),i&&(X=Math.min(Number(i)*q,X)),X=Math.max(X,q);const ne=X+(L==="border-box"?A+z:0),Q=Math.abs(X-G)<=1;return{outerHeightStyle:ne,overflowing:Q}},[i,a,t.placeholder]),w=R.useCallback(()=>{const P=E();if(dL(P))return;const I=P.outerHeightStyle,D=g.current;x.current!==I&&(x.current=I,D.style.height=`${I}px`),D.style.overflow=P.overflowing?"hidden":""},[E]);Mo(()=>{const P=()=>{w()};let I;const D=xp(P),M=g.current,L=ds(M);L.addEventListener("resize",D);let A;return typeof ResizeObserver<"u"&&(A=new ResizeObserver(P),A.observe(M)),()=>{D.clear(),cancelAnimationFrame(I),L.removeEventListener("resize",D),A&&A.disconnect()}},[E,w]),Mo(()=>{w()});const T=P=>{h||w(),r&&r(P)};return S.jsxs(R.Fragment,{children:[S.jsx("textarea",O({value:f,onChange:T,ref:b,rows:a,style:u},p)),S.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:k,tabIndex:-1,style:O({},cL.shadow,u,{paddingTop:0,paddingBottom:0})})]})});function yl({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const kb=R.createContext(void 0);function ka(){return R.useContext(kb)}function RE(e){return S.jsx(AA,O({},e,{defaultTheme:ib,themeId:Dc}))}function kE(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Pg(e,t=!1){return e&&(kE(e.value)&&e.value!==""||t&&kE(e.defaultValue)&&e.defaultValue!=="")}function pL(e){return e.startAdornment}function hL(e){return Ze("MuiInputBase",e)}const pi=rt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),mL=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Ig=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ye(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ag=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},gL=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:u,formControl:f,fullWidth:p,hiddenLabel:h,multiline:g,readOnly:b,size:x,startAdornment:k,type:E}=e,w={root:["root",`color${ye(n)}`,r&&"disabled",i&&"error",p&&"fullWidth",u&&"focused",f&&"formControl",x&&x!=="medium"&&`size${ye(x)}`,g&&"multiline",k&&"adornedStart",a&&"adornedEnd",h&&"hiddenLabel",b&&"readOnly"],input:["input",r&&"disabled",E==="search"&&"inputTypeSearch",g&&"inputMultiline",x==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",k&&"inputAdornedStart",a&&"inputAdornedEnd",b&&"readOnly"]};return ot(w,hL,t)},Dg=he("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ig})(({theme:e,ownerState:t})=>O({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${pi.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&O({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Ng=he("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ag})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=O({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return O({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${pi.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${pi.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),vL=S.jsx(RE,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Tb=R.forwardRef(function(t,n){var r;const i=st({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:u,autoFocus:f,className:p,components:h={},componentsProps:g={},defaultValue:b,disabled:x,disableInjectingGlobalStyles:k,endAdornment:E,fullWidth:w=!1,id:T,inputComponent:P="input",inputProps:I={},inputRef:D,maxRows:M,minRows:L,multiline:A=!1,name:z,onBlur:G,onChange:q,onClick:X,onFocus:ne,onKeyDown:Q,onKeyUp:Z,placeholder:V,readOnly:ce,renderSuffix:ue,rows:se,slotProps:U={},slots:ae={},startAdornment:Se,type:H="text",value:be}=i,Ke=Oe(i,mL),Ie=I.value!=null?I.value:be,{current:$e}=R.useRef(Ie!=null),Ee=R.useRef(),Ye=R.useCallback(pt=>{},[]),Ce=An(Ee,D,I.ref,Ye),[Fe,mt]=R.useState(!1),it=ka(),Qe=yl({props:i,muiFormControl:it,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Qe.focused=it?it.focused:Fe,R.useEffect(()=>{!it&&x&&Fe&&(mt(!1),G&&G())},[it,x,Fe,G]);const vt=it&&it.onFilled,wt=it&&it.onEmpty,yt=R.useCallback(pt=>{Pg(pt)?vt&&vt():wt&&wt()},[vt,wt]);Mo(()=>{$e&&yt({value:Ie})},[Ie,yt,$e]);const at=pt=>{if(Qe.disabled){pt.stopPropagation();return}ne&&ne(pt),I.onFocus&&I.onFocus(pt),it&&it.onFocus?it.onFocus(pt):mt(!0)},Wt=pt=>{G&&G(pt),I.onBlur&&I.onBlur(pt),it&&it.onBlur?it.onBlur(pt):mt(!1)},bt=(pt,...We)=>{if(!$e){const jt=pt.target||Ee.current;if(jt==null)throw new Error(Sa(1));yt({value:jt.value})}I.onChange&&I.onChange(pt,...We),q&&q(pt,...We)};R.useEffect(()=>{yt(Ee.current)},[]);const sn=pt=>{Ee.current&&pt.currentTarget===pt.target&&Ee.current.focus(),X&&X(pt)};let Dt=P,Et=I;A&&Dt==="input"&&(se?Et=O({type:void 0,minRows:se,maxRows:se},Et):Et=O({type:void 0,maxRows:M,minRows:L},Et),Dt=fL);const en=pt=>{yt(pt.animationName==="mui-auto-fill-cancel"?Ee.current:{value:"x"})};R.useEffect(()=>{it&&it.setAdornedStart(!!Se)},[it,Se]);const Kt=O({},i,{color:Qe.color||"primary",disabled:Qe.disabled,endAdornment:E,error:Qe.error,focused:Qe.focused,formControl:it,fullWidth:w,hiddenLabel:Qe.hiddenLabel,multiline:A,size:Qe.size,startAdornment:Se,type:H}),Lt=gL(Kt),an=ae.root||h.Root||Dg,Tn=U.root||g.root||{},fn=ae.input||h.Input||Ng;return Et=O({},Et,(r=U.input)!=null?r:g.input),S.jsxs(R.Fragment,{children:[!k&&vL,S.jsxs(an,O({},Tn,!Gc(an)&&{ownerState:O({},Kt,Tn.ownerState)},{ref:n,onClick:sn},Ke,{className:Pe(Lt.root,Tn.className,p,ce&&"MuiInputBase-readOnly"),children:[Se,S.jsx(kb.Provider,{value:null,children:S.jsx(fn,O({ownerState:Kt,"aria-invalid":Qe.error,"aria-describedby":a,autoComplete:u,autoFocus:f,defaultValue:b,disabled:Qe.disabled,id:T,onAnimationStart:en,name:z,placeholder:V,readOnly:ce,required:Qe.required,rows:se,value:Ie,onKeyDown:Q,onKeyUp:Z,type:H},Et,!Gc(fn)&&{as:Dt,ownerState:O({},Kt,Et.ownerState)},{ref:Ce,className:Pe(Lt.input,Et.className,ce&&"MuiInputBase-readOnly"),onBlur:Wt,onChange:bt,onFocus:at}))}),E,ue?ue(O({},Qe,{startAdornment:Se})):null]}))]})});function bL(e){return Ze("MuiInput",e)}const xl=O({},pi,rt("MuiInput",["root","underline","input"]));function yL(e){return Ze("MuiOutlinedInput",e)}const Fs=O({},pi,rt("MuiOutlinedInput",["root","notchedOutline","input"]));function xL(e){return Ze("MuiFilledInput",e)}const hi=O({},pi,rt("MuiFilledInput",["root","underline","input"])),TE=on(S.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function SL(e){return Ze("MuiAutocomplete",e)}const Zt=rt("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var OE,PE;const wL=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],_L=["ref"],CL=["key"],EL=["key"],RL=e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:a,hasClearIcon:u,hasPopupIcon:f,inputFocused:p,popupOpen:h,size:g}=e,b={root:["root",r&&"expanded",i&&"focused",a&&"fullWidth",u&&"hasClearIcon",f&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",p&&"inputFocused"],tag:["tag",`tagSize${ye(g)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",h&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return ot(b,SL,t)},kL=he("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:a,inputFocused:u,size:f}=n;return[{[`& .${Zt.tag}`]:t.tag},{[`& .${Zt.tag}`]:t[`tagSize${ye(f)}`]},{[`& .${Zt.inputRoot}`]:t.inputRoot},{[`& .${Zt.input}`]:t.input},{[`& .${Zt.input}`]:u&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${Zt.focused} .${Zt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Zt.clearIndicator}`]:{visibility:"visible"}},[`& .${Zt.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Zt.inputRoot}`]:{[`.${Zt.hasPopupIcon}&, .${Zt.hasClearIcon}&`]:{paddingRight:30},[`.${Zt.hasPopupIcon}.${Zt.hasClearIcon}&`]:{paddingRight:56},[`& .${Zt.input}`]:{width:0,minWidth:30}},[`& .${xl.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${xl.root}.${pi.sizeSmall}`]:{[`& .${xl.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Fs.root}`]:{padding:9,[`.${Zt.hasPopupIcon}&, .${Zt.hasClearIcon}&`]:{paddingRight:39},[`.${Zt.hasPopupIcon}.${Zt.hasClearIcon}&`]:{paddingRight:65},[`& .${Zt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Zt.endAdornment}`]:{right:9}},[`& .${Fs.root}.${pi.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Zt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${hi.root}`]:{paddingTop:19,paddingLeft:8,[`.${Zt.hasPopupIcon}&, .${Zt.hasClearIcon}&`]:{paddingRight:39},[`.${Zt.hasPopupIcon}.${Zt.hasClearIcon}&`]:{paddingRight:65},[`& .${hi.input}`]:{padding:"7px 4px"},[`& .${Zt.endAdornment}`]:{right:9}},[`& .${hi.root}.${pi.sizeSmall}`]:{paddingBottom:1,[`& .${hi.input}`]:{padding:"2.5px 4px"}},[`& .${pi.hiddenLabel}`]:{paddingTop:8},[`& .${hi.root}.${pi.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Zt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${hi.root}.${pi.hiddenLabel}.${pi.sizeSmall}`]:{[`& .${Zt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Zt.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Zt.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Zt.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Zt.inputRoot}`]:{flexWrap:"wrap"}}}]}),TL=he("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),OL=he(bo,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),PL=he(bo,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>O({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),IL=he(jp,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Zt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),AL=he(Mi,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>O({},e.typography.body1,{overflow:"auto"})),DL=he("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),NL=he("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),$L=he("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Zt.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Zt.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Zt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ht(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Zt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ht(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Zt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ht(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),ML=he(CE,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),LL=he("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Zt.option}`]:{paddingLeft:24}}),jL=R.forwardRef(function(t,n){var r,i,a,u;const f=st({props:t,name:"MuiAutocomplete"}),{autoComplete:p=!1,autoHighlight:h=!1,autoSelect:g=!1,blurOnSelect:b=!1,ChipProps:x,className:k,clearIcon:E=OE||(OE=S.jsx(YC,{fontSize:"small"})),clearOnBlur:w=!f.freeSolo,clearOnEscape:T=!1,clearText:P="Clear",closeText:I="Close",componentsProps:D={},defaultValue:M=f.multiple?[]:null,disableClearable:L=!1,disableCloseOnSelect:A=!1,disabled:z=!1,disabledItemsFocusable:G=!1,disableListWrap:q=!1,disablePortal:X=!1,filterSelectedOptions:ne=!1,forcePopupIcon:Q="auto",freeSolo:Z=!1,fullWidth:V=!1,getLimitTagsText:ce=Ae=>`+${Ae}`,getOptionLabel:ue,groupBy:se,handleHomeEndKeys:U=!f.freeSolo,includeInputInList:ae=!1,limitTags:Se=-1,ListboxComponent:H="ul",ListboxProps:be,loading:Ke=!1,loadingText:Ie="Loading…",multiple:$e=!1,noOptionsText:Ee="No options",openOnFocus:Ye=!1,openText:Ce="Open",PaperComponent:Fe=Mi,PopperComponent:mt=jp,popupIcon:it=PE||(PE=S.jsx(TE,{})),readOnly:Qe=!1,renderGroup:vt,renderInput:wt,renderOption:yt,renderTags:at,selectOnFocus:Wt=!f.freeSolo,size:bt="medium",slotProps:sn={}}=f,Dt=Oe(f,wL),{getRootProps:Et,getInputProps:en,getInputLabelProps:Kt,getPopupIndicatorProps:Lt,getClearProps:an,getTagProps:Tn,getListboxProps:fn,getOptionProps:pt,value:We,dirty:jt,expanded:hn,id:Mn,popupOpen:et,focused:Pt,focusedTag:Be,anchorEl:tt,setAnchorEl:At,inputValue:Ft,groupedOptions:Gt}=T$(O({},f,{componentName:"Autocomplete"})),pn=!L&&!z&&jt&&!Qe,cn=(!Z||Q===!0)&&Q!==!1,{onMouseDown:Dn}=en(),{ref:Ln}=be??{},$r=fn(),{ref:wo}=$r,vi=Oe($r,_L),zo=An(wo,Ln),wr=ue||(Ae=>{var Je;return(Je=Ae.label)!=null?Je:Ae}),jn=O({},f,{disablePortal:X,expanded:hn,focused:Pt,fullWidth:V,getOptionLabel:wr,hasClearIcon:pn,hasPopupIcon:cn,inputFocused:Be===-1,popupOpen:et,size:bt}),bn=RL(jn);let K;if($e&&We.length>0){const Ae=Je=>O({className:bn.tag,disabled:z},Tn(Je));at?K=at(We,Ae,jn):K=We.map((Je,He)=>{const St=Ae({index:He}),{key:ln}=St,Vr=Oe(St,CL);return S.jsx(lL,O({label:wr(Je),size:bt},Vr,x),ln)})}if(Se>-1&&Array.isArray(K)){const Ae=K.length-Se;!Pt&&Ae>0&&(K=K.splice(0,Se),K.push(S.jsx("span",{className:bn.tag,children:ce(Ae)},K.length)))}const ge=vt||(Ae=>S.jsxs("li",{children:[S.jsx(ML,{className:bn.groupLabel,ownerState:jn,component:"div",children:Ae.group}),S.jsx(LL,{className:bn.groupUl,ownerState:jn,children:Ae.children})]},Ae.key)),qe=yt||((Ae,Je)=>{const{key:He}=Ae,St=Oe(Ae,EL);return S.jsx("li",O({},St,{children:wr(Je)}),He)}),ft=(Ae,Je)=>{const He=pt({option:Ae,index:Je});return qe(O({},He,{className:bn.option}),Ae,{selected:He["aria-selected"],index:Je,inputValue:Ft},jn)},Ct=(r=sn.clearIndicator)!=null?r:D.clearIndicator,Ve=(i=sn.paper)!=null?i:D.paper,Tt=(a=sn.popper)!=null?a:D.popper,oe=(u=sn.popupIndicator)!=null?u:D.popupIndicator,re=Ae=>S.jsx(IL,O({as:mt,disablePortal:X,style:{width:tt?tt.clientWidth:null},ownerState:jn,role:"presentation",anchorEl:tt,open:et},Tt,{className:Pe(bn.popper,Tt==null?void 0:Tt.className),children:S.jsx(AL,O({ownerState:jn,as:Fe},Ve,{className:Pe(bn.paper,Ve==null?void 0:Ve.className),children:Ae}))}));let je=null;return Gt.length>0?je=re(S.jsx($L,O({as:H,className:bn.listbox,ownerState:jn},vi,be,{ref:zo,children:Gt.map((Ae,Je)=>se?ge({key:Ae.key,group:Ae.group,children:Ae.options.map((He,St)=>ft(He,Ae.index+St))}):ft(Ae,Je))}))):Ke&&Gt.length===0?je=re(S.jsx(DL,{className:bn.loading,ownerState:jn,children:Ie})):Gt.length===0&&!Z&&!Ke&&(je=re(S.jsx(NL,{className:bn.noOptions,ownerState:jn,role:"presentation",onMouseDown:Ae=>{Ae.preventDefault()},children:Ee}))),S.jsxs(R.Fragment,{children:[S.jsx(kL,O({ref:n,className:Pe(bn.root,k),ownerState:jn},Et(Dt),{children:wt({id:Mn,disabled:z,fullWidth:!0,size:bt==="small"?"small":void 0,InputLabelProps:Kt(),InputProps:O({ref:At,className:bn.inputRoot,startAdornment:K,onClick:Ae=>{Ae.target===Ae.currentTarget&&Dn(Ae)}},(pn||cn)&&{endAdornment:S.jsxs(TL,{className:bn.endAdornment,ownerState:jn,children:[pn?S.jsx(OL,O({},an(),{"aria-label":P,title:P,ownerState:jn},Ct,{className:Pe(bn.clearIndicator,Ct==null?void 0:Ct.className),children:E})):null,cn?S.jsx(PL,O({},Lt(),{disabled:z,"aria-label":et?I:Ce,title:et?I:Ce,ownerState:jn},oe,{className:Pe(bn.popupIndicator,oe==null?void 0:oe.className),children:it})):null]})}),inputProps:O({className:bn.input,disabled:z,readOnly:Qe},en())})})),tt?je:null]})}),FL=on(S.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function zL(e){return Ze("MuiAvatar",e)}rt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const BL=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],UL=e=>{const{classes:t,variant:n,colorDefault:r}=e;return ot({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},zL,t)},HL=he("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:O({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:O({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),WL=he("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),GL=he(FL,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function KL({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,a]=R.useState(!1);return R.useEffect(()=>{if(!n&&!r)return;a(!1);let u=!0;const f=new Image;return f.onload=()=>{u&&a("loaded")},f.onerror=()=>{u&&a("error")},f.crossOrigin=e,f.referrerPolicy=t,f.src=n,r&&(f.srcset=r),()=>{u=!1}},[e,t,n,r]),i}const VL=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiAvatar"}),{alt:i,children:a,className:u,component:f="div",slots:p={},slotProps:h={},imgProps:g,sizes:b,src:x,srcSet:k,variant:E="circular"}=r,w=Oe(r,BL);let T=null;const P=KL(O({},g,{src:x,srcSet:k})),I=x||k,D=I&&P!=="error",M=O({},r,{colorDefault:!D,component:f,variant:E}),L=UL(M),[A,z]=hb("img",{className:L.img,elementType:WL,externalForwardedProps:{slots:p,slotProps:{img:O({},g,h.img)}},additionalProps:{alt:i,src:x,srcSet:k,sizes:b},ownerState:M});return D?T=S.jsx(A,O({},z)):a||a===0?T=a:I&&i?T=i[0]:T=S.jsx(GL,{ownerState:M,className:L.fallback}),S.jsx(HL,O({as:f,ownerState:M,className:Pe(L.root,u),ref:n},w,{children:T}))}),XL=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],qL={entering:{opacity:1},entered:{opacity:1}},IE=R.forwardRef(function(t,n){const r=Lo(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:u=!0,children:f,easing:p,in:h,onEnter:g,onEntered:b,onEntering:x,onExit:k,onExited:E,onExiting:w,style:T,timeout:P=i,TransitionComponent:I=ci}=t,D=Oe(t,XL),M=R.useRef(null),L=An(M,f.ref,n),A=V=>ce=>{if(V){const ue=M.current;ce===void 0?V(ue):V(ue,ce)}},z=A(x),G=A((V,ce)=>{Sg(V);const ue=Ms({style:T,timeout:P,easing:p},{mode:"enter"});V.style.webkitTransition=r.transitions.create("opacity",ue),V.style.transition=r.transitions.create("opacity",ue),g&&g(V,ce)}),q=A(b),X=A(w),ne=A(V=>{const ce=Ms({style:T,timeout:P,easing:p},{mode:"exit"});V.style.webkitTransition=r.transitions.create("opacity",ce),V.style.transition=r.transitions.create("opacity",ce),k&&k(V)}),Q=A(E),Z=V=>{a&&a(M.current,V)};return S.jsx(I,O({appear:u,in:h,nodeRef:M,onEnter:G,onEntered:q,onEntering:z,onExit:ne,onExited:Q,onExiting:X,addEndListener:Z,timeout:P},D,{children:(V,ce)=>R.cloneElement(f,O({style:O({opacity:0,visibility:V==="exited"&&!h?"hidden":void 0},qL[V],T,f.props.style),ref:L},ce))}))});function YL(e){return Ze("MuiBackdrop",e)}rt("MuiBackdrop",["root","invisible"]);const QL=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],JL=e=>{const{classes:t,invisible:n}=e;return ot({root:["root",n&&"invisible"]},YL,t)},ZL=he("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>O({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),AE=R.forwardRef(function(t,n){var r,i,a;const u=st({props:t,name:"MuiBackdrop"}),{children:f,className:p,component:h="div",components:g={},componentsProps:b={},invisible:x=!1,open:k,slotProps:E={},slots:w={},TransitionComponent:T=IE,transitionDuration:P}=u,I=Oe(u,QL),D=O({},u,{component:h,invisible:x}),M=JL(D),L=(r=E.root)!=null?r:b.root;return S.jsx(T,O({in:k,timeout:P},I,{children:S.jsx(ZL,O({"aria-hidden":!0},L,{as:(i=(a=w.root)!=null?a:g.Root)!=null?i:h,className:Pe(M.root,p,L==null?void 0:L.className),ownerState:O({},D,L==null?void 0:L.ownerState),classes:M,ref:n,children:f}))}))});function ej(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,a=Q1({badgeContent:t,max:r});let u=n;n===!1&&t===0&&!i&&(u=!0);const{badgeContent:f,max:p=r}=u?a:e,h=f&&Number(f)>p?`${p}+`:f;return{badgeContent:f,invisible:u,max:p,displayValue:h}}function tj(e){return Ze("MuiBadge",e)}const Sl=rt("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),nj=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Ob=10,Pb=4,rj=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:a,classes:u={}}=e,f={root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${ye(n.vertical)}${ye(n.horizontal)}`,`anchorOrigin${ye(n.vertical)}${ye(n.horizontal)}${ye(i)}`,`overlap${ye(i)}`,t!=="default"&&`color${ye(t)}`]};return ot(f,tj,u)},oj=he("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),ij=he("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${ye(n.anchorOrigin.vertical)}${ye(n.anchorOrigin.horizontal)}${ye(n.overlap)}`],n.color!=="default"&&t[`color${ye(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Ob*2,lineHeight:1,padding:"0 6px",height:Ob*2,borderRadius:Ob,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,i;return((r=e.vars)!=null?r:e).palette[n].main&&((i=e.vars)!=null?i:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Pb,height:Pb*2,minWidth:Pb*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Sl.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Sl.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Sl.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Sl.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Sl.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Sl.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Sl.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Sl.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),Ib=R.forwardRef(function(t,n){var r,i,a,u,f,p;const h=st({props:t,name:"MuiBadge"}),{anchorOrigin:g={vertical:"top",horizontal:"right"},className:b,component:x,components:k={},componentsProps:E={},children:w,overlap:T="rectangular",color:P="default",invisible:I=!1,max:D=99,badgeContent:M,slots:L,slotProps:A,showZero:z=!1,variant:G="standard"}=h,q=Oe(h,nj),{badgeContent:X,invisible:ne,max:Q,displayValue:Z}=ej({max:D,invisible:I,badgeContent:M,showZero:z}),V=Q1({anchorOrigin:g,color:P,overlap:T,variant:G,badgeContent:M}),ce=ne||X==null&&G!=="dot",{color:ue=P,overlap:se=T,anchorOrigin:U=g,variant:ae=G}=ce?V:h,Se=ae!=="dot"?Z:void 0,H=O({},h,{badgeContent:X,invisible:ce,max:Q,displayValue:Se,showZero:z,anchorOrigin:U,color:ue,overlap:se,variant:ae}),be=rj(H),Ke=(r=(i=L==null?void 0:L.root)!=null?i:k.Root)!=null?r:oj,Ie=(a=(u=L==null?void 0:L.badge)!=null?u:k.Badge)!=null?a:ij,$e=(f=A==null?void 0:A.root)!=null?f:E.root,Ee=(p=A==null?void 0:A.badge)!=null?p:E.badge,Ye=vo({elementType:Ke,externalSlotProps:$e,externalForwardedProps:q,additionalProps:{ref:n,as:x},ownerState:H,className:Pe($e==null?void 0:$e.className,be.root,b)}),Ce=vo({elementType:Ie,externalSlotProps:Ee,ownerState:H,className:Pe(be.badge,Ee==null?void 0:Ee.className)});return S.jsxs(Ke,O({},Ye,{children:[w,S.jsx(Ie,O({},Ce,{children:Se}))]}))}),sj=rt("MuiBox",["root"]),aj=ob(),fs=LA({themeId:Dc,defaultTheme:aj,defaultClassName:sj.root,generateClassName:V_.generate}),lj=on(S.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),uj=["slots","slotProps"],cj=he(di)(({theme:e})=>O({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":O({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":O({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:mg(e.palette.grey[200],.12)}:{backgroundColor:mg(e.palette.grey[600],.12)})})),dj=he(lj)({width:24,height:16});function fj(e){const{slots:t={},slotProps:n={}}=e,r=Oe(e,uj),i=e;return S.jsx("li",{children:S.jsx(cj,O({focusRipple:!0},r,{ownerState:i,children:S.jsx(dj,O({as:t.CollapsedIcon,ownerState:i},n.collapsedIcon))}))})}function pj(e){return Ze("MuiBreadcrumbs",e)}const hj=rt("MuiBreadcrumbs",["root","ol","li","separator"]),mj=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],gj=e=>{const{classes:t}=e;return ot({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},pj,t)},vj=he(ar,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${hj.li}`]:t.li},t.root]})({}),bj=he("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),yj=he("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function xj(e,t,n,r){return e.reduce((i,a,u)=>(u<e.length-1?i=i.concat(a,S.jsx(yj,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${u}`)):i.push(a),i),[])}const Sj=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiBreadcrumbs"}),{children:i,className:a,component:u="nav",slots:f={},slotProps:p={},expandText:h="Show path",itemsAfterCollapse:g=1,itemsBeforeCollapse:b=1,maxItems:x=8,separator:k="/"}=r,E=Oe(r,mj),[w,T]=R.useState(!1),P=O({},r,{component:u,expanded:w,expandText:h,itemsAfterCollapse:g,itemsBeforeCollapse:b,maxItems:x,separator:k}),I=gj(P),D=vo({elementType:f.CollapsedIcon,externalSlotProps:p.collapsedIcon,ownerState:P}),M=R.useRef(null),L=z=>{const G=()=>{T(!0);const q=M.current.querySelector("a[href],button,[tabindex]");q&&q.focus()};return b+g>=z.length?z:[...z.slice(0,b),S.jsx(fj,{"aria-label":h,slots:{CollapsedIcon:f.CollapsedIcon},slotProps:{collapsedIcon:D},onClick:G},"ellipsis"),...z.slice(z.length-g,z.length)]},A=R.Children.toArray(i).filter(z=>R.isValidElement(z)).map((z,G)=>S.jsx("li",{className:I.li,children:z},`child-${G}`));return S.jsx(vj,O({ref:n,component:u,color:"text.secondary",className:Pe(I.root,a),ownerState:P},E,{children:S.jsx(bj,{className:I.ol,ref:M,ownerState:P,children:xj(w||x&&A.length<=x?A:L(A),I.separator,k,P)})}))});function wj(e){return Ze("MuiButton",e)}const $g=rt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),DE=R.createContext({}),NE=R.createContext(void 0),_j=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Cj=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:u}=e,f={root:["root",a,`${a}${ye(t)}`,`size${ye(i)}`,`${a}Size${ye(i)}`,`color${ye(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ye(i)}`],endIcon:["icon","endIcon",`iconSize${ye(i)}`]},p=ot(f,wj,u);return O({},u,p)},$E=e=>O({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Ej=he(di,{shouldForwardProp:e=>Sr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ye(n.color)}`],t[`size${ye(n.size)}`],t[`${n.variant}Size${ye(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return O({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":O({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ht(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ht(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ht(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":O({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${$g.focusVisible}`]:O({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${$g.disabled}`]:O({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Ht(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${$g.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${$g.disabled}`]:{boxShadow:"none"}}),Rj=he("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ye(n.size)}`]]}})(({ownerState:e})=>O({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},$E(e))),kj=he("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ye(n.size)}`]]}})(({ownerState:e})=>O({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},$E(e))),mi=R.forwardRef(function(t,n){const r=R.useContext(DE),i=R.useContext(NE),a=yp(r,t),u=st({props:a,name:"MuiButton"}),{children:f,color:p="primary",component:h="button",className:g,disabled:b=!1,disableElevation:x=!1,disableFocusRipple:k=!1,endIcon:E,focusVisibleClassName:w,fullWidth:T=!1,size:P="medium",startIcon:I,type:D,variant:M="text"}=u,L=Oe(u,_j),A=O({},u,{color:p,component:h,disabled:b,disableElevation:x,disableFocusRipple:k,fullWidth:T,size:P,type:D,variant:M}),z=Cj(A),G=I&&S.jsx(Rj,{className:z.startIcon,ownerState:A,children:I}),q=E&&S.jsx(kj,{className:z.endIcon,ownerState:A,children:E}),X=i||"";return S.jsxs(Ej,O({ownerState:A,className:Pe(r.className,z.root,g,X),component:h,disabled:b,focusRipple:!k,focusVisibleClassName:Pe(z.focusVisible,w),ref:n,type:D},L,{classes:z,children:[G,f,q]}))});function Tj(e){return Ze("MuiButtonGroup",e)}const Kr=rt("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),Oj=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],Pj=(e,t)=>{const{ownerState:n}=e;return[{[`& .${Kr.grouped}`]:t.grouped},{[`& .${Kr.grouped}`]:t[`grouped${ye(n.orientation)}`]},{[`& .${Kr.grouped}`]:t[`grouped${ye(n.variant)}`]},{[`& .${Kr.grouped}`]:t[`grouped${ye(n.variant)}${ye(n.orientation)}`]},{[`& .${Kr.grouped}`]:t[`grouped${ye(n.variant)}${ye(n.color)}`]},{[`& .${Kr.firstButton}`]:t.firstButton},{[`& .${Kr.lastButton}`]:t.lastButton},{[`& .${Kr.middleButton}`]:t.middleButton},t.root,t[n.variant],n.disableElevation===!0&&t.disableElevation,n.fullWidth&&t.fullWidth,n.orientation==="vertical"&&t.vertical]},Ij=e=>{const{classes:t,color:n,disabled:r,disableElevation:i,fullWidth:a,orientation:u,variant:f}=e,p={root:["root",f,u==="vertical"&&"vertical",a&&"fullWidth",i&&"disableElevation"],grouped:["grouped",`grouped${ye(u)}`,`grouped${ye(f)}`,`grouped${ye(f)}${ye(u)}`,`grouped${ye(f)}${ye(n)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return ot(p,Tj,t)},Aj=he("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:Pj})(({theme:e,ownerState:t})=>O({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[2]},t.disableElevation&&{boxShadow:"none"},t.fullWidth&&{width:"100%"},t.orientation==="vertical"&&{flexDirection:"column"},{[`& .${Kr.grouped}`]:O({minWidth:40,"&:hover":O({},t.variant==="contained"&&{boxShadow:"none"})},t.variant==="contained"&&{boxShadow:"none"}),[`& .${Kr.firstButton},& .${Kr.middleButton}`]:O({},t.orientation==="horizontal"&&{borderTopRightRadius:0,borderBottomRightRadius:0},t.orientation==="vertical"&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},t.variant==="text"&&t.orientation==="horizontal"&&{borderRight:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Kr.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="text"&&t.orientation==="vertical"&&{borderBottom:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Kr.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="text"&&t.color!=="inherit"&&{borderColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:Ht(e.palette[t.color].main,.5)},t.variant==="outlined"&&t.orientation==="horizontal"&&{borderRightColor:"transparent"},t.variant==="outlined"&&t.orientation==="vertical"&&{borderBottomColor:"transparent"},t.variant==="contained"&&t.orientation==="horizontal"&&{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Kr.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="contained"&&t.orientation==="vertical"&&{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Kr.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="contained"&&t.color!=="inherit"&&{borderColor:(e.vars||e).palette[t.color].dark},{"&:hover":O({},t.variant==="outlined"&&t.orientation==="horizontal"&&{borderRightColor:"currentColor"},t.variant==="outlined"&&t.orientation==="vertical"&&{borderBottomColor:"currentColor"})}),[`& .${Kr.lastButton},& .${Kr.middleButton}`]:O({},t.orientation==="horizontal"&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t.orientation==="vertical"&&{borderTopRightRadius:0,borderTopLeftRadius:0},t.variant==="outlined"&&t.orientation==="horizontal"&&{marginLeft:-1},t.variant==="outlined"&&t.orientation==="vertical"&&{marginTop:-1})})),Dj=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiButtonGroup"}),{children:i,className:a,color:u="primary",component:f="div",disabled:p=!1,disableElevation:h=!1,disableFocusRipple:g=!1,disableRipple:b=!1,fullWidth:x=!1,orientation:k="horizontal",size:E="medium",variant:w="outlined"}=r,T=Oe(r,Oj),P=O({},r,{color:u,component:f,disabled:p,disableElevation:h,disableFocusRipple:g,disableRipple:b,fullWidth:x,orientation:k,size:E,variant:w}),I=Ij(P),D=R.useMemo(()=>({className:I.grouped,color:u,disabled:p,disableElevation:h,disableFocusRipple:g,disableRipple:b,fullWidth:x,size:E,variant:w}),[u,p,h,g,b,x,E,w,I.grouped]),M=y5(i),L=M.length,A=z=>{const G=z===0,q=z===L-1;return G&&q?"":G?I.firstButton:q?I.lastButton:I.middleButton};return S.jsx(Aj,O({as:f,role:"group",className:Pe(I.root,a),ref:n,ownerState:P},T,{children:S.jsx(DE.Provider,{value:D,children:M.map((z,G)=>S.jsx(NE.Provider,{value:A(G),children:z},G))})}))});function Nj(e){return Ze("PrivateSwitchBase",e)}rt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const $j=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Mj=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,a={root:["root",n&&"checked",r&&"disabled",i&&`edge${ye(i)}`],input:["input"]};return ot(a,Nj,t)},Lj=he(di)(({ownerState:e})=>O({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),jj=he("input",{shouldForwardProp:Sr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Ab=R.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:a,className:u,defaultChecked:f,disabled:p,disableFocusRipple:h=!1,edge:g=!1,icon:b,id:x,inputProps:k,inputRef:E,name:w,onBlur:T,onChange:P,onFocus:I,readOnly:D,required:M=!1,tabIndex:L,type:A,value:z}=t,G=Oe(t,$j),[q,X]=_a({controlled:i,default:!!f,name:"SwitchBase",state:"checked"}),ne=ka(),Q=ae=>{I&&I(ae),ne&&ne.onFocus&&ne.onFocus(ae)},Z=ae=>{T&&T(ae),ne&&ne.onBlur&&ne.onBlur(ae)},V=ae=>{if(ae.nativeEvent.defaultPrevented)return;const Se=ae.target.checked;X(Se),P&&P(ae,Se)};let ce=p;ne&&typeof ce>"u"&&(ce=ne.disabled);const ue=A==="checkbox"||A==="radio",se=O({},t,{checked:q,disabled:ce,disableFocusRipple:h,edge:g}),U=Mj(se);return S.jsxs(Lj,O({component:"span",className:Pe(U.root,u),centerRipple:!0,focusRipple:!h,disabled:ce,tabIndex:null,role:void 0,onFocus:Q,onBlur:Z,ownerState:se,ref:n},G,{children:[S.jsx(jj,O({autoFocus:r,checked:i,defaultChecked:f,className:U.input,disabled:ce,id:ue?x:void 0,name:w,onChange:V,readOnly:D,ref:E,required:M,ownerState:se,tabIndex:L,type:A},A==="checkbox"&&z===void 0?{}:{value:z},k)),q?a:b]}))}),Fj=on(S.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),zj=on(S.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Bj=on(S.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Uj(e){return Ze("MuiCheckbox",e)}const Db=rt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Hj=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Wj=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,a={root:["root",n&&"indeterminate",`color${ye(r)}`,`size${ye(i)}`]},u=ot(a,Uj,t);return O({},t,u)},Gj=he(Ab,{shouldForwardProp:e=>Sr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ye(n.size)}`],n.color!=="default"&&t[`color${ye(n.color)}`]]}})(({theme:e,ownerState:t})=>O({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ht(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Db.checked}, &.${Db.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Db.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Kj=S.jsx(zj,{}),Vj=S.jsx(Fj,{}),Xj=S.jsx(Bj,{}),Nb=R.forwardRef(function(t,n){var r,i;const a=st({props:t,name:"MuiCheckbox"}),{checkedIcon:u=Kj,color:f="primary",icon:p=Vj,indeterminate:h=!1,indeterminateIcon:g=Xj,inputProps:b,size:x="medium",className:k}=a,E=Oe(a,Hj),w=h?g:p,T=h?g:u,P=O({},a,{color:f,indeterminate:h,size:x}),I=Wj(P);return S.jsx(Gj,O({type:"checkbox",inputProps:O({"data-indeterminate":h},b),icon:R.cloneElement(w,{fontSize:(r=w.props.fontSize)!=null?r:x}),checkedIcon:R.cloneElement(T,{fontSize:(i=T.props.fontSize)!=null?i:x}),ownerState:P,ref:n,className:Pe(I.root,k)},E,{classes:I}))});function qj(e){return Ze("MuiCircularProgress",e)}rt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Yj=["className","color","disableShrink","size","style","thickness","value","variant"];let Mg=e=>e,ME,LE,jE,FE;const wl=44,Qj=vl(ME||(ME=Mg`
119
+ 0% {
120
+ transform: rotate(0deg);
121
+ }
122
+
123
+ 100% {
124
+ transform: rotate(360deg);
125
+ }
126
+ `)),Jj=vl(LE||(LE=Mg`
127
+ 0% {
128
+ stroke-dasharray: 1px, 200px;
129
+ stroke-dashoffset: 0;
130
+ }
131
+
132
+ 50% {
133
+ stroke-dasharray: 100px, 200px;
134
+ stroke-dashoffset: -15px;
135
+ }
136
+
137
+ 100% {
138
+ stroke-dasharray: 100px, 200px;
139
+ stroke-dashoffset: -125px;
140
+ }
141
+ `)),Zj=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,a={root:["root",n,`color${ye(r)}`],svg:["svg"],circle:["circle",`circle${ye(n)}`,i&&"circleDisableShrink"]};return ot(a,qj,t)},e4=he("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ye(n.color)}`]]}})(({ownerState:e,theme:t})=>O({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Lc(jE||(jE=Mg`
142
+ animation: ${0} 1.4s linear infinite;
143
+ `),Qj)),t4=he("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),n4=he("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ye(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>O({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Lc(FE||(FE=Mg`
144
+ animation: ${0} 1.4s ease-in-out infinite;
145
+ `),Jj)),r4=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiCircularProgress"}),{className:i,color:a="primary",disableShrink:u=!1,size:f=40,style:p,thickness:h=3.6,value:g=0,variant:b="indeterminate"}=r,x=Oe(r,Yj),k=O({},r,{color:a,disableShrink:u,size:f,thickness:h,value:g,variant:b}),E=Zj(k),w={},T={},P={};if(b==="determinate"){const I=2*Math.PI*((wl-h)/2);w.strokeDasharray=I.toFixed(3),P["aria-valuenow"]=Math.round(g),w.strokeDashoffset=`${((100-g)/100*I).toFixed(3)}px`,T.transform="rotate(-90deg)"}return S.jsx(e4,O({className:Pe(E.root,i),style:O({width:f,height:f},T,p),ownerState:k,ref:n,role:"progressbar"},P,x,{children:S.jsx(t4,{className:E.svg,ownerState:k,viewBox:`${wl/2} ${wl/2} ${wl} ${wl}`,children:S.jsx(n4,{className:E.circle,style:w,ownerState:k,cx:wl,cy:wl,r:(wl-h)/2,fill:"none",strokeWidth:h})})}))});function zE(e){return e.substring(2).toLowerCase()}function o4(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function BE(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:a="onTouchEnd"}=e,u=R.useRef(!1),f=R.useRef(null),p=R.useRef(!1),h=R.useRef(!1);R.useEffect(()=>(setTimeout(()=>{p.current=!0},0),()=>{p.current=!1}),[]);const g=An(t.ref,f),b=Nr(E=>{const w=h.current;h.current=!1;const T=kr(f.current);if(!p.current||!f.current||"clientX"in E&&o4(E,T))return;if(u.current){u.current=!1;return}let P;E.composedPath?P=E.composedPath().indexOf(f.current)>-1:P=!T.documentElement.contains(E.target)||f.current.contains(E.target),!P&&(n||!w)&&i(E)}),x=E=>w=>{h.current=!0;const T=t.props[E];T&&T(w)},k={ref:g};return a!==!1&&(k[a]=x(a)),R.useEffect(()=>{if(a!==!1){const E=zE(a),w=kr(f.current),T=()=>{u.current=!0};return w.addEventListener(E,b),w.addEventListener("touchmove",T),()=>{w.removeEventListener(E,b),w.removeEventListener("touchmove",T)}}},[b,a]),r!==!1&&(k[r]=x(r)),R.useEffect(()=>{if(r!==!1){const E=zE(r),w=kr(f.current);return w.addEventListener(E,b),()=>{w.removeEventListener(E,b)}}},[b,r]),S.jsx(R.Fragment,{children:R.cloneElement(t,k)})}const i4=(e,t)=>O({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),s4=e=>O({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),a4=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([u,f])=>{var p;r[e.getColorSchemeSelector(u).replace(/\s*&/,"")]={colorScheme:(p=f.palette)==null?void 0:p.mode}});let i=O({html:i4(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:O({margin:0},s4(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const a=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return a&&(i=[i,a]),i};function l4(e){const t=st({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return S.jsxs(R.Fragment,{children:[S.jsx(RE,{styles:i=>a4(i,r)}),n]})}function u4(e){const t=kr(e);return t.body===e?ds(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Fp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function UE(e){return parseInt(ds(e).getComputedStyle(e).paddingRight,10)||0}function c4(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function HE(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,u=>{const f=a.indexOf(u)===-1,p=!c4(u);f&&p&&Fp(u,i)})}function $b(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function d4(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(u4(r)){const u=cC(kr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${UE(r)+u}px`;const f=kr(r).querySelectorAll(".mui-fixed");[].forEach.call(f,p=>{n.push({value:p.style.paddingRight,property:"padding-right",el:p}),p.style.paddingRight=`${UE(p)+u}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=kr(r).body;else{const u=r.parentElement,f=ds(r);a=(u==null?void 0:u.nodeName)==="HTML"&&f.getComputedStyle(u).overflowY==="scroll"?u:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:u,property:f})=>{a?u.style.setProperty(f,a):u.style.removeProperty(f)})}}function f4(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class p4{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Fp(t.modalRef,!1);const i=f4(n);HE(n,t.mount,t.modalRef,i,!0);const a=$b(this.containers,u=>u.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=$b(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=d4(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=$b(this.containers,u=>u.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Fp(t.modalRef,n),HE(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const u=a.modals[a.modals.length-1];u.modalRef&&Fp(u.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const h4=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function m4(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function g4(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function v4(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||g4(e))}function b4(e){const t=[],n=[];return Array.from(e.querySelectorAll(h4)).forEach((r,i)=>{const a=m4(r);a===-1||!v4(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function y4(){return!0}function x4(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=b4,isEnabled:u=y4,open:f}=e,p=R.useRef(!1),h=R.useRef(null),g=R.useRef(null),b=R.useRef(null),x=R.useRef(null),k=R.useRef(!1),E=R.useRef(null),w=An(t.ref,E),T=R.useRef(null);R.useEffect(()=>{!f||!E.current||(k.current=!n)},[n,f]),R.useEffect(()=>{if(!f||!E.current)return;const D=kr(E.current);return E.current.contains(D.activeElement)||(E.current.hasAttribute("tabIndex")||E.current.setAttribute("tabIndex","-1"),k.current&&E.current.focus()),()=>{i||(b.current&&b.current.focus&&(p.current=!0,b.current.focus()),b.current=null)}},[f]),R.useEffect(()=>{if(!f||!E.current)return;const D=kr(E.current),M=z=>{T.current=z,!(r||!u()||z.key!=="Tab")&&D.activeElement===E.current&&z.shiftKey&&(p.current=!0,g.current&&g.current.focus())},L=()=>{const z=E.current;if(z===null)return;if(!D.hasFocus()||!u()||p.current){p.current=!1;return}if(z.contains(D.activeElement)||r&&D.activeElement!==h.current&&D.activeElement!==g.current)return;if(D.activeElement!==x.current)x.current=null;else if(x.current!==null)return;if(!k.current)return;let G=[];if((D.activeElement===h.current||D.activeElement===g.current)&&(G=a(E.current)),G.length>0){var q,X;const ne=!!((q=T.current)!=null&&q.shiftKey&&((X=T.current)==null?void 0:X.key)==="Tab"),Q=G[0],Z=G[G.length-1];typeof Q!="string"&&typeof Z!="string"&&(ne?Z.focus():Q.focus())}else z.focus()};D.addEventListener("focusin",L),D.addEventListener("keydown",M,!0);const A=setInterval(()=>{D.activeElement&&D.activeElement.tagName==="BODY"&&L()},50);return()=>{clearInterval(A),D.removeEventListener("focusin",L),D.removeEventListener("keydown",M,!0)}},[n,r,i,u,f,a]);const P=D=>{b.current===null&&(b.current=D.relatedTarget),k.current=!0,x.current=D.target;const M=t.props.onFocus;M&&M(D)},I=D=>{b.current===null&&(b.current=D.relatedTarget),k.current=!0};return S.jsxs(R.Fragment,{children:[S.jsx("div",{tabIndex:f?0:-1,onFocus:I,ref:h,"data-testid":"sentinelStart"}),R.cloneElement(t,{ref:w,onFocus:P}),S.jsx("div",{tabIndex:f?0:-1,onFocus:I,ref:g,"data-testid":"sentinelEnd"})]})}function S4(e){return typeof e=="function"?e():e}function w4(e){return e?e.props.hasOwnProperty("in"):!1}const _4=new p4;function C4(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=_4,closeAfterTransition:a=!1,onTransitionEnter:u,onTransitionExited:f,children:p,onClose:h,open:g,rootRef:b}=e,x=R.useRef({}),k=R.useRef(null),E=R.useRef(null),w=An(E,b),[T,P]=R.useState(!g),I=w4(p);let D=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(D=!1);const M=()=>kr(k.current),L=()=>(x.current.modalRef=E.current,x.current.mount=k.current,x.current),A=()=>{i.mount(L(),{disableScrollLock:r}),E.current&&(E.current.scrollTop=0)},z=Nr(()=>{const ue=S4(t)||M().body;i.add(L(),ue),E.current&&A()}),G=R.useCallback(()=>i.isTopModal(L()),[i]),q=Nr(ue=>{k.current=ue,ue&&(g&&G()?A():E.current&&Fp(E.current,D))}),X=R.useCallback(()=>{i.remove(L(),D)},[D,i]);R.useEffect(()=>()=>{X()},[X]),R.useEffect(()=>{g?z():(!I||!a)&&X()},[g,X,I,a,z]);const ne=ue=>se=>{var U;(U=ue.onKeyDown)==null||U.call(ue,se),!(se.key!=="Escape"||se.which===229||!G())&&(n||(se.stopPropagation(),h&&h(se,"escapeKeyDown")))},Q=ue=>se=>{var U;(U=ue.onClick)==null||U.call(ue,se),se.target===se.currentTarget&&h&&h(se,"backdropClick")};return{getRootProps:(ue={})=>{const se=hg(e);delete se.onTransitionEnter,delete se.onTransitionExited;const U=O({},se,ue);return O({role:"presentation"},U,{onKeyDown:ne(U),ref:w})},getBackdropProps:(ue={})=>{const se=ue;return O({"aria-hidden":!0},se,{onClick:Q(se),open:g})},getTransitionProps:()=>{const ue=()=>{P(!1),u&&u()},se=()=>{P(!0),f&&f(),a&&X()};return{onEnter:V1(ue,p==null?void 0:p.props.onEnter),onExited:V1(se,p==null?void 0:p.props.onExited)}},rootRef:w,portalRef:q,isTopModal:G,exited:T,hasTransition:I}}function E4(e){return Ze("MuiModal",e)}rt("MuiModal",["root","hidden","backdrop"]);const R4=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],k4=e=>{const{open:t,exited:n,classes:r}=e;return ot({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},E4,r)},T4=he("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>O({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),O4=he(AE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Mb=R.forwardRef(function(t,n){var r,i,a,u,f,p;const h=st({name:"MuiModal",props:t}),{BackdropComponent:g=O4,BackdropProps:b,className:x,closeAfterTransition:k=!1,children:E,container:w,component:T,components:P={},componentsProps:I={},disableAutoFocus:D=!1,disableEnforceFocus:M=!1,disableEscapeKeyDown:L=!1,disablePortal:A=!1,disableRestoreFocus:z=!1,disableScrollLock:G=!1,hideBackdrop:q=!1,keepMounted:X=!1,onBackdropClick:ne,open:Q,slotProps:Z,slots:V}=h,ce=Oe(h,R4),ue=O({},h,{closeAfterTransition:k,disableAutoFocus:D,disableEnforceFocus:M,disableEscapeKeyDown:L,disablePortal:A,disableRestoreFocus:z,disableScrollLock:G,hideBackdrop:q,keepMounted:X}),{getRootProps:se,getBackdropProps:U,getTransitionProps:ae,portalRef:Se,isTopModal:H,exited:be,hasTransition:Ke}=C4(O({},ue,{rootRef:n})),Ie=O({},ue,{exited:be}),$e=k4(Ie),Ee={};if(E.props.tabIndex===void 0&&(Ee.tabIndex="-1"),Ke){const{onEnter:vt,onExited:wt}=ae();Ee.onEnter=vt,Ee.onExited=wt}const Ye=(r=(i=V==null?void 0:V.root)!=null?i:P.Root)!=null?r:T4,Ce=(a=(u=V==null?void 0:V.backdrop)!=null?u:P.Backdrop)!=null?a:g,Fe=(f=Z==null?void 0:Z.root)!=null?f:I.root,mt=(p=Z==null?void 0:Z.backdrop)!=null?p:I.backdrop,it=vo({elementType:Ye,externalSlotProps:Fe,externalForwardedProps:ce,getSlotProps:se,additionalProps:{ref:n,as:T},ownerState:Ie,className:Pe(x,Fe==null?void 0:Fe.className,$e==null?void 0:$e.root,!Ie.open&&Ie.exited&&($e==null?void 0:$e.hidden))}),Qe=vo({elementType:Ce,externalSlotProps:mt,additionalProps:b,getSlotProps:vt=>U(O({},vt,{onClick:wt=>{ne&&ne(wt),vt!=null&&vt.onClick&&vt.onClick(wt)}})),className:Pe(mt==null?void 0:mt.className,b==null?void 0:b.className,$e==null?void 0:$e.backdrop),ownerState:Ie});return!X&&!Q&&(!Ke||be)?null:S.jsx(_E,{ref:Se,container:w,disablePortal:A,children:S.jsxs(Ye,O({},it,{children:[!q&&g?S.jsx(Ce,O({},Qe)):null,S.jsx(x4,{disableEnforceFocus:M,disableAutoFocus:D,disableRestoreFocus:z,isEnabled:H,open:Q,children:R.cloneElement(E,Ee)})]}))})});function P4(e){return Ze("MuiDialog",e)}const Lb=rt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),WE=R.createContext({}),I4=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],A4=he(AE,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),D4=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e,u={root:["root"],container:["container",`scroll${ye(n)}`],paper:["paper",`paperScroll${ye(n)}`,`paperWidth${ye(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return ot(u,P4,t)},N4=he(Mb,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),$4=he("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ye(n.scroll)}`]]}})(({ownerState:e})=>O({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),M4=he(Mi,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ye(n.scroll)}`],t[`paperWidth${ye(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>O({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Lb.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Lb.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Lb.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),jb=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiDialog"}),i=Lo(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":u,"aria-labelledby":f,BackdropComponent:p,BackdropProps:h,children:g,className:b,disableEscapeKeyDown:x=!1,fullScreen:k=!1,fullWidth:E=!1,maxWidth:w="sm",onBackdropClick:T,onClick:P,onClose:I,open:D,PaperComponent:M=Mi,PaperProps:L={},scroll:A="paper",TransitionComponent:z=IE,transitionDuration:G=a,TransitionProps:q}=r,X=Oe(r,I4),ne=O({},r,{disableEscapeKeyDown:x,fullScreen:k,fullWidth:E,maxWidth:w,scroll:A}),Q=D4(ne),Z=R.useRef(),V=U=>{Z.current=U.target===U.currentTarget},ce=U=>{P&&P(U),Z.current&&(Z.current=null,T&&T(U),I&&I(U,"backdropClick"))},ue=Hc(f),se=R.useMemo(()=>({titleId:ue}),[ue]);return S.jsx(N4,O({className:Pe(Q.root,b),closeAfterTransition:!0,components:{Backdrop:A4},componentsProps:{backdrop:O({transitionDuration:G,as:p},h)},disableEscapeKeyDown:x,onClose:I,open:D,ref:n,onClick:ce,ownerState:ne},X,{children:S.jsx(z,O({appear:!0,in:D,timeout:G,role:"presentation"},q,{children:S.jsx($4,{className:Pe(Q.container),onMouseDown:V,ownerState:ne,children:S.jsx(M4,O({as:M,elevation:24,role:"dialog","aria-describedby":u,"aria-labelledby":ue},L,{className:Pe(Q.paper,L.className),ownerState:ne,children:S.jsx(WE.Provider,{value:se,children:g})}))})}))}))});function L4(e){return Ze("MuiDialogActions",e)}rt("MuiDialogActions",["root","spacing"]);const j4=["className","disableSpacing"],F4=e=>{const{classes:t,disableSpacing:n}=e;return ot({root:["root",!n&&"spacing"]},L4,t)},z4=he("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>O({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),GE=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:a=!1}=r,u=Oe(r,j4),f=O({},r,{disableSpacing:a}),p=F4(f);return S.jsx(z4,O({className:Pe(p.root,i),ownerState:f,ref:n},u))});function B4(e){return Ze("MuiDialogContent",e)}rt("MuiDialogContent",["root","dividers"]);function U4(e){return Ze("MuiDialogTitle",e)}const H4=rt("MuiDialogTitle",["root"]),W4=["className","dividers"],G4=e=>{const{classes:t,dividers:n}=e;return ot({root:["root",n&&"dividers"]},B4,t)},K4=he("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>O({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${H4.root} + &`]:{paddingTop:0}})),KE=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiDialogContent"}),{className:i,dividers:a=!1}=r,u=Oe(r,W4),f=O({},r,{dividers:a}),p=G4(f);return S.jsx(K4,O({className:Pe(p.root,i),ownerState:f,ref:n},u))});function V4(e){return Ze("MuiDialogContentText",e)}rt("MuiDialogContentText",["root"]);const X4=["children","className"],q4=e=>{const{classes:t}=e,r=ot({root:["root"]},V4,t);return O({},t,r)},Y4=he(ar,{shouldForwardProp:e=>Sr(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Q4=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiDialogContentText"}),{className:i}=r,a=Oe(r,X4),u=q4(a);return S.jsx(Y4,O({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:a,className:Pe(u.root,i)},r,{classes:u}))}),J4=["className","id"],Z4=e=>{const{classes:t}=e;return ot({root:["root"]},U4,t)},eF=he(ar,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),VE=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiDialogTitle"}),{className:i,id:a}=r,u=Oe(r,J4),f=r,p=Z4(f),{titleId:h=a}=R.useContext(WE);return S.jsx(eF,O({component:"h2",className:Pe(p.root,i),ownerState:f,ref:n,variant:"h6",id:a??h},u))});function tF(e){return Ze("MuiDivider",e)}const XE=rt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),nF=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],rF=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:u,textAlign:f,variant:p}=e;return ot({root:["root",t&&"absolute",p,a&&"light",u==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&u==="vertical"&&"withChildrenVertical",f==="right"&&u!=="vertical"&&"textAlignRight",f==="left"&&u!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",u==="vertical"&&"wrapperVertical"]},tF,r)},oF=he("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>O({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ht(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>O({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>O({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>O({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>O({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),iF=he("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>O({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),zp=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:u,component:f=a?"div":"hr",flexItem:p=!1,light:h=!1,orientation:g="horizontal",role:b=f!=="hr"?"separator":void 0,textAlign:x="center",variant:k="fullWidth"}=r,E=Oe(r,nF),w=O({},r,{absolute:i,component:f,flexItem:p,light:h,orientation:g,role:b,textAlign:x,variant:k}),T=rF(w);return S.jsx(oF,O({as:f,className:Pe(T.root,u),role:b,ref:n,ownerState:w},E,{children:a?S.jsx(iF,{className:T.wrapper,ownerState:w,children:a}):null}))});zp.muiSkipListHighlight=!0;const sF=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function aF(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=ds(t);let u;if(t.fakeTransform)u=t.fakeTransform;else{const h=a.getComputedStyle(t);u=h.getPropertyValue("-webkit-transform")||h.getPropertyValue("transform")}let f=0,p=0;if(u&&u!=="none"&&typeof u=="string"){const h=u.split("(")[1].split(")")[0].split(",");f=parseInt(h[4],10),p=parseInt(h[5],10)}return e==="left"?i?`translateX(${i.right+f-r.left}px)`:`translateX(${a.innerWidth+f-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-f}px)`:`translateX(-${r.left+r.width-f}px)`:e==="up"?i?`translateY(${i.bottom+p-r.top}px)`:`translateY(${a.innerHeight+p-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-p}px)`:`translateY(-${r.top+r.height-p}px)`}function lF(e){return typeof e=="function"?e():e}function Lg(e,t,n){const r=lF(n),i=aF(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const uF=R.forwardRef(function(t,n){const r=Lo(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:u,appear:f=!0,children:p,container:h,direction:g="down",easing:b=i,in:x,onEnter:k,onEntered:E,onEntering:w,onExit:T,onExited:P,onExiting:I,style:D,timeout:M=a,TransitionComponent:L=ci}=t,A=Oe(t,sF),z=R.useRef(null),G=An(p.ref,z,n),q=U=>ae=>{U&&(ae===void 0?U(z.current):U(z.current,ae))},X=q((U,ae)=>{Lg(g,U,h),Sg(U),k&&k(U,ae)}),ne=q((U,ae)=>{const Se=Ms({timeout:M,style:D,easing:b},{mode:"enter"});U.style.webkitTransition=r.transitions.create("-webkit-transform",O({},Se)),U.style.transition=r.transitions.create("transform",O({},Se)),U.style.webkitTransform="none",U.style.transform="none",w&&w(U,ae)}),Q=q(E),Z=q(I),V=q(U=>{const ae=Ms({timeout:M,style:D,easing:b},{mode:"exit"});U.style.webkitTransition=r.transitions.create("-webkit-transform",ae),U.style.transition=r.transitions.create("transform",ae),Lg(g,U,h),T&&T(U)}),ce=q(U=>{U.style.webkitTransition="",U.style.transition="",P&&P(U)}),ue=U=>{u&&u(z.current,U)},se=R.useCallback(()=>{z.current&&Lg(g,z.current,h)},[g,h]);return R.useEffect(()=>{if(x||g==="down"||g==="right")return;const U=xp(()=>{z.current&&Lg(g,z.current,h)}),ae=ds(z.current);return ae.addEventListener("resize",U),()=>{U.clear(),ae.removeEventListener("resize",U)}},[g,x,h]),R.useEffect(()=>{x||se()},[x,se]),S.jsx(L,O({nodeRef:z,onEnter:X,onEntered:Q,onEntering:ne,onExit:V,onExited:ce,onExiting:Z,addEndListener:ue,appear:f,in:x,timeout:M},A,{children:(U,ae)=>R.cloneElement(p,O({ref:G,style:O({visibility:U==="exited"&&!x?"hidden":void 0},D,p.props.style)},ae))}))});function cF(e){return Ze("MuiDrawer",e)}rt("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const dF=["BackdropProps"],fF=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],qE=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},pF=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ye(n)}`,r!=="temporary"&&`paperAnchorDocked${ye(n)}`]};return ot(i,cF,t)},hF=he(Mb,{name:"MuiDrawer",slot:"Root",overridesResolver:qE})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),YE=he("div",{shouldForwardProp:Sr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:qE})({flex:"0 0 auto"}),mF=he(Mi,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ye(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ye(n.anchor)}`]]}})(({theme:e,ownerState:t})=>O({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),QE={left:"right",right:"left",top:"down",bottom:"up"};function gF(e){return["left","right"].indexOf(e)!==-1}function vF({direction:e},t){return e==="rtl"&&gF(t)?QE[t]:t}const JE=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiDrawer"}),i=Lo(),a=wp(),u={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:f="left",BackdropProps:p,children:h,className:g,elevation:b=16,hideBackdrop:x=!1,ModalProps:{BackdropProps:k}={},onClose:E,open:w=!1,PaperProps:T={},SlideProps:P,TransitionComponent:I=uF,transitionDuration:D=u,variant:M="temporary"}=r,L=Oe(r.ModalProps,dF),A=Oe(r,fF),z=R.useRef(!1);R.useEffect(()=>{z.current=!0},[]);const G=vF({direction:a?"rtl":"ltr"},f),X=O({},r,{anchor:f,elevation:b,open:w,variant:M},A),ne=pF(X),Q=S.jsx(mF,O({elevation:M==="temporary"?b:0,square:!0},T,{className:Pe(ne.paper,T.className),ownerState:X,children:h}));if(M==="permanent")return S.jsx(YE,O({className:Pe(ne.root,ne.docked,g),ownerState:X,ref:n},A,{children:Q}));const Z=S.jsx(I,O({in:w,direction:QE[G],timeout:D,appear:z.current},P,{children:Q}));return M==="persistent"?S.jsx(YE,O({className:Pe(ne.root,ne.docked,g),ownerState:X,ref:n},A,{children:Z})):S.jsx(hF,O({BackdropProps:O({},p,k,{transitionDuration:D}),className:Pe(ne.root,ne.modal,g),open:w,ownerState:X,onClose:E,hideBackdrop:x,ref:n},A,L,{children:Z}))});function bF(e){return Ze("MuiFab",e)}const ZE=rt("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),yF=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],xF=e=>{const{color:t,variant:n,classes:r,size:i}=e,a={root:["root",n,`size${ye(i)}`,t==="inherit"?"colorInherit":t]},u=ot(a,bF,r);return O({},r,u)},SF=he(di,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Sr(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ye(n.size)}`],n.color==="inherit"&&t.colorInherit,t[ye(n.size)],t[n.color]]}})(({theme:e,ownerState:t})=>{var n,r;return O({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${ZE.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>O({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${ZE.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),Fb=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiFab"}),{children:i,className:a,color:u="default",component:f="button",disabled:p=!1,disableFocusRipple:h=!1,focusVisibleClassName:g,size:b="large",variant:x="circular"}=r,k=Oe(r,yF),E=O({},r,{color:u,component:f,disabled:p,disableFocusRipple:h,size:b,variant:x}),w=xF(E);return S.jsx(SF,O({className:Pe(w.root,a),component:f,disabled:p,focusRipple:!h,focusVisibleClassName:Pe(w.focusVisible,g),ownerState:E,ref:n},k,{classes:w,children:i}))}),wF=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],_F=e=>{const{classes:t,disableUnderline:n}=e,i=ot({root:["root",!n&&"underline"],input:["input"]},xL,t);return O({},t,i)},CF=he(Dg,{shouldForwardProp:e=>Sr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ig(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",u=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",f=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return O({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:u,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${hi.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${hi.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:f}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${hi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${hi.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${hi.disabled}, .${hi.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${hi.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&O({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),EF=he(Ng,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ag})(({theme:e,ownerState:t})=>O({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),zb=R.forwardRef(function(t,n){var r,i,a,u;const f=st({props:t,name:"MuiFilledInput"}),{components:p={},componentsProps:h,fullWidth:g=!1,inputComponent:b="input",multiline:x=!1,slotProps:k,slots:E={},type:w="text"}=f,T=Oe(f,wF),P=O({},f,{fullWidth:g,inputComponent:b,multiline:x,type:w}),I=_F(f),D={root:{ownerState:P},input:{ownerState:P}},M=k??h?go(D,k??h):D,L=(r=(i=E.root)!=null?i:p.Root)!=null?r:CF,A=(a=(u=E.input)!=null?u:p.Input)!=null?a:EF;return S.jsx(Tb,O({slots:{root:L,input:A},componentsProps:M,fullWidth:g,inputComponent:b,multiline:x,ref:n,type:w},T,{classes:I}))});zb.muiName="Input";function RF(e){return Ze("MuiFormControl",e)}rt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const kF=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],TF=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${ye(n)}`,r&&"fullWidth"]};return ot(i,RF,t)},OF=he("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>O({},t.root,t[`margin${ye(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>O({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),jg=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiFormControl"}),{children:i,className:a,color:u="primary",component:f="div",disabled:p=!1,error:h=!1,focused:g,fullWidth:b=!1,hiddenLabel:x=!1,margin:k="none",required:E=!1,size:w="medium",variant:T="outlined"}=r,P=Oe(r,kF),I=O({},r,{color:u,component:f,disabled:p,error:h,fullWidth:b,hiddenLabel:x,margin:k,required:E,size:w,variant:T}),D=TF(I),[M,L]=R.useState(()=>{let Z=!1;return i&&R.Children.forEach(i,V=>{if(!Uc(V,["Input","Select"]))return;const ce=Uc(V,["Select"])?V.props.input:V;ce&&pL(ce.props)&&(Z=!0)}),Z}),[A,z]=R.useState(()=>{let Z=!1;return i&&R.Children.forEach(i,V=>{Uc(V,["Input","Select"])&&(Pg(V.props,!0)||Pg(V.props.inputProps,!0))&&(Z=!0)}),Z}),[G,q]=R.useState(!1);p&&G&&q(!1);const X=g!==void 0&&!p?g:G;let ne;const Q=R.useMemo(()=>({adornedStart:M,setAdornedStart:L,color:u,disabled:p,error:h,filled:A,focused:X,fullWidth:b,hiddenLabel:x,size:w,onBlur:()=>{q(!1)},onEmpty:()=>{z(!1)},onFilled:()=>{z(!0)},onFocus:()=>{q(!0)},registerEffect:ne,required:E,variant:T}),[M,u,p,h,A,X,b,x,ne,E,w,T]);return S.jsx(kb.Provider,{value:Q,children:S.jsx(OF,O({as:f,ownerState:I,className:Pe(D.root,a),ref:n},P,{children:i}))})}),yo=tD({createStyledComponent:he("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>st({props:e,name:"MuiStack"})});function PF(e){return Ze("MuiFormControlLabel",e)}const Bp=rt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),IF=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],AF=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:a}=e,u={root:["root",n&&"disabled",`labelPlacement${ye(r)}`,i&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return ot(u,PF,t)},DF=he("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Bp.label}`]:t.label},t.root,t[`labelPlacement${ye(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>O({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Bp.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Bp.label}`]:{[`&.${Bp.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),NF=he("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Bp.error}`]:{color:(e.vars||e).palette.error.main}})),Bb=R.forwardRef(function(t,n){var r,i;const a=st({props:t,name:"MuiFormControlLabel"}),{className:u,componentsProps:f={},control:p,disabled:h,disableTypography:g,label:b,labelPlacement:x="end",required:k,slotProps:E={}}=a,w=Oe(a,IF),T=ka(),P=(r=h??p.props.disabled)!=null?r:T==null?void 0:T.disabled,I=k??p.props.required,D={disabled:P,required:I};["checked","name","onChange","value","inputRef"].forEach(q=>{typeof p.props[q]>"u"&&typeof a[q]<"u"&&(D[q]=a[q])});const M=yl({props:a,muiFormControl:T,states:["error"]}),L=O({},a,{disabled:P,labelPlacement:x,required:I,error:M.error}),A=AF(L),z=(i=E.typography)!=null?i:f.typography;let G=b;return G!=null&&G.type!==ar&&!g&&(G=S.jsx(ar,O({component:"span"},z,{className:Pe(A.label,z==null?void 0:z.className),children:G}))),S.jsxs(DF,O({className:Pe(A.root,u),ownerState:L,ref:n},w,{children:[R.cloneElement(p,D),I?S.jsxs(yo,{display:"block",children:[G,S.jsxs(NF,{ownerState:L,"aria-hidden":!0,className:A.asterisk,children:[" ","*"]})]}):G]}))});function $F(e){return Ze("MuiFormGroup",e)}rt("MuiFormGroup",["root","row","error"]);const MF=["className","row"],LF=e=>{const{classes:t,row:n,error:r}=e;return ot({root:["root",n&&"row",r&&"error"]},$F,t)},jF=he("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>O({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),FF=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1}=r,u=Oe(r,MF),f=ka(),p=yl({props:r,muiFormControl:f,states:["error"]}),h=O({},r,{row:a,error:p.error}),g=LF(h);return S.jsx(jF,O({className:Pe(g.root,i),ownerState:h,ref:n},u))});function zF(e){return Ze("MuiFormHelperText",e)}const eR=rt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var tR;const BF=["children","className","component","disabled","error","filled","focused","margin","required","variant"],UF=e=>{const{classes:t,contained:n,size:r,disabled:i,error:a,filled:u,focused:f,required:p}=e,h={root:["root",i&&"disabled",a&&"error",r&&`size${ye(r)}`,n&&"contained",f&&"focused",u&&"filled",p&&"required"]};return ot(h,zF,t)},HF=he("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ye(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>O({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${eR.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${eR.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),WF=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:u="p"}=r,f=Oe(r,BF),p=ka(),h=yl({props:r,muiFormControl:p,states:["variant","size","disabled","error","filled","focused","required"]}),g=O({},r,{component:u,contained:h.variant==="filled"||h.variant==="outlined",variant:h.variant,size:h.size,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required}),b=UF(g);return S.jsx(HF,O({as:u,ownerState:g,className:Pe(b.root,a),ref:n},f,{children:i===" "?tR||(tR=S.jsx("span",{className:"notranslate",children:"​"})):i}))});function GF(e){return Ze("MuiFormLabel",e)}const Up=rt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),KF=["children","className","color","component","disabled","error","filled","focused","required"],VF=e=>{const{classes:t,color:n,focused:r,disabled:i,error:a,filled:u,required:f}=e,p={root:["root",`color${ye(n)}`,i&&"disabled",a&&"error",u&&"filled",r&&"focused",f&&"required"],asterisk:["asterisk",a&&"error"]};return ot(p,GF,t)},XF=he("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>O({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>O({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Up.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Up.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Up.error}`]:{color:(e.vars||e).palette.error.main}})),qF=he("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Up.error}`]:{color:(e.vars||e).palette.error.main}})),YF=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:u="label"}=r,f=Oe(r,KF),p=ka(),h=yl({props:r,muiFormControl:p,states:["color","required","focused","disabled","error","filled"]}),g=O({},r,{color:h.color||"primary",component:u,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required}),b=VF(g);return S.jsxs(XF,O({as:u,ownerState:g,className:Pe(b.root,a),ref:n},f,{children:[i,h.required&&S.jsxs(qF,{ownerState:g,"aria-hidden":!0,className:b.asterisk,children:[" ","*"]})]}))}),Ta=K5({createStyledComponent:he("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>st({props:e,name:"MuiGrid2"})}),QF=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ub(e){return`scale(${e}, ${e**2})`}const JF={entering:{opacity:1,transform:Ub(1)},entered:{opacity:1,transform:"none"}},Hb=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ad=R.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:u,in:f,onEnter:p,onEntered:h,onEntering:g,onExit:b,onExited:x,onExiting:k,style:E,timeout:w="auto",TransitionComponent:T=ci}=t,P=Oe(t,QF),I=Ca(),D=R.useRef(),M=Lo(),L=R.useRef(null),A=An(L,a.ref,n),z=ce=>ue=>{if(ce){const se=L.current;ue===void 0?ce(se):ce(se,ue)}},G=z(g),q=z((ce,ue)=>{Sg(ce);const{duration:se,delay:U,easing:ae}=Ms({style:E,timeout:w,easing:u},{mode:"enter"});let Se;w==="auto"?(Se=M.transitions.getAutoHeightDuration(ce.clientHeight),D.current=Se):Se=se,ce.style.transition=[M.transitions.create("opacity",{duration:Se,delay:U}),M.transitions.create("transform",{duration:Hb?Se:Se*.666,delay:U,easing:ae})].join(","),p&&p(ce,ue)}),X=z(h),ne=z(k),Q=z(ce=>{const{duration:ue,delay:se,easing:U}=Ms({style:E,timeout:w,easing:u},{mode:"exit"});let ae;w==="auto"?(ae=M.transitions.getAutoHeightDuration(ce.clientHeight),D.current=ae):ae=ue,ce.style.transition=[M.transitions.create("opacity",{duration:ae,delay:se}),M.transitions.create("transform",{duration:Hb?ae:ae*.666,delay:Hb?se:se||ae*.333,easing:U})].join(","),ce.style.opacity=0,ce.style.transform=Ub(.75),b&&b(ce)}),Z=z(x),V=ce=>{w==="auto"&&I.start(D.current||0,ce),r&&r(L.current,ce)};return S.jsx(T,O({appear:i,in:f,nodeRef:L,onEnter:q,onEntered:X,onEntering:G,onExit:Q,onExited:Z,onExiting:ne,addEndListener:V,timeout:w==="auto"?null:w},P,{children:(ce,ue)=>R.cloneElement(a,O({style:O({opacity:0,transform:Ub(.75),visibility:ce==="exited"&&!f?"hidden":void 0},JF[ce],E,a.props.style),ref:A},ue))}))});ad.muiSupportAuto=!0;const ZF=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],e6=e=>{const{classes:t,disableUnderline:n}=e,i=ot({root:["root",!n&&"underline"],input:["input"]},bL,t);return O({},t,i)},t6=he(Dg,{shouldForwardProp:e=>Sr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ig(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),O({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xl.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xl.disabled}, .${xl.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${xl.disabled}:before`]:{borderBottomStyle:"dotted"}})}),n6=he(Ng,{name:"MuiInput",slot:"Input",overridesResolver:Ag})({}),Wb=R.forwardRef(function(t,n){var r,i,a,u;const f=st({props:t,name:"MuiInput"}),{disableUnderline:p,components:h={},componentsProps:g,fullWidth:b=!1,inputComponent:x="input",multiline:k=!1,slotProps:E,slots:w={},type:T="text"}=f,P=Oe(f,ZF),I=e6(f),M={root:{ownerState:{disableUnderline:p}}},L=E??g?go(E??g,M):M,A=(r=(i=w.root)!=null?i:h.Root)!=null?r:t6,z=(a=(u=w.input)!=null?u:h.Input)!=null?a:n6;return S.jsx(Tb,O({slots:{root:A,input:z},slotProps:L,fullWidth:b,inputComponent:x,multiline:k,ref:n,type:T},P,{classes:I}))});Wb.muiName="Input";function r6(e){return Ze("MuiInputLabel",e)}rt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const o6=["disableAnimation","margin","shrink","variant","className"],i6=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:u,required:f}=e,p={root:["root",n&&"formControl",!a&&"animated",i&&"shrink",r&&r!=="normal"&&`size${ye(r)}`,u],asterisk:[f&&"asterisk"]},h=ot(p,r6,t);return O({},t,h)},s6=he(YF,{shouldForwardProp:e=>Sr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Up.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>O({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&O({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&O({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&O({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Fg=R.forwardRef(function(t,n){const r=st({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:u}=r,f=Oe(r,o6),p=ka();let h=a;typeof h>"u"&&p&&(h=p.filled||p.focused||p.adornedStart);const g=yl({props:r,muiFormControl:p,states:["size","variant","required","focused"]}),b=O({},r,{disableAnimation:i,formControl:p,shrink:h,size:g.size,variant:g.variant,required:g.required,focused:g.focused}),x=i6(b);return S.jsx(s6,O({"data-shrink":h,ownerState:b,ref:n,className:Pe(x.root,u)},f,{classes:x}))});function a6(e){return Ze("MuiLink",e)}const l6=rt("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),nR={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},u6=e=>nR[e]||e,c6=({theme:e,ownerState:t})=>{const n=u6(t.color),r=jc(e,`palette.${n}`,!1)||t.color,i=jc(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:Ht(r,.4)},d6=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],f6=e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,a={root:["root",`underline${ye(i)}`,n==="button"&&"button",r&&"focusVisible"]};return ot(a,a6,t)},p6=he(ar,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ye(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>O({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&O({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:c6({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${l6.focusVisible}`]:{outline:"auto"}})),Gb=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiLink"}),{className:i,color:a="primary",component:u="a",onBlur:f,onFocus:p,TypographyClasses:h,underline:g="always",variant:b="inherit",sx:x}=r,k=Oe(r,d6),{isFocusVisibleRef:E,onBlur:w,onFocus:T,ref:P}=Y1(),[I,D]=R.useState(!1),M=An(n,P),L=q=>{w(q),E.current===!1&&D(!1),f&&f(q)},A=q=>{T(q),E.current===!0&&D(!0),p&&p(q)},z=O({},r,{color:a,component:u,focusVisible:I,underline:g,variant:b}),G=f6(z);return S.jsx(p6,O({color:a,className:Pe(G.root,i),classes:h,component:u,onBlur:L,onFocus:A,ref:M,ownerState:z,variant:b,sx:[...Object.keys(nR).includes(a)?[]:[{color:a}],...Array.isArray(x)?x:[x]]},k))}),ps=R.createContext({});function h6(e){return Ze("MuiList",e)}rt("MuiList",["root","padding","dense","subheader"]);const m6=["children","className","component","dense","disablePadding","subheader"],g6=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return ot({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},h6,t)},v6=he("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>O({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),rR=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiList"}),{children:i,className:a,component:u="ul",dense:f=!1,disablePadding:p=!1,subheader:h}=r,g=Oe(r,m6),b=R.useMemo(()=>({dense:f}),[f]),x=O({},r,{component:u,dense:f,disablePadding:p}),k=g6(x);return S.jsx(ps.Provider,{value:b,children:S.jsxs(v6,O({as:u,className:Pe(k.root,a),ref:n,ownerState:x},g,{children:[h,i]}))})});function b6(e){return Ze("MuiListItem",e)}const ld=rt("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function y6(e){return Ze("MuiListItemButton",e)}const ud=rt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),x6=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],S6=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},w6=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:u,selected:f}=e,h=ot({root:["root",r&&"dense",!a&&"gutters",u&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",f&&"selected"]},y6,n);return O({},n,h)},_6=he(di,{shouldForwardProp:e=>Sr(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:S6})(({theme:e,ownerState:t})=>O({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ud.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ht(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ud.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ht(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ud.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ht(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ht(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ud.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ud.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),C6=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:a=!1,component:u="div",children:f,dense:p=!1,disableGutters:h=!1,divider:g=!1,focusVisibleClassName:b,selected:x=!1,className:k}=r,E=Oe(r,x6),w=R.useContext(ps),T=R.useMemo(()=>({dense:p||w.dense||!1,alignItems:i,disableGutters:h}),[i,w.dense,p,h]),P=R.useRef(null);Mo(()=>{a&&P.current&&P.current.focus()},[a]);const I=O({},r,{alignItems:i,dense:T.dense,disableGutters:h,divider:g,selected:x}),D=w6(I),M=An(P,n);return S.jsx(ps.Provider,{value:T,children:S.jsx(_6,O({ref:M,href:E.href||E.to,component:(E.href||E.to)&&u==="div"?"button":u,focusVisibleClassName:Pe(D.focusVisible,b),ownerState:I,className:Pe(D.root,k)},E,{classes:D,children:f}))})});function E6(e){return Ze("MuiListItemSecondaryAction",e)}rt("MuiListItemSecondaryAction",["root","disableGutters"]);const R6=["className"],k6=e=>{const{disableGutters:t,classes:n}=e;return ot({root:["root",t&&"disableGutters"]},E6,n)},T6=he("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>O({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),oR=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,a=Oe(r,R6),u=R.useContext(ps),f=O({},r,{disableGutters:u.disableGutters}),p=k6(f);return S.jsx(T6,O({className:Pe(p.root,i),ownerState:f,ref:n},a))});oR.muiName="ListItemSecondaryAction";const O6=["className"],P6=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],I6=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},A6=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:a,disableGutters:u,disablePadding:f,divider:p,hasSecondaryAction:h,selected:g}=e;return ot({root:["root",i&&"dense",!u&&"gutters",!f&&"padding",p&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",h&&"secondaryAction",g&&"selected"],container:["container"]},b6,r)},D6=he("div",{name:"MuiListItem",slot:"Root",overridesResolver:I6})(({theme:e,ownerState:t})=>O({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&O({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${ud.root}`]:{paddingRight:48}},{[`&.${ld.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ld.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ht(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ld.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ht(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ld.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ld.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ht(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ht(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),N6=he("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),$6=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:a=!1,button:u=!1,children:f,className:p,component:h,components:g={},componentsProps:b={},ContainerComponent:x="li",ContainerProps:{className:k}={},dense:E=!1,disabled:w=!1,disableGutters:T=!1,disablePadding:P=!1,divider:I=!1,focusVisibleClassName:D,secondaryAction:M,selected:L=!1,slotProps:A={},slots:z={}}=r,G=Oe(r.ContainerProps,O6),q=Oe(r,P6),X=R.useContext(ps),ne=R.useMemo(()=>({dense:E||X.dense||!1,alignItems:i,disableGutters:T}),[i,X.dense,E,T]),Q=R.useRef(null);Mo(()=>{a&&Q.current&&Q.current.focus()},[a]);const Z=R.Children.toArray(f),V=Z.length&&Uc(Z[Z.length-1],["ListItemSecondaryAction"]),ce=O({},r,{alignItems:i,autoFocus:a,button:u,dense:ne.dense,disabled:w,disableGutters:T,disablePadding:P,divider:I,hasSecondaryAction:V,selected:L}),ue=A6(ce),se=An(Q,n),U=z.root||g.Root||D6,ae=A.root||b.root||{},Se=O({className:Pe(ue.root,ae.className,p),disabled:w},q);let H=h||"li";return u&&(Se.component=h||"div",Se.focusVisibleClassName=Pe(ld.focusVisible,D),H=di),V?(H=!Se.component&&!h?"div":H,x==="li"&&(H==="li"?H="div":Se.component==="li"&&(Se.component="div")),S.jsx(ps.Provider,{value:ne,children:S.jsxs(N6,O({as:x,className:Pe(ue.container,k),ref:se,ownerState:ce},G,{children:[S.jsx(U,O({},ae,!Gc(U)&&{as:H,ownerState:O({},ce,ae.ownerState)},Se,{children:Z})),Z.pop()]}))})):S.jsx(ps.Provider,{value:ne,children:S.jsxs(U,O({},ae,{as:H,ref:se},!Gc(U)&&{ownerState:O({},ce,ae.ownerState)},Se,{children:[Z,M&&S.jsx(oR,{children:M})]}))})});function M6(e){return Ze("MuiListItemIcon",e)}const iR=rt("MuiListItemIcon",["root","alignItemsFlexStart"]),L6=["className"],j6=e=>{const{alignItems:t,classes:n}=e;return ot({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},M6,n)},F6=he("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>O({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),sR=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiListItemIcon"}),{className:i}=r,a=Oe(r,L6),u=R.useContext(ps),f=O({},r,{alignItems:u.alignItems}),p=j6(f);return S.jsx(F6,O({className:Pe(p.root,i),ownerState:f,ref:n},a))});function z6(e){return Ze("MuiListItemText",e)}const zg=rt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),B6=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],U6=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return ot({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},z6,t)},H6=he("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zg.primary}`]:t.primary},{[`& .${zg.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>O({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),aR=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:u=!1,inset:f=!1,primary:p,primaryTypographyProps:h,secondary:g,secondaryTypographyProps:b}=r,x=Oe(r,B6),{dense:k}=R.useContext(ps);let E=p??i,w=g;const T=O({},r,{disableTypography:u,inset:f,primary:!!E,secondary:!!w,dense:k}),P=U6(T);return E!=null&&E.type!==ar&&!u&&(E=S.jsx(ar,O({variant:k?"body2":"body1",className:P.primary,component:h!=null&&h.variant?void 0:"span",display:"block"},h,{children:E}))),w!=null&&w.type!==ar&&!u&&(w=S.jsx(ar,O({variant:"body2",className:P.secondary,color:"text.secondary",display:"block"},b,{children:w}))),S.jsxs(H6,O({className:Pe(P.root,a),ownerState:T,ref:n},x,{children:[E,w]}))}),W6=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Kb(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function lR(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function uR(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Hp(e,t,n,r,i,a){let u=!1,f=i(e,t,t?n:!1);for(;f;){if(f===e.firstChild){if(u)return!1;u=!0}const p=r?!1:f.disabled||f.getAttribute("aria-disabled")==="true";if(!f.hasAttribute("tabindex")||!uR(f,a)||p)f=i(e,f,n);else return f.focus(),!0}return!1}const cR=R.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:u,className:f,disabledItemsFocusable:p=!1,disableListWrap:h=!1,onKeyDown:g,variant:b="selectedMenu"}=t,x=Oe(t,W6),k=R.useRef(null),E=R.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Mo(()=>{i&&k.current.focus()},[i]),R.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(D,{direction:M})=>{const L=!k.current.style.width;if(D.clientHeight<k.current.clientHeight&&L){const A=`${cC(kr(D))}px`;k.current.style[M==="rtl"?"paddingLeft":"paddingRight"]=A,k.current.style.width=`calc(100% + ${A})`}return k.current}}),[]);const w=D=>{const M=k.current,L=D.key,A=kr(M).activeElement;if(L==="ArrowDown")D.preventDefault(),Hp(M,A,h,p,Kb);else if(L==="ArrowUp")D.preventDefault(),Hp(M,A,h,p,lR);else if(L==="Home")D.preventDefault(),Hp(M,null,h,p,Kb);else if(L==="End")D.preventDefault(),Hp(M,null,h,p,lR);else if(L.length===1){const z=E.current,G=L.toLowerCase(),q=performance.now();z.keys.length>0&&(q-z.lastTime>500?(z.keys=[],z.repeating=!0,z.previousKeyMatched=!0):z.repeating&&G!==z.keys[0]&&(z.repeating=!1)),z.lastTime=q,z.keys.push(G);const X=A&&!z.repeating&&uR(A,z);z.previousKeyMatched&&(X||Hp(M,A,!1,p,Kb,z))?D.preventDefault():z.previousKeyMatched=!1}g&&g(D)},T=An(k,n);let P=-1;R.Children.forEach(u,(D,M)=>{if(!R.isValidElement(D)){P===M&&(P+=1,P>=u.length&&(P=-1));return}D.props.disabled||(b==="selectedMenu"&&D.props.selected||P===-1)&&(P=M),P===M&&(D.props.disabled||D.props.muiSkipListHighlight||D.type.muiSkipListHighlight)&&(P+=1,P>=u.length&&(P=-1))});const I=R.Children.map(u,(D,M)=>{if(M===P){const L={};return a&&(L.autoFocus=!0),D.props.tabIndex===void 0&&b==="selectedMenu"&&(L.tabIndex=0),R.cloneElement(D,L)}return D});return S.jsx(rR,O({role:"menu",ref:T,className:f,onKeyDown:w,tabIndex:i?0:-1},x,{children:I}))});function G6(e){return Ze("MuiPopover",e)}rt("MuiPopover",["root","paper"]);const K6=["onEntering"],V6=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],X6=["slotProps"];function dR(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function fR(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function pR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Vb(e){return typeof e=="function"?e():e}const q6=e=>{const{classes:t}=e;return ot({root:["root"],paper:["paper"]},G6,t)},Y6=he(Mb,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hR=he(Mi,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),mR=R.forwardRef(function(t,n){var r,i,a;const u=st({props:t,name:"MuiPopover"}),{action:f,anchorEl:p,anchorOrigin:h={vertical:"top",horizontal:"left"},anchorPosition:g,anchorReference:b="anchorEl",children:x,className:k,container:E,elevation:w=8,marginThreshold:T=16,open:P,PaperProps:I={},slots:D,slotProps:M,transformOrigin:L={vertical:"top",horizontal:"left"},TransitionComponent:A=ad,transitionDuration:z="auto",TransitionProps:{onEntering:G}={},disableScrollLock:q=!1}=u,X=Oe(u.TransitionProps,K6),ne=Oe(u,V6),Q=(r=M==null?void 0:M.paper)!=null?r:I,Z=R.useRef(),V=An(Z,Q.ref),ce=O({},u,{anchorOrigin:h,anchorReference:b,elevation:w,marginThreshold:T,externalPaperSlotProps:Q,transformOrigin:L,TransitionComponent:A,transitionDuration:z,TransitionProps:X}),ue=q6(ce),se=R.useCallback(()=>{if(b==="anchorPosition")return g;const vt=Vb(p),yt=(vt&&vt.nodeType===1?vt:kr(Z.current).body).getBoundingClientRect();return{top:yt.top+dR(yt,h.vertical),left:yt.left+fR(yt,h.horizontal)}},[p,h.horizontal,h.vertical,g,b]),U=R.useCallback(vt=>({vertical:dR(vt,L.vertical),horizontal:fR(vt,L.horizontal)}),[L.horizontal,L.vertical]),ae=R.useCallback(vt=>{const wt={width:vt.offsetWidth,height:vt.offsetHeight},yt=U(wt);if(b==="none")return{top:null,left:null,transformOrigin:pR(yt)};const at=se();let Wt=at.top-yt.vertical,bt=at.left-yt.horizontal;const sn=Wt+wt.height,Dt=bt+wt.width,Et=ds(Vb(p)),en=Et.innerHeight-T,Kt=Et.innerWidth-T;if(T!==null&&Wt<T){const Lt=Wt-T;Wt-=Lt,yt.vertical+=Lt}else if(T!==null&&sn>en){const Lt=sn-en;Wt-=Lt,yt.vertical+=Lt}if(T!==null&&bt<T){const Lt=bt-T;bt-=Lt,yt.horizontal+=Lt}else if(Dt>Kt){const Lt=Dt-Kt;bt-=Lt,yt.horizontal+=Lt}return{top:`${Math.round(Wt)}px`,left:`${Math.round(bt)}px`,transformOrigin:pR(yt)}},[p,b,se,U,T]),[Se,H]=R.useState(P),be=R.useCallback(()=>{const vt=Z.current;if(!vt)return;const wt=ae(vt);wt.top!==null&&(vt.style.top=wt.top),wt.left!==null&&(vt.style.left=wt.left),vt.style.transformOrigin=wt.transformOrigin,H(!0)},[ae]);R.useEffect(()=>(q&&window.addEventListener("scroll",be),()=>window.removeEventListener("scroll",be)),[p,q,be]);const Ke=(vt,wt)=>{G&&G(vt,wt),be()},Ie=()=>{H(!1)};R.useEffect(()=>{P&&be()}),R.useImperativeHandle(f,()=>P?{updatePosition:()=>{be()}}:null,[P,be]),R.useEffect(()=>{if(!P)return;const vt=xp(()=>{be()}),wt=ds(p);return wt.addEventListener("resize",vt),()=>{vt.clear(),wt.removeEventListener("resize",vt)}},[p,P,be]);let $e=z;z==="auto"&&!A.muiSupportAuto&&($e=void 0);const Ee=E||(p?kr(Vb(p)).body:void 0),Ye=(i=D==null?void 0:D.root)!=null?i:Y6,Ce=(a=D==null?void 0:D.paper)!=null?a:hR,Fe=vo({elementType:Ce,externalSlotProps:O({},Q,{style:Se?Q.style:O({},Q.style,{opacity:0})}),additionalProps:{elevation:w,ref:V},ownerState:ce,className:Pe(ue.paper,Q==null?void 0:Q.className)}),mt=vo({elementType:Ye,externalSlotProps:(M==null?void 0:M.root)||{},externalForwardedProps:ne,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:Ee,open:P},ownerState:ce,className:Pe(ue.root,k)}),{slotProps:it}=mt,Qe=Oe(mt,X6);return S.jsx(Ye,O({},Qe,!Gc(Ye)&&{slotProps:it,disableScrollLock:q},{children:S.jsx(A,O({appear:!0,in:P,onEntering:Ke,onExited:Ie,timeout:$e},X,{children:S.jsx(Ce,O({},Fe,{children:x}))}))}))});function Q6(e){return Ze("MuiMenu",e)}rt("MuiMenu",["root","paper","list"]);const J6=["onEntering"],Z6=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],ez={vertical:"top",horizontal:"right"},tz={vertical:"top",horizontal:"left"},nz=e=>{const{classes:t}=e;return ot({root:["root"],paper:["paper"],list:["list"]},Q6,t)},rz=he(mR,{shouldForwardProp:e=>Sr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oz=he(hR,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),iz=he(cR,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Xb=R.forwardRef(function(t,n){var r,i;const a=st({props:t,name:"MuiMenu"}),{autoFocus:u=!0,children:f,className:p,disableAutoFocusItem:h=!1,MenuListProps:g={},onClose:b,open:x,PaperProps:k={},PopoverClasses:E,transitionDuration:w="auto",TransitionProps:{onEntering:T}={},variant:P="selectedMenu",slots:I={},slotProps:D={}}=a,M=Oe(a.TransitionProps,J6),L=Oe(a,Z6),A=wp(),z=O({},a,{autoFocus:u,disableAutoFocusItem:h,MenuListProps:g,onEntering:T,PaperProps:k,transitionDuration:w,TransitionProps:M,variant:P}),G=nz(z),q=u&&!h&&x,X=R.useRef(null),ne=(U,ae)=>{X.current&&X.current.adjustStyleForScrollbar(U,{direction:A?"rtl":"ltr"}),T&&T(U,ae)},Q=U=>{U.key==="Tab"&&(U.preventDefault(),b&&b(U,"tabKeyDown"))};let Z=-1;R.Children.map(f,(U,ae)=>{R.isValidElement(U)&&(U.props.disabled||(P==="selectedMenu"&&U.props.selected||Z===-1)&&(Z=ae))});const V=(r=I.paper)!=null?r:oz,ce=(i=D.paper)!=null?i:k,ue=vo({elementType:I.root,externalSlotProps:D.root,ownerState:z,className:[G.root,p]}),se=vo({elementType:V,externalSlotProps:ce,ownerState:z,className:G.paper});return S.jsx(rz,O({onClose:b,anchorOrigin:{vertical:"bottom",horizontal:A?"right":"left"},transformOrigin:A?ez:tz,slots:{paper:V,root:I.root},slotProps:{root:ue,paper:se},open:x,ref:n,transitionDuration:w,TransitionProps:O({onEntering:ne},M),ownerState:z},L,{classes:E,children:S.jsx(iz,O({onKeyDown:Q,actions:X,autoFocus:u&&(Z===-1||h),autoFocusItem:q,variant:P},g,{className:Pe(G.list,g.className),children:f}))}))});function sz(e){return Ze("MuiMenuItem",e)}const Wp=rt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),az=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],lz=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},uz=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:u}=e,p=ot({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},sz,u);return O({},u,p)},cz=he(di,{shouldForwardProp:e=>Sr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:lz})(({theme:e,ownerState:t})=>O({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Wp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ht(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Wp.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ht(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Wp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ht(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ht(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Wp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Wp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${XE.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${XE.inset}`]:{marginLeft:52},[`& .${zg.root}`]:{marginTop:0,marginBottom:0},[`& .${zg.inset}`]:{paddingLeft:36},[`& .${iR.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&O({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${iR.root} svg`]:{fontSize:"1.25rem"}}))),_l=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:u=!1,divider:f=!1,disableGutters:p=!1,focusVisibleClassName:h,role:g="menuitem",tabIndex:b,className:x}=r,k=Oe(r,az),E=R.useContext(ps),w=R.useMemo(()=>({dense:u||E.dense||!1,disableGutters:p}),[E.dense,u,p]),T=R.useRef(null);Mo(()=>{i&&T.current&&T.current.focus()},[i]);const P=O({},r,{dense:w.dense,divider:f,disableGutters:p}),I=uz(r),D=An(T,n);let M;return r.disabled||(M=b!==void 0?b:-1),S.jsx(ps.Provider,{value:w,children:S.jsx(cz,O({ref:D,role:g,tabIndex:M,component:a,focusVisibleClassName:Pe(I.focusVisible,h),className:Pe(I.root,x)},k,{ownerState:P,classes:I}))})});function dz(e){return Ze("MuiNativeSelect",e)}const qb=rt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),fz=["className","disabled","error","IconComponent","inputRef","variant"],pz=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:u}=e,f={select:["select",n,r&&"disabled",i&&"multiple",u&&"error"],icon:["icon",`icon${ye(n)}`,a&&"iconOpen",r&&"disabled"]};return ot(f,dz,t)},gR=({ownerState:e,theme:t})=>O({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":O({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${qb.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),hz=he("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Sr,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${qb.multiple}`]:t.multiple}]}})(gR),vR=({ownerState:e,theme:t})=>O({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${qb.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),mz=he("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ye(n.variant)}`],n.open&&t.iconOpen]}})(vR),gz=R.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:u,inputRef:f,variant:p="standard"}=t,h=Oe(t,fz),g=O({},t,{disabled:i,variant:p,error:a}),b=pz(g);return S.jsxs(R.Fragment,{children:[S.jsx(hz,O({ownerState:g,className:Pe(b.select,r),disabled:i,ref:f||n},h)),t.multiple?null:S.jsx(mz,{as:u,ownerState:g,className:b.icon})]})});var bR;const vz=["children","classes","className","label","notched"],bz=he("fieldset",{shouldForwardProp:Sr})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),yz=he("legend",{shouldForwardProp:Sr})(({ownerState:e,theme:t})=>O({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&O({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function xz(e){const{className:t,label:n,notched:r}=e,i=Oe(e,vz),a=n!=null&&n!=="",u=O({},e,{notched:r,withLabel:a});return S.jsx(bz,O({"aria-hidden":!0,className:t,ownerState:u},i,{children:S.jsx(yz,{ownerState:u,children:a?S.jsx("span",{children:n}):bR||(bR=S.jsx("span",{className:"notranslate",children:"​"}))})}))}const Sz=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],wz=e=>{const{classes:t}=e,r=ot({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},yL,t);return O({},t,r)},_z=he(Dg,{shouldForwardProp:e=>Sr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ig})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return O({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Fs.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Fs.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Fs.focused} .${Fs.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Fs.error} .${Fs.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Fs.disabled} .${Fs.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&O({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Cz=he(xz,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Ez=he(Ng,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ag})(({theme:e,ownerState:t})=>O({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Yb=R.forwardRef(function(t,n){var r,i,a,u,f;const p=st({props:t,name:"MuiOutlinedInput"}),{components:h={},fullWidth:g=!1,inputComponent:b="input",label:x,multiline:k=!1,notched:E,slots:w={},type:T="text"}=p,P=Oe(p,Sz),I=wz(p),D=ka(),M=yl({props:p,muiFormControl:D,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),L=O({},p,{color:M.color||"primary",disabled:M.disabled,error:M.error,focused:M.focused,formControl:D,fullWidth:g,hiddenLabel:M.hiddenLabel,multiline:k,size:M.size,type:T}),A=(r=(i=w.root)!=null?i:h.Root)!=null?r:_z,z=(a=(u=w.input)!=null?u:h.Input)!=null?a:Ez;return S.jsx(Tb,O({slots:{root:A,input:z},renderSuffix:G=>S.jsx(Cz,{ownerState:L,className:I.notchedOutline,label:x!=null&&x!==""&&M.required?f||(f=S.jsxs(R.Fragment,{children:[x," ","*"]})):x,notched:typeof E<"u"?E:!!(G.startAdornment||G.filled||G.focused)}),fullWidth:g,inputComponent:b,multiline:k,ref:n,type:T},P,{classes:O({},I,{notchedOutline:null})}))});Yb.muiName="Input";const Rz=on(S.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),kz=on(S.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),Tz=he("span",{shouldForwardProp:Sr})({position:"relative",display:"flex"}),Oz=he(Rz)({transform:"scale(1)"}),Pz=he(kz)(({theme:e,ownerState:t})=>O({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function yR(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=O({},e,{checked:t});return S.jsxs(Tz,{className:n.root,ownerState:i,children:[S.jsx(Oz,{fontSize:r,className:n.background,ownerState:i}),S.jsx(Pz,{fontSize:r,className:n.dot,ownerState:i})]})}const xR=R.createContext(void 0);function Iz(){return R.useContext(xR)}function Az(e){return Ze("MuiRadio",e)}const SR=rt("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Dz=["checked","checkedIcon","color","icon","name","onChange","size","className"],Nz=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${ye(n)}`,r!=="medium"&&`size${ye(r)}`]};return O({},t,ot(i,Az,t))},$z=he(Ab,{shouldForwardProp:e=>Sr(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${ye(n.size)}`],t[`color${ye(n.color)}`]]}})(({theme:e,ownerState:t})=>O({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ht(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${SR.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${SR.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function Mz(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const wR=S.jsx(yR,{checked:!0}),_R=S.jsx(yR,{}),Qb=R.forwardRef(function(t,n){var r,i;const a=st({props:t,name:"MuiRadio"}),{checked:u,checkedIcon:f=wR,color:p="primary",icon:h=_R,name:g,onChange:b,size:x="medium",className:k}=a,E=Oe(a,Dz),w=O({},a,{color:p,size:x}),T=Nz(w),P=Iz();let I=u;const D=V1(b,P&&P.onChange);let M=g;return P&&(typeof I>"u"&&(I=Mz(P.value,a.value)),typeof M>"u"&&(M=P.name)),S.jsx($z,O({type:"radio",icon:R.cloneElement(h,{fontSize:(r=_R.props.fontSize)!=null?r:x}),checkedIcon:R.cloneElement(f,{fontSize:(i=wR.props.fontSize)!=null?i:x}),ownerState:w,classes:T,name:M,checked:I,onChange:D,ref:n,className:Pe(T.root,k)},E))});function Lz(e){return Ze("MuiRadioGroup",e)}rt("MuiRadioGroup",["root","row","error"]);const jz=["actions","children","className","defaultValue","name","onChange","value"],Fz=e=>{const{classes:t,row:n,error:r}=e;return ot({root:["root",n&&"row",r&&"error"]},Lz,t)},CR=R.forwardRef(function(t,n){const{actions:r,children:i,className:a,defaultValue:u,name:f,onChange:p,value:h}=t,g=Oe(t,jz),b=R.useRef(null),x=Fz(t),[k,E]=_a({controlled:h,default:u,name:"RadioGroup"});R.useImperativeHandle(r,()=>({focus:()=>{let I=b.current.querySelector("input:not(:disabled):checked");I||(I=b.current.querySelector("input:not(:disabled)")),I&&I.focus()}}),[]);const w=An(n,b),T=Hc(f),P=R.useMemo(()=>({name:T,onChange(I){E(I.target.value),p&&p(I,I.target.value)},value:k}),[T,p,E,k]);return S.jsx(xR.Provider,{value:P,children:S.jsx(FF,O({role:"radiogroup",ref:w,className:Pe(x.root,a)},g,{children:i}))})});function zz(e){return Ze("MuiSelect",e)}const Gp=rt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var ER;const Bz=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Uz=he("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Gp.select}`]:t.select},{[`&.${Gp.select}`]:t[n.variant]},{[`&.${Gp.error}`]:t.error},{[`&.${Gp.multiple}`]:t.multiple}]}})(gR,{[`&.${Gp.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Hz=he("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ye(n.variant)}`],n.open&&t.iconOpen]}})(vR),Wz=he("input",{shouldForwardProp:e=>BC(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function RR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Gz(e){return e==null||typeof e=="string"&&!e.trim()}const Kz=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:u}=e,f={select:["select",n,r&&"disabled",i&&"multiple",u&&"error"],icon:["icon",`icon${ye(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ot(f,zz,t)},Vz=R.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":a,autoFocus:u,autoWidth:f,children:p,className:h,defaultOpen:g,defaultValue:b,disabled:x,displayEmpty:k,error:E=!1,IconComponent:w,inputRef:T,labelId:P,MenuProps:I={},multiple:D,name:M,onBlur:L,onChange:A,onClose:z,onFocus:G,onOpen:q,open:X,readOnly:ne,renderValue:Q,SelectDisplayProps:Z={},tabIndex:V,value:ce,variant:ue="standard"}=t,se=Oe(t,Bz),[U,ae]=_a({controlled:ce,default:b,name:"Select"}),[Se,H]=_a({controlled:X,default:g,name:"Select"}),be=R.useRef(null),Ke=R.useRef(null),[Ie,$e]=R.useState(null),{current:Ee}=R.useRef(X!=null),[Ye,Ce]=R.useState(),Fe=An(n,T),mt=R.useCallback(et=>{Ke.current=et,et&&$e(et)},[]),it=Ie==null?void 0:Ie.parentNode;R.useImperativeHandle(Fe,()=>({focus:()=>{Ke.current.focus()},node:be.current,value:U}),[U]),R.useEffect(()=>{g&&Se&&Ie&&!Ee&&(Ce(f?null:it.clientWidth),Ke.current.focus())},[Ie,f]),R.useEffect(()=>{u&&Ke.current.focus()},[u]),R.useEffect(()=>{if(!P)return;const et=kr(Ke.current).getElementById(P);if(et){const Pt=()=>{getSelection().isCollapsed&&Ke.current.focus()};return et.addEventListener("click",Pt),()=>{et.removeEventListener("click",Pt)}}},[P]);const Qe=(et,Pt)=>{et?q&&q(Pt):z&&z(Pt),Ee||(Ce(f?null:it.clientWidth),H(et))},vt=et=>{et.button===0&&(et.preventDefault(),Ke.current.focus(),Qe(!0,et))},wt=et=>{Qe(!1,et)},yt=R.Children.toArray(p),at=et=>{const Pt=yt.find(Be=>Be.props.value===et.target.value);Pt!==void 0&&(ae(Pt.props.value),A&&A(et,Pt))},Wt=et=>Pt=>{let Be;if(Pt.currentTarget.hasAttribute("tabindex")){if(D){Be=Array.isArray(U)?U.slice():[];const tt=U.indexOf(et.props.value);tt===-1?Be.push(et.props.value):Be.splice(tt,1)}else Be=et.props.value;if(et.props.onClick&&et.props.onClick(Pt),U!==Be&&(ae(Be),A)){const tt=Pt.nativeEvent||Pt,At=new tt.constructor(tt.type,tt);Object.defineProperty(At,"target",{writable:!0,value:{value:Be,name:M}}),A(At,et)}D||Qe(!1,Pt)}},bt=et=>{ne||[" ","ArrowUp","ArrowDown","Enter"].indexOf(et.key)!==-1&&(et.preventDefault(),Qe(!0,et))},sn=Ie!==null&&Se,Dt=et=>{!sn&&L&&(Object.defineProperty(et,"target",{writable:!0,value:{value:U,name:M}}),L(et))};delete se["aria-invalid"];let Et,en;const Kt=[];let Lt=!1;(Pg({value:U})||k)&&(Q?Et=Q(U):Lt=!0);const an=yt.map(et=>{if(!R.isValidElement(et))return null;let Pt;if(D){if(!Array.isArray(U))throw new Error(Sa(2));Pt=U.some(Be=>RR(Be,et.props.value)),Pt&&Lt&&Kt.push(et.props.children)}else Pt=RR(U,et.props.value),Pt&&Lt&&(en=et.props.children);return R.cloneElement(et,{"aria-selected":Pt?"true":"false",onClick:Wt(et),onKeyUp:Be=>{Be.key===" "&&Be.preventDefault(),et.props.onKeyUp&&et.props.onKeyUp(Be)},role:"option",selected:Pt,value:void 0,"data-value":et.props.value})});Lt&&(D?Kt.length===0?Et=null:Et=Kt.reduce((et,Pt,Be)=>(et.push(Pt),Be<Kt.length-1&&et.push(", "),et),[]):Et=en);let Tn=Ye;!f&&Ee&&Ie&&(Tn=it.clientWidth);let fn;typeof V<"u"?fn=V:fn=x?null:0;const pt=Z.id||(M?`mui-component-select-${M}`:void 0),We=O({},t,{variant:ue,value:U,open:sn,error:E}),jt=Kz(We),hn=O({},I.PaperProps,(r=I.slotProps)==null?void 0:r.paper),Mn=Hc();return S.jsxs(R.Fragment,{children:[S.jsx(Uz,O({ref:mt,tabIndex:fn,role:"combobox","aria-controls":Mn,"aria-disabled":x?"true":void 0,"aria-expanded":sn?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[P,pt].filter(Boolean).join(" ")||void 0,"aria-describedby":i,onKeyDown:bt,onMouseDown:x||ne?null:vt,onBlur:Dt,onFocus:G},Z,{ownerState:We,className:Pe(Z.className,jt.select,h),id:pt,children:Gz(Et)?ER||(ER=S.jsx("span",{className:"notranslate",children:"​"})):Et})),S.jsx(Wz,O({"aria-invalid":E,value:Array.isArray(U)?U.join(","):U,name:M,ref:be,"aria-hidden":!0,onChange:at,tabIndex:-1,disabled:x,className:jt.nativeInput,autoFocus:u,ownerState:We},se)),S.jsx(Hz,{as:w,className:jt.icon,ownerState:We}),S.jsx(Xb,O({id:`menu-${M||""}`,anchorEl:it,open:sn,onClose:wt,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},I,{MenuListProps:O({"aria-labelledby":P,role:"listbox","aria-multiselectable":D?"true":void 0,disableListWrap:!0,id:Mn},I.MenuListProps),slotProps:O({},I.slotProps,{paper:O({},hn,{style:O({minWidth:Tn},hn!=null?hn.style:null)})}),children:an}))]})}),Xz=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],qz=["root"],Yz=e=>{const{classes:t}=e;return t},Jb={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Sr(e)&&e!=="variant",slot:"Root"},Qz=he(Wb,Jb)(""),Jz=he(Yb,Jb)(""),Zz=he(zb,Jb)(""),cd=R.forwardRef(function(t,n){const r=st({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:u={},className:f,defaultOpen:p=!1,displayEmpty:h=!1,IconComponent:g=TE,id:b,input:x,inputProps:k,label:E,labelId:w,MenuProps:T,multiple:P=!1,native:I=!1,onClose:D,onOpen:M,open:L,renderValue:A,SelectDisplayProps:z,variant:G="outlined"}=r,q=Oe(r,Xz),X=I?gz:Vz,ne=ka(),Q=yl({props:r,muiFormControl:ne,states:["variant","error"]}),Z=Q.variant||G,V=O({},r,{variant:Z,classes:u}),ce=Yz(V),ue=Oe(ce,qz),se=x||{standard:S.jsx(Qz,{ownerState:V}),outlined:S.jsx(Jz,{label:E,ownerState:V}),filled:S.jsx(Zz,{ownerState:V})}[Z],U=An(n,se.ref);return S.jsx(R.Fragment,{children:R.cloneElement(se,O({inputComponent:X,inputProps:O({children:a,error:Q.error,IconComponent:g,variant:Z,type:void 0,multiple:P},I?{id:b}:{autoWidth:i,defaultOpen:p,displayEmpty:h,labelId:w,MenuProps:T,onClose:D,onOpen:M,open:L,renderValue:A,SelectDisplayProps:O({id:b},z)},k,{classes:k?go(ue,k.classes):ue},x?x.props.inputProps:{})},(P&&I||h)&&Z==="outlined"?{notched:!0}:{},{ref:U,className:Pe(se.props.className,f,ce.root)},!x&&{variant:Z},q))})});cd.muiName="Select";function eB(e){return Ze("MuiSkeleton",e)}rt("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const tB=["animation","className","component","height","style","variant","width"];let Bg=e=>e,kR,TR,OR,PR;const nB=e=>{const{classes:t,variant:n,animation:r,hasChildren:i,width:a,height:u}=e;return ot({root:["root",n,r,i&&"withChildren",i&&!a&&"fitContent",i&&!u&&"heightAuto"]},eB,t)},rB=vl(kR||(kR=Bg`
146
+ 0% {
147
+ opacity: 1;
148
+ }
149
+
150
+ 50% {
151
+ opacity: 0.4;
152
+ }
153
+
154
+ 100% {
155
+ opacity: 1;
156
+ }
157
+ `)),oB=vl(TR||(TR=Bg`
158
+ 0% {
159
+ transform: translateX(-100%);
160
+ }
161
+
162
+ 50% {
163
+ /* +0.5s of delay between each loop */
164
+ transform: translateX(100%);
165
+ }
166
+
167
+ 100% {
168
+ transform: translateX(100%);
169
+ }
170
+ `)),iB=he("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=zD(e.shape.borderRadius)||"px",r=BD(e.shape.borderRadius);return O({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:i5(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&Lc(OR||(OR=Bg`
171
+ animation: ${0} 2s ease-in-out 0.5s infinite;
172
+ `),rB),({ownerState:e,theme:t})=>e.animation==="wave"&&Lc(PR||(PR=Bg`
173
+ position: relative;
174
+ overflow: hidden;
175
+
176
+ /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
177
+ -webkit-mask-image: -webkit-radial-gradient(white, black);
178
+
179
+ &::after {
180
+ animation: ${0} 2s linear 0.5s infinite;
181
+ background: linear-gradient(
182
+ 90deg,
183
+ transparent,
184
+ ${0},
185
+ transparent
186
+ );
187
+ content: '';
188
+ position: absolute;
189
+ transform: translateX(-100%); /* Avoid flash during server-side hydration */
190
+ bottom: 0;
191
+ left: 0;
192
+ right: 0;
193
+ top: 0;
194
+ }
195
+ `),oB,(t.vars||t).palette.action.hover)),IR=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiSkeleton"}),{animation:i="pulse",className:a,component:u="span",height:f,style:p,variant:h="text",width:g}=r,b=Oe(r,tB),x=O({},r,{animation:i,component:u,variant:h,hasChildren:!!b.children}),k=nB(x);return S.jsx(iB,O({as:u,ref:n,className:Pe(k.root,a),ownerState:x},b,{style:O({width:g,height:f},p)}))});function sB(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:a}=e,u=Ca();R.useEffect(()=>{if(!i)return;function P(I){I.defaultPrevented||(I.key==="Escape"||I.key==="Esc")&&(r==null||r(I,"escapeKeyDown"))}return document.addEventListener("keydown",P),()=>{document.removeEventListener("keydown",P)}},[i,r]);const f=Nr((P,I)=>{r==null||r(P,I)}),p=Nr(P=>{!r||P==null||u.start(P,()=>{f(null,"timeout")})});R.useEffect(()=>(i&&p(t),u.clear),[i,t,p,u]);const h=P=>{r==null||r(P,"clickaway")},g=u.clear,b=R.useCallback(()=>{t!=null&&p(a??t*.5)},[t,a,p]),x=P=>I=>{const D=P.onBlur;D==null||D(I),b()},k=P=>I=>{const D=P.onFocus;D==null||D(I),g()},E=P=>I=>{const D=P.onMouseEnter;D==null||D(I),g()},w=P=>I=>{const D=P.onMouseLeave;D==null||D(I),b()};return R.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",b),window.addEventListener("blur",g),()=>{window.removeEventListener("focus",b),window.removeEventListener("blur",g)}},[n,i,b,g]),{getRootProps:(P={})=>{const I=O({},hg(e),hg(P));return O({role:"presentation"},P,I,{onBlur:x(I),onFocus:k(I),onMouseEnter:E(I),onMouseLeave:w(I)})},onClickAway:h}}function aB(e){return Ze("MuiSnackbarContent",e)}rt("MuiSnackbarContent",["root","message","action"]);const lB=["action","className","message","role"],uB=e=>{const{classes:t}=e;return ot({root:["root"],action:["action"],message:["message"]},aB,t)},cB=he(Mi,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=mg(e.palette.background.default,t);return O({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),dB=he("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),fB=he("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),pB=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiSnackbarContent"}),{action:i,className:a,message:u,role:f="alert"}=r,p=Oe(r,lB),h=r,g=uB(h);return S.jsxs(cB,O({role:f,square:!0,elevation:6,className:Pe(g.root,a),ownerState:h,ref:n},p,{children:[S.jsx(dB,{className:g.message,ownerState:h,children:u}),i?S.jsx(fB,{className:g.action,ownerState:h,children:i}):null]}))});function hB(e){return Ze("MuiSnackbar",e)}rt("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const mB=["onEnter","onExited"],gB=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],vB=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${ye(n.vertical)}${ye(n.horizontal)}`]};return ot(r,hB,t)},AR=he("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${ye(n.anchorOrigin.vertical)}${ye(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return O({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:O({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),bB=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiSnackbar"}),i=Lo(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:u,anchorOrigin:{vertical:f,horizontal:p}={vertical:"bottom",horizontal:"left"},autoHideDuration:h=null,children:g,className:b,ClickAwayListenerProps:x,ContentProps:k,disableWindowBlurListener:E=!1,message:w,open:T,TransitionComponent:P=ad,transitionDuration:I=a,TransitionProps:{onEnter:D,onExited:M}={}}=r,L=Oe(r.TransitionProps,mB),A=Oe(r,gB),z=O({},r,{anchorOrigin:{vertical:f,horizontal:p},autoHideDuration:h,disableWindowBlurListener:E,TransitionComponent:P,transitionDuration:I}),G=vB(z),{getRootProps:q,onClickAway:X}=sB(O({},z)),[ne,Q]=R.useState(!0),Z=vo({elementType:AR,getSlotProps:q,externalForwardedProps:A,ownerState:z,additionalProps:{ref:n},className:[G.root,b]}),V=ue=>{Q(!0),M&&M(ue)},ce=(ue,se)=>{Q(!1),D&&D(ue,se)};return!T&&ne?null:S.jsx(BE,O({onClickAway:X},x,{children:S.jsx(AR,O({},Z,{children:S.jsx(P,O({appear:!0,in:T,timeout:I,direction:f==="top"?"down":"up",onEnter:ce,onExited:V},L,{children:g||S.jsx(pB,O({message:w,action:u},k))}))}))}))}),yB=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],xB={entering:{transform:"none"},entered:{transform:"none"}},SB=R.forwardRef(function(t,n){const r=Lo(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:u=!0,children:f,easing:p,in:h,onEnter:g,onEntered:b,onEntering:x,onExit:k,onExited:E,onExiting:w,style:T,timeout:P=i,TransitionComponent:I=ci}=t,D=Oe(t,yB),M=R.useRef(null),L=An(M,f.ref,n),A=V=>ce=>{if(V){const ue=M.current;ce===void 0?V(ue):V(ue,ce)}},z=A(x),G=A((V,ce)=>{Sg(V);const ue=Ms({style:T,timeout:P,easing:p},{mode:"enter"});V.style.webkitTransition=r.transitions.create("transform",ue),V.style.transition=r.transitions.create("transform",ue),g&&g(V,ce)}),q=A(b),X=A(w),ne=A(V=>{const ce=Ms({style:T,timeout:P,easing:p},{mode:"exit"});V.style.webkitTransition=r.transitions.create("transform",ce),V.style.transition=r.transitions.create("transform",ce),k&&k(V)}),Q=A(E),Z=V=>{a&&a(M.current,V)};return S.jsx(I,O({appear:u,in:h,nodeRef:M,onEnter:G,onEntered:q,onEntering:z,onExit:ne,onExited:Q,onExiting:X,addEndListener:Z,timeout:P},D,{children:(V,ce)=>R.cloneElement(f,O({style:O({transform:"scale(0)",visibility:V==="exited"&&!h?"hidden":void 0},xB[V],T,f.props.style),ref:L},ce))}))});function wB(e){return Ze("MuiSpeedDial",e)}const Ug=rt("MuiSpeedDial",["root","fab","directionUp","directionDown","directionLeft","directionRight","actions","actionsClosed"]),_B=["ref"],CB=["ariaLabel","FabProps","children","className","direction","hidden","icon","onBlur","onClose","onFocus","onKeyDown","onMouseEnter","onMouseLeave","onOpen","open","openIcon","TransitionComponent","transitionDuration","TransitionProps"],EB=["ref"],RB=e=>{const{classes:t,open:n,direction:r}=e,i={root:["root",`direction${ye(r)}`],fab:["fab"],actions:["actions",!n&&"actionsClosed"]};return ot(i,wB,t)};function Kp(e){if(e==="up"||e==="down")return"vertical";if(e==="right"||e==="left")return"horizontal"}const Cl=32,Hg=16,kB=he("div",{name:"MuiSpeedDial",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`direction${ye(n.direction)}`]]}})(({theme:e,ownerState:t})=>O({zIndex:(e.vars||e).zIndex.speedDial,display:"flex",alignItems:"center",pointerEvents:"none"},t.direction==="up"&&{flexDirection:"column-reverse",[`& .${Ug.actions}`]:{flexDirection:"column-reverse",marginBottom:-Cl,paddingBottom:Hg+Cl}},t.direction==="down"&&{flexDirection:"column",[`& .${Ug.actions}`]:{flexDirection:"column",marginTop:-Cl,paddingTop:Hg+Cl}},t.direction==="left"&&{flexDirection:"row-reverse",[`& .${Ug.actions}`]:{flexDirection:"row-reverse",marginRight:-Cl,paddingRight:Hg+Cl}},t.direction==="right"&&{flexDirection:"row",[`& .${Ug.actions}`]:{flexDirection:"row",marginLeft:-Cl,paddingLeft:Hg+Cl}})),TB=he(Fb,{name:"MuiSpeedDial",slot:"Fab",overridesResolver:(e,t)=>t.fab})(()=>({pointerEvents:"auto"})),OB=he("div",{name:"MuiSpeedDial",slot:"Actions",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.actions,!n.open&&t.actionsClosed]}})(({ownerState:e})=>O({display:"flex",pointerEvents:"auto"},!e.open&&{transition:"top 0s linear 0.2s",pointerEvents:"none"})),PB=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiSpeedDial"}),i=Lo(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{ariaLabel:u,FabProps:{ref:f}={},children:p,className:h,direction:g="up",hidden:b=!1,icon:x,onBlur:k,onClose:E,onFocus:w,onKeyDown:T,onMouseEnter:P,onMouseLeave:I,onOpen:D,open:M,TransitionComponent:L=SB,transitionDuration:A=a,TransitionProps:z}=r,G=Oe(r.FabProps,_B),q=Oe(r,CB),[X,ne]=_a({controlled:M,default:!1,name:"SpeedDial",state:"open"}),Q=O({},r,{open:X,direction:g}),Z=RB(Q),V=Ca(),ce=R.useRef(0),ue=R.useRef(),se=R.useRef([]);se.current=[se.current[0]];const U=R.useCallback(Ce=>{se.current[0]=Ce},[]),ae=An(f,U),Se=(Ce,Fe)=>mt=>{se.current[Ce+1]=mt,Fe&&Fe(mt)},H=Ce=>{T&&T(Ce);const Fe=Ce.key.replace("Arrow","").toLowerCase(),{current:mt=Fe}=ue;if(Ce.key==="Escape"){ne(!1),se.current[0].focus(),E&&E(Ce,"escapeKeyDown");return}if(Kp(Fe)===Kp(mt)&&Kp(Fe)!==void 0){Ce.preventDefault();const it=Fe===mt?1:-1,Qe=K1(ce.current+it,0,se.current.length-1);se.current[Qe].focus(),ce.current=Qe,ue.current=mt}};R.useEffect(()=>{X||(ce.current=0,ue.current=void 0)},[X]);const be=Ce=>{Ce.type==="mouseleave"&&I&&I(Ce),Ce.type==="blur"&&k&&k(Ce),V.clear(),Ce.type==="blur"?V.start(0,()=>{ne(!1),E&&E(Ce,"blur")}):(ne(!1),E&&E(Ce,"mouseLeave"))},Ke=Ce=>{G.onClick&&G.onClick(Ce),V.clear(),X?(ne(!1),E&&E(Ce,"toggle")):(ne(!0),D&&D(Ce,"toggle"))},Ie=Ce=>{Ce.type==="mouseenter"&&P&&P(Ce),Ce.type==="focus"&&w&&w(Ce),V.clear(),X||V.start(0,()=>{ne(!0),D&&D(Ce,{focus:"focus",mouseenter:"mouseEnter"}[Ce.type])})},$e=u.replace(/^[^a-z]+|[^\w:.-]+/gi,""),Ee=R.Children.toArray(p).filter(Ce=>R.isValidElement(Ce)),Ye=Ee.map((Ce,Fe)=>{const mt=Ce.props,{FabProps:{ref:it}={},tooltipPlacement:Qe}=mt,vt=Oe(mt.FabProps,EB),wt=Qe||(Kp(g)==="vertical"?"left":"top");return R.cloneElement(Ce,{FabProps:O({},vt,{ref:Se(Fe,it)}),delay:30*(X?Fe:Ee.length-Fe),open:X,tooltipPlacement:wt,id:`${$e}-action-${Fe}`})});return S.jsxs(kB,O({className:Pe(Z.root,h),ref:n,role:"presentation",onKeyDown:H,onBlur:be,onFocus:Ie,onMouseEnter:Ie,onMouseLeave:be,ownerState:Q},q,{children:[S.jsx(L,O({in:!b,timeout:A,unmountOnExit:!0},z,{children:S.jsx(TB,O({color:"primary","aria-label":u,"aria-haspopup":"true","aria-expanded":X,"aria-controls":`${$e}-actions`},G,{onClick:Ke,className:Pe(Z.fab,G.className),ref:ae,ownerState:Q,children:R.isValidElement(x)&&Uc(x,["SpeedDialIcon"])?R.cloneElement(x,{open:X}):x}))})),S.jsx(OB,{id:`${$e}-actions`,role:"menu","aria-orientation":Kp(g),className:Pe(Z.actions,!X&&Z.actionsClosed),ownerState:Q,children:Ye})]}))});function IB(e){return Ze("MuiTooltip",e)}const El=rt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),AB=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function DB(e){return Math.round(e*1e5)/1e5}const NB=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e,u={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${ye(a.split("-")[0])}`],arrow:["arrow"]};return ot(u,IB,t)},$B=he(jp,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>O({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${El.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${El.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${El.arrow}`]:O({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${El.arrow}`]:O({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),MB=he("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${ye(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>O({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Ht(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${DB(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${El.popper}[data-popper-placement*="left"] &`]:O({transformOrigin:"right center"},t.isRtl?O({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):O({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${El.popper}[data-popper-placement*="right"] &`]:O({transformOrigin:"left center"},t.isRtl?O({marginRight:"14px"},t.touch&&{marginRight:"24px"}):O({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${El.popper}[data-popper-placement*="top"] &`]:O({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${El.popper}[data-popper-placement*="bottom"] &`]:O({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),LB=he("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Ht(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Wg=!1;const DR=new Sp;let Vp={x:0,y:0};function Gg(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const jB=R.forwardRef(function(t,n){var r,i,a,u,f,p,h,g,b,x,k,E,w,T,P,I,D,M,L;const A=st({props:t,name:"MuiTooltip"}),{arrow:z=!1,children:G,components:q={},componentsProps:X={},describeChild:ne=!1,disableFocusListener:Q=!1,disableHoverListener:Z=!1,disableInteractive:V=!1,disableTouchListener:ce=!1,enterDelay:ue=100,enterNextDelay:se=0,enterTouchDelay:U=700,followCursor:ae=!1,id:Se,leaveDelay:H=0,leaveTouchDelay:be=1500,onClose:Ke,onOpen:Ie,open:$e,placement:Ee="bottom",PopperComponent:Ye,PopperProps:Ce={},slotProps:Fe={},slots:mt={},title:it,TransitionComponent:Qe=ad,TransitionProps:vt}=A,wt=Oe(A,AB),yt=R.isValidElement(G)?G:S.jsx("span",{children:G}),at=Lo(),Wt=wp(),[bt,sn]=R.useState(),[Dt,Et]=R.useState(null),en=R.useRef(!1),Kt=V||ae,Lt=Ca(),an=Ca(),Tn=Ca(),fn=Ca(),[pt,We]=_a({controlled:$e,default:!1,name:"Tooltip",state:"open"});let jt=pt;const hn=Hc(Se),Mn=R.useRef(),et=Nr(()=>{Mn.current!==void 0&&(document.body.style.WebkitUserSelect=Mn.current,Mn.current=void 0),fn.clear()});R.useEffect(()=>et,[et]);const Pt=He=>{DR.clear(),Wg=!0,We(!0),Ie&&!jt&&Ie(He)},Be=Nr(He=>{DR.start(800+H,()=>{Wg=!1}),We(!1),Ke&&jt&&Ke(He),Lt.start(at.transitions.duration.shortest,()=>{en.current=!1})}),tt=He=>{en.current&&He.type!=="touchstart"||(bt&&bt.removeAttribute("title"),an.clear(),Tn.clear(),ue||Wg&&se?an.start(Wg?se:ue,()=>{Pt(He)}):Pt(He))},At=He=>{an.clear(),Tn.start(H,()=>{Be(He)})},{isFocusVisibleRef:Ft,onBlur:Gt,onFocus:pn,ref:cn}=Y1(),[,Dn]=R.useState(!1),Ln=He=>{Gt(He),Ft.current===!1&&(Dn(!1),At(He))},$r=He=>{bt||sn(He.currentTarget),pn(He),Ft.current===!0&&(Dn(!0),tt(He))},wo=He=>{en.current=!0;const St=yt.props;St.onTouchStart&&St.onTouchStart(He)},vi=He=>{wo(He),Tn.clear(),Lt.clear(),et(),Mn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",fn.start(U,()=>{document.body.style.WebkitUserSelect=Mn.current,tt(He)})},zo=He=>{yt.props.onTouchEnd&&yt.props.onTouchEnd(He),et(),Tn.start(be,()=>{Be(He)})};R.useEffect(()=>{if(!jt)return;function He(St){(St.key==="Escape"||St.key==="Esc")&&Be(St)}return document.addEventListener("keydown",He),()=>{document.removeEventListener("keydown",He)}},[Be,jt]);const Bo=An(yt.ref,cn,sn,n);!it&&it!==0&&(jt=!1);const wr=R.useRef(),jn=He=>{const St=yt.props;St.onMouseMove&&St.onMouseMove(He),Vp={x:He.clientX,y:He.clientY},wr.current&&wr.current.update()},bn={},K=typeof it=="string";ne?(bn.title=!jt&&K&&!Z?it:null,bn["aria-describedby"]=jt?hn:null):(bn["aria-label"]=K?it:null,bn["aria-labelledby"]=jt&&!K?hn:null);const ee=O({},bn,wt,yt.props,{className:Pe(wt.className,yt.props.className),onTouchStart:wo,ref:Bo},ae?{onMouseMove:jn}:{}),ge={};ce||(ee.onTouchStart=vi,ee.onTouchEnd=zo),Z||(ee.onMouseOver=Gg(tt,ee.onMouseOver),ee.onMouseLeave=Gg(At,ee.onMouseLeave),Kt||(ge.onMouseOver=tt,ge.onMouseLeave=At)),Q||(ee.onFocus=Gg($r,ee.onFocus),ee.onBlur=Gg(Ln,ee.onBlur),Kt||(ge.onFocus=$r,ge.onBlur=Ln));const ke=R.useMemo(()=>{var He;let St=[{name:"arrow",enabled:!!Dt,options:{element:Dt,padding:4}}];return(He=Ce.popperOptions)!=null&&He.modifiers&&(St=St.concat(Ce.popperOptions.modifiers)),O({},Ce.popperOptions,{modifiers:St})},[Dt,Ce]),qe=O({},A,{isRtl:Wt,arrow:z,disableInteractive:Kt,placement:Ee,PopperComponentProp:Ye,touch:en.current}),ft=NB(qe),Ct=(r=(i=mt.popper)!=null?i:q.Popper)!=null?r:$B,Ve=(a=(u=(f=mt.transition)!=null?f:q.Transition)!=null?u:Qe)!=null?a:ad,Tt=(p=(h=mt.tooltip)!=null?h:q.Tooltip)!=null?p:MB,oe=(g=(b=mt.arrow)!=null?b:q.Arrow)!=null?g:LB,re=Kc(Ct,O({},Ce,(x=Fe.popper)!=null?x:X.popper,{className:Pe(ft.popper,Ce==null?void 0:Ce.className,(k=(E=Fe.popper)!=null?E:X.popper)==null?void 0:k.className)}),qe),je=Kc(Ve,O({},vt,(w=Fe.transition)!=null?w:X.transition),qe),Ae=Kc(Tt,O({},(T=Fe.tooltip)!=null?T:X.tooltip,{className:Pe(ft.tooltip,(P=(I=Fe.tooltip)!=null?I:X.tooltip)==null?void 0:P.className)}),qe),Je=Kc(oe,O({},(D=Fe.arrow)!=null?D:X.arrow,{className:Pe(ft.arrow,(M=(L=Fe.arrow)!=null?L:X.arrow)==null?void 0:M.className)}),qe);return S.jsxs(R.Fragment,{children:[R.cloneElement(yt,ee),S.jsx(Ct,O({as:Ye??jp,placement:Ee,anchorEl:ae?{getBoundingClientRect:()=>({top:Vp.y,left:Vp.x,right:Vp.x,bottom:Vp.y,width:0,height:0})}:bt,popperRef:wr,open:bt?jt:!1,id:hn,transition:!0},ge,re,{popperOptions:ke,children:({TransitionProps:He})=>S.jsx(Ve,O({timeout:at.transitions.duration.shorter},He,je,{children:S.jsxs(Tt,O({},Ae,{children:[it,z?S.jsx(oe,O({},Je,{ref:Et})):null]}))}))}))]})});function FB(e){return Ze("MuiSpeedDialAction",e)}const zB=rt("MuiSpeedDialAction",["fab","fabClosed","staticTooltip","staticTooltipClosed","staticTooltipLabel","tooltipPlacementLeft","tooltipPlacementRight"]),BB=["className","delay","FabProps","icon","id","open","TooltipClasses","tooltipOpen","tooltipPlacement","tooltipTitle"],UB=e=>{const{open:t,tooltipPlacement:n,classes:r}=e,i={fab:["fab",!t&&"fabClosed"],staticTooltip:["staticTooltip",`tooltipPlacement${ye(n)}`,!t&&"staticTooltipClosed"],staticTooltipLabel:["staticTooltipLabel"]};return ot(i,FB,r)},HB=he(Fb,{name:"MuiSpeedDialAction",slot:"Fab",skipVariantsResolver:!1,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.fab,!n.open&&t.fabClosed]}})(({theme:e,ownerState:t})=>O({margin:8,color:(e.vars||e).palette.text.secondary,backgroundColor:(e.vars||e).palette.background.paper,"&:hover":{backgroundColor:e.vars?e.vars.palette.SpeedDialAction.fabHoverBg:mg(e.palette.background.paper,.15)},transition:`${e.transitions.create("transform",{duration:e.transitions.duration.shorter})}, opacity 0.8s`,opacity:1},!t.open&&{opacity:0,transform:"scale(0)"})),WB=he("span",{name:"MuiSpeedDialAction",slot:"StaticTooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.staticTooltip,!n.open&&t.staticTooltipClosed,t[`tooltipPlacement${ye(n.tooltipPlacement)}`]]}})(({theme:e,ownerState:t})=>({position:"relative",display:"flex",alignItems:"center",[`& .${zB.staticTooltipLabel}`]:O({transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.shorter}),opacity:1},!t.open&&{opacity:0,transform:"scale(0.5)"},t.tooltipPlacement==="left"&&{transformOrigin:"100% 50%",right:"100%",marginRight:8},t.tooltipPlacement==="right"&&{transformOrigin:"0% 50%",left:"100%",marginLeft:8})})),GB=he("span",{name:"MuiSpeedDialAction",slot:"StaticTooltipLabel",overridesResolver:(e,t)=>t.staticTooltipLabel})(({theme:e})=>O({position:"absolute"},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.paper,borderRadius:(e.vars||e).shape.borderRadius,boxShadow:(e.vars||e).shadows[1],color:(e.vars||e).palette.text.secondary,padding:"4px 16px",wordBreak:"keep-all"})),KB=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiSpeedDialAction"}),{className:i,delay:a=0,FabProps:u={},icon:f,id:p,open:h,TooltipClasses:g,tooltipOpen:b=!1,tooltipPlacement:x="left",tooltipTitle:k}=r,E=Oe(r,BB),w=O({},r,{tooltipPlacement:x}),T=UB(w),[P,I]=R.useState(b),D=()=>{I(!1)},M=()=>{I(!0)},L={transitionDelay:`${a}ms`},A=S.jsx(HB,O({size:"small",className:Pe(T.fab,i),tabIndex:-1,role:"menuitem",ownerState:w},u,{style:O({},L,u.style),children:f}));return b?S.jsxs(WB,O({id:p,ref:n,className:T.staticTooltip,ownerState:w},E,{children:[S.jsx(GB,{style:L,id:`${p}-label`,className:T.staticTooltipLabel,ownerState:w,children:k}),R.cloneElement(A,{"aria-labelledby":`${p}-label`})]})):(!h&&P&&I(!1),S.jsx(jB,O({id:p,ref:n,title:k,placement:x,onClose:D,onOpen:M,open:h&&P,classes:g},E,{children:A})))}),VB=on(S.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");function XB(e){return Ze("MuiSpeedDialIcon",e)}const Ou=rt("MuiSpeedDialIcon",["root","icon","iconOpen","iconWithOpenIconOpen","openIcon","openIconOpen"]),qB=["className","icon","open","openIcon"],YB=e=>{const{classes:t,open:n,openIcon:r}=e;return ot({root:["root"],icon:["icon",n&&"iconOpen",r&&n&&"iconWithOpenIconOpen"],openIcon:["openIcon",n&&"openIconOpen"]},XB,t)},QB=he("span",{name:"MuiSpeedDialIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ou.icon}`]:t.icon},{[`& .${Ou.icon}`]:n.open&&t.iconOpen},{[`& .${Ou.icon}`]:n.open&&n.openIcon&&t.iconWithOpenIconOpen},{[`& .${Ou.openIcon}`]:t.openIcon},{[`& .${Ou.openIcon}`]:n.open&&t.openIconOpen},t.root]}})(({theme:e,ownerState:t})=>({height:24,[`& .${Ou.icon}`]:O({transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short})},t.open&&O({transform:"rotate(45deg)"},t.openIcon&&{opacity:0})),[`& .${Ou.openIcon}`]:O({position:"absolute",transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short}),opacity:0,transform:"rotate(-45deg)"},t.open&&{transform:"rotate(0deg)",opacity:1})})),NR=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiSpeedDialIcon"}),{className:i,icon:a,openIcon:u}=r,f=Oe(r,qB),p=r,h=YB(p);function g(b,x){return R.isValidElement(b)?R.cloneElement(b,{className:x}):b}return S.jsxs(QB,O({className:Pe(h.root,i),ref:n,ownerState:p},f,{children:[u?g(u,h.openIcon):null,a?g(a,h.icon):S.jsx(VB,{className:h.icon})]}))});NR.muiName="SpeedDialIcon";function JB(e){return Ze("MuiSwitch",e)}const xo=rt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),ZB=["className","color","edge","size","sx"],e9=e=>{const{classes:t,edge:n,size:r,color:i,checked:a,disabled:u}=e,f={root:["root",n&&`edge${ye(n)}`,`size${ye(r)}`],switchBase:["switchBase",`color${ye(i)}`,a&&"checked",u&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},p=ot(f,JB,t);return O({},t,p)},t9=he("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ye(n.edge)}`],t[`size${ye(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${xo.thumb}`]:{width:16,height:16},[`& .${xo.switchBase}`]:{padding:4,[`&.${xo.checked}`]:{transform:"translateX(16px)"}}}}]}),n9=he(Ab,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${xo.input}`]:t.input},n.color!=="default"&&t[`color${ye(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${xo.checked}`]:{transform:"translateX(20px)"},[`&.${xo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${xo.checked} + .${xo.track}`]:{opacity:.5},[`&.${xo.disabled} + .${xo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${xo.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ht(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${xo.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ht(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${xo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Rp(e.palette[t].main,.62):Ep(e.palette[t].main,.55)}`}},[`&.${xo.checked} + .${xo.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),r9=he("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),o9=he("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),i9=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiSwitch"}),{className:i,color:a="primary",edge:u=!1,size:f="medium",sx:p}=r,h=Oe(r,ZB),g=O({},r,{color:a,edge:u,size:f}),b=e9(g),x=S.jsx(o9,{className:b.thumb,ownerState:g});return S.jsxs(t9,{className:Pe(b.root,i),sx:p,ownerState:g,children:[S.jsx(n9,O({type:"checkbox",icon:x,checkedIcon:x,ref:n,ownerState:g},h,{classes:O({},b,{root:b.switchBase})})),S.jsx(r9,{className:b.track,ownerState:g})]})});function s9(e){return Ze("MuiTab",e)}const Rl=rt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),a9=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],l9=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:a,label:u,selected:f,disabled:p}=e,h={root:["root",a&&u&&"labelIcon",`textColor${ye(n)}`,r&&"fullWidth",i&&"wrapped",f&&"selected",p&&"disabled"],iconWrapper:["iconWrapper"]};return ot(h,s9,t)},u9=he(di,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${ye(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Rl.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>O({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Rl.iconWrapper}`]:O({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Rl.selected}`]:{opacity:1},[`&.${Rl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Rl.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Rl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Rl.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Rl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),$R=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiTab"}),{className:i,disabled:a=!1,disableFocusRipple:u=!1,fullWidth:f,icon:p,iconPosition:h="top",indicator:g,label:b,onChange:x,onClick:k,onFocus:E,selected:w,selectionFollowsFocus:T,textColor:P="inherit",value:I,wrapped:D=!1}=r,M=Oe(r,a9),L=O({},r,{disabled:a,disableFocusRipple:u,selected:w,icon:!!p,iconPosition:h,label:!!b,fullWidth:f,textColor:P,wrapped:D}),A=l9(L),z=p&&b&&R.isValidElement(p)?R.cloneElement(p,{className:Pe(A.iconWrapper,p.props.className)}):p,G=X=>{!w&&x&&x(X,I),k&&k(X)},q=X=>{T&&!w&&x&&x(X,I),E&&E(X)};return S.jsxs(u9,O({focusRipple:!u,className:Pe(A.root,i),ref:n,role:"tab","aria-selected":w,disabled:a,onClick:G,onFocus:q,ownerState:L,tabIndex:w?0:-1},M,{children:[h==="top"||h==="start"?S.jsxs(R.Fragment,{children:[z,b]}):S.jsxs(R.Fragment,{children:[b,z]}),g]}))}),MR=R.createContext();function c9(e){return Ze("MuiTable",e)}rt("MuiTable",["root","stickyHeader"]);const d9=["className","component","padding","size","stickyHeader"],f9=e=>{const{classes:t,stickyHeader:n}=e;return ot({root:["root",n&&"stickyHeader"]},c9,t)},p9=he("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>O({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":O({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),LR="table",h9=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiTable"}),{className:i,component:a=LR,padding:u="normal",size:f="medium",stickyHeader:p=!1}=r,h=Oe(r,d9),g=O({},r,{component:a,padding:u,size:f,stickyHeader:p}),b=f9(g),x=R.useMemo(()=>({padding:u,size:f,stickyHeader:p}),[u,f,p]);return S.jsx(MR.Provider,{value:x,children:S.jsx(p9,O({as:a,role:a===LR?null:"table",ref:n,className:Pe(b.root,i),ownerState:g},h))})}),Xp=R.createContext();function m9(e){return Ze("MuiTableBody",e)}rt("MuiTableBody",["root"]);const g9=["className","component"],v9=e=>{const{classes:t}=e;return ot({root:["root"]},m9,t)},b9=he("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),y9={variant:"body"},jR="tbody",x9=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiTableBody"}),{className:i,component:a=jR}=r,u=Oe(r,g9),f=O({},r,{component:a}),p=v9(f);return S.jsx(Xp.Provider,{value:y9,children:S.jsx(b9,O({className:Pe(p.root,i),as:a,ref:n,role:a===jR?null:"rowgroup",ownerState:f},u))})});function S9(e){return Ze("MuiTableCell",e)}const w9=rt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),_9=["align","className","component","padding","scope","size","sortDirection","variant"],C9=e=>{const{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:u}=e,f={root:["root",n,u&&"stickyHeader",r!=="inherit"&&`align${ye(r)}`,i!=="normal"&&`padding${ye(i)}`,`size${ye(a)}`]};return ot(f,S9,t)},E9=he("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ye(n.size)}`],n.padding!=="normal"&&t[`padding${ye(n.padding)}`],n.align!=="inherit"&&t[`align${ye(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>O({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
196
+ ${e.palette.mode==="light"?Rp(Ht(e.palette.divider,1),.88):Ep(Ht(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${w9.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Oa=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:u,padding:f,scope:p,size:h,sortDirection:g,variant:b}=r,x=Oe(r,_9),k=R.useContext(MR),E=R.useContext(Xp),w=E&&E.variant==="head";let T;u?T=u:T=w?"th":"td";let P=p;T==="td"?P=void 0:!P&&w&&(P="col");const I=b||E&&E.variant,D=O({},r,{align:i,component:T,padding:f||(k&&k.padding?k.padding:"normal"),size:h||(k&&k.size?k.size:"medium"),sortDirection:g,stickyHeader:I==="head"&&k&&k.stickyHeader,variant:I}),M=C9(D);let L=null;return g&&(L=g==="asc"?"ascending":"descending"),S.jsx(E9,O({as:T,ref:n,className:Pe(M.root,a),"aria-sort":L,scope:P,ownerState:D},x))});function R9(e){return Ze("MuiTableContainer",e)}rt("MuiTableContainer",["root"]);const k9=["className","component"],T9=e=>{const{classes:t}=e;return ot({root:["root"]},R9,t)},O9=he("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),P9=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=r,u=Oe(r,k9),f=O({},r,{component:a}),p=T9(f);return S.jsx(O9,O({ref:n,as:a,className:Pe(p.root,i),ownerState:f},u))});function I9(e){return Ze("MuiTableFooter",e)}rt("MuiTableFooter",["root"]);const A9=["className","component"],D9=e=>{const{classes:t}=e;return ot({root:["root"]},I9,t)},N9=he("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),$9={variant:"footer"},FR="tfoot",M9=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiTableFooter"}),{className:i,component:a=FR}=r,u=Oe(r,A9),f=O({},r,{component:a}),p=D9(f);return S.jsx(Xp.Provider,{value:$9,children:S.jsx(N9,O({as:a,className:Pe(p.root,i),ref:n,role:a===FR?null:"rowgroup",ownerState:f},u))})});function L9(e){return Ze("MuiTableHead",e)}rt("MuiTableHead",["root"]);const j9=["className","component"],F9=e=>{const{classes:t}=e;return ot({root:["root"]},L9,t)},z9=he("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),B9={variant:"head"},zR="thead",U9=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiTableHead"}),{className:i,component:a=zR}=r,u=Oe(r,j9),f=O({},r,{component:a}),p=F9(f);return S.jsx(Xp.Provider,{value:B9,children:S.jsx(z9,O({as:a,className:Pe(p.root,i),ref:n,role:a===zR?null:"rowgroup",ownerState:f},u))})});function H9(e){return Ze("MuiToolbar",e)}rt("MuiToolbar",["root","gutters","regular","dense"]);const W9=["className","component","disableGutters","variant"],G9=e=>{const{classes:t,disableGutters:n,variant:r}=e;return ot({root:["root",!n&&"gutters",r]},H9,t)},K9=he("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>O({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),V9=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:u=!1,variant:f="regular"}=r,p=Oe(r,W9),h=O({},r,{component:a,disableGutters:u,variant:f}),g=G9(h);return S.jsx(K9,O({as:a,className:Pe(g.root,i),ref:n,ownerState:h},p))}),X9=on(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),q9=on(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Y9(e){return Ze("MuiTableRow",e)}const BR=rt("MuiTableRow",["root","selected","hover","head","footer"]),Q9=["className","component","hover","selected"],J9=e=>{const{classes:t,selected:n,hover:r,head:i,footer:a}=e;return ot({root:["root",n&&"selected",r&&"hover",i&&"head",a&&"footer"]},Y9,t)},Z9=he("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${BR.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${BR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ht(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ht(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),UR="tr",dd=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiTableRow"}),{className:i,component:a=UR,hover:u=!1,selected:f=!1}=r,p=Oe(r,Q9),h=R.useContext(Xp),g=O({},r,{component:a,hover:u,selected:f,head:h&&h.variant==="head",footer:h&&h.variant==="footer"}),b=J9(g);return S.jsx(Z9,O({as:a,ref:n,className:Pe(b.root,i),role:a===UR?null:"row",ownerState:g},p))}),e8=on(S.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function t8(e){return Ze("MuiTableSortLabel",e)}const Zb=rt("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),n8=["active","children","className","direction","hideSortIcon","IconComponent"],r8=e=>{const{classes:t,direction:n,active:r}=e,i={root:["root",r&&"active"],icon:["icon",`iconDirection${ye(n)}`]};return ot(i,t8,t)},o8=he(di,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${Zb.icon}`]:{opacity:.5}},[`&.${Zb.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${Zb.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),i8=he("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${ye(n.direction)}`]]}})(({theme:e,ownerState:t})=>O({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),s8=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiTableSortLabel"}),{active:i=!1,children:a,className:u,direction:f="asc",hideSortIcon:p=!1,IconComponent:h=e8}=r,g=Oe(r,n8),b=O({},r,{active:i,direction:f,hideSortIcon:p,IconComponent:h}),x=r8(b);return S.jsxs(o8,O({className:Pe(x.root,u),component:"span",disableRipple:!0,ownerState:b,ref:n},g,{children:[a,p&&!i?null:S.jsx(i8,{as:h,className:Pe(x.icon),ownerState:b})]}))});function a8(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function l8(e,t,n,r={},i=()=>{}){const{ease:a=a8,duration:u=300}=r;let f=null;const p=t[e];let h=!1;const g=()=>{h=!0},b=x=>{if(h){i(new Error("Animation cancelled"));return}f===null&&(f=x);const k=Math.min(1,(x-f)/u);if(t[e]=a(k)*(n-p)+p,k>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(b)};return p===n?(i(new Error("Element already at target position")),g):(requestAnimationFrame(b),g)}const u8=["onChange"],c8={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function d8(e){const{onChange:t}=e,n=Oe(e,u8),r=R.useRef(),i=R.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return Mo(()=>{const u=xp(()=>{const p=r.current;a(),p!==r.current&&t(r.current)}),f=ds(i.current);return f.addEventListener("resize",u),()=>{u.clear(),f.removeEventListener("resize",u)}},[t]),R.useEffect(()=>{a(),t(r.current)},[t]),S.jsx("div",O({style:c8,ref:i},n))}function f8(e){return Ze("MuiTabScrollButton",e)}const p8=rt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),h8=["className","slots","slotProps","direction","orientation","disabled"],m8=e=>{const{classes:t,orientation:n,disabled:r}=e;return ot({root:["root",n,r&&"disabled"]},f8,t)},g8=he(di,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>O({width:40,flexShrink:0,opacity:.8,[`&.${p8.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),v8=R.forwardRef(function(t,n){var r,i;const a=st({props:t,name:"MuiTabScrollButton"}),{className:u,slots:f={},slotProps:p={},direction:h}=a,g=Oe(a,h8),b=wp(),x=O({isRtl:b},a),k=m8(x),E=(r=f.StartScrollButtonIcon)!=null?r:X9,w=(i=f.EndScrollButtonIcon)!=null?i:q9,T=vo({elementType:E,externalSlotProps:p.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),P=vo({elementType:w,externalSlotProps:p.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return S.jsx(g8,O({component:"div",className:Pe(k.root,u),ref:n,role:null,ownerState:x,tabIndex:null},g,{children:h==="left"?S.jsx(E,O({},T)):S.jsx(w,O({},P))}))});function b8(e){return Ze("MuiTabs",e)}const ey=rt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),y8=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],HR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,WR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Kg=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const a=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||a)i=n(e,i);else{i.focus();return}}},x8=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:a,centered:u,scrollButtonsHideMobile:f,classes:p}=e;return ot({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",u&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",f&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},b8,p)},S8=he("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ey.scrollButtons}`]:t.scrollButtons},{[`& .${ey.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>O({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${ey.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),w8=he("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>O({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),_8=he("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>O({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),C8=he("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>O({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),E8=he(d8)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),GR={},R8=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiTabs"}),i=Lo(),a=wp(),{"aria-label":u,"aria-labelledby":f,action:p,centered:h=!1,children:g,className:b,component:x="div",allowScrollButtonsMobile:k=!1,indicatorColor:E="primary",onChange:w,orientation:T="horizontal",ScrollButtonComponent:P=v8,scrollButtons:I="auto",selectionFollowsFocus:D,slots:M={},slotProps:L={},TabIndicatorProps:A={},TabScrollButtonProps:z={},textColor:G="primary",value:q,variant:X="standard",visibleScrollbar:ne=!1}=r,Q=Oe(r,y8),Z=X==="scrollable",V=T==="vertical",ce=V?"scrollTop":"scrollLeft",ue=V?"top":"left",se=V?"bottom":"right",U=V?"clientHeight":"clientWidth",ae=V?"height":"width",Se=O({},r,{component:x,allowScrollButtonsMobile:k,indicatorColor:E,orientation:T,vertical:V,scrollButtons:I,textColor:G,variant:X,visibleScrollbar:ne,fixed:!Z,hideScrollbar:Z&&!ne,scrollableX:Z&&!V,scrollableY:Z&&V,centered:h&&!Z,scrollButtonsHideMobile:!k}),H=x8(Se),be=vo({elementType:M.StartScrollButtonIcon,externalSlotProps:L.startScrollButtonIcon,ownerState:Se}),Ke=vo({elementType:M.EndScrollButtonIcon,externalSlotProps:L.endScrollButtonIcon,ownerState:Se}),[Ie,$e]=R.useState(!1),[Ee,Ye]=R.useState(GR),[Ce,Fe]=R.useState(!1),[mt,it]=R.useState(!1),[Qe,vt]=R.useState(!1),[wt,yt]=R.useState({overflow:"hidden",scrollbarWidth:0}),at=new Map,Wt=R.useRef(null),bt=R.useRef(null),sn=()=>{const Be=Wt.current;let tt;if(Be){const Ft=Be.getBoundingClientRect();tt={clientWidth:Be.clientWidth,scrollLeft:Be.scrollLeft,scrollTop:Be.scrollTop,scrollLeftNormalized:b5(Be,a?"rtl":"ltr"),scrollWidth:Be.scrollWidth,top:Ft.top,bottom:Ft.bottom,left:Ft.left,right:Ft.right}}let At;if(Be&&q!==!1){const Ft=bt.current.children;if(Ft.length>0){const Gt=Ft[at.get(q)];At=Gt?Gt.getBoundingClientRect():null}}return{tabsMeta:tt,tabMeta:At}},Dt=Nr(()=>{const{tabsMeta:Be,tabMeta:tt}=sn();let At=0,Ft;if(V)Ft="top",tt&&Be&&(At=tt.top-Be.top+Be.scrollTop);else if(Ft=a?"right":"left",tt&&Be){const pn=a?Be.scrollLeftNormalized+Be.clientWidth-Be.scrollWidth:Be.scrollLeft;At=(a?-1:1)*(tt[Ft]-Be[Ft]+pn)}const Gt={[Ft]:At,[ae]:tt?tt[ae]:0};if(isNaN(Ee[Ft])||isNaN(Ee[ae]))Ye(Gt);else{const pn=Math.abs(Ee[Ft]-Gt[Ft]),cn=Math.abs(Ee[ae]-Gt[ae]);(pn>=1||cn>=1)&&Ye(Gt)}}),Et=(Be,{animation:tt=!0}={})=>{tt?l8(ce,Wt.current,Be,{duration:i.transitions.duration.standard}):Wt.current[ce]=Be},en=Be=>{let tt=Wt.current[ce];V?tt+=Be:(tt+=Be*(a?-1:1),tt*=a&&dC()==="reverse"?-1:1),Et(tt)},Kt=()=>{const Be=Wt.current[U];let tt=0;const At=Array.from(bt.current.children);for(let Ft=0;Ft<At.length;Ft+=1){const Gt=At[Ft];if(tt+Gt[U]>Be){Ft===0&&(tt=Be);break}tt+=Gt[U]}return tt},Lt=()=>{en(-1*Kt())},an=()=>{en(Kt())},Tn=R.useCallback(Be=>{yt({overflow:null,scrollbarWidth:Be})},[]),fn=()=>{const Be={};Be.scrollbarSizeListener=Z?S.jsx(E8,{onChange:Tn,className:Pe(H.scrollableX,H.hideScrollbar)}):null;const At=Z&&(I==="auto"&&(Ce||mt)||I===!0);return Be.scrollButtonStart=At?S.jsx(P,O({slots:{StartScrollButtonIcon:M.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:be},orientation:T,direction:a?"right":"left",onClick:Lt,disabled:!Ce},z,{className:Pe(H.scrollButtons,z.className)})):null,Be.scrollButtonEnd=At?S.jsx(P,O({slots:{EndScrollButtonIcon:M.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ke},orientation:T,direction:a?"left":"right",onClick:an,disabled:!mt},z,{className:Pe(H.scrollButtons,z.className)})):null,Be},pt=Nr(Be=>{const{tabsMeta:tt,tabMeta:At}=sn();if(!(!At||!tt)){if(At[ue]<tt[ue]){const Ft=tt[ce]+(At[ue]-tt[ue]);Et(Ft,{animation:Be})}else if(At[se]>tt[se]){const Ft=tt[ce]+(At[se]-tt[se]);Et(Ft,{animation:Be})}}}),We=Nr(()=>{Z&&I!==!1&&vt(!Qe)});R.useEffect(()=>{const Be=xp(()=>{Wt.current&&Dt()});let tt;const At=pn=>{pn.forEach(cn=>{cn.removedNodes.forEach(Dn=>{var Ln;(Ln=tt)==null||Ln.unobserve(Dn)}),cn.addedNodes.forEach(Dn=>{var Ln;(Ln=tt)==null||Ln.observe(Dn)})}),Be(),We()},Ft=ds(Wt.current);Ft.addEventListener("resize",Be);let Gt;return typeof ResizeObserver<"u"&&(tt=new ResizeObserver(Be),Array.from(bt.current.children).forEach(pn=>{tt.observe(pn)})),typeof MutationObserver<"u"&&(Gt=new MutationObserver(At),Gt.observe(bt.current,{childList:!0})),()=>{var pn,cn;Be.clear(),Ft.removeEventListener("resize",Be),(pn=Gt)==null||pn.disconnect(),(cn=tt)==null||cn.disconnect()}},[Dt,We]),R.useEffect(()=>{const Be=Array.from(bt.current.children),tt=Be.length;if(typeof IntersectionObserver<"u"&&tt>0&&Z&&I!==!1){const At=Be[0],Ft=Be[tt-1],Gt={root:Wt.current,threshold:.99},pn=$r=>{Fe(!$r[0].isIntersecting)},cn=new IntersectionObserver(pn,Gt);cn.observe(At);const Dn=$r=>{it(!$r[0].isIntersecting)},Ln=new IntersectionObserver(Dn,Gt);return Ln.observe(Ft),()=>{cn.disconnect(),Ln.disconnect()}}},[Z,I,Qe,g==null?void 0:g.length]),R.useEffect(()=>{$e(!0)},[]),R.useEffect(()=>{Dt()}),R.useEffect(()=>{pt(GR!==Ee)},[pt,Ee]),R.useImperativeHandle(p,()=>({updateIndicator:Dt,updateScrollButtons:We}),[Dt,We]);const jt=S.jsx(C8,O({},A,{className:Pe(H.indicator,A.className),ownerState:Se,style:O({},Ee,A.style)}));let hn=0;const Mn=R.Children.map(g,Be=>{if(!R.isValidElement(Be))return null;const tt=Be.props.value===void 0?hn:Be.props.value;at.set(tt,hn);const At=tt===q;return hn+=1,R.cloneElement(Be,O({fullWidth:X==="fullWidth",indicator:At&&!Ie&&jt,selected:At,selectionFollowsFocus:D,onChange:w,textColor:G,value:tt},hn===1&&q===!1&&!Be.props.tabIndex?{tabIndex:0}:{}))}),et=Be=>{const tt=bt.current,At=kr(tt).activeElement;if(At.getAttribute("role")!=="tab")return;let Gt=T==="horizontal"?"ArrowLeft":"ArrowUp",pn=T==="horizontal"?"ArrowRight":"ArrowDown";switch(T==="horizontal"&&a&&(Gt="ArrowRight",pn="ArrowLeft"),Be.key){case Gt:Be.preventDefault(),Kg(tt,At,WR);break;case pn:Be.preventDefault(),Kg(tt,At,HR);break;case"Home":Be.preventDefault(),Kg(tt,null,HR);break;case"End":Be.preventDefault(),Kg(tt,null,WR);break}},Pt=fn();return S.jsxs(S8,O({className:Pe(H.root,b),ownerState:Se,ref:n,as:x},Q,{children:[Pt.scrollButtonStart,Pt.scrollbarSizeListener,S.jsxs(w8,{className:H.scroller,ownerState:Se,style:{overflow:wt.overflow,[V?`margin${a?"Left":"Right"}`:"marginBottom"]:ne?void 0:-wt.scrollbarWidth},ref:Wt,children:[S.jsx(_8,{"aria-label":u,"aria-labelledby":f,"aria-orientation":T==="vertical"?"vertical":null,className:H.flexContainer,ownerState:Se,onKeyDown:et,ref:bt,role:"tablist",children:Mn}),Ie&&jt]}),Pt.scrollButtonEnd]}))});function k8(e){return Ze("MuiTextField",e)}rt("MuiTextField",["root"]);const T8=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],O8={standard:Wb,filled:zb,outlined:Yb},P8=e=>{const{classes:t}=e;return ot({root:["root"]},k8,t)},I8=he(jg,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qp=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:u,className:f,color:p="primary",defaultValue:h,disabled:g=!1,error:b=!1,FormHelperTextProps:x,fullWidth:k=!1,helperText:E,id:w,InputLabelProps:T,inputProps:P,InputProps:I,inputRef:D,label:M,maxRows:L,minRows:A,multiline:z=!1,name:G,onBlur:q,onChange:X,onFocus:ne,placeholder:Q,required:Z=!1,rows:V,select:ce=!1,SelectProps:ue,type:se,value:U,variant:ae="outlined"}=r,Se=Oe(r,T8),H=O({},r,{autoFocus:a,color:p,disabled:g,error:b,fullWidth:k,multiline:z,required:Z,select:ce,variant:ae}),be=P8(H),Ke={};ae==="outlined"&&(T&&typeof T.shrink<"u"&&(Ke.notched=T.shrink),Ke.label=M),ce&&((!ue||!ue.native)&&(Ke.id=void 0),Ke["aria-describedby"]=void 0);const Ie=Hc(w),$e=E&&Ie?`${Ie}-helper-text`:void 0,Ee=M&&Ie?`${Ie}-label`:void 0,Ye=O8[ae],Ce=S.jsx(Ye,O({"aria-describedby":$e,autoComplete:i,autoFocus:a,defaultValue:h,fullWidth:k,multiline:z,name:G,rows:V,maxRows:L,minRows:A,type:se,value:U,id:Ie,inputRef:D,onBlur:q,onChange:X,onFocus:ne,placeholder:Q,inputProps:P},Ke,I));return S.jsxs(I8,O({className:Pe(be.root,f),disabled:g,error:b,fullWidth:k,ref:n,required:Z,color:p,variant:ae,ownerState:H},Se,{children:[M!=null&&M!==""&&S.jsx(Fg,O({htmlFor:Ie,id:Ee},T,{children:M})),ce?S.jsx(cd,O({"aria-describedby":$e,id:Ie,labelId:Ee,value:U,input:Ce},ue,{children:u})):Ce,E&&S.jsx(WF,O({id:$e},x,{children:E}))]}))});class A8{constructor(){}getComponents(){return this.componentMap({})}getComponent(t){return this.getComponents()[t]}getRoutes(){return this.cmsRoutes([],this.getComponents(),Oc().make())}getMenuItems(){return this.menuItems([],Oc().make())}getModelFormProps(t){return this.wireModelFormProps({},t)}getMassActions(t,n){return this[`mass${ve.upperFirst(ve.camelCase(t.getSchemaName()))}Actions`](this.massActions([],t,n),t,n)}getInstanceActions(t,n){return this[`instance${ve.upperFirst(ve.camelCase(t.getSchemaName()))}Actions`](this.instanceActions([],t,n),t,n)}getStaticActions(t,n){return this[`static${ve.upperFirst(ve.camelCase(t.getSchemaName()))}Actions`](this.staticActions([],t,n),t,n)}}const D8=Vf(A8),Yp=e=>!(ve.isUndefined(e)||ve.isNull(e)||ve.isEmpty(e));class N8{getInputType(t){switch(t){case"int":case"float":case"number":return"number";case"date":return"date";case"datetime":case"timestamp":return"datetime-local";case"autocomplete":return"autocomplete";case"bool":case"boolean":return"boolean";default:return"text"}}getOperators(){return dl("luminix.admin.filter.operators")}getMatchingOperators(t){return this.getOperators().filter(n=>!t.is_relation&&["relation"].includes(n)||["number","date"].includes(this.getInputType(t.type))&&["like","notLike"].includes(n)?!1:n).map(n=>{let r=n;switch(n){case"equals":r="==";break;case"notEquals":r="!=";break;case"greaterThan":r=">";break;case"greaterThanOrEquals":r=">=";break;case"lessThan":r="<";break;case"lessThanOrEquals":r="<=";break}return{key:n,label:r}})}getFilterableColumns(t){const{attributes:n=[],relations:r={}}=t.getSchema();return[...n.filter(i=>!i.hidden).map(i=>{let a=i.phpType??"string";return!ve.isNull(i.cast)&&!ve.isEmpty(i.cast)&&(a=i.cast),{key:i.name,label:ve.upperFirst(i.name).replaceAll("_"," "),type:a,is_relation:!1}}),...Object.entries(r??{}).reduce((i,[a])=>[...i,{key:a,label:ve.upperFirst(a).replaceAll("_"," "),type:"autocomplete",is_relation:!0}],[])]}checkIfCanApplyFilters(t){return!!(t.length===0||t.map(r=>{if(!Yp(r.key)||!Yp(r.operator))return!0;if(["boolean"].includes(this.getInputType(r.type))){if(ve.isUndefined(r.value)||ve.isNull(r.value))return!0}else if(!Yp(r.value))return!0;return!!(Array.isArray(r.value)&&["between","notBetween"].includes(r.operator)&&(!Yp(r.value[0])||!Yp(r.value[1])))}).includes(!0))}}const $8=Vf(N8),M8={open:!1,setOpen:()=>{},layout:{},isBreakpointUp:!1,currentPage:"",setCurrentPage:()=>{},showSearch:!1,setShowSearch:()=>{},showBackButton:!1,setShowBackButton:()=>{}},zs=xe.createContext(M8),ty=document.title,L8=({children:e})=>{const[t,n]=xe.useState(!1),[r,i]=xe.useState(""),[a,u]=xe.useState(!1),[f,p]=xe.useState(!1),h=dl("luminix.cms.layout",{}),g=dg(x=>x.breakpoints.up((h==null?void 0:h.breakpoint)||"md")),b={open:t,setOpen:n,layout:h,isBreakpointUp:g,currentPage:r,setCurrentPage:i,showSearch:a,setShowSearch:u,showBackButton:f,setShowBackButton:p};return xe.useEffect(()=>(document.title=r?`${r} | ${dl("app.name",ty)}`:dl("app.name",ty),()=>{document.title=ty}),[r]),S.jsx(zs.Provider,{value:b,children:e})},KR=xe.createContext({Model:null}),ny=({Model:e,children:t})=>S.jsx(KR.Provider,{value:{Model:e},children:t}),j8=(...e)=>{console!=null&&console.warn&&(Pu(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},VR={},ry=(...e)=>{Pu(e[0])&&VR[e[0]]||(Pu(e[0])&&(VR[e[0]]=new Date),j8(...e))},XR=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},qR=(e,t,n)=>{e.loadNamespaces(t,XR(e,n))},YR=(e,t,n,r)=>{Pu(n)&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,XR(e,r))},F8=(e,t,n={})=>!t.languages||!t.languages.length?(ry("i18n.languages were undefined or empty",t.languages),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,i)=>{var a;if(((a=n.bindI18n)==null?void 0:a.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!i(r.isLanguageChangingTo,e))return!1}}),Pu=e=>typeof e=="string",z8=e=>typeof e=="object"&&e!==null,B8=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,U8={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},H8=e=>U8[e];let oy={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(B8,H8)};const W8=(e={})=>{oy={...oy,...e}},G8=()=>oy;let QR;const K8=e=>{QR=e},V8=()=>QR,X8={type:"3rdParty",init(e){W8(e.options.react),K8(e)}},q8=R.createContext();class Y8{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{var r;(r=this.usedNamespaces)[n]??(r[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Q8=(e,t)=>{const n=R.useRef();return R.useEffect(()=>{n.current=e},[e,t]),n.current},JR=(e,t,n,r)=>e.getFixedT(t,n,r),J8=(e,t,n,r)=>R.useCallback(JR(e,t,n,r),[e,t,n,r]),oo=(e,t={})=>{var M,L,A,z;const{i18n:n}=t,{i18n:r,defaultNS:i}=R.useContext(q8)||{},a=n||r||V8();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new Y8),!a){ry("You will need to pass in an i18next instance by using initReactI18next");const G=(X,ne)=>Pu(ne)?ne:z8(ne)&&Pu(ne.defaultValue)?ne.defaultValue:Array.isArray(X)?X[X.length-1]:X,q=[G,{},!1];return q.t=G,q.i18n={},q.ready=!1,q}(M=a.options.react)!=null&&M.wait&&ry("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const u={...G8(),...a.options.react,...t},{useSuspense:f,keyPrefix:p}=u;let h=i||((L=a.options)==null?void 0:L.defaultNS);h=Pu(h)?[h]:h||["translation"],(z=(A=a.reportNamespaces).addUsedNamespaces)==null||z.call(A,h);const g=(a.isInitialized||a.initializedStoreOnce)&&h.every(G=>F8(G,a,u)),b=J8(a,t.lng||null,u.nsMode==="fallback"?h:h[0],p),x=()=>b,k=()=>JR(a,t.lng||null,u.nsMode==="fallback"?h:h[0],p),[E,w]=R.useState(x);let T=h.join();t.lng&&(T=`${t.lng}${T}`);const P=Q8(T),I=R.useRef(!0);R.useEffect(()=>{const{bindI18n:G,bindI18nStore:q}=u;I.current=!0,!g&&!f&&(t.lng?YR(a,t.lng,h,()=>{I.current&&w(k)}):qR(a,h,()=>{I.current&&w(k)})),g&&P&&P!==T&&I.current&&w(k);const X=()=>{I.current&&w(k)};return G&&(a==null||a.on(G,X)),q&&(a==null||a.store.on(q,X)),()=>{I.current=!1,a&&(G==null||G.split(" ").forEach(ne=>a.off(ne,X))),q&&a&&q.split(" ").forEach(ne=>a.store.off(ne,X))}},[a,T]),R.useEffect(()=>{I.current&&g&&w(x)},[a,p,g]);const D=[E,a,g];if(D.t=E,D.i18n=a,D.ready=g,g||!g&&!f)return D;throw new Promise(G=>{t.lng?YR(a,t.lng,h,()=>G()):qR(a,h,()=>G())})},ZR=xe.createContext({isOpen:!1,dialog:()=>Promise.reject(new Error("Trying to access DialogContext outside of DialogProvider")),dismissDialog:()=>{},current:void 0});function Z8(e){const[t,n]=xe.useState(e);return xe.useEffect(()=>{e&&n(e)},[e]),e||t}function eU({children:e,...t}){const[{current:n,resolve:r},i]=xe.useState({}),a=Z8(n),u=xe.useCallback(g=>new Promise(b=>{i({current:typeof g=="string"?{message:g}:g,resolve:b})}),[]),{t:f}=oo(),p=()=>{r&&r(!1),i({})},h=()=>{r&&r(!0),i({})};return S.jsxs(ZR.Provider,{value:{isOpen:!!n,current:n,dialog:u,dismissDialog:p},children:[e,S.jsxs(jb,{open:!!n,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",...(n==null?void 0:n.dismissable)??!0?{onClose:p}:{},...t,children:[(a==null?void 0:a.title)&&S.jsx(VE,{id:"alert-dialog-title",children:a.title}),S.jsx(KE,{children:S.jsx(Q4,{id:"alert-dialog-description",children:a==null?void 0:a.message})}),S.jsxs(GE,{children:[(a==null?void 0:a.type)==="confirm"&&S.jsxs(S.Fragment,{children:[S.jsx(mi,{onClick:p,children:(a==null?void 0:a.cancelText)??f("No")}),S.jsx(mi,{onClick:h,autoFocus:!0,children:(a==null?void 0:a.confirmText)??f("Yes")})]}),((a==null?void 0:a.type)??"alert")==="alert"&&S.jsx(mi,{onClick:p,autoFocus:!0,children:(a==null?void 0:a.confirmText)??f("Ok")})]})]})]})}const tU=on(S.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),nU=on(S.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),rU=on(S.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),oU=on(S.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),iU=on(S.jsx("path",{d:"m12 2-5.5 9h11zm0 3.84L13.93 9h-3.87zM17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5m0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5M3 21.5h8v-8H3zm2-6h4v4H5z"}),"CategoryOutlined"),iy=on(S.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),sy=on(S.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),e2=on(S.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),sU=on(S.jsx("path",{d:"M19 5v2h-4V5zM9 5v6H5V5zm10 8v6h-4v-6zM9 17v2H5v-2zM21 3h-8v6h8zM11 3H3v10h8zm10 8h-8v10h8zm-10 4H3v6h8z"}),"DashboardOutlined"),aU=on(S.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),lU=on(S.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),uU=on(S.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),cU=on(S.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),t2=on(S.jsx("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"HighlightOffOutlined"),dU=on(S.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),fU=on(S.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),n2=on(S.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert"),pU=on(S.jsx("path",{d:"M9 13.75c-2.34 0-7 1.17-7 3.5V19h14v-1.75c0-2.33-4.66-3.5-7-3.5M4.34 17c.84-.58 2.87-1.25 4.66-1.25s3.82.67 4.66 1.25zM9 12c1.93 0 3.5-1.57 3.5-3.5S10.93 5 9 5 5.5 6.57 5.5 8.5 7.07 12 9 12m0-5c.83 0 1.5.67 1.5 1.5S9.83 10 9 10s-1.5-.67-1.5-1.5S8.17 7 9 7m7.04 6.81c1.16.84 1.96 1.96 1.96 3.44V19h4v-1.75c0-2.02-3.5-3.17-5.96-3.44M15 12c1.93 0 3.5-1.57 3.5-3.5S16.93 5 15 5c-.54 0-1.04.13-1.5.35.63.89 1 1.98 1 3.15s-.37 2.26-1 3.15c.46.22.96.35 1.5.35"}),"PeopleOutlined"),r2=on(S.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),hU=on(S.jsx("path",{d:"M16 17.01V10h-2v7.01h-3L15 21l4-3.99zM9 3 5 6.99h3V14h2V6.99h3z"}),"SwapVert");function hr(){const{isBreakpointUp:e}=R.useContext(zs);return e}const ay=xe.createContext({isOpen:!1,notify:()=>{},dismissNotification:()=>{},notifications:[],current:void 0,displacement:"8px",setDisplacement:()=>{}}),ly=ho([]),mU=e=>{ly.push(typeof e=="string"?{message:e}:e)},gU=({children:e,autoHideDuration:t=6e3,variant:n,anchorOrigin:r,sx:i,...a})=>{const u=_1(ly),f=hr(),h=Lo().spacing(f?3:1),[g,b]=xe.useState(),[x,k]=xe.useState(h),{vertical:E="bottom"}=r||{},w=(T,P)=>{P!=="clickaway"&&b(void 0)};return xe.useEffect(()=>{if(!g&&u.isNotEmpty()){const T=setTimeout(()=>{b(ly.pull(0)??void 0)},100);return()=>clearTimeout(T)}},[g,u]),S.jsxs(ay.Provider,{value:{isOpen:!!g,notify:mU,dismissNotification:w,notifications:u.all(),current:g,displacement:x,setDisplacement:k},children:[e,S.jsx(bB,{open:!!g,autoHideDuration:t,anchorOrigin:r,onClose:w,sx:{...i,[E]:`${x} !important`},...a,children:g&&S.jsxs(u$,{onClose:w,severity:g.severity,variant:n,sx:{width:"100%"},action:g.actions&&[...g.actions.map(({label:T,callback:P},I)=>S.jsx(mi,{color:"inherit",size:"small",onClick:P,children:T},I)),S.jsx(bo,{"aria-label":"close",color:"inherit",size:"small",onClick:w,children:S.jsx(e2,{})},"close")],children:[g.title&&S.jsx(x$,{children:g.title}),g.message]})})]})},vU=({children:e})=>{const t=dg("(prefers-color-scheme: dark)");return S.jsx(gU,{anchorOrigin:{vertical:"bottom",horizontal:"right"},variant:t?"standard":"filled",children:S.jsx(eU,{children:S.jsx(L8,{children:e})})})},bU=(e,{Layout:t,Dashboard:n,ModelIndex:r,ModelItem:i,Error:a},u)=>[{element:S.jsx(vU,{children:S.jsx(t,{children:S.jsx(g3,{})})}),errorElement:S.jsx(a,{}),children:[{path:"/",name:"luminix.cms.dashboard",element:S.jsx(n,{})},...Object.entries(u).flatMap(([f,p])=>[{path:"/"+ve.kebabCase(p.plural()),name:`luminix.cms.${f}.index`,element:S.jsx(ny,{Model:p,children:S.jsx(yP,{factory:p.query,children:S.jsx(r,{})})})},{path:"/"+ve.kebabCase(p.plural())+"/create",name:`luminix.cms.${f}.item`,element:S.jsx(ny,{Model:p,children:S.jsx(i,{create:!0})})},{path:"/"+ve.kebabCase(p.plural())+"/:id",name:`luminix.cms.${f}.item`,element:S.jsx(ny,{Model:p,children:S.jsx(i,{})})}])]}];function uy(e){const{setCurrentPage:t}=xe.useContext(zs);xe.useEffect(()=>(t(e),()=>{t("")}),[e,t])}const yU=()=>{const{t:e}=oo();return uy(e("Dashboard")),S.jsx(S.Fragment,{children:"Dashboard"})},xU=({error:e})=>S.jsxs("div",{children:[S.jsx("h1",{children:"Ops..."}),S.jsx("p",{children:"Something went wrong"}),Ut().hasDebugModeEnabled()&&e&&S.jsx(S.Fragment,{children:S.jsxs("pre",{style:{whiteSpace:"pre-wrap"},children:[e.message,S.jsx("br",{}),e.stack]})})]});function gi(e,t){const{layout:n}=R.useContext(zs);return R.useMemo(()=>ve.get(n,e,t),[n,e,t])}const SU=he("div")(({theme:e})=>({padding:e.spacing(0,1),...e.mixins.toolbar})),wU=({children:e,slotProps:t,...n})=>{const{DesktopPageTitle:r,["Layout.AppBar"]:i,["Layout.Drawer"]:a}=Ut("cms").getComponents(),u=gi("appBar.height"),{AppBar:f,Drawer:p,main:h}=t||{};return S.jsxs(fs,{sx:{display:"flex"},...n,children:[S.jsx(i,{position:"fixed",...f}),S.jsx(a,{...p}),S.jsxs(fs,{component:"main",sx:{flexGrow:1},...h,children:[S.jsx(SU,{style:{height:u}}),S.jsx(r,{}),S.jsx(fs,{sx:{p:{xs:1,sm:2,md:3}},children:e})]})]})};function _U(){const{setShowSearch:e}=xe.useContext(zs);xe.useEffect(()=>(e(!0),()=>{e(!1)}),[e])}function Pa(){const{Model:e}=xe.useContext(KR);return e}const CU=()=>{const e=Pa(),{data:t,error:n,loading:r}=ap();uy(e.plural()),_U();const i=hr(),{Breadcrumbs:a,["ModelIndex.Pagination"]:u,["ModelIndex.StaticActions"]:f,["ModelIndex.Table"]:p,["ModelIndex.Table.TableBody"]:h,["ModelIndex.Table.TableHead"]:g,["ModelIndex.Table.TableFooter"]:b,["ModelIndex.Table.TableToolbar"]:x,["ModelIndex.Table.TableBody.TableRow"]:k,["ModelIndex.Tabs"]:E}=Ut("cms").getComponents();return S.jsxs(Ta,{container:!0,spacing:2,children:[S.jsxs(Ta,{xs:12,display:"flex",flexDirection:"row",justifyContent:"space-between",children:[S.jsx(a,{parts:[{name:e.plural()}]}),S.jsx(f,{variant:i?"default":"fab"})]}),!i&&S.jsx(Ta,{display:"flex",justifyContent:"center",xs:12,children:S.jsx(u,{variant:"compact"})}),S.jsx(Ta,{xs:12,sx:{pb:0},children:S.jsx(E,{})}),S.jsx(Ta,{xs:12,sx:{pt:0},children:S.jsxs(p,{items:t,loading:r,error:n,children:[S.jsx(g,{children:S.jsx(x,{})}),S.jsx(h,{children:w=>S.jsx(k,{item:w},w.getKey())}),S.jsx(b,{})]})})]})};function EU(){const{setShowBackButton:e}=xe.useContext(zs);xe.useEffect(()=>(e(!0),()=>{e(!1)}),[e])}function Iu(e){return t=>{var n;if(!(t instanceof Error))throw t;e({message:Kv(t)?((n=t.response)==null?void 0:n.data.message)??t.message:t.message,severity:"error"})}}function cy(){return xe.useContext(ay).notify}function RU(){const e=cy();return xe.useCallback(t=>{Iu(e)(t)},[e])}const kU=({create:e=!1})=>{const[t,n]=xe.useState(),{id:r}=r3(),{t:i}=oo(),a=cy(),u=np(),f=Pa(),p=gi("breakpoint","md");uy(t!=null&&t.exists?i("Edit :model “:label“",{model:f.singular(),label:(t==null?void 0:t.getLabel())||"..."}):i("Create :model",{model:f.singular()})),EU();const h=Ut("cms").getComponent("Breadcrumbs");xe.useEffect(()=>{e?n(new f):f.find(r).then(k=>n(k??void 0))},[r,f,e]);const g=xe.useCallback(()=>{a(i(":model saved successfully",{model:f.singular()})),t!=null&&t.wasRecentlyCreated&&u(`/${ve.kebabCase(f.plural())}/${t.getKey()}`)},[a,u,f,t,i]),b=RU(),x=xe.useMemo(()=>Ut("cms").getModelFormProps(t),[t]);return t?S.jsxs(Ta,{container:!0,children:[S.jsx(Ta,{xs:12,children:S.jsx(h,{parts:[{name:f.plural(),href:"/"+ve.kebabCase(f.plural())},{name:t.exists?t.getLabel():i("New")}]})}),S.jsx(Ta,{xs:12,[p]:6,children:S.jsx(Xm,{submitText:"Save",...x,item:t,onSuccess:g,onError:b})})]}):null};function TU(e){const{setDisplacement:t}=xe.useContext(ay),n=Lo(),r=hr(),i=n.spacing(r?3:1),a=e===!1?i:n.spacing(e);xe.useEffect(()=>(t(a),()=>{t(i)}),[a,i])}function OU(){return xe.useContext(ZR).dialog}function dy(){const e=np(),t=cy(),n=OU(),{t:r}=oo(),{refresh:i}=ap();return{navigate:e,notify:t,dialog:n,t:r,refresh:i}}const PU=he(Fb)(({theme:e})=>({position:"fixed",bottom:e.spacing(2),right:e.spacing(2)})),IU=he(PB)(({theme:e})=>({position:"fixed",bottom:e.spacing(2),right:e.spacing(2)})),AU=({variant:e="default"})=>{const t=Pa(),n=hr(),[r]=Ii(),i=r.get("tab")??"all",[a,u]=xe.useState(!1),f=xe.useRef(null),[p,h]=xe.useState(0),g=dy(),b=xe.useMemo(()=>Ut("cms").getStaticActions(t,i),[t,i]);if(TU(e==="fab"&&b.length>0?n?12:10:!1),b.length===0)return null;const x=(w,T)=>{h(T),u(!1)},k=()=>{u(w=>!w)},E=w=>{f.current&&f.current.contains(w.target)||u(!1)};return e==="fab"?b.length===1?du.createPortal(S.jsx(PU,{color:"primary",onClick:()=>b[0].callback(g),children:b[0].icon||b[0].label.charAt(0).toUpperCase()}),document.body):du.createPortal(S.jsx(IU,{ariaLabel:`actions for ${t.singular()}`,icon:S.jsx(NR,{}),color:"primary",onClose:()=>u(!1),onOpen:()=>u(!0),open:a,children:b.map(w=>S.jsx(KB,{icon:w.icon||w.label.charAt(0).toUpperCase(),tooltipTitle:w.label,onClick:()=>w.callback(g)},w.label))}),document.body):S.jsxs(S.Fragment,{children:[S.jsxs(Dj,{variant:"contained",ref:f,"aria-label":b[p].label,children:[S.jsx(mi,{onClick:()=>b[p].callback(g),children:b[p].label}),b.length>1&&S.jsx(mi,{variant:"contained",size:"small","aria-controls":a?"split-button-menu":void 0,"aria-expanded":a?"true":void 0,"aria-label":`select ${t.singular()} actions`,"aria-haspopup":"menu",onClick:k,children:S.jsx(rU,{})})]}),S.jsx(jp,{open:a,anchorEl:f.current,role:void 0,transition:!0,children:({TransitionProps:w,placement:T})=>S.jsx(ad,{...w,style:{transformOrigin:T==="bottom"?"center top":"center bottom"},children:S.jsx(Mi,{children:S.jsx(BE,{onClickAway:E,children:S.jsx(cR,{id:"split-button-menu",children:b.map((P,I)=>S.jsx(_l,{selected:I===p,onClick:D=>x(D,I),children:P.label},P.label))})})})})})]})};function fy(){const{open:e,setOpen:t}=xe.useContext(zs);return{open:e,handleDrawerOpen:()=>{t(!0)},handleDrawerClose:()=>{t(!1)},toggle:()=>{t(a=>!a)}}}function o2(){const{currentPage:e}=xe.useContext(zs);return e}function DU(){const{showSearch:e}=xe.useContext(zs);return e}const NU="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAABbWlDQ1BpY2MAACiRdZG9S0JRGMZ/aqWU0VBDRIOBRYORFERj2eAiIWaQ1aI3PwI/LvcqIa1BS4PQELX0NfQf1Bq0FgRBEUQ0Nve1hNzeo4ISdS7nvj+ec56Xc54D9lBWy5ltfsjli0YkGPAsxZY9zldcdADjDMU1U58Nh0P8O77usal6N6Z6/b/vz9G1ljQ1sLmEpzTdKArPCIc2irriHeE+LRNfEz4S9hlyQOFrpSfq/KI4XecPxUY0Mgd21dOTbuFEC2sZIyc8KuzNZUta4zzqJu5kfnFB6oDMQUwiBAngIUGJdbIUGZOal8z+9vlrvnkK4tHkr1PGEEeajHh9opaka1JqSvSkfFnKKvffeZqpyYl6d3cA2p8t630YnLtQrVjW97FlVU/A8QSX+aa/IDlNf4peaWreQ+jZgvOrppbYg4tt6H/U40a8Jjlk2lMpeDuD7hj03kLnSj2rxjqnDxDdlCe6gf0DGJH9Pas/3QVn+hiI/rEAAAAJcEhZcwAACxEAAAsRAX9kX5EAAAWBSURBVFhHxZl/TFtVFMe/pZQOGMIA0W3iBgOloLIBzrkZJsuWmCwah/8sYW4my0QYc1NijM5o1MQ4/3B/CUb/0Bn+mTHzD4PjRxEUxEGmcWb8VsbPTTYYDBjQFlrPubTQ0va9+6qdJ3lp+t69537eOfeec+59OpAklpWvQkhICV0FsNvT4XCE8X0tYrPb8WBsLL7L34eoMPnukxYrjpprYe4fgEGvtxJDOzFU0PXJYHHRnC6x/NNwAqnQGY35WFiAY35eC9dSWwv1Ld+zB/kPpEr3H52dRVFNLRoGBxEeGir66fhXr4fDYjlHfwv4bjHD0Q1pxSsbWglu27q1eDpl08pHfv8PT0+jsLoGLdeuLcFxY2EgupxMxQx4iC0XqDiooz4kBCeys2GgXxnpnbiFF6urcenGDQ84j76LTC8woClQt7JCC73t3k3JeDIxUYYN7WNjOFJVjZ7xcf9wpMnJZGLARedLqfds5HA4EGkw4DhZT6fTqWr4dWREuHVwagqrnHNOpZNcK39K5sgNh0xp2JyQ4K/J0v3m4WFyaw3G5uZgpEUgKwFbb4GslxARgZItW1THqunrQ4m5DtNWq/Q8dSkNGJDDysGMDGyMjlYE/LanB6X1DZijuRoquYjcFQYEOE9BOZnADj/ysF84O1n4y8uXcbKxCdye4TiYuwvPWjXogAB5oMLNmYgP5xjvWzj4nu3sQkZ8HPQ67/DDcAzeTatZSTQDMtxD8fHYn5ampBc71q9H5XP5YBCOle4SQiueXf5mY6MIO0pW1AzIoeV4dpYIL0qitFJnCa60oQHfdHUrxkLWrwmQU9rO+xPxbKp8vl35ElwclJjNOH/liiqcZkB2DRkQH1xooUCrF65ZF7ka+1JTRLpTEy4OXqLi4Ee34kCtjyYLMlDj0BDqBwYI1AFek2W7d1OFpA739+3bOEKB+sLVq1KWc4FrAuTQwQUBXzM0j157NAf7KZOoCae2w1VV+H3kuiY41qv+6m6j302Zg4Un+d7kZJTm5Kix4c+JCRys/F7ASeZfD53SgGy9A+kmMUjqmjX4aGcuwlRyKocQhmsbHQ0ITtqCHMcYZteGDTDFxeLjvDzcExmpaL3fqHJ5nuD+IgsGYjmXcqk5yBE/JSZGWO7D3FyCjFOE44VUVGvGGK1apXioqMT5UAqQ499TSUlYTcFZDa62rx/HKM7dCqBy8QWsCsjWuy8qCgU0/9SksrcXL9fVYdY2r7ms8qdbEZDhWN7Zvl1AKsm57m68SmWVjaytlFuVdPh65ncVczKPNhpxelee6layor0dJ36oF+WUTEbxBeLvnpcFecXaFux4JiUFrz+2VSwMJfns0h94t7lZNNFL7EuUdPl65gXIC6IwMxPvPbFDtJ+g/XIMWdKXnL54EadaWxFK9R7n6WCIh4ut5KKta+/Fyce3iRru/eZfMDg56TWu69mpllYYggjHA3tY0E6ABaZ0Ebt4L8HVbgYVp+7Cm6W3m5rwObnWSFklOHZbHtEDkA5vkBwTLazXT5ZjN7u7jt3/xk+N+KqtTXPS93KD5A0PF/Mq7Lx5U1jlWFYWktx2bDM2G16pr8eZOwjH7+AZZsh9Pw8Ni3dzX5FTlBVKKACf7ehCxL/b60vabbmZ5xyk+yvDyjidBHBeNff3I8Lgteg1D6i1g9eId7mFFA4xXAVziX6nLed6Ea9Mcn1mRjzjovQoWU7L/kGrdWTaM+DSkSqX8nzIw3Bv0YkAn6m4Tj5llAWhzTwDdohjVxIG7KAqmE+hvu7s/F/hnEwdDHiGz4RdwoG4liwnc94XBIstq1xk+oIBy/jAms6EFw+w6YbaXiOYYGw5ZnEeopeLTEWfIYzOzxAHAv0M8Z9A63T8GaLN7TOE5R/LwhBxBS+RxAAAAABJRU5ErkJggg==",$U="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAABbWlDQ1BpY2MAACiRdZG9S0JRGMZ/aqWU0VBDRIOBRYORFERj2eAiIWaQ1aI3PwI/LvcqIa1BS4PQELX0NfQf1Bq0FgRBEUQ0Nve1hNzeo4ISdS7nvj+ec56Xc54D9lBWy5ltfsjli0YkGPAsxZY9zldcdADjDMU1U58Nh0P8O77usal6N6Z6/b/vz9G1ljQ1sLmEpzTdKArPCIc2irriHeE+LRNfEz4S9hlyQOFrpSfq/KI4XecPxUY0Mgd21dOTbuFEC2sZIyc8KuzNZUta4zzqJu5kfnFB6oDMQUwiBAngIUGJdbIUGZOal8z+9vlrvnkK4tHkr1PGEEeajHh9opaka1JqSvSkfFnKKvffeZqpyYl6d3cA2p8t630YnLtQrVjW97FlVU/A8QSX+aa/IDlNf4peaWreQ+jZgvOrppbYg4tt6H/U40a8Jjlk2lMpeDuD7hj03kLnSj2rxjqnDxDdlCe6gf0DGJH9Pas/3QVn+hiI/rEAAAAJcEhZcwAACxEAAAsRAX9kX5EAAAUfSURBVFhHzZhdTFxFFMfPwsKypUCBlAS2XWyKfPSB0qZay6ql6NK1NE3TJjWxD/pgfCD6Uq2JMcZYY1RelKrVWmtTqTEmYuqTJiYWGwVpwkLLZwKWBhXS8lEEkd1l2fX8Z7lm6Z17996rLp5kumQ6d+Z3/3POmXPHRmyRaDSDf562ER2NEm3h33T0m7WfZ2Zof8uXNBcKUYqNZ0lgi5EIrXM46H2vl2rcGzE6xK2f2wVu79lstoCd4Zzo4OkOYUTiaTFKbic7/TS1sEAZdrt8QFxvaGmJCjIz6XSdl3YVFSn/A2Gqllt1NBo9ipkaAMfKCbMK6L95ky4ODZHDAFyQ4Yqzs+nDvXVUVVCwvLLqB4I1pPA/jytgVuF4F6iJ1VsIhxO+YIDHlObmUnP9Pj04hfYJO0NVqNhNdlwaHaVvb9xIqB5eYBsrdsa3VyhowCqwxYkdRmcm+BLUW2IV9SYCXLWriD6oq6NC9j2DZsBhEsx0cWiYOsbHyZGaqjkScLVuN8N5KTcDCcO46b10wll+DwbpHb9fN6X8yXAHS0ro7do9tDbdfPb6R4DNff00OD1NTslGICsgIB6rqKDG3Q8aSj0yRSwDjs/P09meHkrX2NoIJ+GGbVX0iscjW9dwn2XA091X6de5Oal6OCF8m+6iR8vLhcKccFVACCr4bQmnHL30ZuOH1U+rplvZgSNt3xctNL+4qOl/OE3CDCoz9EP5N3nrD5WW6gJaUrCps5OmAwGpegoQIldmgFvD8Aia/Zs3y4as6DMN2PbbGH02MIgCgxChKAoyJH4o2zZsfc5ycbAnVhwkBDS9xT+NjYm8B0CcqeN/zNNXw8MiUcugFAKlODjD5+/OwsKEYMoA04B3zny89Xtq7uvTjGaMB5wray195POJo86Mmd7i+MlPdXXT+d5e3RwHlTfl5NDHj/hoS36+GTYxFtWMYZvkWk+x77hAaLxyRVe5AMOV5+WJysUKnGlAnByIztHZWTp+qVX4oFbljFNk6/r19AnD3c25zqoZVhARiLJqYGqKnmttpV84SaelyB/HS+zkKvlCfb3RskqT33CQIDnX8/cG6rieiQmya8Ah9XiLi+mU92HTlYuM0nCQfDMyQvDBWa5gtOCg3AFOvk0P1VKWhcrFMiDA4H/prJoe3GE+tt7iE0JW3cgWN9Ind6K4J6MUpRNt7XSdt1gGh4McyqGsOsnK/ZtwwNDd4hneztfa2+nzwUFprgNckOGerKykV+/3SF/AiEp6YzQBv74+Qm90dFDf5CStSUtTzYEiKMSR/cz27fTirvs0043qQZMd0ig+19NLL1y+LBTBN8QMVy78lf/31DiHw9yev/ceOrZjh8klzQ1X+eDVW7fY59oE0MueanJzWgGMYoBDO8GV8n8NhzVVgJ/2D9AER+2RsjLxgd3NwEpCVioWFJpPba00J4XF0SofRLRmss+5s7PopR9+jJXrrOYS+1sa132NNbsFfLJMpWBZfp5Y+92uLhq+fVuohyrYydBII8mEA4cK0OPaIADDEb4pYDhEKk4FXJEd4O/bZJtqi6Ga4msoEBDFqII9Lley2cR6KkBcPsKwrYA7yxc9cfd3SYdUbXG+0ykCAkfWHZeLSYfDggBc8X2IG6hs/vJ6nVPJAxti/rgqZLFFw0gj1/DxrhhvbZQL0/iu1fz7GhQ8H69QKue8mo3iQvv/YOegoJNby2rKpLE2mGKXifyHg9uz3Lq4BTUeSEY31vZzOwYmbOFfRuevM6ot++oAAAAASUVORK5CYII=";function i2(){const{showBackButton:e}=xe.useContext(zs);return e}const MU=he(eE,{shouldForwardProp:e=>!["open","drawerWidth","height"].includes(String(e))})(({theme:e,open:t,drawerWidth:n,height:r})=>({zIndex:e.zIndex.drawer+1,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),height:r,...t&&{marginLeft:n,width:`calc(100% - ${n}px)`,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})}})),LU=he(eE,{shouldForwardProp:e=>!["open","drawerWidth","height"].includes(String(e))})(({height:e})=>({height:e})),jU=({slots:e={},...t})=>{const n=hr(),r=dg("(prefers-color-scheme: dark)"),i=n?MU:LU,{["Layout.AppBar.MenuButton"]:a,["Layout.SearchBar"]:u,["Layout.BackButton"]:f}=Ut("cms").getComponents(),{open:p}=fy(),h=DU(),g=i2(),b=gi("appBar.height"),x=gi("drawer.width",280),{start:k=null,end:E=null}=e,w=o2();return S.jsx(i,{open:p,height:b,drawerWidth:x,...t,children:S.jsxs(V9,{children:[(n&&!p||!n&&!g)&&S.jsx(a,{}),!n&&g&&S.jsx(f,{}),n?null:k,S.jsx(ar,{width:"100%",variant:"h6",noWrap:!0,component:"div",children:!n&&w||dl("app.name",document.title)}),S.jsx(fs,{sx:{flexGrow:1}}),S.jsxs(fs,{display:"flex",alignItems:"center",children:[h&&S.jsx(u,{}),E||S.jsx(VL,{src:r?NU:$U,alt:"Luminix",variant:"square",sx:{width:40,height:40,marginLeft:h?2:0}})]})]})})};function FU(e){return S.jsx(bo,{component:Gm,to:-1,edge:"start",color:"inherit","aria-label":"back",...e,children:S.jsx(iy,{})})}const s2=(e,t)=>({width:t,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden"}),a2=e=>({transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:`calc(${e.spacing(9)} + 1px)`,[e.breakpoints.up("sm")]:{width:`calc(${e.spacing(10)} + 1px)`}}),zU=he(JE,{shouldForwardProp:e=>!["open","width"].includes(String(e))})(({theme:e,open:t,width:n})=>({flexShrink:0,whiteSpace:"nowrap",boxSizing:"border-box",...t&&{...s2(e,n),"& .MuiDrawer-paper":s2(e,n)},...!t&&{...a2(e),"& .MuiDrawer-paper":a2(e)}})),BU=he(JE,{shouldForwardProp:e=>e!=="width"})(()=>({})),UU=he("div")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",padding:e.spacing(0,1),...e.mixins.toolbar})),HU=e=>{const t=Lo(),n=hr(),{open:r,handleDrawerClose:i}=fy(),a=n?zU:BU,u=gi("drawer.width",280),f=gi("appBar.height"),p=Ut("cms").getComponent("RecursiveList"),h=Ut("cms").getMenuItems();return S.jsxs(a,{variant:n?"permanent":"temporary",open:r,width:u,onClose:i,PaperProps:{sx:{width:u}},sx:{display:"flex",direction:"flex-column",flexWrap:"nowrap",height:"100%"},...e,children:[S.jsx(UU,{style:{height:f},children:S.jsx(bo,{onClick:i,children:t.direction==="ltr"?S.jsx(iy,{}):S.jsx(sy,{})})}),S.jsx(zp,{}),S.jsx(fs,{sx:{flexGrow:1,overflowY:"auto",overflowX:"hidden"},children:S.jsx(p,{collapsed:!r&&n,items:h,onClick:()=>!n&&i()})})]})},WU=()=>{const e=o2(),t=gi("breakpoint","md"),n=i2(),{["Layout.BackButton"]:r}=Ut("cms").getComponents();return S.jsxs(Mi,{sx:{display:{xs:"none",[t]:"flex"},boxShadow:i=>i.shadows[3],py:2,px:3,borderRadius:0,alignItems:"center"},children:[n&&S.jsx(r,{}),S.jsx(ar,{variant:"h5",noWrap:!0,children:e})]})},py=xe.createContext({Model:null,anchorEl:null,setAnchorEl:()=>{},columnsFilter:[],setColumnsFilter:()=>{},searchParams:new URLSearchParams,setSearchParams:()=>{},clearSearchParams:()=>{},clearFilters:()=>{}}),fd=xe.createContext({key:"",type:"",operator:"",value:"",isRelation:!1,setKey:()=>{},setType:()=>{},setOperator:()=>{},setValue:()=>{},setIsRelation:()=>{}}),GU=e=>{if(!Array.isArray(e))return e;let t;return ve.isEmpty(e)?t="":t=e[0],t},KU=e=>{if(Array.isArray(e))return e;let t;return ve.isEmpty(e)?t=[]:t=[e,""],t},VU=async(e,t,n)=>{const r=e.getSchema().relations[t],i=Oc().make(r.model),a=i.getSchema().primaryKey,u=[];for(const f of n){const{data:p}=await i.where(a,f).get();u.push(p.first())}return u};function XU(e,t){const n=Ut("filter"),{Model:r,setColumnsFilter:i}=xe.useContext(py),[a,u]=xe.useState(t.key),[f,p]=xe.useState(t.operator),[h,g]=xe.useState(t.type),[b,x]=xe.useState(t.value),[k,E]=xe.useState(t.is_relation),w=xe.useMemo(()=>n.getFilterableColumns(r),[r]),T=D=>()=>{i(M=>M.filter((L,A)=>A!==D))},P=async D=>{const M=D.target.value,L=w.find(z=>z.key===M),A=(L==null?void 0:L.type)??"text";if(a!==M){const z=(L==null?void 0:L.is_relation)??!1;z?(p("relation"),x([])):k&&p("equals"),E(z)}A!==h&&(["boolean"].includes(n.getInputType(A))&&p("equals"),x(()=>{if(["between","notBetween"].includes(f))return[];switch(n.getInputType(A)){case"number":return 0;case"boolean":return 0;default:return""}})),u(M),g(A)},I=async D=>{const M=D.target.value;f!==M&&x(L=>{switch(M){case"between":case"notBetween":return KU(L);case"null":case"notNull":return"1";default:return GU(L)}}),p(M)};return xe.useEffect(()=>{i(D=>D.map((L,A)=>e===A?{...L,key:a,operator:f,type:h,value:b,is_relation:k}:L))},[a,f,h,b,k]),{columns:w,key:a,setKey:u,operator:f,setOperator:p,type:h,setType:g,value:b,setValue:x,isRelation:k,setIsRelation:E,handleKey:P,handleOperator:I,handleRemoveColumn:T}}const l2=async(e,t,n)=>{const r=e.getSchema().relations[t].model,{data:i}=await Oc().make(r).get(),a=i.all().filter(h=>!n.find(g=>g.getKey()===h.getKey())),u=a.length,f=n.length;console.log({newOptionsLength:u,loadedLength:f});const p=15;return u+f>p?ho([...n,...a.slice(0,p-f)]):ho([...n,...a])},qU=async(e,t,n="",r)=>{const i=e.getSchema().relations[t],a=Oc().make(i.model),u=a.getSchema().primaryKey,{data:f}=await a.searchBy(n).get();return ho([...r,...f]).unique(u)},YU=()=>{const e=hr(),t=Pa(),{key:n,value:r,setValue:i}=xe.useContext(fd),[a,u]=xe.useState(!1),[f,p]=xe.useState(""),[h,g]=xe.useState(ho([])),[b,x]=xe.useState([]),k=xe.useMemo(()=>a&&h.count()===0,[a,h]),E=async(w,T)=>{p(T),ve.isEmpty(T)||g(await qU(t,n,T,ho(b)))};return xe.useEffect(()=>{r.length>0&&(async()=>x(await VU(t,n,r)))()},[]),xe.useEffect(()=>{let w=!0;if(k)return(async()=>w&&g(await l2(t,n,b)))(),()=>{w=!1}},[k]),xe.useEffect(()=>{i(b.map(w=>w.getKey())),ve.isEmpty(f)?(async()=>g(await l2(t,n,b)))():g(ho([]))},[b]),S.jsx(jL,{sx:{width:e?377:"100%"},open:a,onOpen:()=>{u(!0)},onClose:()=>{u(!1)},value:b,onChange:(w,T)=>{x(T)},inputValue:f,onInputChange:E,options:h.all()||[],getOptionLabel:w=>w.getLabel(),isOptionEqualToValue:(w,T)=>w.getKey()===T.getKey(),filterOptions:w=>w,renderInput:w=>S.jsx(QU,{params:w,loading:k}),size:"small",loading:k,disableCloseOnSelect:!0,autoHighlight:!0,multiple:!0})},QU=({params:e,loading:t})=>{const{t:n}=oo();return S.jsx(qp,{...e,label:n("Value"),InputProps:{...e.InputProps,endAdornment:S.jsxs(xe.Fragment,{children:[t?S.jsx(r4,{color:"inherit",size:20}):null,e.InputProps.endAdornment]})}})},hy=({index:e=null})=>{const{t}=oo(),n=hr(),r=Ut("filter"),{type:i,value:a,setValue:u}=xe.useContext(fd),p=r.getInputType(i)==="datetime-local"?230:167.5,h=e!==null?`${t("Date")} ${e+1}`:`${t("Date")}`,g=xe.useMemo(()=>e!==null?a[e]:a,[a]),b=x=>{u(typeof e=="number"?k=>{const E=k;return E[e]=x.target.value,[...E]}:x.target.value)};return S.jsx(qp,{type:r.getInputType(i),label:h,value:g||new Date,onChange:b,size:"small",sx:{width:n?p:"100%"}})},JU=()=>{const e=hr(),{value:t,setValue:n}=xe.useContext(fd),r=i=>{const a=i.target.checked;n(a?1:0)};return S.jsxs(S.Fragment,{children:[S.jsx(i9,{checked:t,onChange:r,inputProps:{"aria-label":"filter-controlled"},size:"small"}),e&&S.jsx(fs,{width:325})]})},my=({index:e=null})=>{const{t}=oo(),n=hr(),r=Ut("filter"),{type:i,value:a,setValue:u}=xe.useContext(fd),f=e!==null?`${t("Value")} ${e+1}`:`${t("Value")}`,p=xe.useMemo(()=>e!==null?a[e]:a,[a]),h=g=>{u(typeof e=="number"?b=>{const x=b;return x[e]=g.target.value,[...x]}:g.target.value)};return S.jsx(qp,{type:r.getInputType(i),label:f,value:p||"",onChange:h,sx:{width:n?167.5:"100%"},size:"small"})},gy=()=>{const e=hr(),t=Ut("filter"),{type:n,operator:r}=xe.useContext(fd),i=xe.useMemo(()=>["between","notBetween"].includes(r),[r]);if(["null","notNull"].includes(r))return e?S.jsx(fs,{width:230}):null;if(i)switch(t.getInputType(n)){case"date":case"datetime-local":return S.jsxs(S.Fragment,{children:[S.jsx(hy,{index:0}),S.jsx(hy,{index:1})]});default:return S.jsxs(S.Fragment,{children:[S.jsx(my,{index:0}),S.jsx(my,{index:1})]})}switch(t.getInputType(n)){case"date":case"datetime-local":return S.jsx(hy,{});case"autocomplete":return S.jsx(YU,{});case"boolean":return S.jsx(JU,{});default:return S.jsx(my,{})}},ZU=({index:e,column:t})=>{const{t:n}=oo(),r=hr(),i=gi("breakpoint","md"),a=Ut("filter"),u=xe.useMemo(()=>a.getMatchingOperators(t),[t]),{columns:f,key:p,setKey:h,operator:g,setOperator:b,type:x,setType:k,value:E,setValue:w,isRelation:T,setIsRelation:P,handleKey:I,handleOperator:D,handleRemoveColumn:M}=XU(e,t),L=["boolean"].includes(a.getInputType(x));return S.jsx(fd.Provider,{value:{key:p,setKey:h,type:x,setType:k,operator:g,setOperator:b,value:E,setValue:w,isRelation:T,setIsRelation:P},children:S.jsxs(Ta,{container:!0,display:"flex",flexDirection:{xs:"column",[i]:"row"},flexWrap:{xs:"wrap",[i]:"nowrap"},alignItems:"center",justifyContent:"space-between",gap:.5,children:[S.jsxs(yo,{display:"flex",flexDirection:{xs:"column",[i]:"row"},alignItems:"center",width:"100%",my:1,gap:1.5,children:[S.jsxs(yo,{direction:"row",alignItems:"center",...!r&&{width:"100%"},gap:1,children:[S.jsxs(jg,{sx:{width:r?165:`calc(100% - ${L?88:44}px)`},children:[S.jsx(Fg,{id:"filter-column-select-label",size:"small",children:n("Column")}),S.jsx(cd,{labelId:"filter-column-select-label",id:"filter-column-select",value:p,onChange:I,size:"small",children:f.map(({key:A,label:z})=>S.jsx(_l,{value:A,children:z},`column_${A}_option`))})]}),!r&&S.jsxs(yo,{direction:"row",alignItems:"center",children:[L&&S.jsx(gy,{}),S.jsx(bo,{color:"error",onClick:M(e),children:S.jsx(t2,{})})]})]}),!T&&!L&&S.jsxs(jg,{sx:{width:r?135:"100%"},children:[S.jsx(Fg,{id:"filter-operator-select-label",size:"small",children:n("Operator")}),S.jsx(cd,{labelId:"filter-operator-select-label",id:"filter-operator-select",value:g,onChange:D,size:"small",children:u.map(({key:A,label:z})=>S.jsx(_l,{value:A,children:n(z)},`operator_${A}_option`))})]}),r?S.jsx(gy,{}):!L&&S.jsx(gy,{})]},`filter_${p}_${e}`),r&&S.jsx(bo,{color:"error",onClick:M(e),children:S.jsx(t2,{})})]})})},u2=e=>{const t={};for(const[n,r]of e.entries())ve.set(t,n,r);return t},c2=e=>{const t=e instanceof Date?e:new Date(e),n=`${t.getFullYear()}`,r=`${ve.padStart(`${t.getMonth()+1}`,2,"0")}`,i=`${ve.padStart(`${t.getDate()}`,2,"0")}`,a=`${ve.padStart(`${t.getHours()}`,2,"0")}`,u=`${ve.padStart(`${t.getMinutes()}`,2,"0")}`;return`${n}-${r}-${i}T${a}:${u}`},e7=(e,t)=>{const n=Ut("filter"),r=u2(t),i=Object.keys(r).reduce((u,f)=>(["where"].includes(f)&&(u[f]=r[f]),u),{}),a=[];return Object.entries(i).forEach(([,u])=>{Object.entries(u).forEach(([f,p])=>{e.filter(h=>{const g=(()=>{const x=ve.camelCase(f.split(ve.camelCase(h.key))[1]);return ve.isEmpty(x)?"equals":x})();if(!n.getOperators().includes(g))return!1;const b=ve.snakeCase(f.split(ve.upperFirst(g))[0]);return h.key===b}).forEach(h=>{let g=ve.camelCase(f.split(ve.camelCase(h.key))[1]);(ve.isUndefined(g)||ve.isNull(g)||ve.isEmpty(g))&&(g="equals");let b=p;switch(n.getInputType(h.type)){case"text":{Array.isArray(p)&&(b=p.join(","));break}case"datetime-local":{Array.isArray(p)?b=p.map(x=>c2(x)):b=c2(p);break}case"boolean":{b=ve.toNumber(p);break}}a.push({key:h.key,operator:g,type:h.type,value:b,is_relation:h.is_relation})})})}),a},t7=e=>{const t=Ut("filter"),n=new URLSearchParams;return e.forEach(r=>{const{key:i,operator:a,value:u,type:f}=r;let p=ve.upperFirst(a);if(["equals"].includes(p.toLowerCase())&&(p=""),Array.isArray(u))u.forEach((h,g)=>{let b=h;switch(t.getInputType(f)){case"datetime-local":{b=new Date(h).toISOString();break}}n.set(`where[${ve.camelCase(i)}${p}][${g}]`,b)});else{let h=u;switch(t.getInputType(f)){case"datetime-local":{h=new Date(u).toISOString();break}}n.set(`where[${ve.camelCase(i)}${p}]`,h)}}),n},d2=()=>{const{t:e}=oo(),t=hr(),n=gi("breakpoint","md"),r=Ut("filter"),{columnsFilter:i,setColumnsFilter:a,setSearchParams:u,clearSearchParams:f,clearFilters:p}=xe.useContext(py),h=()=>{a(b=>[...b,{key:"",operator:"equals",type:"text",value:"",is_relation:!1}])},g=()=>{f();const b=t7(i);u(b,{replace:!0})};return S.jsxs(fs,{sx:{minWidth:{[n]:567.5}},p:2,children:[S.jsx(yo,{children:i.map((b,x)=>S.jsxs(S.Fragment,{children:[S.jsx(ZU,{index:x,column:b},`row_${b.key}`),!t&&S.jsx(zp,{sx:{mt:1.25,mb:1.5}})]}))}),S.jsx(yo,{mt:.75,children:S.jsx(mi,{variant:"outlined",onClick:h,fullWidth:!0,children:`+ ${e("Add Column")}`})}),S.jsxs(yo,{direction:"row",justifyContent:"space-between",mt:2,children:[S.jsx(mi,{onClick:p,children:e("Clear")}),S.jsx(mi,{variant:"contained",onClick:g,disabled:r.checkIfCanApplyFilters(i),children:e("Apply")})]})]})},n7=()=>{const e=Ut("filter"),t=hr(),n=Pa(),[r,i]=Ii(),a=xe.useMemo(()=>"where"in u2(r),[r]),[u,f]=xe.useState(null),[p,h]=xe.useState([]),g=!!u,b=xe.useMemo(()=>e.getFilterableColumns(n),[n]),x=T=>{f(T.currentTarget)},k=()=>{f(null),setTimeout(()=>{h([])},300)},E=()=>{i(T=>{const P=new URLSearchParams(T);for(const[I]of T.entries())I.startsWith("where[")&&P.delete(I);return P})},w=()=>{E(),setTimeout(()=>{h([])},300)};return xe.useEffect(()=>{const T=e7(b,r);h(T)},[b,r,u]),S.jsxs(py.Provider,{value:{Model:n,anchorEl:u,setAnchorEl:f,columnsFilter:p,setColumnsFilter:h,searchParams:r,setSearchParams:i,clearSearchParams:E,clearFilters:w},children:[S.jsx(bo,{"aria-describedby":"model-filter-popover-button","aria-label":"filter",onClick:x,children:S.jsx(Ib,{color:"secondary",variant:"dot",invisible:!a,children:S.jsx(uU,{})})}),t?S.jsx(mR,{id:"model-filter-popover",open:g,anchorEl:u,onClose:k,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:S.jsx(d2,{})}):S.jsx(jb,{open:g,onClose:k,fullWidth:!0,children:S.jsx(d2,{})})]})},vy=xe.createContext({columns:[],columnCount:0,selected:ho([]),massActions:[],items:ho([]),error:new Error("Trying to access TableContext outside of TableProvider"),Model:null});function by(){const{selected:e,items:t}=xe.useContext(vy),n=_1(e),r=()=>{e.splice(0,e.count())},i=h=>{const g=e.search(h);if(g!==!1){e.pull(g);return}e.push(h)},a=()=>{if(t){if(e.count()===t.count()){r();return}e.splice(0,e.count(),...t)}},u=h=>n.contains(h),f=t?n.count()>0&&n.count()<t.count():!1,p=t&&t.count()?n.count()===t.count():!1;return{selected:n,indeterminate:f,allSelected:p,isSelected:u,handleClearSelected:r,handleSelectToggle:i,handleSelectToggleAll:a}}function kl(){return xe.useContext(vy)}function r7(e){const[t,n]=xe.useState(""),{selected:r}=by(),{t:i}=oo(),a=dy(),{massActions:u}=kl(),f=h=>{n(h.target.value)};if(xe.useEffect(()=>{r.isEmpty()&&n("")},[r]),u.length===0)return null;const p=r.isEmpty()?i("Select items to apply"):i("Select action");return S.jsxs(yo,{direction:"row",alignItems:"center",...e,children:[S.jsxs(jg,{sx:{m:1,minWidth:200},size:"small",children:[S.jsx(Fg,{id:"mass-actions-select-label",children:p}),S.jsxs(cd,{labelId:"mass-actions-select-label",id:"mass-actions-select",value:t,label:p,onChange:f,disabled:r.isEmpty(),children:[S.jsx(_l,{value:"",children:S.jsx("em",{children:i("None")})}),u.map(h=>S.jsx(_l,{value:h.key,children:h.label},h.key))]})]}),S.jsx(mi,{size:"small",disabled:r.isEmpty()||!t,onClick:()=>{var h;(h=u.find(g=>g.key===t))==null||h.callback({selected:r,...a})},children:i("Apply")})]})}const o7=()=>{const{handleDrawerOpen:e}=fy();return S.jsx(bo,{color:"inherit","aria-label":"open drawer",edge:"start",onClick:e,sx:{mr:{md:2}},children:S.jsx(fU,{})})},Vg=xe.forwardRef(({to:e,children:t,...n},r)=>S.jsx(Gb,{component:Gm,to:e,ref:r,sx:{textDecoration:"none"},...n,children:t}));Vg.displayName="Link";const i7=({label:e})=>{if(isNaN(e)||isNaN(parseFloat(e))){const t={"&laquo; Previous":S.jsx(iy,{}),"Next &raquo;":S.jsx(sy,{}),"Last &raquo;":S.jsx(dU,{}),"&laquo; First":S.jsx(cU,{})};return S.jsx(S.Fragment,{children:t[e]||e})}return S.jsx(S.Fragment,{children:e})},s7=({variant:e="default",...t})=>{const n=e==="default",[r,i]=Ii(),[a,u]=xe.useState(r.get("page")||"1"),{links:f,meta:{current_page:p=1,links:h=[],last_page:g=1}={}}=ap(),{first:b,prev:x,next:k,last:E}=f||{},w=P=>{P.preventDefault(),i(I=>(I.set("page",a||"1"),I))},T=[{url:p>1?b:null,label:"&laquo; First",active:!1},{url:x,label:"&laquo; Previous",active:!1},{element:S.jsx(H3,{onSubmit:w,preventScrollReset:!0,children:S.jsx(qp,{size:"small",type:"number",variant:"standard",sx:{width:56,"& input":{textAlign:"center","&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}},value:a,error:Number(a)>g,helperText:Number(a)>g?`Max ${g}`:void 0,onChange:P=>{!Number.isNaN(Number(P.target.value))&&Number(P.target.value)>0&&u(P.target.value),P.target.value===""&&u("")},onBlur:P=>{i(I=>(I.set("page",P.target.value||"1"),I),{replace:!0})},disabled:g===1,"aria-label":"Page number"})},"page")},{url:k,label:"Next &raquo;",active:!1},{url:p<g?E:null,label:"Last &raquo;",active:!1}];return xe.useEffect(()=>{p&&u(String(p))},[p]),S.jsx(yo,{spacing:1,direction:"row",justifyContent:"center",alignItems:"center",...t,children:(n?h:T).map((P,I)=>P.element||S.jsx(mi,{variant:P.active?"contained":"text",color:"primary",size:"small",sx:{minWidth:"unset",width:32,height:32,borderRadius:"50%"},disabled:!P.url,component:Vg,to:P.url,children:S.jsx(i7,{label:P.label})},I))})},a7=()=>{const{t:e}=oo(),{meta:{total:t=0,from:n=0,to:r=0}={}}=ap();return S.jsx(ar,{variant:"caption",noWrap:!0,children:e(":from–:to of :total",{from:n,to:r,total:t})})},l7=()=>{const{t:e}=oo(),{meta:{per_page:t=15}={}}=ap(),[,n]=Ii(),r=a=>{n(u=>{const f=new URLSearchParams(u);return f.set("per_page",a.target.value.toString()),f})},i=C1(Ut("cms"),"perPageOptions",[15,30,75,150]);return S.jsxs(yo,{direction:"row",alignItems:"center",gap:1,children:[S.jsxs(ar,{variant:"caption",children:[e("Rows per page"),":"]}),S.jsx(cd,{value:t,onChange:r,size:"small",variant:"standard",sx:{fontSize:a=>a.typography.caption.fontSize,"& .MuiSelect-select":{py:.5}},children:i.map(a=>S.jsx(_l,{value:a,sx:{fontSize:u=>u.typography.caption.fontSize,minHeight:"unset",lineHeight:1,py:1.5},children:a},a))})]})};function u7(e,t){const[n,r]=xe.useState(!1);return xe.useEffect(()=>{const i=new Set,a=f=>{i.add(f.key),e.every(p=>i.has(p))&&(r(!0),t&&t())},u=f=>{i.delete(f.key),e.every(p=>!i.has(p))&&r(!1)};return window.addEventListener("keydown",a),window.addEventListener("keyup",u),()=>{window.removeEventListener("keydown",a),window.removeEventListener("keyup",u)}},[e,t]),n}const c7=he(qp)(({theme:e})=>({"& .MuiInputBase-root":{backgroundColor:e.palette.background.paper}})),d7=ve.throttle((e,t)=>{t(n=>{const r=new URLSearchParams(n);return e?r.set("q",e):r.delete("q"),r})},500),f7=()=>{const[e,t]=Ii(),n=e.get("q")||"",[r,i]=xe.useState(n),[a,u]=xe.useState(!1),f=xe.useRef(null),{t:p}=oo();xe.useEffect(()=>{i(n)},[n]);const h=x=>{i(x.target.value),d7(x.target.value,t)},g=hr();u7(["Control","/"],()=>{f.current.focus()});const b=g?300:"calc(100vw - 58px)";return S.jsxs(S.Fragment,{children:[!g&&!a&&S.jsx(bo,{color:"inherit",onClick:()=>u(!0),children:S.jsx(Ib,{variant:"dot",color:"secondary",invisible:!n,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:S.jsx(r2,{})})}),S.jsx(pb,{orientation:"horizontal",in:g||a,addEndListener:()=>{var x;!g&&a&&((x=f.current)==null||x.focus())},unmountOnExit:!1,children:S.jsx(c7,{placeholder:g?`(Ctrl + /) ${p("Search...")}`:`${p("Search...")}`,value:r,InputProps:{endAdornment:S.jsx(r2,{})},inputProps:{ref:f},onChange:h,onBlur:()=>u(!1),sx:{width:b},size:"small"})})]})},p7=({children:e,...t})=>S.jsx(Oa,{sx:{width:"1px"},padding:"checkbox",...t,children:e}),h7=()=>{const{t:e}=oo(),[t,n]=Ii(),{columns:r,Model:i}=kl(),a=t.get("order_by")||"",[u="",f=""]=a.split(":"),[p,h]=xe.useState(u),[g,b]=xe.useState(f),[x,k]=xe.useState(!1),E=()=>{k(!0)},w=()=>{k(!1),h(u),b(f)},T=()=>{if(!p||!g){k(!1);return}n(I=>{const D=new URLSearchParams(I);return D.set("order_by",`${p}:${g}`),D}),k(!1)},P=()=>{n(I=>{const D=new URLSearchParams(I);return D.delete("order_by"),D}),k(!1),h(""),b("")};return S.jsxs(S.Fragment,{children:[S.jsx(bo,{onClick:E,children:S.jsx(Ib,{color:"secondary",variant:"dot",invisible:!u,children:S.jsx(hU,{})})}),S.jsxs(jb,{open:x,onClose:w,fullWidth:!0,children:[S.jsxs(VE,{children:[e("Sort :model",{model:i.plural()}),S.jsx(bo,{onClick:w,sx:{position:"absolute",right:8,top:8},children:S.jsx(e2,{})})]}),S.jsxs(KE,{dividers:!0,children:[S.jsxs(CR,{value:p,onChange:I=>{h(I.target.value),g||b("asc")},children:[S.jsx(ar,{variant:"caption",children:e("Column")}),S.jsx(zp,{}),ho(r).whereStrict("sortable","!=",!1).map(({key:I,label:D})=>S.jsx(Bb,{value:I,control:S.jsx(Qb,{}),label:D},I))]}),S.jsx(ar,{variant:"caption",children:e("Direction")}),S.jsx(zp,{}),S.jsxs(CR,{value:g,onChange:I=>b(I.target.value),children:[S.jsx(Bb,{value:"asc",control:S.jsx(Qb,{}),label:S.jsxs(S.Fragment,{children:[e("Ascending"),S.jsx(oU,{})]})}),S.jsx(Bb,{value:"desc",control:S.jsx(Qb,{}),label:S.jsxs(S.Fragment,{children:[e("Descending"),S.jsx(nU,{})]})})]})]}),S.jsxs(GE,{children:[S.jsx(mi,{onClick:P,sx:{mr:"auto"},children:e("Clear")}),S.jsx(mi,{onClick:T,variant:"contained",children:e("Apply")})]})]})]})},m7=({items:e,loading:t,children:n,error:r})=>{const i=Pa(),a=xe.useMemo(()=>ho([]),[i,e]),[u]=Ii(),f=u.get("tab")??"all",p=xe.useMemo(()=>[{key:i.getSchema().labeledBy,label:ve.upperFirst(ve.camelCase(i.getSchema().labeledBy))}],[i]),h=hr(),g=xe.useMemo(()=>Ut("cms").getMassActions(i,f),[i,f]),b=C1(Ut("cms"),`model${ve.upperFirst(ve.camelCase(i.getSchemaName()))}Columns`,p),k=(h?b.length:1)+(g.length>0?2:1),E={columns:b,columnCount:k,massActions:g,items:e,loading:t,selected:a,error:r,Model:i};return S.jsx(vy.Provider,{value:E,children:n})},g7=({items:e,loading:t,error:n,children:r,...i})=>S.jsx(m7,{items:e,loading:t,error:n,children:S.jsx(P9,{component:Mi,children:S.jsx(h9,{...i,children:r})})}),v7=({children:e,...t})=>{const{massActions:n,columns:r,items:i}=kl(),a=hr(),[u,f]=Ii(),{indeterminate:p,allSelected:h,handleSelectToggleAll:g}=by(),{["ModelIndex.Table.ShrinkedCell"]:b}=Ut("cms").getComponents(),x=u.get("order_by")||"",[k,E]=x.split(":"),w=T=>()=>{f(k===T?P=>{const I=new URLSearchParams(P);return E?E==="desc"?(I.delete("order_by"),I):(I.set("order_by",`${T}:desc`),I):(I.set("order_by",`${T}:asc`),I)}:P=>{const I=new URLSearchParams(P);return I.set("order_by",`${T}:asc`),I})};return S.jsxs(U9,{...t,children:[e,a&&S.jsxs(dd,{children:[n.length>0&&S.jsx(b,{children:S.jsx(Nb,{indeterminate:p,checked:h,onChange:g,disabled:i&&i.count()===0})}),r.map(({key:T,label:P,sortable:I=!0,...D})=>S.jsx(Oa,{sortDirection:I&&k===T&&E||!1,...D,children:S.jsxs(s8,{active:I&&k===T,direction:E,onClick:w(T),children:[P,I&&k===T?S.jsx(fs,{component:"span",sx:{visibility:"hidden",display:"none"},children:E==="desc"?"sorted descending":"sorted ascending"}):null]})},T)),S.jsx(b,{})]})]})},b7=()=>{const{massActions:e,columns:t}=kl(),n=hr(),{["ModelIndex.Table.ShrinkedCell"]:r}=Ut("cms").getComponents(),[i]=Ii(),a=parseInt(i.get("per_page")||"15");return S.jsx(S.Fragment,{children:Array.from({length:a}).map((u,f)=>S.jsxs(dd,{children:[e.length>0&&S.jsx(r,{children:S.jsx(Nb,{})}),n&&t.map(({key:p,label:h,sortable:g,...b},x)=>S.jsx(Oa,{...b,children:S.jsx(IR,{variant:"text",height:24})},x)),!n&&S.jsx(Oa,{sx:{px:0},children:Array.from({length:t.length}).map((p,h)=>S.jsx(IR,{variant:"text",width:"100%",height:24},h))}),S.jsx(r,{children:S.jsx(bo,{children:S.jsx(n2,{})})})]},f))})},y7=({children:e,...t})=>{const n=Pa(),{t:r}=oo(),{items:i,loading:a,columnCount:u}=kl(),{["ModelIndex.StaticActions"]:f}=Ut("cms").getComponents(),p=xe.isValidElement(e)?e:(i||ho([])).map(e);return S.jsxs(x9,{...t,children:[a&&S.jsx(b7,{}),p,i&&!i.count()&&S.jsx(dd,{children:S.jsxs(Oa,{colSpan:u,sx:{textAlign:"center",py:10},children:[S.jsx(ar,{children:r("No :model found",{model:n.plural().toLocaleLowerCase()})}),S.jsx("br",{}),S.jsx(f,{})]})})]})},pd=he(ar)(()=>({whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","& label":{fontWeight:"bold"}})),x7=({content:e})=>["string","number"].includes(typeof e)?S.jsx(pd,{children:e}):e instanceof Date?S.jsx(pd,{children:e.toLocaleString(dl("app.locale","en"))}):typeof e=="object"&&!xe.isValidElement(e)?S.jsx(pd,{children:JSON.stringify(e)}):S.jsx(xe.Fragment,{children:e}),S7=({label:e,content:t})=>["string","number"].includes(typeof t)?S.jsxs(pd,{children:[S.jsxs("label",{children:[e,":"]})," ",t]}):t instanceof Date?S.jsxs(pd,{children:[S.jsxs("label",{children:[e,":"]}),t.toLocaleString(dl("app.locale","en"))]}):typeof t=="object"&&!xe.isValidElement(t)?S.jsxs(pd,{children:[S.jsxs("label",{children:[e,":"]})," ",JSON.stringify(t)]}):S.jsxs(xe.Fragment,{children:[S.jsx(ar,{sx:{display:"inline"},children:S.jsxs("b",{children:[e,":"]})})," ",t]}),w7=({item:e,...t})=>{const n=hr(),r=np(),i=Pa(),{massActions:a,columns:u}=kl(),f=xe.useMemo(()=>u.map(x=>({...x,content:Ut("cms")[`model${e.constructor.name}Get${ve.upperFirst(ve.camelCase(x.key))}Content`](e.getAttribute(x.key),e)})),[u,e]),{["ModelIndex.Table.ShrinkedCell"]:p,["ModelIndex.InstanceActions"]:h}=Ut("cms").getComponents(),{isSelected:g,handleSelectToggle:b}=by();return S.jsxs(dd,{...t,sx:{cursor:e.deletedAt?"default":"pointer"},selected:g(e),hover:!e.deletedAt,children:[a.length>0&&S.jsx(p,{children:S.jsx(Nb,{checked:g(e),onChange:()=>b(e)})}),n&&f.map(({key:x,label:k,sortable:E,content:w,...T})=>S.jsx(Oa,{...T,onClick:()=>{e.deletedAt||r(`/${ve.kebabCase(i.plural())}/${e.getKey()}`)},children:S.jsx(x7,{label:k,content:w})},x)),!n&&S.jsx(Oa,{sx:{maxWidth:0,px:0},onClick:()=>{e.deletedAt||r(`/${ve.kebabCase(i.plural())}/${e.getKey()}`)},children:f.map(({key:x,...k})=>S.jsx(S7,{...k},x))}),S.jsx(p,{children:S.jsx(h,{item:e})})]})},_7=({children:e,...t})=>{const{columnCount:n}=kl(),r=hr(),i=gi("breakpoint","md"),{["ModelIndex.Pagination"]:a,["ModelIndex.PaginationDetails"]:u,["ModelIndex.PerPageSwitch"]:f}=Ut("cms").getComponents();return S.jsxs(M9,{...t,children:[S.jsx(dd,{children:S.jsx(Oa,{colSpan:n,children:S.jsxs(yo,{direction:r?"row":"column-reverse",alignItems:"center",justifyContent:"space-between",gap:3,children:[S.jsxs(yo,{direction:r?"row":"column-reverse",alignItems:r?"center":"flex-start",justifyContent:"flex-start",width:{xs:"100%",[i]:"auto"},gap:r?2:0,children:[S.jsx(f,{}),S.jsx(u,{})]}),S.jsx(a,{variant:r?"default":"compact",justifyContent:{xs:"center",[i]:"flex-end"}})]})})}),e]})},C7=()=>{const{columnCount:e}=kl(),{["ModelIndex.Filter"]:t,["ModelIndex.MassActions"]:n,["ModelIndex.Sort"]:r,["ModelIndex.Pagination"]:i}=Ut("cms").getComponents(),a=hr(),u=gi("breakpoint","md");return S.jsx(dd,{children:S.jsx(Oa,{colSpan:e,sx:{p:1},children:S.jsxs(yo,{direction:{xs:"column",[u]:"row"},justifyContent:"space-between",spacing:1,children:[S.jsxs(yo,{direction:"row",alignItems:"center",width:{[u]:"100%"},children:[S.jsx(t,{}),!a&&S.jsx(r,{})]}),a&&S.jsx(yo,{direction:"row",alignItems:"center",justifyContent:{xs:"center",[u]:"flex-end"},rowGap:2,children:S.jsx(i,{variant:"compact",justifyContent:"end"})}),S.jsx(n,{})]})})})};function E7(){const e=Pa(),{t}=oo(),[n,r]=Ii(),i=n.get("tab")||"all",a=(p,h)=>{r(()=>{const g=new URLSearchParams;return h!=="all"&&g.set("tab",h),g})},u=xe.useMemo(()=>e.getSchema().softDeletes?[{label:t("Trashed"),value:"trashed"}]:[],[e]),f=C1(Ut("cms"),`model${ve.upperFirst(ve.camelCase(e.getSchemaName()))}Tabs`,u);return f.length===0?null:S.jsx(fs,{sx:{maxWidth:{xs:320,sm:480},bgcolor:"background.paper"},children:S.jsxs(R8,{value:i,onChange:a,variant:"scrollable",scrollButtons:"auto","aria-label":`tabs for ${e.singular()}`,allowScrollButtonsMobile:!0,children:[S.jsx($R,{label:t("All"),value:"all"}),f.map(p=>S.jsx($R,{label:p.label,value:p.value},p.value))]})})}function R7(e){const{parts:t,...n}=e;return S.jsxs(Sj,{"aria-label":"breadcrumb",...n,children:[S.jsx(Gb,{underline:"hover",color:"inherit",to:"/",component:Gm,children:dl("app.name","Laravel")}),t==null?void 0:t.map(({name:r,href:i},a)=>i?S.jsx(Gb,{underline:"hover",color:"inherit",to:i,component:Gm,children:r},a):S.jsx(ar,{color:"text.primary",children:r},a))]})}const f2=({collapsed:e=!1,items:t,onClick:n,...r})=>{const[i,a]=xe.useState(null),[u,f]=xe.useState(null),[p,h]=xe.useState({}),g=gi("drawer.width",280),b=Ut("cms").getComponent("RecursiveMenu");return S.jsxs(rR,{...r,children:[t.map(x=>{const{text:k,icon:E,element:w=null,key:T,children:P,to:I,onClick:D}=x;return w||S.jsxs($6,{disablePadding:!0,sx:{display:"block"},children:[S.jsxs(C6,{sx:{minHeight:48,justifyContent:e?"center":"initial",px:2.5},onClick:M=>{if(D&&D(M),P){if(e){f(()=>(a(M.currentTarget),P));return}h({...p,[T]:!p[T]});return}n&&n(M)},...I?{to:I,component:Vg}:{},children:[S.jsxs(sR,{sx:{minWidth:0,mr:e?"unset":3,justifyContent:"center",flexDirection:"column",alignItems:"center",color:"inherit"},children:[E,e&&S.jsx(ar,{fontSize:10,sx:{mt:.5},children:k})]}),!e&&S.jsx(aR,{primary:k}),!e&&P&&(p[T]?S.jsx(aU,{}):S.jsx(lU,{}))]}),P&&!e&&S.jsx(pb,{in:p[T],timeout:"auto",unmountOnExit:!0,children:S.jsx(f2,{items:P,onClick:n,collapsed:e,sx:{pl:e?0:2,pb:0}})})]},T)}),e&&S.jsx(b,{items:u||[],onClick:n,collapsed:!1,sx:{pl:e?0:2,pb:0},anchorEl:i,anchorOrigin:{vertical:"top",horizontal:"right"},onClose:()=>{a(null),f(null)},open:!!i,slotProps:{paper:{sx:{minWidth:g}}}})]})},p2=({collapsed:e=!1,items:t,onClick:n,...r})=>{const[i,a]=xe.useState({}),u=gi("drawer.width",280);return S.jsxs(S.Fragment,{children:[S.jsx(Xb,{...r,children:t.map(f=>{const{text:p,icon:h,element:g=null,key:b,children:x,onClick:k,to:E}=f;return g||S.jsxs(_l,{onClick:w=>{if(k&&k(w),x){a({...i,[b]:i[b]?null:w.currentTarget});return}n&&n(w)},...E?{component:Vg,to:E}:{},children:[h&&S.jsx(sR,{sx:{minWidth:0,mr:e?"auto":3,justifyContent:"center",color:"inherit"},children:h}),S.jsx(aR,{sx:{opacity:e?0:1},children:p}),!e&&x&&S.jsx(sy,{})]},b)})}),t.map(f=>{const{key:p,children:h}=f;return h?S.jsx(p2,{items:h,onClick:n,collapsed:e,sx:{pl:e?0:2,pb:0},open:!!i[p],anchorEl:i[p],anchorOrigin:{vertical:"top",horizontal:"right"},onClose:()=>a({...i,[p]:null}),slotProps:{paper:{sx:{minWidth:u}}}},p):null})]})},yy={delete:e=>async({selected:t,notify:n,dialog:r,refresh:i,t:a})=>{const u=e.getSchema().softDeletes?"send to trash":"delete permanently",f=e.getSchema().softDeletes?"sent to trash":"deleted";if(await r({title:e.getSchema().softDeletes?a("Confirm send to trash"):a("Confirm delete permanently"),message:a(`Are you sure you want to ${u} :count :model?`,{count:t.count(),model:ve.lowerFirst(t.count()===1?e.singular():e.plural())}),type:"confirm"}))try{await e.delete(t.pluck(e.getSchema().primaryKey).all()),n(a(`Successfully ${f} :count :model`,{count:t.count(),model:ve.lowerFirst(t.count()===1?e.singular():e.plural())})),i()}catch(h){Iu(n)(h)}},restore:e=>async({selected:t,notify:n,dialog:r,refresh:i,t:a})=>{if(await r({title:a("Confirm restore"),message:a("Are you sure you want to restore :count :model?",{count:t.count(),model:ve.lowerFirst(t.count()===1?e.singular():e.plural())}),type:"confirm"}))try{await e.restore(t.pluck(e.getSchema().primaryKey).all()),n(a("Successfully restored :count :model",{count:t.count(),model:ve.lowerFirst(t.count()===1?e.singular():e.plural())})),i()}catch(f){Iu(n)(f)}},forceDelete:e=>async({selected:t,notify:n,dialog:r,refresh:i,t:a})=>{if(await r({title:a("Confirm permanent deletion"),message:a("Are you sure you want to delete permanently :count :model?",{count:t.count(),model:ve.lowerFirst(t.count()===1?e.singular():e.plural())}),type:"confirm"}))try{await e.forceDelete(t.pluck(e.getSchema().primaryKey).all()),n(a("Successfully deleted :count :model",{count:t.count(),model:ve.lowerFirst(t.count()===1?e.singular():e.plural())})),i()}catch(f){Iu(n)(f)}}},xy={delete:e=>async({item:t,notify:n,dialog:r,refresh:i,t:a})=>{const u=e.getSchema().softDeletes?"send :model “:label” to trash":"delete :model “:label” permanently",f=e.getSchema().softDeletes?"sent :model “:label” to trash":"deleted :model “:label”";if(await r({title:e.getSchema().softDeletes?a("Confirm send to trash"):a("Confirm permanent deletion"),message:a(`Are you sure you want to ${u}?`,{model:ve.lowerFirst(e.singular()),label:t.getLabel()}),type:"confirm"}))try{await t.delete(),n(a(`Successfully ${f}`,{model:e.singular(),label:t.getLabel()})),i()}catch(h){Iu(n)(h)}},restore:e=>async({item:t,notify:n,dialog:r,refresh:i,t:a})=>{if(await r({title:a("Confirm restore"),message:a("Are you sure you want to restore :model “:label”?",{model:ve.lowerFirst(e.singular()),label:t.getLabel()}),type:"confirm"}))try{await t.restore(),n(a("Successfully restored :model “:label”",{model:e.singular(),label:t.getLabel()})),i()}catch(f){Iu(n)(f)}},forceDelete:e=>async({item:t,notify:n,dialog:r,refresh:i,t:a})=>{if(await r({title:a("Confirm permanent deletion"),message:a("Are you sure you want to delete :model “:label” permanently?",{model:ve.lowerFirst(e.singular()),label:t.getLabel()}),type:"confirm"}))try{await t.forceDelete(),n(a("Successfully deleted :model “:label”",{model:e.singular(),label:t.getLabel()})),i()}catch(f){Iu(n)(f)}}},k7={create:e=>({navigate:t})=>{t(`/${ve.kebabCase(e.plural())}/create`)}},T7=({item:e})=>{const t=dy(),[n]=Ii(),r=n.get("tab")??"all",i=xe.useMemo(()=>Ut("cms").getInstanceActions(e.constructor,r),[e,r]),[a,u]=xe.useState(null),f=!!a,p=g=>{u(g.currentTarget)},h=()=>{u(null)};return S.jsxs(S.Fragment,{children:[S.jsx(bo,{"aria-describedby":"model-item-actions","aria-label":"filter",onClick:p,children:S.jsx(n2,{})}),S.jsx(Xb,{id:"model-item-actions",anchorEl:a,open:f,onClose:h,MenuListProps:{"aria-labelledby":"model-item-action"},children:i.map(g=>S.jsxs(_l,{onClick:()=>{g.callback({item:e,...t}),h()},sx:{px:1,gap:.75},children:[g.icon,g.label]},g.label))})]})};let So;class O7 extends e1{constructor(n={}){super();xx(this,"name","Luminix CMS Plugin");this.options=n}register(n){So=n,So.bind("cms",new D8),So.bind("filter",new $8),So.once("booting",()=>{this.bootModels()})}boot(){this.bootComponents(),this.bootRoutes(),this.bootMenu(),this.bootMassActions(),this.bootInstanceActions(),this.bootStaticActions(),(this.options.applyUserDefaults??!0)&&this.bootDefaultUserModifiers()}bootModels(){So.make("model").reducer("model",(n,r)=>class extends n{static icon(){return r==="user"?S.jsx(pU,{}):S.jsx(iU,{})}},0)}bootRoutes(){So.make("cms").reducer("cmsRoutes",bU,0),So.make("route").reducer("routerOptions",n=>({...n,basename:So.make("config").get("luminix.admin.url","/admin")}))}bootComponents(){So.make("cms").reducer("componentMap",()=>({Layout:wU,Dashboard:yU,ModelIndex:CU,ModelItem:kU,Error:xU,DesktopPageTitle:WU,RecursiveList:f2,RecursiveMenu:p2,Breadcrumbs:R7,"Layout.AppBar":jU,"Layout.Drawer":HU,"Layout.AppBar.MenuButton":o7,"Layout.SearchBar":f7,"Layout.BackButton":FU,"ModelIndex.Filter":n7,"ModelIndex.InstanceActions":T7,"ModelIndex.MassActions":r7,"ModelIndex.Pagination":s7,"ModelIndex.PaginationDetails":a7,"ModelIndex.PerPageSwitch":l7,"ModelIndex.Sort":h7,"ModelIndex.StaticActions":AU,"ModelIndex.Table":g7,"ModelIndex.Table.TableHead":v7,"ModelIndex.Table.TableBody":y7,"ModelIndex.Table.TableFooter":_7,"ModelIndex.Table.TableToolbar":C7,"ModelIndex.Table.TableBody.TableRow":w7,"ModelIndex.Table.ShrinkedCell":p7,"ModelIndex.Tabs":E7}),0)}bootMenu(){So.make("cms").reducer("menuItems",(n,r)=>[...n,{key:"dashboard",text:"Dashboard",to:"/",icon:S.jsx(sU,{})},...Object.entries(r).sort(([i],[a])=>i.localeCompare(a)).map(([i,a])=>({key:i,text:a.plural(),to:"/"+ve.kebabCase(a.plural()),icon:a.icon()}))],0)}bootDefaultUserModifiers(){So.make("cms").reducer("modelUserColumns",()=>[{key:"name",label:"Name",scope:"row",component:"th"},{key:"email",label:"Email",align:"right",size:"small"},{key:"created_at",label:"Created At",align:"right",size:"small"}],1),So.make("cms").reducer("wireModelFormProps",(n,r)=>(r==null?void 0:r.getType())==="user"?{...n,confirmed:"password"}:n)}bootMassActions(){So.make("cms").reducer("massActions",(n,r,i)=>{const a=[],{softDeletes:u}=r.getSchema();return i!=="trashed"?a.push({key:"delete",label:u?"Send to trash":"Delete permanently",callback:yy.delete(r)}):(a.push({key:"restore",label:"Restore",callback:yy.restore(r)}),a.push({key:"forceDelete",label:"Delete permanently",callback:yy.forceDelete(r)})),[...n,...a]},0)}bootInstanceActions(){So.make("cms").reducer("instanceActions",(n,r,i)=>{const a=[],{softDeletes:u}=r.getSchema();return i!=="trashed"?a.push({label:u?"Send to trash":"Delete permanently",callback:xy.delete(r)}):(a.push({label:"Restore",callback:xy.restore(r)}),a.push({label:"Delete permanently",callback:xy.forceDelete(r)})),[...n,...a]},0)}bootStaticActions(){So.make("cms").reducer("staticActions",(n,r,i)=>i==="trashed"?n:[...n,{key:"create",label:`Create ${r.singular()}`,callback:k7.create(r),icon:S.jsx(tU,{})}],0)}}const P7={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Xg{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||P7,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Xg(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Xg(this.logger,t)}}var Bs=new Xg;class qg{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(u=>{let[f,p]=u;for(let h=0;h<p;h++)f(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(u=>{let[f,p]=u;for(let h=0;h<p;h++)f.apply(f,[t,...r])})}}function Qp(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function h2(e){return e==null?"":""+e}function I7(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}const A7=/###/g;function Jp(e,t,n){function r(f){return f&&f.indexOf("###")>-1?f.replace(A7,"."):f}function i(){return!e||typeof e=="string"}const a=typeof t!="string"?t:t.split(".");let u=0;for(;u<a.length-1;){if(i())return{};const f=r(a[u]);!e[f]&&n&&(e[f]=new n),Object.prototype.hasOwnProperty.call(e,f)?e=e[f]:e={},++u}return i()?{}:{obj:e,k:r(a[u])}}function m2(e,t,n){const{obj:r,k:i}=Jp(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],u=t.slice(0,t.length-1),f=Jp(e,u,Object);for(;f.obj===void 0&&u.length;)a=`${u[u.length-1]}.${a}`,u=u.slice(0,u.length-1),f=Jp(e,u,Object),f&&f.obj&&typeof f.obj[`${f.k}.${a}`]<"u"&&(f.obj=void 0);f.obj[`${f.k}.${a}`]=n}function D7(e,t,n,r){const{obj:i,k:a}=Jp(e,t,Object);i[a]=i[a]||[],i[a].push(n)}function Yg(e,t){const{obj:n,k:r}=Jp(e,t);if(n)return n[r]}function N7(e,t,n){const r=Yg(e,n);return r!==void 0?r:Yg(t,n)}function g2(e,t,n){for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):g2(e[r],t[r],n):e[r]=t[r]);return e}function hd(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var $7={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function M7(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>$7[t]):e}class L7{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const j7=[" ",",","?","!",";"],F7=new L7(20);function z7(e,t,n){t=t||"",n=n||"";const r=j7.filter(u=>t.indexOf(u)<0&&n.indexOf(u)<0);if(r.length===0)return!0;const i=F7.getRegExp(`(${r.map(u=>u==="?"?"\\?":u).join("|")})`);let a=!i.test(e);if(!a){const u=e.indexOf(n);u>0&&!i.test(e.substring(0,u))&&(a=!0)}return a}function Sy(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let a=0;a<r.length;){if(!i||typeof i!="object")return;let u,f="";for(let p=a;p<r.length;++p)if(p!==a&&(f+=n),f+=r[p],u=i[f],u!==void 0){if(["string","number","boolean"].indexOf(typeof u)>-1&&p<r.length-1)continue;a+=p-a+1;break}i=u}return i}function Qg(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class v2 extends qg{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let f;t.indexOf(".")>-1?f=t.split("."):(f=[t,n],r&&(Array.isArray(r)?f.push(...r):typeof r=="string"&&a?f.push(...r.split(a)):f.push(r)));const p=Yg(this.data,f);return!p&&!n&&!r&&t.indexOf(".")>-1&&(t=f[0],n=f[1],r=f.slice(2).join(".")),p||!u||typeof r!="string"?p:Sy(this.data&&this.data[t]&&this.data[t][n],r,a)}addResource(t,n,r,i){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const u=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let f=[t,n];r&&(f=f.concat(u?r.split(u):r)),t.indexOf(".")>-1&&(f=t.split("."),i=n,n=f[1]),this.addNamespaces(n),m2(this.data,f,i),a.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in r)(typeof r[a]=="string"||Array.isArray(r[a]))&&this.addResource(t,n,a,r[a],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,a){let u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},f=[t,n];t.indexOf(".")>-1&&(f=t.split("."),i=r,r=n,n=f[1]),this.addNamespaces(n);let p=Yg(this.data,f)||{};u.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?g2(p,r,a):p={...p,...r},m2(this.data,f,p),u.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var b2={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,r,i))}),t}};const y2={};class Jg extends qg{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),I7(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Bs.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let a=n.ns||this.options.defaultNS||[];const u=r&&t.indexOf(r)>-1,f=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!z7(t,r,i);if(u&&!f){const p=t.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:t,namespaces:a};const h=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(h[0])>-1)&&(a=h.shift()),t=h.join(i)}return typeof a=="string"&&(a=[a]),{key:t,namespaces:a}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:u,namespaces:f}=this.extractFromKey(t[t.length-1],n),p=f[f.length-1],h=n.lng||this.language,g=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h&&h.toLowerCase()==="cimode"){if(g){const M=n.nsSeparator||this.options.nsSeparator;return i?{res:`${p}${M}${u}`,usedKey:u,exactUsedKey:u,usedLng:h,usedNS:p,usedParams:this.getUsedParamsDetails(n)}:`${p}${M}${u}`}return i?{res:u,usedKey:u,exactUsedKey:u,usedLng:h,usedNS:p,usedParams:this.getUsedParamsDetails(n)}:u}const b=this.resolve(t,n);let x=b&&b.res;const k=b&&b.usedKey||u,E=b&&b.exactUsedKey||u,w=Object.prototype.toString.apply(x),T=["[object Number]","[object Function]","[object RegExp]"],P=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,I=!this.i18nFormat||this.i18nFormat.handleAsObject;if(I&&x&&(typeof x!="string"&&typeof x!="boolean"&&typeof x!="number")&&T.indexOf(w)<0&&!(typeof P=="string"&&Array.isArray(x))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const M=this.options.returnedObjectHandler?this.options.returnedObjectHandler(k,x,{...n,ns:f}):`key '${u} (${this.language})' returned an object instead of string.`;return i?(b.res=M,b.usedParams=this.getUsedParamsDetails(n),b):M}if(a){const M=Array.isArray(x),L=M?[]:{},A=M?E:k;for(const z in x)if(Object.prototype.hasOwnProperty.call(x,z)){const G=`${A}${a}${z}`;L[z]=this.translate(G,{...n,joinArrays:!1,ns:f}),L[z]===G&&(L[z]=x[z])}x=L}}else if(I&&typeof P=="string"&&Array.isArray(x))x=x.join(P),x&&(x=this.extendTranslation(x,t,n,r));else{let M=!1,L=!1;const A=n.count!==void 0&&typeof n.count!="string",z=Jg.hasDefaultValue(n),G=A?this.pluralResolver.getSuffix(h,n.count,n):"",q=n.ordinal&&A?this.pluralResolver.getSuffix(h,n.count,{ordinal:!1}):"",X=A&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),ne=X&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${G}`]||n[`defaultValue${q}`]||n.defaultValue;!this.isValidLookup(x)&&z&&(M=!0,x=ne),this.isValidLookup(x)||(L=!0,x=u);const Z=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&L?void 0:x,V=z&&ne!==x&&this.options.updateMissing;if(L||M||V){if(this.logger.log(V?"updateKey":"missingKey",h,p,u,V?ne:x),a){const U=this.resolve(u,{...n,keySeparator:!1});U&&U.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 ce=[];const ue=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ue&&ue[0])for(let U=0;U<ue.length;U++)ce.push(ue[U]);else this.options.saveMissingTo==="all"?ce=this.languageUtils.toResolveHierarchy(n.lng||this.language):ce.push(n.lng||this.language);const se=(U,ae,Se)=>{const H=z&&Se!==x?Se:Z;this.options.missingKeyHandler?this.options.missingKeyHandler(U,p,ae,H,V,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(U,p,ae,H,V,n),this.emit("missingKey",U,p,ae,x)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?ce.forEach(U=>{const ae=this.pluralResolver.getSuffixes(U,n);X&&n[`defaultValue${this.options.pluralSeparator}zero`]&&ae.indexOf(`${this.options.pluralSeparator}zero`)<0&&ae.push(`${this.options.pluralSeparator}zero`),ae.forEach(Se=>{se([U],u+Se,n[`defaultValue${Se}`]||ne)})}):se(ce,u,ne))}x=this.extendTranslation(x,t,n,b,r),L&&x===u&&this.options.appendNamespaceToMissingKey&&(x=`${p}:${u}`),(L||M)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?x=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}:${u}`:u,M?x:void 0):x=this.options.parseMissingKeyHandler(x))}return i?(b.res=x,b.usedParams=this.getUsedParamsDetails(n),b):x}extendTranslation(t,n,r,i,a){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const h=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let g;if(h){const x=t.match(this.interpolator.nestingRegexp);g=x&&x.length}let b=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(b={...this.options.interpolation.defaultVariables,...b}),t=this.interpolator.interpolate(t,b,r.lng||this.language||i.usedLng,r),h){const x=t.match(this.interpolator.nestingRegexp),k=x&&x.length;g<k&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var x=arguments.length,k=new Array(x),E=0;E<x;E++)k[E]=arguments[E];return a&&a[0]===k[0]&&!r.context?(u.logger.warn(`It seems you are nesting recursively key: ${k[0]} in key: ${n[0]}`),null):u.translate(...k,n)},r)),r.interpolation&&this.interpolator.reset()}const f=r.postProcess||this.options.postProcess,p=typeof f=="string"?[f]:f;return t!=null&&p&&p.length&&r.applyPostProcessor!==!1&&(t=b2.handle(p,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,a,u,f;return typeof t=="string"&&(t=[t]),t.forEach(p=>{if(this.isValidLookup(r))return;const h=this.extractFromKey(p,n),g=h.key;i=g;let b=h.namespaces;this.options.fallbackNS&&(b=b.concat(this.options.fallbackNS));const x=n.count!==void 0&&typeof n.count!="string",k=x&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),E=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",w=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);b.forEach(T=>{this.isValidLookup(r)||(f=T,!y2[`${w[0]}-${T}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(f)&&(y2[`${w[0]}-${T}`]=!0,this.logger.warn(`key "${i}" for languages "${w.join(", ")}" won't get resolved as namespace "${f}" 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!!!")),w.forEach(P=>{if(this.isValidLookup(r))return;u=P;const I=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(I,g,P,T,n);else{let M;x&&(M=this.pluralResolver.getSuffix(P,n.count,n));const L=`${this.options.pluralSeparator}zero`,A=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(x&&(I.push(g+M),n.ordinal&&M.indexOf(A)===0&&I.push(g+M.replace(A,this.options.pluralSeparator)),k&&I.push(g+L)),E){const z=`${g}${this.options.contextSeparator}${n.context}`;I.push(z),x&&(I.push(z+M),n.ordinal&&M.indexOf(A)===0&&I.push(z+M.replace(A,this.options.pluralSeparator)),k&&I.push(z+L))}}let D;for(;D=I.pop();)this.isValidLookup(r)||(a=D,r=this.getResource(P,T,D,n))}))})}),{res:r,usedKey:i,exactUsedKey:a,usedLng:u,usedNS:f}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const a of n)delete i[a]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function wy(e){return e.charAt(0).toUpperCase()+e.slice(1)}class x2{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Bs.create("languageUtils")}getScriptPartFromCode(t){if(t=Qg(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Qg(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=wy(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=wy(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=wy(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(a=>{if(a===i)return a;if(!(a.indexOf("-")<0&&i.indexOf("-")<0)&&(a.indexOf("-")>0&&i.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===i||a.indexOf(i)===0&&i.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],a=u=>{u&&(this.isSupportedCode(u)?i.push(u):this.logger.warn(`rejecting language code not found in supportedLngs: ${u}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),r.forEach(u=>{i.indexOf(u)<0&&a(this.formatLanguageCode(u))}),i}}let B7=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],U7={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const H7=["v1","v2","v3"],W7=["v4"],S2={zero:0,one:1,two:2,few:3,many:4,other:5};function G7(){const e={};return B7.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:U7[t.fc]}})}),e}class K7{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Bs.create("pluralResolver"),(!this.options.compatibilityJSON||W7.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=G7()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Qg(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,a)=>S2[i]-S2[a]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const a=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!H7.includes(this.options.compatibilityJSON)}}function w2(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=N7(e,t,n);return!a&&i&&typeof n=="string"&&(a=Sy(e,n,r),a===void 0&&(a=Sy(t,n,r))),a}class V7{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Bs.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:a,prefixEscaped:u,suffix:f,suffixEscaped:p,formatSeparator:h,unescapeSuffix:g,unescapePrefix:b,nestingPrefix:x,nestingPrefixEscaped:k,nestingSuffix:E,nestingSuffixEscaped:w,nestingOptionsSeparator:T,maxReplaces:P,alwaysFormat:I}=t.interpolation;this.escape=n!==void 0?n:M7,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=a?hd(a):u||"{{",this.suffix=f?hd(f):p||"}}",this.formatSeparator=h||",",this.unescapePrefix=g?"":b||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=x?hd(x):k||hd("$t("),this.nestingSuffix=E?hd(E):w||hd(")"),this.nestingOptionsSeparator=T||",",this.maxReplaces=P||1e3,this.alwaysFormat=I!==void 0?I:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let a,u,f;const p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function h(E){return E.replace(/\$/g,"$$$$")}const g=E=>{if(E.indexOf(this.formatSeparator)<0){const I=w2(n,p,E,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(I,void 0,r,{...i,...n,interpolationkey:E}):I}const w=E.split(this.formatSeparator),T=w.shift().trim(),P=w.join(this.formatSeparator).trim();return this.format(w2(n,p,T,this.options.keySeparator,this.options.ignoreJSONStructure),P,r,{...i,...n,interpolationkey:T})};this.resetRegExp();const b=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,x=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:E=>h(E)},{regex:this.regexp,safeValue:E=>this.escapeValue?h(this.escape(E)):h(E)}].forEach(E=>{for(f=0;a=E.regex.exec(t);){const w=a[1].trim();if(u=g(w),u===void 0)if(typeof b=="function"){const P=b(t,a,i);u=typeof P=="string"?P:""}else if(i&&Object.prototype.hasOwnProperty.call(i,w))u="";else if(x){u=a[0];continue}else this.logger.warn(`missed to pass in variable ${w} for interpolating ${t}`),u="";else typeof u!="string"&&!this.useRawValueToEscape&&(u=h2(u));const T=E.safeValue(u);if(t=t.replace(a[0],T),x?(E.regex.lastIndex+=u.length,E.regex.lastIndex-=a[0].length):E.regex.lastIndex=0,f++,f>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,a,u;function f(p,h){const g=this.nestingOptionsSeparator;if(p.indexOf(g)<0)return p;const b=p.split(new RegExp(`${g}[ ]*{`));let x=`{${b[1]}`;p=b[0],x=this.interpolate(x,u);const k=x.match(/'/g),E=x.match(/"/g);(k&&k.length%2===0&&!E||E.length%2!==0)&&(x=x.replace(/'/g,'"'));try{u=JSON.parse(x),h&&(u={...h,...u})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${p}`,w),`${p}${g}${x}`}return u.defaultValue&&u.defaultValue.indexOf(this.prefix)>-1&&delete u.defaultValue,p}for(;i=this.nestingRegexp.exec(t);){let p=[];u={...r},u=u.replace&&typeof u.replace!="string"?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;let h=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const g=i[1].split(this.formatSeparator).map(b=>b.trim());i[1]=g.shift(),p=g,h=!0}if(a=n(f.call(this,i[1].trim(),u),u),a&&i[0]===t&&typeof a!="string")return a;typeof a!="string"&&(a=h2(a)),a||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),a=""),h&&(a=p.reduce((g,b)=>this.format(g,b,r.lng,{...r,interpolationkey:i[1].trim()}),a.trim())),t=t.replace(i[0],a),this.regexp.lastIndex=0}return t}}function X7(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(u=>{if(u){const[f,...p]=u.split(":"),h=p.join(":").trim().replace(/^'+|'+$/g,""),g=f.trim();n[g]||(n[g]=h),h==="false"&&(n[g]=!1),h==="true"&&(n[g]=!0),isNaN(h)||(n[g]=parseInt(h,10))}})}return{formatName:t,formatOptions:n}}function md(e){const t={};return function(r,i,a){const u=i+JSON.stringify(a);let f=t[u];return f||(f=e(Qg(i),a),t[u]=f),f(r)}}class q7{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Bs.create("formatter"),this.options=t,this.formats={number:md((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return a=>i.format(a)}),currency:md((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return a=>i.format(a)}),datetime:md((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return a=>i.format(a)}),relativetime:md((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return a=>i.format(a,r.range||"day")}),list:md((n,r)=>{const i=new Intl.ListFormat(n,{...r});return a=>i.format(a)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=md(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((f,p)=>{const{formatName:h,formatOptions:g}=X7(p);if(this.formats[h]){let b=f;try{const x=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},k=x.locale||x.lng||i.locale||i.lng||r;b=this.formats[h](f,k,{...g,...i,...x})}catch(x){this.logger.warn(x)}return b}else this.logger.warn(`there was no format function for ${h}`);return f},t)}}function Y7(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class Q7 extends qg{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Bs.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const a={},u={},f={},p={};return t.forEach(h=>{let g=!0;n.forEach(b=>{const x=`${h}|${b}`;!r.reload&&this.store.hasResourceBundle(h,b)?this.state[x]=2:this.state[x]<0||(this.state[x]===1?u[x]===void 0&&(u[x]=!0):(this.state[x]=1,g=!1,u[x]===void 0&&(u[x]=!0),a[x]===void 0&&(a[x]=!0),p[b]===void 0&&(p[b]=!0)))}),g||(f[h]=!0)}),(Object.keys(a).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(a),pending:Object.keys(u),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(p)}}loaded(t,n,r){const i=t.split("|"),a=i[0],u=i[1];n&&this.emit("failedLoading",a,u,n),r&&this.store.addResourceBundle(a,u,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const f={};this.queue.forEach(p=>{D7(p.loaded,[a],u),Y7(p,t),n&&p.errors.push(n),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(h=>{f[h]||(f[h]={});const g=p.loaded[h];g.length&&g.forEach(b=>{f[h][b]===void 0&&(f[h][b]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",f),this.queue=this.queue.filter(p=>!p.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,u=arguments.length>5?arguments[5]:void 0;if(!t.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:a,callback:u});return}this.readingCalls++;const f=(h,g)=>{if(this.readingCalls--,this.waitingReads.length>0){const b=this.waitingReads.shift();this.read(b.lng,b.ns,b.fcName,b.tried,b.wait,b.callback)}if(h&&g&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,a*2,u)},a);return}u(h,g)},p=this.backend[r].bind(this.backend);if(p.length===2){try{const h=p(t,n);h&&typeof h.then=="function"?h.then(g=>f(null,g)).catch(f):f(null,h)}catch(h){f(h)}return}return p(t,n,f)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const a=this.queueLoad(t,n,r,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach(u=>{this.loadOne(u)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],a=r[1];this.read(i,a,"read",void 0,void 0,(u,f)=>{u&&this.logger.warn(`${n}loading namespace ${a} for language ${i} failed`,u),!u&&f&&this.logger.log(`${n}loaded namespace ${a} for language ${i}`,f),this.loaded(t,u,f)})}saveMissing(t,n,r,i,a){let u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},f=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const p={...u,isUpdate:a},h=this.backend.create.bind(this.backend);if(h.length<6)try{let g;h.length===5?g=h(t,n,r,i,p):g=h(t,n,r,i),g&&typeof g.then=="function"?g.then(b=>f(null,b)).catch(f):f(null,g)}catch(g){f(g)}else h(t,n,r,i,f,p)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}function _2(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(i=>{n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function C2(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Zg(){}function J7(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class Zp extends qg{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=C2(t),this.services={},this.logger=Bs,this.modules={external:[]},J7(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=_2();this.options={...i,...this.options,...C2(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function a(g){return g?typeof g=="function"?new g:g:null}if(!this.options.isClone){this.modules.logger?Bs.init(a(this.modules.logger),this.options):Bs.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=q7);const b=new x2(this.options);this.store=new v2(this.options.resources,this.options);const x=this.services;x.logger=Bs,x.resourceStore=this.store,x.languageUtils=b,x.pluralResolver=new K7(b,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),g&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(x.formatter=a(g),x.formatter.init(x,this.options),this.options.interpolation.format=x.formatter.format.bind(x.formatter)),x.interpolator=new V7(this.options),x.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},x.backendConnector=new Q7(a(this.modules.backend),x.resourceStore,x,this.options),x.backendConnector.on("*",function(k){for(var E=arguments.length,w=new Array(E>1?E-1:0),T=1;T<E;T++)w[T-1]=arguments[T];t.emit(k,...w)}),this.modules.languageDetector&&(x.languageDetector=a(this.modules.languageDetector),x.languageDetector.init&&x.languageDetector.init(x,this.options.detection,this.options)),this.modules.i18nFormat&&(x.i18nFormat=a(this.modules.i18nFormat),x.i18nFormat.init&&x.i18nFormat.init(this)),this.translator=new Jg(this.services,this.options),this.translator.on("*",function(k){for(var E=arguments.length,w=new Array(E>1?E-1:0),T=1;T<E;T++)w[T-1]=arguments[T];t.emit(k,...w)}),this.modules.external.forEach(k=>{k.init&&k.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Zg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[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(g=>{this[g]=function(){return t.store[g](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=function(){return t.store[g](...arguments),t}});const p=Qp(),h=()=>{const g=(b,x)=>{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),p.resolve(x),r(b,x)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)};return this.options.resources||!this.options.initImmediate?h():setTimeout(h,0),p}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zg;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const a=[],u=f=>{if(!f||f==="cimode")return;this.services.languageUtils.toResolveHierarchy(f).forEach(h=>{h!=="cimode"&&a.indexOf(h)<0&&a.push(h)})};i?u(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(p=>u(p)),this.options.preload&&this.options.preload.forEach(f=>u(f)),this.services.backendConnector.load(a,this.options.ns,f=>{!f&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(f)})}else r(null)}reloadResources(t,n,r){const i=Qp();return t||(t=this.languages),n||(n=this.options.ns),r||(r=Zg),this.services.backendConnector.reload(t,n,a=>{i.resolve(),r(a)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&b2.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=Qp();this.emit("languageChanging",t);const a=p=>{this.language=p,this.languages=this.services.languageUtils.toResolveHierarchy(p),this.resolvedLanguage=void 0,this.setResolvedLanguage(p)},u=(p,h)=>{h?(a(h),this.translator.changeLanguage(h),this.isLanguageChangingTo=void 0,this.emit("languageChanged",h),this.logger.log("languageChanged",h)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(p,function(){return r.t(...arguments)})},f=p=>{!t&&!p&&this.services.languageDetector&&(p=[]);const h=typeof p=="string"?p:this.services.languageUtils.getBestMatchFromCodes(p);h&&(this.language||a(h),this.translator.language||this.translator.changeLanguage(h),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(h)),this.loadResources(h,g=>{u(g,h)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?f(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(f):this.services.languageDetector.detect(f):f(t),i}getFixedT(t,n,r){var i=this;const a=function(u,f){let p;if(typeof f!="object"){for(var h=arguments.length,g=new Array(h>2?h-2:0),b=2;b<h;b++)g[b-2]=arguments[b];p=i.options.overloadTranslationOptionHandler([u,f].concat(g))}else p={...f};p.lng=p.lng||a.lng,p.lngs=p.lngs||a.lngs,p.ns=p.ns||a.ns,p.keyPrefix!==""&&(p.keyPrefix=p.keyPrefix||r||a.keyPrefix);const x=i.options.keySeparator||".";let k;return p.keyPrefix&&Array.isArray(u)?k=u.map(E=>`${p.keyPrefix}${x}${E}`):k=p.keyPrefix?`${p.keyPrefix}${x}${u}`:u,i.t(k,p)};return typeof t=="string"?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=r,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const u=(f,p)=>{const h=this.services.backendConnector.state[`${f}|${p}`];return h===-1||h===2};if(n.precheck){const f=n.precheck(this,u);if(f!==void 0)return f}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(r,t)&&(!i||u(a,t)))}loadNamespaces(t,n){const r=Qp();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Qp();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],a=t.filter(u=>i.indexOf(u)<0&&this.services.languageUtils.isSupportedCode(u));return a.length?(this.options.preload=i.concat(a),this.loadResources(u=>{r.resolve(),n&&n(u)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new x2(_2());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Zp(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zg;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},a=new Zp(i);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(f=>{a[f]=this[f]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new v2(this.store.data,i),a.services.resourceStore=a.store),a.translator=new Jg(a.services,i),a.translator.on("*",function(f){for(var p=arguments.length,h=new Array(p>1?p-1:0),g=1;g<p;g++)h[g-1]=arguments[g];a.emit(f,...h)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const qn=Zp.createInstance();qn.createInstance=Zp.createInstance,qn.createInstance,qn.dir,qn.init,qn.loadResources,qn.reloadResources,qn.use,qn.changeLanguage,qn.getFixedT,qn.t,qn.exists,qn.setDefaultNamespace,qn.hasLoadedNamespace,qn.loadNamespaces,qn.loadLanguages;class Z7 extends e1{constructor(n){super();xx(this,"name","Luminix CMS i18Next Plugin");this.options=n}register(n){n.once("booting",()=>{this.initI18Next(n.make("config")),this.translateModelNames(n.make("model"))})}boot({cms:n,model:r,forms:i}){this.translateModelColumns(r,n),this.translateMenuEntries(n),this.translateInstanceActions(n),this.translateMassActions(n),this.translateFormLabels(i),this.translateStaticActions(n)}initI18Next(n){qn.use(X8).init({lng:n.get("app.locale","en"),fallbackLng:n.get("app.fallback_locale","en"),resources:{[n.get("app.locale","en")]:{translation:n.get("trans",{})}},...this.options,interpolation:{prefix:":",suffix:"",prefixEscaped:":\\b",suffixEscaped:"(?:\\b)",...this.options.interpolation},debug:n.get("app.debug",!1)})}translateModelNames(n){n.reducer("model",r=>class extends r{static singular(){return qn.t(r.singular())}static plural(){return qn.t(r.plural())}},0)}translateModelColumns(n,r){for(const i of Object.keys(n.make()))r.reducer(`model${ve.upperFirst(ve.camelCase(i))}Columns`,a=>a.map(u=>({...u,label:qn.t(u.label)})),99)}translateMenuEntries(n){n.reducer("menuItems",r=>{const i=r.find(a=>a.key==="dashboard");return i&&(i.text=qn.t(i.text)),r},5)}translateMassActions(n){n.reducer("massActions",r=>r.map(i=>({...i,label:qn.t(i.label)})),99)}translateInstanceActions(n){n.reducer("instanceActions",r=>r.map(i=>({...i,label:qn.t(i.label)})),99)}translateStaticActions(n){n.reducer("staticActions",(r,i)=>{const a=r.find(({key:u})=>u==="create");return a&&(a.label=qn.t("Create :model",{model:i.singular()})),r})}translateFormLabels(n){n.reducer("getDefaultInputProps",r=>(Array.isArray(r)?r.map(i=>{i.label&&(i.label=qn.t(i.label))}):r.label&&(r.label=qn.t(r.label)),r),99)}}const eH={palette:{primary:{main:"#1d9798"},secondary:{main:"#fa510c"}}},tH=({theme:e=eH,plugins:t,i18nOptions:n={}})=>{const r=dg("(prefers-color-scheme: dark)"),i=xe.useMemo(()=>ob({...e,palette:{...e.palette,mode:r?"dark":"light"}}),[e,r]);return S.jsxs(uN,{theme:i,children:[S.jsx(l4,{}),S.jsx(gP,{routes:a=>a.make("cms").getRoutes(),plugins:[new O7,new Z7(n),...t||[]],config:{app:{debug:!0,url:"http://localhost"}}})]})},E2=document.getElementById("root");if(!E2)throw new Error("Failed to find the root element");const nH={debug:!0};bv.createRoot(E2).render(S.jsx(xe.StrictMode,{children:S.jsx(tH,{i18nOptions:nH})}))})();