@takecasper/acuity-design-system 1.27.13 → 2.0.1
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.
- package/README.md +29 -2
- package/dist/assets/icons/add.d.ts +10 -0
- package/dist/assets/icons/add.d.ts.map +1 -0
- package/dist/assets/icons/bookmark.d.ts +10 -0
- package/dist/assets/icons/bookmark.d.ts.map +1 -0
- package/dist/assets/icons/bookmarkWithIndicator.d.ts +10 -0
- package/dist/assets/icons/bookmarkWithIndicator.d.ts.map +1 -0
- package/dist/assets/icons/calendar.d.ts +10 -0
- package/dist/assets/icons/calendar.d.ts.map +1 -0
- package/dist/assets/icons/check.d.ts +10 -0
- package/dist/assets/icons/check.d.ts.map +1 -0
- package/dist/assets/icons/checkCircle.d.ts +11 -0
- package/dist/assets/icons/checkCircle.d.ts.map +1 -0
- package/dist/assets/icons/close.d.ts +10 -0
- package/dist/assets/icons/close.d.ts.map +1 -0
- package/dist/assets/icons/deleteIcon.d.ts +10 -0
- package/dist/assets/icons/deleteIcon.d.ts.map +1 -0
- package/dist/assets/icons/dropdown.d.ts +10 -0
- package/dist/assets/icons/dropdown.d.ts.map +1 -0
- package/dist/assets/icons/edit.d.ts +10 -0
- package/dist/assets/icons/edit.d.ts.map +1 -0
- package/dist/assets/icons/email.d.ts +10 -0
- package/dist/assets/icons/email.d.ts.map +1 -0
- package/dist/assets/icons/error.d.ts +11 -0
- package/dist/assets/icons/error.d.ts.map +1 -0
- package/dist/assets/icons/exclude.d.ts +10 -0
- package/dist/assets/icons/exclude.d.ts.map +1 -0
- package/dist/assets/icons/flag.d.ts +10 -0
- package/dist/assets/icons/flag.d.ts.map +1 -0
- package/dist/assets/icons/index.d.ts +29 -0
- package/dist/assets/icons/index.d.ts.map +1 -0
- package/dist/assets/icons/infoCircle.d.ts +11 -0
- package/dist/assets/icons/infoCircle.d.ts.map +1 -0
- package/dist/assets/icons/linkNewTab.d.ts +10 -0
- package/dist/assets/icons/linkNewTab.d.ts.map +1 -0
- package/dist/assets/icons/lockClosed.d.ts +10 -0
- package/dist/assets/icons/lockClosed.d.ts.map +1 -0
- package/dist/assets/icons/lockOpened.d.ts +10 -0
- package/dist/assets/icons/lockOpened.d.ts.map +1 -0
- package/dist/assets/icons/menu.d.ts +9 -0
- package/dist/assets/icons/menu.d.ts.map +1 -0
- package/dist/assets/icons/notifications.d.ts +10 -0
- package/dist/assets/icons/notifications.d.ts.map +1 -0
- package/dist/assets/icons/notificationsWithIndicator.d.ts +10 -0
- package/dist/assets/icons/notificationsWithIndicator.d.ts.map +1 -0
- package/dist/assets/icons/questionCircle.d.ts +10 -0
- package/dist/assets/icons/questionCircle.d.ts.map +1 -0
- package/dist/assets/icons/resourceCenter.d.ts +10 -0
- package/dist/assets/icons/resourceCenter.d.ts.map +1 -0
- package/dist/assets/icons/resourceCenterWithIndicator.d.ts +10 -0
- package/dist/assets/icons/resourceCenterWithIndicator.d.ts.map +1 -0
- package/dist/assets/icons/search.d.ts +10 -0
- package/dist/assets/icons/search.d.ts.map +1 -0
- package/dist/assets/icons/settings.d.ts +10 -0
- package/dist/assets/icons/settings.d.ts.map +1 -0
- package/dist/assets/icons/warning.d.ts +11 -0
- package/dist/assets/icons/warning.d.ts.map +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/components/AddItem/AddItem.d.ts +10 -0
- package/dist/components/AddItem/AddItem.d.ts.map +1 -0
- package/dist/components/AdvancedTable/AdvancedTable.d.ts +44 -0
- package/dist/components/AdvancedTable/AdvancedTable.d.ts.map +1 -0
- package/dist/components/Alert/alert.d.ts +16 -0
- package/dist/components/Alert/alert.d.ts.map +1 -0
- package/dist/components/AlertBanner/AlertBanner.d.ts +16 -0
- package/dist/components/AlertBanner/AlertBanner.d.ts.map +1 -0
- package/dist/components/AppLayout/AppLayout.d.ts +24 -0
- package/dist/components/AppLayout/AppLayout.d.ts.map +1 -0
- package/dist/components/AppLayout/AppLayoutDrawer.d.ts +9 -0
- package/dist/components/AppLayout/AppLayoutDrawer.d.ts.map +1 -0
- package/dist/components/AppLayout/ContentPanelContext.d.ts +4 -0
- package/dist/components/AppLayout/ContentPanelContext.d.ts.map +1 -0
- package/dist/components/AudioVolumeIndicator/AudioVolumeIndicator.d.ts +20 -0
- package/dist/components/AudioVolumeIndicator/AudioVolumeIndicator.d.ts.map +1 -0
- package/dist/components/Badge/badge.d.ts +12 -0
- package/dist/components/Badge/badge.d.ts.map +1 -0
- package/dist/components/Button/button.d.ts +23 -0
- package/dist/components/Button/button.d.ts.map +1 -0
- package/dist/components/ButtonAddTableItem/ButtonAddTableItem.d.ts +32 -0
- package/dist/components/ButtonAddTableItem/ButtonAddTableItem.d.ts.map +1 -0
- package/dist/components/Card/card.d.ts +11 -0
- package/dist/components/Card/card.d.ts.map +1 -0
- package/dist/components/Colors/colorSwatch.d.ts +7 -0
- package/dist/components/Colors/colorSwatch.d.ts.map +1 -0
- package/dist/components/DataGrid/AcuityDataGrid.d.ts +9 -0
- package/dist/components/DataGrid/AcuityDataGrid.d.ts.map +1 -0
- package/dist/components/DigitalTimer/DigitalTimer.d.ts +29 -0
- package/dist/components/DigitalTimer/DigitalTimer.d.ts.map +1 -0
- package/dist/components/FileDropzone/FileDropzone.d.ts +13 -0
- package/dist/components/FileDropzone/FileDropzone.d.ts.map +1 -0
- package/dist/components/FormValidation/FormValidation/formValidation.d.ts +13 -0
- package/dist/components/FormValidation/FormValidation/formValidation.d.ts.map +1 -0
- package/dist/components/Heading/heading.d.ts +18 -0
- package/dist/components/Heading/heading.d.ts.map +1 -0
- package/dist/components/HoldToConfirmButton/HoldToConfirmButton.d.ts +12 -0
- package/dist/components/HoldToConfirmButton/HoldToConfirmButton.d.ts.map +1 -0
- package/dist/components/Icon/icon.d.ts +17 -0
- package/dist/components/Icon/icon.d.ts.map +1 -0
- package/dist/components/IconButton/iconButton.d.ts +19 -0
- package/dist/components/IconButton/iconButton.d.ts.map +1 -0
- package/dist/components/Icons/CheckedIcon.d.ts +3 -0
- package/dist/components/Icons/CheckedIcon.d.ts.map +1 -0
- package/dist/components/Icons/IndeterminateIcon.d.ts +3 -0
- package/dist/components/Icons/IndeterminateIcon.d.ts.map +1 -0
- package/dist/components/Icons/SortIcon.d.ts +6 -0
- package/dist/components/Icons/SortIcon.d.ts.map +1 -0
- package/dist/components/Icons/VideoInterviewIcon.d.ts +4 -0
- package/dist/components/Icons/VideoInterviewIcon.d.ts.map +1 -0
- package/dist/components/ImagePreview/ImagePreview.d.ts +17 -0
- package/dist/components/ImagePreview/ImagePreview.d.ts.map +1 -0
- package/dist/components/InlineAlert/InlineAlert.d.ts +12 -0
- package/dist/components/InlineAlert/InlineAlert.d.ts.map +1 -0
- package/dist/components/InputDeviceSelect/InputDeviceSelect.d.ts +54 -0
- package/dist/components/InputDeviceSelect/InputDeviceSelect.d.ts.map +1 -0
- package/dist/components/Inputs/Checkbox/checkbox.d.ts +10 -0
- package/dist/components/Inputs/Checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/Inputs/Dropdown/dropdown.d.ts +15 -0
- package/dist/components/Inputs/Dropdown/dropdown.d.ts.map +1 -0
- package/dist/components/Inputs/DropdownAtom/dropdownAtom.d.ts +11 -0
- package/dist/components/Inputs/DropdownAtom/dropdownAtom.d.ts.map +1 -0
- package/dist/components/Inputs/LabelAtom/labelAtom.d.ts +19 -0
- package/dist/components/Inputs/LabelAtom/labelAtom.d.ts.map +1 -0
- package/dist/components/Inputs/Radio/radio.d.ts +10 -0
- package/dist/components/Inputs/Radio/radio.d.ts.map +1 -0
- package/dist/components/Inputs/TextInput/textInput.d.ts +17 -0
- package/dist/components/Inputs/TextInput/textInput.d.ts.map +1 -0
- package/dist/components/Inputs/TextInputAtom/textInputAtom.d.ts +8 -0
- package/dist/components/Inputs/TextInputAtom/textInputAtom.d.ts.map +1 -0
- package/dist/components/Inputs/Textarea/textarea.d.ts +18 -0
- package/dist/components/Inputs/Textarea/textarea.d.ts.map +1 -0
- package/dist/components/Inputs/TextareaAtom/textareaAtom.d.ts +10 -0
- package/dist/components/Inputs/TextareaAtom/textareaAtom.d.ts.map +1 -0
- package/dist/components/Inputs/inputWrapper.d.ts +34 -0
- package/dist/components/Inputs/inputWrapper.d.ts.map +1 -0
- package/dist/components/Inputs/styles.d.ts +27 -0
- package/dist/components/Inputs/styles.d.ts.map +1 -0
- package/dist/components/KebabMenu/KebabMenu.d.ts +12 -0
- package/dist/components/KebabMenu/KebabMenu.d.ts.map +1 -0
- package/dist/components/Link/link.d.ts +11 -0
- package/dist/components/Link/link.d.ts.map +1 -0
- package/dist/components/Logos/AcuityLogos.d.ts +11 -0
- package/dist/components/Logos/AcuityLogos.d.ts.map +1 -0
- package/dist/components/Markdown/Markdown.d.ts +15 -0
- package/dist/components/Markdown/Markdown.d.ts.map +1 -0
- package/dist/components/Markdown/Markdown.styles.d.ts +81 -0
- package/dist/components/Markdown/Markdown.styles.d.ts.map +1 -0
- package/dist/components/Modal/modal.d.ts +18 -0
- package/dist/components/Modal/modal.d.ts.map +1 -0
- package/dist/components/NumericScale/NumericScale.d.ts +28 -0
- package/dist/components/NumericScale/NumericScale.d.ts.map +1 -0
- package/dist/components/PageTitle/PageTitle.d.ts +11 -0
- package/dist/components/PageTitle/PageTitle.d.ts.map +1 -0
- package/dist/components/PrimaryButton/PrimaryButton.d.ts +10 -0
- package/dist/components/PrimaryButton/PrimaryButton.d.ts.map +1 -0
- package/dist/components/ProgressBar/progressBar.d.ts +13 -0
- package/dist/components/ProgressBar/progressBar.d.ts.map +1 -0
- package/dist/components/ProgressStepper/ProgressStepper.d.ts +41 -0
- package/dist/components/ProgressStepper/ProgressStepper.d.ts.map +1 -0
- package/dist/components/ReplayButton/ReplayButton.d.ts +18 -0
- package/dist/components/ReplayButton/ReplayButton.d.ts.map +1 -0
- package/dist/components/SingleSelect/SingleSelect.d.ts +32 -0
- package/dist/components/SingleSelect/SingleSelect.d.ts.map +1 -0
- package/dist/components/Spinner/spinner.d.ts +11 -0
- package/dist/components/Spinner/spinner.d.ts.map +1 -0
- package/dist/components/StepButtons/StepButtons.d.ts +22 -0
- package/dist/components/StepButtons/StepButtons.d.ts.map +1 -0
- package/dist/components/Table/CheckboxCell.d.ts +8 -0
- package/dist/components/Table/CheckboxCell.d.ts.map +1 -0
- package/dist/components/Table/CustomTable.d.ts +7 -0
- package/dist/components/Table/CustomTable.d.ts.map +1 -0
- package/dist/components/Table/CustomTableHead.d.ts +28 -0
- package/dist/components/Table/CustomTableHead.d.ts.map +1 -0
- package/dist/components/Table/CustomTableRow.d.ts +13 -0
- package/dist/components/Table/CustomTableRow.d.ts.map +1 -0
- package/dist/components/Table/LabelCell.d.ts +7 -0
- package/dist/components/Table/LabelCell.d.ts.map +1 -0
- package/dist/components/Table/SortableTableCell.d.ts +20 -0
- package/dist/components/Table/SortableTableCell.d.ts.map +1 -0
- package/dist/components/Table/filterTableData.d.ts +5 -0
- package/dist/components/Table/filterTableData.d.ts.map +1 -0
- package/dist/components/Table/useTable.d.ts +19 -0
- package/dist/components/Table/useTable.d.ts.map +1 -0
- package/dist/components/Tabs/Tab/tab.d.ts +9 -0
- package/dist/components/Tabs/Tab/tab.d.ts.map +1 -0
- package/dist/components/Tabs/TabItem/tabItem.d.ts +11 -0
- package/dist/components/Tabs/TabItem/tabItem.d.ts.map +1 -0
- package/dist/components/Tabs/TabPanel/tabPanel.d.ts +7 -0
- package/dist/components/Tabs/TabPanel/tabPanel.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs/tabs.d.ts +11 -0
- package/dist/components/Tabs/Tabs/tabs.d.ts.map +1 -0
- package/dist/components/TexFooter/TexFooter.d.ts +14 -0
- package/dist/components/TexFooter/TexFooter.d.ts.map +1 -0
- package/dist/components/TextResponse/TextResponse.d.ts +21 -0
- package/dist/components/TextResponse/TextResponse.d.ts.map +1 -0
- package/dist/components/TextToSpeech/TextToSpeech.d.ts +56 -0
- package/dist/components/TextToSpeech/TextToSpeech.d.ts.map +1 -0
- package/dist/components/TimerProgressBar/TimerProgressBar.d.ts +28 -0
- package/dist/components/TimerProgressBar/TimerProgressBar.d.ts.map +1 -0
- package/dist/components/Toast/Toast.d.ts +12 -0
- package/dist/components/Toast/Toast.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +13 -0
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/UploadProgressBar/UploadProgressBar.d.ts +23 -0
- package/dist/components/UploadProgressBar/UploadProgressBar.d.ts.map +1 -0
- package/dist/components/UserAvatar/UserAvatar.d.ts +15 -0
- package/dist/components/UserAvatar/UserAvatar.d.ts.map +1 -0
- package/dist/docs/storiesList.d.ts +7 -0
- package/dist/docs/storiesList.d.ts.map +1 -0
- package/dist/index.cjs.js +1268 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +96 -306
- package/dist/index.d.ts.map +1 -0
- package/dist/index.es.js +59638 -4006
- package/dist/index.es.js.map +1 -1
- package/dist/theme/AcuityMuiThemeProvider.d.ts +9 -0
- package/dist/theme/AcuityMuiThemeProvider.d.ts.map +1 -0
- package/dist/theme/muiTheme.d.ts +134 -0
- package/dist/theme/muiTheme.d.ts.map +1 -0
- package/dist/theme/platformPalette.d.ts +97 -0
- package/dist/theme/platformPalette.d.ts.map +1 -0
- package/dist/theme/theme.d.ts +124 -0
- package/dist/theme/theme.d.ts.map +1 -0
- package/dist/util/eventHandlers.d.ts +6 -0
- package/dist/util/eventHandlers.d.ts.map +1 -0
- package/dist/util/index.d.ts +10 -0
- package/dist/util/index.d.ts.map +1 -0
- package/dist/util/landingPageUtil.d.ts +7 -0
- package/dist/util/landingPageUtil.d.ts.map +1 -0
- package/dist/util/numberToWord.d.ts +5 -0
- package/dist/util/numberToWord.d.ts.map +1 -0
- package/dist/util/randomId.d.ts +5 -0
- package/dist/util/randomId.d.ts.map +1 -0
- package/dist/util/timerHelpers.d.ts +6 -0
- package/dist/util/timerHelpers.d.ts.map +1 -0
- package/dist/util/types.d.ts +7 -0
- package/dist/util/types.d.ts.map +1 -0
- package/package.json +97 -63
package/dist/index.cjs.js
CHANGED
|
@@ -1,31 +1,1284 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";require('./assets/index.css');var Sk=Object.defineProperty;var kk=(e,t,n)=>t in e?Sk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Qi=(e,t,n)=>kk(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),ci=require("react-dom");function _0(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const b=_0(H),z0=_0(ci);function vu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qa={exports:{}},Ji={};/**
|
|
2
2
|
* @license React
|
|
3
|
-
* react-jsx-runtime.production.
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
5
|
-
* Copyright (c)
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var rg;function Ek(){if(rg)return Ji;rg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var l=null;if(i!==void 0&&(l=""+i),o.key!==void 0&&(l=""+o.key),"key"in o){i={};for(var a in o)a!=="key"&&(i[a]=o[a])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:l,ref:o!==void 0?o:null,props:i}}return Ji.Fragment=t,Ji.jsx=n,Ji.jsxs=n,Ji}var el={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var og;function Tk(){return og||(og=1,process.env.NODE_ENV!=="production"&&(function(){function e(D){if(D==null)return null;if(typeof D=="function")return D.$$typeof===$?null:D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case v:return"Fragment";case S:return"Profiler";case x:return"StrictMode";case T:return"Suspense";case N:return"SuspenseList";case L:return"Activity"}if(typeof D=="object")switch(typeof D.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),D.$$typeof){case g:return"Portal";case k:return D.displayName||"Context";case w:return(D._context.displayName||"Context")+".Consumer";case E:var G=D.render;return D=D.displayName,D||(D=G.displayName||G.name||"",D=D!==""?"ForwardRef("+D+")":"ForwardRef"),D;case P:return G=D.displayName||null,G!==null?G:e(D.type)||"Memo";case O:G=D._payload,D=D._init;try{return e(D(G))}catch(A){}}return null}function t(D){return""+D}function n(D){try{t(D);var G=!1}catch(Y){G=!0}if(G){G=console;var A=G.error,K=typeof Symbol=="function"&&Symbol.toStringTag&&D[Symbol.toStringTag]||D.constructor.name||"Object";return A.call(G,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",K),t(D)}}function r(D){if(D===v)return"<>";if(typeof D=="object"&&D!==null&&D.$$typeof===O)return"<...>";try{var G=e(D);return G?"<"+G+">":"<...>"}catch(A){return"<...>"}}function o(){var D=C.A;return D===null?null:D.getOwner()}function i(){return Error("react-stack-top-frame")}function l(D){if(j.call(D,"key")){var G=Object.getOwnPropertyDescriptor(D,"key").get;if(G&&G.isReactWarning)return!1}return D.key!==void 0}function a(D,G){function A(){R||(R=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",G))}A.isReactWarning=!0,Object.defineProperty(D,"key",{get:A,configurable:!0})}function c(){var D=e(this.type);return _[D]||(_[D]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),D=this.props.ref,D!==void 0?D:null}function u(D,G,A,K,Y,U){var q=A.ref;return D={$$typeof:y,type:D,key:G,props:A,_owner:K},(q!==void 0?q:null)!==null?Object.defineProperty(D,"ref",{enumerable:!1,get:c}):Object.defineProperty(D,"ref",{enumerable:!1,value:null}),D._store={},Object.defineProperty(D._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(D,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(D,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.defineProperty(D,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:U}),Object.freeze&&(Object.freeze(D.props),Object.freeze(D)),D}function d(D,G,A,K,Y,U){var q=G.children;if(q!==void 0)if(K)if(F(q)){for(K=0;K<q.length;K++)p(q[K]);Object.freeze&&Object.freeze(q)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(q);if(j.call(G,"key")){q=e(D);var Z=Object.keys(G).filter(function(Q){return Q!=="key"});K=0<Z.length?"{key: someKey, "+Z.join(": ..., ")+": ...}":"{key: someKey}",I[q+K]||(Z=0<Z.length?"{"+Z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
|
+
let props = %s;
|
|
19
|
+
<%s {...props} />
|
|
20
|
+
React keys must be passed directly to JSX without using spread:
|
|
21
|
+
let props = %s;
|
|
22
|
+
<%s key={someKey} {...props} />`,K,q,Z,q),I[q+K]=!0)}if(q=null,A!==void 0&&(n(A),q=""+A),l(G)&&(n(G.key),q=""+G.key),"key"in G){A={};for(var X in G)X!=="key"&&(A[X]=G[X])}else A=G;return q&&a(A,typeof D=="function"?D.displayName||D.name||"Unknown":D),u(D,q,A,o(),Y,U)}function p(D){m(D)?D._store&&(D._store.validated=1):typeof D=="object"&&D!==null&&D.$$typeof===O&&(D._payload.status==="fulfilled"?m(D._payload.value)&&D._payload.value._store&&(D._payload.value._store.validated=1):D._store&&(D._store.validated=1))}function m(D){return typeof D=="object"&&D!==null&&D.$$typeof===y}var f=H,y=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),k=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),$=Symbol.for("react.client.reference"),C=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=Object.prototype.hasOwnProperty,F=Array.isArray,M=console.createTask?console.createTask:function(){return null};f={react_stack_bottom_frame:function(D){return D()}};var R,_={},V=f.react_stack_bottom_frame.bind(f,i)(),W=M(r(i)),I={};el.Fragment=v,el.jsx=function(D,G,A){var K=1e4>C.recentlyCreatedOwnerStacks++;return d(D,G,A,!1,K?Error("react-stack-top-frame"):V,K?M(r(D)):W)},el.jsxs=function(D,G,A){var K=1e4>C.recentlyCreatedOwnerStacks++;return d(D,G,A,!0,K?Error("react-stack-top-frame"):V,K?M(r(D)):W)}})()),el}var sg;function Ik(){return sg||(sg=1,process.env.NODE_ENV==="production"?Qa.exports=Ek():Qa.exports=Tk()),Qa.exports}var h=Ik();const Gf=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i="",filled:l=!1})=>{const a=!(r&&r.length>0);return h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:i||(a?"graphics-document":"img"),children:[!a&&h.jsx("title",{children:r}),h.jsx("path",{d:"M12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 9.34784 20.9464 6.8043 19.0711 4.92893C17.1957 3.05357 14.6522 2 12 2C9.34784 2 6.8043 3.05357 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C6.8043 20.9464 9.34784 22 12 22Z",stroke:l?"transparent":"currentColor",fill:l?"#157393":"none",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),h.jsx("path",{d:"M12 17.5553V13.1108",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),h.jsx("path",{d:"M12 8.7333C11.8527 8.7333 11.7114 8.67477 11.6072 8.57058C11.503 8.4664 11.4445 8.32509 11.4445 8.17775C11.4445 8.03041 11.503 7.8891 11.6072 7.78491C11.7114 7.68072 11.8527 7.62219 12 7.62219",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),h.jsx("path",{d:"M12 8.7333C12.1473 8.7333 12.2887 8.67477 12.3928 8.57058C12.497 8.4664 12.5556 8.32509 12.5556 8.17775C12.5556 8.03041 12.497 7.8891 12.3928 7.78491C12.2887 7.68072 12.1473 7.62219 12 7.62219",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"})]})},Wf=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i="",filled:l=!1})=>{const a=!(r&&r.length>0);return h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#000000",className:n,"aria-hidden":`${a}`,role:i||(a?"graphics-document":"img"),children:[!a&&h.jsx("title",{children:r}),h.jsx("path",{d:"M10.8715 2.54037C11.0072 2.37168 11.1791 2.23557 11.3743 2.14206C11.5696 2.04854 11.7833 2 11.9998 2C12.2163 2 12.4301 2.04854 12.6253 2.14206C12.8206 2.23557 12.9924 2.37168 13.1281 2.54037L14.4714 4.21147C14.6235 4.40106 14.821 4.54927 15.0455 4.64243C15.27 4.73559 15.5144 4.7707 15.756 4.74452L17.8882 4.51264C18.1041 4.48866 18.3225 4.51354 18.5275 4.58543C18.7324 4.65731 18.9185 4.77437 19.0721 4.92793C19.2256 5.08149 19.3427 5.26762 19.4146 5.47255C19.4865 5.67747 19.5113 5.89594 19.4874 6.11178L19.2555 8.24397C19.2293 8.48564 19.2644 8.73001 19.3576 8.95453C19.4507 9.17905 19.5989 9.37648 19.7885 9.52862L21.4596 10.8719C21.6283 11.0076 21.7644 11.1794 21.8579 11.3747C21.9515 11.5699 22 11.7837 22 12.0002C22 12.2167 21.9515 12.4304 21.8579 12.6257C21.7644 12.8209 21.6283 12.9928 21.4596 13.1285L19.7832 14.4655C19.5937 14.6179 19.4455 14.8155 19.3524 15.0402C19.2592 15.2648 19.2241 15.5093 19.2502 15.7511L19.482 17.8832C19.5062 18.0991 19.4814 18.3177 19.4096 18.5227C19.3378 18.7277 19.2207 18.9139 19.0671 19.0675C18.9135 19.2211 18.7273 19.3381 18.5223 19.41C18.3173 19.4818 18.0988 19.5065 17.8829 19.4824L15.7507 19.2505C15.509 19.2242 15.2646 19.2593 15.0401 19.3525C14.8156 19.4456 14.6181 19.5939 14.4661 19.7836L13.1281 21.4484C12.9925 21.6173 12.8207 21.7535 12.6254 21.8471C12.4302 21.9407 12.2164 21.9893 11.9998 21.9893C11.7833 21.9893 11.5695 21.9407 11.3742 21.8471C11.1789 21.7535 11.0072 21.6173 10.8715 21.4484L9.52915 19.7782C9.37682 19.5886 9.17922 19.4404 8.95456 19.3473C8.7299 19.2541 8.48541 19.219 8.24361 19.2452L6.11142 19.4771C5.89551 19.5014 5.6769 19.4767 5.47181 19.405C5.26673 19.3332 5.08045 19.2162 4.92681 19.0625C4.77318 18.9089 4.65613 18.7226 4.58436 18.5175C4.5126 18.3124 4.48796 18.0938 4.51228 17.8779L4.74416 15.7457C4.77033 15.5039 4.73522 15.2594 4.64207 15.0348C4.54891 14.8101 4.40071 14.6125 4.21111 14.4602L2.54089 13.1178C2.37207 12.9822 2.23582 12.8104 2.14221 12.6151C2.0486 12.4199 2 12.2061 2 11.9895C2 11.773 2.0486 11.5592 2.14221 11.3639C2.23582 11.1686 2.37207 10.9969 2.54089 10.8612L4.21111 9.51795C4.40076 9.36588 4.54902 9.16845 4.64219 8.94391C4.73536 8.71938 4.77043 8.47498 4.74416 8.23331L4.51228 6.10112C4.48813 5.88525 4.51289 5.6667 4.58471 5.4617C4.65654 5.2567 4.77359 5.07049 4.92719 4.91689C5.08079 4.76329 5.267 4.64624 5.472 4.57441C5.67701 4.50259 5.89555 4.47783 6.11142 4.50198L8.24361 4.73385C8.4854 4.75995 8.72987 4.7248 8.95452 4.63165C9.17916 4.5385 9.37677 4.39034 9.52915 4.20081L10.8715 2.54037Z",stroke:l?"transparent":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",fill:l?"#387F14":"none"}),h.jsx("path",{d:"M15.3314 9.99585L11.7946 14.7115C11.7373 14.7878 11.6643 14.8509 11.5805 14.8966C11.4967 14.9422 11.404 14.9693 11.3089 14.9761C11.2137 14.9828 11.1181 14.969 11.0288 14.9356C10.9394 14.9023 10.8582 14.8501 10.7907 14.7826L8.66827 12.6611",stroke:l?"white":"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})},Uf=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i="",filled:l=!1})=>{const a=!(r&&r.length>0);return h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:i||(a?"graphics-document":"img"),children:[!a&&h.jsx("title",{children:r}),h.jsx("path",{d:"M13.3508 3.46672C13.2268 3.21422 13.0345 3.00155 12.7957 2.85282C12.557 2.70408 12.2813 2.62524 12 2.62524C11.7187 2.62524 11.443 2.70408 11.2042 2.85282C10.9655 3.00155 10.7732 3.21422 10.6492 3.46672L2.75501 19.5484C2.65998 19.7417 2.61579 19.956 2.6266 20.1711C2.63741 20.3863 2.70286 20.5951 2.81678 20.7779C2.9307 20.9607 3.08933 21.1115 3.2777 21.216C3.46606 21.3205 3.67794 21.3752 3.89334 21.375H20.1067C20.3221 21.3752 20.5339 21.3205 20.7223 21.216C20.9107 21.1115 21.0693 20.9607 21.1832 20.7779C21.2972 20.5951 21.3626 20.3863 21.3734 20.1711C21.3842 19.956 21.34 19.7417 21.245 19.5484L13.3508 3.46672Z",stroke:l?"transparent":"currentColor",fill:l?"#816E09":"none",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),h.jsx("path",{d:"M12 18.25C11.8274 18.25 11.6875 18.1101 11.6875 17.9375C11.6875 17.7649 11.8274 17.625 12 17.625",stroke:l?"white":"currentColor",strokeWidth:o}),h.jsx("path",{d:"M12 18.25C12.1726 18.25 12.3125 18.1101 12.3125 17.9375C12.3125 17.7649 12.1726 17.625 12 17.625",stroke:l?"white":"currentColor",strokeWidth:o}),h.jsx("path",{d:"M12 15.125V8.875",stroke:l?"white":"currentColor",strokeWidth:o,strokeMiterlimit:"10",strokeLinecap:"round"})]})},qf=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i="",filled:l=!1})=>{const a=!(r&&r.length>0);return h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#000000",className:n,"aria-hidden":`${a}`,role:i||(a?"graphics-document":"img"),children:[!a&&h.jsx("title",{children:r}),h.jsx("path",{d:"M12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 9.34784 20.9464 6.8043 19.0711 4.92893C17.1957 3.05357 14.6522 2 12 2C9.34784 2 6.8043 3.05357 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C6.8043 20.9464 9.34784 22 12 22Z",stroke:l?"transparent":"currentColor",fill:l?"#A90508":"none",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),h.jsx("path",{d:"M15.3344 8.66663L8.66666 15.3333",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),h.jsx("path",{d:"M8.66666 8.66663L15.3344 15.3333",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"})]})},Pk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M2.625 21.3741L21.375 2.62415",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M21.375 21.3741L2.625 2.62415",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Ok=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M20.4917 3.50831C20.2079 3.22568 19.8709 3.00208 19.5002 2.85044C19.1294 2.69879 18.7324 2.62211 18.3318 2.62483C17.9313 2.62754 17.5353 2.70959 17.1667 2.86624C16.798 3.02288 16.4641 3.25103 16.1842 3.53748L4.10083 15.6208L2.625 21.375L8.37917 19.8991L20.4625 7.81581C20.749 7.53587 20.9771 7.20193 21.1337 6.8333C21.2904 6.46468 21.3724 6.06866 21.3752 5.66814C21.3779 5.26762 21.3012 4.87053 21.1495 4.49982C20.9979 4.1291 20.7743 3.79211 20.4917 3.50831Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M15.8383 3.8833L20.1167 8.16163",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M14.0933 5.6283L18.3717 9.90663",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M4.10083 15.6208L8.38333 19.895",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Mk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M2 2V22.0007",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M2 3.33301H21.334C21.4625 3.33314 21.5881 3.37038 21.6959 3.44023C21.8037 3.51008 21.889 3.60958 21.9416 3.72676C21.9942 3.84394 22.0118 3.97381 21.9923 4.10077C21.9728 4.22772 21.9171 4.34634 21.8318 4.44238L18.2717 8.4443C18.0545 8.68843 17.9345 9.0038 17.9345 9.33055C17.9345 9.6573 18.0545 9.97268 18.2717 10.2168L21.8274 14.2214C21.9127 14.3174 21.9684 14.4361 21.9879 14.563C22.0073 14.69 21.9897 14.8198 21.9371 14.937C21.8845 15.0542 21.7992 15.1537 21.6915 15.2235C21.5837 15.2934 21.458 15.3306 21.3296 15.3308H2",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Rk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M10.2221 20.6666C10.335 21.0512 10.5695 21.3889 10.8903 21.6292C11.2112 21.8694 11.6013 21.9992 12.0021 21.9992C12.4029 21.9992 12.793 21.8694 13.1139 21.6292C13.4348 21.3889 13.6692 21.0512 13.7821 20.6666",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M12 4V2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M12 4C13.7681 4 15.4638 4.70238 16.714 5.95262C17.9643 7.20286 18.6667 8.89856 18.6667 10.6667C18.6667 16.9298 20 18 20 18H4C4 18 5.33333 16.2969 5.33333 10.6667C5.33333 8.89856 6.03571 7.20286 7.28595 5.95262C8.5362 4.70238 10.2319 4 12 4V4Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},jk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return e==="16"&&t==="16"?h.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M6.88898 13.6672C6.95954 13.9076 7.10608 14.1187 7.30663 14.2688C7.50719 14.419 7.75099 14.5001 8.00152 14.5001C8.25205 14.5001 8.49585 14.419 8.6964 14.2688C8.89696 14.1187 9.04349 13.9076 9.11406 13.6672",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M8.00018 3.25005V2",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M8.00019 3.25012C9.1053 3.25012 10.1651 3.68913 10.9466 4.47056C11.728 5.25199 12.167 6.31183 12.167 7.41694C12.167 11.3315 13.0004 12.0005 13.0004 12.0005H3C3 12.0005 3.83336 10.936 3.83336 7.41694C3.83336 6.31183 4.27237 5.25199 5.0538 4.47056C5.83523 3.68913 6.89508 3.25012 8.00019 3.25012V3.25012Z",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("circle",{cx:"11.8",cy:"6.11104",r:"2.3",fill:"#BA1E50",stroke:"white"})]}):h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M10.2221 20.6666C10.335 21.0512 10.5695 21.3889 10.8903 21.6292C11.2112 21.8694 11.6013 21.9992 12.0021 21.9992C12.4029 21.9992 12.793 21.8694 13.1139 21.6292C13.4348 21.3889 13.6692 21.0512 13.7821 20.6666",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M12 4V2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M12 4C13.7681 4 15.4638 4.70238 16.714 5.95262C17.9643 7.20286 18.6667 8.89856 18.6667 10.6667C18.6667 16.9298 20 18 20 18H4C4 18 5.33333 16.2969 5.33333 10.6667C5.33333 8.89856 6.03571 7.20286 7.28595 5.95262C8.5362 4.70238 10.2319 4 12 4V4Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("circle",{cx:"18",cy:"8",r:"4",fill:"#BA1E50",stroke:"white",strokeWidth:"2"})]})},Lk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M9.33325 9.33315C9.33335 8.84429 9.46782 8.36486 9.72198 7.94726C9.97614 7.52966 10.3402 7.18996 10.7744 6.96528C11.2085 6.74062 11.6962 6.63962 12.1838 6.67335C12.6716 6.70706 13.1406 6.8742 13.5397 7.15648C13.9389 7.43877 14.2527 7.82534 14.4469 8.27394C14.6413 8.72255 14.7085 9.21592 14.6413 9.70015C14.5741 10.1844 14.3751 10.6408 14.0661 11.0196C13.757 11.3984 13.3497 11.6848 12.8888 11.8478C12.6287 11.9398 12.4036 12.1101 12.2444 12.3353C12.0852 12.5607 11.9997 12.8297 11.9999 13.1056V13.9998",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M12.0001 17.3333C11.816 17.3333 11.6667 17.184 11.6667 17C11.6667 16.8159 11.816 16.6666 12.0001 16.6666",strokeWidth:o,stroke:"currentColor"}),h.jsx("path",{d:"M12 17.3333C12.1841 17.3333 12.3333 17.184 12.3333 17C12.3333 16.8159 12.1841 16.6666 12 16.6666",strokeWidth:o,stroke:"currentColor"}),h.jsx("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47716 17.5228 2 12 2C6.47716 2 2 6.47716 2 12C2 17.5228 6.47716 22 12 22Z",strokeWidth:o,strokeMiterlimit:"10",stroke:"currentColor"})]})},$k=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M9.1042 3.96154L9.83189 2.08308C9.95462 1.76503 10.1705 1.49146 10.4514 1.29821C10.7322 1.10495 11.0648 1.00101 11.4057 1H12.7934C13.1343 1.00101 13.467 1.10495 13.7478 1.29821C14.0286 1.49146 14.2446 1.76503 14.3673 2.08308L15.095 3.96154L17.5657 5.38308L19.5627 5.07846C19.8952 5.03333 20.2336 5.08806 20.5349 5.23572C20.8363 5.38337 21.0869 5.61727 21.255 5.90769L21.9319 7.09231C22.1054 7.38736 22.1853 7.72807 22.1611 8.06948C22.1369 8.41089 22.0098 8.73694 21.7965 9.00462L20.5611 10.5785V13.4215L21.8304 14.9954C22.0437 15.2631 22.1708 15.5891 22.1949 15.9305C22.2191 16.2719 22.1392 16.6126 21.9657 16.9077L21.2888 18.0923C21.1207 18.3827 20.8701 18.6166 20.5688 18.7643C20.2674 18.9119 19.929 18.9667 19.5965 18.9215L17.5996 18.6169L15.1288 20.0385L14.4011 21.9169C14.2784 22.235 14.0625 22.5085 13.7817 22.7018C13.5008 22.8951 13.1682 22.999 12.8273 23H11.4057C11.0648 22.999 10.7322 22.8951 10.4514 22.7018C10.1705 22.5085 9.95462 22.235 9.83189 21.9169L9.1042 20.0385L6.63343 18.6169L4.63651 18.9215C4.304 18.9667 3.96558 18.9119 3.66425 18.7643C3.36292 18.6166 3.11229 18.3827 2.9442 18.0923L2.26728 16.9077C2.09382 16.6126 2.0139 16.2719 2.03807 15.9305C2.06224 15.5891 2.18937 15.2631 2.40266 14.9954L3.63805 13.4215V10.5785L2.36882 9.00462C2.15552 8.73694 2.0284 8.41089 2.00423 8.06948C1.98006 7.72807 2.05997 7.38736 2.23343 7.09231L2.91036 5.90769C3.07844 5.61727 3.32907 5.38337 3.6304 5.23572C3.93173 5.08806 4.27015 5.03333 4.60266 5.07846L6.59959 5.38308L9.1042 3.96154ZM8.71497 12C8.71497 12.6694 8.91348 13.3238 9.28538 13.8804C9.65729 14.437 10.1859 14.8708 10.8044 15.127C11.4228 15.3832 12.1033 15.4502 12.7599 15.3196C13.4164 15.189 14.0195 14.8666 14.4929 14.3933C14.9662 13.9199 15.2886 13.3169 15.4192 12.6603C15.5498 12.0038 15.4827 11.3232 15.2266 10.7048C14.9704 10.0863 14.5366 9.5577 13.98 9.1858C13.4234 8.81389 12.769 8.61538 12.0996 8.61538C11.2019 8.61538 10.341 8.97198 9.7063 9.60672C9.07156 10.2415 8.71497 11.1023 8.71497 12V12Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Nk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M2.00003 5H22V19H2.00003V5Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M21.6772 5.51294L13.921 11.3593C13.3703 11.7745 12.6949 11.9997 12 11.9997C11.3052 11.9997 10.6298 11.7745 10.0791 11.3593L2.32291 5.51294",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Fk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M12 22C17.5228 22 22 17.5229 22 12.0001C22 6.47721 17.5228 2 12 2C6.47716 2 2 6.47721 2 12.0001C2 17.5229 6.47716 22 12 22Z",strokeWidth:o,strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M6.88889 11.9554H16.9334",strokeWidth:o,strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Ak=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M2 5.6366H22",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M14.0454 2H9.95446C9.5928 2 9.24595 2.14367 8.99022 2.3994C8.73449 2.65513 8.59082 3.00198 8.59082 3.36364V5.63636H15.409V3.36364C15.409 3.00198 15.2653 2.65513 15.0096 2.3994C14.7539 2.14367 14.407 2 14.0454 2Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M9.95453 17.2275V10.4093",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M14.0455 17.2275V10.4093",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M18.2364 20.7457C18.2111 21.0873 18.0573 21.4067 17.8059 21.6395C17.5546 21.8723 17.2244 22.0012 16.8818 22.0002H7.11818C6.77561 22.0012 6.4454 21.8723 6.19406 21.6395C5.94273 21.4067 5.78893 21.0873 5.76364 20.7457L4.5 5.6366H19.5L18.2364 20.7457Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Dk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M21.375 8.09253L12.4417 17.025C12.3837 17.0831 12.3148 17.1291 12.2391 17.1605C12.1632 17.192 12.082 17.2082 12 17.2082C11.918 17.2082 11.8368 17.192 11.7609 17.1605C11.6852 17.1291 11.6163 17.0831 11.5583 17.025L2.625 8.09253",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},_k=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M20.125 5.125H3.875C3.18464 5.125 2.625 5.68464 2.625 6.375V20.125C2.625 20.8153 3.18464 21.375 3.875 21.375H20.125C20.8153 21.375 21.375 20.8153 21.375 20.125V6.375C21.375 5.68464 20.8153 5.125 20.125 5.125Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M2.625 10.125H21.375",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M7.625 7V2.625",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M16.375 7V2.625",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M6.6875 13.875C6.51491 13.875 6.375 13.7351 6.375 13.5625C6.375 13.3899 6.51491 13.25 6.6875 13.25",strokeWidth:o,stroke:"currentColor"}),h.jsx("path",{d:"M6.6875 13.875C6.86009 13.875 7 13.7351 7 13.5625C7 13.3899 6.86009 13.25 6.6875 13.25",strokeWidth:o,stroke:"currentColor"}),h.jsx("path",{d:"M6.6875 18.25C6.51491 18.25 6.375 18.1101 6.375 17.9375C6.375 17.7649 6.51491 17.625 6.6875 17.625",strokeWidth:o,stroke:"currentColor"}),h.jsx("path",{d:"M6.6875 18.25C6.86009 18.25 7 18.1101 7 17.9375C7 17.7649 6.86009 17.625 6.6875 17.625",strokeWidth:o,stroke:"currentColor"}),h.jsx("path",{d:"M12 13.875C11.8274 13.875 11.6875 13.7351 11.6875 13.5625C11.6875 13.3899 11.8274 13.25 12 13.25",strokeWidth:o,stroke:"currentColor"}),h.jsx("path",{d:"M12 13.875C12.1726 13.875 12.3125 13.7351 12.3125 13.5625C12.3125 13.3899 12.1726 13.25 12 13.25",strokeWidth:o,stroke:"currentColor"}),h.jsx("path",{d:"M12 18.25C11.8274 18.25 11.6875 18.1101 11.6875 17.9375C11.6875 17.7649 11.8274 17.625 12 17.625",strokeWidth:o,stroke:"currentColor"}),h.jsx("path",{d:"M12 18.25C12.1726 18.25 12.3125 18.1101 12.3125 17.9375C12.3125 17.7649 12.1726 17.625 12 17.625",strokeWidth:o,stroke:"currentColor"}),h.jsx("path",{d:"M17.3125 13.875C17.1399 13.875 17 13.7351 17 13.5625C17 13.3899 17.1399 13.25 17.3125 13.25",strokeWidth:o,stroke:"currentColor"}),h.jsx("path",{d:"M17.3125 13.875C17.4851 13.875 17.625 13.7351 17.625 13.5625C17.625 13.3899 17.4851 13.25 17.3125 13.25",strokeWidth:o,stroke:"currentColor"}),h.jsx("path",{d:"M17.3125 18.25C17.1399 18.25 17 18.1101 17 17.9375C17 17.7649 17.1399 17.625 17.3125 17.625",strokeWidth:o,stroke:"currentColor"}),h.jsx("path",{d:"M17.3125 18.25C17.4851 18.25 17.625 18.1101 17.625 17.9375C17.625 17.7649 17.4851 17.625 17.3125 17.625",strokeWidth:o,stroke:"currentColor"})]})},zk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M17.2667 20.9723L12 17.2856L6.73333 20.9723C6.6397 21.0378 6.52988 21.0764 6.41584 21.0839C6.3018 21.0914 6.18789 21.0674 6.08651 21.0147C5.98512 20.9619 5.90015 20.8824 5.84082 20.7847C5.78149 20.687 5.75007 20.5749 5.75 20.4606V4.16064C5.75 3.82912 5.8817 3.51118 6.11612 3.27676C6.35054 3.04234 6.66848 2.91064 7 2.91064H17C17.3315 2.91064 17.6495 3.04234 17.8839 3.27676C18.1183 3.51118 18.25 3.82912 18.25 4.16064V20.4606C18.2499 20.5749 18.2185 20.687 18.1592 20.7847C18.0999 20.8824 18.0149 20.9619 17.9135 21.0147C17.8121 21.0674 17.6982 21.0914 17.5842 21.0839C17.4701 21.0764 17.3603 21.0378 17.2667 20.9723Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M9.5 2.91162V19.0358",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M14.5 2.91162V19.0358",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Bk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return e==="16"&&t==="16"?h.jsxs("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M11.7377 15.4192L7.97053 12.7822L4.20336 15.4192C4.13638 15.4661 4.05784 15.4937 3.97627 15.499C3.89469 15.5044 3.81322 15.4873 3.7407 15.4495C3.66818 15.4118 3.6074 15.3549 3.56496 15.285C3.52252 15.2152 3.50005 15.135 3.5 15.0532V3.39411C3.5 3.15697 3.5942 2.92955 3.76188 2.76188C3.92955 2.5942 4.15697 2.5 4.39411 2.5H11.5469C11.7841 2.5 12.0115 2.5942 12.1792 2.76188C12.3469 2.92955 12.4411 3.15697 12.4411 3.39411V15.0532C12.441 15.135 12.4185 15.2152 12.3761 15.285C12.3337 15.3549 12.2729 15.4118 12.2004 15.4495C12.1278 15.4873 12.0464 15.5044 11.9648 15.499C11.8832 15.4937 11.8047 15.4661 11.7377 15.4192Z",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M6.18231 2.50098V14.0343",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M9.75873 2.50098V14.0343",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("circle",{cx:"12.8",cy:"3.11104",r:"2.3",fill:"#BA1E50",stroke:"white"})]}):h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M17.2667 21.9723L12 18.2856L6.73333 21.9723C6.6397 22.0378 6.52988 22.0764 6.41584 22.0839C6.3018 22.0914 6.18789 22.0674 6.08651 22.0147C5.98512 21.9619 5.90015 21.8824 5.84082 21.7847C5.78149 21.687 5.75007 21.5749 5.75 21.4606V5.16064C5.75 4.82912 5.8817 4.51118 6.11612 4.27676C6.35054 4.04234 6.66848 3.91064 7 3.91064H17C17.3315 3.91064 17.6495 4.04234 17.8839 4.27676C18.1183 4.51118 18.25 4.82912 18.25 5.16064V21.4606C18.2499 21.5749 18.2185 21.687 18.1592 21.7847C18.0999 21.8824 18.0149 21.9619 17.9135 22.0147C17.8121 22.0674 17.6982 22.0914 17.5842 22.0839C17.4701 22.0764 17.3603 22.0378 17.2667 21.9723Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M9.5 3.91162V20.0358",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M14.5 3.91162V20.0358",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("circle",{cx:"19",cy:"5",r:"4",fill:"#BA1E50",stroke:"white",strokeWidth:"2"})]})},Vk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M3.22667 13.1308C4.01013 14.9742 5.49382 16.431 7.35134 17.1805C9.20886 17.9301 11.2881 17.911 13.1315 17.1276C14.975 16.3441 16.4317 14.8604 17.1813 13.0029C17.9308 11.1454 17.9118 9.06617 17.1283 7.2227C16.3449 5.37922 14.8612 3.92248 13.0037 3.17294C11.1461 2.42339 9.06694 2.44244 7.22347 3.2259C5.38 4.00936 3.92325 5.49305 3.17371 7.35057C2.42416 9.20809 2.44322 11.2873 3.22667 13.1308Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M15.5175 15.5167L21.375 21.3751",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Hk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M17.3333 5.01583C18.7245 4.79227 20.1306 4.67518 21.5396 4.66561C21.6606 4.66375 21.7775 4.70975 21.8649 4.79361C21.9506 4.87667 21.9993 4.99071 22 5.11006V19.1261C21.9976 19.3705 21.8 19.5681 21.5556 19.5705C14.184 19.6621 12 21.9989 12 21.9989V7.09406C12 7.09406 9.81778 4.75983 2.46044 4.66561C2.33876 4.66328 2.22112 4.70931 2.13333 4.79361C2.04829 4.87697 2.00026 4.99097 2 5.11006V19.1261C2.00241 19.3705 2.19999 19.5681 2.44444 19.5705C9.816 19.6621 12 21.9989 12 21.9989",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M12 21.5609C12.1404 20.4089 12.6507 19.3334 13.4542 18.496C14.4882 17.3807 15.8441 16.6154 17.3333 16.3067V2.43734C17.3306 2.29208 17.2542 2.15817 17.1307 2.08178C16.9997 1.99949 16.8395 1.97808 16.6916 2.02312C15.4443 2.38152 14.3226 3.08277 13.4542 4.04712C12.6511 4.88407 12.1408 5.95882 12 7.11023",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Gk=({width:e="24",height:t="24",className:n="",title:r="",role:o=""})=>{const i=!(r&&r.length>0);return h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"#000000",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${i}`,role:o||(i?"graphics-document":"img"),children:[!i&&h.jsx("title",{children:r}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",stroke:"currentColor",d:"M20.5002 6.50003H3.50002C3.10219 6.50003 2.72065 6.342 2.43934 6.06069C2.15804 5.77938 2 5.39785 2 5.00002C2 4.60219 2.15804 4.22065 2.43934 3.93934C2.72065 3.65804 3.10219 3.5 3.50002 3.5H20.5002C20.898 3.5 21.2796 3.65804 21.5609 3.93934C21.8422 4.22065 22.0002 4.60219 22.0002 5.00002C22.0002 5.39785 21.8422 5.77938 21.5609 6.06069C21.2796 6.342 20.898 6.50003 20.5002 6.50003ZM20.5002 13.5001H3.50002C3.10219 13.5001 2.72065 13.3421 2.43934 13.0608C2.15804 12.7795 2 12.3979 2 12.0001C2 11.6023 2.15804 11.2207 2.43934 10.9394C2.72065 10.6581 3.10219 10.5001 3.50002 10.5001H20.5002C20.898 10.5001 21.2796 10.6581 21.5609 10.9394C21.8422 11.2207 22.0002 11.6023 22.0002 12.0001C22.0002 12.3979 21.8422 12.7795 21.5609 13.0608C21.2796 13.3421 20.898 13.5001 20.5002 13.5001ZM3.50002 20.5002H20.5002C20.898 20.5002 21.2796 20.3422 21.5609 20.0608C21.8422 19.7795 22.0002 19.398 22.0002 19.0002C22.0002 18.6023 21.8422 18.2208 21.5609 17.9395C21.2796 17.6582 20.898 17.5002 20.5002 17.5002H3.50002C3.10219 17.5002 2.72065 17.6582 2.43934 17.9395C2.15804 18.2208 2 18.6023 2 19.0002C2 19.398 2.15804 19.7795 2.43934 20.0608C2.72065 20.3422 3.10219 20.5002 3.50002 20.5002Z"})]})},Wk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M12 8V16",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M8 12H16",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M2 12C2 13.3132 2.25866 14.6136 2.7612 15.8268C3.26375 17.0401 4.00035 18.1425 4.92893 19.0711C5.85752 19.9997 6.95991 20.7362 8.17317 21.2388C9.38642 21.7413 10.6868 22 12 22C13.3132 22 14.6136 21.7413 15.8268 21.2388C17.0401 20.7362 18.1425 19.9997 19.0711 19.0711C19.9997 18.1425 20.7362 17.0401 21.2388 15.8268C21.7413 14.6136 22 13.3132 22 12C22 10.6868 21.7413 9.38642 21.2388 8.17317C20.7362 6.95991 19.9997 5.85752 19.0711 4.92893C18.1425 4.00035 17.0401 3.26375 15.8268 2.7612C14.6136 2.25866 13.3132 2 12 2C10.6868 2 9.38642 2.25866 8.17317 2.7612C6.95991 3.26375 5.85752 4.00035 4.92893 4.92893C4.00035 5.85752 3.26375 6.95991 2.7612 8.17317C2.25866 9.38642 2 10.6868 2 12Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Uk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"#000000",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M9.70831 14.1025L21.375 2.625",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M21.375 9.18417V2.625H14.7083",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M12.1042 6.79163H3.35417C3.16078 6.79163 2.97531 6.86845 2.83857 7.00519C2.70182 7.14194 2.625 7.32741 2.625 7.52079V20.6458C2.625 20.8392 2.70182 21.0246 2.83857 21.1614C2.97531 21.2981 3.16078 21.375 3.35417 21.375H16.4792C16.6726 21.375 16.858 21.2981 16.9948 21.1614C17.1315 21.0246 17.2083 20.8392 17.2083 20.6458V11.8958",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},qk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return e==="16"&&t==="16"?h.jsxs("svg",{width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M11.7333 4.11082C12.7071 3.95432 13.6914 3.87236 14.6777 3.86566C14.7624 3.86436 14.8443 3.89656 14.9054 3.95526C14.9654 4.0134 14.9995 4.09323 15 4.17677V13.988C14.9983 14.1591 14.86 14.2974 14.6889 14.2991C9.5288 14.3632 8 15.999 8 15.999V5.56557C8 5.56557 6.47244 3.93162 1.32231 3.86566C1.23713 3.86403 1.15478 3.89625 1.09333 3.95526C1.0338 4.01361 1.00018 4.09341 1 4.17677V13.988C1.00169 14.1591 1.13999 14.2974 1.31111 14.2991C6.4712 14.3632 8 15.999 8 15.999",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M8 15.6926C8.09831 14.8862 8.4555 14.1334 9.01796 13.5472C9.74172 12.7665 10.6909 12.2308 11.7333 12.0147V2.30614C11.7314 2.20446 11.678 2.11072 11.5915 2.05725C11.4998 1.99964 11.3877 1.98466 11.2841 2.01618C10.411 2.26706 9.62585 2.75794 9.01796 3.43298C8.45574 4.01885 8.09857 4.77117 8 5.57716",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("circle",{cx:"15.8",cy:"3.11104",r:"2.3",fill:"#BA1E50",stroke:"white"})]}):h.jsxs("svg",{width:"29",height:"24",viewBox:"0 0 29 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M17.3333 5.01583C18.7245 4.79227 20.1306 4.67518 21.5396 4.66561C21.6606 4.66375 21.7775 4.70975 21.8649 4.79361C21.9506 4.87667 21.9993 4.99071 22 5.11006V19.1261C21.9976 19.3705 21.8 19.5681 21.5556 19.5705C14.184 19.6621 12 21.9989 12 21.9989V7.09406C12 7.09406 9.81778 4.75983 2.46044 4.66561C2.33876 4.66328 2.22112 4.70931 2.13333 4.79361C2.04829 4.87697 2.00026 4.99097 2 5.11006V19.1261C2.00241 19.3705 2.19999 19.5681 2.44444 19.5705C9.816 19.6621 12 21.9989 12 21.9989",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M12 21.5609C12.1404 20.4089 12.6507 19.3334 13.4542 18.496C14.4882 17.3807 15.8441 16.6154 17.3333 16.3067V2.43734C17.3306 2.29208 17.2542 2.15817 17.1307 2.08178C16.9997 1.99949 16.8395 1.97808 16.6916 2.02312C15.4443 2.38152 14.3226 3.08277 13.4542 4.04712C12.6511 4.88407 12.1408 5.95882 12 7.11023",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("circle",{cx:"24",cy:"5",r:"4",fill:"#BA1E50",stroke:"white",strokeWidth:"2"})]})},Kk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",className:n,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 9.34784 20.9464 6.8043 19.0711 4.92893C17.1957 3.05357 14.6522 2 12 2C9.34784 2 6.8043 3.05357 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C6.8043 20.9464 9.34784 22 12 22Z",stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),h.jsx("path",{d:"M15.5 9L11 15L8 12",stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"})]})},Yk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M4.9375 9.4375H19C19 9.4375 19.9375 9.4375 19.9375 10.375V21.625C19.9375 21.625 19.9375 22.5625 19 22.5625H4.9375C4.9375 22.5625 4 22.5625 4 21.625V10.375C4 10.375 4 9.4375 4.9375 9.4375Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M6.8125 6.15625C6.8125 4.78873 7.35575 3.47721 8.32273 2.51023C9.28971 1.54325 10.6012 1 11.9688 1C13.3363 1 14.6478 1.54325 15.6148 2.51023C16.5818 3.47721 17.125 4.78873 17.125 6.15625V9.4375",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M11.0312 14.5938C11.0312 14.8424 11.13 15.0808 11.3058 15.2567C11.4817 15.4325 11.7201 15.5312 11.9688 15.5312C12.2174 15.5312 12.4558 15.4325 12.6317 15.2567C12.8075 15.0808 12.9062 14.8424 12.9062 14.5938C12.9062 14.3451 12.8075 14.1067 12.6317 13.9308C12.4558 13.755 12.2174 13.6562 11.9688 13.6562C11.7201 13.6562 11.4817 13.755 11.3058 13.9308C11.13 14.1067 11.0312 14.3451 11.0312 14.5938Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M11.9688 15.5312V18.3438",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Xk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return h.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:i||(l?"graphics-document":"img"),children:[!l&&h.jsx("title",{children:r}),h.jsx("path",{d:"M11.0312 14.5938C11.0312 14.8424 11.13 15.0808 11.3058 15.2567C11.4817 15.4325 11.7201 15.5312 11.9688 15.5312C12.2174 15.5312 12.4558 15.4325 12.6317 15.2567C12.8075 15.0808 12.9062 14.8424 12.9062 14.5938C12.9062 14.3451 12.8075 14.1067 12.6317 13.9308C12.4558 13.755 12.2174 13.6562 11.9688 13.6562C11.7201 13.6562 11.4817 13.755 11.3058 13.9308C11.13 14.1067 11.0312 14.3451 11.0312 14.5938Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M11.9688 15.5312V18.3438",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M4.9375 9.4375H19C19 9.4375 19.9375 9.4375 19.9375 10.375V21.625C19.9375 21.625 19.9375 22.5625 19 22.5625H4.9375C4.9375 22.5625 4 22.5625 4 21.625V10.375C4 10.375 4 9.4375 4.9375 9.4375Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),h.jsx("path",{d:"M6.8125 6.15625C6.8125 4.78873 7.35575 3.47721 8.32273 2.51023C9.28971 1.54325 10.6012 1 11.9688 1C13.3363 1 14.6478 1.54325 15.6148 2.51023C16.5818 3.47721 17.125 4.78873 17.125 6.15625V9.4375H6.8125V6.15625Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})};function B0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=B0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ue(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=B0(e))&&(r&&(r+=" "),r+=t);return r}const ig=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,lg=ue,Ht=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return lg(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,l=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],p=i==null?void 0:i[u];if(d===null)return null;const m=ig(d)||ig(p);return o[u][m]}),a=n&&Object.entries(n).reduce((u,d)=>{let[p,m]=d;return m===void 0||(u[p]=m),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:p,className:m,...f}=d;return Object.entries(f).every(y=>{let[g,v]=y;return Array.isArray(v)?v.includes({...i,...a}[g]):{...i,...a}[g]===v})?[...u,p,m]:u},[]);return lg(e,l,c,n==null?void 0:n.class,n==null?void 0:n.className)},Zk=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Qk=(e,t)=>({classGroupId:e,validator:t}),V0=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ac="-",ag=[],Jk="arbitrary..",eE=e=>{const t=nE(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return tE(l);const a=l.split(Ac),c=a[0]===""&&a.length>1?1:0;return H0(a,c,t)},getConflictingClassGroupIds:(l,a)=>{if(a){const c=r[l],u=n[l];return c?u?Zk(u,c):c:u||ag}return n[l]||ag}}},H0=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],i=n.nextPart.get(o);if(i){const u=H0(e,t+1,i);if(u)return u}const l=n.validators;if(l===null)return;const a=t===0?e.join(Ac):e.slice(t).join(Ac),c=l.length;for(let u=0;u<c;u++){const d=l[u];if(d.validator(a))return d.classGroupId}},tE=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Jk+r:void 0})(),nE=e=>{const{theme:t,classGroups:n}=e;return rE(n,t)},rE=(e,t)=>{const n=V0();for(const r in e){const o=e[r];Kf(o,n,r,t)}return n},Kf=(e,t,n,r)=>{const o=e.length;for(let i=0;i<o;i++){const l=e[i];oE(l,t,n,r)}},oE=(e,t,n,r)=>{if(typeof e=="string"){sE(e,t,n);return}if(typeof e=="function"){iE(e,t,n,r);return}lE(e,t,n,r)},sE=(e,t,n)=>{const r=e===""?t:G0(t,e);r.classGroupId=n},iE=(e,t,n,r)=>{if(aE(e)){Kf(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Qk(n,e))},lE=(e,t,n,r)=>{const o=Object.entries(e),i=o.length;for(let l=0;l<i;l++){const[a,c]=o[l];Kf(c,G0(t,a),n,r)}},G0=(e,t)=>{let n=e;const r=t.split(Ac),o=r.length;for(let i=0;i<o;i++){const l=r[i];let a=n.nextPart.get(l);a||(a=V0(),n.nextPart.set(l,a)),n=a}return n},aE=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,cE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(i,l)=>{n[i]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let l=n[i];if(l!==void 0)return l;if((l=r[i])!==void 0)return o(i,l),l},set(i,l){i in n?n[i]=l:o(i,l)}}},Lp="!",cg=":",uE=[],ug=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),dE=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let l=0,a=0,c=0,u;const d=o.length;for(let g=0;g<d;g++){const v=o[g];if(l===0&&a===0){if(v===cg){i.push(o.slice(c,g)),c=g+1;continue}if(v==="/"){u=g;continue}}v==="["?l++:v==="]"?l--:v==="("?a++:v===")"&&a--}const p=i.length===0?o:o.slice(c);let m=p,f=!1;p.endsWith(Lp)?(m=p.slice(0,-1),f=!0):p.startsWith(Lp)&&(m=p.slice(1),f=!0);const y=u&&u>c?u-c:void 0;return ug(i,f,m,y)};if(t){const o=t+cg,i=r;r=l=>l.startsWith(o)?i(l.slice(o.length)):ug(uE,!1,l,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},pE=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let i=0;i<n.length;i++){const l=n[i],a=l[0]==="[",c=t.has(l);a||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(l)):o.push(l)}return o.length>0&&(o.sort(),r.push(...o)),r}},fE=e=>({cache:cE(e.cacheSize),parseClassName:dE(e),sortModifiers:pE(e),postfixLookupClassGroupIds:mE(e),...eE(e)}),mE=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},hE=/\s+/,gE=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:l}=t,a=[],c=e.trim().split(hE);let u="";for(let d=c.length-1;d>=0;d-=1){const p=c[d],{isExternal:m,modifiers:f,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:v}=n(p);if(m){u=p+(u.length>0?" "+u:u);continue}let x=!!v,S;if(x){const N=g.substring(0,v);S=r(N);const P=S&&l[S]?r(g):void 0;P&&P!==S&&(S=P,x=!1)}else S=r(g);if(!S){if(!x){u=p+(u.length>0?" "+u:u);continue}if(S=r(g),!S){u=p+(u.length>0?" "+u:u);continue}x=!1}const w=f.length===0?"":f.length===1?f[0]:i(f).join(":"),k=y?w+Lp:w,E=k+S;if(a.indexOf(E)>-1)continue;a.push(E);const T=o(S,x);for(let N=0;N<T.length;++N){const P=T[N];a.push(k+P)}u=p+(u.length>0?" "+u:u)}return u},bE=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=W0(n))&&(o&&(o+=" "),o+=r);return o},W0=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=W0(e[r]))&&(n&&(n+=" "),n+=t);return n},yE=(e,...t)=>{let n,r,o,i;const l=c=>{const u=t.reduce((d,p)=>p(d),e());return n=fE(u),r=n.cache.get,o=n.cache.set,i=a,a(c)},a=c=>{const u=r(c);if(u)return u;const d=gE(c,n);return o(c,d),d};return i=l,(...c)=>i(bE(...c))},vE=[],cn=e=>{const t=n=>n[e]||vE;return t.isThemeGetter=!0,t},U0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,q0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,xE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,CE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,SE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,EE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jo=e=>xE.test(e),lt=e=>!!e&&!Number.isNaN(Number(e)),Gr=e=>!!e&&Number.isInteger(Number(e)),Od=e=>e.endsWith("%")&<(e.slice(0,-1)),fo=e=>CE.test(e),K0=()=>!0,TE=e=>wE.test(e)&&!SE.test(e),Yf=()=>!1,IE=e=>kE.test(e),PE=e=>EE.test(e),OE=e=>!Fe(e)&&!De(e),ME=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),RE=e=>Zo(e,Z0,Yf),Fe=e=>U0.test(e),cs=e=>Zo(e,Q0,TE),dg=e=>Zo(e,_E,lt),jE=e=>Zo(e,ev,K0),LE=e=>Zo(e,J0,Yf),pg=e=>Zo(e,Y0,Yf),$E=e=>Zo(e,X0,PE),Ja=e=>Zo(e,tv,IE),De=e=>q0.test(e),tl=e=>Fs(e,Q0),NE=e=>Fs(e,J0),fg=e=>Fs(e,Y0),FE=e=>Fs(e,Z0),AE=e=>Fs(e,X0),ec=e=>Fs(e,tv,!0),DE=e=>Fs(e,ev,!0),Zo=(e,t,n)=>{const r=U0.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Fs=(e,t,n=!1)=>{const r=q0.exec(e);return r?r[1]?t(r[1]):n:!1},Y0=e=>e==="position"||e==="percentage",X0=e=>e==="image"||e==="url",Z0=e=>e==="length"||e==="size"||e==="bg-size",Q0=e=>e==="length",_E=e=>e==="number",J0=e=>e==="family-name",ev=e=>e==="number"||e==="weight",tv=e=>e==="shadow",zE=()=>{const e=cn("color"),t=cn("font"),n=cn("text"),r=cn("font-weight"),o=cn("tracking"),i=cn("leading"),l=cn("breakpoint"),a=cn("container"),c=cn("spacing"),u=cn("radius"),d=cn("shadow"),p=cn("inset-shadow"),m=cn("text-shadow"),f=cn("drop-shadow"),y=cn("blur"),g=cn("perspective"),v=cn("aspect"),x=cn("ease"),S=cn("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...k(),De,Fe],T=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],P=()=>[De,Fe,c],O=()=>[jo,"full","auto",...P()],L=()=>[Gr,"none","subgrid",De,Fe],$=()=>["auto",{span:["full",Gr,De,Fe]},Gr,De,Fe],C=()=>[Gr,"auto",De,Fe],j=()=>["auto","min","max","fr",De,Fe],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],M=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...P()],_=()=>[jo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],V=()=>[jo,"screen","full","dvw","lvw","svw","min","max","fit",...P()],W=()=>[jo,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],I=()=>[e,De,Fe],D=()=>[...k(),fg,pg,{position:[De,Fe]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",FE,RE,{size:[De,Fe]}],K=()=>[Od,tl,cs],Y=()=>["","none","full",u,De,Fe],U=()=>["",lt,tl,cs],q=()=>["solid","dashed","dotted","double"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>[lt,Od,fg,pg],Q=()=>["","none",y,De,Fe],re=()=>["none",lt,De,Fe],J=()=>["none",lt,De,Fe],oe=()=>[lt,De,Fe],te=()=>[jo,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[fo],breakpoint:[fo],color:[K0],container:[fo],"drop-shadow":[fo],ease:["in","out","in-out"],font:[OE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[fo],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[fo],shadow:[fo],spacing:["px",lt],text:[fo],"text-shadow":[fo],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",jo,Fe,De,v]}],container:["container"],"container-type":[{"@container":["","normal","size",De,Fe]}],"container-named":[ME],columns:[{columns:[lt,Fe,De,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{"inset-s":O(),start:O()}],end:[{"inset-e":O(),end:O()}],"inset-bs":[{"inset-bs":O()}],"inset-be":[{"inset-be":O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[Gr,"auto",De,Fe]}],basis:[{basis:[jo,"full","auto",a,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[lt,jo,"auto","initial","none",Fe]}],grow:[{grow:["",lt,De,Fe]}],shrink:[{shrink:["",lt,De,Fe]}],order:[{order:[Gr,"first","last","none",De,Fe]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":j()}],"auto-rows":[{"auto-rows":j()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...M(),"normal"]}],"justify-self":[{"justify-self":["auto",...M()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...M(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...M(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...M(),"baseline"]}],"place-self":[{"place-self":["auto",...M()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pbs:[{pbs:P()}],pbe:[{pbe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mbs:[{mbs:R()}],mbe:[{mbe:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:_()}],"inline-size":[{inline:["auto",...V()]}],"min-inline-size":[{"min-inline":["auto",...V()]}],"max-inline-size":[{"max-inline":["none",...V()]}],"block-size":[{block:["auto",...W()]}],"min-block-size":[{"min-block":["auto",...W()]}],"max-block-size":[{"max-block":["none",...W()]}],w:[{w:[a,"screen",..._()]}],"min-w":[{"min-w":[a,"screen","none",..._()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[l]},..._()]}],h:[{h:["screen","lh",..._()]}],"min-h":[{"min-h":["screen","lh","none",..._()]}],"max-h":[{"max-h":["screen","lh",..._()]}],"font-size":[{text:["base",n,tl,cs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,DE,jE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Od,Fe]}],"font-family":[{font:[NE,LE,t]}],"font-features":[{"font-features":[Fe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,De,Fe]}],"line-clamp":[{"line-clamp":[lt,"none",De,dg]}],leading:[{leading:[i,...P()]}],"list-image":[{"list-image":["none",De,Fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",De,Fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:[lt,"from-font","auto",De,cs]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[lt,"auto",De,Fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"tab-size":[{tab:[Gr,De,Fe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",De,Fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",De,Fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Gr,De,Fe],radial:["",De,Fe],conic:[Gr,De,Fe]},AE,$E]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:K()}],"gradient-via-pos":[{via:K()}],"gradient-to-pos":[{to:K()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:Y()}],"rounded-s":[{"rounded-s":Y()}],"rounded-e":[{"rounded-e":Y()}],"rounded-t":[{"rounded-t":Y()}],"rounded-r":[{"rounded-r":Y()}],"rounded-b":[{"rounded-b":Y()}],"rounded-l":[{"rounded-l":Y()}],"rounded-ss":[{"rounded-ss":Y()}],"rounded-se":[{"rounded-se":Y()}],"rounded-ee":[{"rounded-ee":Y()}],"rounded-es":[{"rounded-es":Y()}],"rounded-tl":[{"rounded-tl":Y()}],"rounded-tr":[{"rounded-tr":Y()}],"rounded-br":[{"rounded-br":Y()}],"rounded-bl":[{"rounded-bl":Y()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-bs":[{"border-bs":U()}],"border-w-be":[{"border-be":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...q(),"hidden","none"]}],"divide-style":[{divide:[...q(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[lt,De,Fe]}],"outline-w":[{outline:["",lt,tl,cs]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",d,ec,Ja]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",p,ec,Ja]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[lt,cs]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",m,ec,Ja]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[lt,De,Fe]}],"mix-blend":[{"mix-blend":[...Z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Z()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[lt]}],"mask-image-linear-from-pos":[{"mask-linear-from":X()}],"mask-image-linear-to-pos":[{"mask-linear-to":X()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":X()}],"mask-image-t-to-pos":[{"mask-t-to":X()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":X()}],"mask-image-r-to-pos":[{"mask-r-to":X()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":X()}],"mask-image-b-to-pos":[{"mask-b-to":X()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":X()}],"mask-image-l-to-pos":[{"mask-l-to":X()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":X()}],"mask-image-x-to-pos":[{"mask-x-to":X()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":X()}],"mask-image-y-to-pos":[{"mask-y-to":X()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[De,Fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":X()}],"mask-image-radial-to-pos":[{"mask-radial-to":X()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[lt]}],"mask-image-conic-from-pos":[{"mask-conic-from":X()}],"mask-image-conic-to-pos":[{"mask-conic-to":X()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",De,Fe]}],filter:[{filter:["","none",De,Fe]}],blur:[{blur:Q()}],brightness:[{brightness:[lt,De,Fe]}],contrast:[{contrast:[lt,De,Fe]}],"drop-shadow":[{"drop-shadow":["","none",f,ec,Ja]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",lt,De,Fe]}],"hue-rotate":[{"hue-rotate":[lt,De,Fe]}],invert:[{invert:["",lt,De,Fe]}],saturate:[{saturate:[lt,De,Fe]}],sepia:[{sepia:["",lt,De,Fe]}],"backdrop-filter":[{"backdrop-filter":["","none",De,Fe]}],"backdrop-blur":[{"backdrop-blur":Q()}],"backdrop-brightness":[{"backdrop-brightness":[lt,De,Fe]}],"backdrop-contrast":[{"backdrop-contrast":[lt,De,Fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",lt,De,Fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[lt,De,Fe]}],"backdrop-invert":[{"backdrop-invert":["",lt,De,Fe]}],"backdrop-opacity":[{"backdrop-opacity":[lt,De,Fe]}],"backdrop-saturate":[{"backdrop-saturate":[lt,De,Fe]}],"backdrop-sepia":[{"backdrop-sepia":["",lt,De,Fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",De,Fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[lt,"initial",De,Fe]}],ease:[{ease:["linear","initial",x,De,Fe]}],delay:[{delay:[lt,De,Fe]}],animate:[{animate:["none",S,De,Fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,De,Fe]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:re()}],"rotate-x":[{"rotate-x":re()}],"rotate-y":[{"rotate-y":re()}],"rotate-z":[{"rotate-z":re()}],scale:[{scale:J()}],"scale-x":[{"scale-x":J()}],"scale-y":[{"scale-y":J()}],"scale-z":[{"scale-z":J()}],"scale-3d":["scale-3d"],skew:[{skew:oe()}],"skew-x":[{"skew-x":oe()}],"skew-y":[{"skew-y":oe()}],transform:[{transform:[De,Fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:te()}],"translate-x":[{"translate-x":te()}],"translate-y":[{"translate-y":te()}],"translate-z":[{"translate-z":te()}],"translate-none":["translate-none"],zoom:[{zoom:[Gr,De,Fe]}],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",De,Fe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":I()}],"scrollbar-track-color":[{"scrollbar-track":I()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mbs":[{"scroll-mbs":P()}],"scroll-mbe":[{"scroll-mbe":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pbs":[{"scroll-pbs":P()}],"scroll-pbe":[{"scroll-pbe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",De,Fe]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[lt,tl,cs,dg]}],stroke:[{stroke:["none",...I()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},an=yE(zE);function nv(){return Math.floor(Math.random()*1e7)}const rv=(e,t,n,r,o)=>{const i=`preflight ${n}`;return{settings:h.jsx($k,{width:e,height:t,className:i,title:r,role:o}),questionCircle:h.jsx(Lk,{width:e,height:t,className:i,title:r,role:o}),notifications:h.jsx(Rk,{width:e,height:t,className:i,title:r,role:o}),flag:h.jsx(Mk,{width:e,height:t,className:i,title:r,role:o}),edit:h.jsx(Ok,{width:e,height:t,className:i,title:r,role:o}),infoCircle:h.jsx(Gf,{width:e,height:t,className:i,title:r,role:o}),delete:h.jsx(Ak,{width:e,height:t,className:i,title:r,role:o}),resourceCenter:h.jsx(Hk,{width:e,height:t,className:i,title:r,role:o}),search:h.jsx(Vk,{width:e,height:t,className:i,title:r,role:o}),error:h.jsx(qf,{width:e,height:t,className:i,title:r,role:o}),warning:h.jsx(Uf,{width:e,height:t,className:i,title:r,role:o}),dropdown:h.jsx(Dk,{width:e,height:t,className:i,title:r,role:o}),calendar:h.jsx(_k,{width:e,height:t,className:i,title:r,role:o}),bookmark:h.jsx(zk,{width:e,height:t,className:i,title:r,role:o}),menu:h.jsx(Gk,{width:e,height:t,className:i,title:r,role:o}),add:h.jsx(Wk,{width:e,height:t,className:i,title:r,role:o}),exclude:h.jsx(Fk,{width:e,height:t,className:i,title:r,role:o}),email:h.jsx(Nk,{width:e,height:t,className:i,title:r,role:o}),close:h.jsx(Pk,{width:e,height:t,className:i,title:r,role:o}),checkCircle:h.jsx(Wf,{width:e,height:t,className:i,title:r,role:o}),linkNewTab:h.jsx(Uk,{width:e,height:t,className:i,title:r,role:o}),lockOpened:h.jsx(Yk,{width:e,height:t,className:i,title:r,role:o}),lockClosed:h.jsx(Xk,{width:e,height:t,className:i,title:r,role:o}),check:h.jsx(Kk,{width:e,height:t,className:i,title:r,role:o})}},ov=(e,t,n,r,o)=>{const i=`preflight ${n}`;return{notifications:h.jsx(jk,{width:e,height:t,className:i,title:r,role:o}),resourceCenter:h.jsx(qk,{width:e,height:t,className:i,title:r,role:o}),bookmark:h.jsx(Bk,{width:e,height:t,className:i,title:r,role:o})}},sv=(e,t,n,r,o,i)=>{const l=`preflight ${n}`;return{infoCircle:h.jsx(Gf,{width:e,height:t,className:l,title:r,role:o,filled:i}),error:h.jsx(qf,{width:e,height:t,className:l,title:r,role:o,filled:i}),warning:h.jsx(Uf,{width:e,height:t,className:l,title:r,role:o,filled:i}),checkCircle:h.jsx(Wf,{width:e,height:t,className:l,title:r,role:o,filled:i})}},io=({size:e="small",name:t,hasIndicator:n=!1,className:r,altText:o,role:i=void 0,filled:l=!1})=>{const a={small:{width:"16",height:"16"},medium:{width:"24",height:"24"}},c=rv(a[e].width,a[e].height,r,o,i),u=ov(a[e].width,a[e].height,r,o,i),d=sv(a[e].width,a[e].height,r,o,i,l),p=n&&!l?u[t]||c[t]:l&&d[t]||c[t];return h.jsx(h.Fragment,{children:p})};Object.keys(rv()).sort((e,t)=>e.localeCompare(t));Object.keys(ov()).sort((e,t)=>e.localeCompare(t));Object.keys(sv()).sort((e,t)=>e.localeCompare(t));const Wl=(...e)=>an(ue(...e)),BE=Ht("ds:rounded-full ds:border-t-acuity-blue ds:border-x-acuity-blue ds:border-b-neutrals-transparent ds:border-solid ds:animate-spin",{variants:{size:{small:["ds:w-4","ds:h-4","ds:border"],medium:["ds:w-5","ds:h-5","ds:border-2"],large:["ds:w-7","ds:h-7","ds:border-[3px]"],"extra-large":["ds:w-[6.5rem]","ds:h-[6.5rem]","ds:border-[6px]"]}}}),VE=Ht("preflight ds:inline-block ds:rounded focus-visible:ds:outline-none focus-visible:ds:ring-2 focus-visible:ds:ring-acuity-blue",{variants:{size:{small:"ds:p-1",medium:"ds:p-2",large:"ds:p-3","extra-large":"ds:p-4"}}}),Dc=({size:e="medium",focusable:t=!0,label:n="",ariaLive:r="assertive",className:o="",spinnerClassName:i=""})=>h.jsx("div",{tabIndex:t?0:void 0,"aria-label":n,"aria-live":r,className:t?Wl(VE({size:e}),o):`preflight ds:rounded ${o}`,role:"status",children:h.jsx("div",{className:Wl(BE({size:e}),i)})}),iv=(e,t,n)=>{if(t){e.preventDefault();return}n(e)},xu=(e,t,n)=>{if(t){e.preventDefault();return}n(e)},HE=(e,t,n)=>{if(t){e.preventDefault();return}n(e)},GE=(e,t,n)=>{if(t&&e.key!=="Tab"){e.preventDefault();return}n(e)},WE=(e,t,n)=>{if(t){e.preventDefault();return}n(e)},UE=Ht(["preflight","!ds:font-sans","ds:rounded","ds:text-base","ds:font-semibold","ds:border","ds:transition","ds:duration-100","ds:text-nowrap","focus-visible:ds:border","focus-visible:ds:ring","focus-visible:ds:ring-2","focus-visible:ds:outline-none","focus-visible:ds:ring-offset-2"],{variants:{variant:{default:["ds:p-[10px]","ds:relative","ds:group"],small:["ds:p-1"]},isTransparent:{false:"",true:""},disabled:{false:["ds:text-neutrals-black","hover:ds:bg-neutrals-transparent-light","hover:ds:border-neutrals-transparent","active:ds:bg-neutrals-transparent-medium","active:ds:border-neutrals-transparent","focus-visible:ds:bg-neutrals-transparent-light","focus-visible:ds:border-neutrals-dark","focus-visible:ds:ring-neutrals-black"],true:["ds:bg-neutrals-transparent-light","ds:text-neutrals-dark","ds:border-neutrals-transparent","ds:cursor-not-allowed","focus-visible:ds:border-neutrals-light","focus-visible:ds:ring-neutrals-black"]}},compoundVariants:[{isTransparent:!0,disabled:!1,className:["ds:bg-neutrals-transparent","ds:border-neutrals-transparent"]},{isTransparent:!1,disabled:!1,className:["ds:bg-neutrals-white","ds:border-neutrals-white"]}]}),Cu=({variant:e="default",label:t="",disabled:n=!1,className:r="",onClick:o,iconName:i,iconSize:l="medium",hasIndicator:a=!1,hasTooltip:c=!0,isTransparent:u=!0,iconColor:d="",stateful:p=!1,...m})=>{const f=p||n;return h.jsxs("button",{onClick:y=>xu(y,f,o),"aria-disabled":f,"aria-label":t,"aria-pressed":p,"aria-live":p?"assertive":"off",className:Wl(UE({variant:e,isTransparent:u,disabled:f}),r),...m,children:[p&&e==="default"?h.jsx(Dc,{size:"medium",focusable:!1,label:t,ariaLive:"off"}):h.jsx(io,{size:e==="small"?"small":l,name:i!=null?i:"edit",hasIndicator:a,className:n?"ds:text-neutrals-dark":d&&d!==""?d:"ds:text-neutrals-black",altText:t}),e==="default"&&c&&h.jsx("div",{"aria-hidden":"true",className:`${f?"group-hover:ds:hidden":"group-hover:ds:block group-active:ds:block"} ds:absolute ds:left-1/2 ds:top-[3.5rem] ds:z-10 ds:hidden ds:-translate-x-1/2 ds:cursor-default ds:text-nowrap ds:rounded ds:bg-neutrals-darker ds:px-2 ds:py-1 ds:text-sm ds:font-normal ds:text-neutrals-white ds:transition-all ds:duration-100 group-focus-visible:ds:block`,children:t})]})},qE=Ht(["preflight","ds:flex","ds:w-full","ds:flex-row","ds:justify-between","ds:rounded","ds:pl-5","ds:pr-[14px]","ds:py-4","!ds:font-sans"],{variants:{variant:{success:["ds:bg-success-green-lightest","ds:text-success-green-darkest"],info:["ds:bg-information-blue-lightest","ds:text-information-blue-darkest"],warning:["ds:bg-warning-yellow-lightest","ds:text-neutrals-darker"],error:["ds:bg-danger-red-lightest","ds:text-danger-red-darkest"]}}}),KE=e=>an(qE(e)),YE=Ht("",{variants:{variant:{success:"ds:text-success-green-dark",info:"ds:text-information-blue-dark",warning:"ds:text-warning-yellow-darkest",error:"ds:text-danger-red-dark"}}}),mg=e=>an(YE(e)),XE=Ht("",{variants:{variant:{success:["ds:text-success-green-darkest","ds:stroke-success-green-darkest"],info:["ds:text-information-blue-darkest","ds:stroke-information-blue-darkest"],warning:["ds:text-neutrals-darker","ds:stroke-neutrals-darker"],error:["ds:text-danger-red-darkest","ds:stroke-danger-red-darkest"]}}}),qs=e=>an(XE(e)),lv=({variant:e="info",isDismissible:t=!0,showIcon:n=!0,titleSize:r="large",title:o="",description:i="",content:l=void 0,closeAriaLabel:a="Close button",id:c="alert_"+nv().toString(),handleClose:u,className:d="",...p})=>{const m={success:h.jsx(Wf,{className:qs({variant:e})}),info:h.jsx(Gf,{className:qs({variant:e})}),warning:h.jsx(Uf,{className:qs({variant:e})}),error:h.jsx(qf,{className:qs({variant:e})})},f=()=>l!==void 0&&i!==""&&!(r!=="none"||o!==""),y=()=>r==="large"?"ds:flex-col ds:flex ds:gap-3":r==="small"?"ds:flex-row ds:flex ds:gap-3":"ds:flex";return h.jsxs("div",{id:c,className:an(KE({variant:e}),d),...p,children:[h.jsxs("div",{className:"ds:flex ds:flex-row",children:[n&&h.jsx("div",{className:`ds:flex ds:pr-2 ${r==="large"&&o!==""&&"ds:h-[1.75rem] ds:items-center"}`,children:m[e]}),h.jsxs("div",{className:`ds:flex ds:flex-col ${r!=="none"&&o!==""?"ds:gap-3":"ds:justify-center"}`,children:[h.jsxs("div",{className:y(),children:[r!=="none"&&o!==""&&h.jsx("h1",{className:r==="large"?"ds:text-xl ds:font-semibold":"ds:hidden",children:o}),h.jsxs("div",{className:mg({variant:e}),children:[r!=="none"&&o!==""&&h.jsx("span",{className:`${qs({variant:e})} ${r==="small"&&o!==""?"ds:pr-2 ds:text-base ds:font-semibold":"ds:hidden"}`,children:o}),h.jsx("span",{className:`${r==="none"||o===""?"ds:mb-3":""}`,children:i})]})]}),l&&h.jsx("div",{className:`${mg({variant:e})} ${f()?"ds:mt-3":""}`,children:l})]})]}),t===!0&&h.jsx("div",{className:"ds:-mt-2 ds:h-5",children:h.jsx(Cu,{variant:"default",iconSize:"small",iconName:"close",hasTooltip:!1,label:a,disabled:!1,iconColor:qs({variant:e}),onClick:u})})]})},av=["preflight","ds:font-sans!","ds:rounded","ds:text-base","ds:font-semibold","ds:border","ds:transition","ds:duration-100","ds:text-nowrap","ds:focus-visible:ring-2","ds:focus-visible:outline-hidden","ds:focus-visible:ring-offset-2"],ZE=["ds:bg-neutrals-lighter!","ds:text-neutrals-dark!","ds:border-neutrals-light!","ds:cursor-not-allowed!","ds:hover:bg-neutrals-lighter!","ds:hover:border-neutrals-light!","ds:hover:text-neutrals-dark!","ds:focus-visible:ring-neutrals-black!","ds:focus-visible:border-neutrals-light!"],QE=[...av,"ds:p-1","ds:bg-neutrals-lighter!","ds:text-neutrals-dark!","ds:cursor-not-allowed!","ds:border-neutrals-lighter","ds:focus:border-neutrals-light","ds:focus-visible:ring-neutrals-black","ds:focus-visible:border-neutrals-light!","ds:active:border-neutrals-lighter"],JE=Ht(av,{variants:{variant:{primary:["ds:py-3","ds:px-4","ds:text-neutrals-white","ds:bg-acuity-blue","ds:border-acuity-blue","ds:hover:bg-acuity-blue-dark","ds:hover:border-acuity-blue-dark","ds:active:bg-acuity-blue-darkest","ds:active:border-acuity-blue-darkest","ds:active:text-neutrals-white","ds:focus-visible:text-neutrals-black","ds:focus-visible:bg-acuity-blue-light","ds:focus-visible:border-acuity-blue"],secondary:["ds:py-3","ds:px-4","ds:text-neutrals-black","ds:bg-neutrals-white","ds:border-neutrals","ds:hover:bg-neutrals-lighter","ds:hover:border-neutrals-darker","ds:active:bg-neutrals-dark","ds:active:border-neutrals-dark","ds:active:text-neutrals-white","ds:focus-visible:text-neutrals-black","ds:focus-visible:bg-neutrals-lighter","ds:focus-visible:border-neutrals-black","ds:focus-visible:ring-neutrals-black"],danger:["ds:py-3","ds:px-4","ds:text-neutrals-white","ds:bg-danger-red","ds:border-danger-red","ds:hover:bg-danger-red-dark","ds:hover:border-danger-red-dark","ds:active:bg-danger-red-darkest","ds:active:border-danger-red-darkest","ds:active:text-neutrals-white","ds:focus-visible:text-neutrals-black","ds:focus-visible:bg-danger-red-lighter","ds:focus-visible:border-danger-red-darkest"],inline:["ds:p-1","ds:text-neutrals-black","ds:bg-neutrals-white","ds:border-neutrals-white","ds:hover:bg-neutrals-lighter","ds:hover:border-neutrals-lighter","ds:active:bg-neutrals-dark","ds:active:border-neutrals-dark","ds:active:text-neutrals-white","ds:focus-visible:text-neutrals-black","ds:focus-visible:bg-neutrals-lighter","ds:focus-visible:border-neutrals-dark","ds:focus-visible:ring-neutrals-black"]},disabled:{true:ZE,false:[]}},compoundVariants:[{variant:"primary",disabled:!1,class:"ds:focus-visible:ring-acuity-blue"},{variant:"danger",disabled:!1,class:"ds:focus-visible:ring-danger-red-darkest"},{variant:["primary","danger"],disabled:!0,class:"ds:focus-visible:ring-neutrals-black"}]}),eT=(e,t,n)=>e==="inline"&&t===!0?Wl(QE):Wl(JE({variant:e,disabled:t}),n),cv=({variant:e="primary",text:t,label:n="",disabled:r=!1,className:o="",onClick:i,iconName:l,iconIndicator:a=!1,leadingIcon:c=!1,trailingIcon:u=!1,stateful:d=!1,...p})=>{const m=d||r;return h.jsx(h.Fragment,{children:h.jsx("button",{"aria-disabled":m,"aria-pressed":d,onClick:f=>xu(f,m,i),className:eT(e,m,o),"aria-label":n,"aria-live":d?"assertive":"off",...p,children:h.jsxs("div",{className:"ds:flex ds:flex-wrap ds:content-center ds:justify-center",children:[c&&(d?h.jsx(Dc,{size:"small",className:"ds:mr-2 ds:self-center",spinnerClassName:"ds:border-t-current ds:border-x-current ds:border-b-transparent",focusable:!1,label:n,ariaLive:"off"}):h.jsx(io,{size:"small",name:l!=null?l:"edit",hasIndicator:a,className:"ds:mr-2 ds:self-center",altText:""})),h.jsx("span",{children:t}),u&&(d?h.jsx(Dc,{size:"small",className:"ds:ml-2 ds:self-center",spinnerClassName:"ds:border-t-current ds:border-x-current ds:border-b-transparent",focusable:!1,ariaLive:"off",label:n}):h.jsx(io,{size:"small",name:l!=null?l:"edit",hasIndicator:a,className:"ds:ml-2 ds:self-center",altText:""}))]})})})},tT=({content:e=void 0,iconName:t=void 0,title:n="",footer:r=void 0,className:o="",...i})=>h.jsxs("div",{...i,className:an("preflight ds:flex ds:flex-col ds:items-start ds:gap-6 ds:rounded-lg ds:border ds:border-neutrals-light ds:p-5",o),children:[n&&h.jsxs("div",{className:"ds:flex ds:flex-row ds:items-center ds:gap-3",children:[t&&h.jsx(io,{size:"medium",name:t,className:"ds:text-neutrals-darker",hasIndicator:!1,altText:t}),h.jsx(Zf,{size:"small",text:n,hasMarginBottom:!1})]}),e&&h.jsx("div",{className:"ds:w-full ds:text-base",children:e}),r&&h.jsx("div",{children:r})]}),nT=Ht(["preflight","ds:h-4","ds:w-4","focus:ds:ring-acuity-blue","ds:border-neutrals","ds:border","ds:border-solid"],{variants:{disabled:{false:["ds:text-acuity-blue","ds:bg-neutrals-white","hover:ds:border-acuity-blue","hover:ds:bg-acuity-blue-lightest","hover:ds:text-acuity-blue-dark","active:ds:border-acuity-blue-darkest","active:ds:bg-acuity-blue-darkest","active:ds:text-acuity-blue-darkest","ds:cursor-pointer"],true:["ds:text-neutrals","ds:bg-neutrals-lighter"]}}}),uv=e=>an(nT(e)),rT=Ht(["preflight","ds:font-base","!ds:font-sans","ds:ml-2","ds:text-base"],{variants:{disabled:{false:"ds:cursor-pointer",true:"ds:text-neutrals"}}}),dv=e=>an(rT(e)),Xf={variants:{state:{default:["ds:border-neutrals","ds:text-neutrals-darker","focus:ds:border-acuity-blue","focus:ds:ring-acuity-blue","focus:ds:ring-offset-2","focus:ds:ring-2"],error:["ds:border-danger-red","ds:text-danger-red-darkest","focus:ds:border-danger-red","focus:ds:ring-danger-red-dark","focus:ds:ring-offset-2","focus:ds:ring-2"],success:["ds:border-success-green","ds:text-neutrals-darker","focus:ds:border-success-green","focus:ds:ring-success-green-dark","focus:ds:ring-offset-2","focus:ds:ring-2"]},disabled:{true:["!ds:border-neutrals","!ds:text-neutrals-darker","!ds:bg-neutrals-lighter","focus:!ds:border-neutrals","focus:!ds:ring-neutrals-dark","ds:cursor-not-allowed"]}}},oT=({id:e,label:t="",name:n="",checked:r=!1,disabled:o=!1,indeterminate:i=!1,onChange:l=()=>{},onClick:a=()=>{},...c})=>{const u=c["aria-label"]||t||"checkbox_"+e;return h.jsxs("div",{className:"ds:items-top ds:flex",children:[h.jsx("input",{id:e,name:n,"aria-label":u,"aria-disabled":o,type:"checkbox",className:`ds:form-checkbox ds:mt-1 ${uv({disabled:o})} ds:rounded`,checked:r,ref:d=>{d&&(d.indeterminate=i)},onClick:d=>xu(d,o,a),onChange:d=>iv(d,o,l),...c}),t&&h.jsx("label",{htmlFor:e,className:dv({disabled:o}),children:t})]})},sT=e=>["Zero","One","Two","Three","Four","Five","Six","Seven","Eight","Nine"][e]||e.toString(),iT=({children:e,className:t="",onClick:n,successTitle:r,successDescription:o,errorTitle:i,buttonText:l,...a})=>{const c="formValidation_"+nv().toString(),[u,d]=H.useState(!1),[p,m]=H.useState(!1),[f,y]=H.useState(""),[g,v]=H.useState(!0),[x,S]=H.useState(""),[w,k]=H.useState("success"),E=32,T=H.useMemo(()=>H.Children.toArray(e).filter(C=>H.isValidElement(C)),[e]),N=C=>{n(C),v(!1),m(!0),L(c)},P=C=>j=>{C&&C(j),g||d(!0)},O=H.Children.map(e,C=>{if(H.isValidElement(C)){const F=C;return H.cloneElement(F,{onBlur:P(F.props.onBlur)})}return C}),L=H.useCallback(C=>{const j=document.getElementById(C);if(j){const F=j.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:F-E,behavior:"smooth"})}},[E]),$=H.useCallback(C=>{i?S(i):C==1?S("An error was found in the information you submitted"):S(`${sT(C)} errors were found in the information you submitted`)},[i]);return H.useEffect(()=>{if(u||p){const C=T.filter(j=>j.props.state=="error");C.length==0?u?v(!0):(k("success"),y(o),S(r)):u&&w=="success"?v(!0):(k("error"),y(h.jsx("ul",{children:C.map((j,F)=>h.jsx("li",{children:h.jsxs("span",{onClick:()=>L("label_"+j.props.id),children:[C.length>1?`${F+1}. `:"",j.props.message]})},j.props.id))})),$(C.length)),d(!1),m(!1)}},[T,L,$,o,r,u,p,w]),h.jsxs("div",{className:`prelight ${t}`,id:c,...a,children:[!g&&h.jsx("div",{className:"preflight ds:mb-6 ds:rounded",children:h.jsx(lv,{description:f,isDismissible:w=="success",title:x,titleSize:w=="success"?"small":"large",variant:w,handleClose:()=>{v(!0)}})}),O,h.jsx(cv,{text:l,onClick:N})]})},As="large",$i="medium",Ni="small",Fi="extra-large",hg="h1",lT="h2",aT="h3",cT="div";function uT(e){return{[As]:hg,[$i]:lT,[Ni]:aT,[Fi]:cT}[e]||hg}const dT=Ht("preflight !ds:font-sans",{variants:{size:{[Ni]:"ds:mb-3",[$i]:"ds:mb-5",[As]:"ds:mb-5",[Fi]:"ds:mb-6"}}}),tc=Ht("ds:text-neutrals-darker !ds:font-sans",{variants:{size:{[Ni]:"ds:text-xl ds:font-semibold",[$i]:"ds:text-2xl ds:font-semibold",[As]:"ds:text-3xl ds:font-bold",[Fi]:"ds:text-4xl ds:font-semibold"}}}),pT=Ht("ds:mt-0 ds:font-bold ds:text-neutrals-dark",{variants:{size:{[Ni]:"ds:mb-1 ds:text-sm",[$i]:"ds:mb-2 ds:text-sm",[As]:"ds:mb-2 ds:text-base",[Fi]:"ds:mb-3 ds:text-base"}}}),fT=Ht("ds:mb-0 ds:text-neutrals-dark",{variants:{size:{[Ni]:"ds:mt-1 ds:text-base",[$i]:"ds:mt-2 ds:text-base",[As]:"ds:mt-2 ds:text-base",[Fi]:"ds:mt-3 ds:text-base"}}}),mT=Ht("ds:text-neutrals-light",{variants:{size:{[Ni]:"ds:mt-2",[$i]:"ds:mt-2",[As]:"ds:mt-2",[Fi]:"ds:mt-3"}}}),Zf=({size:e=As,className:t="",text:n="",descriptionTop:r="",descriptionBottom:o="",hasHorizontalRule:i=!1,hasMarginBottom:l=!0,headingTag:a,...c})=>{const u=r?h.jsx("p",{className:pT({size:e}),children:r}):null,d=o?h.jsx("p",{className:fT({size:e}),children:o}):null,p=i?h.jsx("hr",{className:mT({size:e})}):null,m=l?dT({size:e}):"preflight",f={div:h.jsx("div",{className:tc({size:e}),children:n}),h3:h.jsx("h3",{className:tc({size:e}),children:n}),h2:h.jsx("h2",{className:tc({size:e}),children:n}),h1:h.jsx("h1",{className:tc({size:e}),children:n})};return h.jsxs("div",{className:an(m,t),...c,children:[u,f[a||uT(e)],d,p]})},hT=({label:e="",name:t,id:n,disabled:r=!1,onChange:o=()=>{},onClick:i=()=>{},...l})=>h.jsxs("div",{className:"ds:flex ds:h-4 ds:items-center",children:[h.jsx("input",{id:n,name:t,type:"radio",className:`ds:form-radio ${uv({disabled:r})}`,"aria-disabled":r,onChange:a=>iv(a,r,o),onClick:a=>xu(a,r,i),...l}),h.jsx("label",{htmlFor:n,className:dv({disabled:r}),children:e})]}),gT=Ht(["preflight","!ds:font-sans","ds:inline-flex","ds:items-center","ds:gap-1","ds:flex-direction-row","ds:cursor-pointer","ds:text-acuity-blue","active:ds:text-acuity-blue-darkest","focus-visible:ds:outline-none","focus-visible:ds:border-2","focus-visible:ds:rounded","focus-visible:ds:border-acuity-blue","focus-visible:ds:px-[2px]","focus-visible:ds:py-[2px]","focus-visible:ds:-mx-[4px]","focus-visible:ds:-my-[4px]"],{variants:{type:{default:["ds:font-bold","hover:ds:underline"],inline:["ds:underline","hover:ds:no-underline","active:ds:no-underline","visited:ds:text-[#551A8B]"]}}}),bT=({text:e,href:t,type:n="default",iconName:r,...o})=>h.jsxs("a",{href:t,type:n,className:an(gT({type:n})),...o,children:[e,r&&h.jsx(io,{altText:e,name:r,size:"small"})]});var yT=Object.defineProperty,vT=(e,t,n)=>t in e?yT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Md=(e,t,n)=>(vT(e,typeof t!="symbol"?t+"":t,n),n);let xT=class{constructor(){Md(this,"current",this.detect()),Md(this,"handoffState","pending"),Md(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window=="undefined"||typeof document=="undefined"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},eo=new xT;function ma(e){var t;return eo.isServer?null:e==null?document:(t=e==null?void 0:e.ownerDocument)!=null?t:document}function $p(e){var t,n;return eo.isServer?null:e==null?document:(n=(t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))!=null?n:document}function pv(e){var t,n;return(n=(t=$p(e))==null?void 0:t.activeElement)!=null?n:null}function CT(e){return pv(e)===e}function wu(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Io(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return wu(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=Io();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function Su(){let[e]=H.useState(Io);return H.useEffect(()=>()=>e.dispose(),[e]),e}let _n=(e,t)=>{eo.isServer?H.useEffect(e,t):H.useLayoutEffect(e,t)};function Ds(e){let t=H.useRef(e);return _n(()=>{t.current=e},[e]),t}let Vt=function(e){let t=Ds(e);return H.useCallback((...n)=>t.current(...n),[t])};function ha(e){return H.useMemo(()=>e,Object.values(e))}let wT=H.createContext(void 0);function ST(){return H.useContext(wT)}function Np(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function wo(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,wo),r}var _c=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(_c||{}),_o=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(_o||{});function Sr(){let e=ET();return H.useCallback(t=>kT({mergeRefs:e,...t}),[e])}function kT({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:l,mergeRefs:a}){a=a!=null?a:TT;let c=fv(t,e);if(i)return nc(c,n,r,l,a);let u=o!=null?o:0;if(u&2){let{static:d=!1,...p}=c;if(d)return nc(p,n,r,l,a)}if(u&1){let{unmount:d=!0,...p}=c;return wo(d?0:1,{0(){return null},1(){return nc({...p,hidden:!0,style:{display:"none"}},n,r,l,a)}})}return nc(c,n,r,l,a)}function nc(e,t={},n,r,o){let{as:i=n,children:l,refName:a="ref",...c}=Rd(e,["unmount","static"]),u=e.ref!==void 0?{[a]:e.ref}:{},d=typeof l=="function"?l(t):l;d=mv(d),"className"in c&&c.className&&typeof c.className=="function"&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let p={};if(t){let m=!1,f=[];for(let[y,g]of Object.entries(t))typeof g=="boolean"&&(m=!0),g===!0&&f.push(y.replace(/([A-Z])/g,v=>`-${v.toLowerCase()}`));if(m){p["data-headlessui-state"]=f.join(" ");for(let y of f)p[`data-${y}`]=""}}if(Rl(i)&&(Object.keys(ps(c)).length>0||Object.keys(ps(p)).length>0))if(!H.isValidElement(d)||Array.isArray(d)&&d.length>1||PT(d)){if(Object.keys(ps(c)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(ps(c)).concat(Object.keys(ps(p))).map(m=>` - ${m}`).join(`
|
|
23
|
+
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(m=>` - ${m}`).join(`
|
|
24
|
+
`)].join(`
|
|
25
|
+
`))}else{let m=d.props,f=m==null?void 0:m.className,y=typeof f=="function"?(...x)=>Np(f(...x),c.className):Np(f,c.className),g=y?{className:y}:{},v=fv(d.props,ps(Rd(c,["ref"])));for(let x in p)x in v&&delete p[x];return H.cloneElement(d,Object.assign({},v,p,u,{ref:o(IT(d),u.ref)},g))}return H.createElement(i,Object.assign({},Rd(c,["ref"]),!Rl(i)&&u,!Rl(i)&&p),d)}function ET(){let e=H.useRef([]),t=H.useCallback(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function TT(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function fv(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[o=>{var i;return(i=o==null?void 0:o.preventDefault)==null?void 0:i.call(o)}]);for(let r in n)Object.assign(t,{[r](o,...i){let l=n[r];for(let a of l){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function Wn(e){var t;return Object.assign(H.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function ps(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Rd(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function IT(e){return H.version.split(".")[0]>="19"?e.props.ref:e.ref}function mv(e){if(e!=null&&e.$$typeof===Symbol.for("react.lazy")){let t=e._payload;if(t!=null&&t.status==="fulfilled")return mv(t.value)}return e}function Rl(e){return e===H.Fragment||e===Symbol.for("react.fragment")}function PT(e){return Rl(e.type)}let OT="span";var zc=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(zc||{});function MT(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Sr()({ourProps:i,theirProps:o,slot:{},defaultTag:OT,name:"Hidden"})}let Fp=Wn(MT);function RT(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function Vo(e){return RT(e)&&"tagName"in e}function Ps(e){return Vo(e)&&"accessKey"in e}function zo(e){return Vo(e)&&"tabIndex"in e}function jT(e){return Vo(e)&&"style"in e}function LT(e){return Ps(e)&&e.nodeName==="IFRAME"}function $T(e){return Ps(e)&&e.nodeName==="INPUT"}let hv=Symbol();function NT(e,t=!0){return Object.assign(e,{[hv]:t})}function po(...e){let t=H.useRef(e);H.useEffect(()=>{t.current=e},[e]);let n=Vt(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[hv]))?void 0:n}let Qf=H.createContext(null);Qf.displayName="DescriptionContext";function gv(){let e=H.useContext(Qf);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,gv),t}return e}function FT(){let[e,t]=H.useState([]);return[e.length>0?e.join(" "):void 0,H.useMemo(()=>function(n){let r=Vt(i=>(t(l=>[...l,i]),()=>t(l=>{let a=l.slice(),c=a.indexOf(i);return c!==-1&&a.splice(c,1),a}))),o=H.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return H.createElement(Qf.Provider,{value:o},n.children)},[t])]}let AT="p";function DT(e,t){let n=H.useId(),r=ST(),{id:o=`headlessui-description-${n}`,...i}=e,l=gv(),a=po(t);_n(()=>l.register(o),[o,l.register]);let c=ha({...l.slot,disabled:r||!1}),u={ref:a,...l.props,id:o};return Sr()({ourProps:u,theirProps:i,slot:c,defaultTag:AT,name:l.name||"Description"})}let _T=Wn(DT),zT=Object.assign(_T,{});var bv=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(bv||{});let BT=H.createContext(()=>{});function VT({value:e,children:t}){return H.createElement(BT.Provider,{value:e},t)}let yv=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};var HT=Object.defineProperty,GT=(e,t,n)=>t in e?HT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,WT=(e,t,n)=>(GT(e,t+"",n),n),vv=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},lr=(e,t,n)=>(vv(e,t,"read from private field"),n?n.call(e):t.get(e)),jd=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},gg=(e,t,n,r)=>(vv(e,t,"write to private field"),t.set(e,n),n),Ur,xl,Cl;let UT=class{constructor(t){jd(this,Ur,{}),jd(this,xl,new yv(()=>new Set)),jd(this,Cl,new Set),WT(this,"disposables",Io()),gg(this,Ur,t),eo.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return lr(this,Ur)}subscribe(t,n){if(eo.isServer)return()=>{};let r={selector:t,callback:n,current:t(lr(this,Ur))};return lr(this,Cl).add(r),this.disposables.add(()=>{lr(this,Cl).delete(r)})}on(t,n){return eo.isServer?()=>{}:(lr(this,xl).get(t).add(n),this.disposables.add(()=>{lr(this,xl).get(t).delete(n)}))}send(t){let n=this.reduce(lr(this,Ur),t);if(n!==lr(this,Ur)){gg(this,Ur,n);for(let r of lr(this,Cl)){let o=r.selector(lr(this,Ur));xv(r.current,o)||(r.current=o,r.callback(o))}for(let r of lr(this,xl).get(t.type))r(lr(this,Ur),t)}}};Ur=new WeakMap,xl=new WeakMap,Cl=new WeakMap;function xv(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null?!1:Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:Ld(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size!==t.size?!1:Ld(e.entries(),t.entries()):bg(e)&&bg(t)?Ld(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()):!1}function Ld(e,t){do{let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}while(!0)}function bg(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}var qT=Object.defineProperty,KT=(e,t,n)=>t in e?qT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yg=(e,t,n)=>(KT(e,typeof t!="symbol"?t+"":t,n),n),YT=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(YT||{});let XT={0(e,t){let n=t.id,r=e.stack,o=e.stack.indexOf(n);if(o!==-1){let i=e.stack.slice();return i.splice(o,1),i.push(n),r=i,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(r===-1)return e;let o=e.stack.slice();return o.splice(r,1),{...e,stack:o}}},ZT=class Cv extends UT{constructor(){super(...arguments),yg(this,"actions",{push:t=>this.send({type:0,id:t}),pop:t=>this.send({type:1,id:t})}),yg(this,"selectors",{isTop:(t,n)=>t.stack[t.stack.length-1]===n,inStack:(t,n)=>t.stack.includes(n)})}static new(){return new Cv({stack:[]})}reduce(t,n){return wo(n.type,XT,t,n)}};const wv=new yv(()=>ZT.new());var rc={exports:{}},$d={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* use-sync-external-store-with-selector.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var vg;function QT(){if(vg)return $d;vg=1;var e=H;function t(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,o=e.useRef,i=e.useEffect,l=e.useMemo,a=e.useDebugValue;return $d.useSyncExternalStoreWithSelector=function(c,u,d,p,m){var f=o(null);if(f.current===null){var y={hasValue:!1,value:null};f.current=y}else y=f.current;f=l(function(){function v(E){if(!x){if(x=!0,S=E,E=p(E),m!==void 0&&y.hasValue){var T=y.value;if(m(T,E))return w=T}return w=E}if(T=w,n(S,E))return T;var N=p(E);return m!==void 0&&m(T,N)?(S=E,T):(S=E,w=N)}var x=!1,S,w,k=d===void 0?null:d;return[function(){return v(u())},k===null?void 0:function(){return v(k())}]},[u,d,p,m]);var g=r(c,f[0],f[1]);return i(function(){y.hasValue=!0,y.value=g},[g]),a(g),g},$d}var Nd={};/**
|
|
34
|
+
* @license React
|
|
35
|
+
* use-sync-external-store-with-selector.development.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var xg;function JT(){return xg||(xg=1,process.env.NODE_ENV!=="production"&&(function(){function e(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=H,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,o=t.useRef,i=t.useEffect,l=t.useMemo,a=t.useDebugValue;Nd.useSyncExternalStoreWithSelector=function(c,u,d,p,m){var f=o(null);if(f.current===null){var y={hasValue:!1,value:null};f.current=y}else y=f.current;f=l(function(){function v(E){if(!x){if(x=!0,S=E,E=p(E),m!==void 0&&y.hasValue){var T=y.value;if(m(T,E))return w=T}return w=E}if(T=w,n(S,E))return T;var N=p(E);return m!==void 0&&m(T,N)?(S=E,T):(S=E,w=N)}var x=!1,S,w,k=d===void 0?null:d;return[function(){return v(u())},k===null?void 0:function(){return v(k())}]},[u,d,p,m]);var g=r(c,f[0],f[1]);return i(function(){y.hasValue=!0,y.value=g},[g]),a(g),g},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Nd}var Cg;function eI(){return Cg||(Cg=1,process.env.NODE_ENV==="production"?rc.exports=QT():rc.exports=JT()),rc.exports}var tI=eI();function Sv(e,t,n=xv){return tI.useSyncExternalStoreWithSelector(Vt(r=>e.subscribe(nI,r)),Vt(()=>e.state),Vt(()=>e.state),Vt(t),n)}function nI(e){return e}function ga(e,t){let n=H.useId(),r=wv.get(t),[o,i]=Sv(r,H.useCallback(l=>[r.selectors.isTop(l,n),r.selectors.inStack(l,n)],[r,n]));return _n(()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),e?i?o:!0:!1}let Ap=new Map,jl=new Map;function wg(e){var t;let n=(t=jl.get(e))!=null?t:0;return jl.set(e,n+1),n!==0?()=>Sg(e):(Ap.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Sg(e))}function Sg(e){var t;let n=(t=jl.get(e))!=null?t:1;if(n===1?jl.delete(e):jl.set(e,n-1),n!==1)return;let r=Ap.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,Ap.delete(e))}function rI(e,{allowed:t,disallowed:n}={}){let r=ga(e,"inert-others");_n(()=>{var o,i;if(!r)return;let l=Io();for(let c of(o=n==null?void 0:n())!=null?o:[])c&&l.add(wg(c));let a=(i=t==null?void 0:t())!=null?i:[];for(let c of a){if(!c)continue;let u=ma(c);if(!u)continue;let d=c.parentElement;for(;d&&d!==u.body;){for(let p of d.children)a.some(m=>p.contains(m))||l.add(wg(p));d=d.parentElement}}return l.dispose},[r,t,n])}function oI(e,t,n){let r=Ds(o=>{let i=o.getBoundingClientRect();i.x===0&&i.y===0&&i.width===0&&i.height===0&&n()});H.useEffect(()=>{if(!e)return;let o=t===null?null:Ps(t)?t:t.current;if(!o)return;let i=Io();if(typeof ResizeObserver!="undefined"){let l=new ResizeObserver(()=>r.current(o));l.observe(o),i.add(()=>l.disconnect())}if(typeof IntersectionObserver!="undefined"){let l=new IntersectionObserver(()=>r.current(o));l.observe(o),i.add(()=>l.disconnect())}return()=>i.dispose()},[t,r,e])}let Bc=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),sI=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var yo=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(yo||{}),Dp=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Dp||{}),iI=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(iI||{});function lI(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Bc)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function aI(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(sI)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var kv=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(kv||{});function cI(e,t=0){var n;return e===((n=ma(e))==null?void 0:n.body)?!1:wo(t,{0(){return e.matches(Bc)},1(){let r=e;for(;r!==null;){if(r.matches(Bc))return!0;r=r.parentElement}return!1}})}var uI=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(uI||{});typeof window!="undefined"&&typeof document!="undefined"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function xo(e){e==null||e.focus({preventScroll:!0})}let dI=["textarea","input"].join(",");function pI(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,dI))!=null?n:!1}function fI(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let l=o.compareDocumentPosition(i);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Ll(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?$p(e[0]):document:$p(e),l=Array.isArray(e)?n?fI(e):e:t&64?aI(e):lI(e);o.length>0&&l.length>1&&(l=l.filter(f=>!o.some(y=>y!=null&&"current"in y?(y==null?void 0:y.current)===f:y===f))),r=r!=null?r:i==null?void 0:i.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(r))-1;if(t&4)return Math.max(0,l.indexOf(r))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},d=0,p=l.length,m;do{if(d>=p||d+p<=0)return 0;let f=c+d;if(t&16)f=(f+p)%p;else{if(f<0)return 3;if(f>=p)return 1}m=l[f],m==null||m.focus(u),d+=a}while(m!==pv(m));return t&6&&pI(m)&&m.select(),2}function Ev(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function mI(){return/Android/gi.test(window.navigator.userAgent)}function kg(){return Ev()||mI()}function oc(e,t,n,r){let o=Ds(n);H.useEffect(()=>{if(!e)return;function i(l){o.current(l)}return document.addEventListener(t,i,r),()=>document.removeEventListener(t,i,r)},[e,t,r])}function Tv(e,t,n,r){let o=Ds(n);H.useEffect(()=>{if(!e)return;function i(l){o.current(l)}return window.addEventListener(t,i,r),()=>window.removeEventListener(t,i,r)},[e,t,r])}const Eg=30;function hI(e,t,n){let r=Ds(n),o=H.useCallback(function(a,c){if(a.defaultPrevented)return;let u=c(a);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let d=(function p(m){return typeof m=="function"?p(m()):Array.isArray(m)||m instanceof Set?m:[m]})(t);for(let p of d)if(p!==null&&(p.contains(u)||a.composed&&a.composedPath().includes(p)))return;return!cI(u,kv.Loose)&&u.tabIndex!==-1&&a.preventDefault(),r.current(a,u)},[r,t]),i=H.useRef(null);oc(e,"pointerdown",a=>{var c,u;kg()||(i.current=((u=(c=a.composedPath)==null?void 0:c.call(a))==null?void 0:u[0])||a.target)},!0),oc(e,"pointerup",a=>{if(kg()||!i.current)return;let c=i.current;return i.current=null,o(a,()=>c)},!0);let l=H.useRef({x:0,y:0});oc(e,"touchstart",a=>{l.current.x=a.touches[0].clientX,l.current.y=a.touches[0].clientY},!0),oc(e,"touchend",a=>{let c={x:a.changedTouches[0].clientX,y:a.changedTouches[0].clientY};if(!(Math.abs(c.x-l.current.x)>=Eg||Math.abs(c.y-l.current.y)>=Eg))return o(a,()=>zo(a.target)?a.target:null)},!0),Tv(e,"blur",a=>o(a,()=>LT(window.document.activeElement)?window.document.activeElement:null),!0)}function Jf(...e){return H.useMemo(()=>ma(...e),[...e])}function Iv(e,t,n,r){let o=Ds(n);H.useEffect(()=>{e=e!=null?e:window;function i(l){o.current(l)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function gI(e){return H.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}function bI(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let l=t[o].call(n,...i);l&&(n=l,r.forEach(a=>a()))}}}function yI(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=(n=t.defaultView)!=null?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,e-o);n.style(r,"paddingRight",`${i}px`)}}}function vI(){return Ev()?{before({doc:e,d:t,meta:n}){function r(o){for(let i of n().containers)for(let l of i())if(l.contains(o))return!0;return!1}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=Io();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let i=(o=window.scrollY)!=null?o:window.pageYOffset,l=null;t.addEventListener(e,"click",a=>{if(zo(a.target))try{let c=a.target.closest("a");if(!c)return;let{hash:u}=new URL(c.href),d=e.querySelector(u);zo(d)&&!r(d)&&(l=d)}catch(c){}},!0),t.group(a=>{t.addEventListener(e,"touchstart",c=>{if(a.dispose(),zo(c.target)&&jT(c.target))if(r(c.target)){let u=c.target;for(;u.parentElement&&r(u.parentElement);)u=u.parentElement;a.style(u,"overscrollBehavior","contain")}else a.style(c.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",a=>{if(zo(a.target)){if($T(a.target))return;if(r(a.target)){let c=a.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let c=(a=window.scrollY)!=null?a:window.pageYOffset;i!==c&&window.scrollTo(0,i),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=null)})})}}:{}}function xI(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Tg(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let vs=bI(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Io(),meta:new Set,computedMeta:{}};return r.count++,r.meta.add(t),r.computedMeta=Tg(r.meta),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t),n.computedMeta=Tg(n.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta(){return e.computedMeta}},n=[vI(),yI(),xI()];n.forEach(({before:r})=>r==null?void 0:r(t)),n.forEach(({after:r})=>r==null?void 0:r(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});vs.subscribe(()=>{let e=vs.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&vs.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&vs.dispatch("TEARDOWN",n)}});function CI(e,t,n=()=>({containers:[]})){let r=gI(vs),o=t?r.get(t):void 0,i=o?o.count>0:!1;return _n(()=>{if(!(!t||!e))return vs.dispatch("PUSH",t,n),()=>vs.dispatch("POP",t,n)},[e,t]),i}function wI(e,t,n=()=>[document.body]){let r=ga(e,"scroll-lock");CI(r,t,o=>{var i;return{containers:[...(i=o.containers)!=null?i:[],n]}})}function SI(e=0){let[t,n]=H.useState(e),r=H.useCallback(c=>n(c),[]),o=H.useCallback(c=>n(u=>u|c),[]),i=H.useCallback(c=>(t&c)===c,[t]),l=H.useCallback(c=>n(u=>u&~c),[]),a=H.useCallback(c=>n(u=>u^c),[]);return{flags:t,setFlag:r,addFlag:o,hasFlag:i,removeFlag:l,toggleFlag:a}}var Ig,Pg;typeof process!="undefined"&&typeof globalThis!="undefined"&&typeof Element!="undefined"&&((Ig=process==null?void 0:process.env)==null?void 0:Ig.NODE_ENV)==="test"&&typeof((Pg=Element==null?void 0:Element.prototype)==null?void 0:Pg.getAnimations)=="undefined"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
|
|
42
|
+
`)),[]});var kI=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(kI||{});function EI(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function TI(e,t,n,r){let[o,i]=H.useState(n),{hasFlag:l,addFlag:a,removeFlag:c}=SI(e&&o?3:0),u=H.useRef(!1),d=H.useRef(!1),p=Su();return _n(()=>{var m;if(e){if(n&&i(!0),!t){n&&a(3);return}return(m=r==null?void 0:r.start)==null||m.call(r,n),II(t,{inFlight:u,prepare(){d.current?d.current=!1:d.current=u.current,u.current=!0,!d.current&&(n?(a(3),c(4)):(a(4),c(2)))},run(){d.current?n?(c(3),a(4)):(c(4),a(3)):n?c(1):a(1)},done(){var f;d.current&&MI(t)||(u.current=!1,c(7),n||i(!1),(f=r==null?void 0:r.end)==null||f.call(r,n))}})}},[e,n,t,p]),e?[o,{closed:l(1),enter:l(2),leave:l(4),transition:l(2)||l(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function II(e,{prepare:t,run:n,done:r,inFlight:o}){let i=Io();return OI(e,{prepare:t,inFlight:o}),i.nextFrame(()=>{n(),i.requestAnimationFrame(()=>{i.add(PI(e,r))})}),i.dispose}function PI(e,t){var n,r;let o=Io();if(!e)return o.dispose;let i=!1;o.add(()=>{i=!0});let l=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(a=>a instanceof CSSTransition))!=null?r:[];return l.length===0?(t(),o.dispose):(Promise.allSettled(l.map(a=>a.finished)).then(()=>{i||t()}),o.dispose)}function OI(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}function MI(e){var t,n;return((n=(t=e.getAnimations)==null?void 0:t.call(e))!=null?n:[]).some(r=>r instanceof CSSTransition&&r.playState!=="finished")}function em(e,t){let n=H.useRef([]),r=Vt(e);H.useEffect(()=>{let o=[...n.current];for(let[i,l]of t.entries())if(n.current[i]!==l){let a=r(t,o);return n.current=t,a}},[r,...t])}let ku=H.createContext(null);ku.displayName="OpenClosedContext";var Nr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Nr||{});function Eu(){return H.useContext(ku)}function RI({value:e,children:t}){return H.createElement(ku.Provider,{value:e},t)}function jI({children:e}){return H.createElement(ku.Provider,{value:null},e)}function LI(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window!="undefined"&&typeof document!="undefined"&&(document.addEventListener("DOMContentLoaded",t),t())}let Ao=[];LI(()=>{function e(t){if(!zo(t.target)||t.target===document.body||Ao[0]===t.target)return;let n=t.target;n=n.closest(Bc),Ao.unshift(n!=null?n:t.target),Ao=Ao.filter(r=>r!=null&&r.isConnected),Ao.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Pv(e){let t=Vt(e),n=H.useRef(!1);H.useEffect(()=>(n.current=!1,()=>{n.current=!0,wu(()=>{n.current&&t()})}),[t])}function $I(){let e=typeof document=="undefined";return"useSyncExternalStore"in b?(t=>t.useSyncExternalStore)(b)(()=>()=>{},()=>!1,()=>!e):!1}function ba(){let e=$I(),[t,n]=b.useState(eo.isHandoffComplete);return t&&eo.isHandoffComplete===!1&&n(!1),b.useEffect(()=>{t!==!0&&n(!0)},[t]),b.useEffect(()=>eo.handoff(),[]),e?!1:t}let Ov=H.createContext(!1);function NI(){return H.useContext(Ov)}function Og(e){return H.createElement(Ov.Provider,{value:e.force},e.children)}function FI(e){let t=NI(),n=H.useContext(Rv),[r,o]=H.useState(()=>{var i;if(!t&&n!==null)return(i=n.current)!=null?i:null;if(eo.isServer)return null;let l=e==null?void 0:e.getElementById("headlessui-portal-root");if(l)return l;if(e===null)return null;let a=e.createElement("div");return a.setAttribute("id","headlessui-portal-root"),e.body.appendChild(a)});return H.useEffect(()=>{r!==null&&(e!=null&&e.body.contains(r)||e==null||e.body.appendChild(r))},[r,e]),H.useEffect(()=>{t||n!==null&&o(n.current)},[n,o,t]),r}let Mv=H.Fragment,AI=Wn(function(e,t){let{ownerDocument:n=null,...r}=e,o=H.useRef(null),i=po(NT(f=>{o.current=f}),t),l=Jf(o.current),a=n!=null?n:l,c=FI(a),u=H.useContext(_p),d=Su(),p=ba(),m=Sr();return Pv(()=>{var f;c&&c.childNodes.length<=0&&((f=c.parentElement)==null||f.removeChild(c))}),!c||!p?null:ci.createPortal(H.createElement("div",{"data-headlessui-portal":"",ref:f=>{d.dispose(),u&&f&&d.add(u.register(f))}},m({ourProps:{ref:i},theirProps:r,slot:{},defaultTag:Mv,name:"Portal"})),c)});function DI(e,t){let n=po(t),{enabled:r=!0,ownerDocument:o,...i}=e,l=Sr();return r?H.createElement(AI,{...i,ownerDocument:o,ref:n}):l({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:Mv,name:"Portal"})}let _I=H.Fragment,Rv=H.createContext(null);function zI(e,t){let{target:n,...r}=e,o={ref:po(t)},i=Sr();return H.createElement(Rv.Provider,{value:n},i({ourProps:o,theirProps:r,defaultTag:_I,name:"Popover.Group"}))}let _p=H.createContext(null);function BI(){let e=H.useContext(_p),t=H.useRef([]),n=Vt(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=Vt(i=>{let l=t.current.indexOf(i);l!==-1&&t.current.splice(l,1),e&&e.unregister(i)}),o=H.useMemo(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,H.useMemo(()=>function({children:i}){return H.createElement(_p.Provider,{value:o},i)},[o])]}let VI=Wn(DI),jv=Wn(zI),HI=Object.assign(VI,{Group:jv});function GI(e,t=typeof document!="undefined"?document.defaultView:null,n){let r=ga(e,"escape");Iv(t,"keydown",o=>{r&&(o.defaultPrevented||o.key===bv.Escape&&n(o))})}function WI(){var e;let[t]=H.useState(()=>typeof window!="undefined"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=H.useState((e=t==null?void 0:t.matches)!=null?e:!1);return _n(()=>{if(!t)return;function o(i){r(i.matches)}return t.addEventListener("change",o),()=>t.removeEventListener("change",o)},[t]),n}function UI({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Vt(()=>{var o,i;let l=ma(n),a=[];for(let c of e)c!==null&&(Vo(c)?a.push(c):"current"in c&&Vo(c.current)&&a.push(c.current));if(t!=null&&t.current)for(let c of t.current)a.push(c);for(let c of(o=l==null?void 0:l.querySelectorAll("html > *, body > *"))!=null?o:[])c!==document.body&&c!==document.head&&Vo(c)&&c.id!=="headlessui-portal-root"&&(n&&(c.contains(n)||c.contains((i=n==null?void 0:n.getRootNode())==null?void 0:i.host))||a.some(u=>c.contains(u))||a.push(c));return a});return{resolveContainers:r,contains:Vt(o=>r().some(i=>i.contains(o)))}}let Lv=H.createContext(null);function Mg({children:e,node:t}){let[n,r]=H.useState(null),o=$v(t!=null?t:n);return H.createElement(Lv.Provider,{value:o},e,o===null&&H.createElement(Fp,{features:zc.Hidden,ref:i=>{var l,a;if(i){for(let c of(a=(l=ma(i))==null?void 0:l.querySelectorAll("html > *, body > *"))!=null?a:[])if(c!==document.body&&c!==document.head&&Vo(c)&&c!=null&&c.contains(i)){r(c);break}}}}))}function $v(e=null){var t;return(t=H.useContext(Lv))!=null?t:e}function tm(){let e=H.useRef(!1);return _n(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var wl=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(wl||{});function qI(){let e=H.useRef(0);return Tv(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Nv(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)Vo(n.current)&&t.add(n.current);return t}let KI="div";var bs=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(bs||{});function YI(e,t){let n=H.useRef(null),r=po(n,t),{initialFocus:o,initialFocusFallback:i,containers:l,features:a=15,...c}=e;ba()||(a=0);let u=Jf(n.current);JI(a,{ownerDocument:u});let d=e5(a,{ownerDocument:u,container:n,initialFocus:o,initialFocusFallback:i});t5(a,{ownerDocument:u,container:n,containers:l,previousActiveElement:d});let p=qI(),m=Vt(S=>{if(!Ps(n.current))return;let w=n.current;(k=>k())(()=>{wo(p.current,{[wl.Forwards]:()=>{Ll(w,yo.First,{skipElements:[S.relatedTarget,i]})},[wl.Backwards]:()=>{Ll(w,yo.Last,{skipElements:[S.relatedTarget,i]})}})})}),f=ga(!!(a&2),"focus-trap#tab-lock"),y=Su(),g=H.useRef(!1),v={ref:r,onKeyDown(S){S.key=="Tab"&&(g.current=!0,y.requestAnimationFrame(()=>{g.current=!1}))},onBlur(S){if(!(a&4))return;let w=Nv(l);Ps(n.current)&&w.add(n.current);let k=S.relatedTarget;zo(k)&&k.dataset.headlessuiFocusGuard!=="true"&&(Fv(w,k)||(g.current?Ll(n.current,wo(p.current,{[wl.Forwards]:()=>yo.Next,[wl.Backwards]:()=>yo.Previous})|yo.WrapAround,{relativeTo:S.target}):zo(S.target)&&xo(S.target)))}},x=Sr();return H.createElement(H.Fragment,null,f&&H.createElement(Fp,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:zc.Focusable}),x({ourProps:v,theirProps:c,defaultTag:KI,name:"FocusTrap"}),f&&H.createElement(Fp,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:zc.Focusable}))}let XI=Wn(YI),ZI=Object.assign(XI,{features:bs});function QI(e=!0){let t=H.useRef(Ao.slice());return em(([n],[r])=>{r===!0&&n===!1&&wu(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Ao.slice())},[e,Ao,t]),Vt(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function JI(e,{ownerDocument:t}){let n=!!(e&8),r=QI(n);em(()=>{n||CT(t==null?void 0:t.body)&&xo(r())},[n]),Pv(()=>{n&&xo(r())})}function e5(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:o}){let i=H.useRef(null),l=ga(!!(e&1),"focus-trap#initial-focus"),a=tm();return em(()=>{if(e===0)return;if(!l){o!=null&&o.current&&xo(o.current);return}let c=n.current;c&&wu(()=>{if(!a.current)return;let u=t==null?void 0:t.activeElement;if(r!=null&&r.current){if((r==null?void 0:r.current)===u){i.current=u;return}}else if(c.contains(u)){i.current=u;return}if(r!=null&&r.current)xo(r.current);else{if(e&16){if(Ll(c,yo.First|yo.AutoFocus)!==Dp.Error)return}else if(Ll(c,yo.First)!==Dp.Error)return;if(o!=null&&o.current&&(xo(o.current),(t==null?void 0:t.activeElement)===o.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}i.current=t==null?void 0:t.activeElement})},[o,l,e]),i}function t5(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:o}){let i=tm(),l=!!(e&4);Iv(t==null?void 0:t.defaultView,"focus",a=>{if(!l||!i.current)return;let c=Nv(r);Ps(n.current)&&c.add(n.current);let u=o.current;if(!u)return;let d=a.target;Ps(d)?Fv(c,d)?(o.current=d,xo(d)):(a.preventDefault(),a.stopPropagation(),xo(u)):xo(o.current)},!0)}function Fv(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function Av(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||!Rl((t=e.as)!=null?t:_v)||H.Children.count(e.children)===1}let Tu=H.createContext(null);Tu.displayName="TransitionContext";var n5=(e=>(e.Visible="visible",e.Hidden="hidden",e))(n5||{});function r5(){let e=H.useContext(Tu);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function o5(){let e=H.useContext(Iu);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Iu=H.createContext(null);Iu.displayName="NestingContext";function Pu(e){return"children"in e?Pu(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Dv(e,t){let n=Ds(e),r=H.useRef([]),o=tm(),i=Su(),l=Vt((f,y=_o.Hidden)=>{let g=r.current.findIndex(({el:v})=>v===f);g!==-1&&(wo(y,{[_o.Unmount](){r.current.splice(g,1)},[_o.Hidden](){r.current[g].state="hidden"}}),i.microTask(()=>{var v;!Pu(r)&&o.current&&((v=n.current)==null||v.call(n))}))}),a=Vt(f=>{let y=r.current.find(({el:g})=>g===f);return y?y.state!=="visible"&&(y.state="visible"):r.current.push({el:f,state:"visible"}),()=>l(f,_o.Unmount)}),c=H.useRef([]),u=H.useRef(Promise.resolve()),d=H.useRef({enter:[],leave:[]}),p=Vt((f,y,g)=>{c.current.splice(0),t&&(t.chains.current[y]=t.chains.current[y].filter(([v])=>v!==f)),t==null||t.chains.current[y].push([f,new Promise(v=>{c.current.push(v)})]),t==null||t.chains.current[y].push([f,new Promise(v=>{Promise.all(d.current[y].map(([x,S])=>S)).then(()=>v())})]),y==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>g(y)):g(y)}),m=Vt((f,y,g)=>{Promise.all(d.current[y].splice(0).map(([v,x])=>x)).then(()=>{var v;(v=c.current.shift())==null||v()}).then(()=>g(y))});return H.useMemo(()=>({children:r,register:a,unregister:l,onStart:p,onStop:m,wait:u,chains:d}),[a,l,r,p,m,d,u])}let _v=H.Fragment,zv=_c.RenderStrategy;function s5(e,t){var n,r;let{transition:o=!0,beforeEnter:i,afterEnter:l,beforeLeave:a,afterLeave:c,enter:u,enterFrom:d,enterTo:p,entered:m,leave:f,leaveFrom:y,leaveTo:g,...v}=e,[x,S]=H.useState(null),w=H.useRef(null),k=Av(e),E=po(...k?[w,t,S]:t===null?[]:[t]),T=(n=v.unmount)==null||n?_o.Unmount:_o.Hidden,{show:N,appear:P,initial:O}=r5(),[L,$]=H.useState(N?"visible":"hidden"),C=o5(),{register:j,unregister:F}=C;_n(()=>j(w),[j,w]),_n(()=>{if(T===_o.Hidden&&w.current){if(N&&L!=="visible"){$("visible");return}return wo(L,{hidden:()=>F(w),visible:()=>j(w)})}},[L,w,j,F,N,T]);let M=ba();_n(()=>{if(k&&M&&L==="visible"&&w.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[w,L,M,k]);let R=O&&!P,_=P&&N&&O,V=H.useRef(!1),W=Dv(()=>{V.current||($("hidden"),F(w))},C),I=Vt(q=>{V.current=!0;let Z=q?"enter":"leave";W.onStart(w,Z,X=>{X==="enter"?i==null||i():X==="leave"&&(a==null||a())})}),D=Vt(q=>{let Z=q?"enter":"leave";V.current=!1,W.onStop(w,Z,X=>{X==="enter"?l==null||l():X==="leave"&&(c==null||c())}),Z==="leave"&&!Pu(W)&&($("hidden"),F(w))});H.useEffect(()=>{k&&o||(I(N),D(N))},[N,k,o]);let G=!(!o||!k||!M||R),[,A]=TI(G,x,N,{start:I,end:D}),K=ps({ref:E,className:((r=Np(v.className,_&&u,_&&d,A.enter&&u,A.enter&&A.closed&&d,A.enter&&!A.closed&&p,A.leave&&f,A.leave&&!A.closed&&y,A.leave&&A.closed&&g,!A.transition&&N&&m))==null?void 0:r.trim())||void 0,...EI(A)}),Y=0;L==="visible"&&(Y|=Nr.Open),L==="hidden"&&(Y|=Nr.Closed),N&&L==="hidden"&&(Y|=Nr.Opening),!N&&L==="visible"&&(Y|=Nr.Closing);let U=Sr();return H.createElement(Iu.Provider,{value:W},H.createElement(RI,{value:Y},U({ourProps:K,theirProps:v,defaultTag:_v,features:zv,visible:L==="visible",name:"Transition.Child"})))}function i5(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,l=H.useRef(null),a=Av(e),c=po(...a?[l,t]:t===null?[]:[t]);ba();let u=Eu();if(n===void 0&&u!==null&&(n=(u&Nr.Open)===Nr.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,p]=H.useState(n?"visible":"hidden"),m=Dv(()=>{n||p("hidden")}),[f,y]=H.useState(!0),g=H.useRef([n]);_n(()=>{f!==!1&&g.current[g.current.length-1]!==n&&(g.current.push(n),y(!1))},[g,n]);let v=H.useMemo(()=>({show:n,appear:r,initial:f}),[n,r,f]);_n(()=>{n?p("visible"):!Pu(m)&&l.current!==null&&p("hidden")},[n,m]);let x={unmount:o},S=Vt(()=>{var E;f&&y(!1),(E=e.beforeEnter)==null||E.call(e)}),w=Vt(()=>{var E;f&&y(!1),(E=e.beforeLeave)==null||E.call(e)}),k=Sr();return H.createElement(Iu.Provider,{value:m},H.createElement(Tu.Provider,{value:v},k({ourProps:{...x,as:H.Fragment,children:H.createElement(Bv,{ref:c,...x,...i,beforeEnter:S,beforeLeave:w})},theirProps:{},defaultTag:H.Fragment,features:zv,visible:d==="visible",name:"Transition"})))}function l5(e,t){let n=H.useContext(Tu)!==null,r=Eu()!==null;return H.createElement(H.Fragment,null,!n&&r?H.createElement(zp,{ref:t,...e}):H.createElement(Bv,{ref:t,...e}))}let zp=Wn(i5),Bv=Wn(s5),Ul=Wn(l5),Vv=Object.assign(zp,{Child:Ul,Root:zp});var a5=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(a5||{}),c5=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(c5||{});let u5={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},nm=H.createContext(null);nm.displayName="DialogContext";function Ou(e){let t=H.useContext(nm);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ou),n}return t}function d5(e,t){return wo(t.type,u5,e,t)}let Rg=Wn(function(e,t){let n=H.useId(),{id:r=`headlessui-dialog-${n}`,open:o,onClose:i,initialFocus:l,role:a="dialog",autoFocus:c=!0,__demoMode:u=!1,unmount:d=!1,...p}=e,m=H.useRef(!1);a=(function(){return a==="dialog"||a==="alertdialog"?a:(m.current||(m.current=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")})();let f=Eu();o===void 0&&f!==null&&(o=(f&Nr.Open)===Nr.Open);let y=H.useRef(null),g=po(y,t),v=Jf(y.current),x=o?0:1,[S,w]=H.useReducer(d5,{titleId:null,descriptionId:null,panelRef:H.createRef()}),k=Vt(()=>i(!1)),E=Vt(A=>w({type:0,id:A})),T=ba()?x===0:!1,[N,P]=BI(),O={get current(){var A;return(A=S.panelRef.current)!=null?A:y.current}},L=$v(),{resolveContainers:$}=UI({mainTreeNode:L,portals:N,defaultContainers:[O]}),C=f!==null?(f&Nr.Closing)===Nr.Closing:!1;rI(u||C?!1:T,{allowed:Vt(()=>{var A,K;return[(K=(A=y.current)==null?void 0:A.closest("[data-headlessui-portal]"))!=null?K:null]}),disallowed:Vt(()=>{var A;return[(A=L==null?void 0:L.closest("body > *:not(#headlessui-portal-root)"))!=null?A:null]})});let j=wv.get(null);_n(()=>{if(T)return j.actions.push(r),()=>j.actions.pop(r)},[j,r,T]);let F=Sv(j,H.useCallback(A=>j.selectors.isTop(A,r),[j,r]));hI(F,$,A=>{A.preventDefault(),k()}),GI(F,v==null?void 0:v.defaultView,A=>{A.preventDefault(),A.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),k()}),wI(u||C?!1:T,v,$),oI(T,y,k);let[M,R]=FT(),_=H.useMemo(()=>[{dialogState:x,close:k,setTitleId:E,unmount:d},S],[x,k,E,d,S]),V=ha({open:x===0}),W={ref:g,id:r,role:a,tabIndex:-1,"aria-modal":u?void 0:x===0?!0:void 0,"aria-labelledby":S.titleId,"aria-describedby":M,unmount:d},I=!WI(),D=bs.None;T&&!u&&(D|=bs.RestoreFocus,D|=bs.TabLock,c&&(D|=bs.AutoFocus),I&&(D|=bs.InitialFocus));let G=Sr();return H.createElement(jI,null,H.createElement(Og,{force:!0},H.createElement(HI,null,H.createElement(nm.Provider,{value:_},H.createElement(jv,{target:y},H.createElement(Og,{force:!1},H.createElement(R,{slot:V},H.createElement(P,null,H.createElement(ZI,{initialFocus:l,initialFocusFallback:y,containers:$,features:D},H.createElement(VT,{value:k},G({ourProps:W,theirProps:p,slot:V,defaultTag:p5,features:f5,visible:x===0,name:"Dialog"})))))))))))}),p5="div",f5=_c.RenderStrategy|_c.Static;function m5(e,t){let{transition:n=!1,open:r,...o}=e,i=Eu(),l=e.hasOwnProperty("open")||i!==null,a=e.hasOwnProperty("onClose");if(!l&&!a)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!l)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!a)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!i&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(r!==void 0||n)&&!o.static?H.createElement(Mg,null,H.createElement(Vv,{show:r,transition:n,unmount:o.unmount},H.createElement(Rg,{ref:t,...o}))):H.createElement(Mg,null,H.createElement(Rg,{ref:t,open:r,...o}))}let h5="div";function g5(e,t){let n=H.useId(),{id:r=`headlessui-dialog-panel-${n}`,transition:o=!1,...i}=e,[{dialogState:l,unmount:a},c]=Ou("Dialog.Panel"),u=po(t,c.panelRef),d=ha({open:l===0}),p=Vt(v=>{v.stopPropagation()}),m={ref:u,id:r,onClick:p},f=o?Ul:H.Fragment,y=o?{unmount:a}:{},g=Sr();return H.createElement(f,{...y},g({ourProps:m,theirProps:i,slot:d,defaultTag:h5,name:"Dialog.Panel"}))}let b5="div";function y5(e,t){let{transition:n=!1,...r}=e,[{dialogState:o,unmount:i}]=Ou("Dialog.Backdrop"),l=ha({open:o===0}),a={ref:t,"aria-hidden":!0},c=n?Ul:H.Fragment,u=n?{unmount:i}:{},d=Sr();return H.createElement(c,{...u},d({ourProps:a,theirProps:r,slot:l,defaultTag:b5,name:"Dialog.Backdrop"}))}let v5="h2";function x5(e,t){let n=H.useId(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:l}]=Ou("Dialog.Title"),a=po(t);H.useEffect(()=>(l(r),()=>l(null)),[r,l]);let c=ha({open:i===0}),u={ref:a,id:r};return Sr()({ourProps:u,theirProps:o,slot:c,defaultTag:v5,name:"Dialog.Title"})}let C5=Wn(m5),Hv=Wn(g5);Wn(y5);let w5=Wn(x5),S5=Object.assign(C5,{Panel:Hv,Title:w5,Description:zT});const k5=({open:e=!1,onClose:t,title:n="",backdrop:r="static",content:o,footer:i,icon:l=!1,iconComponent:a,iconName:c=void 0,dismissible:u=!0,horizontalRule:d=!0})=>{const p=()=>a?h.jsx(h.Fragment,{children:a}):l&&c?h.jsx(io,{name:c,size:"medium"}):null,m=()=>r==="dismissible"?t():!0;return h.jsx(Vv,{appear:!0,show:e,as:H.Fragment,children:h.jsxs(S5,{as:"div",onClose:m,static:!0,className:"preflight ds:relative ds:z-20 focus:ds:outline-none","aria-labelledby":"modal-title",children:[r!=="none"&&h.jsx(Ul,{as:H.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:h.jsx("div",{className:"ds:fixed ds:inset-0 ds:bg-neutrals-transparent-medium ds:transition-opacity","aria-hidden":"true"})}),h.jsx("div",{className:"ds:fixed ds:inset-0 ds:z-20 ds:w-screen ds:overflow-y-auto",children:h.jsx("div",{className:"ds:flex ds:min-h-full ds:items-center ds:justify-center ds:p-4",children:h.jsx(Ul,{as:H.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:h.jsxs(Hv,{className:"ds:flex ds:max-h-[90vh] ds:min-w-full ds:max-w-full ds:transform ds:flex-col ds:rounded-lg ds:bg-neutrals-white ds:text-left ds:shadow-modal sm:ds:min-w-[15rem] sm:ds:max-w-[55%]",children:[h.jsxs("div",{className:`ds:flex ds:items-center ds:py-4 ${u?"ds:pl-5 ds:pr-3":"ds:px-5"}`,children:[l&&h.jsx("div",{className:"ds:mr-3",children:p()}),h.jsx("div",{className:"ds:flex-grow",children:h.jsx(Zf,{text:n,headingTag:"h2",size:"medium",hasMarginBottom:!1,id:"modal-title"})}),u&&h.jsx(Cu,{variant:"default",iconSize:"small",iconName:"close",hasTooltip:!1,label:"Close",disabled:!1,onClick:()=>t()})]}),d&&h.jsx("hr",{className:"ds:border-neutrals-light"}),o&&h.jsx("div",{className:`ds:h-auto ds:max-h-[48.6rem] ds:grow ds:overflow-y-auto ds:px-5 ${i?"ds:py-4":"ds:pb-5 ds:pt-4"}`,children:o}),i&&h.jsx("div",{className:"ds:flex ds:justify-end ds:gap-x-4 ds:px-5 ds:py-4",children:i})]})})})})]})})},E5=Ht(["preflight","ds:rounded-xl","ds:border","ds:px-2","ds:py-1","ds:inline-flex","ds:items-center"],{variants:{color:{default:["ds:border-neutrals-light"],gray:["ds:bg-neutrals-lighter","ds:border-neutrals-lighter"],blue:["ds:bg-information-blue-lightest","ds:text-information-blue-darkest","ds:border-information-blue-lightest"],green:["ds:bg-success-green-lightest","ds:text-success-green-darkest","ds:border-success-green-lightest"],yellow:["ds:bg-warning-yellow-lightest","ds:text-warning-yellow-darkest","ds:border-warning-yellow-lightest"],red:["ds:bg-danger-red-lightest","ds:text-danger-red-darkest","ds:border-danger-red-lightest"]},type:{regular:["ds:text-base"],small:["ds:text-sm"]}}}),Gv=({label:e,type:t="regular",color:n="default",dismissible:r=!1,dismissLabel:o="",className:i="",onDismiss:l,...a})=>{const c=a["aria-label"]||e;return h.jsxs("div",{className:an(E5({color:n,type:t}),i),"aria-label":c,...a,children:[h.jsx("div",{className:"ds:max-w-[200px] ds:truncate ds:leading-6",children:e}),r&&h.jsx(Cu,{variant:"small",iconName:"close",label:o||"dismiss",disabled:!1,onClick:()=>l&&l(),className:"ds:ms-1",isTransparent:!0})]})},T5=Ht(["preflight","ds:transition","ds:duration-100","ds:text-nowrap","!ds:font-sans","ds:text-base","ds:p-2","active:ds:text-neutrals-white","focus-visible:ds:ring-neutrals-black","focus-visible:ds:ring-2","focus-visible:ds:outline-none","focus-visible:ds:ring-offset-2"],{variants:{isNested:{true:["ds:rounded-xl","ds:my-2","ds:mx-1","ds:border","ds:border-neutrals-lighter","hover:ds:bg-neutrals-light","active:ds:bg-neutrals-dark","focus-visible:ds:ring-neutrals-black","focus-visible:ds:ring-2","focus-visible:ds:outline-none","focus-visible:ds:ring-offset-2","focus-visible:ds:bg-neutrals-white"],false:["ds:rounded","ds:rounded-b-none","ds:border-b-2","ds:border-b-neutrals-white","ds:my-1","ds:mr-2","hover:ds:bg-acuity-green-lighter","hover:ds:border-b-acuity-green-lighter","active:ds:bg-acuity-green-darkest","active:ds:border-b-acuity-green-darkest","focus-visible:ds:bg-acuity-green-lightest","focus-visible:ds:border-b-acuity-green-lightest"]}}}),I5=({title:e,id:t,handleClick:n,isActive:r,isNested:o=!1,badgeText:i="",className:l="",...a})=>{const c=(u,d,p)=>an(T5({isNested:u}),d&&!u&&"!ds:border-b-acuity-green",d&&u&&"ds:bg-neutrals-white !ds:border-neutrals",p);return h.jsxs("button",{className:c(o,r,l),role:"tab",id:`tab-${t}`,"aria-controls":`panel-${t}`,"aria-selected":r,onClick:n,...a,children:[e,i&&h.jsx(Gv,{label:i,className:"ds:ml-2 ds:h-5 ds:bg-neutrals-white ds:text-neutrals-black"})]})},P5=({id:e,children:t,hidden:n})=>h.jsx("div",{role:"tabpanel",id:`panel-${e}`,"aria-labelledby":`tab-${e}`,hidden:n,className:"preflight",children:t}),O5=({children:e,handleTabChange:t,activeTabIndex:n,isNested:r,className:o="",...i})=>{const l=H.Children.toArray(e).filter(a=>{var c,u;return H.isValidElement(a)&&!!((c=a.props)!=null&&c.id)&&!!((u=a.props)!=null&&u.title)});return l.length<H.Children.toArray(e).length&&console.error("You can only pass <Tab> components with defined id and title as children of the <Tabs> component."),h.jsxs("div",{className:`prelight ${o}`,...i,children:[h.jsx("div",{role:"tablist",className:`preflight ds:mb-5 ds:rounded ${r&&"!ds:mb-4 ds:bg-neutrals-lighter ds:px-2"}`,children:l.map((a,c)=>h.jsx(I5,{handleClick:()=>t(c),isActive:n===c,badgeText:a.props.badgeText,isNested:r,...a.props},`tab-${c}`))}),l.map((a,c)=>h.jsx(P5,{id:a.props.id,hidden:n!==c,children:a.props.children},`panel-${c}`))]})},M5=({children:e})=>e,R5=Ht(["preflight","ds:form-label","!ds:font-sans","ds:text-base","ds:cursor-pointer","ds:w-[fit-content]"],{variants:{state:{default:["ds:text-neutrals-black"],error:["ds:text-danger-red-darkest"],success:["ds:text-success-green-darkest"]},disabled:{true:"!ds:text-neutrals-dark"}}}),j5=e=>an(R5(e)),Wv=({id:e,state:t="default",disabled:n=!1,htmlFor:r,value:o="",optionalityLabel:i=""})=>h.jsxs("label",{id:e,htmlFor:r,className:j5({state:t,disabled:n}),children:[o,i&&h.jsx("span",{className:"ds:text-sm ds:text-neutrals-darker",children:` (${i})`})]}),L5=Ht(["preflight","group","ds:flex","ds:flex-col","ds:container"],{variants:{state:{default:["[&>label]:focus-within:ds:text-acuity-blue"],error:["[&>label]:focus-within:ds:text-danger-red-darkest"],success:["[&>label]:focus-within:ds:text-success-green-darkest"]},hasMarginBottom:{true:""}},compoundVariants:[{state:"default",hasMarginBottom:!0,className:["ds:mb-6"]}]}),$5=e=>an(L5(e)),N5=Ht(["ds:form-label","!ds:font-sans","ds:text-base"],{variants:{state:{default:["ds:text-neutrals-black","ds:mt-2"],error:["ds:text-danger-red","ds:mt-2"],success:["ds:text-success-green-dark","ds:truncate","ds:text-sm","ds:mt-1"]},hasMarginBottom:{true:["ds:mb-6"],false:["ds:mb-0"]},disabled:{true:"!ds:text-neutrals-dark"}}}),F5=e=>an(N5(e)),rm=({id:e,state:t="default",disabled:n=!1,label:r="",optionalityLabel:o="",helpText:i=[],message:l="",child:a,isTextarea:c=!1,className:u="",hasMarginBottom:d=!0})=>{let p=null;switch(t){case"error":p={name:"error",color:"ds:text-danger-red"};break;case"success":p={name:"checkCircle",color:"ds:text-success-green"};break}const m=r?"label_"+e:void 0,f=i&&i.length>0?"helptext_"+e:void 0;return h.jsxs("div",{className:an($5({state:t,hasMarginBottom:d}),u),children:[r&&h.jsx(Wv,{id:m,htmlFor:e,value:r,optionalityLabel:o,disabled:n}),i&&i.length>1&&h.jsx("ul",{id:f,className:"ds:mt-2 ds:pb-1 ds:pl-6",children:i==null?void 0:i.map((y,g)=>h.jsx("li",{className:"ds:list-disc ds:text-neutrals-dark",children:y},g))}),i&&i.length===1&&h.jsx("p",{id:f,className:"ds:mt-2 ds:pb-1 ds:text-neutrals-dark",children:i}),h.jsxs("div",{className:"ds:mt-2 ds:flex ds:gap-2",children:[h.jsx("div",{className:c?"":"ds:w-[calc(100%-2rem)]",children:a}),h.jsx("div",{className:"ds:pt-2",children:p&&h.jsx(io,{name:p.name,size:"medium",className:p.color,role:"graphics-symbol"})})]}),p&&h.jsx("p",{className:F5({state:t,hasMarginBottom:d}),children:l})]})},A5=Ht(["preflight","ds:form-input","ds:rounded","ds:p-2","!ds:border","!ds:font-sans"],Xf),D5=e=>an(A5(e)),Uv=({state:e="default",rows:t=2,cols:n=50,isResizable:r=!0,disabled:o=!1,...i})=>h.jsx("textarea",{"aria-invalid":e=="error",rows:t,cols:n,readOnly:o,className:D5({disabled:o,state:e}),style:{resize:r?"both":"none"},...i}),_5=({id:e,state:t="default",label:n,rows:r=2,cols:o=50,isResizable:i=!0,optionalityLabel:l="",helpText:a=[],message:c="",disabled:u=!1,className:d="",hasMarginBottom:p=!0,onBlur:m,...f})=>h.jsx(rm,{id:e,state:t,disabled:u,label:n,optionalityLabel:l,helpText:a,message:c,isTextarea:!0,className:d,hasMarginBottom:p,child:h.jsx(Uv,{id:e,"aria-labelledby":n?"label_"+e:void 0,"aria-describedby":a&&a.length>0?"helptext_"+e:void 0,state:t,rows:r,cols:o,isResizable:i,disabled:u,onBlur:m,...f})}),z5=Ht(["preflight","ds:form-input","ds:h-[40px]","ds:rounded","ds:p-2","!ds:border","!ds:font-sans","ds:container"],Xf),B5=e=>an(z5(e)),qv=H.forwardRef(({state:e="default",disabled:t=!1,type:n="text",...r},o)=>h.jsx("input",{"aria-disabled":t,readOnly:t,type:n,className:B5({disabled:t,state:e}),ref:o,...r})),V5=H.forwardRef(({id:e,state:t="default",disabled:n=!1,type:r="text",label:o,optionalityLabel:i="",helpText:l=[],message:a="",className:c="",hasMarginBottom:u=!0,onBlur:d,...p},m)=>h.jsx(rm,{id:e,state:t,disabled:n,label:o,optionalityLabel:i,helpText:l,message:a,className:c,hasMarginBottom:u,child:h.jsx(qv,{id:e,"aria-labelledby":o?"label_"+e:void 0,"aria-describedby":l&&l.length>0?"helptext_"+e:void 0,type:r,state:t,disabled:n,ref:m,onBlur:d,...p})})),H5=Ht(["preflight","ds:form-select","ds:h-[40px]","ds:rounded","ds:p-2","!ds:border","!ds:font-sans","ds:container","ds:bg-[center_right_0.25rem]"],Xf),G5=e=>H5(e),W5=`url('data:image/svg+xml,<svg width="16" height="16" viewBox="5 -5 15 35" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="%23949494" ><path d="M21.375 8.09253L12.4417 17.025C12.3837 17.0831 12.3148 17.1291 12.2391 17.1605C12.1632 17.192 12.082 17.2082 12 17.2082C11.918 17.2082 11.8368 17.192 11.7609 17.1605C11.6852 17.1291 11.6163 17.0831 11.5583 17.025L2.625 8.09253" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" stroke="%23000000" /></svg>')`,Kv=H.forwardRef(({state:e="default",disabled:t=!1,className:n="",...r},o)=>{const{onClick:i,onKeyDown:l,onMouseDown:a,...c}=r;return h.jsx("select",{ref:o,"aria-disabled":t,style:{backgroundImage:W5},className:an(G5({disabled:t,state:e}),n),onClick:u=>HE(u,t,i!=null?i:(()=>{})),onKeyDown:u=>GE(u,t,l!=null?l:(()=>{})),onMouseDown:u=>WE(u,t,a!=null?a:(()=>{})),...c,children:r.children})}),U5=H.forwardRef(({id:e,state:t="default",disabled:n=!1,label:r,optionalityLabel:o="",helpText:i=[],message:l="",className:a="",hasMarginBottom:c=!0,onBlur:u,...d},p)=>h.jsx(rm,{id:e,state:t,disabled:n,label:r,optionalityLabel:o,helpText:i,message:l,className:a,hasMarginBottom:c,child:h.jsx(Kv,{id:e,"aria-labelledby":r?"label_"+e:void 0,"aria-describedby":i&&i.length>0?"helptext_"+e:void 0,state:t,disabled:n,onBlur:u,ref:p,...d})})),q5=Ht("ds:overflow-hidden ds:bg-neutrals-light",{variants:{size:{small:["ds:h-2","ds:rounded-sm"],large:["ds:h-4","ds:rounded"]}}}),K5=Ht("",{variants:{size:{small:["ds:h-2","ds:rounded-sm"],large:["ds:h-4","ds:rounded"]},state:{"in-progress":["ds:bg-acuity-blue"],error:["ds:bg-danger-red-dark"],success:["ds:bg-success-green"],indeterminate:["ds:bg-acuity-blue","ds:animate-progress"]}}}),Y5=Ht("ds:w-[3rem] ds:justify-end ds:flex ds:items-center ds:text-neutrals-dark",{variants:{size:{small:"ds:text-sm",large:""}}}),X5=Ht("ds:text-sm",{variants:{state:{error:"ds:text-danger-red",success:"ds:text-neutrals-dark",indeterminate:"ds:text-neutrals-dark","in-progress":"ds:text-neutrals-dark"}}}),Z5=({size:e="large",label:t="",helperMessage:n="",className:r="",state:o="indeterminate",maxValue:i=100,value:l=0,hideIcon:a=!1,...c})=>{const u=()=>{let m=Math.round(l/i*100);return m<0?m=0:m>100&&(m=100),o!=="in-progress"?"100%":`${m}%`},d=()=>{if(a)return null;switch(o){case"in-progress":return u();case"error":return h.jsx(io,{name:"error",size:e==="small"?"small":"medium",className:"ds:float-right ds:text-danger-red-dark",role:"graphics-symbol",filled:!0});case"success":return h.jsx(io,{name:"checkCircle",size:e==="small"?"small":"medium",className:"ds:float-right ds:text-success-green-dark",role:"graphics-symbol",filled:!0});case"indeterminate":default:return null}},p=()=>o==="in-progress"||o==="indeterminate"?h.jsxs("div",{className:"ds:ml-1 ds:mt-2 ds:flex ds:w-[15px] ds:items-center ds:space-x-[2px]",children:[h.jsx("div",{className:"ds:h-[3px] ds:w-[3px] ds:animate-blink ds:rounded-full ds:bg-neutrals-black [animation-delay:-0.2s]"}),h.jsx("div",{className:"ds:h-[3px] ds:w-[3px] ds:animate-blink ds:rounded-full ds:bg-neutrals-black [animation-delay:-0.15s]"}),h.jsx("div",{className:"ds:h-[3px] ds:w-[3px] ds:animate-blink ds:rounded-full ds:bg-neutrals-black"})]}):null;return h.jsxs("div",{className:an("preflight ds:min-w-[4.875rem]",r),...c,children:[h.jsxs("div",{className:"ds:flex ds:h-5 ds:items-center ds:justify-between",children:[h.jsxs("div",{className:"progress-bar-label ds:flex ds:max-w-[calc(100%-3rem)] ds:overflow-hidden",children:[h.jsx("p",{className:"ds:overflow-hidden ds:text-nowrap",children:t}),p()]}),h.jsx("div",{"aria-hidden":!0,className:Y5({size:e}),children:d()})]}),h.jsx("div",{role:"progressbar",className:"ds:mb-1 ds:mt-1","aria-label":t,"aria-valuemin":0,"aria-valuenow":l,"aria-valuemax":i,"aria-valuetext":u(),children:h.jsx("div",{className:q5({size:e}),children:h.jsx("div",{style:{width:u()},className:K5({size:e,state:o})})})}),h.jsx("p",{className:X5({state:o}),children:n})]})},jg=e=>e,Q5=()=>{let e=jg;return{configure(t){e=t},generate(t){return e(t)},reset(){e=jg}}},Yv=Q5();function So(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function ie(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":So(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Bp(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}var sc={exports:{}},ic={exports:{}},Ot={};/** @license React v16.13.1
|
|
43
|
+
* react-is.production.min.js
|
|
44
|
+
*
|
|
13
45
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
46
|
*
|
|
15
47
|
* This source code is licensed under the MIT license found in the
|
|
16
48
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
49
|
+
*/var Lg;function J5(){if(Lg)return Ot;Lg=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,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function w(E){if(typeof E=="object"&&E!==null){var T=E.$$typeof;switch(T){case t:switch(E=E.type,E){case c:case u:case r:case i:case o:case p:return E;default:switch(E=E&&E.$$typeof,E){case a:case d:case y:case f:case l:return E;default:return T}}case n:return T}}}function k(E){return w(E)===u}return Ot.AsyncMode=c,Ot.ConcurrentMode=u,Ot.ContextConsumer=a,Ot.ContextProvider=l,Ot.Element=t,Ot.ForwardRef=d,Ot.Fragment=r,Ot.Lazy=y,Ot.Memo=f,Ot.Portal=n,Ot.Profiler=i,Ot.StrictMode=o,Ot.Suspense=p,Ot.isAsyncMode=function(E){return k(E)||w(E)===c},Ot.isConcurrentMode=k,Ot.isContextConsumer=function(E){return w(E)===a},Ot.isContextProvider=function(E){return w(E)===l},Ot.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},Ot.isForwardRef=function(E){return w(E)===d},Ot.isFragment=function(E){return w(E)===r},Ot.isLazy=function(E){return w(E)===y},Ot.isMemo=function(E){return w(E)===f},Ot.isPortal=function(E){return w(E)===n},Ot.isProfiler=function(E){return w(E)===i},Ot.isStrictMode=function(E){return w(E)===o},Ot.isSuspense=function(E){return w(E)===p},Ot.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===u||E===i||E===o||E===p||E===m||typeof E=="object"&&E!==null&&(E.$$typeof===y||E.$$typeof===f||E.$$typeof===l||E.$$typeof===a||E.$$typeof===d||E.$$typeof===v||E.$$typeof===x||E.$$typeof===S||E.$$typeof===g)},Ot.typeOf=w,Ot}var Mt={};/** @license React v16.13.1
|
|
50
|
+
* react-is.development.js
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/var $g;function eP(){return $g||($g=1,process.env.NODE_ENV!=="production"&&(function(){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,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function w(J){return typeof J=="string"||typeof J=="function"||J===r||J===u||J===i||J===o||J===p||J===m||typeof J=="object"&&J!==null&&(J.$$typeof===y||J.$$typeof===f||J.$$typeof===l||J.$$typeof===a||J.$$typeof===d||J.$$typeof===v||J.$$typeof===x||J.$$typeof===S||J.$$typeof===g)}function k(J){if(typeof J=="object"&&J!==null){var oe=J.$$typeof;switch(oe){case t:var te=J.type;switch(te){case c:case u:case r:case i:case o:case p:return te;default:var fe=te&&te.$$typeof;switch(fe){case a:case d:case y:case f:case l:return fe;default:return oe}}case n:return oe}}}var E=c,T=u,N=a,P=l,O=t,L=d,$=r,C=y,j=f,F=n,M=i,R=o,_=p,V=!1;function W(J){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(J)||k(J)===c}function I(J){return k(J)===u}function D(J){return k(J)===a}function G(J){return k(J)===l}function A(J){return typeof J=="object"&&J!==null&&J.$$typeof===t}function K(J){return k(J)===d}function Y(J){return k(J)===r}function U(J){return k(J)===y}function q(J){return k(J)===f}function Z(J){return k(J)===n}function X(J){return k(J)===i}function Q(J){return k(J)===o}function re(J){return k(J)===p}Mt.AsyncMode=E,Mt.ConcurrentMode=T,Mt.ContextConsumer=N,Mt.ContextProvider=P,Mt.Element=O,Mt.ForwardRef=L,Mt.Fragment=$,Mt.Lazy=C,Mt.Memo=j,Mt.Portal=F,Mt.Profiler=M,Mt.StrictMode=R,Mt.Suspense=_,Mt.isAsyncMode=W,Mt.isConcurrentMode=I,Mt.isContextConsumer=D,Mt.isContextProvider=G,Mt.isElement=A,Mt.isForwardRef=K,Mt.isFragment=Y,Mt.isLazy=U,Mt.isMemo=q,Mt.isPortal=Z,Mt.isProfiler=X,Mt.isStrictMode=Q,Mt.isSuspense=re,Mt.isValidElementType=w,Mt.typeOf=k})()),Mt}var Ng;function om(){return Ng||(Ng=1,process.env.NODE_ENV==="production"?ic.exports=J5():ic.exports=eP()),ic.exports}/*
|
|
57
|
+
object-assign
|
|
58
|
+
(c) Sindre Sorhus
|
|
59
|
+
@license MIT
|
|
60
|
+
*/var Fd,Fg;function tP(){if(Fg)return Fd;Fg=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var l={},a=0;a<10;a++)l["_"+String.fromCharCode(a)]=a;var c=Object.getOwnPropertyNames(l).map(function(d){return l[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch(d){return!1}}return Fd=o()?Object.assign:function(i,l){for(var a,c=r(i),u,d=1;d<arguments.length;d++){a=Object(arguments[d]);for(var p in a)t.call(a,p)&&(c[p]=a[p]);if(e){u=e(a);for(var m=0;m<u.length;m++)n.call(a,u[m])&&(c[u[m]]=a[u[m]])}}return c},Fd}var Ad,Ag;function sm(){if(Ag)return Ad;Ag=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ad=e,Ad}var Dd,Dg;function Xv(){return Dg||(Dg=1,Dd=Function.call.bind(Object.prototype.hasOwnProperty)),Dd}var _d,_g;function nP(){if(_g)return _d;_g=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=sm(),n={},r=Xv();e=function(i){var l="Warning: "+i;typeof console!="undefined"&&console.error(l);try{throw new Error(l)}catch(a){}}}function o(i,l,a,c,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(r(i,d)){var p;try{if(typeof i[d]!="function"){var m=Error((c||"React class")+": "+a+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}p=i[d](l,d,c,a,null,t)}catch(y){p=y}if(p&&!(p instanceof Error)&&e((c||"React class")+": type specification of "+a+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var f=u?u():"";e("Failed "+a+" type: "+p.message+(f!=null?f:""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},_d=o,_d}var zd,zg;function rP(){if(zg)return zd;zg=1;var e=om(),t=tP(),n=sm(),r=Xv(),o=nP(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(a){var c="Warning: "+a;typeof console!="undefined"&&console.error(c);try{throw new Error(c)}catch(u){}});function l(){return null}return zd=function(a,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(I){var D=I&&(u&&I[u]||I[d]);if(typeof D=="function")return D}var m="<<anonymous>>",f={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:S(),arrayOf:w,element:k(),elementType:E(),instanceOf:T,node:L(),objectOf:P,oneOf:N,oneOfType:O,shape:C,exact:j};function y(I,D){return I===D?I!==0||1/I===1/D:I!==I&&D!==D}function g(I,D){this.message=I,this.data=D&&typeof D=="object"?D:{},this.stack=""}g.prototype=Error.prototype;function v(I){if(process.env.NODE_ENV!=="production")var D={},G=0;function A(Y,U,q,Z,X,Q,re){if(Z=Z||m,Q=Q||q,re!==n){if(c){var J=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 J.name="Invariant Violation",J}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var oe=Z+":"+q;!D[oe]&&G<3&&(i("You are manually calling a React.PropTypes validation function for the `"+Q+"` prop on `"+Z+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),D[oe]=!0,G++)}}return U[q]==null?Y?U[q]===null?new g("The "+X+" `"+Q+"` is marked as required "+("in `"+Z+"`, but its value is `null`.")):new g("The "+X+" `"+Q+"` is marked as required in "+("`"+Z+"`, but its value is `undefined`.")):null:I(U,q,Z,X,Q)}var K=A.bind(null,!1);return K.isRequired=A.bind(null,!0),K}function x(I){function D(G,A,K,Y,U,q){var Z=G[A],X=R(Z);if(X!==I){var Q=_(Z);return new g("Invalid "+Y+" `"+U+"` of type "+("`"+Q+"` supplied to `"+K+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return v(D)}function S(){return v(l)}function w(I){function D(G,A,K,Y,U){if(typeof I!="function")return new g("Property `"+U+"` of component `"+K+"` has invalid PropType notation inside arrayOf.");var q=G[A];if(!Array.isArray(q)){var Z=R(q);return new g("Invalid "+Y+" `"+U+"` of type "+("`"+Z+"` supplied to `"+K+"`, expected an array."))}for(var X=0;X<q.length;X++){var Q=I(q,X,K,Y,U+"["+X+"]",n);if(Q instanceof Error)return Q}return null}return v(D)}function k(){function I(D,G,A,K,Y){var U=D[G];if(!a(U)){var q=R(U);return new g("Invalid "+K+" `"+Y+"` of type "+("`"+q+"` supplied to `"+A+"`, expected a single ReactElement."))}return null}return v(I)}function E(){function I(D,G,A,K,Y){var U=D[G];if(!e.isValidElementType(U)){var q=R(U);return new g("Invalid "+K+" `"+Y+"` of type "+("`"+q+"` supplied to `"+A+"`, expected a single ReactElement type."))}return null}return v(I)}function T(I){function D(G,A,K,Y,U){if(!(G[A]instanceof I)){var q=I.name||m,Z=W(G[A]);return new g("Invalid "+Y+" `"+U+"` of type "+("`"+Z+"` supplied to `"+K+"`, expected ")+("instance of `"+q+"`."))}return null}return v(D)}function N(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),l;function D(G,A,K,Y,U){for(var q=G[A],Z=0;Z<I.length;Z++)if(y(q,I[Z]))return null;var X=JSON.stringify(I,function(re,J){var oe=_(J);return oe==="symbol"?String(J):J});return new g("Invalid "+Y+" `"+U+"` of value `"+String(q)+"` "+("supplied to `"+K+"`, expected one of "+X+"."))}return v(D)}function P(I){function D(G,A,K,Y,U){if(typeof I!="function")return new g("Property `"+U+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var q=G[A],Z=R(q);if(Z!=="object")return new g("Invalid "+Y+" `"+U+"` of type "+("`"+Z+"` supplied to `"+K+"`, expected an object."));for(var X in q)if(r(q,X)){var Q=I(q,X,K,Y,U+"."+X,n);if(Q instanceof Error)return Q}return null}return v(D)}function O(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var D=0;D<I.length;D++){var G=I[D];if(typeof G!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V(G)+" at index "+D+"."),l}function A(K,Y,U,q,Z){for(var X=[],Q=0;Q<I.length;Q++){var re=I[Q],J=re(K,Y,U,q,Z,n);if(J==null)return null;J.data&&r(J.data,"expectedType")&&X.push(J.data.expectedType)}var oe=X.length>0?", expected one of type ["+X.join(", ")+"]":"";return new g("Invalid "+q+" `"+Z+"` supplied to "+("`"+U+"`"+oe+"."))}return v(A)}function L(){function I(D,G,A,K,Y){return F(D[G])?null:new g("Invalid "+K+" `"+Y+"` supplied to "+("`"+A+"`, expected a ReactNode."))}return v(I)}function $(I,D,G,A,K){return new g((I||"React class")+": "+D+" type `"+G+"."+A+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function C(I){function D(G,A,K,Y,U){var q=G[A],Z=R(q);if(Z!=="object")return new g("Invalid "+Y+" `"+U+"` of type `"+Z+"` "+("supplied to `"+K+"`, expected `object`."));for(var X in I){var Q=I[X];if(typeof Q!="function")return $(K,Y,U,X,_(Q));var re=Q(q,X,K,Y,U+"."+X,n);if(re)return re}return null}return v(D)}function j(I){function D(G,A,K,Y,U){var q=G[A],Z=R(q);if(Z!=="object")return new g("Invalid "+Y+" `"+U+"` of type `"+Z+"` "+("supplied to `"+K+"`, expected `object`."));var X=t({},G[A],I);for(var Q in X){var re=I[Q];if(r(I,Q)&&typeof re!="function")return $(K,Y,U,Q,_(re));if(!re)return new g("Invalid "+Y+" `"+U+"` key `"+Q+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(G[A],null," ")+`
|
|
61
|
+
Valid keys: `+JSON.stringify(Object.keys(I),null," "));var J=re(q,Q,K,Y,U+"."+Q,n);if(J)return J}return null}return v(D)}function F(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every(F);if(I===null||a(I))return!0;var D=p(I);if(D){var G=D.call(I),A;if(D!==I.entries){for(;!(A=G.next()).done;)if(!F(A.value))return!1}else for(;!(A=G.next()).done;){var K=A.value;if(K&&!F(K[1]))return!1}}else return!1;return!0;default:return!1}}function M(I,D){return I==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function R(I){var D=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":M(D,I)?"symbol":D}function _(I){if(typeof I=="undefined"||I===null)return""+I;var D=R(I);if(D==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return D}function V(I){var D=_(I);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function W(I){return!I.constructor||!I.constructor.name?m:I.constructor.name}return f.checkPropTypes=o,f.resetWarningCache=o.resetWarningCache,f.PropTypes=f,f},zd}var Bd,Bg;function oP(){if(Bg)return Bd;Bg=1;var e=sm();function t(){}function n(){}return n.resetWarningCache=t,Bd=function(){function r(l,a,c,u,d,p){if(p!==e){var m=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 m.name="Invariant Violation",m}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Bd}var Vg;function sP(){if(Vg)return sc.exports;if(Vg=1,process.env.NODE_ENV!=="production"){var e=om(),t=!0;sc.exports=rP()(e.isElement,t)}else sc.exports=oP()();return sc.exports}var iP=sP();const s=vu(iP);function ye(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let l="",a=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(l+=(a===!0?"":" ")+t(u),a=!1,n&&n[u]&&(l+=" "+n[u]))}r[o]=l}return r}var lc={exports:{}},Nt={};/**
|
|
62
|
+
* @license React
|
|
63
|
+
* react-is.production.js
|
|
64
|
+
*
|
|
65
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the MIT license found in the
|
|
68
|
+
* LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/var Hg;function lP(){if(Hg)return Nt;Hg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function y(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case e:switch(g=g.type,g){case n:case o:case r:case c:case u:case m:return g;default:switch(g=g&&g.$$typeof,g){case l:case a:case p:case d:return g;case i:return g;default:return v}}case t:return v}}}return Nt.ContextConsumer=i,Nt.ContextProvider=l,Nt.Element=e,Nt.ForwardRef=a,Nt.Fragment=n,Nt.Lazy=p,Nt.Memo=d,Nt.Portal=t,Nt.Profiler=o,Nt.StrictMode=r,Nt.Suspense=c,Nt.SuspenseList=u,Nt.isContextConsumer=function(g){return y(g)===i},Nt.isContextProvider=function(g){return y(g)===l},Nt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Nt.isForwardRef=function(g){return y(g)===a},Nt.isFragment=function(g){return y(g)===n},Nt.isLazy=function(g){return y(g)===p},Nt.isMemo=function(g){return y(g)===d},Nt.isPortal=function(g){return y(g)===t},Nt.isProfiler=function(g){return y(g)===o},Nt.isStrictMode=function(g){return y(g)===r},Nt.isSuspense=function(g){return y(g)===c},Nt.isSuspenseList=function(g){return y(g)===u},Nt.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===r||g===c||g===u||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===d||g.$$typeof===l||g.$$typeof===i||g.$$typeof===a||g.$$typeof===f||g.getModuleId!==void 0)},Nt.typeOf=y,Nt}var Ft={};/**
|
|
70
|
+
* @license React
|
|
71
|
+
* react-is.development.js
|
|
72
|
+
*
|
|
73
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
74
|
+
*
|
|
75
|
+
* This source code is licensed under the MIT license found in the
|
|
76
|
+
* LICENSE file in the root directory of this source tree.
|
|
77
|
+
*/var Gg;function aP(){return Gg||(Gg=1,process.env.NODE_ENV!=="production"&&(function(){function e(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case t:switch(g=g.type,g){case r:case i:case o:case u:case d:case f:return g;default:switch(g=g&&g.$$typeof,g){case a:case c:case m:case p:return g;case l:return g;default:return v}}case n:return v}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");Ft.ContextConsumer=l,Ft.ContextProvider=a,Ft.Element=t,Ft.ForwardRef=c,Ft.Fragment=r,Ft.Lazy=m,Ft.Memo=p,Ft.Portal=n,Ft.Profiler=i,Ft.StrictMode=o,Ft.Suspense=u,Ft.SuspenseList=d,Ft.isContextConsumer=function(g){return e(g)===l},Ft.isContextProvider=function(g){return e(g)===a},Ft.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},Ft.isForwardRef=function(g){return e(g)===c},Ft.isFragment=function(g){return e(g)===r},Ft.isLazy=function(g){return e(g)===m},Ft.isMemo=function(g){return e(g)===p},Ft.isPortal=function(g){return e(g)===n},Ft.isProfiler=function(g){return e(g)===i},Ft.isStrictMode=function(g){return e(g)===o},Ft.isSuspense=function(g){return e(g)===u},Ft.isSuspenseList=function(g){return e(g)===d},Ft.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===i||g===o||g===u||g===d||typeof g=="object"&&g!==null&&(g.$$typeof===m||g.$$typeof===p||g.$$typeof===a||g.$$typeof===l||g.$$typeof===c||g.$$typeof===y||g.getModuleId!==void 0)},Ft.typeOf=e})()),Ft}var Wg;function cP(){return Wg||(Wg=1,process.env.NODE_ENV==="production"?lc.exports=lP():lc.exports=aP()),lc.exports}var Vc=cP();function Qr(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 Zv(e){if(b.isValidElement(e)||Vc.isValidElementType(e)||!Qr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Zv(e[n])}),t}function Cn(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Qr(e)&&Qr(t)&&Object.keys(t).forEach(o=>{b.isValidElement(t[o])||Vc.isValidElementType(t[o])?r[o]=t[o]:Qr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Qr(e[o])?r[o]=Cn(e[o],t[o],n):n.clone?r[o]=Qr(t[o])?Zv(t[o]):t[o]:r[o]=t[o]}),r}function $l(e,t){return t?Cn(e,t,{clone:!1}):e}const Qo=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Ug(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var l,a;const i=/min-width:\s*([0-9.]+)/;return+(((l=r.match(i))==null?void 0:l[1])||0)-+(((a=o.match(i))==null?void 0:a[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function uP(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function dP(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
78
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function pP(e){const t=(i,l)=>i.replace("@media",l?`@container ${l}`:"@container");function n(i,l){i.up=(...a)=>t(e.breakpoints.up(...a),l),i.down=(...a)=>t(e.breakpoints.down(...a),l),i.between=(...a)=>t(e.breakpoints.between(...a),l),i.only=(...a)=>t(e.breakpoints.only(...a),l),i.not=(...a)=>{const c=t(e.breakpoints.not(...a),l);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const Mu={xs:0,sm:600,md:900,lg:1200,xl:1536},qg={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Mu[e]}px)`},fP={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Mu[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ar(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||qg;return t.reduce((l,a,c)=>(l[i.up(i.keys[c])]=n(t[c]),l),{})}if(typeof t=="object"){const i=r.breakpoints||qg;return Object.keys(t).reduce((l,a)=>{if(uP(i.keys,a)){const c=dP(r.containerQueries?r:fP,a);c&&(l[c]=n(t[a],a))}else if(Object.keys(i.values||Mu).includes(a)){const c=i.up(a);l[c]=n(t[a],a)}else{const c=a;l[c]=t[c]}return l},{})}return n(t)}function Qv(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Vp(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function mP(e,...t){const n=Qv(e),r=[n,...t].reduce((o,i)=>Cn(o,i),{});return Vp(Object.keys(n),r)}function hP(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function Vd({values:e,breakpoints:t,base:n}){const r=n||hP(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((l,a,c)=>(Array.isArray(e)?(l[a]=e[c]!=null?e[c]:e[i],i=c):typeof e=="object"?(l[a]=e[a]!=null?e[a]:e[i],i=a):l[a]=e,l),{})}function Yr(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Hc(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Yr(e,n)||r,t&&(o=t(o,r,e)),o}function tn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=l=>{if(l[t]==null)return null;const a=l[t],c=l.theme,u=Yr(c,r)||{};return Ar(l,a,p=>{let m=Hc(u,o,p);return p===m&&typeof p=="string"&&(m=Hc(u,o,`${t}${p==="default"?"":ie(p)}`,p)),n===!1?m:{[n]:m}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Qo}:{},i.filterProps=[t],i}function gP(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const bP={m:"margin",p:"padding"},yP={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Kg={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vP=gP(e=>{if(e.length>2)if(Kg[e])e=Kg[e];else return[e];const[t,n]=e.split(""),r=bP[t],o=yP[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Ru=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ju=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],xP=[...Ru,...ju];function ya(e,t,n,r){var i;const o=(i=Yr(e,t,!0))!=null?i:n;return typeof o=="number"||typeof o=="string"?l=>typeof l=="string"?l:(process.env.NODE_ENV!=="production"&&typeof l!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${l}.`),typeof o=="string"?o.startsWith("var(")&&l===0?0:o.startsWith("var(")&&l===1?o:`calc(${l} * ${o})`:o*l):Array.isArray(o)?l=>{if(typeof l=="string")return l;const a=Math.abs(l);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
|
|
79
|
+
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
80
|
+
`)));const c=o[a];return l>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
81
|
+
`)),()=>{})}function Lu(e){return ya(e,"spacing",8,"spacing")}function Os(e,t){return typeof t=="string"||t==null?t:e(t)}function CP(e,t){return n=>e.reduce((r,o)=>(r[o]=Os(t,n),r),{})}function wP(e,t,n,r){if(!t.includes(n))return null;const o=vP(n),i=CP(o,r),l=e[n];return Ar(e,l,i)}function Jv(e,t){const n=Lu(e.theme);return Object.keys(e).map(r=>wP(e,t,r,n)).reduce($l,{})}function Zt(e){return Jv(e,Ru)}Zt.propTypes=process.env.NODE_ENV!=="production"?Ru.reduce((e,t)=>(e[t]=Qo,e),{}):{};Zt.filterProps=Ru;function Qt(e){return Jv(e,ju)}Qt.propTypes=process.env.NODE_ENV!=="production"?ju.reduce((e,t)=>(e[t]=Qo,e),{}):{};Qt.filterProps=ju;process.env.NODE_ENV!=="production"&&xP.reduce((e,t)=>(e[t]=Qo,e),{});function $u(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?$l(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function dr(e){return typeof e!="number"?e:`${e}px solid`}function kr(e,t){return tn({prop:e,themeKey:"borders",transform:t})}const SP=kr("border",dr),kP=kr("borderTop",dr),EP=kr("borderRight",dr),TP=kr("borderBottom",dr),IP=kr("borderLeft",dr),PP=kr("borderColor"),OP=kr("borderTopColor"),MP=kr("borderRightColor"),RP=kr("borderBottomColor"),jP=kr("borderLeftColor"),LP=kr("outline",dr),$P=kr("outlineColor"),Nu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ya(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Os(t,r)});return Ar(e,e.borderRadius,n)}return null};Nu.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Qo}:{};Nu.filterProps=["borderRadius"];$u(SP,kP,EP,TP,IP,PP,OP,MP,RP,jP,Nu,LP,$P);const Fu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ya(e.theme,"spacing",8,"gap"),n=r=>({gap:Os(t,r)});return Ar(e,e.gap,n)}return null};Fu.propTypes=process.env.NODE_ENV!=="production"?{gap:Qo}:{};Fu.filterProps=["gap"];const Au=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ya(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Os(t,r)});return Ar(e,e.columnGap,n)}return null};Au.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Qo}:{};Au.filterProps=["columnGap"];const Du=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ya(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Os(t,r)});return Ar(e,e.rowGap,n)}return null};Du.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Qo}:{};Du.filterProps=["rowGap"];const NP=tn({prop:"gridColumn"}),FP=tn({prop:"gridRow"}),AP=tn({prop:"gridAutoFlow"}),DP=tn({prop:"gridAutoColumns"}),_P=tn({prop:"gridAutoRows"}),zP=tn({prop:"gridTemplateColumns"}),BP=tn({prop:"gridTemplateRows"}),VP=tn({prop:"gridTemplateAreas"}),HP=tn({prop:"gridArea"});$u(Fu,Au,Du,NP,FP,AP,DP,_P,zP,BP,VP,HP);function gi(e,t){return t==="grey"?t:e}const GP=tn({prop:"color",themeKey:"palette",transform:gi}),WP=tn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gi}),UP=tn({prop:"backgroundColor",themeKey:"palette",transform:gi});$u(GP,WP,UP);function Qn(e){return e<=1&&e!==0?`${e*100}%`:e}const qP=tn({prop:"width",transform:Qn}),im=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,l,a,c;const r=((l=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:l[n])||Mu[n];return r?((c=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Qn(n)}};return Ar(e,e.maxWidth,t)}return null};im.filterProps=["maxWidth"];const KP=tn({prop:"minWidth",transform:Qn}),YP=tn({prop:"height",transform:Qn}),XP=tn({prop:"maxHeight",transform:Qn}),ZP=tn({prop:"minHeight",transform:Qn});tn({prop:"size",cssProperty:"width",transform:Qn});tn({prop:"size",cssProperty:"height",transform:Qn});const QP=tn({prop:"boxSizing"});$u(qP,im,KP,YP,XP,ZP,QP);const va={border:{themeKey:"borders",transform:dr},borderTop:{themeKey:"borders",transform:dr},borderRight:{themeKey:"borders",transform:dr},borderBottom:{themeKey:"borders",transform:dr},borderLeft:{themeKey:"borders",transform:dr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:dr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Nu},color:{themeKey:"palette",transform:gi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gi},backgroundColor:{themeKey:"palette",transform:gi},p:{style:Qt},pt:{style:Qt},pr:{style:Qt},pb:{style:Qt},pl:{style:Qt},px:{style:Qt},py:{style:Qt},padding:{style:Qt},paddingTop:{style:Qt},paddingRight:{style:Qt},paddingBottom:{style:Qt},paddingLeft:{style:Qt},paddingX:{style:Qt},paddingY:{style:Qt},paddingInline:{style:Qt},paddingInlineStart:{style:Qt},paddingInlineEnd:{style:Qt},paddingBlock:{style:Qt},paddingBlockStart:{style:Qt},paddingBlockEnd:{style:Qt},m:{style:Zt},mt:{style:Zt},mr:{style:Zt},mb:{style:Zt},ml:{style:Zt},mx:{style:Zt},my:{style:Zt},margin:{style:Zt},marginTop:{style:Zt},marginRight:{style:Zt},marginBottom:{style:Zt},marginLeft:{style:Zt},marginX:{style:Zt},marginY:{style:Zt},marginInline:{style:Zt},marginInlineStart:{style:Zt},marginInlineEnd:{style:Zt},marginBlock:{style:Zt},marginBlockStart:{style:Zt},marginBlockEnd:{style:Zt},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:Fu},rowGap:{style:Du},columnGap:{style:Au},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Qn},maxWidth:{style:im},minWidth:{transform:Qn},height:{transform:Qn},maxHeight:{transform:Qn},minHeight:{transform:Qn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function JP(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function eO(e,t){return typeof e=="function"?e(t):e}function tO(){function e(n,r,o,i){const l={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:d,style:p}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const m=Yr(o,u)||{};return p?p(l):Ar(l,r,y=>{let g=Hc(m,d,y);return y===g&&typeof y=="string"&&(g=Hc(m,d,`${n}${y==="default"?"":ie(y)}`,y)),c===!1?g:{[c]:g}})}function t(n){var c;const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const l=(c=o.unstable_sxConfig)!=null?c:va;function a(u){let d=u;if(typeof u=="function")d=u(o);else if(typeof u!="object")return u;if(!d)return null;const p=Qv(o.breakpoints),m=Object.keys(p);let f=p;return Object.keys(d).forEach(y=>{const g=eO(d[y],o);if(g!=null)if(typeof g=="object")if(l[y])f=$l(f,e(y,g,o,l));else{const v=Ar({theme:o},g,x=>({[y]:x}));JP(v,g)?f[y]=t({sx:g,theme:o,nested:!0}):f=$l(f,v)}else f=$l(f,e(y,g,o,l))}),!i&&o.modularCssLayers?{"@layer sx":Ug(o,Vp(m,f))}:Ug(o,Vp(m,f))}return Array.isArray(r)?r.map(a):a(r)}return t}const Yo=tO();Yo.filterProps=["sx"];const nO=e=>{var r,o;const t={systemProps:{},otherProps:{}},n=(o=(r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)!=null?o:va;return Object.keys(e).forEach(i=>{n[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function lm(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=nO(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...l)=>{const a=t(...l);return Qr(a)?{...r,...a}:r}:i={...r,...t},{...o,sx:i}}function z(){return z=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},z.apply(null,arguments)}function rO(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 oO(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 sO=(function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0: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(oO(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=rO(o);try{i.insertRule(r,i.cssRules.length)}catch(l){}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e})(),In="-ms-",Gc="-moz-",wt="-webkit-",ex="comm",am="rule",cm="decl",iO="@import",tx="@keyframes",lO="@layer",aO=Math.abs,_u=String.fromCharCode,cO=Object.assign;function uO(e,t){return Sn(e,0)^45?(((t<<2^Sn(e,0))<<2^Sn(e,1))<<2^Sn(e,2))<<2^Sn(e,3):0}function nx(e){return e.trim()}function dO(e,t){return(e=t.exec(e))?e[0]:e}function kt(e,t,n){return e.replace(t,n)}function Hp(e,t){return e.indexOf(t)}function Sn(e,t){return e.charCodeAt(t)|0}function ql(e,t,n){return e.slice(t,n)}function Xr(e){return e.length}function um(e){return e.length}function ac(e,t){return t.push(e),e}function pO(e,t){return e.map(t).join("")}var zu=1,xi=1,rx=0,Gn=0,sn=0,Ai="";function Bu(e,t,n,r,o,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:zu,column:xi,length:l,return:""}}function nl(e,t){return cO(Bu("",null,null,"",null,null,0),e,{length:-e.length},t)}function fO(){return sn}function mO(){return sn=Gn>0?Sn(Ai,--Gn):0,xi--,sn===10&&(xi=1,zu--),sn}function tr(){return sn=Gn<rx?Sn(Ai,Gn++):0,xi++,sn===10&&(xi=1,zu++),sn}function to(){return Sn(Ai,Gn)}function Ec(){return Gn}function xa(e,t){return ql(Ai,e,t)}function Kl(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 ox(e){return zu=xi=1,rx=Xr(Ai=e),Gn=0,[]}function sx(e){return Ai="",e}function Tc(e){return nx(xa(Gn-1,Gp(e===91?e+2:e===40?e+1:e)))}function hO(e){for(;(sn=to())&&sn<33;)tr();return Kl(e)>2||Kl(sn)>3?"":" "}function gO(e,t){for(;--t&&tr()&&!(sn<48||sn>102||sn>57&&sn<65||sn>70&&sn<97););return xa(e,Ec()+(t<6&&to()==32&&tr()==32))}function Gp(e){for(;tr();)switch(sn){case e:return Gn;case 34:case 39:e!==34&&e!==39&&Gp(sn);break;case 40:e===41&&Gp(e);break;case 92:tr();break}return Gn}function bO(e,t){for(;tr()&&e+sn!==57;)if(e+sn===84&&to()===47)break;return"/*"+xa(t,Gn-1)+"*"+_u(e===47?e:tr())}function yO(e){for(;!Kl(to());)tr();return xa(e,Gn)}function vO(e){return sx(Ic("",null,null,null,[""],e=ox(e),0,[0],e))}function Ic(e,t,n,r,o,i,l,a,c){for(var u=0,d=0,p=l,m=0,f=0,y=0,g=1,v=1,x=1,S=0,w="",k=o,E=i,T=r,N=w;v;)switch(y=S,S=tr()){case 40:if(y!=108&&Sn(N,p-1)==58){Hp(N+=kt(Tc(S),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:N+=Tc(S);break;case 9:case 10:case 13:case 32:N+=hO(y);break;case 92:N+=gO(Ec()-1,7);continue;case 47:switch(to()){case 42:case 47:ac(xO(bO(tr(),Ec()),t,n),c);break;default:N+="/"}break;case 123*g:a[u++]=Xr(N)*x;case 125*g:case 59:case 0:switch(S){case 0:case 125:v=0;case 59+d:x==-1&&(N=kt(N,/\f/g,"")),f>0&&Xr(N)-p&&ac(f>32?Xg(N+";",r,n,p-1):Xg(kt(N," ","")+";",r,n,p-2),c);break;case 59:N+=";";default:if(ac(T=Yg(N,t,n,u,d,o,a,w,k=[],E=[],p),i),S===123)if(d===0)Ic(N,t,T,T,k,i,p,a,E);else switch(m===99&&Sn(N,3)===110?100:m){case 100:case 108:case 109:case 115:Ic(e,T,T,r&&ac(Yg(e,T,T,0,0,o,a,w,o,k=[],p),E),o,E,p,a,r?k:E);break;default:Ic(N,T,T,T,[""],E,0,a,E)}}u=d=f=0,g=x=1,w=N="",p=l;break;case 58:p=1+Xr(N),f=y;default:if(g<1){if(S==123)--g;else if(S==125&&g++==0&&mO()==125)continue}switch(N+=_u(S),S*g){case 38:x=d>0?1:(N+="\f",-1);break;case 44:a[u++]=(Xr(N)-1)*x,x=1;break;case 64:to()===45&&(N+=Tc(tr())),m=to(),d=p=Xr(w=N+=yO(Ec())),S++;break;case 45:y===45&&Xr(N)==2&&(g=0)}}return i}function Yg(e,t,n,r,o,i,l,a,c,u,d){for(var p=o-1,m=o===0?i:[""],f=um(m),y=0,g=0,v=0;y<r;++y)for(var x=0,S=ql(e,p+1,p=aO(g=l[y])),w=e;x<f;++x)(w=nx(g>0?m[x]+" "+S:kt(S,/&\f/g,m[x])))&&(c[v++]=w);return Bu(e,t,n,o===0?am:a,c,u,d)}function xO(e,t,n){return Bu(e,t,n,ex,_u(fO()),ql(e,2,-2),0)}function Xg(e,t,n,r){return Bu(e,t,n,cm,ql(e,0,r),ql(e,r+1,-1),r)}function bi(e,t){for(var n="",r=um(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function CO(e,t,n,r){switch(e.type){case lO:if(e.children.length)break;case iO:case cm:return e.return=e.return||e.value;case ex:return"";case tx:return e.return=e.value+"{"+bi(e.children,r)+"}";case am:e.value=e.props.join(",")}return Xr(n=bi(e.children,r))?e.return=e.value+"{"+n+"}":""}function wO(e){var t=um(e);return function(n,r,o,i){for(var l="",a=0;a<t;a++)l+=e[a](n,r,o,i)||"";return l}}function SO(e){return function(t){t.root||(t=t.return)&&e(t)}}function ix(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var kO=function(t,n,r){for(var o=0,i=0;o=i,i=to(),o===38&&i===12&&(n[r]=1),!Kl(i);)tr();return xa(t,Gn)},EO=function(t,n){var r=-1,o=44;do switch(Kl(o)){case 0:o===38&&to()===12&&(n[r]=1),t[r]+=kO(Gn-1,n,r);break;case 2:t[r]+=Tc(o);break;case 4:if(o===44){t[++r]=to()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=_u(o)}while(o=tr());return t},TO=function(t,n){return sx(EO(ox(t),n))},Zg=new WeakMap,IO=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=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&&!Zg.get(r))&&!o){Zg.set(t,!0);for(var i=[],l=TO(n,i),a=r.props,c=0,u=0;c<l.length;c++)for(var d=0;d<a.length;d++,u++)t.props[u]=i[c]?l[c].replace(/&\f/g,a[d]):a[d]+" "+l[c]}}},PO=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function lx(e,t){switch(uO(e,t)){case 5103:return wt+"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 wt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return wt+e+Gc+e+In+e+e;case 6828:case 4268:return wt+e+In+e+e;case 6165:return wt+e+In+"flex-"+e+e;case 5187:return wt+e+kt(e,/(\w+).+(:[^]+)/,wt+"box-$1$2"+In+"flex-$1$2")+e;case 5443:return wt+e+In+"flex-item-"+kt(e,/flex-|-self/,"")+e;case 4675:return wt+e+In+"flex-line-pack"+kt(e,/align-content|flex-|-self/,"")+e;case 5548:return wt+e+In+kt(e,"shrink","negative")+e;case 5292:return wt+e+In+kt(e,"basis","preferred-size")+e;case 6060:return wt+"box-"+kt(e,"-grow","")+wt+e+In+kt(e,"grow","positive")+e;case 4554:return wt+kt(e,/([^-])(transform)/g,"$1"+wt+"$2")+e;case 6187:return kt(kt(kt(e,/(zoom-|grab)/,wt+"$1"),/(image-set)/,wt+"$1"),e,"")+e;case 5495:case 3959:return kt(e,/(image-set\([^]*)/,wt+"$1$`$1");case 4968:return kt(kt(e,/(.+:)(flex-)?(.*)/,wt+"box-pack:$3"+In+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+wt+e+e;case 4095:case 3583:case 4068:case 2532:return kt(e,/(.+)-inline(.+)/,wt+"$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(Xr(e)-1-t>6)switch(Sn(e,t+1)){case 109:if(Sn(e,t+4)!==45)break;case 102:return kt(e,/(.+:)(.+)-([^]+)/,"$1"+wt+"$2-$3$1"+Gc+(Sn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Hp(e,"stretch")?lx(kt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Sn(e,t+1)!==115)break;case 6444:switch(Sn(e,Xr(e)-3-(~Hp(e,"!important")&&10))){case 107:return kt(e,":",":"+wt)+e;case 101:return kt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+wt+(Sn(e,14)===45?"inline-":"")+"box$3$1"+wt+"$2$3$1"+In+"$2box$3")+e}break;case 5936:switch(Sn(e,t+11)){case 114:return wt+e+In+kt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return wt+e+In+kt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return wt+e+In+kt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return wt+e+In+e+e}return e}var OO=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case cm:t.return=lx(t.value,t.length);break;case tx:return bi([nl(t,{value:kt(t.value,"@","@"+wt)})],o);case am:if(t.length)return pO(t.props,function(i){switch(dO(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bi([nl(t,{props:[kt(i,/:(read-\w+)/,":"+Gc+"$1")]})],o);case"::placeholder":return bi([nl(t,{props:[kt(i,/:(plac\w+)/,":"+wt+"input-$1")]}),nl(t,{props:[kt(i,/:(plac\w+)/,":"+Gc+"$1")]}),nl(t,{props:[kt(i,/:(plac\w+)/,In+"input-$1")]})],o)}return""})}},MO=[OO],RO=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(g){var v=g.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||MO,i={},l,a=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var v=g.getAttribute("data-emotion").split(" "),x=1;x<v.length;x++)i[v[x]]=!0;a.push(g)});var c,u=[IO,PO];{var d,p=[CO,SO(function(g){d.insert(g)})],m=wO(u.concat(o,p)),f=function(v){return bi(vO(v),m)};c=function(v,x,S,w){d=S,f(v?v+"{"+x.styles+"}":x.styles),w&&(y.inserted[x.name]=!0)}}var y={key:n,sheet:new sO({key:n,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return y.sheet.hydrate(a),y},Hd,Qg;function jO(){if(Qg)return Hd;Qg=1;var e=om(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=o;function l(y){return e.isMemo(y)?o:i[y.$$typeof]||t}var a=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function f(y,g,v){if(typeof g!="string"){if(m){var x=p(g);x&&x!==m&&f(y,x,v)}var S=c(g);u&&(S=S.concat(u(g)));for(var w=l(y),k=l(g),E=0;E<S.length;++E){var T=S[E];if(!n[T]&&!(v&&v[T])&&!(k&&k[T])&&!(w&&w[T])){var N=d(g,T);try{a(y,T,N)}catch(P){}}}}return y}return Hd=f,Hd}jO();var LO=!0;function ax(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var dm=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||LO===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},pm=function(t,n,r){dm(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function $O(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=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(o){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 NO={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,scale: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},FO=/[A-Z]|^ms/g,AO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,cx=function(t){return t.charCodeAt(1)===45},Jg=function(t){return t!=null&&typeof t!="boolean"},Gd=ix(function(e){return cx(e)?e:e.replace(FO,"-$&").toLowerCase()}),eb=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(AO,function(r,o,i){return Zr={name:o,styles:i,next:Zr},o})}return NO[t]!==1&&!cx(t)&&typeof n=="number"&&n!==0?n+"px":n};function Yl(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 o=n;if(o.anim===1)return Zr={name:o.name,styles:o.styles,next:Zr},o.name;var i=n;if(i.styles!==void 0){var l=i.next;if(l!==void 0)for(;l!==void 0;)Zr={name:l.name,styles:l.styles,next:Zr},l=l.next;var a=i.styles+";";return a}return DO(e,t,n)}case"function":{if(e!==void 0){var c=Zr,u=n(e);return Zr=c,Yl(e,t,u)}break}}var d=n;if(t==null)return d;var p=t[d];return p!==void 0?p:d}function DO(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Yl(e,t,n[o])+";";else for(var i in n){var l=n[i];if(typeof l!="object"){var a=l;t!=null&&t[a]!==void 0?r+=i+"{"+t[a]+"}":Jg(a)&&(r+=Gd(i)+":"+eb(i,a)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var c=0;c<l.length;c++)Jg(l[c])&&(r+=Gd(i)+":"+eb(i,l[c])+";");else{var u=Yl(e,t,l);switch(i){case"animation":case"animationName":{r+=Gd(i)+":"+u+";";break}default:r+=i+"{"+u+"}"}}}return r}var tb=/label:\s*([^\s;{]+)\s*(;|$)/g,Zr;function Ca(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,o="";Zr=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=Yl(n,t,i);else{var l=i;o+=l[0]}for(var a=1;a<e.length;a++)if(o+=Yl(n,t,e[a]),r){var c=i;o+=c[a]}tb.lastIndex=0;for(var u="",d;(d=tb.exec(o))!==null;)u+="-"+d[1];var p=$O(o)+u;return{name:p,styles:o,next:Zr}}var _O=function(t){return t()},ux=b.useInsertionEffect?b.useInsertionEffect:!1,dx=ux||_O,nb=ux||b.useLayoutEffect,px=b.createContext(typeof HTMLElement!="undefined"?RO({key:"css"}):null);px.Provider;var fm=function(t){return H.forwardRef(function(n,r){var o=H.useContext(px);return t(n,o,r)})},wa=b.createContext({}),mm={}.hasOwnProperty,Wp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",zO=function(t,n){var r={};for(var o in n)mm.call(n,o)&&(r[o]=n[o]);return r[Wp]=t,r},BO=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return dm(n,r,o),dx(function(){return pm(n,r,o)}),null},VO=fm(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Wp],i=[r],l="";typeof e.className=="string"?l=ax(t.registered,i,e.className):e.className!=null&&(l=e.className+" ");var a=Ca(i,void 0,b.useContext(wa));l+=t.key+"-"+a.name;var c={};for(var u in e)mm.call(e,u)&&u!=="css"&&u!==Wp&&(c[u]=e[u]);return c.className=l,n&&(c.ref=n),b.createElement(b.Fragment,null,b.createElement(BO,{cache:t,serialized:a,isStringTag:typeof o=="string"}),b.createElement(o,c))}),HO=VO,rb=function(t,n){var r=arguments;if(n==null||!mm.call(n,"css"))return b.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=HO,i[1]=zO(t,n);for(var l=2;l<o;l++)i[l]=r[l];return b.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(rb||(rb={}));var GO=fm(function(e,t){var n=e.styles,r=Ca([n],void 0,b.useContext(wa)),o=b.useRef();return nb(function(){var i=t.key+"-global",l=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,c=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),c!==null&&(a=!0,c.setAttribute("data-emotion",i),l.hydrate([c])),o.current=[l,a],function(){l.flush()}},[t]),nb(function(){var i=o.current,l=i[0],a=i[1];if(a){i[1]=!1;return}if(r.next!==void 0&&pm(t,r.next,!0),l.tags.length){var c=l.tags[l.tags.length-1].nextElementSibling;l.before=c,l.flush()}t.insert("",r,l,!1)},[t,r.name]),null});function Jo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ca(t)}function _r(){var e=Jo.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var WO=/^((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|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,UO=ix(function(e){return WO.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),qO=UO,KO=function(t){return t!=="theme"},ob=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?qO:KO},sb=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(l){return t.__emotion_forwardProp(l)&&i(l)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},YO=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return dm(n,r,o),dx(function(){return pm(n,r,o)}),null},XO=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,l;n!==void 0&&(i=n.label,l=n.target);var a=sb(t,n,r),c=a||ob(o),u=!c("as");return function(){var d=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)p.push.apply(p,d);else{var m=d[0];p.push(m[0]);for(var f=d.length,y=1;y<f;y++)p.push(d[y],m[y])}var g=fm(function(v,x,S){var w=u&&v.as||o,k="",E=[],T=v;if(v.theme==null){T={};for(var N in v)T[N]=v[N];T.theme=b.useContext(wa)}typeof v.className=="string"?k=ax(x.registered,E,v.className):v.className!=null&&(k=v.className+" ");var P=Ca(p.concat(E),x.registered,T);k+=x.key+"-"+P.name,l!==void 0&&(k+=" "+l);var O=u&&a===void 0?ob(w):c,L={};for(var $ in v)u&&$==="as"||O($)&&(L[$]=v[$]);return L.className=k,S&&(L.ref=S),b.createElement(b.Fragment,null,b.createElement(YO,{cache:x,serialized:P,isStringTag:typeof w=="string"}),b.createElement(w,L))});return g.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=o,g.__emotion_styles=p,g.__emotion_forwardProp=a,Object.defineProperty(g,"toString",{value:function(){return"."+l}}),g.withComponent=function(v,x){var S=e(v,z({},n,x,{shouldForwardProp:sb(g,x,!0)}));return S.apply(void 0,p)},g}},ZO=["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"],Xl=XO.bind(null);ZO.forEach(function(e){Xl[e]=Xl(e)});function QO(e){return e==null||Object.keys(e).length===0}function hm(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(QO(o)?n:o):t;return h.jsx(GO,{styles:r})}process.env.NODE_ENV!=="production"&&(hm.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.string,s.object,s.func])});/**
|
|
82
|
+
* @mui/styled-engine v7.3.10
|
|
83
|
+
*
|
|
84
|
+
* @license MIT
|
|
85
|
+
* This source code is licensed under the MIT license found in the
|
|
86
|
+
* LICENSE file in the root directory of this source tree.
|
|
87
|
+
*/function fx(e,t){const n=Xl(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
88
|
+
`)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function JO(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const ib=[];function Ho(e){return ib[0]=e,Ca(ib)}const e4=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)=>({...n,[r.key]:r.val}),{})};function t4(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=e4(t),l=Object.keys(i);function a(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function u(m,f){const y=l.indexOf(f);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(y!==-1&&typeof t[l[y]]=="number"?t[l[y]]:f)-r/100}${n})`}function d(m){return l.indexOf(m)+1<l.length?u(m,l[l.indexOf(m)+1]):a(m)}function p(m){const f=l.indexOf(m);return f===0?a(l[1]):f===l.length-1?c(l[f]):u(m,l[l.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:l,values:i,up:a,down:c,between:u,only:d,not:p,unit:n,...o}}const n4={borderRadius:4};function mx(e=8,t=Lu({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const l=t(i);return typeof l=="number"?`${l}px`:l}).join(" "));return n.mui=!0,n}function r4(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Vu(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...l}=e,a=t4(n),c=mx(o);let u=Cn({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...n4,...i}},l);return u=pP(u),u.applyStyles=r4,u=t.reduce((d,p)=>Cn(d,p),u),u.unstable_sxConfig={...va,...l==null?void 0:l.unstable_sxConfig},u.unstable_sx=function(p){return Yo({sx:p,theme:this})},u}function o4(e){return Object.keys(e).length===0}function gm(e=null){const t=b.useContext(wa);return!t||o4(t)?e:t}const s4=Vu();function Hu(e=s4){return gm(e)}function Wd(e){const t=Ho(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function bm({styles:e,themeId:t,defaultTheme:n={}}){const r=Hu(n),o=t&&r[t]||r;let i=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(i)?i=i.map(l=>Wd(typeof l=="function"?l(o):l)):i=Wd(i)),h.jsx(hm,{styles:i})}process.env.NODE_ENV!=="production"&&(bm.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool]),themeId:s.string});function i4(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=fx("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(Yo);return b.forwardRef(function(c,u){const d=Hu(n),{className:p,component:m="div",...f}=lm(c);return h.jsx(i,{as:m,ref:u,className:ue(p,o?o(r):r),theme:t&&d[t]||d,...f})})}const l4={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 Ne(e,t,n="Mui"){const r=l4[t];return r?`${n}-${r}`:`${Yv.generate(e)}-${t}`}function $e(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ne(e,o,n)}),r}function hx(e,t=""){return e.displayName||e.name||t}function lb(e,t,n){const r=hx(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function a4(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return hx(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Vc.ForwardRef:return lb(e,e.render,"ForwardRef");case Vc.Memo:return lb(e,e.type,"memo");default:return}}}function gx(e){const{variants:t,...n}=e,r={variants:t,style:Ho(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Ho(o.style))}),r}const c4=Vu();function Ud(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function xs(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function u4(e){return e?(t,n)=>n[e]:null}function d4(e,t,n){e.theme=m4(e.theme)?n:e.theme[t]||e.theme}function Pc(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Pc(e,o,n));if(Array.isArray(r==null?void 0:r.variants)){let o;if(r.isProcessed)o=n?xs(r.style,n):r.style;else{const{variants:i,...l}=r;o=n?xs(Ho(l),n):l}return bx(e,r.variants,[o],n)}return r!=null&&r.isProcessed?n?xs(Ho(r.style),n):r.style:n?xs(Ho(r),n):r}function bx(e,t,n=[],r=void 0){var i;let o;e:for(let l=0;l<t.length;l+=1){const a=t[l];if(typeof a.props=="function"){if(o!=null||(o={...e,...e.ownerState,ownerState:e.ownerState}),!a.props(o))continue}else for(const c in a.props)if(e[c]!==a.props[c]&&((i=e.ownerState)==null?void 0:i[c])!==a.props[c])continue e;typeof a.style=="function"?(o!=null||(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?xs(Ho(a.style(o)),r):a.style(o))):n.push(r?xs(Ho(a.style),r):a.style)}return n}function yx(e={}){const{themeId:t,defaultTheme:n=c4,rootShouldForwardProp:r=Ud,slotShouldForwardProp:o=Ud}=e;function i(a){d4(a,t,n)}return(a,c={})=>{JO(a,T=>T.filter(N=>N!==Yo));const{name:u,slot:d,skipVariantsResolver:p,skipSx:m,overridesResolver:f=u4(vx(d)),...y}=c,g=u&&u.startsWith("Mui")||d?"components":"custom",v=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,x=m||!1;let S=Ud;d==="Root"||d==="root"?S=r:d?S=o:h4(a)&&(S=void 0);const w=fx(a,{shouldForwardProp:S,label:f4(u,d),...y}),k=T=>{if(T.__emotion_real===T)return T;if(typeof T=="function")return function(P){return Pc(P,T,P.theme.modularCssLayers?g:void 0)};if(Qr(T)){const N=gx(T);return function(O){return N.variants?Pc(O,N,O.theme.modularCssLayers?g:void 0):O.theme.modularCssLayers?xs(N.style,g):N.style}}return T},E=(...T)=>{const N=[],P=T.map(k),O=[];if(N.push(i),u&&f&&O.push(function(j){var _,V;const M=(V=(_=j.theme.components)==null?void 0:_[u])==null?void 0:V.styleOverrides;if(!M)return null;const R={};for(const W in M)R[W]=Pc(j,M[W],j.theme.modularCssLayers?"theme":void 0);return f(j,R)}),u&&!v&&O.push(function(j){var R,_;const F=j.theme,M=(_=(R=F==null?void 0:F.components)==null?void 0:R[u])==null?void 0:_.variants;return M?bx(j,M,[],j.theme.modularCssLayers?"theme":void 0):null}),x||O.push(Yo),Array.isArray(P[0])){const C=P.shift(),j=new Array(N.length).fill(""),F=new Array(O.length).fill("");let M;M=[...j,...C,...F],M.raw=[...j,...C.raw,...F],N.unshift(M)}const L=[...N,...P,...O],$=w(...L);return a.muiName&&($.muiName=a.muiName),process.env.NODE_ENV!=="production"&&($.displayName=p4(u,d,a)),$};return w.withConfig&&(E.withConfig=w.withConfig),E}}function p4(e,t,n){return e?`${e}${ie(t||"")}`:`Styled(${a4(n)})`}function f4(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${vx(t||"Root")}`),n}function m4(e){for(const t in e)return!1;return!0}function h4(e){return typeof e=="string"&&e.charCodeAt(0)>96}function vx(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const $t=yx();function Ci(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const l=e[i],a=t[i];if(!a)r[i]=l||{};else if(!l)r[i]=a;else{r[i]={...a};for(const c in l)if(Object.prototype.hasOwnProperty.call(l,c)){const u=c;r[i][u]=Ci(l[u],a[u],n)}}}else i==="className"&&n&&t.className?r.className=ue(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[i]===void 0&&(r[i]=e[i])}return r}function xx(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Ci(t.components[n].defaultProps,r)}function g4({props:e,name:t,defaultTheme:n,themeId:r}){let o=Hu(n);return r&&(o=o[r]||o),xx({theme:o,name:t,props:e})}const Rt=typeof window!="undefined"?b.useLayoutEffect:b.useEffect;function b4(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function ym(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),b4(e,t,n)}function y4(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)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function lo(e){if(e.type)return e;if(e.charAt(0)==="#")return lo(y4(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
89
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:So(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
|
|
90
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:So(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const v4=e=>{const t=lo(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Sl=(e,t)=>{try{return v4(e)}catch(n){return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Sa(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Cx(e){e=lo(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),l=(u,d=(u+n/30)%12)=>o-i*Math.max(Math.min(d-3,9-d,1),-1);let a="rgb";const c=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(a+="a",c.push(t[3])),Sa({type:a,values:c})}function Up(e){e=lo(e);let t=e.type==="hsl"||e.type==="hsla"?lo(Cx(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 ab(e,t){const n=Up(e),r=Up(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function fr(e,t){return e=lo(e),t=ym(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Sa(e)}function us(e,t,n){try{return fr(e,t)}catch(r){return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function ka(e,t){if(e=lo(e),t=ym(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Sa(e)}function jt(e,t,n){try{return ka(e,t)}catch(r){return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Ea(e,t){if(e=lo(e),t=ym(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Sa(e)}function Lt(e,t,n){try{return Ea(e,t)}catch(r){return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function x4(e,t=.15){return Up(e)>.5?ka(e,t):Ea(e,t)}function cc(e,t,n){try{return x4(e,t)}catch(r){return e}}const C4="exact-prop: ";function Ta(e){return process.env.NODE_ENV==="production"?e:{...e,[C4]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}const vm=b.createContext(null);process.env.NODE_ENV!=="production"&&(vm.displayName="ThemeContext");function xm(){const e=b.useContext(vm);return process.env.NODE_ENV!=="production"&&b.useDebugValue(e),e}const w4=typeof Symbol=="function"&&Symbol.for,S4=w4?Symbol.for("mui.nested"):"__THEME_NESTED__";function k4(e,t){if(typeof t=="function"){const n=t(e);return process.env.NODE_ENV!=="production"&&(n||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join(`
|
|
91
|
+
`))),n}return{...e,...t}}function Wc(e){const{children:t,theme:n}=e,r=xm();process.env.NODE_ENV!=="production"&&r===null&&typeof n=="function"&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
|
|
92
|
+
`));const o=b.useMemo(()=>{const i=r===null?{...n}:k4(r,n);return i!=null&&(i[S4]=r!==null),i},[n,r]);return h.jsx(vm.Provider,{value:o,children:t})}process.env.NODE_ENV!=="production"&&(Wc.propTypes={children:s.node,theme:s.oneOfType([s.object,s.func]).isRequired});process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Wc.propTypes=Ta(Wc.propTypes));const wx=b.createContext();function Sx({value:e,...t}){return h.jsx(wx.Provider,{value:e!=null?e:!0,...t})}process.env.NODE_ENV!=="production"&&(Sx.propTypes={children:s.node,value:s.bool});const Nn=()=>{const e=b.useContext(wx);return e!=null?e:!1},kx=b.createContext(void 0);function Ex({value:e,children:t}){return h.jsx(kx.Provider,{value:e,children:t})}process.env.NODE_ENV!=="production"&&(Ex.propTypes={children:s.node,value:s.object});function E4(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Ci(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Ci(o,r,t.components.mergeClassNameAndStyle):r}function T4({props:e,name:t}){const n=b.useContext(kx);return E4({props:e,name:t,theme:{components:n}})}let cb=0;function I4(e){const[t,n]=b.useState(e),r=e||t;return b.useEffect(()=>{t==null&&(cb+=1,n(`mui-${cb}`))},[t]),r}const P4={...b},ub=P4.useId;function xt(e){if(ub!==void 0){const t=ub();return e!=null?e:t}return I4(e)}function O4(e){const t=gm(),n=xt()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!r||t!==null?o="":typeof r=="string"?o=r.replace(/mui(?!\.)/g,o):o=`@layer ${o};`,Rt(()=>{var a,c;const i=document.querySelector("head");if(!i)return;const l=i.firstChild;if(o){if(l&&((a=l.hasAttribute)!=null&&a.call(l,"data-mui-layer-order"))&&l.getAttribute("data-mui-layer-order")===n)return;const u=document.createElement("style");u.setAttribute("data-mui-layer-order",n),u.textContent=o,i.prepend(u)}else(c=i.querySelector(`style[data-mui-layer-order="${n}"]`))==null||c.remove()},[o,n]),o?h.jsx(bm,{styles:o}):null}const db={};function pb(e,t,n,r=!1){return b.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),l=e?{...t,[e]:i}:i;return r?()=>l:l}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Zl(e){const{children:t,theme:n,themeId:r}=e,o=gm(db),i=xm()||db;process.env.NODE_ENV!=="production"&&(o===null&&typeof n=="function"||r&&o&&!o[r]&&typeof n=="function")&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
|
|
93
|
+
`));const l=pb(r,o,n),a=pb(r,i,n,!0),c=(r?l[r]:l).direction==="rtl",u=O4(l);return h.jsx(Wc,{theme:a,children:h.jsx(wa.Provider,{value:l,children:h.jsx(Sx,{value:c,children:h.jsxs(Ex,{value:r?l[r].components:l.components,children:[u,t]})})})})}process.env.NODE_ENV!=="production"&&(Zl.propTypes={children:s.node,theme:s.oneOfType([s.func,s.object]).isRequired,themeId:s.string});process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Zl.propTypes=Ta(Zl.propTypes));const fb={theme:void 0};function M4(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(fb.theme=o.theme,i=gx(e(fb)),t=i,n=o.theme),i}}const Cm="mode",wm="color-scheme",R4="data-color-scheme";function j4(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=Cm,colorSchemeStorageKey:i=wm,attribute:l=R4,colorSchemeNode:a="document.documentElement",nonce:c}=e||{};let u="",d=l;if(l==="class"&&(d=".%s"),l==="data"&&(d="[data-%s]"),d.startsWith(".")){const m=d.substring(1);u+=`${a}.classList.remove('${m}'.replace('%s', light), '${m}'.replace('%s', dark));
|
|
94
|
+
${a}.classList.add('${m}'.replace('%s', colorScheme));`}const p=d.match(/\[([^[\]]+)\]/);if(p){const[m,f]=p[1].split("=");f||(u+=`${a}.removeAttribute('${m}'.replace('%s', light));
|
|
95
|
+
${a}.removeAttribute('${m}'.replace('%s', dark));`),u+=`
|
|
96
|
+
${a}.setAttribute('${m}'.replace('%s', colorScheme), ${f?`${f}.replace('%s', colorScheme)`:'""'});`}else d!==".%s"&&(u+=`${a}.setAttribute('${d}', colorScheme);`);return h.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window=="undefined"?c:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
97
|
+
try {
|
|
98
|
+
let colorScheme = '';
|
|
99
|
+
const mode = localStorage.getItem('${o}') || '${t}';
|
|
100
|
+
const dark = localStorage.getItem('${i}-dark') || '${r}';
|
|
101
|
+
const light = localStorage.getItem('${i}-light') || '${n}';
|
|
102
|
+
if (mode === 'system') {
|
|
103
|
+
// handle system mode
|
|
104
|
+
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
105
|
+
if (mql.matches) {
|
|
106
|
+
colorScheme = dark
|
|
107
|
+
} else {
|
|
108
|
+
colorScheme = light
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
if (mode === 'light') {
|
|
112
|
+
colorScheme = light;
|
|
113
|
+
}
|
|
114
|
+
if (mode === 'dark') {
|
|
115
|
+
colorScheme = dark;
|
|
116
|
+
}
|
|
117
|
+
if (colorScheme) {
|
|
118
|
+
${u}
|
|
119
|
+
}
|
|
120
|
+
} catch(e){}})();`}},"mui-color-scheme-init")}function L4(){}const $4=({key:e,storageWindow:t})=>(!t&&typeof window!="undefined"&&(t=window),{get(n){if(typeof window=="undefined")return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch(o){}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch(r){}},subscribe:n=>{if(!t)return L4;const r=o=>{const i=o.newValue;o.key===e&&n(i)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function qd(){}function mb(e){if(typeof window!="undefined"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Tx(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function N4(e){return Tx(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function F4(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:i=Cm,colorSchemeStorageKey:l=wm,storageWindow:a=typeof window=="undefined"?void 0:window,storageManager:c=$4,noSsr:u=!1}=e,d=o.join(","),p=o.length>1,m=b.useMemo(()=>c==null?void 0:c({key:i,storageWindow:a}),[c,i,a]),f=b.useMemo(()=>c==null?void 0:c({key:`${l}-light`,storageWindow:a}),[c,l,a]),y=b.useMemo(()=>c==null?void 0:c({key:`${l}-dark`,storageWindow:a}),[c,l,a]),[g,v]=b.useState(()=>{const P=(m==null?void 0:m.get(t))||t,O=(f==null?void 0:f.get(n))||n,L=(y==null?void 0:y.get(r))||r;return{mode:P,systemMode:mb(P),lightColorScheme:O,darkColorScheme:L}}),[x,S]=b.useState(u||!p);b.useEffect(()=>{S(!0)},[]);const w=N4(g),k=b.useCallback(P=>{v(O=>{if(P===O.mode)return O;const L=P!=null?P:t;return m==null||m.set(L),{...O,mode:L,systemMode:mb(L)}})},[m,t]),E=b.useCallback(P=>{P?typeof P=="string"?P&&!d.includes(P)?console.error(`\`${P}\` does not exist in \`theme.colorSchemes\`.`):v(O=>{const L={...O};return Tx(O,$=>{$==="light"&&(f==null||f.set(P),L.lightColorScheme=P),$==="dark"&&(y==null||y.set(P),L.darkColorScheme=P)}),L}):v(O=>{const L={...O},$=P.light===null?n:P.light,C=P.dark===null?r:P.dark;return $&&(d.includes($)?(L.lightColorScheme=$,f==null||f.set($)):console.error(`\`${$}\` does not exist in \`theme.colorSchemes\`.`)),C&&(d.includes(C)?(L.darkColorScheme=C,y==null||y.set(C)):console.error(`\`${C}\` does not exist in \`theme.colorSchemes\`.`)),L}):v(O=>(f==null||f.set(n),y==null||y.set(r),{...O,lightColorScheme:n,darkColorScheme:r}))},[d,f,y,n,r]),T=b.useCallback(P=>{g.mode==="system"&&v(O=>{const L=P!=null&&P.matches?"dark":"light";return O.systemMode===L?O:{...O,systemMode:L}})},[g.mode]),N=b.useRef(T);return N.current=T,b.useEffect(()=>{if(typeof window.matchMedia!="function"||!p)return;const P=(...L)=>N.current(...L),O=window.matchMedia("(prefers-color-scheme: dark)");return O.addListener(P),P(O),()=>{O.removeListener(P)}},[p]),b.useEffect(()=>{if(p){const P=(m==null?void 0:m.subscribe($=>{(!$||["light","dark","system"].includes($))&&k($||t)}))||qd,O=(f==null?void 0:f.subscribe($=>{(!$||d.match($))&&E({light:$})}))||qd,L=(y==null?void 0:y.subscribe($=>{(!$||d.match($))&&E({dark:$})}))||qd;return()=>{P(),O(),L()}}},[E,k,d,t,a,p,m,f,y]),{...g,mode:x?g.mode:void 0,systemMode:x?g.systemMode:void 0,colorScheme:x?w:void 0,setMode:k,setColorScheme:E}}const A4="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function D4(e){const{themeId:t,theme:n={},modeStorageKey:r=Cm,colorSchemeStorageKey:o=wm,disableTransitionOnChange:i=!1,defaultColorScheme:l,resolveTheme:a}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},u=b.createContext(void 0);process.env.NODE_ENV!=="production"&&(u.displayName="ColorSchemeContext");const d=()=>b.useContext(u)||c,p={},m={};function f(x){var ee,de,he,ae;const{children:S,theme:w,modeStorageKey:k=r,colorSchemeStorageKey:E=o,disableTransitionOnChange:T=i,storageManager:N,storageWindow:P=typeof window=="undefined"?void 0:window,documentNode:O=typeof document=="undefined"?void 0:document,colorSchemeNode:L=typeof document=="undefined"?void 0:document.documentElement,disableNestedContext:$=!1,disableStyleSheetGeneration:C=!1,defaultMode:j="system",forceThemeRerender:F=!1,noSsr:M}=x,R=b.useRef(!1),_=xm(),V=b.useContext(u),W=!!V&&!$,I=b.useMemo(()=>w||(typeof n=="function"?n():n),[w]),D=I[t],G=D||I,{colorSchemes:A=p,components:K=m,cssVarPrefix:Y}=G,U=Object.keys(A).filter(ge=>!!A[ge]).join(","),q=b.useMemo(()=>U.split(","),[U]),Z=typeof l=="string"?l:l.light,X=typeof l=="string"?l:l.dark,Q=A[Z]&&A[X]?j:((de=(ee=A[G.defaultColorScheme])==null?void 0:ee.palette)==null?void 0:de.mode)||((he=G.palette)==null?void 0:he.mode),{mode:re,setMode:J,systemMode:oe,lightColorScheme:te,darkColorScheme:fe,colorScheme:ve,setColorScheme:Ce}=F4({supportedColorSchemes:q,defaultLightColorScheme:Z,defaultDarkColorScheme:X,modeStorageKey:k,colorSchemeStorageKey:E,defaultMode:Q,storageManager:N,storageWindow:P,noSsr:M});let xe=re,Se=ve;W&&(xe=V.mode,Se=V.colorScheme),process.env.NODE_ENV!=="production"&&F&&!G.vars&&console.warn(["MUI: The `forceThemeRerender` prop should only be used with CSS theme variables.","Note that it will slow down the app when changing between modes, so only do this when you cannot find a better solution."].join(`
|
|
121
|
+
`));let Oe=Se||G.defaultColorScheme;G.vars&&!F&&(Oe=G.defaultColorScheme);const Ae=b.useMemo(()=>{var Te;const ge=((Te=G.generateThemeVars)==null?void 0:Te.call(G))||G.vars,be={...G,components:K,colorSchemes:A,cssVarPrefix:Y,vars:ge};if(typeof be.generateSpacing=="function"&&(be.spacing=be.generateSpacing()),Oe){const _e=A[Oe];_e&&typeof _e=="object"&&Object.keys(_e).forEach(ke=>{_e[ke]&&typeof _e[ke]=="object"?be[ke]={...be[ke],..._e[ke]}:be[ke]=_e[ke]})}return a?a(be):be},[G,Oe,K,A,Y]),se=G.colorSchemeSelector;Rt(()=>{if(Se&&L&&se&&se!=="media"){const ge=se;let be=se;if(ge==="class"&&(be=".%s"),ge==="data"&&(be="[data-%s]"),ge!=null&&ge.startsWith("data-")&&!ge.includes("%s")&&(be=`[${ge}="%s"]`),be.startsWith("."))L.classList.remove(...q.map(Te=>be.substring(1).replace("%s",Te))),L.classList.add(be.substring(1).replace("%s",Se));else{const Te=be.replace("%s",Se).match(/\[([^\]]+)\]/);if(Te){const[_e,ke]=Te[1].split("=");ke||q.forEach(ct=>{L.removeAttribute(_e.replace(Se,ct))}),L.setAttribute(_e,ke?ke.replace(/"|'/g,""):"")}else L.setAttribute(be,Se)}}},[Se,se,L,q]),b.useEffect(()=>{let ge;if(T&&R.current&&O){const be=O.createElement("style");be.appendChild(O.createTextNode(A4)),O.head.appendChild(be),window.getComputedStyle(O.body),ge=setTimeout(()=>{O.head.removeChild(be)},1)}return()=>{clearTimeout(ge)}},[Se,T,O]),b.useEffect(()=>(R.current=!0,()=>{R.current=!1}),[]);const Ge=b.useMemo(()=>({allColorSchemes:q,colorScheme:Se,darkColorScheme:fe,lightColorScheme:te,mode:xe,setColorScheme:Ce,setMode:process.env.NODE_ENV==="production"?J:ge=>{Ae.colorSchemeSelector==="media"&&console.error(["MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).","To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.","To learn more, visit https://v7.mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually"].join(`
|
|
122
|
+
`)),J(ge)},systemMode:oe}),[q,Se,fe,te,xe,Ce,J,oe,Ae.colorSchemeSelector]);let Ie=!0;(C||G.cssVariables===!1||W&&(_==null?void 0:_.cssVarPrefix)===Y)&&(Ie=!1);const Ye=h.jsxs(b.Fragment,{children:[h.jsx(Zl,{themeId:D?t:void 0,theme:Ae,children:S}),Ie&&h.jsx(hm,{styles:((ae=Ae.generateStyleSheets)==null?void 0:ae.call(Ae))||[]})]});return W?Ye:h.jsx(u.Provider,{value:Ge,children:Ye})}process.env.NODE_ENV!=="production"&&(f.propTypes={children:s.node,colorSchemeNode:s.any,colorSchemeStorageKey:s.string,defaultMode:s.string,disableNestedContext:s.bool,disableStyleSheetGeneration:s.bool,disableTransitionOnChange:s.bool,documentNode:s.any,forceThemeRerender:s.bool,modeStorageKey:s.string,noSsr:s.bool,storageManager:s.func,storageWindow:s.any,theme:s.object});const y=typeof l=="string"?l:l.light,g=typeof l=="string"?l:l.dark;return{CssVarsProvider:f,useColorScheme:d,getInitColorSchemeScript:x=>j4({colorSchemeStorageKey:o,defaultLightColorScheme:y,defaultDarkColorScheme:g,modeStorageKey:r,...x})}}function _4(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const hb=(e,t,n,r=[])=>{let o=e;t.forEach((i,l)=>{l===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},z4=(e,t,n)=>{function r(o,i=[],l=[]){Object.entries(o).forEach(([a,c])=>{(!n||n&&!n([...i,a]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...i,a],Array.isArray(c)?[...l,a]:l):t([...i,a],c,l))})}r(e)},B4=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Kd(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},l={};return z4(e,(a,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(a,c))){const d=`--${n?`${n}-`:""}${a.join("-")}`,p=B4(a,c);Object.assign(o,{[d]:p}),hb(i,a,`var(${d})`,u),hb(l,a,`var(${d}, ${p})`,u)}},a=>a[0]==="vars"),{css:o,vars:i,varsWithDefaults:l}}function V4(e,t={}){const{getSelector:n=x,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:l={},components:a,defaultColorScheme:c="light",...u}=e,{vars:d,css:p,varsWithDefaults:m}=Kd(u,t);let f=m;const y={},{[c]:g,...v}=l;if(Object.entries(v||{}).forEach(([k,E])=>{const{vars:T,css:N,varsWithDefaults:P}=Kd(E,t);f=Cn(f,P),y[k]={css:N,vars:T}}),g){const{css:k,vars:E,varsWithDefaults:T}=Kd(g,t);f=Cn(f,T),y[c]={css:k,vars:E}}function x(k,E){var N,P;let T=o;if(o==="class"&&(T=".%s"),o==="data"&&(T="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(T=`[${o}="%s"]`),k){if(T==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${((P=(N=l[k])==null?void 0:N.palette)==null?void 0:P.mode)||k})`]:{":root":E}};if(T)return e.defaultColorScheme===k?`:root, ${T.replace("%s",String(k))}`:T.replace("%s",String(k))}return":root"}return{vars:f,generateThemeVars:()=>{let k={...d};return Object.entries(y).forEach(([,{vars:E}])=>{k=Cn(k,E)}),k},generateStyleSheets:()=>{var O,L;const k=[],E=e.defaultColorScheme||"light";function T($,C){Object.keys(C).length&&k.push(typeof $=="string"?{[$]:{...C}}:$)}T(n(void 0,{...p}),p);const{[E]:N,...P}=y;if(N){const{css:$}=N,C=(L=(O=l[E])==null?void 0:O.palette)==null?void 0:L.mode,j=!r&&C?{colorScheme:C,...$}:{...$};T(n(E,{...j}),j)}return Object.entries(P).forEach(([$,{css:C}])=>{var M,R;const j=(R=(M=l[$])==null?void 0:M.palette)==null?void 0:R.mode,F=!r&&j?{colorScheme:j,...C}:{...C};T(n($,{...F}),F)}),i&&k.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),k}}}function H4(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function Nl(e,t){var n,r,o,i;return b.isValidElement(e)&&t.indexOf((i=e.type.muiName)!=null?i:(o=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName)!==-1}const G4=Vu(),W4=$t("div",{name:"MuiStack",slot:"Root"});function U4(e){return g4({props:e,name:"MuiStack",defaultTheme:G4})}function q4(e,t){const n=b.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i<n.length-1&&r.push(b.cloneElement(t,{key:`separator-${i}`})),r),[])}const K4=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Y4=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Ar({theme:t},Vd({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Lu(t),o=Object.keys(t.breakpoints.values).reduce((c,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(c[u]=!0),c),{}),i=Vd({values:e.direction,base:o}),l=Vd({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((c,u,d)=>{if(!i[c]){const m=u>0?i[d[u-1]]:"column";i[c]=m}}),n=Cn(n,Ar({theme:t},l,(c,u)=>e.useFlexGap?{gap:Os(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${K4(u?i[u]:e.direction)}`]:Os(r,c)}}))}return n=mP(t.breakpoints,n),n};function X4(e={}){const{createStyledComponent:t=W4,useThemeProps:n=U4,componentName:r="MuiStack"}=e,o=()=>ye({root:["root"]},c=>Ne(r,c),{}),i=t(Y4),l=b.forwardRef(function(c,u){const d=n(c),p=lm(d),{component:m="div",direction:f="column",spacing:y=0,divider:g,children:v,className:x,useFlexGap:S=!1,...w}=p,k={direction:f,spacing:y,useFlexGap:S},E=o();return h.jsx(i,{as:m,ownerState:k,ref:u,className:ue(E.root,x),...w,children:g?q4(v,g):v})});return process.env.NODE_ENV!=="production"&&(l.propTypes={children:s.node,direction:s.oneOfType([s.oneOf(["column-reverse","column","row-reverse","row"]),s.arrayOf(s.oneOf(["column-reverse","column","row-reverse","row"])),s.object]),divider:s.node,spacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])}),l}const Ql={black:"#000",white:"#fff"},Z4={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"},Ks={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ys={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},rl={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Xs={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Zs={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Qs={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Ix(){return{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:Ql.white,default:Ql.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}}}const Px=Ix();function Ox(){return{text:{primary:Ql.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:Ql.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}}}const qp=Ox();function gb(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ea(e.main,o):t==="dark"&&(e.dark=ka(e.main,i)))}function bb(e,t,n,r,o){const i=o.light||o,l=o.dark||o*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(l*100).toFixed(0)}%)`))}function Q4(e="light"){return e==="dark"?{main:Xs[200],light:Xs[50],dark:Xs[400]}:{main:Xs[700],light:Xs[400],dark:Xs[800]}}function J4(e="light"){return e==="dark"?{main:Ks[200],light:Ks[50],dark:Ks[400]}:{main:Ks[500],light:Ks[300],dark:Ks[700]}}function eM(e="light"){return e==="dark"?{main:Ys[500],light:Ys[300],dark:Ys[700]}:{main:Ys[700],light:Ys[400],dark:Ys[800]}}function tM(e="light"){return e==="dark"?{main:Zs[400],light:Zs[300],dark:Zs[700]}:{main:Zs[700],light:Zs[500],dark:Zs[900]}}function nM(e="light"){return e==="dark"?{main:Qs[400],light:Qs[300],dark:Qs[700]}:{main:Qs[800],light:Qs[500],dark:Qs[900]}}function rM(e="light"){return e==="dark"?{main:rl[400],light:rl[300],dark:rl[700]}:{main:"#ed6c02",light:rl[500],dark:rl[900]}}function oM(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Sm(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...i}=e,l=e.primary||Q4(t),a=e.secondary||J4(t),c=e.error||eM(t),u=e.info||tM(t),d=e.success||nM(t),p=e.warning||rM(t);function m(v){if(o)return oM(v);const x=ab(v,qp.text.primary)>=n?qp.text.primary:Px.text.primary;if(process.env.NODE_ENV!=="production"){const S=ab(v,x);S<3&&console.error([`MUI: The contrast ratio of ${S}:1 for ${x} on ${v}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
123
|
+
`))}return x}const f=({color:v,name:x,mainShade:S=500,lightShade:w=300,darkShade:k=700})=>{if(v={...v},!v.main&&v[S]&&(v.main=v[S]),!v.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
|
|
124
|
+
The color object needs to have a \`main\` property or a \`${S}\` property.`:So(11,x?` (${x})`:"",S));if(typeof v.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
|
|
125
|
+
\`color.main\` should be a string, but \`${JSON.stringify(v.main)}\` was provided instead.
|
|
22
126
|
|
|
23
|
-
|
|
127
|
+
Did you intend to use one of the following approaches?
|
|
24
128
|
|
|
25
|
-
|
|
129
|
+
import { green } from "@mui/material/colors";
|
|
26
130
|
|
|
27
|
-
Check the top-level render call using <`+v+">.")}return m}}function pt(d,m){{if(!d._store||d._store.validated||d.key!=null)return;d._store.validated=!0;var v=Fn(m);if(ft[v])return;ft[v]=!0;var E="";d&&d._owner&&d._owner!==Er.current&&(E=" It was passed a child from "+M(d._owner.type)+"."),Fe(d),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',v,E),Fe(null)}}function ht(d,m){{if(typeof d!="object")return;if(yr(d))for(var v=0;v<d.length;v++){var E=d[v];$r(E)&&pt(E,m)}else if($r(d))d._store&&(d._store.validated=!0);else if(d){var N=C(d);if(typeof N=="function"&&N!==d.entries)for(var R=N.call(d),S;!(S=R.next()).done;)$r(S.value)&&pt(S.value,m)}}}function On(d){{var m=d.type;if(m==null||typeof m=="string")return;var v;if(typeof m=="function")v=m.propTypes;else if(typeof m=="object"&&(m.$$typeof===c||m.$$typeof===h))v=m.propTypes;else return;if(v){var E=M(m);kn(v,d.props,"prop",E,d)}else if(m.PropTypes!==void 0&&!Lr){Lr=!0;var N=M(m);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",N||"Unknown")}typeof m.getDefaultProps=="function"&&!m.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Wn(d){{for(var m=Object.keys(d.props),v=0;v<m.length;v++){var E=m[v];if(E!=="children"&&E!=="key"){Fe(d),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",E),Fe(null);break}}d.ref!==null&&(Fe(d),j("Invalid attribute `ref` supplied to `React.Fragment`."),Fe(null))}}function mt(d,m,v,E,N,R){{var S=K(d);if(!S){var $="";(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&($+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var X=An(N);X?$+=X:$+=ut();var _;d===null?_="null":yr(d)?_="array":d!==void 0&&d.$$typeof===r?(_="<"+(M(d.type)||"Unknown")+" />",$=" Did you accidentally export a JSX literal instead of a component?"):_=typeof d,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_,$)}var V=Pn(d,m,v,N,R);if(V==null)return V;if(S){var oe=m.children;if(oe!==void 0)if(E)if(yr(oe)){for(var Oe=0;Oe<oe.length;Oe++)ht(oe[Oe],d);Object.freeze&&Object.freeze(oe)}else j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ht(oe,d)}return d===t?Wn(V):On(V),V}}function _n(d,m,v){return mt(d,m,v,!0)}function Vn(d,m,v){return mt(d,m,v,!1)}var In=Vn,Dn=_n;Ye.Fragment=t,Ye.jsx=In,Ye.jsxs=Dn}()),Ye}process.env.NODE_ENV==="production"?Rr.exports=Hn():Rr.exports=zn();var i=Rr.exports;const Un=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o="",filled:a=!1})=>{const l=!(t&&t.length>0);return i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:o||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:t}),i.jsx("path",{d:"M12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 9.34784 20.9464 6.8043 19.0711 4.92893C17.1957 3.05357 14.6522 2 12 2C9.34784 2 6.8043 3.05357 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C6.8043 20.9464 9.34784 22 12 22Z",stroke:a?"transparent":"currentColor",fill:a?"#157393":"none",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M12 17.5553V13.1108",stroke:a?"white":"currentColor",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M12 8.7333C11.8527 8.7333 11.7114 8.67477 11.6072 8.57058C11.503 8.4664 11.4445 8.32509 11.4445 8.17775C11.4445 8.03041 11.503 7.8891 11.6072 7.78491C11.7114 7.68072 11.8527 7.62219 12 7.62219",stroke:a?"white":"currentColor",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M12 8.7333C12.1473 8.7333 12.2887 8.67477 12.3928 8.57058C12.497 8.4664 12.5556 8.32509 12.5556 8.17775C12.5556 8.03041 12.497 7.8891 12.3928 7.78491C12.2887 7.68072 12.1473 7.62219 12 7.62219",stroke:a?"white":"currentColor",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})]})},Br=Un,Gn=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o="",filled:a=!1})=>{const l=!(t&&t.length>0);return i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#000000",className:n,"aria-hidden":`${l}`,role:o||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:t}),i.jsx("path",{d:"M10.8715 2.54037C11.0072 2.37168 11.1791 2.23557 11.3743 2.14206C11.5696 2.04854 11.7833 2 11.9998 2C12.2163 2 12.4301 2.04854 12.6253 2.14206C12.8206 2.23557 12.9924 2.37168 13.1281 2.54037L14.4714 4.21147C14.6235 4.40106 14.821 4.54927 15.0455 4.64243C15.27 4.73559 15.5144 4.7707 15.756 4.74452L17.8882 4.51264C18.1041 4.48866 18.3225 4.51354 18.5275 4.58543C18.7324 4.65731 18.9185 4.77437 19.0721 4.92793C19.2256 5.08149 19.3427 5.26762 19.4146 5.47255C19.4865 5.67747 19.5113 5.89594 19.4874 6.11178L19.2555 8.24397C19.2293 8.48564 19.2644 8.73001 19.3576 8.95453C19.4507 9.17905 19.5989 9.37648 19.7885 9.52862L21.4596 10.8719C21.6283 11.0076 21.7644 11.1794 21.8579 11.3747C21.9515 11.5699 22 11.7837 22 12.0002C22 12.2167 21.9515 12.4304 21.8579 12.6257C21.7644 12.8209 21.6283 12.9928 21.4596 13.1285L19.7832 14.4655C19.5937 14.6179 19.4455 14.8155 19.3524 15.0402C19.2592 15.2648 19.2241 15.5093 19.2502 15.7511L19.482 17.8832C19.5062 18.0991 19.4814 18.3177 19.4096 18.5227C19.3378 18.7277 19.2207 18.9139 19.0671 19.0675C18.9135 19.2211 18.7273 19.3381 18.5223 19.41C18.3173 19.4818 18.0988 19.5065 17.8829 19.4824L15.7507 19.2505C15.509 19.2242 15.2646 19.2593 15.0401 19.3525C14.8156 19.4456 14.6181 19.5939 14.4661 19.7836L13.1281 21.4484C12.9925 21.6173 12.8207 21.7535 12.6254 21.8471C12.4302 21.9407 12.2164 21.9893 11.9998 21.9893C11.7833 21.9893 11.5695 21.9407 11.3742 21.8471C11.1789 21.7535 11.0072 21.6173 10.8715 21.4484L9.52915 19.7782C9.37682 19.5886 9.17922 19.4404 8.95456 19.3473C8.7299 19.2541 8.48541 19.219 8.24361 19.2452L6.11142 19.4771C5.89551 19.5014 5.6769 19.4767 5.47181 19.405C5.26673 19.3332 5.08045 19.2162 4.92681 19.0625C4.77318 18.9089 4.65613 18.7226 4.58436 18.5175C4.5126 18.3124 4.48796 18.0938 4.51228 17.8779L4.74416 15.7457C4.77033 15.5039 4.73522 15.2594 4.64207 15.0348C4.54891 14.8101 4.40071 14.6125 4.21111 14.4602L2.54089 13.1178C2.37207 12.9822 2.23582 12.8104 2.14221 12.6151C2.0486 12.4199 2 12.2061 2 11.9895C2 11.773 2.0486 11.5592 2.14221 11.3639C2.23582 11.1686 2.37207 10.9969 2.54089 10.8612L4.21111 9.51795C4.40076 9.36588 4.54902 9.16845 4.64219 8.94391C4.73536 8.71938 4.77043 8.47498 4.74416 8.23331L4.51228 6.10112C4.48813 5.88525 4.51289 5.6667 4.58471 5.4617C4.65654 5.2567 4.77359 5.07049 4.92719 4.91689C5.08079 4.76329 5.267 4.64624 5.472 4.57441C5.67701 4.50259 5.89555 4.47783 6.11142 4.50198L8.24361 4.73385C8.4854 4.75995 8.72987 4.7248 8.95452 4.63165C9.17916 4.5385 9.37677 4.39034 9.52915 4.20081L10.8715 2.54037Z",stroke:a?"transparent":"currentColor",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",fill:a?"#387F14":"none"}),i.jsx("path",{d:"M15.3314 9.99585L11.7946 14.7115C11.7373 14.7878 11.6643 14.8509 11.5805 14.8966C11.4967 14.9422 11.404 14.9693 11.3089 14.9761C11.2137 14.9828 11.1181 14.969 11.0288 14.9356C10.9394 14.9023 10.8582 14.8501 10.7907 14.7826L8.66827 12.6611",stroke:a?"white":"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})},Hr=Gn,Zn=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o="",filled:a=!1})=>{const l=!(t&&t.length>0);return i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:o||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:t}),i.jsx("path",{d:"M13.3508 3.46672C13.2268 3.21422 13.0345 3.00155 12.7957 2.85282C12.557 2.70408 12.2813 2.62524 12 2.62524C11.7187 2.62524 11.443 2.70408 11.2042 2.85282C10.9655 3.00155 10.7732 3.21422 10.6492 3.46672L2.75501 19.5484C2.65998 19.7417 2.61579 19.956 2.6266 20.1711C2.63741 20.3863 2.70286 20.5951 2.81678 20.7779C2.9307 20.9607 3.08933 21.1115 3.2777 21.216C3.46606 21.3205 3.67794 21.3752 3.89334 21.375H20.1067C20.3221 21.3752 20.5339 21.3205 20.7223 21.216C20.9107 21.1115 21.0693 20.9607 21.1832 20.7779C21.2972 20.5951 21.3626 20.3863 21.3734 20.1711C21.3842 19.956 21.34 19.7417 21.245 19.5484L13.3508 3.46672Z",stroke:a?"transparent":"currentColor",fill:a?"#816E09":"none",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M12 18.25C11.8274 18.25 11.6875 18.1101 11.6875 17.9375C11.6875 17.7649 11.8274 17.625 12 17.625",stroke:a?"white":"currentColor",strokeWidth:s}),i.jsx("path",{d:"M12 18.25C12.1726 18.25 12.3125 18.1101 12.3125 17.9375C12.3125 17.7649 12.1726 17.625 12 17.625",stroke:a?"white":"currentColor",strokeWidth:s}),i.jsx("path",{d:"M12 15.125V8.875",stroke:a?"white":"currentColor",strokeWidth:s,strokeMiterlimit:"10",strokeLinecap:"round"})]})},zr=Zn,Yn=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o="",filled:a=!1})=>{const l=!(t&&t.length>0);return i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#000000",className:n,"aria-hidden":`${l}`,role:o||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:t}),i.jsx("path",{d:"M12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 9.34784 20.9464 6.8043 19.0711 4.92893C17.1957 3.05357 14.6522 2 12 2C9.34784 2 6.8043 3.05357 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C6.8043 20.9464 9.34784 22 12 22Z",stroke:a?"transparent":"currentColor",fill:a?"#A90508":"none",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M15.3344 8.66663L8.66666 15.3333",stroke:a?"white":"currentColor",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M8.66666 8.66663L15.3344 15.3333",stroke:a?"white":"currentColor",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})]})},Ur=Yn,qn=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o=""})=>{const a=!(t&&t.length>0);return i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M2.625 21.3741L21.375 2.62415",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M21.375 21.3741L2.625 2.62415",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Kn=qn,Jn=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o=""})=>{const a=!(t&&t.length>0);return i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M20.4917 3.50831C20.2079 3.22568 19.8709 3.00208 19.5002 2.85044C19.1294 2.69879 18.7324 2.62211 18.3318 2.62483C17.9313 2.62754 17.5353 2.70959 17.1667 2.86624C16.798 3.02288 16.4641 3.25103 16.1842 3.53748L4.10083 15.6208L2.625 21.375L8.37917 19.8991L20.4625 7.81581C20.749 7.53587 20.9771 7.20193 21.1337 6.8333C21.2904 6.46468 21.3724 6.06866 21.3752 5.66814C21.3779 5.26762 21.3012 4.87053 21.1495 4.49982C20.9979 4.1291 20.7743 3.79211 20.4917 3.50831Z",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M15.8383 3.8833L20.1167 8.16163",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.0933 5.6283L18.3717 9.90663",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M4.10083 15.6208L8.38333 19.895",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Xn=Jn,Qn=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o=""})=>{const a=!(t&&t.length>0);return i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M2 2V22.0007",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M2 3.33301H21.334C21.4625 3.33314 21.5881 3.37038 21.6959 3.44023C21.8037 3.51008 21.889 3.60958 21.9416 3.72676C21.9942 3.84394 22.0118 3.97381 21.9923 4.10077C21.9728 4.22772 21.9171 4.34634 21.8318 4.44238L18.2717 8.4443C18.0545 8.68843 17.9345 9.0038 17.9345 9.33055C17.9345 9.6573 18.0545 9.97268 18.2717 10.2168L21.8274 14.2214C21.9127 14.3174 21.9684 14.4361 21.9879 14.563C22.0073 14.69 21.9897 14.8198 21.9371 14.937C21.8845 15.0542 21.7992 15.1537 21.6915 15.2235C21.5837 15.2934 21.458 15.3306 21.3296 15.3308H2",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},es=Qn,rs=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o=""})=>{const a=!(t&&t.length>0);return i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M10.2221 20.6666C10.335 21.0512 10.5695 21.3889 10.8903 21.6292C11.2112 21.8694 11.6013 21.9992 12.0021 21.9992C12.4029 21.9992 12.793 21.8694 13.1139 21.6292C13.4348 21.3889 13.6692 21.0512 13.7821 20.6666",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 4V2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 4C13.7681 4 15.4638 4.70238 16.714 5.95262C17.9643 7.20286 18.6667 8.89856 18.6667 10.6667C18.6667 16.9298 20 18 20 18H4C4 18 5.33333 16.2969 5.33333 10.6667C5.33333 8.89856 6.03571 7.20286 7.28595 5.95262C8.5362 4.70238 10.2319 4 12 4V4Z",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},ts=rs,ns=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o=""})=>{const a=!(t&&t.length>0);return e==="16"&&r==="16"?i.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M6.88898 13.6672C6.95954 13.9076 7.10608 14.1187 7.30663 14.2688C7.50719 14.419 7.75099 14.5001 8.00152 14.5001C8.25205 14.5001 8.49585 14.419 8.6964 14.2688C8.89696 14.1187 9.04349 13.9076 9.11406 13.6672",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M8.00018 3.25005V2",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M8.00019 3.25012C9.1053 3.25012 10.1651 3.68913 10.9466 4.47056C11.728 5.25199 12.167 6.31183 12.167 7.41694C12.167 11.3315 13.0004 12.0005 13.0004 12.0005H3C3 12.0005 3.83336 10.936 3.83336 7.41694C3.83336 6.31183 4.27237 5.25199 5.0538 4.47056C5.83523 3.68913 6.89508 3.25012 8.00019 3.25012V3.25012Z",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"11.8",cy:"6.11104",r:"2.3",fill:"#BA1E50",stroke:"white"})]}):i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M10.2221 20.6666C10.335 21.0512 10.5695 21.3889 10.8903 21.6292C11.2112 21.8694 11.6013 21.9992 12.0021 21.9992C12.4029 21.9992 12.793 21.8694 13.1139 21.6292C13.4348 21.3889 13.6692 21.0512 13.7821 20.6666",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 4V2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 4C13.7681 4 15.4638 4.70238 16.714 5.95262C17.9643 7.20286 18.6667 8.89856 18.6667 10.6667C18.6667 16.9298 20 18 20 18H4C4 18 5.33333 16.2969 5.33333 10.6667C5.33333 8.89856 6.03571 7.20286 7.28595 5.95262C8.5362 4.70238 10.2319 4 12 4V4Z",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"18",cy:"8",r:"4",fill:"#BA1E50",stroke:"white",strokeWidth:"2"})]})},ss=ns,os=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o=""})=>{const a=!(t&&t.length>0);return i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M9.33325 9.33315C9.33335 8.84429 9.46782 8.36486 9.72198 7.94726C9.97614 7.52966 10.3402 7.18996 10.7744 6.96528C11.2085 6.74062 11.6962 6.63962 12.1838 6.67335C12.6716 6.70706 13.1406 6.8742 13.5397 7.15648C13.9389 7.43877 14.2527 7.82534 14.4469 8.27394C14.6413 8.72255 14.7085 9.21592 14.6413 9.70015C14.5741 10.1844 14.3751 10.6408 14.0661 11.0196C13.757 11.3984 13.3497 11.6848 12.8888 11.8478C12.6287 11.9398 12.4036 12.1101 12.2444 12.3353C12.0852 12.5607 11.9997 12.8297 11.9999 13.1056V13.9998",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12.0001 17.3333C11.816 17.3333 11.6667 17.184 11.6667 17C11.6667 16.8159 11.816 16.6666 12.0001 16.6666",strokeWidth:s,stroke:"currentColor"}),i.jsx("path",{d:"M12 17.3333C12.1841 17.3333 12.3333 17.184 12.3333 17C12.3333 16.8159 12.1841 16.6666 12 16.6666",strokeWidth:s,stroke:"currentColor"}),i.jsx("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47716 17.5228 2 12 2C6.47716 2 2 6.47716 2 12C2 17.5228 6.47716 22 12 22Z",strokeWidth:s,strokeMiterlimit:"10",stroke:"currentColor"})]})},as=os,is=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o=""})=>{const a=!(t&&t.length>0);return i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M9.1042 3.96154L9.83189 2.08308C9.95462 1.76503 10.1705 1.49146 10.4514 1.29821C10.7322 1.10495 11.0648 1.00101 11.4057 1H12.7934C13.1343 1.00101 13.467 1.10495 13.7478 1.29821C14.0286 1.49146 14.2446 1.76503 14.3673 2.08308L15.095 3.96154L17.5657 5.38308L19.5627 5.07846C19.8952 5.03333 20.2336 5.08806 20.5349 5.23572C20.8363 5.38337 21.0869 5.61727 21.255 5.90769L21.9319 7.09231C22.1054 7.38736 22.1853 7.72807 22.1611 8.06948C22.1369 8.41089 22.0098 8.73694 21.7965 9.00462L20.5611 10.5785V13.4215L21.8304 14.9954C22.0437 15.2631 22.1708 15.5891 22.1949 15.9305C22.2191 16.2719 22.1392 16.6126 21.9657 16.9077L21.2888 18.0923C21.1207 18.3827 20.8701 18.6166 20.5688 18.7643C20.2674 18.9119 19.929 18.9667 19.5965 18.9215L17.5996 18.6169L15.1288 20.0385L14.4011 21.9169C14.2784 22.235 14.0625 22.5085 13.7817 22.7018C13.5008 22.8951 13.1682 22.999 12.8273 23H11.4057C11.0648 22.999 10.7322 22.8951 10.4514 22.7018C10.1705 22.5085 9.95462 22.235 9.83189 21.9169L9.1042 20.0385L6.63343 18.6169L4.63651 18.9215C4.304 18.9667 3.96558 18.9119 3.66425 18.7643C3.36292 18.6166 3.11229 18.3827 2.9442 18.0923L2.26728 16.9077C2.09382 16.6126 2.0139 16.2719 2.03807 15.9305C2.06224 15.5891 2.18937 15.2631 2.40266 14.9954L3.63805 13.4215V10.5785L2.36882 9.00462C2.15552 8.73694 2.0284 8.41089 2.00423 8.06948C1.98006 7.72807 2.05997 7.38736 2.23343 7.09231L2.91036 5.90769C3.07844 5.61727 3.32907 5.38337 3.6304 5.23572C3.93173 5.08806 4.27015 5.03333 4.60266 5.07846L6.59959 5.38308L9.1042 3.96154ZM8.71497 12C8.71497 12.6694 8.91348 13.3238 9.28538 13.8804C9.65729 14.437 10.1859 14.8708 10.8044 15.127C11.4228 15.3832 12.1033 15.4502 12.7599 15.3196C13.4164 15.189 14.0195 14.8666 14.4929 14.3933C14.9662 13.9199 15.2886 13.3169 15.4192 12.6603C15.5498 12.0038 15.4827 11.3232 15.2266 10.7048C14.9704 10.0863 14.5366 9.5577 13.98 9.1858C13.4234 8.81389 12.769 8.61538 12.0996 8.61538C11.2019 8.61538 10.341 8.97198 9.7063 9.60672C9.07156 10.2415 8.71497 11.1023 8.71497 12V12Z",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},ls=is,ds=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o=""})=>{const a=!(t&&t.length>0);return i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M2.00003 5H22V19H2.00003V5Z",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M21.6772 5.51294L13.921 11.3593C13.3703 11.7745 12.6949 11.9997 12 11.9997C11.3052 11.9997 10.6298 11.7745 10.0791 11.3593L2.32291 5.51294",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},cs=ds,us=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o=""})=>{const a=!(t&&t.length>0);return i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M12 22C17.5228 22 22 17.5229 22 12.0001C22 6.47721 17.5228 2 12 2C6.47716 2 2 6.47721 2 12.0001C2 17.5229 6.47716 22 12 22Z",strokeWidth:s,strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.88889 11.9554H16.9334",strokeWidth:s,strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},fs=us,ps=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o=""})=>{const a=!(t&&t.length>0);return i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M2 5.6366H22",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.0454 2H9.95446C9.5928 2 9.24595 2.14367 8.99022 2.3994C8.73449 2.65513 8.59082 3.00198 8.59082 3.36364V5.63636H15.409V3.36364C15.409 3.00198 15.2653 2.65513 15.0096 2.3994C14.7539 2.14367 14.407 2 14.0454 2Z",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M9.95453 17.2275V10.4093",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.0455 17.2275V10.4093",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M18.2364 20.7457C18.2111 21.0873 18.0573 21.4067 17.8059 21.6395C17.5546 21.8723 17.2244 22.0012 16.8818 22.0002H7.11818C6.77561 22.0012 6.4454 21.8723 6.19406 21.6395C5.94273 21.4067 5.78893 21.0873 5.76364 20.7457L4.5 5.6366H19.5L18.2364 20.7457Z",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},hs=ps,ms=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o=""})=>{const a=!(t&&t.length>0);return i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M21.375 8.09253L12.4417 17.025C12.3837 17.0831 12.3148 17.1291 12.2391 17.1605C12.1632 17.192 12.082 17.2082 12 17.2082C11.918 17.2082 11.8368 17.192 11.7609 17.1605C11.6852 17.1291 11.6163 17.0831 11.5583 17.025L2.625 8.09253",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},gs=ms,bs=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o=""})=>{const a=!(t&&t.length>0);return i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M20.125 5.125H3.875C3.18464 5.125 2.625 5.68464 2.625 6.375V20.125C2.625 20.8153 3.18464 21.375 3.875 21.375H20.125C20.8153 21.375 21.375 20.8153 21.375 20.125V6.375C21.375 5.68464 20.8153 5.125 20.125 5.125Z",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M2.625 10.125H21.375",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M7.625 7V2.625",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M16.375 7V2.625",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.6875 13.875C6.51491 13.875 6.375 13.7351 6.375 13.5625C6.375 13.3899 6.51491 13.25 6.6875 13.25",strokeWidth:s,stroke:"currentColor"}),i.jsx("path",{d:"M6.6875 13.875C6.86009 13.875 7 13.7351 7 13.5625C7 13.3899 6.86009 13.25 6.6875 13.25",strokeWidth:s,stroke:"currentColor"}),i.jsx("path",{d:"M6.6875 18.25C6.51491 18.25 6.375 18.1101 6.375 17.9375C6.375 17.7649 6.51491 17.625 6.6875 17.625",strokeWidth:s,stroke:"currentColor"}),i.jsx("path",{d:"M6.6875 18.25C6.86009 18.25 7 18.1101 7 17.9375C7 17.7649 6.86009 17.625 6.6875 17.625",strokeWidth:s,stroke:"currentColor"}),i.jsx("path",{d:"M12 13.875C11.8274 13.875 11.6875 13.7351 11.6875 13.5625C11.6875 13.3899 11.8274 13.25 12 13.25",strokeWidth:s,stroke:"currentColor"}),i.jsx("path",{d:"M12 13.875C12.1726 13.875 12.3125 13.7351 12.3125 13.5625C12.3125 13.3899 12.1726 13.25 12 13.25",strokeWidth:s,stroke:"currentColor"}),i.jsx("path",{d:"M12 18.25C11.8274 18.25 11.6875 18.1101 11.6875 17.9375C11.6875 17.7649 11.8274 17.625 12 17.625",strokeWidth:s,stroke:"currentColor"}),i.jsx("path",{d:"M12 18.25C12.1726 18.25 12.3125 18.1101 12.3125 17.9375C12.3125 17.7649 12.1726 17.625 12 17.625",strokeWidth:s,stroke:"currentColor"}),i.jsx("path",{d:"M17.3125 13.875C17.1399 13.875 17 13.7351 17 13.5625C17 13.3899 17.1399 13.25 17.3125 13.25",strokeWidth:s,stroke:"currentColor"}),i.jsx("path",{d:"M17.3125 13.875C17.4851 13.875 17.625 13.7351 17.625 13.5625C17.625 13.3899 17.4851 13.25 17.3125 13.25",strokeWidth:s,stroke:"currentColor"}),i.jsx("path",{d:"M17.3125 18.25C17.1399 18.25 17 18.1101 17 17.9375C17 17.7649 17.1399 17.625 17.3125 17.625",strokeWidth:s,stroke:"currentColor"}),i.jsx("path",{d:"M17.3125 18.25C17.4851 18.25 17.625 18.1101 17.625 17.9375C17.625 17.7649 17.4851 17.625 17.3125 17.625",strokeWidth:s,stroke:"currentColor"})]})},vs=bs,xs=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o=""})=>{const a=!(t&&t.length>0);return i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M17.2667 20.9723L12 17.2856L6.73333 20.9723C6.6397 21.0378 6.52988 21.0764 6.41584 21.0839C6.3018 21.0914 6.18789 21.0674 6.08651 21.0147C5.98512 20.9619 5.90015 20.8824 5.84082 20.7847C5.78149 20.687 5.75007 20.5749 5.75 20.4606V4.16064C5.75 3.82912 5.8817 3.51118 6.11612 3.27676C6.35054 3.04234 6.66848 2.91064 7 2.91064H17C17.3315 2.91064 17.6495 3.04234 17.8839 3.27676C18.1183 3.51118 18.25 3.82912 18.25 4.16064V20.4606C18.2499 20.5749 18.2185 20.687 18.1592 20.7847C18.0999 20.8824 18.0149 20.9619 17.9135 21.0147C17.8121 21.0674 17.6982 21.0914 17.5842 21.0839C17.4701 21.0764 17.3603 21.0378 17.2667 20.9723Z",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M9.5 2.91162V19.0358",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.5 2.91162V19.0358",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Cs=xs,ws=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o=""})=>{const a=!(t&&t.length>0);return e==="16"&&r==="16"?i.jsxs("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M11.7377 15.4192L7.97053 12.7822L4.20336 15.4192C4.13638 15.4661 4.05784 15.4937 3.97627 15.499C3.89469 15.5044 3.81322 15.4873 3.7407 15.4495C3.66818 15.4118 3.6074 15.3549 3.56496 15.285C3.52252 15.2152 3.50005 15.135 3.5 15.0532V3.39411C3.5 3.15697 3.5942 2.92955 3.76188 2.76188C3.92955 2.5942 4.15697 2.5 4.39411 2.5H11.5469C11.7841 2.5 12.0115 2.5942 12.1792 2.76188C12.3469 2.92955 12.4411 3.15697 12.4411 3.39411V15.0532C12.441 15.135 12.4185 15.2152 12.3761 15.285C12.3337 15.3549 12.2729 15.4118 12.2004 15.4495C12.1278 15.4873 12.0464 15.5044 11.9648 15.499C11.8832 15.4937 11.8047 15.4661 11.7377 15.4192Z",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.18231 2.50098V14.0343",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M9.75873 2.50098V14.0343",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"12.8",cy:"3.11104",r:"2.3",fill:"#BA1E50",stroke:"white"})]}):i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M17.2667 21.9723L12 18.2856L6.73333 21.9723C6.6397 22.0378 6.52988 22.0764 6.41584 22.0839C6.3018 22.0914 6.18789 22.0674 6.08651 22.0147C5.98512 21.9619 5.90015 21.8824 5.84082 21.7847C5.78149 21.687 5.75007 21.5749 5.75 21.4606V5.16064C5.75 4.82912 5.8817 4.51118 6.11612 4.27676C6.35054 4.04234 6.66848 3.91064 7 3.91064H17C17.3315 3.91064 17.6495 4.04234 17.8839 4.27676C18.1183 4.51118 18.25 4.82912 18.25 5.16064V21.4606C18.2499 21.5749 18.2185 21.687 18.1592 21.7847C18.0999 21.8824 18.0149 21.9619 17.9135 22.0147C17.8121 22.0674 17.6982 22.0914 17.5842 22.0839C17.4701 22.0764 17.3603 22.0378 17.2667 21.9723Z",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M9.5 3.91162V20.0358",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.5 3.91162V20.0358",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"19",cy:"5",r:"4",fill:"#BA1E50",stroke:"white",strokeWidth:"2"})]})},ks=ws,ys=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o=""})=>{const a=!(t&&t.length>0);return i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M3.22667 13.1308C4.01013 14.9742 5.49382 16.431 7.35134 17.1805C9.20886 17.9301 11.2881 17.911 13.1315 17.1276C14.975 16.3441 16.4317 14.8604 17.1813 13.0029C17.9308 11.1454 17.9118 9.06617 17.1283 7.2227C16.3449 5.37922 14.8612 3.92248 13.0037 3.17294C11.1461 2.42339 9.06694 2.44244 7.22347 3.2259C5.38 4.00936 3.92325 5.49305 3.17371 7.35057C2.42416 9.20809 2.44322 11.2873 3.22667 13.1308Z",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M15.5175 15.5167L21.375 21.3751",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},js=ys,Es=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o=""})=>{const a=!(t&&t.length>0);return i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M17.3333 5.01583C18.7245 4.79227 20.1306 4.67518 21.5396 4.66561C21.6606 4.66375 21.7775 4.70975 21.8649 4.79361C21.9506 4.87667 21.9993 4.99071 22 5.11006V19.1261C21.9976 19.3705 21.8 19.5681 21.5556 19.5705C14.184 19.6621 12 21.9989 12 21.9989V7.09406C12 7.09406 9.81778 4.75983 2.46044 4.66561C2.33876 4.66328 2.22112 4.70931 2.13333 4.79361C2.04829 4.87697 2.00026 4.99097 2 5.11006V19.1261C2.00241 19.3705 2.19999 19.5681 2.44444 19.5705C9.816 19.6621 12 21.9989 12 21.9989",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 21.5609C12.1404 20.4089 12.6507 19.3334 13.4542 18.496C14.4882 17.3807 15.8441 16.6154 17.3333 16.3067V2.43734C17.3306 2.29208 17.2542 2.15817 17.1307 2.08178C16.9997 1.99949 16.8395 1.97808 16.6916 2.02312C15.4443 2.38152 14.3226 3.08277 13.4542 4.04712C12.6511 4.88407 12.1408 5.95882 12 7.11023",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Ls=Es,$s=({width:e="24",height:r="24",className:n="",title:t="",role:s=""})=>{const o=!(t&&t.length>0);return i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",stroke:"#000000",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${o}`,role:s||(o?"graphics-document":"img"),children:[!o&&i.jsx("title",{children:t}),i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",stroke:"currentColor",d:"M20.5002 6.50003H3.50002C3.10219 6.50003 2.72065 6.342 2.43934 6.06069C2.15804 5.77938 2 5.39785 2 5.00002C2 4.60219 2.15804 4.22065 2.43934 3.93934C2.72065 3.65804 3.10219 3.5 3.50002 3.5H20.5002C20.898 3.5 21.2796 3.65804 21.5609 3.93934C21.8422 4.22065 22.0002 4.60219 22.0002 5.00002C22.0002 5.39785 21.8422 5.77938 21.5609 6.06069C21.2796 6.342 20.898 6.50003 20.5002 6.50003ZM20.5002 13.5001H3.50002C3.10219 13.5001 2.72065 13.3421 2.43934 13.0608C2.15804 12.7795 2 12.3979 2 12.0001C2 11.6023 2.15804 11.2207 2.43934 10.9394C2.72065 10.6581 3.10219 10.5001 3.50002 10.5001H20.5002C20.898 10.5001 21.2796 10.6581 21.5609 10.9394C21.8422 11.2207 22.0002 11.6023 22.0002 12.0001C22.0002 12.3979 21.8422 12.7795 21.5609 13.0608C21.2796 13.3421 20.898 13.5001 20.5002 13.5001ZM3.50002 20.5002H20.5002C20.898 20.5002 21.2796 20.3422 21.5609 20.0608C21.8422 19.7795 22.0002 19.398 22.0002 19.0002C22.0002 18.6023 21.8422 18.2208 21.5609 17.9395C21.2796 17.6582 20.898 17.5002 20.5002 17.5002H3.50002C3.10219 17.5002 2.72065 17.6582 2.43934 17.9395C2.15804 18.2208 2 18.6023 2 19.0002C2 19.398 2.15804 19.7795 2.43934 20.0608C2.72065 20.3422 3.10219 20.5002 3.50002 20.5002Z"})]})},Ms=$s,Ss=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o=""})=>{const a=!(t&&t.length>0);return i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M12 8V16",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M8 12H16",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M2 12C2 13.3132 2.25866 14.6136 2.7612 15.8268C3.26375 17.0401 4.00035 18.1425 4.92893 19.0711C5.85752 19.9997 6.95991 20.7362 8.17317 21.2388C9.38642 21.7413 10.6868 22 12 22C13.3132 22 14.6136 21.7413 15.8268 21.2388C17.0401 20.7362 18.1425 19.9997 19.0711 19.0711C19.9997 18.1425 20.7362 17.0401 21.2388 15.8268C21.7413 14.6136 22 13.3132 22 12C22 10.6868 21.7413 9.38642 21.2388 8.17317C20.7362 6.95991 19.9997 5.85752 19.0711 4.92893C18.1425 4.00035 17.0401 3.26375 15.8268 2.7612C14.6136 2.25866 13.3132 2 12 2C10.6868 2 9.38642 2.25866 8.17317 2.7612C6.95991 3.26375 5.85752 4.00035 4.92893 4.92893C4.00035 5.85752 3.26375 6.95991 2.7612 8.17317C2.25866 9.38642 2 10.6868 2 12Z",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Ns=Ss,Ts=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o=""})=>{const a=!(t&&t.length>0);return i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",stroke:"#000000",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M9.70831 14.1025L21.375 2.625",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M21.375 9.18417V2.625H14.7083",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12.1042 6.79163H3.35417C3.16078 6.79163 2.97531 6.86845 2.83857 7.00519C2.70182 7.14194 2.625 7.32741 2.625 7.52079V20.6458C2.625 20.8392 2.70182 21.0246 2.83857 21.1614C2.97531 21.2981 3.16078 21.375 3.35417 21.375H16.4792C16.6726 21.375 16.858 21.2981 16.9948 21.1614C17.1315 21.0246 17.2083 20.8392 17.2083 20.6458V11.8958",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Rs=Ts,Ps=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o=""})=>{const a=!(t&&t.length>0);return e==="16"&&r==="16"?i.jsxs("svg",{width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M11.7333 4.11082C12.7071 3.95432 13.6914 3.87236 14.6777 3.86566C14.7624 3.86436 14.8443 3.89656 14.9054 3.95526C14.9654 4.0134 14.9995 4.09323 15 4.17677V13.988C14.9983 14.1591 14.86 14.2974 14.6889 14.2991C9.5288 14.3632 8 15.999 8 15.999V5.56557C8 5.56557 6.47244 3.93162 1.32231 3.86566C1.23713 3.86403 1.15478 3.89625 1.09333 3.95526C1.0338 4.01361 1.00018 4.09341 1 4.17677V13.988C1.00169 14.1591 1.13999 14.2974 1.31111 14.2991C6.4712 14.3632 8 15.999 8 15.999",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M8 15.6926C8.09831 14.8862 8.4555 14.1334 9.01796 13.5472C9.74172 12.7665 10.6909 12.2308 11.7333 12.0147V2.30614C11.7314 2.20446 11.678 2.11072 11.5915 2.05725C11.4998 1.99964 11.3877 1.98466 11.2841 2.01618C10.411 2.26706 9.62585 2.75794 9.01796 3.43298C8.45574 4.01885 8.09857 4.77117 8 5.57716",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"15.8",cy:"3.11104",r:"2.3",fill:"#BA1E50",stroke:"white"})]}):i.jsxs("svg",{width:"29",height:"24",viewBox:"0 0 29 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M17.3333 5.01583C18.7245 4.79227 20.1306 4.67518 21.5396 4.66561C21.6606 4.66375 21.7775 4.70975 21.8649 4.79361C21.9506 4.87667 21.9993 4.99071 22 5.11006V19.1261C21.9976 19.3705 21.8 19.5681 21.5556 19.5705C14.184 19.6621 12 21.9989 12 21.9989V7.09406C12 7.09406 9.81778 4.75983 2.46044 4.66561C2.33876 4.66328 2.22112 4.70931 2.13333 4.79361C2.04829 4.87697 2.00026 4.99097 2 5.11006V19.1261C2.00241 19.3705 2.19999 19.5681 2.44444 19.5705C9.816 19.6621 12 21.9989 12 21.9989",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 21.5609C12.1404 20.4089 12.6507 19.3334 13.4542 18.496C14.4882 17.3807 15.8441 16.6154 17.3333 16.3067V2.43734C17.3306 2.29208 17.2542 2.15817 17.1307 2.08178C16.9997 1.99949 16.8395 1.97808 16.6916 2.02312C15.4443 2.38152 14.3226 3.08277 13.4542 4.04712C12.6511 4.88407 12.1408 5.95882 12 7.11023",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"24",cy:"5",r:"4",fill:"#BA1E50",stroke:"white",strokeWidth:"2"})]})},As=Ps,Fs=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o=""})=>{const a=!(t&&t.length>0);return i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",className:n,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 9.34784 20.9464 6.8043 19.0711 4.92893C17.1957 3.05357 14.6522 2 12 2C9.34784 2 6.8043 3.05357 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C6.8043 20.9464 9.34784 22 12 22Z",stroke:"currentColor",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M15.5 9L11 15L8 12",stroke:"currentColor",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})]})},Os=Fs,Ws=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o=""})=>{const a=!(t&&t.length>0);return i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M4.9375 9.4375H19C19 9.4375 19.9375 9.4375 19.9375 10.375V21.625C19.9375 21.625 19.9375 22.5625 19 22.5625H4.9375C4.9375 22.5625 4 22.5625 4 21.625V10.375C4 10.375 4 9.4375 4.9375 9.4375Z",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.8125 6.15625C6.8125 4.78873 7.35575 3.47721 8.32273 2.51023C9.28971 1.54325 10.6012 1 11.9688 1C13.3363 1 14.6478 1.54325 15.6148 2.51023C16.5818 3.47721 17.125 4.78873 17.125 6.15625V9.4375",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M11.0312 14.5938C11.0312 14.8424 11.13 15.0808 11.3058 15.2567C11.4817 15.4325 11.7201 15.5312 11.9688 15.5312C12.2174 15.5312 12.4558 15.4325 12.6317 15.2567C12.8075 15.0808 12.9062 14.8424 12.9062 14.5938C12.9062 14.3451 12.8075 14.1067 12.6317 13.9308C12.4558 13.755 12.2174 13.6562 11.9688 13.6562C11.7201 13.6562 11.4817 13.755 11.3058 13.9308C11.13 14.1067 11.0312 14.3451 11.0312 14.5938Z",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M11.9688 15.5312V18.3438",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},_s=Ws,Vs=({width:e="24",height:r="24",className:n="",title:t="",stroke:s="1.5",role:o=""})=>{const a=!(t&&t.length>0);return i.jsxs("svg",{width:e,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:o||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:t}),i.jsx("path",{d:"M11.0312 14.5938C11.0312 14.8424 11.13 15.0808 11.3058 15.2567C11.4817 15.4325 11.7201 15.5312 11.9688 15.5312C12.2174 15.5312 12.4558 15.4325 12.6317 15.2567C12.8075 15.0808 12.9062 14.8424 12.9062 14.5938C12.9062 14.3451 12.8075 14.1067 12.6317 13.9308C12.4558 13.755 12.2174 13.6562 11.9688 13.6562C11.7201 13.6562 11.4817 13.755 11.3058 13.9308C11.13 14.1067 11.0312 14.3451 11.0312 14.5938Z",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M11.9688 15.5312V18.3438",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M4.9375 9.4375H19C19 9.4375 19.9375 9.4375 19.9375 10.375V21.625C19.9375 21.625 19.9375 22.5625 19 22.5625H4.9375C4.9375 22.5625 4 22.5625 4 21.625V10.375C4 10.375 4 9.4375 4.9375 9.4375Z",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.8125 6.15625C6.8125 4.78873 7.35575 3.47721 8.32273 2.51023C9.28971 1.54325 10.6012 1 11.9688 1C13.3363 1 14.6478 1.54325 15.6148 2.51023C16.5818 3.47721 17.125 4.78873 17.125 6.15625V9.4375H6.8125V6.15625Z",strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Is=Vs;function Nt(e){var r,n,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(n=Nt(e[r]))&&(t&&(t+=" "),t+=n);else for(r in e)e[r]&&(t&&(t+=" "),t+=r);return t}function Ds(){for(var e,r,n=0,t="";n<arguments.length;)(e=arguments[n++])&&(r=Nt(e))&&(t&&(t+=" "),t+=r);return t}const xt=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,Ct=Ds,P=(e,r)=>n=>{var t;if((r==null?void 0:r.variants)==null)return Ct(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:o}=r,a=Object.keys(s).map(p=>{const f=n==null?void 0:n[p],h=o==null?void 0:o[p];if(f===null)return null;const g=xt(f)||xt(h);return s[p][g]}),l=n&&Object.entries(n).reduce((p,f)=>{let[h,g]=f;return g===void 0||(p[h]=g),p},{}),c=r==null||(t=r.compoundVariants)===null||t===void 0?void 0:t.reduce((p,f)=>{let{class:h,className:g,...b}=f;return Object.entries(b).every(x=>{let[w,C]=x;return Array.isArray(C)?C.includes({...o,...l}[w]):{...o,...l}[w]===C})?[...p,h,g]:p},[]);return Ct(e,a,c,n==null?void 0:n.class,n==null?void 0:n.className)},Gr="-";function Bs(e){const r=zs(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:t}=e;function s(a){const l=a.split(Gr);return l[0]===""&&l.length!==1&&l.shift(),Tt(l,r)||Hs(a)}function o(a,l){const c=n[a]||[];return l&&t[a]?[...c,...t[a]]:c}return{getClassGroupId:s,getConflictingClassGroupIds:o}}function Tt(e,r){var a;if(e.length===0)return r.classGroupId;const n=e[0],t=r.nextPart.get(n),s=t?Tt(e.slice(1),t):void 0;if(s)return s;if(r.validators.length===0)return;const o=e.join(Gr);return(a=r.validators.find(({validator:l})=>l(o)))==null?void 0:a.classGroupId}const wt=/^\[(.+)\]$/;function Hs(e){if(wt.test(e)){const r=wt.exec(e)[1],n=r==null?void 0:r.substring(0,r.indexOf(":"));if(n)return"arbitrary.."+n}}function zs(e){const{theme:r,prefix:n}=e,t={nextPart:new Map,validators:[]};return Gs(Object.entries(e.classGroups),n).forEach(([o,a])=>{Pr(a,t,o,r)}),t}function Pr(e,r,n,t){e.forEach(s=>{if(typeof s=="string"){const o=s===""?r:kt(r,s);o.classGroupId=n;return}if(typeof s=="function"){if(Us(s)){Pr(s(t),r,n,t);return}r.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([o,a])=>{Pr(a,kt(r,o),n,t)})})}function kt(e,r){let n=e;return r.split(Gr).forEach(t=>{n.nextPart.has(t)||n.nextPart.set(t,{nextPart:new Map,validators:[]}),n=n.nextPart.get(t)}),n}function Us(e){return e.isThemeGetter}function Gs(e,r){return r?e.map(([n,t])=>{const s=t.map(o=>typeof o=="string"?r+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([a,l])=>[r+a,l])):o);return[n,s]}):e}function Zs(e){if(e<1)return{get:()=>{},set:()=>{}};let r=0,n=new Map,t=new Map;function s(o,a){n.set(o,a),r++,r>e&&(r=0,t=n,n=new Map)}return{get(o){let a=n.get(o);if(a!==void 0)return a;if((a=t.get(o))!==void 0)return s(o,a),a},set(o,a){n.has(o)?n.set(o,a):s(o,a)}}}const Rt="!";function Ys(e){const r=e.separator,n=r.length===1,t=r[0],s=r.length;return function(a){const l=[];let c=0,p=0,f;for(let w=0;w<a.length;w++){let C=a[w];if(c===0){if(C===t&&(n||a.slice(w,w+s)===r)){l.push(a.slice(p,w)),p=w+s;continue}if(C==="/"){f=w;continue}}C==="["?c++:C==="]"&&c--}const h=l.length===0?a:a.substring(p),g=h.startsWith(Rt),b=g?h.substring(1):h,x=f&&f>p?f-p:void 0;return{modifiers:l,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:x}}}function qs(e){if(e.length<=1)return e;const r=[];let n=[];return e.forEach(t=>{t[0]==="["?(r.push(...n.sort(),t),n=[]):n.push(t)}),r.push(...n.sort()),r}function Ks(e){return{cache:Zs(e.cacheSize),splitModifiers:Ys(e),...Bs(e)}}const Js=/\s+/;function Xs(e,r){const{splitModifiers:n,getClassGroupId:t,getConflictingClassGroupIds:s}=r,o=new Set;return e.trim().split(Js).map(a=>{const{modifiers:l,hasImportantModifier:c,baseClassName:p,maybePostfixModifierPosition:f}=n(a);let h=t(f?p.substring(0,f):p),g=!!f;if(!h){if(!f)return{isTailwindClass:!1,originalClassName:a};if(h=t(p),!h)return{isTailwindClass:!1,originalClassName:a};g=!1}const b=qs(l).join(":");return{isTailwindClass:!0,modifierId:c?b+Rt:b,classGroupId:h,originalClassName:a,hasPostfixModifier:g}}).reverse().filter(a=>{if(!a.isTailwindClass)return!0;const{modifierId:l,classGroupId:c,hasPostfixModifier:p}=a,f=l+c;return o.has(f)?!1:(o.add(f),s(c,p).forEach(h=>o.add(l+h)),!0)}).reverse().map(a=>a.originalClassName).join(" ")}function Qs(){let e=0,r,n,t="";for(;e<arguments.length;)(r=arguments[e++])&&(n=Pt(r))&&(t&&(t+=" "),t+=n);return t}function Pt(e){if(typeof e=="string")return e;let r,n="";for(let t=0;t<e.length;t++)e[t]&&(r=Pt(e[t]))&&(n&&(n+=" "),n+=r);return n}function eo(e,...r){let n,t,s,o=a;function a(c){const p=r.reduce((f,h)=>h(f),e());return n=Ks(p),t=n.cache.get,s=n.cache.set,o=l,l(c)}function l(c){const p=t(c);if(p)return p;const f=Xs(c,n);return s(c,f),f}return function(){return o(Qs.apply(null,arguments))}}function A(e){const r=n=>n[e]||[];return r.isThemeGetter=!0,r}const At=/^\[(?:([a-z-]+):)?(.+)\]$/i,ro=/^\d+\/\d+$/,to=new Set(["px","full","screen"]),no=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,so=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,oo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ao=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,io=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Ce(e){return Te(e)||to.has(e)||ro.test(e)}function Ee(e){return Ve(e,"length",go)}function Te(e){return!!e&&!Number.isNaN(Number(e))}function dr(e){return Ve(e,"number",Te)}function qe(e){return!!e&&Number.isInteger(Number(e))}function lo(e){return e.endsWith("%")&&Te(e.slice(0,-1))}function L(e){return At.test(e)}function Le(e){return no.test(e)}const co=new Set(["length","size","percentage"]);function uo(e){return Ve(e,co,Ft)}function fo(e){return Ve(e,"position",Ft)}const po=new Set(["image","url"]);function ho(e){return Ve(e,po,vo)}function mo(e){return Ve(e,"",bo)}function Ke(){return!0}function Ve(e,r,n){const t=At.exec(e);return t?t[1]?typeof r=="string"?t[1]===r:r.has(t[1]):n(t[2]):!1}function go(e){return so.test(e)&&!oo.test(e)}function Ft(){return!1}function bo(e){return ao.test(e)}function vo(e){return io.test(e)}function xo(){const e=A("colors"),r=A("spacing"),n=A("blur"),t=A("brightness"),s=A("borderColor"),o=A("borderRadius"),a=A("borderSpacing"),l=A("borderWidth"),c=A("contrast"),p=A("grayscale"),f=A("hueRotate"),h=A("invert"),g=A("gap"),b=A("gradientColorStops"),x=A("gradientColorStopPositions"),w=A("inset"),C=A("margin"),k=A("opacity"),j=A("padding"),Z=A("saturate"),T=A("scale"),H=A("sepia"),ie=A("skew"),Y=A("space"),z=A("translate"),q=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],ee=()=>["auto",L,r],y=()=>[L,r],M=()=>["",Ce,Ee],O=()=>["auto",Te,L],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],le=()=>["solid","dashed","dotted","double","none"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],de=()=>["start","end","center","between","around","evenly","stretch"],U=()=>["","0",L],be=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ce=()=>[Te,dr],re=()=>[Te,L];return{cacheSize:500,separator:":",theme:{colors:[Ke],spacing:[Ce,Ee],blur:["none","",Le,L],brightness:ce(),borderColor:[e],borderRadius:["none","","full",Le,L],borderSpacing:y(),borderWidth:M(),contrast:ce(),grayscale:U(),hueRotate:re(),invert:U(),gap:y(),gradientColorStops:[e],gradientColorStopPositions:[lo,Ee],inset:ee(),margin:ee(),opacity:ce(),padding:y(),saturate:ce(),scale:ce(),sepia:U(),skew:re(),space:y(),translate:y()},classGroups:{aspect:[{aspect:["auto","square","video",L]}],container:["container"],columns:[{columns:[Le]}],"break-after":[{"break-after":be()}],"break-before":[{"break-before":be()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),L]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",qe,L]}],basis:[{basis:ee()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",L]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",qe,L]}],"grid-cols":[{"grid-cols":[Ke]}],"col-start-end":[{col:["auto",{span:["full",qe,L]},L]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[Ke]}],"row-start-end":[{row:["auto",{span:[qe,L]},L]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",L]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",L]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...de()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...de(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...de(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[j]}],px:[{px:[j]}],py:[{py:[j]}],ps:[{ps:[j]}],pe:[{pe:[j]}],pt:[{pt:[j]}],pr:[{pr:[j]}],pb:[{pb:[j]}],pl:[{pl:[j]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[Y]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Y]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",L,r]}],"min-w":[{"min-w":[L,r,"min","max","fit"]}],"max-w":[{"max-w":[L,r,"none","full","min","max","fit","prose",{screen:[Le]},Le]}],h:[{h:[L,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[L,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[L,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[L,r,"auto","min","max","fit"]}],"font-size":[{text:["base",Le,Ee]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",dr]}],"font-family":[{font:[Ke]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",L]}],"line-clamp":[{"line-clamp":["none",Te,dr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ce,L]}],"list-image":[{"list-image":["none",L]}],"list-style-type":[{list:["none","disc","decimal",L]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ce,Ee]}],"underline-offset":[{"underline-offset":["auto",Ce,L]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),fo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",uo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ho]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...le(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:le()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...le()]}],"outline-offset":[{"outline-offset":[Ce,L]}],"outline-w":[{outline:[Ce,Ee]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[Ce,Ee]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Le,mo]}],"shadow-color":[{shadow:[Ke]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":fe()}],"bg-blend":[{"bg-blend":fe()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[t]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Le,L]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[h]}],saturate:[{saturate:[Z]}],sepia:[{sepia:[H]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[t]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[Z]}],"backdrop-sepia":[{"backdrop-sepia":[H]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",L]}],duration:[{duration:re()}],ease:[{ease:["linear","in","out","in-out",L]}],delay:[{delay:re()}],animate:[{animate:["none","spin","ping","pulse","bounce",L]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[qe,L]}],"translate-x":[{"translate-x":[z]}],"translate-y":[{"translate-y":[z]}],"skew-x":[{"skew-x":[ie]}],"skew-y":[{"skew-y":[ie]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",L]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",L]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",L]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ce,Ee,dr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const I=eo(xo);function Ot(){return Math.floor(Math.random()*1e7)}const Wt=(e,r,n,t,s)=>{const o=`preflight ${n}`;return{settings:i.jsx(ls,{width:e,height:r,className:o,title:t,role:s}),questionCircle:i.jsx(as,{width:e,height:r,className:o,title:t,role:s}),notifications:i.jsx(ts,{width:e,height:r,className:o,title:t,role:s}),flag:i.jsx(es,{width:e,height:r,className:o,title:t,role:s}),edit:i.jsx(Xn,{width:e,height:r,className:o,title:t,role:s}),infoCircle:i.jsx(Br,{width:e,height:r,className:o,title:t,role:s}),delete:i.jsx(hs,{width:e,height:r,className:o,title:t,role:s}),resourceCenter:i.jsx(Ls,{width:e,height:r,className:o,title:t,role:s}),search:i.jsx(js,{width:e,height:r,className:o,title:t,role:s}),error:i.jsx(Ur,{width:e,height:r,className:o,title:t,role:s}),warning:i.jsx(zr,{width:e,height:r,className:o,title:t,role:s}),dropdown:i.jsx(gs,{width:e,height:r,className:o,title:t,role:s}),calendar:i.jsx(vs,{width:e,height:r,className:o,title:t,role:s}),bookmark:i.jsx(Cs,{width:e,height:r,className:o,title:t,role:s}),menu:i.jsx(Ms,{width:e,height:r,className:o,title:t,role:s}),add:i.jsx(Ns,{width:e,height:r,className:o,title:t,role:s}),exclude:i.jsx(fs,{width:e,height:r,className:o,title:t,role:s}),email:i.jsx(cs,{width:e,height:r,className:o,title:t,role:s}),close:i.jsx(Kn,{width:e,height:r,className:o,title:t,role:s}),checkCircle:i.jsx(Hr,{width:e,height:r,className:o,title:t,role:s}),linkNewTab:i.jsx(Rs,{width:e,height:r,className:o,title:t,role:s}),lockOpened:i.jsx(_s,{width:e,height:r,className:o,title:t,role:s}),lockClosed:i.jsx(Is,{width:e,height:r,className:o,title:t,role:s}),check:i.jsx(Os,{width:e,height:r,className:o,title:t,role:s})}},_t=(e,r,n,t,s)=>{const o=`preflight ${n}`;return{notifications:i.jsx(ss,{width:e,height:r,className:o,title:t,role:s}),resourceCenter:i.jsx(As,{width:e,height:r,className:o,title:t,role:s}),bookmark:i.jsx(ks,{width:e,height:r,className:o,title:t,role:s})}},Vt=(e,r,n,t,s,o)=>{const a=`preflight ${n}`;return{infoCircle:i.jsx(Br,{width:e,height:r,className:a,title:t,role:s,filled:o}),error:i.jsx(Ur,{width:e,height:r,className:a,title:t,role:s,filled:o}),warning:i.jsx(zr,{width:e,height:r,className:a,title:t,role:s,filled:o}),checkCircle:i.jsx(Hr,{width:e,height:r,className:a,title:t,role:s,filled:o})}},Co=({size:e="small",name:r,hasIndicator:n=!1,className:t,altText:s,role:o=void 0,filled:a=!1})=>{const l={small:{width:"16",height:"16"},medium:{width:"24",height:"24"}},c=Wt(l[e].width,l[e].height,t,s,o),p=_t(l[e].width,l[e].height,t,s,o),f=Vt(l[e].width,l[e].height,t,s,o,a),h=n&&!a?p[r]||c[r]:a&&f[r]||c[r];return i.jsx(i.Fragment,{children:h})},me=Co;Object.keys(Wt()).sort((e,r)=>e.localeCompare(r));Object.keys(_t()).sort((e,r)=>e.localeCompare(r));Object.keys(Vt()).sort((e,r)=>e.localeCompare(r));function It(e){var r,n,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(n=It(e[r]))&&(t&&(t+=" "),t+=n)}else for(n in e)e[n]&&(t&&(t+=" "),t+=n);return t}function wo(){for(var e,r,n=0,t="",s=arguments.length;n<s;n++)(e=arguments[n])&&(r=It(e))&&(t&&(t+=" "),t+=r);return t}const tr=(...e)=>I(wo(...e)),ko=P("ds-rounded-full ds-border-t-acuity-blue ds-border-x-acuity-blue ds-border-b-neutrals-transparent ds-border-solid ds-animate-spin",{variants:{size:{small:["ds-w-4","ds-h-4","ds-border"],medium:["ds-w-5","ds-h-5","ds-border-2"],large:["ds-w-7","ds-h-7","ds-border-[3px]"],"extra-large":["ds-w-[6.5rem]","ds-h-[6.5rem]","ds-border-[6px]"]}}}),yo=P("preflight ds-inline-block ds-rounded focus-visible:ds-outline-none focus-visible:ds-ring-2 focus-visible:ds-ring-acuity-blue",{variants:{size:{small:"ds-p-1",medium:"ds-p-2",large:"ds-p-3","extra-large":"ds-p-4"}}}),jo=({size:e="medium",focusable:r=!0,label:n="",ariaLive:t="assertive",className:s=""})=>i.jsx("div",{tabIndex:r?0:void 0,"aria-label":n,"aria-live":t,className:r?tr(yo({size:e}),s):`preflight ds-rounded ${s}`,role:"status",children:i.jsx("div",{className:tr(ko({size:e}))})}),pr=jo,Dt=(e,r,n)=>{if(r){e.preventDefault();return}n(e)},br=(e,r,n)=>{if(r){e.preventDefault();return}n(e)},Eo=(e,r,n)=>{if(r){e.preventDefault();return}n(e)},Lo=(e,r,n)=>{if(r&&e.key!=="Tab"){e.preventDefault();return}n(e)},$o=(e,r,n)=>{if(r){e.preventDefault();return}n(e)},Mo=P(["preflight","!ds-font-sans","ds-rounded","ds-text-base","ds-font-semibold","ds-border","ds-transition","ds-duration-100","ds-text-nowrap","focus-visible:ds-border","focus-visible:ds-ring","focus-visible:ds-ring-2","focus-visible:ds-outline-none","focus-visible:ds-ring-offset-2"],{variants:{variant:{default:["ds-p-[10px]","ds-relative","ds-group"],small:["ds-p-1"]},isTransparent:{false:"",true:""},disabled:{false:["ds-text-neutrals-black","hover:ds-bg-neutrals-transparent-light","hover:ds-border-neutrals-transparent","active:ds-bg-neutrals-transparent-medium","active:ds-border-neutrals-transparent","focus-visible:ds-bg-neutrals-transparent-light","focus-visible:ds-border-neutrals-dark","focus-visible:ds-ring-neutrals-black"],true:["ds-bg-neutrals-transparent-light","ds-text-neutrals-dark","ds-border-neutrals-transparent","ds-cursor-not-allowed","focus-visible:ds-border-neutrals-light","focus-visible:ds-ring-neutrals-black"]}},compoundVariants:[{isTransparent:!0,disabled:!1,className:["ds-bg-neutrals-transparent","ds-border-neutrals-transparent"]},{isTransparent:!1,disabled:!1,className:["ds-bg-neutrals-white","ds-border-neutrals-white"]}]}),So=({variant:e="default",label:r="",disabled:n=!1,className:t="",onClick:s,iconName:o,iconSize:a="medium",hasIndicator:l=!1,hasTooltip:c=!0,isTransparent:p=!0,iconColor:f="",stateful:h=!1,...g})=>{const b=h||n;return i.jsxs("button",{onClick:x=>br(x,b,s),"aria-disabled":b,"aria-label":r,"aria-pressed":h,"aria-live":h?"assertive":"off",className:tr(Mo({variant:e,isTransparent:p,disabled:b}),t),...g,children:[h&&e==="default"?i.jsx(pr,{size:"medium",focusable:!1,label:r,ariaLive:"off"}):i.jsx(me,{size:e==="small"?"small":a,name:o!=null?o:"edit",hasIndicator:l,className:n?"ds-text-neutrals-dark":f&&f!==""?f:"ds-text-neutrals-black",altText:r}),e==="default"&&c&&i.jsx("div",{"aria-hidden":"true",className:`${b?"group-hover:ds-hidden":"group-hover:ds-block group-active:ds-block"} ds-absolute ds-left-1/2 ds-top-[3.5rem] ds-z-10 ds-hidden ds--translate-x-1/2 ds-cursor-default ds-text-nowrap ds-rounded ds-bg-neutrals-darker ds-px-2 ds-py-1 ds-text-sm ds-font-normal ds-text-neutrals-white ds-transition-all ds-duration-100 group-focus-visible:ds-block`,children:r})]})},vr=So,No=P(["preflight","ds-flex","ds-w-full","ds-flex-row","ds-justify-between","ds-rounded","ds-pl-5","ds-pr-[14px]","ds-py-4","!ds-font-sans"],{variants:{variant:{success:["ds-bg-success-green-lightest","ds-text-success-green-darkest"],info:["ds-bg-information-blue-lightest","ds-text-information-blue-darkest"],warning:["ds-bg-warning-yellow-lightest","ds-text-neutrals-darker"],error:["ds-bg-danger-red-lightest","ds-text-danger-red-darkest"]}}}),To=e=>I(No(e)),Ro=P("",{variants:{variant:{success:"ds-text-success-green-dark",info:"ds-text-information-blue-dark",warning:"ds-text-warning-yellow-darkest",error:"ds-text-danger-red-dark"}}}),yt=e=>I(Ro(e)),Po=P("",{variants:{variant:{success:["ds-text-success-green-darkest","ds-stroke-success-green-darkest"],info:["ds-text-information-blue-darkest","ds-stroke-information-blue-darkest"],warning:["ds-text-neutrals-darker","ds-stroke-neutrals-darker"],error:["ds-text-danger-red-darkest","ds-stroke-danger-red-darkest"]}}}),We=e=>I(Po(e)),Ao=({variant:e="info",isDismissible:r=!0,showIcon:n=!0,titleSize:t="large",title:s="",description:o="",content:a=void 0,closeAriaLabel:l="Close button",id:c="alert_"+Ot().toString(),handleClose:p,className:f="",...h})=>{const g={success:i.jsx(Hr,{className:We({variant:e})}),info:i.jsx(Br,{className:We({variant:e})}),warning:i.jsx(zr,{className:We({variant:e})}),error:i.jsx(Ur,{className:We({variant:e})})},b=()=>a!==void 0&&o!==""&&!(t!=="none"||s!==""),x=()=>t==="large"?"ds-flex-col ds-flex ds-gap-3":t==="small"?"ds-flex-row ds-flex ds-gap-3":"ds-flex";return i.jsxs("div",{id:c,className:I(To({variant:e}),f),...h,children:[i.jsxs("div",{className:"ds-flex ds-flex-row",children:[n&&i.jsx("div",{className:`ds-flex ds-pr-2 ${t==="large"&&s!==""&&"ds-h-[1.75rem] ds-items-center"}`,children:g[e]}),i.jsxs("div",{className:`ds-flex ds-flex-col ${t!=="none"&&s!==""?"ds-gap-3":"ds-justify-center"}`,children:[i.jsxs("div",{className:x(),children:[t!=="none"&&s!==""&&i.jsx("h1",{className:t==="large"?"ds-text-xl ds-font-semibold":"ds-hidden",children:s}),i.jsxs("div",{className:yt({variant:e}),children:[t!=="none"&&s!==""&&i.jsx("span",{className:`${We({variant:e})} ${t==="small"&&s!==""?"ds-pr-2 ds-text-base ds-font-semibold":"ds-hidden"}`,children:s}),i.jsx("span",{className:`${t==="none"||s===""?"ds-mb-3":""}`,children:o})]})]}),a&&i.jsx("div",{className:`${yt({variant:e})} ${b()?"ds-mt-3":""}`,children:a})]})]}),r===!0&&i.jsx("div",{className:"-ds-mt-2 ds-h-5",children:i.jsx(vr,{variant:"default",iconSize:"small",iconName:"close",hasTooltip:!1,label:l,disabled:!1,iconColor:We({variant:e}),onClick:p})})]})},Bt=Ao,Ht=["preflight","!ds-font-sans","ds-rounded","ds-text-base","ds-font-semibold","ds-border","ds-transition","ds-duration-100","ds-text-nowrap","focus-visible:ds-ring","focus-visible:ds-ring-2","focus-visible:ds-outline-none","focus-visible:ds-ring-offset-2"],Fo=["!ds-bg-neutrals-lighter","!ds-text-neutrals-dark","!ds-border-neutrals-light","!ds-cursor-not-allowed","!hover:ds-bg-neutrals-lighter","!hover:ds-border-neutrals-light","!hover:ds-text-neutrals-dark","!focus-visible:ds-ring-neutrals-black","!focus-visible:ds-border-neutrals-light"],Oo=[...Ht,"ds-p-1","!ds-bg-neutrals-lighter","!ds-text-neutrals-dark","!ds-cursor-not-allowed","ds-border-neutrals-lighter","focus:ds-border-neutrals-light","focus-visible:ds-ring-neutrals-black","!focus-visible:ds-border-neutrals-light","active:ds-border-neutrals-lighter"],Wo=P(Ht,{variants:{variant:{primary:["ds-py-3","ds-px-4","ds-text-neutrals-white","ds-bg-acuity-blue","ds-border-acuity-blue","hover:ds-bg-acuity-blue-dark","hover:ds-border-acuity-blue-dark","active:ds-bg-acuity-blue-darkest","active:ds-border-acuity-blue-darkest","active:ds-text-neutrals-white","focus-visible:ds-text-neutrals-black","focus-visible:ds-bg-acuity-blue-light","focus-visible:ds-border-acuity-blue"],secondary:["ds-py-3","ds-px-4","ds-text-neutrals-black","ds-bg-neutrals-white","ds-border-neutrals","hover:ds-bg-neutrals-lighter","hover:ds-border-neutrals-darker","active:ds-bg-neutrals-dark","active:ds-border-neutrals-dark","active:ds-text-neutrals-white","focus-visible:ds-text-neutrals-black","focus-visible:ds-bg-neutrals-lighter","focus-visible:ds-border-neutrals-black","focus-visible:ds-ring-neutrals-black"],danger:["ds-py-3","ds-px-4","ds-text-neutrals-white","ds-bg-danger-red","ds-border-danger-red","hover:ds-bg-danger-red-dark","hover:ds-border-danger-red-dark","active:ds-bg-danger-red-darkest","active:ds-border-danger-red-darkest","active:ds-text-neutrals-white","focus-visible:ds-text-neutrals-black","focus-visible:ds-bg-danger-red-lighter","focus-visible:ds-border-danger-red-darkest"],inline:["ds-p-1","ds-text-neutrals-black","ds-bg-neutrals-white","ds-border-neutrals-white","hover:ds-bg-neutrals-lighter","hover:ds-border-neutrals-lighter","active:ds-bg-neutrals-dark","active:ds-border-neutrals-dark","active:ds-text-neutrals-white","focus-visible:ds-text-neutrals-black","focus-visible:ds-bg-neutrals-lighter","focus-visible:ds-border-neutrals-dark","focus-visible:ds-ring-neutrals-black"]},disabled:{true:Fo,false:[]}},compoundVariants:[{variant:"primary",disabled:!1,class:"focus-visible:ds-ring-acuity-blue"},{variant:"danger",disabled:!1,class:"focus-visible:ds-ring-danger-red-darkest"},{variant:["primary","danger"],disabled:!0,class:"focus-visible:ds-ring-neutrals-black"}]}),_o=(e,r,n)=>e==="inline"&&r===!0?tr(Oo):tr(Wo({variant:e,disabled:r}),n),Vo=({variant:e="primary",text:r,label:n="",disabled:t=!1,className:s="",onClick:o,iconName:a,iconIndicator:l=!1,leadingIcon:c=!1,trailingIcon:p=!1,stateful:f=!1,...h})=>{const g=f||t;return i.jsx(i.Fragment,{children:i.jsx("button",{"aria-disabled":g,"aria-pressed":f,onClick:b=>br(b,g,o),className:_o(e,g,s),"aria-label":n,"aria-live":f?"assertive":"off",...h,children:i.jsxs("div",{className:"ds-flex ds-flex-wrap ds-content-center ds-justify-center",children:[c&&(f?i.jsx(pr,{size:"small",className:"ds-mr-2 ds-self-center",focusable:!1,label:n,ariaLive:"off"}):i.jsx(me,{size:"small",name:a!=null?a:"edit",hasIndicator:l,className:"ds-mr-2 ds-self-center",altText:""})),i.jsx("span",{children:r}),p&&(f?i.jsx(pr,{size:"small",className:"ds-ml-2 ds-self-center",focusable:!1,ariaLive:"off",label:n}):i.jsx(me,{size:"small",name:a!=null?a:"edit",hasIndicator:l,className:"ds-ml-2 ds-self-center",altText:""}))]})})})},zt=Vo,Io=({content:e=void 0,iconName:r=void 0,title:n="",footer:t=void 0,className:s="",...o})=>i.jsxs("div",{...o,className:I("preflight ds-flex ds-flex-col ds-items-start ds-gap-6 ds-rounded-lg ds-border ds-border-neutrals-light ds-p-5",s),children:[n&&i.jsxs("div",{className:"ds-flex ds-flex-row ds-items-center ds-gap-3",children:[r&&i.jsx(me,{size:"medium",name:r,className:"ds-text-neutrals-darker",hasIndicator:!1,altText:r}),i.jsx(Yr,{size:"small",text:n,hasMarginBottom:!1})]}),e&&i.jsx("div",{className:"ds-w-full ds-text-base",children:e}),t&&i.jsx("div",{children:t})]}),Do=Io,Bo=P(["preflight","ds-h-4","ds-w-4","focus:ds-ring-acuity-blue","ds-border-neutrals","ds-border","ds-border-solid"],{variants:{disabled:{false:["ds-text-acuity-blue","ds-bg-neutrals-white","hover:ds-border-acuity-blue","hover:ds-bg-acuity-blue-lightest","hover:ds-text-acuity-blue-dark","active:ds-border-acuity-blue-darkest","active:ds-bg-acuity-blue-darkest","active:ds-text-acuity-blue-darkest","ds-cursor-pointer"],true:["ds-text-neutrals","ds-bg-neutrals-lighter"]}}}),Ut=e=>I(Bo(e)),Ho=P(["preflight","ds-font-base","!ds-font-sans","ds-ml-2","ds-text-base"],{variants:{disabled:{false:"ds-cursor-pointer",true:"ds-text-neutrals"}}}),Gt=e=>I(Ho(e)),Zr={variants:{state:{default:["ds-border-neutrals","ds-text-neutrals-darker","focus:ds-border-acuity-blue","focus:ds-ring-acuity-blue","focus:ds-ring-offset-2","focus:ds-ring-2"],error:["ds-border-danger-red","ds-text-danger-red-darkest","focus:ds-border-danger-red","focus:ds-ring-danger-red-dark","focus:ds-ring-offset-2","focus:ds-ring-2"],success:["ds-border-success-green","ds-text-neutrals-darker","focus:ds-border-success-green","focus:ds-ring-success-green-dark","focus:ds-ring-offset-2","focus:ds-ring-2"]},disabled:{true:["!ds-border-neutrals","!ds-text-neutrals-darker","!ds-bg-neutrals-lighter","focus:!ds-border-neutrals","focus:!ds-ring-neutrals-dark","ds-cursor-not-allowed"]}}},zo=({id:e,label:r="",name:n="",checked:t=!1,disabled:s=!1,indeterminate:o=!1,onChange:a=()=>{},onClick:l=()=>{},...c})=>{const p=c["aria-label"]||r||"checkbox_"+e;return i.jsxs("div",{className:"ds-items-top ds-flex",children:[i.jsx("input",{id:e,name:n,"aria-label":p,"aria-disabled":s,type:"checkbox",className:`ds-form-checkbox ds-mt-1 ${Ut({disabled:s})} ds-rounded`,checked:t,ref:f=>f&&(f.indeterminate=o),onClick:f=>br(f,s,l),onChange:f=>Dt(f,s,a),...c}),r&&i.jsx("label",{htmlFor:e,className:Gt({disabled:s}),children:r})]})},Uo=zo,Go=e=>["Zero","One","Two","Three","Four","Five","Six","Seven","Eight","Nine"][e]||e.toString(),Zo=({children:e,className:r="",onClick:n,successTitle:t,successDescription:s,errorTitle:o,buttonText:a,...l})=>{const c="formValidation_"+Ot().toString(),[p,f]=u.useState(!1),[h,g]=u.useState(!1),[b,x]=u.useState(""),[w,C]=u.useState(!0),[k,j]=u.useState(""),[Z,T]=u.useState("success"),H=32,ie=u.Children.toArray(e).filter(y=>u.isValidElement(y)),Y=y=>{n(y),C(!1),g(!0),K(c)},z=y=>M=>{y&&y(M),w||f(!0)},q=u.Children.map(e,y=>u.isValidElement(y)?u.cloneElement(y,{onBlur:z(y.props.onBlur)}):y),K=y=>{const M=document.getElementById(y);if(M){const O=M.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:O-H,behavior:"smooth"})}},ee=y=>{o?j(o):y==1?j("An error was found in the information you submitted"):j(`${Go(y)} errors were found in the information you submitted`)};return u.useEffect(()=>{if(p||h){const y=ie.filter(M=>M.props.state=="error");y.length==0?p?C(!0):(T("success"),x(s),j(t)):p&&Z=="success"?C(!0):(T("error"),x(i.jsx("ul",{children:y.map((M,O)=>i.jsx("li",{children:i.jsxs("span",{onClick:()=>K("label_"+M.props.id),children:[y.length>1?`${O+1}. `:"",M.props.message]})},M.props.id))})),ee(y.length)),f(!1),g(!1)}},[p,h]),i.jsxs("div",{className:`prelight ${r}`,id:c,...l,children:[!w&&i.jsx("div",{className:"preflight ds-mb-6 ds-rounded",children:i.jsx(Bt,{description:b,isDismissible:Z=="success",title:k,titleSize:Z=="success"?"small":"large",variant:Z,handleClose:()=>{C(!0)}})}),q,i.jsx(zt,{text:a,onClick:Y})]})},Yo=Zo,Ae="large",Ie="medium",De="small",Be="extra-large",jt="h1",qo="h2",Ko="h3",Jo="div";function Xo(e){return{[Ae]:jt,[Ie]:qo,[De]:Ko,[Be]:Jo}[e]||jt}const Qo=P("preflight !ds-font-sans",{variants:{size:{[De]:"ds-mb-3",[Ie]:"ds-mb-5",[Ae]:"ds-mb-5",[Be]:"ds-mb-6"}}}),cr=P("ds-text-neutrals-darker !ds-font-sans",{variants:{size:{[De]:"ds-text-xl ds-font-semibold",[Ie]:"ds-text-2xl ds-font-semibold",[Ae]:"ds-text-3xl ds-font-bold",[Be]:"ds-text-4xl ds-font-semibold"}}}),ea=P("ds-mt-0 ds-font-bold ds-text-neutrals-dark",{variants:{size:{[De]:"ds-mb-1 ds-text-sm",[Ie]:"ds-mb-2 ds-text-sm",[Ae]:"ds-mb-2 ds-text-base",[Be]:"ds-mb-3 ds-text-base"}}}),ra=P("ds-mb-0 ds-text-neutrals-dark",{variants:{size:{[De]:"ds-mt-1 ds-text-base",[Ie]:"ds-mt-2 ds-text-base",[Ae]:"ds-mt-2 ds-text-base",[Be]:"ds-mt-3 ds-text-base"}}}),ta=P("ds-text-neutrals-light",{variants:{size:{[De]:"ds-mt-2",[Ie]:"ds-mt-2",[Ae]:"ds-mt-2",[Be]:"ds-mt-3"}}}),na=({size:e=Ae,className:r="",text:n="",descriptionTop:t="",descriptionBottom:s="",hasHorizontalRule:o=!1,hasMarginBottom:a=!0,headingTag:l,...c})=>{const p=t?i.jsx("p",{className:ea({size:e}),children:t}):null,f=s?i.jsx("p",{className:ra({size:e}),children:s}):null,h=o?i.jsx("hr",{className:ta({size:e})}):null,g=a?Qo({size:e}):"preflight",b={div:i.jsx("div",{className:cr({size:e}),children:n}),h3:i.jsx("h3",{className:cr({size:e}),children:n}),h2:i.jsx("h2",{className:cr({size:e}),children:n}),h1:i.jsx("h1",{className:cr({size:e}),children:n})};return i.jsxs("div",{className:I(g,r),...c,children:[p,b[l||Xo(e)],f,h]})},Yr=na,sa=({label:e="",name:r,id:n,disabled:t=!1,onChange:s=()=>{},onClick:o=()=>{},...a})=>i.jsxs("div",{className:"ds-flex ds-h-4 ds-items-center",children:[i.jsx("input",{id:n,name:r,type:"radio",className:`ds-form-radio ${Ut({disabled:t})}`,"aria-disabled":t,onChange:l=>Dt(l,t,s),onClick:l=>br(l,t,o),...a}),i.jsx("label",{htmlFor:n,className:Gt({disabled:t}),children:e})]}),oa=sa,aa=P(["preflight","!ds-font-sans","ds-inline-flex","ds-items-center","ds-gap-1","ds-flex-direction-row","ds-cursor-pointer","ds-text-acuity-blue","active:ds-text-acuity-blue-darkest","focus-visible:ds-outline-none","focus-visible:ds-border-2","focus-visible:ds-rounded","focus-visible:ds-border-acuity-blue","focus-visible:ds-px-[2px]","focus-visible:ds-py-[2px]","focus-visible:-ds-mx-[4px]","focus-visible:-ds-my-[4px]"],{variants:{type:{default:["ds-font-bold","hover:ds-underline"],inline:["ds-underline","hover:ds-no-underline","active:ds-no-underline","visited:ds-text-[#551A8B]"]}}}),ia=({text:e,href:r,type:n="default",iconName:t,...s})=>i.jsxs("a",{href:r,type:n,className:I(aa({type:n})),...s,children:[e,t&&i.jsx(me,{altText:e,name:t,size:"small"})]}),la=ia;var da=Object.defineProperty,ca=(e,r,n)=>r in e?da(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Mr=(e,r,n)=>(ca(e,typeof r!="symbol"?r+"":r,n),n);let ua=class{constructor(){Mr(this,"current",this.detect()),Mr(this,"handoffState","pending"),Mr(this,"currentId",0)}set(r){this.current!==r&&(this.handoffState="pending",this.currentId=0,this.current=r)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window=="undefined"||typeof document=="undefined"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Pe=new ua;function qr(e){return Pe.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function xr(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(r=>setTimeout(()=>{throw r}))}function Ne(){let e=[],r={addEventListener(n,t,s,o){return n.addEventListener(t,s,o),r.add(()=>n.removeEventListener(t,s,o))},requestAnimationFrame(...n){let t=requestAnimationFrame(...n);return r.add(()=>cancelAnimationFrame(t))},nextFrame(...n){return r.requestAnimationFrame(()=>r.requestAnimationFrame(...n))},setTimeout(...n){let t=setTimeout(...n);return r.add(()=>clearTimeout(t))},microTask(...n){let t={current:!0};return xr(()=>{t.current&&n[0]()}),r.add(()=>{t.current=!1})},style(n,t,s){let o=n.style.getPropertyValue(t);return Object.assign(n.style,{[t]:s}),this.add(()=>{Object.assign(n.style,{[t]:o})})},group(n){let t=Ne();return n(t),this.add(()=>t.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let t=e.indexOf(n);if(t>=0)for(let s of e.splice(t,1))s()}},dispose(){for(let n of e.splice(0))n()}};return r}function Kr(){let[e]=u.useState(Ne);return u.useEffect(()=>()=>e.dispose(),[e]),e}let Q=(e,r)=>{Pe.isServer?u.useEffect(e,r):u.useLayoutEffect(e,r)};function he(e){let r=u.useRef(e);return Q(()=>{r.current=e},[e]),r}let F=function(e){let r=he(e);return u.useCallback((...n)=>r.current(...n),[r])},fa=u.createContext(void 0);function pa(){return u.useContext(fa)}function Qe(...e){return Array.from(new Set(e.flatMap(r=>typeof r=="string"?r.split(" "):[]))).filter(Boolean).join(" ")}function G(e,r,...n){if(e in r){let s=r[e];return typeof s=="function"?s(...n):s}let t=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(r).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,G),t}var hr=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(hr||{}),Se=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Se||{});function ue({ourProps:e,theirProps:r,slot:n,defaultTag:t,features:s,visible:o=!0,name:a,mergeRefs:l}){l=l!=null?l:ha;let c=Zt(r,e);if(o)return ur(c,n,t,a,l);let p=s!=null?s:0;if(p&2){let{static:f=!1,...h}=c;if(f)return ur(h,n,t,a,l)}if(p&1){let{unmount:f=!0,...h}=c;return G(f?0:1,{0(){return null},1(){return ur({...h,hidden:!0,style:{display:"none"}},n,t,a,l)}})}return ur(c,n,t,a,l)}function ur(e,r={},n,t,s){let{as:o=n,children:a,refName:l="ref",...c}=Sr(e,["unmount","static"]),p=e.ref!==void 0?{[l]:e.ref}:{},f=typeof a=="function"?a(r):a;"className"in c&&c.className&&typeof c.className=="function"&&(c.className=c.className(r)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let h={};if(r){let g=!1,b=[];for(let[x,w]of Object.entries(r))typeof w=="boolean"&&(g=!0),w===!0&&b.push(x.replace(/([A-Z])/g,C=>`-${C.toLowerCase()}`));if(g){h["data-headlessui-state"]=b.join(" ");for(let x of b)h[`data-${x}`]=""}}if(o===u.Fragment&&(Object.keys(_e(c)).length>0||Object.keys(_e(h)).length>0))if(!u.isValidElement(f)||Array.isArray(f)&&f.length>1){if(Object.keys(_e(c)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${t} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(_e(c)).concat(Object.keys(_e(h))).map(g=>` - ${g}`).join(`
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
`))}else{let g=f.props,b=g==null?void 0:g.className,x=typeof b=="function"?(...k)=>Qe(b(...k),c.className):Qe(b,c.className),w=x?{className:x}:{},C=Zt(f.props,_e(Sr(c,["ref"])));for(let k in h)k in C&&delete h[k];return u.cloneElement(f,Object.assign({},C,h,p,{ref:s(f.ref,p.ref)},w))}return u.createElement(o,Object.assign({},Sr(c,["ref"]),o!==u.Fragment&&p,o!==u.Fragment&&h),f)}function ha(...e){return e.every(r=>r==null)?void 0:r=>{for(let n of e)n!=null&&(typeof n=="function"?n(r):n.current=r)}}function Zt(...e){if(e.length===0)return{};if(e.length===1)return e[0];let r={},n={};for(let t of e)for(let s in t)s.startsWith("on")&&typeof t[s]=="function"?(n[s]!=null||(n[s]=[]),n[s].push(t[s])):r[s]=t[s];if(r.disabled||r["aria-disabled"])for(let t in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(t)&&(n[t]=[s=>{var o;return(o=s==null?void 0:s.preventDefault)==null?void 0:o.call(s)}]);for(let t in n)Object.assign(r,{[t](s,...o){let a=n[t];for(let l of a){if((s instanceof Event||(s==null?void 0:s.nativeEvent)instanceof Event)&&s.defaultPrevented)return;l(s,...o)}}});return r}function ae(e){var r;return Object.assign(u.forwardRef(e),{displayName:(r=e.displayName)!=null?r:e.name})}function _e(e){let r=Object.assign({},e);for(let n in r)r[n]===void 0&&delete r[n];return r}function Sr(e,r=[]){let n=Object.assign({},e);for(let t of r)t in n&&delete n[t];return n}let ma="div";var mr=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(mr||{});function ga(e,r){var n;let{features:t=1,...s}=e,o={ref:r,"aria-hidden":(t&2)===2?!0:(n=s["aria-hidden"])!=null?n:void 0,hidden:(t&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(t&4)===4&&(t&2)!==2&&{display:"none"}}};return ue({ourProps:o,theirProps:s,slot:{},defaultTag:ma,name:"Hidden"})}let Ar=ae(ga),ba=u.createContext(null);function va({children:e}){let r=u.useContext(ba);if(!r)return u.createElement(u.Fragment,null,e);let{target:n}=r;return n?St.createPortal(u.createElement(u.Fragment,null,e),n):null}let Yt=Symbol();function xa(e,r=!0){return Object.assign(e,{[Yt]:r})}function ge(...e){let r=u.useRef(e);u.useEffect(()=>{r.current=e},[e]);let n=F(t=>{for(let s of r.current)s!=null&&(typeof s=="function"?s(t):s.current=t)});return e.every(t=>t==null||(t==null?void 0:t[Yt]))?void 0:n}let Jr=u.createContext(null);Jr.displayName="DescriptionContext";function qt(){let e=u.useContext(Jr);if(e===null){let r=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,qt),r}return e}function Ca(){let[e,r]=u.useState([]);return[e.length>0?e.join(" "):void 0,u.useMemo(()=>function(n){let t=F(o=>(r(a=>[...a,o]),()=>r(a=>{let l=a.slice(),c=l.indexOf(o);return c!==-1&&l.splice(c,1),l}))),s=u.useMemo(()=>({register:t,slot:n.slot,name:n.name,props:n.props,value:n.value}),[t,n.slot,n.name,n.props,n.value]);return u.createElement(Jr.Provider,{value:s},n.children)},[r])]}let wa="p";function ka(e,r){let n=u.useId(),t=pa(),{id:s=`headlessui-description-${n}`,...o}=e,a=qt(),l=ge(r);Q(()=>a.register(s),[s,a.register]);let c=t||!1,p=u.useMemo(()=>({...a.slot,disabled:c}),[a.slot,c]),f={ref:l,...a.props,id:s};return ue({ourProps:f,theirProps:o,slot:p,defaultTag:wa,name:a.name||"Description"})}let ya=ae(ka),ja=Object.assign(ya,{});var Kt=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Kt||{});let Ea=u.createContext(()=>{});function La({value:e,children:r}){return u.createElement(Ea.Provider,{value:e},r)}let Fr=new Map,er=new Map;function Et(e){var r;let n=(r=er.get(e))!=null?r:0;return er.set(e,n+1),n!==0?()=>Lt(e):(Fr.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Lt(e))}function Lt(e){var r;let n=(r=er.get(e))!=null?r:1;if(n===1?er.delete(e):er.set(e,n-1),n!==1)return;let t=Fr.get(e);t&&(t["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert,Fr.delete(e))}function $a({allowed:e,disallowed:r}={},n=!0){Q(()=>{var t,s;if(!n)return;let o=Ne();for(let l of(t=r==null?void 0:r())!=null?t:[])l&&o.add(Et(l));let a=(s=e==null?void 0:e())!=null?s:[];for(let l of a){if(!l)continue;let c=qr(l);if(!c)continue;let p=l.parentElement;for(;p&&p!==c.body;){for(let f of p.children)a.some(h=>f.contains(h))||o.add(Et(f));p=p.parentElement}}return o.dispose},[n,e,r])}function Jt(e,r,n=!0){let t=he(s=>{let o=s.getBoundingClientRect();o.x===0&&o.y===0&&o.width===0&&o.height===0&&r()});u.useEffect(()=>{if(!n)return;let s=e===null?null:e instanceof HTMLElement?e:e.current;if(!s)return;let o=Ne();if(typeof ResizeObserver!="undefined"){let a=new ResizeObserver(()=>t.current(s));a.observe(s),o.add(()=>a.disconnect())}if(typeof IntersectionObserver!="undefined"){let a=new IntersectionObserver(()=>t.current(s));a.observe(s),o.add(()=>a.disconnect())}return()=>o.dispose()},[e,t,n])}let Or=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),Ma=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var ke=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(ke||{}),Wr=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Wr||{}),Sa=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Sa||{});function Na(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Or)).sort((r,n)=>Math.sign((r.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function Ta(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Ma)).sort((r,n)=>Math.sign((r.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Xt=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Xt||{});function Ra(e,r=0){var n;return e===((n=qr(e))==null?void 0:n.body)?!1:G(r,{0(){return e.matches(Or)},1(){let t=e;for(;t!==null;){if(t.matches(Or))return!0;t=t.parentElement}return!1}})}var Pa=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Pa||{});typeof window!="undefined"&&typeof document!="undefined"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function ye(e){e==null||e.focus({preventScroll:!0})}let Aa=["textarea","input"].join(",");function Fa(e){var r,n;return(n=(r=e==null?void 0:e.matches)==null?void 0:r.call(e,Aa))!=null?n:!1}function Oa(e,r=n=>n){return e.slice().sort((n,t)=>{let s=r(n),o=r(t);if(s===null||o===null)return 0;let a=s.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function rr(e,r,{sorted:n=!0,relativeTo:t=null,skipElements:s=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?Oa(e):e:r&64?Ta(e):Na(e);s.length>0&&a.length>1&&(a=a.filter(b=>!s.some(x=>x!=null&&"current"in x?(x==null?void 0:x.current)===b:x===b))),t=t!=null?t:o.activeElement;let l=(()=>{if(r&5)return 1;if(r&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(r&1)return 0;if(r&2)return Math.max(0,a.indexOf(t))-1;if(r&4)return Math.max(0,a.indexOf(t))+1;if(r&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=r&32?{preventScroll:!0}:{},f=0,h=a.length,g;do{if(f>=h||f+h<=0)return 0;let b=c+f;if(r&16)b=(b+h)%h;else{if(b<0)return 3;if(b>=h)return 1}g=a[b],g==null||g.focus(p),f+=l}while(g!==o.activeElement);return r&6&&Fa(g)&&g.select(),2}function Qt(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Wa(){return/Android/gi.test(window.navigator.userAgent)}function _a(){return Qt()||Wa()}function fr(e,r,n){let t=he(r);u.useEffect(()=>{function s(o){t.current(o)}return document.addEventListener(e,s,n),()=>document.removeEventListener(e,s,n)},[e,n])}function en(e,r,n){let t=he(r);u.useEffect(()=>{function s(o){t.current(o)}return window.addEventListener(e,s,n),()=>window.removeEventListener(e,s,n)},[e,n])}function Va(e,r,n=!0){let t=u.useRef(!1);u.useEffect(()=>{requestAnimationFrame(()=>{t.current=n})},[n]);function s(a,l){if(!t.current||a.defaultPrevented)return;let c=l(a);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let p=function f(h){return typeof h=="function"?f(h()):Array.isArray(h)||h instanceof Set?h:[h]}(e);for(let f of p){if(f===null)continue;let h=f instanceof HTMLElement?f:f.current;if(h!=null&&h.contains(c)||a.composed&&a.composedPath().includes(h))return}return!Ra(c,Xt.Loose)&&c.tabIndex!==-1&&a.preventDefault(),r(a,c)}let o=u.useRef(null);fr("pointerdown",a=>{var l,c;t.current&&(o.current=((c=(l=a.composedPath)==null?void 0:l.call(a))==null?void 0:c[0])||a.target)},!0),fr("mousedown",a=>{var l,c;t.current&&(o.current=((c=(l=a.composedPath)==null?void 0:l.call(a))==null?void 0:c[0])||a.target)},!0),fr("click",a=>{_a()||o.current&&(s(a,()=>o.current),o.current=null)},!0),fr("touchend",a=>s(a,()=>a.target instanceof HTMLElement?a.target:null),!0),en("blur",a=>s(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function nr(...e){return u.useMemo(()=>qr(...e),[...e])}function rn(e,r,n,t){let s=he(n);u.useEffect(()=>{e=e!=null?e:window;function o(a){s.current(a)}return e.addEventListener(r,o,t),()=>e.removeEventListener(r,o,t)},[e,r,t])}function Ia(e){return u.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}function Da(e,r){let n=e(),t=new Set;return{getSnapshot(){return n},subscribe(s){return t.add(s),()=>t.delete(s)},dispatch(s,...o){let a=r[s].call(n,...o);a&&(n=a,t.forEach(l=>l()))}}}function Ba(){let e;return{before({doc:r}){var n;let t=r.documentElement,s=(n=r.defaultView)!=null?n:window;e=Math.max(0,s.innerWidth-t.clientWidth)},after({doc:r,d:n}){let t=r.documentElement,s=Math.max(0,t.clientWidth-t.offsetWidth),o=Math.max(0,e-s);n.style(t,"paddingRight",`${o}px`)}}}function Ha(){return Qt()?{before({doc:e,d:r,meta:n}){function t(s){return n.containers.flatMap(o=>o()).some(o=>o.contains(s))}r.microTask(()=>{var s;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let l=Ne();l.style(e.documentElement,"scrollBehavior","auto"),r.add(()=>r.microTask(()=>l.dispose()))}let o=(s=window.scrollY)!=null?s:window.pageYOffset,a=null;r.addEventListener(e,"click",l=>{if(l.target instanceof HTMLElement)try{let c=l.target.closest("a");if(!c)return;let{hash:p}=new URL(c.href),f=e.querySelector(p);f&&!t(f)&&(a=f)}catch(c){}},!0),r.addEventListener(e,"touchstart",l=>{if(l.target instanceof HTMLElement)if(t(l.target)){let c=l.target;for(;c.parentElement&&t(c.parentElement);)c=c.parentElement;r.style(c,"overscrollBehavior","contain")}else r.style(l.target,"touchAction","none")}),r.addEventListener(e,"touchmove",l=>{if(l.target instanceof HTMLElement){if(l.target.tagName==="INPUT")return;if(t(l.target)){let c=l.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&l.preventDefault()}else l.preventDefault()}},{passive:!1}),r.add(()=>{var l;let c=(l=window.scrollY)!=null?l:window.pageYOffset;o!==c&&window.scrollTo(0,o),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{}}function za(){return{before({doc:e,d:r}){r.style(e.documentElement,"overflow","hidden")}}}function Ua(e){let r={};for(let n of e)Object.assign(r,n(r));return r}let Re=Da(()=>new Map,{PUSH(e,r){var n;let t=(n=this.get(e))!=null?n:{doc:e,count:0,d:Ne(),meta:new Set};return t.count++,t.meta.add(r),this.set(e,t),this},POP(e,r){let n=this.get(e);return n&&(n.count--,n.meta.delete(r)),this},SCROLL_PREVENT({doc:e,d:r,meta:n}){let t={doc:e,d:r,meta:Ua(n)},s=[Ha(),Ba(),za()];s.forEach(({before:o})=>o==null?void 0:o(t)),s.forEach(({after:o})=>o==null?void 0:o(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Re.subscribe(()=>{let e=Re.getSnapshot(),r=new Map;for(let[n]of e)r.set(n,n.documentElement.style.overflow);for(let n of e.values()){let t=r.get(n.doc)==="hidden",s=n.count!==0;(s&&!t||!s&&t)&&Re.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Re.dispatch("TEARDOWN",n)}});function Ga(e,r,n=()=>({containers:[]})){let t=Ia(Re),s=e?t.get(e):void 0,o=s?s.count>0:!1;return Q(()=>{if(!(!e||!r))return Re.dispatch("PUSH",e,n),()=>Re.dispatch("POP",e,n)},[r,e]),o}function Za(e,r,n=()=>[document.body]){Ga(e,r,t=>{var s;return{containers:[...(s=t.containers)!=null?s:[],n]}})}function Xr(e,r){let n=u.useRef([]),t=F(e);u.useEffect(()=>{let s=[...n.current];for(let[o,a]of r.entries())if(n.current[o]!==a){let l=t(r,s);return n.current=r,l}},[t,...r])}let Qr=u.createContext(null);Qr.displayName="OpenClosedContext";var se=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(se||{});function et(){return u.useContext(Qr)}function Ya({value:e,children:r}){return u.createElement(Qr.Provider,{value:e},r)}function qa(e){function r(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",r))}typeof window!="undefined"&&typeof document!="undefined"&&(document.addEventListener("DOMContentLoaded",r),r())}let Me=[];qa(()=>{function e(r){r.target instanceof HTMLElement&&r.target!==document.body&&Me[0]!==r.target&&(Me.unshift(r.target),Me=Me.filter(n=>n!=null&&n.isConnected),Me.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function tn(e){let r=F(e),n=u.useRef(!1);u.useEffect(()=>(n.current=!1,()=>{n.current=!0,xr(()=>{n.current&&r()})}),[r])}function Ka(){let e=typeof document=="undefined";return"useSyncExternalStore"in Xe?(r=>r.useSyncExternalStore)(Xe)(()=>()=>{},()=>!1,()=>!e):!1}function sr(){let e=Ka(),[r,n]=Xe.useState(Pe.isHandoffComplete);return r&&Pe.isHandoffComplete===!1&&n(!1),Xe.useEffect(()=>{r!==!0&&n(!0)},[r]),Xe.useEffect(()=>Pe.handoff(),[]),e?!1:r}let nn=u.createContext(!1);function Ja(){return u.useContext(nn)}function $t(e){return u.createElement(nn.Provider,{value:e.force},e.children)}function Xa(e){let r=Ja(),n=u.useContext(on),t=nr(e),[s,o]=u.useState(()=>{var a;if(!r&&n!==null)return(a=n.current)!=null?a:null;if(Pe.isServer)return null;let l=t==null?void 0:t.getElementById("headlessui-portal-root");if(l)return l;if(t===null)return null;let c=t.createElement("div");return c.setAttribute("id","headlessui-portal-root"),t.body.appendChild(c)});return u.useEffect(()=>{s!==null&&(t!=null&&t.body.contains(s)||t==null||t.body.appendChild(s))},[s,t]),u.useEffect(()=>{r||n!==null&&o(n.current)},[n,o,r]),s}let sn=u.Fragment,Qa=ae(function(e,r){let n=e,t=u.useRef(null),s=ge(xa(f=>{t.current=f}),r),o=nr(t),a=Xa(t),[l]=u.useState(()=>{var f;return Pe.isServer?null:(f=o==null?void 0:o.createElement("div"))!=null?f:null}),c=u.useContext(_r),p=sr();return Q(()=>{!a||!l||a.contains(l)||(l.setAttribute("data-headlessui-portal",""),a.appendChild(l))},[a,l]),Q(()=>{if(l&&c)return c.register(l)},[c,l]),tn(()=>{var f;!a||!l||(l instanceof Node&&a.contains(l)&&a.removeChild(l),a.childNodes.length<=0&&((f=a.parentElement)==null||f.removeChild(a)))}),p?!a||!l?null:St.createPortal(ue({ourProps:{ref:s},theirProps:n,slot:{},defaultTag:sn,name:"Portal"}),l):null});function ei(e,r){let n=ge(r),{enabled:t=!0,...s}=e;return t?u.createElement(Qa,{...s,ref:n}):ue({ourProps:{ref:n},theirProps:s,slot:{},defaultTag:sn,name:"Portal"})}let ri=u.Fragment,on=u.createContext(null);function ti(e,r){let{target:n,...t}=e,s={ref:ge(r)};return u.createElement(on.Provider,{value:n},ue({ourProps:s,theirProps:t,defaultTag:ri,name:"Popover.Group"}))}let _r=u.createContext(null);function ni(){let e=u.useContext(_r),r=u.useRef([]),n=F(o=>(r.current.push(o),e&&e.register(o),()=>t(o))),t=F(o=>{let a=r.current.indexOf(o);a!==-1&&r.current.splice(a,1),e&&e.unregister(o)}),s=u.useMemo(()=>({register:n,unregister:t,portals:r}),[n,t,r]);return[r,u.useMemo(()=>function({children:o}){return u.createElement(_r.Provider,{value:s},o)},[s])]}let si=ae(ei),oi=ae(ti),Mt=Object.assign(si,{Group:oi});function ai(){var e;let[r]=u.useState(()=>typeof window!="undefined"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,t]=u.useState((e=r==null?void 0:r.matches)!=null?e:!1);return Q(()=>{if(!r)return;function s(o){t(o.matches)}return r.addEventListener("change",s),()=>r.removeEventListener("change",s)},[r]),n}function ii({defaultContainers:e=[],portals:r,mainTreeNodeRef:n}={}){var t;let s=u.useRef((t=n==null?void 0:n.current)!=null?t:null),o=nr(s),a=F(()=>{var l,c,p;let f=[];for(let h of e)h!==null&&(h instanceof HTMLElement?f.push(h):"current"in h&&h.current instanceof HTMLElement&&f.push(h.current));if(r!=null&&r.current)for(let h of r.current)f.push(h);for(let h of(l=o==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?l:[])h!==document.body&&h!==document.head&&h instanceof HTMLElement&&h.id!=="headlessui-portal-root"&&(h.contains(s.current)||h.contains((p=(c=s.current)==null?void 0:c.getRootNode())==null?void 0:p.host)||f.some(g=>h.contains(g))||f.push(h));return f});return{resolveContainers:a,contains:F(l=>a().some(c=>c.contains(l))),mainTreeNodeRef:s,MainTreeNode:u.useMemo(()=>function(){return n!=null?null:u.createElement(Ar,{features:mr.Hidden,ref:s})},[s,n])}}let rt=u.createContext(()=>{});rt.displayName="StackContext";var Vr=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Vr||{});function li(){return u.useContext(rt)}function di({children:e,onUpdate:r,type:n,element:t,enabled:s}){let o=li(),a=F((...l)=>{r==null||r(...l),o(...l)});return Q(()=>{let l=s===void 0||s===!0;return l&&a(0,n,t),()=>{l&&a(1,n,t)}},[a,n,t,s]),u.createElement(rt.Provider,{value:a},e)}function or(){let e=u.useRef(!1);return Q(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Je=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Je||{});function ci(){let e=u.useRef(0);return en("keydown",r=>{r.key==="Tab"&&(e.current=r.shiftKey?1:0)},!0),e}function an(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let r=new Set;for(let n of e.current)n.current instanceof HTMLElement&&r.add(n.current);return r}let ui="div";var we=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.AutoFocus=32]="AutoFocus",e[e.All=30]="All",e))(we||{});function fi(e,r){let n=u.useRef(null),t=ge(n,r),{initialFocus:s,initialFocusFallback:o,containers:a,features:l=30,...c}=e;sr()||(l=1);let p=nr(n);gi({ownerDocument:p},!!(l&16));let f=bi({ownerDocument:p,container:n,initialFocus:s,initialFocusFallback:o},l);vi({ownerDocument:p,container:n,containers:a,previousActiveElement:f},!!(l&8));let h=ci(),g=F(C=>{let k=n.current;k&&(j=>j())(()=>{G(h.current,{[Je.Forwards]:()=>{rr(k,ke.First,{skipElements:[C.relatedTarget,o]})},[Je.Backwards]:()=>{rr(k,ke.Last,{skipElements:[C.relatedTarget,o]})}})})}),b=Kr(),x=u.useRef(!1),w={ref:t,onKeyDown(C){C.key=="Tab"&&(x.current=!0,b.requestAnimationFrame(()=>{x.current=!1}))},onBlur(C){if(!(l&8))return;let k=an(a);n.current instanceof HTMLElement&&k.add(n.current);let j=C.relatedTarget;j instanceof HTMLElement&&j.dataset.headlessuiFocusGuard!=="true"&&(ln(k,j)||(x.current?rr(n.current,G(h.current,{[Je.Forwards]:()=>ke.Next,[Je.Backwards]:()=>ke.Previous})|ke.WrapAround,{relativeTo:C.target}):C.target instanceof HTMLElement&&ye(C.target)))}};return u.createElement(u.Fragment,null,!!(l&4)&&u.createElement(Ar,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:g,features:mr.Focusable}),ue({ourProps:w,theirProps:c,defaultTag:ui,name:"FocusTrap"}),!!(l&4)&&u.createElement(Ar,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:g,features:mr.Focusable}))}let pi=ae(fi),hi=Object.assign(pi,{features:we});function mi(e=!0){let r=u.useRef(Me.slice());return Xr(([n],[t])=>{t===!0&&n===!1&&xr(()=>{r.current.splice(0)}),t===!1&&n===!0&&(r.current=Me.slice())},[e,Me,r]),F(()=>{var n;return(n=r.current.find(t=>t!=null&&t.isConnected))!=null?n:null})}function gi({ownerDocument:e},r){let n=mi(r);Xr(()=>{r||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&ye(n())},[r]),tn(()=>{r&&ye(n())})}function bi({ownerDocument:e,container:r,initialFocus:n,initialFocusFallback:t},s){let o=!!(s&2),a=u.useRef(null),l=or();return Xr(()=>{if(!o){t!=null&&t.current&&ye(t.current);return}let c=r.current;c&&xr(()=>{if(!l.current)return;let p=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===p){a.current=p;return}}else if(c.contains(p)){a.current=p;return}if(n!=null&&n.current)ye(n.current);else{if(s&32){if(rr(c,ke.First|ke.AutoFocus)!==Wr.Error)return}else if(rr(c,ke.First)!==Wr.Error)return;if(t!=null&&t.current&&(ye(t.current),(e==null?void 0:e.activeElement)===t.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}a.current=e==null?void 0:e.activeElement})},[t,o,s]),a}function vi({ownerDocument:e,container:r,containers:n,previousActiveElement:t},s){let o=or();rn(e==null?void 0:e.defaultView,"focus",a=>{if(!s||!o.current)return;let l=an(n);r.current instanceof HTMLElement&&l.add(r.current);let c=t.current;if(!c)return;let p=a.target;p&&p instanceof HTMLElement?ln(l,p)?(t.current=p,ye(p)):(a.preventDefault(),a.stopPropagation(),ye(c)):ye(t.current)},!0)}function ln(e,r){for(let n of e)if(n.contains(r))return!0;return!1}var xi=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(xi||{}),Ci=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Ci||{});let wi={0(e,r){return e.titleId===r.id?e:{...e,titleId:r.id}}},gr=u.createContext(null);gr.displayName="DialogContext";function tt(e){let r=u.useContext(gr);if(r===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,tt),n}return r}function ki(e,r){return G(r.type,wi,e,r)}let yi="div",ji=hr.RenderStrategy|hr.Static;function Ei(e,r){let n=u.useId(),{id:t=`headlessui-dialog-${n}`,open:s,onClose:o,initialFocus:a,role:l="dialog",autoFocus:c=!0,__demoMode:p=!1,...f}=e,[h,g]=u.useState(0),b=u.useRef(!1);l=function(){return l==="dialog"||l==="alertdialog"?l:(b.current||(b.current=!0,console.warn(`Invalid role [${l}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let x=et();s===void 0&&x!==null&&(s=(x&se.Open)===se.Open);let w=u.useRef(null),C=ge(w,r),k=nr(w),j=e.hasOwnProperty("open")||x!==null,Z=e.hasOwnProperty("onClose");if(!j&&!Z)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!j)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!Z)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof s!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${s}`);if(typeof o!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${o}`);let T=s?0:1,[H,ie]=u.useReducer(ki,{titleId:null,descriptionId:null,panelRef:u.createRef()}),Y=F(()=>o(!1)),z=F(W=>ie({type:0,id:W})),q=sr()?T===0:!1,K=h>1,ee=u.useContext(gr)!==null,[y,M]=ni(),O={get current(){var W;return(W=H.panelRef.current)!=null?W:w.current}},{resolveContainers:J,mainTreeNodeRef:le,MainTreeNode:fe}=ii({portals:y,defaultContainers:[O]}),de=K?"parent":"leaf",U=x!==null?(x&se.Closing)===se.Closing:!1,be=K||U?!1:q;$a({allowed:F(()=>{var W,pe;return[(pe=(W=w.current)==null?void 0:W.closest("[data-headlessui-portal]"))!=null?pe:null]}),disallowed:F(()=>{var W,pe;return[(pe=(W=le.current)==null?void 0:W.closest("body > *:not(#headlessui-portal-root)"))!=null?pe:null]})},p?!1:be),Va(J,W=>{W.preventDefault(),Y()},!(!q||K));let re=!(K||T!==0);rn(k==null?void 0:k.defaultView,"keydown",W=>{re&&(W.defaultPrevented||W.key===Kt.Escape&&(W.preventDefault(),W.stopPropagation(),Y()))}),Za(k,p?!1:!(U||T!==0||ee),J),Jt(w,Y,T===0);let[ne,He]=Ca(),te=u.useMemo(()=>[{dialogState:T,close:Y,setTitleId:z},H],[T,H,Y,z]),D=u.useMemo(()=>({open:T===0}),[T]),B={ref:C,id:t,role:l,tabIndex:-1,"aria-modal":T===0?!0:void 0,"aria-labelledby":H.titleId,"aria-describedby":ne},ze=!ai(),ve=q?G(de,{parent:we.RestoreFocus,leaf:we.All&~we.FocusLock}):we.None;return c&&(ve|=we.AutoFocus),ze||(ve&=~we.InitialFocus),p&&(ve=we.None),u.createElement(di,{type:"Dialog",enabled:T===0,element:w,onUpdate:F((W,pe)=>{pe==="Dialog"&&G(W,{[Vr.Add]:()=>g(Ue=>Ue+1),[Vr.Remove]:()=>g(Ue=>Ue-1)})})},u.createElement($t,{force:!0},u.createElement(Mt,null,u.createElement(gr.Provider,{value:te},u.createElement(Mt.Group,{target:w},u.createElement($t,{force:!1},u.createElement(He,{slot:D,name:"Dialog.Description"},u.createElement(M,null,u.createElement(hi,{initialFocus:a,initialFocusFallback:w,containers:J,features:ve},u.createElement(La,{value:Y},ue({ourProps:B,theirProps:f,slot:D,defaultTag:yi,features:ji,visible:T===0,name:"Dialog"})))))))))),u.createElement(va,null,u.createElement(fe,null)))}let Li="div";function $i(e,r){let n=u.useId(),{id:t=`headlessui-dialog-panel-${n}`,...s}=e,[{dialogState:o},a]=tt("Dialog.Panel"),l=ge(r,a.panelRef),c=u.useMemo(()=>({open:o===0}),[o]),p=F(f=>{f.stopPropagation()});return ue({ourProps:{ref:l,id:t,onClick:p},theirProps:s,slot:c,defaultTag:Li,name:"Dialog.Panel"})}let Mi="h2";function Si(e,r){let n=u.useId(),{id:t=`headlessui-dialog-title-${n}`,...s}=e,[{dialogState:o,setTitleId:a}]=tt("Dialog.Title"),l=ge(r);u.useEffect(()=>(a(t),()=>a(null)),[t,a]);let c=u.useMemo(()=>({open:o===0}),[o]);return ue({ourProps:{ref:l,id:t},theirProps:s,slot:c,defaultTag:Mi,name:"Dialog.Title"})}let Ni=ae(Ei),dn=ae($i),Ti=ae(Si),Ri=Object.assign(Ni,{Panel:dn,Title:Ti,Description:ja});function Pi(e=0){let[r,n]=u.useState(e),t=or(),s=u.useCallback(c=>{t.current&&n(p=>p|c)},[r,t]),o=u.useCallback(c=>!!(r&c),[r]),a=u.useCallback(c=>{t.current&&n(p=>p&~c)},[n,t]),l=u.useCallback(c=>{t.current&&n(p=>p^c)},[n]);return{flags:r,addFlag:s,hasFlag:o,removeFlag:a,toggleFlag:l}}function cn(e){let r={called:!1};return(...n)=>{if(!r.called)return r.called=!0,e(...n)}}function Nr(e,...r){e&&r.length>0&&e.classList.add(...r)}function Tr(e,...r){e&&r.length>0&&e.classList.remove(...r)}function Ai(e,r){let n=cn(r),t=Ne();if(!e)return t.dispose;let{transitionDuration:s,transitionDelay:o}=getComputedStyle(e),[a,l]=[s,o].map(p=>{let[f=0]=p.split(",").filter(Boolean).map(h=>h.includes("ms")?parseFloat(h):parseFloat(h)*1e3).sort((h,g)=>g-h);return f}),c=a+l;if(c!==0){let p=t.group(f=>{let h=f.setTimeout(()=>{n(),f.dispose()},c);f.addEventListener(e,"transitionrun",g=>{g.target===g.currentTarget&&(h(),f.addEventListener(e,"transitioncancel",b=>{b.target===b.currentTarget&&(n(),p())}))})});t.addEventListener(e,"transitionend",f=>{f.target===f.currentTarget&&(n(),t.dispose())})}else n();return t.dispose}function Fi(e,{direction:r,done:n,classes:t,inFlight:s}){let o=Ne(),a=n!==void 0?cn(n):()=>{};r==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let l=G(r,{enter:()=>t.enter,leave:()=>t.leave}),c=G(r,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),p=G(r,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Oi(e,{prepare(){Tr(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Nr(e,...t.base,...l,...p)},inFlight:s}),s&&(s.current=!0),o.nextFrame(()=>{o.add(Ai(e,()=>(Tr(e,...t.base,...l),Nr(e,...t.base,...t.entered,...c),s&&(s.current=!1),a()))),Tr(e,...t.base,...l,...p),Nr(e,...t.base,...l,...c)}),o.dispose}function Oi(e,{inFlight:r,prepare:n}){if(r!=null&&r.current){n();return}let t=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=t}function Wi({container:e,direction:r,classes:n,onStart:t,onStop:s}){let o=or(),a=Kr(),l=u.useRef(!1);Q(()=>{if(r==="idle"||!o.current)return;t.current(r);let c=e.current;return c?a.add(Fi(c,{direction:r,classes:n.current,inFlight:l,done(){s.current(r)}})):s.current(r),a.dispose},[r])}function $e(e=""){return e.split(/\s+/).filter(r=>r.length>1)}function un(e){var r;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((r=e.as)!=null?r:pn)!==u.Fragment||u.Children.count(e.children)===1}let Cr=u.createContext(null);Cr.displayName="TransitionContext";var _i=(e=>(e.Visible="visible",e.Hidden="hidden",e))(_i||{});function Vi(){let e=u.useContext(Cr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Ii(){let e=u.useContext(wr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let wr=u.createContext(null);wr.displayName="NestingContext";function kr(e){return"children"in e?kr(e.children):e.current.filter(({el:r})=>r.current!==null).filter(({state:r})=>r==="visible").length>0}function fn(e,r){let n=he(e),t=u.useRef([]),s=or(),o=Kr(),a=F((b,x=Se.Hidden)=>{let w=t.current.findIndex(({el:C})=>C===b);w!==-1&&(G(x,{[Se.Unmount](){t.current.splice(w,1)},[Se.Hidden](){t.current[w].state="hidden"}}),o.microTask(()=>{var C;!kr(t)&&s.current&&((C=n.current)==null||C.call(n))}))}),l=F(b=>{let x=t.current.find(({el:w})=>w===b);return x?x.state!=="visible"&&(x.state="visible"):t.current.push({el:b,state:"visible"}),()=>a(b,Se.Unmount)}),c=u.useRef([]),p=u.useRef(Promise.resolve()),f=u.useRef({enter:[],leave:[],idle:[]}),h=F((b,x,w)=>{c.current.splice(0),r&&(r.chains.current[x]=r.chains.current[x].filter(([C])=>C!==b)),r==null||r.chains.current[x].push([b,new Promise(C=>{c.current.push(C)})]),r==null||r.chains.current[x].push([b,new Promise(C=>{Promise.all(f.current[x].map(([k,j])=>j)).then(()=>C())})]),x==="enter"?p.current=p.current.then(()=>r==null?void 0:r.wait.current).then(()=>w(x)):w(x)}),g=F((b,x,w)=>{Promise.all(f.current[x].splice(0).map(([C,k])=>k)).then(()=>{var C;(C=c.current.shift())==null||C()}).then(()=>w(x))});return u.useMemo(()=>({children:t,register:l,unregister:a,onStart:h,onStop:g,wait:p,chains:f}),[l,a,t,h,g,f,p])}let pn=u.Fragment,hn=hr.RenderStrategy;function Di(e,r){var n,t,s;let{beforeEnter:o,afterEnter:a,beforeLeave:l,afterLeave:c,enter:p,enterFrom:f,enterTo:h,entered:g,leave:b,leaveFrom:x,leaveTo:w,...C}=e,k=u.useRef(null),j=un(e),Z=ge(...j?[k,r]:r===null?[]:[r]),T=(n=C.unmount)==null||n?Se.Unmount:Se.Hidden,{show:H,appear:ie,initial:Y}=Vi(),[z,q]=u.useState(H?"visible":"hidden"),K=Ii(),{register:ee,unregister:y}=K;Q(()=>ee(k),[ee,k]),Q(()=>{if(T===Se.Hidden&&k.current){if(H&&z!=="visible"){q("visible");return}return G(z,{hidden:()=>y(k),visible:()=>ee(k)})}},[z,k,ee,y,H,T]);let M=he({base:$e(C.className),enter:$e(p),enterFrom:$e(f),enterTo:$e(h),entered:$e(g),leave:$e(b),leaveFrom:$e(x),leaveTo:$e(w)}),O=he({beforeEnter:o,afterEnter:a,beforeLeave:l,afterLeave:c}),J=sr();Q(()=>{if(j&&J&&z==="visible"&&k.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[k,z,J,j]);let le=Y&&!ie,fe=ie&&H&&Y,de=fe?"enter":!J||le?"idle":H?"enter":"leave",U=Pi(0),be=F(te=>G(te,{enter:()=>{var D,B;U.addFlag(se.Opening),(B=(D=O.current).beforeEnter)==null||B.call(D)},leave:()=>{var D,B;U.addFlag(se.Closing),(B=(D=O.current).beforeLeave)==null||B.call(D)},idle:()=>{}})),ce=F(te=>G(te,{enter:()=>{var D,B;U.removeFlag(se.Opening),(B=(D=O.current).afterEnter)==null||B.call(D)},leave:()=>{var D,B;U.removeFlag(se.Closing),(B=(D=O.current).afterLeave)==null||B.call(D)},idle:()=>{}})),re=u.useRef(!1),je=fn(()=>{re.current||(q("hidden"),y(k))},K);Wi({container:k,classes:M,direction:de,onStart:he(te=>{re.current=!0,je.onStart(k,te,be)}),onStop:he(te=>{re.current=!1,je.onStop(k,te,ce),te==="leave"&&!kr(je)&&(q("hidden"),y(k))})});let ne=C,He={ref:Z};return fe?ne={...ne,className:Qe(C.className,...M.current.enter,...M.current.enterFrom)}:re.current?(ne.className=Qe(C.className,(t=k.current)==null?void 0:t.className),ne.className===""&&delete ne.className):(ne.className=Qe(C.className,(s=k.current)==null?void 0:s.className,...G(de,{enter:[...M.current.enterTo,...M.current.entered],leave:M.current.leaveTo,idle:[]})),ne.className===""&&delete ne.className),u.createElement(wr.Provider,{value:je},u.createElement(Ya,{value:G(z,{visible:se.Open,hidden:se.Closed})|U.flags},ue({ourProps:He,theirProps:ne,defaultTag:pn,features:hn,visible:z==="visible",name:"Transition.Child"})))}function Bi(e,r){let{show:n,appear:t=!1,unmount:s=!0,...o}=e,a=u.useRef(null),l=un(e),c=ge(...l?[a,r]:r===null?[]:[r]);sr();let p=et();if(n===void 0&&p!==null&&(n=(p&se.Open)===se.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[f,h]=u.useState(n?"visible":"hidden"),g=fn(()=>{n||h("hidden")}),[b,x]=u.useState(!0),w=u.useRef([n]);Q(()=>{b!==!1&&w.current[w.current.length-1]!==n&&(w.current.push(n),x(!1))},[w,n]);let C=u.useMemo(()=>({show:n,appear:t,initial:b}),[n,t,b]);Jt(a,()=>h("hidden")),Q(()=>{n?h("visible"):!kr(g)&&a.current!==null&&h("hidden")},[n,g]);let k={unmount:s},j=F(()=>{var T;b&&x(!1),(T=e.beforeEnter)==null||T.call(e)}),Z=F(()=>{var T;b&&x(!1),(T=e.beforeLeave)==null||T.call(e)});return u.createElement(wr.Provider,{value:g},u.createElement(Cr.Provider,{value:C},ue({ourProps:{...k,as:u.Fragment,children:u.createElement(mn,{ref:c,...k,...o,beforeEnter:j,beforeLeave:Z})},theirProps:{},defaultTag:u.Fragment,features:hn,visible:f==="visible",name:"Transition"})))}function Hi(e,r){let n=u.useContext(Cr)!==null,t=et()!==null;return u.createElement(u.Fragment,null,!n&&t?u.createElement(Ir,{ref:r,...e}):u.createElement(mn,{ref:r,...e}))}let Ir=ae(Bi),mn=ae(Di),Dr=ae(Hi),zi=Object.assign(Ir,{Child:Dr,Root:Ir});const Ui=({open:e=!1,onClose:r,title:n="",backdrop:t="static",content:s,footer:o,icon:a=!1,iconComponent:l,iconName:c=void 0,dismissible:p=!0,horizontalRule:f=!0})=>{const h=()=>l?i.jsx(i.Fragment,{children:l}):a&&c?i.jsx(me,{name:c,size:"medium"}):null,g=()=>t==="dismissible"?r():!0;return i.jsx(zi,{appear:!0,show:e,as:u.Fragment,children:i.jsxs(Ri,{as:"div",onClose:g,static:!0,className:"preflight ds-relative ds-z-20 focus:ds-outline-none","aria-labelledby":"modal-title",children:[t!=="none"&&i.jsx(Dr,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:i.jsx("div",{className:"ds-fixed ds-inset-0 ds-bg-neutrals-transparent-medium ds-transition-opacity","aria-hidden":"true"})}),i.jsx("div",{className:"ds-fixed ds-inset-0 ds-z-20 ds-w-screen ds-overflow-y-auto",children:i.jsx("div",{className:"ds-flex ds-min-h-full ds-items-center ds-justify-center ds-p-4",children:i.jsx(Dr,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:i.jsxs(dn,{className:"ds-flex ds-max-h-[90vh] ds-min-w-full ds-max-w-full ds-transform ds-flex-col ds-rounded-lg ds-bg-neutrals-white ds-text-left ds-shadow-modal sm:ds-min-w-[15rem] sm:ds-max-w-[55%]",children:[i.jsxs("div",{className:`ds-flex ds-items-center ds-py-4 ${p?"ds-pl-5 ds-pr-3":"ds-px-5"}`,children:[a&&i.jsx("div",{className:"ds-mr-3",children:h()}),i.jsx("div",{className:"ds-flex-grow",children:i.jsx(Yr,{text:n,headingTag:"h2",size:"medium",hasMarginBottom:!1,id:"modal-title"})}),p&&i.jsx(vr,{variant:"default",iconSize:"small",iconName:"close",hasTooltip:!1,label:"Close",disabled:!1,onClick:()=>r()})]}),f&&i.jsx("hr",{className:"ds-border-neutrals-light"}),s&&i.jsx("div",{className:`ds-h-auto ds-max-h-[48.6rem] ds-grow ds-overflow-y-auto ds-px-5 ${o?"ds-py-4":"ds-pb-5 ds-pt-4"}`,children:s}),o&&i.jsx("div",{className:"ds-flex ds-justify-end ds-gap-x-4 ds-px-5 ds-py-4",children:o})]})})})})]})})},Gi=Ui,Zi=P(["preflight","ds-rounded-xl","ds-border","ds-px-2","ds-py-1","ds-inline-flex","ds-items-center"],{variants:{color:{default:["ds-border-neutrals-light"],gray:["ds-bg-neutrals-lighter","ds-border-neutrals-lighter"],blue:["ds-bg-information-blue-lightest","ds-text-information-blue-darkest","ds-border-information-blue-lightest"],green:["ds-bg-success-green-lightest","ds-text-success-green-darkest","ds-border-success-green-lightest"],yellow:["ds-bg-warning-yellow-lightest","ds-text-warning-yellow-darkest","ds-border-warning-yellow-lightest"],red:["ds-bg-danger-red-lightest","ds-text-danger-red-darkest","ds-border-danger-red-lightest"]},type:{regular:["ds-text-base"],small:["ds-text-sm"]}}}),Yi=({label:e,type:r="regular",color:n="default",dismissible:t=!1,dismissLabel:s="",className:o="",onDismiss:a,...l})=>{const c=l["aria-label"]||e;return i.jsxs("div",{className:I(Zi({color:n,type:r}),o),"aria-label":c,...l,children:[i.jsx("div",{className:"ds-max-w-[200px] ds-truncate ds-leading-6",children:e}),t&&i.jsx(vr,{variant:"small",iconName:"close",label:s||"dismiss",disabled:!1,onClick:()=>a&&a(),className:"ds-ms-1",isTransparent:!0})]})},gn=Yi,qi=P(["preflight","ds-transition","ds-duration-100","ds-text-nowrap","!ds-font-sans","ds-text-base","ds-p-2","active:ds-text-neutrals-white","focus-visible:ds-ring-neutrals-black","focus-visible:ds-ring-2","focus-visible:ds-outline-none","focus-visible:ds-ring-offset-2"],{variants:{isNested:{true:["ds-rounded-xl","ds-my-2","ds-mx-1","ds-border","ds-border-neutrals-lighter","hover:ds-bg-neutrals-light","active:ds-bg-neutrals-dark","focus-visible:ds-ring-neutrals-black","focus-visible:ds-ring-2","focus-visible:ds-outline-none","focus-visible:ds-ring-offset-2","focus-visible:ds-bg-neutrals-white"],false:["ds-rounded","ds-rounded-b-none","ds-border-b-2","ds-border-b-neutrals-white","ds-my-1","ds-mr-2","hover:ds-bg-acuity-green-lighter","hover:ds-border-b-acuity-green-lighter","active:ds-bg-acuity-green-darkest","active:ds-border-b-acuity-green-darkest","focus-visible:ds-bg-acuity-green-lightest","focus-visible:ds-border-b-acuity-green-lightest"]}}}),Ki=({title:e,id:r,handleClick:n,isActive:t,isNested:s=!1,badgeText:o="",className:a="",...l})=>{const c=(p,f,h)=>I(qi({isNested:p}),f&&!p&&"!ds-border-b-acuity-green",f&&p&&"ds-bg-neutrals-white !ds-border-neutrals",h);return i.jsxs("button",{className:c(s,t,a),role:"tab",id:`tab-${r}`,"aria-controls":`panel-${r}`,"aria-selected":t,onClick:n,...l,children:[e,o&&i.jsx(gn,{label:o,className:"ds-ml-2 ds-h-5 ds-bg-neutrals-white ds-text-neutrals-black"})]})},Ji=({id:e,children:r,hidden:n})=>i.jsx("div",{role:"tabpanel",id:`panel-${e}`,"aria-labelledby":`tab-${e}`,hidden:n,className:"preflight",children:r}),Xi=({children:e,handleTabChange:r,activeTabIndex:n,isNested:t,className:s="",...o})=>{const a=u.Children.toArray(e).filter(l=>{var c,p;return u.isValidElement(l)&&!!((c=l.props)!=null&&c.id)&&!!((p=l.props)!=null&&p.title)});return a.length<u.Children.toArray(e).length&&console.error("You can only pass <Tab> components with defined id and title as children of the <Tabs> component."),i.jsxs("div",{className:`prelight ${s}`,...o,children:[i.jsx("div",{role:"tablist",className:`preflight ds-mb-5 ds-rounded ${t&&"!ds-mb-4 ds-bg-neutrals-lighter ds-px-2"}`,children:a.map((l,c)=>i.jsx(Ki,{handleClick:()=>r(c),isActive:n===c,badgeText:l.props.badgeText,isNested:t,...l.props},`tab-${c}`))}),a.map((l,c)=>i.jsx(Ji,{id:l.props.id,hidden:n!==c,children:l.props.children},`panel-${c}`))]})},Qi=Xi,el=({children:e})=>e,rl=el,tl=P(["preflight","ds-form-label","!ds-font-sans","ds-text-base","ds-cursor-pointer","ds-w-[fit-content]"],{variants:{state:{default:["ds-text-neutrals-black"],error:["ds-text-danger-red-darkest"],success:["ds-text-success-green-darkest"]},disabled:{true:"!ds-text-neutrals-dark"}}}),nl=e=>I(tl(e)),sl=({id:e,state:r="default",disabled:n=!1,htmlFor:t,value:s="",optionalityLabel:o=""})=>i.jsxs("label",{id:e,htmlFor:t,className:nl({state:r,disabled:n}),children:[s,o&&i.jsx("span",{className:"ds-text-sm ds-text-neutrals-darker",children:` (${o})`})]}),bn=sl,ol=P(["preflight","group","ds-flex","ds-flex-col","ds-container"],{variants:{state:{default:["[&>label]:focus-within:ds-text-acuity-blue"],error:["[&>label]:focus-within:ds-text-danger-red-darkest"],success:["[&>label]:focus-within:ds-text-success-green-darkest"]},hasMarginBottom:{true:""}},compoundVariants:[{state:"default",hasMarginBottom:!0,className:["ds-mb-6"]}]}),al=e=>I(ol(e)),il=P(["ds-form-label","!ds-font-sans","ds-text-base"],{variants:{state:{default:["ds-text-neutrals-black","ds-mt-2"],error:["ds-text-danger-red","ds-mt-2"],success:["ds-text-success-green-dark","ds-truncate","ds-text-sm","ds-mt-1"]},hasMarginBottom:{true:["ds-mb-6"],false:["ds-mb-0"]},disabled:{true:"!ds-text-neutrals-dark"}}}),ll=e=>I(il(e)),dl=({id:e,state:r="default",disabled:n=!1,label:t="",optionalityLabel:s="",helpText:o=[],message:a="",child:l,isTextarea:c=!1,className:p="",hasMarginBottom:f=!0})=>{let h=null;switch(r){case"error":h={name:"error",color:"ds-text-danger-red"};break;case"success":h={name:"checkCircle",color:"ds-text-success-green"};break}const g=t?"label_"+e:void 0,b=o&&o.length>0?"helptext_"+e:void 0;return i.jsxs("div",{className:I(al({state:r,hasMarginBottom:f}),p),children:[t&&i.jsx(bn,{id:g,htmlFor:e,value:t,optionalityLabel:s,disabled:n}),o&&o.length>1&&i.jsx("ul",{id:b,className:"ds-mt-2 ds-pb-1 ds-pl-6",children:o==null?void 0:o.map((x,w)=>i.jsx("li",{className:"ds-list-disc ds-text-neutrals-dark",children:x},w))}),o&&o.length===1&&i.jsx("p",{id:b,className:"ds-mt-2 ds-pb-1 ds-text-neutrals-dark",children:o}),i.jsxs("div",{className:"ds-mt-2 ds-flex ds-gap-2",children:[i.jsx("div",{className:c?"":"ds-w-[calc(100%-2rem)]",children:l}),i.jsx("div",{className:"ds-pt-2",children:h&&i.jsx(me,{name:h.name,size:"medium",className:h.color,role:"graphics-symbol"})})]}),h&&i.jsx("p",{className:ll({state:r,hasMarginBottom:f}),children:a})]})},nt=dl,cl=P(["preflight","ds-form-input","ds-rounded","ds-p-2","!ds-border","!ds-font-sans"],Zr),ul=e=>I(cl(e)),fl=({state:e="default",rows:r=2,cols:n=50,isResizable:t=!0,disabled:s=!1,...o})=>i.jsx("textarea",{"aria-invalid":e=="error",rows:r,cols:n,readOnly:s,className:ul({disabled:s,state:e}),style:{resize:t?"both":"none"},...o}),vn=fl,pl=({id:e,state:r="default",label:n,rows:t=2,cols:s=50,isResizable:o=!0,optionalityLabel:a="",helpText:l=[],message:c="",disabled:p=!1,className:f="",hasMarginBottom:h=!0,onBlur:g,...b})=>i.jsx(nt,{id:e,state:r,disabled:p,label:n,optionalityLabel:a,helpText:l,message:c,isTextarea:!0,className:f,hasMarginBottom:h,child:i.jsx(vn,{id:e,"aria-labelledby":n?"label_"+e:void 0,"aria-describedby":l&&l.length>0?"helptext_"+e:void 0,state:r,rows:t,cols:s,isResizable:o,disabled:p,onBlur:g,...b})}),hl=pl,ml=P(["preflight","ds-form-input","ds-h-[40px]","ds-rounded","ds-p-2","!ds-border","!ds-font-sans","ds-container"],Zr),gl=e=>I(ml(e)),bl=u.forwardRef(({state:e="default",disabled:r=!1,type:n="text",...t},s)=>i.jsx("input",{"aria-disabled":r,readOnly:r,type:n,className:gl({disabled:r,state:e}),ref:s,...t})),xn=bl,vl=u.forwardRef(({id:e,state:r="default",disabled:n=!1,type:t="text",label:s,optionalityLabel:o="",helpText:a=[],message:l="",className:c="",hasMarginBottom:p=!0,onBlur:f,...h},g)=>i.jsx(nt,{id:e,state:r,disabled:n,label:s,optionalityLabel:o,helpText:a,message:l,className:c,hasMarginBottom:p,child:i.jsx(xn,{id:e,"aria-labelledby":s?"label_"+e:void 0,"aria-describedby":a&&a.length>0?"helptext_"+e:void 0,type:t,state:r,disabled:n,ref:g,onBlur:f,...h})})),xl=vl,Cl=P(["preflight","ds-form-select","ds-h-[40px]","ds-rounded","ds-p-2","!ds-border","!ds-font-sans","ds-container","ds-bg-[center_right_0.25rem]"],Zr),wl=e=>Cl(e),kl=`url('data:image/svg+xml,<svg width="16" height="16" viewBox="5 -5 15 35" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="%23949494" ><path d="M21.375 8.09253L12.4417 17.025C12.3837 17.0831 12.3148 17.1291 12.2391 17.1605C12.1632 17.192 12.082 17.2082 12 17.2082C11.918 17.2082 11.8368 17.192 11.7609 17.1605C11.6852 17.1291 11.6163 17.0831 11.5583 17.025L2.625 8.09253" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" stroke="%23000000" /></svg>')`,yl=u.forwardRef(({state:e="default",disabled:r=!1,className:n="",...t},s)=>{const{onClick:o,onKeyDown:a,onMouseDown:l,...c}=t;return i.jsx("select",{ref:s,"aria-disabled":r,style:{backgroundImage:kl},className:I(wl({disabled:r,state:e}),n),onClick:p=>Eo(p,r,o!=null?o:()=>{}),onKeyDown:p=>Lo(p,r,a!=null?a:()=>{}),onMouseDown:p=>$o(p,r,l!=null?l:()=>{}),...c,children:t.children})}),Cn=yl,jl=u.forwardRef(({id:e,state:r="default",disabled:n=!1,label:t,optionalityLabel:s="",helpText:o=[],message:a="",className:l="",hasMarginBottom:c=!0,onBlur:p,...f},h)=>i.jsx(nt,{id:e,state:r,disabled:n,label:t,optionalityLabel:s,helpText:o,message:a,className:l,hasMarginBottom:c,child:i.jsx(Cn,{id:e,"aria-labelledby":t?"label_"+e:void 0,"aria-describedby":o&&o.length>0?"helptext_"+e:void 0,state:r,disabled:n,onBlur:p,ref:h,...f})})),El=jl,Ll=P("ds-overflow-hidden ds-bg-neutrals-light",{variants:{size:{small:["ds-h-2","ds-rounded-sm"],large:["ds-h-4","ds-rounded"]}}}),$l=P("",{variants:{size:{small:["ds-h-2","ds-rounded-sm"],large:["ds-h-4","ds-rounded"]},state:{"in-progress":["ds-bg-acuity-blue"],error:["ds-bg-danger-red-dark"],success:["ds-bg-success-green"],indeterminate:["ds-bg-acuity-blue","ds-animate-progress"]}}}),Ml=P("ds-w-[3rem] ds-justify-end ds-flex ds-items-center ds-text-neutrals-dark",{variants:{size:{small:"ds-text-sm",large:""}}}),Sl=P("ds-text-sm",{variants:{state:{error:"ds-text-danger-red",success:"ds-text-neutrals-dark",indeterminate:"ds-text-neutrals-dark","in-progress":"ds-text-neutrals-dark"}}}),Nl=({size:e="large",label:r="",helperMessage:n="",className:t="",state:s="indeterminate",maxValue:o=100,value:a=0,hideIcon:l=!1,...c})=>{const p=()=>{let g=Math.round(a/o*100);return g<0?g=0:g>100&&(g=100),s!=="in-progress"?"100%":`${g}%`},f=()=>{if(l)return null;switch(s){case"in-progress":return p();case"error":return i.jsx(me,{name:"error",size:e==="small"?"small":"medium",className:"ds-float-right ds-text-danger-red-dark",role:"graphics-symbol",filled:!0});case"success":return i.jsx(me,{name:"checkCircle",size:e==="small"?"small":"medium",className:"ds-float-right ds-text-success-green-dark",role:"graphics-symbol",filled:!0});case"indeterminate":default:return null}},h=()=>s==="in-progress"||s==="indeterminate"?i.jsxs("div",{className:"ds-ml-1 ds-mt-2 ds-flex ds-w-[15px] ds-items-center ds-space-x-[2px]",children:[i.jsx("div",{className:"ds-h-[3px] ds-w-[3px] ds-animate-blink ds-rounded-full ds-bg-neutrals-black [animation-delay:-0.2s]"}),i.jsx("div",{className:"ds-h-[3px] ds-w-[3px] ds-animate-blink ds-rounded-full ds-bg-neutrals-black [animation-delay:-0.15s]"}),i.jsx("div",{className:"ds-h-[3px] ds-w-[3px] ds-animate-blink ds-rounded-full ds-bg-neutrals-black"})]}):null;return i.jsxs("div",{className:I("preflight ds-min-w-[4.875rem]",t),...c,children:[i.jsxs("div",{className:"ds-flex ds-h-5 ds-items-center ds-justify-between",children:[i.jsxs("div",{className:"progress-bar-label ds-flex ds-max-w-[calc(100%-3rem)] ds-overflow-hidden",children:[i.jsx("p",{className:"ds-overflow-hidden ds-text-nowrap",children:r}),h()]}),i.jsx("div",{"aria-hidden":!0,className:Ml({size:e}),children:f()})]}),i.jsx("div",{role:"progressbar",className:"ds-mb-1 ds-mt-1","aria-label":r,"aria-valuemin":0,"aria-valuenow":a,"aria-valuemax":o,"aria-valuetext":p(),children:i.jsx("div",{className:Ll({size:e}),children:i.jsx("div",{style:{width:p()},className:$l({size:e,state:s})})})}),i.jsx("p",{className:Sl({state:s}),children:n})]})},Tl=Nl;exports.Alert=Bt;exports.Badge=gn;exports.Button=zt;exports.Card=Do;exports.Checkbox=Uo;exports.Dropdown=El;exports.DropdownAtom=Cn;exports.FormValidation=Yo;exports.Heading=Yr;exports.Icon=me;exports.IconButton=vr;exports.LabelAtom=bn;exports.Link=la;exports.Modal=Gi;exports.ProgressBar=Tl;exports.Radio=oa;exports.Spinner=pr;exports.Tab=rl;exports.Tabs=Qi;exports.TextInput=xl;exports.TextInputAtom=xn;exports.Textarea=hl;exports.TextareaAtom=vn;
|
|
131
|
+
const theme1 = createTheme({ palette: {
|
|
132
|
+
primary: green,
|
|
133
|
+
} });
|
|
134
|
+
|
|
135
|
+
const theme2 = createTheme({ palette: {
|
|
136
|
+
primary: { main: green[500] },
|
|
137
|
+
} });`:So(12,x?` (${x})`:"",JSON.stringify(v.main)));return o?(bb(o,v,"light",w,r),bb(o,v,"dark",k,r)):(gb(v,"light",w,r),gb(v,"dark",k,r)),v.contrastText||(v.contrastText=m(v.main)),v};let y;return t==="light"?y=Ix():t==="dark"&&(y=Ox()),process.env.NODE_ENV!=="production"&&(y||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Cn({common:{...Ql},mode:t,primary:f({color:l,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:c,name:"error"}),warning:f({color:p,name:"warning"}),info:f({color:u,name:"info"}),success:f({color:d,name:"success"}),grey:Z4,contrastThreshold:n,getContrastText:m,augmentColor:f,tonalOffset:r,...y},i)}function sM(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function iM(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function lM(e){return Math.round(e*1e5)/1e5}const yb={textTransform:"uppercase"},vb='"Roboto", "Helvetica", "Arial", sans-serif';function Mx(e,t){const{fontFamily:n=vb,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...p}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const m=r/14,f=d||(v=>`${v/c*m}rem`),y=(v,x,S,w,k)=>({fontFamily:n,fontWeight:v,fontSize:f(x),lineHeight:S,...n===vb?{letterSpacing:`${lM(w/x)}em`}:{},...k,...u}),g={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(l,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(l,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(l,14,1.75,.4,yb),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,yb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Cn({htmlFontSize:c,pxToRem:f,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:a,...g},p,{clone:!1})}const aM=.2,cM=.14,uM=.12;function qt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${aM})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${cM})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${uM})`].join(",")}const dM=["none",qt(0,2,1,-1,0,1,1,0,0,1,3,0),qt(0,3,1,-2,0,2,2,0,0,1,5,0),qt(0,3,3,-2,0,3,4,0,0,1,8,0),qt(0,2,4,-1,0,4,5,0,0,1,10,0),qt(0,3,5,-1,0,5,8,0,0,1,14,0),qt(0,3,5,-1,0,6,10,0,0,1,18,0),qt(0,4,5,-2,0,7,10,1,0,2,16,1),qt(0,5,5,-3,0,8,10,1,0,3,14,2),qt(0,5,6,-3,0,9,12,1,0,3,16,2),qt(0,6,6,-3,0,10,14,1,0,4,18,3),qt(0,6,7,-4,0,11,15,1,0,4,20,3),qt(0,7,8,-4,0,12,17,2,0,5,22,4),qt(0,7,8,-4,0,13,19,2,0,5,24,4),qt(0,7,9,-4,0,14,21,2,0,5,26,4),qt(0,8,9,-5,0,15,22,2,0,6,28,5),qt(0,8,10,-5,0,16,24,2,0,6,30,5),qt(0,8,11,-5,0,17,26,2,0,6,32,5),qt(0,9,11,-5,0,18,28,2,0,7,34,6),qt(0,9,12,-6,0,19,29,2,0,7,36,6),qt(0,10,13,-6,0,20,31,3,0,8,38,7),qt(0,10,13,-6,0,21,33,3,0,8,40,7),qt(0,10,14,-6,0,22,35,3,0,8,42,7),qt(0,11,14,-7,0,23,36,3,0,9,44,8),qt(0,11,15,-7,0,24,38,3,0,9,46,8)],pM={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)"},fM={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function xb(e){return`${Math.round(e)}ms`}function mM(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function hM(e){const t={...pM,...e.easing},n={...fM,...e.duration};return{getAutoHeightDuration:mM,create:(o=["all"],i={})=>{const{duration:l=n.standard,easing:a=t.easeInOut,delay:c=0,...u}=i;if(process.env.NODE_ENV!=="production"){const d=m=>typeof m=="string",p=m=>!Number.isNaN(parseFloat(m));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(l)&&!d(l)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${l}.`),d(a)||console.error('MUI: Argument "easing" must be a string.'),!p(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
138
|
+
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof l=="string"?l:xb(l)} ${a} ${typeof c=="string"?c:xb(c)}`).join(",")},...e,easing:t,duration:n}}const gM={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function bM(e){return Qr(e)||typeof e=="undefined"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Rx(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[l,a]=o[i];!bM(a)||l.startsWith("unstable_")?delete r[l]:Qr(a)&&(r[l]={...a},n(r[l]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
139
|
+
|
|
140
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
141
|
+
|
|
142
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
143
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
144
|
+
|
|
145
|
+
export default theme;`}function Cb(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const yM=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function vM(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:fr(t,yM(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Cb(n)})`:Ea(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Cb(n)})`:ka(t,n)}})}function Kp(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:l={},typography:a={},shape:c,colorSpace:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://v7.mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":So(20));const p=Sm({...i,colorSpace:u}),m=Vu(e);let f=Cn(m,{mixins:iM(m.breakpoints,r),palette:p,shadows:dM.slice(),typography:Mx(p,a),transitions:hM(l),zIndex:{...gM}});if(f=Cn(f,d),f=t.reduce((y,g)=>Cn(y,g),f),process.env.NODE_ENV!=="production"){const y=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(v,x)=>{let S;for(S in v){const w=v[S];if(y.includes(S)&&Object.keys(w).length>0){if(process.env.NODE_ENV!=="production"){const k=Ne("",S);console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${S}\` internal state.`,"You can not override it like this: ",JSON.stringify(v,null,2),"",`Instead, you need to use the '&.${k}' syntax:`,JSON.stringify({root:{[`&.${k}`]:w}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
146
|
+
`))}v[S]={}}}};Object.keys(f.components).forEach(v=>{const x=f.components[v].styleOverrides;x&&v.startsWith("Mui")&&g(x,v)})}return f.unstable_sxConfig={...va,...d==null?void 0:d.unstable_sxConfig},f.unstable_sx=function(g){return Yo({sx:g,theme:this})},f.toRuntimeSource=Rx,vM(f),f}function Yp(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const xM=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Yp(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function jx(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Lx(e){return e==="dark"?xM:[]}function CM(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=e,l=Sm({...t,colorSpace:o});return{palette:l,opacity:{...jx(l.mode),...n},overlays:r||Lx(l.mode),...i}}function wM(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const SM=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],kM=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return SM(e.cssVarPrefix).forEach(a=>{l[a]=n[a],delete n[a]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:l}}:i?{[i.replace("%s",t)]:l,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...l}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function EM(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function pe(e,t,n){!e[t]&&n&&(e[t]=n)}function kl(e){return typeof e!="string"||!e.startsWith("hsl")?e:Cx(e)}function mo(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Sl(kl(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
147
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function TM(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Wr=e=>{try{return e()}catch(t){}},IM=(e="mui")=>_4(e);function Yd(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const i=o==="dark"?"dark":"light";if(!r){t[o]=CM({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:l,...a}=Kp({...r,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[o]={...n,palette:l,opacity:{...jx(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||Lx(i)},a}function PM(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:l=!1,shouldSkipGeneratingVar:a=wM,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,p=Object.keys(n)[0],m=r||(n.light&&p!=="light"?"light":p),f=IM(i),{[m]:y,light:g,dark:v,...x}=n,S={...x};let w=y;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(w=!0),!w)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${m}\` option is either missing or invalid.`:So(21,m));let k;l&&(k="oklch");const E=Yd(k,S,w,d,m);g&&!S.light&&Yd(k,S,g,void 0,"light"),v&&!S.dark&&Yd(k,S,v,void 0,"dark");let T={defaultColorScheme:m,...E,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:f,colorSchemes:S,font:{...sM(E.typography),...E.font},spacing:TM(d.spacing)};Object.keys(T.colorSchemes).forEach($=>{const C=T.colorSchemes[$].palette,j=M=>{const R=M.split("-"),_=R[1],V=R[2];return f(M,C[_][V])};C.mode==="light"&&(pe(C.common,"background","#fff"),pe(C.common,"onBackground","#000")),C.mode==="dark"&&(pe(C.common,"background","#000"),pe(C.common,"onBackground","#fff"));function F(M,R,_){if(k){let V;return M===us&&(V=`transparent ${((1-_)*100).toFixed(0)}%`),M===jt&&(V=`#000 ${(_*100).toFixed(0)}%`),M===Lt&&(V=`#fff ${(_*100).toFixed(0)}%`),`color-mix(in ${k}, ${R}, ${V})`}return M(R,_)}if(EM(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){pe(C.Alert,"errorColor",F(jt,l?f("palette-error-light"):C.error.light,.6)),pe(C.Alert,"infoColor",F(jt,l?f("palette-info-light"):C.info.light,.6)),pe(C.Alert,"successColor",F(jt,l?f("palette-success-light"):C.success.light,.6)),pe(C.Alert,"warningColor",F(jt,l?f("palette-warning-light"):C.warning.light,.6)),pe(C.Alert,"errorFilledBg",j("palette-error-main")),pe(C.Alert,"infoFilledBg",j("palette-info-main")),pe(C.Alert,"successFilledBg",j("palette-success-main")),pe(C.Alert,"warningFilledBg",j("palette-warning-main")),pe(C.Alert,"errorFilledColor",Wr(()=>C.getContrastText(C.error.main))),pe(C.Alert,"infoFilledColor",Wr(()=>C.getContrastText(C.info.main))),pe(C.Alert,"successFilledColor",Wr(()=>C.getContrastText(C.success.main))),pe(C.Alert,"warningFilledColor",Wr(()=>C.getContrastText(C.warning.main))),pe(C.Alert,"errorStandardBg",F(Lt,l?f("palette-error-light"):C.error.light,.9)),pe(C.Alert,"infoStandardBg",F(Lt,l?f("palette-info-light"):C.info.light,.9)),pe(C.Alert,"successStandardBg",F(Lt,l?f("palette-success-light"):C.success.light,.9)),pe(C.Alert,"warningStandardBg",F(Lt,l?f("palette-warning-light"):C.warning.light,.9)),pe(C.Alert,"errorIconColor",j("palette-error-main")),pe(C.Alert,"infoIconColor",j("palette-info-main")),pe(C.Alert,"successIconColor",j("palette-success-main")),pe(C.Alert,"warningIconColor",j("palette-warning-main")),pe(C.AppBar,"defaultBg",j("palette-grey-100")),pe(C.Avatar,"defaultBg",j("palette-grey-400")),pe(C.Button,"inheritContainedBg",j("palette-grey-300")),pe(C.Button,"inheritContainedHoverBg",j("palette-grey-A100")),pe(C.Chip,"defaultBorder",j("palette-grey-400")),pe(C.Chip,"defaultAvatarColor",j("palette-grey-700")),pe(C.Chip,"defaultIconColor",j("palette-grey-700")),pe(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),pe(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),pe(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),pe(C.LinearProgress,"primaryBg",F(Lt,l?f("palette-primary-main"):C.primary.main,.62)),pe(C.LinearProgress,"secondaryBg",F(Lt,l?f("palette-secondary-main"):C.secondary.main,.62)),pe(C.LinearProgress,"errorBg",F(Lt,l?f("palette-error-main"):C.error.main,.62)),pe(C.LinearProgress,"infoBg",F(Lt,l?f("palette-info-main"):C.info.main,.62)),pe(C.LinearProgress,"successBg",F(Lt,l?f("palette-success-main"):C.success.main,.62)),pe(C.LinearProgress,"warningBg",F(Lt,l?f("palette-warning-light"):C.warning.main,.62)),pe(C.Skeleton,"bg",k?F(us,l?f("palette-text-primary"):C.text.primary,.11):`rgba(${j("palette-text-primaryChannel")} / 0.11)`),pe(C.Slider,"primaryTrack",F(Lt,l?f("palette-primary-main"):C.primary.main,.62)),pe(C.Slider,"secondaryTrack",F(Lt,l?f("palette-secondary-main"):C.secondary.main,.62)),pe(C.Slider,"errorTrack",F(Lt,l?f("palette-error-main"):C.error.main,.62)),pe(C.Slider,"infoTrack",F(Lt,l?f("palette-info-main"):C.info.main,.62)),pe(C.Slider,"successTrack",F(Lt,l?f("palette-success-main"):C.success.main,.62)),pe(C.Slider,"warningTrack",F(Lt,l?f("palette-warning-main"):C.warning.main,.62));const M=k?F(jt,l?f("palette-background-default"):C.background.default,.6825):cc(C.background.default,.8);pe(C.SnackbarContent,"bg",M),pe(C.SnackbarContent,"color",Wr(()=>k?qp.text.primary:C.getContrastText(M))),pe(C.SpeedDialAction,"fabHoverBg",cc(C.background.paper,.15)),pe(C.StepConnector,"border",j("palette-grey-400")),pe(C.StepContent,"border",j("palette-grey-400")),pe(C.Switch,"defaultColor",j("palette-common-white")),pe(C.Switch,"defaultDisabledColor",j("palette-grey-100")),pe(C.Switch,"primaryDisabledColor",F(Lt,l?f("palette-primary-main"):C.primary.main,.62)),pe(C.Switch,"secondaryDisabledColor",F(Lt,l?f("palette-secondary-main"):C.secondary.main,.62)),pe(C.Switch,"errorDisabledColor",F(Lt,l?f("palette-error-main"):C.error.main,.62)),pe(C.Switch,"infoDisabledColor",F(Lt,l?f("palette-info-main"):C.info.main,.62)),pe(C.Switch,"successDisabledColor",F(Lt,l?f("palette-success-main"):C.success.main,.62)),pe(C.Switch,"warningDisabledColor",F(Lt,l?f("palette-warning-main"):C.warning.main,.62)),pe(C.TableCell,"border",F(Lt,us(l?f("palette-divider"):C.divider,1),.88)),pe(C.Tooltip,"bg",F(us,l?f("palette-grey-700"):C.grey[700],.92))}if(C.mode==="dark"){pe(C.Alert,"errorColor",F(Lt,l?f("palette-error-light"):C.error.light,.6)),pe(C.Alert,"infoColor",F(Lt,l?f("palette-info-light"):C.info.light,.6)),pe(C.Alert,"successColor",F(Lt,l?f("palette-success-light"):C.success.light,.6)),pe(C.Alert,"warningColor",F(Lt,l?f("palette-warning-light"):C.warning.light,.6)),pe(C.Alert,"errorFilledBg",j("palette-error-dark")),pe(C.Alert,"infoFilledBg",j("palette-info-dark")),pe(C.Alert,"successFilledBg",j("palette-success-dark")),pe(C.Alert,"warningFilledBg",j("palette-warning-dark")),pe(C.Alert,"errorFilledColor",Wr(()=>C.getContrastText(C.error.dark))),pe(C.Alert,"infoFilledColor",Wr(()=>C.getContrastText(C.info.dark))),pe(C.Alert,"successFilledColor",Wr(()=>C.getContrastText(C.success.dark))),pe(C.Alert,"warningFilledColor",Wr(()=>C.getContrastText(C.warning.dark))),pe(C.Alert,"errorStandardBg",F(jt,l?f("palette-error-light"):C.error.light,.9)),pe(C.Alert,"infoStandardBg",F(jt,l?f("palette-info-light"):C.info.light,.9)),pe(C.Alert,"successStandardBg",F(jt,l?f("palette-success-light"):C.success.light,.9)),pe(C.Alert,"warningStandardBg",F(jt,l?f("palette-warning-light"):C.warning.light,.9)),pe(C.Alert,"errorIconColor",j("palette-error-main")),pe(C.Alert,"infoIconColor",j("palette-info-main")),pe(C.Alert,"successIconColor",j("palette-success-main")),pe(C.Alert,"warningIconColor",j("palette-warning-main")),pe(C.AppBar,"defaultBg",j("palette-grey-900")),pe(C.AppBar,"darkBg",j("palette-background-paper")),pe(C.AppBar,"darkColor",j("palette-text-primary")),pe(C.Avatar,"defaultBg",j("palette-grey-600")),pe(C.Button,"inheritContainedBg",j("palette-grey-800")),pe(C.Button,"inheritContainedHoverBg",j("palette-grey-700")),pe(C.Chip,"defaultBorder",j("palette-grey-700")),pe(C.Chip,"defaultAvatarColor",j("palette-grey-300")),pe(C.Chip,"defaultIconColor",j("palette-grey-300")),pe(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),pe(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),pe(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),pe(C.LinearProgress,"primaryBg",F(jt,l?f("palette-primary-main"):C.primary.main,.5)),pe(C.LinearProgress,"secondaryBg",F(jt,l?f("palette-secondary-main"):C.secondary.main,.5)),pe(C.LinearProgress,"errorBg",F(jt,l?f("palette-error-main"):C.error.main,.5)),pe(C.LinearProgress,"infoBg",F(jt,l?f("palette-info-main"):C.info.main,.5)),pe(C.LinearProgress,"successBg",F(jt,l?f("palette-success-main"):C.success.main,.5)),pe(C.LinearProgress,"warningBg",F(jt,l?f("palette-warning-main"):C.warning.main,.5)),pe(C.Skeleton,"bg",k?F(us,l?f("palette-text-primary"):C.text.primary,.13):`rgba(${j("palette-text-primaryChannel")} / 0.13)`),pe(C.Slider,"primaryTrack",F(jt,l?f("palette-primary-main"):C.primary.main,.5)),pe(C.Slider,"secondaryTrack",F(jt,l?f("palette-secondary-main"):C.secondary.main,.5)),pe(C.Slider,"errorTrack",F(jt,l?f("palette-error-main"):C.error.main,.5)),pe(C.Slider,"infoTrack",F(jt,l?f("palette-info-main"):C.info.main,.5)),pe(C.Slider,"successTrack",F(jt,l?f("palette-success-main"):C.success.main,.5)),pe(C.Slider,"warningTrack",F(jt,l?f("palette-warning-light"):C.warning.main,.5));const M=k?F(Lt,l?f("palette-background-default"):C.background.default,.985):cc(C.background.default,.98);pe(C.SnackbarContent,"bg",M),pe(C.SnackbarContent,"color",Wr(()=>k?Px.text.primary:C.getContrastText(M))),pe(C.SpeedDialAction,"fabHoverBg",cc(C.background.paper,.15)),pe(C.StepConnector,"border",j("palette-grey-600")),pe(C.StepContent,"border",j("palette-grey-600")),pe(C.Switch,"defaultColor",j("palette-grey-300")),pe(C.Switch,"defaultDisabledColor",j("palette-grey-600")),pe(C.Switch,"primaryDisabledColor",F(jt,l?f("palette-primary-main"):C.primary.main,.55)),pe(C.Switch,"secondaryDisabledColor",F(jt,l?f("palette-secondary-main"):C.secondary.main,.55)),pe(C.Switch,"errorDisabledColor",F(jt,l?f("palette-error-main"):C.error.main,.55)),pe(C.Switch,"infoDisabledColor",F(jt,l?f("palette-info-main"):C.info.main,.55)),pe(C.Switch,"successDisabledColor",F(jt,l?f("palette-success-main"):C.success.main,.55)),pe(C.Switch,"warningDisabledColor",F(jt,l?f("palette-warning-light"):C.warning.main,.55)),pe(C.TableCell,"border",F(jt,us(l?f("palette-divider"):C.divider,1),.68)),pe(C.Tooltip,"bg",F(us,l?f("palette-grey-700"):C.grey[700],.92))}l||(mo(C.background,"default"),mo(C.background,"paper"),mo(C.common,"background"),mo(C.common,"onBackground"),mo(C,"divider")),Object.keys(C).forEach(M=>{const R=C[M];M!=="tonalOffset"&&!l&&R&&typeof R=="object"&&(R.main&&pe(C[M],"mainChannel",Sl(kl(R.main))),R.light&&pe(C[M],"lightChannel",Sl(kl(R.light))),R.dark&&pe(C[M],"darkChannel",Sl(kl(R.dark))),R.contrastText&&pe(C[M],"contrastTextChannel",Sl(kl(R.contrastText))),M==="text"&&(mo(C[M],"primary"),mo(C[M],"secondary")),M==="action"&&(R.active&&mo(C[M],"active"),R.selected&&mo(C[M],"selected")))})}),T=t.reduce(($,C)=>Cn($,C),T);const N={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:kM(T),enableContrastVars:l},{vars:P,generateThemeVars:O,generateStyleSheets:L}=V4(T,N);return T.vars=P,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([$,C])=>{T[$]=C}),T.generateThemeVars=O,T.generateStyleSheets=L,T.generateSpacing=function(){return mx(d.spacing,Lu(this))},T.getColorSchemeSelector=H4(c),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=a,T.unstable_sxConfig={...va,...d==null?void 0:d.unstable_sxConfig},T.unstable_sx=function(C){return Yo({sx:C,theme:this})},T.toRuntimeSource=Rx,T}function wb(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Sm({...n===!0?{}:n.palette,mode:t})})}function Gu(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...l}=e,a=i||"light",c=o==null?void 0:o[a],u={...o,...n?{[a]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Kp(e,...t);let d=n;"palette"in e||u[a]&&(u[a]!==!0?d=u[a].palette:a==="dark"&&(d={mode:"dark"}));const p=Kp({...e,palette:d},...t);return p.defaultColorScheme=a,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},wb(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},wb(p,"light",u.light)),p}return!n&&!("light"in u)&&a==="light"&&(u.light=!0),PM({...l,colorSchemes:u,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const km=Gu(),no="$$material";function nn(){const e=Hu(km);return process.env.NODE_ENV!=="production"&&b.useDebugValue(e),e[no]||e}function $x(e){return h.jsx(bm,{...e,defaultTheme:km,themeId:no})}process.env.NODE_ENV!=="production"&&($x.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function Nx(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const On=e=>Nx(e)&&e!=="classes",ne=yx({themeId:no,defaultTheme:km,rootShouldForwardProp:On});function Em(e){return function(n){return h.jsx($x,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function OM(){return lm}const je=M4;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function ze(e){return T4(e)}function MM(e){return Ne("MuiSvgIcon",e)}$e("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const RM=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ie(t)}`,`fontSize${ie(n)}`]};return ye(o,MM,r)},jM=ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ie(n.color)}`],t[`fontSize${ie(n.fontSize)}`]]}})(je(({theme:e})=>{var t,n,r,o,i,l,a,c,u,d,p,m,f,y,g,v,x,S;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(i=(t=e.transitions)==null?void 0:t.create)==null?void 0:i.call(t,"fill",{duration:(o=(r=((n=e.vars)!=null?n:e).transitions)==null?void 0:r.duration)==null?void 0:o.shorter}),variants:[{props:w=>!w.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:a.call(l,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((p=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:p.call(d,35))||"2.1875rem"}},...Object.entries(((m=e.vars)!=null?m:e).palette).filter(([,w])=>w&&w.main).map(([w])=>{var k,E,T;return{props:{color:w},style:{color:(T=(E=((k=e.vars)!=null?k:e).palette)==null?void 0:E[w])==null?void 0:T.main}}}),{props:{color:"action"},style:{color:(g=(y=((f=e.vars)!=null?f:e).palette)==null?void 0:y.action)==null?void 0:g.active}},{props:{color:"disabled"},style:{color:(S=(x=((v=e.vars)!=null?v:e).palette)==null?void 0:x.action)==null?void 0:S.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Ms=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:l="inherit",component:a="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:m="0 0 24 24",...f}=r,y=b.isValidElement(o)&&o.type==="svg",g={...r,color:l,component:a,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:m,hasSvgAsChild:y},v={};d||(v.viewBox=m);const x=RM(g);return h.jsxs(jM,{as:a,className:ue(x.root,i),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...v,...f,...y&&o.props,ownerState:g,children:[y?o.props.children:o,p?h.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(Ms.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,fontSize:s.oneOfType([s.oneOf(["inherit","large","medium","small"]),s.string]),htmlColor:s.string,inheritViewBox:s.bool,shapeRendering:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleAccess:s.string,viewBox:s.string});Ms.muiName="SvgIcon";function Me(e,t){function n(r,o){return h.jsx(Ms,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Ms.muiName,b.memo(b.forwardRef(n))}function Tm(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Yt(e){return e&&e.ownerDocument||document}function vr(e){return Yt(e).defaultView||window}function Xp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function LM(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=o||t;return typeof e[t]!="undefined"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function Go(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:i}=b.useRef(t!==void 0),[l,a]=b.useState(n),c=i?t:l;if(process.env.NODE_ENV!=="production"){b.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${o} state of ${r} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} 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(`
|
|
148
|
+
`))},[o,r,t]);const{current:d}=b.useRef(n);b.useEffect(()=>{!i&&JSON.stringify(n)!==JSON.stringify(d)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
|
|
149
|
+
`))},[JSON.stringify(n)])}const u=b.useCallback(d=>{i||a(d)},[]);return[c,u]}function nt(e){const t=b.useRef(e);return Rt(()=>{t.current=e}),b.useRef((...n)=>(0,t.current)(...n)).current}function It(...e){const t=b.useRef(void 0),n=b.useCallback(r=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const l=i,a=l(r);return typeof a=="function"?a:()=>{l(null)}}return i.current=r,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},e);return b.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function $M(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Fx(e,t){if(!e)return t;function n(l,a){const c={};return Object.keys(a).forEach(u=>{$M(u,a[u])&&typeof l[u]=="function"&&(c[u]=(...d)=>{l[u](...d),a[u](...d)})}),c}if(typeof e=="function"||typeof t=="function")return l=>{const a=typeof t=="function"?t(l):t,c=typeof e=="function"?e({...l,...a}):e,u=ue(l==null?void 0:l.className,a==null?void 0:a.className,c==null?void 0:c.className),d=n(c,a);return{...a,...c,...d,...!!u&&{className:u},...(a==null?void 0:a.style)&&(c==null?void 0:c.style)&&{style:{...a.style,...c.style}},...(a==null?void 0:a.sx)&&(c==null?void 0:c.sx)&&{sx:[...Array.isArray(a.sx)?a.sx:[a.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const r=t,o=n(e,r),i=ue(r==null?void 0:r.className,e==null?void 0:e.className);return{...t,...e,...o,...!!i&&{className:i},...(r==null?void 0:r.style)&&(e==null?void 0:e.style)&&{style:{...r.style,...e.style}},...(r==null?void 0:r.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const Ax=Me(h.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");function NM(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function FM(e){return parseFloat(e)}function AM({theme:e,...t}){const n=no in e?e[no]:void 0;return h.jsx(Zl,{...t,themeId:n?no:void 0,theme:n||e})}const uc={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"};process.env.NODE_ENV!=="production"&&(s.string,s.string,s.string,s.string,s.string,s.oneOf(["dark","light","system"]),s.string,s.string);const{CssVarsProvider:DM}=D4({themeId:no,theme:()=>Gu({cssVariables:!0}),colorSchemeStorageKey:uc.colorSchemeStorageKey,modeStorageKey:uc.modeStorageKey,defaultColorScheme:{light:uc.defaultLightColorScheme,dark:uc.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:Mx(e.palette,e.typography)};return t.unstable_sx=function(r){return Yo({sx:r,theme:this})},t}}),_M=DM;function zM({theme:e,...t}){const n=b.useMemo(()=>{if(typeof e=="function")return e;const r=no in e?e[no]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?h.jsx(AM,{theme:n,...t}):h.jsx(_M,{theme:e,...t})}var dc={exports:{}},At={};/**
|
|
150
|
+
* @license React
|
|
151
|
+
* react-is.production.js
|
|
152
|
+
*
|
|
153
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
154
|
+
*
|
|
155
|
+
* This source code is licensed under the MIT license found in the
|
|
156
|
+
* LICENSE file in the root directory of this source tree.
|
|
157
|
+
*/var Sb;function BM(){if(Sb)return At;Sb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function y(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case e:switch(g=g.type,g){case n:case o:case r:case c:case u:case m:return g;default:switch(g=g&&g.$$typeof,g){case l:case a:case p:case d:return g;case i:return g;default:return v}}case t:return v}}}return At.ContextConsumer=i,At.ContextProvider=l,At.Element=e,At.ForwardRef=a,At.Fragment=n,At.Lazy=p,At.Memo=d,At.Portal=t,At.Profiler=o,At.StrictMode=r,At.Suspense=c,At.SuspenseList=u,At.isContextConsumer=function(g){return y(g)===i},At.isContextProvider=function(g){return y(g)===l},At.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},At.isForwardRef=function(g){return y(g)===a},At.isFragment=function(g){return y(g)===n},At.isLazy=function(g){return y(g)===p},At.isMemo=function(g){return y(g)===d},At.isPortal=function(g){return y(g)===t},At.isProfiler=function(g){return y(g)===o},At.isStrictMode=function(g){return y(g)===r},At.isSuspense=function(g){return y(g)===c},At.isSuspenseList=function(g){return y(g)===u},At.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===r||g===c||g===u||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===d||g.$$typeof===l||g.$$typeof===i||g.$$typeof===a||g.$$typeof===f||g.getModuleId!==void 0)},At.typeOf=y,At}var Dt={};/**
|
|
158
|
+
* @license React
|
|
159
|
+
* react-is.development.js
|
|
160
|
+
*
|
|
161
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the MIT license found in the
|
|
164
|
+
* LICENSE file in the root directory of this source tree.
|
|
165
|
+
*/var kb;function VM(){return kb||(kb=1,process.env.NODE_ENV!=="production"&&(function(){function e(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case t:switch(g=g.type,g){case r:case i:case o:case u:case d:case f:return g;default:switch(g=g&&g.$$typeof,g){case a:case c:case m:case p:return g;case l:return g;default:return v}}case n:return v}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");Dt.ContextConsumer=l,Dt.ContextProvider=a,Dt.Element=t,Dt.ForwardRef=c,Dt.Fragment=r,Dt.Lazy=m,Dt.Memo=p,Dt.Portal=n,Dt.Profiler=i,Dt.StrictMode=o,Dt.Suspense=u,Dt.SuspenseList=d,Dt.isContextConsumer=function(g){return e(g)===l},Dt.isContextProvider=function(g){return e(g)===a},Dt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},Dt.isForwardRef=function(g){return e(g)===c},Dt.isFragment=function(g){return e(g)===r},Dt.isLazy=function(g){return e(g)===m},Dt.isMemo=function(g){return e(g)===p},Dt.isPortal=function(g){return e(g)===n},Dt.isProfiler=function(g){return e(g)===i},Dt.isStrictMode=function(g){return e(g)===o},Dt.isSuspense=function(g){return e(g)===u},Dt.isSuspenseList=function(g){return e(g)===d},Dt.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===i||g===o||g===u||g===d||typeof g=="object"&&g!==null&&(g.$$typeof===m||g.$$typeof===p||g.$$typeof===a||g.$$typeof===l||g.$$typeof===c||g.$$typeof===y||g.getModuleId!==void 0)},Dt.typeOf=e})()),Dt}var Eb;function HM(){return Eb||(Eb=1,process.env.NODE_ENV==="production"?dc.exports=BM():dc.exports=VM()),dc.exports}var Wu=HM();function or(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function Be(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Zp(e,t){return Zp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Zp(e,t)}function Dx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zp(e,t)}const Tb={disabled:!1};var GM=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&s.oneOfType([s.string,s.shape({enter:s.string,exit:s.string,active:s.string}),s.shape({enter:s.string,enterDone:s.string,enterActive:s.string,exit:s.string,exitDone:s.string,exitActive:s.string})]);const Uc=H.createContext(null);var WM=function(t){return t.scrollTop},El="unmounted",fs="exited",ms="entering",si="entered",Qp="exiting",zr=(function(e){Dx(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var l=o,a=l&&!l.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?a?(c=fs,i.appearStatus=ms):c=si:r.unmountOnExit||r.mountOnEnter?c=El:c=fs,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var l=o.in;return l&&i.status===El?{status:fs}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var l=this.state.status;this.props.in?l!==ms&&l!==si&&(i=ms):(l===ms||l===si)&&(i=Qp)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,l,a;return i=l=a=o,o!=null&&typeof o!="number"&&(i=o.exit,l=o.enter,a=o.appear!==void 0?o.appear:l),{exit:i,enter:l,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ms){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:ci.findDOMNode(this);l&&WM(l)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===fs&&this.setState({status:El})},n.performEnter=function(o){var i=this,l=this.props.enter,a=this.context?this.context.isMounting:o,c=this.props.nodeRef?[a]:[ci.findDOMNode(this),a],u=c[0],d=c[1],p=this.getTimeouts(),m=a?p.appear:p.enter;if(!o&&!l||Tb.disabled){this.safeSetState({status:si},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:ms},function(){i.props.onEntering(u,d),i.onTransitionEnd(m,function(){i.safeSetState({status:si},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var o=this,i=this.props.exit,l=this.getTimeouts(),a=this.props.nodeRef?void 0:ci.findDOMNode(this);if(!i||Tb.disabled){this.safeSetState({status:fs},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Qp},function(){o.props.onExiting(a),o.onTransitionEnd(l.exit,function(){o.safeSetState({status:fs},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,l=!0;return this.nextCallback=function(a){l&&(l=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var l=this.props.nodeRef?this.props.nodeRef.current:ci.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!l||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===El)return null;var i=this.props,l=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=Be(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return H.createElement(Uc.Provider,{value:null},typeof l=="function"?l(o,a):H.cloneElement(H.Children.only(l),a))},t})(H.Component);zr.contextType=Uc;zr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:s.shape({current:typeof Element=="undefined"?s.any:function(e,t,n,r,o,i){var l=e[t];return s.instanceOf(l&&"ownerDocument"in l?l.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:s.oneOfType([s.func.isRequired,s.element.isRequired]).isRequired,in:s.bool,mountOnEnter:s.bool,unmountOnExit:s.bool,appear:s.bool,enter:s.bool,exit:s.bool,timeout:function(t){var n=GM;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.apply(void 0,[t].concat(o))},addEndListener:s.func,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}:{};function Js(){}zr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Js,onEntering:Js,onEntered:Js,onExit:Js,onExiting:Js,onExited:Js};zr.UNMOUNTED=El;zr.EXITED=fs;zr.ENTERING=ms;zr.ENTERED=si;zr.EXITING=Qp;function UM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Im(e,t){var n=function(i){return t&&H.isValidElement(i)?t(i):i},r=Object.create(null);return e&&H.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function qM(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var l,a={};for(var c in t){if(r[c])for(l=0;l<r[c].length;l++){var u=r[c][l];a[r[c][l]]=n(u)}a[c]=n(c)}for(l=0;l<o.length;l++)a[o[l]]=n(o[l]);return a}function Cs(e,t,n){return n[t]!=null?n[t]:e.props[t]}function KM(e,t){return Im(e.children,function(n){return H.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Cs(n,"appear",e),enter:Cs(n,"enter",e),exit:Cs(n,"exit",e)})})}function YM(e,t,n){var r=Im(e.children),o=qM(t,r);return Object.keys(o).forEach(function(i){var l=o[i];if(H.isValidElement(l)){var a=i in t,c=i in r,u=t[i],d=H.isValidElement(u)&&!u.props.in;c&&(!a||d)?o[i]=H.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:Cs(l,"exit",e),enter:Cs(l,"enter",e)}):!c&&a&&!d?o[i]=H.cloneElement(l,{in:!1}):c&&a&&H.isValidElement(u)&&(o[i]=H.cloneElement(l,{onExited:n.bind(null,l),in:u.props.in,exit:Cs(l,"exit",e),enter:Cs(l,"enter",e)}))}}),o}var XM=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},ZM={component:"div",childFactory:function(t){return t}},Pm=(function(e){Dx(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var l=i.handleExited.bind(UM(i));return i.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var l=i.children,a=i.handleExited,c=i.firstRender;return{children:c?KM(o,a):YM(o,l,a),firstRender:!1}},n.handleExited=function(o,i){var l=Im(this.props.children);o.key in l||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(a){var c=z({},a.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,i=o.component,l=o.childFactory,a=Be(o,["component","childFactory"]),c=this.state.contextValue,u=XM(this.state.children).map(l);return delete a.appear,delete a.enter,delete a.exit,i===null?H.createElement(Uc.Provider,{value:c},u):H.createElement(Uc.Provider,{value:c},H.createElement(i,a,u))},t})(H.Component);Pm.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};Pm.defaultProps=ZM;const Ib={};function Er(e,t){const n=b.useRef(Ib);return n.current===Ib&&(n.current=e(t)),n}const QM=[];function Om(e){b.useEffect(e,QM)}class Uu{constructor(){Qi(this,"currentId",null);Qi(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Qi(this,"disposeEffect",()=>this.clear)}static create(){return new Uu}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Jn(){const e=Er(Uu.create).current;return Om(e.disposeEffect),e}function JM(e){const{prototype:t={}}=e;return!!t.isReactComponent}function eR(e,t,n,r,o){const i=e[t],l=o||t;if(i==null||typeof window=="undefined")return null;let a;return typeof i=="function"&&!JM(i)&&(a="Did you accidentally provide a plain function component instead?"),i===b.Fragment&&(a="Did you accidentally provide a React.Fragment instead?"),a!==void 0?new Error(`Invalid ${r} \`${l}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${a} For more information see https://v7.mui.com/r/caveat-with-refs-guide`):null}const Ia=or(s.elementType,eR),Mm=e=>e.scrollTop;function xn(e,t){return n=>{if(t){const r=e.current;n===void 0?t(r):t(r,n)}}}function _x(e,t,n,r,o,i){const l=e==="exited"&&!t?r:n[e]||n.exited;return o||i?{...l,...o,...i}:l}function wi(e,t){var i,l;const{timeout:n,easing:r,style:o={}}=e;return{duration:(i=o.transitionDuration)!=null?i:typeof n=="number"?n:n[t.mode]||0,easing:(l=o.transitionTimingFunction)!=null?l:typeof r=="object"?r[t.mode]:r,delay:o.transitionDelay}}function Si(e){return typeof e=="string"}function zx(e,t,n){return e===void 0||Si(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Bx(e,t,n){return typeof e=="function"?e(t,n):e}function Vx(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 Pb(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 Hx(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const f=ue(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),y={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},g={...n,...o,...r};return f.length>0&&(g.className=f),Object.keys(y).length>0&&(g.style=y),{props:g,internalRef:void 0}}const l=Vx({...o,...r}),a=Pb(r),c=Pb(o),u=t(l),d=ue(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),p={...u==null?void 0:u.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},m={...u,...n,...c,...a};return d.length>0&&(m.className=d),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:u.ref}}function He(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:l,shouldForwardComponentProp:a=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:p={[e]:void 0},...m}=i,f=d[e]||r,y=Bx(p[e],o),{props:{component:g,...v},internalRef:x}=Hx({className:n,...c,externalForwardedProps:e==="root"?m:void 0,externalSlotProps:y}),S=It(x,y==null?void 0:y.ref,t.ref),w=e==="root"?g||u:g,k=zx(f,{...e==="root"&&!u&&!d[e]&&l,...e!=="root"&&!d[e]&&l,...v,...w&&!a&&{as:w},...w&&a&&{component:w},ref:S},o);return[f,k]}function tR(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function Gx(e,t,n,r){const o=e[t];if(o==null||!Number.isInteger(o)){const i=tR(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Wx(e,t,n,r){return e[t]===void 0?null:Gx(e,t,n,r)}function Jp(){return null}Wx.isRequired=Gx;Jp.isRequired=Jp;const Wo=process.env.NODE_ENV==="production"?Jp:Wx;function nR(e){return Ne("MuiPaper",e)}$e("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 rR=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ye(i,nR,o)},oR=ne("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}`]]}})(je(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Br=b.forwardRef(function(t,n){var f;const r=ze({props:t,name:"MuiPaper"}),o=nn(),{className:i,component:l="div",elevation:a=1,square:c=!1,variant:u="elevation",...d}=r,p={...r,component:l,elevation:a,square:c,variant:u},m=rR(p);return process.env.NODE_ENV!=="production"&&o.shadows[a]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
|
|
166
|
+
`)),h.jsx(oR,{as:l,ownerState:p,className:ue(m.root,i),ref:n,...d,style:{...u==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[a],...o.vars&&{"--Paper-overlay":(f=o.vars.overlays)==null?void 0:f[a]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${fr("#fff",Yp(a))}, ${fr("#fff",Yp(a))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(Br.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:or(Wo,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["elevation","outlined"]),s.string])});const Fn=s.oneOfType([s.func,s.object]);function ki(e){try{return e.matches(":focus-visible")}catch(t){process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
167
|
+
`))}return!1}class qc{constructor(){Qi(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new qc}static use(){const t=Er(qc.create).current,[n,r]=b.useState(!1);return t.shouldMount=n,t.setShouldMount=r,b.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=iR(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function sR(){return qc.use()}function iR(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function Ux(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:l,in:a,onExited:c,timeout:u}=e,[d,p]=b.useState(!1),m=ue(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:l,height:l,top:-(l/2)+i,left:-(l/2)+o},y=ue(n.child,d&&n.childLeaving,r&&n.childPulsate);return!a&&!d&&p(!0),b.useEffect(()=>{if(!a&&c!=null){const g=setTimeout(c,u);return()=>{clearTimeout(g)}}},[c,a,u]),h.jsx("span",{className:m,style:f,children:h.jsx("span",{className:y})})}process.env.NODE_ENV!=="production"&&(Ux.propTypes={classes:s.object.isRequired,className:s.string,in:s.bool,onExited:s.func,pulsate:s.bool,rippleSize:s.number,rippleX:s.number,rippleY:s.number,timeout:s.number.isRequired});const ur=$e("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ef=550,lR=80,aR=_r`
|
|
168
|
+
0% {
|
|
169
|
+
transform: scale(0);
|
|
170
|
+
opacity: 0.1;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
100% {
|
|
174
|
+
transform: scale(1);
|
|
175
|
+
opacity: 0.3;
|
|
176
|
+
}
|
|
177
|
+
`,cR=_r`
|
|
178
|
+
0% {
|
|
179
|
+
opacity: 1;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
100% {
|
|
183
|
+
opacity: 0;
|
|
184
|
+
}
|
|
185
|
+
`,uR=_r`
|
|
186
|
+
0% {
|
|
187
|
+
transform: scale(1);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
50% {
|
|
191
|
+
transform: scale(0.92);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
100% {
|
|
195
|
+
transform: scale(1);
|
|
196
|
+
}
|
|
197
|
+
`,dR=ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),pR=ne(Ux,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
198
|
+
opacity: 0;
|
|
199
|
+
position: absolute;
|
|
200
|
+
|
|
201
|
+
&.${ur.rippleVisible} {
|
|
202
|
+
opacity: 0.3;
|
|
203
|
+
transform: scale(1);
|
|
204
|
+
animation-name: ${aR};
|
|
205
|
+
animation-duration: ${ef}ms;
|
|
206
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&.${ur.ripplePulsate} {
|
|
210
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
& .${ur.child} {
|
|
214
|
+
opacity: 1;
|
|
215
|
+
display: block;
|
|
216
|
+
width: 100%;
|
|
217
|
+
height: 100%;
|
|
218
|
+
border-radius: 50%;
|
|
219
|
+
background-color: currentColor;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
& .${ur.childLeaving} {
|
|
223
|
+
opacity: 0;
|
|
224
|
+
animation-name: ${cR};
|
|
225
|
+
animation-duration: ${ef}ms;
|
|
226
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
& .${ur.childPulsate} {
|
|
230
|
+
position: absolute;
|
|
231
|
+
/* @noflip */
|
|
232
|
+
left: 0px;
|
|
233
|
+
top: 0;
|
|
234
|
+
animation-name: ${uR};
|
|
235
|
+
animation-duration: 2500ms;
|
|
236
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
237
|
+
animation-iteration-count: infinite;
|
|
238
|
+
animation-delay: 200ms;
|
|
239
|
+
}
|
|
240
|
+
`,qx=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:l,...a}=r,[c,u]=b.useState([]),d=b.useRef(0),p=b.useRef(null);b.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const m=b.useRef(!1),f=Jn(),y=b.useRef(null),g=b.useRef(null),v=b.useCallback(k=>{const{pulsate:E,rippleX:T,rippleY:N,rippleSize:P,cb:O}=k;u(L=>[...L,h.jsx(pR,{classes:{ripple:ue(i.ripple,ur.ripple),rippleVisible:ue(i.rippleVisible,ur.rippleVisible),ripplePulsate:ue(i.ripplePulsate,ur.ripplePulsate),child:ue(i.child,ur.child),childLeaving:ue(i.childLeaving,ur.childLeaving),childPulsate:ue(i.childPulsate,ur.childPulsate)},timeout:ef,pulsate:E,rippleX:T,rippleY:N,rippleSize:P},d.current)]),d.current+=1,p.current=O},[i]),x=b.useCallback((k={},E={},T=()=>{})=>{const{pulsate:N=!1,center:P=o||E.pulsate,fakeElement:O=!1}=E;if((k==null?void 0:k.type)==="mousedown"&&m.current){m.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(m.current=!0);const L=O?null:g.current,$=L?L.getBoundingClientRect():{width:0,height:0,left:0,top:0};let C,j,F;if(P||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)C=Math.round($.width/2),j=Math.round($.height/2);else{const{clientX:M,clientY:R}=k.touches&&k.touches.length>0?k.touches[0]:k;C=Math.round(M-$.left),j=Math.round(R-$.top)}if(P)F=Math.sqrt((2*$.width**2+$.height**2)/3),F%2===0&&(F+=1);else{const M=Math.max(Math.abs((L?L.clientWidth:0)-C),C)*2+2,R=Math.max(Math.abs((L?L.clientHeight:0)-j),j)*2+2;F=Math.sqrt(M**2+R**2)}k!=null&&k.touches?y.current===null&&(y.current=()=>{v({pulsate:N,rippleX:C,rippleY:j,rippleSize:F,cb:T})},f.start(lR,()=>{y.current&&(y.current(),y.current=null)})):v({pulsate:N,rippleX:C,rippleY:j,rippleSize:F,cb:T})},[o,v,f]),S=b.useCallback(()=>{x({},{pulsate:!0})},[x]),w=b.useCallback((k,E)=>{if(f.clear(),(k==null?void 0:k.type)==="touchend"&&y.current){y.current(),y.current=null,f.start(0,()=>{w(k,E)});return}y.current=null,u(T=>T.length>0?T.slice(1):T),p.current=E},[f]);return b.useImperativeHandle(n,()=>({pulsate:S,start:x,stop:w}),[S,x,w]),h.jsx(dR,{className:ue(ur.root,i.root,l),ref:g,...a,children:h.jsx(Pm,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(qx.propTypes={center:s.bool,classes:s.object,className:s.string});function fR(e){return Ne("MuiButtonBase",e)}const mR=$e("MuiButtonBase",["root","disabled","focusVisible"]),hR=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,l=ye({root:["root",t&&"disabled",n&&"focusVisible"]},fR,o);return n&&r&&(l.root+=` ${r}`),l},gR=ne("button",{name:"MuiButtonBase",slot:"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"},[`&.${mR.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ko=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:l,className:a,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:m=!1,focusVisibleClassName:f,LinkComponent:y="a",onBlur:g,onClick:v,onContextMenu:x,onDragLeave:S,onFocus:w,onFocusVisible:k,onKeyDown:E,onKeyUp:T,onMouseDown:N,onMouseLeave:P,onMouseUp:O,onTouchEnd:L,onTouchMove:$,onTouchStart:C,tabIndex:j=0,TouchRippleProps:F,touchRippleRef:M,type:R,..._}=r,V=b.useRef(null),W=sR(),I=It(W.ref,M),[D,G]=b.useState(!1);u&&D&&G(!1),b.useImperativeHandle(o,()=>({focusVisible:()=>{G(!0),V.current.focus()}}),[]);const A=W.shouldMount&&!d&&!u;b.useEffect(()=>{D&&m&&!d&&W.pulsate()},[d,m,D,W]);const K=ho(W,"start",N,p),Y=ho(W,"stop",x,p),U=ho(W,"stop",S,p),q=ho(W,"stop",O,p),Z=ho(W,"stop",se=>{D&&se.preventDefault(),P&&P(se)},p),X=ho(W,"start",C,p),Q=ho(W,"stop",L,p),re=ho(W,"stop",$,p),J=ho(W,"stop",se=>{ki(se.target)||G(!1),g&&g(se)},!1),oe=nt(se=>{V.current||(V.current=se.currentTarget),ki(se.target)&&(G(!0),k&&k(se)),w&&w(se)}),te=()=>{const se=V.current;return se?se.tagName==="BUTTON"?!1:!(se.tagName==="A"&&se.href):c&&c!=="button"},fe=nt(se=>{m&&!se.repeat&&D&&se.key===" "&&W.stop(se,()=>{W.start(se)}),se.target===se.currentTarget&&te()&&se.key===" "&&se.preventDefault(),E&&E(se),se.target===se.currentTarget&&te()&&se.key==="Enter"&&!u&&(se.preventDefault(),v&&v(se))}),ve=nt(se=>{m&&se.key===" "&&D&&!se.defaultPrevented&&W.stop(se,()=>{W.pulsate(se)}),T&&T(se),v&&se.target===se.currentTarget&&te()&&se.key===" "&&!se.defaultPrevented&&!u&&v(se)});let Ce=c;Ce==="button"&&(_.href||_.to)&&(Ce=y);const xe={};if(Ce==="button"){const se=!!_.formAction;xe.type=R===void 0&&!se?"button":R,xe.disabled=u}else!_.href&&!_.to&&(xe.role="button"),u&&(xe["aria-disabled"]=u);const Se=It(n,V),Oe={...r,centerRipple:i,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:m,tabIndex:j,focusVisible:D},Ae=hR(Oe);return h.jsxs(gR,{as:Ce,className:ue(Ae.root,a),ownerState:Oe,onBlur:J,onClick:v,onContextMenu:Y,onFocus:oe,onKeyDown:fe,onKeyUp:ve,onMouseDown:K,onMouseLeave:Z,onMouseUp:q,onDragLeave:U,onTouchEnd:Q,onTouchMove:re,onTouchStart:X,ref:Se,tabIndex:u?-1:j,type:R,...xe,..._,children:[l,A?h.jsx(qx,{ref:I,center:i,...F}):null]})});function ho(e,t,n,r=!1){return nt(o=>(n&&n(o),r||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(ko.propTypes={action:Fn,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:Ia,disabled:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,formAction:s.oneOfType([s.func,s.string]),href:s.any,LinkComponent:s.elementType,onBlur:s.func,onClick:s.func,onContextMenu:s.func,onDragLeave:s.func,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onKeyUp:s.func,onMouseDown:s.func,onMouseLeave:s.func,onMouseUp:s.func,onTouchEnd:s.func,onTouchMove:s.func,onTouchStart:s.func,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,TouchRippleProps:s.object,touchRippleRef:s.oneOfType([s.func,s.shape({current:s.shape({pulsate:s.func.isRequired,start:s.func.isRequired,stop:s.func.isRequired})})]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string])});function bR(e){return typeof e.main=="string"}function yR(e,t=[]){if(!bR(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function _t(e=[]){return([,t])=>t&&yR(t,e)}function vR(e){return Ne("MuiAlert",e)}const Ob=$e("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 xR(e){return Ne("MuiCircularProgress",e)}$e("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Mr=44,tf=_r`
|
|
241
|
+
0% {
|
|
242
|
+
transform: rotate(0deg);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
100% {
|
|
246
|
+
transform: rotate(360deg);
|
|
247
|
+
}
|
|
248
|
+
`,nf=_r`
|
|
249
|
+
0% {
|
|
250
|
+
stroke-dasharray: 1px, 200px;
|
|
251
|
+
stroke-dashoffset: 0;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
50% {
|
|
255
|
+
stroke-dasharray: 100px, 200px;
|
|
256
|
+
stroke-dashoffset: -15px;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
100% {
|
|
260
|
+
stroke-dasharray: 1px, 200px;
|
|
261
|
+
stroke-dashoffset: -126px;
|
|
262
|
+
}
|
|
263
|
+
`,CR=typeof tf!="string"?Jo`
|
|
264
|
+
animation: ${tf} 1.4s linear infinite;
|
|
265
|
+
`:null,wR=typeof nf!="string"?Jo`
|
|
266
|
+
animation: ${nf} 1.4s ease-in-out infinite;
|
|
267
|
+
`:null,SR=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${ie(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${ie(n)}`,o&&"circleDisableShrink"]};return ye(i,xR,t)},kR=ne("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ie(n.color)}`]]}})(je(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:CR||{animation:`${tf} 1.4s linear infinite`}},...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),ER=ne("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),TR=ne("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ie(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(je(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:wR||{animation:`${nf} 1.4s ease-in-out infinite`}}]}))),IR=ne("circle",{name:"MuiCircularProgress",slot:"Track"})(je(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Pa=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:l=!1,enableTrackSlot:a=!1,size:c=40,style:u,thickness:d=3.6,value:p=0,variant:m="indeterminate",...f}=r,y={...r,color:i,disableShrink:l,size:c,thickness:d,value:p,variant:m,enableTrackSlot:a},g=SR(y),v={},x={},S={};if(m==="determinate"){const w=2*Math.PI*((Mr-d)/2);v.strokeDasharray=w.toFixed(3),S["aria-valuenow"]=Math.round(p),v.strokeDashoffset=`${((100-p)/100*w).toFixed(3)}px`,x.transform="rotate(-90deg)"}return h.jsx(kR,{className:ue(g.root,o),style:{width:c,height:c,...x,...u},ownerState:y,ref:n,role:"progressbar",...S,...f,children:h.jsxs(ER,{className:g.svg,ownerState:y,viewBox:`${Mr/2} ${Mr/2} ${Mr} ${Mr}`,children:[a?h.jsx(IR,{className:g.track,ownerState:y,cx:Mr,cy:Mr,r:(Mr-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,h.jsx(TR,{className:g.circle,style:v,ownerState:y,cx:Mr,cy:Mr,r:(Mr-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(Pa.propTypes={classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","error","info","success","warning"]),s.string]),disableShrink:or(s.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:s.bool,size:s.oneOfType([s.number,s.string]),style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),thickness:s.number,value:s.number,variant:s.oneOf(["determinate","indeterminate"])});function PR(e){return Ne("MuiIconButton",e)}const Mb=$e("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),OR=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i,loading:l}=e,a={root:["root",l&&"loading",n&&"disabled",r!=="default"&&`color${ie(r)}`,o&&`edge${ie(o)}`,`size${ie(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return ye(a,PR,t)},MR=ne(ko,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${ie(n.color)}`],n.edge&&t[`edge${ie(n.edge)}`],t[`size${ie(n.size)}`]]}})(je(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),je(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Mb.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Mb.loading}`]:{color:"transparent"}}))),RR=ne("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Tn=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:l,color:a="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:p,loading:m=null,loadingIndicator:f,...y}=r,g=xt(p),v=f!=null?f:h.jsx(Pa,{"aria-labelledby":g,color:"inherit",size:16}),x={...r,edge:o,color:a,disabled:c,disableFocusRipple:u,loading:m,loadingIndicator:v,size:d},S=OR(x);return h.jsxs(MR,{id:m?g:p,className:ue(S.root,l),centerRipple:!0,focusRipple:!u,disabled:c||m,ref:n,...y,ownerState:x,children:[typeof m=="boolean"&&h.jsx("span",{className:S.loadingWrapper,style:{display:"contents"},children:h.jsx(RR,{className:S.loadingIndicator,ownerState:x,children:m&&v})}),i]})});process.env.NODE_ENV!=="production"&&(Tn.propTypes={children:or(s.node,e=>b.Children.toArray(e.children).some(n=>b.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
268
|
+
`)):null),classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),s.string]),disabled:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,edge:s.oneOf(["end","start",!1]),id:s.string,loading:s.bool,loadingIndicator:s.node,size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const jR=Me(h.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"),LR=Me(h.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),$R=Me(h.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"),NR=Me(h.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"),Kx=Me(h.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"),FR=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${ie(n||r)}`,`${t}${ie(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return ye(i,vR,o)},AR=ne(Br,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ie(n.color||n.severity)}`]]}})(je(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,n=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(_t(["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),[`& .${Ob.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(_t(["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}`,[`& .${Ob.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(_t(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{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)}}}))]}})),DR=ne("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),_R=ne("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),zR=ne("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Rb={success:h.jsx(jR,{fontSize:"inherit"}),warning:h.jsx(LR,{fontSize:"inherit"}),error:h.jsx($R,{fontSize:"inherit"}),info:h.jsx(NR,{fontSize:"inherit"})},Rm=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiAlert"}),{action:o,children:i,className:l,closeText:a="Close",color:c,components:u={},componentsProps:d={},icon:p,iconMapping:m=Rb,onClose:f,role:y="alert",severity:g="success",slotProps:v={},slots:x={},variant:S="standard",...w}=r,k={...r,color:c,severity:g,variant:S,colorSeverity:c||g},E=FR(k),T={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...x},slotProps:{...d,...v}},[N,P]=He("root",{ref:n,shouldForwardComponentProp:!0,className:ue(E.root,l),elementType:AR,externalForwardedProps:{...T,...w},ownerState:k,additionalProps:{role:y,elevation:0}}),[O,L]=He("icon",{className:E.icon,elementType:DR,externalForwardedProps:T,ownerState:k}),[$,C]=He("message",{className:E.message,elementType:_R,externalForwardedProps:T,ownerState:k}),[j,F]=He("action",{className:E.action,elementType:zR,externalForwardedProps:T,ownerState:k}),[M,R]=He("closeButton",{elementType:Tn,externalForwardedProps:T,ownerState:k}),[_,V]=He("closeIcon",{elementType:Kx,externalForwardedProps:T,ownerState:k});return h.jsxs(N,{...P,children:[p!==!1?h.jsx(O,{...L,children:p||m[g]||Rb[g]}):null,h.jsx($,{...C,children:i}),o!=null?h.jsx(j,{...F,children:o}):null,o==null&&f?h.jsx(j,{...F,children:h.jsx(M,{size:"small","aria-label":a,title:a,color:"inherit",onClick:f,...R,children:h.jsx(_,{fontSize:"small",...V})})}):null]})});process.env.NODE_ENV!=="production"&&(Rm.propTypes={action:s.node,children:s.node,classes:s.object,className:s.string,closeText:s.string,color:s.oneOfType([s.oneOf(["error","info","success","warning"]),s.string]),components:s.shape({CloseButton:s.elementType,CloseIcon:s.elementType}),componentsProps:s.shape({closeButton:s.object,closeIcon:s.object}),icon:s.node,iconMapping:s.shape({error:s.node,info:s.node,success:s.node,warning:s.node}),onClose:s.func,role:s.string,severity:s.oneOfType([s.oneOf(["error","info","success","warning"]),s.string]),slotProps:s.shape({action:s.oneOfType([s.func,s.object]),closeButton:s.oneOfType([s.func,s.object]),closeIcon:s.oneOfType([s.func,s.object]),icon:s.oneOfType([s.func,s.object]),message:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({action:s.elementType,closeButton:s.elementType,closeIcon:s.elementType,icon:s.elementType,message:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["filled","outlined","standard"]),s.string])});function BR(e){return Ne("MuiTypography",e)}const jb=$e("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),VR={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},HR=OM(),GR=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:l}=e,a={root:["root",i,e.align!=="inherit"&&`align${ie(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ye(a,BR,l)},WR=ne("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${ie(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(je(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(_t()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${ie(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),Lb={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},dt=b.forwardRef(function(t,n){const{color:r,...o}=ze({props:t,name:"MuiTypography"}),i=!VR[r],l=HR({...o,...i&&{color:r}}),{align:a="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:p=!1,paragraph:m=!1,variant:f="body1",variantMapping:y=Lb,...g}=l,v={...l,align:a,color:r,className:c,component:u,gutterBottom:d,noWrap:p,paragraph:m,variant:f,variantMapping:y},x=u||(m?"p":y[f]||Lb[f])||"span",S=GR(v);return h.jsx(WR,{as:x,ref:n,className:ue(S.root,c),...g,ownerState:v,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...g.style}})});process.env.NODE_ENV!=="production"&&(dt.propTypes={align:s.oneOf(["center","inherit","justify","left","right"]),children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),s.string]),component:s.elementType,gutterBottom:s.bool,noWrap:s.bool,paragraph:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string]),variantMapping:s.object});function UR(e){return Ne("MuiAppBar",e)}$e("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const qR=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${ie(t)}`,`position${ie(n)}`]};return ye(o,UR,r)},$b=(e,t)=>e?`${e.replace(")","")}, ${t})`:t,KR=ne(Br,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ie(n.position)}`],t[`color${ie(n.color)}`]]}})(je(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit",color:"var(--AppBar-color)"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(_t(["contrastText"])).map(([t])=>{var n,r;return{props:{color:t},style:{"--AppBar-background":((n=e.vars)!=null?n:e).palette[t].main,"--AppBar-color":((r=e.vars)!=null?r:e).palette[t].contrastText}}}),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?$b(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?$b(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),rf=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:l=!1,position:a="fixed",...c}=r,u={...r,color:i,position:a,enableColorOnDark:l},d=qR(u);return h.jsx(KR,{square:!0,component:"header",ownerState:u,elevation:4,className:ue(d.root,o,a==="fixed"&&"mui-fixed"),ref:n,...c})});process.env.NODE_ENV!=="production"&&(rf.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["default","inherit","primary","secondary","transparent","error","info","success","warning"]),s.string]),elevation:s.number,enableColorOnDark:s.bool,position:s.oneOf(["absolute","fixed","relative","static","sticky"]),square:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function YR(){const[,e]=b.useState({});return b.useCallback(()=>{e({})},[])}function vo(e,t){var r,o,i;if(!e||!t)return!1;if(e.contains(t))return!0;const n=(r=t.getRootNode)==null?void 0:r.call(t);if(n&&n instanceof ShadowRoot){let l=t;for(;l;){if(e===l)return!0;l=(i=(o=l.parentNode)!=null?o:l.host)!=null?i:null}}return!1}function jm(e){const t=b.useRef({});return b.useEffect(()=>{t.current=e}),t.current}function Nb({array1:e,array2:t,parser:n=r=>r}){return e&&t&&e.length===t.length&&e.every((r,o)=>n(r)===n(t[o]))}function Fb(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Yx(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:l=!1}=e;return(a,{inputValue:c,getOptionLabel:u})=>{let d=l?c.trim():c;n&&(d=d.toLowerCase()),t&&(d=Fb(d));const p=d?a.filter(m=>{let f=(i||u)(m);return n&&(f=f.toLowerCase()),t&&(f=Fb(f)),o==="start"?f.startsWith(d):f.includes(d)}):a;return typeof r=="number"?p.slice(0,r):p}}const XR=Yx(),Ab=5,ZR=e=>e.current!==null&&vo(e.current.parentElement,document.activeElement),Db=(e,t)=>e===t,QR=[];function _b(e,t,n,r){if(t||e==null||r)return"";const o=n(e);return typeof o=="string"?o:""}function JR(e){const{unstable_isActiveElementInListbox:t=ZR,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:l=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=e.multiple?QR:null,disableClearable:p=!1,disableCloseOnSelect:m=!1,disabled:f,disabledItemsFocusable:y=!1,disableListWrap:g=!1,filterOptions:v=XR,filterSelectedOptions:x=!1,freeSolo:S=!1,getOptionDisabled:w,getOptionKey:k,getOptionLabel:E=le=>{var ce;return(ce=le.label)!=null?ce:le},groupBy:T,handleHomeEndKeys:N=!e.freeSolo,id:P,includeInputInList:O=!1,inputValue:L,isOptionEqualToValue:$=Db,multiple:C=!1,onChange:j,onClose:F,onHighlightChange:M,onInputChange:R,onOpen:_,open:V,openOnFocus:W=!1,options:I,readOnly:D=!1,renderValue:G,selectOnFocus:A=!e.freeSolo,value:K}=e,Y=xt(P);let U=E;U=le=>{const ce=E(le);if(typeof ce!="string"){if(process.env.NODE_ENV!=="production"){const Ee=ce===void 0?"undefined":`${typeof ce} (${ce})`;console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${Ee} instead of a string for ${JSON.stringify(le)}.`)}return String(ce)}return ce};const q=b.useRef(!1),Z=b.useRef(!0),X=b.useRef(null),Q=b.useRef(null),re=b.useRef(!1),[J,oe]=b.useState(null),[te,fe]=b.useState(-1),ve=o?0:-1,Ce=b.useRef(ve),xe=b.useRef(null),Se=b.useRef(!1),Oe=b.useRef(!1),Ae=b.useRef(_b(d!=null?d:K,C,U)).current,[se,Ge]=Go({controlled:K,default:d,name:u}),[Ie,Ye]=Go({controlled:L,default:Ae,name:u,state:"inputValue"}),[ee,de]=b.useState(!1),he=b.useCallback((le,ce,Ee)=>{if(!(C?se.length<ce.length:ce!==null)&&!a)return;const Xe=_b(ce,C,U,G);Ie!==Xe&&(Ye(Xe),R&&R(le,Xe,Ee))},[U,Ie,C,R,Ye,a,se,G]),[ae,ge]=Go({controlled:V,default:!1,name:u,state:"open"}),[be,Te]=b.useState(!0),_e=!C&&se!=null&&Ie===U(se),ke=ae&&!D,ct=b.useMemo(()=>C?se:se!=null?[se]:[],[C,se]),it=b.useMemo(()=>$!==Db||ct.length===0?null:new Set(ct),[$,ct]),Pt=b.useCallback(le=>it?it.has(le):ct.some(ce=>ce!=null&&$(le,ce)),[$,ct,it]),qe=ke?v(I.filter(le=>!(x&&Pt(le))),{inputValue:_e&&be?"":Ie,getOptionLabel:U}):[],Ve=jm({filteredOptions:qe,value:se,inputValue:Ie});b.useEffect(()=>{const le=se!==Ve.value;ee&&!le||S&&!le||he(null,se,"reset")},[se,he,ee,Ve.value,S]);const ot=ae&&qe.length>0&&!D,pt=nt(le=>{if(le===-1)X.current.focus();else{const ce=G?"data-item-index":"data-tag-index";J.querySelector(`[${ce}="${le}"]`).focus()}});b.useEffect(()=>{C&&te>se.length-1&&(fe(-1),pt(-1))},[se,C,te,pt]);function mn(le,ce){if(!Q.current||le<0||le>=qe.length)return-1;let Ee=le;for(;;){const et=Q.current.querySelector(`[data-option-index="${Ee}"]`),Xe=y?!1:!et||et.disabled||et.getAttribute("aria-disabled")==="true";if(et&&et.hasAttribute("tabindex")&&!Xe)return Ee;if(ce==="next"?Ee=(Ee+1)%qe.length:Ee=(Ee-1+qe.length)%qe.length,Ee===le)return-1}}const qn=nt(({index:le,reason:ce,preserveScroll:Ee=!1})=>{if(le===-1?X.current.removeAttribute("aria-activedescendant"):X.current.setAttribute("aria-activedescendant",`${Y}-option-${le}`),!Q.current)return;const et=Q.current.querySelector(`[role="option"].${n}-focused`);et&&(et.classList.remove(`${n}-focused`),et.classList.remove(`${n}-focusVisible`));let Xe=Q.current;if(Q.current.getAttribute("role")!=="listbox"&&(Xe=Q.current.parentElement.querySelector('[role="listbox"]')),!Xe)return;if(le===-1){Ee||(Xe.scrollTop=0);return}const zt=Q.current.querySelector(`[data-option-index="${le}"]`);if(zt&&(zt.classList.add(`${n}-focused`),ce==="keyboard"&&zt.classList.add(`${n}-focusVisible`),Xe.scrollHeight>Xe.clientHeight&&ce!=="mouse"&&ce!=="touch")){const Ct=zt,Jt=Xe.clientHeight+Xe.scrollTop,ir=Ct.offsetTop+Ct.offsetHeight;ir>Jt?Xe.scrollTop=ir-Xe.clientHeight:Ct.offsetTop-Ct.offsetHeight*(T?1.3:0)<Xe.scrollTop&&(Xe.scrollTop=Ct.offsetTop-Ct.offsetHeight*(T?1.3:0))}}),Re=nt(({event:le,index:ce,reason:Ee,preserveScroll:et=!1})=>{Ce.current=ce,xe.current=Ee!=null?Ee:null,M&&["mouse","keyboard","touch"].includes(Ee)&&M(le,ce===-1?null:qe[ce],Ee),qn({index:ce,reason:Ee,preserveScroll:et})}),We=nt(({index:le})=>{Ce.current=le,qn({index:le,reason:xe.current})}),ut=nt(({event:le,diff:ce,direction:Ee="next",reason:et,preserveScroll:Xe})=>{if(!ke)return;et==="keyboard"&&(Se.current=!1,Oe.current=!1);const Ct=mn((()=>{const Jt=qe.length-1;if(ce==="reset")return ve;if(ce==="start")return 0;if(ce==="end")return Jt;const ir=Ce.current+ce;return ir<0?ir===-1&&O?-1:g&&Ce.current!==-1||Math.abs(ce)>1?0:Jt:ir>Jt?ir===Jt+1&&O?-1:g||Math.abs(ce)>1?Jt:0:ir})(),Ee);if(Re({index:Ct,reason:et,event:le,preserveScroll:Xe}),r&&ce!=="reset")if(Ct===-1)X.current.value=Ie;else{const Jt=U(qe[Ct]);X.current.value=Jt,Jt.toLowerCase().indexOf(Ie.toLowerCase())===0&&Ie.length>0&&X.current.setSelectionRange(Ie.length,Jt.length)}}),hn=!Nb({array1:Ve.filteredOptions,array2:qe,parser:U}),rn=()=>{const le=(ce,Ee)=>{const et=ce?U(ce):"",Xe=Ee?U(Ee):"";return et===Xe};if(Ce.current!==-1&&!Nb({array1:Ve.filteredOptions,array2:qe,parser:U})&&Ve.inputValue===Ie&&(C?se.length===Ve.value.length&&Ve.value.every((ce,Ee)=>U(se[Ee])===U(ce)):le(Ve.value,se))){const ce=Ve.filteredOptions[Ce.current];if(ce)return qe.findIndex(Ee=>U(Ee)===U(ce))}return-1},Pr=b.useCallback(()=>{var Ee,et;if(!ke)return;const le=rn();if(le!==-1){We({index:le});return}const ce=C?se[0]:se;if(qe.length===0||ce==null){const Xe=hn&&Ve.inputValue===Ie&&((Ee=Ve.filteredOptions)==null?void 0:Ee.length)>0&&qe.length>Ve.filteredOptions.length&&Ve.filteredOptions.every((zt,Ct)=>U(zt)===U(qe[Ct]));ut({diff:"reset",preserveScroll:Xe});return}if(Q.current){if(ce!=null){const Xe=qe[Ce.current];if(C&&Xe&&se.findIndex(Ct=>$(Xe,Ct))!==-1&&((et=Ve.filteredOptions)==null?void 0:et.length)>0){We({index:Ce.current});return}const zt=qe.findIndex(Ct=>$(Ct,ce));zt===-1?ut({diff:"reset"}):Re({index:zt});return}if(Ce.current>=qe.length-1){Re({index:qe.length-1});return}Re({index:Ce.current})}},[qe.length,C?!1:se,ut,Re,We,ke,Ie,C]),Ke=nt(le=>{Xp(Q,le),le&&Pr()});process.env.NODE_ENV!=="production"&&b.useEffect(()=>{(!X.current||X.current.nodeName!=="INPUT")&&(X.current&&X.current.nodeName==="TEXTAREA"?console.warn([`A textarea element was provided to ${u} where input was expected.`,"This is not a supported scenario but it may work under certain conditions.","A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).","Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
|
|
269
|
+
`)):console.error([`MUI: Unable to find the input element. It was resolved to ${X.current} while an HTMLInputElement was expected.`,`Instead, ${u} expects an input element.`,"",u==="useAutocomplete"?"Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed.":"Make sure you have customized the input component correctly."].join(`
|
|
270
|
+
`)))},[u]),b.useEffect(()=>{(hn||ke&&!m)&&Pr()},[Pr,hn,ke,m]),b.useEffect(()=>{if(typeof window=="undefined")return;const le=()=>{re.current=!0};return window.addEventListener("blur",le),()=>{window.removeEventListener("blur",le)}},[]);const vt=le=>{ae||(ge(!0),Te(!0),Oe.current=!1,_&&_(le))},Rn=(le,ce)=>{ae&&(ge(!1),Se.current=!1,xe.current=null,F&&F(le,ce))},wn=(le,ce,Ee,et)=>{if(C){if(se.length===ce.length&&se.every((Xe,zt)=>Xe===ce[zt]))return}else if(se===ce)return;j&&j(le,ce,Ee,et),Ge(ce)},Ro=(le,ce,Ee="selectOption",et="options")=>{let Xe=Ee,zt=ce;if(C){if(zt=Array.isArray(se)?se.slice():[],process.env.NODE_ENV!=="production"){const Jt=zt.filter(ir=>$(ce,ir));Jt.length>1&&console.error([`MUI: The \`isOptionEqualToValue\` method of ${u} does not handle the arguments correctly.`,`The component expects a single value to match a given option but found ${Jt.length} matches.`].join(`
|
|
271
|
+
`))}const Ct=zt.findIndex(Jt=>$(ce,Jt));Ct===-1?zt.push(ce):et!=="freeSolo"&&(zt.splice(Ct,1),Xe="removeOption")}he(le,zt,Xe),wn(le,zt,Xe,{option:ce}),!m&&(!le||!le.ctrlKey&&!le.metaKey)&&Rn(le,Xe),(l===!0||l==="touch"&&Oe.current||l==="mouse"&&!Oe.current)&&X.current.blur()};function as(le,ce){if(le===-1)return-1;let Ee=le;for(;;){if(ce==="next"&&Ee===se.length||ce==="previous"&&Ee===-1)return-1;const et=G?"data-item-index":"data-tag-index",Xe=J.querySelector(`[${et}="${Ee}"]`);if(!Xe||!Xe.hasAttribute("tabindex")||Xe.disabled||Xe.getAttribute("aria-disabled")==="true")Ee+=ce==="next"?1:-1;else return Ee}}const Ws=(le,ce)=>{if(!C)return;Ie===""&&Rn(le,"toggleInput");let Ee=te;te===-1&&ce==="previous"?(Ee=se.length-1,S&&Ie!==""&&(Ye(""),R&&R(le,"","reset"))):(Ee+=ce==="next"?1:-1,Ee<0&&(Ee=0),Ee===se.length&&(Ee=-1)),Ee=as(Ee,ce),fe(Ee),pt(Ee)},Us=le=>{q.current=!0,Ye(""),R&&R(le,"","clear"),wn(le,C?[]:null,"clear")},Sd=le=>ce=>{if(le.onKeyDown&&le.onKeyDown(ce),!ce.defaultMuiPrevented&&(te!==-1&&!["ArrowLeft","ArrowRight"].includes(ce.key)&&(fe(-1),pt(-1)),ce.which!==229))switch(ce.key){case"Home":ke&&N&&(ce.preventDefault(),ut({diff:"start",direction:"next",reason:"keyboard",event:ce}));break;case"End":ke&&N&&(ce.preventDefault(),ut({diff:"end",direction:"previous",reason:"keyboard",event:ce}));break;case"PageUp":ce.preventDefault(),ut({diff:-Ab,direction:"previous",reason:"keyboard",event:ce}),vt(ce);break;case"PageDown":ce.preventDefault(),ut({diff:Ab,direction:"next",reason:"keyboard",event:ce}),vt(ce);break;case"ArrowDown":ce.preventDefault(),ut({diff:1,direction:"next",reason:"keyboard",event:ce}),vt(ce);break;case"ArrowUp":ce.preventDefault(),ut({diff:-1,direction:"previous",reason:"keyboard",event:ce}),vt(ce);break;case"ArrowLeft":{const Ee=X.current;if(!(Ee&&Ee.selectionStart===0&&Ee.selectionEnd===0))return;!C&&G&&se!=null?(S&&Ie!==""&&(Ye(""),R&&R(ce,"","reset")),fe(0),pt(0)):Ws(ce,"previous");break}case"ArrowRight":!C&&G?(fe(-1),pt(-1)):Ws(ce,"next");break;case"Enter":{const Ee=!S||be||xe.current!==null;if(Ce.current!==-1&&ke&&Ee&&!Se.current){const et=qe[Ce.current],Xe=w?w(et):!1;if(ce.preventDefault(),Xe)return;Ro(ce,et,"selectOption"),r&&X.current.setSelectionRange(X.current.value.length,X.current.value.length)}else S&&Ie!==""&&_e===!1?(C&&ce.preventDefault(),Ro(ce,Ie,"createOption","freeSolo")):ke&&Se.current&&(ce.preventDefault(),Rn(ce,"escape"));break}case"Escape":ke?(ce.preventDefault(),ce.stopPropagation(),Rn(ce,"escape")):c&&(Ie!==""||C&&se.length>0||G)&&(ce.preventDefault(),ce.stopPropagation(),Us(ce));break;case"Backspace":if(C&&!D&&Ie===""&&se.length>0){const Ee=te===-1?se.length-1:te,et=se.slice();et.splice(Ee,1),wn(ce,et,"removeOption",{option:se[Ee]})}!C&&G&&!D&&Ie===""&&wn(ce,null,"removeOption",{option:se});break;case"Delete":if(C&&!D&&Ie===""&&se.length>0&&te!==-1){const Ee=te,et=se.slice();et.splice(Ee,1),wn(ce,et,"removeOption",{option:se[Ee]})}!C&&G&&!D&&Ie===""&&wn(ce,null,"removeOption",{option:se});break}},kd=le=>{if(de(!0),te!==-1&&(fe(-1),pt(-1)),re.current){re.current=!1;return}W&&!q.current&&vt(le)},Ya=le=>{if(t(Q)){X.current.focus();return}de(!1),Z.current=!0,q.current=!1,i&&Ce.current!==-1&&ke&&xe.current!=="mouse"&&xe.current!=="touch"?Ro(le,qe[Ce.current],"blur"):i&&S&&Ie!==""?Ro(le,Ie,"blur","freeSolo"):a&&he(le,se,"blur"),Rn(le,"blur")},eg=le=>{const ce=le.target.value,Ee=Ie!==ce;Ee&&(Ye(ce),Se.current=!1,R&&R(le,ce,"input")),ce===""?!p&&!C&&!G&&wn(le,null,"clear"):vt(le),Ee&&Te(!1)},Yi=le=>{const ce=Number(le.currentTarget.getAttribute("data-option-index"));Ce.current!==ce?Re({event:le,index:ce,reason:"mouse"}):xe.current="mouse",Oe.current||(Se.current=!1)},gn=le=>{Se.current=!1,Re({event:le,index:Number(le.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Oe.current=!0},bn=le=>{const ce=Number(le.currentTarget.getAttribute("data-option-index"));Ro(le,qe[ce],"selectOption"),Oe.current=!1},Hr=le=>ce=>{const Ee=se.slice();Ee.splice(le,1),wn(ce,Ee,"removeOption",{option:se[le]})},Ed=le=>{wn(le,null,"removeOption",{option:se})},Xa=le=>{ae?Rn(le,"toggleInput"):vt(le)},Td=le=>{vo(le.currentTarget,le.target)&&(J&&!vo(J,le.target)||le.target.getAttribute("id")!==Y&&le.preventDefault())},Id=le=>{vo(le.currentTarget,le.target)&&(J&&!vo(J,le.target)||(X.current.focus(),A&&Z.current&&X.current.selectionEnd-X.current.selectionStart===0&&X.current.select(),Z.current=!1))},Pd=le=>{!f&&(Ie===""||!ae)&&Xa(le)};let Xi=S&&Ie.length>0;Xi=Xi||(C?se.length>0:se!==null);let Za=qe;if(T){const le=new Map;let ce=!1;Za=qe.reduce((Ee,et,Xe)=>{const zt=T(et);return Ee.length>0&&Ee[Ee.length-1].group===zt?Ee[Ee.length-1].options.push(et):(process.env.NODE_ENV!=="production"&&(le.get(zt)&&!ce&&(console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${u} returns duplicated headers.`,"You can solve the issue by sorting the options with the output of `groupBy`."),ce=!0),le.set(zt,!0)),Ee.push({key:Xe,index:Xe,group:zt,options:[et]})),Ee},[])}return f&&ee&&Ya(),{getRootProps:(le={})=>({...le,onKeyDown:Sd(le),onMouseDown:Td,onClick:Id}),getInputLabelProps:()=>({id:`${Y}-label`,htmlFor:Y}),getInputProps:()=>({id:Y,value:Ie,onBlur:Ya,onFocus:kd,onChange:eg,onMouseDown:Pd,"aria-activedescendant":ke?"":null,"aria-autocomplete":r?"both":"list","aria-controls":ot?`${Y}-listbox`:void 0,"aria-expanded":ot,autoComplete:"off",ref:X,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:f}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Us}),getItemProps:({index:le=0}={})=>({...C&&{key:le},...G?{"data-item-index":le}:{"data-tag-index":le},tabIndex:-1,...!D&&{onDelete:C?Hr(le):Ed}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Xa}),getTagProps:({index:le})=>({key:le,"data-tag-index":le,tabIndex:-1,...!D&&{onDelete:Hr(le)}}),getListboxProps:()=>({role:"listbox",id:`${Y}-listbox`,"aria-labelledby":`${Y}-label`,"aria-multiselectable":C||void 0,ref:Ke,onMouseDown:le=>{le.preventDefault()},onScroll:()=>{Oe.current&&(Se.current=!0)}}),getOptionProps:({index:le,option:ce})=>{var Xe;const Ee=Pt(ce),et=w?w(ce):!1;return{key:(Xe=k==null?void 0:k(ce))!=null?Xe:U(ce),tabIndex:-1,role:"option",id:`${Y}-option-${le}`,onMouseMove:Yi,onClick:bn,onTouchStart:gn,"data-option-index":le,"aria-disabled":et,"aria-selected":Ee}},id:Y,inputValue:Ie,value:se,dirty:Xi,expanded:ke&&J,popupOpen:ke,focused:ee||te!==-1,anchorEl:J,setAnchorEl:oe,focusedItem:te,focusedTag:te,groupedOptions:Za}}function xr(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],l=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${r} \`${l}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var zn="top",Cr="bottom",wr="right",Bn="left",Lm="auto",Oa=[zn,Cr,wr,Bn],Ei="start",Jl="end",e3="clippingParents",Xx="viewport",ol="popper",t3="reference",zb=Oa.reduce(function(e,t){return e.concat([t+"-"+Ei,t+"-"+Jl])},[]),Zx=[].concat(Oa,[Lm]).reduce(function(e,t){return e.concat([t,t+"-"+Ei,t+"-"+Jl])},[]),n3="beforeRead",r3="read",o3="afterRead",s3="beforeMain",i3="main",l3="afterMain",a3="beforeWrite",c3="write",u3="afterWrite",d3=[n3,r3,o3,s3,i3,l3,a3,c3,u3];function ao(e){return e?(e.nodeName||"").toLowerCase():null}function sr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Rs(e){var t=sr(e).Element;return e instanceof t||e instanceof Element}function gr(e){var t=sr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function $m(e){if(typeof ShadowRoot=="undefined")return!1;var t=sr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function p3(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!gr(i)||!ao(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(l){var a=o[l];a===!1?i.removeAttribute(l):i.setAttribute(l,a===!0?"":a)}))})}function f3(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 o=t.elements[r],i=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=l.reduce(function(c,u){return c[u]="",c},{});!gr(o)||!ao(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const m3={name:"applyStyles",enabled:!0,phase:"write",fn:p3,effect:f3,requires:["computeStyles"]};function ro(e){return e.split("-")[0]}var Ss=Math.max,Kc=Math.min,Ti=Math.round;function of(){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 Qx(){return!/^((?!chrome|android).)*safari/i.test(of())}function Ii(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&gr(e)&&(o=e.offsetWidth>0&&Ti(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ti(r.height)/e.offsetHeight||1);var l=Rs(e)?sr(e):window,a=l.visualViewport,c=!Qx()&&n,u=(r.left+(c&&a?a.offsetLeft:0))/o,d=(r.top+(c&&a?a.offsetTop:0))/i,p=r.width/o,m=r.height/i;return{width:p,height:m,top:d,right:u+p,bottom:d+m,left:u,x:u,y:d}}function Nm(e){var t=Ii(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 Jx(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$m(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Eo(e){return sr(e).getComputedStyle(e)}function h3(e){return["table","td","th"].indexOf(ao(e))>=0}function es(e){return((Rs(e)?e.ownerDocument:e.document)||window.document).documentElement}function qu(e){return ao(e)==="html"?e:e.assignedSlot||e.parentNode||($m(e)?e.host:null)||es(e)}function Bb(e){return!gr(e)||Eo(e).position==="fixed"?null:e.offsetParent}function g3(e){var t=/firefox/i.test(of()),n=/Trident/i.test(of());if(n&&gr(e)){var r=Eo(e);if(r.position==="fixed")return null}var o=qu(e);for($m(o)&&(o=o.host);gr(o)&&["html","body"].indexOf(ao(o))<0;){var i=Eo(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Ma(e){for(var t=sr(e),n=Bb(e);n&&h3(n)&&Eo(n).position==="static";)n=Bb(n);return n&&(ao(n)==="html"||ao(n)==="body"&&Eo(n).position==="static")?t:n||g3(e)||t}function Fm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fl(e,t,n){return Ss(e,Kc(t,n))}function b3(e,t,n){var r=Fl(e,t,n);return r>n?n:r}function eC(){return{top:0,right:0,bottom:0,left:0}}function tC(e){return Object.assign({},eC(),e)}function nC(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var y3=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,tC(typeof t!="number"?t:nC(t,Oa))};function v3(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,a=ro(n.placement),c=Fm(a),u=[Bn,wr].indexOf(a)>=0,d=u?"height":"width";if(!(!i||!l)){var p=y3(o.padding,n),m=Nm(i),f=c==="y"?zn:Bn,y=c==="y"?Cr:wr,g=n.rects.reference[d]+n.rects.reference[c]-l[c]-n.rects.popper[d],v=l[c]-n.rects.reference[c],x=Ma(i),S=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,w=g/2-v/2,k=p[f],E=S-m[d]-p[y],T=S/2-m[d]/2+w,N=Fl(k,T,E),P=c;n.modifiersData[r]=(t={},t[P]=N,t.centerOffset=N-T,t)}}function x3(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Jx(t.elements.popper,o)&&(t.elements.arrow=o))}const C3={name:"arrow",enabled:!0,phase:"main",fn:v3,effect:x3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Pi(e){return e.split("-")[1]}var w3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function S3(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ti(n*o)/o||0,y:Ti(r*o)/o||0}}function Vb(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,p=e.isFixed,m=l.x,f=m===void 0?0:m,y=l.y,g=y===void 0?0:y,v=typeof d=="function"?d({x:f,y:g}):{x:f,y:g};f=v.x,g=v.y;var x=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),w=Bn,k=zn,E=window;if(u){var T=Ma(n),N="clientHeight",P="clientWidth";if(T===sr(n)&&(T=es(n),Eo(T).position!=="static"&&a==="absolute"&&(N="scrollHeight",P="scrollWidth")),T=T,o===zn||(o===Bn||o===wr)&&i===Jl){k=Cr;var O=p&&T===E&&E.visualViewport?E.visualViewport.height:T[N];g-=O-r.height,g*=c?1:-1}if(o===Bn||(o===zn||o===Cr)&&i===Jl){w=wr;var L=p&&T===E&&E.visualViewport?E.visualViewport.width:T[P];f-=L-r.width,f*=c?1:-1}}var $=Object.assign({position:a},u&&w3),C=d===!0?S3({x:f,y:g},sr(n)):{x:f,y:g};if(f=C.x,g=C.y,c){var j;return Object.assign({},$,(j={},j[k]=S?"0":"",j[w]=x?"0":"",j.transform=(E.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",j))}return Object.assign({},$,(t={},t[k]=S?g+"px":"",t[w]=x?f+"px":"",t.transform="",t))}function k3(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,l=i===void 0?!0:i,a=n.roundOffsets,c=a===void 0?!0:a,u={placement:ro(t.placement),variation:Pi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Vb(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Vb(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const E3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:k3,data:{}};var pc={passive:!0};function T3(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,l=r.resize,a=l===void 0?!0:l,c=sr(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,pc)}),a&&c.addEventListener("resize",n.update,pc),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,pc)}),a&&c.removeEventListener("resize",n.update,pc)}}const I3={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:T3,data:{}};var P3={left:"right",right:"left",bottom:"top",top:"bottom"};function Oc(e){return e.replace(/left|right|bottom|top/g,function(t){return P3[t]})}var O3={start:"end",end:"start"};function Hb(e){return e.replace(/start|end/g,function(t){return O3[t]})}function Am(e){var t=sr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Dm(e){return Ii(es(e)).left+Am(e).scrollLeft}function M3(e,t){var n=sr(e),r=es(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,c=0;if(o){i=o.width,l=o.height;var u=Qx();(u||!u&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:l,x:a+Dm(e),y:c}}function R3(e){var t,n=es(e),r=Am(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ss(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=Ss(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Dm(e),c=-r.scrollTop;return Eo(o||n).direction==="rtl"&&(a+=Ss(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:a,y:c}}function _m(e){var t=Eo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function rC(e){return["html","body","#document"].indexOf(ao(e))>=0?e.ownerDocument.body:gr(e)&&_m(e)?e:rC(qu(e))}function Al(e,t){var n;t===void 0&&(t=[]);var r=rC(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=sr(r),l=o?[i].concat(i.visualViewport||[],_m(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(Al(qu(l)))}function sf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function j3(e,t){var n=Ii(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 Gb(e,t,n){return t===Xx?sf(M3(e,n)):Rs(t)?j3(t,n):sf(R3(es(e)))}function L3(e){var t=Al(qu(e)),n=["absolute","fixed"].indexOf(Eo(e).position)>=0,r=n&&gr(e)?Ma(e):e;return Rs(r)?t.filter(function(o){return Rs(o)&&Jx(o,r)&&ao(o)!=="body"}):[]}function $3(e,t,n,r){var o=t==="clippingParents"?L3(e):[].concat(t),i=[].concat(o,[n]),l=i[0],a=i.reduce(function(c,u){var d=Gb(e,u,r);return c.top=Ss(d.top,c.top),c.right=Kc(d.right,c.right),c.bottom=Kc(d.bottom,c.bottom),c.left=Ss(d.left,c.left),c},Gb(e,l,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function oC(e){var t=e.reference,n=e.element,r=e.placement,o=r?ro(r):null,i=r?Pi(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case zn:c={x:l,y:t.y-n.height};break;case Cr:c={x:l,y:t.y+t.height};break;case wr:c={x:t.x+t.width,y:a};break;case Bn:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var u=o?Fm(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case Ei:c[u]=c[u]-(t[d]/2-n[d]/2);break;case Jl:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function ea(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,l=i===void 0?e.strategy:i,a=n.boundary,c=a===void 0?e3:a,u=n.rootBoundary,d=u===void 0?Xx:u,p=n.elementContext,m=p===void 0?ol:p,f=n.altBoundary,y=f===void 0?!1:f,g=n.padding,v=g===void 0?0:g,x=tC(typeof v!="number"?v:nC(v,Oa)),S=m===ol?t3:ol,w=e.rects.popper,k=e.elements[y?S:m],E=$3(Rs(k)?k:k.contextElement||es(e.elements.popper),c,d,l),T=Ii(e.elements.reference),N=oC({reference:T,element:w,placement:o}),P=sf(Object.assign({},w,N)),O=m===ol?P:T,L={top:E.top-O.top+x.top,bottom:O.bottom-E.bottom+x.bottom,left:E.left-O.left+x.left,right:O.right-E.right+x.right},$=e.modifiersData.offset;if(m===ol&&$){var C=$[o];Object.keys(L).forEach(function(j){var F=[wr,Cr].indexOf(j)>=0?1:-1,M=[zn,Cr].indexOf(j)>=0?"y":"x";L[j]+=C[M]*F})}return L}function N3(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?Zx:c,d=Pi(r),p=d?a?zb:zb.filter(function(y){return Pi(y)===d}):Oa,m=p.filter(function(y){return u.indexOf(y)>=0});m.length===0&&(m=p);var f=m.reduce(function(y,g){return y[g]=ea(e,{placement:g,boundary:o,rootBoundary:i,padding:l})[ro(g)],y},{});return Object.keys(f).sort(function(y,g){return f[y]-f[g]})}function F3(e){if(ro(e)===Lm)return[];var t=Oc(e);return[Hb(e),t,Hb(t)]}function A3(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,u=n.padding,d=n.boundary,p=n.rootBoundary,m=n.altBoundary,f=n.flipVariations,y=f===void 0?!0:f,g=n.allowedAutoPlacements,v=t.options.placement,x=ro(v),S=x===v,w=c||(S||!y?[Oc(v)]:F3(v)),k=[v].concat(w).reduce(function(K,Y){return K.concat(ro(Y)===Lm?N3(t,{placement:Y,boundary:d,rootBoundary:p,padding:u,flipVariations:y,allowedAutoPlacements:g}):Y)},[]),E=t.rects.reference,T=t.rects.popper,N=new Map,P=!0,O=k[0],L=0;L<k.length;L++){var $=k[L],C=ro($),j=Pi($)===Ei,F=[zn,Cr].indexOf(C)>=0,M=F?"width":"height",R=ea(t,{placement:$,boundary:d,rootBoundary:p,altBoundary:m,padding:u}),_=F?j?wr:Bn:j?Cr:zn;E[M]>T[M]&&(_=Oc(_));var V=Oc(_),W=[];if(i&&W.push(R[C]<=0),a&&W.push(R[_]<=0,R[V]<=0),W.every(function(K){return K})){O=$,P=!1;break}N.set($,W)}if(P)for(var I=y?3:1,D=function(Y){var U=k.find(function(q){var Z=N.get(q);if(Z)return Z.slice(0,Y).every(function(X){return X})});if(U)return O=U,"break"},G=I;G>0;G--){var A=D(G);if(A==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const D3={name:"flip",enabled:!0,phase:"main",fn:A3,requiresIfExists:["offset"],data:{_skip:!1}};function Wb(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 Ub(e){return[zn,wr,Cr,Bn].some(function(t){return e[t]>=0})}function _3(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,l=ea(t,{elementContext:"reference"}),a=ea(t,{altBoundary:!0}),c=Wb(l,r),u=Wb(a,o,i),d=Ub(c),p=Ub(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}const z3={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:_3};function B3(e,t,n){var r=ro(e),o=[Bn,zn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=i[0],a=i[1];return l=l||0,a=(a||0)*o,[Bn,wr].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function V3(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,l=Zx.reduce(function(d,p){return d[p]=B3(p,t.rects,i),d},{}),a=l[t.placement],c=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=l}const H3={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:V3};function G3(e){var t=e.state,n=e.name;t.modifiersData[n]=oC({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const W3={name:"popperOffsets",enabled:!0,phase:"read",fn:G3,data:{}};function U3(e){return e==="x"?"y":"x"}function q3(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,p=n.padding,m=n.tether,f=m===void 0?!0:m,y=n.tetherOffset,g=y===void 0?0:y,v=ea(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:d}),x=ro(t.placement),S=Pi(t.placement),w=!S,k=Fm(x),E=U3(k),T=t.modifiersData.popperOffsets,N=t.rects.reference,P=t.rects.popper,O=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,L=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(T){if(i){var j,F=k==="y"?zn:Bn,M=k==="y"?Cr:wr,R=k==="y"?"height":"width",_=T[k],V=_+v[F],W=_-v[M],I=f?-P[R]/2:0,D=S===Ei?N[R]:P[R],G=S===Ei?-P[R]:-N[R],A=t.elements.arrow,K=f&&A?Nm(A):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:eC(),U=Y[F],q=Y[M],Z=Fl(0,N[R],K[R]),X=w?N[R]/2-I-Z-U-L.mainAxis:D-Z-U-L.mainAxis,Q=w?-N[R]/2+I+Z+q+L.mainAxis:G+Z+q+L.mainAxis,re=t.elements.arrow&&Ma(t.elements.arrow),J=re?k==="y"?re.clientTop||0:re.clientLeft||0:0,oe=(j=$==null?void 0:$[k])!=null?j:0,te=_+X-oe-J,fe=_+Q-oe,ve=Fl(f?Kc(V,te):V,_,f?Ss(W,fe):W);T[k]=ve,C[k]=ve-_}if(a){var Ce,xe=k==="x"?zn:Bn,Se=k==="x"?Cr:wr,Oe=T[E],Ae=E==="y"?"height":"width",se=Oe+v[xe],Ge=Oe-v[Se],Ie=[zn,Bn].indexOf(x)!==-1,Ye=(Ce=$==null?void 0:$[E])!=null?Ce:0,ee=Ie?se:Oe-N[Ae]-P[Ae]-Ye+L.altAxis,de=Ie?Oe+N[Ae]+P[Ae]-Ye-L.altAxis:Ge,he=f&&Ie?b3(ee,Oe,de):Fl(f?ee:se,Oe,f?de:Ge);T[E]=he,C[E]=he-Oe}t.modifiersData[r]=C}}const K3={name:"preventOverflow",enabled:!0,phase:"main",fn:q3,requiresIfExists:["offset"]};function Y3(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function X3(e){return e===sr(e)||!gr(e)?Am(e):Y3(e)}function Z3(e){var t=e.getBoundingClientRect(),n=Ti(t.width)/e.offsetWidth||1,r=Ti(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Q3(e,t,n){n===void 0&&(n=!1);var r=gr(t),o=gr(t)&&Z3(t),i=es(t),l=Ii(e,o,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((ao(t)!=="body"||_m(i))&&(a=X3(t)),gr(t)?(c=Ii(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Dm(i))),{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}function J3(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function ej(e){var t=J3(e);return d3.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function tj(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function nj(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var qb={placement:"bottom",modifiers:[],strategy:"absolute"};function Kb(){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 rj(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?qb:o;return function(a,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},qb,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},p=[],m=!1,f={state:d,setOptions:function(x){var S=typeof x=="function"?x(d.options):x;g(),d.options=Object.assign({},i,d.options,S),d.scrollParents={reference:Rs(a)?Al(a):a.contextElement?Al(a.contextElement):[],popper:Al(c)};var w=ej(nj([].concat(r,d.options.modifiers)));return d.orderedModifiers=w.filter(function(k){return k.enabled}),y(),f.update()},forceUpdate:function(){if(!m){var x=d.elements,S=x.reference,w=x.popper;if(Kb(S,w)){d.rects={reference:Q3(S,Ma(w),d.options.strategy==="fixed"),popper:Nm(w)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(L){return d.modifiersData[L.name]=Object.assign({},L.data)});for(var k=0;k<d.orderedModifiers.length;k++){if(d.reset===!0){d.reset=!1,k=-1;continue}var E=d.orderedModifiers[k],T=E.fn,N=E.options,P=N===void 0?{}:N,O=E.name;typeof T=="function"&&(d=T({state:d,options:P,name:O,instance:f})||d)}}}},update:tj(function(){return new Promise(function(v){f.forceUpdate(),v(d)})}),destroy:function(){g(),m=!0}};if(!Kb(a,c))return f;f.setOptions(u).then(function(v){!m&&u.onFirstUpdate&&u.onFirstUpdate(v)});function y(){d.orderedModifiers.forEach(function(v){var x=v.name,S=v.options,w=S===void 0?{}:S,k=v.effect;if(typeof k=="function"){var E=k({state:d,name:x,instance:f,options:w}),T=function(){};p.push(E||T)}})}function g(){p.forEach(function(v){return v()}),p=[]}return f}}var oj=[I3,W3,E3,m3,H3,D3,K3,C3,z3],sj=rj({defaultModifiers:oj});function sC(e){var p;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,l=o?{}:Bx(n,r),{props:a,internalRef:c}=Hx({...i,externalSlotProps:l}),u=It(c,l==null?void 0:l.ref,(p=e.additionalProps)==null?void 0:p.ref);return zx(t,{...a,ref:u},r)}function Ra(){return!(/jsdom|HappyDOM/.test(window.navigator.userAgent)||process.env.NODE_ENV==="test")}function ts(e){var t;return parseInt(b.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function ij(e){return typeof e=="function"?e():e}const ta=b.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[l,a]=b.useState(null),c=It(b.isValidElement(r)?ts(r):null,n);if(Rt(()=>{i||a(ij(o)||document.body)},[o,i]),Rt(()=>{if(l&&!i)return Xp(n,l),()=>{Xp(n,null)}},[n,l,i]),i){if(b.isValidElement(r)){const u={ref:c};return b.cloneElement(r,u)}return r}return l&&z0.createPortal(r,l)});process.env.NODE_ENV!=="production"&&(ta.propTypes={children:s.node,container:s.oneOfType([xr,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(ta.propTypes=Ta(ta.propTypes));function lj(e){return Ne("MuiPopper",e)}$e("MuiPopper",["root"]);function aj(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 Yc(e){return typeof e=="function"?e():e}function Ku(e){return e.nodeType!==void 0}function cj(e){return!Ku(e)}const uj=e=>{const{classes:t}=e;return ye({root:["root"]},lj,t)},dj={},pj=b.forwardRef(function(t,n){var M;const{anchorEl:r,children:o,direction:i,disablePortal:l,modifiers:a,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:m={},slots:f={},TransitionProps:y,ownerState:g,...v}=t,x=b.useRef(null),S=It(x,n),w=b.useRef(null),k=It(w,p),E=b.useRef(k);Rt(()=>{E.current=k},[k]),b.useImperativeHandle(p,()=>w.current,[]);const T=aj(u,i),[N,P]=b.useState(T),[O,L]=b.useState(Yc(r));b.useEffect(()=>{w.current&&w.current.forceUpdate()}),b.useEffect(()=>{r&&L(Yc(r))},[r]),Rt(()=>{if(!O||!c)return;const R=I=>{P(I.placement)};if(process.env.NODE_ENV!=="production"&&O&&Ku(O)&&O.nodeType===1){const I=O.getBoundingClientRect();Ra()&&I.top===0&&I.left===0&&I.right===0&&I.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
272
|
+
`))}let _=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:I})=>{R(I)}}];a!=null&&(_=_.concat(a)),d&&d.modifiers!=null&&(_=_.concat(d.modifiers));const V=sj(O,x.current,{placement:T,...d,modifiers:_});E.current(V);const W=x.current;return()=>{if(W){const{style:I}=W,D=I.position,G=I.top,A=I.left,K=I.transform;V.destroy(),I.position=D,I.top=G,I.left=A,I.transform=K}else V.destroy();E.current(null)}},[O,l,a,c,d,T]);const $={placement:N};y!==null&&($.TransitionProps=y);const C=uj(t),j=(M=f.root)!=null?M:"div",F=sC({elementType:j,externalSlotProps:m.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:S},ownerState:t,className:C.root});return h.jsx(j,{...F,children:typeof o=="function"?o($):o})}),iC=b.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:l="ltr",disablePortal:a=!1,keepMounted:c=!1,modifiers:u,open:d,placement:p="bottom",popperOptions:m=dj,popperRef:f,style:y,transition:g=!1,slotProps:v={},slots:x={},...S}=t,[w,k]=b.useState(!0),E=()=>{k(!1)},T=()=>{k(!0)};if(!c&&!d&&(!g||w))return null;let N;if(i)N=i;else if(r){const L=Yc(r);N=L&&Ku(L)?Yt(L).body:Yt(null).body}const P=!d&&c&&(!g||w)?"none":void 0,O=g?{in:d,onEnter:E,onExited:T}:void 0;return h.jsx(ta,{disablePortal:a,container:N,children:h.jsx(pj,{anchorEl:r,direction:l,disablePortal:a,modifiers:u,ref:n,open:g?!w:d,placement:p,popperOptions:m,popperRef:f,slotProps:v,slots:x,...S,style:{position:"fixed",top:0,left:0,display:P,...y},TransitionProps:O,children:o})})});process.env.NODE_ENV!=="production"&&(iC.propTypes={anchorEl:or(s.oneOfType([xr,s.object,s.func]),e=>{if(e.open){const t=Yc(e.anchorEl);if(t&&Ku(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="production"&&Ra()&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
273
|
+
`))}else if(!t||typeof t.getBoundingClientRect!="function"||cj(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
274
|
+
`))}return null}),children:s.oneOfType([s.node,s.func]),container:s.oneOfType([xr,s.func]),direction:s.oneOf(["ltr","rtl"]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:Fn,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),transition:s.bool});const fj=ne(iC,{name:"MuiPopper",slot:"Root"})({}),ns=b.forwardRef(function(t,n){var N;const r=Nn(),o=ze({props:t,name:"MuiPopper"}),{anchorEl:i,component:l,components:a,componentsProps:c,container:u,disablePortal:d,keepMounted:p,modifiers:m,open:f,placement:y,popperOptions:g,popperRef:v,transition:x,slots:S,slotProps:w,...k}=o,E=(N=S==null?void 0:S.root)!=null?N:a==null?void 0:a.Root,T={anchorEl:i,container:u,disablePortal:d,keepMounted:p,modifiers:m,open:f,placement:y,popperOptions:g,popperRef:v,transition:x,...k};return h.jsx(fj,{as:l,direction:r?"rtl":"ltr",slots:{root:E},slotProps:w!=null?w:c,...T,ref:n})});process.env.NODE_ENV!=="production"&&(ns.propTypes={anchorEl:s.oneOfType([xr,s.object,s.func]),children:s.oneOfType([s.node,s.func]),component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([xr,s.func]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:Fn,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transition:s.bool});function mj(e){return Ne("MuiListSubheader",e)}$e("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const hj=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,l={root:["root",n!=="default"&&`color${ie(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return ye(l,mj,t)},gj=ne("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ie(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(je(({theme:e})=>({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),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),Xc=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:l="li",disableGutters:a=!1,disableSticky:c=!1,inset:u=!1,...d}=r,p={...r,color:i,component:l,disableGutters:a,disableSticky:c,inset:u},m=hj(p);return h.jsx(gj,{as:l,className:ue(m.root,o),ref:n,ownerState:p,...d})});Xc&&(Xc.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(Xc.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOf(["default","inherit","primary"]),component:s.elementType,disableGutters:s.bool,disableSticky:s.bool,inset:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const bj=Me(h.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 yj(e){return Ne("MuiChip",e)}const ft=$e("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","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"]),vj=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:l,clickable:a,variant:c}=e,u={root:["root",c,n&&"disabled",`size${ie(r)}`,`color${ie(o)}`,a&&"clickable",a&&`clickableColor${ie(o)}`,l&&"deletable",l&&`deletableColor${ie(o)}`,`${c}${ie(o)}`],label:["label",`label${ie(r)}`],avatar:["avatar",`avatar${ie(r)}`,`avatarColor${ie(o)}`],icon:["icon",`icon${ie(r)}`,`iconColor${ie(i)}`],deleteIcon:["deleteIcon",`deleteIcon${ie(r)}`,`deleteIconColor${ie(o)}`,`deleteIcon${ie(c)}Color${ie(o)}`]};return ye(u,yj,t)},xj=ne("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:l,size:a,variant:c}=n;return[{[`& .${ft.avatar}`]:t.avatar},{[`& .${ft.avatar}`]:t[`avatar${ie(a)}`]},{[`& .${ft.avatar}`]:t[`avatarColor${ie(r)}`]},{[`& .${ft.icon}`]:t.icon},{[`& .${ft.icon}`]:t[`icon${ie(a)}`]},{[`& .${ft.icon}`]:t[`iconColor${ie(o)}`]},{[`& .${ft.deleteIcon}`]:t.deleteIcon},{[`& .${ft.deleteIcon}`]:t[`deleteIcon${ie(a)}`]},{[`& .${ft.deleteIcon}`]:t[`deleteIconColor${ie(r)}`]},{[`& .${ft.deleteIcon}`]:t[`deleteIcon${ie(c)}Color${ie(r)}`]},t.root,t[`size${ie(a)}`],t[`color${ie(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${ie(r)}`],l&&t.deletable,l&&r!=="default"&&t[`deletableColor${ie(r)}`],t[c],t[`${c}${ie(r)}`]]}})(je(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,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",[`&.${ft.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${ft.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${ft.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${ft.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${ft.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${ft.icon}`]:{marginLeft:5,marginRight:-6},[`& .${ft.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${ft.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${ft.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(_t(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${ft.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${ft.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${ft.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${ft.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(_t(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${ft.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${ft.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(_t(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${ft.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{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]}`,[`&.${ft.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ft.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${ft.avatar}`]:{marginLeft:4},[`& .${ft.avatarSmall}`]:{marginLeft:2},[`& .${ft.icon}`]:{marginLeft:4},[`& .${ft.iconSmall}`]:{marginLeft:2},[`& .${ft.deleteIcon}`]:{marginRight:5},[`& .${ft.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(_t()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${ft.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${ft.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${ft.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),Cj=ne("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ie(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Yb(e){return e.key==="Backspace"||e.key==="Delete"}const zm=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:l,color:a="default",component:c,deleteIcon:u,disabled:d=!1,icon:p,label:m,onClick:f,onDelete:y,onKeyDown:g,onKeyUp:v,size:x="medium",variant:S="filled",tabIndex:w,skipFocusWhenDisabled:k=!1,slots:E={},slotProps:T={},...N}=r,P=b.useRef(null),O=It(P,n),L=U=>{U.stopPropagation(),y(U)},$=U=>{U.currentTarget===U.target&&Yb(U)&&U.preventDefault(),g&&g(U)},C=U=>{U.currentTarget===U.target&&y&&Yb(U)&&y(U),v&&v(U)},j=l!==!1&&f?!0:l,F=j||y?ko:c||"div",M={...r,component:F,disabled:d,size:x,color:a,iconColor:b.isValidElement(p)&&p.props.color||a,onDelete:!!y,clickable:j,variant:S},R=vj(M),_=F===ko?{component:c||"div",focusVisibleClassName:R.focusVisible,...y&&{disableRipple:!0}}:{};let V=null;y&&(V=u&&b.isValidElement(u)?b.cloneElement(u,{className:ue(u.props.className,R.deleteIcon),onClick:L}):h.jsx(bj,{className:R.deleteIcon,onClick:L}));let W=null;o&&b.isValidElement(o)&&(W=b.cloneElement(o,{className:ue(R.avatar,o.props.className)}));let I=null;p&&b.isValidElement(p)&&(I=b.cloneElement(p,{className:ue(R.icon,p.props.className)})),process.env.NODE_ENV!=="production"&&W&&I&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const D={slots:E,slotProps:T},[G,A]=He("root",{elementType:xj,externalForwardedProps:{...D,...N},ownerState:M,shouldForwardComponentProp:!0,ref:O,className:ue(R.root,i),additionalProps:{disabled:j&&d?!0:void 0,tabIndex:k&&d?-1:w,..._},getSlotProps:U=>({...U,onClick:q=>{var Z;(Z=U.onClick)==null||Z.call(U,q),f==null||f(q)},onKeyDown:q=>{var Z;(Z=U.onKeyDown)==null||Z.call(U,q),$(q)},onKeyUp:q=>{var Z;(Z=U.onKeyUp)==null||Z.call(U,q),C(q)}})}),[K,Y]=He("label",{elementType:Cj,externalForwardedProps:D,ownerState:M,className:R.label});return h.jsxs(G,{as:F,...A,children:[W||I,h.jsx(K,{...Y,children:m}),V]})});process.env.NODE_ENV!=="production"&&(zm.propTypes={avatar:s.element,children:LM,classes:s.object,className:s.string,clickable:s.bool,color:s.oneOfType([s.oneOf(["default","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,deleteIcon:s.element,disabled:s.bool,icon:s.element,label:s.node,onClick:s.func,onDelete:s.func,onKeyDown:s.func,onKeyUp:s.func,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),skipFocusWhenDisabled:s.bool,slotProps:s.shape({label:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({label:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,variant:s.oneOfType([s.oneOf(["filled","outlined"]),s.string])});function fc(e){return parseInt(e,10)||0}const wj={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Sj(e){for(const t in e)return!1;return!0}function Xb(e){return Sj(e)||e.outerHeightStyle===0&&!e.overflowing}const lC=b.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:l,value:a,...c}=t,{current:u}=b.useRef(a!=null),d=b.useRef(null),p=It(n,d),m=b.useRef(null),f=b.useRef(null),y=b.useCallback(()=>{const w=d.current,k=f.current;if(!w||!k)return;const T=vr(w).getComputedStyle(w);if(T.width==="0px")return{outerHeightStyle:0,overflowing:!1};k.style.width=T.width,k.value=w.value||t.placeholder||"x",k.value.slice(-1)===`
|
|
275
|
+
`&&(k.value+=" ");const N=T.boxSizing,P=fc(T.paddingBottom)+fc(T.paddingTop),O=fc(T.borderBottomWidth)+fc(T.borderTopWidth),L=k.scrollHeight;k.value="x";const $=k.scrollHeight;let C=L;i&&(C=Math.max(Number(i)*$,C)),o&&(C=Math.min(Number(o)*$,C)),C=Math.max(C,$);const j=C+(N==="border-box"?P+O:0),F=Math.abs(C-L)<=1;return{outerHeightStyle:j,overflowing:F}},[o,i,t.placeholder]),g=nt(()=>{const w=d.current,k=y();if(!w||!k||Xb(k))return!1;const E=k.outerHeightStyle;return m.current!=null&&m.current!==E}),v=b.useCallback(()=>{const w=d.current,k=y();if(!w||!k||Xb(k))return;const E=k.outerHeightStyle;m.current!==E&&(m.current=E,w.style.height=`${E}px`),w.style.overflow=k.overflowing?"hidden":""},[y]),x=b.useRef(-1);Rt(()=>{const w=Tm(v),k=d==null?void 0:d.current;if(!k)return;const E=vr(k);E.addEventListener("resize",w);let T;return typeof ResizeObserver!="undefined"&&(T=new ResizeObserver(()=>{g()&&(T.unobserve(k),cancelAnimationFrame(x.current),v(),x.current=requestAnimationFrame(()=>{T.observe(k)}))}),T.observe(k)),()=>{w.clear(),cancelAnimationFrame(x.current),E.removeEventListener("resize",w),T&&T.disconnect()}},[y,v,g]),Rt(()=>{v()});const S=w=>{u||v();const k=w.target,E=k.value.length,T=k.value.endsWith(`
|
|
276
|
+
`),N=k.selectionStart===E;T&&N&&k.setSelectionRange(E,E),r&&r(w)};return h.jsxs(b.Fragment,{children:[h.jsx("textarea",{value:a,onChange:S,ref:p,rows:i,style:l,...c}),h.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:{...wj.shadow,...l,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(lC.propTypes={className:s.string,maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),onChange:s.func,placeholder:s.string,style:s.object,value:s.oneOfType([s.arrayOf(s.string),s.number,s.string])});function rs({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]=="undefined"&&(r[o]=n[o]),r),{})}const ja=b.createContext(void 0);process.env.NODE_ENV!=="production"&&(ja.displayName="FormControlContext");function Vr(){return b.useContext(ja)}function ui(e){var n;let t=e.activeElement;for(;((n=t==null?void 0:t.shadowRoot)==null?void 0:n.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}function Zb(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Zc(e,t=!1){return e&&(Zb(e.value)&&e.value!==""||t&&Zb(e.defaultValue)&&e.defaultValue!=="")}function kj(e){return e.startAdornment}function Ej(e){return Ne("MuiInputBase",e)}const vn=$e("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Qb;const lf="mui-auto-fill",Qc="mui-auto-fill-cancel",Yu=(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${ie(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Xu=(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]},Tj=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:l,formControl:a,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:p,size:m,startAdornment:f,type:y}=e,g={root:["root",`color${ie(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",l&&"focused",a&&"formControl",m&&m!=="medium"&&`size${ie(m)}`,d&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",d&&"inputMultiline",m==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return ye(g,Ej,t)},Zu=ne("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Yu})(je(({theme:e})=>({...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",[`&.${vn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Qu=ne("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Xu})(je(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{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%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${vn.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${vn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:Qc,animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:lf}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Jb=Em({[`@keyframes ${lf}`]:{from:{animationName:lf}},[`@keyframes ${Qc}`]:{from:{animationName:Qc}}}),_s=b.forwardRef(function(t,n){var be;const r=ze({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:l,className:a,color:c,components:u={},componentsProps:d={},defaultValue:p,disabled:m,disableInjectingGlobalStyles:f,endAdornment:y,error:g,fullWidth:v=!1,id:x,inputComponent:S="input",inputProps:w={},inputRef:k,margin:E,maxRows:T,minRows:N,multiline:P=!1,name:O,onBlur:L,onChange:$,onClick:C,onFocus:j,onKeyDown:F,onKeyUp:M,placeholder:R,readOnly:_,renderSuffix:V,rows:W,size:I,slotProps:D={},slots:G={},startAdornment:A,type:K="text",value:Y,...U}=r,q=w.value!=null?w.value:Y,{current:Z}=b.useRef(q!=null),X=b.useRef(),Q=b.useCallback(Te=>{process.env.NODE_ENV!=="production"&&Te&&Te.nodeName!=="INPUT"&&!Te.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
277
|
+
`))},[]),re=It(X,k,w.ref,Q),[J,oe]=b.useState(!1),te=Vr();process.env.NODE_ENV!=="production"&&b.useEffect(()=>{if(te)return te.registerEffect()},[te]);const fe=rs({props:r,muiFormControl:te,states:["color","disabled","error","hiddenLabel","size","required","filled"]});fe.focused=te?te.focused:J,b.useEffect(()=>{!te&&m&&J&&(oe(!1),L&&L())},[te,m,J,L]);const ve=te&&te.onFilled,Ce=te&&te.onEmpty,xe=b.useCallback(Te=>{Zc(Te)?ve&&ve():Ce&&Ce()},[ve,Ce]);Rt(()=>{Z&&xe({value:q})},[q,xe,Z]),Rt(()=>{if(!l)return;const Te=X.current;if(!Te)return;const _e=Yt(Te),ke=ui(_e),ct=ke==null||ke===_e.body||ke===_e.documentElement;Te===ke?te&&te.onFocus?te.onFocus():oe(!0):ct&&Te.focus()},[l]);const Se=Te=>{j&&j(Te),w.onFocus&&w.onFocus(Te),te&&te.onFocus?te.onFocus(Te):oe(!0)},Oe=Te=>{L&&L(Te),w.onBlur&&w.onBlur(Te),te&&te.onBlur?te.onBlur(Te):oe(!1)},Ae=(Te,..._e)=>{if(!Z){const ke=Te.target||X.current;if(ke==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":So(1));xe({value:ke.value})}w.onChange&&w.onChange(Te,..._e),$&&$(Te,..._e)};b.useEffect(()=>{xe(X.current)},[]);const se=Te=>{X.current&&Te.currentTarget===Te.target&&X.current.focus(),C&&C(Te)};let Ge=S,Ie=w;P&&Ge==="input"&&(W?(process.env.NODE_ENV!=="production"&&(N||T)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Ie={type:void 0,minRows:W,maxRows:W,...Ie}):Ie={type:void 0,maxRows:T,minRows:N,...Ie},Ge=lC);const Ye=Te=>{xe(Te.animationName===Qc?X.current:{value:"x"})};b.useEffect(()=>{te&&te.setAdornedStart(!!A)},[te,A]);const ee={...r,color:fe.color||"primary",disabled:fe.disabled,endAdornment:y,error:fe.error,focused:fe.focused,formControl:te,fullWidth:v,hiddenLabel:fe.hiddenLabel,multiline:P,size:fe.size,startAdornment:A,type:K},de=Tj(ee),he=G.root||u.Root||Zu,ae=D.root||d.root||{},ge=G.input||u.Input||Qu;return Ie={...Ie,...(be=D.input)!=null?be:d.input},h.jsxs(b.Fragment,{children:[!f&&typeof Jb=="function"&&(Qb||(Qb=h.jsx(Jb,{}))),h.jsxs(he,{...ae,ref:n,onClick:se,...U,...!Si(he)&&{ownerState:{...ee,...ae.ownerState}},className:ue(de.root,ae.className,a,_&&"MuiInputBase-readOnly"),children:[A,h.jsx(ja.Provider,{value:null,children:h.jsx(ge,{"aria-invalid":fe.error,"aria-describedby":o,autoComplete:i,autoFocus:l,defaultValue:p,disabled:fe.disabled,id:x,onAnimationStart:Ye,name:O,placeholder:R,readOnly:_,required:fe.required,rows:W,value:q,onKeyDown:F,onKeyUp:M,type:K,...Ie,...!Si(ge)&&{as:Ge,ownerState:{...ee,...Ie.ownerState}},ref:re,className:ue(de.input,Ie.className,_&&"MuiInputBase-readOnly"),onBlur:Oe,onChange:Ae,onFocus:Se})}),y,V?V({...fe,startAdornment:A}):null]})]})});process.env.NODE_ENV!=="production"&&(_s.propTypes={"aria-describedby":s.string,autoComplete:s.string,autoFocus:s.bool,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableInjectingGlobalStyles:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:Ia,inputProps:s.object,inputRef:Fn,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClick:s.func,onFocus:s.func,onInvalid:s.func,onKeyDown:s.func,onKeyUp:s.func,placeholder:s.string,readOnly:s.bool,renderSuffix:s.func,required:s.bool,rows:s.oneOfType([s.number,s.string]),size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});function Ij(e){return Ne("MuiInput",e)}const Do={...vn,...$e("MuiInput",["root","underline","input"])};function Pj(e){return Ne("MuiOutlinedInput",e)}const ar={...vn,...$e("MuiOutlinedInput",["root","notchedOutline","input"])};function Oj(e){return Ne("MuiFilledInput",e)}const Xn={...vn,...$e("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},aC=Me(h.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Mj(e){return Ne("MuiAutocomplete",e)}const st=$e("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 ey,ty;const Rj=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:l,hasPopupIcon:a,inputFocused:c,popupOpen:u,size:d}=e,p={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",l&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${ie(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return ye(p,Mj,t)},jj=ne("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:l,size:a}=n;return[{[`& .${st.tag}`]:t.tag},{[`& .${st.tag}`]:t[`tagSize${ie(a)}`]},{[`& .${st.inputRoot}`]:t.inputRoot},{[`& .${st.input}`]:t.input},{[`& .${st.input}`]:l&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${st.focused} .${st.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${st.clearIndicator}`]:{visibility:"visible"}},[`& .${st.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${st.inputRoot}`]:{[`.${st.hasPopupIcon}&, .${st.hasClearIcon}&`]:{paddingRight:30},[`.${st.hasPopupIcon}.${st.hasClearIcon}&`]:{paddingRight:56},[`& .${st.input}`]:{width:0,minWidth:30}},[`& .${Do.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Do.root}.${vn.sizeSmall}`]:{[`& .${Do.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ar.root}`]:{padding:9,[`.${st.hasPopupIcon}&, .${st.hasClearIcon}&`]:{paddingRight:39},[`.${st.hasPopupIcon}.${st.hasClearIcon}&`]:{paddingRight:65},[`& .${st.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${st.endAdornment}`]:{right:9}},[`& .${ar.root}.${vn.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${st.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Xn.root}`]:{paddingTop:19,paddingLeft:8,[`.${st.hasPopupIcon}&, .${st.hasClearIcon}&`]:{paddingRight:39},[`.${st.hasPopupIcon}.${st.hasClearIcon}&`]:{paddingRight:65},[`& .${Xn.input}`]:{padding:"7px 4px"},[`& .${st.endAdornment}`]:{right:9}},[`& .${Xn.root}.${vn.sizeSmall}`]:{paddingBottom:1,[`& .${Xn.input}`]:{padding:"2.5px 4px"}},[`& .${vn.hiddenLabel}`]:{paddingTop:8},[`& .${Xn.root}.${vn.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${st.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Xn.root}.${vn.hiddenLabel}.${vn.sizeSmall}`]:{[`& .${st.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${st.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${st.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${st.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${st.inputRoot}`]:{flexWrap:"wrap"}}}]}),Lj=ne("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),$j=ne(Tn,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),Nj=ne(Tn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),Fj=ne(ns,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${st.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(je(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),Aj=ne(Br,{name:"MuiAutocomplete",slot:"Paper"})(je(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),Dj=ne("div",{name:"MuiAutocomplete",slot:"Loading"})(je(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),_j=ne("div",{name:"MuiAutocomplete",slot:"NoOptions"})(je(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),zj=ne("ul",{name:"MuiAutocomplete",slot:"Listbox"})(je(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${st.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"},[`&.${st.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"},[`&.${st.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${st.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${st.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),Bj=ne(Xc,{name:"MuiAutocomplete",slot:"GroupLabel"})(je(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),Vj=ne("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${st.option}`]:{paddingLeft:24}}),Bm=b.forwardRef(function(t,n){var ng;const r=ze({props:t,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:i=!1,autoSelect:l=!1,blurOnSelect:a=!1,ChipProps:c,className:u,clearIcon:d=ey||(ey=h.jsx(Kx,{fontSize:"small"})),clearOnBlur:p=!r.freeSolo,clearOnEscape:m=!1,clearText:f="Clear",closeText:y="Close",componentsProps:g,defaultValue:v=r.multiple?[]:null,disableClearable:x=!1,disableCloseOnSelect:S=!1,disabled:w=!1,disabledItemsFocusable:k=!1,disableListWrap:E=!1,disablePortal:T=!1,filterOptions:N,filterSelectedOptions:P=!1,forcePopupIcon:O="auto",freeSolo:L=!1,fullWidth:$=!1,getLimitTagsText:C=gt=>`+${gt}`,getOptionDisabled:j,getOptionKey:F,getOptionLabel:M,isOptionEqualToValue:R,groupBy:_,handleHomeEndKeys:V=!r.freeSolo,id:W,includeInputInList:I=!1,inputValue:D,limitTags:G=-1,ListboxComponent:A,ListboxProps:K,loading:Y=!1,loadingText:U="Loading…",multiple:q=!1,noOptionsText:Z="No options",onChange:X,onClose:Q,onHighlightChange:re,onInputChange:J,onOpen:oe,open:te,openOnFocus:fe=!1,openText:ve="Open",options:Ce,PaperComponent:xe,PopperComponent:Se,popupIcon:Oe=ty||(ty=h.jsx(aC,{})),readOnly:Ae=!1,renderGroup:se,renderInput:Ge,renderOption:Ie,renderTags:Ye,renderValue:ee,selectOnFocus:de=!r.freeSolo,size:he="medium",slots:ae={},slotProps:ge={},value:be,...Te}=r,{getRootProps:_e,getInputProps:ke,getInputLabelProps:ct,getPopupIndicatorProps:it,getClearProps:Pt,getItemProps:qe,getListboxProps:Ve,getOptionProps:ot,value:pt,dirty:mn,expanded:qn,id:Re,popupOpen:We,focused:ut,focusedItem:hn,anchorEl:rn,setAnchorEl:Pr,inputValue:Ke,groupedOptions:vt}=JR({...r,componentName:"Autocomplete"}),Rn=YR();b.useEffect(()=>{if(!We||!rn||typeof ResizeObserver=="undefined")return;let gt=rn.clientWidth;const An=new ResizeObserver(()=>{const Or=rn.clientWidth;gt!==Or&&(gt=Or,Rn())});return An.observe(rn),()=>{An.disconnect()}},[We,rn,Rn]);const wn=b.useRef([]),Ro=b.useRef(!1),as=We?vt:wn.current;Rt(()=>{We&&!Ro.current&&(wn.current=[]),Ro.current=We,We&&vt.length>0&&(wn.current=vt)},[We,vt]);const Ws=!x&&!w&&mn&&!Ae,Us=(!L||O===!0)&&O!==!1,{onMouseDown:Sd}=ke(),{ref:kd,...Ya}=Ve(),Yi=M||(gt=>{var An;return(An=gt.label)!=null?An:gt}),gn={...r,disablePortal:T,expanded:qn,focused:ut,fullWidth:$,getOptionLabel:Yi,hasClearIcon:Ws,hasPopupIcon:Us,inputFocused:hn===-1,popupOpen:We,size:he},bn=Rj(gn),Hr={slots:{paper:xe,popper:Se,...ae},slotProps:{chip:c,listbox:K,...g,...ge}},[Ed,Xa]=He("root",{ref:n,className:[bn.root,u],elementType:jj,externalForwardedProps:{...Hr,...Te},getSlotProps:_e,ownerState:gn}),[Td,Id]=He("listbox",{elementType:zj,externalForwardedProps:Hr,ownerState:gn,className:bn.listbox,additionalProps:Ya,ref:kd}),[Pd,Xi]=He("paper",{elementType:Br,externalForwardedProps:Hr,ownerState:gn,className:bn.paper}),[Za,le]=He("popper",{elementType:ns,externalForwardedProps:Hr,ownerState:gn,className:bn.popper,additionalProps:{disablePortal:T,style:{width:rn?rn.clientWidth:null,pointerEvents:We?void 0:"none"},role:"presentation",anchorEl:rn,open:We}}),ce=as.length>0||Y||!L||le.keepMounted===!0,[Ee,et]=He("clearIndicator",{elementType:$j,externalForwardedProps:Hr,ownerState:gn,className:bn.clearIndicator,shouldForwardComponentProp:!0,additionalProps:{...Pt(),"aria-label":f,title:f}}),[Xe,zt]=He("popupIndicator",{elementType:Nj,externalForwardedProps:Hr,ownerState:gn,className:bn.popupIndicator,shouldForwardComponentProp:!0,additionalProps:{...it(),disabled:w,"aria-label":We?y:ve,title:We?y:ve}});let Ct;const Jt=gt=>({className:bn.tag,disabled:w,...qe(gt)});if(q?pt.length>0&&(Ye?Ct=Ye(pt,Jt,gn):ee?Ct=ee(pt,Jt,gn):Ct=pt.map((gt,An)=>{const{key:Or,...Zi}=Jt({index:An});return h.jsx(zm,{label:Yi(gt),size:he,...Zi,...Hr.slotProps.chip},Or)})):ee&&pt!=null&&(Ct=ee(pt,Jt,gn)),G>-1&&Array.isArray(Ct)){const gt=Ct.length-G;!ut&>>0&&(Ct=Ct.splice(0,G),Ct.push(h.jsx("span",{className:bn.tag,children:C(gt)},Ct.length)))}const Ck=se||(gt=>h.jsxs("li",{children:[h.jsx(Bj,{className:bn.groupLabel,ownerState:gn,component:"div",children:gt.group}),h.jsx(Vj,{className:bn.groupUl,ownerState:gn,children:gt.children})]},gt.key)),wk=Ie||((gt,An)=>{const{key:Or,...Zi}=gt;return h.jsx("li",{...Zi,children:Yi(An)},Or)}),tg=(gt,An)=>{const Or=ot({option:gt,index:An});return wk({...Or,className:bn.option},gt,{selected:Or["aria-selected"],index:An,inputValue:Ke},gn)};return h.jsxs(b.Fragment,{children:[h.jsx(Ed,{...Xa,children:Ge({id:Re,disabled:w,fullWidth:(ng=r.fullWidth)!=null?ng:!0,size:he==="small"?"small":void 0,InputLabelProps:ct(),InputProps:{ref:Pr,className:bn.inputRoot,startAdornment:Ct,onMouseDown:gt=>{gt.target===gt.currentTarget&&Sd(gt)},...(Ws||Us)&&{endAdornment:h.jsxs(Lj,{className:bn.endAdornment,ownerState:gn,children:[Ws?h.jsx(Ee,{...et,children:d}):null,Us?h.jsx(Xe,{...zt,children:Oe}):null]})}},inputProps:{className:bn.input,disabled:w,readOnly:Ae,...ke()}})}),rn&&ce?h.jsx(Fj,{as:Za,...le,children:h.jsxs(Aj,{as:Pd,...Xi,children:[Y&&as.length===0?h.jsx(Dj,{className:bn.loading,ownerState:gn,children:U}):null,as.length===0&&!L&&!Y?h.jsx(_j,{className:bn.noOptions,ownerState:gn,role:"presentation",onMouseDown:gt=>{gt.preventDefault()},children:Z}):null,as.length>0?h.jsx(Td,{...Id,children:as.map((gt,An)=>_?Ck({key:gt.key,group:gt.group,children:gt.options.map((Or,Zi)=>tg(Or,gt.index+Zi))}):tg(gt,An))}):null]})}):null]})});process.env.NODE_ENV!=="production"&&(Bm.propTypes={autoComplete:s.bool,autoHighlight:s.bool,autoSelect:s.bool,blurOnSelect:s.oneOfType([s.oneOf(["mouse","touch"]),s.bool]),ChipProps:s.object,classes:s.object,className:s.string,clearIcon:s.node,clearOnBlur:s.bool,clearOnEscape:s.bool,clearText:s.string,closeText:s.string,componentsProps:s.shape({clearIndicator:s.object,paper:s.object,popper:s.object,popupIndicator:s.object}),defaultValue:or(s.any,e=>e.multiple&&e.defaultValue!==void 0&&!Array.isArray(e.defaultValue)?new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.",`However, ${e.defaultValue} was provided.`].join(`
|
|
278
|
+
`)):null),disableClearable:s.bool,disableCloseOnSelect:s.bool,disabled:s.bool,disabledItemsFocusable:s.bool,disableListWrap:s.bool,disablePortal:s.bool,filterOptions:s.func,filterSelectedOptions:s.bool,forcePopupIcon:s.oneOfType([s.oneOf(["auto"]),s.bool]),freeSolo:s.bool,fullWidth:s.bool,getLimitTagsText:s.func,getOptionDisabled:s.func,getOptionKey:s.func,getOptionLabel:s.func,groupBy:s.func,handleHomeEndKeys:s.bool,id:s.string,includeInputInList:s.bool,inputValue:s.string,isOptionEqualToValue:s.func,limitTags:Wo,ListboxComponent:s.elementType,ListboxProps:s.object,loading:s.bool,loadingText:s.node,multiple:s.bool,noOptionsText:s.node,onChange:s.func,onClose:s.func,onHighlightChange:s.func,onInputChange:s.func,onKeyDown:s.func,onOpen:s.func,open:s.bool,openOnFocus:s.bool,openText:s.string,options:s.array.isRequired,PaperComponent:s.elementType,PopperComponent:s.elementType,popupIcon:s.node,readOnly:s.bool,renderGroup:s.func,renderInput:s.func.isRequired,renderOption:s.func,renderTags:s.func,renderValue:s.func,selectOnFocus:s.bool,size:s.oneOfType([s.oneOf(["small","medium"]),s.string]),slotProps:s.shape({chip:s.oneOfType([s.func,s.object]),clearIndicator:s.oneOfType([s.func,s.object]),listbox:s.oneOfType([s.func,s.object]),paper:s.oneOfType([s.func,s.object]),popper:s.oneOfType([s.func,s.object]),popupIndicator:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({clearIndicator:s.elementType,listbox:s.elementType,paper:s.elementType,popper:s.elementType,popupIndicator:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:or(s.any,e=>e.multiple&&e.value!==void 0&&!Array.isArray(e.value)?new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.",`However, ${e.value} was provided.`].join(`
|
|
279
|
+
`)):null)});const Hj=Me(h.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 Gj(e){return Ne("MuiAvatar",e)}$e("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Wj=e=>{const{classes:t,variant:n,colorDefault:r}=e;return ye({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Gj,t)},Uj=ne("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(je(({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:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),qj=ne("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Kj=ne(Hj,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function Yj({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=b.useState(!1);return b.useEffect(()=>{if(!n&&!r)return;i(!1);let l=!0;const a=new Image;return a.onload=()=>{l&&i("loaded")},a.onerror=()=>{l&&i("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{l=!1}},[e,t,n,r]),o}const cC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:l,component:a="div",slots:c={},slotProps:u={},imgProps:d,sizes:p,src:m,srcSet:f,variant:y="circular",...g}=r;let v=null;const x={...r,component:a,variant:y},S=Yj({...d,...typeof u.img=="function"?u.img(x):u.img,src:m,srcSet:f}),w=m||f,k=w&&S!=="error";x.colorDefault=!k,delete x.ownerState;const E=Wj(x),[T,N]=He("root",{ref:n,className:ue(E.root,l),elementType:Uj,externalForwardedProps:{slots:c,slotProps:u,component:a,...g},ownerState:x}),[P,O]=He("img",{className:E.img,elementType:qj,externalForwardedProps:{slots:c,slotProps:{img:{...d,...u.img}}},additionalProps:{alt:o,src:m,srcSet:f,sizes:p},ownerState:x}),[L,$]=He("fallback",{className:E.fallback,elementType:Kj,externalForwardedProps:{slots:c,slotProps:u},shouldForwardComponentProp:!0,ownerState:x});return k?v=h.jsx(P,{...O}):i||i===0?v=i:w&&o?v=o[0]:v=h.jsx(L,{...$}),h.jsx(T,{...N,children:v})});process.env.NODE_ENV!=="production"&&(cC.propTypes={alt:s.string,children:s.node,classes:s.object,className:s.string,component:s.elementType,imgProps:s.object,sizes:s.string,slotProps:s.shape({fallback:s.oneOfType([s.func,s.object]),img:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({fallback:s.elementType,img:s.elementType,root:s.elementType}),src:s.string,srcSet:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["circular","rounded","square"]),s.string])});function Xj(e){const{prototype:t={}}=e;return!!t.isReactComponent}function uC(e,t,n,r,o){const i=e[t],l=o||t;if(i==null||typeof window=="undefined")return null;let a;const c=i.type;return typeof c=="function"&&!Xj(c)&&(a="Did you accidentally use a plain function component for an element instead?"),a!==void 0?new Error(`Invalid ${r} \`${l}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const os=or(s.element,uC);os.isRequired=or(s.element.isRequired,uC);const Zj={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Qj={opacity:0,visibility:"hidden"},dC=b.forwardRef(function(t,n){const r=nn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:a,easing:c,in:u,onEnter:d,onEntered:p,onEntering:m,onExit:f,onExited:y,onExiting:g,style:v,timeout:x=o,...S}=t,w=b.useRef(null),k=It(w,ts(a),n),E=xn(w,m),T=xn(w,(C,j)=>{Mm(C);const F=wi({style:v,timeout:x,easing:c},{mode:"enter"});C.style.transition=r.transitions.create("opacity",F),d&&d(C,j)}),N=xn(w,p),P=xn(w,g),O=xn(w,C=>{const j=wi({style:v,timeout:x,easing:c},{mode:"exit"});C.style.transition=r.transitions.create("opacity",j),f&&f(C)}),L=xn(w,C=>{C.style.transition="",y&&y(C)}),$=C=>{i&&i(w.current,C)};return h.jsx(zr,{appear:l,in:u,nodeRef:w,onEnter:T,onEntered:N,onEntering:E,onExit:O,onExited:L,onExiting:P,addEndListener:$,timeout:x,...S,children:(C,{ownerState:j,...F})=>{const M=_x(C,u,Zj,Qj,v,a.props.style);return b.cloneElement(a,{style:M,ref:k,...F})}})});process.env.NODE_ENV!=="production"&&(dC.propTypes={addEndListener:s.func,appear:s.bool,children:os.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function Jj(e){return Ne("MuiBackdrop",e)}$e("MuiBackdrop",["root","invisible"]);const e9=e=>{const{classes:t,invisible:n}=e;return ye({root:["root",n&&"invisible"]},Jj,t)},t9=ne("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({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",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Vm=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:l="div",invisible:a=!1,open:c,components:u={},componentsProps:d={},slotProps:p={},slots:m={},TransitionComponent:f,transitionDuration:y,...g}=r,v={...r,component:l,invisible:a},x=e9(v),S={transition:f,root:u.Root,...m},w={...d,...p},k={component:l,slots:S,slotProps:w},[E,T]=He("root",{elementType:t9,externalForwardedProps:k,className:ue(x.root,i),ownerState:v}),[N,P]=He("transition",{elementType:dC,externalForwardedProps:k,ownerState:v});return h.jsx(N,{in:c,timeout:y,...g,...P,children:h.jsx(E,{"aria-hidden":!0,...T,ref:n,children:o})})});process.env.NODE_ENV!=="production"&&(Vm.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),invisible:s.bool,open:s.bool.isRequired,slotProps:s.shape({root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function n9(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=jm({badgeContent:t,max:r});let l=n;n===!1&&t===0&&!o&&(l=!0);const{badgeContent:a,max:c=r}=l?i:e,u=a&&Number(a)>c?`${c}+`:a;return{badgeContent:a,invisible:l,max:c,displayValue:u}}function r9(e){return Ne("MuiBadge",e)}const o9=$e("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"]),Xd=10,Zd=4,s9=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:l={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${ie(n.vertical)}${ie(n.horizontal)}`,`anchorOrigin${ie(n.vertical)}${ie(n.horizontal)}${ie(o)}`,`overlap${ie(o)}`,t!=="default"&&`color${ie(t)}`]};return ye(a,r9,l)},i9=ne("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),l9=ne("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${ie(n.anchorOrigin.vertical)}${ie(n.anchorOrigin.horizontal)}${ie(n.overlap)}`],n.color!=="default"&&t[`color${ie(n.color)}`],n.invisible&&t.invisible]}})(je(({theme:e})=>({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:Xd*2,lineHeight:1,padding:"0 6px",height:Xd*2,borderRadius:Xd,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(_t(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Zd,height:Zd*2,minWidth:Zd*2,padding:0}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}},{style:({ownerState:t})=>{const{vertical:n,horizontal:r}=t.anchorOrigin,o=t.overlap==="circular"?"14%":0;return{"--Badge-translateX":r==="right"?"50%":"-50%","--Badge-translateY":n==="top"?"-50%":"50%",top:n==="top"?o:"initial",bottom:n==="bottom"?o:"initial",right:r==="right"?o:"initial",left:r==="left"?o:"initial",transform:"scale(1) translate(var(--Badge-translateX), var(--Badge-translateY))",transformOrigin:`${r==="right"?"100%":"0%"} ${n==="top"?"0%":"100%"}`,[`&.${o9.invisible}`]:{transform:"scale(0) translate(var(--Badge-translateX), var(--Badge-translateY))"}}}}]})));function ny(e){var t,n;return{vertical:(t=e==null?void 0:e.vertical)!=null?t:"top",horizontal:(n=e==null?void 0:e.horizontal)!=null?n:"right"}}const pC=b.forwardRef(function(t,n){var K,Y,U,q;const r=ze({props:t,name:"MuiBadge"}),{anchorOrigin:o,className:i,classes:l,component:a,components:c={},componentsProps:u={},children:d,overlap:p="rectangular",color:m="default",invisible:f=!1,max:y=99,badgeContent:g,slots:v,slotProps:x,showZero:S=!1,variant:w="standard",...k}=r,{badgeContent:E,invisible:T,max:N,displayValue:P}=n9({max:y,invisible:f,badgeContent:g,showZero:S}),O=jm({anchorOrigin:ny(o),color:m,overlap:p,variant:w,badgeContent:g}),L=T||E==null&&w!=="dot",{color:$=m,overlap:C=p,anchorOrigin:j,variant:F=w}=L?O:r,M=ny(j),R=F!=="dot"?P:void 0,_={...r,badgeContent:E,invisible:L,max:N,displayValue:R,showZero:S,anchorOrigin:M,color:$,overlap:C,variant:F},V=s9(_),W={slots:{root:(K=v==null?void 0:v.root)!=null?K:c.Root,badge:(Y=v==null?void 0:v.badge)!=null?Y:c.Badge},slotProps:{root:(U=x==null?void 0:x.root)!=null?U:u.root,badge:(q=x==null?void 0:x.badge)!=null?q:u.badge}},[I,D]=He("root",{elementType:i9,externalForwardedProps:{...W,...k},ownerState:_,className:ue(V.root,i),ref:n,additionalProps:{as:a}}),[G,A]=He("badge",{elementType:l9,externalForwardedProps:W,ownerState:_,className:V.badge});return h.jsxs(I,{...D,children:[d,h.jsx(G,{...A,children:R})]})});process.env.NODE_ENV!=="production"&&(pC.propTypes={anchorOrigin:s.shape({horizontal:s.oneOf(["left","right"]),vertical:s.oneOf(["bottom","top"])}),badgeContent:s.node,children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["default","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,components:s.shape({Badge:s.elementType,Root:s.elementType}),componentsProps:s.shape({badge:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),invisible:s.bool,max:s.number,overlap:s.oneOf(["circular","rectangular"]),showZero:s.bool,slotProps:s.shape({badge:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({badge:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["dot","standard"]),s.string])});function a9(e){return Ne("MuiBottomNavigation",e)}$e("MuiBottomNavigation",["root"]);const c9=e=>{const{classes:t}=e;return ye({root:["root"]},a9,t)},u9=ne("div",{name:"MuiBottomNavigation",slot:"Root"})(je(({theme:e})=>({display:"flex",justifyContent:"center",height:56,backgroundColor:(e.vars||e).palette.background.paper}))),fC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiBottomNavigation"}),{children:o,className:i,component:l="div",onChange:a,showLabels:c=!1,value:u,...d}=r,p={...r,component:l,showLabels:c},m=c9(p);return h.jsx(u9,{as:l,className:ue(m.root,i),ref:n,ownerState:p,...d,children:b.Children.map(o,(f,y)=>{if(!b.isValidElement(f))return null;process.env.NODE_ENV!=="production"&&Wu.isFragment(f)&&console.error(["MUI: The BottomNavigation component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
280
|
+
`));const g=f.props.value===void 0?y:f.props.value;return b.cloneElement(f,{selected:g===u,showLabel:f.props.showLabel!==void 0?f.props.showLabel:c,value:g,onChange:a})})})});process.env.NODE_ENV!=="production"&&(fC.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,onChange:s.func,showLabels:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any});const d9=$e("MuiBox",["root"]),p9=Gu(),mt=i4({themeId:no,defaultTheme:p9,defaultClassName:d9.root,generateClassName:Yv.generate});process.env.NODE_ENV!=="production"&&(mt.propTypes={children:s.node,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function f9(e){return Ne("MuiButton",e)}const ds=$e("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","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),mC=b.createContext({});process.env.NODE_ENV!=="production"&&(mC.displayName="ButtonGroupContext");const hC=b.createContext(void 0);process.env.NODE_ENV!=="production"&&(hC.displayName="ButtonGroupButtonContext");const m9=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,loading:l,loadingPosition:a,classes:c}=e,u={root:["root",l&&"loading",i,`${i}${ie(t)}`,`size${ie(o)}`,`${i}Size${ie(o)}`,`color${ie(t)}`,n&&"disableElevation",r&&"fullWidth",l&&`loadingPosition${ie(a)}`],startIcon:["icon","startIcon",`iconSize${ie(o)}`],endIcon:["icon","endIcon",`iconSize${ie(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=ye(u,f9,c);return{...c,...d}},gC=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],h9=ne(ko,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ie(n.color)}`],t[`size${ie(n.size)}`],t[`${n.variant}Size${ie(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(je(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ds.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:r})=>r.startIcon||r.loading&&r.loadingPosition==="start",style:{"&::before":{content:'"\\200b"',width:0,overflow:"hidden"}}},{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${ds.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ds.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${ds.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(_t()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ds.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ds.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${ds.loading}`]:{color:"transparent"}}}]}})),g9=ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ie(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...gC]})),b9=ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ie(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...gC]})),y9=ne("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),ry=ne("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Dr=b.forwardRef(function(t,n){const r=b.useContext(mC),o=b.useContext(hC),i=Ci(r,t),l=ze({props:i,name:"MuiButton"}),{children:a,color:c="primary",component:u="button",className:d,disabled:p=!1,disableElevation:m=!1,disableFocusRipple:f=!1,endIcon:y,focusVisibleClassName:g,fullWidth:v=!1,id:x,loading:S=null,loadingIndicator:w,loadingPosition:k="center",size:E="medium",startIcon:T,type:N,variant:P="text",...O}=l,L=xt(x),$=w!=null?w:h.jsx(Pa,{"aria-labelledby":L,color:"inherit",size:16}),C={...l,color:c,component:u,disabled:p,disableElevation:m,disableFocusRipple:f,fullWidth:v,loading:S,loadingIndicator:$,loadingPosition:k,size:E,type:N,variant:P},j=m9(C),F=(T||S&&k==="start")&&h.jsx(g9,{className:j.startIcon,ownerState:C,children:T||h.jsx(ry,{className:j.loadingIconPlaceholder,ownerState:C})}),M=(y||S&&k==="end")&&h.jsx(b9,{className:j.endIcon,ownerState:C,children:y||h.jsx(ry,{className:j.loadingIconPlaceholder,ownerState:C})}),R=o||"",_=typeof S=="boolean"?h.jsx("span",{className:j.loadingWrapper,style:{display:"contents"},children:S&&h.jsx(y9,{className:j.loadingIndicator,ownerState:C,children:$})}):null,{root:V,...W}=j;return h.jsxs(h9,{ownerState:C,className:ue(r.className,j.root,d,R),component:u,disabled:p||S,focusRipple:!f,focusVisibleClassName:ue(j.focusVisible,g),ref:n,type:N,id:S?L:x,...O,classes:W,children:[F,k!=="end"&&_,a,k==="end"&&_,M]})});process.env.NODE_ENV!=="production"&&(Dr.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","success","error","info","warning"]),s.string]),component:s.elementType,disabled:s.bool,disableElevation:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,endIcon:s.node,focusVisibleClassName:s.string,fullWidth:s.bool,href:s.string,id:s.string,loading:s.bool,loadingIndicator:s.node,loadingPosition:s.oneOf(["center","end","start"]),size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),startIcon:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string]),variant:s.oneOfType([s.oneOf(["contained","outlined","text"]),s.string])});function v9(e){return Ne("PrivateSwitchBase",e)}$e("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const x9=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${ie(o)}`],input:["input"]};return ye(i,v9,t)},C9=ne(ko,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),w9=ne("input",{name:"MuiSwitchBase",shouldForwardProp:On})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Hm=b.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,defaultChecked:l,disabled:a,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:p,inputProps:m,inputRef:f,name:y,onBlur:g,onChange:v,onFocus:x,readOnly:S,required:w=!1,tabIndex:k,type:E,value:T,slots:N={},slotProps:P={},...O}=t,[L,$]=Go({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),C=Vr(),j=Y=>{x&&x(Y),C&&C.onFocus&&C.onFocus(Y)},F=Y=>{g&&g(Y),C&&C.onBlur&&C.onBlur(Y)},M=Y=>{if(Y.nativeEvent.defaultPrevented||S)return;const U=Y.target.checked;$(U),v&&v(Y,U)};let R=a;C&&typeof R=="undefined"&&(R=C.disabled);const _=E==="checkbox"||E==="radio",V={...t,checked:L,disabled:R,disableFocusRipple:c,edge:u},W=x9(V),I={slots:N,slotProps:{input:m,...P}},[D,G]=He("root",{ref:n,elementType:C9,className:W.root,shouldForwardComponentProp:!0,externalForwardedProps:{...I,component:"span",...O},getSlotProps:Y=>({...Y,onFocus:U=>{var q;(q=Y.onFocus)==null||q.call(Y,U),j(U)},onBlur:U=>{var q;(q=Y.onBlur)==null||q.call(Y,U),F(U)}}),ownerState:V,additionalProps:{centerRipple:!0,focusRipple:!c,role:void 0,tabIndex:null}}),[A,K]=He("input",{ref:f,elementType:w9,className:W.input,externalForwardedProps:I,getSlotProps:Y=>({...Y,onChange:U=>{var q;(q=Y.onChange)==null||q.call(Y,U),M(U)}}),ownerState:V,additionalProps:{autoFocus:r,checked:o,defaultChecked:l,disabled:R,id:_?p:void 0,name:y,readOnly:S,required:w,tabIndex:k,type:E,...E==="checkbox"&&T===void 0?{}:{value:T}}});return h.jsxs(D,{...G,children:[h.jsx(A,{...K}),L?i:d]})});process.env.NODE_ENV!=="production"&&(Hm.propTypes={autoFocus:s.bool,checked:s.bool,checkedIcon:s.node.isRequired,classes:s.object,className:s.string,defaultChecked:s.bool,disabled:s.bool,disableFocusRipple:s.bool,edge:s.oneOf(["end","start",!1]),icon:s.node.isRequired,id:s.string,inputProps:s.object,inputRef:Fn,name:s.string,onBlur:s.func,onChange:s.func,onFocus:s.func,readOnly:s.bool,required:s.bool,slotProps:s.shape({input:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({input:s.elementType,root:s.elementType}),sx:s.object,tabIndex:s.oneOfType([s.number,s.string]),type:s.string.isRequired,value:s.any});const S9=Me(h.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"),k9=Me(h.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"),E9=Me(h.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 T9(e){return Ne("MuiCheckbox",e)}const Qd=$e("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),I9=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${ie(r)}`,`size${ie(o)}`]},l=ye(i,T9,t);return{...t,...l}},P9=ne(Hm,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ie(n.size)}`],n.color!=="default"&&t[`color${ie(n.color)}`]]}})(je(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t},style:{[`&.${Qd.checked}, &.${Qd.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Qd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),O9=h.jsx(k9,{}),M9=h.jsx(S9,{}),R9=h.jsx(E9,{}),Ju=b.forwardRef(function(t,n){var N,P,O;const r=ze({props:t,name:"MuiCheckbox"}),{checkedIcon:o=O9,color:i="primary",icon:l=M9,indeterminate:a=!1,indeterminateIcon:c=R9,inputProps:u,size:d="medium",disableRipple:p=!1,className:m,slots:f={},slotProps:y={},...g}=r,v=a?c:l,x=a?c:o,S={...r,disableRipple:p,color:i,indeterminate:a,size:d},w=I9(S),k=(N=y.input)!=null?N:u,[E,T]=He("root",{ref:n,elementType:P9,className:ue(w.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:y,...g},ownerState:S,additionalProps:{type:"checkbox",icon:b.cloneElement(v,{fontSize:(P=v.props.fontSize)!=null?P:d}),checkedIcon:b.cloneElement(x,{fontSize:(O=x.props.fontSize)!=null?O:d}),disableRipple:p,slots:f,slotProps:{input:Fx(typeof k=="function"?k(S):k,{"data-indeterminate":a,"aria-checked":a?"mixed":void 0})}}});return h.jsx(E,{...T,classes:w})});process.env.NODE_ENV!=="production"&&(Ju.propTypes={checked:s.bool,checkedIcon:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["default","primary","secondary","error","info","success","warning"]),s.string]),defaultChecked:s.bool,disabled:s.bool,disableRipple:s.bool,icon:s.node,id:s.string,indeterminate:s.bool,indeterminateIcon:s.node,inputProps:s.object,onChange:s.func,required:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({input:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({input:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any});function oy(e){return e.substring(2).toLowerCase()}function j9(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function na(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,l=b.useRef(!1),a=b.useRef(null),c=b.useRef(!1),u=b.useRef(!1);b.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const d=It(ts(t),a),p=nt(y=>{const g=u.current;u.current=!1;const v=Yt(a.current);if(!c.current||!a.current||"clientX"in y&&j9(y,v))return;if(l.current){l.current=!1;return}let x;y.composedPath?x=y.composedPath().includes(a.current):x=!vo(v.documentElement,y.target)||vo(a.current,y.target),!x&&(n||!g)&&o(y)}),m=y=>g=>{u.current=!0;const v=t.props[y];v&&v(g)},f={ref:d};return i!==!1&&(f[i]=m(i)),b.useEffect(()=>{if(i!==!1){const y=oy(i),g=Yt(a.current),v=()=>{l.current=!0};return g.addEventListener(y,p),g.addEventListener("touchmove",v),()=>{g.removeEventListener(y,p),g.removeEventListener("touchmove",v)}}},[p,i]),r!==!1&&(f[r]=m(r)),b.useEffect(()=>{if(r!==!1){const y=oy(r),g=Yt(a.current);return g.addEventListener(y,p),()=>{g.removeEventListener(y,p)}}},[p,r]),b.cloneElement(t,f)}process.env.NODE_ENV!=="production"&&(na.propTypes={children:os.isRequired,disableReactTree:s.bool,mouseEvent:s.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:s.func.isRequired,touchEvent:s.oneOf(["onTouchEnd","onTouchStart",!1])});process.env.NODE_ENV!=="production"&&(na.propTypes=Ta(na.propTypes));const af=typeof Em({})=="function",L9=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),$9=e=>({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}}),bC=(e,t=!1)=>{var i,l;const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([a,c])=>{var d,p;const u=e.getColorSchemeSelector(a);u.startsWith("@")?n[u]={":root":{colorScheme:(d=c.palette)==null?void 0:d.mode}}:n[u.replace(/\s*&/,"")]={colorScheme:(p=c.palette)==null?void 0:p.mode}});let r={html:L9(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...$9(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=(l=(i=e.components)==null?void 0:i.MuiCssBaseline)==null?void 0:l.styleOverrides;return o&&(r=[r,o]),r},Mc="mui-ecs",N9=e=>{const t=bC(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Mc})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,o])=>{var l,a;const i=e.getColorSchemeSelector(r);i.startsWith("@")?n[i]={[`:root:not(:has(.${Mc}))`]:{colorScheme:(l=o.palette)==null?void 0:l.mode}}:n[i.replace(/\s*&/,"")]={[`&:not(:has(.${Mc}))`]:{colorScheme:(a=o.palette)==null?void 0:a.mode}}}),t},F9=Em(af?({theme:e,enableColorScheme:t})=>bC(e,t):({theme:e})=>N9(e));function yC(e){const t=ze({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return h.jsxs(b.Fragment,{children:[af&&h.jsx(F9,{enableColorScheme:r}),!af&&!r&&h.jsx("span",{className:Mc,style:{display:"none"}}),n]})}process.env.NODE_ENV!=="production"&&(yC.propTypes={children:s.node,enableColorScheme:s.bool});function vC(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function A9(e){const t=Yt(e);return t.body===e?vr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Dl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function sy(e){return parseFloat(vr(e).getComputedStyle(e).paddingRight)||0}function D9(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function iy(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,l=>{const a=!i.includes(l),c=!D9(l);a&&c&&Dl(l,o)})}function Jd(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function _9(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(A9(r)){const l=vC(vr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${sy(r)+l}px`;const a=Yt(r).querySelectorAll(".mui-fixed");[].forEach.call(a,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${sy(c)+l}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Yt(r).body;else{const l=r.parentElement,a=vr(r);i=(l==null?void 0:l.nodeName)==="HTML"&&a.getComputedStyle(l).overflowY==="scroll"?l:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:l,property:a})=>{i?l.style.setProperty(a,i):l.style.removeProperty(a)})}}function z9(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class B9{constructor(){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&&Dl(t.modalRef,!1);const o=z9(n);iy(n,t.mount,t.modalRef,o,!0);const i=Jd(this.containers,l=>l.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Jd(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=_9(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Jd(this.containers,l=>l.modals.includes(t)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Dl(t.modalRef,n),iy(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const l=i.modals[i.modals.length-1];l.modalRef&&Dl(l.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const ly="data-mui-focusable";function V9(e){return e?e.hasAttribute(ly)?e:e.querySelector(`[${ly}]`):null}const H9=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function G9(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 W9(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 U9(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||W9(e))}function q9(e){const t=[],n=[];return Array.from(e.querySelectorAll(H9)).forEach((r,o)=>{const i=G9(r);i===-1||!U9(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function K9(){return!0}function ra(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=q9,isEnabled:l=K9,open:a}=e,c=b.useRef(!1),u=b.useRef(null),d=b.useRef(null),p=b.useRef(null),m=b.useRef(null),f=b.useRef(!1),y=b.useRef(null),g=It(ts(t),y),v=b.useRef(null);b.useEffect(()=>{!a||!y.current||(f.current=!n)},[n,a]),b.useEffect(()=>{var T;if(c.current=!1,!a||!y.current)return;const w=Yt(y.current),k=ui(w),E=(T=V9(y.current))!=null?T:y.current;return vo(y.current,k)||(E.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
281
|
+
`)),E.setAttribute("tabIndex","-1")),f.current&&E.focus()),()=>{o||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[a]),b.useEffect(()=>{if(!a||!y.current)return;const w=Yt(y.current),k=N=>{if(v.current=N,r||!l()||N.key!=="Tab")return;ui(w)===y.current&&N.shiftKey&&(c.current=!0,d.current&&d.current.focus())},E=()=>{var L,$;const N=y.current;if(N===null)return;const P=ui(w);if(!w.hasFocus()||!l()||c.current){c.current=!1;return}if(vo(N,P)||r&&P!==u.current&&P!==d.current)return;if(P!==m.current)m.current=null;else if(m.current!==null)return;if(!f.current)return;let O=[];if((P===u.current||P===d.current)&&(O=i(y.current)),O.length>0){const C=!!((L=v.current)!=null&&L.shiftKey&&(($=v.current)==null?void 0:$.key)==="Tab"),j=O[0],F=O[O.length-1];typeof j!="string"&&typeof F!="string"&&(C?F.focus():j.focus())}else N.focus()};w.addEventListener("focusin",E),w.addEventListener("keydown",k,!0);const T=setInterval(()=>{const N=ui(w);N&&N.tagName==="BODY"&&E()},50);return()=>{clearInterval(T),w.removeEventListener("focusin",E),w.removeEventListener("keydown",k,!0)}},[n,r,o,l,a,i]);const x=w=>{p.current===null&&(p.current=w.relatedTarget),f.current=!0,m.current=w.target;const k=t.props.onFocus;k&&k(w)},S=w=>{p.current===null&&(p.current=w.relatedTarget),f.current=!0};return h.jsxs(b.Fragment,{children:[h.jsx("div",{tabIndex:a?0:-1,onFocus:S,ref:u,"data-testid":"sentinelStart"}),b.cloneElement(t,{ref:g,onFocus:x}),h.jsx("div",{tabIndex:a?0:-1,onFocus:S,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(ra.propTypes={children:os,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired});process.env.NODE_ENV!=="production"&&(ra.propTypes=Ta(ra.propTypes));function Y9(e){return typeof e=="function"?e():e}function X9(e){return e?e.props.hasOwnProperty("in"):!1}const ay=()=>{},mc=new B9;function Z9(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:l,children:a,onClose:c,open:u,rootRef:d}=e,p=b.useRef({}),m=b.useRef(null),f=b.useRef(null),y=It(f,d),[g,v]=b.useState(!u),x=X9(a);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const w=()=>Yt(m.current),k=()=>(p.current.modalRef=f.current,p.current.mount=m.current,p.current),E=()=>{mc.mount(k(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},T=nt(()=>{const M=Y9(t)||w().body;mc.add(k(),M),f.current&&E()}),N=()=>mc.isTopModal(k()),P=nt(M=>{m.current=M,M&&(u&&N()?E():f.current&&Dl(f.current,S))}),O=b.useCallback(()=>{mc.remove(k(),S)},[S]);b.useEffect(()=>()=>{O()},[O]),b.useEffect(()=>{u?T():(!x||!o)&&O()},[u,O,x,o,T]);const L=M=>R=>{var _;(_=M.onKeyDown)==null||_.call(M,R),!(R.key!=="Escape"||R.which===229||!N())&&(n||(R.stopPropagation(),c&&c(R,"escapeKeyDown")))},$=M=>R=>{var _;(_=M.onClick)==null||_.call(M,R),R.target===R.currentTarget&&c&&c(R,"backdropClick")};return{getRootProps:(M={})=>{const R=Vx(e);delete R.onTransitionEnter,delete R.onTransitionExited;const _={...R,...M};return{role:"presentation",..._,onKeyDown:L(_),ref:y}},getBackdropProps:(M={})=>{const R=M;return{"aria-hidden":!0,...R,onClick:$(R),open:u}},getTransitionProps:()=>{var _,V;const M=()=>{v(!1),i&&i()},R=()=>{v(!0),l&&l(),o&&O()};return{onEnter:Bp(M,(_=a==null?void 0:a.props.onEnter)!=null?_:ay),onExited:Bp(R,(V=a==null?void 0:a.props.onExited)!=null?V:ay)}},rootRef:y,portalRef:P,isTopModal:N,exited:g,hasTransition:x}}function Q9(e){return Ne("MuiModal",e)}$e("MuiModal",["root","hidden","backdrop"]);const J9=e=>{const{open:t,exited:n,classes:r}=e;return ye({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Q9,r)},e6=ne("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(je(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),t6=ne(Vm,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),xC=b.forwardRef(function(t,n){const r=ze({name:"MuiModal",props:t}),{BackdropComponent:o=t6,BackdropProps:i,classes:l,className:a,closeAfterTransition:c=!1,children:u,container:d,component:p,components:m={},componentsProps:f={},disableAutoFocus:y=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:v=!1,disablePortal:x=!1,disableRestoreFocus:S=!1,disableScrollLock:w=!1,hideBackdrop:k=!1,keepMounted:E=!1,onClose:T,onTransitionEnter:N,onTransitionExited:P,open:O,slotProps:L={},slots:$={},theme:C,...j}=r,F={...r,closeAfterTransition:c,disableAutoFocus:y,disableEnforceFocus:g,disableEscapeKeyDown:v,disablePortal:x,disableRestoreFocus:S,disableScrollLock:w,hideBackdrop:k,keepMounted:E},{getRootProps:M,getBackdropProps:R,getTransitionProps:_,portalRef:V,isTopModal:W,exited:I,hasTransition:D}=Z9({...F,rootRef:n}),G={...F,exited:I},A=J9(G),K={};if(u.props.tabIndex===void 0&&(K.tabIndex="-1"),D){const{onEnter:Q,onExited:re}=_();K.onEnter=Q,K.onExited=re}const Y={slots:{root:m.Root,backdrop:m.Backdrop,...$},slotProps:{...f,...L}},[U,q]=He("root",{ref:n,elementType:e6,externalForwardedProps:{...Y,...j,component:p},getSlotProps:M,ownerState:G,className:ue(a,A==null?void 0:A.root,!G.open&&G.exited&&(A==null?void 0:A.hidden))}),[Z,X]=He("backdrop",{ref:i==null?void 0:i.ref,elementType:o,externalForwardedProps:Y,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:Q=>R({...Q,onClick:re=>{Q!=null&&Q.onClick&&Q.onClick(re)}}),className:ue(i==null?void 0:i.className,A==null?void 0:A.backdrop),ownerState:G});return!E&&!O&&(!D||I)?null:h.jsx(ta,{ref:V,container:d,disablePortal:x,children:h.jsxs(U,{...q,children:[!k&&o?h.jsx(Z,{...X}):null,h.jsx(ra,{disableEnforceFocus:g,disableAutoFocus:y,disableRestoreFocus:S,isEnabled:W,open:O,children:b.cloneElement(u,K)})]})})});process.env.NODE_ENV!=="production"&&(xC.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:os.isRequired,classes:s.object,className:s.string,closeAfterTransition:s.bool,component:s.elementType,components:s.shape({Backdrop:s.elementType,Root:s.elementType}),componentsProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([xr,s.func]),disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableEscapeKeyDown:s.bool,disablePortal:s.bool,disableRestoreFocus:s.bool,disableScrollLock:s.bool,hideBackdrop:s.bool,keepMounted:s.bool,onClose:s.func,onTransitionEnter:s.func,onTransitionExited:s.func,open:s.bool.isRequired,slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function n6(e){return Ne("MuiDivider",e)}const cy=$e("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),r6=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:l,textAlign:a,variant:c}=e;return ye({root:["root",t&&"absolute",c,i&&"light",l==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&l==="vertical"&&"withChildrenVertical",a==="right"&&l!=="vertical"&&"textAlignRight",a==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},n6,r)},o6=ne("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]}})(je(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),s6=ne("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(je(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Jc=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:l,orientation:a="horizontal",component:c=i||a==="vertical"?"div":"hr",flexItem:u=!1,light:d=!1,role:p=c!=="hr"?"separator":void 0,textAlign:m="center",variant:f="fullWidth",...y}=r,g={...r,absolute:o,component:c,flexItem:u,light:d,orientation:a,role:p,textAlign:m,variant:f},v=r6(g);return h.jsx(o6,{as:c,className:ue(v.root,l),role:p,ref:n,ownerState:g,"aria-orientation":p==="separator"&&(c!=="hr"||a==="vertical")?a:void 0,...y,children:i?h.jsx(s6,{className:v.wrapper,ownerState:g,children:i}):null})});Jc&&(Jc.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(Jc.propTypes={absolute:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,flexItem:s.bool,light:s.bool,orientation:s.oneOf(["horizontal","vertical"]),role:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),textAlign:s.oneOf(["center","left","right"]),variant:s.oneOfType([s.oneOf(["fullWidth","inset","middle"]),s.string])});const i6={visibility:"hidden"};function l6(e,t,n){const r=n&&n.getBoundingClientRect(),o=vr(t),i=t.style.transform,l=t.style.transition;t.style.transition="",t.style.transform="";const a=t.getBoundingClientRect(),u=o.getComputedStyle(t).getPropertyValue("transform");t.style.transform=i,t.style.transition=l;let d=0,p=0;if(u&&u!=="none"&&typeof u=="string"){const m=u.split("(")[1].split(")")[0].split(",");d=parseInt(m[4],10),p=parseInt(m[5],10)}return e==="left"?r?`translateX(${r.right+d-a.left}px)`:`translateX(${o.innerWidth+d-a.left}px)`:e==="right"?r?`translateX(-${a.right-r.left-d}px)`:`translateX(-${a.left+a.width-d}px)`:e==="up"?r?`translateY(${r.bottom+p-a.top}px)`:`translateY(${o.innerHeight+p-a.top}px)`:r?`translateY(-${a.top-r.top+a.height-p}px)`:`translateY(-${a.top+a.height-p}px)`}function CC(e){return typeof e=="function"?e():e}function hc(e,t,n){const r=CC(n),o=l6(e,t,r);o&&(t.style.transform=o)}const wC=b.forwardRef(function(t,n){const r=nn(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:l,appear:a=!0,children:c,container:u,direction:d="down",easing:p=o,in:m,onEnter:f,onEntered:y,onEntering:g,onExit:v,onExited:x,onExiting:S,style:w,timeout:k=i,...E}=t,T=b.useRef(null),N=It(ts(c),T,n),P=xn(T,(R,_)=>{hc(d,R,u),Mm(R),f&&f(R,_)}),O=xn(T,(R,_)=>{const V=wi({timeout:k,style:w,easing:p},{mode:"enter"});R.style.transition=r.transitions.create("transform",V),R.style.transform="none",g&&g(R,_)}),L=xn(T,y),$=xn(T,S),C=xn(T,R=>{const _=wi({timeout:k,style:w,easing:p},{mode:"exit"});R.style.transition=r.transitions.create("transform",_),hc(d,R,u),v&&v(R)}),j=xn(T,R=>{R.style.transition="",x&&x(R)}),F=R=>{l&&l(T.current,R)},M=b.useCallback(()=>{T.current&&hc(d,T.current,u)},[d,u]);return b.useEffect(()=>{if(m||d==="down"||d==="right")return;const R=Tm(()=>{T.current&&hc(d,T.current,u)}),_=vr(T.current);return _.addEventListener("resize",R),()=>{R.clear(),_.removeEventListener("resize",R)}},[d,m,u]),b.useEffect(()=>{m||M()},[m,M]),h.jsx(zr,{nodeRef:T,onEnter:P,onEntered:L,onEntering:O,onExit:C,onExited:j,onExiting:$,addEndListener:F,appear:a,in:m,timeout:k,...E,children:(R,{ownerState:_,...V})=>{let W;return R==="exited"&&!m?W=w||c.props.style?{visibility:"hidden",...w,...c.props.style}:i6:w&&c.props.style?W={...w,...c.props.style}:W=w||c.props.style,b.cloneElement(c,{ref:N,style:W,...V})}})});process.env.NODE_ENV!=="production"&&(wC.propTypes={addEndListener:s.func,appear:s.bool,children:os.isRequired,container:or(s.oneOfType([xr,s.func]),e=>{if(e.open){const t=CC(e.container);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="production"&&Ra()&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `container` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
282
|
+
`))}else if(!t||typeof t.getBoundingClientRect!="function"||t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `container` prop provided to the component is invalid.","It should be an HTML element instance."].join(`
|
|
283
|
+
`))}return null}),direction:s.oneOf(["down","left","right","up"]),easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});const a6=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:l,multiline:a}=e,c={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",i==="small"&&`size${ie(i)}`,l&&"hiddenLabel",a&&"multiline"],input:["input"]},u=ye(c,Oj,t);return{...t,...u}},c6=ne(Zu,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Yu(e,t),!n.disableUnderline&&t.underline]}})(je(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Xn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Xn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:l})=>!l.disableUnderline,style:{"&::after":{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"},[`&.${Xn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xn.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xn.disabled}, .${Xn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Xn.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(_t()).map(([l])=>{var a;return{props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(a=(e.vars||e).palette[l])==null?void 0:a.main}`}}}}),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:a})=>l.multiline&&a==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),u6=ne(Qu,{name:"MuiFilledInput",slot:"Input",overridesResolver:Xu})(je(({theme:e})=>({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"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),ed=b.forwardRef(function(t,n){var E,T,N,P;const r=ze({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:i={},componentsProps:l,fullWidth:a=!1,hiddenLabel:c,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:m={},type:f="text",...y}=r,g={...r,disableUnderline:o,fullWidth:a,inputComponent:u,multiline:d,type:f},v=a6(r),x={root:{ownerState:g},input:{ownerState:g}},S=(p!=null?p:l)?Cn(x,p!=null?p:l):x,w=(T=(E=m.root)!=null?E:i.Root)!=null?T:c6,k=(P=(N=m.input)!=null?N:i.Input)!=null?P:u6;return h.jsx(_s,{slots:{root:w,input:k},slotProps:S,fullWidth:a,inputComponent:u,multiline:d,ref:n,type:f,...y,classes:v})});process.env.NODE_ENV!=="production"&&(ed.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableUnderline:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:Fn,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});ed.muiName="Input";function d6(e){return Ne("MuiFormControl",e)}$e("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const p6=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ie(n)}`,r&&"fullWidth"]};return ye(o,d6,t)},f6=ne("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ie(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),zs=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiFormControl"}),{children:o,className:i,color:l="primary",component:a="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:p=!1,hiddenLabel:m=!1,margin:f="none",required:y=!1,size:g="medium",variant:v="outlined",...x}=r,S={...r,color:l,component:a,disabled:c,error:u,fullWidth:p,hiddenLabel:m,margin:f,required:y,size:g,variant:v},w=p6(S),[k,E]=b.useState(()=>{let R=!1;return o&&b.Children.forEach(o,_=>{if(!Nl(_,["Input","Select"]))return;const V=Nl(_,["Select"])?_.props.input:_;V&&kj(V.props)&&(R=!0)}),R}),[T,N]=b.useState(()=>{let R=!1;return o&&b.Children.forEach(o,_=>{Nl(_,["Input","Select"])&&(Zc(_.props,!0)||Zc(_.props.inputProps,!0))&&(R=!0)}),R}),[P,O]=b.useState(!1);c&&P&&O(!1);const L=d!==void 0&&!c?d:P;let $;const C=b.useRef(!1);process.env.NODE_ENV!=="production"&&($=()=>(C.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
284
|
+
`)),C.current=!0,()=>{C.current=!1}));const j=b.useCallback(()=>{N(!0)},[]),F=b.useCallback(()=>{N(!1)},[]),M=b.useMemo(()=>({adornedStart:k,setAdornedStart:E,color:l,disabled:c,error:u,filled:T,focused:L,fullWidth:p,hiddenLabel:m,size:g,onBlur:()=>{O(!1)},onFocus:()=>{O(!0)},onEmpty:F,onFilled:j,registerEffect:$,required:y,variant:v}),[k,l,c,u,T,L,p,m,$,F,j,y,g,v]);return h.jsx(ja.Provider,{value:M,children:h.jsx(f6,{as:a,ownerState:S,className:ue(w.root,i),ref:n,...x,children:o})})});process.env.NODE_ENV!=="production"&&(zs.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,disabled:s.bool,error:s.bool,focused:s.bool,fullWidth:s.bool,hiddenLabel:s.bool,margin:s.oneOf(["dense","none","normal"]),required:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});function m6(e){return Ne("MuiFormControlLabel",e)}const Tl=$e("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),h6=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,l={root:["root",n&&"disabled",`labelPlacement${ie(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return ye(l,m6,t)},g6=ne("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Tl.label}`]:t.label},t.root,t[`labelPlacement${ie(n.labelPlacement)}`]]}})(je(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Tl.disabled}`]:{cursor:"default"},[`& .${Tl.label}`]:{[`&.${Tl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),b6=ne("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(je(({theme:e})=>({[`&.${Tl.error}`]:{color:(e.vars||e).palette.error.main}}))),oa=b.forwardRef(function(t,n){var M;const r=ze({props:t,name:"MuiFormControlLabel"}),{checked:o,className:i,componentsProps:l={},control:a,disabled:c,disableTypography:u,inputRef:d,label:p,labelPlacement:m="end",name:f,onChange:y,required:g,slots:v={},slotProps:x={},value:S,...w}=r,k=Vr(),E=(M=c!=null?c:a.props.disabled)!=null?M:k==null?void 0:k.disabled,T=g!=null?g:a.props.required,N={disabled:E,required:T};["checked","name","onChange","value","inputRef"].forEach(R=>{typeof a.props[R]=="undefined"&&typeof r[R]!="undefined"&&(N[R]=r[R])});const P=rs({props:r,muiFormControl:k,states:["error"]}),O={...r,disabled:E,labelPlacement:m,required:T,error:P.error},L=h6(O),$={slots:v,slotProps:{...l,...x}},[C,j]=He("typography",{elementType:dt,externalForwardedProps:$,ownerState:O});let F=p;return F!=null&&F.type!==dt&&!u&&(F=h.jsx(C,{component:"span",...j,className:ue(L.label,j==null?void 0:j.className),children:F})),h.jsxs(g6,{className:ue(L.root,i),ownerState:O,ref:n,...w,children:[b.cloneElement(a,N),T?h.jsxs("div",{children:[F,h.jsxs(b6,{ownerState:O,"aria-hidden":!0,className:L.asterisk,children:[" ","*"]})]}):F]})});process.env.NODE_ENV!=="production"&&(oa.propTypes={checked:s.bool,classes:s.object,className:s.string,componentsProps:s.shape({typography:s.object}),control:s.element.isRequired,disabled:s.bool,disableTypography:s.bool,inputRef:Fn,label:s.node,labelPlacement:s.oneOf(["bottom","end","start","top"]),name:s.string,onChange:s.func,required:s.bool,slotProps:s.shape({typography:s.oneOfType([s.func,s.object])}),slots:s.shape({typography:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any});function y6(e){return Ne("MuiFormGroup",e)}$e("MuiFormGroup",["root","row","error"]);const v6=e=>{const{classes:t,row:n,error:r}=e;return ye({root:["root",n&&"row",r&&"error"]},y6,t)},x6=ne("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),SC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1,...l}=r,a=Vr(),c=rs({props:r,muiFormControl:a,states:["error"]}),u={...r,row:i,error:c.error},d=v6(u);return h.jsx(x6,{className:ue(d.root,o),ownerState:u,ref:n,...l})});process.env.NODE_ENV!=="production"&&(SC.propTypes={children:s.node,classes:s.object,className:s.string,row:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function C6(e){return Ne("MuiFormHelperText",e)}const uy=$e("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var dy;const w6=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:l,focused:a,required:c}=e,u={root:["root",o&&"disabled",i&&"error",r&&`size${ie(r)}`,n&&"contained",a&&"focused",l&&"filled",c&&"required"]};return ye(u,C6,t)},S6=ne("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ie(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(je(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${uy.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${uy.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),kC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:l="p",disabled:a,error:c,filled:u,focused:d,margin:p,required:m,variant:f,...y}=r,g=Vr(),v=rs({props:r,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),x={...r,component:l,contained:v.variant==="filled"||v.variant==="outlined",variant:v.variant,size:v.size,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required};delete x.ownerState;const S=w6(x);return h.jsx(S6,{as:l,className:ue(S.root,i),ref:n,...y,ownerState:x,children:o===" "?dy||(dy=h.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):o})});process.env.NODE_ENV!=="production"&&(kC.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disabled:s.bool,error:s.bool,filled:s.bool,focused:s.bool,margin:s.oneOf(["dense"]),required:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["filled","outlined","standard"]),s.string])});function k6(e){return Ne("MuiFormLabel",e)}const _l=$e("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),E6=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:l,required:a}=e,c={root:["root",`color${ie(n)}`,o&&"disabled",i&&"error",l&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return ye(c,k6,t)},T6=ne("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(je(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t},style:{[`&.${_l.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${_l.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${_l.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),I6=ne("span",{name:"MuiFormLabel",slot:"Asterisk"})(je(({theme:e})=>({[`&.${_l.error}`]:{color:(e.vars||e).palette.error.main}}))),Gm=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiFormLabel"}),{children:o,className:i,color:l,component:a="label",disabled:c,error:u,filled:d,focused:p,required:m,...f}=r,y=Vr(),g=rs({props:r,muiFormControl:y,states:["color","required","focused","disabled","error","filled"]}),v={...r,color:g.color||"primary",component:a,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required},x=E6(v);return h.jsxs(T6,{as:a,ownerState:v,className:ue(x.root,i),ref:n,...f,children:[o,g.required&&h.jsxs(I6,{ownerState:v,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Gm.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["error","info","primary","secondary","success","warning"]),s.string]),component:s.elementType,disabled:s.bool,error:s.bool,filled:s.bool,focused:s.bool,required:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function zl(e){return`scale(${e}, ${e**2})`}const P6={entering:{opacity:1,transform:zl(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:zl(.75)},exited:{opacity:0,transform:zl(.75)}},O6={opacity:0,transform:zl(.75),visibility:"hidden"},Oi=b.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:l,in:a,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:m,onExiting:f,style:y,timeout:g="auto",...v}=t,x=Jn(),S=b.useRef(),w=nn(),k=b.useRef(null),E=It(k,ts(i),n),T=xn(k,d),N=xn(k,(j,F)=>{Mm(j);const{duration:M,delay:R,easing:_}=wi({style:y,timeout:g,easing:l},{mode:"enter"});let V;g==="auto"?(V=w.transitions.getAutoHeightDuration(j.clientHeight),S.current=V):V=M,j.style.transition=[w.transitions.create("opacity",{duration:V,delay:R}),w.transitions.create("transform",{duration:V*.666,delay:R,easing:_})].join(","),c&&c(j,F)}),P=xn(k,u),O=xn(k,f),L=xn(k,j=>{const{duration:F,delay:M,easing:R}=wi({style:y,timeout:g,easing:l},{mode:"exit"});let _;g==="auto"?(_=w.transitions.getAutoHeightDuration(j.clientHeight),S.current=_):_=F,j.style.transition=[w.transitions.create("opacity",{duration:_,delay:M}),w.transitions.create("transform",{duration:_*.666,delay:M||_*.333,easing:R})].join(","),j.style.opacity=0,j.style.transform=zl(.75),p&&p(j)}),$=xn(k,j=>{j.style.transition="",m&&m(j)}),C=j=>{g==="auto"&&x.start(S.current||0,j),r&&r(k.current,j)};return h.jsx(zr,{appear:o,in:a,nodeRef:k,onEnter:N,onEntered:P,onEntering:T,onExit:L,onExited:$,onExiting:O,addEndListener:C,timeout:g==="auto"?null:g,...v,children:(j,{ownerState:F,...M})=>{const R=_x(j,a,P6,O6,y,i.props.style);return b.cloneElement(i,{style:R,ref:E,...M})}})});process.env.NODE_ENV!=="production"&&(Oi.propTypes={addEndListener:s.func,appear:s.bool,children:os.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});Oi&&(Oi.muiSupportAuto=!0);const M6=e=>{const{classes:t,disableUnderline:n}=e,o=ye({root:["root",!n&&"underline"],input:["input"]},Ij,t);return{...t,...o}},R6=ne(Zu,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Yu(e,t),!n.disableUnderline&&t.underline]}})(je(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{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"},[`&.${Do.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Do.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Do.disabled}, .${Do.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Do.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(_t()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),j6=ne(Qu,{name:"MuiInput",slot:"Input",overridesResolver:Xu})({}),td=b.forwardRef(function(t,n){var k,E,T,N;const r=ze({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:i={},componentsProps:l,fullWidth:a=!1,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:p={},type:m="text",...f}=r,y=M6(r),v={root:{ownerState:{disableUnderline:o}}},x=(d!=null?d:l)?Cn(d!=null?d:l,v):v,S=(E=(k=p.root)!=null?k:i.Root)!=null?E:R6,w=(N=(T=p.input)!=null?T:i.Input)!=null?N:j6;return h.jsx(_s,{slots:{root:S,input:w},slotProps:x,fullWidth:a,inputComponent:c,multiline:u,ref:n,type:m,...f,classes:y})});process.env.NODE_ENV!=="production"&&(td.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableUnderline:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:Fn,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});td.muiName="Input";function L6(e){return Ne("MuiInputAdornment",e)}const py=$e("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var fy;const $6=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ie(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},N6=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:l}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${ie(o)}`,l,r&&"hiddenLabel",i&&`size${ie(i)}`]};return ye(a,L6,t)},F6=ne("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:$6})(je(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${py.positionStart}&:not(.${py.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),eu=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:l="div",disablePointerEvents:a=!1,disableTypography:c=!1,position:u,variant:d,...p}=r,m=Vr()||{};let f=d;d&&m.variant&&process.env.NODE_ENV!=="production"&&d===m.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),m&&!f&&(f=m.variant);const y={...r,hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:a,position:u,variant:f},g=N6(y);return h.jsx(ja.Provider,{value:null,children:h.jsx(F6,{as:l,ownerState:y,className:ue(g.root,i),ref:n,...p,children:typeof o=="string"&&!c?h.jsx(dt,{color:"textSecondary",children:o}):h.jsxs(b.Fragment,{children:[u==="start"?fy||(fy=h.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,o]})})})});process.env.NODE_ENV!=="production"&&(eu.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disablePointerEvents:s.bool,disableTypography:s.bool,position:s.oneOf(["end","start"]).isRequired,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});function A6(e){return Ne("MuiInputLabel",e)}$e("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const D6=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:l,required:a}=e,c={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="medium"&&`size${ie(r)}`,l],asterisk:[a&&"asterisk"]},u=ye(c,A6,t);return{...t,...u}},_6=ne(Gm,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_l.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]]}})(je(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Wm=b.forwardRef(function(t,n){const r=ze({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:i,shrink:l,variant:a,className:c,...u}=r,d=Vr();let p=l;typeof p=="undefined"&&d&&(p=d.filled||d.focused||d.adornedStart);const m=rs({props:r,muiFormControl:d,states:["size","variant","required","focused"]}),f={...r,disableAnimation:o,formControl:d,shrink:p,size:m.size,variant:m.variant,required:m.required,focused:m.focused},y=D6(f);return h.jsx(_6,{"data-shrink":p,ref:n,className:ue(y.root,c),...u,ownerState:f,classes:y})});process.env.NODE_ENV!=="production"&&(Wm.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["error","info","primary","secondary","success","warning"]),s.string]),disableAnimation:s.bool,disabled:s.bool,error:s.bool,focused:s.bool,margin:s.oneOf(["dense"]),required:s.bool,shrink:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});function z6(e){return Ne("MuiLinearProgress",e)}$e("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const cf=4,uf=_r`
|
|
285
|
+
0% {
|
|
286
|
+
left: -35%;
|
|
287
|
+
right: 100%;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
60% {
|
|
291
|
+
left: 100%;
|
|
292
|
+
right: -90%;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
100% {
|
|
296
|
+
left: 100%;
|
|
297
|
+
right: -90%;
|
|
298
|
+
}
|
|
299
|
+
`,B6=typeof uf!="string"?Jo`
|
|
300
|
+
animation: ${uf} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
301
|
+
`:null,df=_r`
|
|
302
|
+
0% {
|
|
303
|
+
left: -200%;
|
|
304
|
+
right: 100%;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
60% {
|
|
308
|
+
left: 107%;
|
|
309
|
+
right: -8%;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
100% {
|
|
313
|
+
left: 107%;
|
|
314
|
+
right: -8%;
|
|
315
|
+
}
|
|
316
|
+
`,V6=typeof df!="string"?Jo`
|
|
317
|
+
animation: ${df} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
318
|
+
`:null,pf=_r`
|
|
319
|
+
0% {
|
|
320
|
+
opacity: 1;
|
|
321
|
+
background-position: 0 -23px;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
60% {
|
|
325
|
+
opacity: 0;
|
|
326
|
+
background-position: 0 -23px;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
100% {
|
|
330
|
+
opacity: 1;
|
|
331
|
+
background-position: -200px -23px;
|
|
332
|
+
}
|
|
333
|
+
`,H6=typeof pf!="string"?Jo`
|
|
334
|
+
animation: ${pf} 3s infinite linear;
|
|
335
|
+
`:null,G6=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${ie(r)}`,n],dashed:["dashed",`dashedColor${ie(r)}`],bar1:["bar","bar1",`barColor${ie(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${ie(r)}`,n==="buffer"&&`color${ie(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return ye(o,z6,t)},Um=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),W6=ne("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ie(n.color)}`],t[n.variant]]}})(je(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t},style:{backgroundColor:Um(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),U6=ne("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${ie(n.color)}`]]}})(je(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(_t()).map(([t])=>{const n=Um(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),H6||{animation:`${pf} 3s infinite linear`}),q6=ne("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${ie(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(je(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${cf}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${cf}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:B6||{animation:`${uf} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),K6=ne("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${ie(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(je(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:Um(e,t),transition:`transform .${cf}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:V6||{animation:`${df} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),qm=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:l,valueBuffer:a,variant:c="indeterminate",...u}=r,d={...r,color:i,variant:c},p=G6(d),m=Nn(),f={},y={bar1:{},bar2:{}};if(c==="determinate"||c==="buffer")if(l!==void 0){f["aria-valuenow"]=Math.round(l),f["aria-valuemin"]=0,f["aria-valuemax"]=100;let g=l-100;m&&(g=-g),y.bar1.transform=`translateX(${g}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(c==="buffer")if(a!==void 0){let g=(a||0)-100;m&&(g=-g),y.bar2.transform=`translateX(${g}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return h.jsxs(W6,{className:ue(p.root,o),ownerState:d,role:"progressbar",...f,ref:n,...u,children:[c==="buffer"?h.jsx(U6,{className:p.dashed,ownerState:d}):null,h.jsx(q6,{className:p.bar1,ownerState:d,style:y.bar1}),c==="determinate"?null:h.jsx(K6,{className:p.bar2,ownerState:d,style:y.bar2})]})});process.env.NODE_ENV!=="production"&&(qm.propTypes={classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.number,valueBuffer:s.number,variant:s.oneOf(["buffer","determinate","indeterminate","query"])});function Y6(e){return Ne("MuiLink",e)}const X6=$e("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Z6=({theme:e,ownerState:t})=>{const n=t.color;if("colorSpace"in e&&e.colorSpace){const i=Yr(e,`palette.${n}.main`)||Yr(e,`palette.${n}`)||t.color;return e.alpha(i,.4)}const r=Yr(e,`palette.${n}.main`,!1)||Yr(e,`palette.${n}`,!1)||t.color,o=Yr(e,`palette.${n}.mainChannel`)||Yr(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:fr(r,.4)},my={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Q6=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${ie(o)}`,n==="button"&&"button",r&&"focusVisible"]};return ye(i,Y6,t)},J6=ne(dt,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ie(n.underline)}`],n.component==="button"&&t.button]}})(je(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color==="inherit",style:e.colorSpace?{textDecorationColor:e.alpha("currentColor",.4)}:null},...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{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"},[`&.${X6.focusVisible}`]:{outline:"auto"}}}]}))),EC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiLink"}),o=nn(),{className:i,color:l="primary",component:a="a",onBlur:c,onFocus:u,TypographyClasses:d,underline:p="always",variant:m="inherit",sx:f,...y}=r,[g,v]=b.useState(!1),x=E=>{ki(E.target)||v(!1),c&&c(E)},S=E=>{ki(E.target)&&v(!0),u&&u(E)},w={...r,color:l,component:a,focusVisible:g,underline:p,variant:m},k=Q6(w);return h.jsx(J6,{color:l,className:ue(k.root,i),classes:d,component:a,onBlur:x,onFocus:S,ref:n,ownerState:w,variant:m,...y,sx:[...my[l]===void 0?[{color:l}]:[],...Array.isArray(f)?f:[f]],style:{...y.style,...p==="always"&&l!=="inherit"&&!my[l]&&{"--Link-underlineColor":Z6({theme:o,ownerState:w})}}})});process.env.NODE_ENV!=="production"&&(EC.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),s.string]),component:Ia,onBlur:s.func,onFocus:s.func,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TypographyClasses:s.object,underline:s.oneOf(["always","hover","none"]),variant:s.oneOfType([s.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string])});const oo=b.createContext({});process.env.NODE_ENV!=="production"&&(oo.displayName="ListContext");function eL(e){return Ne("MuiList",e)}$e("MuiList",["root","padding","dense","subheader"]);const tL=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ye({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},eL,t)},nL=ne("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]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),tu=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiList"}),{children:o,className:i,component:l="ul",dense:a=!1,disablePadding:c=!1,subheader:u,...d}=r,p=b.useMemo(()=>({dense:a}),[a]),m={...r,component:l,dense:a,disablePadding:c},f=tL(m);return h.jsx(oo.Provider,{value:p,children:h.jsxs(nL,{as:l,className:ue(f.root,i),ref:n,ownerState:m,...d,children:[u,o]})})});process.env.NODE_ENV!=="production"&&(tu.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function rL(e){return Ne("MuiListItem",e)}$e("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const oL=$e("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function sL(e){return Ne("MuiListItemSecondaryAction",e)}$e("MuiListItemSecondaryAction",["root","disableGutters"]);const iL=e=>{const{disableGutters:t,classes:n}=e;return ye({root:["root",t&&"disableGutters"]},sL,n)},lL=ne("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Km=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,l=b.useContext(oo),a={...r,disableGutters:l.disableGutters},c=iL(a);return h.jsx(lL,{className:ue(c.root,o),ownerState:a,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Km.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});Km.muiName="ListItemSecondaryAction";const aL=(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.hasSecondaryAction&&t.secondaryAction]},cL=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:l,hasSecondaryAction:a}=e;return ye({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",l&&"divider",t==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},rL,n)},uL=ne("div",{name:"MuiListItem",slot:"Root",overridesResolver:aL})(je(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${oL.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{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"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),dL=ne("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),TC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiListItem"}),{alignItems:o="center",children:i,className:l,component:a,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p,...m}={},dense:f=!1,disableGutters:y=!1,disablePadding:g=!1,divider:v=!1,secondaryAction:x,slotProps:S={},slots:w={},...k}=r,E=b.useContext(oo),T=b.useMemo(()=>({dense:f||E.dense||!1,alignItems:o,disableGutters:y}),[o,E.dense,f,y]),N=b.useRef(null),P=b.Children.toArray(i),O=P.length&&Nl(P[P.length-1],["ListItemSecondaryAction"]),L={...r,alignItems:o,dense:T.dense,disableGutters:y,disablePadding:g,divider:v,hasSecondaryAction:O},$=cL(L),C=It(N,n),j={slots:w,slotProps:S},[F,M]=He("secondaryAction",{elementType:Km,externalForwardedProps:j,ownerState:L,className:$.secondaryAction}),R=w.root||c.Root||uL,_=S.root||u.root||{},V={className:ue($.root,_.className,l),...k};let W=a||"li";return O?(W=!V.component&&!a?"div":W,d==="li"&&(W==="li"?W="div":V.component==="li"&&(V.component="div")),h.jsx(oo.Provider,{value:T,children:h.jsxs(dL,{as:d,className:ue($.container,p),ref:C,ownerState:L,...m,children:[h.jsx(R,{..._,...!Si(R)&&{as:W,ownerState:{...L,..._.ownerState}},...V,children:P}),P.pop()]})})):h.jsx(oo.Provider,{value:T,children:h.jsxs(R,{..._,as:W,ref:C,...!Si(R)&&{ownerState:{...L,..._.ownerState}},...V,children:[P,x&&h.jsx(F,{...M,children:x})]})})});process.env.NODE_ENV!=="production"&&(TC.propTypes={alignItems:s.oneOf(["center","flex-start"]),children:or(s.node,e=>{const t=b.Children.toArray(e.children);let n=-1;for(let r=t.length-1;r>=0;r-=1){const o=t[r];if(Nl(o,["ListItemSecondaryAction"])){n=r;break}}return n!==-1&&n!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),ContainerComponent:Ia,ContainerProps:s.object,dense:s.bool,disableGutters:s.bool,disablePadding:s.bool,divider:s.bool,secondaryAction:s.node,slotProps:s.shape({root:s.object,secondaryAction:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType,secondaryAction:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function pL(e){return Ne("MuiListItemIcon",e)}const hy=$e("MuiListItemIcon",["root","alignItemsFlexStart"]),fL=e=>{const{alignItems:t,classes:n}=e;return ye({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},pL,n)},mL=ne("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(je(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),ks=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiListItemIcon"}),{className:o,...i}=r,l=b.useContext(oo),a={...r,alignItems:l.alignItems},c=fL(a);return h.jsx(mL,{className:ue(c.root,o),ownerState:a,ref:n,...i})});process.env.NODE_ENV!=="production"&&(ks.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function hL(e){return Ne("MuiListItemText",e)}const di=$e("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),gL=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return ye({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},hL,t)},bL=ne("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${di.primary}`]:t.primary},{[`& .${di.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${jb.root}:where(& .${di.primary})`]:{display:"block"},[`.${jb.root}:where(& .${di.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Es=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:l=!1,inset:a=!1,primary:c,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:p,slots:m={},slotProps:f={},...y}=r,{dense:g}=b.useContext(oo);let v=c!=null?c:o,x=d;const S={...r,disableTypography:l,inset:a,primary:!!v,secondary:!!x,dense:g},w=gL(S),k={slots:m,slotProps:{primary:u,secondary:p,...f}},[E,T]=He("root",{className:ue(w.root,i),elementType:bL,externalForwardedProps:{...k,...y},ownerState:S,ref:n}),[N,P]=He("primary",{className:w.primary,elementType:dt,externalForwardedProps:k,ownerState:S}),[O,L]=He("secondary",{className:w.secondary,elementType:dt,externalForwardedProps:k,ownerState:S});return v!=null&&v.type!==dt&&!l&&(v=h.jsx(N,{variant:g?"body2":"body1",component:P!=null&&P.variant?void 0:"span",...P,children:v})),x!=null&&x.type!==dt&&!l&&(x=h.jsx(O,{variant:"body2",color:"textSecondary",...L,children:x})),h.jsxs(E,{...T,children:[v,x]})});process.env.NODE_ENV!=="production"&&(Es.propTypes={children:s.node,classes:s.object,className:s.string,disableTypography:s.bool,inset:s.bool,primary:s.node,primaryTypographyProps:s.object,secondary:s.node,secondaryTypographyProps:s.object,slotProps:s.shape({primary:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),secondary:s.oneOfType([s.func,s.object])}),slots:s.shape({primary:s.elementType,root:s.elementType,secondary:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function ep(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function gy(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function IC(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.startsWith(t.keys.join(""))}function sl(e,t,n,r,o,i){let l=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(l)return!1;l=!0}const c=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!IC(a,i)||c)a=o(e,a,n);else return a.focus(),!0}return!1}const La=b.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:l,className:a,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:p="selectedMenu",...m}=t,f=b.useRef(null),y=b.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Rt(()=>{o&&f.current.focus()},[o]),b.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,{direction:k})=>{const E=!f.current.style.width;if(w.clientHeight<f.current.clientHeight&&E){const T=`${vC(vr(w))}px`;f.current.style[k==="rtl"?"paddingLeft":"paddingRight"]=T,f.current.style.width=`calc(100% + ${T})`}return f.current}}),[]);const g=w=>{const k=f.current,E=w.key;if(w.ctrlKey||w.metaKey||w.altKey){d&&d(w);return}const N=ui(Yt(k));if(E==="ArrowDown")w.preventDefault(),sl(k,N,u,c,ep);else if(E==="ArrowUp")w.preventDefault(),sl(k,N,u,c,gy);else if(E==="Home")w.preventDefault(),sl(k,null,u,c,ep);else if(E==="End")w.preventDefault(),sl(k,null,u,c,gy);else if(E.length===1){const P=y.current,O=E.toLowerCase(),L=performance.now();P.keys.length>0&&(L-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&O!==P.keys[0]&&(P.repeating=!1)),P.lastTime=L,P.keys.push(O);const $=N&&!P.repeating&&IC(N,P);P.previousKeyMatched&&($||sl(k,N,!1,c,ep,P))?w.preventDefault():P.previousKeyMatched=!1}d&&d(w)},v=It(f,n);let x=-1;b.Children.forEach(l,(w,k)=>{if(!b.isValidElement(w)){x===k&&(x+=1,x>=l.length&&(x=-1));return}process.env.NODE_ENV!=="production"&&Wu.isFragment(w)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
336
|
+
`)),w.props.disabled||(p==="selectedMenu"&&w.props.selected||x===-1)&&(x=k),x===k&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(x+=1,x>=l.length&&(x=-1))});const S=b.Children.map(l,(w,k)=>{if(k===x){const E={};return i&&(E.autoFocus=!0),w.props.tabIndex===void 0&&p==="selectedMenu"&&(E.tabIndex=0),b.cloneElement(w,E)}return w});return h.jsx(tu,{role:"menu",ref:v,className:a,onKeyDown:g,tabIndex:o?0:-1,...m,children:S})});process.env.NODE_ENV!=="production"&&(La.propTypes={autoFocus:s.bool,autoFocusItem:s.bool,children:s.node,className:s.string,disabledItemsFocusable:s.bool,disableListWrap:s.bool,onKeyDown:s.func,variant:s.oneOf(["menu","selectedMenu"])});function yL(e){return Ne("MuiPopover",e)}$e("MuiPopover",["root","paper"]);function by(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function yy(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function vy(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Il(e){return typeof e=="function"?e():e}const vL=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"]},yL,t)},xL=ne(xC,{name:"MuiPopover",slot:"Root"})({}),PC=ne(Br,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),OC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:c="anchorEl",children:u,className:d,container:p,elevation:m=8,marginThreshold:f=16,open:y,PaperProps:g={},slots:v={},slotProps:x={},transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w,transitionDuration:k="auto",TransitionProps:E={},disableScrollLock:T=!1,...N}=r,P=b.useRef(),O={...r,anchorOrigin:l,anchorReference:c,elevation:m,marginThreshold:f,transformOrigin:S,TransitionComponent:w,transitionDuration:k,TransitionProps:E},L=vL(O),$=b.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(a||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),a;const Q=Il(i),re=Q&&Q.nodeType===1?Q:Yt(P.current).body,J=re.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const oe=re.getBoundingClientRect();Ra()&&oe.top===0&&oe.left===0&&oe.right===0&&oe.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
337
|
+
`))}return{top:J.top+by(J,l.vertical),left:J.left+yy(J,l.horizontal)}},[i,l.horizontal,l.vertical,a,c]),C=b.useCallback(Q=>({vertical:by(Q,S.vertical),horizontal:yy(Q,S.horizontal)}),[S.horizontal,S.vertical]),j=b.useCallback(Q=>{const re={width:Q.offsetWidth,height:Q.offsetHeight},J=C(re);if(c==="none")return{top:null,left:null,transformOrigin:vy(J)};const oe=$();let te=oe.top-J.vertical,fe=oe.left-J.horizontal;const ve=te+re.height,Ce=fe+re.width,xe=vr(Il(i)),Se=xe.innerHeight-f,Oe=xe.innerWidth-f;if(f!==null&&te<f){const Ae=te-f;te-=Ae,J.vertical+=Ae}else if(f!==null&&ve>Se){const Ae=ve-Se;te-=Ae,J.vertical+=Ae}if(process.env.NODE_ENV!=="production"&&re.height>Se&&re.height&&Se&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${re.height-Se}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
338
|
+
`)),f!==null&&fe<f){const Ae=fe-f;fe-=Ae,J.horizontal+=Ae}else if(Ce>Oe){const Ae=Ce-Oe;fe-=Ae,J.horizontal+=Ae}return{top:`${Math.round(te)}px`,left:`${Math.round(fe)}px`,transformOrigin:vy(J)}},[i,c,$,C,f]),[F,M]=b.useState(y),R=b.useCallback(()=>{const Q=P.current;if(!Q)return;const re=j(Q);re.top!==null&&Q.style.setProperty("top",re.top),re.left!==null&&(Q.style.left=re.left),Q.style.transformOrigin=re.transformOrigin,M(!0)},[j]);b.useEffect(()=>(T&&window.addEventListener("scroll",R),()=>window.removeEventListener("scroll",R)),[i,T,R]);const _=()=>{R()},V=()=>{M(!1)};b.useEffect(()=>{y&&R()}),b.useImperativeHandle(o,()=>y?{updatePosition:()=>{R()}}:null,[y,R]),b.useEffect(()=>{if(!y)return;const Q=Tm(()=>{R()}),re=vr(Il(i));return re.addEventListener("resize",Q),()=>{Q.clear(),re.removeEventListener("resize",Q)}},[i,y,R]);let W=k;const I={slots:{transition:w,...v},slotProps:{transition:E,paper:g,...x}},[D,G]=He("transition",{elementType:Oi,externalForwardedProps:I,ownerState:O,getSlotProps:Q=>({...Q,onEntering:(re,J)=>{var oe;(oe=Q.onEntering)==null||oe.call(Q,re,J),_()},onExited:re=>{var J;(J=Q.onExited)==null||J.call(Q,re),V()}}),additionalProps:{appear:!0,in:y}});k==="auto"&&!D.muiSupportAuto&&(W=void 0);const A=p||(i?Yt(Il(i)).body:void 0),[K,{slots:Y,slotProps:U,...q}]=He("root",{ref:n,elementType:xL,externalForwardedProps:{...I,...N},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:v.backdrop},slotProps:{backdrop:Fx(typeof x.backdrop=="function"?x.backdrop(O):x.backdrop,{invisible:!0})},container:A,open:y},ownerState:O,className:ue(L.root,d)}),[Z,X]=He("paper",{ref:P,className:L.paper,elementType:PC,externalForwardedProps:I,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:F?void 0:{opacity:0}},ownerState:O});return h.jsx(K,{...q,...!Si(K)&&{slots:Y,slotProps:U,disableScrollLock:T},children:h.jsx(D,{...G,timeout:W,children:h.jsx(Z,{...X,children:u})})})});process.env.NODE_ENV!=="production"&&(OC.propTypes={action:Fn,anchorEl:or(s.oneOfType([xr,s.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Il(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="production"&&Ra()&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
339
|
+
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
340
|
+
`))}return null}),anchorOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),anchorPosition:s.shape({left:s.number.isRequired,top:s.number.isRequired}),anchorReference:s.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,container:s.oneOfType([xr,s.func]),disableScrollLock:s.bool,elevation:Wo,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:Ia}),slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,paper:s.elementType,root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transformOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});function CL(e){return Ne("MuiMenu",e)}$e("MuiMenu",["root","paper","list"]);const wL={vertical:"top",horizontal:"right"},SL={vertical:"top",horizontal:"left"},kL=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"],list:["list"]},CL,t)},EL=ne(OC,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),TL=ne(PC,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),IL=ne(La,{name:"MuiMenu",slot:"List"})({outline:0}),Ym=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:l,disableAutoFocusItem:a=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:p={},PopoverClasses:m,transitionDuration:f="auto",TransitionProps:{onEntering:y,...g}={},variant:v="selectedMenu",slots:x={},slotProps:S={},...w}=r,k=Nn(),E={...r,autoFocus:o,disableAutoFocusItem:a,MenuListProps:c,onEntering:y,PaperProps:p,transitionDuration:f,TransitionProps:g,variant:v},T=kL(E),N=o&&!a&&d,P=b.useRef(null),O=(W,I)=>{P.current&&P.current.adjustStyleForScrollbar(W,{direction:k?"rtl":"ltr"}),y&&y(W,I)},L=W=>{W.key==="Tab"&&(W.preventDefault(),u&&u(W,"tabKeyDown"))};let $=-1;b.Children.map(i,(W,I)=>{b.isValidElement(W)&&(process.env.NODE_ENV!=="production"&&Wu.isFragment(W)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
341
|
+
`)),W.props.disabled||(v==="selectedMenu"&&W.props.selected||$===-1)&&($=I))});const C={slots:x,slotProps:{list:c,transition:g,paper:p,...S}},j=sC({elementType:x.root,externalSlotProps:S.root,ownerState:E,className:[T.root,l]}),[F,M]=He("paper",{className:T.paper,elementType:TL,externalForwardedProps:C,shouldForwardComponentProp:!0,ownerState:E}),[R,_]=He("list",{className:ue(T.list,c.className),elementType:IL,shouldForwardComponentProp:!0,externalForwardedProps:C,getSlotProps:W=>({...W,onKeyDown:I=>{var D;L(I),(D=W.onKeyDown)==null||D.call(W,I)}}),ownerState:E}),V=typeof C.slotProps.transition=="function"?C.slotProps.transition(E):C.slotProps.transition;return h.jsx(EL,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?wL:SL,slots:{root:x.root,paper:F,backdrop:x.backdrop,...x.transition&&{transition:x.transition}},slotProps:{root:j,paper:M,backdrop:typeof S.backdrop=="function"?S.backdrop(E):S.backdrop,transition:{...V,onEntering:(...W)=>{var I;O(...W),(I=V==null?void 0:V.onEntering)==null||I.call(V,...W)}}},open:d,ref:n,transitionDuration:f,ownerState:E,...w,classes:m,children:h.jsx(R,{actions:P,autoFocus:o&&($===-1||a),autoFocusItem:N,variant:v,..._,children:i})})});process.env.NODE_ENV!=="production"&&(Ym.propTypes={anchorEl:s.oneOfType([xr,s.func]),autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,disableAutoFocusItem:s.bool,MenuListProps:s.object,onClose:s.func,open:s.bool.isRequired,PaperProps:s.object,PopoverClasses:s.object,slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),list:s.oneOfType([s.func,s.object]),paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,list:s.elementType,paper:s.elementType,root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object,variant:s.oneOf(["menu","selectedMenu"])});function PL(e){return Ne("MuiMenuItem",e)}const il=$e("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);function OL(e){return Ne("MuiNativeSelect",e)}const Xm=$e("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ML=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:l}=e,a={select:["select",n,r&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${ie(n)}`,i&&"iconOpen",r&&"disabled"]};return ye(a,OL,t)},MC=ne("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Xm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),RL=ne(MC,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:On,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Xm.multiple}`]:t.multiple}]}})({}),RC=ne("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Xm.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),jL=ne(RC,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ie(n.variant)}`],n.open&&t.iconOpen]}})({}),jC=b.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:l,inputRef:a,variant:c="standard",...u}=t,d={...t,disabled:o,variant:c,error:i},p=ML(d);return h.jsxs(b.Fragment,{children:[h.jsx(RL,{ownerState:d,className:ue(p.select,r),disabled:o,ref:a||n,...u}),t.multiple?null:h.jsx(jL,{as:l,ownerState:d,className:p.icon})]})});process.env.NODE_ENV!=="production"&&(jC.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:Fn,multiple:s.bool,name:s.string,onChange:s.func,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});function LC(e){return Ne("MuiSelect",e)}const ll=$e("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);function LL(e){return e?e.type==="mousedown"||e.type==="pointerdown"||e.type==="touchstart"?"pointer":e.type==="keydown"||e.type==="click"&&e.detail===0?"keyboard":null:null}function $L(e){return e==null||typeof e=="string"&&!e.trim()}function xy(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const Zm=b.createContext(null);process.env.NODE_ENV!=="production"&&(Zm.displayName="SelectFocusSourceContext");function NL(){return b.useContext(Zm)}const FL=Zm.Provider;var Cy;const AL=ne(MC,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ll.select}`]:t.select},{[`&.${ll.select}`]:t[n.variant]},{[`&.${ll.error}`]:t.error},{[`&.${ll.multiple}`]:t.multiple}]}})({[`&.${ll.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),DL=ne(RC,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ie(n.variant)}`],n.open&&t.iconOpen]}})({}),_L=ne("input",{shouldForwardProp:e=>Nx(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"}),zL=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:l}=e,a={select:["select",n,r&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${ie(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ye(a,LC,t)},$C=b.forwardRef(function(t,n){var ot,pt,mn,qn;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:l,children:a,className:c,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:m,error:f=!1,IconComponent:y,inputRef:g,labelId:v,MenuProps:x={},multiple:S,name:w,onBlur:k,onChange:E,onClose:T,onFocus:N,onKeyDown:P,onMouseDown:O,onOpen:L,open:$,readOnly:C,renderValue:j,required:F,SelectDisplayProps:M={},tabIndex:R,type:_,value:V,variant:W="standard",...I}=t,[D,G]=Go({controlled:V,default:d,name:"Select"}),[A,K]=Go({controlled:$,default:u,name:"Select"}),Y=b.useRef(null),U=b.useRef(null),[q,Z]=b.useState(null),{current:X}=b.useRef($!=null),[Q,re]=b.useState(),[J,oe]=b.useState(null),te=It(n,g),fe=b.useCallback(Re=>{U.current=Re,Re&&Z(Re)},[]),ve=q==null?void 0:q.parentNode;b.useImperativeHandle(te,()=>({focus:()=>{U.current.focus()},node:Y.current,value:D}),[D]);const Ce=q!==null&&A;b.useEffect(()=>{if(!Ce||!ve||l||typeof ResizeObserver=="undefined")return;const Re=new ResizeObserver(()=>{re(ve.clientWidth)});return Re.observe(ve),()=>{Re.disconnect()}},[Ce,ve,l]),b.useEffect(()=>{u&&A&&q&&!X&&(re(l?null:ve.clientWidth),U.current.focus())},[q,l]),b.useEffect(()=>{i&&U.current.focus()},[i]),b.useEffect(()=>{if(!v)return;const Re=Yt(U.current).getElementById(v);if(Re){const We=()=>{getSelection().isCollapsed&&U.current.focus()};return Re.addEventListener("click",We),()=>{Re.removeEventListener("click",We)}}},[v]);const xe=(Re,We)=>{Re?(oe(LL(We)),L&&L(We)):(oe(null),T&&T(We)),X||(re(l?null:ve.clientWidth),K(Re))},Se=Re=>{O==null||O(Re),Re.button===0&&(Re.preventDefault(),U.current.focus(),xe(!0,Re))},Oe=Re=>{xe(!1,Re)},Ae=b.Children.toArray(a),se=Re=>{const We=Ae.find(ut=>ut.props.value===Re.target.value);We!==void 0&&(G(We.props.value),E&&E(Re,We))},Ge=Re=>We=>{let ut;if(We.currentTarget.hasAttribute("tabindex")){if(S){ut=Array.isArray(D)?D.slice():[];const hn=D.indexOf(Re.props.value);hn===-1?ut.push(Re.props.value):ut.splice(hn,1)}else ut=Re.props.value;if(Re.props.onClick&&Re.props.onClick(We),D!==ut&&(G(ut),E)){const hn=We.nativeEvent||We,rn=new hn.constructor(hn.type,hn);Object.defineProperty(rn,"target",{writable:!0,value:{value:ut,name:w}}),E(rn,Re)}S||xe(!1,We)}},Ie=Re=>{C||([" ","ArrowUp","ArrowDown","Enter"].includes(Re.key)&&(Re.preventDefault(),xe(!0,Re)),P==null||P(Re))},Ye=Re=>{!Ce&&k&&(Object.defineProperty(Re,"target",{writable:!0,value:{value:D,name:w}}),k(Re))};delete I["aria-invalid"];let ee,de;const he=[];let ae=!1,ge=!1;(Zc({value:D})||m)&&(j?ee=j(D):ae=!0);const be=Ae.map(Re=>{if(!b.isValidElement(Re))return null;process.env.NODE_ENV!=="production"&&Wu.isFragment(Re)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
342
|
+
`));let We;if(S){if(!Array.isArray(D))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":So(2));We=D.some(ut=>xy(ut,Re.props.value)),We&&ae&&he.push(Re.props.children)}else We=xy(D,Re.props.value),We&&ae&&(de=Re.props.children);return We&&(ge=!0),b.cloneElement(Re,{"aria-selected":We?"true":"false",onClick:Ge(Re),onKeyUp:ut=>{ut.key===" "&&ut.preventDefault(),Re.props.onKeyUp&&Re.props.onKeyUp(ut)},role:"option",selected:We,value:void 0,"data-value":Re.props.value})});process.env.NODE_ENV!=="production"&&b.useEffect(()=>{if(!ge&&!S&&D!==""){const Re=Ae.map(We=>We.props.value);console.warn([`MUI: You have provided an out-of-range value \`${D}\` for the select ${w?`(name="${w}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${Re.filter(We=>We!=null).map(We=>`\`${We}\``).join(", ")||'""'}.`].join(`
|
|
343
|
+
`))}},[ge,Ae,S,w,D]),ae&&(S?he.length===0?ee=null:ee=he.reduce((Re,We,ut)=>(Re.push(We),ut<he.length-1&&Re.push(", "),Re),[]):ee=de);let Te=Q;!l&&X&&q&&(Te=ve.clientWidth);let _e;typeof R!="undefined"?_e=R:_e=p?null:0;const ke=M.id||(w?`mui-component-select-${w}`:void 0),ct={...t,variant:W,value:D,open:Ce,error:f},it=zL(ct),Pt={...x.PaperProps,...typeof((ot=x.slotProps)==null?void 0:ot.paper)=="function"?x.slotProps.paper(ct):(pt=x.slotProps)==null?void 0:pt.paper},qe={...x.MenuListProps,...typeof((mn=x.slotProps)==null?void 0:mn.list)=="function"?x.slotProps.list(ct):(qn=x.slotProps)==null?void 0:qn.list},Ve=xt();return h.jsxs(b.Fragment,{children:[h.jsx(AL,{as:"div",ref:fe,tabIndex:_e,role:"combobox","aria-controls":Ce?Ve:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":Ce?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[v,ke].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":F?"true":void 0,"aria-invalid":f?"true":void 0,onKeyDown:Ie,onMouseDown:p||C?null:Se,onBlur:Ye,onFocus:N,...M,ownerState:ct,className:ue(M.className,it.select,c),id:ke,children:$L(ee)?Cy||(Cy=h.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):ee}),h.jsx(_L,{"aria-invalid":f,value:Array.isArray(D)?D.join(","):D,name:w,ref:Y,"aria-hidden":!0,onChange:se,tabIndex:-1,disabled:p,className:it.nativeInput,autoFocus:i,required:F,...I,ownerState:ct}),h.jsx(DL,{as:y,className:it.icon,ownerState:ct}),h.jsx(FL,{value:J,children:h.jsx(Ym,{id:`menu-${w||""}`,anchorEl:ve,open:Ce,onClose:Oe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...x,slotProps:{...x.slotProps,list:{"aria-labelledby":v,role:"listbox","aria-multiselectable":S?"true":void 0,disableListWrap:!0,id:Ve,...qe},paper:{...Pt,style:{minWidth:Te,...Pt!=null?Pt.style:null}}},children:be})})]})});process.env.NODE_ENV!=="production"&&($C.propTypes={"aria-describedby":s.string,"aria-label":s.string,autoFocus:s.bool,autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,disabled:s.bool,displayEmpty:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:Fn,labelId:s.string,MenuProps:s.object,multiple:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClose:s.func,onFocus:s.func,onOpen:s.func,open:s.bool,readOnly:s.bool,renderValue:s.func,required:s.bool,SelectDisplayProps:s.object,tabIndex:s.oneOfType([s.number,s.string]),type:s.any,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});var wy;const BL=ne("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:On})({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%"}),VL=ne("legend",{name:"MuiNotchedOutlined",shouldForwardProp:On})(je(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function NC(e){const{children:t,classes:n,className:r,label:o,notched:i,...l}=e,a=o!=null&&o!=="",c={...e,notched:i,withLabel:a};return h.jsx(BL,{"aria-hidden":!0,className:r,ownerState:c,...l,children:h.jsx(VL,{ownerState:c,children:a?h.jsx("span",{children:o}):wy||(wy=h.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(NC.propTypes={children:s.node,classes:s.object,className:s.string,label:s.node,notched:s.bool.isRequired,style:s.object});const HL=e=>{const{classes:t}=e,r=ye({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Pj,t);return{...t,...r}},GL=ne(Zu,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Yu})(je(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ar.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ar.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${ar.focused} .${ar.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(_t()).map(([n])=>({props:{color:n},style:{[`&.${ar.focused} .${ar.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${ar.error} .${ar.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ar.disabled} .${ar.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),WL=ne(NC,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(je(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),UL=ne(Qu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Xu})(je(({theme:e})=>({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"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),nd=b.forwardRef(function(t,n){var T,N,P,O;const r=ze({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:i=!1,inputComponent:l="input",label:a,multiline:c=!1,notched:u,slots:d={},slotProps:p={},type:m="text",...f}=r,y=HL(r),g=Vr(),v=rs({props:r,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x={...r,color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:g,fullWidth:i,hiddenLabel:v.hiddenLabel,multiline:c,size:v.size,type:m},S=(N=(T=d.root)!=null?T:o.Root)!=null?N:GL,w=(O=(P=d.input)!=null?P:o.Input)!=null?O:UL,[k,E]=He("notchedOutline",{elementType:WL,className:y.notchedOutline,shouldForwardComponentProp:!0,ownerState:x,externalForwardedProps:{slots:d,slotProps:p},additionalProps:{label:a!=null&&a!==""&&v.required?h.jsxs(b.Fragment,{children:[a," ","*"]}):a}});return h.jsx(_s,{slots:{root:S,input:w},slotProps:p,renderSuffix:L=>h.jsx(k,{...E,notched:typeof u!="undefined"?u:!!(L.startAdornment||L.filled||L.focused)}),fullWidth:i,inputComponent:l,multiline:c,ref:n,type:m,...f,classes:{...y,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(nd.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),defaultValue:s.any,disabled:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:Fn,label:s.node,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,notched:s.bool,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,notchedOutline:s.oneOfType([s.func,s.object]),root:s.object}),slots:s.shape({input:s.elementType,notchedOutline:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});nd.muiName="Input";const qL=e=>{const{classes:t}=e,r=ye({root:["root"]},LC,t);return{...t,...r}},Qm={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>On(e)&&e!=="variant"},KL=ne(td,Qm)(""),YL=ne(nd,Qm)(""),XL=ne(ed,Qm)(""),Bs=b.forwardRef(function(t,n){const r=ze({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:l={},className:a,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=aC,id:p,input:m,inputProps:f,label:y,labelId:g,MenuProps:v,multiple:x=!1,native:S=!1,onClose:w,onOpen:k,open:E,renderValue:T,SelectDisplayProps:N,variant:P="outlined",...O}=r,L=S?jC:$C,$=Vr(),C=rs({props:r,muiFormControl:$,states:["variant","error"]}),j=C.variant||P,F={...r,variant:j,classes:l},M=qL(F),{root:R,..._}=M,V=m||{standard:h.jsx(KL,{ownerState:F}),outlined:h.jsx(YL,{label:y,ownerState:F}),filled:h.jsx(XL,{ownerState:F})}[j],W=It(n,ts(V));return h.jsx(b.Fragment,{children:b.cloneElement(V,{inputComponent:L,inputProps:{children:i,error:C.error,IconComponent:d,variant:j,type:void 0,multiple:x,...S?{id:p}:{autoWidth:o,defaultOpen:c,displayEmpty:u,labelId:g,MenuProps:v,onClose:w,onOpen:k,open:E,renderValue:T,SelectDisplayProps:{id:p,...N}},...f,classes:f?Cn(_,f.classes):_,...m?m.props.inputProps:{}},...(x&&S||u)&&j==="outlined"?{notched:!0}:{},ref:W,className:ue(V.props.className,a,M.root),...!m&&{variant:j},...O})})});process.env.NODE_ENV!=="production"&&(Bs.propTypes={autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,displayEmpty:s.bool,IconComponent:s.elementType,id:s.string,input:s.element,inputProps:s.object,label:s.node,labelId:s.string,MenuProps:s.object,multiple:s.bool,native:s.bool,onChange:s.func,onClose:s.func,onOpen:s.func,open:s.bool,renderValue:s.func,SelectDisplayProps:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.oneOfType([s.oneOf([""]),s.any]),variant:s.oneOf(["filled","outlined","standard"])});Bs.muiName="Select";function ZL(e,t){if(t==null){e.focus();return}try{e.focus({focusVisible:t==="keyboard"})}catch(n){e.focus()}}const QL=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},JL=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:l}=e,c=ye({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},PL,l);return{...l,...c}},e$=ne(ko,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:QL})(je(({theme:e})=>({...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","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${il.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${il.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${il.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${il.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${il.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${cy.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${cy.inset}`]:{marginLeft:52},[`& .${di.root}`]:{marginTop:0,marginBottom:0},[`& .${di.inset}`]:{paddingLeft:36},[`& .${hy.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${hy.root} svg`]:{fontSize:"1.25rem"}}}]}))),Vn=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:l=!1,divider:a=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:p,className:m,...f}=r,y=NL(),g=b.useContext(oo),v=b.useMemo(()=>({dense:l||g.dense||!1,disableGutters:c}),[g.dense,l,c]),x=b.useRef(null);Rt(()=>{o&&(x.current?ZL(x.current,y):process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[o]);const S={...r,dense:v.dense,divider:a,disableGutters:c},w=JL(r),k=It(x,n),{root:E,...T}=w;let N;return r.disabled||(N=p!==void 0?p:-1),h.jsx(oo.Provider,{value:v,children:h.jsx(e$,{ref:k,role:d,tabIndex:N,component:i,focusVisibleClassName:ue(w.focusVisible,u),className:ue(w.root,m),...f,ownerState:S,classes:T})})});process.env.NODE_ENV!=="production"&&(Vn.propTypes={autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disabled:s.bool,disableGutters:s.bool,divider:s.bool,focusVisibleClassName:s.string,role:s.string,selected:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number});const t$=Me(h.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),n$=Me(h.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),r$=Me(h.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"),o$=Me(h.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"),s$=ne("span",{name:"MuiRadioButtonIcon",shouldForwardProp:On})({position:"relative",display:"flex"}),i$=ne(r$,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),l$=ne(o$,{name:"MuiRadioButtonIcon"})(je(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function Jm(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o={...e,checked:t};return h.jsxs(s$,{className:n.root,ownerState:o,children:[h.jsx(i$,{fontSize:r,className:n.background,ownerState:o}),h.jsx(l$,{fontSize:r,className:n.dot,ownerState:o})]})}process.env.NODE_ENV!=="production"&&(Jm.propTypes={checked:s.bool,classes:s.object,fontSize:s.oneOf(["small","medium"])});const eh=b.createContext(void 0);process.env.NODE_ENV!=="production"&&(eh.displayName="RadioGroupContext");function a$(){return b.useContext(eh)}function c$(e){return Ne("MuiRadio",e)}const Sy=$e("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),u$=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${ie(n)}`,r!=="medium"&&`size${ie(r)}`]};return{...t,...ye(o,c$,t)}},d$=ne(Hm,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${ie(n.size)}`],t[`color${ie(n.color)}`]]}})(je(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Sy.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Sy.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function p$(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const f$=h.jsx(Jm,{checked:!0}),m$=h.jsx(Jm,{}),th=b.forwardRef(function(t,n){var j,F,M;const r=ze({props:t,name:"MuiRadio"}),{checked:o,checkedIcon:i=f$,color:l="primary",icon:a=m$,name:c,onChange:u,size:d="medium",className:p,disabled:m,disableRipple:f=!1,slots:y={},slotProps:g={},inputProps:v,...x}=r,S=Vr();let w=m;S&&typeof w=="undefined"&&(w=S.disabled),w!=null||(w=!1);const k={...r,disabled:w,disableRipple:f,color:l,size:d},E=u$(k),T=a$();let N=o;const P=Bp(u,T&&T.onChange);let O=c;T&&(typeof N=="undefined"&&(N=p$(T.value,r.value)),typeof O=="undefined"&&(O=T.name));const L=(j=g.input)!=null?j:v,[$,C]=He("root",{ref:n,elementType:d$,className:ue(E.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:g,...x},getSlotProps:R=>({...R,onChange:(_,...V)=>{var W;(W=R.onChange)==null||W.call(R,_,...V),P(_,...V)}}),ownerState:k,additionalProps:{type:"radio",icon:b.cloneElement(a,{fontSize:(F=a.props.fontSize)!=null?F:d}),checkedIcon:b.cloneElement(i,{fontSize:(M=i.props.fontSize)!=null?M:d}),disabled:w,name:O,checked:N,slots:y,slotProps:{input:typeof L=="function"?L(k):L}}});return h.jsx($,{...C,classes:E})});process.env.NODE_ENV!=="production"&&(th.propTypes={checked:s.bool,checkedIcon:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["default","primary","secondary","error","info","success","warning"]),s.string]),disabled:s.bool,disableRipple:s.bool,icon:s.node,id:s.string,inputProps:s.object,inputRef:Fn,name:s.string,onChange:s.func,required:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({input:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({input:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any});function h$(e){return Ne("MuiRadioGroup",e)}$e("MuiRadioGroup",["root","row","error"]);const g$=e=>{const{classes:t,row:n,error:r}=e;return ye({root:["root",n&&"row",r&&"error"]},h$,t)},nh=b.forwardRef(function(t,n){const{actions:r,children:o,className:i,defaultValue:l,name:a,onChange:c,value:u,...d}=t,p=b.useRef(null),m=g$(t),[f,y]=Go({controlled:u,default:l,name:"RadioGroup"});b.useImperativeHandle(r,()=>({focus:()=>{let S=p.current.querySelector("input:not(:disabled):checked");S||(S=p.current.querySelector("input:not(:disabled)")),S&&S.focus()}}),[]);const g=It(n,p),v=xt(a),x=b.useMemo(()=>({name:v,onChange(S){y(S.target.value),c&&c(S,S.target.value)},value:f}),[v,c,y,f]);return h.jsx(eh.Provider,{value:x,children:h.jsx(SC,{role:"radiogroup",ref:g,className:ue(m.root,i),...d,children:o})})});process.env.NODE_ENV!=="production"&&(nh.propTypes={children:s.node,className:s.string,defaultValue:s.any,name:s.string,onChange:s.func,value:s.any});function b$(e){return Ne("MuiSkeleton",e)}$e("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const y$=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:l}=e;return ye({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!l&&"heightAuto"]},b$,t)},ff=_r`
|
|
344
|
+
0% {
|
|
345
|
+
opacity: 1;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
50% {
|
|
349
|
+
opacity: 0.4;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
100% {
|
|
353
|
+
opacity: 1;
|
|
354
|
+
}
|
|
355
|
+
`,mf=_r`
|
|
356
|
+
0% {
|
|
357
|
+
transform: translateX(-100%);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
50% {
|
|
361
|
+
/* +0.5s of delay between each loop */
|
|
362
|
+
transform: translateX(100%);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
100% {
|
|
366
|
+
transform: translateX(100%);
|
|
367
|
+
}
|
|
368
|
+
`,v$=typeof ff!="string"?Jo`
|
|
369
|
+
animation: ${ff} 2s ease-in-out 0.5s infinite;
|
|
370
|
+
`:null,x$=typeof mf!="string"?Jo`
|
|
371
|
+
&::after {
|
|
372
|
+
animation: ${mf} 2s linear 0.5s infinite;
|
|
373
|
+
}
|
|
374
|
+
`:null,C$=ne("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]}})(je(({theme:e})=>{const t=NM(e.shape.borderRadius)||"px",n=FM(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:v$||{animation:`${ff} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
|
|
375
|
+
90deg,
|
|
376
|
+
transparent,
|
|
377
|
+
${(e.vars||e).palette.action.hover},
|
|
378
|
+
transparent
|
|
379
|
+
)`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:x$||{"&::after":{animation:`${mf} 2s linear 0.5s infinite`}}}]}})),FC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:l="span",height:a,style:c,variant:u="text",width:d,...p}=r,m={...r,animation:o,component:l,variant:u,hasChildren:!!p.children},f=y$(m);return h.jsx(C$,{as:l,ref:n,className:ue(f.root,i),ownerState:m,...p,style:{width:d,height:a,...c}})});process.env.NODE_ENV!=="production"&&(FC.propTypes={animation:s.oneOf(["pulse","wave",!1]),children:s.node,classes:s.object,className:s.string,component:s.elementType,height:s.oneOfType([s.number,s.string]),style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["circular","rectangular","rounded","text"]),s.string]),width:s.oneOfType([s.number,s.string])});function w$(e){return Ne("MuiTooltip",e)}const Kt=$e("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function S$(e){return Math.round(e*1e5)/1e5}const k$=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,l={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${ie(i.split("-")[0])}`],arrow:["arrow"]};return ye(l,w$,t)},E$=ne(ns,{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]}})(je(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Kt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Kt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Kt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Kt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Kt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Kt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Kt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Kt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),T$=ne("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${ie(n.placement.split("-")[0])}`]]}})(je(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(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,[`.${Kt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Kt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Kt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Kt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${S$(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Kt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Kt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Kt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Kt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Kt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Kt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Kt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Kt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Kt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Kt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),I$=ne("span",{name:"MuiTooltip",slot:"Arrow"})(je(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let gc=!1;const ky=new Uu;let al={x:0,y:0};function bc(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const sa=b.forwardRef(function(t,n){var hn,rn,Pr;const r=ze({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:l,components:a={},componentsProps:c={},describeChild:u=!1,disableFocusListener:d=!1,disableHoverListener:p=!1,disableInteractive:m=!1,disableTouchListener:f=!1,enterDelay:y=100,enterNextDelay:g=0,enterTouchDelay:v=700,followCursor:x=!1,id:S,leaveDelay:w=0,leaveTouchDelay:k=1500,onClose:E,onOpen:T,open:N,placement:P="bottom",PopperComponent:O,PopperProps:L={},slotProps:$={},slots:C={},title:j,TransitionComponent:F,TransitionProps:M,...R}=r,_=b.isValidElement(i)?i:h.jsx("span",{children:i}),V=nn(),W=Nn(),[I,D]=b.useState(),[G,A]=b.useState(null),K=b.useRef(!1),Y=m||x,U=Jn(),q=Jn(),Z=Jn(),X=Jn(),[Q,re]=Go({controlled:N,default:!1,name:"Tooltip",state:"open"});let J=Q;if(process.env.NODE_ENV!=="production"){const{current:Ke}=b.useRef(N!==void 0);b.useEffect(()=>{I&&I.disabled&&!Ke&&j!==""&&I.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
380
|
+
`))},[j,I,Ke])}const oe=xt(S),te=b.useRef(),fe=nt(()=>{te.current!==void 0&&(document.body.style.WebkitUserSelect=te.current,te.current=void 0),X.clear()});b.useEffect(()=>fe,[fe]);const ve=Ke=>{ky.clear(),gc=!0,re(!0),T&&!J&&T(Ke)},Ce=nt(Ke=>{ky.start(800+w,()=>{gc=!1}),re(!1),E&&J&&E(Ke),U.start(V.transitions.duration.shortest,()=>{K.current=!1})}),xe=Ke=>{K.current&&Ke.type!=="touchstart"||(I&&I.removeAttribute("title"),q.clear(),Z.clear(),y||gc&&g?q.start(gc?g:y,()=>{ve(Ke)}):ve(Ke))},Se=Ke=>{q.clear(),Z.start(w,()=>{Ce(Ke)})},[,Oe]=b.useState(!1),Ae=Ke=>{var Rn;const vt=(Rn=Ke==null?void 0:Ke.target)!=null?Rn:I;if(!vt||!ki(vt)){Oe(!1);const wn=Ke!=null?Ke:new Event("blur");!Ke&&vt&&(Object.defineProperty(wn,"target",{value:vt}),Object.defineProperty(wn,"currentTarget",{value:vt})),Se(wn)}},se=Ke=>{I||D(Ke.currentTarget),ki(Ke.target)&&(Oe(!0),xe(Ke))},Ge=Ke=>{K.current=!0;const vt=_.props;vt.onTouchStart&&vt.onTouchStart(Ke)},Ie=Ke=>{Ge(Ke),Z.clear(),U.clear(),fe(),te.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",X.start(v,()=>{document.body.style.WebkitUserSelect=te.current,xe(Ke)})},Ye=Ke=>{_.props.onTouchEnd&&_.props.onTouchEnd(Ke),fe(),Z.start(k,()=>{Ce(Ke)})};b.useEffect(()=>{if(!J)return;function Ke(vt){vt.key==="Escape"&&Ce(vt)}return document.addEventListener("keydown",Ke),()=>{document.removeEventListener("keydown",Ke)}},[Ce,J]);const ee=It(ts(_),D,n);!j&&j!==0&&(J=!1);const de=b.useRef(),he=Ke=>{const vt=_.props;vt.onMouseMove&&vt.onMouseMove(Ke),al={x:Ke.clientX,y:Ke.clientY},de.current&&de.current.update()},ae={},ge=typeof j=="string";u?(ae.title=!J&&ge&&!p?j:null,ae["aria-describedby"]=J?oe:null):(ae["aria-label"]=ge?j:null,ae["aria-labelledby"]=J&&!ge?oe:null);const be={...ae,...R,..._.props,className:ue(R.className,_.props.className),onTouchStart:Ge,ref:ee,...x?{onMouseMove:he}:{}};process.env.NODE_ENV!=="production"&&(be["data-mui-internal-clone-element"]=!0,b.useEffect(()=>{I&&!I.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
381
|
+
`))},[I]));const Te={};f||(be.onTouchStart=Ie,be.onTouchEnd=Ye),p||(be.onMouseOver=bc(xe,be.onMouseOver),be.onMouseLeave=bc(Se,be.onMouseLeave),Y||(Te.onMouseOver=xe,Te.onMouseLeave=Se)),d||(be.onFocus=bc(se,be.onFocus),be.onBlur=bc(Ae,be.onBlur),Y||(Te.onFocus=se,Te.onBlur=Ae)),process.env.NODE_ENV!=="production"&&_.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${_.props.title}\` or the Tooltip component.`].join(`
|
|
382
|
+
`));const _e={...r,isRtl:W,arrow:o,disableInteractive:Y,placement:P,PopperComponentProp:O,touch:K.current},ke=typeof $.popper=="function"?$.popper(_e):$.popper,ct=b.useMemo(()=>{var vt,Rn;let Ke=[{name:"arrow",enabled:!!G,options:{element:G,padding:4}}];return(vt=L.popperOptions)!=null&&vt.modifiers&&(Ke=Ke.concat(L.popperOptions.modifiers)),(Rn=ke==null?void 0:ke.popperOptions)!=null&&Rn.modifiers&&(Ke=Ke.concat(ke.popperOptions.modifiers)),{...L.popperOptions,...ke==null?void 0:ke.popperOptions,modifiers:Ke}},[G,L.popperOptions,ke==null?void 0:ke.popperOptions]),it=k$(_e),Pt=typeof $.transition=="function"?$.transition(_e):$.transition,qe={slots:{popper:a.Popper,transition:(hn=a.Transition)!=null?hn:F,tooltip:a.Tooltip,arrow:a.Arrow,...C},slotProps:{arrow:(rn=$.arrow)!=null?rn:c.arrow,popper:{...L,...ke!=null?ke:c.popper},tooltip:(Pr=$.tooltip)!=null?Pr:c.tooltip,transition:{...M,...Pt!=null?Pt:c.transition}}},[Ve,ot]=He("popper",{elementType:E$,externalForwardedProps:qe,ownerState:_e,className:ue(it.popper,L==null?void 0:L.className)}),[pt,mn]=He("transition",{elementType:Oi,externalForwardedProps:qe,ownerState:_e}),[qn,Re]=He("tooltip",{elementType:T$,className:it.tooltip,externalForwardedProps:qe,ownerState:_e}),[We,ut]=He("arrow",{elementType:I$,className:it.arrow,externalForwardedProps:qe,ownerState:_e,ref:A});return h.jsxs(b.Fragment,{children:[b.cloneElement(_,be),h.jsx(Ve,{as:O!=null?O:ns,placement:P,anchorEl:x?{getBoundingClientRect:()=>({top:al.y,left:al.x,right:al.x,bottom:al.y,width:0,height:0})}:I,popperRef:de,open:I?J:!1,id:oe,transition:!0,...Te,...ot,popperOptions:ct,children:({TransitionProps:Ke})=>h.jsx(pt,{timeout:V.transitions.duration.shorter,...Ke,...mn,children:h.jsxs(qn,{...Re,children:[j,o?h.jsx(We,{...ut}):null]})})})]})});process.env.NODE_ENV!=="production"&&(sa.propTypes={arrow:s.bool,children:os.isRequired,classes:s.object,className:s.string,components:s.shape({Arrow:s.elementType,Popper:s.elementType,Tooltip:s.elementType,Transition:s.elementType}),componentsProps:s.shape({arrow:s.object,popper:s.object,tooltip:s.object,transition:s.object}),describeChild:s.bool,disableFocusListener:s.bool,disableHoverListener:s.bool,disableInteractive:s.bool,disableTouchListener:s.bool,enterDelay:s.number,enterNextDelay:s.number,enterTouchDelay:s.number,followCursor:s.bool,id:s.string,leaveDelay:s.number,leaveTouchDelay:s.number,onClose:s.func,onOpen:s.func,open:s.bool,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:s.elementType,PopperProps:s.object,slotProps:s.shape({arrow:s.oneOfType([s.func,s.object]),popper:s.oneOfType([s.func,s.object]),tooltip:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({arrow:s.elementType,popper:s.elementType,tooltip:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),title:s.node,TransitionComponent:s.elementType,TransitionProps:s.object});const hf=X4({createStyledComponent:ne("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>ze({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(hf.propTypes={children:s.node,component:s.elementType,direction:s.oneOfType([s.oneOf(["column-reverse","column","row-reverse","row"]),s.arrayOf(s.oneOf(["column-reverse","column","row-reverse","row"])),s.object]),divider:s.node,spacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),useFlexGap:s.bool});const $a=b.createContext({});process.env.NODE_ENV!=="production"&&($a.displayName="StepperContext");const rd=b.createContext({});process.env.NODE_ENV!=="production"&&(rd.displayName="StepContext");function P$(e){return Ne("MuiStep",e)}$e("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const O$=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return ye({root:["root",n,r&&"alternativeLabel",o&&"completed"]},P$,t)},M$=ne("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({variants:[{props:{orientation:"horizontal"},style:{paddingLeft:8,paddingRight:8}},{props:{alternativeLabel:!0},style:{flex:1,position:"relative"}}]}),AC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiStep"}),{active:o,children:i,className:l,component:a="div",completed:c,disabled:u,expanded:d=!1,index:p,last:m,...f}=r,{activeStep:y,connector:g,alternativeLabel:v,orientation:x,nonLinear:S}=b.useContext($a);let[w=!1,k=!1,E=!1]=[o,c,u];y===p?w=o!==void 0?o:!0:!S&&y>p?k=c!==void 0?c:!0:!S&&y<p&&(E=u!==void 0?u:!0);const T=b.useMemo(()=>({index:p,last:m,expanded:d,icon:p+1,active:w,completed:k,disabled:E}),[p,m,d,w,k,E]),N={...r,active:w,orientation:x,alternativeLabel:v,completed:k,disabled:E,expanded:d,component:a},P=O$(N),O=h.jsxs(M$,{as:a,className:ue(P.root,l),ref:n,ownerState:N,...f,children:[g&&v&&p!==0?g:null,i]});return h.jsx(rd.Provider,{value:T,children:g&&!v&&p!==0?h.jsxs(b.Fragment,{children:[g,O]}):O})});process.env.NODE_ENV!=="production"&&(AC.propTypes={active:s.bool,children:s.node,classes:s.object,className:s.string,completed:s.bool,component:s.elementType,disabled:s.bool,expanded:s.bool,index:Wo,last:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const R$=Me(h.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),j$=Me(h.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function L$(e){return Ne("MuiStepIcon",e)}const tp=$e("MuiStepIcon",["root","active","completed","error","text"]);var Ey;const $$=e=>{const{classes:t,active:n,completed:r,error:o}=e;return ye({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},L$,t)},np=ne(Ms,{name:"MuiStepIcon",slot:"Root"})(je(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${tp.completed}, &.${tp.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${tp.error}`]:{color:(e.vars||e).palette.error.main}}))),N$=ne("text",{name:"MuiStepIcon",slot:"Text"})(je(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),DC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiStepIcon"}),{active:o=!1,className:i,completed:l=!1,error:a=!1,icon:c,...u}=r,d={...r,active:o,completed:l,error:a},p=$$(d);if(typeof c=="number"||typeof c=="string"){const m=ue(i,p.root);return a?h.jsx(np,{as:j$,className:m,ref:n,ownerState:d,...u}):l?h.jsx(np,{as:R$,className:m,ref:n,ownerState:d,...u}):h.jsxs(np,{className:m,ref:n,ownerState:d,...u,children:[Ey||(Ey=h.jsx("circle",{cx:"12",cy:"12",r:"12"})),h.jsx(N$,{className:p.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:d,children:c})]})}return c});process.env.NODE_ENV!=="production"&&(DC.propTypes={active:s.bool,classes:s.object,className:s.string,completed:s.bool,error:s.bool,icon:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function F$(e){return Ne("MuiStepLabel",e)}const Bo=$e("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),A$=e=>{const{classes:t,orientation:n,active:r,completed:o,error:i,disabled:l,alternativeLabel:a}=e;return ye({root:["root",n,i&&"error",l&&"disabled",a&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",i&&"error",l&&"disabled",a&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",i&&"error",l&&"disabled",a&&"alternativeLabel"],labelContainer:["labelContainer",a&&"alternativeLabel"]},F$,t)},D$=ne("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})({display:"flex",alignItems:"center",[`&.${Bo.alternativeLabel}`]:{flexDirection:"column"},[`&.${Bo.disabled}`]:{cursor:"default"},variants:[{props:{orientation:"vertical"},style:{textAlign:"left",padding:"8px 0"}}]}),_$=ne("span",{name:"MuiStepLabel",slot:"Label"})(je(({theme:e})=>({...e.typography.body2,display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${Bo.active}, &.${Bo.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Bo.alternativeLabel}`]:{marginTop:16},[`&.${Bo.error}`]:{color:(e.vars||e).palette.error.main}}))),z$=ne("span",{name:"MuiStepLabel",slot:"IconContainer"})({flexShrink:0,display:"flex",paddingRight:8,[`&.${Bo.alternativeLabel}`]:{paddingRight:0}}),B$=ne("span",{name:"MuiStepLabel",slot:"LabelContainer"})(je(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${Bo.alternativeLabel}`]:{textAlign:"center"}}))),rh=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiStepLabel"}),{children:o,className:i,componentsProps:l={},error:a=!1,icon:c,optional:u,slots:d={},slotProps:p={},StepIconComponent:m,StepIconProps:f,...y}=r,{alternativeLabel:g,orientation:v}=b.useContext($a),{active:x,disabled:S,completed:w,icon:k}=b.useContext(rd),E=c||k;let T=m;E&&!T&&(T=DC);const N={...r,active:x,alternativeLabel:g,completed:w,disabled:S,error:a,orientation:v},P=A$(N),O={slots:d,slotProps:{stepIcon:f,...l,...p}},[L,$]=He("root",{elementType:D$,externalForwardedProps:{...O,...y},ownerState:N,ref:n,className:ue(P.root,i)}),[C,j]=He("label",{elementType:_$,externalForwardedProps:O,ownerState:N}),[F,M]=He("stepIcon",{elementType:T,externalForwardedProps:O,ownerState:N});return h.jsxs(L,{...$,children:[E||F?h.jsx(z$,{className:P.iconContainer,ownerState:N,children:h.jsx(F,{completed:w,active:x,error:a,icon:E,...M})}):null,h.jsxs(B$,{className:P.labelContainer,ownerState:N,children:[o?h.jsx(C,{...j,className:ue(P.label,j==null?void 0:j.className),children:o}):null,u]})]})});process.env.NODE_ENV!=="production"&&(rh.propTypes={children:s.node,classes:s.object,className:s.string,componentsProps:s.shape({label:s.object}),error:s.bool,icon:s.node,optional:s.node,slotProps:s.shape({label:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),stepIcon:s.oneOfType([s.func,s.object])}),slots:s.shape({label:s.elementType,root:s.elementType,stepIcon:s.elementType}),StepIconComponent:s.elementType,StepIconProps:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});rh.muiName="StepLabel";function V$(e){return Ne("MuiStepConnector",e)}$e("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const H$=e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:i,disabled:l}=e,a={root:["root",n,r&&"alternativeLabel",o&&"active",i&&"completed",l&&"disabled"],line:["line",`line${ie(n)}`]};return ye(a,V$,t)},G$=ne("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({flex:"1 1 auto",variants:[{props:{orientation:"vertical"},style:{marginLeft:12}},{props:{alternativeLabel:!0},style:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}}]}),W$=ne("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${ie(n.orientation)}`]]}})(je(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600];return{display:"block",borderColor:e.vars?e.vars.palette.StepConnector.border:t,variants:[{props:{orientation:"horizontal"},style:{borderTopStyle:"solid",borderTopWidth:1}},{props:{orientation:"vertical"},style:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}]}})),_C=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiStepConnector"}),{className:o,...i}=r,{alternativeLabel:l,orientation:a="horizontal"}=b.useContext($a),{active:c,disabled:u,completed:d}=b.useContext(rd),p={...r,alternativeLabel:l,orientation:a,active:c,completed:d,disabled:u},m=H$(p);return h.jsx(G$,{className:ue(m.root,o),ref:n,ownerState:p,...i,children:h.jsx(W$,{className:m.line,ownerState:p})})});process.env.NODE_ENV!=="production"&&(_C.propTypes={classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function U$(e){return Ne("MuiStepper",e)}$e("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const q$=e=>{const{orientation:t,nonLinear:n,alternativeLabel:r,classes:o}=e;return ye({root:["root",t,n&&"nonLinear",r&&"alternativeLabel"]},U$,o)},K$=ne("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})({display:"flex",variants:[{props:{orientation:"horizontal"},style:{flexDirection:"row",alignItems:"center"}},{props:{orientation:"vertical"},style:{flexDirection:"column"}},{props:{alternativeLabel:!0},style:{alignItems:"flex-start"}}]}),Y$=h.jsx(_C,{}),zC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiStepper"}),{activeStep:o=0,alternativeLabel:i=!1,children:l,className:a,component:c="div",connector:u=Y$,nonLinear:d=!1,orientation:p="horizontal",...m}=r,f={...r,nonLinear:d,alternativeLabel:i,orientation:p,component:c},y=q$(f),g=b.Children.toArray(l).filter(Boolean),v=g.map((S,w)=>b.cloneElement(S,{index:w,last:w+1===g.length,...S.props})),x=b.useMemo(()=>({activeStep:o,alternativeLabel:i,connector:u,nonLinear:d,orientation:p}),[o,i,u,d,p]);return h.jsx($a.Provider,{value:x,children:h.jsx(K$,{as:c,ownerState:f,className:ue(y.root,a),ref:n,...m,children:v})})});process.env.NODE_ENV!=="production"&&(zC.propTypes={activeStep:Wo,alternativeLabel:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,connector:s.element,nonLinear:s.bool,orientation:s.oneOf(["horizontal","vertical"]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const oh=b.createContext();process.env.NODE_ENV!=="production"&&(oh.displayName="TableContext");function X$(e){return Ne("MuiTable",e)}$e("MuiTable",["root","stickyHeader"]);const Z$=e=>{const{classes:t,stickyHeader:n}=e;return ye({root:["root",n&&"stickyHeader"]},X$,t)},Q$=ne("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(je(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),Ty="table",sh=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiTable"}),{className:o,component:i=Ty,padding:l="normal",size:a="medium",stickyHeader:c=!1,...u}=r,d={...r,component:i,padding:l,size:a,stickyHeader:c},p=Z$(d),m=b.useMemo(()=>({padding:l,size:a,stickyHeader:c}),[l,a,c]);return h.jsx(oh.Provider,{value:m,children:h.jsx(Q$,{as:i,role:i===Ty?null:"table",ref:n,className:ue(p.root,o),ownerState:d,...u})})});process.env.NODE_ENV!=="production"&&(sh.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,padding:s.oneOf(["checkbox","none","normal"]),size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),stickyHeader:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const Na=b.createContext();process.env.NODE_ENV!=="production"&&(Na.displayName="Tablelvl2Context");function J$(e){return Ne("MuiTableBody",e)}$e("MuiTableBody",["root"]);const eN=e=>{const{classes:t}=e;return ye({root:["root"]},J$,t)},tN=ne("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),nN={variant:"body"},Iy="tbody",Rc=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiTableBody"}),{className:o,component:i=Iy,...l}=r,a={...r,component:i},c=eN(a);return h.jsx(Na.Provider,{value:nN,children:h.jsx(tN,{className:ue(c.root,o),as:i,ref:n,role:i===Iy?null:"rowgroup",ownerState:a,...l})})});process.env.NODE_ENV!=="production"&&(Rc.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function rN(e){return Ne("MuiTableCell",e)}const oN=$e("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),sN=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:l}=e,a={root:["root",n,l&&"stickyHeader",r!=="inherit"&&`align${ie(r)}`,o!=="normal"&&`padding${ie(o)}`,`size${ie(i)}`]};return ye(a,rN,t)},iN=ne("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ie(n.size)}`],n.padding!=="normal"&&t[`padding${ie(n.padding)}`],n.align!=="inherit"&&t[`align${ie(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(je(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
383
|
+
${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${oN.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),kn=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:l,padding:a,scope:c,size:u,sortDirection:d,variant:p,...m}=r,f=b.useContext(oh),y=b.useContext(Na),g=y&&y.variant==="head";let v;l?v=l:v=g?"th":"td";let x=c;v==="td"?x=void 0:!x&&g&&(x="col");const S=p||y&&y.variant,w={...r,align:o,component:v,padding:a||(f&&f.padding?f.padding:"normal"),size:u||(f&&f.size?f.size:"medium"),sortDirection:d,stickyHeader:S==="head"&&f&&f.stickyHeader,variant:S},k=sN(w);let E=null;return d&&(E=d==="asc"?"ascending":"descending"),h.jsx(iN,{as:v,ref:n,className:ue(k.root,i),"aria-sort":E,scope:x,ownerState:w,...m})});process.env.NODE_ENV!=="production"&&(kn.propTypes={align:s.oneOf(["center","inherit","justify","left","right"]),children:s.node,classes:s.object,className:s.string,component:s.elementType,padding:s.oneOf(["checkbox","none","normal"]),scope:s.string,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sortDirection:s.oneOf(["asc","desc",!1]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["body","footer","head"]),s.string])});function lN(e){return Ne("MuiTableContainer",e)}$e("MuiTableContainer",["root"]);const aN=e=>{const{classes:t}=e;return ye({root:["root"]},lN,t)},cN=ne("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),BC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiTableContainer"}),{className:o,component:i="div",...l}=r,a={...r,component:i},c=aN(a);return h.jsx(cN,{ref:n,as:i,className:ue(c.root,o),ownerState:a,...l})});process.env.NODE_ENV!=="production"&&(BC.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function uN(e){return Ne("MuiTableHead",e)}$e("MuiTableHead",["root"]);const dN=e=>{const{classes:t}=e;return ye({root:["root"]},uN,t)},pN=ne("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),fN={variant:"head"},Py="thead",ih=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiTableHead"}),{className:o,component:i=Py,...l}=r,a={...r,component:i},c=dN(a);return h.jsx(Na.Provider,{value:fN,children:h.jsx(pN,{as:i,className:ue(c.root,o),ref:n,role:i===Py?null:"rowgroup",ownerState:a,...l})})});process.env.NODE_ENV!=="production"&&(ih.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function mN(e){return Ne("MuiToolbar",e)}$e("MuiToolbar",["root","gutters","regular","dense"]);const hN=e=>{const{classes:t,disableGutters:n,variant:r}=e;return ye({root:["root",!n&&"gutters",r]},mN,t)},gN=ne("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(je(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),nu=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:l=!1,variant:a="regular",...c}=r,u={...r,component:i,disableGutters:l,variant:a},d=hN(u);return h.jsx(gN,{as:i,className:ue(d.root,o),ref:n,ownerState:u,...c})});process.env.NODE_ENV!=="production"&&(nu.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disableGutters:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["dense","regular"]),s.string])});const bN=Me(h.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),yN=Me(h.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function vN(e){return Ne("MuiTablePaginationActions",e)}$e("MuiTablePaginationActions",["root"]);const xN=e=>{const{classes:t}=e;return ye({root:["root"]},vN,t)},CN=ne("div",{name:"MuiTablePaginationActions",slot:"Root"})({}),VC=b.forwardRef(function(t,n){var Y,U,q,Z,X,Q,re,J;const r=ze({props:t,name:"MuiTablePaginationActions"}),{backIconButtonProps:o,className:i,count:l,disabled:a=!1,getItemAriaLabel:c,nextIconButtonProps:u,onPageChange:d,page:p,rowsPerPage:m,showFirstButton:f,showLastButton:y,slots:g={},slotProps:v={},...x}=r,S=Nn(),k=xN(r),E=oe=>{d(oe,0)},T=oe=>{d(oe,p-1)},N=oe=>{d(oe,p+1)},P=oe=>{d(oe,Math.max(0,Math.ceil(l/m)-1))},O=(Y=g.firstButton)!=null?Y:Tn,L=(U=g.lastButton)!=null?U:Tn,$=(q=g.nextButton)!=null?q:Tn,C=(Z=g.previousButton)!=null?Z:Tn,j=(X=g.firstButtonIcon)!=null?X:t$,F=(Q=g.lastButtonIcon)!=null?Q:n$,M=(re=g.nextButtonIcon)!=null?re:yN,R=(J=g.previousButtonIcon)!=null?J:bN,_=S?L:O,V=S?$:C,W=S?C:$,I=S?O:L,D=S?v.lastButton:v.firstButton,G=S?v.nextButton:v.previousButton,A=S?v.previousButton:v.nextButton,K=S?v.firstButton:v.lastButton;return h.jsxs(CN,{ref:n,className:ue(k.root,i),...x,children:[f&&h.jsx(_,{onClick:E,disabled:a||p===0,"aria-label":c("first",p),title:c("first",p),...D,children:S?h.jsx(F,{...v.lastButtonIcon}):h.jsx(j,{...v.firstButtonIcon})}),h.jsx(V,{onClick:T,disabled:a||p===0,color:"inherit","aria-label":c("previous",p),title:c("previous",p),...G!=null?G:o,children:S?h.jsx(M,{...v.nextButtonIcon}):h.jsx(R,{...v.previousButtonIcon})}),h.jsx(W,{onClick:N,disabled:a||(l!==-1?p>=Math.ceil(l/m)-1:!1),color:"inherit","aria-label":c("next",p),title:c("next",p),...A!=null?A:u,children:S?h.jsx(R,{...v.previousButtonIcon}):h.jsx(M,{...v.nextButtonIcon})}),y&&h.jsx(I,{onClick:P,disabled:a||p>=Math.ceil(l/m)-1,"aria-label":c("last",p),title:c("last",p),...K,children:S?h.jsx(j,{...v.firstButtonIcon}):h.jsx(F,{...v.lastButtonIcon})})]})});process.env.NODE_ENV!=="production"&&(VC.propTypes={backIconButtonProps:s.object,children:s.node,classes:s.object,className:s.string,count:s.number.isRequired,disabled:s.bool,getItemAriaLabel:s.func.isRequired,nextIconButtonProps:s.object,onPageChange:s.func.isRequired,page:s.number.isRequired,rowsPerPage:s.number.isRequired,showFirstButton:s.bool.isRequired,showLastButton:s.bool.isRequired,slotProps:s.shape({firstButton:s.object,firstButtonIcon:s.object,lastButton:s.object,lastButtonIcon:s.object,nextButton:s.object,nextButtonIcon:s.object,previousButton:s.object,previousButtonIcon:s.object}),slots:s.shape({firstButton:s.elementType,firstButtonIcon:s.elementType,lastButton:s.elementType,lastButtonIcon:s.elementType,nextButton:s.elementType,nextButtonIcon:s.elementType,previousButton:s.elementType,previousButtonIcon:s.elementType})});function wN(e){return Ne("MuiTablePagination",e)}const Ts=$e("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var Oy;const SN=ne(kn,{name:"MuiTablePagination",slot:"Root"})(je(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),kN=ne(nu,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${Ts.actions}`]:t.actions,...t.toolbar})})(je(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Ts.actions}`]:{flexShrink:0,marginLeft:20}}))),EN=ne("div",{name:"MuiTablePagination",slot:"Spacer"})({flex:"1 1 100%"}),TN=ne("p",{name:"MuiTablePagination",slot:"SelectLabel"})(je(({theme:e})=>({...e.typography.body2,flexShrink:0}))),IN=ne(Bs,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${Ts.selectIcon}`]:t.selectIcon,[`& .${Ts.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Ts.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),PN=ne(Vn,{name:"MuiTablePagination",slot:"MenuItem"})({}),ON=ne("p",{name:"MuiTablePagination",slot:"DisplayedRows"})(je(({theme:e})=>({...e.typography.body2,flexShrink:0})));function MN({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function RN(e){return`Go to ${e} page`}const jN=e=>{const{classes:t}=e;return ye({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},wN,t)},HC=b.forwardRef(function(t,n){var J;const r=ze({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=VC,backIconButtonProps:i,colSpan:l,component:a=kn,count:c,disabled:u=!1,getItemAriaLabel:d=RN,labelDisplayedRows:p=MN,labelRowsPerPage:m="Rows per page:",nextIconButtonProps:f,onPageChange:y,onRowsPerPageChange:g,page:v,rowsPerPage:x,rowsPerPageOptions:S=[10,25,50,100],SelectProps:w={},showFirstButton:k=!1,showLastButton:E=!1,slotProps:T={},slots:N={},...P}=r,O=r,L=jN(O),$=(J=T==null?void 0:T.select)!=null?J:w,C=$.native?"option":PN;let j;(a===kn||a==="td")&&(j=l||1e3);const F=xt($.id),M=xt($.labelId),R=()=>c===-1?(v+1)*x:x===-1?c:Math.min(c,(v+1)*x),_={slots:N,slotProps:T},[V,W]=He("root",{ref:n,className:L.root,elementType:SN,externalForwardedProps:{..._,component:a,...P},ownerState:O,additionalProps:{colSpan:j}}),[I,D]=He("toolbar",{className:L.toolbar,elementType:kN,externalForwardedProps:_,ownerState:O}),[G,A]=He("spacer",{className:L.spacer,elementType:EN,externalForwardedProps:_,ownerState:O}),[K,Y]=He("selectLabel",{className:L.selectLabel,elementType:TN,externalForwardedProps:_,ownerState:O,additionalProps:{id:M}}),[U,q]=He("select",{className:L.select,elementType:IN,externalForwardedProps:_,ownerState:O}),[Z,X]=He("menuItem",{className:L.menuItem,elementType:C,externalForwardedProps:_,ownerState:O}),[Q,re]=He("displayedRows",{className:L.displayedRows,elementType:ON,externalForwardedProps:_,ownerState:O});return h.jsx(V,{...W,children:h.jsxs(I,{...D,children:[h.jsx(G,{...A}),S.length>1&&h.jsx(K,{...Y,children:m}),S.length>1&&h.jsx(U,{variant:"standard",...!$.variant&&{input:Oy||(Oy=h.jsx(_s,{}))},value:x,onChange:g,id:F,labelId:M,...$,classes:{...$.classes,root:ue(L.input,L.selectRoot,($.classes||{}).root),select:ue(L.select,($.classes||{}).select),icon:ue(L.selectIcon,($.classes||{}).icon)},disabled:u,...q,children:S.map(oe=>H.createElement(Z,{...X,key:oe.label?oe.label:oe,value:oe.value?oe.value:oe},oe.label?oe.label:oe))}),h.jsx(Q,{...re,children:p({from:c===0?0:v*x+1,to:R(),count:c===-1?-1:c,page:v})}),h.jsx(o,{className:L.actions,backIconButtonProps:i,count:c,nextIconButtonProps:f,onPageChange:y,page:v,rowsPerPage:x,showFirstButton:k,showLastButton:E,slotProps:T.actions,slots:N.actions,getItemAriaLabel:d,disabled:u})]})})});process.env.NODE_ENV!=="production"&&(HC.propTypes={ActionsComponent:s.elementType,backIconButtonProps:s.object,classes:s.object,colSpan:s.number,component:s.elementType,count:Wo.isRequired,disabled:s.bool,getItemAriaLabel:s.func,labelDisplayedRows:s.func,labelRowsPerPage:s.node,nextIconButtonProps:s.object,onPageChange:s.func.isRequired,onRowsPerPageChange:s.func,page:or(Wo.isRequired,e=>{const{count:t,page:n,rowsPerPage:r}=e;if(t===-1)return null;const o=Math.max(0,Math.ceil(t/r)-1);return n<0||n>o?new Error(`MUI: The page prop of a TablePagination is out of range (0 to ${o}, but page is ${n}).`):null}),rowsPerPage:Wo.isRequired,rowsPerPageOptions:s.arrayOf(s.oneOfType([s.number,s.shape({label:s.string.isRequired,value:s.number.isRequired})]).isRequired),SelectProps:s.object,showFirstButton:s.bool,showLastButton:s.bool,slotProps:s.shape({actions:s.shape({firstButton:s.object,firstButtonIcon:s.object,lastButton:s.object,lastButtonIcon:s.object,nextButton:s.object,nextButtonIcon:s.object,previousButton:s.object,previousButtonIcon:s.object}),displayedRows:s.oneOfType([s.func,s.object]),menuItem:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),select:s.object,selectLabel:s.oneOfType([s.func,s.object]),spacer:s.oneOfType([s.func,s.object]),toolbar:s.oneOfType([s.func,s.object])}),slots:s.shape({actions:s.shape({firstButton:s.elementType,firstButtonIcon:s.elementType,lastButton:s.elementType,lastButtonIcon:s.elementType,nextButton:s.elementType,nextButtonIcon:s.elementType,previousButton:s.elementType,previousButtonIcon:s.elementType}),displayedRows:s.elementType,menuItem:s.elementType,root:s.elementType,select:s.elementType,selectLabel:s.elementType,spacer:s.elementType,toolbar:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function LN(e){return Ne("MuiTableRow",e)}const My=$e("MuiTableRow",["root","selected","hover","head","footer"]),$N=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return ye({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},LN,t)},NN=ne("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(je(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${My.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${My.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),Ry="tr",ws=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiTableRow"}),{className:o,component:i=Ry,hover:l=!1,selected:a=!1,...c}=r,u=b.useContext(Na),d={...r,component:i,hover:l,selected:a,head:u&&u.variant==="head",footer:u&&u.variant==="footer"},p=$N(d);return h.jsx(NN,{as:i,ref:n,className:ue(p.root,o),role:i===Ry?null:"row",ownerState:d,...c})});process.env.NODE_ENV!=="production"&&(ws.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,hover:s.bool,selected:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const FN=Me(h.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function AN(e){return Ne("MuiTableSortLabel",e)}const rp=$e("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]),DN=e=>{const{classes:t,direction:n,active:r}=e,o={root:["root",r&&"active",`direction${ie(n)}`],icon:["icon",`iconDirection${ie(n)}`]};return ye(o,AN,t)},_N=ne(ko,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(je(({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,[`& .${rp.icon}`]:{opacity:.5}},[`&.${rp.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${rp.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),zN=ne("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${ie(n.direction)}`]]}})(je(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),GC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiTableSortLabel"}),{active:o=!1,children:i,className:l,direction:a="asc",hideSortIcon:c=!1,IconComponent:u=FN,slots:d={},slotProps:p={},...m}=r,f={...r,active:o,direction:a,hideSortIcon:c,IconComponent:u},y=DN(f),g={slots:d,slotProps:p},[v,x]=He("root",{elementType:_N,externalForwardedProps:g,ownerState:f,className:ue(y.root,l),ref:n}),[S,w]=He("icon",{elementType:zN,externalForwardedProps:g,ownerState:f,className:y.icon});return h.jsxs(v,{disableRipple:!0,component:"span",...x,...m,children:[i,c&&!o?null:h.jsx(S,{as:u,...w})]})});process.env.NODE_ENV!=="production"&&(GC.propTypes={active:s.bool,children:s.node,classes:s.object,className:s.string,direction:s.oneOf(["asc","desc"]),hideSortIcon:s.bool,IconComponent:s.elementType,slotProps:s.shape({icon:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({icon:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function BN(e){return Ne("MuiTextField",e)}$e("MuiTextField",["root"]);const VN={standard:td,filled:ed,outlined:nd},HN=e=>{const{classes:t}=e;return ye({root:["root"]},BN,t)},GN=ne(zs,{name:"MuiTextField",slot:"Root"})({}),Vs=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:l,className:a,color:c="primary",defaultValue:u,disabled:d=!1,error:p=!1,FormHelperTextProps:m,fullWidth:f=!1,helperText:y,id:g,InputLabelProps:v,inputProps:x,InputProps:S,inputRef:w,label:k,maxRows:E,minRows:T,multiline:N=!1,name:P,onBlur:O,onChange:L,onFocus:$,placeholder:C,required:j=!1,rows:F,select:M=!1,SelectProps:R,slots:_={},slotProps:V={},type:W,value:I,variant:D="outlined",...G}=r,A={...r,autoFocus:i,color:c,disabled:d,error:p,fullWidth:f,multiline:N,required:j,select:M,variant:D},K=HN(A);process.env.NODE_ENV!=="production"&&M&&!l&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const Y=xt(g),U=y&&Y?`${Y}-helper-text`:void 0,q=k&&Y?`${Y}-label`:void 0,Z=VN[D],X={slots:_,slotProps:{input:S,inputLabel:v,htmlInput:x,formHelperText:m,select:R,...V}},Q={},re=X.slotProps.inputLabel;D==="outlined"&&(re&&typeof re.shrink!="undefined"&&(Q.notched=re.shrink),Q.label=k),M&&((!R||!R.native)&&(Q.id=void 0),Q["aria-describedby"]=void 0);const[J,oe]=He("root",{elementType:GN,shouldForwardComponentProp:!0,externalForwardedProps:{...X,...G},ownerState:A,className:ue(K.root,a),ref:n,additionalProps:{disabled:d,error:p,fullWidth:f,required:j,color:c,variant:D}}),[te,fe]=He("input",{elementType:Z,externalForwardedProps:X,additionalProps:Q,ownerState:A}),[ve,Ce]=He("inputLabel",{elementType:Wm,externalForwardedProps:X,ownerState:A}),[xe,Se]=He("htmlInput",{elementType:"input",externalForwardedProps:X,ownerState:A}),[Oe,Ae]=He("formHelperText",{elementType:kC,externalForwardedProps:X,ownerState:A}),[se,Ge]=He("select",{elementType:Bs,externalForwardedProps:X,ownerState:A}),Ie=h.jsx(te,{"aria-describedby":U,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:f,multiline:N,name:P,rows:F,maxRows:E,minRows:T,type:W,value:I,id:Y,inputRef:w,onBlur:O,onChange:L,onFocus:$,placeholder:C,inputProps:Se,slots:{input:_.htmlInput?xe:void 0},...fe});return h.jsxs(J,{...oe,children:[k!=null&&k!==""&&h.jsx(ve,{htmlFor:Y,id:q,...Ce,children:k}),M?h.jsx(se,{"aria-describedby":U,id:Y,labelId:q,value:I,input:Ie,...Ge,children:l}):Ie,y&&h.jsx(Oe,{id:U,...Ae,children:y})]})});process.env.NODE_ENV!=="production"&&(Vs.propTypes={autoComplete:s.string,autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),defaultValue:s.any,disabled:s.bool,error:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:Fn,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onFocus:s.func,placeholder:s.string,required:s.bool,rows:s.oneOfType([s.number,s.string]),select:s.bool,SelectProps:s.object,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({formHelperText:s.oneOfType([s.func,s.object]),htmlInput:s.oneOfType([s.func,s.object]),input:s.oneOfType([s.func,s.object]),inputLabel:s.oneOfType([s.func,s.object]),select:s.oneOfType([s.func,s.object])}),slots:s.shape({formHelperText:s.elementType,htmlInput:s.elementType,input:s.elementType,inputLabel:s.elementType,root:s.elementType,select:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any,variant:s.oneOf(["filled","outlined","standard"])});const WN=({text:e,onClick:t})=>h.jsx("div",{className:"bg-neutral-lighter/30 flex w-full items-center rounded-xl px-4 py-2",children:h.jsx("div",{className:"ml-5",children:h.jsxs(ko,{className:"focus-visible:outline-primary flex items-center rounded focus-visible:outline-2 focus-visible:outline-offset-2",onClick:t,children:[h.jsx(mt,{component:"span",className:"flex h-8 w-8 items-center justify-center rounded-md",sx:{bgcolor:"primary.main",color:"primary.contrastText"},children:h.jsx(Ax,{})}),h.jsx("span",{className:"text-primary ml-5 text-sm font-bold select-none hover:underline",children:e})]})})}),jy=6,UN=({defaultValue:e="",inputLabel:t,isLoading:n,label:r,labelCancel:o="Cancel",labelSubmit:i="Add",placeholder:l,selectDefaultValue:a,selectOptions:c=[],showInput:u,withInput:d,withSelect:p,onCancel:m,onClick:f,onSelectChange:y,onSubmit:g,"data-testid":v})=>{const[x,S]=H.useState(!!u),[w,k]=H.useState(),[E,T]=H.useState(e),[N,P]=H.useState(a),O=H.useId(),L=()=>{S(!1),m==null||m()},$=()=>{d?S(!0):f==null||f()},C=F=>{if(F.preventDefault(),E.trim().length<jy){k(`Must be at least ${jy} characters`);return}k(void 0),g==null||g(E,N).then(()=>S(!1))},j=F=>{P(F),y==null||y(F)};return h.jsx("div",{className:"bg-neutral-lighter/40 flex w-full items-center rounded-xl px-8",children:x?h.jsxs("form",{className:"flex w-full py-2",onSubmit:C,children:[h.jsxs("div",{className:"flex w-full",children:[h.jsx("label",{className:"sr-only",htmlFor:O,children:t||l}),h.jsx(Vs,{autoFocus:!0,className:"w-1/2 rounded-xl bg-white",error:!!w,helperText:w,id:O,placeholder:l,size:"small",value:E,variant:"outlined",onChange:F=>T(F.target.value)}),p&&h.jsx(Bs,{className:"ml-4 bg-white",size:"small",value:N,onChange:F=>j(F.target.value),children:c.map(F=>h.jsx(Vn,{value:F.value,children:F.label},String(F.value)))})]}),h.jsxs("div",{className:"flex gap-2 py-2",children:[h.jsx(Dr,{className:"h-min",color:"primary",loading:n,type:"submit",variant:"contained",children:i}),h.jsx(Dr,{className:"h-min",color:"primary",type:"button",variant:"outlined",onClick:L,children:o})]})]}):h.jsxs("button",{className:"flex cursor-pointer items-center border-none bg-transparent py-4","data-testid":v,style:{fontFamily:"inherit"},type:"button",onClick:$,children:[h.jsx("span",{"aria-hidden":"true",className:"bg-primary hover:bg-primary-dark flex h-8 w-8 items-center justify-center rounded-md text-white shadow-sm transition-colors",children:h.jsx(Ax,{})}),r&&h.jsx("span",{className:"text-primary ml-4 text-sm font-bold select-none hover:underline",children:r})]})})},qN=Me(h.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"}),"FileUploadOutlined"),KN=({accept:e,description:t,buttonLabel:n,onFileDrop:r})=>{const o=H.useId(),[i,l]=H.useState(!1),a=H.useCallback(p=>{var y;if(e.includes("image/*")&&p.type.startsWith("image/")||e.includes("video/*")&&p.type.startsWith("video/")||e.includes("application/pdf")&&p.type==="application/pdf")return!0;const m=e.split(",").map(g=>g.trim().toLowerCase()),f=`.${(y=p.name.split(".").pop())==null?void 0:y.toLowerCase()}`;return m.includes(f)},[e]),c=H.useCallback(p=>{p.preventDefault(),p.stopPropagation(),l(p.type==="dragenter"||p.type==="dragover")},[]),u=H.useCallback(p=>{var f;p.preventDefault(),p.stopPropagation(),l(!1);const m=(f=p.dataTransfer.files)==null?void 0:f[0];m&&a(m)&&r(m)},[r,a]),d=p=>{var f;const m=(f=p.target.files)==null?void 0:f[0];m&&a(m)&&(r(m),p.target.value="")};return h.jsxs(mt,{sx:{aspectRatio:"2 / 1",border:"2px dashed",borderColor:i?"primary.main":"#D9D9D9",borderRadius:2,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",cursor:"pointer",transition:p=>p.transitions.create("all",{duration:p.transitions.duration.standard}),userSelect:"none"},onDragEnter:c,onDragLeave:c,onDragOver:c,onDrop:u,children:[h.jsx("input",{accept:e,id:o,style:{display:"none"},type:"file",onChange:d}),h.jsxs(mt,{component:"label",htmlFor:o,sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:[h.jsx(mt,{sx:{width:36,height:36,display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid rgba(51, 51, 51, 0.10)",borderRadius:1,mb:5},children:h.jsx(qN,{})}),h.jsx(dt,{sx:{color:"text.secondary",mb:5},variant:"body2",children:t}),h.jsx(Dr,{component:"span",sx:{minWidth:100,borderRadius:"1rem",fontSize:"1rem",fontWeight:700},variant:"contained",onKeyDown:p=>{var m;(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),(m=document.getElementById(o))==null||m.click())},children:n})]})]})},YN=({isOpen:e,severity:t,title:n,message:r,onClose:o})=>e?h.jsxs(Rm,{severity:t,onClose:o,children:[h.jsx(dt,{sx:{mt:"-2px",fontSize:"1rem",fontWeight:700},children:n}),h.jsx(dt,{sx:{mt:1,fontSize:"0.875rem"},children:r})]}):null,XN=Me(h.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),lh=H.createContext(null),WC=()=>H.useContext(lh),UC=({children:e,isOpen:t,onClose:n})=>{const r=nn(),o=WC(),i=H.useRef(null);return h.jsxs(h.Fragment,{children:[h.jsx(Vm,{open:t,sx:{position:"absolute",inset:0,backgroundColor:"rgba(0,0,0,0.25)",pointerEvents:t?"auto":"none",zIndex:r.zIndex.drawer},onClick:n}),h.jsx(wC,{mountOnEnter:!0,unmountOnExit:!0,container:o?l=>{var a;return(a=o.current)!=null?a:l}:void 0,direction:"right",in:t,children:h.jsx(Br,{"aria-modal":"true",elevation:8,role:"dialog",sx:{position:"absolute",left:0,top:0,bottom:0,width:"300px",borderRadius:0,display:"flex",flexDirection:"column",zIndex:r.zIndex.drawer+1},children:h.jsx(mt,{ref:i,sx:{overflow:"auto",flex:1},children:h.jsx(mt,{sx:{display:"flex",flexDirection:"column",height:"100%",pt:"1rem",pr:1.5,pl:2},children:e})})})})]})},ZN=256,QN=({children:e,navigationSlot:t,logoSlot:n,mobileLogoSlot:r,headerSlot:o,sideDrawerSlot:i,sideDrawerWidth:l=400,isSideDrawerOpen:a=!1,backgroundColor:c})=>{var f,y,g,v;const u=nn(),[d,p]=H.useState(!1),m=H.useRef(null);return h.jsxs(mt,{sx:{height:"100vh",maxHeight:"100vh",display:"flex",flexDirection:"row",padding:"1rem 1rem 1rem 0",overflow:"hidden",bgcolor:(y=c!=null?c:(f=u.palette.neutral)==null?void 0:f.lighter)!=null?y:"#F5F5F5",transition:u.transitions.create("margin-right",{easing:u.transitions.easing.sharp,duration:a?u.transitions.duration.enteringScreen:u.transitions.duration.leavingScreen}),marginRight:a?`${l}px`:0,[u.breakpoints.down("sm")]:{padding:0,marginRight:0}},children:[h.jsxs(mt,{component:"nav","aria-label":"Main navigation",sx:{width:`${ZN}px`,flexShrink:0,display:"flex",flexDirection:"column",px:2,py:"1rem",[u.breakpoints.down("md")]:{display:"none"}},children:[n&&h.jsx(mt,{sx:{mb:2},children:n}),t]}),h.jsxs(mt,{sx:{flex:1,display:"flex",flexDirection:"column",borderRadius:"8px",overflow:"hidden",bgcolor:(v=(g=u.palette.common)==null?void 0:g.white)!=null?v:"#FFFFFF"},children:[h.jsx(rf,{color:"transparent",elevation:0,position:"static",sx:{display:"none",[u.breakpoints.down("md")]:{display:"flex"}},children:h.jsxs(nu,{variant:"dense",sx:{justifyContent:"space-between",px:{xs:"15px",sm:"1rem"}},children:[h.jsxs(mt,{sx:{display:"flex",alignItems:"center",gap:1},children:[h.jsx(Tn,{"aria-label":"Open navigation menu",size:"small",onClick:()=>p(!0),children:h.jsx(XN,{})}),r]}),o&&h.jsx(mt,{sx:{display:"flex",alignItems:"center",gap:1},children:o})]})}),h.jsx(rf,{color:"transparent",elevation:0,position:"static",sx:{[u.breakpoints.down("md")]:{display:"none"}},children:h.jsx(nu,{variant:"dense",sx:{justifyContent:"flex-end",px:"2em"},children:o&&h.jsx(mt,{sx:{display:"flex",alignItems:"center",gap:1},children:o})})}),h.jsx(lh.Provider,{value:m,children:h.jsxs(mt,{ref:m,sx:{flex:1,overflow:"auto",position:"relative"},children:[h.jsxs(UC,{isOpen:d,onClose:()=>p(!1),children:[r&&h.jsx(mt,{sx:{mb:2},children:r}),t]}),e]})})]}),i]})},ah=b.createContext(void 0);process.env.NODE_ENV!=="production"&&(ah.displayName="GridApiContext");function tt(){const e=b.useContext(ah);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
|
|
384
|
+
`));return e}const ch=b.createContext(void 0);process.env.NODE_ENV!=="production"&&(ch.displayName="GridRootPropsContext");const Le=()=>{const e=b.useContext(ch);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},JN=parseInt(b.version,10),ht=e=>{var t;if(JN>=19){const n=r=>{var o;return e(r,(o=r.ref)!=null?o:null)};return n.displayName=(t=e.displayName)!=null?t:e.name,n}return b.forwardRef(e)};var e7=(e,t,n)=>{if(t.length===1&&t[0]===n){let r=!1;try{const o={};e(o)===o&&(r=!0)}catch(o){}if(r){let o;try{throw new Error}catch(i){({stack:o}=i)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
385
|
+
\`createSelector([state => state.todos], todos => todos)\`
|
|
386
|
+
This could lead to inefficient memoization and unnecessary re-renders.
|
|
387
|
+
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:o})}}},t7=(e,t,n)=>{const{memoize:r,memoizeOptions:o}=t,{inputSelectorResults:i,inputSelectorResultsCopy:l}=e,a=r(()=>({}),...o);if(!(a.apply(null,i)===a.apply(null,l))){let u;try{throw new Error}catch(d){({stack:u}=d)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
388
|
+
This means your output selector will likely run more frequently than intended.
|
|
389
|
+
Avoid returning a new reference inside your input selector, e.g.
|
|
390
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:i,secondInputs:l,stack:u})}},n7={inputStabilityCheck:"once",identityFunctionCheck:"once"},ru=Symbol("NOT_FOUND");function r7(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function o7(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Ly=e=>Array.isArray(e)?e:[e];function s7(e){const t=Array.isArray(e[0])?e[0]:e;return o7(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function $y(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var i7=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...n7,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:e7},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:t7}}};function l7(e){let t;return{get(n){return t&&e(t.key,n)?t.value:ru},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function a7(e,t){let n=[];function r(a){const c=n.findIndex(u=>t(a,u.key));if(c>-1){const u=n[c];return c>0&&(n.splice(c,1),n.unshift(u)),u.value}return ru}function o(a,c){r(a)===ru&&(n.unshift({key:a,value:c}),n.length>e&&n.pop())}function i(){return n}function l(){n=[]}return{get:r,put:o,getEntries:i,clear:l}}var c7=(e,t)=>e===t;function u7(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:o}=n;for(let i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function qC(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=c7,maxSize:o=1,resultEqualityCheck:i}=n,l=u7(r);let a=0;const c=o<=1?l7(l):a7(o,l);function u(){let d=c.get(arguments);if(d===ru){if(d=e.apply(null,arguments),a++,i){const m=c.getEntries().find(f=>i(f.value,d));m&&(d=m.value,a!==0&&a--)}c.put(arguments,d)}return d}return u.clearCache=()=>{c.clear(),u.resetResultsCount()},u.resultsCount=()=>a,u.resetResultsCount=()=>{a=0},u}var d7=class{constructor(e){this.value=e}deref(){return this.value}},p7=()=>typeof WeakRef=="undefined"?d7:WeakRef,KC=p7(),f7=0,Ny=1;function yc(){return{s:f7,v:void 0,o:null,p:null}}function m7(e){return e instanceof KC?e.deref():e}function YC(e,t={}){let n=yc();const{resultEqualityCheck:r}=t;let o,i=0;function l(){let a=n;const{length:c}=arguments;for(let p=0,m=c;p<m;p++){const f=arguments[p];if(typeof f=="function"||typeof f=="object"&&f!==null){let y=a.o;y===null&&(a.o=y=new WeakMap);const g=y.get(f);g===void 0?(a=yc(),y.set(f,a)):a=g}else{let y=a.p;y===null&&(a.p=y=new Map);const g=y.get(f);g===void 0?(a=yc(),y.set(f,a)):a=g}}const u=a;let d;if(a.s===Ny)d=a.v;else if(d=e.apply(null,arguments),i++,r){const p=m7(o);p!=null&&r(p,d)&&(d=p,i!==0&&i--),o=typeof d=="object"&&d!==null||typeof d=="function"?new KC(d):d}return u.s=Ny,u.v=d,d}return l.clearCache=()=>{n=yc(),l.resetResultsCount()},l.resultsCount=()=>i,l.resetResultsCount=()=>{i=0},l}function XC(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,l=0,a,c={},u=o.pop();typeof u=="object"&&(c=u,u=o.pop()),r7(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const d={...n,...c},{memoize:p,memoizeOptions:m=[],argsMemoize:f=YC,argsMemoizeOptions:y=[]}=d,g=Ly(m),v=Ly(y),x=s7(o),S=p(function(){return i++,u.apply(null,arguments)},...g);let w=!0;const k=f(function(){l++;const T=$y(x,arguments);if(a=S.apply(null,T),process.env.NODE_ENV!=="production"){const{devModeChecks:N={}}=d,{identityFunctionCheck:P,inputStabilityCheck:O}=i7(w,N);if(P.shouldRun&&P.run(u,T,a),O.shouldRun){const L=$y(x,arguments);O.run({inputSelectorResults:T,inputSelectorResultsCopy:L},{memoize:p,memoizeOptions:g},arguments)}w&&(w=!1)}return a},...v);return Object.assign(k,{resultFunc:u,memoizedResultFunc:S,dependencies:x,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>a,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:p,argsMemoize:f})};return Object.assign(r,{withTypes:()=>r}),r}var h7=XC(YC);const Fy=new Set;function br(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
|
|
391
|
+
`):e;Fy.has(n)||(Fy.add(n),t==="error"?console.error(n):console.warn(n))}const g7=Object.is;function ZC(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!g7(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}var vc={exports:{}},op={};/**
|
|
392
|
+
* @license React
|
|
393
|
+
* use-sync-external-store-shim.production.js
|
|
394
|
+
*
|
|
395
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
396
|
+
*
|
|
397
|
+
* This source code is licensed under the MIT license found in the
|
|
398
|
+
* LICENSE file in the root directory of this source tree.
|
|
399
|
+
*/var Ay;function b7(){if(Ay)return op;Ay=1;var e=H;function t(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,l=e.useDebugValue;function a(p,m){var f=m(),y=r({inst:{value:f,getSnapshot:m}}),g=y[0].inst,v=y[1];return i(function(){g.value=f,g.getSnapshot=m,c(g)&&v({inst:g})},[p,f,m]),o(function(){return c(g)&&v({inst:g}),p(function(){c(g)&&v({inst:g})})},[p]),l(f),f}function c(p){var m=p.getSnapshot;p=p.value;try{var f=m();return!n(p,f)}catch(y){return!0}}function u(p,m){return m()}var d=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?u:a;return op.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,op}var sp={};/**
|
|
400
|
+
* @license React
|
|
401
|
+
* use-sync-external-store-shim.development.js
|
|
402
|
+
*
|
|
403
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
404
|
+
*
|
|
405
|
+
* This source code is licensed under the MIT license found in the
|
|
406
|
+
* LICENSE file in the root directory of this source tree.
|
|
407
|
+
*/var Dy;function y7(){return Dy||(Dy=1,process.env.NODE_ENV!=="production"&&(function(){function e(f,y){return f===y&&(f!==0||1/f===1/y)||f!==f&&y!==y}function t(f,y){d||o.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=y();if(!p){var v=y();i(g,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}v=l({inst:{value:g,getSnapshot:y}});var x=v[0].inst,S=v[1];return c(function(){x.value=g,x.getSnapshot=y,n(x)&&S({inst:x})},[f,g,y]),a(function(){return n(x)&&S({inst:x}),f(function(){n(x)&&S({inst:x})})},[f]),u(g),g}function n(f){var y=f.getSnapshot;f=f.value;try{var g=y();return!i(f,g)}catch(v){return!0}}function r(f,y){return y()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=H,i=typeof Object.is=="function"?Object.is:e,l=o.useState,a=o.useEffect,c=o.useLayoutEffect,u=o.useDebugValue,d=!1,p=!1,m=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?r:t;sp.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),sp}var _y;function v7(){return _y||(_y=1,process.env.NODE_ENV==="production"?vc.exports=b7():vc.exports=y7()),vc.exports}var uh=v7();function QC(e){return e.acceptsApiRef}function zy(e,t){return QC(t)?t(e):t(e.current.state)}function ip(e,t,n,r){return QC(t)?t(e,n):t(e.current.state,r)}const JC=Object.is,dh=ZC,x7=(e,t)=>e===t?!0:e.length===t.length&&e.every((n,r)=>n===t[r]),C7=(e,t)=>{let n=Object.is;return t instanceof Array?n=x7:t instanceof Object&&(n=dh),n(e,t)},ew=()=>({state:null,equals:null,selector:null,args:void 0}),ou=[],tw=()=>null,me=(e,t,n=JC)=>{process.env.NODE_ENV!=="production"&&(e.current.state||br(["MUI X: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]));const r=Er(ew),o=r.current.selector!==null,[i,l]=b.useState(o?null:zy(e,t));r.current.state=i,r.current.equals=n,r.current.selector=t;const a=b.useCallback(()=>(r.current.subscription||(r.current.subscription=e.current.store.subscribe(()=>{const u=zy(e,r.current.selector);r.current.equals(r.current.state,u)||(r.current.state=u,l(u))})),null),ou),c=b.useCallback(()=>()=>{r.current.subscription&&(r.current.subscription(),r.current.subscription=void 0)},ou);return uh.useSyncExternalStore(c,a,tw),i},ia=(e,t,n=void 0,r=JC)=>{process.env.NODE_ENV!=="production"&&(e.current.state||br(["MUI X: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]));const o=Er(ew),i=o.current.selector!==null,[l,a]=b.useState(i?null:ip(e,t,n,e.current.instanceId));o.current.state=l,o.current.equals=r,o.current.selector=t;const c=o.current.args;if(o.current.args=n,i&&!C7(c,n)){const p=ip(e,o.current.selector,o.current.args,e.current.instanceId);o.current.equals(o.current.state,p)||(o.current.state=p,a(p))}const u=b.useCallback(()=>(o.current.subscription||(o.current.subscription=e.current.store.subscribe(()=>{const p=ip(e,o.current.selector,o.current.args,e.current.instanceId);o.current.equals(o.current.state,p)||(o.current.state=p,a(p))})),null),ou),d=b.useCallback(()=>()=>{o.current.subscription&&(o.current.subscription(),o.current.subscription=void 0)},ou);return uh.useSyncExternalStore(d,u,tw),l},w7=XC({memoize:qC,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),By=new WeakMap;function Lr(e){return"current"in e&&"instanceId"in e.current}const $r={id:"default"},Ue=(e,t,n,r,o,i,...l)=>{if(l.length>0)throw new Error("Unsupported number of selectors");let a;if(e&&t&&n&&r&&o&&i)a=(c,u)=>{const d=Lr(c),p=u!=null?u:d?c.current.instanceId:$r,m=d?c.current.state:c,f=e(m,p),y=t(m,p),g=n(m,p),v=r(m,p),x=o(m,p);return i(f,y,g,v,x)};else if(e&&t&&n&&r&&o)a=(c,u)=>{const d=Lr(c),p=u!=null?u:d?c.current.instanceId:$r,m=d?c.current.state:c,f=e(m,p),y=t(m,p),g=n(m,p),v=r(m,p);return o(f,y,g,v)};else if(e&&t&&n&&r)a=(c,u)=>{const d=Lr(c),p=u!=null?u:d?c.current.instanceId:$r,m=d?c.current.state:c,f=e(m,p),y=t(m,p),g=n(m,p);return r(f,y,g)};else if(e&&t&&n)a=(c,u)=>{const d=Lr(c),p=u!=null?u:d?c.current.instanceId:$r,m=d?c.current.state:c,f=e(m,p),y=t(m,p);return n(f,y)};else if(e&&t)a=(c,u)=>{const d=Lr(c),p=u!=null?u:d?c.current.instanceId:$r,m=d?c.current.state:c,f=e(m,p);return t(f)};else throw new Error("Missing arguments");return a.acceptsApiRef=!0,a},Fa=(e,t,n,r,o,i,...l)=>{if(l.length>0)throw new Error("Unsupported number of selectors");let a;if(e&&t&&n&&r&&o&&i)a=(c,u,d)=>{const p=Lr(c),m=d!=null?d:p?c.current.instanceId:$r,f=p?c.current.state:c,y=e(f,u,m),g=t(f,u,m),v=n(f,u,m),x=r(f,u,m),S=o(f,u,m);return i(y,g,v,x,S,u)};else if(e&&t&&n&&r&&o)a=(c,u,d)=>{const p=Lr(c),m=d!=null?d:p?c.current.instanceId:$r,f=p?c.current.state:c,y=e(f,u,m),g=t(f,u,m),v=n(f,u,m),x=r(f,u,m);return o(y,g,v,x,u)};else if(e&&t&&n&&r)a=(c,u,d)=>{const p=Lr(c),m=d!=null?d:p?c.current.instanceId:$r,f=p?c.current.state:c,y=e(f,u,m),g=t(f,u,m),v=n(f,u,m);return r(y,g,v,u)};else if(e&&t&&n)a=(c,u,d)=>{const p=Lr(c),m=d!=null?d:p?c.current.instanceId:$r,f=p?c.current.state:c,y=e(f,u,m),g=t(f,u,m);return n(y,g,u)};else if(e&&t)a=(c,u,d)=>{const p=Lr(c),m=d!=null?d:p?c.current.instanceId:$r,f=p?c.current.state:c,y=e(f,u,m);return t(y,u)};else throw new Error("Missing arguments");return a.acceptsApiRef=!0,a},yt=(...e)=>{const t=(n,r)=>{const o=Lr(n),i=o?n.current.instanceId:r!=null?r:$r,l=o?n.current.state:n;process.env.NODE_ENV!=="production"&&i.id==="default"&&br(["MUI X: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, for example `mySelector(apiRef)`, or pass the instance ID explicitly, for example `mySelector(state, apiRef.current.instanceId)`."]);const a=By.get(i),c=a!=null?a:new Map,u=c==null?void 0:c.get(e);if(c&&u)return u(l,i);const d=w7(...e);return a||By.set(i,c),c.set(e,d),d(l,i)};return t.acceptsApiRef=!0,t},pn=e=>e.dimensions,od=Ue(pn,e=>e.columnsTotalWidth),ph=e=>e.dimensions.rowHeight,S7=e=>e.dimensions.contentSize.height,k7=e=>e.dimensions.hasScrollX,E7=e=>e.dimensions.hasScrollY,nw=e=>e.dimensions.columnsTotalWidth<e.dimensions.viewportOuterSize.width,T7=e=>e.dimensions.headerHeight,I7=e=>e.dimensions.groupHeaderHeight,rw=e=>e.dimensions.hasScrollY?e.dimensions.scrollbarSize:0,P7=e=>{const t=e.dimensions.hasScrollX?e.dimensions.scrollbarSize:0,n=e.dimensions.viewportOuterSize.height-e.dimensions.minimumSize.height>0;return!(t===0&&!n)};function Po(e){return b.memo(e,ZC)}const O7={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",columnsManagementDeleteIconLabel:"Clear",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorDoesNotContain:"does not contain",filterOperatorEquals:"equals",filterOperatorDoesNotEqual:"does not equal",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorDoesNotContain:"Does not contain",headerFilterOperatorEquals:"Equals",headerFilterOperatorDoesNotEqual:"Does not equal",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuAriaLabel:e=>`${e} column menu`,columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"};function at(e){return Ne("MuiDataGrid",e)}const B=$e("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeader--lastUnpinned","columnHeader--siblingFocused","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementSearchInput","columnsManagementFooter","container--top","container--bottom","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderBottom","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hasSkeletonLoadingOverlay","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","row--borderBottom","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea--up","scrollArea--down","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--header","scrollbarFiller--borderTop","scrollbarFiller--borderBottom","scrollbarFiller--pinnedRight","selectedRowCount","sortButton","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScroller--hasScrollX","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","groupingCriteriaCellLoadingContainer","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),Vy=1e3;class M7{constructor(t=Vy){this.timeouts=new Map,this.cleanupTimeout=Vy,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class R7{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}var nr=(function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e})(nr||{});class j7{}function L7(e){let t=0;return function(r,o,i,l){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new R7:new M7);const[a]=b.useState(new j7),c=b.useRef(null),u=b.useRef(null);u.current=i;const d=b.useRef(null);if(!c.current&&u.current){const p=(m,f,y)=>{var g;f&&!f.defaultMuiPrevented&&((g=u.current)==null||g.call(u,m,f,y))};c.current=r.current.subscribeEvent(o,p,l),t+=1,d.current={cleanupToken:t},e.registry.register(a,()=>{var m;(m=c.current)==null||m.call(c),c.current=null,d.current=null},d.current)}else!u.current&&c.current&&(c.current(),c.current=null,d.current&&(e.registry.unregister(d.current),d.current=null));b.useEffect(()=>{if(!c.current&&u.current){const p=(m,f,y)=>{var g;f&&!f.defaultMuiPrevented&&((g=u.current)==null||g.call(u,m,f,y))};c.current=r.current.subscribeEvent(o,p,l)}return d.current&&e.registry&&(e.registry.unregister(d.current),d.current=null),()=>{var p;(p=c.current)==null||p.call(c),c.current=null}},[r,o,l])}}const $7={registry:null},Pe=L7($7),N7={isFirst:!0};function Et(e,t,n){Pe(e,t,n,N7)}const F7=.7,A7=1.3,D7={compact:F7,comfortable:A7,standard:1},pi=e=>e.density,Di=Ue(pi,e=>D7[e]),_7=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],z7=e=>{const{classes:t}=e;return ye({root:["editInputCell"]},at,t)},B7=ne(_s,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>z({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),ow=ht((e,t)=>{const n=Le(),{id:r,value:o,field:i,colDef:l,hasFocus:a,debounceMs:c=200,isProcessingProps:u,onValueChange:d}=e,p=Be(e,_7),m=tt(),f=b.useRef(null),[y,g]=b.useState(o),v=z7(n),x=b.useCallback(async w=>{const k=w.target.value;d&&await d(w,k);const E=m.current.getColumn(i);let T=k;E.valueParser&&(T=E.valueParser(k,m.current.getRow(r),E,m)),g(T),m.current.setEditCellValue({id:r,field:i,value:T,debounceMs:c,unstable_skipValueParser:!0},w)},[m,c,i,r,d]),S=m.current.unstable_getEditCellMeta(r,i);return b.useEffect(()=>{(S==null?void 0:S.changeReason)!=="debouncedSetEditCellValue"&&g(o)},[S,o]),Rt(()=>{a&&f.current.focus()},[a]),h.jsx(B7,z({inputRef:f,className:v.root,ownerState:n,fullWidth:!0,type:l.type==="number"?l.type:"text",value:y!=null?y:"",onChange:x,endAdornment:u?h.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},p,{ref:t}))});process.env.NODE_ENV!=="production"&&(ow.propTypes={api:s.object.isRequired,cellMode:s.oneOf(["edit","view"]).isRequired,changeReason:s.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:s.object.isRequired,debounceMs:s.number,field:s.string.isRequired,formattedValue:s.any,hasFocus:s.bool.isRequired,id:s.oneOfType([s.number,s.string]).isRequired,isEditable:s.bool,isProcessingProps:s.bool,isValidating:s.bool,onValueChange:s.func,row:s.any.isRequired,rowNode:s.object.isRequired,tabIndex:s.oneOf([-1,0]).isRequired,value:s.any});const V7=e=>h.jsx(ow,z({},e)),Tr=e=>e.rows,Aa=Ue(Tr,e=>e.totalRowCount),H7=Ue(Tr,e=>e.loading),G7=Ue(Tr,e=>e.totalTopLevelRowCount),mr=Ue(Tr,e=>e.dataRowIdToModelLookup),Hy=Ue(Tr,e=>e.dataRowIdToIdLookup),ln=Ue(Tr,e=>e.tree),W7=Ue(Tr,e=>e.groupsToFetch),U7=Ue(Tr,e=>e.groupingName),Gy=Ue(Tr,e=>e.treeDepths),Hs=yt(Tr,e=>{var n;const t=Object.entries(e.treeDepths);return t.length===0?1:((n=t.filter(([,r])=>r>0).map(([r])=>Number(r)).sort((r,o)=>o-r)[0])!=null?n:0)+1}),Pl=Ue(Tr,e=>e.dataRowIds),q7=Ue(Tr,e=>e==null?void 0:e.additionalRowGroups),_i=yt(q7,e=>{var n,r,o,i;const t=e==null?void 0:e.pinnedRows;return{bottom:(r=(n=t==null?void 0:t.bottom)==null?void 0:n.map(l=>{var a;return{id:l.id,model:(a=l.model)!=null?a:{}}}))!=null?r:[],top:(i=(o=t==null?void 0:t.top)==null?void 0:o.map(l=>{var a;return{id:l.id,model:(a=l.model)!=null?a:{}}}))!=null?i:[]}}),sw=Ue(_i,e=>{var t,n;return(((t=e==null?void 0:e.top)==null?void 0:t.length)||0)+(((n=e==null?void 0:e.bottom)==null?void 0:n.length)||0)}),iw=(e,t)=>t&&e.length>1?(process.env.NODE_ENV!=="production"&&br(["MUI X: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the Data Grid, this prop is always `true`."],"error"),[e[0]]):e,Wy=(e,t)=>n=>z({},n,{sorting:z({},n.sorting,{sortModel:iw(e,t)})}),K7=e=>e==="desc",Y7=(e,t)=>{const n=t.current.getColumn(e.field);if(!n||e.sort===null)return null;let r;return n.getSortComparator?r=n.getSortComparator(e.sort):r=K7(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator,r?{getSortCellParams:i=>({id:i,field:n.field,rowNode:ln(t)[i],value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}:null},X7=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const l=t.params[i],a=n.params[i];return r=o.comparator(l.value,a.value,l,a),r},0),Z7=(e,t)=>{const n=e.map(r=>Y7(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>X7(n,o,i)).map(o=>o.node.id)},Uy=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},fh=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,Q7=new Intl.Collator,J7=(e,t)=>{const n=fh(e,t);return n!==null?n:typeof e=="string"?Q7.compare(e.toString(),t.toString()):e-t},lw=(e,t)=>{const n=fh(e,t);return n!==null?n:Number(e)-Number(t)},aw=(e,t)=>{const n=fh(e,t);return n!==null?n:e>t?1:e<t?-1:0},eF=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps","variant"];function Zn(e){var k;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,tabIndex:l,disabled:a,clearButton:c,InputProps:u,variant:d="standard"}=e,p=Be(e,eF),m=Jn(),[f,y]=b.useState(lp(t.value)),[g,v]=b.useState(!1),x=xt(),S=Le(),w=b.useCallback(E=>{const T=lp(E.target.value);y(T),v(!0),m.start(S.filterDebounceMs,()=>{const N=z({},t,{value:r==="number"&&!Number.isNaN(Number(T))?Number(T):T,fromInput:x});n(N),v(!1)})},[m,S.filterDebounceMs,t,r,x,n]);return b.useEffect(()=>{(t.fromInput!==x||t.value==null)&&y(lp(t.value))},[x,t]),h.jsx(S.slots.baseTextField,z({id:x,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:f!=null?f:"",onChange:w,variant:d,type:r||"text",InputProps:z({},g||c?{endAdornment:g?h.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):c}:{},{disabled:a},u,{inputProps:z({tabIndex:l},u==null?void 0:u.inputProps)}),InputLabelProps:{shrink:!0},inputRef:i},p,(k=S.slotProps)==null?void 0:k.baseTextField))}function lp(e){if(!(e==null||e===""))return String(e)}process.env.NODE_ENV!=="production"&&(Zn.propTypes={apiRef:s.shape({current:s.object.isRequired}).isRequired,applyValue:s.func.isRequired,clearButton:s.node,focusElementRef:s.oneOfType([s.func,s.object]),isFilterActive:s.bool,item:s.shape({field:s.string.isRequired,id:s.oneOfType([s.number,s.string]),operator:s.string.isRequired,value:s.any}).isRequired});function cw(e){return typeof e=="number"&&!Number.isNaN(e)}function tF(e){return typeof e=="function"}function mh(e){return typeof e=="object"&&e!==null}function nF(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}function su(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const rr=(e,t,n)=>Math.max(t,Math.min(n,e));function qy(e,t){return Array.from({length:t-e}).map((n,r)=>e+r)}function Uo(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(!Uo(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;for(let i=0;i<o.length;i+=1){const l=o[i];if(!Uo(l[1],t.get(l[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let o=0;o<r;o+=1)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(let o=0;o<r;o+=1){const i=n[o];if(!Uo(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function rF(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function oF(e){const t=rF(e);return(n,r)=>n+(r-n)*t()}function uw(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const ys=(e,t)=>n=>{e&&t(n)},sF=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],iF=["key"];function hh(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,color:l,error:a,helperText:c,size:u,variant:d="standard"}=e,p=Be(e,sF),m={color:l,error:a,helperText:c,size:u,variant:d},[f,y]=b.useState(t.value||[]),g=xt(),v=Le();b.useEffect(()=>{var w;const S=(w=t.value)!=null?w:[];y(S.map(String))},[t.value]);const x=b.useCallback((S,w)=>{y(w.map(String)),n(z({},t,{value:[...w.map(k=>r==="number"?Number(k):k)]}))},[n,t,r]);return h.jsx(Bm,z({multiple:!0,freeSolo:!0,options:[],filterOptions:(S,w)=>{const{inputValue:k}=w;return k==null||k===""?[]:[k]},id:g,value:f,onChange:x,renderTags:(S,w)=>S.map((k,E)=>{const T=w({index:E}),{key:N}=T,P=Be(T,iF);return h.jsx(v.slots.baseChip,z({variant:"outlined",size:"small",label:k},P),N)}),renderInput:S=>{var w;return h.jsx(v.slots.baseTextField,z({},S,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:z({},S.InputLabelProps,{shrink:!0}),inputRef:i,type:r||"text"},m,(w=v.slotProps)==null?void 0:w.baseTextField))}},p))}process.env.NODE_ENV!=="production"&&(hh.propTypes={apiRef:s.shape({current:s.object.isRequired}).isRequired,applyValue:s.func.isRequired,focusElementRef:s.oneOfType([s.func,s.object]),item:s.shape({field:s.string.isRequired,id:s.oneOfType([s.number,s.string]),operator:s.string.isRequired,value:s.any}).isRequired,type:s.oneOf(["date","datetime-local","number","text"])});var co=(function(e){return e.Cell="cell",e.Row="row",e})(co||{}),St=(function(e){return e.Edit="edit",e.View="view",e})(St||{}),Gt=(function(e){return e.Edit="edit",e.View="view",e})(Gt||{}),Ln=(function(e){return e.And="and",e.Or="or",e})(Ln||{}),bo=(function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e})(bo||{}),Rr=(function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e})(Rr||{}),$o=(function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e})($o||{}),qr=(function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e})(qr||{});function dw(e){return e.field!==void 0}const pw={filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},la=()=>({items:[],logicOperator:Ln.And,quickFilterValues:[],quickFilterLogicOperator:Ln.And});function fw(e){return{current:e.current.getPublicApi()}}let No=(function(e){return e.LEFT="left",e.RIGHT="right",e})({});const iu={left:[],right:[]},mw=e=>e.isRtl,so=e=>e.columns,Co=Ue(so,e=>e.orderedFields),Oo=Ue(so,e=>e.lookup),yr=yt(Co,Oo,(e,t)=>e.map(n=>t[n])),hr=Ue(so,e=>e.columnVisibilityModel),Xt=yt(yr,hr,(e,t)=>e.filter(n=>t[n.field]!==!1)),zi=yt(Xt,e=>e.map(t=>t.field)),hw=e=>e.pinnedColumns;yt(hw,Co,mw,(e,t,n)=>gw(e,t,n));const Bi=yt(so,hw,zi,mw,(e,t,n,r)=>{const o=gw(t,n,r);return{left:o.left.map(l=>e.lookup[l]),right:o.right.map(l=>e.lookup[l])}});function gw(e,t,n){var a,c;if(!Array.isArray(e.left)&&!Array.isArray(e.right)||((a=e.left)==null?void 0:a.length)===0&&((c=e.right)==null?void 0:c.length)===0)return iu;const r=(u,d)=>Array.isArray(u)?u.filter(p=>d.includes(p)):[],o=r(e.left,t),i=t.filter(u=>!o.includes(u)),l=r(e.right,i);return n?{left:l,right:o}:{left:o,right:l}}const ss=yt(Xt,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),bw=yt(yr,e=>e.filter(t=>t.filterable)),lF=yt(yr,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),aF=yt(yr,e=>e.some(t=>t.colSpan!==void 0));let cl;function cF(){if(cl!==void 0)return cl;try{cl=new Function("return true")()}catch(e){cl=!1}return cl}const gf=(e,t)=>{const n=z({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=Oo(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},gh=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(process.env.NODE_ENV!=="production"&&br(["MUI X: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the Data Grid, this prop is always `true`."],"error"),o=[e.items[0]]):o=e.items;const i=r&&o.some(a=>a.id==null),l=o.some(a=>a.operator==null);return process.env.NODE_ENV!=="production"&&i&&br("MUI X: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),process.env.NODE_ENV!=="production"&&l&&br("MUI X: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),l||i?z({},e,{items:o.map(a=>gf(a,n))}):e.items!==o?z({},e,{items:o}):e},Ky=(e,t,n)=>r=>z({},r,{filterModel:gh(e,t,n)}),aa=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,yw=(e,t)=>{var d;if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){const p=n.valueParser;r=Array.isArray(e.value)?(d=e.value)==null?void 0:d.map(m=>p(m,void 0,n,t)):p(e.value,void 0,n,t)}else r=e.value;const{ignoreDiacritics:o}=t.current.rootProps;o&&(r=aa(r));const i=z({},e,{value:r}),l=n.filterOperators;if(!(l!=null&&l.length))throw new Error(`MUI X: No filter operators found for column '${n.field}'.`);const a=l.find(p=>p.value===i.operator);if(!a)throw new Error(`MUI X: No filter operator found for column '${n.field}' and operator value '${i.operator}'.`);const c=fw(t),u=a.getApplyFilterFn(i,n);return typeof u!="function"?null:{item:i,fn:p=>{let m=t.current.getRowValue(p,n);return o&&(m=aa(m)),u(m,p,n,c)}}};let Yy=1;const uF=(e,t,n)=>{const{items:r}=e,o=r.map(a=>yw(a,t)).filter(a=>!!a);if(o.length===0)return null;if(n||!cF())return(a,c)=>{const u={};for(let d=0;d<o.length;d+=1){const p=o[d];(!c||c(p.item.field))&&(u[p.item.id]=p.fn(a))}return u};const i=new Function("appliers","row","shouldApplyFilter",`"use strict";
|
|
408
|
+
${o.map((a,c)=>`const shouldApply${c} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(a.item.field)});`).join(`
|
|
409
|
+
`)}
|
|
410
|
+
|
|
411
|
+
const result$$ = {
|
|
412
|
+
${o.map((a,c)=>` ${JSON.stringify(String(a.item.id))}: !shouldApply${c} ? false : appliers[${c}].fn(row),`).join(`
|
|
413
|
+
`)}
|
|
414
|
+
};
|
|
415
|
+
|
|
416
|
+
return result$$;`.replaceAll("$$",String(Yy)));return Yy+=1,(a,c)=>i(o,a,c)},vw=e=>{var t;return(t=e.quickFilterExcludeHiddenColumns)!=null?t:!0},dF=(e,t)=>{var a,c;const n=(c=(a=e.quickFilterValues)==null?void 0:a.filter(Boolean))!=null?c:[];if(n.length===0)return null;const r=vw(e)?zi(t):Co(t),o=[],{ignoreDiacritics:i}=t.current.rootProps,l=fw(t);return r.forEach(u=>{const d=t.current.getColumn(u),p=d==null?void 0:d.getApplyQuickFilterFn;p&&o.push({column:d,appliers:n.map(m=>{const f=i?aa(m):m;return{fn:p(f,d,l)}})})}),function(d,p){const m={};e:for(let f=0;f<n.length;f+=1){const y=n[f];for(let g=0;g<o.length;g+=1){const{column:v,appliers:x}=o[g],{field:S}=v;if(p&&!p(S))continue;const w=x[f];let k=t.current.getRowValue(d,v);if(w.fn===null)continue;if(i&&(k=aa(k)),w.fn(k,d,v,l)){m[y]=!0;continue e}}m[y]=!1}return m}},pF=(e,t,n)=>{const r=uF(e,t,n),o=dF(e,t);return function(l,a,c){var u,d;c.passingFilterItems=(u=r==null?void 0:r(l,a))!=null?u:null,c.passingQuickFilterValues=(d=o==null?void 0:o(l,a))!=null?d:null}},Xy=e=>e!=null,fF=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>yw(r,t)!==null)),e.cleanedFilterItems),mF=(e,t,n,r,o)=>{var c,u;const i=fF(o,r,n.items),l=e.filter(Xy),a=t.filter(Xy);if(l.length>0){const d=m=>l.some(f=>f[m.id]);if(((c=n.logicOperator)!=null?c:la().logicOperator)===Ln.And){if(!i.every(d))return!1}else if(!i.some(d))return!1}if(a.length>0&&n.quickFilterValues!=null){const d=m=>a.some(f=>f[m]);if(((u=n.quickFilterLogicOperator)!=null?u:la().quickFilterLogicOperator)===Ln.And){if(!n.quickFilterValues.every(d))return!1}else if(!n.quickFilterValues.some(d))return!1}return!0},hF=e=>{if(!e)return null;const t=new RegExp(su(e),"i");return(n,r,o,i)=>{let l=i.current.getRowFormattedValue(r,o);return i.current.ignoreDiacritics&&(l=aa(l)),l!=null?t.test(l.toString()):!1}},Zy=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new RegExp(su(r),"i");return i=>{if(i==null)return t;const l=o.test(String(i));return t?!l:l}},Qy=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return i=>{if(i==null)return t;const l=o.compare(r,i.toString())===0;return t?!l:l}},Jy=e=>()=>t=>{const n=t===""||t==null;return e?!n:n},gF=(e=!1)=>[{value:"contains",getApplyFilterFn:Zy(e,!1),InputComponent:Zn},{value:"doesNotContain",getApplyFilterFn:Zy(e,!0),InputComponent:Zn},{value:"equals",getApplyFilterFn:Qy(e,!1),InputComponent:Zn},{value:"doesNotEqual",getApplyFilterFn:Qy(e,!0),InputComponent:Zn},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${su(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Zn},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${su(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Zn},{value:"isEmpty",getApplyFilterFn:Jy(!1),requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:Jy(!0),requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:hh}],Fr={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:J7,type:"string",align:"left",filterOperators:gF(),renderEditCell:V7,getApplyQuickFilterFn:hF},bF=["open","target","onClose","children","position","className","onExited"],yF=e=>{const{classes:t}=e;return ye({root:["menu"]},at,t)},vF=ne(ns,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${B.menuList}`]:{outline:0}})),xF={"bottom-start":"top left","bottom-end":"top right"};function sd(e){var g;const{open:t,target:n,onClose:r,children:o,position:i,className:l,onExited:a}=e,c=Be(e,bF),u=tt(),d=Le(),p=yF(d),m=b.useRef(null);Rt(()=>{var v,x;t?m.current=document.activeElement instanceof HTMLElement?document.activeElement:null:((x=(v=m.current)==null?void 0:v.focus)==null||x.call(v),m.current=null)},[t]),b.useEffect(()=>{const v=t?"menuOpen":"menuClose";u.current.publishEvent(v,{target:n})},[u,t,n]);const f=v=>x=>{v&&v(),a&&a(x)},y=v=>{v.target&&(n===v.target||n!=null&&n.contains(v.target))||r(v)};return h.jsx(vF,z({as:d.slots.basePopper,className:ue(p.root,l),ownerState:d,open:t,anchorEl:n,transition:!0,placement:i},c,(g=d.slotProps)==null?void 0:g.basePopper,{children:({TransitionProps:v,placement:x})=>h.jsx(na,{onClickAway:y,mouseEvent:"onMouseDown",children:h.jsx(Oi,z({},v,{style:{transformOrigin:xF[x]},onExited:f(v==null?void 0:v.onExited),children:h.jsx(Br,{children:o})}))})}))}process.env.NODE_ENV!=="production"&&(sd.propTypes={children:s.node,onClose:s.func.isRequired,onExited:s.func,open:s.bool.isRequired,position:s.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),target:xr});const CF=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],wF=e=>typeof e.getActions=="function";function xw(e){var R;const{colDef:t,id:n,hasFocus:r,tabIndex:o,position:i="bottom-end",focusElementRef:l}=e,a=Be(e,CF),[c,u]=b.useState(-1),[d,p]=b.useState(!1),m=tt(),f=b.useRef(null),y=b.useRef(null),g=b.useRef(!1),v=b.useRef({}),x=Nn(),S=xt(),w=xt(),k=Le();if(!wF(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const E=t.getActions(m.current.getRowParams(n)),T=E.filter(_=>!_.props.showInMenu),N=E.filter(_=>_.props.showInMenu),P=T.length+(N.length?1:0);b.useLayoutEffect(()=>{r||Object.entries(v.current).forEach(([_,V])=>{V==null||V.stop({},()=>{delete v.current[_]})})},[r]),b.useEffect(()=>{if(c<0||!f.current||c>=f.current.children.length)return;f.current.children[c].focus({preventScroll:!0})},[c]),b.useEffect(()=>{r||(u(-1),g.current=!1)},[r]),b.useImperativeHandle(l,()=>({focus(){if(!g.current){const _=E.findIndex(V=>!V.props.disabled);u(_)}}}),[E]),b.useEffect(()=>{c>=P&&u(P-1)},[c,P]);const O=()=>{p(!0),u(P-1),g.current=!0},L=()=>{p(!1)},$=_=>{_.stopPropagation(),_.preventDefault(),d?L():O()},C=_=>V=>{v.current[_]=V},j=(_,V)=>W=>{u(_),g.current=!0,V&&V(W)},F=_=>{if(P<=1)return;const V=(I,D)=>{var K;if(I<0||I>E.length)return I;const A=(D==="left"?-1:1)*(x?-1:1);return(K=E[I+A])!=null&&K.props.disabled?V(I+A,D):I+A};let W=c;_.key==="ArrowRight"?W=V(c,"right"):_.key==="ArrowLeft"&&(W=V(c,"left")),!(W<0||W>=P)&&W!==c&&(_.preventDefault(),_.stopPropagation(),u(W))},M=_=>{_.key==="Tab"&&_.preventDefault(),["Tab","Escape"].includes(_.key)&&L()};return h.jsxs("div",z({role:"menu",ref:f,tabIndex:-1,className:B.actionsCell,onKeyDown:F},a,{children:[T.map((_,V)=>b.cloneElement(_,{key:V,touchRippleRef:C(V),onClick:j(V,_.props.onClick),tabIndex:c===V?o:-1})),N.length>0&&w&&h.jsx(k.slots.baseIconButton,z({ref:y,id:w,"aria-label":m.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":d,"aria-controls":d?S:void 0,role:"menuitem",size:"small",onClick:$,touchRippleRef:C(w),tabIndex:c===T.length?o:-1},(R=k.slotProps)==null?void 0:R.baseIconButton,{children:h.jsx(k.slots.moreActionsIcon,{fontSize:"small"})})),N.length>0&&h.jsx(sd,{open:d,target:y.current,position:i,onClose:L,children:h.jsx(La,{id:S,className:B.menuList,onKeyDown:M,"aria-labelledby":w,variant:"menu",autoFocusItem:!0,children:N.map((_,V)=>b.cloneElement(_,{key:V,closeMenu:L}))})})]}))}process.env.NODE_ENV!=="production"&&(xw.propTypes={api:s.object,cellMode:s.oneOf(["edit","view"]).isRequired,colDef:s.object.isRequired,field:s.string.isRequired,focusElementRef:s.oneOfType([s.func,s.shape({current:s.shape({focus:s.func.isRequired})})]),formattedValue:s.any,hasFocus:s.bool.isRequired,id:s.oneOfType([s.number,s.string]).isRequired,isEditable:s.bool,position:s.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),row:s.any.isRequired,rowNode:s.object.isRequired,tabIndex:s.oneOf([-1,0]).isRequired,value:s.any});const SF=e=>h.jsx(xw,z({},e)),id="actions",kF=z({},Fr,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:SF,getApplyQuickFilterFn:void 0}),En="auto-generated-group-node-root",Mi=Symbol("mui.id_autogenerated"),EF=()=>({type:"group",id:En,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function TF(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI X: The Data Grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(`
|
|
417
|
+
`))}const ld=(e,t,n)=>{const r=t?t(e):e.id;return TF(r,e,n),r},jc=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={},l={};for(let a=0;a<e.length;a+=1){const c=e[a],u=ld(c,t);i[u]=c,l[u]=u,o.rows.push(u)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToIdLookup:l,dataRowIdToModelLookup:i}},Cw=({tree:e,rowCountProp:t=0})=>{const n=e[En];return Math.max(t,n.children.length+(n.footerId==null?0:1))},ww=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o,previousGroupsToFetch:i})=>{const l=e.current.caches.rows,{tree:a,treeDepths:c,dataRowIds:u,groupingName:d,groupsToFetch:p=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:l.updates,dataRowIdToIdLookup:l.dataRowIdToIdLookup,dataRowIdToModelLookup:l.dataRowIdToModelLookup,previousGroupsToFetch:i}),m=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:a,treeDepths:c,dataRowIdToIdLookup:l.dataRowIdToIdLookup,dataRowIds:u,dataRowIdToModelLookup:l.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},z({},m,{totalRowCount:Math.max(t,m.dataRowIds.length),totalTopLevelRowCount:Cw({tree:m.tree,rowCountProp:t}),groupingName:d,loading:n,groupsToFetch:p})},Ri=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,bh=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let i=0;i<r.children.length;i+=1){const l=r.children[i];(!n||!Ri(e[l]))&&o.push(l);const a=bh(e,l,n);for(let c=0;c<a.length;c+=1)o.push(a[c])}return!n&&r.footerId!=null&&o.push(r.footerId),o},e1=({previousCache:e,getRowId:t,updates:n,groupKeys:r})=>{var d,p,m;if(e.updates.type==="full")throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const o=new Map;n.forEach(f=>{const y=ld(f,t,"A row was provided without id when calling updateRows():");o.has(y)?o.set(y,z({},o.get(y),f)):o.set(y,f)});const i={type:"partial",actions:{insert:[...(d=e.updates.actions.insert)!=null?d:[]],modify:[...(p=e.updates.actions.modify)!=null?p:[]],remove:[...(m=e.updates.actions.remove)!=null?m:[]]},idToActionLookup:z({},e.updates.idToActionLookup),groupKeys:r},l=z({},e.dataRowIdToModelLookup),a=z({},e.dataRowIdToIdLookup),c={insert:{},modify:{},remove:{}};o.forEach((f,y)=>{const g=i.idToActionLookup[y];if(f._action==="delete"){if(g==="remove"||!l[y])return;g!=null&&(c[g][y]=!0),i.actions.remove.push(y),delete l[y],delete a[y];return}const v=l[y];if(v){g==="remove"?(c.remove[y]=!0,i.actions.modify.push(y)):g==null&&i.actions.modify.push(y),l[y]=z({},v,f);return}g==="remove"?(c.remove[y]=!0,i.actions.insert.push(y)):g==null&&i.actions.insert.push(y),l[y]=f,a[y]=y});const u=Object.keys(c);for(let f=0;f<u.length;f+=1){const y=u[f],g=c[y];Object.keys(g).length>0&&(i.actions[y]=i.actions[y].filter(v=>!g[v]))}return{dataRowIdToModelLookup:l,dataRowIdToIdLookup:a,updates:i,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}},Sw="var(--DataGrid-overlayHeight, calc(var(--height) * 2))";function t1(e,t,n){const r=[];return t.forEach(o=>{const i=ld(o,n,"A row was provided without id when calling updateRows():"),l=e.current.getRowNode(i);if((l==null?void 0:l.type)==="pinnedRow"){const a=e.current.caches.pinnedRows,c=a.idLookup[i];c&&(a.idLookup[i]=z({},c,o))}else r.push(o)}),r}let n1=!1;const kw=(e,t,n)=>typeof e=="number"&&e>0?e:(process.env.NODE_ENV!=="production"&&!n1&&typeof e!="undefined"&&e!==null&&(console.warn(n),n1=!0),t),IF=["MUI X: The `rowHeight` prop should be a number greater than 0.","The default value will be used instead."].join(`
|
|
418
|
+
`),PF=["MUI X: The `getRowHeight` prop should return a number greater than 0 or 'auto'.","The default value will be used instead."].join(`
|
|
419
|
+
`),OF="__tree_data_group__",Ew="__row_group_by_columns_group__",ad="__detail_panel_toggle__";let rt=(function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.VIRTUAL=3]="VIRTUAL",e})({});const MF=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],RF=e=>{const{classes:t}=e;return ye({root:["booleanCell"]},at,t)};function Tw(e){const{value:t,rowNode:n}=e,r=Be(e,MF),o=tt(),i=Le(),l={classes:i.classes},a=RF(l),u=me(o,Hs)>0&&n.type==="group"&&i.treeData===!1,d=b.useMemo(()=>t?i.slots.booleanCellTrueIcon:i.slots.booleanCellFalseIcon,[i.slots.booleanCellFalseIcon,i.slots.booleanCellTrueIcon,t]);return u&&t===void 0?null:h.jsx(d,z({fontSize:"small",className:a.root,titleAccess:o.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},r))}process.env.NODE_ENV!=="production"&&(Tw.propTypes={api:s.object.isRequired,cellMode:s.oneOf(["edit","view"]).isRequired,colDef:s.object.isRequired,field:s.string.isRequired,focusElementRef:s.oneOfType([s.func,s.shape({current:s.shape({focus:s.func.isRequired})})]),formattedValue:s.any,hasFocus:s.bool.isRequired,hideDescendantCount:s.bool,id:s.oneOfType([s.number,s.string]).isRequired,isEditable:s.bool,row:s.any.isRequired,rowNode:s.object.isRequired,tabIndex:s.oneOf([-1,0]).isRequired,value:s.any});const jF=b.memo(Tw),LF=e=>e.field!==Ew&&Ri(e.rowNode)?"":h.jsx(jF,z({},e)),$F=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],NF=e=>{const{classes:t}=e;return ye({root:["editBooleanCell"]},at,t)};function Iw(e){var x;const{id:t,value:n,field:r,className:o,hasFocus:i,onValueChange:l}=e,a=Be(e,$F),c=tt(),u=b.useRef(null),d=xt(),[p,m]=b.useState(n),f=Le(),y={classes:f.classes},g=NF(y),v=b.useCallback(async S=>{const w=S.target.checked;l&&await l(S,w),m(w),await c.current.setEditCellValue({id:t,field:r,value:w},S)},[c,r,t,l]);return b.useEffect(()=>{m(n)},[n]),Rt(()=>{i&&u.current.focus()},[i]),h.jsx("label",z({htmlFor:d,className:ue(g.root,o)},a,{children:h.jsx(f.slots.baseCheckbox,z({id:d,inputRef:u,checked:!!p,onChange:v,size:"small"},(x=f.slotProps)==null?void 0:x.baseCheckbox))}))}process.env.NODE_ENV!=="production"&&(Iw.propTypes={api:s.object.isRequired,cellMode:s.oneOf(["edit","view"]).isRequired,changeReason:s.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:s.object.isRequired,field:s.string.isRequired,formattedValue:s.any,hasFocus:s.bool.isRequired,id:s.oneOfType([s.number,s.string]).isRequired,isEditable:s.bool,isProcessingProps:s.bool,isValidating:s.bool,onValueChange:s.func,row:s.any.isRequired,rowNode:s.object.isRequired,tabIndex:s.oneOf([-1,0]).isRequired,value:s.any});const FF=e=>h.jsx(Iw,z({},e)),AF=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],Lc=e=>{if(String(e).toLowerCase()==="true")return!0;if(String(e).toLowerCase()==="false")return!1},DF=ne("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function Pw(e){var k,E,T,N;const{item:t,applyValue:n,apiRef:r,focusElementRef:o,clearButton:i,tabIndex:l,label:a,variant:c="standard"}=e,u=Be(e,AF),[d,p]=b.useState(Lc(t.value)),m=Le(),f=xt(),y=xt(),g=((k=m.slotProps)==null?void 0:k.baseSelect)||{},v=(E=g.native)!=null?E:!1,x=((T=m.slotProps)==null?void 0:T.baseSelectOption)||{},S=b.useCallback(P=>{const O=Lc(P.target.value);p(O),n(z({},t,{value:O}))},[n,t]);b.useEffect(()=>{p(Lc(t.value))},[t.value]);const w=a!=null?a:r.current.getLocaleText("filterPanelInputLabel");return h.jsxs(DF,{children:[h.jsxs(m.slots.baseFormControl,{fullWidth:!0,children:[h.jsx(m.slots.baseInputLabel,z({},(N=m.slotProps)==null?void 0:N.baseInputLabel,{id:f,shrink:!0,variant:c,children:w})),h.jsxs(m.slots.baseSelect,z({labelId:f,id:y,label:w,value:d===void 0?"":String(d),onChange:S,variant:c,notched:c==="outlined"?!0:void 0,native:v,displayEmpty:!0,inputProps:{ref:o,tabIndex:l}},u,g,{children:[h.jsx(m.slots.baseSelectOption,z({},x,{native:v,value:"",children:r.current.getLocaleText("filterValueAny")})),h.jsx(m.slots.baseSelectOption,z({},x,{native:v,value:"true",children:r.current.getLocaleText("filterValueTrue")})),h.jsx(m.slots.baseSelectOption,z({},x,{native:v,value:"false",children:r.current.getLocaleText("filterValueFalse")}))]}))]}),i]})}process.env.NODE_ENV!=="production"&&(Pw.propTypes={apiRef:s.shape({current:s.object.isRequired}).isRequired,applyValue:s.func.isRequired,clearButton:s.node,focusElementRef:Fn,isFilterActive:s.bool,item:s.shape({field:s.string.isRequired,id:s.oneOfType([s.number,s.string]),operator:s.string.isRequired,value:s.any}).isRequired});const _F=()=>[{value:"is",getApplyFilterFn:e=>{const t=Lc(e.value);return t===void 0?null:n=>!!n===t},InputComponent:Pw}],zF=(e,t,n,r)=>e?r.current.getLocaleText("booleanCellTrueLabel"):r.current.getLocaleText("booleanCellFalseLabel"),BF=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},Ow=z({},Fr,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:LF,renderEditCell:FF,sortComparator:lw,valueFormatter:zF,filterOperators:_F(),getApplyQuickFilterFn:void 0,aggregable:!1,pastedValueParser:e=>BF(e)}),Mw=e=>e.sorting,Vi=Ue(Mw,e=>e.sortedRows),yh=yt(Vi,mr,ln,(e,t,n)=>e.reduce((r,o)=>{const i=t[o];if(i)r.push({id:o,model:i});else{const l=n[o];l&&Ri(l)&&r.push({id:o,model:{[Mi]:o}})}return r},[])),jr=Ue(Mw,e=>e.sortModel),VF=yt(jr,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{}));yt(Vi,e=>e.reduce((t,n,r)=>(t[n]=r,t),Object.create(null)));const cd=e=>e.filter,yn=Ue(cd,e=>e.filterModel),HF=Ue(yn,e=>e.quickFilterValues),GF=e=>e.visibleRowsLookup,Hi=Ue(cd,e=>e.filteredRowsLookup);Ue(cd,e=>e.filteredChildrenCountLookup);Ue(cd,e=>e.filteredDescendantCountLookup);const is=yt(GF,yh,Hs,yn,HF,(e,t,n,r,o)=>n<2&&!r.items.length&&!(o!=null&&o.length)?t:t.filter(i=>e[i.id]!==!1)),yi=yt(is,e=>e.map(t=>t.id)),Rw=yt(Hi,yh,(e,t)=>t.filter(n=>e[n.id]!==!1)),jw=yt(Rw,e=>e.map(t=>t.id));yt(yi,ln,(e,t)=>{const n={};let r=0;return e.reduce((o,i)=>{const l=t[i];return n[l.depth]||(n[l.depth]=0),l.depth>r&&(n[l.depth]=0),r=l.depth,n[l.depth]+=1,o[i]=n[l.depth],o},{})});const Lw=yt(is,ln,Hs,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),vh=Ue(is,e=>e.length),xh=Ue(Lw,e=>e.length),WF=Ue(Rw,e=>e.length);Ue(WF,xh,(e,t)=>e-t);const $w=yt(yn,Oo,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var l,a;if(!r.field)return!1;const o=t[r.field];if(!(o!=null&&o.filterOperators)||((l=o==null?void 0:o.filterOperators)==null?void 0:l.length)===0)return!1;const i=o.filterOperators.find(c=>c.value===r.operator);return i?!i.InputComponent||r.value!=null&&((a=r.value)==null?void 0:a.toString())!=="":!1})}),UF=yt($w,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),Yn=e=>e.rowSelection,qF=Ue(Yn,e=>e.length),KF=yt(Yn,mr,(e,t)=>new Map(e.map(n=>[n,t[n]]))),qo=yt(Yn,e=>e.reduce((t,n)=>(t[n]=n,t),{}));function Nw(e,t){var c;const n=ln(e),r=Vi(e),o=Hi(e),i=n[t];if(!i||i.type!=="group")return[];const l=[],a=r.findIndex(u=>u===t)+1;for(let u=a;u<r.length&&((c=n[r[u]])==null?void 0:c.depth)>i.depth;u+=1){const d=r[u];o[d]!==!1&&e.current.isRowSelectable(d)&&l.push(d)}return l}function YF(e,t){return Ue(ln,Vi,Hi,qo,(n,r,o,i)=>{var d;const l=n[e];if(!l||l.type!=="group")return{isIndeterminate:!1,isChecked:i[e]===e};if(i[e]===e)return{isIndeterminate:!1,isChecked:!0};let a=0,c=0;const u=r.findIndex(p=>p===e)+1;for(let p=u;p<r.length&&((d=n[r[p]])==null?void 0:d.depth)>l.depth;p+=1){const m=r[p];o[m]!==!1&&(a+=1,i[m]!==void 0&&(c+=1))}return{isIndeterminate:c>0&&(c<a||i[e]===void 0),isChecked:t?c>0:i[e]===e}})}function Ch(e){return e.signature===nr.DataGrid?e.checkboxSelection&&e.disableMultipleRowSelection!==!0:!e.disableMultipleRowSelection}const XF=(e,t)=>{const n=[];let r=t;for(;r!=null&&r!==En;){const o=e[r];if(!o)return n;n.push(r),r=o.parent}return n},ZF=(e,t,n)=>{const r=e[n];if(!r)return[];const o=r.parent;return o==null?[]:e[o].children.filter(l=>l!==n&&t[l]!==!1)},ul=(e,t,n,r,o,i,l=new Set(Yn(e.current.state)))=>{const a=Hi(e),c=new Set([]);if(!(!r&&!o||a[n]===!1)){if(r){const u=t[n];(u==null?void 0:u.type)==="group"&&Nw(e,n).forEach(p=>{i(p),c.add(p)})}if(o){const u=p=>{if(!l.has(p)&&!c.has(p))return!1;const m=t[p];return m?m.type!=="group"?!0:m.children.every(u):!1},d=p=>{const m=ZF(t,a,p);if(m.length===0||m.every(u)){const f=t[p],y=f==null?void 0:f.parent;y!=null&&y!==En&&e.current.isRowSelectable(y)&&(i(y),c.add(y),d(y))}};d(n)}}},r1=(e,t,n,r,o,i)=>{const l=qo(e);if(!(!o&&!r)&&(o&&XF(t,n).forEach(c=>{l[c]===c&&i(c)}),r)){const a=t[n];(a==null?void 0:a.type)==="group"&&Nw(e,n).forEach(u=>{i(u)})}},QF=["field","id","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],JF=e=>{const{classes:t}=e;return ye({root:["checkboxInput"]},at,t)},Fw=ht(function(t,n){var P,O,L;const{field:r,id:o,rowNode:i,hasFocus:l,tabIndex:a}=t,c=Be(t,QF),u=tt(),d=Le(),p={classes:d.classes},m=JF(p),f=b.useRef(null),y=b.useRef(null),g=It(f,n),v=$=>{const C={value:$.target.checked,id:o};u.current.publishEvent("rowSelectionCheckboxChange",C,$)};b.useLayoutEffect(()=>{if(a===0){const $=u.current.getCellElement(o,r);$&&($.tabIndex=-1)}},[u,a,o,r]),b.useEffect(()=>{var $;if(l){const C=($=f.current)==null?void 0:$.querySelector("input");C==null||C.focus({preventScroll:!0})}else y.current&&y.current.stop({})},[l]);const x=b.useCallback($=>{$.key===" "&&$.stopPropagation()},[]),S=u.current.isRowSelectable(o),w=YF(o,(O=(P=d.rowSelectionPropagation)==null?void 0:P.parents)!=null?O:!1),{isIndeterminate:k,isChecked:E}=me(u,w,dh);if(i.type==="footer"||i.type==="pinnedRow")return null;const T=d.indeterminateCheckboxAction==="select"?E&&!k:E,N=u.current.getLocaleText(T?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return h.jsx(d.slots.baseCheckbox,z({tabIndex:a,checked:T,onChange:v,className:m.root,inputProps:{"aria-label":N,name:"select_row"},onKeyDown:x,indeterminate:k,disabled:!S,touchRippleRef:y},(L=d.slotProps)==null?void 0:L.baseCheckbox,c,{ref:g}))});process.env.NODE_ENV!=="production"&&(Fw.propTypes={api:s.object.isRequired,cellMode:s.oneOf(["edit","view"]).isRequired,colDef:s.object.isRequired,field:s.string.isRequired,focusElementRef:s.oneOfType([s.func,s.shape({current:s.shape({focus:s.func.isRequired})})]),formattedValue:s.any,hasFocus:s.bool.isRequired,id:s.oneOfType([s.number,s.string]).isRequired,isEditable:s.bool,row:s.any.isRequired,rowNode:s.object.isRequired,tabIndex:s.oneOf([-1,0]).isRequired,value:s.any});const e8=Fw,ud=e=>e.focus,jn=Ue(ud,e=>e.cell),t8=Ue(ud,e=>e.columnHeader);Ue(ud,e=>e.columnHeaderFilter);const lu=Ue(ud,e=>e.columnGroupHeader),dd=e=>e.tabIndex,wh=Ue(dd,e=>e.cell),Aw=Ue(dd,e=>e.columnHeader);Ue(dd,e=>e.columnHeaderFilter);const n8=Ue(dd,e=>e.columnGroupHeader);function Je(e,t,n){const r=b.useRef(!0);Rt(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}function fn(e,t){const n=b.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}const Dw=(e,t,n,r,o)=>{const i=fn(e,"useNativeEventListener");Et(e,"rootMount",()=>{const l=typeof t=="function"?t():t.current;if(!(!l||!n||!r))return i.debug(`Binding native ${n} event`),l.addEventListener(n,r,o),()=>{i.debug(`Clearing native ${n} event`),l.removeEventListener(n,r,o)}})},Da=e=>{const t=b.useRef(!0);t.current&&(t.current=!1,e())},r8=()=>{},o8=(e,t)=>{const n=b.useRef(!1);Rt(()=>n.current||!e?r8:(n.current=!0,t()),[n.current||e])},s8=100,i8=e=>e?0:100,_w=(e,t,n)=>t>0&&e>0?Math.ceil(e/t):e===-1?n+2:0,zw=e=>({page:0,pageSize:e?0:100}),l8=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),Bw=(e,t)=>{if(t===nr.DataGrid&&e>s8)throw new Error(["MUI X: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
|
|
420
|
+
`))},a8=-1,_a=e=>e.pagination,Vw=Ue(_a,e=>e.enabled&&e.paginationMode==="client"),Pn=Ue(_a,e=>e.paginationModel),fi=Ue(_a,e=>e.rowCount),Ol=Ue(_a,e=>e.meta),c8=Ue(Pn,e=>e.page),Hw=Ue(Pn,e=>e.pageSize),Gw=Ue(Pn,fi,(e,t)=>_w(t,e.pageSize,e.page)),Sh=yt(Vw,Pn,ln,Hs,is,Lw,(e,t,n,r,o,i)=>{var y;if(!e)return null;const l=i.length,a=Math.min(t.pageSize*t.page,l-1),c=t.pageSize===a8?l-1:Math.min(a+t.pageSize-1,l-1);if(a===-1||c===-1)return null;if(r<2)return{firstRowIndex:a,lastRowIndex:c};const u=i[a],d=c-a+1,p=o.findIndex(g=>g.id===u.id);let m=p,f=0;for(;m<o.length&&f<=d;){const g=o[m],v=(y=n[g.id])==null?void 0:y.depth;v===void 0?m+=1:((f<d||v>0)&&(m+=1),v===0&&(f+=1))}return{firstRowIndex:p,lastRowIndex:m-1}}),u8=yt(is,Sh,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),Ww=yt(yi,Sh,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),za=yt(Vw,Sh,u8,is,(e,t,n,r)=>e?{rows:n,range:t,rowToIndexMap:n.reduce((o,i,l)=>(o.set(i.model,l),o),new Map)}:{rows:r,range:r.length===0?null:{firstRowIndex:0,lastRowIndex:r.length-1},rowToIndexMap:r.reduce((o,i,l)=>(o.set(i.model,l),o),new Map)}),d8=["field","colDef"],p8=e=>{const{classes:t}=e;return ye({root:["checkboxInput"]},at,t)},Uw=ht(function(t,n){var P;const r=Be(t,d8),[,o]=b.useState(!1),i=tt(),l=Le(),a={classes:l.classes},c=p8(a),u=me(i,Aw),d=me(i,Yn),p=me(i,yi),m=me(i,Ww),f=b.useMemo(()=>typeof l.isRowSelectable!="function"?d:d.filter(O=>l.keepNonExistentRowsSelected?!0:i.current.getRow(O)?l.isRowSelectable(i.current.getRowParams(O)):!1),[i,l.isRowSelectable,d,l.keepNonExistentRowsSelected]),y=b.useMemo(()=>(!l.pagination||!l.checkboxSelectionVisibleOnly||l.paginationMode==="server"?p:m).reduce((L,$)=>(L[$]=!0,L),{}),[l.pagination,l.paginationMode,l.checkboxSelectionVisibleOnly,m,p]),g=b.useMemo(()=>f.filter(O=>y[O]).length,[f,y]),v=g>0&&g<Object.keys(y).length,x=g>0,S=O=>{const L={value:O.target.checked};i.current.publishEvent("headerSelectionCheckboxChange",L)},w=u!==null&&u.field===t.field?0:-1;b.useLayoutEffect(()=>{const O=i.current.getColumnHeaderElement(t.field);w===0&&O&&(O.tabIndex=-1)},[w,i,t.field]);const k=b.useCallback(O=>{O.key===" "&&i.current.publishEvent("headerSelectionCheckboxChange",{value:!x})},[i,x]),E=b.useCallback(()=>{o(O=>!O)},[]);b.useEffect(()=>i.current.subscribeEvent("rowSelectionChange",E),[i,E]);const T=l.indeterminateCheckboxAction==="select"?x&&!v:x,N=i.current.getLocaleText(T?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return h.jsx(l.slots.baseCheckbox,z({indeterminate:v,checked:T,onChange:S,className:c.root,inputProps:{"aria-label":N,name:"select_all_rows"},tabIndex:w,onKeyDown:k,disabled:!Ch(l)},(P=l.slotProps)==null?void 0:P.baseCheckbox,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(Uw.propTypes={colDef:s.object.isRequired,field:s.string.isRequired});const Ba=(e,t)=>Mi in t?t[Mi]:e.props.getRowId?e.props.getRowId(t):t.id,cr="__check__",Gi=z({},Ow,{type:"custom",field:cr,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,display:"flex",valueGetter:(e,t,n,r)=>{const o=qo(r),i=Ba(r.current.state,t);return o[i]!==void 0},renderHeader:e=>h.jsx(Uw,z({},e)),renderCell:e=>h.jsx(e8,z({},e))}),f8=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function o1(e,t){if(e==null)return"";const n=new Date(e);return Number.isNaN(n.getTime())?"":t==="date"?n.toISOString().substring(0,10):t==="datetime-local"?(n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n.toISOString().substring(0,19)):n.toISOString().substring(0,10)}function hs(e){var w;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,InputProps:l,clearButton:a,tabIndex:c,disabled:u}=e,d=Be(e,f8),p=Jn(),[m,f]=b.useState(()=>o1(t.value,r)),[y,g]=b.useState(!1),v=xt(),x=Le(),S=b.useCallback(k=>{p.clear();const E=k.target.value;f(E),g(!0),p.start(x.filterDebounceMs,()=>{const T=new Date(E);n(z({},t,{value:Number.isNaN(T.getTime())?void 0:T})),g(!1)})},[n,t,x.filterDebounceMs,p]);return b.useEffect(()=>{const k=o1(t.value,r);f(k)},[t.value,r]),h.jsx(x.slots.baseTextField,z({fullWidth:!0,id:v,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:m,onChange:S,variant:"standard",type:r||"text",InputLabelProps:{shrink:!0},inputRef:i,InputProps:z({},y||a?{endAdornment:y?h.jsx(x.slots.loadIcon,{fontSize:"small",color:"action"}):a}:{},{disabled:u},l,{inputProps:z({max:r==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:c},l==null?void 0:l.inputProps)})},d,(w=x.slotProps)==null?void 0:w.baseTextField))}process.env.NODE_ENV!=="production"&&(hs.propTypes={apiRef:s.shape({current:s.object.isRequired}).isRequired,applyValue:s.func.isRequired,clearButton:s.node,focusElementRef:s.oneOfType([s.func,s.object]),isFilterActive:s.bool,item:s.shape({field:s.string.isRequired,id:s.oneOfType([s.number,s.string]),operator:s.string.isRequired,value:s.any}).isRequired});function ei(e,t,n,r){if(!e.value)return null;const o=new Date(e.value);n?o.setSeconds(0,0):(o.setMinutes(o.getMinutes()+o.getTimezoneOffset()),o.setHours(0,0,0,0));const i=o.getTime();return l=>{if(!l)return!1;if(r)return t(l.getTime(),i);const a=new Date(l);return n?a.setSeconds(0,0):a.setHours(0,0,0,0),t(a.getTime(),i)}}const qw=e=>[{value:"is",getApplyFilterFn:t=>ei(t,(n,r)=>n===r,e),InputComponent:hs,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>ei(t,(n,r)=>n!==r,e),InputComponent:hs,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>ei(t,(n,r)=>n>r,e),InputComponent:hs,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>ei(t,(n,r)=>n>=r,e),InputComponent:hs,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>ei(t,(n,r)=>n<r,e,!e),InputComponent:hs,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>ei(t,(n,r)=>n<=r,e),InputComponent:hs,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>t=>t!=null,requiresFilterValue:!1}],m8=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],h8=ne(_s)({fontSize:"inherit"}),g8=e=>{const{classes:t}=e;return ye({root:["editInputCell"]},at,t)};function Kw(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,inputProps:l,onValueChange:a}=e,c=Be(e,m8),u=o.type==="dateTime",d=tt(),p=b.useRef(null),m=b.useMemo(()=>{let k;n==null?k=null:n instanceof Date?k=n:k=new Date((n!=null?n:"").toString());let E;return k==null||Number.isNaN(k.getTime())?E="":E=new Date(k.getTime()-k.getTimezoneOffset()*60*1e3).toISOString().substr(0,u?16:10),{parsed:k,formatted:E}},[n,u]),[f,y]=b.useState(m),v={classes:Le().classes},x=g8(v),S=b.useCallback(k=>{if(k==="")return null;const[E,T]=k.split("T"),[N,P,O]=E.split("-"),L=new Date;if(L.setFullYear(Number(N),Number(P)-1,Number(O)),L.setHours(0,0,0,0),T){const[$,C]=T.split(":");L.setHours(Number($),Number(C),0,0)}return L},[]),w=b.useCallback(async k=>{const E=k.target.value,T=S(E);a&&await a(k,T),y({parsed:T,formatted:E}),d.current.setEditCellValue({id:t,field:r,value:T},k)},[d,r,t,a,S]);return b.useEffect(()=>{y(k=>{var E,T;return m.parsed!==k.parsed&&((E=m.parsed)==null?void 0:E.getTime())!==((T=k.parsed)==null?void 0:T.getTime())?m:k})},[m]),Rt(()=>{i&&p.current.focus()},[i]),h.jsx(h8,z({inputRef:p,fullWidth:!0,className:x.root,type:u?"datetime-local":"date",inputProps:z({max:u?"9999-12-31T23:59":"9999-12-31"},l),value:f.formatted,onChange:w},c))}process.env.NODE_ENV!=="production"&&(Kw.propTypes={api:s.object.isRequired,cellMode:s.oneOf(["edit","view"]).isRequired,changeReason:s.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:s.object.isRequired,field:s.string.isRequired,formattedValue:s.any,hasFocus:s.bool.isRequired,id:s.oneOfType([s.number,s.string]).isRequired,isEditable:s.bool,isProcessingProps:s.bool,isValidating:s.bool,onValueChange:s.func,row:s.any.isRequired,rowNode:s.object.isRequired,tabIndex:s.oneOf([-1,0]).isRequired,value:s.any});const Yw=e=>h.jsx(Kw,z({},e));function Xw({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI X: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(`
|
|
421
|
+
`))}const b8=(e,t,n,r)=>{if(!e)return"";const o=Ba(r.current.state,t);return Xw({value:e,columnType:"date",rowId:o,field:n.field}),e.toLocaleDateString()},y8=(e,t,n,r)=>{if(!e)return"";const o=Ba(r.current.state,t);return Xw({value:e,columnType:"dateTime",rowId:o,field:n.field}),e.toLocaleString()},v8=z({},Fr,{type:"date",sortComparator:aw,valueFormatter:b8,filterOperators:qw(),renderEditCell:Yw,pastedValueParser:e=>new Date(e)}),x8=z({},Fr,{type:"dateTime",sortComparator:aw,valueFormatter:y8,filterOperators:qw(!0),renderEditCell:Yw,pastedValueParser:e=>new Date(e)}),Fo=e=>e==null?null:Number(e),C8=e=>e==null||Number.isNaN(e)||e===""?null:t=>Fo(t)===Fo(e),w8=()=>[{value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>Fo(t)===e.value,InputComponent:Zn,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>Fo(t)!==e.value,InputComponent:Zn,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Fo(t)>e.value,InputComponent:Zn,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Fo(t)>=e.value,InputComponent:Zn,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Fo(t)<e.value,InputComponent:Zn,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Fo(t)<=e.value,InputComponent:Zn,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:hh,InputComponentProps:{type:"number"}}],S8=z({},Fr,{type:"number",align:"right",headerAlign:"right",sortComparator:lw,valueParser:e=>e===""?null:Number(e),valueFormatter:e=>cw(e)?e.toLocaleString():e||"",filterOperators:w8(),getApplyQuickFilterFn:C8});function ji(e){return(e==null?void 0:e.type)==="singleSelect"}function js(e,t){if(e)return typeof e.valueOptions=="function"?e.valueOptions(z({field:e.field},t)):e.valueOptions}function au(e,t,n){if(t===void 0)return;const r=t.find(o=>{const i=n(o);return String(i)===String(e)});return n(r)}const k8=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],E8=["MenuProps"];function T8(e){return!!e.key}function Zw(e){var C,j,F;const t=Le(),{id:n,value:r,field:o,row:i,colDef:l,hasFocus:a,error:c,onValueChange:u,initialOpen:d=t.editMode===co.Cell}=e,p=Be(e,k8),m=tt(),f=b.useRef(null),y=b.useRef(null),[g,v]=b.useState(d),S=(j=(((C=t.slotProps)==null?void 0:C.baseSelect)||{}).native)!=null?j:!1,w=((F=t.slotProps)==null?void 0:F.baseSelect)||{},{MenuProps:k}=w,E=Be(w,E8);if(Rt(()=>{var M;a&&((M=y.current)==null||M.focus())},[a]),!ji(l))return null;const T=js(l,{id:n,row:i});if(!T)return null;const N=l.getOptionValue,P=l.getOptionLabel,O=async M=>{if(!ji(l)||!T)return;v(!1);const R=M.target,_=au(R.value,T,N);u&&await u(M,_),await m.current.setEditCellValue({id:n,field:o,value:_},M)},L=(M,R)=>{if(t.editMode===co.Row){v(!1);return}if(R==="backdropClick"||M.key==="Escape"){const _=m.current.getCellParams(n,o);m.current.publishEvent("cellEditStop",z({},_,{reason:M.key==="Escape"?Rr.escapeKeyDown:Rr.cellFocusOut}))}},$=M=>{T8(M)&&M.key==="Enter"||v(!0)};return!T||!l?null:h.jsx(t.slots.baseSelect,z({ref:f,inputRef:y,value:r,onChange:O,open:g,onOpen:$,MenuProps:z({onClose:L},k),error:c,native:S,fullWidth:!0},p,E,{children:T.map(M=>{var _;const R=N(M);return H.createElement(t.slots.baseSelectOption,z({},((_=t.slotProps)==null?void 0:_.baseSelectOption)||{},{native:S,key:R,value:R}),P(M))})}))}process.env.NODE_ENV!=="production"&&(Zw.propTypes={api:s.object.isRequired,cellMode:s.oneOf(["edit","view"]).isRequired,changeReason:s.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:s.object.isRequired,field:s.string.isRequired,formattedValue:s.any,hasFocus:s.bool.isRequired,id:s.oneOfType([s.number,s.string]).isRequired,initialOpen:s.bool,isEditable:s.bool,isProcessingProps:s.bool,isValidating:s.bool,onValueChange:s.func,row:s.any.isRequired,rowNode:s.object.isRequired,tabIndex:s.oneOf([-1,0]).isRequired,value:s.any});const I8=e=>h.jsx(Zw,z({},e)),P8=["item","applyValue","type","apiRef","focusElementRef","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],O8=({column:e,OptionComponent:t,getOptionLabel:n,getOptionValue:r,isSelectNative:o,baseSelectOptionProps:i})=>["",...js(e)||[]].map(a=>{const c=r(a);let u=n(a);return u===""&&(u=" "),H.createElement(t,z({},i,{native:o,key:c,value:c}),u)}),M8=ne("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function bf(e){var N,P,O,L,$,C,j;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,placeholder:l,tabIndex:a,label:c,variant:u="standard",clearButton:d}=e,p=Be(e,P8),m=(N=t.value)!=null?N:"",f=xt(),y=xt(),g=Le(),v=(L=(O=(P=g.slotProps)==null?void 0:P.baseSelect)==null?void 0:O.native)!=null?L:!1;let x=null;if(t.field){const F=o.current.getColumn(t.field);ji(F)&&(x=F)}const S=x==null?void 0:x.getOptionValue,w=x==null?void 0:x.getOptionLabel,k=b.useMemo(()=>js(x),[x]),E=b.useCallback(F=>{let M=F.target.value;M=au(M,k,S),n(z({},t,{value:M}))},[k,S,n,t]);if(!ji(x))return null;const T=c!=null?c:o.current.getLocaleText("filterPanelInputLabel");return h.jsxs(M8,{children:[h.jsxs(g.slots.baseFormControl,{fullWidth:!0,children:[h.jsx(g.slots.baseInputLabel,z({},($=g.slotProps)==null?void 0:$.baseInputLabel,{id:y,htmlFor:f,shrink:!0,variant:u,children:T})),h.jsx(g.slots.baseSelect,z({id:f,label:T,labelId:y,value:m,onChange:E,variant:u,type:r||"text",inputProps:{tabIndex:a,ref:i,placeholder:l!=null?l:o.current.getLocaleText("filterPanelInputPlaceholder")},native:v,notched:u==="outlined"?!0:void 0},p,(C=g.slotProps)==null?void 0:C.baseSelect,{children:O8({column:x,OptionComponent:g.slots.baseSelectOption,getOptionLabel:w,getOptionValue:S,isSelectNative:v,baseSelectOptionProps:(j=g.slotProps)==null?void 0:j.baseSelectOption})}))]}),d]})}process.env.NODE_ENV!=="production"&&(bf.propTypes={apiRef:s.shape({current:s.object.isRequired}).isRequired,applyValue:s.func.isRequired,clearButton:s.node,focusElementRef:s.oneOfType([s.func,s.object]),isFilterActive:s.bool,item:s.shape({field:s.string.isRequired,id:s.oneOfType([s.number,s.string]),operator:s.string.isRequired,value:s.any}).isRequired});const R8=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],j8=["key"],L8=Yx();function Qw(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:o,color:i,error:l,helperText:a,size:c,variant:u="standard"}=e,d=Be(e,R8),p={color:i,error:l,helperText:a,size:c,variant:u},m=xt(),f=Le();let y=null;if(t.field){const E=r.current.getColumn(t.field);ji(E)&&(y=E)}const g=y==null?void 0:y.getOptionValue,v=y==null?void 0:y.getOptionLabel,x=b.useCallback((E,T)=>g(E)===g(T),[g]),S=b.useMemo(()=>js(y)||[],[y]),w=b.useMemo(()=>Array.isArray(t.value)?t.value.reduce((E,T)=>{const N=S.find(P=>g(P)===T);return N!=null&&E.push(N),E},[]):[],[g,t.value,S]),k=b.useCallback((E,T)=>{n(z({},t,{value:T.map(g)}))},[n,t,g]);return h.jsx(Bm,z({multiple:!0,options:S,isOptionEqualToValue:x,filterOptions:L8,id:m,value:w,onChange:k,getOptionLabel:v,renderTags:(E,T)=>E.map((N,P)=>{const O=T({index:P}),{key:L}=O,$=Be(O,j8);return h.jsx(f.slots.baseChip,z({variant:"outlined",size:"small",label:v(N)},$),L)}),renderInput:E=>{var T;return h.jsx(f.slots.baseTextField,z({},E,{label:r.current.getLocaleText("filterPanelInputLabel"),placeholder:r.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:z({},E.InputLabelProps,{shrink:!0}),inputRef:o,type:"singleSelect"},p,(T=f.slotProps)==null?void 0:T.baseTextField))}},d))}process.env.NODE_ENV!=="production"&&(Qw.propTypes={apiRef:s.shape({current:s.object.isRequired}).isRequired,applyValue:s.func.isRequired,focusElementRef:s.oneOfType([s.func,s.object]),item:s.shape({field:s.string.isRequired,id:s.oneOfType([s.number,s.string]),operator:s.string.isRequired,value:s.any}).isRequired,type:s.oneOf(["singleSelect"])});const ti=e=>e==null||!mh(e)?e:e.value,$8=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>ti(t)===ti(e.value),InputComponent:bf},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>ti(t)!==ti(e.value),InputComponent:bf},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(ti);return n=>t.includes(ti(n))},InputComponent:Qw}],N8=e=>typeof e[0]=="object",F8=e=>mh(e)?e.value:e,A8=e=>mh(e)?e.label:String(e),D8=z({},Fr,{type:"singleSelect",getOptionLabel:A8,getOptionValue:F8,valueFormatter(e,t,n,r){const o=Ba(r.current.state,t);if(!ji(n))return"";const i=js(n,{id:o,row:t});if(e==null)return"";if(!i)return e;if(!N8(i))return n.getOptionLabel(e);const l=i.find(a=>n.getOptionValue(a)===e);return l?n.getOptionLabel(l):""},renderEditCell:I8,filterOperators:$8(),pastedValueParser:(e,t,n)=>{const r=n,o=js(r)||[],i=r.getOptionValue;if(o.find(a=>i(a)===e))return e}}),_8="string",z8=()=>({string:Fr,number:S8,date:v8,dateTime:x8,boolean:Ow,singleSelect:D8,[id]:kF,custom:Fr}),kh=e=>e.headerFiltering,B8=Ue(kh,e=>{var t;return(t=e==null?void 0:e.enabled)!=null?t:!1}),V8=Ue(kh,e=>e.editing),H8=Ue(kh,e=>e.menuOpen),pd=e=>e.columnGrouping,Jw=yt(pd,e=>{var t;return(t=e==null?void 0:e.unwrappedGroupingModel)!=null?t:{}}),eS=yt(pd,e=>{var t;return(t=e==null?void 0:e.lookup)!=null?t:{}}),G8=yt(pd,e=>{var t;return(t=e==null?void 0:e.headerStructure)!=null?t:[]}),Va=Ue(pd,e=>{var t;return(t=e==null?void 0:e.maxDepth)!=null?t:0}),tS=["maxWidth","minWidth","width","flex"],ap=z8();function W8({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(l=>l.field)),o={all:{},frozenFields:[],freeze:l=>{const a=o.all[l];a&&a.frozen!==!0&&(o.all[l].frozen=!0,o.frozenFields.push(l))}};function i(){if(o.frozenFields.length===r.size)return;const l={min:{},max:{}};let a=e,c=t,u=0;o.frozenFields.forEach(d=>{a-=o.all[d].computedWidth,c-=o.all[d].flex});for(let d=0;d<n.length;d+=1){const p=n[d];if(o.all[p.field]&&o.all[p.field].frozen===!0)continue;let f=a/c*p.flex;f<p.minWidth?(u+=p.minWidth-f,f=p.minWidth,l.min[p.field]=!0):f>p.maxWidth&&(u+=p.maxWidth-f,f=p.maxWidth,l.max[p.field]=!0),o.all[p.field]={frozen:!1,computedWidth:f,flex:p.flex}}u<0?Object.keys(l.max).forEach(d=>{o.freeze(d)}):u>0?Object.keys(l.min).forEach(d=>{o.freeze(d)}):n.forEach(({field:d})=>{o.freeze(d)}),i()}return i(),o.all}const yf=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach(c=>{let u=e.lookup[c],d=0,p=!1;e.columnVisibilityModel[c]!==!1&&(u.flex&&u.flex>0?(r+=u.flex,p=!0):d=rr(u.width||Fr.width,u.minWidth||Fr.minWidth,u.maxWidth||Fr.maxWidth),o+=d),u.computedWidth!==d&&(u=z({},u,{computedWidth:d})),p&&i.push(u),n[c]=u});const l=t===void 0?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),a=Math.max(l-o,0);if(r>0&&l>0){const c=W8({initialFreeSpace:a,totalFlexUnits:r,flexColumns:i});Object.keys(c).forEach(u=>{n[u].computedWidth=c[u].computedWidth})}return z({},e,{lookup:n})},U8=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},l=[];for(let d=0;d<n.length;d+=1){const p=n[d];e.lookup[p]&&(i[p]=!0,l.push(p))}const a=l.length===0?e.orderedFields:[...l,...e.orderedFields.filter(d=>!i[d])],c=z({},e.lookup);for(let d=0;d<o.length;d+=1){const p=o[d],m=z({},c[p],{hasBeenResized:!0});Object.entries(r[p]).forEach(([f,y])=>{m[f]=y===-1?1/0:y}),c[p]=m}return z({},e,{orderedFields:a,lookup:c})};function s1(e){let t=ap[_8];return e&&ap[e]&&(t=ap[e]),t}const ii=({apiRef:e,columnsToUpsert:t,initialState:n,columnVisibilityModel:r=hr(e),keepOnlyColumnsToUpsert:o=!1})=>{var d,p,m;const i=!e.current.state.columns;let l;if(i)l={orderedFields:[],lookup:{},columnVisibilityModel:r};else{const f=so(e.current.state);l={orderedFields:o?[]:[...f.orderedFields],lookup:z({},f.lookup),columnVisibilityModel:r}}let a={};o&&!i&&(a=Object.keys(l.lookup).reduce((f,y)=>z({},f,{[y]:!1}),{})),t.forEach(f=>{const{field:y}=f;a[y]=!0;let g=l.lookup[y];g==null?(g=z({},s1(f.type),{field:y,hasBeenResized:!1}),l.orderedFields.push(y)):o&&l.orderedFields.push(y),g&&g.type!==f.type&&(g=z({},s1(f.type),{field:y}));let v=g.hasBeenResized;tS.forEach(x=>{f[x]!==void 0&&(v=!0,f[x]===-1&&(f[x]=1/0))}),l.lookup[y]=Ci(g,z({},f,{hasBeenResized:v}))}),o&&!i&&Object.keys(l.lookup).forEach(f=>{a[f]||delete l.lookup[f]});const c=e.current.unstable_applyPipeProcessors("hydrateColumns",l),u=U8(c,n);return yf(u,(m=(p=(d=e.current).getRootDimensions)==null?void 0:p.call(d))!=null?m:void 0)};function q8({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=e,l=!1;for(;!l;){l=!0;for(let a=n;a<r;a+=1)if(o[a]){const u=o[a].id,d=t.current.unstable_getCellColSpanInfo(u,i);if(d&&d.spannedByColSpan&&d.leftVisibleCellIndex<i){i=d.leftVisibleCellIndex,l=!1;break}}}return i}function fd(e,t){var c,u;if(t.unstable_listView)return 0;const n=Di(e),r=Va(e),o=B8(e),i=Math.floor(t.columnHeaderHeight*n),l=Math.floor(((c=t.columnGroupHeaderHeight)!=null?c:t.columnHeaderHeight)*n),a=o?Math.floor(((u=t.headerFilterHeight)!=null?u:t.columnHeaderHeight)*n):0;return i+l*r+a}const Wi=e=>e.rowsMeta,cu=1,nS=1.5,K8=e=>{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return ye(r,at,n)},Y8=$t("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${B["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${B["scrollArea--right"]}`]:t["scrollArea--right"]},{[`&.${B["scrollArea--up"]}`]:t["scrollArea--up"]},{[`&.${B["scrollArea--down"]}`]:t["scrollArea--down"]},t.scrollArea]})(()=>({position:"absolute",zIndex:101,[`&.${B["scrollArea--left"]}`]:{top:0,left:0,width:20,bottom:0},[`&.${B["scrollArea--right"]}`]:{top:0,right:0,width:20,bottom:0},[`&.${B["scrollArea--up"]}`]:{top:0,left:0,right:0,height:20},[`&.${B["scrollArea--down"]}`]:{bottom:0,left:0,right:0,height:20}})),X8=Fa(pn,(e,t)=>t==="left"?e.leftPinnedWidth:t==="right"?e.rightPinnedWidth+(e.hasScrollX?e.scrollbarSize:0):0);function Z8(e){const t=tt(),[n,r]=b.useState("none");return Pe(t,"columnHeaderDragStart",()=>r("horizontal")),Pe(t,"columnHeaderDragEnd",()=>r("none")),Pe(t,"rowDragStart",()=>r("vertical")),Pe(t,"rowDragEnd",()=>r("none")),n==="none"?null:n==="horizontal"?h.jsx(Q8,z({},e)):h.jsx(J8,z({},e))}function Q8(e){const{scrollDirection:t,scrollPosition:n}=e,r=b.useRef(null),o=tt(),i=Jn(),l=me(o,Di),a=me(o,od),c=ia(o,X8,t),u=()=>{const g=pn(o.current.state);if(t==="left")return n.current.left>0;if(t==="right"){const v=a-g.viewportInnerSize.width;return n.current.left<v}return!1},d=Le(),p=fd(o,d),m=Math.floor(d.columnHeaderHeight*l),f=z({height:m,top:p-m},t==="left"?{left:c}:{},t==="right"?{right:c}:{}),y=nt(g=>{let v;if(g.preventDefault(),t==="left")v=g.clientX-r.current.getBoundingClientRect().right;else if(t==="right")v=Math.max(1,g.clientX-r.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");v=(v-cu)*nS+cu,i.start(0,()=>{o.current.scroll({left:n.current.left+v,top:n.current.top})})});return h.jsx(rS,z({},e,{ref:r,getCanScrollMore:u,style:f,handleDragOver:y}))}function J8(e){const{scrollDirection:t,scrollPosition:n}=e,r=b.useRef(null),o=tt(),i=Jn(),l=me(o,Wi),a=()=>{const m=pn(o.current.state);if(t==="up")return n.current.top>0;if(t==="down"){const y=(l.currentPageTotalHeight||0)-m.viewportInnerSize.height-m.scrollbarSize;return n.current.top<y}return!1},c=Le(),u=fd(o,c),d={top:t==="up"?u:void 0,bottom:t==="down"?0:void 0},p=nt(m=>{let f;if(m.preventDefault(),t==="up")f=m.clientY-r.current.getBoundingClientRect().bottom;else if(t==="down")f=Math.max(1,m.clientY-r.current.getBoundingClientRect().top);else throw new Error("MUI X: Wrong drag direction");f=(f-cu)*nS+cu,i.start(0,()=>{o.current.scroll({left:n.current.left,top:n.current.top+f})})});return h.jsx(rS,z({},e,{ref:r,getCanScrollMore:a,style:d,handleDragOver:p}))}const rS=ht(function(t,n){const{scrollDirection:r,getCanScrollMore:o,style:i,handleDragOver:l}=t,a=tt(),[c,u]=b.useState(o),d=Le(),p=z({},d,{scrollDirection:r}),m=K8(p);return Pe(a,"scrollPositionChange",()=>{u(o)}),c?h.jsx(Y8,{ref:n,className:m.root,ownerState:p,onDragOver:l,style:i}):null}),xc=Po(Z8);var dl={},cp={exports:{}},up={exports:{}},i1;function eA(){return i1||(i1=1,(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(up)),up.exports}var l1;function tA(){return l1||(l1=1,(function(e){var t=eA().default;function n(r,o){if(typeof WeakMap=="function")var i=new WeakMap,l=new WeakMap;return(e.exports=n=function(c,u){if(!u&&c&&c.__esModule)return c;var d,p,m={__proto__:null,default:c};if(c===null||t(c)!="object"&&typeof c!="function")return m;if(d=u?l:i){if(d.has(c))return d.get(c);d.set(c,m)}for(var f in c)f!=="default"&&{}.hasOwnProperty.call(c,f)&&((p=(d=Object.defineProperty)&&Object.getOwnPropertyDescriptor(c,f))&&(p.get||p.set)?d(m,f,p):m[f]=c[f]);return m},e.exports.__esModule=!0,e.exports.default=e.exports)(r,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(cp)),cp.exports}var a1;function nA(){if(a1)return dl;a1=1;var e=tA().default;Object.defineProperty(dl,"__esModule",{value:!0}),dl.default=void 0;var t=e(H);return dl.default=parseInt(t.version,10),dl}var rA=nA();const oA=vu(rA),Eh=b.createContext(void 0);process.env.NODE_ENV!=="production"&&(Eh.displayName="GridPrivateApiContext");function Ir(){const e=b.useContext(Eh);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
|
|
422
|
+
`));return e}const Ko=(e,t)=>za(e),Th=(e,t)=>me(e,za),sA=typeof navigator!="undefined"?navigator.userAgent.toLowerCase():"empty",iA=sA.includes("firefox"),md=e=>e.virtualization;Ue(md,e=>e.enabled);const oS=Ue(md,e=>e.enabledForColumns),lA=Ue(md,e=>e.enabledForRows),Ha=Ue(md,e=>e.renderContext),aA=yt(e=>e.virtualization.renderContext.firstColumnIndex,e=>e.virtualization.renderContext.lastColumnIndex,(e,t)=>({firstColumnIndex:e,lastColumnIndex:t})),vf={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},cA=(e,t)=>{const{disableVirtualization:n,autoHeight:r}=t;return z({},e,{virtualization:{enabled:!n,enabledForColumns:!n,enabledForRows:!n&&!r,renderContext:vf}})};function uA(e,t){const n=i=>{e.current.setState(l=>z({},l,{virtualization:z({},l.virtualization,{enabled:i,enabledForColumns:i,enabledForRows:i&&!t.autoHeight})}))};Je(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:i=>{e.current.setState(l=>z({},l,{virtualization:z({},l.virtualization,{enabledForColumns:i})}))}},"public"),b.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization,t.autoHeight])}const Ih=e=>e.rowSpanning,sS=Ue(Ih,e=>e.hiddenCells),dA=Ue(Ih,e=>e.spannedCells),pA=Ue(Ih,e=>e.hiddenCellOriginMap),Li=e=>e.listViewColumn,fA=h7(jn,Ha,za,Xt,mr,(e,t,n,r,o)=>{if(!e)return!1;const i=o[e.id];if(!i)return!1;const l=n.rowToIndexMap.get(i),a=r.slice(t.firstColumnIndex,t.lastColumnIndex).findIndex(u=>u.field===e.field);return!(l!==void 0&&a!==-1&&l>=t.firstRowIndex&&l<=t.lastRowIndex)}),iS=yt(fA,Xt,za,mr,jn,(e,t,n,r,o)=>{if(!e)return null;const i=r[o.id];if(!i)return null;const l=n.rowToIndexMap.get(i);if(l===void 0)return null;const a=t.findIndex(c=>c.field===o.field);return a===-1?null:z({},o,{rowIndex:l,columnIndex:a})});function mi(e,t){return Math.round(e*10**t)/10**t}const uu=typeof window!="undefined"&&/jsdom|HappyDOM/.test(window.navigator.userAgent),dp=50;var en=(function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT",e[e.RIGHT=4]="RIGHT",e})(en||{});const c1={top:0,left:0},mA=Object.freeze(new Map),hA=(e,t,n,r,o)=>({direction:en.NONE,buffer:aS(e,en.NONE,t,n,r,o)}),gA=()=>{var J,oe;const e=Ir(),t=Le(),{unstable_listView:n}=t,r=me(e,()=>n?[Li(e.current.state)]:Xt(e)),o=me(e,lA)&&!uu,i=me(e,oS)&&!uu,l=me(e,_i),a=Bi(e),c=n?iu:a,u=l.bottom.length>0,[d,p]=b.useState(mA),m=Nn(),f=me(e,qo),y=Th(e),g=e.current.mainElementRef,v=e.current.virtualScrollerRef,x=e.current.virtualScrollbarVerticalRef,S=e.current.virtualScrollbarHorizontalRef,w=me(e,aF),k=b.useRef(!1),E=me(e,ph),T=me(e,S7),N=me(e,od),P=me(e,bA),O=me(e,rw),L=me(e,nw),$=b.useRef(null),C=b.useCallback(te=>{if(g.current=te,!te)return;const fe=te.getBoundingClientRect();let ve={width:mi(fe.width,1),height:mi(fe.height,1)};if((!$.current||ve.width!==$.current.width&&ve.height!==$.current.height)&&($.current=ve,e.current.publishEvent("resize",ve)),typeof ResizeObserver=="undefined")return;const Ce=new ResizeObserver(xe=>{const Se=xe[0];if(!Se)return;const Oe={width:mi(Se.contentRect.width,1),height:mi(Se.contentRect.height,1)};Oe.width===ve.width&&Oe.height===ve.height||(e.current.publishEvent("resize",Oe),ve=Oe)});if(Ce.observe(te),oA>=19)return()=>{g.current=null,Ce.disconnect()}},[e,g]),j=b.useRef((oe=(J=t.initialState)==null?void 0:J.scroll)!=null?oe:c1),F=b.useRef(!1),M=b.useRef(c1),R=b.useRef(vf),_=me(e,Ha),V=me(e,iS),W=Jn(),I=b.useRef(void 0),D=Er(()=>hA(m,t.rowBufferPx,t.columnBufferPx,E*15,dp*6)).current,G=b.useCallback(te=>{if(f1(te,e.current.state.virtualization.renderContext))return;const fe=te.firstRowIndex!==R.current.firstRowIndex||te.lastRowIndex!==R.current.lastRowIndex;e.current.setState(Ce=>z({},Ce,{virtualization:z({},Ce.virtualization,{renderContext:te})})),pn(e.current.state).isReady&&fe&&(R.current=te,e.current.publishEvent("renderedRowsIntervalChange",te)),M.current=j.current},[e]),A=nt(()=>{const te=v.current;if(!te)return;const fe=pn(e.current.state),ve=Math.ceil(fe.minimumSize.height-fe.viewportOuterSize.height),Ce=Math.ceil(fe.minimumSize.width-fe.viewportInnerSize.width),xe={top:rr(te.scrollTop,0,ve),left:m?rr(te.scrollLeft,-Ce,0):rr(te.scrollLeft,0,Ce)},Se=xe.left-j.current.left,Oe=xe.top-j.current.top,Ae=Se!==0||Oe!==0;j.current=xe;const se=Ae?xA(Se,Oe):en.NONE,Ge=Math.abs(j.current.top-M.current.top),Ie=Math.abs(j.current.left-M.current.left),Ye=Ge>=E||Ie>=dp,ee=D.direction!==se;if(!(Ye||ee))return _;if(ee)switch(se){case en.NONE:case en.LEFT:case en.RIGHT:I.current=void 0;break;default:I.current=_;break}D.direction=se,D.buffer=aS(m,se,t.rowBufferPx,t.columnBufferPx,E*15,dp*6);const he=u1(e,t,o,i),ae=d1(he,j.current,D);return f1(ae,_)||(z0.flushSync(()=>{G(ae)}),W.start(1e3,A)),ae}),K=()=>{if(!pn(e.current.state).isReady&&(o||i))return;const te=u1(e,t,o,i),fe=d1(te,j.current,D);I.current=void 0,G(fe)},Y=nt(()=>{if(F.current){F.current=!1;return}const te=A();e.current.publishEvent("scrollPositionChange",{top:j.current.top,left:j.current.left,renderContext:te})}),U=nt(te=>{e.current.publishEvent("virtualScrollerWheel",{},te)}),q=nt(te=>{e.current.publishEvent("virtualScrollerTouchMove",{},te)}),Z=(te={})=>{var he,ae;if(!te.rows&&!y.range)return[];const fe=ln(e);let ve=_;te.renderContext&&(ve=te.renderContext,ve.firstColumnIndex=_.firstColumnIndex,ve.lastColumnIndex=_.lastColumnIndex);const Ce=!u&&te.position===void 0||u&&te.position==="bottom",xe=te.position!==void 0;let Se;switch(te.position){case"top":Se=0;break;case"bottom":Se=l.top.length+y.rows.length;break;case void 0:Se=l.top.length;break}const Oe=(he=te.rows)!=null?he:y.rows,Ae=ve.firstRowIndex,se=Math.min(ve.lastRowIndex,Oe.length),Ge=te.rows?qy(0,te.rows.length):qy(Ae,se);let Ie=-1;!xe&&V&&(V.rowIndex<Ae&&(Ge.unshift(V.rowIndex),Ie=V.rowIndex),V.rowIndex>se&&(Ge.push(V.rowIndex),Ie=V.rowIndex));const Ye=[],ee=(ae=t.slotProps)==null?void 0:ae.row,de=ss(e);return Ge.forEach(ge=>{var hn,rn,Pr;const{id:be,model:Te}=Oe[ge];if(!fe[be])return;const _e=(((hn=y==null?void 0:y.range)==null?void 0:hn.firstRowIndex)||0)+Se+ge;if(w){const Ke=c.left.length,vt=r.length-c.right.length;e.current.calculateColSpan({rowId:be,minFirstColumn:Ke,maxLastColumn:vt,columns:r}),c.left.length>0&&e.current.calculateColSpan({rowId:be,minFirstColumn:0,maxLastColumn:c.left.length,columns:r}),c.right.length>0&&e.current.calculateColSpan({rowId:be,minFirstColumn:r.length-c.right.length,maxLastColumn:r.length,columns:r})}const ke=e.current.rowHasAutoHeight(be)?"auto":e.current.unstable_getRowHeight(be);let ct;f[be]==null?ct=!1:ct=e.current.isRowSelectable(be);let it=!1;te.position===void 0&&(it=ge===0);let Pt=!1;const qe=ge===Oe.length-1;if(Ce)if(xe)Pt=qe;else{const Ke=y.rows.length-1;ge===Ke&&(Pt=!0)}let Ve=ve;I.current&&ge>=I.current.firstRowIndex&&ge<I.current.lastRowIndex&&(Ve=I.current);const ot=ge===Ie,pt=(V==null?void 0:V.rowIndex)===_e,mn=lS(de,Ve,c.left.length),qn=qe&&te.position==="top",Re=Ve.firstColumnIndex,We=Ve.lastColumnIndex;if(Ye.push(h.jsx(t.slots.row,z({row:Te,rowId:be,index:_e,selected:ct,offsetLeft:mn,columnsTotalWidth:N,rowHeight:ke,pinnedColumns:c,visibleColumns:r,firstColumnIndex:Re,lastColumnIndex:We,focusedColumnIndex:pt?V.columnIndex:void 0,isFirstVisible:it,isLastVisible:Pt,isNotVisible:ot,showBottomBorder:qn,scrollbarWidth:O,gridHasFiller:L},ee),be)),ot)return;const ut=d.get(be);ut&&Ye.push(ut),te.position===void 0&&qe&&Ye.push((Pr=(rn=e.current).getInfiniteLoadingTriggerElement)==null?void 0:Pr.call(rn,{lastRowId:be}))}),Ye},X=b.useMemo(()=>({overflowX:!P||n?"hidden":void 0,overflowY:t.autoHeight?"hidden":void 0}),[P,t.autoHeight,n]),Q=b.useMemo(()=>{const te={width:P?N:"auto",flexBasis:T,flexShrink:0};return te.flexBasis===0&&(te.flexBasis=Sw),te},[N,T,P]),re=b.useCallback(te=>{te&&e.current.publishEvent("virtualScrollerContentSizeChange",{columnsTotalWidth:N,contentHeight:T})},[e,N,T]);return Rt(()=>{var te,fe;k.current&&((fe=(te=e.current).updateRenderContext)==null||fe.call(te))},[e,i,o]),Rt(()=>{n&&(v.current.scrollLeft=0)},[n,v]),o8(_!==vf,()=>{var te;if(e.current.publishEvent("scrollPositionChange",{top:j.current.top,left:j.current.left,renderContext:_}),k.current=!0,(te=t.initialState)!=null&&te.scroll&&v.current){const fe=v.current,{top:ve,left:Ce}=t.initialState.scroll,xe={top:!(ve>0),left:!(Ce>0)};if(!xe.left&&N&&(fe.scrollLeft=Ce,F.current=!0,xe.left=!0),!xe.top&&T&&(fe.scrollTop=ve,F.current=!0,xe.top=!0),!xe.top||!xe.left){const Se=e.current.subscribeEvent("virtualScrollerContentSizeChange",Oe=>{!xe.left&&Oe.columnsTotalWidth&&(fe.scrollLeft=Ce,F.current=!0,xe.left=!0),!xe.top&&Oe.contentHeight&&(fe.scrollTop=ve,F.current=!0,xe.top=!0),xe.left&&xe.top&&Se()});return Se}}}),e.current.register("private",{updateRenderContext:K}),Et(e,"sortedRowsSet",K),Et(e,"paginationModelChange",K),Et(e,"columnsChange",K),{renderContext:_,setPanels:p,getRows:Z,getContainerProps:()=>({ref:C}),getScrollerProps:()=>({ref:v,onScroll:Y,onWheel:U,onTouchMove:q,style:X,role:"presentation",tabIndex:iA?-1:void 0}),getContentProps:()=>({style:Q,role:"presentation",ref:re}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:x,scrollPosition:j}),getScrollbarHorizontalProps:()=>({ref:S,scrollPosition:j}),getScrollAreaProps:()=>({scrollPosition:j})}};function bA(e){return e.dimensions.viewportOuterSize.width>0&&e.dimensions.columnsTotalWidth>e.dimensions.viewportOuterSize.width}function u1(e,t,n,r){var d,p;const o=pn(e.current.state),i=Ko(e),l=t.unstable_listView?[Li(e.current.state)]:Xt(e),a=pA(e),c=e.current.state.rows.dataRowIds.at(-1),u=l.at(-1);return{enabledForRows:n,enabledForColumns:r,apiRef:e,autoHeight:t.autoHeight,rowBufferPx:t.rowBufferPx,columnBufferPx:t.columnBufferPx,leftPinnedWidth:o.leftPinnedWidth,columnsTotalWidth:o.columnsTotalWidth,viewportInnerWidth:o.viewportInnerSize.width,viewportInnerHeight:o.viewportInnerSize.height,lastRowHeight:c!==void 0?e.current.unstable_getRowHeight(c):0,lastColumnWidth:(d=u==null?void 0:u.computedWidth)!=null?d:0,rowsMeta:Wi(e.current.state),columnPositions:ss(e),rows:i.rows,range:i.range,pinnedColumns:Bi(e),visibleColumns:l,hiddenCellsOriginMap:a,listView:(p=t.unstable_listView)!=null?p:!1,virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight}}function d1(e,t,n){const r={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.visibleColumns.length},{top:o,left:i}=t,l=Math.abs(i)+e.leftPinnedWidth;if(e.enabledForRows){let c=Math.min(p1(e,o,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1);const u=e.hiddenCellsOriginMap[c];if(u){const p=Math.min(...Object.values(u));c=Math.min(c,p)}const d=e.autoHeight?c+e.rows.length:p1(e,o+e.viewportInnerHeight);r.firstRowIndex=c,r.lastRowIndex=d}if(e.listView)return z({},r,{lastColumnIndex:1});if(e.enabledForColumns){let c=0,u=e.columnPositions.length,d=!1;const[p,m]=xf({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});if(!e.virtualizeColumnsWithAutoRowHeight)for(let f=p;f<m&&!d;f+=1){const y=e.rows[f];d=e.apiRef.current.rowHasAutoHeight(y.id)}(!d||e.virtualizeColumnsWithAutoRowHeight)&&(c=Xo(l,e.columnPositions,{atStart:!0,lastPosition:e.columnsTotalWidth}),u=Xo(l+e.viewportInnerWidth,e.columnPositions)),r.firstColumnIndex=c,r.lastColumnIndex=u}return yA(e,r,n)}function p1(e,t,n){var l,a;const r=e.apiRef.current.getLastMeasuredRowIndex();let o=r===1/0;(l=e.range)!=null&&l.lastRowIndex&&!o&&(o=r>=e.range.lastRowIndex);const i=rr(r-(((a=e.range)==null?void 0:a.firstRowIndex)||0),0,e.rowsMeta.positions.length);return o||e.rowsMeta.positions[i]>=t?Xo(t,e.rowsMeta.positions,n):vA(t,e.rowsMeta.positions,i,n)}function yA(e,t,n){const[r,o]=xf({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight}),[i,l]=xf({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:e.pinnedColumns.left.length,maxLastIndex:e.visibleColumns.length-e.pinnedColumns.right.length,bufferBefore:n.buffer.columnBefore,bufferAfter:n.buffer.columnAfter,positions:e.columnPositions,lastSize:e.lastColumnWidth}),a=q8({firstColumnToRender:i,apiRef:e.apiRef,firstRowToRender:r,lastRowToRender:o,visibleRows:e.rows});return{firstRowIndex:r,lastRowIndex:o,firstColumnIndex:a,lastColumnIndex:l}}function Xo(e,t,n=void 0,r=0,o=t.length){if(t.length<=0)return-1;if(r>=o)return r;const i=r+Math.floor((o-r)/2),l=t[i];let a;if(n!=null&&n.atStart){const c=(i===t.length-1?n.lastPosition:t[i+1])-l;a=e-c<l}else a=e<=l;return a?Xo(e,t,n,r,i):Xo(e,t,n,i+1,o)}function vA(e,t,n,r=void 0){let o=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=o,o*=2;return Xo(e,t,r,Math.floor(n/2),Math.min(n,t.length))}function xf({firstIndex:e,lastIndex:t,bufferBefore:n,bufferAfter:r,minFirstIndex:o,maxLastIndex:i,positions:l,lastSize:a}){const c=l[e]-n,u=l[t]+r,d=Xo(c,l,{atStart:!0,lastPosition:l[l.length-1]+a}),p=Xo(u,l);return[rr(d,o,i),rr(p,o,i)]}function f1(e,t){return e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex}function lS(e,t,n){var o,i;const r=((o=e[t.firstColumnIndex])!=null?o:0)-((i=e[n])!=null?i:0);return Math.abs(r)}function xA(e,t){return e===0&&t===0?en.NONE:Math.abs(t)>=Math.abs(e)?t>0?en.DOWN:en.UP:e>0?en.RIGHT:en.LEFT}function aS(e,t,n,r,o,i){if(e)switch(t){case en.LEFT:t=en.RIGHT;break;case en.RIGHT:t=en.LEFT;break}switch(t){case en.NONE:return{rowAfter:n,rowBefore:n,columnAfter:r,columnBefore:r};case en.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:i};case en.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:i,columnBefore:0};case en.UP:return{rowAfter:0,rowBefore:o,columnAfter:0,columnBefore:0};case en.DOWN:return{rowAfter:o,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}const CA=()=>{var p,m;const e=tt(),t=Le(),n=me(e,Aa),r=me(e,vh),o=me(e,sw),i=n===0&&o===0,l=me(e,H7),a=!l&&i,c=!l&&n>0&&r===0;let u=null,d=null;return a&&(u="noRowsOverlay"),c&&(u="noResultsOverlay"),l&&(u="loadingOverlay",d=((m=(p=t.slotProps)==null?void 0:p.loadingOverlay)==null?void 0:m[i?"noRowsVariant":"variant"])||null),{overlayType:u,loadingOverlayVariant:d}},wA=$t("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e,loadingOverlayVariant:t})=>t!=="skeleton"?{position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4}:{}),SA=$t("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),kA=e=>{const{classes:t}=e;return ye({root:["overlayWrapper"],inner:["overlayWrapperInner"]},at,t)};function cS(e){const t=tt(),n=Le(),r=me(t,pn);let o=Math.max(r.viewportOuterSize.height-r.topContainerHeight-r.bottomContainerHeight-(r.hasScrollX?r.scrollbarSize:0),0);o===0&&(o=Sw);const i=kA(z({},e,{classes:n.classes}));return h.jsx(wA,z({className:ue(i.root)},e,{children:h.jsx(SA,z({className:ue(i.inner),style:{height:o,width:r.viewportOuterSize.width}},e))}))}process.env.NODE_ENV!=="production"&&(cS.propTypes={loadingOverlayVariant:s.oneOf(["circular-progress","linear-progress","skeleton"]),overlayType:s.oneOf(["loadingOverlay","noResultsOverlay","noRowsOverlay"])});process.env.NODE_ENV!=="production"&&(uS.propTypes={loadingOverlayVariant:s.oneOf(["circular-progress","linear-progress","skeleton"]),overlayType:s.oneOf(["loadingOverlay","noResultsOverlay","noRowsOverlay"])});function uS(e){var i,l;const{overlayType:t}=e,n=Le();if(!t)return null;const r=(i=n.slots)==null?void 0:i[t],o=(l=n.slotProps)==null?void 0:l[t];return h.jsx(cS,z({},e,{children:h.jsx(r,z({},o))}))}const $c=e=>e.columnMenu;function EA(){var v;const e=Ir(),t=Le(),n=me(e,Xt),r=me(e,UF),o=me(e,VF),i=me(e,Aw),l=me(e,()=>wh(e)===null),a=me(e,n8),c=me(e,t8),u=me(e,lu),d=me(e,Va),p=me(e,$c),m=me(e,hr),f=me(e,G8),y=!(a===null&&i===null&&l),g=e.current.columnHeadersContainerRef;return h.jsx(t.slots.columnHeaders,z({ref:g,visibleColumns:n,filterColumnLookup:r,sortColumnLookup:o,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:u,headerGroupingMaxDepth:d,columnMenuState:p,columnVisibility:m,columnGroupsHeaderStructure:f,hasOtherElementInTabSequence:y},(v=t.slotProps)==null?void 0:v.columnHeaders))}const TA=Po(EA),Ph=b.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ph.displayName="GridConfigurationContext");const Oh=()=>{const e=b.useContext(Ph);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid configuration context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
|
|
423
|
+
`));return e},IA=$t("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0,width:"calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))"}),PA=$t("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.main,n.hasPinnedRight&&t["main--hasPinnedRight"],n.loadingOverlayVariant==="skeleton"&&t["main--hasSkeletonLoadingOverlay"]]}})({flexGrow:1,position:"relative",overflow:"hidden",display:"flex",flexDirection:"column"}),OA=ht((e,t)=>{var l;const{ownerState:n}=e,r=Le(),i=Oh().hooks.useGridAriaAttributes();return h.jsxs(PA,z({ownerState:n,className:e.className,tabIndex:-1},i,(l=r.slotProps)==null?void 0:l.main,{ref:t,children:[h.jsx(IA,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))}),MA=()=>ye({root:["topContainer"]},at,{}),RA=$t("div")({position:"sticky",zIndex:40,top:0});function jA(e){const t=MA();return h.jsx(RA,z({},e,{className:ue(t.root,B["container--top"]),role:"presentation"}))}const LA=()=>ye({root:["bottomContainer"]},at,{}),$A=$t("div")({position:"sticky",zIndex:40,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function NA(e){const t=LA();return h.jsx($A,z({},e,{className:ue(t.root,B["container--bottom"]),role:"presentation"}))}const FA=(e,t)=>{const{classes:n}=e;return ye({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},at,n)},AA=$t("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScrollerContent,n.overflowedContent&&t["virtualScrollerContent--overflowed"]]}})({}),DA=ht(function(t,n){var a;const r=Le(),o=!r.autoHeight&&((a=t.style)==null?void 0:a.minHeight)==="auto",i=FA(r,o),l={classes:r.classes,overflowedContent:o};return h.jsx(AA,z({},t,{ownerState:l,className:ue(i.root,t.className),ref:n}))}),_A=$t("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),dS=$t("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:"var(--DataGrid-pinnedBackground)"}),zA=$t(dS)({left:0,borderRight:"1px solid var(--rowBorderColor)"}),BA=$t(dS)({right:0,borderLeft:"1px solid var(--rowBorderColor)"}),VA=$t("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"});function HA({rowsLength:e}){const t=tt(),{viewportOuterSize:n,minimumSize:r,hasScrollX:o,hasScrollY:i,scrollbarSize:l,leftPinnedWidth:a,rightPinnedWidth:c}=me(t,pn),u=o?l:0,d=n.height-r.height>0;return u===0&&!d?null:h.jsxs(_A,{className:B.filler,role:"presentation",style:{height:u,"--rowBorderColor":e===0?"transparent":"var(--DataGrid-rowBorderColor)"},children:[a>0&&h.jsx(zA,{className:B["filler--pinnedLeft"],style:{width:a}}),h.jsx(VA,{}),c>0&&h.jsx(BA,{className:B["filler--pinnedRight"],style:{width:c+(i?l:0)}})]})}const GA=Po(HA),WA=["className"],UA=e=>{const{classes:t}=e;return ye({root:["virtualScrollerRenderZone"]},at,t)},qA=$t("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),KA=ht(function(t,n){const{className:r}=t,o=Be(t,WA),i=tt(),l=Le(),a=UA(l),c=me(i,()=>{var p;const u=Ha(i);return(p=Wi(i.current.state).positions[u.firstRowIndex])!=null?p:0});return h.jsx(qA,z({className:ue(a.root,r),ownerState:l,style:{transform:`translate3d(0, ${c}px, 0)`}},o,{ref:n}))}),YA={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1,disableColumnVirtualization:!0},dn=e=>e.editRows,pS=Fa(dn,(e,{rowId:t,editMode:n})=>n===co.Row&&!!e[t]),XA=Fa(dn,(e,{rowId:t,field:n})=>{var r,o;return(o=(r=e[t])==null?void 0:r[n])!=null?o:null}),ca=e=>e.preferencePanel,ZA=Fa(ca,(e,t)=>!!(e.open&&e.labelId===t));var Ls=(function(e){return e.filters="filters",e.columns="columns",e})(Ls||{});const QA=(e,t)=>{const{classes:n}=e,r={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return ye(r,at,n)},fS=$t("div")({position:"absolute",display:"inline-block",zIndex:60,"&:hover":{zIndex:70},"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),JA=$t(fS)({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-topContainerHeight) - var(--DataGrid-bottomContainerHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-topContainerHeight)",right:"0px"}),eD=$t(fS)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),m1=ht(function(t,n){const r=Ir(),o=Le(),i=b.useRef(!1),l=b.useRef(0),a=b.useRef(null),c=b.useRef(null),u=QA(o,t.position),d=me(r,pn),p=t.position==="vertical"?"height":"width",m=t.position==="vertical"?"scrollTop":"scrollLeft",f=t.position==="vertical"?"top":"left",y=t.position==="vertical"?d.hasScrollX:d.hasScrollY,g=d.minimumSize[p]+(y?d.scrollbarSize:0),x=(t.position==="vertical"?d.viewportInnerSize.height:d.viewportOuterSize.width)*(g/d.viewportOuterSize[p]),S=nt(()=>{const E=a.current,T=t.scrollPosition.current;if(!E||T[f]===l.current)return;if(l.current=T[f],i.current){i.current=!1;return}i.current=!0;const N=T[f]/g;E[m]=N*x}),w=nt(()=>{const E=r.current.virtualScrollerRef.current,T=a.current;if(!T)return;if(i.current){i.current=!1;return}i.current=!0;const N=T[m]/x;E[m]=N*g});Om(()=>{const E=r.current.virtualScrollerRef.current,T=a.current,N={passive:!0};return E.addEventListener("scroll",S,N),T.addEventListener("scroll",w,N),()=>{E.removeEventListener("scroll",S,N),T.removeEventListener("scroll",w,N)}}),b.useEffect(()=>{c.current.style.setProperty(p,`${x}px`)},[x,p]);const k=t.position==="vertical"?JA:eD;return h.jsx(k,{ref:It(n,a),className:u.root,style:t.position==="vertical"&&o.unstable_listView?{height:"100%",top:0}:void 0,tabIndex:-1,"aria-hidden":"true",onFocus:E=>{E.target.blur()},children:h.jsx("div",{ref:c,className:u.content})})}),tD=e=>{const{classes:t,hasScrollX:n,hasPinnedRight:r,loadingOverlayVariant:o}=e;return ye({root:["main",r&&"main--hasPinnedRight",o==="skeleton"&&"main--hasSkeletonLoadingOverlay"],scroller:["virtualScroller",n&&"virtualScroller--hasScrollX"]},at,t)},nD=$t("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScroller,n.hasScrollX&&t["virtualScroller--hasScrollX"]]}})({position:"relative",height:"100%",flexGrow:1,overflow:"scroll",scrollbarWidth:"none",display:"flex",flexDirection:"column","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0}),rD=e=>e.dimensions.rightPinnedWidth>0;function oD(e){const t=tt(),n=Le(),r=me(t,E7),o=me(t,k7),i=me(t,rD),l=me(t,P7),a=CA(),c={classes:n.classes,hasScrollX:o,hasPinnedRight:i,loadingOverlayVariant:a.loadingOverlayVariant},u=tD(c),d=gA(),{getContainerProps:p,getScrollerProps:m,getContentProps:f,getRenderZoneProps:y,getScrollbarVerticalProps:g,getScrollbarHorizontalProps:v,getRows:x,getScrollAreaProps:S}=d,w=x();return h.jsxs(OA,z({className:u.root},p(),{ownerState:c,children:[h.jsx(xc,z({scrollDirection:"left"},S())),h.jsx(xc,z({scrollDirection:"right"},S())),h.jsx(xc,z({scrollDirection:"up"},S())),h.jsx(xc,z({scrollDirection:"down"},S())),h.jsxs(nD,z({className:u.scroller},m(),{ownerState:c,children:[h.jsxs(jA,{children:[!n.unstable_listView&&h.jsx(TA,{}),h.jsx(n.slots.pinnedRows,{position:"top",virtualScroller:d})]}),h.jsx(uS,z({},a)),h.jsx(DA,z({},f(),{children:h.jsxs(KA,z({},y(),{children:[w,h.jsx(n.slots.detailPanels,{virtualScroller:d})]}))})),l&&h.jsx(GA,{rowsLength:w.length}),h.jsx(NA,{children:h.jsx(n.slots.pinnedRows,{position:"bottom",virtualScroller:d})})]})),o&&!n.unstable_listView&&h.jsx(m1,z({position:"horizontal"},v())),r&&h.jsx(m1,z({position:"vertical"},g())),e.children]}))}function sD(){var t;const e=Le();return e.hideFooter?null:h.jsx(e.slots.footer,z({},(t=e.slotProps)==null?void 0:t.footer))}let pp;function Mh(){return pp===void 0&&document.createElement("div").focus({get preventScroll(){return pp=!0,!1}}),pp}function iD({defaultSlots:e,slots:t}){const n=t;if(!n||Object.keys(n).length===0)return e;const r=z({},e);return Object.keys(n).forEach(o=>{const i=o;n[i]!==void 0&&(r[i]=n[i])}),r}function lD(e){var o,i;if((o=e.slotProps)!=null&&o.root)return e;const t=Object.keys(e);if(!t.some(l=>l.startsWith("aria-")||l.startsWith("data-")))return e;const n={},r=(i=e.forwardedProps)!=null?i:{};for(let l=0;l<t.length;l+=1){const a=t[l];a.startsWith("aria-")||a.startsWith("data-")?r[a]=e[a]:n[a]=e[a]}return n.forwardedProps=r,n}function aD(e){return b.useMemo(()=>lD(e),[e])}const cD=[e=>e.autoPageSize&&e.autoHeight&&["MUI X: `<DataGrid autoPageSize={true} autoHeight={true} />` are not valid props.","You cannot use both the `autoPageSize` and `autoHeight` props at the same time because `autoHeight` scales the height of the Data Grid according to the `pageSize`.","","Please remove one of these two props."].join(`
|
|
424
|
+
`)||void 0,e=>e.paginationMode==="client"&&e.paginationMeta!=null&&['MUI X: Usage of the `paginationMeta` prop with client-side pagination (`paginationMode="client"`) has no effect.','`paginationMeta` is only meant to be used with `paginationMode="server"`.'].join(`
|
|
425
|
+
`)||void 0,e=>e.signature===nr.DataGrid&&e.paginationMode==="client"&&cw(e.rowCount)&&['MUI X: Usage of the `rowCount` prop with client side pagination (`paginationMode="client"`) has no effect.','`rowCount` is only meant to be used with `paginationMode="server"`.'].join(`
|
|
426
|
+
`)||void 0,e=>e.paginationMode==="server"&&e.rowCount==null&&!e.unstable_dataSource&&["MUI X: The `rowCount` prop must be passed using `paginationMode='server'`","For more detail, see http://mui.com/components/data-grid/pagination/#index-based-pagination"].join(`
|
|
427
|
+
`)||void 0];function uD(e,t){t.forEach(n=>{const r=n(e);r&&br(r,"error")})}const dD=e=>{const t=e.match(/^__row_group_by_columns_group_(.*)__$/);return t?t[1]:null},pD=e=>e===Ew||dD(e)!==null,mS=(e,t)=>{if(e)if(t){if(e===rt.LEFT)return"right";if(e===rt.RIGHT)return"left"}else{if(e===rt.LEFT)return"left";if(e===rt.RIGHT)return"right"}};function hd(e,t,n,r){const o=mS(n,t);return!o||r===void 0||(e[o]=r),e}const fD=["column","row","rowId","rowNode","align","children","colIndex","width","className","style","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","showRightBorder","showLeftBorder","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],mD=["changeReason","unstable_updateValueOnRender"];rt.LEFT+"",No.LEFT,rt.RIGHT+"",No.RIGHT,rt.NONE+"",rt.VIRTUAL+"";const hD=e=>{const{align:t,showLeftBorder:n,showRightBorder:r,pinnedPosition:o,isEditable:i,isSelected:l,isSelectionMode:a,classes:c}=e,u={root:["cell",`cell--text${ie(t)}`,l&&"selected",i&&"cell--editable",n&&"cell--withLeftBorder",r&&"cell--withRightBorder",o===rt.LEFT&&"cell--pinnedLeft",o===rt.RIGHT&&"cell--pinnedRight",a&&!i&&"cell--selectionMode"]};return ye(u,at,c)};let h1=!1;const hS=ht(function(t,n){var be,Te,_e,ke,ct,it,Pt,qe;const{column:r,row:o,rowId:i,rowNode:l,align:a,colIndex:c,width:u,className:d,style:p,colSpan:m,disableDragEvents:f,isNotVisible:y,pinnedOffset:g,pinnedPosition:v,showRightBorder:x,showLeftBorder:S,onClick:w,onDoubleClick:k,onMouseDown:E,onMouseUp:T,onMouseOver:N,onKeyDown:P,onKeyUp:O,onDragEnter:L,onDragOver:$}=t,C=Be(t,fD),j=Ir(),F=Le(),M=Nn(),R=r.field,_=ia(j,XA,{rowId:i,field:R}),W=Oh().hooks.useCellAggregationResult(i,R),I=_?St.Edit:St.View,D=j.current.getCellParamsForRow(i,R,o,{colDef:r,cellMode:I,rowNode:l,tabIndex:me(j,()=>{const Ve=wh(j);return Ve&&Ve.field===R&&Ve.id===i?0:-1}),hasFocus:me(j,()=>{const Ve=jn(j);return(Ve==null?void 0:Ve.id)===i&&Ve.field===R})});D.api=j.current,W&&(D.value=W.value,D.formattedValue=r.valueFormatter?r.valueFormatter(D.value,o,r,j):D.value);const G=me(j,()=>j.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:i,field:R})),A=me(j,sS),K=me(j,dA),{hasFocus:Y,isEditable:U=!1,value:q}=D,Z=r.type==="actions"&&((be=r.getActions)==null?void 0:be.call(r,j.current.getRowParams(i)).some(Ve=>!Ve.props.disabled)),X=(I==="view"||!U)&&!Z?D.tabIndex:-1,{classes:Q,getCellClassName:re}=F,oe=[me(j,()=>j.current.unstable_applyPipeProcessors("cellClassName",[],{id:i,field:R}).filter(Boolean).join(" "))];r.cellClassName&&oe.push(typeof r.cellClassName=="function"?r.cellClassName(D):r.cellClassName),r.display==="flex"&&oe.push(B["cell--flex"]),re&&oe.push(re(D));const te=(Te=D.formattedValue)!=null?Te:q,fe=b.useRef(null),ve=It(n,fe),Ce=b.useRef(null),xe=(_e=F.cellSelection)!=null?_e:!1,Se={align:a,showLeftBorder:S,showRightBorder:x,isEditable:U,classes:F.classes,pinnedPosition:v,isSelected:G,isSelectionMode:xe},Oe=hD(Se),Ae=b.useCallback(Ve=>ot=>{const pt=j.current.getCellParams(i,R||"");j.current.publishEvent(Ve,pt,ot),T&&T(ot)},[j,R,T,i]),se=b.useCallback(Ve=>ot=>{const pt=j.current.getCellParams(i,R||"");j.current.publishEvent(Ve,pt,ot),E&&E(ot)},[j,R,E,i]),Ge=b.useCallback((Ve,ot)=>pt=>{if(!j.current.getRow(i))return;const mn=j.current.getCellParams(i,R||"");j.current.publishEvent(Ve,mn,pt),ot&&ot(pt)},[j,R,i]),Ie=(ct=(ke=A[i])==null?void 0:ke[R])!=null?ct:!1,Ye=(Pt=(it=K[i])==null?void 0:it[R])!=null?Pt:1,ee=b.useMemo(()=>{if(y)return{padding:0,opacity:0,width:0,height:0,border:0};const Ve=hd(z({"--width":`${u}px`},p),M,v,g),ot=v===rt.LEFT,pt=v===rt.RIGHT;return Ye>1&&(Ve.height=`calc(var(--height) * ${Ye})`,Ve.zIndex=10,(ot||pt)&&(Ve.zIndex=40)),Ve},[u,y,p,g,v,M,Ye]);if(b.useEffect(()=>{if(!Y||I===St.Edit)return;const Ve=Yt(j.current.rootElementRef.current);if(fe.current&&!fe.current.contains(Ve.activeElement)){const ot=fe.current.querySelector('[tabindex="0"]'),pt=Ce.current||ot||fe.current;if(Mh())pt.focus({preventScroll:!0});else{const mn=j.current.getScrollPosition();pt.focus(),j.current.scroll(mn)}}},[Y,I,j]),Ie)return h.jsx("div",{"data-colindex":c,role:"presentation",style:z({width:"var(--width)"},ee)});let de=C.onFocus;process.env.NODE_ENV==="test"&&((qe=F.experimentalFeatures)!=null&&qe.warnIfFocusStateIsNotSynced)&&(de=Ve=>{const ot=jn(j);if((ot==null?void 0:ot.id)===i&&ot.field===R){typeof C.onFocus=="function"&&C.onFocus(Ve);return}h1||(console.warn([`MUI X: The cell with id=${i} and field=${R} received focus.`,`According to the state, the focus should be at id=${ot==null?void 0:ot.id}, field=${ot==null?void 0:ot.field}.`,"Not syncing the state may cause unwanted behaviors since the `cellFocusIn` event won't be fired.","Call `fireEvent.mouseUp` before the `fireEvent.click` to sync the focus with the state."].join(`
|
|
428
|
+
`)),h1=!0)});let he,ae;if(_===null&&r.renderCell&&(he=r.renderCell(D)),_!==null&&r.renderEditCell){const Ve=j.current.getRowWithUpdatedValues(i,r.field),ot=Be(_,mD),pt=r.valueFormatter?r.valueFormatter(_.value,Ve,r,j):D.formattedValue,mn=z({},D,{row:Ve,formattedValue:pt},ot);he=r.renderEditCell(mn),oe.push(B["cell--editing"]),oe.push(Q==null?void 0:Q["cell--editing"])}if(he===void 0){const Ve=te==null?void 0:te.toString();he=Ve,ae=Ve}b.isValidElement(he)&&Z&&(he=b.cloneElement(he,{focusElementRef:Ce}));const ge=f?null:{onDragEnter:Ge("cellDragEnter",L),onDragOver:Ge("cellDragOver",$)};return h.jsx("div",z({className:ue(Oe.root,oe,d),role:"gridcell","data-field":R,"data-colindex":c,"aria-colindex":c+1,"aria-colspan":m,"aria-rowspan":Ye,style:ee,title:ae,tabIndex:X,onClick:Ge("cellClick",w),onDoubleClick:Ge("cellDoubleClick",k),onMouseOver:Ge("cellMouseOver",N),onMouseDown:se("cellMouseDown"),onMouseUp:Ae("cellMouseUp"),onKeyDown:Ge("cellKeyDown",P),onKeyUp:Ge("cellKeyUp",O)},ge,C,{onFocus:de,ref:ve,children:he}))});process.env.NODE_ENV!=="production"&&(hS.propTypes={align:s.oneOf(["center","left","right"]).isRequired,colIndex:s.number.isRequired,colSpan:s.number,column:s.object.isRequired,disableDragEvents:s.bool,isNotVisible:s.bool.isRequired,pinnedOffset:s.number,pinnedPosition:s.oneOf([0,1,2,3]).isRequired,row:s.object.isRequired,rowId:s.oneOfType([s.number,s.string]).isRequired,rowNode:s.object.isRequired,showLeftBorder:s.bool.isRequired,showRightBorder:s.bool.isRequired,width:s.number.isRequired});const gD=Po(hS),bD=["field","type","align","width","height","empty","style","className"],g1="1.3em",yD="1.2em",b1=[40,80],vD={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},xD=e=>{const{align:t,classes:n,empty:r}=e,o={root:["cell","cellSkeleton",`cell--text${t?ie(t):"Left"}`,r&&"cellEmpty"]};return ye(o,at,n)},CD=oF(12345);function gS(e){const{field:t,type:n,align:r,width:o,height:i,empty:l=!1,style:a,className:c}=e,u=Be(e,bD),p={classes:Le().classes,align:r,empty:l},m=xD(p),f=b.useMemo(()=>{var x;if(n==="boolean"||n==="actions")return{variant:"circular",width:g1,height:g1};const[g,v]=n&&(x=vD[n])!=null?x:b1;return{variant:"text",width:`${Math.round(CD(g,v))}%`,height:yD}},[n]);return h.jsx("div",z({"data-field":t,className:ue(m.root,c),style:z({height:i,maxWidth:o,minWidth:o},a)},u,{children:!l&&h.jsx(FC,z({},f))}))}process.env.NODE_ENV!=="production"&&(gS.propTypes={align:s.string,empty:s.bool,field:s.string,height:s.oneOfType([s.oneOf(["auto"]),s.number]),type:s.oneOf(["actions","boolean","custom","date","dateTime","number","singleSelect","string"]),width:s.oneOfType([s.number,s.string])});const wD=Po(gS);function SD(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?Ea(fr(e.palette.divider,1),.88):ka(fr(e.palette.divider,1),.68)}const kD=10,Cc=-5,ni=1,y1={width:3,rx:1.5,x:10.5},ED="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",TD=e=>e.dimensions.hasScrollX&&(!e.dimensions.hasScrollY||e.dimensions.scrollbarSize===0),ID=ne("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${B.autoHeight}`]:t.autoHeight},{[`&.${B.autosizing}`]:t.autosizing},{[`&.${B["root--densityStandard"]}`]:t["root--densityStandard"]},{[`&.${B["root--densityComfortable"]}`]:t["root--densityComfortable"]},{[`&.${B["root--densityCompact"]}`]:t["root--densityCompact"]},{[`&.${B["root--disableUserSelection"]}`]:t["root--disableUserSelection"]},{[`&.${B["root--noToolbar"]}`]:t["root--noToolbar"]},{[`&.${B.withVerticalBorder}`]:t.withVerticalBorder},{[`& .${B.actionsCell}`]:t.actionsCell},{[`& .${B.booleanCell}`]:t.booleanCell},{[`& .${B.cell}`]:t.cell},{[`& .${B["cell--editable"]}`]:t["cell--editable"]},{[`& .${B["cell--editing"]}`]:t["cell--editing"]},{[`& .${B["cell--flex"]}`]:t["cell--flex"]},{[`& .${B["cell--pinnedLeft"]}`]:t["cell--pinnedLeft"]},{[`& .${B["cell--pinnedRight"]}`]:t["cell--pinnedRight"]},{[`& .${B["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${B["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${B["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${B["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${B["cell--selectionMode"]}`]:t["cell--selectionMode"]},{[`& .${B["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${B["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${B["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${B["cell--withLeftBorder"]}`]:t["cell--withLeftBorder"]},{[`& .${B["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${B.cellCheckbox}`]:t.cellCheckbox},{[`& .${B.cellEmpty}`]:t.cellEmpty},{[`& .${B.cellOffsetLeft}`]:t.cellOffsetLeft},{[`& .${B.cellSkeleton}`]:t.cellSkeleton},{[`& .${B.checkboxInput}`]:t.checkboxInput},{[`& .${B.columnHeader}`]:t.columnHeader},{[`& .${B["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${B["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${B["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${B["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${B["columnHeader--emptyGroup"]}`]:t["columnHeader--emptyGroup"]},{[`& .${B["columnHeader--filledGroup"]}`]:t["columnHeader--filledGroup"]},{[`& .${B["columnHeader--filtered"]}`]:t["columnHeader--filtered"]},{[`& .${B["columnHeader--last"]}`]:t["columnHeader--last"]},{[`& .${B["columnHeader--lastUnpinned"]}`]:t["columnHeader--lastUnpinned"]},{[`& .${B["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${B["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${B["columnHeader--pinnedLeft"]}`]:t["columnHeader--pinnedLeft"]},{[`& .${B["columnHeader--pinnedRight"]}`]:t["columnHeader--pinnedRight"]},{[`& .${B["columnHeader--siblingFocused"]}`]:t["columnHeader--siblingFocused"]},{[`& .${B["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${B["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${B["columnHeader--withLeftBorder"]}`]:t["columnHeader--withLeftBorder"]},{[`& .${B["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${B.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${B.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${B.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${B.columnHeaderTitleContainerContent}`]:t.columnHeaderTitleContainerContent},{[`& .${B.columnSeparator}`]:t.columnSeparator},{[`& .${B["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${B["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${B["columnSeparator--sideLeft"]}`]:t["columnSeparator--sideLeft"]},{[`& .${B["columnSeparator--sideRight"]}`]:t["columnSeparator--sideRight"]},{[`& .${B["container--bottom"]}`]:t["container--bottom"]},{[`& .${B["container--top"]}`]:t["container--top"]},{[`& .${B.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${B["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},{[`& .${B.editBooleanCell}`]:t.editBooleanCell},{[`& .${B.filterIcon}`]:t.filterIcon},{[`& .${B["filler--borderBottom"]}`]:t["filler--borderBottom"]},{[`& .${B["filler--pinnedLeft"]}`]:t["filler--pinnedLeft"]},{[`& .${B["filler--pinnedRight"]}`]:t["filler--pinnedRight"]},{[`& .${B.groupingCriteriaCell}`]:t.groupingCriteriaCell},{[`& .${B.groupingCriteriaCellLoadingContainer}`]:t.groupingCriteriaCellLoadingContainer},{[`& .${B.groupingCriteriaCellToggle}`]:t.groupingCriteriaCellToggle},{[`& .${B.headerFilterRow}`]:t.headerFilterRow},{[`& .${B.iconSeparator}`]:t.iconSeparator},{[`& .${B.menuIcon}`]:t.menuIcon},{[`& .${B.menuIconButton}`]:t.menuIconButton},{[`& .${B.menuList}`]:t.menuList},{[`& .${B.menuOpen}`]:t.menuOpen},{[`& .${B.overlayWrapperInner}`]:t.overlayWrapperInner},{[`& .${B.pinnedRows}`]:t.pinnedRows},{[`& .${B["pinnedRows--bottom"]}`]:t["pinnedRows--bottom"]},{[`& .${B["pinnedRows--top"]}`]:t["pinnedRows--top"]},{[`& .${B.row}`]:t.row},{[`& .${B["row--borderBottom"]}`]:t["row--borderBottom"]},{[`& .${B["row--detailPanelExpanded"]}`]:t["row--detailPanelExpanded"]},{[`& .${B["row--dragging"]}`]:t["row--dragging"]},{[`& .${B["row--dynamicHeight"]}`]:t["row--dynamicHeight"]},{[`& .${B["row--editable"]}`]:t["row--editable"]},{[`& .${B["row--editing"]}`]:t["row--editing"]},{[`& .${B["row--firstVisible"]}`]:t["row--firstVisible"]},{[`& .${B["row--lastVisible"]}`]:t["row--lastVisible"]},{[`& .${B.rowReorderCell}`]:t.rowReorderCell},{[`& .${B["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${B.rowReorderCellContainer}`]:t.rowReorderCellContainer},{[`& .${B.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${B.rowSkeleton}`]:t.rowSkeleton},{[`& .${B.scrollbar}`]:t.scrollbar},{[`& .${B["scrollbar--horizontal"]}`]:t["scrollbar--horizontal"]},{[`& .${B["scrollbar--vertical"]}`]:t["scrollbar--vertical"]},{[`& .${B.scrollbarFiller}`]:t.scrollbarFiller},{[`& .${B["scrollbarFiller--borderBottom"]}`]:t["scrollbarFiller--borderBottom"]},{[`& .${B["scrollbarFiller--borderTop"]}`]:t["scrollbarFiller--borderTop"]},{[`& .${B["scrollbarFiller--header"]}`]:t["scrollbarFiller--header"]},{[`& .${B["scrollbarFiller--pinnedRight"]}`]:t["scrollbarFiller--pinnedRight"]},{[`& .${B.sortIcon}`]:t.sortIcon},{[`& .${B.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${B.treeDataGroupingCellLoadingContainer}`]:t.treeDataGroupingCellLoadingContainer},{[`& .${B.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${B.withBorderColor}`]:t.withBorderColor}]})(({theme:e})=>{var P,O,L,$;const t=Ir(),n=me(t,TD),r=SD(e),o=e.shape.borderRadius,i=e.vars?e.vars.palette.background.default:(O=(P=e.mixins.MuiDataGrid)==null?void 0:P.containerBackground)!=null?O:e.palette.background.default,l=($=(L=e.mixins.MuiDataGrid)==null?void 0:L.pinnedBackground)!=null?$:i,a=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:fr(e.palette.background.default,e.palette.action.disabledOpacity),c=(e.vars||e).palette.action.hoverOpacity,u=(e.vars||e).palette.action.hover,d=(e.vars||e).palette.action.selectedOpacity,p=e.vars?`calc(${c} + ${d})`:c+d,m=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${d})`:fr(e.palette.primary.main,d),f=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${p})`:fr(e.palette.primary.main,p),y=e.vars?MD:PD,g=C=>({[`& .${B["cell--pinnedLeft"]}, & .${B["cell--pinnedRight"]}`]:{backgroundColor:C,"&.Mui-selected":{backgroundColor:y(C,m,d),"&:hover":{backgroundColor:y(C,m,p)}}}}),v=y(l,u,c),x=g(v),S=y(l,m,d),w=g(S),k=y(l,f,p),E=g(k),T={backgroundColor:m,"&:hover":{backgroundColor:f,"@media (hover: none)":{backgroundColor:m}}};return z({"--unstable_DataGrid-radius":typeof o=="number"?`${o}px`:o,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":a,"--DataGrid-containerBackground":i,"--DataGrid-pinnedBackground":l,"--DataGrid-rowBorderColor":r,"--DataGrid-cellOffsetMultiplier":2,"--DataGrid-width":"0px","--DataGrid-hasScrollX":"0","--DataGrid-hasScrollY":"0","--DataGrid-scrollbarSize":"10px","--DataGrid-rowWidth":"0px","--DataGrid-columnsTotalWidth":"0px","--DataGrid-leftPinnedWidth":"0px","--DataGrid-rightPinnedWidth":"0px","--DataGrid-headerHeight":"0px","--DataGrid-headersTotalHeight":"0px","--DataGrid-topContainerHeight":"0px","--DataGrid-bottomContainerHeight":"0px",flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:r,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflow:"hidden",overflowAnchor:"none",transform:"translate(0, 0)",[`.${B.main} > *:first-child${ED}`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${B.autoHeight}`]:{height:"auto"},[`&.${B.autosizing}`]:{[`& .${B.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${B.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${B.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${B.groupingCriteriaCell}`]:{width:"unset"},[`& .${B.treeDataGroupingCell}`]:{width:"unset"}},[`& .${B.columnHeader}, & .${B.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${B.columnHeader}:focus-within, & .${B.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:fr(e.palette.primary.main,.5)} ${ni}px`,outlineOffset:ni*-1},[`& .${B.columnHeader}:focus, & .${B.cell}:focus`]:{outline:`solid ${e.palette.primary.main} ${ni}px`,outlineOffset:ni*-1},[`& .${B.columnHeader}:focus,
|
|
429
|
+
& .${B["columnHeader--withLeftBorder"]},
|
|
430
|
+
& .${B["columnHeader--withRightBorder"]},
|
|
431
|
+
& .${B["columnHeader--siblingFocused"]},
|
|
432
|
+
& .${B["virtualScroller--hasScrollX"]} .${B["columnHeader--lastUnpinned"]},
|
|
433
|
+
& .${B["virtualScroller--hasScrollX"]} .${B["columnHeader--last"]}
|
|
434
|
+
`]:{[`& .${B.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${B["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${B["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${B["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${B["root--noToolbar"]} [aria-rowindex="1"] .${B["columnHeader--last"]}`]:{borderTopRightRadius:n?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${B.columnHeaderCheckbox}, & .${B.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${B.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${B["virtualScroller--hasScrollX"]} .${B["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${B["columnHeader--sorted"]} .${B.iconButtonContainer}, & .${B["columnHeader--filtered"]} .${B.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${B.columnHeader}:not(.${B["columnHeader--sorted"]}) .${B.sortButton}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${B.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:e.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${B.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${B["columnHeader--filledGroup"]} .${B.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${B.sortIcon}, & .${B.filterIcon}`]:{fontSize:"inherit"},[`& .${B["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${B["columnHeader--alignCenter"]} .${B.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${B["columnHeader--alignRight"]} .${B.columnHeaderDraggableContainer}, & .${B["columnHeader--alignRight"]} .${B.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${B["columnHeader--alignCenter"]} .${B.menuIcon}`]:{marginLeft:"auto"},[`& .${B["columnHeader--alignRight"]} .${B.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${B["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${B["columnHeader--pinnedLeft"]}, & .${B["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:40,background:"var(--DataGrid-pinnedBackground)"},[`& .${B.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:30,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:kD,color:r},[`& .${B.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)"},"@media (hover: hover)":{[`& .${B.columnHeader}:hover`]:{[`& .${B.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${B.iconButtonContainer}`]:{visibility:"visible",width:"auto"}},[`& .${B.columnHeader}:not(.${B["columnHeader--sorted"]}):hover .${B.sortButton}`]:{opacity:.5}},"@media (hover: none)":{[`& .${B.columnHeader} .${B.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${B.columnHeader}:focus,
|
|
435
|
+
& .${B["columnHeader--siblingFocused"]}`]:{[`.${B["columnSeparator--resizable"]}`]:{color:(e.vars||e).palette.primary.main}}},[`& .${B["columnSeparator--sideLeft"]}`]:{left:Cc},[`& .${B["columnSeparator--sideRight"]}`]:{right:Cc},[`& .${B["columnHeader--withRightBorder"]} .${B["columnSeparator--sideLeft"]}`]:{left:Cc-.5},[`& .${B["columnHeader--withRightBorder"]} .${B["columnSeparator--sideRight"]}`]:{right:Cc-.5},[`& .${B["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${B["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.primary.main},"@media (hover: none)":{[`& .${B.iconSeparator} rect`]:y1},"@media (hover: hover)":{"&:hover":{color:(e.vars||e).palette.primary.main,[`& .${B.iconSeparator} rect`]:y1}},"& svg":{pointerEvents:"none"}},[`& .${B.iconSeparator}`]:{color:"inherit",transition:e.transitions.create(["color","width"],{duration:e.transitions.duration.shortest})},[`& .${B.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${B.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${B.headerFilterRow}`]:{[`& .${B.columnHeader}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${B["row--borderBottom"]} .${B.columnHeader},
|
|
436
|
+
& .${B["row--borderBottom"]} .${B.filler},
|
|
437
|
+
& .${B["row--borderBottom"]} .${B.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${B["row--borderBottom"]} .${B.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${B.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${B["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${B.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":T},[`& .${B["container--top"]}, & .${B["container--bottom"]}`]:{"[role=row]":{background:"var(--DataGrid-containerBackground)"}},[`& .${B.cell}`]:{flex:"0 0 auto",height:"var(--height)",width:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":T},[`& .${B["virtualScrollerContent--overflowed"]} .${B["row--lastVisible"]} .${B.cell}`]:{borderTopColor:"transparent"},[`& .${B["pinnedRows--top"]} :first-of-type`]:{[`& .${B.cell}, .${B.scrollbarFiller}`]:{borderTop:"none"}},[`&.${B["root--disableUserSelection"]}`]:{userSelect:"none"},[`& .${B["row--dynamicHeight"]} > .${B.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${B.cellEmpty}`]:{flex:1,padding:0,height:"unset"},[`& .${B.cell}.${B["cell--selectionMode"]}`]:{cursor:"default"},[`& .${B.cell}.${B["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`${ni}px solid ${(e.vars||e).palette.primary.main}`,outlineOffset:ni*-1}},[`& .${B["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${B["row--editing"]} .${B.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${B.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${B.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${B.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${B.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${B.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${B["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${B.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${B.withBorderColor}`]:{borderColor:r},[`& .${B["cell--withLeftBorder"]}, & .${B["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${B["cell--withRightBorder"]}, & .${B["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${B["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${B["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${B["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${B["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${B["cell--pinnedLeft"]}, & .${B["cell--pinnedRight"]}`]:{position:"sticky",zIndex:30,background:"var(--DataGrid-pinnedBackground)","&.Mui-selected":{backgroundColor:S}},[`& .${B.virtualScrollerContent} .${B.row}`]:{"&:hover":x,"&.Mui-selected":w,"&.Mui-selected:hover":E},[`& .${B.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${B.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${B.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${B.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${B["columnHeader--dragging"]}, & .${B["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${B["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${B.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${B.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${B.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${B.treeDataGroupingCellLoadingContainer}, .${B.groupingCriteriaCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${B.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${B.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`.${B.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${B["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${B["scrollbarFiller--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${B["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:"var(--DataGrid-pinnedBackground)",position:"sticky",right:0}},[`& .${B.filler}`]:{flex:"1 0 auto"},[`& .${B["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${B["main--hasSkeletonLoadingOverlay"]}`]:{[`& .${B.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${B["scrollbar--vertical"]}, & .${B.pinnedRows}, & .${B.virtualScroller} > .${B.filler}`]:{display:"none"}}})});function PD(e,t,n,r=1){const o=(c,u)=>Math.round((c**(1/r)*(1-n)+u**(1/r)*n)**r),i=lo(e),l=lo(t),a=[o(i.values[0],l.values[0]),o(i.values[1],l.values[1]),o(i.values[2],l.values[2])];return Sa({type:"rgb",values:a})}const OD=e=>`rgb(from ${e} r g b / 1)`;function MD(e,t,n){return`color-mix(in srgb,${e}, ${OD(t)} calc(${n} * 100%))`}const RD=()=>()=>{},jD=()=>!1,LD=()=>!0,$D=()=>uh.useSyncExternalStore(RD,jD,LD);function ND(){var i,l,a;const e=tt(),t=me(e,yr),n=Le(),r=me(e,ca),o=e.current.unstable_applyPipeProcessors("preferencePanel",null,(i=r.openedPanelValue)!=null?i:Ls.filters);return h.jsx(n.slots.panel,z({as:n.slots.basePopper,open:t.length>0&&r.open,id:r.panelId,"aria-labelledby":r.labelId},(l=n.slotProps)==null?void 0:l.panel,(a=n.slotProps)==null?void 0:a.basePopper,{children:o}))}function FD(){var t;const e=Le();return h.jsxs(b.Fragment,{children:[h.jsx(ND,{}),e.slots.toolbar&&h.jsx(e.slots.toolbar,z({},(t=e.slotProps)==null?void 0:t.toolbar))]})}const AD=["className","children"],DD=(e,t)=>{const{autoHeight:n,classes:r,showCellVerticalBorder:o}=e,i={root:["root",n&&"autoHeight",`root--density${ie(t)}`,e.slots.toolbar===null&&"root--noToolbar","withBorderColor",o&&"withVerticalBorder"]};return ye(i,at,r)},bS=ht(function(t,n){const r=Le(),{className:o,children:i}=t,l=Be(t,AD),a=Ir(),c=me(a,pi),u=a.current.rootElementRef,d=b.useCallback(g=>{g!==null&&a.current.publishEvent("rootMount",g)},[a]),p=It(u,n,d),m=r,f=DD(m,c);return $D()?null:h.jsxs(ID,z({className:ue(f.root,o),ownerState:m},l,{ref:p,children:[h.jsx(FD,{}),h.jsx(oD,{children:i}),h.jsx(sD,{})]}))});process.env.NODE_ENV!=="production"&&(bS.propTypes={sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const _D=Po(bS),zD=["className"],BD=e=>{const{classes:t}=e;return ye({root:["footerContainer","withBorderColor"]},at,t)},VD=$t("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),yS=ht(function(t,n){const{className:r}=t,o=Be(t,zD),i=Le(),l=BD(i);return h.jsx(VD,z({className:ue(l.root,r),ownerState:i},o,{ref:n}))});process.env.NODE_ENV!=="production"&&(yS.propTypes={sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const HD=["className"],GD=e=>{const{classes:t}=e;return ye({root:["overlay"]},at,t)},WD=$t("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),gd=ht(function(t,n){const{className:r}=t,o=Be(t,HD),i=Le(),l=GD(i);return h.jsx(WD,z({className:ue(l.root,r),ownerState:i},o,{ref:n}))});process.env.NODE_ENV!=="production"&&(gd.propTypes={sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const UD=e=>{const{classes:t,open:n}=e;return ye({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},at,t)},qD=b.memo(e=>{var m,f,y;const{colDef:t,open:n,columnMenuId:r,columnMenuButtonId:o,iconButtonRef:i}=e,l=tt(),a=Le(),c=z({},e,{classes:a.classes}),u=UD(c),d=b.useCallback(g=>{g.preventDefault(),g.stopPropagation(),l.current.toggleColumnMenu(t.field)},[l,t.field]),p=(m=t.headerName)!=null?m:t.field;return h.jsx("div",{className:u.root,children:h.jsx(a.slots.baseTooltip,z({title:l.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(f=a.slotProps)==null?void 0:f.baseTooltip,{children:h.jsx(a.slots.baseIconButton,z({ref:i,tabIndex:-1,className:u.button,"aria-label":l.current.getLocaleText("columnMenuAriaLabel")(p),size:"small",onClick:d,"aria-haspopup":"menu","aria-expanded":n,"aria-controls":n?r:void 0,id:o},(y=a.slotProps)==null?void 0:y.baseIconButton,{children:h.jsx(a.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})});function vS({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:l,onExited:a}){const c=tt(),u=c.current.getColumn(o),d=nt(p=>{p&&(p.stopPropagation(),l!=null&&l.contains(p.target))||c.current.hideColumnMenu()});return!l||!u?null:h.jsx(sd,{placement:`bottom-${u.align==="right"?"start":"end"}`,open:i,target:l,onClose:d,onExited:a,children:h.jsx(n,z({colDef:u,hideMenu:d,open:i,id:e,labelledby:t},r))})}process.env.NODE_ENV!=="production"&&(vS.propTypes={columnMenuButtonId:s.string,columnMenuId:s.string,ContentComponent:s.elementType.isRequired,contentComponentProps:s.any,field:s.string.isRequired,onExited:s.func,open:s.bool.isRequired,target:xr});function KD(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function du(e,t){return e.closest(`.${t}`)}function Mo(e){return e.replace(/["\\]/g,"\\$&")}function YD(e,t){return e.querySelector(`[role="columnheader"][data-field="${Mo(t)}"]`)}function xS(e){return`.${B.row}[data-id="${Mo(String(e))}"]`}function XD(e,t){return e.querySelector(xS(t))}function ZD(e,{id:t,field:n}){const r=xS(t),o=`.${B.cell}[data-field="${Mo(n)}"]`,i=`${r} ${o}`;return e.querySelector(i)}function Ga(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function QD(e){return e.getAttribute("data-field")}function JD(e,t){return e.querySelector(`[data-field="${Mo(t)}"]`)}function e_(e){return e.getAttribute("data-fields").slice(2,-2).split("-|-")}function t_(e,t){var n;return Array.from((n=e.querySelectorAll(`[data-fields*="|-${Mo(t)}-|"]`))!=null?n:[])}function n_(e,t){var l;if(!du(e,B.root))throw new Error("MUI X: The root element is not found.");const r=e.getAttribute("aria-colindex");if(!r)return[];const o=Number(r)-1,i=[];return(l=t.virtualScrollerRef)!=null&&l.current?(SS(t).forEach(a=>{const c=a.getAttribute("data-id");if(!c)return;let u=o;const d=t.unstable_getCellColSpanInfo(c,o);d&&d.spannedByColSpan&&(u=d.leftVisibleCellIndex);const p=a.querySelector(`[data-colindex="${u}"]`);p&&i.push(p)}),i):[]}function v1(e,t){return e.rootElementRef.current.querySelector(`.${B[t]}`)}const CS=({api:e,colIndex:t,position:n,filterFn:r})=>{if(t===null)return[];const o=[];return SS(e).forEach(i=>{i.getAttribute("data-id")&&i.querySelectorAll(`.${B[n==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(a=>{const c=Ui(a);c!==null&&r(c)&&o.push(a)})}),o};function r_(e,t,n){const r=Ui(t);return CS({api:e,colIndex:r,position:n?"right":"left",filterFn:o=>n?o<r:o>r})}function o_(e,t,n){const r=Ui(t);return CS({api:e,colIndex:r,position:n?"left":"right",filterFn:o=>n?o>r:o<r})}const wS=({api:e,colIndex:t,position:n,filterFn:r})=>{var i;if(!((i=e.columnHeadersContainerRef)!=null&&i.current))return[];if(t===null)return[];const o=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${B[n==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(l=>{const a=Ui(l);a!==null&&r(a,l)&&o.push(l)}),o};function s_(e,t,n){const r=Ui(t);return wS({api:e,position:n?"right":"left",colIndex:r,filterFn:o=>n?o<r:o>r})}function i_(e,t,n){const r=Ui(t);return wS({api:e,position:n?"left":"right",colIndex:r,filterFn:(o,i)=>i.classList.contains(B["columnHeader--last"])?!1:n?o>r:o<r})}function l_(e,t){return e.columnHeadersContainerRef.current.querySelector(`:scope > div > [data-field="${Mo(t)}"][role="columnheader"]`)}function a_(e,t){const n=e.virtualScrollerRef.current;return Array.from(n.querySelectorAll(`:scope > div > div > div > [data-field="${Mo(t)}"][role="gridcell"]`))}function SS(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${B.row}`)}function Ui(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}const c_=["className","aria-label"],u_=e=>{const{classes:t}=e;return ye({root:["columnHeaderTitle"]},at,t)},d_=$t("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),p_=ht(function(t,n){const{className:r}=t,o=Be(t,c_),i=Le(),l=u_(i);return h.jsx(d_,z({className:ue(l.root,r),ownerState:i},o,{ref:n}))});function kS(e){var c;const{label:t,description:n}=e,r=Le(),o=b.useRef(null),[i,l]=b.useState(""),a=b.useCallback(()=>{if(!n&&(o!=null&&o.current)){const u=KD(o.current);l(u?t:"")}},[n,t]);return h.jsx(r.slots.baseTooltip,z({title:n||i},(c=r.slotProps)==null?void 0:c.baseTooltip,{children:h.jsx(p_,{onMouseOver:a,ref:o,children:t})}))}process.env.NODE_ENV!=="production"&&(kS.propTypes={columnWidth:s.number.isRequired,description:s.node,label:s.string.isRequired});const f_=["resizable","resizing","height","side"];var Rh=(function(e){return e.Left="left",e.Right="right",e})(Rh||{});const m_=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${ie(o)}`],icon:["iconSeparator"]};return ye(i,at,r)};function ES(e){const{height:t,side:n=Rh.Right}=e,r=Be(e,f_),o=Le(),i=z({},e,{side:n,classes:o.classes}),l=m_(i),a=b.useCallback(c=>{c.preventDefault(),c.stopPropagation()},[]);return h.jsx("div",z({className:l.root,style:{minHeight:t}},r,{onClick:a,children:h.jsx(o.slots.columnResizeIcon,{className:l.icon})}))}const h_=b.memo(ES);process.env.NODE_ENV!=="production"&&(ES.propTypes={height:s.number.isRequired,resizable:s.bool.isRequired,resizing:s.bool.isRequired,side:s.oneOf(["left","right"])});const g_=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],TS=ht(function(t,n){const{classes:r,colIndex:o,height:i,isResizing:l,sortDirection:a,tabIndex:c,separatorSide:u,isDraggable:d,headerComponent:p,description:m,width:f,columnMenuIconButton:y=null,columnMenu:g=null,columnTitleIconButtons:v=null,headerClassName:x,label:S,resizable:w,draggableContainerProps:k,columnHeaderSeparatorProps:E,style:T}=t,N=Be(t,g_),P=Le(),O=b.useRef(null),L=It(O,n);let $="none";return a!=null&&($=a==="asc"?"ascending":"descending"),h.jsxs("div",z({className:ue(r.root,x),style:z({},T,{height:i,width:f}),role:"columnheader",tabIndex:c,"aria-colindex":o+1,"aria-sort":$},N,{ref:L,children:[h.jsxs("div",z({className:r.draggableContainer,draggable:d,role:"presentation"},k,{children:[h.jsxs("div",{className:r.titleContainer,role:"presentation",children:[h.jsx("div",{className:r.titleContainerContent,children:p!==void 0?p:h.jsx(kS,{label:S,description:m,columnWidth:f})}),v]}),y]})),h.jsx(h_,z({resizable:!P.disableColumnResize&&!!w,resizing:l,height:i,side:u},E)),g]}))}),b_=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,showLeftBorder:l,filterItemsCounter:a,pinnedPosition:c,isLastUnpinned:u,isSiblingFocused:d}=e,p=o!=null,m=a!=null&&a>0,f=t.type==="number",y={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",p&&"columnHeader--sorted",m&&"columnHeader--filtered",f&&"columnHeader--numeric","withBorderColor",i&&"columnHeader--withRightBorder",l&&"columnHeader--withLeftBorder",c===rt.LEFT&&"columnHeader--pinnedLeft",c===rt.RIGHT&&"columnHeader--pinnedRight",u&&"columnHeader--lastUnpinned",d&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return ye(y,at,n)};function IS(e){var Z,X,Q,re,J;const{colDef:t,columnMenuOpen:n,colIndex:r,headerHeight:o,isResizing:i,isLast:l,sortDirection:a,sortIndex:c,filterItemsCounter:u,hasFocus:d,tabIndex:p,disableReorder:m,separatorSide:f,showLeftBorder:y,showRightBorder:g,pinnedPosition:v,pinnedOffset:x}=e,S=Ir(),w=Le(),k=Nn(),E=b.useRef(null),T=xt(),N=xt(),P=b.useRef(null),[O,L]=b.useState(n),$=b.useMemo(()=>!w.disableColumnReorder&&!m&&!t.disableReorder,[w.disableColumnReorder,m,t.disableReorder]);let C;t.renderHeader&&(C=t.renderHeader(S.current.getColumnHeaderParams(t.field)));const j=z({},e,{classes:w.classes,showRightBorder:g,showLeftBorder:y}),F=b_(j),M=b.useCallback(oe=>te=>{Ga(te)||S.current.publishEvent(oe,S.current.getColumnHeaderParams(t.field),te)},[S,t.field]),R=b.useMemo(()=>({onClick:M("columnHeaderClick"),onContextMenu:M("columnHeaderContextMenu"),onDoubleClick:M("columnHeaderDoubleClick"),onMouseOver:M("columnHeaderOver"),onMouseOut:M("columnHeaderOut"),onMouseEnter:M("columnHeaderEnter"),onMouseLeave:M("columnHeaderLeave"),onKeyDown:M("columnHeaderKeyDown"),onFocus:M("columnHeaderFocus"),onBlur:M("columnHeaderBlur")}),[M]),_=b.useMemo(()=>$?{onDragStart:M("columnHeaderDragStart"),onDragEnter:M("columnHeaderDragEnter"),onDragOver:M("columnHeaderDragOver"),onDragEnd:M("columnHeaderDragEnd")}:{},[$,M]),V=b.useMemo(()=>({onMouseDown:M("columnSeparatorMouseDown"),onDoubleClick:M("columnSeparatorDoubleClick")}),[M]);b.useEffect(()=>{O||L(n)},[O,n]);const W=b.useCallback(()=>{L(!1)},[]),I=!w.disableColumnMenu&&!t.disableColumnMenu&&h.jsx(qD,{colDef:t,columnMenuId:T,columnMenuButtonId:N,open:O,iconButtonRef:P}),D=h.jsx(vS,{columnMenuId:T,columnMenuButtonId:N,field:t.field,open:n,target:P.current,ContentComponent:w.slots.columnMenu,contentComponentProps:(Z=w.slotProps)==null?void 0:Z.columnMenu,onExited:W}),G=(X=t.sortingOrder)!=null?X:w.sortingOrder,A=(t.sortable||a!=null)&&!t.hideSortIcons&&!w.disableColumnSorting,K=h.jsxs(b.Fragment,{children:[!w.disableColumnFilter&&h.jsx(w.slots.columnHeaderFilterIconButton,z({field:t.field,counter:u},(Q=w.slotProps)==null?void 0:Q.columnHeaderFilterIconButton)),A&&h.jsx(w.slots.columnHeaderSortIcon,z({field:t.field,direction:a,index:c,sortingOrder:G,disabled:!t.sortable},(re=w.slotProps)==null?void 0:re.columnHeaderSortIcon))]});b.useLayoutEffect(()=>{const oe=S.current.state.columnMenu;if(d&&!oe.open){const fe=E.current.querySelector('[tabindex="0"]')||E.current;if(!fe)return;if(Mh())fe.focus({preventScroll:!0});else{const ve=S.current.getScrollPosition();fe.focus(),S.current.scroll(ve)}}},[S,d]);const Y=typeof t.headerClassName=="function"?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,U=(J=t.headerName)!=null?J:t.field,q=b.useMemo(()=>hd(z({},e.style),k,v,x),[v,x,e.style,k]);return h.jsx(TS,z({ref:E,classes:F,columnMenuOpen:n,colIndex:r,height:o,isResizing:i,sortDirection:a,hasFocus:d,tabIndex:p,separatorSide:f,isDraggable:$,headerComponent:C,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:I,columnTitleIconButtons:K,headerClassName:ue(Y,l&&B["columnHeader--last"]),label:U,resizable:!w.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:D,draggableContainerProps:_,columnHeaderSeparatorProps:V,style:q},R))}process.env.NODE_ENV!=="production"&&(IS.propTypes={colDef:s.object.isRequired,colIndex:s.number.isRequired,columnMenuOpen:s.bool.isRequired,disableReorder:s.bool,filterItemsCounter:s.number,hasFocus:s.bool,headerHeight:s.number.isRequired,isDragging:s.bool.isRequired,isLast:s.bool.isRequired,isLastUnpinned:s.bool.isRequired,isResizing:s.bool.isRequired,isSiblingFocused:s.bool.isRequired,pinnedOffset:s.number,pinnedPosition:s.oneOf([0,1,2,3]),separatorSide:s.oneOf(["left","right"]),showLeftBorder:s.bool.isRequired,showRightBorder:s.bool.isRequired,sortDirection:s.oneOf(["asc","desc"]),sortIndex:s.number,style:s.object,tabIndex:s.oneOf([-1,0]).isRequired});const y_=Po(IS),v_=["className"],x_=e=>{const{classes:t}=e;return ye({root:["iconButtonContainer"]},at,t)},C_=$t("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),PS=ht(function(t,n){const{className:r}=t,o=Be(t,v_),i=Le(),l=x_(i);return h.jsx(C_,z({className:ue(l.root,r),ownerState:i},o,{ref:n}))}),w_=["direction","index","sortingOrder","disabled","className"],S_=e=>{const{classes:t}=e;return ye({root:["sortButton"],icon:["sortIcon"]},at,t)};function k_(e,t,n,r){let o;const i={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,i.sortingOrder=r),o?h.jsx(o,z({fontSize:"small",className:n},i)):null}function OS(e){var f;const{direction:t,index:n,sortingOrder:r,disabled:o,className:i}=e,l=Be(e,w_),a=tt(),c=Le(),u=z({},e,{classes:c.classes}),d=S_(u),p=k_(c.slots,t,d.icon,r);if(!p)return null;const m=h.jsx(c.slots.baseIconButton,z({tabIndex:-1,"aria-label":a.current.getLocaleText("columnHeaderSortIconLabel"),title:a.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:o,className:ue(d.root,i)},(f=c.slotProps)==null?void 0:f.baseIconButton,l,{children:p}));return h.jsxs(PS,{children:[n!=null&&h.jsx(c.slots.baseBadge,{badgeContent:n,color:"default",overlap:"circular",children:m}),n==null&&m]})}const E_=b.memo(OS);process.env.NODE_ENV!=="production"&&(OS.propTypes={className:s.string,direction:s.oneOf(["asc","desc"]),disabled:s.bool,field:s.string.isRequired,index:s.number,sortingOrder:s.arrayOf(s.oneOf(["asc","desc"])).isRequired});const T_=e=>{const{classes:t}=e;return ye({icon:["filterIcon"]},at,t)};function MS(e){return e.counter?h.jsx(RS,z({},e)):null}process.env.NODE_ENV!=="production"&&(MS.propTypes={counter:s.number,field:s.string.isRequired,onClick:s.func});function RS(e){var f,y;const{counter:t,field:n,onClick:r}=e,o=tt(),i=Le(),l=z({},e,{classes:i.classes}),a=T_(l),c=xt(),u=ia(o,ZA,c),d=xt(),p=b.useCallback(g=>{g.preventDefault(),g.stopPropagation();const{open:v,openedPanelValue:x}=ca(o.current.state);v&&x===Ls.filters?o.current.hideFilterPanel():o.current.showFilterPanel(void 0,d,c),r&&r(o.current.getColumnHeaderParams(n),g)},[o,n,r,d,c]);if(!t)return null;const m=h.jsx(i.slots.baseIconButton,z({id:c,onClick:p,color:"default","aria-label":o.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":u,"aria-controls":u?d:void 0},(f=i.slotProps)==null?void 0:f.baseIconButton,{children:h.jsx(i.slots.columnFilteredIcon,{className:a.icon,fontSize:"small"})}));return h.jsx(i.slots.baseTooltip,z({title:o.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},(y=i.slotProps)==null?void 0:y.baseTooltip,{children:h.jsxs(PS,{children:[t>1&&h.jsx(i.slots.baseBadge,{badgeContent:t,color:"default",children:m}),t===1&&m]})}))}process.env.NODE_ENV!=="production"&&(RS.propTypes={counter:s.number,field:s.string.isRequired,onClick:s.func});const x1=Me(h.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),C1=Me(h.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),w1=Me(h.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),S1=Me(h.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),I_=Me(h.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),k1=Me(h.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),P_=Me(h.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 19l-4.99-5zm-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 14z"}),"Search");Me(h.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");Me(h.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const O_=Me(h.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),M_=Me(h.jsx("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"}),"Separator"),R_=Me(h.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),j_=Me(h.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),L_=Me(h.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),$_=Me(h.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),fp=Me(h.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"),E1=Me(h.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),N_=Me(h.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),F_=Me(h.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),T1=Me(h.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),A_=Me(h.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),D_=Me(h.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),__=Me(h.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),z_=Me(h.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),B_=Me(h.jsx("g",{children:h.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),V_=Me(h.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"}),"Clear");Me(h.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const H_=Me(h.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");function jS(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const pu=e=>e.indexOf("Arrow")===0||e.indexOf("Page")===0||e===" "||e==="Home"||e==="End",G_=e=>!!e.key,LS=e=>e==="Tab"||e==="Escape";function $S(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="V"&&!e.shiftKey&&!e.altKey}function W_(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="C"&&!e.shiftKey&&!e.altKey}const U_=["hideMenu","colDef","id","labelledby","className","children","open"],q_=ne(La)(()=>({minWidth:248})),NS=ht(function(t,n){const{hideMenu:r,id:o,labelledby:i,className:l,children:a,open:c}=t,u=Be(t,U_),d=b.useCallback(p=>{p.key==="Tab"&&p.preventDefault(),LS(p.key)&&r(p)},[r]);return h.jsx(q_,z({id:o,className:ue(B.menuList,l),"aria-labelledby":i,onKeyDown:d,autoFocus:c},u,{ref:n,children:a}))});process.env.NODE_ENV!=="production"&&(NS.propTypes={colDef:s.object.isRequired,hideMenu:s.func.isRequired,id:s.string,labelledby:s.string,open:s.bool.isRequired});const K_=["displayOrder"],Y_=e=>{const t=Ir(),n=Le(),{defaultSlots:r,defaultSlotProps:o,slots:i={},slotProps:l={},hideMenu:a,colDef:c,addDividers:u=!0}=e,d=b.useMemo(()=>z({},r,i),[r,i]),p=b.useMemo(()=>{if(!l||Object.keys(l).length===0)return o;const y=z({},l);return Object.entries(o).forEach(([g,v])=>{y[g]=z({},v,l[g]||{})}),y},[o,l]),m=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),f=b.useMemo(()=>{const y=Object.keys(r);return Object.keys(i).filter(g=>!y.includes(g))},[i,r]);return b.useMemo(()=>{const v=Array.from(new Set([...m,...f])).filter(x=>d[x]!=null).sort((x,S)=>{const w=p[x],k=p[S],E=Number.isFinite(w==null?void 0:w.displayOrder)?w.displayOrder:100,T=Number.isFinite(k==null?void 0:k.displayOrder)?k.displayOrder:100;return E-T});return v.reduce((x,S,w)=>{let k={colDef:c,onClick:a};const E=p[S];if(E){const T=Be(E,K_);k=z({},k,T)}return u&&w!==v.length-1?[...x,[d[S],k],[n.slots.baseDivider,{}]]:[...x,[d[S],k]]},[])},[u,c,m,a,d,p,f,n.slots.baseDivider])};function FS(e){const{colDef:t,onClick:n}=e,r=tt(),o=Le(),a=Xt(r).filter(u=>u.disableColumnMenu!==!0).length===1,c=b.useCallback(u=>{a||(r.current.setColumnVisibility(t.field,!1),n(u))},[r,t.field,n,a]);return o.disableColumnSelector||t.hideable===!1?null:h.jsxs(Vn,{onClick:c,disabled:a,children:[h.jsx(ks,{children:h.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),h.jsx(Es,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}process.env.NODE_ENV!=="production"&&(FS.propTypes={colDef:s.object.isRequired,onClick:s.func.isRequired});function AS(e){const{onClick:t}=e,n=tt(),r=Le(),o=b.useCallback(i=>{t(i),n.current.showPreferences(Ls.columns)},[n,t]);return r.disableColumnSelector?null:h.jsxs(Vn,{onClick:o,children:[h.jsx(ks,{children:h.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),h.jsx(Es,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}process.env.NODE_ENV!=="production"&&(AS.propTypes={colDef:s.object.isRequired,onClick:s.func.isRequired});function DS(e){return h.jsxs(b.Fragment,{children:[h.jsx(FS,z({},e)),h.jsx(AS,z({},e))]})}process.env.NODE_ENV!=="production"&&(DS.propTypes={colDef:s.object.isRequired,onClick:s.func.isRequired});function _S(e){const{colDef:t,onClick:n}=e,r=tt(),o=Le(),i=b.useCallback(l=>{n(l),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:h.jsxs(Vn,{onClick:i,children:[h.jsx(ks,{children:h.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),h.jsx(Es,{children:r.current.getLocaleText("columnMenuFilter")})]})}process.env.NODE_ENV!=="production"&&(_S.propTypes={colDef:s.object.isRequired,onClick:s.func.isRequired});function zS(e){var d;const{colDef:t,onClick:n}=e,r=tt(),o=me(r,jr),i=Le(),l=b.useMemo(()=>{if(!t)return null;const p=o.find(m=>m.field===t.field);return p==null?void 0:p.sort},[t,o]),a=(d=t.sortingOrder)!=null?d:i.sortingOrder,c=b.useCallback(p=>{n(p);const m=p.currentTarget.getAttribute("data-value")||null;r.current.sortColumn(t.field,m===l?null:m)},[r,t,n,l]);if(i.disableColumnSorting||!t||!t.sortable||!a.some(p=>!!p))return null;const u=p=>{const m=r.current.getLocaleText(p);return typeof m=="function"?m(t):m};return h.jsxs(b.Fragment,{children:[a.includes("asc")&&l!=="asc"?h.jsxs(Vn,{onClick:c,"data-value":"asc",children:[h.jsx(ks,{children:h.jsx(i.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),h.jsx(Es,{children:u("columnMenuSortAsc")})]}):null,a.includes("desc")&&l!=="desc"?h.jsxs(Vn,{onClick:c,"data-value":"desc",children:[h.jsx(ks,{children:h.jsx(i.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),h.jsx(Es,{children:u("columnMenuSortDesc")})]}):null,a.includes(null)&&l!=null?h.jsxs(Vn,{onClick:c,children:[h.jsx(ks,{}),h.jsx(Es,{children:r.current.getLocaleText("columnMenuUnsort")})]}):null]})}process.env.NODE_ENV!=="production"&&(zS.propTypes={colDef:s.object.isRequired,onClick:s.func.isRequired});const X_=["defaultSlots","defaultSlotProps","slots","slotProps"],Z_={columnMenuSortItem:zS,columnMenuFilterItem:_S,columnMenuColumnsItem:DS},Q_={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},BS=ht(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:l}=t,a=Be(t,X_),c=Y_(z({},a,{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:l}));return h.jsx(NS,z({},a,{ref:n,children:c.map(([u,d],p)=>h.jsx(u,z({},d),p))}))});process.env.NODE_ENV!=="production"&&(BS.propTypes={colDef:s.object.isRequired,defaultSlotProps:s.object.isRequired,defaultSlots:s.object.isRequired,hideMenu:s.func.isRequired,id:s.string,labelledby:s.string,open:s.bool.isRequired,slotProps:s.object,slots:s.object});const VS=ht(function(t,n){return h.jsx(BS,z({},t,{ref:n,defaultSlots:Z_,defaultSlotProps:Q_}))});process.env.NODE_ENV!=="production"&&(VS.propTypes={colDef:s.object.isRequired,hideMenu:s.func.isRequired,id:s.string,labelledby:s.string,open:s.bool.isRequired,slotProps:s.object,slots:s.object});const J_=["className","slotProps"],ez=e=>{const{classes:t}=e;return ye({root:["panelWrapper"]},at,t)},tz=ne("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),nz=()=>!0,jh=ht(function(t,n){const{className:r,slotProps:o={}}=t,i=Be(t,J_),l=Le(),a=ez(l);return h.jsx(ra,z({open:!0,disableEnforceFocus:!0,isEnabled:nz},o.TrapFocus,{children:h.jsx(tz,z({tabIndex:-1,className:ue(a.root,r),ownerState:l},i,{ref:n}))}))});process.env.NODE_ENV!=="production"&&(jh.propTypes={slotProps:s.object});function HS(e){var n;const t=Le();return h.jsx(jh,z({},e,{children:h.jsx(t.slots.columnsManagement,z({},(n=t.slotProps)==null?void 0:n.columnsManagement))}))}process.env.NODE_ENV!=="production"&&(HS.propTypes={slotProps:s.object});const rz=["children","className","classes"],oz=$e("MuiDataGrid",["panel","paper"]),sz=ne(ns,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),iz=ne(Br,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex",maxWidth:`calc(100vw - ${e.spacing(.5)})`,overflow:"auto"})),GS=ht((e,t)=>{const{children:n,className:r}=e,o=Be(e,rz),i=tt(),l=Le(),a=oz,[c,u]=b.useState(!1),d=b.useCallback(()=>{i.current.hidePreferences()},[i]),p=b.useCallback(g=>{g.key==="Escape"&&i.current.hidePreferences()},[i]),m=b.useMemo(()=>[{name:"flip",enabled:!0,options:{rootBoundary:"document"}},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{u(!0)},effect:()=>()=>{u(!1)}}],[]),[f,y]=b.useState(null);return b.useEffect(()=>{var v,x;const g=(x=(v=i.current.rootElementRef)==null?void 0:v.current)==null?void 0:x.querySelector('[data-id="gridPanelAnchor"]');g&&y(g)},[i]),f?h.jsx(sz,z({placement:"bottom-start",className:ue(a.panel,r),ownerState:l,anchorEl:f,modifiers:m},o,{ref:t,children:h.jsx(na,{mouseEvent:"onPointerUp",touchEvent:!1,onClickAway:d,children:h.jsx(iz,{className:a.paper,ownerState:l,elevation:8,onKeyDown:p,children:c&&n})})})):null});process.env.NODE_ENV!=="production"&&(GS.propTypes={children:s.node,classes:s.object,open:s.bool.isRequired,ownerState:s.object});const lz=["className"],az=e=>{const{classes:t}=e;return ye({root:["panelContent"]},at,t)},cz=$t("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function WS(e){const{className:t}=e,n=Be(e,lz),r=Le(),o=az(r);return h.jsx(cz,z({className:ue(o.root,t),ownerState:r},n))}process.env.NODE_ENV!=="production"&&(WS.propTypes={sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const uz=["className"],dz=e=>{const{classes:t}=e;return ye({root:["panelFooter"]},at,t)},pz=$t("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function US(e){const{className:t}=e,n=Be(e,uz),r=Le(),o=dz(r);return h.jsx(pz,z({className:ue(o.root,t),ownerState:r},n))}process.env.NODE_ENV!=="production"&&(US.propTypes={sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const fz=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],mz=["InputComponentProps"],hz=e=>{const{classes:t}=e;return ye({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},at,t)},gz=ne("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),bz=ne("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),yz=ne("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),vz=ne("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),xz=ne("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:150}),Cz=ne("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),wz=e=>{switch(e){case Ln.And:return"filterPanelOperatorAnd";case Ln.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},pl=e=>e.headerName||e.field,I1=new Intl.Collator,Cf=ht(function(t,n){var fe,ve,Ce,xe,Se,Oe,Ae,se,Ge,Ie,Ye;const{item:r,hasMultipleFilters:o,deleteFilter:i,applyFilterChanges:l,showMultiFilterOperators:a,disableMultiFilterOperator:c,applyMultiFilterOperatorChanges:u,focusElementRef:d,logicOperators:p=[Ln.And,Ln.Or],columnsSort:m,filterColumns:f,deleteIconProps:y={},logicOperatorInputProps:g={},operatorInputProps:v={},columnInputProps:x={},valueInputProps:S={},readOnly:w}=t,k=Be(t,fz),E=tt(),T=me(E,Oo),N=me(E,bw),P=me(E,yn),O=xt(),L=xt(),$=xt(),C=xt(),j=Le(),F=hz(j),M=b.useRef(null),R=b.useRef(null),_=(fe=P.logicOperator)!=null?fe:Ln.And,V=o&&p.length>0,W=((ve=j.slotProps)==null?void 0:ve.baseFormControl)||{},D=(xe=(((Ce=j.slotProps)==null?void 0:Ce.baseSelect)||{}).native)!=null?xe:!1,G=((Se=j.slotProps)==null?void 0:Se.baseInputLabel)||{},A=((Oe=j.slotProps)==null?void 0:Oe.baseSelectOption)||{},{InputComponentProps:K}=S,Y=Be(S,mz),{filteredColumns:U,selectedField:q}=b.useMemo(()=>{let ee=r.field;const de=T[r.field].filterable===!1?T[r.field]:null;if(de)return{filteredColumns:[de],selectedField:ee};if(f===void 0||typeof f!="function")return{filteredColumns:N,selectedField:ee};const he=f({field:r.field,columns:N,currentFilters:(P==null?void 0:P.items)||[]});return{filteredColumns:N.filter(ae=>{const ge=he.includes(ae.field);return ae.field===r.field&&!ge&&(ee=void 0),ge}),selectedField:ee}},[f,P==null?void 0:P.items,N,r.field,T]),Z=b.useMemo(()=>{switch(m){case"asc":return U.sort((ee,de)=>I1.compare(pl(ee),pl(de)));case"desc":return U.sort((ee,de)=>-I1.compare(pl(ee),pl(de)));default:return U}},[U,m]),X=r.field?E.current.getColumn(r.field):null,Q=b.useMemo(()=>{var ee;return!r.operator||!X?null:(ee=X.filterOperators)==null?void 0:ee.find(de=>de.value===r.operator)},[r,X]),re=b.useCallback(ee=>{const de=ee.target.value,he=E.current.getColumn(de);if(he.field===X.field)return;const ae=he.filterOperators.find(Te=>Te.value===r.operator)||he.filterOperators[0];let be=!ae.InputComponent||ae.InputComponent!==(Q==null?void 0:Q.InputComponent)||he.type!==X.type?void 0:r.value;if(he.type==="singleSelect"&&be!==void 0){const Te=he,_e=js(Te);Array.isArray(be)?be=be.filter(ke=>au(ke,_e,Te==null?void 0:Te.getOptionValue)!==void 0):au(r.value,_e,Te==null?void 0:Te.getOptionValue)===void 0&&(be=void 0)}l(z({},r,{field:de,operator:ae.value,value:be}))},[E,l,r,X,Q]),J=b.useCallback(ee=>{const de=ee.target.value,he=X==null?void 0:X.filterOperators.find(ge=>ge.value===de),ae=!(he!=null&&he.InputComponent)||(he==null?void 0:he.InputComponent)!==(Q==null?void 0:Q.InputComponent);l(z({},r,{operator:de,value:ae?void 0:r.value}))},[l,r,X,Q]),oe=b.useCallback(ee=>{const de=ee.target.value===Ln.And.toString()?Ln.And:Ln.Or;u(de)},[u]),te=()=>{i(r)};return b.useImperativeHandle(d,()=>({focus:()=>{var ee;Q!=null&&Q.InputComponent?(ee=M==null?void 0:M.current)==null||ee.focus():R.current.focus()}}),[Q]),h.jsxs(gz,z({className:F.root,"data-id":r.id,ownerState:j},k,{ref:n,children:[h.jsx(bz,z({variant:"standard",as:j.slots.baseFormControl},W,y,{className:ue(F.deleteIcon,W.className,y.className),ownerState:j,children:h.jsx(j.slots.baseIconButton,z({"aria-label":E.current.getLocaleText("filterPanelDeleteIconLabel"),title:E.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:te,size:"small",disabled:w},(Ae=j.slotProps)==null?void 0:Ae.baseIconButton,{children:h.jsx(j.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),h.jsx(yz,z({variant:"standard",as:j.slots.baseFormControl},W,g,{sx:[V?{display:"flex"}:{display:"none"},a?{visibility:"visible"}:{visibility:"hidden"},W.sx,g.sx],className:ue(F.logicOperatorInput,W.className,g.className),ownerState:j,children:h.jsx(j.slots.baseSelect,z({inputProps:{"aria-label":E.current.getLocaleText("filterPanelLogicOperator")},value:_!=null?_:"",onChange:oe,disabled:!!c||p.length===1,native:D},(se=j.slotProps)==null?void 0:se.baseSelect,{children:p.map(ee=>H.createElement(j.slots.baseSelectOption,z({},A,{native:D,key:ee.toString(),value:ee.toString()}),E.current.getLocaleText(wz(ee))))}))})),h.jsxs(vz,z({variant:"standard",as:j.slots.baseFormControl},W,x,{className:ue(F.columnInput,W.className,x.className),ownerState:j,children:[h.jsx(j.slots.baseInputLabel,z({},G,{htmlFor:O,id:L,children:E.current.getLocaleText("filterPanelColumns")})),h.jsx(j.slots.baseSelect,z({labelId:L,id:O,label:E.current.getLocaleText("filterPanelColumns"),value:q!=null?q:"",onChange:re,native:D,disabled:w},(Ge=j.slotProps)==null?void 0:Ge.baseSelect,{children:Z.map(ee=>H.createElement(j.slots.baseSelectOption,z({},A,{native:D,key:ee.field,value:ee.field}),pl(ee)))}))]})),h.jsxs(xz,z({variant:"standard",as:j.slots.baseFormControl},W,v,{className:ue(F.operatorInput,W.className,v.className),ownerState:j,children:[h.jsx(j.slots.baseInputLabel,z({},G,{htmlFor:$,id:C,children:E.current.getLocaleText("filterPanelOperator")})),h.jsx(j.slots.baseSelect,z({labelId:C,label:E.current.getLocaleText("filterPanelOperator"),id:$,value:r.operator,onChange:J,native:D,inputRef:R,disabled:w},(Ie=j.slotProps)==null?void 0:Ie.baseSelect,{children:(Ye=X==null?void 0:X.filterOperators)==null?void 0:Ye.map(ee=>H.createElement(j.slots.baseSelectOption,z({},A,{native:D,key:ee.value,value:ee.value}),ee.label||E.current.getLocaleText(`filterOperator${ie(ee.value)}`)))}))]})),h.jsx(Cz,z({variant:"standard",as:j.slots.baseFormControl},W,Y,{className:ue(F.valueInput,W.className,Y.className),ownerState:j,children:Q!=null&&Q.InputComponent?h.jsx(Q.InputComponent,z({apiRef:E,item:r,applyValue:l,focusElementRef:M,disabled:w},Q.InputComponentProps,K),r.field):null}))]}))});process.env.NODE_ENV!=="production"&&(Cf.propTypes={applyFilterChanges:s.func.isRequired,applyMultiFilterOperatorChanges:s.func.isRequired,children:s.node,columnInputProps:s.any,columnsSort:s.oneOf(["asc","desc"]),deleteFilter:s.func.isRequired,deleteIconProps:s.any,disableMultiFilterOperator:s.bool,filterColumns:s.func,focusElementRef:s.oneOfType([s.func,s.object]),hasMultipleFilters:s.bool.isRequired,item:s.shape({field:s.string.isRequired,id:s.oneOfType([s.number,s.string]),operator:s.string.isRequired,value:s.any}).isRequired,logicOperatorInputProps:s.any,logicOperators:s.arrayOf(s.oneOf(["and","or"]).isRequired),operatorInputProps:s.any,readOnly:s.bool,showMultiFilterOperators:s.bool,valueInputProps:s.any});const Sz=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],P1=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),qS=ht(function(t,n){var C,j;const r=tt(),o=Le(),i=me(r,yn),l=me(r,bw),a=me(r,lF),c=b.useRef(null),u=b.useRef(null),{logicOperators:d=[Ln.And,Ln.Or],columnsSort:p,filterFormProps:m,getColumnForNewFilter:f,disableAddFilterButton:y=!1,disableRemoveAllButton:g=!1}=t,v=Be(t,Sz),x=r.current.upsertFilterItem,S=b.useCallback(F=>{r.current.setFilterLogicOperator(F)},[r]),w=b.useCallback(()=>{let F;if(f&&typeof f=="function"){const M=f({currentFilters:(i==null?void 0:i.items)||[],columns:l});if(M===null)return null;F=l.find(({field:R})=>R===M)}else F=l.find(M=>{var R;return(R=M.filterOperators)==null?void 0:R.length});return F?P1(F):null},[i==null?void 0:i.items,l,f]),k=b.useCallback(()=>{if(f===void 0||typeof f!="function")return w();const F=i.items.length?i.items:[w()].filter(Boolean),M=f({currentFilters:F,columns:l});if(M===null)return null;const R=l.find(({field:_})=>_===M);return R?P1(R):null},[i.items,l,f,w]),E=b.useMemo(()=>i.items.length?i.items:(u.current||(u.current=w()),u.current?[u.current]:[]),[i.items,w]),T=E.length>1,{readOnlyFilters:N,validFilters:P}=b.useMemo(()=>E.reduce((F,M)=>(a[M.field]?F.validFilters.push(M):F.readOnlyFilters.push(M),F),{readOnlyFilters:[],validFilters:[]}),[E,a]),O=b.useCallback(()=>{const F=k();F&&r.current.upsertFilterItems([...E,F])},[r,k,E]),L=b.useCallback(F=>{const M=P.length===1;r.current.deleteFilterItem(F),M&&r.current.hideFilterPanel()},[r,P.length]),$=b.useCallback(()=>P.length===1&&P[0].value===void 0?(r.current.deleteFilterItem(P[0]),r.current.hideFilterPanel()):r.current.setFilterModel(z({},i,{items:N}),"removeAllFilterItems"),[r,N,i,P]);return b.useEffect(()=>{d.length>0&&i.logicOperator&&!d.includes(i.logicOperator)&&S(d[0])},[d,S,i.logicOperator]),b.useEffect(()=>{P.length>0&&c.current.focus()},[P.length]),h.jsxs(jh,z({},v,{ref:n,children:[h.jsxs(WS,{children:[N.map((F,M)=>h.jsx(Cf,z({item:F,applyFilterChanges:x,deleteFilter:L,hasMultipleFilters:T,showMultiFilterOperators:M>0,disableMultiFilterOperator:M!==1,applyMultiFilterOperatorChanges:S,focusElementRef:null,readOnly:!0,logicOperators:d,columnsSort:p},m),F.id==null?M:F.id)),P.map((F,M)=>h.jsx(Cf,z({item:F,applyFilterChanges:x,deleteFilter:L,hasMultipleFilters:T,showMultiFilterOperators:N.length+M>0,disableMultiFilterOperator:N.length+M!==1,applyMultiFilterOperatorChanges:S,focusElementRef:M===P.length-1?c:null,logicOperators:d,columnsSort:p},m),F.id==null?M+N.length:F.id))]}),!o.disableMultipleColumnsFiltering&&!(y&&g)?h.jsxs(US,{children:[y?h.jsx("span",{}):h.jsx(o.slots.baseButton,z({onClick:O,startIcon:h.jsx(o.slots.filterPanelAddIcon,{})},(C=o.slotProps)==null?void 0:C.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!g&&P.length>0?h.jsx(o.slots.baseButton,z({onClick:$,startIcon:h.jsx(o.slots.filterPanelRemoveAllIcon,{})},(j=o.slotProps)==null?void 0:j.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))});process.env.NODE_ENV!=="production"&&(qS.propTypes={children:s.node,columnsSort:s.oneOf(["asc","desc"]),disableAddFilterButton:s.bool,disableRemoveAllButton:s.bool,filterFormProps:s.shape({columnInputProps:s.any,columnsSort:s.oneOf(["asc","desc"]),deleteIconProps:s.any,filterColumns:s.func,logicOperatorInputProps:s.any,operatorInputProps:s.any,valueInputProps:s.any}),getColumnForNewFilter:s.func,logicOperators:s.arrayOf(s.oneOf(["and","or"]).isRequired),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const kz=(e,t)=>{const n=new Set(Object.keys(e).filter(i=>e[i]===!1)),r=new Set(Object.keys(t).filter(i=>t[i]===!1));if(n.size!==r.size)return!1;let o=!0;return n.forEach(i=>{r.has(i)||(o=!1)}),o},Ez=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,Tz=e=>{const{classes:t}=e;return ye({root:["columnsManagement"],header:["columnsManagementHeader"],searchInput:["columnsManagementSearchInput"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},at,t)},O1=new Intl.Collator;function KS(e){var M,R,_,V;const t=tt(),n=b.useRef(null),r=me(t,yr),o=Er(()=>hr(t)).current,i=me(t,hr),l=Le(),[a,c]=b.useState(""),u=Tz(l),{sort:d,searchPredicate:p=Ez,autoFocusSearchField:m=!0,disableShowHideToggle:f=!1,disableResetButton:y=!1,toggleAllMode:g="all",getTogglableColumns:v,searchInputProps:x}=e,S=b.useMemo(()=>kz(i,o),[i,o]),w=b.useMemo(()=>{switch(d){case"asc":return[...r].sort((W,I)=>O1.compare(W.headerName||W.field,I.headerName||I.field));case"desc":return[...r].sort((W,I)=>-O1.compare(W.headerName||W.field,I.headerName||I.field));default:return r}},[r,d]),k=W=>{const{name:I}=W.target;t.current.setColumnVisibility(I,i[I]===!1)},E=b.useMemo(()=>{const W=v?v(w):null,I=W?w.filter(({field:D})=>W.includes(D)):w;return a?I.filter(D=>p(D,a.toLowerCase())):I},[w,a,p,v]),T=b.useCallback(W=>{const I=hr(t),D=z({},I),G=v?v(r):null;return(g==="filteredOnly"?E:r).forEach(A=>{A.hideable&&(G==null||G.includes(A.field))&&(W?delete D[A.field]:D[A.field]=!1)}),t.current.setColumnVisibilityModel(D)},[t,r,v,g,E]),N=b.useCallback(W=>{c(W.target.value)},[]),P=b.useMemo(()=>E.filter(W=>W.hideable),[E]),O=b.useMemo(()=>P.every(W=>i[W.field]==null||i[W.field]!==!1),[i,P]),L=b.useMemo(()=>P.every(W=>i[W.field]===!1),[i,P]),$=b.useRef(null);b.useEffect(()=>{m?n.current.focus():$.current&&typeof $.current.focus=="function"&&$.current.focus()},[m]);let C=!1;const j=W=>C===!1&&W.hideable!==!1?(C=!0,!0):!1,F=b.useCallback(()=>{c(""),n.current.focus()},[]);return h.jsxs(b.Fragment,{children:[h.jsx(Pz,{className:u.header,ownerState:l,children:h.jsx(Oz,z({as:l.slots.baseTextField,ownerState:l,placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:n,className:u.searchInput,value:a,onChange:N,variant:"outlined",size:"small",type:"search",InputProps:{startAdornment:h.jsx(l.slots.baseInputAdornment,{position:"start",children:h.jsx(l.slots.quickFilterIcon,{})}),endAdornment:h.jsx(l.slots.baseIconButton,z({"aria-label":t.current.getLocaleText("columnsManagementDeleteIconLabel"),size:"small",sx:[a?{visibility:"visible"}:{visibility:"hidden"}],tabIndex:-1,onClick:F},(M=l.slotProps)==null?void 0:M.baseIconButton,{children:h.jsx(l.slots.quickFilterClearIcon,{fontSize:"small"})}))},inputProps:{"aria-label":t.current.getLocaleText("columnsManagementSearchTitle")},autoComplete:"off",fullWidth:!0},(R=l.slotProps)==null?void 0:R.baseTextField,x))}),h.jsxs(Iz,{className:u.root,ownerState:l,children:[E.map(W=>{var I;return h.jsx(oa,{className:u.row,control:h.jsx(l.slots.baseCheckbox,z({disabled:W.hideable===!1,checked:i[W.field]!==!1,onClick:k,name:W.field,sx:{p:.5},inputRef:j(W)?$:void 0},(I=l.slotProps)==null?void 0:I.baseCheckbox)),label:W.headerName||W.field},W.field)}),E.length===0&&h.jsx(Rz,{ownerState:l,children:t.current.getLocaleText("columnsManagementNoColumns")})]}),(!f||!y)&&E.length>0?h.jsxs(Mz,{ownerState:l,className:u.footer,children:[f?h.jsx("span",{}):h.jsx(oa,{control:h.jsx(l.slots.baseCheckbox,z({disabled:P.length===0,checked:O,indeterminate:!O&&!L,onClick:()=>T(!O),name:t.current.getLocaleText("columnsManagementShowHideAllText"),sx:{p:.5}},(_=l.slotProps)==null?void 0:_.baseCheckbox)),label:t.current.getLocaleText("columnsManagementShowHideAllText")}),y?null:h.jsx(l.slots.baseButton,z({onClick:()=>t.current.setColumnVisibilityModel(o),disabled:S},(V=l.slotProps)==null?void 0:V.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]}):null]})}process.env.NODE_ENV!=="production"&&(KS.propTypes={autoFocusSearchField:s.bool,disableResetButton:s.bool,disableShowHideToggle:s.bool,getTogglableColumns:s.func,searchInputProps:s.object,searchPredicate:s.func,sort:s.oneOf(["asc","desc"]),toggleAllMode:s.oneOf(["all","filteredOnly"])});const Iz=ne("div",{name:"MuiDataGrid",slot:"ColumnsManagement",overridesResolver:(e,t)=>t.columnsManagement})(({theme:e})=>({padding:e.spacing(0,3,1.5),display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,alignItems:"flex-start"})),Pz=ne("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader",overridesResolver:(e,t)=>t.columnsManagementHeader})(({theme:e})=>({padding:e.spacing(1.5,3)})),Oz=ne(Vs,{name:"MuiDataGrid",slot:"ColumnsManagementSearchInput",overridesResolver:(e,t)=>t.columnsManagementSearchInput})(({theme:e})=>({[`& .${vn.root}`]:{padding:e.spacing(0,1.5,0,1.5)},[`& .${vn.input}::-webkit-search-decoration,
|
|
438
|
+
& .${vn.input}::-webkit-search-cancel-button,
|
|
439
|
+
& .${vn.input}::-webkit-search-results-button,
|
|
440
|
+
& .${vn.input}::-webkit-search-results-decoration`]:{display:"none"}})),Mz=ne("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter",overridesResolver:(e,t)=>t.columnsManagementFooter})(({theme:e})=>({padding:e.spacing(.5,1,.5,3),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${e.palette.divider}`})),Rz=ne("div")(({theme:e})=>({padding:e.spacing(.5,0),color:e.palette.grey[500]})),YS=ht(function(t,n){var S,w;const{children:r,slotProps:o={}}=t,i=o.button||{},l=o.tooltip||{},a=tt(),c=Le(),u=xt(),d=xt(),[p,m]=b.useState(!1),f=b.useRef(null),y=It(n,f),g=k=>{var E;m(T=>!T),(E=i.onClick)==null||E.call(i,k)},v=()=>m(!1),x=k=>{k.key==="Tab"&&k.preventDefault(),LS(k.key)&&v()};return r==null?null:h.jsxs(b.Fragment,{children:[h.jsx(c.slots.baseTooltip,z({title:a.current.getLocaleText("toolbarExportLabel"),enterDelay:1e3},(S=c.slotProps)==null?void 0:S.baseTooltip,l,{children:h.jsx(c.slots.baseButton,z({size:"small",startIcon:h.jsx(c.slots.exportIcon,{}),"aria-expanded":p,"aria-label":a.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":p?d:void 0,id:u},(w=c.slotProps)==null?void 0:w.baseButton,i,{onClick:g,ref:y,children:a.current.getLocaleText("toolbarExport")}))})),h.jsx(sd,{open:p,target:f.current,onClose:v,position:"bottom-start",children:h.jsx(La,{id:d,className:B.menuList,"aria-labelledby":u,onKeyDown:x,autoFocusItem:p,children:b.Children.map(r,k=>b.isValidElement(k)?b.cloneElement(k,{hideMenu:v}):k)})})]})});process.env.NODE_ENV!=="production"&&(YS.propTypes={slotProps:s.object});const jz=["hideMenu","options"],Lz=["hideMenu","options"],$z=["csvOptions","printOptions","excelOptions"];function XS(e){const t=tt(),{hideMenu:n,options:r}=e,o=Be(e,jz);return h.jsx(Vn,z({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}process.env.NODE_ENV!=="production"&&(XS.propTypes={hideMenu:s.func,options:s.shape({allColumns:s.bool,delimiter:s.string,disableToolbarButton:s.bool,escapeFormulas:s.bool,fields:s.arrayOf(s.string),fileName:s.string,getRowsToExport:s.func,includeColumnGroupsHeaders:s.bool,includeHeaders:s.bool,shouldAppendQuotes:s.bool,utf8WithBom:s.bool})});function ZS(e){const t=tt(),{hideMenu:n,options:r}=e,o=Be(e,Lz);return h.jsx(Vn,z({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}process.env.NODE_ENV!=="production"&&(ZS.propTypes={hideMenu:s.func,options:s.shape({allColumns:s.bool,bodyClassName:s.string,copyStyles:s.bool,disableToolbarButton:s.bool,fields:s.arrayOf(s.string),fileName:s.string,getRowsToExport:s.func,hideFooter:s.bool,hideToolbar:s.bool,includeCheckboxes:s.bool,pageStyle:s.oneOfType([s.func,s.string])})});const Nz=ht(function(t,n){const r=t,{csvOptions:o={},printOptions:i={},excelOptions:l}=r,a=Be(r,$z),u=tt().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:l,csvOptions:o,printOptions:i}).sort((d,p)=>d.componentName>p.componentName?1:-1);return u.length===0?null:h.jsx(YS,z({},a,{ref:n,children:u.map((d,p)=>b.cloneElement(d.component,{key:p}))}))});process.env.NODE_ENV!=="production"&&(Nz.propTypes={csvOptions:s.object,printOptions:s.object,slotProps:s.object});const Fz=["className","selectedRowCount"],Az=e=>{const{classes:t}=e;return ye({root:["selectedRowCount"]},at,t)},Dz=$t("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),QS=ht(function(t,n){const{className:r,selectedRowCount:o}=t,i=Be(t,Fz),l=tt(),a=Le(),c=Az(a),u=l.current.getLocaleText("footerRowSelected")(o);return h.jsx(Dz,z({className:ue(c.root,r),ownerState:a},i,{ref:n,children:u}))});process.env.NODE_ENV!=="production"&&(QS.propTypes={selectedRowCount:s.number.isRequired,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const JS=ht(function(t,n){var p,m;const r=tt(),o=Le(),i=me(r,G7),l=me(r,qF),a=me(r,xh),c=!o.hideFooterSelectedRowCount&&l>0?h.jsx(QS,{selectedRowCount:l}):h.jsx("div",{}),u=!o.hideFooterRowCount&&!o.pagination?h.jsx(o.slots.footerRowCount,z({},(p=o.slotProps)==null?void 0:p.footerRowCount,{rowCount:i,visibleRowCount:a})):null,d=o.pagination&&!o.hideFooterPagination&&o.slots.pagination&&h.jsx(o.slots.pagination,z({},(m=o.slotProps)==null?void 0:m.pagination));return h.jsxs(yS,z({},t,{ref:n,children:[c,u,d]}))});process.env.NODE_ENV!=="production"&&(JS.propTypes={sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const Bl=(e,t,n,r,o,i)=>{let l;switch(e){case rt.LEFT:l=r[n];break;case rt.RIGHT:l=o-r[n]-t+i;break;default:l=void 0;break}return l},fu=(e,t,n,r,o)=>{const i=t===n-1;return e===rt.LEFT&&i?!0:r?e===rt.LEFT?!0:e===rt.RIGHT?!i:!i||o:!1},mu=(e,t)=>e===rt.RIGHT&&t===0,fl={root:B.scrollbarFiller,header:B["scrollbarFiller--header"],borderTop:B["scrollbarFiller--borderTop"],borderBottom:B["scrollbarFiller--borderBottom"],pinnedRight:B["scrollbarFiller--pinnedRight"]};function Lh({header:e,borderTop:t=!0,borderBottom:n,pinnedRight:r}){return h.jsx("div",{role:"presentation",className:ue(fl.root,e&&fl.header,t&&fl.borderTop,n&&fl.borderBottom,r&&fl.pinnedRight)})}const _z=$t("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay",overridesResolver:(e,t)=>t.skeletonLoadingOverlay})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),zz=e=>{const{classes:t}=e;return ye({root:["skeletonLoadingOverlay"]},at,t)},M1=e=>parseInt(e.getAttribute("data-colindex"),10),Bz=ht(function(t,n){var T;const r=Le(),{slots:o}=r,i=Nn(),l=zz({classes:r.classes}),a=b.useRef(null),c=It(a,n),u=tt(),d=me(u,pn),p=(T=d==null?void 0:d.viewportInnerSize.height)!=null?T:0,m=Math.ceil(p/d.rowHeight),f=me(u,od),y=me(u,ss),g=b.useMemo(()=>y.filter(N=>N<=f).length,[f,y]),v=me(u,Xt),x=b.useMemo(()=>v.slice(0,g),[v,g]),S=me(u,Bi),w=b.useCallback(N=>{if(S.left.findIndex(P=>P.field===N)!==-1)return rt.LEFT;if(S.right.findIndex(P=>P.field===N)!==-1)return rt.RIGHT},[S.left,S.right]),k=b.useMemo(()=>{const N=[];for(let P=0;P<m;P+=1){const O=[];for(let L=0;L<x.length;L+=1){const $=x[L],C=w($.field),j=C===rt.LEFT,F=C===rt.RIGHT,M=mS(C,i),R=M?S[M].length:x.length-S.left.length-S.right.length,_=M?S[M].findIndex(re=>re.field===$.field):L-S.left.length,V=d.hasScrollY?d.scrollbarSize:0,W=hd({},i,C,Bl(C,$.computedWidth,L,y,d.columnsTotalWidth,V)),I=d.columnsTotalWidth<d.viewportOuterSize.width,D=fu(C,_,R,r.showCellVerticalBorder,I),G=mu(C,_),A=L===x.length-1,K=F&&_===0,Y=K&&I,U=A&&!K&&I,q=d.viewportOuterSize.width-d.columnsTotalWidth,Z=Math.max(0,q),X=h.jsx(o.skeletonCell,{width:Z,empty:!0},`skeleton-filler-column-${P}`),Q=A&&V!==0;Y&&O.push(X),O.push(h.jsx(o.skeletonCell,{field:$.field,type:$.type,align:$.align,width:"var(--width)",height:d.rowHeight,"data-colindex":L,className:ue(j&&B["cell--pinnedLeft"],F&&B["cell--pinnedRight"],D&&B["cell--withRightBorder"],G&&B["cell--withLeftBorder"]),style:z({"--width":`${$.computedWidth}px`},W)},`skeleton-column-${P}-${$.field}`)),U&&O.push(X),Q&&O.push(h.jsx(Lh,{pinnedRight:S.right.length>0},`skeleton-scrollbar-filler-${P}`))}N.push(h.jsx("div",{className:ue(B.row,B.rowSkeleton,P===0&&B["row--firstVisible"]),children:O},`skeleton-row-${P}`))}return N},[o,x,S,m,r.showCellVerticalBorder,d,y,w,i]);return Pe(u,"columnResize",N=>{var _,V,W;const{colDef:P,width:O}=N,L=(_=a.current)==null?void 0:_.querySelectorAll(`[data-field="${Mo(P.field)}"]`);if(!L)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const $=x.findIndex(I=>I.field===P.field),C=w(P.field),j=C===rt.LEFT,F=C===rt.RIGHT,M=getComputedStyle(L[0]).getPropertyValue("--width"),R=parseInt(M,10)-O;if(L&&L.forEach(I=>{I.style.setProperty("--width",`${O}px`)}),j){const I=(V=a.current)==null?void 0:V.querySelectorAll(`.${B["cell--pinnedLeft"]}`);I==null||I.forEach(D=>{M1(D)>$&&(D.style.left=`${parseInt(getComputedStyle(D).left,10)-R}px`)})}if(F){const I=(W=a.current)==null?void 0:W.querySelectorAll(`.${B["cell--pinnedRight"]}`);I==null||I.forEach(D=>{M1(D)<$&&(D.style.right=`${parseInt(getComputedStyle(D).right,10)+R}px`)})}}),h.jsx(_z,z({className:l.root},t,{ref:c,children:k}))}),Vz=["variant","noRowsVariant","style"],Hz={"circular-progress":{component:Pa,style:{}},"linear-progress":{component:qm,style:{display:"block"}},skeleton:{component:Bz,style:{display:"block"}}},e2=ht(function(t,n){const{variant:r="circular-progress",noRowsVariant:o="circular-progress",style:i}=t,l=Be(t,Vz),a=tt(),c=me(a,Aa),u=Hz[c===0?o:r];return h.jsx(gd,z({style:z({},u.style,i)},l,{ref:n,children:h.jsx(u.component,{})}))});process.env.NODE_ENV!=="production"&&(e2.propTypes={noRowsVariant:s.oneOf(["circular-progress","linear-progress","skeleton"]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["circular-progress","linear-progress","skeleton"])});const t2=ht(function(t,n){const o=tt().current.getLocaleText("noRowsLabel");return h.jsx(gd,z({},t,{ref:n,children:o}))});process.env.NODE_ENV!=="production"&&(t2.propTypes={sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const Gz=ne(HC)(({theme:e})=>({maxHeight:"calc(100% + 1px)",flexGrow:1,[`& .${Ts.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${Ts.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),Wz=(e,t)=>({from:n,to:r,count:o,page:i})=>e({from:n,to:r,count:o,page:i,estimated:t}),Uz=({from:e,to:t,count:n,estimated:r})=>r?`${e}–${t} of ${n!==-1?n:`more than ${r>t?r:t}`}`:`${e}–${t} of ${n!==-1?n:`more than ${t}`}`,n2=ht(function(t,n){var k,E;const r=tt(),o=Le(),i=me(r,Pn),l=me(r,fi),a=me(r,Gw),{paginationMode:c,loading:u,estimatedRowCount:d}=o,p=b.useMemo(()=>l===-1&&c==="server"&&u?{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}:{},[u,c,l]),m=b.useMemo(()=>Math.max(0,a-1),[a]),f=b.useMemo(()=>l===-1||i.page<=m?i.page:m,[m,i.page,l]),y=b.useCallback(T=>{const N=Number(T.target.value);r.current.setPageSize(N)},[r]),g=b.useCallback((T,N)=>{r.current.setPage(N)},[r]),v=T=>{for(let N=0;N<o.pageSizeOptions.length;N+=1){const P=o.pageSizeOptions[N];if(typeof P=="number"){if(P===T)return!0}else if(P.value===T)return!0}return!1};if(process.env.NODE_ENV!=="production"){const T=b.useRef(!1),N=(E=(k=o.paginationModel)==null?void 0:k.pageSize)!=null?E:i.pageSize;!T.current&&!o.autoPageSize&&!v(N)&&(console.warn([`MUI X: The page size \`${i.pageSize}\` is not present in the \`pageSizeOptions\`.`,"Add it to show the pagination select."].join(`
|
|
441
|
+
`)),T.current=!0)}const x=v(i.pageSize)?o.pageSizeOptions:[],S=r.current.getLocaleText("MuiTablePagination"),w=Wz(S.labelDisplayedRows||Uz,d);return h.jsx(Gz,z({component:"div",count:l,page:f,rowsPerPageOptions:x,rowsPerPage:i.pageSize,onPageChange:g,onRowsPerPageChange:y},p,S,{labelDisplayedRows:w},t,{ref:n}))});process.env.NODE_ENV!=="production"&&(n2.propTypes={component:s.elementType});const qz=["className","rowCount","visibleRowCount"],Kz=e=>{const{classes:t}=e;return ye({root:["rowCount"]},at,t)},Yz=$t("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),r2=ht(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,l=Be(t,qz),a=tt(),c=Le(),u=Kz(c);if(o===0)return null;const d=i<o?a.current.getLocaleText("footerTotalVisibleRows")(i,o):o.toLocaleString();return h.jsxs(Yz,z({className:ue(u.root,r),ownerState:c},l,{ref:n,children:[a.current.getLocaleText("footerTotalRows")," ",d]}))});process.env.NODE_ENV!=="production"&&(r2.propTypes={rowCount:s.number.isRequired,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),visibleRowCount:s.number.isRequired});function Xz(e){for(const t in e)return!1;return!0}function Zz(e,t){return ye(t,at,e)}const Qz=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","pinnedColumns","offsetLeft","columnsTotalWidth","firstColumnIndex","lastColumnIndex","focusedColumnIndex","isFirstVisible","isLastVisible","isNotVisible","showBottomBorder","scrollbarWidth","gridHasFiller","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],Jz=Fa(dn,(e,t)=>t?!!Xz(e):!1),o2=ht(function(t,n){var he;const{selected:r,rowId:o,row:i,index:l,style:a,rowHeight:c,className:u,visibleColumns:d,pinnedColumns:p,offsetLeft:m,columnsTotalWidth:f,firstColumnIndex:y,lastColumnIndex:g,focusedColumnIndex:v,isFirstVisible:x,isLastVisible:S,isNotVisible:w,showBottomBorder:k,scrollbarWidth:E,gridHasFiller:T,onClick:N,onDoubleClick:P,onMouseEnter:O,onMouseLeave:L,onMouseOut:$,onMouseOver:C}=t,j=Be(t,Qz),F=Ir(),M=Oh(),R=b.useRef(null),_=Le(),V=Th(F),W=me(F,jr),I=me(F,Hs),D=me(F,ss),G=_.rowReordering,A=ia(F,Jz,G),K=It(R,n),Y=F.current.getRowNode(o),U=ia(F,pS,{rowId:o,editMode:_.editMode}),q=_.editMode===co.Row,Z=v!==void 0,X=Z&&v>=p.left.length&&v<y,Q=Z&&v<d.length-p.right.length&&v>=g,re=Zz(_.classes,{root:["row",r&&"selected",q&&"row--editable",U&&"row--editing",x&&"row--firstVisible",S&&"row--lastVisible",k&&"row--borderBottom",c==="auto"&&"row--dynamicHeight"]}),J=M.hooks.useGridRowAriaAttributes();b.useLayoutEffect(()=>{if(V.range){const ae=F.current.getRowIndexRelativeToVisibleRows(o);ae!==void 0&&F.current.unstable_setLastMeasuredRowIndex(ae)}if(R.current&&c==="auto")return F.current.observeRowHeight(R.current,o)},[F,V.range,c,o]);const oe=b.useCallback((ae,ge)=>be=>{Ga(be)||F.current.getRow(o)&&(F.current.publishEvent(ae,F.current.getRowParams(o),be),ge&&ge(be))},[F,o]),te=b.useCallback(ae=>{const ge=du(ae.target,B.cell),be=ge==null?void 0:ge.getAttribute("data-field");if(be){if(be===Gi.field||be===ad||be==="__reorder__"||F.current.getCellMode(o,be)===St.Edit)return;const Te=F.current.getColumn(be);if((Te==null?void 0:Te.type)===id)return}oe("rowClick",N)(ae)},[F,N,oe,o]),{slots:fe,slotProps:ve,disableColumnReorder:Ce}=_,xe=me(F,()=>z({},F.current.getRowHeightEntry(o)),dh),Se=b.useMemo(()=>{if(w)return{opacity:0,width:0,height:0};const ae=z({},a,{maxHeight:c==="auto"?"none":c,minHeight:c,"--height":typeof c=="number"?`${c}px`:c});if(xe.spacingTop){const ge=_.rowSpacingType==="border"?"borderTopWidth":"marginTop";ae[ge]=xe.spacingTop}if(xe.spacingBottom){const ge=_.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let be=ae[ge];typeof be!="number"&&(be=parseInt(be||"0",10)),be+=xe.spacingBottom,ae[ge]=be}return ae},[w,c,a,xe,_.rowSpacingType]),Oe=F.current.unstable_applyPipeProcessors("rowClassName",[],o),Ae=J(Y,l);if(typeof _.getRowClassName=="function"){const ae=l-(((he=V.range)==null?void 0:he.firstRowIndex)||0),ge=z({},F.current.getRowParams(o),{isFirstVisible:ae===0,isLastVisible:ae===V.rows.length-1,indexRelativeToCurrentPage:ae});Oe.push(_.getRowClassName(ge))}const se=(ae,ge,be,Te,_e=rt.NONE)=>{var We,ut;const ke=F.current.unstable_getCellColSpanInfo(o,be);if(ke!=null&&ke.spannedByColSpan)return null;const ct=(We=ke==null?void 0:ke.cellProps.width)!=null?We:ae.computedWidth,it=(ut=ke==null?void 0:ke.cellProps.colSpan)!=null?ut:1,Pt=Bl(_e,ae.computedWidth,be,D,f,E);if(Y.type==="skeletonRow")return h.jsx(fe.skeletonCell,{type:ae.type,width:ct,height:c,field:ae.field,align:ae.align},ae.field);const qe=ae.field==="__reorder__",Ve=!(Ce||ae.disableReorder),ot=A&&!W.length&&I<=1,pt=!(Ve||qe&&ot),mn=_e===rt.VIRTUAL,qn=mu(_e,ge),Re=fu(_e,ge,Te,_.showCellVerticalBorder,T);return h.jsx(fe.cell,z({column:ae,width:ct,rowId:o,align:ae.align||"left",colIndex:be,colSpan:it,disableDragEvents:pt,isNotVisible:mn,pinnedOffset:Pt,pinnedPosition:_e,showLeftBorder:qn,showRightBorder:Re,row:i,rowNode:Y},ve==null?void 0:ve.cell),ae.field)},Ge=p.left.map((ae,ge)=>se(ae,ge,ge,p.left.length,rt.LEFT)),Ie=p.right.map((ae,ge)=>{const be=d.length-p.right.length+ge;return se(ae,ge,be,p.right.length,rt.RIGHT)}),Ye=d.length-p.left.length-p.right.length,ee=[];X&&ee.push(se(d[v],v-p.left.length,v,Ye,rt.VIRTUAL));for(let ae=y;ae<g;ae+=1){const ge=d[ae],be=ae-p.left.length;ge&&ee.push(se(ge,be,ae,Ye))}Q&&ee.push(se(d[v],v-p.left.length,v,Ye,rt.VIRTUAL));const de=i?{onClick:te,onDoubleClick:oe("rowDoubleClick",P),onMouseEnter:oe("rowMouseEnter",O),onMouseLeave:oe("rowMouseLeave",L),onMouseOut:oe("rowMouseOut",$),onMouseOver:oe("rowMouseOver",C)}:null;return h.jsxs("div",z({"data-id":o,"data-rowindex":l,role:"row",className:ue(...Oe,re.root,u),style:Se},Ae,de,j,{ref:K,children:[Ge,h.jsx("div",{role:"presentation",className:B.cellOffsetLeft,style:{width:m}}),ee,h.jsx("div",{role:"presentation",className:ue(B.cell,B.cellEmpty)}),Ie,E!==0&&h.jsx(Lh,{pinnedRight:p.right.length>0,borderTop:!x})]}))});process.env.NODE_ENV!=="production"&&(o2.propTypes={columnsTotalWidth:s.number.isRequired,firstColumnIndex:s.number.isRequired,focusedColumnIndex:s.number,gridHasFiller:s.bool.isRequired,index:s.number.isRequired,isFirstVisible:s.bool.isRequired,isLastVisible:s.bool.isRequired,isNotVisible:s.bool.isRequired,lastColumnIndex:s.number.isRequired,offsetLeft:s.number.isRequired,onClick:s.func,onDoubleClick:s.func,onMouseEnter:s.func,onMouseLeave:s.func,pinnedColumns:s.object.isRequired,row:s.object.isRequired,rowHeight:s.oneOfType([s.oneOf(["auto"]),s.number]).isRequired,rowId:s.oneOfType([s.number,s.string]).isRequired,scrollbarWidth:s.number.isRequired,selected:s.bool.isRequired,showBottomBorder:s.bool.isRequired,visibleColumns:s.arrayOf(s.object).isRequired});const eB=Po(o2),tB=()=>{const e=Ir(),t=Le(),n=me(e,Xt),r=me(e,vh),o=me(e,Va),i=me(e,sw);return{role:"grid","aria-colcount":n.length,"aria-rowcount":o+1+i+r,"aria-multiselectable":Ch(t)}},nB=()=>{const e=Ir(),t=me(e,qo),n=me(e,Va);return b.useCallback((r,o)=>{const i={},l=o+n+2;return i["aria-rowindex"]=l,e.current.isRowSelectable(r.id)&&(i["aria-selected"]=t[r.id]!==void 0),i},[e,t,n])};function rB({privateApiRef:e,configuration:t,props:n,children:r}){const o=b.useRef(e.current.getPublicApi());return h.jsx(Ph.Provider,{value:t,children:h.jsx(ch.Provider,{value:n,children:h.jsx(Eh.Provider,{value:e,children:h.jsx(ah.Provider,{value:o,children:r})})})})}const oB=e=>{const t=b.useRef(null),n=b.useRef(null),r=b.useRef(null),o=b.useRef(null),i=b.useRef(null),l=b.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:n,virtualScrollerRef:r,virtualScrollbarVerticalRef:o,virtualScrollbarHorizontalRef:i,columnHeadersContainerRef:l})},sB=e=>{const t=Nn();e.current.state.isRtl===void 0&&(e.current.state.isRtl=t);const n=b.useRef(!0);b.useEffect(()=>{n.current?n.current=!1:e.current.setState(r=>z({},r,{isRtl:t}))},[e,t])},iB=nF()&&window.localStorage.getItem("DEBUG")!=null,Ml=()=>{},lB={debug:Ml,info:Ml,warn:Ml,error:Ml},R1=["debug","info","warn","error"];function j1(e,t,n=console){const r=R1.indexOf(t);if(r===-1)throw new Error(`MUI X: Log level ${t} not recognized.`);return R1.reduce((i,l,a)=>(a>=r?i[l]=(...c)=>{const[u,...d]=c;n[l](`MUI X: ${e} - ${u}`,...d)}:i[l]=Ml,i),{})}const aB=(e,t)=>{const n=b.useCallback(r=>iB?j1(r,"debug",t.logger):t.logLevel?j1(r,t.logLevel.toString(),t.logger):lB,[t.logLevel,t.logger]);Je(e,{getLogger:n},"private")};class cB{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];if(o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0),process.env.NODE_ENV!=="production"){const i=o.highPriority.size+o.regular.size;i>this.maxListeners&&!this.warnOnce&&(this.warnOnce=!0,console.warn([`Possible EventEmitter memory leak detected. ${i} ${t} listeners added.`].join(`
|
|
442
|
+
`)))}}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let l=o.length-1;l>=0;l-=1){const a=o[l];r.highPriority.has(a)&&a.apply(this,n)}for(let l=0;l<i.length;l+=1){const a=i[l];r.regular.has(a)&&a.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...i){r.removeListener(t,o),n.apply(r,i)})}}class $h{static create(t){return new $h(t)}constructor(t){this.value=void 0,this.listeners=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(r=>r(n))},this.value=t,this.listeners=new Set}}const s2=Symbol("mui.api_private"),uB=e=>e.isPropagationStopped!==void 0;let L1=0;function dB(e){var o;const t=(o=e.current)==null?void 0:o[s2];if(t)return t;const n={},r={state:n,store:$h.create(n),instanceId:{id:L1}};return L1+=1,r.getPublicApi=()=>e.current,r.register=(i,l)=>{Object.keys(l).forEach(a=>{const c=l[a],u=r[a];if((u==null?void 0:u.spying)===!0?u.target=c:r[a]=c,i==="public"){const d=e.current,p=d[a];(p==null?void 0:p.spying)===!0?p.target=c:d[a]=c}})},r.register("private",{caches:{},eventManager:new cB}),r}function pB(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[s2]:e.current}}function fB(e,t){var l;const n=b.useRef(null),r=b.useRef(null);r.current||(r.current=dB(n)),n.current||(n.current=pB(r));const o=b.useCallback((...a)=>{const[c,u,d={}]=a;if(d.defaultMuiPrevented=!1,uB(d)&&d.isPropagationStopped())return;const p=t.signature===nr.DataGridPro||t.signature===nr.DataGridPremium?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(c,u,d,p)},[r,t.signature]),i=b.useCallback((a,c,u)=>{r.current.eventManager.on(a,c,u);const d=r.current;return()=>{d.eventManager.removeListener(a,c)}},[r]);return Je(r,{subscribeEvent:i,publishEvent:o},"public"),e&&!((l=e.current)!=null&&l.state)&&(e.current=n.current),b.useImperativeHandle(e,()=>n.current,[n]),b.useEffect(()=>{const a=r.current;return()=>{a.publishEvent("unmount")}},[r]),r}const mB=(e,t)=>{const n=b.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})};function ua(e){"@babel/helpers - typeof";return ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ua(e)}function hB(e,t){if(ua(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ua(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function da(e){var t=hB(e,"string");return ua(t)=="symbol"?t:t+""}const gB=e=>{const t=b.useRef({}),n=b.useRef(!1),r=b.useCallback(d=>{n.current||!d||(n.current=!0,Object.values(d.appliers).forEach(p=>{p()}),n.current=!1)},[]),o=b.useCallback((d,p,m)=>{t.current[d]||(t.current[d]={processors:new Map,processorsAsArray:[],appliers:{}});const f=t.current[d];return f.processors.get(p)!==m&&(f.processors.set(p,m),f.processorsAsArray=Array.from(t.current[d].processors.values()).filter(g=>g!==null),r(f)),()=>{t.current[d].processors.set(p,null),t.current[d].processorsAsArray=Array.from(t.current[d].processors.values()).filter(g=>g!==null)}},[r]),i=b.useCallback((d,p,m)=>(t.current[d]||(t.current[d]={processors:new Map,processorsAsArray:[],appliers:{}}),t.current[d].appliers[p]=m,()=>{const f=t.current[d].appliers,y=Be(f,[p].map(da));t.current[d].appliers=y}),[]),l=b.useCallback(d=>{r(t.current[d])},[r]),a=b.useCallback((...d)=>{const[p,m,f]=d;if(!t.current[p])return m;const y=t.current[p].processorsAsArray;let g=m;for(let v=0;v<y.length;v+=1)g=y[v](g,f);return g},[]),c={registerPipeProcessor:o,registerPipeApplier:i,requestPipeProcessorsApplication:l},u={unstable_applyPipeProcessors:a};Je(e,c,"private"),Je(e,u,"public")},Ut=(e,t,n,r=!0)=>{const o=b.useRef(null),i=b.useRef(`mui-${Math.round(Math.random()*1e9)}`),l=b.useCallback(()=>{o.current=e.current.registerPipeProcessor(t,i.current,n)},[e,n,t]);Da(()=>{r&&l()});const a=b.useRef(!0);b.useEffect(()=>(a.current?a.current=!1:r&&l(),()=>{o.current&&(o.current(),o.current=null)}),[l,r])},Nh=(e,t,n)=>{const r=b.useRef(null),o=b.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=b.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);Da(()=>{i()});const l=b.useRef(!0);b.useEffect(()=>(l.current?l.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},hu=(e,t,n,r)=>{const o=b.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);Da(()=>{o()});const i=b.useRef(!0);b.useEffect(()=>{i.current?i.current=!1:o()},[o])},$s="none",$1={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},bB=e=>{const t=b.useRef(new Map),n=b.useRef({}),r=b.useCallback((c,u,d)=>{const p=()=>{const y=n.current[u],g=Be(y,[c].map(da));n.current[u]=g};n.current[u]||(n.current[u]={});const m=n.current[u],f=m[c];return m[c]=d,!f||f===d||c===e.current.getActiveStrategy($1[u])&&e.current.publishEvent("activeStrategyProcessorChange",u),p},[e]),o=b.useCallback((c,u)=>{const d=e.current.getActiveStrategy($1[c]);if(d==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const p=n.current[c];if(!p||!p[d])throw new Error(`No processor found for processor "${c}" on strategy "${d}"`);const m=p[d];return m(u)},[e]),i=b.useCallback(c=>{var p;const d=Array.from(t.current.entries()).find(([,m])=>m.group!==c?!1:m.isAvailable());return(p=d==null?void 0:d[0])!=null?p:$s},[]),l=b.useCallback((c,u,d)=>{t.current.set(u,{group:c,isAvailable:d}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Je(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:i,setStrategyAvailability:l},"private")},yB=e=>{const t=b.useRef({}),n=b.useCallback(c=>{t.current[c.stateId]=c},[]),r=b.useCallback((c,u)=>{let d;if(tF(c)?d=c(e.current.state):d=c,e.current.state===d)return!1;let p=!1;const m=[];if(Object.keys(t.current).forEach(f=>{const y=t.current[f],g=y.stateSelector(e.current.state,e.current.instanceId),v=y.stateSelector(d,e.current.instanceId);v!==g&&(m.push({stateId:y.stateId,hasPropChanged:v!==y.propModel}),y.propModel!==void 0&&v!==y.propModel&&(p=!0))}),m.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${m[0].stateId}, therefore, you're not allowed to update ${m.map(f=>f.stateId).join(", ")} in the same transaction.`);if(p||(e.current.state=d,e.current.publishEvent("stateChange",d),e.current.store.update(d)),m.length===1){const{stateId:f,hasPropChanged:y}=m[0],g=t.current[f],v=g.stateSelector(d,e.current.instanceId);g.propOnChange&&y&&g.propOnChange(v,{reason:u,api:e.current}),p||e.current.publishEvent(g.changeEvent,v,{reason:u})}return!p},[e]),o=b.useCallback((c,u,d)=>e.current.setState(p=>z({},p,{[c]:u(p[c])}),d),[e]),i=b.useCallback(()=>{},[]),l={setState:r,forceUpdate:i},a={updateControlState:o,registerControlState:n};Je(e,l,"public"),Je(e,a,"private")},vB=(e,t)=>z({},e,{props:{getRowId:t.getRowId}}),xB=(e,t)=>{b.useEffect(()=>{e.current.setState(n=>z({},n,{props:{getRowId:t.getRowId}}))},[e,t.getRowId])},CB=(e,t)=>{const n=fB(e,t);return oB(n),xB(n,t),sB(n),aB(n,t),yB(n),gB(n),bB(n),mB(n,t),n.current.register("private",{rootProps:t}),n},un=(e,t,n)=>{const r=b.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)};function wf(e,t){if(e==null)return"";const n=typeof e=="string"?e:`${e}`;if(t.shouldAppendQuotes||t.escapeFormulas){const r=n.replace(/"/g,'""');return t.escapeFormulas&&["=","+","-","@"," ","\r"].includes(r[0])?`"'${r}"`:[t.delimiter,`
|
|
443
|
+
`,"\r",'"'].some(o=>n.includes(o))?`"${r}"`:r}return n}const i2=(e,t)=>{var i,l;const{csvOptions:n,ignoreValueFormatter:r}=t;let o;if(r){const a=e.colDef.type;a==="number"?o=String(e.value):a==="date"||a==="dateTime"?o=(i=e.value)==null?void 0:i.toISOString():typeof((l=e.value)==null?void 0:l.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return wf(o,n)};class Sf{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.csvOptions):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const wB=({id:e,columns:t,getCellParams:n,csvOptions:r,ignoreValueFormatter:o})=>{const i=new Sf({csvOptions:r});return t.forEach(l=>{const a=n(e,l.field);process.env.NODE_ENV!=="production"&&String(a.formattedValue)==="[object Object]"&&br(["MUI X: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]),i.addValue(i2(a,{ignoreValueFormatter:o,csvOptions:r}))}),i.getRowString()};function SB(e){const{columns:t,rowIds:n,csvOptions:r,ignoreValueFormatter:o,apiRef:i}=e,l=n.reduce((p,m)=>`${p}${wB({id:m,columns:t,getCellParams:i.current.getCellParams,ignoreValueFormatter:o,csvOptions:r})}\r
|
|
444
|
+
`,"").trim();if(!r.includeHeaders)return l;const a=t.filter(p=>p.field!==Gi.field),c=[];if(r.includeColumnGroupsHeaders){const p=i.current.getAllGroupDetails();let m=0;const f=a.reduce((y,g)=>{const v=i.current.getColumnGroupPath(g.field);return y[g.field]=v,m=Math.max(m,v.length),y},{});for(let y=0;y<m;y+=1){const g=new Sf({csvOptions:r,sanitizeCellValue:wf});c.push(g),a.forEach(v=>{const x=(f[v.field]||[])[y],S=p[x];g.addValue(S?S.headerName||S.groupId:"")})}}const u=new Sf({csvOptions:r,sanitizeCellValue:wf});return a.forEach(p=>{u.addValue(p.headerName||p.field)}),c.push(u),`${`${c.map(p=>p.getRowString()).join(`\r
|
|
445
|
+
`)}\r
|
|
446
|
+
`}${l}`.trim()}function N1(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function kB(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{N1(e)}):N1(e)}function EB(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const TB=(e,t)=>{const n=t.ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=b.useCallback(l=>{if(!W_(l)||EB(l.target))return;let a="";if(e.current.getSelectedRows().size>0)a=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1});else{const u=jn(e);if(u){const d=e.current.getCellParams(u.id,u.field);a=i2(d,{csvOptions:{delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:r})}}a=e.current.unstable_applyPipeProcessors("clipboardCopy",a),a&&(kB(a),e.current.publishEvent("clipboardCopy",a))},[e,r,o]);Dw(e,()=>e.current.rootElementRef.current,"keydown",i),Et(e,"clipboardCopy",t.onClipboardCopy)},IB=e=>z({},e,{columnMenu:{open:!1}}),PB=e=>{const t=fn(e,"useGridColumnMenu"),n=b.useCallback(l=>{const a=$c(e.current.state),c={open:!0,field:l};(c.open!==a.open||c.field!==a.field)&&(e.current.setState(d=>d.columnMenu.open&&d.columnMenu.field===l?d:(t.debug("Opening Column Menu"),z({},d,{columnMenu:{open:!0,field:l}}))),e.current.hidePreferences())},[e,t]),r=b.useCallback(()=>{const l=$c(e.current.state);if(l.field){const u=Oo(e),d=hr(e),p=Co(e);let m=l.field;if(u[m]||(m=p[0]),d[m]===!1){const f=p.filter(g=>g===m?!0:d[g]!==!1),y=f.indexOf(m);m=f[y+1]||f[y-1]}e.current.setColumnHeaderFocus(m)}const a={open:!1,field:void 0};(a.open!==l.open||a.field!==l.field)&&e.current.setState(u=>(t.debug("Hiding Column Menu"),z({},u,{columnMenu:a})))},[e,t]),o=b.useCallback(l=>{t.debug("Toggle Column Menu");const a=$c(e.current.state);!a.open||a.field!==l?n(l):r()},[e,t,n,r]);Je(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),Pe(e,"columnResizeStart",r),Pe(e,"virtualScrollerWheel",e.current.hideColumnMenu),Pe(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},OB=(e,t,n)=>{var o,i,l,a,c,u;const r=ii({apiRef:n,columnsToUpsert:t.columns,initialState:(o=t.initialState)==null?void 0:o.columns,columnVisibilityModel:(c=(a=t.columnVisibilityModel)!=null?a:(l=(i=t.initialState)==null?void 0:i.columns)==null?void 0:l.columnVisibilityModel)!=null?c:{},keepOnlyColumnsToUpsert:!0});return z({},e,{columns:r,pinnedColumns:(u=e.pinnedColumns)!=null?u:iu})};function MB(e,t){var L,$;const n=fn(e,"useGridColumns"),r=b.useRef(t.columns);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:hr,changeEvent:"columnVisibilityModelChange"});const o=b.useCallback(C=>{n.debug("Updating columns state."),e.current.setState(F1(C)),e.current.publishEvent("columnsChange",C.orderedFields)},[n,e]),i=b.useCallback(C=>Oo(e)[C],[e]),l=b.useCallback(()=>yr(e),[e]),a=b.useCallback(()=>Xt(e),[e]),c=b.useCallback((C,j=!0)=>(j?Xt(e):yr(e)).findIndex(M=>M.field===C),[e]),u=b.useCallback(C=>{const j=c(C);return ss(e)[j]},[e,c]),d=b.useCallback(C=>{var F,M;hr(e)!==C&&(e.current.setState(R=>z({},R,{columns:ii({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:C,keepOnlyColumnsToUpsert:!1})})),(M=(F=e.current).updateRenderContext)==null||M.call(F),e.current.forceUpdate())},[e]),p=b.useCallback(C=>{const j=ii({apiRef:e,columnsToUpsert:C,initialState:void 0,keepOnlyColumnsToUpsert:!1});o(j)},[e,o]),m=b.useCallback((C,j)=>{var R;const F=hr(e),M=(R=F[C])!=null?R:!0;if(j!==M){const _=z({},F,{[C]:j});e.current.setColumnVisibilityModel(_)}},[e]),f=b.useCallback(C=>Co(e).findIndex(F=>F===C),[e]),y=b.useCallback((C,j)=>{const F=Co(e),M=f(C);if(M===j)return;n.debug(`Moving column ${C} to index ${j}`);const R=[...F],_=R.splice(M,1)[0];R.splice(j,0,_),o(z({},so(e.current.state),{orderedFields:R}));const V={column:e.current.getColumn(C),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(C),oldIndex:M};e.current.publishEvent("columnIndexChange",V)},[e,n,o,f]),g=b.useCallback((C,j)=>{n.debug(`Updating column ${C} width to ${j}`);const F=so(e.current.state),M=F.lookup[C],R=z({},M,{width:j,hasBeenResized:!0});o(yf(z({},F,{lookup:z({},F.lookup,{[C]:R})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(C),colDef:R,width:j})},[e,n,o]),v={getColumn:i,getAllColumns:l,getColumnIndex:c,getColumnPosition:u,getVisibleColumns:a,getColumnIndexRelativeToVisibleColumns:f,updateColumns:p,setColumnVisibilityModel:d,setColumnVisibility:m,setColumnWidth:g},x={setColumnIndex:y};Je(e,v,"public"),Je(e,x,t.signature===nr.DataGrid?"private":"public");const S=b.useCallback((C,j)=>{var W,I,D;const F={},M=hr(e);(!j.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((D=(I=(W=t.initialState)==null?void 0:W.columns)==null?void 0:I.columnVisibilityModel)!=null?D:{}).length>0||Object.keys(M).length>0)&&(F.columnVisibilityModel=M),F.orderedFields=Co(e);const _=yr(e),V={};return _.forEach(G=>{if(G.hasBeenResized){const A={};tS.forEach(K=>{let Y=G[K];Y===1/0&&(Y=-1),A[K]=Y}),V[G.field]=A}}),Object.keys(V).length>0&&(F.dimensions=V),z({},C,{columns:F})},[e,t.columnVisibilityModel,(L=t.initialState)==null?void 0:L.columns]),w=b.useCallback((C,j)=>{var _;const F=(_=j.stateToRestore.columns)==null?void 0:_.columnVisibilityModel,M=j.stateToRestore.columns;if(F==null&&M==null)return C;const R=ii({apiRef:e,columnsToUpsert:[],initialState:M,columnVisibilityModel:F,keepOnlyColumnsToUpsert:!1});return e.current.setState(F1(R)),M!=null&&e.current.publishEvent("columnsChange",R.orderedFields),C},[e]),k=b.useCallback((C,j)=>{var F;if(j===Ls.columns){const M=t.slots.columnsPanel;return h.jsx(M,z({},(F=t.slotProps)==null?void 0:F.columnsPanel))}return C},[t.slots.columnsPanel,($=t.slotProps)==null?void 0:$.columnsPanel]),E=b.useCallback(C=>t.disableColumnSelector?C:[...C,"columnMenuColumnsItem"],[t.disableColumnSelector]);Ut(e,"columnMenu",E),Ut(e,"exportState",S),Ut(e,"restoreState",w),Ut(e,"preferencePanel",k);const T=b.useRef(null);Pe(e,"viewportInnerSizeChange",C=>{if(T.current!==C.width){if(T.current=C.width,!Xt(e).some(F=>F.flex&&F.flex>0))return;o(yf(so(e.current.state),e.current.getRootDimensions()))}});const P=b.useCallback(()=>{n.info("Columns pipe processing have changed, regenerating the columns");const C=ii({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});o(C)},[e,n,o]);Nh(e,"hydrateColumns",P);const O=b.useRef(!0);b.useEffect(()=>{if(O.current){O.current=!1;return}if(n.info(`GridColumns have changed, new length ${t.columns.length}`),r.current===t.columns)return;const C=ii({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});r.current=t.columns,o(C)},[n,e,o,t.columns]),b.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,n,t.columnVisibilityModel])}function F1(e){return t=>z({},t,{columns:e})}const RB=(e,t)=>{var n,r,o;return z({},e,{density:(o=(r=(n=t.initialState)==null?void 0:n.density)!=null?r:t.density)!=null?o:"standard"})},jB=(e,t)=>{var a;const n=fn(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:pi,changeEvent:"densityChange"});const o={setDensity:nt(c=>{pi(e.current.state)!==c&&(n.debug(`Set grid density to ${c}`),e.current.setState(d=>z({},d,{density:c})))})};Je(e,o,"public");const i=b.useCallback((c,u)=>{var m;const d=pi(e.current.state);return!u.exportOnlyDirtyModels||t.density!=null||((m=t.initialState)==null?void 0:m.density)!=null?z({},c,{density:d}):c},[e,t.density,(a=t.initialState)==null?void 0:a.density]),l=b.useCallback((c,u)=>{var p;const d=(p=u.stateToRestore)!=null&&p.density?u.stateToRestore.density:pi(e.current.state);return e.current.setState(m=>z({},m,{density:d})),c},[e]);Ut(e,"exportState",i),Ut(e,"restoreState",l),b.useEffect(()=>{t.density&&e.current.setDensity(t.density)},[e,t.density])};function LB(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=r,i.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI X: exportAs not supported.")}const l2=({apiRef:e,options:t})=>{const n=yr(e);return t.fields?t.fields.reduce((o,i)=>{const l=n.find(a=>a.field===i);return l&&o.push(l),o},[]):(t.allColumns?n:Xt(e)).filter(o=>!o.disableExport)},a2=({apiRef:e})=>{var c,u;const t=jw(e),n=ln(e),r=e.current.getSelectedRows(),o=t.filter(d=>n[d].type!=="footer"),i=_i(e),l=((c=i==null?void 0:i.top)==null?void 0:c.map(d=>d.id))||[],a=((u=i==null?void 0:i.bottom)==null?void 0:u.map(d=>d.id))||[];return o.unshift(...l),o.push(...a),r.size>0?o.filter(d=>r.has(d)):o},$B=(e,t)=>{const n=fn(e,"useGridCsvExport"),r=t.ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,i=b.useCallback((u={})=>{var f,y,g,v,x;n.debug("Get data as CSV");const d=l2({apiRef:e,options:u}),m=((f=u.getRowsToExport)!=null?f:a2)({apiRef:e});return SB({columns:d,rowIds:m,csvOptions:{delimiter:u.delimiter||",",shouldAppendQuotes:(y=u.shouldAppendQuotes)!=null?y:!0,includeHeaders:(g=u.includeHeaders)!=null?g:!0,includeColumnGroupsHeaders:(v=u.includeColumnGroupsHeaders)!=null?v:!0,escapeFormulas:(x=u.escapeFormulas)!=null?x:!0},ignoreValueFormatter:o,apiRef:e})},[n,e,o]),l=b.useCallback(u=>{n.debug("Export data as CSV");const d=i(u),p=new Blob([u!=null&&u.utf8WithBom?new Uint8Array([239,187,191]):"",d],{type:"text/csv"});LB(p,"csv",u==null?void 0:u.fileName)},[n,i]);Je(e,{getDataAsCsv:i,exportDataAsCsv:l},"public");const c=b.useCallback((u,d)=>{var p;return(p=d.csvOptions)!=null&&p.disableToolbarButton?u:[...u,{component:h.jsx(XS,{options:d.csvOptions}),componentName:"csvExport"}]},[]);Ut(e,"exportMenu",c)},Nc=(e,t,n)=>{var u,d;let r=e.paginationModel;const o=e.rowCount,i=(u=n==null?void 0:n.pageSize)!=null?u:r.pageSize,l=(d=n==null?void 0:n.page)!=null?d:r.page,a=_w(o,i,l);n&&((n==null?void 0:n.page)!==r.page||(n==null?void 0:n.pageSize)!==r.pageSize)&&(r=n);const c=i===-1?0:l8(r.page,a);return c!==r.page&&(r=z({},r,{page:c})),Bw(r.pageSize,t),r},NB=(e,t)=>{var S,w;const n=fn(e,"useGridPaginationModel"),r=me(e,Di),o=b.useRef(yn(e)),i=Math.floor(t.rowHeight*r);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:Pn,changeEvent:"paginationModelChange"});const l=b.useCallback(k=>{const E=Pn(e);k!==E.page&&(n.debug(`Setting page to ${k}`),e.current.setPaginationModel({page:k,pageSize:E.pageSize}))},[e,n]),a=b.useCallback(k=>{const E=Pn(e);k!==E.pageSize&&(n.debug(`Setting page size to ${k}`),e.current.setPaginationModel({pageSize:k,page:E.page}))},[e,n]),c=b.useCallback(k=>{const E=Pn(e);k!==E&&(n.debug("Setting 'paginationModel' to",k),e.current.setState(T=>z({},T,{pagination:z({},T.pagination,{paginationModel:Nc(T.pagination,t.signature,k)})}),"setPaginationModel"))},[e,n,t.signature]);Je(e,{setPage:l,setPageSize:a,setPaginationModel:c},"public");const d=b.useCallback((k,E)=>{var P,O;const T=Pn(e);return!E.exportOnlyDirtyModels||t.paginationModel!=null||((O=(P=t.initialState)==null?void 0:P.pagination)==null?void 0:O.paginationModel)!=null||T.page!==0&&T.pageSize!==i8(t.autoPageSize)?z({},k,{pagination:z({},k.pagination,{paginationModel:T})}):k},[e,t.paginationModel,(w=(S=t.initialState)==null?void 0:S.pagination)==null?void 0:w.paginationModel,t.autoPageSize]),p=b.useCallback((k,E)=>{var N,P;const T=(N=E.stateToRestore.pagination)!=null&&N.paginationModel?z({},zw(t.autoPageSize),(P=E.stateToRestore.pagination)==null?void 0:P.paginationModel):Pn(e);return e.current.setState(O=>z({},O,{pagination:z({},O.pagination,{paginationModel:Nc(O.pagination,t.signature,T)})}),"stateRestorePreProcessing"),k},[e,t.autoPageSize,t.signature]);Ut(e,"exportState",d),Ut(e,"restoreState",p);const m=()=>{var E;const k=Pn(e);(E=e.current.virtualScrollerRef)!=null&&E.current&&e.current.scrollToIndexes({rowIndex:k.page*k.pageSize})},f=b.useCallback(()=>{if(!t.autoPageSize)return;const k=e.current.getRootDimensions(),E=Math.max(1,Math.floor(k.viewportInnerSize.height/i));e.current.setPageSize(E)},[e,t.autoPageSize,i]),y=b.useCallback(k=>{if(k==null)return;const E=Pn(e);if(E.page===0)return;const T=Gw(e);E.page>T-1&&e.current.setPage(Math.max(0,T-1))},[e]),g=b.useCallback(()=>{Pn(e).page!==0&&e.current.setPage(0),e.current.getScrollPosition().top!==0&&e.current.scroll({top:0})},[e]),v=b.useCallback(k=>{const E=z({},k,{items:$w(e)});Uo(E,o.current)||(o.current=E,g())},[e,g]);Pe(e,"viewportInnerSizeChange",f),Pe(e,"paginationModelChange",m),Pe(e,"rowCountChange",y),Pe(e,"sortModelChange",ys(t.resetPageOnSortFilter,g)),Pe(e,"filterModelChange",ys(t.resetPageOnSortFilter,v));const x=b.useRef(!0);b.useEffect(()=>{if(x.current){x.current=!1;return}t.pagination&&e.current.setState(k=>z({},k,{pagination:z({},k.pagination,{paginationModel:Nc(k.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.signature,t.pagination]),b.useEffect(()=>{e.current.setState(k=>{const E=t.pagination===!0;return k.pagination.paginationMode===t.paginationMode||k.pagination.enabled===E?k:z({},k,{pagination:z({},k.pagination,{paginationMode:t.paginationMode,enabled:t.pagination===!0})})})},[e,t.paginationMode,t.pagination]),b.useEffect(f,[f])};function FB(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function AB(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const DB=(e,t)=>{const n=e.current.rootElementRef.current!==null,r=fn(e,"useGridPrintExport"),o=b.useRef(null),i=b.useRef(null),l=b.useRef({}),a=b.useRef([]),c=b.useRef(null);b.useEffect(()=>{o.current=Yt(e.current.rootElementRef.current)},[e,n]);const u=b.useCallback((v,x,S)=>new Promise(w=>{const k=l2({apiRef:e,options:{fields:v,allColumns:x}}).map(N=>N.field),E=yr(e),T={};E.forEach(N=>{T[N.field]=k.includes(N.field)}),S&&(T[Gi.field]=!0),e.current.setColumnVisibilityModel(T),w()}),[e]),d=b.useCallback(v=>{const S=v({apiRef:e}).reduce((w,k)=>{const E=e.current.getRow(k);return E[Mi]||w.push(E),w},[]);e.current.setRows(S)},[e]),p=b.useCallback((v,x)=>{var M,R,_;const S=z({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},x),w=v.contentDocument;if(!w)return;const k=Wi(e.current.state),E=e.current.rootElementRef.current,T=E.cloneNode(!0),N=T.querySelector(`.${B.main}`);N.style.overflow="visible",T.style.contain="size";let P=((M=E.querySelector(`.${B.toolbarContainer}`))==null?void 0:M.offsetHeight)||0,O=((R=E.querySelector(`.${B.footerContainer}`))==null?void 0:R.offsetHeight)||0;const L=T.querySelector(`.${B.footerContainer}`);S.hideToolbar&&((_=T.querySelector(`.${B.toolbarContainer}`))==null||_.remove(),P=0),S.hideFooter&&L&&(L.remove(),O=0);const $=k.currentPageTotalHeight+fd(e,t)+P+O;T.style.height=`${$}px`,T.style.boxSizing="content-box",!S.hideFooter&&L&&(L.style.position="absolute",L.style.width="100%",L.style.top=`${$-O}px`);const C=document.createElement("div");C.appendChild(T),w.body.style.marginTop="0px",w.body.innerHTML=C.innerHTML;const j=typeof S.pageStyle=="function"?S.pageStyle():S.pageStyle;if(typeof j=="string"){const V=w.createElement("style");V.appendChild(w.createTextNode(j)),w.head.appendChild(V)}S.bodyClassName&&w.body.classList.add(...S.bodyClassName.split(" "));const F=[];if(S.copyStyles){const V=E.getRootNode(),I=(V.constructor.name==="ShadowRoot"?V:o.current).querySelectorAll("style, link[rel='stylesheet']");for(let D=0;D<I.length;D+=1){const G=I[D];if(G.tagName==="STYLE"){const A=w.createElement(G.tagName),K=G.sheet;if(K){let Y="";for(let U=0;U<K.cssRules.length;U+=1)typeof K.cssRules[U].cssText=="string"&&(Y+=`${K.cssRules[U].cssText}\r
|
|
447
|
+
`);A.appendChild(w.createTextNode(Y)),w.head.appendChild(A)}}else if(G.getAttribute("href")){const A=w.createElement(G.tagName);for(let K=0;K<G.attributes.length;K+=1){const Y=G.attributes[K];Y&&A.setAttribute(Y.nodeName,Y.nodeValue||"")}F.push(new Promise(K=>{A.addEventListener("load",()=>K())})),w.head.appendChild(A)}}}process.env.NODE_ENV!=="test"&&Promise.all(F).then(()=>{v.contentWindow.print()})},[e,o,t]),m=b.useCallback(v=>{var x,S;o.current.body.removeChild(v),e.current.restoreState(i.current||{}),(S=(x=i.current)==null?void 0:x.columns)!=null&&S.columnVisibilityModel||e.current.setColumnVisibilityModel(l.current),e.current.setState(w=>z({},w,{virtualization:c.current})),e.current.setRows(a.current),i.current=null,l.current={},a.current=[]},[e]),y={exportDataAsPrint:b.useCallback(async v=>{var S;if(r.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(i.current=e.current.exportState(),l.current=hr(e),a.current=e.current.getSortedRows().filter(w=>!w[Mi]),t.pagination){const k={page:0,pageSize:vh(e)};e.current.setState(E=>z({},E,{pagination:z({},E.pagination,{paginationModel:Nc(E.pagination,"DataGridPro",k)})}))}c.current=e.current.state.virtualization,e.current.unstable_setVirtualization(!1),await u(v==null?void 0:v.fields,v==null?void 0:v.allColumns,v==null?void 0:v.includeCheckboxes),d((S=v==null?void 0:v.getRowsToExport)!=null?S:a2),await FB();const x=AB(v==null?void 0:v.fileName);process.env.NODE_ENV==="test"?(o.current.body.appendChild(x),p(x,v),m(x)):(x.onload=()=>{p(x,v),x.contentWindow.matchMedia("print").addEventListener("change",k=>{k.matches===!1&&m(x)})},o.current.body.appendChild(x))},[t,r,e,p,m,u,d])};Je(e,y,"public");const g=b.useCallback((v,x)=>{var S;return(S=x.printOptions)!=null&&S.disableToolbarButton?v:[...v,{component:h.jsx(ZS,{options:x.printOptions}),componentName:"printExport"}]},[]);Ut(e,"exportMenu",g)},_B=(e,t,n)=>{var o,i,l,a;const r=(a=(l=t.filterModel)!=null?l:(i=(o=t.initialState)==null?void 0:o.filter)==null?void 0:i.filterModel)!=null?a:la();return z({},e,{filter:z({filterModel:gh(r,t.disableMultipleColumnsFiltering,n)},pw),visibleRowsLookup:{}})},zB=e=>e.filteredRowsLookup;function A1(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function BB(){return qC(Object.values)}const VB=(e,t)=>{var O,L,$;const n=fn(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:yn,changeEvent:"filterModelChange"});const r=b.useCallback(()=>{e.current.setState(C=>{const j=yn(C,e.current.instanceId),F=e.current.getFilterState(j),M=z({},C,{filter:z({},C.filter,F)}),R=A1(e,M);return z({},M,{visibleRowsLookup:R})}),e.current.publishEvent("filteredRowsSet")},[e]),o=b.useCallback((C,j)=>j==null||j.filterable===!1||t.disableColumnFilter?C:[...C,"columnMenuFilterItem"],[t.disableColumnFilter]),i=b.useCallback(()=>{r(),e.current.forceUpdate()},[e,r]),l=b.useCallback(C=>{const j=yn(e),F=[...j.items],M=F.findIndex(R=>R.id===C.id);M===-1?F.push(C):F[M]=C,e.current.setFilterModel(z({},j,{items:F}),"upsertFilterItem")},[e]),a=b.useCallback(C=>{const j=yn(e),F=[...j.items];C.forEach(M=>{const R=F.findIndex(_=>_.id===M.id);R===-1?F.push(M):F[R]=M}),e.current.setFilterModel(z({},j,{items:F}),"upsertFilterItems")},[e]),c=b.useCallback(C=>{const j=yn(e),F=j.items.filter(M=>M.id!==C.id);F.length!==j.items.length&&e.current.setFilterModel(z({},j,{items:F}),"deleteFilterItem")},[e]),u=b.useCallback((C,j,F)=>{if(n.debug("Displaying filter panel"),C){const M=yn(e),R=M.items.filter(I=>{var K;if(I.value!==void 0)return!(Array.isArray(I.value)&&I.value.length===0);const G=(K=e.current.getColumn(I.field).filterOperators)==null?void 0:K.find(Y=>Y.value===I.operator);return!(typeof(G==null?void 0:G.requiresFilterValue)=="undefined"?!0:G==null?void 0:G.requiresFilterValue)});let _;const V=R.find(I=>I.field===C),W=e.current.getColumn(C);V?_=R:t.disableMultipleColumnsFiltering?_=[gf({field:C,operator:W.filterOperators[0].value},e)]:_=[...R,gf({field:C,operator:W.filterOperators[0].value},e)],e.current.setFilterModel(z({},M,{items:_}))}e.current.showPreferences(Ls.filters,j,F)},[e,n,t.disableMultipleColumnsFiltering]),d=b.useCallback(()=>{n.debug("Hiding filter panel"),e.current.hidePreferences()},[e,n]),p=b.useCallback(C=>{const j=yn(e);j.logicOperator!==C&&e.current.setFilterModel(z({},j,{logicOperator:C}),"changeLogicOperator")},[e]),m=b.useCallback(C=>{const j=yn(e);Uo(j.quickFilterValues,C)||e.current.setFilterModel(z({},j,{quickFilterValues:[...C]}))},[e]),f=b.useCallback((C,j)=>{yn(e)!==C&&(n.debug("Setting filter model"),e.current.updateControlState("filter",Ky(C,t.disableMultipleColumnsFiltering,e),j),e.current.unstable_applyFilters())},[e,n,t.disableMultipleColumnsFiltering]),y=b.useCallback(C=>{const j=gh(C,t.disableMultipleColumnsFiltering,e),F=t.filterMode==="client"?pF(j,e,t.disableEval):null,M=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:F,filterModel:j!=null?j:la()});return z({},M,{filterModel:j})},[t.disableMultipleColumnsFiltering,t.filterMode,t.disableEval,e]),g={setFilterLogicOperator:p,unstable_applyFilters:i,deleteFilterItem:c,upsertFilterItem:l,upsertFilterItems:a,setFilterModel:f,showFilterPanel:u,hideFilterPanel:d,setQuickFilterValues:m,ignoreDiacritics:t.ignoreDiacritics,getFilterState:y};Je(e,g,"public");const v=b.useCallback((C,j)=>{var R,_;const F=yn(e);return F.items.forEach(V=>{delete V.fromInput}),!j.exportOnlyDirtyModels||t.filterModel!=null||((_=(R=t.initialState)==null?void 0:R.filter)==null?void 0:_.filterModel)!=null||!Uo(F,la())?z({},C,{filter:{filterModel:F}}):C},[e,t.filterModel,(L=(O=t.initialState)==null?void 0:O.filter)==null?void 0:L.filterModel]),x=b.useCallback((C,j)=>{var M;const F=(M=j.stateToRestore.filter)==null?void 0:M.filterModel;return F==null?C:(e.current.updateControlState("filter",Ky(F,t.disableMultipleColumnsFiltering,e),"restoreState"),z({},C,{callbacks:[...C.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),S=b.useCallback((C,j)=>{var F;if(j===Ls.filters){const M=t.slots.filterPanel;return h.jsx(M,z({},(F=t.slotProps)==null?void 0:F.filterPanel))}return C},[t.slots.filterPanel,($=t.slotProps)==null?void 0:$.filterPanel]),{getRowId:w}=t,k=Er(BB),E=b.useCallback(C=>{var D;if(t.filterMode!=="client"||!C.isRowMatchingFilters||!C.filterModel.items.length&&!((D=C.filterModel.quickFilterValues)!=null&&D.length))return pw;const j=mr(e),F={},{isRowMatchingFilters:M}=C,R={},_={passingFilterItems:null,passingQuickFilterValues:null},V=k.current(e.current.state.rows.dataRowIdToModelLookup);for(let G=0;G<V.length;G+=1){const A=V[G],K=w?w(A):A.id;M(A,void 0,_);const Y=mF([_.passingFilterItems],[_.passingQuickFilterValues],C.filterModel,e,R);F[K]=Y}const W="auto-generated-group-footer-root";return j[W]&&(F[W]=!0),{filteredRowsLookup:F,filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode,w,k]);Ut(e,"columnMenu",o),Ut(e,"exportState",v),Ut(e,"restoreState",x),Ut(e,"preferencePanel",S),hu(e,$s,"filtering",E),hu(e,$s,"visibleRowsLookupCreation",zB);const T=b.useCallback(()=>{n.debug("onColUpdated - GridColumns changed, applying filters");const C=yn(e),j=Oo(e),F=C.items.filter(M=>M.field&&j[M.field]);F.length<C.items.length&&e.current.setFilterModel(z({},C,{items:F}))},[e,n]),N=b.useCallback(C=>{C==="filtering"&&e.current.unstable_applyFilters()},[e]),P=b.useCallback(()=>{e.current.setState(C=>z({},C,{visibleRowsLookup:A1(e,C)})),e.current.forceUpdate()},[e]);Pe(e,"rowsSet",r),Pe(e,"columnsChange",T),Pe(e,"activeStrategyProcessorChange",N),Pe(e,"rowExpansionChange",P),Pe(e,"columnVisibilityModelChange",()=>{const C=yn(e);C.quickFilterValues&&vw(C)&&e.current.unstable_applyFilters()}),Da(()=>{e.current.unstable_applyFilters()}),Rt(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,n,t.filterModel])},HB=e=>z({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),GB=(e,t)=>{const n=fn(e,"useGridFocus"),r=b.useRef(null),o=e.current.rootElementRef.current!==null,i=b.useCallback((P,O)=>{P&&e.current.getRow(P.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(P.id,P.field),O)},[e]),l=b.useCallback((P,O)=>{const L=jn(e);(L==null?void 0:L.id)===P&&(L==null?void 0:L.field)===O||(e.current.setState($=>(n.debug(`Focusing on cell with id=${P} and field=${O}`),z({},$,{tabIndex:{cell:{id:P,field:O},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:P,field:O},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(P)&&(L&&i(L,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(P,O))))},[e,n,i]),a=b.useCallback((P,O={})=>{const L=jn(e);i(L,O),e.current.setState($=>(n.debug(`Focusing on column header with colIndex=${P}`),z({},$,{tabIndex:{columnHeader:{field:P},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:P},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,i]),c=b.useCallback((P,O={})=>{const L=jn(e);i(L,O),e.current.setState($=>(n.debug(`Focusing on column header filter with colIndex=${P}`),z({},$,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:P},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:P},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,i]),u=b.useCallback((P,O,L={})=>{const $=jn(e);$&&e.current.publishEvent("cellFocusOut",e.current.getCellParams($.id,$.field),L),e.current.setState(C=>z({},C,{tabIndex:{columnGroupHeader:{field:P,depth:O},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:P,depth:O},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),d=b.useCallback(()=>lu(e),[e]),p=b.useCallback((P,O,L)=>{let $=e.current.getColumnIndex(O);const C=Xt(e),j=Ko(e,{pagination:t.pagination,paginationMode:t.paginationMode}),F=_i(e),M=[].concat(F.top||[],j.rows,F.bottom||[]);let R=M.findIndex(I=>I.id===P);L==="right"?$+=1:L==="left"?$-=1:R+=1,$>=C.length?(R+=1,R<M.length&&($=0)):$<0&&(R-=1,R>=0&&($=C.length-1)),R=rr(R,0,M.length-1);const _=M[R];if(!_)return;const V=e.current.unstable_getCellColSpanInfo(_.id,$);V&&V.spannedByColSpan&&(L==="left"||L==="below"?$=V.leftVisibleCellIndex:L==="right"&&($=V.rightVisibleCellIndex)),$=rr($,0,C.length-1);const W=C[$];e.current.setCellFocus(_.id,W.field)},[e,t.pagination,t.paginationMode]),m=b.useCallback(({id:P,field:O})=>{e.current.setCellFocus(P,O)},[e]),f=b.useCallback((P,O)=>{O.key==="Enter"||O.key==="Tab"||O.key==="Shift"||pu(O.key)||e.current.setCellFocus(P.id,P.field)},[e]),y=b.useCallback(({field:P},O)=>{O.target===O.currentTarget&&e.current.setColumnHeaderFocus(P,O)},[e]),g=b.useCallback(({fields:P,depth:O},L)=>{if(L.target!==L.currentTarget)return;const $=lu(e);$!==null&&$.depth===O&&P.includes($.field)||e.current.setColumnGroupHeaderFocus(P[0],O,L)},[e]),v=b.useCallback((P,O)=>{var L,$;($=(L=O.relatedTarget)==null?void 0:L.getAttribute("class"))!=null&&$.includes(B.columnHeader)||(n.debug("Clearing focus"),e.current.setState(C=>z({},C,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),x=b.useCallback(P=>{r.current=P},[]),S=b.useCallback(P=>{const O=r.current;r.current=null;const L=jn(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:P,cell:O}))return;if(!L){O&&e.current.setCellFocus(O.id,O.field);return}if((O==null?void 0:O.id)===L.id&&(O==null?void 0:O.field)===L.field)return;const C=e.current.getCellElement(L.id,L.field);C!=null&&C.contains(P.target)||(O?e.current.setCellFocus(O.id,O.field):(e.current.setState(j=>z({},j,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),i(L,P)))},[e,i]),w=b.useCallback(P=>{if(P.cellMode==="view")return;const O=jn(e);((O==null?void 0:O.id)!==P.id||(O==null?void 0:O.field)!==P.field)&&e.current.setCellFocus(P.id,P.field)},[e]),k=b.useCallback(()=>{var O;const P=jn(e);if(P&&!e.current.getRow(P.id)){const L=P.id;let $=null;if(typeof L!="undefined"){const C=e.current.getRowElement(L),j=C!=null&&C.dataset.rowindex?Number(C==null?void 0:C.dataset.rowindex):0,F=Ko(e,{pagination:t.pagination,paginationMode:t.paginationMode}),M=F.rows[rr(j,0,F.rows.length-1)];$=(O=M==null?void 0:M.id)!=null?O:null}e.current.setState(C=>z({},C,{focus:{cell:$===null?null:{id:$,field:P.field},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))}},[e,t.pagination,t.paginationMode]),E=nt(()=>{const P=jn(e);if(!P)return;const O=Ko(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(O.rows.find(C=>C.id===P.id))return;const $=Xt(e);e.current.setState(C=>z({},C,{tabIndex:{cell:{id:O.rows[0].id,field:$[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),T={setCellFocus:l,setColumnHeaderFocus:a,setColumnHeaderFilterFocus:c},N={moveFocusToRelativeCell:p,setColumnGroupHeaderFocus:u,getColumnGroupHeaderFocus:d};Je(e,T,"public"),Je(e,N,"private"),b.useEffect(()=>{const P=Yt(e.current.rootElementRef.current);return P.addEventListener("mouseup",S),()=>{P.removeEventListener("mouseup",S)}},[e,o,S]),Pe(e,"columnHeaderBlur",v),Pe(e,"cellDoubleClick",m),Pe(e,"cellMouseDown",x),Pe(e,"cellKeyDown",f),Pe(e,"cellModeChange",w),Pe(e,"columnHeaderFocus",y),Pe(e,"columnGroupHeaderFocus",g),Pe(e,"rowsSet",k),Pe(e,"paginationModelChange",E)},mp=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e<n)return e+1}else if(!r&&e>t)return e-1;return null},hp=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e>t)return e-1}else if(!r&&e<n)return e+1;return null};function WB(e,t,n,r){var a,c;const o=sS(e);if(!((a=o[t])!=null&&a[n]))return t;const i=jw(e);let l=i.indexOf(t)+(r==="down"?1:-1);for(;l>=0&&l<i.length;){const u=i[l];if(!((c=o[u])!=null&&c[n]))return u;l+=r==="down"?1:-1}return t}const UB=yt(za,_i,(e,t)=>(t.top||[]).concat(e.rows,t.bottom||[])),qB=(e,t)=>{const n=fn(e,"useGridKeyboardNavigation"),r=Nn(),o=t.unstable_listView,i=b.useCallback(()=>UB(e),[e]),l=t.signature!=="DataGrid"&&t.headerFilters,a=b.useCallback((x,S,w="left",k="up")=>{const E=is(e),T=e.current.unstable_getCellColSpanInfo(S,x);T&&T.spannedByColSpan&&(w==="left"?x=T.leftVisibleCellIndex:w==="right"&&(x=T.rightVisibleCellIndex));const N=o?Li(e.current.state).field:zi(e)[x],P=WB(e,S,N,k),O=E.findIndex(L=>L.id===P);n.debug(`Navigating to cell row ${O}, col ${x}`),e.current.scrollToIndexes({colIndex:x,rowIndex:O}),e.current.setCellFocus(P,N)},[e,n,o]),c=b.useCallback((x,S)=>{n.debug(`Navigating to header col ${x}`),e.current.scrollToIndexes({colIndex:x});const w=e.current.getVisibleColumns()[x].field;e.current.setColumnHeaderFocus(w,S)},[e,n]),u=b.useCallback((x,S)=>{n.debug(`Navigating to header filter col ${x}`),e.current.scrollToIndexes({colIndex:x});const w=e.current.getVisibleColumns()[x].field;e.current.setColumnHeaderFilterFocus(w,S)},[e,n]),d=b.useCallback((x,S,w)=>{n.debug(`Navigating to header col ${x}`),e.current.scrollToIndexes({colIndex:x});const{field:k}=e.current.getVisibleColumns()[x];e.current.setColumnGroupHeaderFocus(k,S,w)},[e,n]),p=b.useCallback(x=>{var S;return(S=i()[x])==null?void 0:S.id},[i]),m=b.useCallback((x,S)=>{const w=S.currentTarget.querySelector(`.${B.columnHeaderTitleContainerContent}`);if(!!w&&w.contains(S.target)&&x.field!==Gi.field)return;const E=i(),T=e.current.getViewportPageSize(),N=x.field?e.current.getColumnIndex(x.field):0,P=E.length>0?0:null,O=E.length-1,L=0,$=Xt(e).length-1,C=Va(e);let j=!0;switch(S.key){case"ArrowDown":{l?u(N,S):P!==null&&a(N,p(P));break}case"ArrowRight":{const F=hp({currentColIndex:N,firstColIndex:L,lastColIndex:$,isRtl:r});F!==null&&c(F,S);break}case"ArrowLeft":{const F=mp({currentColIndex:N,firstColIndex:L,lastColIndex:$,isRtl:r});F!==null&&c(F,S);break}case"ArrowUp":{C>0&&d(N,C-1,S);break}case"PageDown":{P!==null&&O!==null&&a(N,p(Math.min(P+T,O)));break}case"Home":{c(L,S);break}case"End":{c($,S);break}case"Enter":{(S.ctrlKey||S.metaKey)&&e.current.toggleColumnMenu(x.field);break}case" ":break;default:j=!1}j&&S.preventDefault()},[e,i,l,u,a,p,r,c,d]),f=b.useCallback((x,S)=>{const w=V8(e)===x.field,k=H8(e)===x.field;if(w||k||!pu(S.key))return;const E=i(),T=e.current.getViewportPageSize(),N=x.field?e.current.getColumnIndex(x.field):0,P=0,O=E.length-1,L=0,$=Xt(e).length-1;let C=!0;switch(S.key){case"ArrowDown":{const j=p(P);j!=null&&a(N,j);break}case"ArrowRight":{const j=hp({currentColIndex:N,firstColIndex:L,lastColIndex:$,isRtl:r});j!==null&&u(j,S);break}case"ArrowLeft":{const j=mp({currentColIndex:N,firstColIndex:L,lastColIndex:$,isRtl:r});j!==null?u(j,S):e.current.setColumnHeaderFilterFocus(x.field,S);break}case"ArrowUp":{c(N,S);break}case"PageDown":{O!==null&&a(N,p(Math.min(P+T,O)));break}case"Home":{u(L,S);break}case"End":{u($,S);break}case" ":break;default:C=!1}C&&S.preventDefault()},[e,i,u,r,c,a,p]),y=b.useCallback((x,S)=>{const w=lu(e);if(w===null)return;const{field:k,depth:E}=w,{fields:T,depth:N,maxDepth:P}=x,O=i(),L=e.current.getViewportPageSize(),$=e.current.getColumnIndex(k),C=k?e.current.getColumnIndex(k):0,j=0,F=O.length-1,M=0,R=Xt(e).length-1;let _=!0;switch(S.key){case"ArrowDown":{N===P-1?c($,S):d($,E+1,S);break}case"ArrowUp":{N>0&&d($,E-1,S);break}case"ArrowRight":{const V=T.length-T.indexOf(k)-1;$+V+1<=R&&d($+V+1,E,S);break}case"ArrowLeft":{const V=T.indexOf(k);$-V-1>=M&&d($-V-1,E,S);break}case"PageDown":{F!==null&&a(C,p(Math.min(j+L,F)));break}case"Home":{d(M,E,S);break}case"End":{d(R,E,S);break}case" ":break;default:_=!1}_&&S.preventDefault()},[e,i,c,d,a,p]),g=b.useCallback((x,S)=>{if(Ga(S))return;const w=e.current.getCellParams(x.id,x.field);if(w.cellMode===St.Edit||!pu(S.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:S,cell:w}))return;const E=i();if(E.length===0)return;const T=e.current.getViewportPageSize(),N=o?()=>0:e.current.getColumnIndex,P=x.field?N(x.field):0,O=E.findIndex(R=>R.id===x.id),L=0,$=E.length-1,C=0,F=(o?[Li(e.current.state)]:Xt(e)).length-1;let M=!0;switch(S.key){case"ArrowDown":{O<$&&a(P,p(O+1),r?"right":"left","down");break}case"ArrowUp":{O>L?a(P,p(O-1)):l?u(P,S):c(P,S);break}case"ArrowRight":{const R=hp({currentColIndex:P,firstColIndex:C,lastColIndex:F,isRtl:r});R!==null&&a(R,p(O),r?"left":"right");break}case"ArrowLeft":{const R=mp({currentColIndex:P,firstColIndex:C,lastColIndex:F,isRtl:r});R!==null&&a(R,p(O),r?"right":"left");break}case"Tab":{S.shiftKey&&P>C?a(P-1,p(O),"left"):!S.shiftKey&&P<F&&a(P+1,p(O),"right");break}case" ":{if(x.field===ad)break;const _=x.colDef;if(_&&(_.field===OF||pD(_.field)))break;!S.shiftKey&&O<$&&a(P,p(Math.min(O+T,$)));break}case"PageDown":{O<$&&a(P,p(Math.min(O+T,$)));break}case"PageUp":{const R=Math.max(O-T,L);R!==O&&R>=L?a(P,p(R)):c(P,S);break}case"Home":{S.ctrlKey||S.metaKey||S.shiftKey?a(C,p(L)):a(C,p(O));break}case"End":{S.ctrlKey||S.metaKey||S.shiftKey?a(F,p($)):a(F,p(O));break}default:M=!1}M&&S.preventDefault()},[e,i,r,a,p,l,u,c,o]),v=b.useCallback((x,{event:S})=>S.key===" "?!1:x,[]);Ut(e,"canStartEditing",v),Pe(e,"columnHeaderKeyDown",m),Pe(e,"headerFilterKeyDown",f),Pe(e,"columnGroupHeaderKeyDown",y),Pe(e,"cellKeyDown",g)},KB=(e,t)=>{var y,g;const n=fn(e,"useGridRowCount"),r=me(e,xh),o=me(e,fi),i=me(e,Ol),l=me(e,Pn),a=Er(()=>Pn(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:fi,changeEvent:"rowCountChange"});const u={setRowCount:b.useCallback(v=>{o!==v&&(n.debug("Setting 'rowCount' to",v),e.current.setState(x=>z({},x,{pagination:z({},x.pagination,{rowCount:v})})))},[e,n,o])};Je(e,u,"public");const d=b.useCallback((v,x)=>{var k,E;const S=fi(e);return!x.exportOnlyDirtyModels||t.rowCount!=null||((E=(k=t.initialState)==null?void 0:k.pagination)==null?void 0:E.rowCount)!=null?z({},v,{pagination:z({},v.pagination,{rowCount:S})}):v},[e,t.rowCount,(g=(y=t.initialState)==null?void 0:y.pagination)==null?void 0:g.rowCount]),p=b.useCallback((v,x)=>{var w;const S=(w=x.stateToRestore.pagination)!=null&&w.rowCount?x.stateToRestore.pagination.rowCount:fi(e);return e.current.setState(k=>z({},k,{pagination:z({},k.pagination,{rowCount:S})})),v},[e]);Ut(e,"exportState",d),Ut(e,"restoreState",p);const m=b.useCallback(v=>{t.paginationMode==="client"||!a.current||v.pageSize!==a.current&&(a.current=v.pageSize,o===-1&&e.current.setPage(0))},[t.paginationMode,a,o,e]);Pe(e,"paginationModelChange",m),b.useEffect(()=>{t.paginationMode==="client"?e.current.setRowCount(r):t.rowCount!=null&&e.current.setRowCount(t.rowCount)},[e,t.paginationMode,r,t.rowCount]);const f=i.hasNextPage===!1;b.useEffect(()=>{f&&o===-1&&e.current.setRowCount(l.pageSize*l.page+r)},[e,r,f,o,l])},YB=(e,t)=>{var c,u;const n=fn(e,"useGridPaginationMeta"),r=me(e,Ol);e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:Ol,changeEvent:"paginationMetaChange"});const i={setPaginationMeta:b.useCallback(d=>{r!==d&&(n.debug("Setting 'paginationMeta' to",d),e.current.setState(p=>z({},p,{pagination:z({},p.pagination,{meta:d})})))},[e,n,r])};Je(e,i,"public");const l=b.useCallback((d,p)=>{var y,g;const m=Ol(e);return!p.exportOnlyDirtyModels||t.paginationMeta!=null||((g=(y=t.initialState)==null?void 0:y.pagination)==null?void 0:g.meta)!=null?z({},d,{pagination:z({},d.pagination,{meta:m})}):d},[e,t.paginationMeta,(u=(c=t.initialState)==null?void 0:c.pagination)==null?void 0:u.meta]),a=b.useCallback((d,p)=>{var f;const m=(f=p.stateToRestore.pagination)!=null&&f.meta?p.stateToRestore.pagination.meta:Ol(e);return e.current.setState(y=>z({},y,{pagination:z({},y.pagination,{meta:m})})),d},[e]);Ut(e,"exportState",l),Ut(e,"restoreState",a),b.useEffect(()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)},[e,t.paginationMeta])},XB=(e,t)=>{var i,l,a,c,u,d,p,m,f,y,g,v;const n=z({},zw(t.autoPageSize),(a=t.paginationModel)!=null?a:(l=(i=t.initialState)==null?void 0:i.pagination)==null?void 0:l.paginationModel);Bw(n.pageSize,t.signature);const r=(m=(d=t.rowCount)!=null?d:(u=(c=t.initialState)==null?void 0:c.pagination)==null?void 0:u.rowCount)!=null?m:t.paginationMode==="client"?(p=e.rows)==null?void 0:p.totalRowCount:void 0,o=(v=(g=t.paginationMeta)!=null?g:(y=(f=t.initialState)==null?void 0:f.pagination)==null?void 0:y.meta)!=null?v:{};return z({},e,{pagination:z({},e.pagination,{paginationModel:n,rowCount:r,meta:o,enabled:t.pagination===!0,paginationMode:t.paginationMode})})},ZB=(e,t)=>{YB(e,t),NB(e,t),KB(e,t)},QB=(e,t)=>{var n,r;return z({},e,{preferencePanel:(r=(n=t.initialState)==null?void 0:n.preferencePanel)!=null?r:{open:!1}})},JB=(e,t)=>{var a;const n=fn(e,"useGridPreferencesPanel"),r=b.useCallback(()=>{e.current.setState(c=>{if(!c.preferencePanel.open)return c;n.debug("Hiding Preferences Panel");const u=ca(c);return e.current.publishEvent("preferencePanelClose",{openedPanelValue:u.openedPanelValue}),z({},c,{preferencePanel:{open:!1}})})},[e,n]),o=b.useCallback((c,u,d)=>{n.debug("Opening Preferences Panel"),e.current.setState(p=>z({},p,{preferencePanel:z({},p.preferencePanel,{open:!0,openedPanelValue:c,panelId:u,labelId:d})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:c})},[n,e]);Je(e,{showPreferences:o,hidePreferences:r},"public");const i=b.useCallback((c,u)=>{var m;const d=ca(e.current.state);return!u.exportOnlyDirtyModels||((m=t.initialState)==null?void 0:m.preferencePanel)!=null||d.open?z({},c,{preferencePanel:d}):c},[e,(a=t.initialState)==null?void 0:a.preferencePanel]),l=b.useCallback((c,u)=>{const d=u.stateToRestore.preferencePanel;return d!=null&&e.current.setState(p=>z({},p,{preferencePanel:d})),c},[e]);Ut(e,"exportState",i),Ut(e,"restoreState",l)},kf=e=>{switch(e.type){case"boolean":return!1;case"date":case"dateTime":case"number":return;case"singleSelect":return null;case"string":default:return""}},eV=["id","field"],tV=["id","field"],nV=(e,t)=>{const[n,r]=b.useState({}),o=b.useRef(n),i=b.useRef({}),{processRowUpdate:l,onProcessRowUpdateError:a,cellModesModel:c,onCellModesModelChange:u}=t,d=M=>(...R)=>{t.editMode===co.Cell&&M(...R)},p=b.useCallback((M,R)=>{const _=e.current.getCellParams(M,R);if(!e.current.isCellEditable(_))throw new Error(`MUI X: The cell with id=${M} and field=${R} is not editable.`)},[e]),m=b.useCallback((M,R,_)=>{if(e.current.getCellMode(M,R)!==_)throw new Error(`MUI X: The cell with id=${M} and field=${R} is not in ${_} mode.`)},[e]),f=b.useCallback((M,R)=>{if(!M.isEditable||M.cellMode===St.Edit)return;const _=z({},M,{reason:bo.cellDoubleClick});e.current.publishEvent("cellEditStart",_,R)},[e]),y=b.useCallback((M,R)=>{if(M.cellMode===St.View||e.current.getCellMode(M.id,M.field)===St.View)return;const _=z({},M,{reason:Rr.cellFocusOut});e.current.publishEvent("cellEditStop",_,R)},[e]),g=b.useCallback((M,R)=>{if(M.cellMode===St.Edit){if(R.which===229)return;let _;if(R.key==="Escape"?_=Rr.escapeKeyDown:R.key==="Enter"?_=Rr.enterKeyDown:R.key==="Tab"&&(_=R.shiftKey?Rr.shiftTabKeyDown:Rr.tabKeyDown,R.preventDefault()),_){const V=z({},M,{reason:_});e.current.publishEvent("cellEditStop",V,R)}}else if(M.isEditable){let _;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:R,cellParams:M,editMode:"cell"}))return;if(jS(R)?_=bo.printableKeyDown:$S(R)?_=bo.pasteKeyDown:R.key==="Enter"?_=bo.enterKeyDown:(R.key==="Backspace"||R.key==="Delete")&&(_=bo.deleteKeyDown),_){const W=z({},M,{reason:_,key:R.key});e.current.publishEvent("cellEditStart",W,R)}}},[e]),v=b.useCallback(M=>{const{id:R,field:_,reason:V}=M,W={id:R,field:_};(V===bo.printableKeyDown||V===bo.deleteKeyDown||V===bo.pasteKeyDown)&&(W.deleteValue=!0),e.current.startCellEditMode(W)},[e]),x=b.useCallback(M=>{const{id:R,field:_,reason:V}=M;e.current.runPendingEditCellValueMutation(R,_);let W;V===Rr.enterKeyDown?W="below":V===Rr.tabKeyDown?W="right":V===Rr.shiftTabKeyDown&&(W="left");const I=V==="escapeKeyDown";e.current.stopCellEditMode({id:R,field:_,ignoreModifications:I,cellToFocusAfter:W})},[e]),S=M=>async(...R)=>{var _;if(M){const{id:V,field:W}=R[0];((_=e.current.state.editRows[V][W])==null?void 0:_.error)||M(...R)}};Pe(e,"cellDoubleClick",d(f)),Pe(e,"cellFocusOut",d(y)),Pe(e,"cellKeyDown",d(g)),Pe(e,"cellEditStart",d(v)),Pe(e,"cellEditStop",d(x)),Et(e,"cellEditStart",t.onCellEditStart),Et(e,"cellEditStop",S(t.onCellEditStop));const w=b.useCallback((M,R)=>{const _=dn(e.current.state);return _[M]&&_[M][R]?St.Edit:St.View},[e]),k=nt(M=>{const R=M!==t.cellModesModel;u&&R&&u(M,{api:e.current}),!(t.cellModesModel&&R)&&(r(M),o.current=M,e.current.publishEvent("cellModesModelChange",M))}),E=b.useCallback((M,R,_)=>{const V=z({},o.current);if(_!==null)V[M]=z({},V[M],{[R]:z({},_)});else{const W=V[M],I=Be(W,[R].map(da));V[M]=I,Object.keys(V[M]).length===0&&delete V[M]}k(V)},[k]),T=b.useCallback((M,R,_)=>{e.current.setState(V=>{const W=z({},V.editRows);return _!==null?W[M]=z({},W[M],{[R]:z({},_)}):(delete W[M][R],Object.keys(W[M]).length===0&&delete W[M]),z({},V,{editRows:W})}),e.current.forceUpdate()},[e]),N=b.useCallback(M=>{const{id:R,field:_}=M,V=Be(M,eV);p(R,_),m(R,_,St.View),E(R,_,z({mode:St.Edit},V))},[p,m,E]),P=nt(async M=>{const{id:R,field:_,deleteValue:V,initialValue:W}=M,I=e.current.getCellValue(R,_);let D=I;V?D=kf(e.current.getColumn(_)):W&&(D=W);const G=e.current.getColumn(_),A=!!G.preProcessEditCellProps&&V;let K={value:D,error:!1,isProcessingProps:A};if(T(R,_,K),e.current.setCellFocus(R,_),A&&(K=await Promise.resolve(G.preProcessEditCellProps({id:R,row:e.current.getRow(R),props:K,hasChanged:D!==I})),e.current.getCellMode(R,_)===St.Edit)){const Y=dn(e.current.state);T(R,_,z({},K,{value:Y[R][_].value,isProcessingProps:!1}))}}),O=b.useCallback(M=>{const{id:R,field:_}=M,V=Be(M,tV);m(R,_,St.Edit),E(R,_,z({mode:St.View},V))},[m,E]),L=nt(async M=>{const{id:R,field:_,ignoreModifications:V,cellToFocusAfter:W="none"}=M;m(R,_,St.Edit),e.current.runPendingEditCellValueMutation(R,_);const I=()=>{T(R,_,null),E(R,_,null),W!=="none"&&e.current.moveFocusToRelativeCell(R,_,W)};if(V){I();return}const D=dn(e.current.state),{error:G,isProcessingProps:A}=D[R][_];if(G||A){i.current[R][_].mode=St.Edit,E(R,_,{mode:St.Edit});return}const K=e.current.getRowWithUpdatedValuesFromCellEditing(R,_);if(l){const Y=U=>{i.current[R][_].mode=St.Edit,E(R,_,{mode:St.Edit}),a?a(U):process.env.NODE_ENV!=="production"&&br(["MUI X: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, for example `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see https://mui.com/x/react-data-grid/editing/#server-side-persistence."],"error")};try{const U=e.current.getRow(R);Promise.resolve(l(K,U,{rowId:R})).then(q=>{e.current.updateRows([q]),I()}).catch(Y)}catch(U){Y(U)}}else e.current.updateRows([K]),I()}),$=b.useCallback(async M=>{var U,q;const{id:R,field:_,value:V,debounceMs:W,unstable_skipValueParser:I}=M;p(R,_),m(R,_,St.Edit);const D=e.current.getColumn(_),G=e.current.getRow(R);let A=V;D.valueParser&&!I&&(A=D.valueParser(V,G,D,e));let K=dn(e.current.state),Y=z({},K[R][_],{value:A,changeReason:W?"debouncedSetEditCellValue":"setEditCellValue"});if(D.preProcessEditCellProps){const Z=V!==K[R][_].value;Y=z({},Y,{isProcessingProps:!0}),T(R,_,Y),Y=await Promise.resolve(D.preProcessEditCellProps({id:R,row:G,props:Y,hasChanged:Z}))}return e.current.getCellMode(R,_)===St.View?!1:(K=dn(e.current.state),Y=z({},Y,{isProcessingProps:!1}),Y.value=D.preProcessEditCellProps?K[R][_].value:A,T(R,_,Y),K=dn(e.current.state),!((q=(U=K[R])==null?void 0:U[_])!=null&&q.error))},[e,p,m,T]),C=b.useCallback((M,R)=>{const _=e.current.getColumn(R),V=dn(e.current.state),W=e.current.getRow(M);if(!V[M]||!V[M][R])return e.current.getRow(M);const{value:I}=V[M][R];return _.valueSetter?_.valueSetter(I,W,_,e):z({},W,{[R]:I})},[e]),j={getCellMode:w,startCellEditMode:N,stopCellEditMode:O},F={setCellEditingEditCellValue:$,getRowWithUpdatedValuesFromCellEditing:C};Je(e,j,"public"),Je(e,F,"private"),b.useEffect(()=>{c&&k(c)},[c,k]),Rt(()=>{const M=mr(e),R=i.current;i.current=uw(n),Object.entries(n).forEach(([_,V])=>{Object.entries(V).forEach(([W,I])=>{var A,K;const D=((K=(A=R[_])==null?void 0:A[W])==null?void 0:K.mode)||St.View,G=M[_]?e.current.getRowId(M[_]):_;I.mode===St.Edit&&D===St.View?P(z({id:G,field:W},I)):I.mode===St.View&&D===St.Edit&&L(z({id:G,field:W},I))})})},[e,n,P,L])},rV=["id"],oV=["id"],sV=(e,t)=>{const[n,r]=b.useState({}),o=b.useRef(n),i=b.useRef({}),l=b.useRef({}),a=b.useRef(void 0),c=b.useRef(null),{processRowUpdate:u,onProcessRowUpdateError:d,rowModesModel:p,onRowModesModelChange:m}=t,f=I=>(...D)=>{t.editMode===co.Row&&I(...D)},y=b.useCallback((I,D)=>{const G=e.current.getCellParams(I,D);if(!e.current.isCellEditable(G))throw new Error(`MUI X: The cell with id=${I} and field=${D} is not editable.`)},[e]),g=b.useCallback((I,D)=>{if(e.current.getRowMode(I)!==D)throw new Error(`MUI X: The row with id=${I} is not in ${D} mode.`)},[e]),v=b.useCallback(I=>{const D=dn(e.current.state);return Object.values(D[I]).some(G=>G.error)},[e]),x=b.useCallback((I,D)=>{if(!I.isEditable||e.current.getRowMode(I.id)===Gt.Edit)return;const G=e.current.getRowParams(I.id),A=z({},G,{field:I.field,reason:$o.cellDoubleClick});e.current.publishEvent("rowEditStart",A,D)},[e]),S=b.useCallback(I=>{c.current=I},[]),w=b.useCallback((I,D)=>{I.isEditable&&e.current.getRowMode(I.id)!==Gt.View&&(c.current=null,a.current=setTimeout(()=>{var G;if(((G=c.current)==null?void 0:G.id)!==I.id){if(!e.current.getRow(I.id)||e.current.getRowMode(I.id)===Gt.View||v(I.id))return;const A=e.current.getRowParams(I.id),K=z({},A,{field:I.field,reason:qr.rowFocusOut});e.current.publishEvent("rowEditStop",K,D)}}))},[e,v]);b.useEffect(()=>()=>{clearTimeout(a.current)},[]);const k=b.useCallback((I,D)=>{if(I.cellMode===Gt.Edit){if(D.which===229)return;let G;if(D.key==="Escape")G=qr.escapeKeyDown;else if(D.key==="Enter")G=qr.enterKeyDown;else if(D.key==="Tab"){const A=zi(e).filter(K=>e.current.getColumn(K).type===id?!0:e.current.isCellEditable(e.current.getCellParams(I.id,K)));if(D.shiftKey?I.field===A[0]&&(G=qr.shiftTabKeyDown):I.field===A[A.length-1]&&(G=qr.tabKeyDown),D.preventDefault(),!G){const K=A.findIndex(U=>U===I.field),Y=A[D.shiftKey?K-1:K+1];e.current.setCellFocus(I.id,Y)}}if(G){if(G!==qr.escapeKeyDown&&v(I.id))return;const A=z({},e.current.getRowParams(I.id),{reason:G,field:I.field});e.current.publishEvent("rowEditStop",A,D)}}else if(I.isEditable){let G;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:D,cellParams:I,editMode:"row"}))return;if(jS(D)||$S(D)?G=$o.printableKeyDown:D.key==="Enter"?G=$o.enterKeyDown:(D.key==="Backspace"||D.key==="Delete")&&(G=$o.deleteKeyDown),G){const K=e.current.getRowParams(I.id),Y=z({},K,{field:I.field,reason:G});e.current.publishEvent("rowEditStart",Y,D)}}},[e,v]),E=b.useCallback(I=>{const{id:D,field:G,reason:A}=I,K={id:D,fieldToFocus:G};(A===$o.printableKeyDown||A===$o.deleteKeyDown)&&(K.deleteValue=!!G),e.current.startRowEditMode(K)},[e]),T=b.useCallback(I=>{const{id:D,reason:G,field:A}=I;e.current.runPendingEditCellValueMutation(D);let K;G===qr.enterKeyDown?K="below":G===qr.tabKeyDown?K="right":G===qr.shiftTabKeyDown&&(K="left");const Y=G==="escapeKeyDown";e.current.stopRowEditMode({id:D,ignoreModifications:Y,field:A,cellToFocusAfter:K})},[e]);Pe(e,"cellDoubleClick",f(x)),Pe(e,"cellFocusIn",f(S)),Pe(e,"cellFocusOut",f(w)),Pe(e,"cellKeyDown",f(k)),Pe(e,"rowEditStart",f(E)),Pe(e,"rowEditStop",f(T)),Et(e,"rowEditStart",t.onRowEditStart),Et(e,"rowEditStop",t.onRowEditStop);const N=b.useCallback(I=>pS(e,{rowId:I,editMode:t.editMode})?Gt.Edit:Gt.View,[e,t.editMode]),P=nt(I=>{const D=I!==t.rowModesModel;m&&D&&m(I,{api:e.current}),!(t.rowModesModel&&D)&&(r(I),o.current=I,e.current.publishEvent("rowModesModelChange",I))}),O=b.useCallback((I,D)=>{const G=z({},o.current);D!==null?G[I]=z({},D):delete G[I],P(G)},[P]),L=b.useCallback((I,D)=>{e.current.setState(G=>{const A=z({},G.editRows);return D!==null?A[I]=D:delete A[I],z({},G,{editRows:A})}),e.current.forceUpdate()},[e]),$=b.useCallback((I,D,G)=>{e.current.setState(A=>{const K=z({},A.editRows);return G!==null?K[I]=z({},K[I],{[D]:z({},G)}):(delete K[I][D],Object.keys(K[I]).length===0&&delete K[I]),z({},A,{editRows:K})}),e.current.forceUpdate()},[e]),C=b.useCallback(I=>{const{id:D}=I,G=Be(I,rV);g(D,Gt.View),O(D,z({mode:Gt.Edit},G))},[g,O]),j=nt(I=>{const{id:D,fieldToFocus:G,deleteValue:A,initialValue:K}=I,Y=e.current.getRow(D),U=yr(e),q=U.reduce((Z,X)=>{const Q=X.field;if(!e.current.getCellParams(D,Q).isEditable)return Z;const J=e.current.getColumn(Q);let oe=e.current.getCellValue(D,Q);return G===Q&&(A||K)&&(A?oe=kf(J):K&&(oe=K)),Z[Q]={value:oe,error:!1,isProcessingProps:J.editable&&!!J.preProcessEditCellProps&&A},Z},{});l.current[D]=Y,L(D,q),G&&e.current.setCellFocus(D,G),U.filter(Z=>e.current.getCellParams(D,Z.field).isEditable&&Z.editable&&!!Z.preProcessEditCellProps&&A).forEach(Z=>{const X=Z.field,Q=e.current.getCellValue(D,X),re=A?kf(Z):K!=null?K:Q;Promise.resolve(Z.preProcessEditCellProps({id:D,row:Y,props:q[X],hasChanged:re!==Q})).then(J=>{if(e.current.getRowMode(D)===Gt.Edit){const oe=dn(e.current.state);$(D,X,z({},J,{value:oe[D][X].value,isProcessingProps:!1}))}})})}),F=b.useCallback(I=>{const{id:D}=I,G=Be(I,oV);g(D,Gt.Edit),O(D,z({mode:Gt.View},G))},[g,O]),M=nt(I=>{const{id:D,ignoreModifications:G,field:A,cellToFocusAfter:K="none"}=I;e.current.runPendingEditCellValueMutation(D);const Y=()=>{K!=="none"&&A&&e.current.moveFocusToRelativeCell(D,A,K),L(D,null),O(D,null),delete l.current[D]};if(G){Y();return}const U=dn(e.current.state),q=l.current[D];if(Object.values(U[D]).some(Q=>Q.isProcessingProps)){i.current[D].mode=Gt.Edit;return}if(v(D)){i.current[D].mode=Gt.Edit,O(D,{mode:Gt.Edit});return}const X=e.current.getRowWithUpdatedValuesFromRowEditing(D);if(u){const Q=re=>{i.current[D]&&(i.current[D].mode=Gt.Edit,O(D,{mode:Gt.Edit})),d?d(re):process.env.NODE_ENV!=="production"&&br(["MUI X: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, for example `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see https://mui.com/x/react-data-grid/editing/#server-side-persistence."],"error")};try{Promise.resolve(u(X,q,{rowId:D})).then(re=>{e.current.updateRows([re]),Y()}).catch(Q)}catch(re){Q(re)}}else e.current.updateRows([X]),Y()}),R=b.useCallback(I=>{const{id:D,field:G,value:A,debounceMs:K,unstable_skipValueParser:Y}=I;y(D,G);const U=e.current.getColumn(G),q=e.current.getRow(D);let Z=A;U.valueParser&&!Y&&(Z=U.valueParser(A,q,U,e));let X=dn(e.current.state),Q=z({},X[D][G],{value:Z,changeReason:K?"debouncedSetEditCellValue":"setEditCellValue"});return U.preProcessEditCellProps||$(D,G,Q),new Promise(re=>{const J=[];if(U.preProcessEditCellProps){const oe=Q.value!==X[D][G].value;Q=z({},Q,{isProcessingProps:!0}),$(D,G,Q);const te=X[D],fe=Be(te,[G].map(da)),ve=Promise.resolve(U.preProcessEditCellProps({id:D,row:q,props:Q,hasChanged:oe,otherFieldsProps:fe})).then(Ce=>{if(e.current.getRowMode(D)===Gt.View){re(!1);return}X=dn(e.current.state),Ce=z({},Ce,{isProcessingProps:!1}),Ce.value=U.preProcessEditCellProps?X[D][G].value:Z,$(D,G,Ce)});J.push(ve)}Object.entries(X[D]).forEach(([oe,te])=>{if(oe===G)return;const fe=e.current.getColumn(oe);if(!fe.preProcessEditCellProps)return;te=z({},te,{isProcessingProps:!0}),$(D,oe,te),X=dn(e.current.state);const ve=X[D],Ce=Be(ve,[oe].map(da)),xe=Promise.resolve(fe.preProcessEditCellProps({id:D,row:q,props:te,hasChanged:!1,otherFieldsProps:Ce})).then(Se=>{if(e.current.getRowMode(D)===Gt.View){re(!1);return}Se=z({},Se,{isProcessingProps:!1}),$(D,oe,Se)});J.push(xe)}),Promise.all(J).then(()=>{e.current.getRowMode(D)===Gt.Edit?(X=dn(e.current.state),re(!X[D][G].error)):re(!1)})})},[e,y,$]),_=b.useCallback(I=>{const D=dn(e.current.state),G=e.current.getRow(I);if(!D[I])return e.current.getRow(I);let A=z({},l.current[I],G);return Object.entries(D[I]).forEach(([K,Y])=>{const U=e.current.getColumn(K);U!=null&&U.valueSetter?A=U.valueSetter(Y.value,A,U,e):A[K]=Y.value}),A},[e]),V={getRowMode:N,startRowEditMode:C,stopRowEditMode:F},W={setRowEditingEditCellValue:R,getRowWithUpdatedValuesFromRowEditing:_};Je(e,V,"public"),Je(e,W,"private"),b.useEffect(()=>{p&&P(p)},[p,P]),Rt(()=>{const I=mr(e),D=i.current;i.current=uw(n);const G=new Set([...Object.keys(n),...Object.keys(D)]);Array.from(G).forEach(A=>{var q,Z;const K=(q=n[A])!=null?q:{mode:Gt.View},Y=((Z=D[A])==null?void 0:Z.mode)||Gt.View,U=I[A]?e.current.getRowId(I[A]):A;K.mode===Gt.Edit&&Y===Gt.View?j(z({id:U},K)):K.mode===Gt.View&&Y===Gt.Edit&&M(z({id:U},K))})},[e,n,j,M])},iV=e=>z({},e,{editRows:{}}),lV=(e,t)=>{nV(e,t),sV(e,t);const n=b.useRef({}),{isCellEditable:r}=t,o=b.useCallback(m=>Ri(m.rowNode)||!m.colDef.editable||!m.colDef.renderEditCell?!1:r?r(m):!0,[r]),i=(m,f,y,g)=>{if(!y){g();return}if(n.current[m]||(n.current[m]={}),n.current[m][f]){const[S]=n.current[m][f];clearTimeout(S)}const v=()=>{const[S]=n.current[m][f];clearTimeout(S),g(),delete n.current[m][f]},x=setTimeout(()=>{g(),delete n.current[m][f]},y);n.current[m][f]=[x,v]};b.useEffect(()=>{const m=n.current;return()=>{Object.entries(m).forEach(([f,y])=>{Object.keys(y).forEach(g=>{const[v]=m[f][g];clearTimeout(v),delete m[f][g]})})}},[]);const l=b.useCallback((m,f)=>{if(n.current[m]){if(!f)Object.keys(n.current[m]).forEach(y=>{const[,g]=n.current[m][y];g()});else if(n.current[m][f]){const[,y]=n.current[m][f];y()}}},[]),a=b.useCallback(m=>{const{id:f,field:y,debounceMs:g}=m;return new Promise(v=>{i(f,y,g,async()=>{const x=t.editMode===co.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(f,y)===St.Edit){const S=await x(m);v(S)}})})},[e,t.editMode]),c=b.useCallback((m,f)=>t.editMode===co.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(m,f):e.current.getRowWithUpdatedValuesFromRowEditing(m),[e,t.editMode]),u=b.useCallback((m,f)=>{var g,v;return(v=(g=dn(e.current.state)[m])==null?void 0:g[f])!=null?v:null},[e]),d={isCellEditable:o,setEditCellValue:a,getRowWithUpdatedValues:c,unstable_getEditCellMeta:u},p={runPendingEditCellValueMutation:l};Je(e,d,"public"),Je(e,p,"private")},aV=(e,t,n)=>{const r=!!t.unstable_dataSource;return n.current.caches.rows=jc({rows:r?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),z({},e,{rows:ww({apiRef:n,rowCountProp:t.rowCount,loadingProp:r?!0:t.loading,previousTree:null,previousTreeDepths:null})})},cV=(e,t)=>{if(process.env.NODE_ENV!=="production")try{Object.freeze(t.rows)}catch(M){}const n=fn(e,"useGridRows"),r=b.useRef(Date.now()),o=b.useRef(t.rowCount),i=Jn(),l=b.useCallback(M=>{const R=mr(e)[M];if(R)return R;const _=e.current.getRowNode(M);return _&&Ri(_)?{[Mi]:M}:null},[e]),a=b.useCallback(M=>Ba(e.current.state,M),[e]),c=b.useCallback(({cache:M,throttle:R})=>{const _=()=>{r.current=Date.now(),e.current.setState(W=>z({},W,{rows:ww({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:ln(e),previousTreeDepths:Gy(e),previousGroupsToFetch:W7(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(i.clear(),e.current.caches.rows=M,!R){_();return}const V=t.throttleRowsMs-(Date.now()-r.current);if(V>0){i.start(V,_);return}_()},[t.throttleRowsMs,t.rowCount,t.loading,e,i]),u=b.useCallback(M=>{n.debug(`Updating all rows, new length ${M.length}`);const R=jc({rows:M,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),_=e.current.caches.rows;R.rowsBeforePartialUpdates=_.rowsBeforePartialUpdates,c({cache:R,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,c,e]),d=b.useCallback(M=>{if(t.signature===nr.DataGrid&&M.length>1)throw new Error(["MUI X: You cannot update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
|
|
448
|
+
`));const R=t1(e,M,t.getRowId),_=e1({updates:R,getRowId:t.getRowId,previousCache:e.current.caches.rows});c({cache:_,throttle:!0})},[t.signature,t.getRowId,c,e]),p=b.useCallback((M,R)=>{const _=t1(e,M,t.getRowId),V=e1({updates:_,getRowId:t.getRowId,previousCache:e.current.caches.rows,groupKeys:R!=null?R:[]});c({cache:V,throttle:!1})},[t.getRowId,c,e]),m=b.useCallback(M=>{M!==t.loading&&(n.debug(`Setting loading to ${M}`),e.current.setState(R=>z({},R,{rows:z({},R.rows,{loading:M})})),e.current.caches.rows.loadingPropBeforePartialUpdates=M)},[t.loading,e,n]),f=b.useCallback(()=>{const M=Pl(e),R=mr(e);return new Map(M.map(_=>{var V;return[_,(V=R[_])!=null?V:{}]}))},[e]),y=b.useCallback(()=>Aa(e),[e]),g=b.useCallback(()=>Pl(e),[e]),v=b.useCallback(M=>{const R=e.current.getRow(M),{rowToIndexMap:_}=Ko(e);return _.get(R)},[e]),x=b.useCallback((M,R)=>{const _=e.current.getRowNode(M);if(!_)throw new Error(`MUI X: No row with id #${M} found.`);if(_.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const V=z({},_,{childrenExpanded:R});e.current.setState(W=>z({},W,{rows:z({},W.rows,{tree:z({},W.rows.tree,{[M]:V})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",V)},[e]),S=b.useCallback(M=>{var R;return(R=ln(e)[M])!=null?R:null},[e]),w=b.useCallback(({skipAutoGeneratedRows:M=!0,groupId:R,applySorting:_,applyFiltering:V})=>{const W=ln(e);let I;if(_){const D=W[R];if(!D)return[];const G=Vi(e);I=[];const A=G.findIndex(K=>K===R)+1;for(let K=A;K<G.length&&W[G[K]].depth>D.depth;K+=1){const Y=G[K];(!M||!Ri(W[Y]))&&I.push(Y)}}else I=bh(W,R,M);if(V){const D=Hi(e);I=I.filter(G=>D[G]!==!1)}return I},[e]),k=b.useCallback((M,R)=>{const _=e.current.getRowNode(M);if(!_)throw new Error(`MUI X: No row with id #${M} found.`);if(_.parent!==En)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if(_.type!=="leaf")throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState(V=>{const W=ln(V,e.current.instanceId)[En],I=W.children,D=I.findIndex(A=>A===M);if(D===-1||D===R)return V;n.debug(`Moving row ${M} to index ${R}`);const G=[...I];return G.splice(R,0,G.splice(D,1)[0]),z({},V,{rows:z({},V.rows,{tree:z({},V.rows.tree,{[En]:z({},W,{children:G})})})})}),e.current.publishEvent("rowsSet")},[e,n]),E=b.useCallback((M,R)=>{if(t.signature===nr.DataGrid&&R.length>1)throw new Error(["MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
|
|
449
|
+
`));if(R.length===0)return;if(Hs(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const V=z({},ln(e)),W=z({},mr(e)),I=z({},Hy(e)),D=V[En],G=[...D.children],A=new Set;for(let Y=0;Y<R.length;Y+=1){const U=R[Y],q=ld(U,t.getRowId,"A row was provided without id when calling replaceRows()."),[Z]=G.splice(M+Y,1,q);A.has(Z)||(delete W[Z],delete I[Z],delete V[Z]);const X={id:q,depth:0,parent:En,type:"leaf",groupingKey:null};W[q]=U,I[q]=q,V[q]=X,A.add(q)}V[En]=z({},D,{children:G});const K=G.filter(Y=>{var U;return((U=V[Y])==null?void 0:U.type)==="leaf"});e.current.caches.rows.dataRowIdToModelLookup=W,e.current.caches.rows.dataRowIdToIdLookup=I,e.current.setState(Y=>z({},Y,{rows:z({},Y.rows,{dataRowIdToModelLookup:W,dataRowIdToIdLookup:I,dataRowIds:K,tree:V})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),T={getRow:l,setLoading:m,getRowId:a,getRowModels:f,getRowsCount:y,getAllRowIds:g,setRows:u,updateRows:d,getRowNode:S,getRowIndexRelativeToVisibleRows:v,unstable_replaceRows:E},N={setRowIndex:k,setRowChildrenExpansion:x,getRowGroupChildren:w},P={updateServerRows:p},O=b.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let M;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?M=z({},e.current.caches.rows,{updates:{type:"full",rows:Pl(e)}}):M=jc({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),c({cache:M,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,c]),L=Er(()=>t.unstable_dataSource),$=b.useCallback(M=>{if(t.unstable_dataSource&&t.unstable_dataSource!==L.current){L.current=t.unstable_dataSource;return}M==="rowTreeCreation"&&O()},[O,L,t.unstable_dataSource]),C=b.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==U7(e)&&O()},[e,O]);Pe(e,"activeStrategyProcessorChange",$),Pe(e,"strategyAvailabilityChange",C);const j=b.useCallback(()=>{e.current.setState(M=>{const R=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:ln(M,e.current.instanceId),treeDepths:Gy(M,e.current.instanceId),dataRowIds:Pl(M,e.current.instanceId),dataRowIdToModelLookup:mr(M,e.current.instanceId),dataRowIdToIdLookup:Hy(M,e.current.instanceId)});return z({},M,{rows:z({},M.rows,R,{totalTopLevelRowCount:Cw({tree:R.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);Nh(e,"hydrateRows",j),Je(e,T,"public"),Je(e,N,t.signature===nr.DataGrid?"private":"public"),Je(e,P,"private");const F=b.useRef(!0);b.useEffect(()=>{var W;if(F.current){F.current=!1;return}let M=!1;t.rowCount!==o.current&&(M=!0,o.current=t.rowCount);const R=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,_=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,V=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;R&&(_||(e.current.setState(I=>z({},I,{rows:z({},I.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),V||(e.current.setState(I=>z({},I,{rows:z({},I.rows,{totalRowCount:Math.max(t.rowCount||0,I.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,I.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate()),!M)||(n.debug(`Updating all rows, new length ${(W=t.rows)==null?void 0:W.length}`),c({cache:jc({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1}))},[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])},uV=e=>{const t={[En]:z({},EF(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:En,type:"leaf",groupingKey:null}}return{groupingName:$s,tree:t,treeDepths:{0:e.length},dataRowIds:e}},dV=({previousTree:e,actions:t})=>{const n=z({},e),r={};for(let l=0;l<t.remove.length;l+=1){const a=t.remove[l];r[a]=!0,delete n[a]}for(let l=0;l<t.insert.length;l+=1){const a=t.insert[l];n[a]={id:a,depth:0,parent:En,type:"leaf",groupingKey:null}}const o=n[En];let i=[...o.children,...t.insert];return Object.values(r).length&&(i=i.filter(l=>!r[l])),n[En]=z({},o,{children:i}),{groupingName:$s,tree:n,treeDepths:{0:i.length},dataRowIds:i}},pV=e=>e.updates.type==="full"?uV(e.updates.rows):dV({previousTree:e.previousTree,actions:e.updates.actions}),fV=e=>{hu(e,$s,"rowTreeCreation",pV)};class gp extends Error{}function mV(e,t){var y;const n=b.useCallback(g=>({field:g,colDef:e.current.getColumn(g)}),[e]),r=b.useCallback(g=>{const v=e.current.getRow(g);if(!v)throw new gp(`No row with id #${g} found`);return{id:g,columns:e.current.getAllColumns(),row:v}},[e]),o=b.useCallback((g,v,x,{cellMode:S,colDef:w,hasFocus:k,rowNode:E,tabIndex:T})=>{const N=x[v],P=w!=null&&w.valueGetter?w.valueGetter(N,x,w,e):N,O={id:g,field:v,row:x,rowNode:E,colDef:w,cellMode:S,hasFocus:k,tabIndex:T,value:P,formattedValue:P,isEditable:!1,api:e.current};return w&&w.valueFormatter&&(O.formattedValue=w.valueFormatter(P,x,w,e)),O.isEditable=w&&e.current.isCellEditable(O),O},[e]),i=b.useCallback((g,v)=>{var T;const x=e.current.getRow(g),S=e.current.getRowNode(g);if(!x||!S)throw new gp(`No row with id #${g} found`);const w=jn(e),k=wh(e),E=e.current.getCellMode(g,v);return e.current.getCellParamsForRow(g,v,x,{colDef:t.unstable_listView&&((T=t.unstable_listColumn)==null?void 0:T.field)===v?Li(e.current.state):e.current.getColumn(v),rowNode:S,hasFocus:w!==null&&w.field===v&&w.id===g,tabIndex:k&&k.field===v&&k.id===g?0:-1,cellMode:E})},[e,t.unstable_listView,(y=t.unstable_listColumn)==null?void 0:y.field]),l=b.useCallback((g,v)=>{const x=e.current.getColumn(v),S=e.current.getRow(g);if(!S)throw new gp(`No row with id #${g} found`);return!x||!x.valueGetter?S[v]:x.valueGetter(S[x.field],S,x,e)},[e]),a=b.useCallback((g,v)=>{const x=v.field;if(!v||!v.valueGetter)return g[x];const S=g[v.field];return v.valueGetter(S,g,v,e)},[e]),c=b.useCallback((g,v)=>{const x=a(g,v);return!v||!v.valueFormatter?x:v.valueFormatter(x,g,v,e)},[e,a]),u=b.useCallback(g=>e.current.rootElementRef.current?YD(e.current.rootElementRef.current,g):null,[e]),d=b.useCallback(g=>e.current.rootElementRef.current?XD(e.current.rootElementRef.current,g):null,[e]),p=b.useCallback((g,v)=>e.current.rootElementRef.current?ZD(e.current.rootElementRef.current,{id:g,field:v}):null,[e]),m={getCellValue:l,getCellParams:i,getCellElement:p,getRowValue:a,getRowFormattedValue:c,getRowParams:r,getRowElement:d,getColumnHeaderParams:n,getColumnHeaderElement:u},f={getCellParamsForRow:o};Je(e,m,"public"),Je(e,f,"private")}const c2=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],hV=(e,t)=>{var n;return z({},e,{rowSelection:t.rowSelection?(n=c2(t.rowSelectionModel))!=null?n:[]:[]})},gV=(e,t)=>{var V,W,I,D,G,A,K,Y,U;const n=fn(e,"useGridSelection"),r=b.useCallback(q=>(...Z)=>{t.rowSelection&&q(...Z)},[t.rowSelection]),o=t.signature!==nr.DataGrid&&(((V=t.rowSelectionPropagation)==null?void 0:V.parents)||((W=t.rowSelectionPropagation)==null?void 0:W.descendants)),i=b.useMemo(()=>c2(t.rowSelectionModel,Yn(e.current.state)),[e,t.rowSelectionModel]),l=b.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:i,propOnChange:t.onRowSelectionModelChange,stateSelector:Yn,changeEvent:"rowSelectionChange"});const{checkboxSelection:a,disableRowSelectionOnClick:c,isRowSelectable:u}=t,d=Ch(t),p=me(e,ln),m=me(e,Hs)>1,f=b.useCallback(q=>{var re;let Z=q;const X=(re=l.current)!=null?re:q,Q=e.current.isRowSelected(q);if(Q){const J=yi(e),oe=J.findIndex(fe=>fe===X),te=J.findIndex(fe=>fe===Z);if(oe===te)return;oe>te?Z=J[te+1]:Z=J[te-1]}l.current=q,e.current.selectRowRange({startId:X,endId:Z},!Q)},[e]),y=b.useCallback(q=>{if(t.signature===nr.DataGrid&&!d&&Array.isArray(q)&&q.length>1)throw new Error(["MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(`
|
|
450
|
+
`));Yn(e.current.state)!==q&&(n.debug("Setting selection model"),e.current.setState(X=>z({},X,{rowSelection:t.rowSelection?q:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,d]),g=b.useCallback(q=>Yn(e.current.state).includes(q),[e]),v=b.useCallback(q=>{if(t.rowSelection===!1||u&&!u(e.current.getRowParams(q)))return!1;const Z=ln(e)[q];return!((Z==null?void 0:Z.type)==="footer"||(Z==null?void 0:Z.type)==="pinnedRow")},[e,t.rowSelection,u]),x=b.useCallback(()=>KF(e),[e]),S=b.useCallback((q,Z=!0,X=!1)=>{var Q,re,J,oe,te,fe,ve,Ce,xe,Se,Oe,Ae;if(e.current.isRowSelectable(q))if(l.current=q,X){n.debug(`Setting selection for row ${q}`);const se=[],Ge=Ie=>{se.push(Ie)};Z&&(Ge(q),o&&ul(e,p,q,(re=(Q=t.rowSelectionPropagation)==null?void 0:Q.descendants)!=null?re:!1,(oe=(J=t.rowSelectionPropagation)==null?void 0:J.parents)!=null?oe:!1,Ge)),e.current.setRowSelectionModel(se)}else{n.debug(`Toggling selection for row ${q}`);const se=Yn(e.current.state),Ge=new Set(se);Ge.delete(q);const Ie=de=>{Ge.add(de)},Ye=de=>{Ge.delete(de)};Z?(Ie(q),o&&ul(e,p,q,(fe=(te=t.rowSelectionPropagation)==null?void 0:te.descendants)!=null?fe:!1,(Ce=(ve=t.rowSelectionPropagation)==null?void 0:ve.parents)!=null?Ce:!1,Ie)):o&&r1(e,p,q,(Se=(xe=t.rowSelectionPropagation)==null?void 0:xe.descendants)!=null?Se:!1,(Ae=(Oe=t.rowSelectionPropagation)==null?void 0:Oe.parents)!=null?Ae:!1,Ye),(Ge.size<2||d)&&e.current.setRowSelectionModel(Array.from(Ge))}},[e,n,o,p,(I=t.rowSelectionPropagation)==null?void 0:I.descendants,(D=t.rowSelectionPropagation)==null?void 0:D.parents,d]),w=b.useCallback((q,Z=!0,X=!1)=>{n.debug("Setting selection for several rows");const Q=q.filter(oe=>e.current.isRowSelectable(oe));let re;if(X){if(Z){if(re=new Set(Q),o){const te=fe=>{re.add(fe)};Q.forEach(fe=>{var ve,Ce,xe,Se;ul(e,p,fe,(Ce=(ve=t.rowSelectionPropagation)==null?void 0:ve.descendants)!=null?Ce:!1,(Se=(xe=t.rowSelectionPropagation)==null?void 0:xe.parents)!=null?Se:!1,te)})}}else re=new Set;const oe=qo(e);if(re.size===Object.keys(oe).length&&Array.from(re).every(te=>oe[te]===te))return}else{re=new Set(Object.values(qo(e)));const oe=fe=>{re.add(fe)},te=fe=>{re.delete(fe)};Q.forEach(fe=>{var ve,Ce,xe,Se,Oe,Ae,se,Ge;Z?(re.add(fe),o&&ul(e,p,fe,(Ce=(ve=t.rowSelectionPropagation)==null?void 0:ve.descendants)!=null?Ce:!1,(Se=(xe=t.rowSelectionPropagation)==null?void 0:xe.parents)!=null?Se:!1,oe)):(te(fe),o&&r1(e,p,fe,(Ae=(Oe=t.rowSelectionPropagation)==null?void 0:Oe.descendants)!=null?Ae:!1,(Ge=(se=t.rowSelectionPropagation)==null?void 0:se.parents)!=null?Ge:!1,te))})}(re.size<2||d)&&e.current.setRowSelectionModel(Array.from(re))},[n,o,d,e,p,(G=t.rowSelectionPropagation)==null?void 0:G.descendants,(A=t.rowSelectionPropagation)==null?void 0:A.parents]),k=b.useCallback(q=>{var Q,re,J,oe;if(!m||!o||q.length===0)return q;const Z=new Set(q),X=te=>{Z.add(te)};for(const te of q)ul(e,p,te,(re=(Q=t.rowSelectionPropagation)==null?void 0:Q.descendants)!=null?re:!1,(oe=(J=t.rowSelectionPropagation)==null?void 0:J.parents)!=null?oe:!1,X,Z);return Array.from(Z)},[e,p,(K=t.rowSelectionPropagation)==null?void 0:K.descendants,(Y=t.rowSelectionPropagation)==null?void 0:Y.parents,m,o]),E=b.useCallback(({startId:q,endId:Z},X=!0,Q=!1)=>{if(!e.current.getRow(q)||!e.current.getRow(Z))return;n.debug(`Expanding selection from row ${q} to row ${Z}`);const re=yi(e),J=re.indexOf(q),oe=re.indexOf(Z),[te,fe]=J>oe?[oe,J]:[J,oe],ve=re.slice(te,fe+1);e.current.selectRows(ve,X,Q)},[e,n]),T={selectRow:S,setRowSelectionModel:y,getSelectedRows:x,isRowSelected:g,isRowSelectable:v},N={selectRows:w,selectRowRange:E,getPropagatedRowSelectionModel:k};Je(e,T,"public"),Je(e,N,t.signature===nr.DataGrid?"private":"public");const P=b.useRef(!0),O=b.useCallback((q=!1)=>{var fe;if(P.current)return;const Z=Yn(e.current.state),X=mr(e),Q=Hi(e),re=z({},qo(e)),J=ve=>t.filterMode==="server"?!X[ve]:!X[ve]||Q[ve]===!1;let oe=!1;Z.forEach(ve=>{var xe;if(J(ve)){if(t.keepNonExistentRowsSelected)return;delete re[ve],oe=!0;return}if(!((xe=t.rowSelectionPropagation)!=null&&xe.parents))return;const Ce=p[ve];if(Ce.type==="group"){if(Ce.isAutoGenerated){delete re[ve],oe=!0;return}Ce.children.every(Oe=>Q[Oe]===!1)||(delete re[ve],oe=!0)}});const te=m&&((fe=t.rowSelectionPropagation)==null?void 0:fe.parents)&&Object.keys(re).length>0;if(oe||te&&!q){const ve=Object.values(re);te?e.current.selectRows(ve,!0,!0):e.current.setRowSelectionModel(ve)}},[e,m,(U=t.rowSelectionPropagation)==null?void 0:U.parents,t.keepNonExistentRowsSelected,t.filterMode,p]),L=b.useCallback((q,Z)=>{const X=Z.metaKey||Z.ctrlKey,Q=!a&&!X&&!G_(Z),re=!d||Q,J=e.current.isRowSelected(q);re?e.current.selectRow(q,Q?!0:!J,!0):e.current.selectRow(q,!J,!1)},[e,d,a]),$=b.useCallback((q,Z)=>{var re;if(c)return;const X=(re=Z.target.closest(`.${B.cell}`))==null?void 0:re.getAttribute("data-field");if(X===Gi.field||X===ad)return;if(X){const J=e.current.getColumn(X);if((J==null?void 0:J.type)===id)return}ln(e)[q.id].type!=="pinnedRow"&&(Z.shiftKey&&d?f(q.id):L(q.id,Z))},[c,d,e,f,L]),C=b.useCallback((q,Z)=>{var X;d&&Z.shiftKey&&((X=window.getSelection())==null||X.removeAllRanges())},[d]),j=b.useCallback((q,Z)=>{d&&Z.nativeEvent.shiftKey?f(q.id):e.current.selectRow(q.id,q.value,!d)},[e,f,d]),F=b.useCallback(q=>{const Z=t.pagination&&t.checkboxSelectionVisibleOnly&&t.paginationMode==="client"?Ww(e):yi(e);e.current.selectRows(Z,q.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination,t.paginationMode]),M=b.useCallback((q,Z)=>{if(e.current.getCellMode(q.id,q.field)!==St.Edit&&!Ga(Z)){if(pu(Z.key)&&Z.shiftKey){const X=jn(e);if(X&&X.id!==q.id){Z.preventDefault();const Q=e.current.isRowSelected(X.id);if(!d){e.current.selectRow(X.id,!Q,!0);return}const re=e.current.getRowIndexRelativeToVisibleRows(X.id),J=e.current.getRowIndexRelativeToVisibleRows(q.id);let oe,te;re>J?Q?(oe=J,te=re-1):(oe=J,te=re):Q?(oe=re+1,te=J):(oe=re,te=J);const ve=Ko(e).rows.slice(oe,te+1).map(Ce=>Ce.id);e.current.selectRows(ve,!Q);return}}if(Z.key===" "&&Z.shiftKey){Z.preventDefault(),L(q.id,Z);return}String.fromCharCode(Z.keyCode)==="A"&&(Z.ctrlKey||Z.metaKey)&&(Z.preventDefault(),w(e.current.getAllRowIds(),!0))}},[e,L,w,d]),R=nt(()=>{if(!t.rowSelection){e.current.setRowSelectionModel([]);return}if(i===void 0)return;if(!o||!m||i.length===0){e.current.setRowSelectionModel(i);return}const q=e.current.getPropagatedRowSelectionModel(i);if(q.length!==i.length||!q.every(Z=>i.includes(Z))){e.current.setRowSelectionModel(q);return}e.current.setRowSelectionModel(i)});Pe(e,"sortedRowsSet",r(()=>O(!0))),Pe(e,"filteredRowsSet",r(()=>O())),Pe(e,"rowClick",r($)),Pe(e,"rowSelectionCheckboxChange",r(j)),Pe(e,"headerSelectionCheckboxChange",F),Pe(e,"cellMouseDown",r(C)),Pe(e,"cellKeyDown",r(M)),b.useEffect(()=>{R()},[e,i,t.rowSelection,R]);const _=i!=null;b.useEffect(()=>{if(_||!t.rowSelection)return;const q=Yn(e.current.state);if(v){const Z=q.filter(X=>v(X));Z.length<q.length&&e.current.setRowSelectionModel(Z)}},[e,v,_,t.rowSelection]),b.useEffect(()=>{if(!t.rowSelection||_)return;const q=Yn(e.current.state);!d&&q.length>1&&e.current.setRowSelectionModel([])},[e,d,a,_,t.rowSelection]),b.useEffect(()=>{r(O)},[O,r]),b.useEffect(()=>{P.current&&(P.current=!1)},[])},bV=e=>{const{classes:t}=e;return b.useMemo(()=>ye({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},at,t),[t])},yV=(e,t)=>{const n={classes:t.classes},r=bV(n),o=b.useCallback(i=>{const l=z({},Gi,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),a=t.checkboxSelection,c=i.lookup[cr]!=null;return a&&!c?(i.lookup[cr]=l,i.orderedFields=[cr,...i.orderedFields]):!a&&c?(delete i.lookup[cr],i.orderedFields=i.orderedFields.filter(u=>u!==cr)):a&&c&&(i.lookup[cr]=z({},l,i.lookup[cr]),t.columns.some(u=>u.field===cr)||(i.orderedFields=[cr,...i.orderedFields.filter(u=>u!==cr)])),i},[e,r,t.columns,t.checkboxSelection]);Ut(e,"hydrateColumns",o)},vV=(e,t)=>{var r,o,i,l;const n=(l=(i=t.sortModel)!=null?i:(o=(r=t.initialState)==null?void 0:r.sorting)==null?void 0:o.sortModel)!=null?l:[];return z({},e,{sorting:{sortModel:iw(n,t.disableMultipleColumnsSorting),sortedRows:[]}})},xV=(e,t)=>{var E,T;const n=fn(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:jr,changeEvent:"sortModelChange"});const r=b.useCallback((N,P)=>{const O=jr(e),L=O.findIndex(C=>C.field===N);let $=[...O];return L>-1?(P==null?void 0:P.sort)==null?$.splice(L,1):$.splice(L,1,P):$=[...O,P],$},[e]),o=b.useCallback((N,P)=>{var $,C;const L=jr(e).find(j=>j.field===N.field);if(L){const j=P===void 0?Uy(($=N.sortingOrder)!=null?$:t.sortingOrder,L.sort):P;return j===void 0?void 0:z({},L,{sort:j})}return{field:N.field,sort:P===void 0?Uy((C=N.sortingOrder)!=null?C:t.sortingOrder):P}},[e,t.sortingOrder]),i=b.useCallback((N,P)=>P==null||P.sortable===!1||t.disableColumnSorting?N:(P.sortingOrder||t.sortingOrder).some(L=>!!L)?[...N,"columnMenuSortItem"]:N,[t.sortingOrder,t.disableColumnSorting]),l=b.useCallback(()=>{e.current.setState(N=>{if(t.sortingMode==="server")return n.debug("Skipping sorting rows as sortingMode = server"),z({},N,{sorting:z({},N.sorting,{sortedRows:bh(ln(e),En,!1)})});const P=jr(N,e.current.instanceId),O=Z7(P,e),L=e.current.applyStrategyProcessor("sorting",{sortRowList:O});return z({},N,{sorting:z({},N.sorting,{sortedRows:L})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,n,t.sortingMode]),a=b.useCallback(N=>{jr(e)!==N&&(n.debug("Setting sort model"),e.current.setState(Wy(N,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,n,t.disableMultipleColumnsSorting]),c=b.useCallback((N,P,O)=>{const L=e.current.getColumn(N),$=o(L,P);let C;!O||t.disableMultipleColumnsSorting?C=($==null?void 0:$.sort)==null?[]:[$]:C=r(L.field,$),e.current.setSortModel(C)},[e,r,o,t.disableMultipleColumnsSorting]),u=b.useCallback(()=>jr(e),[e]),d=b.useCallback(()=>yh(e).map(P=>P.model),[e]),p=b.useCallback(()=>Vi(e),[e]),m=b.useCallback(N=>e.current.getSortedRowIds()[N],[e]);Je(e,{getSortModel:u,getSortedRows:d,getSortedRowIds:p,getRowIdFromRowIndex:m,setSortModel:a,sortColumn:c,applySorting:l},"public");const y=b.useCallback((N,P)=>{var $,C;const O=jr(e);return!P.exportOnlyDirtyModels||t.sortModel!=null||((C=($=t.initialState)==null?void 0:$.sorting)==null?void 0:C.sortModel)!=null||O.length>0?z({},N,{sorting:{sortModel:O}}):N},[e,t.sortModel,(T=(E=t.initialState)==null?void 0:E.sorting)==null?void 0:T.sortModel]),g=b.useCallback((N,P)=>{var L;const O=(L=P.stateToRestore.sorting)==null?void 0:L.sortModel;return O==null?N:(e.current.setState(Wy(O,t.disableMultipleColumnsSorting)),z({},N,{callbacks:[...N.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),v=b.useCallback(N=>{const P=ln(e),O=P[En],L=N.sortRowList?N.sortRowList(O.children.map($=>P[$])):[...O.children];return O.footerId!=null&&L.push(O.footerId),L},[e]);Ut(e,"exportState",y),Ut(e,"restoreState",g),hu(e,$s,"sorting",v);const x=b.useCallback(({field:N,colDef:P},O)=>{if(!P.sortable||t.disableColumnSorting)return;const L=O.shiftKey||O.metaKey||O.ctrlKey;c(N,void 0,L)},[c,t.disableColumnSorting]),S=b.useCallback(({field:N,colDef:P},O)=>{!P.sortable||t.disableColumnSorting||O.key==="Enter"&&!O.ctrlKey&&!O.metaKey&&c(N,void 0,O.shiftKey)},[c,t.disableColumnSorting]),w=b.useCallback(()=>{const N=jr(e),P=Oo(e);if(N.length>0){const O=N.filter(L=>P[L.field]);O.length<N.length&&e.current.setSortModel(O)}},[e]),k=b.useCallback(N=>{N==="sorting"&&e.current.applySorting()},[e]);Ut(e,"columnMenu",i),Pe(e,"columnHeaderClick",x),Pe(e,"columnHeaderKeyDown",S),Pe(e,"rowsSet",e.current.applySorting),Pe(e,"columnsChange",w),Pe(e,"activeStrategyProcessorChange",k),Da(()=>{e.current.applySorting()}),Rt(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function D1(e){const{containerSize:t,scrollPosition:n,elementSize:r,elementOffset:o}=e,i=o+r;if(r>t)return o;if(i-t>n)return i-t;if(o<n)return o}const CV=(e,t)=>{const n=Nn(),r=fn(e,"useGridScroll"),o=e.current.columnHeadersContainerRef,i=e.current.virtualScrollerRef,l=me(e,is),a=b.useCallback(p=>{var x;const m=pn(e.current.state),f=Aa(e),y=t.unstable_listView?[Li(e.current.state)]:Xt(e);if(!(p.rowIndex==null)&&f===0||y.length===0)return!1;r.debug(`Scrolling to cell at row ${p.rowIndex}, col: ${p.colIndex} `);let v={};if(p.colIndex!==void 0){const S=ss(e);let w;if(typeof p.rowIndex!="undefined"){const k=(x=l[p.rowIndex])==null?void 0:x.id,E=e.current.unstable_getCellColSpanInfo(k,p.colIndex);E&&!E.spannedByColSpan&&(w=E.cellProps.width)}typeof w=="undefined"&&(w=y[p.colIndex].computedWidth),v.left=D1({containerSize:m.viewportOuterSize.width,scrollPosition:Math.abs(i.current.scrollLeft),elementSize:w,elementOffset:S[p.colIndex]})}if(p.rowIndex!==void 0){const S=Wi(e.current.state),w=c8(e),k=Hw(e),E=t.pagination?p.rowIndex-w*k:p.rowIndex,T=S.positions[E+1]?S.positions[E+1]-S.positions[E]:S.currentPageTotalHeight-S.positions[E];v.top=D1({containerSize:m.viewportInnerSize.height,scrollPosition:i.current.scrollTop,elementSize:T,elementOffset:S.positions[E]})}return v=e.current.unstable_applyPipeProcessors("scrollToIndexes",v,p),typeof v.left!==void 0||typeof v.top!==void 0?(e.current.scroll(v),!0):!1},[r,e,i,t.pagination,l,t.unstable_listView]),c=b.useCallback(p=>{if(i.current&&p.left!==void 0&&o.current){const m=n?-1:1;o.current.scrollLeft=p.left,i.current.scrollLeft=m*p.left,r.debug(`Scrolling left: ${p.left}`)}i.current&&p.top!==void 0&&(i.current.scrollTop=p.top,r.debug(`Scrolling top: ${p.top}`)),r.debug("Scrolling, updating container, and viewport")},[i,n,o,r]),u=b.useCallback(()=>i!=null&&i.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0},[i]);Je(e,{scroll:c,scrollToIndexes:a,getScrollPosition:u},"public")};function wV(e,t){Et(e,"columnHeaderClick",t.onColumnHeaderClick),Et(e,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),Et(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Et(e,"columnHeaderOver",t.onColumnHeaderOver),Et(e,"columnHeaderOut",t.onColumnHeaderOut),Et(e,"columnHeaderEnter",t.onColumnHeaderEnter),Et(e,"columnHeaderLeave",t.onColumnHeaderLeave),Et(e,"cellClick",t.onCellClick),Et(e,"cellDoubleClick",t.onCellDoubleClick),Et(e,"cellKeyDown",t.onCellKeyDown),Et(e,"preferencePanelClose",t.onPreferencePanelClose),Et(e,"preferencePanelOpen",t.onPreferencePanelOpen),Et(e,"menuOpen",t.onMenuOpen),Et(e,"menuClose",t.onMenuClose),Et(e,"rowDoubleClick",t.onRowDoubleClick),Et(e,"rowClick",t.onRowClick),Et(e,"stateChange",t.onStateChange)}function SV(e,t=166){let n,r;const o=()=>{n=void 0,e(...r)};function i(...l){r=l,n===void 0&&(n=setTimeout(o,t))}return i.clear=()=>{clearTimeout(n),n=void 0},i}const Ef={autoHeight:!1,autoPageSize:!1,autosizeOnMount:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,clipboardCopyCellDelimiter:" ",columnBufferPx:150,columnHeaderHeight:56,disableAutosize:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnReorder:!1,disableColumnResize:!1,disableColumnSelector:!1,disableColumnSorting:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleColumnsSorting:!1,disableMultipleRowSelection:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:co.Cell,filterDebounceMs:150,filterMode:"client",hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,ignoreValueFormatterDuringExport:!1,indeterminateCheckboxAction:"deselect",keepColumnPositionIfDraggedOutside:!1,keepNonExistentRowsSelected:!1,loading:!1,logger:console,logLevel:process.env.NODE_ENV==="production"?"error":"warn",pageSizeOptions:[25,50,100],pagination:!1,paginationMode:"client",resetPageOnSortFilter:!1,resizeThrottleMs:60,rowBufferPx:150,rowHeight:52,rowPositionsDebounceMs:166,rows:[],rowSelection:!0,rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingMode:"client",sortingOrder:["asc","desc",null],throttleRowsMs:0,unstable_rowSpanning:!1,virtualizeColumnsWithAutoRowHeight:!1},li={width:0,height:0},kV={isReady:!1,root:li,viewportOuterSize:li,viewportInnerSize:li,contentSize:li,minimumSize:li,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,groupHeaderHeight:0,headerFilterHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0},EV=(e,t,n)=>{const r=kV,o=Di(n);return z({},e,{dimensions:z({},r,d2(t,n,o,Bi(n)))})},u2=Ue(Xt,ss,(e,t)=>{const n=e.length;return n===0?0:mi(t[n-1]+e[n-1].computedWidth,1)});function TV(e,t){const n=fn(e,"useResizeContainer"),r=b.useRef(!1),o=b.useRef(li),i=me(e,Bi),l=me(e,Di),a=me(e,u2),c=b.useRef(!0),u=b.useRef({counter:0,heights:{content:0,pinnedTop:0,pinnedBottom:0}}),{rowHeight:d,headerHeight:p,groupHeaderHeight:m,headerFilterHeight:f,headersTotalHeight:y,leftPinnedWidth:g,rightPinnedWidth:v}=d2(t,e,l,i),x=b.useRef(void 0),S=b.useCallback(()=>pn(e.current.state),[e]),w=b.useCallback(j=>{e.current.setState(F=>z({},F,{dimensions:j})),e.current.rootElementRef.current&&_1(e.current.rootElementRef.current,pn(e.current.state))},[e]),k=b.useCallback(()=>{const j=e.current.mainElementRef.current;if(!j)return;const F=vr(j).getComputedStyle(j),M={width:parseFloat(F.width)||0,height:parseFloat(F.height)||0};(!x.current||!B1(x.current,M))&&(e.current.publishEvent("resize",M),x.current=M)},[e]),E=b.useCallback(()=>{const j=pn(e.current.state);if(!j.isReady)return 0;const F=Ko(e);if(t.getRowHeight){const R=Ha(e),_=R.lastRowIndex-R.firstRowIndex;return Math.min(_-1,F.rows.length)}const M=Math.floor(j.viewportInnerSize.height/d);return Math.min(M,F.rows.length)},[e,t.getRowHeight,d]),T=b.useCallback(()=>{var q,Z;if(c.current)return;const j=IV(e.current.mainElementRef.current,t.scrollbarSize),F=Wi(e.current.state),M=y+F.pinnedTopRowsTotalHeight,R=F.pinnedBottomRowsTotalHeight,V={width:a-g-v,height:mi(F.currentPageTotalHeight,1)},W=e.current.state.dimensions;let I,D,G=!1,A=!1;if(t.autoHeight)A=!1,G=Math.round(a)>Math.round(o.current.width),I={width:o.current.width,height:M+R+V.height},D={width:Math.max(0,I.width-(A?j:0)),height:Math.max(0,I.height-(G?j:0))};else{I={width:o.current.width,height:o.current.height},D={width:Math.max(0,I.width-g-v),height:Math.max(0,I.height-M-R)};const X=V,Q=D,re=X.width>Q.width,J=X.height>Q.height;(re||J)&&(A=J,G=X.width+(A?j:0)>Q.width,G&&(A=X.height+j>Q.height));{const oe=u.current,te=F.currentPageTotalHeight!==oe.heights.content||F.pinnedTopRowsTotalHeight!==oe.heights.pinnedTop||F.pinnedBottomRowsTotalHeight!==oe.heights.pinnedBottom;te&&(oe.counter=0,oe.heights={content:F.currentPageTotalHeight,pinnedTop:F.pinnedTopRowsTotalHeight,pinnedBottom:F.pinnedBottomRowsTotalHeight}),W.isReady&&A!==W.hasScrollY&&(te||(oe.counter+=1),oe.counter>=2&&(A=!1,G=re))}A&&(D.width-=j),G&&(D.height-=j)}const K=Math.max(I.width,a+(A?j:0)),Y={width:a,height:M+V.height+R},U={isReady:!0,root:o.current,viewportOuterSize:I,viewportInnerSize:D,contentSize:V,minimumSize:Y,hasScrollX:G,hasScrollY:A,scrollbarSize:j,headerHeight:p,groupHeaderHeight:m,headerFilterHeight:f,rowWidth:K,rowHeight:d,columnsTotalWidth:a,leftPinnedWidth:g,rightPinnedWidth:v,headersTotalHeight:y,topContainerHeight:M,bottomContainerHeight:R};Uo(W,U)||(w(U),B1(U.viewportInnerSize,W.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",U.viewportInnerSize),(Z=(q=e.current).updateRenderContext)==null||Z.call(q))},[e,w,t.scrollbarSize,t.autoHeight,d,p,m,f,a,y,g,v]),N=nt(T),P=b.useMemo(()=>t.resizeThrottleMs>0?SV(()=>{N(),e.current.publishEvent("debouncedResize",o.current)},t.resizeThrottleMs):void 0,[e,t.resizeThrottleMs,N]);b.useEffect(()=>P==null?void 0:P.clear,[P]);const O={resize:k,getRootDimensions:S},L={updateDimensions:T,getViewportPageSize:E};Rt(T,[T]),Je(e,O,"public"),Je(e,L,"private");const $=b.useCallback(j=>{_1(j,pn(e.current.state))},[e]),C=b.useCallback(j=>{if(o.current=j,j.height===0&&!r.current&&!t.autoHeight&&!uu&&(n.error(["The parent DOM element of the Data Grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
|
|
451
|
+
`)),r.current=!0),j.width===0&&!r.current&&!uu&&(n.error(["The parent DOM element of the Data Grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
|
|
452
|
+
`)),r.current=!0),c.current||!P){c.current=!1,T();return}P()},[T,t.autoHeight,P,n]);Et(e,"rootMount",$),Et(e,"resize",C),Et(e,"debouncedResize",t.onResize)}function _1(e,t){const n=(r,o)=>e.style.setProperty(r,o);n("--DataGrid-hasScrollX",`${Number(t.hasScrollX)}`),n("--DataGrid-hasScrollY",`${Number(t.hasScrollY)}`),n("--DataGrid-scrollbarSize",`${t.scrollbarSize}px`),n("--DataGrid-rowWidth",`${t.rowWidth}px`),n("--DataGrid-columnsTotalWidth",`${t.columnsTotalWidth}px`),n("--DataGrid-leftPinnedWidth",`${t.leftPinnedWidth}px`),n("--DataGrid-rightPinnedWidth",`${t.rightPinnedWidth}px`),n("--DataGrid-headerHeight",`${t.headerHeight}px`),n("--DataGrid-headersTotalHeight",`${t.headersTotalHeight}px`),n("--DataGrid-topContainerHeight",`${t.topContainerHeight}px`),n("--DataGrid-bottomContainerHeight",`${t.bottomContainerHeight}px`),n("--height",`${t.rowHeight}px`)}function d2(e,t,n,r){var i,l;const o=kw(e.rowHeight,Ef.rowHeight,IF);return{rowHeight:Math.floor(o*n),headerHeight:Math.floor(e.columnHeaderHeight*n),groupHeaderHeight:Math.floor(((i=e.columnGroupHeaderHeight)!=null?i:e.columnHeaderHeight)*n),headerFilterHeight:Math.floor(((l=e.headerFilterHeight)!=null?l:e.columnHeaderHeight)*n),columnsTotalWidth:u2(t),headersTotalHeight:fd(t,e),leftPinnedWidth:r.left.reduce((a,c)=>a+c.computedWidth,0),rightPinnedWidth:r.right.reduce((a,c)=>a+c.computedWidth,0)}}const z1=new WeakMap;function IV(e,t){if(t!==void 0)return t;if(e===null)return 0;const n=z1.get(e);if(n!==void 0)return n;const o=Yt(e).createElement("div");o.style.width="99px",o.style.height="99px",o.style.position="absolute",o.style.overflow="scroll",o.className="scrollDiv",e.appendChild(o);const i=o.offsetWidth-o.clientWidth;return e.removeChild(o),z1.set(e,i),i}function B1(e,t){return e.width===t.width&&e.height===t.height}const PV=typeof globalThis.ResizeObserver!="undefined"?globalThis.ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},OV=(e,t,n)=>{n.current.caches.rowsMeta={heights:new Map};const r=ph(n.current.state),o=Aa(n),i=_a(n.current.state),l=Math.min(i.enabled?i.paginationModel.pageSize:o,o);return z({},e,{rowsMeta:{currentPageTotalHeight:l*r,positions:Array.from({length:l},(a,c)=>c*r),pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0}})},MV=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=e.current.caches.rowsMeta.heights,l=b.useRef(-1),a=b.useRef(!1),c=b.useRef(!1),u=me(e,Di),d=Th(e),p=me(e,_i),m=me(e,ph),f=L=>{let $=i.get(L);return $===void 0&&($={content:m,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},i.set(L,$)),$},y=b.useCallback(L=>{var j,F;const $=pn(e.current.state).rowHeight,C=e.current.getRowHeightEntry(L.id);if(!n)C.content=$,C.needsFirstMeasurement=!1;else{const M=n(z({},L,{densityFactor:u}));if(M==="auto"){if(C.needsFirstMeasurement){const R=o?o(z({},L,{densityFactor:u})):$;C.content=R!=null?R:$}a.current=!0,C.autoHeight=!0}else C.content=kw(M,$,PF),C.needsFirstMeasurement=!1,C.autoHeight=!1}if(r){const M=e.current.getRowIndexRelativeToVisibleRows(L.id),R=r(z({},L,{isFirstVisible:M===0,isLastVisible:M===d.rows.length-1,indexRelativeToCurrentPage:M}));C.spacingTop=(j=R.top)!=null?j:0,C.spacingBottom=(F=R.bottom)!=null?F:0}else C.spacingTop=0,C.spacingBottom=0;return e.current.unstable_applyPipeProcessors("rowHeight",C,L),C},[e,d.rows,n,o,m,r,u]),g=b.useCallback(()=>{a.current=!1;const L=p.top.reduce((R,_)=>{const V=y(_);return R+V.content+V.spacingTop+V.spacingBottom+V.detail},0),$=p.bottom.reduce((R,_)=>{const V=y(_);return R+V.content+V.spacingTop+V.spacingBottom+V.detail},0),C=[],j=d.rows.reduce((R,_)=>{C.push(R);const V=y(_),W=V.content+V.spacingTop+V.spacingBottom+V.detail;return R+W},0);a.current||(l.current=1/0);const F=L!==e.current.state.rowsMeta.pinnedTopRowsTotalHeight||$!==e.current.state.rowsMeta.pinnedBottomRowsTotalHeight||j!==e.current.state.rowsMeta.currentPageTotalHeight,M={currentPageTotalHeight:j,positions:C,pinnedTopRowsTotalHeight:L,pinnedBottomRowsTotalHeight:$};e.current.setState(R=>z({},R,{rowsMeta:M})),F&&e.current.updateDimensions(),c.current=!0},[e,p,d.rows,y]),v=L=>{var $,C;return(C=($=i.get(L))==null?void 0:$.content)!=null?C:m},x=(L,$)=>{const C=e.current.getRowHeightEntry(L),j=C.content!==$;C.needsFirstMeasurement=!1,C.content=$,c.current&&(c.current=!j)},S=L=>{var $,C;return(C=($=i.get(L))==null?void 0:$.autoHeight)!=null?C:!1},w=()=>l.current,k=L=>{a.current&&L>l.current&&(l.current=L)},E=()=>{i.clear(),g()},T=Er(()=>new PV(L=>{var $;for(let C=0;C<L.length;C+=1){const j=L[C],F=j.borderBoxSize&&j.borderBoxSize.length>0?j.borderBoxSize[0].blockSize:j.contentRect.height,M=j.target.__mui_id;if((($=iS(e))==null?void 0:$.id)===M&&F===0)return;e.current.unstable_storeRowHeightMeasurement(M,F)}c.current||requestAnimationFrame(()=>{e.current.requestPipeProcessorsApplication("rowHeight")})})).current,N=(L,$)=>(L.__mui_id=$,T.observe(L),()=>T.unobserve(L));Nh(e,"rowHeight",g),Rt(()=>{g()},[g]);const P={unstable_getRowHeight:v,unstable_setLastMeasuredRowIndex:k,unstable_storeRowHeightMeasurement:x,resetRowHeights:E},O={hydrateRowsMeta:g,observeRowHeight:N,rowHasAutoHeight:S,getRowHeightEntry:f,getLastMeasuredRowIndex:w};Je(e,P,"public"),Je(e,O,"private")},RV=e=>{const t=b.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=b.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(l=>{l()}),e.current.forceUpdate()},[e]);Je(e,{exportState:t,restoreState:n},"public")},jV=e=>{const t=b.useRef({}),n=(a,c)=>{var u;return(u=t.current[a])==null?void 0:u[c]},r=()=>{t.current={}},o=b.useCallback(({rowId:a,minFirstColumn:c,maxLastColumn:u,columns:d})=>{for(let p=c;p<u;p+=1){const m=LV({apiRef:e,lookup:t.current,columnIndex:p,rowId:a,minFirstColumnIndex:c,maxLastColumnIndex:u,columns:d});m.colSpan>1&&(p+=m.colSpan-1)}},[e]),i={unstable_getCellColSpanInfo:n},l={resetColSpan:r,calculateColSpan:o};Je(e,i,"public"),Je(e,l,"private"),Pe(e,"columnOrderChange",r)};function LV(e){const{apiRef:t,lookup:n,columnIndex:r,rowId:o,minFirstColumnIndex:i,maxLastColumnIndex:l,columns:a}=e,c=a.length,u=a[r],d=t.current.getRow(o),p=t.current.getRowValue(d,u),m=typeof u.colSpan=="function"?u.colSpan(p,d,u,t):u.colSpan;if(!m||m===1)return bp(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:1,width:u.computedWidth}}),{colSpan:1};let f=u.computedWidth;for(let y=1;y<m;y+=1){const g=r+y;if(g>=i&&g<l){const v=a[g];f+=v.computedWidth,bp(n,o,r+y,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(r+m,c-1),leftVisibleCellIndex:r})}bp(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:m,width:f}})}return{colSpan:m}}function bp(e,t,n,r){e[t]||(e[t]={}),e[t][n]=r}const p2=(e,t,n)=>{if(dw(e)){if(n[e.field]!==void 0)throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
|
|
453
|
+
`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{p2(i,[...t,r],n)})},Tf=e=>{if(!e)return{};const t={};return e.forEach(n=>{p2(n,[],t)}),t},If=(e,t,n)=>{const r=c=>{var u;return(u=t[c])!=null?u:[]},o=[],i=Math.max(...e.map(c=>r(c).length)),l=(c,u,d)=>Uo(r(c).slice(0,d+1),r(u).slice(0,d+1)),a=(c,u)=>!!(n!=null&&n.left&&n.left.includes(c)&&!n.left.includes(u)||n!=null&&n.right&&!n.right.includes(c)&&n.right.includes(u));for(let c=0;c<i;c+=1){const u=e.reduce((d,p)=>{var v;const m=(v=r(p)[c])!=null?v:null;if(d.length===0)return[{columnFields:[p],groupId:m}];const f=d[d.length-1],y=f.columnFields[f.columnFields.length-1];return f.groupId!==m||!l(y,p,c)||a(y,p)?[...d,{columnFields:[p],groupId:m}]:[...d.slice(0,d.length-1),{columnFields:[...f.columnFields,p],groupId:m}]},[]);o.push(u)}return o},$V=["groupId","children"],Fh=e=>{let t={};return e.forEach(n=>{if(dw(n))return;const{groupId:r,children:o}=n,i=Be(n,$V);if(!r)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");process.env.NODE_ENV!=="production"&&(o||console.warn(`MUI X: group groupId=${r} has no children.`));const l=z({},i,{groupId:r}),a=Fh(o);if(a[r]!==void 0||t[r]!==void 0)throw new Error(`MUI X: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=z({},t,a,{[r]:l})}),z({},t)},NV=(e,t,n)=>{var u,d,p;if(!t.columnGroupingModel)return e;const r=Co(n),o=zi(n),i=Fh((u=t.columnGroupingModel)!=null?u:[]),l=Tf((d=t.columnGroupingModel)!=null?d:[]),a=If(r,l,(p=n.current.state.pinnedColumns)!=null?p:{}),c=o.length===0?0:Math.max(...o.map(m=>{var f,y;return(y=(f=l[m])==null?void 0:f.length)!=null?y:0}));return z({},e,{columnGrouping:{lookup:i,unwrappedGroupingModel:l,headerStructure:a,maxDepth:c}})},FV=(e,t)=>{const n=b.useCallback(a=>{var u;return(u=Jw(e)[a])!=null?u:[]},[e]),r=b.useCallback(()=>eS(e),[e]);Je(e,{getColumnGroupPath:n,getAllGroupDetails:r},"public");const i=b.useCallback(()=>{var c;const a=Tf((c=t.columnGroupingModel)!=null?c:[]);e.current.setState(u=>{var f,y,g;const d=(y=(f=u.columns)==null?void 0:f.orderedFields)!=null?y:[],p=(g=u.pinnedColumns)!=null?g:{},m=If(d,a,p);return z({},u,{columnGrouping:z({},u.columnGrouping,{headerStructure:m})})})},[e,t.columnGroupingModel]),l=b.useCallback(a=>{var g,v,x;const c=(x=(v=(g=e.current).getPinnedColumns)==null?void 0:v.call(g))!=null?x:{},u=Co(e),d=zi(e),p=Fh(a!=null?a:[]),m=Tf(a!=null?a:[]),f=If(u,m,c),y=d.length===0?0:Math.max(...d.map(S=>{var w,k;return(k=(w=m[S])==null?void 0:w.length)!=null?k:0}));e.current.setState(S=>z({},S,{columnGrouping:{lookup:p,unwrappedGroupingModel:m,headerStructure:f,maxDepth:y}}))},[e]);Pe(e,"columnIndexChange",i),Pe(e,"columnsChange",()=>{l(t.columnGroupingModel)}),Pe(e,"columnVisibilityModelChange",()=>{l(t.columnGroupingModel)}),b.useEffect(()=>{l(t.columnGroupingModel)},[l,t.columnGroupingModel])};function AV(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function V1(e,t){if(t!==void 0&&e.changedTouches){for(let n=0;n<e.changedTouches.length;n+=1){const r=e.changedTouches[n];if(r.identifier===t)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function H1(e,t,n,r){let o=e;return r==="Right"?o+=t-n.left:o+=n.right-t,o}function DV(e,t,n){return n==="Left"?e-t.left:t.right-e}function _V(e){return e==="Right"?"Left":"Right"}function zV(e,t){const n=e.classList.contains(B["columnSeparator--sideRight"])?"Right":"Left";return t?_V(n):n}function G1(e){e.preventDefault(),e.stopImmediatePropagation()}function BV(e){const t=b.useRef(void 0),n=()=>oS(e),r=me(e,n);return b.useEffect(()=>{t.current&&r===!1&&(t.current.resolve(),t.current=void 0)}),()=>{if(!t.current){if(n()===!1)return Promise.resolve();t.current=AV()}return t.current}}function VV(e,t){if(e.length<4)return e;const n=e.slice();n.sort((a,c)=>a-c);const r=n[Math.floor(n.length*.25)],o=n[Math.floor(n.length*.75)-1],i=o-r,l=i<5?5:i*t;return n.filter(a=>a>r-l&&a<o+l)}function HV(e,t,n){const r={},o=e.current.rootElementRef.current;return o.classList.add(B.autosizing),n.forEach(i=>{var y,g;const a=a_(e.current,i.field).map(v=>{var x;return(x=v.getBoundingClientRect().width)!=null?x:0}),c=t.includeOutliers?a:VV(a,t.outliersFactor);if(t.includeHeaders){const v=l_(e.current,i.field);if(v){const x=v.querySelector(`.${B.columnHeaderTitle}`),S=v.querySelector(`.${B.columnHeaderTitleContainerContent}`),w=v.querySelector(`.${B.iconButtonContainer}`),k=v.querySelector(`.${B.menuIcon}`),E=x!=null?x:S,T=window.getComputedStyle(v,null),N=parseInt(T.paddingLeft,10)+parseInt(T.paddingRight,10),O=E.scrollWidth+1+N+((y=w==null?void 0:w.clientWidth)!=null?y:0)+((g=k==null?void 0:k.clientWidth)!=null?g:0);c.push(O)}}const u=i.minWidth!==-1/0&&i.minWidth!==void 0,d=i.maxWidth!==1/0&&i.maxWidth!==void 0,p=u?i.minWidth:0,m=d?i.maxWidth:1/0,f=c.length===0?0:Math.max(...c);r[i.field]=rr(f,p,m)}),o.classList.remove(B.autosizing),r}const GV=e=>z({},e,{columnResize:{resizingColumnField:""}});function WV(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}const UV=(e,t)=>{const n=Nn(),r=fn(e,"useGridColumnResize"),o=Er(WV).current,i=b.useRef(null),l=b.useRef(null),a=Jn(),c=b.useRef(void 0),u=O=>{var M,R;r.debug(`Updating width to ${O} for col ${o.colDef.field}`);const L=o.columnHeaderElement.offsetWidth,$=O-L,C=O-o.initialColWidth;if(C>0){const _=o.initialTotalWidth+C;(R=(M=e.current.rootElementRef)==null?void 0:M.current)==null||R.style.setProperty("--DataGrid-rowWidth",`${_}px`)}o.colDef.computedWidth=O,o.colDef.width=O,o.colDef.flex=0,o.columnHeaderElement.style.width=`${O}px`;const j=o.headerFilterElement;j&&(j.style.width=`${O}px`),o.groupHeaderElements.forEach(_=>{const V=_;let W;V.getAttribute("aria-colspan")==="1"?W=`${O}px`:W=`${V.offsetWidth+$}px`,V.style.width=W}),o.cellElements.forEach(_=>{const V=_;let W;V.getAttribute("aria-colspan")==="1"?W=`${O}px`:W=`${V.offsetWidth+$}px`,V.style.setProperty("--width",W)});const F=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);F===No.LEFT&&(ri(o.fillerLeft,"width",$),o.leftPinnedCellsAfter.forEach(_=>{ri(_,"left",$)}),o.leftPinnedHeadersAfter.forEach(_=>{ri(_,"left",$)})),F===No.RIGHT&&(ri(o.fillerRight,"width",$),o.rightPinnedCellsBefore.forEach(_=>{ri(_,"right",$)}),o.rightPinnedHeadersBefore.forEach(_=>{ri(_,"right",$)}))},d=O=>{if(x(),o.previousMouseClickEvent){const L=o.previousMouseClickEvent,$=L.timeStamp,C=L.clientX,j=L.clientY;if(O.timeStamp-$<300&&O.clientX===C&&O.clientY===j){o.previousMouseClickEvent=void 0,e.current.publishEvent("columnResizeStop",null,O);return}}if(o.colDef){e.current.setColumnWidth(o.colDef.field,o.colDef.width),r.debug(`Updating col ${o.colDef.field} with new width: ${o.colDef.width}`);const L=so(e.current.state);o.groupHeaderElements.forEach($=>{const C=e_($),j=$,M=`${C.reduce((R,_)=>L.columnVisibilityModel[_]!==!1?R+L.lookup[_].computedWidth:R,0)}px`;j.style.width=M})}a.start(0,()=>{e.current.publishEvent("columnResizeStop",null,O)})},p=(O,L,$)=>{var M;const C=e.current.rootElementRef.current;o.initialColWidth=O.computedWidth,o.initialTotalWidth=e.current.getRootDimensions().rowWidth,o.colDef=O,o.columnHeaderElement=JD(e.current.columnHeadersContainerRef.current,O.field);const j=C.querySelector(`.${B.headerFilterRow} [data-field="${Mo(O.field)}"]`);j&&(o.headerFilterElement=j),o.groupHeaderElements=t_((M=e.current.columnHeadersContainerRef)==null?void 0:M.current,O.field),o.cellElements=n_(o.columnHeaderElement,e.current),o.fillerLeft=v1(e.current,n?"filler--pinnedRight":"filler--pinnedLeft"),o.fillerRight=v1(e.current,n?"filler--pinnedLeft":"filler--pinnedRight");const F=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);o.leftPinnedCellsAfter=F!==No.LEFT?[]:r_(e.current,o.columnHeaderElement,n),o.rightPinnedCellsBefore=F!==No.RIGHT?[]:o_(e.current,o.columnHeaderElement,n),o.leftPinnedHeadersAfter=F!==No.LEFT?[]:s_(e.current,o.columnHeaderElement,n),o.rightPinnedHeadersBefore=F!==No.RIGHT?[]:i_(e.current,o.columnHeaderElement,n),l.current=zV(L,n),i.current=DV($,o.columnHeaderElement.getBoundingClientRect(),l.current)},m=nt(d),f=nt(O=>{if(O.buttons===0){m(O);return}let L=H1(i.current,O.clientX,o.columnHeaderElement.getBoundingClientRect(),l.current);L=rr(L,o.colDef.minWidth,o.colDef.maxWidth),u(L);const $={element:o.columnHeaderElement,colDef:o.colDef,width:L};e.current.publishEvent("columnResize",$,O)}),y=nt(O=>{V1(O,c.current)&&d(O)}),g=nt(O=>{const L=V1(O,c.current);if(!L)return;if(O.type==="mousemove"&&O.buttons===0){y(O);return}let $=H1(i.current,L.x,o.columnHeaderElement.getBoundingClientRect(),l.current);$=rr($,o.colDef.minWidth,o.colDef.maxWidth),u($);const C={element:o.columnHeaderElement,colDef:o.colDef,width:$};e.current.publishEvent("columnResize",C,O)}),v=nt(O=>{const L=du(O.target,B["columnSeparator--resizable"]);if(!L)return;const $=O.changedTouches[0];$!=null&&(c.current=$.identifier);const C=du(O.target,B.columnHeader),j=QD(C),F=e.current.getColumn(j);r.debug(`Start Resize on col ${F.field}`),e.current.publishEvent("columnResizeStart",{field:j},O),p(F,L,$.clientX);const M=Yt(O.currentTarget);M.addEventListener("touchmove",g),M.addEventListener("touchend",y)}),x=b.useCallback(()=>{const O=Yt(e.current.rootElementRef.current);O.body.style.removeProperty("cursor"),O.removeEventListener("mousemove",f),O.removeEventListener("mouseup",m),O.removeEventListener("touchmove",g),O.removeEventListener("touchend",y),setTimeout(()=>{O.removeEventListener("click",G1,!0)},100),o.columnHeaderElement&&(o.columnHeaderElement.style.pointerEvents="unset")},[e,o,f,m,g,y]),S=b.useCallback(({field:O})=>{e.current.setState(L=>z({},L,{columnResize:z({},L.columnResize,{resizingColumnField:O})})),e.current.forceUpdate()},[e]),w=b.useCallback(()=>{e.current.setState(O=>z({},O,{columnResize:z({},O.columnResize,{resizingColumnField:""})})),e.current.forceUpdate()},[e]),k=nt(({colDef:O},L)=>{if(L.button!==0||!L.currentTarget.classList.contains(B["columnSeparator--resizable"]))return;L.preventDefault(),r.debug(`Start Resize on col ${O.field}`),e.current.publishEvent("columnResizeStart",{field:O.field},L),p(O,L.currentTarget,L.clientX);const $=Yt(e.current.rootElementRef.current);$.body.style.cursor="col-resize",o.previousMouseClickEvent=L.nativeEvent,$.addEventListener("mousemove",f),$.addEventListener("mouseup",m),$.addEventListener("click",G1,!0)}),E=nt((O,L)=>{if(t.disableAutosize||L.button!==0)return;const $=e.current.state.columns.lookup[O.field];$.resizable!==!1&&e.current.autosizeColumns(z({},t.autosizeOptions,{disableColumnVirtualization:!1,columns:[$.field]}))}),T=BV(e),N=b.useRef(!1),P=b.useCallback(async O=>{var F,M;if(!((F=e.current.rootElementRef)==null?void 0:F.current)||N.current)return;N.current=!0;const $=so(e.current.state),C=z({},YA,O,{columns:(M=O==null?void 0:O.columns)!=null?M:$.orderedFields});C.columns=C.columns.filter(R=>$.columnVisibilityModel[R]!==!1);const j=C.columns.map(R=>e.current.state.columns.lookup[R]);try{!t.disableVirtualization&&C.disableColumnVirtualization&&(e.current.unstable_setColumnVirtualization(!1),await T());const R=HV(e,C,j),_=j.map(V=>z({},V,{width:R[V.field],computedWidth:R[V.field],flex:0}));if(C.expand){const W=$.orderedFields.map(A=>$.lookup[A]).filter(A=>$.columnVisibilityModel[A.field]!==!1).reduce((A,K)=>{var Y,U;return A+((U=(Y=R[K.field])!=null?Y:K.computedWidth)!=null?U:K.width)},0),G=e.current.getRootDimensions().viewportInnerSize.width-W;if(G>0){const A=G/(_.length||1);_.forEach(K=>{K.width+=A,K.computedWidth+=A})}}e.current.updateColumns(_),_.forEach((V,W)=>{if(V.width!==j[W].width){const I=V.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(V.field),colDef:V,width:I})}})}finally{t.disableVirtualization||e.current.unstable_setColumnVirtualization(!0),N.current=!1}},[e,T,t.disableVirtualization]);b.useEffect(()=>x,[x]),Om(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),Dw(e,()=>{var O;return(O=e.current.columnHeadersContainerRef)==null?void 0:O.current},"touchstart",v,{passive:!0}),Je(e,{autosizeColumns:P},"public"),Pe(e,"columnResizeStop",w),Pe(e,"columnResizeStart",S),Pe(e,"columnSeparatorMouseDown",k),Pe(e,"columnSeparatorDoubleClick",E),Et(e,"columnResize",t.onColumnResize),Et(e,"columnWidthChange",t.onColumnWidthChange)};function ri(e,t,n){e&&(e.style[t]=`${parseInt(e.style[t],10)+n}px`)}function qV(e,t){return e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?null:e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex>t.lastRowIndex?{firstRowIndex:t.lastRowIndex,lastRowIndex:e.lastRowIndex}:e.firstRowIndex<t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?{firstRowIndex:e.firstRowIndex,lastRowIndex:t.firstRowIndex-1}:e}function W1(e){return e.firstRowIndex!==0||e.lastRowIndex!==0}const yp=(e,t,n)=>{var i;if(!e)return null;let r=e[t.field];const o=(i=t.rowSpanValueGetter)!=null?i:t.valueGetter;return o&&(r=o(r,e,t,n)),r},hi={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},gu={firstRowIndex:0,lastRowIndex:0},KV=new Set([cr,"__reorder__",ad]),U1=20,f2=(e,t,n,r,o,i,l)=>{const a=i?{}:z({},e.current.state.rowSpanning.spannedCells),c=i?{}:z({},e.current.state.rowSpanning.hiddenCells),u=i?{}:z({},e.current.state.rowSpanning.hiddenCellOriginMap);return i&&(l=gu),t.forEach(d=>{var p;if(!KV.has(d.field)){for(let m=o.firstRowIndex;m<o.lastRowIndex;m+=1){const f=n[m];if((p=c[f.id])!=null&&p[d.field])continue;const y=yp(f.model,d,e);if(y==null)continue;let g=f.id,v=m,x=0;const S=[];if(m===o.firstRowIndex){let k=m-1,E=n[k];for(;k>=r.firstRowIndex&&E&&yp(E.model,d,e)===y;){const T=n[k+1];c[T.id]?c[T.id][d.field]=!0:c[T.id]={[d.field]:!0},S.push(m),x+=1,g=E.id,v=k,k-=1,E=n[k]}}S.forEach(k=>{u[k]?u[k][d.field]=v:u[k]={[d.field]:v}});let w=m+1;for(;w<=r.lastRowIndex&&n[w]&&yp(n[w].model,d,e)===y;){const k=n[w];c[k.id]?c[k.id][d.field]=!0:c[k.id]={[d.field]:!0},u[w]?u[w][d.field]=v:u[w]={[d.field]:v},w+=1,x+=1}x>0&&(a[g]?a[g][d.field]=x+1:a[g]={[d.field]:x+1})}l={firstRowIndex:Math.min(l.firstRowIndex,o.firstRowIndex),lastRowIndex:Math.max(l.lastRowIndex,o.lastRowIndex)}}}),{spannedCells:a,hiddenCells:c,hiddenCellOriginMap:u,processedRange:l}},m2=(e,t)=>{const n=Pl(t).length;if(e.pagination){const r=Hw(t);let o=U1;return r>0&&(o=r-1),{firstRowIndex:0,lastRowIndex:Math.min(o,n)}}return{firstRowIndex:0,lastRowIndex:Math.min(U1,n)}},YV=(e,t,n)=>{var y;if(!t.unstable_rowSpanning)return z({},e,{rowSpanning:hi});const r=e.rows.dataRowIds||[],o=e.columns.orderedFields||[],i=e.rows.dataRowIdToModelLookup,l=e.columns.lookup,a=!!e.filter.filterModel.items.length||!!((y=e.filter.filterModel.quickFilterValues)!=null&&y.length);if(!r.length||!o.length||!i||!l||a)return z({},e,{rowSpanning:hi});const c=m2(t,n),u=r.map(g=>({id:g,model:i[g]})),d=o.map(g=>l[g]),{spannedCells:p,hiddenCells:m,hiddenCellOriginMap:f}=f2(n,d,u,c,c,!0,gu);return z({},e,{rowSpanning:{spannedCells:p,hiddenCells:m,hiddenCellOriginMap:f}})},XV=(e,t)=>{const n=Er(()=>e.current.state.rowSpanning!==hi?m2(t,e):gu),r=b.useCallback((i,l=!1)=>{const{range:a,rows:c}=Ko(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(a===null||!W1(i))return;l&&(n.current=gu);const u=qV({firstRowIndex:i.firstRowIndex,lastRowIndex:Math.min(i.lastRowIndex,a.lastRowIndex+1)},n.current);if(u===null)return;const d=Xt(e),{spannedCells:p,hiddenCells:m,hiddenCellOriginMap:f,processedRange:y}=f2(e,d,c,a,u,l,n.current);n.current=y;const g=Object.keys(p).length,v=Object.keys(m).length,x=Object.keys(e.current.state.rowSpanning.spannedCells).length,S=Object.keys(e.current.state.rowSpanning.hiddenCells).length;!(l||g!==x||v!==S)||g===0&&x===0||e.current.setState(E=>z({},E,{rowSpanning:{spannedCells:p,hiddenCells:m,hiddenCellOriginMap:f}}))},[e,n,t.pagination,t.paginationMode]),o=b.useCallback(()=>{const i=Ha(e);W1(i)&&r(i,!0)},[e,r]);Pe(e,"renderedRowsIntervalChange",ys(t.unstable_rowSpanning,r)),Pe(e,"sortedRowsSet",ys(t.unstable_rowSpanning,o)),Pe(e,"paginationModelChange",ys(t.unstable_rowSpanning,o)),Pe(e,"filteredRowsSet",ys(t.unstable_rowSpanning,o)),Pe(e,"columnsChange",ys(t.unstable_rowSpanning,o)),b.useEffect(()=>{t.unstable_rowSpanning?e.current.state.rowSpanning===hi&&o():e.current.state.rowSpanning!==hi&&e.current.setState(i=>z({},i,{rowSpanning:hi}))},[e,o,t.unstable_rowSpanning])},ZV=(e,t,n)=>z({},e,{listViewColumn:t.unstable_listColumn?z({},t.unstable_listColumn,{computedWidth:Pf(n)}):void 0});function QV(e,t){const n=()=>{e.current.setState(i=>i.listViewColumn?z({},i,{listViewColumn:z({},i.listViewColumn,{computedWidth:Pf(e)})}):i)},r=b.useRef(null);Pe(e,"viewportInnerSizeChange",i=>{r.current!==i.width&&(r.current=i.width,n())}),Pe(e,"columnVisibilityModelChange",n),Rt(()=>{const i=t.unstable_listColumn;i&&e.current.setState(l=>z({},l,{listViewColumn:z({},i,{computedWidth:Pf(e)})}))},[e,t.unstable_listColumn]),b.useEffect(()=>{t.unstable_listView&&!t.unstable_listColumn&&br(["MUI X: The `unstable_listColumn` prop must be set if `unstable_listView` is enabled.",'To fix, pass a column definition to the `unstable_listColumn` prop, e.g. `{ field: "example", renderCell: (params) => <div>{params.row.id}</div> }`.',"For more details, see https://mui.com/x/react-data-grid/list-view/"])},[t.unstable_listView,t.unstable_listColumn])}function Pf(e){return pn(e.current.state).viewportInnerSize.width}const JV=(e,t)=>{const n=CB(e,t);return yV(n,t),fV(n),un(vB,n,t),un(hV,n,t),un(OB,n,t),un(aV,n,t),un(XB,n,t),un(iV,n,t),un(HB,n,t),un(vV,n,t),un(QB,n,t),un(_B,n,t),un(YV,n,t),un(RB,n,t),un(GV,n,t),un(IB,n,t),un(NV,n,t),un(cA,n,t),un(EV,n,t),un(OV,n,t),un(ZV,n,t),qB(n,t),gV(n,t),MB(n,t),cV(n,t),XV(n,t),mV(n,t),jV(n),FV(n,t),lV(n,t),GB(n,t),JB(n,t),VB(n,t),xV(n,t),jB(n,t),UV(n,t),ZB(n,t),MV(n,t),CV(n,t),PB(n),$B(n,t),DB(n,t),TB(n,t),TV(n,t),wV(n,t),RV(n),uA(n,t),QV(n,t),n},eH=e=>{const{classes:t,headerAlign:n,isDragging:r,isLastColumn:o,showLeftBorder:i,showRightBorder:l,groupId:a,pinnedPosition:c}=e,u={root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",l&&"columnHeader--withRightBorder",i&&"columnHeader--withLeftBorder","withBorderColor",a===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",c===rt.LEFT&&"columnHeader--pinnedLeft",c===rt.RIGHT&&"columnHeader--pinnedRight",o&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]};return ye(u,at,t)};function tH(e){var V;const{groupId:t,width:n,depth:r,maxDepth:o,fields:i,height:l,colIndex:a,hasFocus:c,tabIndex:u,isLastColumn:d,pinnedPosition:p,pinnedOffset:m}=e,f=Le(),y=Nn(),g=b.useRef(null),v=tt(),x=me(v,eS),S=t?x[t]:{},{headerName:w=t!=null?t:"",description:k="",headerAlign:E=void 0}=S;let T;const N=t&&((V=x[t])==null?void 0:V.renderHeaderGroup),P=b.useMemo(()=>({groupId:t,headerName:w,description:k,depth:r,maxDepth:o,fields:i,colIndex:a,isLastColumn:d}),[t,w,k,r,o,i,a,d]);t&&N&&(T=N(P));const O=z({},e,{classes:f.classes,headerAlign:E,depth:r,isDragging:!1}),L=w!=null?w:t,$=xt(),C=t===null?`empty-group-cell-${$}`:t,j=eH(O);b.useLayoutEffect(()=>{if(c){const I=g.current.querySelector('[tabindex="0"]')||g.current;if(!I)return;if(Mh())I.focus({preventScroll:!0});else{const D=v.current.getScrollPosition();I.focus(),v.current.scroll(D)}}},[v,c]);const F=b.useCallback(W=>I=>{Ga(I)||v.current.publishEvent(W,P,I)},[v,P]),M=b.useMemo(()=>({onKeyDown:F("columnGroupHeaderKeyDown"),onFocus:F("columnGroupHeaderFocus"),onBlur:F("columnGroupHeaderBlur")}),[F]),R=typeof S.headerClassName=="function"?S.headerClassName(P):S.headerClassName,_=b.useMemo(()=>hd(z({},e.style),y,p,m),[p,m,e.style,y]);return h.jsx(TS,z({ref:g,classes:j,columnMenuOpen:!1,colIndex:a,height:l,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:u,isDraggable:!1,headerComponent:T,headerClassName:R,description:k,elementId:C,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:L,"aria-colspan":i.length,"data-fields":`|-${i.join("-|-")}-|`,style:_},M))}const q1=ne("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})({display:"flex"}),nH=e=>{const{visibleColumns:t,sortColumnLookup:n,filterColumnLookup:r,columnHeaderTabIndexState:o,columnGroupHeaderTabIndexState:i,columnHeaderFocus:l,columnGroupHeaderFocus:a,headerGroupingMaxDepth:c,columnMenuState:u,columnVisibility:d,columnGroupsHeaderStructure:p,hasOtherElementInTabSequence:m}=e,[f,y]=b.useState(""),[g,v]=b.useState(""),x=Ir(),S=Le(),w=me(x,Jw),k=me(x,ss),E=me(x,aA),T=me(x,Bi),N=me(x,Oo),P=lS(k,E,T.left.length),O=me(x,od),L=me(x,nw),$=me(x,T7),C=me(x,I7),j=me(x,rw),F=b.useCallback(U=>v(U.field),[]),M=b.useCallback(()=>v(""),[]),R=b.useCallback(U=>y(U.field),[]),_=b.useCallback(()=>y(""),[]),V=b.useMemo(()=>T.left.length?{firstColumnIndex:0,lastColumnIndex:T.left.length}:null,[T.left.length]),W=b.useMemo(()=>T.right.length?{firstColumnIndex:t.length-T.right.length,lastColumnIndex:t.length}:null,[T.right.length,t.length]);Pe(x,"columnResizeStart",F),Pe(x,"columnResizeStop",M),Pe(x,"columnHeaderDragStart",R),Pe(x,"columnHeaderDragEnd",_);const I=U=>{const{renderContext:q=E}=U||{},Z=q.firstColumnIndex,X=q.lastColumnIndex;return{renderedColumns:t.slice(Z,X),firstColumnToRender:Z,lastColumnToRender:X}},D=(U,q,Z,X=!1)=>{const Q=(U==null?void 0:U.position)===rt.RIGHT,re=(U==null?void 0:U.position)===void 0,J=T.right.length>0&&Q||T.right.length===0&&re,oe=P-Z;return h.jsxs(b.Fragment,{children:[re&&h.jsx("div",{role:"presentation",style:{width:oe}}),q,re&&h.jsx("div",{role:"presentation",className:ue(B.filler,X&&B["filler--borderBottom"])}),J&&h.jsx(Lh,{header:!0,pinnedRight:Q,borderBottom:X,borderTop:!1})]})},G=(U,q={})=>{const{renderedColumns:Z,firstColumnToRender:X}=I(U),Q=[];for(let re=0;re<Z.length;re+=1){const J=Z[re],oe=X+re,te=oe===0,fe=o!==null&&o.field===J.field||te&&!m?0:-1,ve=l!==null&&l.field===J.field,Ce=u.open&&u.field===J.field,xe=U==null?void 0:U.position,Se=Bl(xe,J.computedWidth,oe,k,O,j),Oe=xe===rt.RIGHT?Z[re-1]:Z[re+1],Ae=Oe?l!==null&&l.field===Oe.field:!1,se=oe+1===k.length-T.right.length,Ge=re,Ie=Z.length,Ye=mu(xe,Ge),ee=fu(xe,Ge,Ie,S.showColumnVerticalBorder,L);Q.push(h.jsx(y_,z({},n[J.field],{columnMenuOpen:Ce,filterItemsCounter:r[J.field]&&r[J.field].length,headerHeight:$,isDragging:J.field===f,colDef:J,colIndex:oe,isResizing:g===J.field,isLast:oe===k.length-1,hasFocus:ve,tabIndex:fe,pinnedPosition:xe,pinnedOffset:Se,isLastUnpinned:se,isSiblingFocused:Ae,showLeftBorder:Ye,showRightBorder:ee},q),J.field))}return D(U,Q,0)},A=()=>h.jsxs(q1,{role:"row","aria-rowindex":c+1,ownerState:S,className:B["row--borderBottom"],children:[V&&G({position:rt.LEFT,renderContext:V},{disableReorder:!0}),G({renderContext:E}),W&&G({position:rt.RIGHT,renderContext:W},{disableReorder:!0,separatorSide:Rh.Left})]}),K=({depth:U,params:q})=>{var Ie,Ye,ee,de;const Z=I(q);if(Z.renderedColumns.length===0)return null;const{firstColumnToRender:X,lastColumnToRender:Q}=Z,re=p[U],J=t[X].field,oe=(Ye=(Ie=w[J])==null?void 0:Ie[U])!=null?Ye:null,te=re.findIndex(({groupId:he,columnFields:ae})=>he===oe&&ae.includes(J)),fe=t[Q-1].field,ve=(de=(ee=w[fe])==null?void 0:ee[U])!=null?de:null,Ce=re.findIndex(({groupId:he,columnFields:ae})=>he===ve&&ae.includes(fe)),xe=re.slice(te,Ce+1).map(he=>z({},he,{columnFields:he.columnFields.filter(ae=>d[ae]!==!1)})).filter(he=>he.columnFields.length>0),Se=xe[0].columnFields.indexOf(J),Ae=xe[0].columnFields.slice(0,Se).reduce((he,ae)=>{var be;const ge=N[ae];return he+((be=ge.computedWidth)!=null?be:0)},0);let se=X;const Ge=xe.map(({groupId:he,columnFields:ae},ge)=>{const be=a!==null&&a.depth===U&&ae.includes(a.field),Te=i!==null&&i.depth===U&&ae.includes(i.field)?0:-1,_e={width:ae.reduce((Pt,qe)=>Pt+N[qe].computedWidth,0),fields:ae,colIndex:se},ke=q.position,ct=Bl(ke,_e.width,se,k,O,j);se+=ae.length;let it=ge;return ke===rt.LEFT&&(it=se-1),h.jsx(tH,{groupId:he,width:_e.width,fields:_e.fields,colIndex:_e.colIndex,depth:U,isLastColumn:ge===xe.length-1,maxDepth:c,height:C,hasFocus:be,tabIndex:Te,pinnedPosition:ke,pinnedOffset:ct,showLeftBorder:mu(ke,it),showRightBorder:fu(ke,it,xe.length,S.showColumnVerticalBorder,L)},ge)});return D(q,Ge,Ae)};return{renderContext:E,leftRenderContext:V,rightRenderContext:W,pinnedColumns:T,visibleColumns:t,columnPositions:k,getFillers:D,getColumnHeadersRow:A,getColumnsToRender:I,getColumnGroupHeadersRows:()=>{if(c===0)return null;const U=[];for(let q=0;q<c;q+=1)U.push(h.jsxs(q1,{role:"row","aria-rowindex":q+1,ownerState:S,children:[V&&K({depth:q,params:{position:rt.LEFT,renderContext:V,maxLastColumn:V.lastColumnIndex}}),K({depth:q,params:{renderContext:E}}),W&&K({depth:q,params:{position:rt.RIGHT,renderContext:W,maxLastColumn:W.lastColumnIndex}})]},q));return U},getPinnedCellOffset:Bl,isDragging:!!f,getInnerProps:()=>({role:"rowgroup"})}},rH=["className"],oH=e=>{const{classes:t}=e;return ye({root:["columnHeaders"]},at,t)},sH=$t("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),iH=ht(function(t,n){const{className:r}=t,o=Be(t,rH),i=Le(),l=oH(i);return h.jsx(sH,z({className:ue(l.root,r),ownerState:i},o,{role:"presentation",ref:n}))}),lH=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],h2=ht(function(t,n){const{visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:u,headerGroupingMaxDepth:d,columnMenuState:p,columnVisibility:m,columnGroupsHeaderStructure:f,hasOtherElementInTabSequence:y}=t,g=Be(t,lH),{getInnerProps:v,getColumnHeadersRow:x,getColumnGroupHeadersRows:S}=nH({visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:u,headerGroupingMaxDepth:d,columnMenuState:p,columnVisibility:m,columnGroupsHeaderStructure:f,hasOtherElementInTabSequence:y});return h.jsxs(iH,z({},g,v(),{ref:n,children:[S(),x()]}))});process.env.NODE_ENV!=="production"&&(h2.propTypes={columnGroupHeaderFocus:s.shape({depth:s.number.isRequired,field:s.string.isRequired}),columnGroupHeaderTabIndexState:s.shape({depth:s.number.isRequired,field:s.string.isRequired}),columnGroupsHeaderStructure:s.arrayOf(s.arrayOf(s.shape({columnFields:s.arrayOf(s.string).isRequired,groupId:s.string}))).isRequired,columnHeaderFocus:s.shape({field:s.string.isRequired}),columnHeaderTabIndexState:s.shape({field:s.string.isRequired}),columnMenuState:s.shape({field:s.string,open:s.bool.isRequired}).isRequired,columnVisibility:s.object.isRequired,filterColumnLookup:s.object.isRequired,hasOtherElementInTabSequence:s.bool.isRequired,headerGroupingMaxDepth:s.number.isRequired,sortColumnLookup:s.object.isRequired,visibleColumns:s.arrayOf(s.object).isRequired});const aH=Po(h2);function cH(e){return null}function uH(e){return null}const dH=ht(function(t,n){const o=tt().current.getLocaleText("noResultsOverlayLabel");return h.jsx(gd,z({},t,{ref:n,children:o}))}),pH=["sortingOrder"],fH=b.memo(function(t){const{sortingOrder:n}=t,r=Be(t,pH),o=Le(),[i]=n,l=i==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return l?h.jsx(l,z({},r)):null}),mH=["native"];function hH(e){let{native:t}=e,n=Be(e,mH);return t?h.jsx("option",z({},n)):h.jsx(Vn,z({},n))}const gH={booleanCellTrueIcon:D_,booleanCellFalseIcon:fp,columnMenuIcon:$_,openFilterButtonIcon:I_,filterPanelDeleteIcon:fp,columnFilteredIcon:k1,columnSelectorIcon:O_,columnUnsortedIcon:fH,columnSortedAscendingIcon:x1,columnSortedDescendingIcon:C1,columnResizeIcon:M_,densityCompactIcon:R_,densityStandardIcon:j_,densityComfortableIcon:L_,exportIcon:A_,moreActionsIcon:__,treeDataCollapseIcon:S1,treeDataExpandIcon:w1,groupingCriteriaCollapseIcon:S1,groupingCriteriaExpandIcon:w1,detailPanelExpandIcon:E1,detailPanelCollapseIcon:N_,rowReorderIcon:T1,quickFilterIcon:P_,quickFilterClearIcon:fp,columnMenuHideIcon:z_,columnMenuSortAscendingIcon:x1,columnMenuSortDescendingIcon:C1,columnMenuFilterIcon:k1,columnMenuManageColumnsIcon:B_,columnMenuClearIcon:V_,loadIcon:F_,filterPanelAddIcon:E1,filterPanelRemoveAllIcon:H_,columnReorderIcon:T1},bH=z({},gH,{baseBadge:pC,baseCheckbox:Ju,baseDivider:Jc,baseTextField:Vs,baseFormControl:zs,baseSelect:Bs,baseButton:Dr,baseIconButton:Tn,baseInputAdornment:eu,baseTooltip:sa,basePopper:ns,baseInputLabel:Wm,baseSelectOption:hH,baseChip:zm}),yH=z({},bH,{cell:gD,skeletonCell:wD,columnHeaderFilterIconButton:MS,columnHeaderSortIcon:E_,columnMenu:VS,columnHeaders:aH,detailPanels:cH,footer:JS,footerRowCount:r2,toolbar:null,pinnedRows:uH,loadingOverlay:e2,noResultsOverlay:dH,noRowsOverlay:t2,pagination:n2,filterPanel:qS,columnsPanel:HS,columnsManagement:KS,panel:GS,row:eB}),vH={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",unstable_listView:!1},xH=yH,CH=e=>{const t=nn(),n=aD(b.useMemo(()=>xx({props:e,theme:t,name:"MuiDataGrid"}),[t,e])),r=b.useMemo(()=>z({},O7,n.localeText),[n.localeText]),o=b.useMemo(()=>iD({defaultSlots:xH,slots:n.slots}),[n.slots]),i=b.useMemo(()=>Object.keys(Ef).reduce((l,a)=>{var c;return l[a]=(c=n[a])!=null?c:Ef[a],l},{}),[n]);return b.useMemo(()=>z({},n,i,{localeText:r,slots:o},vH),[n,r,o,i])},wH={hooks:{useGridAriaAttributes:tB,useGridRowAriaAttributes:nB,useCellAggregationResult:()=>null}},g2=ht(function(t,n){var i;const r=CH(t),o=JV(r.apiRef,r);return process.env.NODE_ENV!=="production"&&uD(r,cD),h.jsx(rB,{privateApiRef:o,configuration:wH,props:r,children:h.jsx(_D,z({className:r.className,style:r.style,sx:r.sx},r.forwardedProps,(i=r.slotProps)==null?void 0:i.root,{ref:n}))})}),SH=b.memo(g2);g2.propTypes={apiRef:s.shape({current:s.object.isRequired}),"aria-label":s.string,"aria-labelledby":s.string,autoHeight:s.bool,autoPageSize:s.bool,autosizeOnMount:s.bool,autosizeOptions:s.shape({columns:s.arrayOf(s.string),disableColumnVirtualization:s.bool,expand:s.bool,includeHeaders:s.bool,includeOutliers:s.bool,outliersFactor:s.number}),cellModesModel:s.object,checkboxSelection:s.bool,classes:s.object,clipboardCopyCellDelimiter:s.string,columnBufferPx:s.number,columnGroupHeaderHeight:s.number,columnGroupingModel:s.arrayOf(s.object),columnHeaderHeight:s.number,columns:s.arrayOf(s.object).isRequired,columnVisibilityModel:s.object,density:s.oneOf(["comfortable","compact","standard"]),disableAutosize:s.bool,disableColumnFilter:s.bool,disableColumnMenu:s.bool,disableColumnResize:s.bool,disableColumnSelector:s.bool,disableColumnSorting:s.bool,disableDensitySelector:s.bool,disableEval:s.bool,disableMultipleRowSelection:s.bool,disableRowSelectionOnClick:s.bool,disableVirtualization:s.bool,editMode:s.oneOf(["cell","row"]),estimatedRowCount:s.number,experimentalFeatures:s.shape({warnIfFocusStateIsNotSynced:s.bool}),filterDebounceMs:s.number,filterMode:s.oneOf(["client","server"]),filterModel:s.shape({items:s.arrayOf(s.shape({field:s.string.isRequired,id:s.oneOfType([s.number,s.string]),operator:s.string.isRequired,value:s.any})).isRequired,logicOperator:s.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:s.bool,quickFilterLogicOperator:s.oneOf(["and","or"]),quickFilterValues:s.array}),forwardedProps:s.object,getCellClassName:s.func,getDetailPanelContent:s.func,getEstimatedRowHeight:s.func,getRowClassName:s.func,getRowHeight:s.func,getRowId:s.func,getRowSpacing:s.func,hideFooter:s.bool,hideFooterPagination:s.bool,hideFooterSelectedRowCount:s.bool,ignoreDiacritics:s.bool,ignoreValueFormatterDuringExport:s.oneOfType([s.shape({clipboardExport:s.bool,csvExport:s.bool}),s.bool]),indeterminateCheckboxAction:s.oneOf(["deselect","select"]),initialState:s.object,isCellEditable:s.func,isRowSelectable:s.func,keepNonExistentRowsSelected:s.bool,loading:s.bool,localeText:s.object,logger:s.shape({debug:s.func.isRequired,error:s.func.isRequired,info:s.func.isRequired,warn:s.func.isRequired}),logLevel:s.oneOf(["debug","error","info","warn",!1]),nonce:s.string,onCellClick:s.func,onCellDoubleClick:s.func,onCellEditStart:s.func,onCellEditStop:s.func,onCellKeyDown:s.func,onCellModesModelChange:s.func,onClipboardCopy:s.func,onColumnHeaderClick:s.func,onColumnHeaderContextMenu:s.func,onColumnHeaderDoubleClick:s.func,onColumnHeaderEnter:s.func,onColumnHeaderLeave:s.func,onColumnHeaderOut:s.func,onColumnHeaderOver:s.func,onColumnOrderChange:s.func,onColumnResize:s.func,onColumnVisibilityModelChange:s.func,onColumnWidthChange:s.func,onDensityChange:s.func,onFilterModelChange:s.func,onMenuClose:s.func,onMenuOpen:s.func,onPaginationMetaChange:s.func,onPaginationModelChange:s.func,onPreferencePanelClose:s.func,onPreferencePanelOpen:s.func,onProcessRowUpdateError:s.func,onResize:s.func,onRowClick:s.func,onRowCountChange:s.func,onRowDoubleClick:s.func,onRowEditStart:s.func,onRowEditStop:s.func,onRowModesModelChange:s.func,onRowSelectionModelChange:s.func,onSortModelChange:s.func,onStateChange:s.func,pageSizeOptions:s.arrayOf(s.oneOfType([s.number,s.shape({label:s.string.isRequired,value:s.number.isRequired})]).isRequired),pagination:s.oneOf([!0]),paginationMeta:s.shape({hasNextPage:s.bool}),paginationMode:s.oneOf(["client","server"]),paginationModel:s.shape({page:s.number.isRequired,pageSize:s.number.isRequired}),processRowUpdate:s.func,resetPageOnSortFilter:s.bool,resizeThrottleMs:s.number,rowBufferPx:s.number,rowCount:s.number,rowHeight:s.number,rowModesModel:s.object,rowPositionsDebounceMs:s.number,rows:s.arrayOf(s.object),rowSelection:s.bool,rowSelectionModel:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string]).isRequired),s.number,s.string]),rowSpacingType:s.oneOf(["border","margin"]),scrollbarSize:s.number,showCellVerticalBorder:s.bool,showColumnVerticalBorder:s.bool,slotProps:s.object,slots:s.object,sortingMode:s.oneOf(["client","server"]),sortingOrder:s.arrayOf(s.oneOf(["asc","desc"])),sortModel:s.arrayOf(s.shape({field:s.string.isRequired,sort:s.oneOf(["asc","desc"])})),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),unstable_rowSpanning:s.bool,virtualizeColumnsWithAutoRowHeight:s.bool};const kH=({sx:e,...t})=>{const n=nn();return h.jsx(SH,{disableRowSelectionOnClick:!0,...t,sx:{border:`1px solid ${n.palette.neutral.lighter}`,borderRadius:"8px",fontFamily:n.typography.fontFamily,fontSize:"0.875rem",[`& .${B.columnHeader}`]:{backgroundColor:"rgba(217, 217, 217, 0.10)",color:n.palette.neutral.dark,fontSize:"0.75rem",fontWeight:600,"&:focus, &:focus-within":{outline:`2px solid ${n.palette.primary.main}`,outlineOffset:"-2px"}},[`& .${B.columnSeparator}`]:{color:n.palette.neutral.lighter},[`& .${B.row}`]:{"&:hover":{backgroundColor:n.palette.neutral.lighter},"&.Mui-selected":{backgroundColor:n.palette.neutral.lighter,"&:hover":{backgroundColor:n.palette.neutral.lighter}}},[`& .${B.cell}`]:{color:"rgba(51, 51, 51, 0.87)","&:focus, &:focus-within":{outline:`2px solid ${n.palette.primary.main}`,outlineOffset:"-2px"}},[`& .${B.footerContainer}`]:{borderTop:`1px solid ${n.palette.neutral.lighter}`},[`& .${B.overlay}`]:{color:n.palette.neutral.dark},...e}})},EH=Me(h.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}),"EditOutlined"),TH=Me(h.jsx("path",{d:"m11 8.89.94 3.11h2.82l-2.27 1.62.93 3.01L11 14.79l-2.42 1.84.93-3.01L7.24 12h2.82zM8.58 10H1l6.17 4.41L4.83 22 11 17.31 17.18 22l-2.35-7.59L21 10h-7.58L11 2zm12.78 12-1.86-6.01L23.68 13h-3.44l-3.08 2.2 1.46 4.72zM17 8l-1.82-6-1.04 3.45.77 2.55z"}),"HotelClassOutlined"),IH=Me(h.jsx("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1q-.09-.03-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1q.09.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73s-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"SettingsOutlined"),PH=e=>"name"in e&&typeof e.name=="string"?e.name:"",OH=({className:e,columns:t,data:n=[],hideStarIcon:r=!1,isLoading:o=!1,sort:i,onConfigure:l,alwaysShowConfigureIcon:a=!1,onDelete:c,onEdit:u,onSelectRow:d,renderInlineEdit:p,labels:m={}})=>{const[f,y]=H.useState(""),{actions:g="Actions",noRecords:v="There are no records.",edit:x="Edit",configure:S="Configure"}=m,w=L=>u?u(f,L).then(()=>y("")):Promise.resolve(),k=H.useCallback((L,$)=>()=>{switch($){case"configure":l==null||l(L);break;case"delete":c==null||c(L);break;case"edit":y(L);break;case"select":d==null||d(L);break}},[l,c,d]),E=L=>!!(l||c||u)&&L!==f,T="#F5F5F5",N="#555555",P="#FFFFFF",O="#364699";return h.jsx(BC,{className:e,children:h.jsxs(sh,{sx:{minWidth:800,"& td, & th":{px:4.5,py:3}},children:[h.jsx(ih,{sx:{background:"rgba(217, 217, 217, 0.10)"},children:h.jsxs(ws,{sx:{border:"1px solid #F5F5F5"},children:[t.map((L,$)=>h.jsx(kn,{sortDirection:(i==null?void 0:i.column)===L.dataKey?i==null?void 0:i.direction:!1,sx:$<t.length-1?{borderRight:"1px solid #F5F5F5"}:void 0,children:L.onSort?h.jsx(GC,{active:(i==null?void 0:i.column)===L.dataKey,direction:(i==null?void 0:i.column)===L.dataKey?i==null?void 0:i.direction:"asc",onClick:()=>{var C;return(C=L.onSort)==null?void 0:C.call(L,{column:L.dataKey,direction:(i==null?void 0:i.column)===L.dataKey&&(i==null?void 0:i.direction)==="asc"?"desc":"asc"})},children:h.jsx(dt,{sx:{color:N,textTransform:"capitalize"},variant:"caption",children:L.label})}):h.jsx(dt,{sx:{color:N,textTransform:"capitalize"},variant:"caption",children:L.label})},`${String(L.dataKey)}-header`)),E()&&h.jsx(kn,{children:h.jsx("span",{style:{position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0,0,0,0)"},children:g})})]})}),o&&h.jsx(Rc,{sx:{"& td":{borderBottomColor:T}},children:h.jsx(ws,{children:h.jsx(kn,{colSpan:t.length+(E()?1:0),children:h.jsx(qm,{"aria-label":"Loading"})})})}),!o&&n.length===0&&h.jsx(Rc,{sx:{"& td":{borderBottomColor:T}},children:h.jsx(ws,{children:h.jsx(kn,{colSpan:t.length+(E()?1:0),children:h.jsx(dt,{sx:{textAlign:"center",color:N,my:5},children:v})})})}),!o&&n.length>0&&h.jsx(Rc,{sx:{"& td":{borderBottomColor:T}},children:n.map(L=>h.jsxs(ws,{sx:{"&:hover, &:focus-within":{backgroundColor:T},"&:hover .favorite-button, &:focus-within .favorite-button":{backgroundColor:P},"&:hover .hover-icon, &:focus-within .hover-icon":{opacity:1},"&:focus-visible":{outline:`2px solid ${O}`,outlineOffset:"-2px"},cursor:L.id!==f?"pointer":"default"},tabIndex:L.id!==f?0:void 0,onClick:L.id!==f?k(L.id,"select"):void 0,onKeyDown:L.id!==f?$=>{$.target===$.currentTarget&&$.key==="Enter"&&($.preventDefault(),k(L.id,"select")())}:void 0,children:[L.id===f?h.jsx(kn,{colSpan:t.length+(E(L.id)?0:1),children:p?p(L.id,PH(L),w,()=>y("")):null}):t.map(($,C)=>{var j,F;return h.jsx(kn,{children:h.jsx("div",{style:C===0?{display:"flex",alignItems:"center",gap:10}:void 0,children:C===0?h.jsxs(h.Fragment,{children:[!r&&h.jsx(Tn,{disabled:!0,"aria-label":"favorite",className:"favorite-button",size:"small",sx:{borderRadius:"10px",backgroundColor:T},children:h.jsx(TH,{fontSize:"inherit"})}),h.jsx(dt,{sx:{fontWeight:700,color:"rgba(51,51,51,0.87)",fontSize:"0.875rem",cursor:"pointer","&:hover":{textDecoration:"underline"}},onClick:k(L.id,"select"),children:$.render?$.render(L):$.dataKey?String((j=L[$.dataKey])!=null?j:""):""})]}):h.jsx("div",{style:{fontWeight:400,color:N,fontSize:"0.75rem"},children:$.render?$.render(L):$.dataKey?String((F=L[$.dataKey])!=null?F:""):""})})},`${String(L.id)}-${String($.dataKey)}`)}),E(L.id)&&h.jsxs(kn,{align:"right",children:[l&&h.jsx(sa,{title:S,children:h.jsx(Tn,{"aria-label":S,className:a?void 0:"hover-icon",size:"small",sx:a?void 0:{opacity:0},onClick:$=>{$.stopPropagation(),k(L.id,"configure")()},children:h.jsx(IH,{fontSize:"inherit"})})}),u&&h.jsx(sa,{title:x,children:h.jsx(Tn,{"aria-label":x,className:"hover-icon",size:"small",sx:{opacity:0},onClick:$=>{$.stopPropagation(),k(L.id,"edit")()},children:h.jsx(EH,{fontSize:"inherit"})})})]})]},L.id))})]})})},MH=({children:e})=>h.jsx(sh,{sx:{"& .MuiTableHead-root":{background:"rgba(217, 217, 217, 0.10)","& .MuiTableCell-root":{border:"1px solid #F5F5F5",color:"rgba(51, 51, 51, 0.60)"}},"& .MuiTableCell-root":{whiteSpace:"nowrap"},"& .MuiTableBody-root":{"& .MuiTableRow-root":{"&.checked":{background:"#F5F5F5"},"&:hover":{background:"#F5F5F5",transition:"200ms","& .actionIcons":{opacity:"1"},"& .tableButton":{background:"#FFF"}}}}},children:e}),Ah=()=>h.jsxs(Ms,{fontSize:"small",children:[h.jsx("rect",{fill:"#fff",height:"20",width:"20",x:"2",y:"2"}),h.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-2z",fill:"none",stroke:"#D9D9D9",strokeWidth:"2"}),h.jsx("path",{d:"M17.99 9l-1.41-1.42-6.59 6.59-2.58-2.57-1.42 1.41 4 3.99z"})]}),b2=()=>h.jsxs(Ms,{fontSize:"small",children:[h.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-2z",fill:"none",stroke:"#D9D9D9",strokeWidth:"2"}),h.jsx("path",{d:"M7 11h10v2H7z"})]}),y2=({allChecked:e,someChecked:t,onSelectAll:n})=>h.jsx(kn,{sx:{padding:"8px 12px",width:"1%"},children:h.jsx(Ju,{checked:e,checkedIcon:h.jsx(Ah,{}),indeterminate:t&&!e,indeterminateIcon:h.jsx(b2,{}),size:"small",sx:{padding:"0","& .MuiSvgIcon-root":{fill:"#D9D9D9"},"&.Mui-checked .MuiSvgIcon-root, &.MuiCheckbox-indeterminate .MuiSvgIcon-root":{fill:"#364699"}},onChange:n,slotProps:{input:{"aria-label":"Select all rows",ref:r=>{r&&(r.indeterminate=t&&!e)}}}})}),RH=Me(h.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"}),"Clear"),jH=Me(h.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"),v2=({sortDirection:e})=>h.jsxs("svg",{fill:"none",height:"16",viewBox:"0 0 13 16",width:"13",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("path",{d:"M3.5 7L6.5 3L9.5 7H3.5Z",fill:"#333333",fillOpacity:e==="desc"?"0":"0.6"}),h.jsx("path",{d:"M3.5 9L6.5 13L9.5 9H3.5Z",fill:"#333333",fillOpacity:e==="asc"?"0":"0.6"})]});function LH({field:e,label:t,sx:n,value:r,setTableSearch:o,setTableSort:i,sortDirection:l,searchable:a=!0}){const[c,u]=H.useState(!1),d=a&&(c||!!r);return h.jsx(kn,{sx:{padding:"3px 2px 3px 6px",...n},onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:h.jsxs(mt,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"2px"},children:[a?h.jsx(Vs,{disabled:!d,placeholder:t,size:"small",slotProps:{input:{startAdornment:h.jsx(eu,{position:"start",children:h.jsx(jH,{sx:{transition:p=>p.transitions.create("all",{duration:p.transitions.duration.standard}),transitionDelay:"100ms",opacity:d?1:0,fontSize:"1rem"}})}),endAdornment:h.jsx(eu,{position:"end",sx:{position:"absolute",top:"2px",right:"2px"},children:h.jsx(Tn,{size:"small","aria-label":`Clear ${t} search`,sx:{transition:p=>p.transitions.create("all",{duration:p.transitions.duration.standard}),opacity:r?1:0,pointerEvents:r?"auto":"none"},onClick:()=>o(p=>({...p,[e]:""})),children:h.jsx(RH,{sx:{fontSize:"0.75rem"}})})}),autoComplete:"off"}},sx:{"& .MuiInputBase-root":{transition:p=>p.transitions.create("all",{duration:p.transitions.duration.standard}),backgroundColor:d?"neutral.lightest":"transparent",borderRadius:"8px",color:d?"inherit":"text.secondary",fontSize:"0.75rem",height:"unset",paddingLeft:"6px",paddingRight:"4px"},"& .MuiInputBase-input":{transition:p=>p.transitions.create("all",{duration:p.transitions.duration.standard}),cursor:d?"text":"default",position:"relative",left:d?"0":"-18px",padding:"4px 0"},"& .MuiInputBase-input::placeholder":{opacity:"1"},"& .MuiOutlinedInput-notchedOutline":{borderWidth:"1px !important",borderColor:d?"#D9D9D9 !important":"transparent !important"},"& .MuiInputAdornment-positionStart":{marginRight:"4px"}},value:r,onChange:p=>o(m=>({...m,[e]:p.target.value}))}):h.jsx(mt,{sx:{color:"text.secondary",fontSize:"0.75rem",lineHeight:1.2,paddingLeft:"6px",whiteSpace:"nowrap"},children:t}),h.jsx(Tn,{size:"small","aria-label":`Sort by ${t}`,onClick:()=>i(p=>{if(!p)return{field:e,direction:"asc"};if(p.direction==="asc")return{field:e,direction:"desc"}}),children:h.jsx(v2,{sortDirection:l})})]})})}const x2=H.memo(LH),$H={position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},NH=({shouldRenderCheckbox:e,shouldRenderAction:t,items:n,tableSearch:r,setTableSearch:o,tableSort:i,setTableSort:l,allChecked:a,someChecked:c,onSelectAll:u})=>h.jsx(ih,{children:h.jsxs(ws,{children:[e?h.jsx(y2,{allChecked:a,someChecked:c,onSelectAll:u}):null,n.map(d=>{var p;return d.type==="tableCell"?h.jsx(kn,{children:h.jsx(dt,{sx:{color:"#33333399",fontSize:"0.75rem"},children:d.label})},d.id):d.type==="searchable"?h.jsx(x2,{field:d.field,label:d.label,setTableSearch:o,setTableSort:l,sortDirection:(i==null?void 0:i.field)===d.field?i==null?void 0:i.direction:void 0,value:(p=r[d.field])!=null?p:""},d.id):null}),t?h.jsx(kn,{children:h.jsx(mt,{component:"span",sx:$H,children:"Actions"})}):null]})}),FH=Me(h.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-2m0 16H5V5h14zM7 11h10v2H7z"}),"IndeterminateCheckBoxOutlined"),C2=H.memo(({id:e,index:t,checked:n,onTableRowCheck:r,children:o,onClick:i,shouldRenderCheckbox:l})=>h.jsxs(ws,{className:n?"checked":"",sx:{cursor:i?"pointer":void 0},onClick:i,children:[l?h.jsx(kn,{sx:{padding:"13px 12px",borderBottom:"1px solid #F5F5F5"},children:h.jsx(Ju,{checked:n,checkedIcon:h.jsx(Ah,{}),indeterminateIcon:h.jsx(FH,{}),size:"small",sx:{padding:"0","& .MuiSvgIcon-root":{fill:"#D9D9D9"},"&.Mui-checked .MuiSvgIcon-root":{fill:"#364699"}},slotProps:{input:{"aria-label":`Select row ${t+1}`}},onClick:r?a=>{a.stopPropagation(),r(e,t,a)}:void 0})}):null,o]},e));C2.displayName="CustomTableRow";const AH=({label:e})=>h.jsx(kn,{sx:{padding:"7px 16px"},children:h.jsx(dt,{sx:{fontSize:"0.75rem"},children:e})});function w2(e,t,n){const r=u=>typeof u=="string"?u.toLowerCase():Array.isArray(u)&&u.every(d=>typeof d=="string")?u.join(" ").toLowerCase():"",o=(u,d)=>{if(!d)return!0;const p=d.toLowerCase();return typeof u=="string"?u.toLowerCase().includes(p):Array.isArray(u)&&u.every(m=>typeof m=="string")?u.some(m=>m.toLowerCase().includes(p)):!1},i=e.filter(u=>t?Object.entries(t).every(([d,p])=>o(u[d],p)):!0);if(!n)return i;const{field:l,direction:a}=n,c=a==="asc"?1:-1;return[...i].sort((u,d)=>{const p=u[l],m=d[l];if(typeof p=="number"&&typeof m=="number")return c*(p-m);const f=r(p),y=r(m);return f&&y?c*f.localeCompare(y):0})}const DH=e=>{const[t,n]=H.useState({}),[r,o]=H.useState(),[i,l]=H.useState(new Set),[a,c]=H.useState(null),u=w2(e,t,r),d=u.map(v=>v.id).filter(Boolean),p=d.length>0&&d.every(v=>i.has(v)),m=d.some(v=>i.has(v));return{tableSearch:t,setTableSearch:n,tableSort:r,setTableSort:o,allChecked:p,someChecked:m,onSelectAll:()=>{u.every(v=>i.has(v.id))?l(new Set):l(new Set(u.map(v=>v.id)))},onTableRowCheck:(v,x,S)=>{if(S.shiftKey&&a!==null){const w=Math.min(a,x),k=Math.max(a,x),E=new Set(i);d.slice(w,k+1).forEach(T=>E.add(T)),l(E)}else{const w=new Set(i);w.has(v)?w.delete(v):w.add(v),l(w)}c(x)},filteredTableData:u,checkedIds:i,unselectAll:()=>l(new Set)}},S2=H.forwardRef(({onClick:e,holdDuration:t=2e3,holdLabel:n="Hold to confirm...",children:r,disabled:o,...i},l)=>{const[a,c]=H.useState(!1),[u,d]=H.useState(!1),[p,m]=H.useState(0),f=H.useRef(null),y=H.useRef(null),g=H.useRef(0),v=H.useRef(!1),x=()=>{f.current&&(clearTimeout(f.current),f.current=null),y.current&&(clearInterval(y.current),y.current=null)},S=()=>{o||u||a||(x(),g.current=performance.now(),m(0),c(!0),y.current=setInterval(()=>{const k=performance.now()-g.current;m(Math.min(k/t*100,100))},16),f.current=setTimeout(()=>{x(),m(100),c(!1),d(!0),(async()=>{try{await e()}finally{d(!1),m(0)}})()},t))},w=()=>{a&&(x(),c(!1),m(0))};return H.useEffect(()=>()=>x(),[]),h.jsx(mt,{sx:{position:"relative"},children:h.jsx(Dr,{ref:l,disabled:o||u,onPointerDown:S,onPointerUp:w,onPointerLeave:w,onPointerCancel:w,onKeyDown:k=>{k.key!==" "&&k.key!=="Enter"||v.current||(k.preventDefault(),v.current=!0,S())},onKeyUp:k=>{k.key!==" "&&k.key!=="Enter"||(v.current=!1,w())},onBlur:()=>{v.current=!1,w()},sx:{display:"flex",alignItems:"center",gap:1,width:"100%",touchAction:"none"},...i,children:a?h.jsxs(h.Fragment,{children:[h.jsx(Pa,{size:18,sx:{color:"inherit","& .MuiCircularProgress-circleDeterminate":{transition:"none"}},thickness:7,value:p,variant:"determinate"}),h.jsx("span",{children:n})]}):r})})});S2.displayName="HoldToConfirmButton";const _H=Me(h.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"),zH=({menuItems:e,ariaLabel:t="Open menu"})=>{const[n,r]=H.useState(null),o=!!n,i=c=>{r(c.currentTarget)},l=()=>{r(null)},a=c=>{c(),l()};return h.jsxs(h.Fragment,{children:[h.jsx(Tn,{"aria-haspopup":"true","aria-label":t,onClick:i,children:h.jsx(_H,{})}),h.jsx(Ym,{anchorEl:n,anchorOrigin:{vertical:"bottom",horizontal:"right"},open:o,transformOrigin:{vertical:"top",horizontal:"right"},onClose:l,children:e.map((c,u)=>h.jsx(Vn,{onClick:()=>a(c.onClick),children:c.label},u))})]})},BH=({title:e,className:t,subtitle:n,"data-testid":r})=>h.jsxs("div",{children:[h.jsx("h1",{className:`text-primary text-lg font-bold uppercase ${t!=null?t:""}`,"data-testid":r,children:e}),n&&h.jsx("p",{className:"text-neutral text-sm",children:n})]});var Wa=e=>typeof e=="number"&&!isNaN(e),Ns=e=>typeof e=="string",To=e=>typeof e=="function",VH=e=>Ns(e)||Wa(e),Of=e=>Ns(e)||To(e)?e:null,HH=(e,t)=>e===!1||Wa(e)&&e>0?e:t,Mf=e=>H.isValidElement(e)||Ns(e)||To(e)||Wa(e);function GH(e,t,n=300){let{scrollHeight:r,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}function k2({enter:e,exit:t,appendPosition:n=!1,collapse:r=!0,collapseDuration:o=300}){return function({children:i,position:l,preventExitTransition:a,done:c,nodeRef:u,isIn:d,playToast:p}){let m=n?`${e}--${l}`:e,f=n?`${t}--${l}`:t,y=H.useRef(0);return H.useLayoutEffect(()=>{let g=u.current,v=m.split(" "),x=S=>{S.target===u.current&&(p(),g.removeEventListener("animationend",x),g.removeEventListener("animationcancel",x),y.current===0&&S.type!=="animationcancel"&&g.classList.remove(...v))};g.classList.add(...v),g.addEventListener("animationend",x),g.addEventListener("animationcancel",x)},[]),H.useEffect(()=>{let g=u.current,v=()=>{g.removeEventListener("animationend",v),r?GH(g,c,o):c()};d||(a?v():(y.current=1,g.className+=` ${f}`,g.addEventListener("animationend",v)))},[d]),H.createElement(H.Fragment,null,i)}}function K1(e,t){return{content:E2(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function E2(e,t,n=!1){return H.isValidElement(e)&&!Ns(e.type)?H.cloneElement(e,{closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:n}):To(e)?e({closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:n}):e}function WH({closeToast:e,theme:t,ariaLabel:n="close"}){return H.createElement("button",{className:`Toastify__close-button Toastify__close-button--${t}`,type:"button",onClick:r=>{r.stopPropagation(),e(!0)},"aria-label":n},H.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},H.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function UH({delay:e,isRunning:t,closeToast:n,type:r="default",hide:o,className:i,controlledProgress:l,progress:a,rtl:c,isIn:u,theme:d}){let p=o||l&&a===0,m={animationDuration:`${e}ms`,animationPlayState:t?"running":"paused"};l&&(m.transform=`scaleX(${a})`);let f=ue("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${d}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":c}),y=To(i)?i({rtl:c,type:r,defaultClassName:f}):ue(f,i),g={[l&&a>=1?"onTransitionEnd":"onAnimationEnd"]:l&&a<1?null:()=>{u&&n()}};return H.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":p},H.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${d} Toastify__progress-bar--${r}`}),H.createElement("div",{role:"progressbar","aria-hidden":p?"true":"false","aria-label":"notification timer","aria-valuenow":l?Math.round(a*100):void 0,"aria-valuemin":0,"aria-valuemax":100,className:y,style:m,...g}))}var qH=1,T2=()=>`${qH++}`;function KH(e,t,n){let r=1,o=0,i=[],l=[],a=t,c=new Map,u=new Set,d=S=>(u.add(S),()=>u.delete(S)),p=()=>{l=Array.from(c.values()),u.forEach(S=>S())},m=({containerId:S,toastId:w,updateId:k})=>{let E=S?S!==e:e!==1,T=c.has(w)&&k==null;return E||T},f=(S,w)=>{c.forEach(k=>{var E;(w==null||w===k.props.toastId)&&((E=k.toggle)==null||E.call(k,S))})},y=S=>{var w,k;S.isActive&&((k=(w=S.props)==null?void 0:w.onClose)==null||k.call(w,S.removalReason),S.isActive=!1,n(K1(S,"removed")))},g=S=>{if(S==null)c.forEach(y);else{let w=c.get(S);w&&y(w)}p()},v=()=>{o-=i.length,i=[]},x=S=>{var w,k;let{toastId:E,updateId:T}=S.props,N=T==null;S.staleId&&c.delete(S.staleId),S.isActive=!0,c.set(E,S),p(),n(K1(S,N?"added":"updated")),N&&((k=(w=S.props).onOpen)==null||k.call(w))};return{id:e,props:a,observe:d,toggle:f,removeToast:g,toasts:c,clearQueue:v,buildToast:(S,w)=>{if(m(w))return;let{toastId:k,updateId:E,data:T,staleId:N,delay:P}=w,O=E==null;O&&o++;let L={...a,style:a.toastStyle,key:r++,...Object.fromEntries(Object.entries(w).filter(([C,j])=>j!=null)),toastId:k,updateId:E,data:T,isIn:!1,className:Of(w.className||a.toastClassName),progressClassName:Of(w.progressClassName||a.progressClassName),autoClose:w.isLoading?!1:HH(w.autoClose,a.autoClose),closeToast(C){let j=c.get(k);j&&(j.removalReason=C,g(k))},deleteToast(){if(c.get(k)!=null){if(c.delete(k),o--,o<0&&(o=0),i.length>0){x(i.shift());return}p()}}};L.closeButton=a.closeButton,w.closeButton===!1||Mf(w.closeButton)?L.closeButton=w.closeButton:w.closeButton===!0&&(L.closeButton=Mf(a.closeButton)?a.closeButton:!0);let $={content:S,props:L,staleId:N};a.limit&&a.limit>0&&o>a.limit&&O?i.push($):Wa(P)?setTimeout(()=>{x($)},P):x($)},setProps(S){a=S},setToggle:(S,w)=>{let k=c.get(S);k&&(k.toggle=w)},isToastActive:S=>{var w;return(w=c.get(S))==null?void 0:w.isActive},getSnapshot:()=>l}}var $n=new Map,pa=[],Rf=new Set,YH=e=>Rf.forEach(t=>t(e)),I2=()=>$n.size>0;function XH(){pa.forEach(e=>O2(e.content,e.options)),pa=[]}var ZH=(e,{containerId:t})=>{var n;return(n=$n.get(t||1))==null?void 0:n.toasts.get(e)};function P2(e,t){var n;if(t)return!!((n=$n.get(t))!=null&&n.isToastActive(e));let r=!1;return $n.forEach(o=>{o.isToastActive(e)&&(r=!0)}),r}function QH(e){if(!I2()){pa=pa.filter(t=>e!=null&&t.options.toastId!==e);return}if(e==null||VH(e))$n.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=$n.get(e.containerId);t?t.removeToast(e.id):$n.forEach(n=>{n.removeToast(e.id)})}}var JH=(e={})=>{$n.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})};function O2(e,t){Mf(e)&&(I2()||pa.push({content:e,options:t}),$n.forEach(n=>{n.buildToast(e,t)}))}function eG(e){var t;(t=$n.get(e.containerId||1))==null||t.setToggle(e.id,e.fn)}function M2(e,t){$n.forEach(n=>{(t==null||!(t!=null&&t.containerId)||(t==null?void 0:t.containerId)===n.id)&&n.toggle(e,t==null?void 0:t.id)})}function tG(e){let t=e.containerId||1;return{subscribe(n){let r=KH(t,e,YH);$n.set(t,r);let o=r.observe(n);return XH(),()=>{o(),$n.delete(t)}},setProps(n){var r;(r=$n.get(t))==null||r.setProps(n)},getSnapshot(){var n;return(n=$n.get(t))==null?void 0:n.getSnapshot()}}}function nG(e){return Rf.add(e),()=>{Rf.delete(e)}}function rG(e){return e&&(Ns(e.toastId)||Wa(e.toastId))?e.toastId:T2()}function Ua(e,t){return O2(e,t),t.toastId}function bd(e,t){return{...t,type:t&&t.type||e,toastId:rG(t)}}function yd(e){return(t,n)=>Ua(t,bd(e,n))}function bt(e,t){return Ua(e,bd("default",t))}bt.loading=(e,t)=>Ua(e,bd("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t}));function oG(e,{pending:t,error:n,success:r},o){let i;t&&(i=Ns(t)?bt.loading(t,o):bt.loading(t.render,{...o,...t}));let l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},a=(u,d,p)=>{if(d==null){bt.dismiss(i);return}let m={type:u,...l,...o,data:p},f=Ns(d)?{render:d}:d;return i?bt.update(i,{...m,...f}):bt(f.render,{...m,...f}),p},c=To(e)?e():e;return c.then(u=>a("success",r,u)).catch(u=>a("error",n,u)),c}bt.promise=oG;bt.success=yd("success");bt.info=yd("info");bt.error=yd("error");bt.warning=yd("warning");bt.warn=bt.warning;bt.dark=(e,t)=>Ua(e,bd("default",{theme:"dark",...t}));function sG(e){QH(e)}bt.dismiss=sG;bt.clearWaitingQueue=JH;bt.isActive=P2;bt.update=(e,t={})=>{let n=ZH(e,t);if(n){let{props:r,content:o}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:T2()};i.toastId!==e&&(i.staleId=e);let l=i.render||o;delete i.render,Ua(l,i)}};bt.done=e=>{bt.update(e,{progress:1})};bt.onChange=nG;bt.play=e=>M2(!0,e);bt.pause=e=>M2(!1,e);function iG(e){var t;let{subscribe:n,getSnapshot:r,setProps:o}=H.useRef(tG(e)).current;o(e);let i=(t=H.useSyncExternalStore(n,r,r))==null?void 0:t.slice();function l(a){if(!i)return[];let c=new Map;return e.newestOnTop&&i.reverse(),i.forEach(u=>{let{position:d}=u.props;c.has(d)||c.set(d,[]),c.get(d).push(u)}),Array.from(c,u=>a(u[0],u[1]))}return{getToastToRender:l,isToastActive:P2,count:i==null?void 0:i.length}}function lG(e){let[t,n]=H.useState(!1),[r,o]=H.useState(!1),i=H.useRef(null),l=H.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:c,closeToast:u,onClick:d,closeOnClick:p}=e;eG({id:e.toastId,containerId:e.containerId,fn:n}),H.useEffect(()=>{if(e.pauseOnFocusLoss)return m(),()=>{f()}},[e.pauseOnFocusLoss]);function m(){document.hasFocus()||x(),window.addEventListener("focus",v),window.addEventListener("blur",x)}function f(){window.removeEventListener("focus",v),window.removeEventListener("blur",x)}function y(N){if(e.draggable===!0||e.draggable===N.pointerType){S();let P=i.current;l.canCloseOnClick=!0,l.canDrag=!0,P.style.transition="none",e.draggableDirection==="x"?(l.start=N.clientX,l.removalDistance=P.offsetWidth*(e.draggablePercent/100)):(l.start=N.clientY,l.removalDistance=P.offsetHeight*(e.draggablePercent===80?e.draggablePercent*1.5:e.draggablePercent)/100)}}function g(N){let{top:P,bottom:O,left:L,right:$}=i.current.getBoundingClientRect();N.pointerType==="mouse"&&e.pauseOnHover&&N.clientX>=L&&N.clientX<=$&&N.clientY>=P&&N.clientY<=O?x():v()}function v(){n(!0)}function x(){n(!1)}function S(){l.didMove=!1,document.addEventListener("pointermove",k),document.addEventListener("pointerup",E)}function w(){document.removeEventListener("pointermove",k),document.removeEventListener("pointerup",E)}function k(N){let P=i.current;if(l.canDrag&&P){l.didMove=!0,t&&x(),e.draggableDirection==="x"?l.delta=N.clientX-l.start:l.delta=N.clientY-l.start,l.start!==N.clientX&&(l.canCloseOnClick=!1);let O=e.draggableDirection==="x"?`${l.delta}px, var(--y)`:`0, calc(${l.delta}px + var(--y))`;P.style.transform=`translate3d(${O},0)`,P.style.opacity=`${1-Math.abs(l.delta/l.removalDistance)}`}}function E(){w();let N=i.current;if(l.canDrag&&l.didMove&&N){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance){o(!0),e.closeToast(!0),e.collapseAll();return}N.style.transition="transform 0.2s, opacity 0.2s",N.style.removeProperty("transform"),N.style.removeProperty("opacity")}}let T={onPointerDown:y,onPointerUp:g};return a&&c&&(T.onMouseEnter=x,e.stacked||(T.onMouseLeave=v)),p&&(T.onClick=N=>{d&&d(N),l.canCloseOnClick&&u(!0)}),{playToast:v,pauseToast:x,isRunning:t,preventExitTransition:r,toastRef:i,eventHandlers:T}}var R2=typeof window!="undefined"?H.useLayoutEffect:H.useEffect,vd=({theme:e,type:t,isLoading:n,...r})=>H.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${t})`,...r});function aG(e){return H.createElement(vd,{...e},H.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))}function cG(e){return H.createElement(vd,{...e},H.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))}function uG(e){return H.createElement(vd,{...e},H.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))}function dG(e){return H.createElement(vd,{...e},H.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))}function pG(){return H.createElement("div",{className:"Toastify__spinner"})}var jf={info:cG,warning:aG,success:uG,error:dG,spinner:pG},fG=e=>e in jf;function mG({theme:e,type:t,isLoading:n,icon:r}){let o=null,i={theme:e,type:t};return r===!1||(To(r)?o=r({...i,isLoading:n}):H.isValidElement(r)?o=H.cloneElement(r,i):n?o=jf.spinner():fG(t)&&(o=jf[t](i))),o}var hG=e=>{let{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o,playToast:i}=lG(e),{closeButton:l,children:a,autoClose:c,onClick:u,type:d,hideProgressBar:p,closeToast:m,transition:f,position:y,className:g,style:v,progressClassName:x,updateId:S,role:w,progress:k,rtl:E,toastId:T,deleteToast:N,isIn:P,isLoading:O,closeOnClick:L,theme:$,ariaLabel:C}=e,j=ue("Toastify__toast",`Toastify__toast-theme--${$}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":E},{"Toastify__toast--close-on-click":L}),F=To(g)?g({rtl:E,position:y,type:d,defaultClassName:j}):ue(j,g),M=mG(e),R=!!k||!c,_={closeToast:m,type:d,theme:$},V=null;return l===!1||(To(l)?V=l(_):H.isValidElement(l)?V=H.cloneElement(l,_):V=WH(_)),H.createElement(f,{isIn:P,done:N,position:y,preventExitTransition:n,nodeRef:r,playToast:i},H.createElement("div",{id:T,tabIndex:0,onClick:u,"data-in":P,className:F,...o,style:v,ref:r,...P&&{role:w,"aria-label":C}},M!=null&&H.createElement("div",{className:ue("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!O})},M),E2(a,e,!t),V,!e.customProgressBar&&H.createElement(UH,{...S&&!R?{key:`p-${S}`}:{},rtl:E,theme:$,delay:c,isRunning:t,isIn:P,closeToast:m,hide:p,type:d,className:x,controlledProgress:R,progress:k||0})))},j2=(e,t=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}),gG=k2(j2("bounce",!0)),bG=k2(j2("slide",!0)),yG={position:"top-right",transition:gG,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&e.code==="KeyT"};function vG(e){let t={...yG,...e},n=e.stacked,[r,o]=H.useState(!0),i=H.useRef(null),{getToastToRender:l,isToastActive:a,count:c}=iG(t),{className:u,style:d,rtl:p,containerId:m,hotKeys:f}=t;function y(v){let x=ue("Toastify__toast-container",`Toastify__toast-container--${v}`,{"Toastify__toast-container--rtl":p});return To(u)?u({position:v,rtl:p,defaultClassName:x}):ue(x,Of(u))}function g(){n&&(o(!0),bt.play())}return R2(()=>{var v;if(n){let x=i.current.querySelectorAll('[data-in="true"]'),S=12,w=(v=t.position)==null?void 0:v.includes("top"),k=0,E=0;Array.from(x).reverse().forEach((T,N)=>{let P=T;P.classList.add("Toastify__toast--stacked"),N>0&&(P.dataset.collapsed=`${r}`),P.dataset.pos||(P.dataset.pos=w?"top":"bot");let O=k*(r?.2:1)+(r?0:S*N),L=Math.max(.5,1-(r?E:0));P.style.setProperty("--y",`${w?O:O*-1}px`),P.style.setProperty("--g",`${S}`),P.style.setProperty("--s",`${L}`),k+=P.offsetHeight,E+=.025})}},[r,c,n]),H.useEffect(()=>{function v(x){var S;let w=i.current;f(x)&&((S=w==null?void 0:w.querySelector('[tabIndex="0"]'))==null||S.focus(),o(!1),bt.pause()),x.key==="Escape"&&(document.activeElement===w||w!=null&&w.contains(document.activeElement))&&(o(!0),bt.play())}return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[f]),H.createElement("section",{ref:i,className:"Toastify",id:m,onMouseEnter:()=>{n&&(o(!1),bt.pause())},onMouseLeave:g,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":t["aria-label"]},l((v,x)=>{let S=x.length?{...d}:{...d,pointerEvents:"none"};return H.createElement("div",{tabIndex:-1,className:y(v),"data-stacked":n,style:S,key:`c-${v}`},x.map(({content:w,props:k})=>H.createElement(hG,{...k,stacked:n,collapseAll:g,isIn:a(k.toastId,k.containerId),key:`t-${k.key}`},w)))}))}var xG=`:root {
|
|
454
|
+
--toastify-color-light: #fff;
|
|
455
|
+
--toastify-color-dark: #121212;
|
|
456
|
+
--toastify-color-info: #3498db;
|
|
457
|
+
--toastify-color-success: #07bc0c;
|
|
458
|
+
--toastify-color-warning: #f1c40f;
|
|
459
|
+
--toastify-color-error: hsl(6, 78%, 57%);
|
|
460
|
+
--toastify-color-transparent: rgba(255, 255, 255, 0.7);
|
|
461
|
+
|
|
462
|
+
--toastify-icon-color-info: var(--toastify-color-info);
|
|
463
|
+
--toastify-icon-color-success: var(--toastify-color-success);
|
|
464
|
+
--toastify-icon-color-warning: var(--toastify-color-warning);
|
|
465
|
+
--toastify-icon-color-error: var(--toastify-color-error);
|
|
466
|
+
|
|
467
|
+
--toastify-container-width: fit-content;
|
|
468
|
+
--toastify-toast-width: 320px;
|
|
469
|
+
--toastify-toast-offset: 16px;
|
|
470
|
+
--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));
|
|
471
|
+
--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));
|
|
472
|
+
--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));
|
|
473
|
+
--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));
|
|
474
|
+
--toastify-toast-background: #fff;
|
|
475
|
+
--toastify-toast-padding: 14px;
|
|
476
|
+
--toastify-toast-min-height: 64px;
|
|
477
|
+
--toastify-toast-max-height: 800px;
|
|
478
|
+
--toastify-toast-bd-radius: 6px;
|
|
479
|
+
--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
|
|
480
|
+
--toastify-font-family: sans-serif;
|
|
481
|
+
--toastify-z-index: 9999;
|
|
482
|
+
--toastify-text-color-light: #757575;
|
|
483
|
+
--toastify-text-color-dark: #fff;
|
|
484
|
+
|
|
485
|
+
/* Used only for colored theme */
|
|
486
|
+
--toastify-text-color-info: #fff;
|
|
487
|
+
--toastify-text-color-success: #fff;
|
|
488
|
+
--toastify-text-color-warning: #fff;
|
|
489
|
+
--toastify-text-color-error: #fff;
|
|
490
|
+
|
|
491
|
+
--toastify-spinner-color: #616161;
|
|
492
|
+
--toastify-spinner-color-empty-area: #e0e0e0;
|
|
493
|
+
--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);
|
|
494
|
+
--toastify-color-progress-dark: #bb86fc;
|
|
495
|
+
--toastify-color-progress-info: var(--toastify-color-info);
|
|
496
|
+
--toastify-color-progress-success: var(--toastify-color-success);
|
|
497
|
+
--toastify-color-progress-warning: var(--toastify-color-warning);
|
|
498
|
+
--toastify-color-progress-error: var(--toastify-color-error);
|
|
499
|
+
/* used to control the opacity of the progress trail */
|
|
500
|
+
--toastify-color-progress-bgo: 0.2;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.Toastify__toast-container {
|
|
504
|
+
z-index: var(--toastify-z-index);
|
|
505
|
+
-webkit-transform: translate3d(0, 0, var(--toastify-z-index));
|
|
506
|
+
position: fixed;
|
|
507
|
+
width: var(--toastify-container-width);
|
|
508
|
+
box-sizing: border-box;
|
|
509
|
+
color: #fff;
|
|
510
|
+
display: flex;
|
|
511
|
+
flex-direction: column;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.Toastify__toast-container--top-left {
|
|
515
|
+
top: var(--toastify-toast-top);
|
|
516
|
+
left: var(--toastify-toast-left);
|
|
517
|
+
}
|
|
518
|
+
.Toastify__toast-container--top-center {
|
|
519
|
+
top: var(--toastify-toast-top);
|
|
520
|
+
left: 50%;
|
|
521
|
+
transform: translateX(-50%);
|
|
522
|
+
align-items: center;
|
|
523
|
+
}
|
|
524
|
+
.Toastify__toast-container--top-right {
|
|
525
|
+
top: var(--toastify-toast-top);
|
|
526
|
+
right: var(--toastify-toast-right);
|
|
527
|
+
align-items: end;
|
|
528
|
+
}
|
|
529
|
+
.Toastify__toast-container--bottom-left {
|
|
530
|
+
bottom: var(--toastify-toast-bottom);
|
|
531
|
+
left: var(--toastify-toast-left);
|
|
532
|
+
}
|
|
533
|
+
.Toastify__toast-container--bottom-center {
|
|
534
|
+
bottom: var(--toastify-toast-bottom);
|
|
535
|
+
left: 50%;
|
|
536
|
+
transform: translateX(-50%);
|
|
537
|
+
align-items: center;
|
|
538
|
+
}
|
|
539
|
+
.Toastify__toast-container--bottom-right {
|
|
540
|
+
bottom: var(--toastify-toast-bottom);
|
|
541
|
+
right: var(--toastify-toast-right);
|
|
542
|
+
align-items: end;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.Toastify__toast {
|
|
546
|
+
--y: 0px;
|
|
547
|
+
position: relative;
|
|
548
|
+
touch-action: none;
|
|
549
|
+
width: var(--toastify-toast-width);
|
|
550
|
+
min-height: var(--toastify-toast-min-height);
|
|
551
|
+
box-sizing: border-box;
|
|
552
|
+
margin-bottom: 1rem;
|
|
553
|
+
padding: var(--toastify-toast-padding);
|
|
554
|
+
border-radius: var(--toastify-toast-bd-radius);
|
|
555
|
+
box-shadow: var(--toastify-toast-shadow);
|
|
556
|
+
max-height: var(--toastify-toast-max-height);
|
|
557
|
+
font-family: var(--toastify-font-family);
|
|
558
|
+
/* webkit only issue #791 */
|
|
559
|
+
z-index: 0;
|
|
560
|
+
/* inner swag */
|
|
561
|
+
display: flex;
|
|
562
|
+
flex: 1 auto;
|
|
563
|
+
align-items: center;
|
|
564
|
+
word-break: break-word;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
@media only screen and (max-width: 480px) {
|
|
568
|
+
.Toastify__toast-container {
|
|
569
|
+
width: 100vw;
|
|
570
|
+
left: env(safe-area-inset-left);
|
|
571
|
+
margin: 0;
|
|
572
|
+
}
|
|
573
|
+
.Toastify__toast-container--top-left,
|
|
574
|
+
.Toastify__toast-container--top-center,
|
|
575
|
+
.Toastify__toast-container--top-right {
|
|
576
|
+
top: env(safe-area-inset-top);
|
|
577
|
+
transform: translateX(0);
|
|
578
|
+
}
|
|
579
|
+
.Toastify__toast-container--bottom-left,
|
|
580
|
+
.Toastify__toast-container--bottom-center,
|
|
581
|
+
.Toastify__toast-container--bottom-right {
|
|
582
|
+
bottom: env(safe-area-inset-bottom);
|
|
583
|
+
transform: translateX(0);
|
|
584
|
+
}
|
|
585
|
+
.Toastify__toast-container--rtl {
|
|
586
|
+
right: env(safe-area-inset-right);
|
|
587
|
+
left: initial;
|
|
588
|
+
}
|
|
589
|
+
.Toastify__toast {
|
|
590
|
+
--toastify-toast-width: 100%;
|
|
591
|
+
margin-bottom: 0;
|
|
592
|
+
border-radius: 0;
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.Toastify__toast-container[data-stacked='true'] {
|
|
597
|
+
width: var(--toastify-toast-width);
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
@media only screen and (max-width: 480px) {
|
|
601
|
+
.Toastify__toast-container[data-stacked='true'] {
|
|
602
|
+
width: 100vw;
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.Toastify__toast--stacked {
|
|
607
|
+
position: absolute;
|
|
608
|
+
width: 100%;
|
|
609
|
+
transform: translate3d(0, var(--y), 0) scale(var(--s));
|
|
610
|
+
transition: transform 0.3s;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,
|
|
614
|
+
.Toastify__toast--stacked[data-collapsed] .Toastify__close-button {
|
|
615
|
+
transition: opacity 0.1s;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.Toastify__toast--stacked[data-collapsed='false'] {
|
|
619
|
+
overflow: visible;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
.Toastify__toast--stacked[data-collapsed='true']:not(:last-child) > * {
|
|
623
|
+
opacity: 0;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
.Toastify__toast--stacked:after {
|
|
627
|
+
content: '';
|
|
628
|
+
position: absolute;
|
|
629
|
+
left: 0;
|
|
630
|
+
right: 0;
|
|
631
|
+
height: calc(var(--g) * 1px);
|
|
632
|
+
bottom: 100%;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
.Toastify__toast--stacked[data-pos='top'] {
|
|
636
|
+
top: 0;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
.Toastify__toast--stacked[data-pos='bot'] {
|
|
640
|
+
bottom: 0;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
.Toastify__toast--stacked[data-pos='bot'].Toastify__toast--stacked:before {
|
|
644
|
+
transform-origin: top;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.Toastify__toast--stacked[data-pos='top'].Toastify__toast--stacked:before {
|
|
648
|
+
transform-origin: bottom;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.Toastify__toast--stacked:before {
|
|
652
|
+
content: '';
|
|
653
|
+
position: absolute;
|
|
654
|
+
left: 0;
|
|
655
|
+
right: 0;
|
|
656
|
+
bottom: 0;
|
|
657
|
+
height: 100%;
|
|
658
|
+
transform: scaleY(3);
|
|
659
|
+
z-index: -1;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.Toastify__toast--rtl {
|
|
663
|
+
direction: rtl;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
.Toastify__toast--close-on-click {
|
|
667
|
+
cursor: pointer;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
.Toastify__toast-icon {
|
|
671
|
+
margin-inline-end: 10px;
|
|
672
|
+
width: 22px;
|
|
673
|
+
flex-shrink: 0;
|
|
674
|
+
display: flex;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
.Toastify--animate {
|
|
678
|
+
animation-fill-mode: both;
|
|
679
|
+
animation-duration: 0.5s;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
.Toastify--animate-icon {
|
|
683
|
+
animation-fill-mode: both;
|
|
684
|
+
animation-duration: 0.3s;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
.Toastify__toast-theme--dark {
|
|
688
|
+
background: var(--toastify-color-dark);
|
|
689
|
+
color: var(--toastify-text-color-dark);
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.Toastify__toast-theme--light {
|
|
693
|
+
background: var(--toastify-color-light);
|
|
694
|
+
color: var(--toastify-text-color-light);
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
.Toastify__toast-theme--colored.Toastify__toast--default {
|
|
698
|
+
background: var(--toastify-color-light);
|
|
699
|
+
color: var(--toastify-text-color-light);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
.Toastify__toast-theme--colored.Toastify__toast--info {
|
|
703
|
+
color: var(--toastify-text-color-info);
|
|
704
|
+
background: var(--toastify-color-info);
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
.Toastify__toast-theme--colored.Toastify__toast--success {
|
|
708
|
+
color: var(--toastify-text-color-success);
|
|
709
|
+
background: var(--toastify-color-success);
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
.Toastify__toast-theme--colored.Toastify__toast--warning {
|
|
713
|
+
color: var(--toastify-text-color-warning);
|
|
714
|
+
background: var(--toastify-color-warning);
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
.Toastify__toast-theme--colored.Toastify__toast--error {
|
|
718
|
+
color: var(--toastify-text-color-error);
|
|
719
|
+
background: var(--toastify-color-error);
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
.Toastify__progress-bar-theme--light {
|
|
723
|
+
background: var(--toastify-color-progress-light);
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
.Toastify__progress-bar-theme--dark {
|
|
727
|
+
background: var(--toastify-color-progress-dark);
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
.Toastify__progress-bar--info {
|
|
731
|
+
background: var(--toastify-color-progress-info);
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
.Toastify__progress-bar--success {
|
|
735
|
+
background: var(--toastify-color-progress-success);
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
.Toastify__progress-bar--warning {
|
|
739
|
+
background: var(--toastify-color-progress-warning);
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
.Toastify__progress-bar--error {
|
|
743
|
+
background: var(--toastify-color-progress-error);
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,
|
|
747
|
+
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,
|
|
748
|
+
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,
|
|
749
|
+
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {
|
|
750
|
+
background: var(--toastify-color-transparent);
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
.Toastify__close-button {
|
|
754
|
+
color: #fff;
|
|
755
|
+
position: absolute;
|
|
756
|
+
top: 6px;
|
|
757
|
+
right: 6px;
|
|
758
|
+
background: transparent;
|
|
759
|
+
outline: none;
|
|
760
|
+
border: none;
|
|
761
|
+
padding: 0;
|
|
762
|
+
cursor: pointer;
|
|
763
|
+
opacity: 0.7;
|
|
764
|
+
transition: 0.3s ease;
|
|
765
|
+
z-index: 1;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
.Toastify__toast--rtl .Toastify__close-button {
|
|
769
|
+
left: 6px;
|
|
770
|
+
right: unset;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
.Toastify__close-button--light {
|
|
774
|
+
color: #000;
|
|
775
|
+
opacity: 0.3;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
.Toastify__close-button > svg {
|
|
779
|
+
fill: currentColor;
|
|
780
|
+
height: 16px;
|
|
781
|
+
width: 14px;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
.Toastify__close-button:hover,
|
|
785
|
+
.Toastify__close-button:focus {
|
|
786
|
+
opacity: 1;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
@keyframes Toastify__trackProgress {
|
|
790
|
+
0% {
|
|
791
|
+
transform: scaleX(1);
|
|
792
|
+
}
|
|
793
|
+
100% {
|
|
794
|
+
transform: scaleX(0);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.Toastify__progress-bar {
|
|
799
|
+
position: absolute;
|
|
800
|
+
bottom: 0;
|
|
801
|
+
left: 0;
|
|
802
|
+
width: 100%;
|
|
803
|
+
height: 100%;
|
|
804
|
+
z-index: 1;
|
|
805
|
+
opacity: 0.7;
|
|
806
|
+
transform-origin: left;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
.Toastify__progress-bar--animated {
|
|
810
|
+
animation: Toastify__trackProgress linear 1 forwards;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
.Toastify__progress-bar--controlled {
|
|
814
|
+
transition: transform 0.2s;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
.Toastify__progress-bar--rtl {
|
|
818
|
+
right: 0;
|
|
819
|
+
left: initial;
|
|
820
|
+
transform-origin: right;
|
|
821
|
+
border-bottom-left-radius: initial;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
.Toastify__progress-bar--wrp {
|
|
825
|
+
position: absolute;
|
|
826
|
+
overflow: hidden;
|
|
827
|
+
bottom: 0;
|
|
828
|
+
left: 0;
|
|
829
|
+
width: 100%;
|
|
830
|
+
height: 5px;
|
|
831
|
+
border-bottom-left-radius: var(--toastify-toast-bd-radius);
|
|
832
|
+
border-bottom-right-radius: var(--toastify-toast-bd-radius);
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
.Toastify__progress-bar--wrp[data-hidden='true'] {
|
|
836
|
+
opacity: 0;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
.Toastify__progress-bar--bg {
|
|
840
|
+
opacity: var(--toastify-color-progress-bgo);
|
|
841
|
+
width: 100%;
|
|
842
|
+
height: 100%;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
.Toastify__spinner {
|
|
846
|
+
width: 20px;
|
|
847
|
+
height: 20px;
|
|
848
|
+
box-sizing: border-box;
|
|
849
|
+
border: 2px solid;
|
|
850
|
+
border-radius: 100%;
|
|
851
|
+
border-color: var(--toastify-spinner-color-empty-area);
|
|
852
|
+
border-right-color: var(--toastify-spinner-color);
|
|
853
|
+
animation: Toastify__spin 0.65s linear infinite;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
@keyframes Toastify__bounceInRight {
|
|
857
|
+
from,
|
|
858
|
+
60%,
|
|
859
|
+
75%,
|
|
860
|
+
90%,
|
|
861
|
+
to {
|
|
862
|
+
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
863
|
+
}
|
|
864
|
+
from {
|
|
865
|
+
opacity: 0;
|
|
866
|
+
transform: translate3d(3000px, 0, 0);
|
|
867
|
+
}
|
|
868
|
+
60% {
|
|
869
|
+
opacity: 1;
|
|
870
|
+
transform: translate3d(-25px, 0, 0);
|
|
871
|
+
}
|
|
872
|
+
75% {
|
|
873
|
+
transform: translate3d(10px, 0, 0);
|
|
874
|
+
}
|
|
875
|
+
90% {
|
|
876
|
+
transform: translate3d(-5px, 0, 0);
|
|
877
|
+
}
|
|
878
|
+
to {
|
|
879
|
+
transform: none;
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
@keyframes Toastify__bounceOutRight {
|
|
884
|
+
20% {
|
|
885
|
+
opacity: 1;
|
|
886
|
+
transform: translate3d(-20px, var(--y), 0);
|
|
887
|
+
}
|
|
888
|
+
to {
|
|
889
|
+
opacity: 0;
|
|
890
|
+
transform: translate3d(2000px, var(--y), 0);
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
@keyframes Toastify__bounceInLeft {
|
|
895
|
+
from,
|
|
896
|
+
60%,
|
|
897
|
+
75%,
|
|
898
|
+
90%,
|
|
899
|
+
to {
|
|
900
|
+
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
901
|
+
}
|
|
902
|
+
0% {
|
|
903
|
+
opacity: 0;
|
|
904
|
+
transform: translate3d(-3000px, 0, 0);
|
|
905
|
+
}
|
|
906
|
+
60% {
|
|
907
|
+
opacity: 1;
|
|
908
|
+
transform: translate3d(25px, 0, 0);
|
|
909
|
+
}
|
|
910
|
+
75% {
|
|
911
|
+
transform: translate3d(-10px, 0, 0);
|
|
912
|
+
}
|
|
913
|
+
90% {
|
|
914
|
+
transform: translate3d(5px, 0, 0);
|
|
915
|
+
}
|
|
916
|
+
to {
|
|
917
|
+
transform: none;
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
@keyframes Toastify__bounceOutLeft {
|
|
922
|
+
20% {
|
|
923
|
+
opacity: 1;
|
|
924
|
+
transform: translate3d(20px, var(--y), 0);
|
|
925
|
+
}
|
|
926
|
+
to {
|
|
927
|
+
opacity: 0;
|
|
928
|
+
transform: translate3d(-2000px, var(--y), 0);
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
@keyframes Toastify__bounceInUp {
|
|
933
|
+
from,
|
|
934
|
+
60%,
|
|
935
|
+
75%,
|
|
936
|
+
90%,
|
|
937
|
+
to {
|
|
938
|
+
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
939
|
+
}
|
|
940
|
+
from {
|
|
941
|
+
opacity: 0;
|
|
942
|
+
transform: translate3d(0, 3000px, 0);
|
|
943
|
+
}
|
|
944
|
+
60% {
|
|
945
|
+
opacity: 1;
|
|
946
|
+
transform: translate3d(0, -20px, 0);
|
|
947
|
+
}
|
|
948
|
+
75% {
|
|
949
|
+
transform: translate3d(0, 10px, 0);
|
|
950
|
+
}
|
|
951
|
+
90% {
|
|
952
|
+
transform: translate3d(0, -5px, 0);
|
|
953
|
+
}
|
|
954
|
+
to {
|
|
955
|
+
transform: translate3d(0, 0, 0);
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
@keyframes Toastify__bounceOutUp {
|
|
960
|
+
20% {
|
|
961
|
+
transform: translate3d(0, calc(var(--y) - 10px), 0);
|
|
962
|
+
}
|
|
963
|
+
40%,
|
|
964
|
+
45% {
|
|
965
|
+
opacity: 1;
|
|
966
|
+
transform: translate3d(0, calc(var(--y) + 20px), 0);
|
|
967
|
+
}
|
|
968
|
+
to {
|
|
969
|
+
opacity: 0;
|
|
970
|
+
transform: translate3d(0, -2000px, 0);
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
@keyframes Toastify__bounceInDown {
|
|
975
|
+
from,
|
|
976
|
+
60%,
|
|
977
|
+
75%,
|
|
978
|
+
90%,
|
|
979
|
+
to {
|
|
980
|
+
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
981
|
+
}
|
|
982
|
+
0% {
|
|
983
|
+
opacity: 0;
|
|
984
|
+
transform: translate3d(0, -3000px, 0);
|
|
985
|
+
}
|
|
986
|
+
60% {
|
|
987
|
+
opacity: 1;
|
|
988
|
+
transform: translate3d(0, 25px, 0);
|
|
989
|
+
}
|
|
990
|
+
75% {
|
|
991
|
+
transform: translate3d(0, -10px, 0);
|
|
992
|
+
}
|
|
993
|
+
90% {
|
|
994
|
+
transform: translate3d(0, 5px, 0);
|
|
995
|
+
}
|
|
996
|
+
to {
|
|
997
|
+
transform: none;
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
@keyframes Toastify__bounceOutDown {
|
|
1002
|
+
20% {
|
|
1003
|
+
transform: translate3d(0, calc(var(--y) - 10px), 0);
|
|
1004
|
+
}
|
|
1005
|
+
40%,
|
|
1006
|
+
45% {
|
|
1007
|
+
opacity: 1;
|
|
1008
|
+
transform: translate3d(0, calc(var(--y) + 20px), 0);
|
|
1009
|
+
}
|
|
1010
|
+
to {
|
|
1011
|
+
opacity: 0;
|
|
1012
|
+
transform: translate3d(0, 2000px, 0);
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
.Toastify__bounce-enter--top-left,
|
|
1017
|
+
.Toastify__bounce-enter--bottom-left {
|
|
1018
|
+
animation-name: Toastify__bounceInLeft;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
.Toastify__bounce-enter--top-right,
|
|
1022
|
+
.Toastify__bounce-enter--bottom-right {
|
|
1023
|
+
animation-name: Toastify__bounceInRight;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
.Toastify__bounce-enter--top-center {
|
|
1027
|
+
animation-name: Toastify__bounceInDown;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
.Toastify__bounce-enter--bottom-center {
|
|
1031
|
+
animation-name: Toastify__bounceInUp;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
.Toastify__bounce-exit--top-left,
|
|
1035
|
+
.Toastify__bounce-exit--bottom-left {
|
|
1036
|
+
animation-name: Toastify__bounceOutLeft;
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
.Toastify__bounce-exit--top-right,
|
|
1040
|
+
.Toastify__bounce-exit--bottom-right {
|
|
1041
|
+
animation-name: Toastify__bounceOutRight;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
.Toastify__bounce-exit--top-center {
|
|
1045
|
+
animation-name: Toastify__bounceOutUp;
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
.Toastify__bounce-exit--bottom-center {
|
|
1049
|
+
animation-name: Toastify__bounceOutDown;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
@keyframes Toastify__zoomIn {
|
|
1053
|
+
from {
|
|
1054
|
+
opacity: 0;
|
|
1055
|
+
transform: scale3d(0.3, 0.3, 0.3);
|
|
1056
|
+
}
|
|
1057
|
+
50% {
|
|
1058
|
+
opacity: 1;
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
@keyframes Toastify__zoomOut {
|
|
1063
|
+
from {
|
|
1064
|
+
opacity: 1;
|
|
1065
|
+
}
|
|
1066
|
+
50% {
|
|
1067
|
+
opacity: 0;
|
|
1068
|
+
transform: translate3d(0, var(--y), 0) scale3d(0.3, 0.3, 0.3);
|
|
1069
|
+
}
|
|
1070
|
+
to {
|
|
1071
|
+
opacity: 0;
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
.Toastify__zoom-enter {
|
|
1076
|
+
animation-name: Toastify__zoomIn;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
.Toastify__zoom-exit {
|
|
1080
|
+
animation-name: Toastify__zoomOut;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
@keyframes Toastify__flipIn {
|
|
1084
|
+
from {
|
|
1085
|
+
transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
|
|
1086
|
+
animation-timing-function: ease-in;
|
|
1087
|
+
opacity: 0;
|
|
1088
|
+
}
|
|
1089
|
+
40% {
|
|
1090
|
+
transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
|
|
1091
|
+
animation-timing-function: ease-in;
|
|
1092
|
+
}
|
|
1093
|
+
60% {
|
|
1094
|
+
transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
|
|
1095
|
+
opacity: 1;
|
|
1096
|
+
}
|
|
1097
|
+
80% {
|
|
1098
|
+
transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
|
|
1099
|
+
}
|
|
1100
|
+
to {
|
|
1101
|
+
transform: perspective(400px);
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
@keyframes Toastify__flipOut {
|
|
1106
|
+
from {
|
|
1107
|
+
transform: translate3d(0, var(--y), 0) perspective(400px);
|
|
1108
|
+
}
|
|
1109
|
+
30% {
|
|
1110
|
+
transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, -20deg);
|
|
1111
|
+
opacity: 1;
|
|
1112
|
+
}
|
|
1113
|
+
to {
|
|
1114
|
+
transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, 90deg);
|
|
1115
|
+
opacity: 0;
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
.Toastify__flip-enter {
|
|
1120
|
+
animation-name: Toastify__flipIn;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
.Toastify__flip-exit {
|
|
1124
|
+
animation-name: Toastify__flipOut;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
@keyframes Toastify__slideInRight {
|
|
1128
|
+
from {
|
|
1129
|
+
transform: translate3d(110%, 0, 0);
|
|
1130
|
+
visibility: visible;
|
|
1131
|
+
}
|
|
1132
|
+
to {
|
|
1133
|
+
transform: translate3d(0, var(--y), 0);
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
@keyframes Toastify__slideInLeft {
|
|
1138
|
+
from {
|
|
1139
|
+
transform: translate3d(-110%, 0, 0);
|
|
1140
|
+
visibility: visible;
|
|
1141
|
+
}
|
|
1142
|
+
to {
|
|
1143
|
+
transform: translate3d(0, var(--y), 0);
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
@keyframes Toastify__slideInUp {
|
|
1148
|
+
from {
|
|
1149
|
+
transform: translate3d(0, 110%, 0);
|
|
1150
|
+
visibility: visible;
|
|
1151
|
+
}
|
|
1152
|
+
to {
|
|
1153
|
+
transform: translate3d(0, var(--y), 0);
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
@keyframes Toastify__slideInDown {
|
|
1158
|
+
from {
|
|
1159
|
+
transform: translate3d(0, -110%, 0);
|
|
1160
|
+
visibility: visible;
|
|
1161
|
+
}
|
|
1162
|
+
to {
|
|
1163
|
+
transform: translate3d(0, var(--y), 0);
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
@keyframes Toastify__slideOutRight {
|
|
1168
|
+
from {
|
|
1169
|
+
transform: translate3d(0, var(--y), 0);
|
|
1170
|
+
}
|
|
1171
|
+
to {
|
|
1172
|
+
visibility: hidden;
|
|
1173
|
+
transform: translate3d(110%, var(--y), 0);
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
@keyframes Toastify__slideOutLeft {
|
|
1178
|
+
from {
|
|
1179
|
+
transform: translate3d(0, var(--y), 0);
|
|
1180
|
+
}
|
|
1181
|
+
to {
|
|
1182
|
+
visibility: hidden;
|
|
1183
|
+
transform: translate3d(-110%, var(--y), 0);
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
@keyframes Toastify__slideOutDown {
|
|
1188
|
+
from {
|
|
1189
|
+
transform: translate3d(0, var(--y), 0);
|
|
1190
|
+
}
|
|
1191
|
+
to {
|
|
1192
|
+
visibility: hidden;
|
|
1193
|
+
transform: translate3d(0, 500px, 0);
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
@keyframes Toastify__slideOutUp {
|
|
1198
|
+
from {
|
|
1199
|
+
transform: translate3d(0, var(--y), 0);
|
|
1200
|
+
}
|
|
1201
|
+
to {
|
|
1202
|
+
visibility: hidden;
|
|
1203
|
+
transform: translate3d(0, -500px, 0);
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
.Toastify__slide-enter--top-left,
|
|
1208
|
+
.Toastify__slide-enter--bottom-left {
|
|
1209
|
+
animation-name: Toastify__slideInLeft;
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
.Toastify__slide-enter--top-right,
|
|
1213
|
+
.Toastify__slide-enter--bottom-right {
|
|
1214
|
+
animation-name: Toastify__slideInRight;
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
.Toastify__slide-enter--top-center {
|
|
1218
|
+
animation-name: Toastify__slideInDown;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
.Toastify__slide-enter--bottom-center {
|
|
1222
|
+
animation-name: Toastify__slideInUp;
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
.Toastify__slide-exit--top-left,
|
|
1226
|
+
.Toastify__slide-exit--bottom-left {
|
|
1227
|
+
animation-name: Toastify__slideOutLeft;
|
|
1228
|
+
animation-timing-function: ease-in;
|
|
1229
|
+
animation-duration: 0.3s;
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
.Toastify__slide-exit--top-right,
|
|
1233
|
+
.Toastify__slide-exit--bottom-right {
|
|
1234
|
+
animation-name: Toastify__slideOutRight;
|
|
1235
|
+
animation-timing-function: ease-in;
|
|
1236
|
+
animation-duration: 0.3s;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
.Toastify__slide-exit--top-center {
|
|
1240
|
+
animation-name: Toastify__slideOutUp;
|
|
1241
|
+
animation-timing-function: ease-in;
|
|
1242
|
+
animation-duration: 0.3s;
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
.Toastify__slide-exit--bottom-center {
|
|
1246
|
+
animation-name: Toastify__slideOutDown;
|
|
1247
|
+
animation-timing-function: ease-in;
|
|
1248
|
+
animation-duration: 0.3s;
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
@keyframes Toastify__spin {
|
|
1252
|
+
from {
|
|
1253
|
+
transform: rotate(0deg);
|
|
1254
|
+
}
|
|
1255
|
+
to {
|
|
1256
|
+
transform: rotate(360deg);
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
`,Y1=new Map,CG=(e,t)=>{R2(()=>{if(typeof document=="undefined")return;let n=document,r=Y1.get(n);if(r){t&&r.setAttribute("nonce",t);return}let o=n.createElement("style");o.textContent=e,t&&o.setAttribute("nonce",t),n.head.appendChild(o),Y1.set(n,o)},[t])};function wG(e){return CG(xG,e.nonce),H.createElement(vG,{...e})}const SG=Me(h.jsx("path",{d:"M9 16.17 5.53 12.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41a.996.996 0 0 0-1.41 0z"}),"CheckRounded"),kG=Me(h.jsx("path",{d:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"CloseRounded"),EG=Me(h.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 11c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1m1 4h-2v-2h2z"}),"ErrorRounded"),TG=Me(h.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 15c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1m1-8h-2V7h2z"}),"InfoRounded"),IG=Me(h.jsx("path",{d:"M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3M12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1m1 4h-2v-2h2z"}),"WarningRounded"),ml=({type:e})=>{switch(e){case"error":return h.jsx(EG,{sx:{color:"#5C0924"}});case"info":return h.jsx(TG,{sx:{color:"#161E4A"}});case"success":return h.jsx(SG,{sx:{color:"#00514B"}});case"warning":return h.jsx(IG,{sx:{color:"#816E09"}});case"default":default:return null}},PG=e=>{const t=e.type==="error",n=H.useCallback(r=>{r&&t&&r.focus()},[t]);return h.jsx(Tn,{ref:n,"aria-label":e.ariaLabel||"Close notification",sx:{position:"absolute",top:8,right:8,padding:"4px"},onClick:()=>e.closeToast(!0),children:h.jsx(kG,{sx:{fontSize:"1rem",color:"#555555"}})})},OG=e=>h.jsx(wG,{hideProgressBar:!0,newestOnTop:!0,"aria-label":"Toast",className:"whitespace-pre-wrap",closeButton:PG,position:"top-right",transition:bG,...e}),hl="relative min-h-auto! text-sm border-l-[5px] rounded-none! p-2! pr-10!",MG={default:(e,t)=>bt(e,{ariaLabel:e,autoClose:3e3,className:hl,type:"default",icon:h.jsx(ml,{type:"default"}),...t}),error:(e,t)=>bt.error(e!=null?e:"There was an error! Please try again.",{ariaLabel:e!=null?e:"There was an error! Please try again",autoClose:15e3,className:`${hl} text-[#5C0924]! bg-[#FBEAEC]! border-[#5C0924]`,type:"error",icon:h.jsx(ml,{type:"error"}),...t}),info:(e,t)=>bt.info(e,{ariaLabel:e,autoClose:3500,className:`${hl} text-[#161E4A]! bg-[#E9ECF6]! border-[#161E4A]`,type:"info",icon:h.jsx(ml,{type:"info"}),...t}),ok:(e,t)=>bt.success(e!=null?e:"Success!",{ariaLabel:e!=null?e:"Success!",autoClose:2500,className:`${hl} text-[#00514B]! bg-[#EBF6F5]! border-[#00514B]`,type:"success",icon:h.jsx(ml,{type:"success"}),...t}),warning:(e,t)=>bt.warning(e,{ariaLabel:e,autoClose:3500,className:`${hl} text-[#816E09]! bg-[#FEFBE0]! border-[#816E09]!`,type:"warning",icon:h.jsx(ml,{type:"warning"}),...t}),dismiss:e=>bt.dismiss(e),isActive:e=>bt.isActive(e)},RG=ne(({className:e,...t})=>h.jsx(sa,{...t,classes:{popper:e}}))(()=>({[`& .${Kt.tooltip}`]:{backgroundColor:"#FFFFFF",color:"rgba(51, 51, 51, 0.89)",border:"1px solid #D9D9D9",borderRadius:"8px",padding:"16px",fontSize:"0.875rem",fontWeight:400,boxShadow:"0 4px 4px 0 rgba(85, 85, 85, 0.10)",display:"flex",justifyContent:"center",alignItems:"center",gap:"10px",maxWidth:"none"},[`& .${Kt.arrow}`]:{color:"#FFFFFF","&::before":{backgroundColor:"#FFFFFF",border:"1px solid #D9D9D9"}}})),jG=({icon:e,title:t,showOnlyOnOverflow:n=!1,children:r,...o})=>{const[i,l]=H.useState(!1),[a,c]=H.useState(null);H.useEffect(()=>{if(!n||!a)return;const m=()=>{l(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight)};m();const f=new ResizeObserver(m);return f.observe(a),()=>f.disconnect()},[n,a]);const u=e?h.jsxs(mt,{sx:{display:"flex",alignItems:"center",gap:"10px"},children:[e,t]}):t,d=n&&H.isValidElement(r)?H.cloneElement(r,{ref:c}):r,p=n?!i:o.disableHoverListener;return h.jsx(RG,{...o,disableHoverListener:p,title:u,children:d})},LG={sm:{width:"1.5rem",height:"1.5rem",fontSize:"0.75rem"},md:{width:"2.5rem",height:"2.5rem",fontSize:"0.875rem"},lg:{width:"3.75rem",height:"3.75rem",fontSize:"1.5rem"},xl:{width:"7.5rem",height:"7.5rem",fontSize:"3rem"}},$G=({user:e,size:t="sm"})=>{var u,d,p,m;const n=nn(),r=(d=(u=e==null?void 0:e.personalInfo.firstName)==null?void 0:u.charAt(0).toUpperCase())!=null?d:"",o=(m=(p=e==null?void 0:e.personalInfo.lastName)==null?void 0:p.charAt(0).toUpperCase())!=null?m:"",i=`${r}${o}`.trim()||" ",{width:l,height:a,fontSize:c}=LG[t];return h.jsx(cC,{sx:{backgroundColor:n.palette.primary.main,color:n.palette.primary.contrastText,width:l,height:a,fontSize:c,border:t==="sm"?`2px solid ${n.palette.neutral.lighter}`:void 0,[n.breakpoints.between("sm","md")]:{width:"33px !important",height:"33px !important"}},children:i})},NG=Me(h.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),FG=({messages:e})=>{const t=nn();return e.length===0?null:h.jsx(Rm,{icon:h.jsx(NG,{sx:{color:"#665312"}}),severity:"warning",sx:{display:"flex",backgroundColor:t.palette.warning.lightest,justifyContent:"center"},children:h.jsx(dt,{sx:{fontFamily:"Lato",fontWeight:500,color:"#665312"},children:e.join(", ")})})},X1=Array.from({length:24},(e,t)=>t+1),AG=({className:e,volume:t,label:n="Input Level"})=>{const r=nn(),o=H.useMemo(()=>Math.floor(X1.length*t)+1,[t]);return h.jsxs(mt,{className:e,sx:{width:"100%",display:"flex",flexDirection:"column",gap:"0.5rem"},children:[h.jsx(dt,{sx:{color:r.palette.neutral.dark},children:n}),h.jsx(mt,{sx:{width:"100%",height:"18px",display:"flex",gap:"0.25rem"},children:X1.map(i=>h.jsx(mt,{sx:{width:"0.625rem",height:"100%",borderRadius:"2px",border:`0.5px solid ${r.palette.neutral.light}`,backgroundColor:i<o?r.palette["acuity-green"].main:r.customColors.white}},`audio-volume-bar-${i}`))})]})},DG=Me(h.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m3.3 14.71L11 12.41V7h2v4.59l3.71 3.71z"}),"AccessTimeFilled");function Z1(e){const t=Math.abs(e);return t<10?`0${t}`:t.toString()}function Dh(e){const t=Math.floor(Math.abs(e)/60)*Math.sign(e),n=Math.abs(e)%60;return`${e<0?"-":""}${Z1(t)}:${Z1(n)}`}const _G=({timeLeft:e,timerLabel:t,variant:n="info",showClockIcon:r=!0,accessibleLabel:o="Time Left : "})=>{const i=nn(),l=Dh(e),a=n==="info",c=a?i.palette.primary.main:i.palette.warning.darkest,u=a?i.palette.primary.lightest:i.palette.warning.lightest;return h.jsxs(hf,{role:"timer","aria-live":"polite","aria-label":t||o,direction:"row",sx:{color:c,padding:{xs:"0.5rem 0.75rem",sm:"0.75rem 1rem"},backgroundColor:u,justifyContent:"space-between",borderRadius:"1rem",minWidth:0,maxWidth:"100%",overflow:"hidden",flexShrink:1,...a?{}:{border:`1px solid ${c}`}},children:[h.jsxs(hf,{direction:"row",spacing:"0.25rem",alignItems:"center",sx:{minWidth:0,overflow:"hidden",flexShrink:1},children:[r&&h.jsx(DG,{sx:{flexShrink:0}}),t&&h.jsx(dt,{sx:{fontSize:{xs:"0.875rem",sm:"1rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:t})]}),h.jsx(dt,{sx:{fontWeight:"bold",ml:"0.5rem",fontSize:{xs:"0.875rem",sm:"1rem"},flexShrink:0,minWidth:"fit-content"},children:l})]})},L2=ne(mt)(()=>({width:"100%",maxWidth:624,aspectRatio:"4/3",borderRadius:10,overflow:"hidden",position:"relative",height:"100%",maxHeight:368,marginBottom:"2.5rem",display:"flex",alignItems:"center",justifyContent:"center"})),zG=({imageUrl:e,altText:t="Preview Image"})=>e?h.jsx(L2,{children:h.jsx("img",{src:e,alt:t,style:{width:"100%",height:"100%",objectFit:"contain",display:"block"}})}):null,BG=Me(h.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),VG=Me(h.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"),HG={audio:{label:"Select your Microphone",okMessage:"Microphone is working perfectly!",errorMessage:"There is a problem with your microphone. Please select your input again to proceed with your test."},video:{label:"Select your Camera",okMessage:"Camera is working as intended",errorMessage:"There is a problem with your webcam, Please select your camera input again to proceed with your test. "}},GG=({className:e,disabled:t,error:n,hideLabel:r=!1,options:o=[],type:i,value:l="",onChange:a,showMessage:c=!0,compact:u=!1,labels:d})=>{const p=nn(),{label:m,okMessage:f,errorMessage:y}=d!=null?d:HG[i],g=H.useMemo(()=>({width:u?"329px":r?"485px":"100%",height:u?"49px":r?"54px":"auto",labelFontSize:u?"8px":"10px",valueFontSize:u?"12px":"16px",labelColor:u?p.palette.neutral.darkest:p.palette.neutral.main,valueColor:u?p.palette.neutral.darkest:p.palette.neutral.dark,borderRadius:u?"10px":"8px",gap:u?"0px":"4px"}),[u,r,p.palette.neutral]),v=H.useMemo(()=>r||u?{width:g.width,height:g.height,borderRadius:g.borderRadius,padding:"10px","& .MuiSelect-select":{padding:u?"19px 10px":"10px",display:"flex",flexDirection:"column",gap:"4px"}}:{},[r,u,g]),x=H.useCallback(E=>{a(E.target.value)},[a]),S=H.useCallback(E=>{const T=o.find(N=>N.deviceId===E);return!T||!r&&!u?(T==null?void 0:T.label)||"":h.jsxs(mt,{sx:{display:"flex",flexDirection:"column",gap:g.gap},children:[h.jsx(dt,{component:"span",sx:{fontFamily:p.typography.fontFamily,fontSize:g.labelFontSize,fontWeight:600,lineHeight:"20px",color:g.labelColor},children:m}),h.jsx(dt,{component:"span",sx:{fontFamily:p.typography.fontFamily,fontSize:g.valueFontSize,fontWeight:600,lineHeight:"20px",color:g.valueColor},children:T.label})]})},[o,r,u,g,p.typography,m]),w=!n&&!!l,k=!!n;return h.jsxs(mt,{className:e,sx:{width:"100%",minWidth:"300px"},children:[!r&&h.jsx(dt,{sx:{fontFamily:p.typography.fontFamily,fontWeight:p.typography.fontWeightBold,mb:"0.5rem"},children:m}),h.jsx(zs,{sx:{mb:"0.375rem"},fullWidth:!0,disabled:!o.length,children:h.jsx(Bs,{SelectDisplayProps:{"aria-label":m},disabled:t,value:l,onChange:x,sx:v,renderValue:S,children:o.map(E=>h.jsx(Vn,{"aria-label":E.label,value:E.deviceId,children:E.label},E.deviceId))})}),c&&h.jsxs(mt,{sx:{minHeight:"20px",display:"flex",alignItems:"center",gap:"0.5rem"},children:[w&&h.jsxs(h.Fragment,{children:[h.jsx(BG,{fontSize:"small",sx:{color:p.palette["acuity-green"].darkest}}),h.jsx(dt,{sx:{fontSize:"10px",color:p.palette["acuity-green"].darkest},children:f})]}),k&&h.jsxs(h.Fragment,{children:[h.jsx(VG,{fontSize:"small",sx:{color:p.palette["acuity-red"].main}}),h.jsx(dt,{sx:{fontSize:"10px",color:p.palette["acuity-red"].main},children:y})]})]})]})};function WG(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const UG=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qG=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,KG={};function Q1(e,t){return(KG.jsx?qG:UG).test(e)}const YG=/[ \t\n\f\r]/g;function XG(e){return typeof e=="object"?e.type==="text"?J1(e.value):!1:J1(e)}function J1(e){return e.replace(YG,"")===""}class qa{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}qa.prototype.normal={};qa.prototype.property={};qa.prototype.space=void 0;function $2(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new qa(n,r,t)}function Lf(e){return e.toLowerCase()}class Un{constructor(t,n){this.attribute=n,this.property=t}}Un.prototype.attribute="";Un.prototype.booleanish=!1;Un.prototype.boolean=!1;Un.prototype.commaOrSpaceSeparated=!1;Un.prototype.commaSeparated=!1;Un.prototype.defined=!1;Un.prototype.mustUseProperty=!1;Un.prototype.number=!1;Un.prototype.overloadedBoolean=!1;Un.prototype.property="";Un.prototype.spaceSeparated=!1;Un.prototype.space=void 0;let ZG=0;const Qe=Gs(),on=Gs(),$f=Gs(),we=Gs(),Bt=Gs(),Is=Gs(),Kn=Gs();function Gs(){return 2**++ZG}const Nf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Qe,booleanish:on,commaOrSpaceSeparated:Kn,commaSeparated:Is,number:we,overloadedBoolean:$f,spaceSeparated:Bt},Symbol.toStringTag,{value:"Module"})),vp=Object.keys(Nf);class _h extends Un{constructor(t,n,r,o){let i=-1;if(super(t,n),e0(this,"space",o),typeof r=="number")for(;++i<vp.length;){const l=vp[i];e0(this,vp[i],(r&Nf[l])===Nf[l])}}}_h.prototype.defined=!0;function e0(e,t,n){n&&(e[t]=n)}function qi(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new _h(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Lf(r)]=r,n[Lf(i.attribute)]=r}return new qa(t,n,e.space)}const N2=qi({properties:{ariaActiveDescendant:null,ariaAtomic:on,ariaAutoComplete:null,ariaBusy:on,ariaChecked:on,ariaColCount:we,ariaColIndex:we,ariaColSpan:we,ariaControls:Bt,ariaCurrent:null,ariaDescribedBy:Bt,ariaDetails:null,ariaDisabled:on,ariaDropEffect:Bt,ariaErrorMessage:null,ariaExpanded:on,ariaFlowTo:Bt,ariaGrabbed:on,ariaHasPopup:null,ariaHidden:on,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Bt,ariaLevel:we,ariaLive:null,ariaModal:on,ariaMultiLine:on,ariaMultiSelectable:on,ariaOrientation:null,ariaOwns:Bt,ariaPlaceholder:null,ariaPosInSet:we,ariaPressed:on,ariaReadOnly:on,ariaRelevant:null,ariaRequired:on,ariaRoleDescription:Bt,ariaRowCount:we,ariaRowIndex:we,ariaRowSpan:we,ariaSelected:on,ariaSetSize:we,ariaSort:null,ariaValueMax:we,ariaValueMin:we,ariaValueNow:we,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function F2(e,t){return t in e?e[t]:t}function A2(e,t){return F2(e,t.toLowerCase())}const QG=qi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Is,acceptCharset:Bt,accessKey:Bt,action:null,allow:null,allowFullScreen:Qe,allowPaymentRequest:Qe,allowUserMedia:Qe,alpha:Qe,alt:null,as:null,async:Qe,autoCapitalize:null,autoComplete:Bt,autoFocus:Qe,autoPlay:Qe,blocking:Bt,capture:null,charSet:null,checked:Qe,cite:null,className:Bt,closedBy:null,colorSpace:null,cols:we,colSpan:we,command:null,commandFor:null,content:null,contentEditable:on,controls:Qe,controlsList:Bt,coords:we|Is,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Qe,defer:Qe,dir:null,dirName:null,disabled:Qe,download:$f,draggable:on,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qe,formTarget:null,headers:Bt,height:we,hidden:$f,high:we,href:null,hrefLang:null,htmlFor:Bt,httpEquiv:Bt,id:null,imageSizes:null,imageSrcSet:null,inert:Qe,inputMode:null,integrity:null,is:null,isMap:Qe,itemId:null,itemProp:Bt,itemRef:Bt,itemScope:Qe,itemType:Bt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qe,low:we,manifest:null,max:null,maxLength:we,media:null,method:null,min:null,minLength:we,multiple:Qe,muted:Qe,name:null,nonce:null,noModule:Qe,noValidate:Qe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Qe,optimum:we,pattern:null,ping:Bt,placeholder:null,playsInline:Qe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Qe,referrerPolicy:null,rel:Bt,required:Qe,reversed:Qe,rows:we,rowSpan:we,sandbox:Bt,scope:null,scoped:Qe,seamless:Qe,selected:Qe,shadowRootClonable:Qe,shadowRootCustomElementRegistry:Qe,shadowRootDelegatesFocus:Qe,shadowRootMode:null,shadowRootSerializable:Qe,shape:null,size:we,sizes:null,slot:null,span:we,spellCheck:on,src:null,srcDoc:null,srcLang:null,srcSet:null,start:we,step:null,style:null,tabIndex:we,target:null,title:null,translate:null,type:null,typeMustMatch:Qe,useMap:null,value:on,width:we,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Bt,axis:null,background:null,bgColor:null,border:we,borderColor:null,bottomMargin:we,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Qe,declare:Qe,event:null,face:null,frame:null,frameBorder:null,hSpace:we,leftMargin:we,link:null,longDesc:null,lowSrc:null,marginHeight:we,marginWidth:we,noResize:Qe,noHref:Qe,noShade:Qe,noWrap:Qe,object:null,profile:null,prompt:null,rev:null,rightMargin:we,rules:null,scheme:null,scrolling:on,standby:null,summary:null,text:null,topMargin:we,valueType:null,version:null,vAlign:null,vLink:null,vSpace:we,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Qe,disablePictureInPicture:Qe,disableRemotePlayback:Qe,exportParts:Is,part:Bt,prefix:null,property:null,results:we,security:null,unselectable:null},space:"html",transform:A2}),JG=qi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Kn,accentHeight:we,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:we,amplitude:we,arabicForm:null,ascent:we,attributeName:null,attributeType:null,azimuth:we,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:we,by:null,calcMode:null,capHeight:we,className:Bt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:we,diffuseConstant:we,direction:null,display:null,dur:null,divisor:we,dominantBaseline:null,download:Qe,dx:null,dy:null,edgeMode:null,editable:null,elevation:we,enableBackground:null,end:null,event:null,exponent:we,externalResourcesRequired:null,fill:null,fillOpacity:we,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Is,g2:Is,glyphName:Is,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:we,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:we,horizOriginX:we,horizOriginY:we,id:null,ideographic:we,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:we,k:we,k1:we,k2:we,k3:we,k4:we,kernelMatrix:Kn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:we,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:we,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:we,overlineThickness:we,paintOrder:null,panose1:null,path:null,pathLength:we,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Bt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:we,pointsAtY:we,pointsAtZ:we,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kn,rev:Kn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kn,requiredFeatures:Kn,requiredFonts:Kn,requiredFormats:Kn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:we,specularExponent:we,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:we,strikethroughThickness:we,string:null,stroke:null,strokeDashArray:Kn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:we,strokeOpacity:we,strokeWidth:null,style:null,surfaceScale:we,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kn,tabIndex:we,tableValues:null,target:null,targetX:we,targetY:we,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:we,underlineThickness:we,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:we,values:null,vAlphabetic:we,vMathematical:we,vectorEffect:null,vHanging:we,vIdeographic:we,version:null,vertAdvY:we,vertOriginX:we,vertOriginY:we,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:we,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:F2}),D2=qi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),_2=qi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:A2}),z2=qi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),eW={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},tW=/[A-Z]/g,t0=/-[a-z]/g,nW=/^data[-\w.:]+$/i;function rW(e,t){const n=Lf(t);let r=t,o=Un;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&nW.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(t0,sW);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!t0.test(i)){let l=i.replace(tW,oW);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}o=_h}return new o(r,t)}function oW(e){return"-"+e.toLowerCase()}function sW(e){return e.charAt(1).toUpperCase()}const iW=$2([N2,QG,D2,_2,z2],"html"),zh=$2([N2,JG,D2,_2,z2],"svg");function lW(e){return e.join(" ").trim()}var oi={},xp,n0;function aW(){if(n0)return xp;n0=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,c=`
|
|
1260
|
+
`,u="/",d="*",p="",m="comment",f="declaration";function y(v,x){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];x=x||{};var S=1,w=1;function k(F){var M=F.match(t);M&&(S+=M.length);var R=F.lastIndexOf(c);w=~R?F.length-R:w+F.length}function E(){var F={line:S,column:w};return function(M){return M.position=new T(F),O(),M}}function T(F){this.start=F,this.end={line:S,column:w},this.source=x.source}T.prototype.content=v;function N(F){var M=new Error(x.source+":"+S+":"+w+": "+F);if(M.reason=F,M.filename=x.source,M.line=S,M.column=w,M.source=v,!x.silent)throw M}function P(F){var M=F.exec(v);if(M){var R=M[0];return k(R),v=v.slice(R.length),M}}function O(){P(n)}function L(F){var M;for(F=F||[];M=$();)M!==!1&&F.push(M);return F}function $(){var F=E();if(!(u!=v.charAt(0)||d!=v.charAt(1))){for(var M=2;p!=v.charAt(M)&&(d!=v.charAt(M)||u!=v.charAt(M+1));)++M;if(M+=2,p===v.charAt(M-1))return N("End of comment missing");var R=v.slice(2,M-2);return w+=2,k(R),v=v.slice(M),w+=2,F({type:m,comment:R})}}function C(){var F=E(),M=P(r);if(M){if($(),!P(o))return N("property missing ':'");var R=P(i),_=F({type:f,property:g(M[0].replace(e,p)),value:R?g(R[0].replace(e,p)):p});return P(l),_}}function j(){var F=[];L(F);for(var M;M=C();)M!==!1&&(F.push(M),L(F));return F}return O(),j()}function g(v){return v?v.replace(a,p):p}return xp=y,xp}var r0;function cW(){if(r0)return oi;r0=1;var e=oi&&oi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(oi,"__esModule",{value:!0}),oi.default=n;const t=e(aW());function n(r,o){let i=null;if(!r||typeof r!="string")return i;const l=(0,t.default)(r),a=typeof o=="function";return l.forEach(c=>{if(c.type!=="declaration")return;const{property:u,value:d}=c;a?o(u,d,c):d&&(i=i||{},i[u]=d)}),i}return oi}var gl={},o0;function uW(){if(o0)return gl;o0=1,Object.defineProperty(gl,"__esModule",{value:!0}),gl.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,i=function(u){return!u||n.test(u)||e.test(u)},l=function(u,d){return d.toUpperCase()},a=function(u,d){return"".concat(d,"-")},c=function(u,d){return d===void 0&&(d={}),i(u)?u:(u=u.toLowerCase(),d.reactCompat?u=u.replace(o,a):u=u.replace(r,a),u.replace(t,l))};return gl.camelCase=c,gl}var bl,s0;function dW(){if(s0)return bl;s0=1;var e=bl&&bl.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(cW()),n=uW();function r(o,i){var l={};return!o||typeof o!="string"||(0,t.default)(o,function(a,c){a&&c&&(l[(0,n.camelCase)(a,i)]=c)}),l}return r.default=r,bl=r,bl}var pW=dW();const fW=vu(pW),B2=V2("end"),Bh=V2("start");function V2(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function mW(e){const t=Bh(e),n=B2(e);if(t&&n)return{start:t,end:n}}function Vl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?i0(e.position):"start"in e||"end"in e?i0(e):"line"in e||"column"in e?Ff(e):""}function Ff(e){return l0(e&&e.line)+":"+l0(e&&e.column)}function i0(e){return Ff(e&&e.start)+"-"+Ff(e&&e.end)}function l0(e){return e&&typeof e=="number"?e:1}class Mn extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",i={},l=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?o=t:!i.cause&&t&&(l=!0,o=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?i.ruleId=r:(i.source=r.slice(0,c),i.ruleId=r.slice(c+1))}if(!i.place&&i.ancestors&&i.ancestors){const c=i.ancestors[i.ancestors.length-1];c&&(i.place=c.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=a?a.line:void 0,this.name=Vl(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=l&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Mn.prototype.file="";Mn.prototype.name="";Mn.prototype.reason="";Mn.prototype.message="";Mn.prototype.stack="";Mn.prototype.column=void 0;Mn.prototype.line=void 0;Mn.prototype.ancestors=void 0;Mn.prototype.cause=void 0;Mn.prototype.fatal=void 0;Mn.prototype.place=void 0;Mn.prototype.ruleId=void 0;Mn.prototype.source=void 0;const Vh={}.hasOwnProperty,hW=new Map,gW=/[A-Z]/g,bW=new Set(["table","tbody","thead","tfoot","tr"]),yW=new Set(["td","th"]),H2="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function vW(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=IW(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=TW(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?zh:iW,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=G2(o,e,void 0);return i&&typeof i!="string"?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function G2(e,t,n){if(t.type==="element")return xW(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return CW(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return SW(e,t,n);if(t.type==="mdxjsEsm")return wW(e,t);if(t.type==="root")return kW(e,t,n);if(t.type==="text")return EW(e,t)}function xW(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=zh,e.schema=o),e.ancestors.push(t);const i=U2(e,t.tagName,!1),l=PW(e,t);let a=Gh(e,t);return bW.has(t.tagName)&&(a=a.filter(function(c){return typeof c=="string"?!XG(c):!0})),W2(e,l,i,t),Hh(l,a),e.ancestors.pop(),e.schema=r,e.create(t,i,l,n)}function CW(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}fa(e,t.position)}function wW(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);fa(e,t.position)}function SW(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=zh,e.schema=o),e.ancestors.push(t);const i=t.name===null?e.Fragment:U2(e,t.name,!0),l=OW(e,t),a=Gh(e,t);return W2(e,l,i,t),Hh(l,a),e.ancestors.pop(),e.schema=r,e.create(t,i,l,n)}function kW(e,t,n){const r={};return Hh(r,Gh(e,t)),e.create(t,e.Fragment,r,n)}function EW(e,t){return t.value}function W2(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Hh(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function TW(e,t,n){return r;function r(o,i,l,a){const u=Array.isArray(l.children)?n:t;return a?u(i,l,a):u(i,l)}}function IW(e,t){return n;function n(r,o,i,l){const a=Array.isArray(i.children),c=Bh(r);return t(o,i,l,a,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function PW(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&Vh.call(t.properties,o)){const i=MW(e,o,t.properties[o]);if(i){const[l,a]=i;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&yW.has(t.tagName)?r=a:n[l]=a}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function OW(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const l=i.expression;l.type;const a=l.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else fa(e,t.position);else{const o=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,i=e.evaluater.evaluateExpression(a.expression)}else fa(e,t.position);else i=r.value===null?!0:r.value;n[o]=i}return n}function Gh(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:hW;for(;++r<t.children.length;){const i=t.children[r];let l;if(e.passKeys){const c=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(c){const u=o.get(c)||0;l=c+"-"+u,o.set(c,u+1)}}const a=G2(e,i,l);a!==void 0&&n.push(a)}return n}function MW(e,t,n){const r=rW(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?WG(n):lW(n)),r.property==="style"){let o=typeof n=="object"?n:RW(e,String(n));return e.stylePropertyNameCase==="css"&&(o=jW(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?eW[r.property]||r.property:r.attribute,n]}}function RW(e,t){try{return fW(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,o=new Mn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=H2+"#cannot-parse-style-attribute",o}}function U2(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let i=-1,l;for(;++i<o.length;){const a=Q1(o[i])?{type:"Identifier",name:o[i]}:{type:"Literal",value:o[i]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(i&&a.type==="Literal"),optional:!1}:a}r=l}else r=Q1(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return Vh.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);fa(e)}function fa(e,t){const n=new Mn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=H2+"#cannot-handle-mdx-estrees-without-createevaluater",n}function jW(e){const t={};let n;for(n in e)Vh.call(e,n)&&(t[LW(n)]=e[n]);return t}function LW(e){let t=e.replace(gW,$W);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function $W(e){return"-"+e.toLowerCase()}const Cp={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},NW={};function FW(e,t){const n=NW,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return q2(e,r,o)}function q2(e,t,n){if(AW(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return a0(e.children,t,n)}return Array.isArray(e)?a0(e,t,n):""}function a0(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=q2(e[o],t,n);return r.join("")}function AW(e){return!!(e&&typeof e=="object")}const c0=document.createElement("i");function Wh(e){const t="&"+e+";";c0.innerHTML=t;const n=c0.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function uo(e,t,n,r){const o=e.length;let i=0,l;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);i<r.length;)l=r.slice(i,i+1e4),l.unshift(t,0),e.splice(...l),i+=1e4,t+=1e4}function pr(e,t){return e.length>0?(uo(e,e.length,0,t),e):t}const u0={}.hasOwnProperty;function DW(e){const t={};let n=-1;for(;++n<e.length;)_W(t,e[n]);return t}function _W(e,t){let n;for(n in t){const o=(u0.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let l;if(i)for(l in i){u0.call(o,l)||(o[l]=[]);const a=i[l];zW(o[l],Array.isArray(a)?a:a?[a]:[])}}}function zW(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);uo(e,0,0,r)}function K2(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function vi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Jr=ls(/[A-Za-z]/),er=ls(/[\dA-Za-z]/),BW=ls(/[#-'*+\--9=?A-Z^-~]/);function Af(e){return e!==null&&(e<32||e===127)}const Df=ls(/\d/),VW=ls(/[\dA-Fa-f]/),HW=ls(/[!-/:-@[-`{-~]/);function Ze(e){return e!==null&&e<-2}function Hn(e){return e!==null&&(e<0||e===32)}function Tt(e){return e===-2||e===-1||e===32}const GW=ls(/\p{P}|\p{S}/u),WW=ls(/\s/);function ls(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ki(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let l="";if(i===37&&er(e.charCodeAt(n+1))&&er(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(l=String.fromCharCode(i));else if(i>55295&&i<57344){const a=e.charCodeAt(n+1);i<56320&&a>56319&&a<57344?(l=String.fromCharCode(i,a),o=1):l="�"}else l=String.fromCharCode(i);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+o+1,l=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function Wt(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return l;function l(c){return Tt(c)?(e.enter(n),a(c)):t(c)}function a(c){return Tt(c)&&i++<o?(e.consume(c),a):(e.exit(n),t(c))}}const UW={tokenize:qW};function qW(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Wt(e,t,"linePrefix")}function o(a){return e.enter("paragraph"),i(a)}function i(a){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return Ze(a)?(e.consume(a),e.exit("chunkText"),i):(e.consume(a),l)}}const KW={tokenize:YW},d0={tokenize:XW};function YW(e){const t=this,n=[];let r=0,o,i,l;return a;function a(w){if(r<n.length){const k=n[r];return t.containerState=k[1],e.attempt(k[0].continuation,c,u)(w)}return u(w)}function c(w){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&S();const k=t.events.length;let E=k,T;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){T=t.events[E][1].end;break}x(r);let N=k;for(;N<t.events.length;)t.events[N][1].end={...T},N++;return uo(t.events,E+1,0,t.events.slice(k)),t.events.length=N,u(w)}return a(w)}function u(w){if(r===n.length){if(!o)return m(w);if(o.currentConstruct&&o.currentConstruct.concrete)return y(w);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(d0,d,p)(w)}function d(w){return o&&S(),x(r),m(w)}function p(w){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,y(w)}function m(w){return t.containerState={},e.attempt(d0,f,y)(w)}function f(w){return r++,n.push([t.currentConstruct,t.containerState]),m(w)}function y(w){if(w===null){o&&S(),x(0),e.consume(w);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:i}),g(w)}function g(w){if(w===null){v(e.exit("chunkFlow"),!0),x(0),e.consume(w);return}return Ze(w)?(e.consume(w),v(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(w),g)}function v(w,k){const E=t.sliceStream(w);if(k&&E.push(null),w.previous=i,i&&(i.next=w),i=w,o.defineSkip(w.start),o.write(E),t.parser.lazy[w.start.line]){let T=o.events.length;for(;T--;)if(o.events[T][1].start.offset<l&&(!o.events[T][1].end||o.events[T][1].end.offset>l))return;const N=t.events.length;let P=N,O,L;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(O){L=t.events[P][1].end;break}O=!0}for(x(r),T=N;T<t.events.length;)t.events[T][1].end={...L},T++;uo(t.events,P+1,0,t.events.slice(N)),t.events.length=T}}function x(w){let k=n.length;for(;k-- >w;){const E=n[k];t.containerState=E[1],E[0].exit.call(t,e)}n.length=w}function S(){o.write([null]),i=void 0,o=void 0,t.containerState._closeFlow=void 0}}function XW(e,t,n){return Wt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function p0(e){if(e===null||Hn(e)||WW(e))return 1;if(GW(e))return 2}function Uh(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const _f={name:"attention",resolveAll:ZW,tokenize:QW};function ZW(e,t){let n=-1,r,o,i,l,a,c,u,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p={...e[r][1].end},m={...e[n][1].start};f0(p,-c),f0(m,c),l={type:c>1?"strongSequence":"emphasisSequence",start:p,end:{...e[r][1].end}},a={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:m},i={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},o={type:c>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[n][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=pr(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=pr(u,[["enter",o,t],["enter",l,t],["exit",l,t],["enter",i,t]]),u=pr(u,Uh(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=pr(u,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=pr(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,uo(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function QW(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=p0(r);let i;return l;function l(c){return i=c,e.enter("attentionSequence"),a(c)}function a(c){if(c===i)return e.consume(c),a;const u=e.exit("attentionSequence"),d=p0(c),p=!d||d===2&&o||n.includes(c),m=!o||o===2&&d||n.includes(r);return u._open=!!(i===42?p:p&&(o||!m)),u._close=!!(i===42?m:m&&(d||!p)),t(c)}}function f0(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const JW={name:"autolink",tokenize:eU};function eU(e,t,n){let r=0;return o;function o(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(f){return Jr(f)?(e.consume(f),l):f===64?n(f):u(f)}function l(f){return f===43||f===45||f===46||er(f)?(r=1,a(f)):u(f)}function a(f){return f===58?(e.consume(f),r=0,c):(f===43||f===45||f===46||er(f))&&r++<32?(e.consume(f),a):(r=0,u(f))}function c(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||Af(f)?n(f):(e.consume(f),c)}function u(f){return f===64?(e.consume(f),d):BW(f)?(e.consume(f),u):n(f)}function d(f){return er(f)?p(f):n(f)}function p(f){return f===46?(e.consume(f),r=0,d):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):m(f)}function m(f){if((f===45||er(f))&&r++<63){const y=f===45?m:p;return e.consume(f),y}return n(f)}}const xd={partial:!0,tokenize:tU};function tU(e,t,n){return r;function r(i){return Tt(i)?Wt(e,o,"linePrefix")(i):o(i)}function o(i){return i===null||Ze(i)?t(i):n(i)}}const Y2={continuation:{tokenize:rU},exit:oU,name:"blockQuote",tokenize:nU};function nU(e,t,n){const r=this;return o;function o(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),i}return n(l)}function i(l){return Tt(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function rU(e,t,n){const r=this;return o;function o(l){return Tt(l)?Wt(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):i(l)}function i(l){return e.attempt(Y2,t,n)(l)}}function oU(e){e.exit("blockQuote")}const X2={name:"characterEscape",tokenize:sU};function sU(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),o}function o(i){return HW(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const Z2={name:"characterReference",tokenize:iU};function iU(e,t,n){const r=this;let o=0,i,l;return a;function a(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),c}function c(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,l=er,d(p))}function u(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,l=VW,d):(e.enter("characterReferenceValue"),i=7,l=Df,d(p))}function d(p){if(p===59&&o){const m=e.exit("characterReferenceValue");return l===er&&!Wh(r.sliceSerialize(m))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(p)&&o++<i?(e.consume(p),d):n(p)}}const m0={partial:!0,tokenize:aU},h0={concrete:!0,name:"codeFenced",tokenize:lU};function lU(e,t,n){const r=this,o={partial:!0,tokenize:E};let i=0,l=0,a;return c;function c(T){return u(T)}function u(T){const N=r.events[r.events.length-1];return i=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,a=T,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(T)}function d(T){return T===a?(l++,e.consume(T),d):l<3?n(T):(e.exit("codeFencedFenceSequence"),Tt(T)?Wt(e,p,"whitespace")(T):p(T))}function p(T){return T===null||Ze(T)?(e.exit("codeFencedFence"),r.interrupt?t(T):e.check(m0,g,k)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(T))}function m(T){return T===null||Ze(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(T)):Tt(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Wt(e,f,"whitespace")(T)):T===96&&T===a?n(T):(e.consume(T),m)}function f(T){return T===null||Ze(T)?p(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(T))}function y(T){return T===null||Ze(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(T)):T===96&&T===a?n(T):(e.consume(T),y)}function g(T){return e.attempt(o,k,v)(T)}function v(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),x}function x(T){return i>0&&Tt(T)?Wt(e,S,"linePrefix",i+1)(T):S(T)}function S(T){return T===null||Ze(T)?e.check(m0,g,k)(T):(e.enter("codeFlowValue"),w(T))}function w(T){return T===null||Ze(T)?(e.exit("codeFlowValue"),S(T)):(e.consume(T),w)}function k(T){return e.exit("codeFenced"),t(T)}function E(T,N,P){let O=0;return L;function L(M){return T.enter("lineEnding"),T.consume(M),T.exit("lineEnding"),$}function $(M){return T.enter("codeFencedFence"),Tt(M)?Wt(T,C,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):C(M)}function C(M){return M===a?(T.enter("codeFencedFenceSequence"),j(M)):P(M)}function j(M){return M===a?(O++,T.consume(M),j):O>=l?(T.exit("codeFencedFenceSequence"),Tt(M)?Wt(T,F,"whitespace")(M):F(M)):P(M)}function F(M){return M===null||Ze(M)?(T.exit("codeFencedFence"),N(M)):P(M)}}}function aU(e,t,n){const r=this;return o;function o(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i)}function i(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const wp={name:"codeIndented",tokenize:uU},cU={partial:!0,tokenize:dU};function uU(e,t,n){const r=this;return o;function o(u){return e.enter("codeIndented"),Wt(e,i,"linePrefix",5)(u)}function i(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(u):n(u)}function l(u){return u===null?c(u):Ze(u)?e.attempt(cU,l,c)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||Ze(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),a)}function c(u){return e.exit("codeIndented"),t(u)}}function dU(e,t,n){const r=this;return o;function o(l){return r.parser.lazy[r.now().line]?n(l):Ze(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):Wt(e,i,"linePrefix",5)(l)}function i(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):Ze(l)?o(l):n(l)}}const pU={name:"codeText",previous:mU,resolve:fU,tokenize:hU};function fU(e){let t=e.length-4,n=3,r,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)o===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(o=r):(r===t||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),t-=r-o-2,r=o+2),o=void 0);return e}function mU(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function hU(e,t,n){let r=0,o,i;return l;function l(p){return e.enter("codeText"),e.enter("codeTextSequence"),a(p)}function a(p){return p===96?(e.consume(p),r++,a):(e.exit("codeTextSequence"),c(p))}function c(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),c):p===96?(i=e.enter("codeTextSequence"),o=0,d(p)):Ze(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(p))}function u(p){return p===null||p===32||p===96||Ze(p)?(e.exit("codeTextData"),c(p)):(e.consume(p),u)}function d(p){return p===96?(e.consume(p),o++,d):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(i.type="codeTextData",u(p))}}class gU{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n==null?Number.POSITIVE_INFINITY:n;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const o=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&yl(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),yl(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),yl(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);yl(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);yl(this.left,n.reverse())}}}function yl(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Q2(e){const t={};let n=-1,r,o,i,l,a,c,u;const d=new gU(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,i=0,i<c.length&&c[i][1].type==="lineEndingBlank"&&(i+=2),i<c.length&&c[i][1].type==="content"))for(;++i<c.length&&c[i][1].type!=="content";)c[i][1].type==="chunkText"&&(c[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,bU(d,n)),n=t[n],u=!0);else if(r[1]._container){for(i=n,o=void 0;i--;)if(l=d.get(i),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(o&&(d.get(o)[1].type="lineEndingBlank"),l[1].type="lineEnding",o=i);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;o&&(r[1].end={...d.get(o)[1].start},a=d.slice(o,n),a.unshift(r),d.splice(o,n-o+1,a))}}return uo(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function bU(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,c=[],u={};let d,p,m=-1,f=n,y=0,g=0;const v=[g];for(;f;){for(;e.get(++o)[1]!==f;);i.push(o),f._tokenizer||(d=r.sliceStream(f),f.next||d.push(null),p&&l.defineSkip(f.start),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(d),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),p=f,f=f.next}for(f=n;++m<a.length;)a[m][0]==="exit"&&a[m-1][0]==="enter"&&a[m][1].type===a[m-1][1].type&&a[m][1].start.line!==a[m][1].end.line&&(g=m+1,v.push(g),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(l.events=[],f?(f._tokenizer=void 0,f.previous=void 0):v.pop(),m=v.length;m--;){const x=a.slice(v[m],v[m+1]),S=i.pop();c.push([S,S+x.length-1]),e.splice(S,2,x)}for(c.reverse(),m=-1;++m<c.length;)u[y+c[m][0]]=y+c[m][1],y+=c[m][1]-c[m][0]-1;return u}const yU={resolve:xU,tokenize:CU},vU={partial:!0,tokenize:wU};function xU(e){return Q2(e),e}function CU(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(a)}function o(a){return a===null?i(a):Ze(a)?e.check(vU,l,i)(a):(e.consume(a),o)}function i(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function l(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function wU(e,t,n){const r=this;return o;function o(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Wt(e,i,"linePrefix")}function i(l){if(l===null||Ze(l))return n(l);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function J2(e,t,n,r,o,i,l,a,c){const u=c||Number.POSITIVE_INFINITY;let d=0;return p;function p(x){return x===60?(e.enter(r),e.enter(o),e.enter(i),e.consume(x),e.exit(i),m):x===null||x===32||x===41||Af(x)?n(x):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),g(x))}function m(x){return x===62?(e.enter(i),e.consume(x),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),f(x))}function f(x){return x===62?(e.exit("chunkString"),e.exit(a),m(x)):x===null||x===60||Ze(x)?n(x):(e.consume(x),x===92?y:f)}function y(x){return x===60||x===62||x===92?(e.consume(x),f):f(x)}function g(x){return!d&&(x===null||x===41||Hn(x))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(x)):d<u&&x===40?(e.consume(x),d++,g):x===41?(e.consume(x),d--,g):x===null||x===32||x===40||Af(x)?n(x):(e.consume(x),x===92?v:g)}function v(x){return x===40||x===41||x===92?(e.consume(x),g):g(x)}}function ek(e,t,n,r,o,i){const l=this;let a=0,c;return u;function u(f){return e.enter(r),e.enter(o),e.consume(f),e.exit(o),e.enter(i),d}function d(f){return a>999||f===null||f===91||f===93&&!c||f===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(f):f===93?(e.exit(i),e.enter(o),e.consume(f),e.exit(o),e.exit(r),t):Ze(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),p(f))}function p(f){return f===null||f===91||f===93||Ze(f)||a++>999?(e.exit("chunkString"),d(f)):(e.consume(f),c||(c=!Tt(f)),f===92?m:p)}function m(f){return f===91||f===92||f===93?(e.consume(f),a++,p):p(f)}}function tk(e,t,n,r,o,i){let l;return a;function a(m){return m===34||m===39||m===40?(e.enter(r),e.enter(o),e.consume(m),e.exit(o),l=m===40?41:m,c):n(m)}function c(m){return m===l?(e.enter(o),e.consume(m),e.exit(o),e.exit(r),t):(e.enter(i),u(m))}function u(m){return m===l?(e.exit(i),c(l)):m===null?n(m):Ze(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Wt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===l||m===null||Ze(m)?(e.exit("chunkString"),u(m)):(e.consume(m),m===92?p:d)}function p(m){return m===l||m===92?(e.consume(m),d):d(m)}}function Hl(e,t){let n;return r;function r(o){return Ze(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):Tt(o)?Wt(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const SU={name:"definition",tokenize:EU},kU={partial:!0,tokenize:TU};function EU(e,t,n){const r=this;let o;return i;function i(f){return e.enter("definition"),l(f)}function l(f){return ek.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function a(f){return o=vi(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),c):n(f)}function c(f){return Hn(f)?Hl(e,u)(f):u(f)}function u(f){return J2(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function d(f){return e.attempt(kU,p,p)(f)}function p(f){return Tt(f)?Wt(e,m,"whitespace")(f):m(f)}function m(f){return f===null||Ze(f)?(e.exit("definition"),r.parser.defined.push(o),t(f)):n(f)}}function TU(e,t,n){return r;function r(a){return Hn(a)?Hl(e,o)(a):n(a)}function o(a){return tk(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return Tt(a)?Wt(e,l,"whitespace")(a):l(a)}function l(a){return a===null||Ze(a)?t(a):n(a)}}const IU={name:"hardBreakEscape",tokenize:PU};function PU(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),o}function o(i){return Ze(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const OU={name:"headingAtx",resolve:MU,tokenize:RU};function MU(e,t){let n=e.length-2,r=3,o,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},uo(e,r,n-r+1,[["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t]])),e}function RU(e,t,n){let r=0;return o;function o(d){return e.enter("atxHeading"),i(d)}function i(d){return e.enter("atxHeadingSequence"),l(d)}function l(d){return d===35&&r++<6?(e.consume(d),l):d===null||Hn(d)?(e.exit("atxHeadingSequence"),a(d)):n(d)}function a(d){return d===35?(e.enter("atxHeadingSequence"),c(d)):d===null||Ze(d)?(e.exit("atxHeading"),t(d)):Tt(d)?Wt(e,a,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function c(d){return d===35?(e.consume(d),c):(e.exit("atxHeadingSequence"),a(d))}function u(d){return d===null||d===35||Hn(d)?(e.exit("atxHeadingText"),a(d)):(e.consume(d),u)}}const jU=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],g0=["pre","script","style","textarea"],LU={concrete:!0,name:"htmlFlow",resolveTo:FU,tokenize:AU},$U={partial:!0,tokenize:_U},NU={partial:!0,tokenize:DU};function FU(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function AU(e,t,n){const r=this;let o,i,l,a,c;return u;function u(A){return d(A)}function d(A){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(A),p}function p(A){return A===33?(e.consume(A),m):A===47?(e.consume(A),i=!0,g):A===63?(e.consume(A),o=3,r.interrupt?t:I):Jr(A)?(e.consume(A),l=String.fromCharCode(A),v):n(A)}function m(A){return A===45?(e.consume(A),o=2,f):A===91?(e.consume(A),o=5,a=0,y):Jr(A)?(e.consume(A),o=4,r.interrupt?t:I):n(A)}function f(A){return A===45?(e.consume(A),r.interrupt?t:I):n(A)}function y(A){const K="CDATA[";return A===K.charCodeAt(a++)?(e.consume(A),a===K.length?r.interrupt?t:C:y):n(A)}function g(A){return Jr(A)?(e.consume(A),l=String.fromCharCode(A),v):n(A)}function v(A){if(A===null||A===47||A===62||Hn(A)){const K=A===47,Y=l.toLowerCase();return!K&&!i&&g0.includes(Y)?(o=1,r.interrupt?t(A):C(A)):jU.includes(l.toLowerCase())?(o=6,K?(e.consume(A),x):r.interrupt?t(A):C(A)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(A):i?S(A):w(A))}return A===45||er(A)?(e.consume(A),l+=String.fromCharCode(A),v):n(A)}function x(A){return A===62?(e.consume(A),r.interrupt?t:C):n(A)}function S(A){return Tt(A)?(e.consume(A),S):L(A)}function w(A){return A===47?(e.consume(A),L):A===58||A===95||Jr(A)?(e.consume(A),k):Tt(A)?(e.consume(A),w):L(A)}function k(A){return A===45||A===46||A===58||A===95||er(A)?(e.consume(A),k):E(A)}function E(A){return A===61?(e.consume(A),T):Tt(A)?(e.consume(A),E):w(A)}function T(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),c=A,N):Tt(A)?(e.consume(A),T):P(A)}function N(A){return A===c?(e.consume(A),c=null,O):A===null||Ze(A)?n(A):(e.consume(A),N)}function P(A){return A===null||A===34||A===39||A===47||A===60||A===61||A===62||A===96||Hn(A)?E(A):(e.consume(A),P)}function O(A){return A===47||A===62||Tt(A)?w(A):n(A)}function L(A){return A===62?(e.consume(A),$):n(A)}function $(A){return A===null||Ze(A)?C(A):Tt(A)?(e.consume(A),$):n(A)}function C(A){return A===45&&o===2?(e.consume(A),R):A===60&&o===1?(e.consume(A),_):A===62&&o===4?(e.consume(A),D):A===63&&o===3?(e.consume(A),I):A===93&&o===5?(e.consume(A),W):Ze(A)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check($U,G,j)(A)):A===null||Ze(A)?(e.exit("htmlFlowData"),j(A)):(e.consume(A),C)}function j(A){return e.check(NU,F,G)(A)}function F(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),M}function M(A){return A===null||Ze(A)?j(A):(e.enter("htmlFlowData"),C(A))}function R(A){return A===45?(e.consume(A),I):C(A)}function _(A){return A===47?(e.consume(A),l="",V):C(A)}function V(A){if(A===62){const K=l.toLowerCase();return g0.includes(K)?(e.consume(A),D):C(A)}return Jr(A)&&l.length<8?(e.consume(A),l+=String.fromCharCode(A),V):C(A)}function W(A){return A===93?(e.consume(A),I):C(A)}function I(A){return A===62?(e.consume(A),D):A===45&&o===2?(e.consume(A),I):C(A)}function D(A){return A===null||Ze(A)?(e.exit("htmlFlowData"),G(A)):(e.consume(A),D)}function G(A){return e.exit("htmlFlow"),t(A)}}function DU(e,t,n){const r=this;return o;function o(l){return Ze(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):n(l)}function i(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function _U(e,t,n){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(xd,t,n)}}const zU={name:"htmlText",tokenize:BU};function BU(e,t,n){const r=this;let o,i,l;return a;function a(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),c}function c(I){return I===33?(e.consume(I),u):I===47?(e.consume(I),E):I===63?(e.consume(I),w):Jr(I)?(e.consume(I),P):n(I)}function u(I){return I===45?(e.consume(I),d):I===91?(e.consume(I),i=0,y):Jr(I)?(e.consume(I),S):n(I)}function d(I){return I===45?(e.consume(I),f):n(I)}function p(I){return I===null?n(I):I===45?(e.consume(I),m):Ze(I)?(l=p,_(I)):(e.consume(I),p)}function m(I){return I===45?(e.consume(I),f):p(I)}function f(I){return I===62?R(I):I===45?m(I):p(I)}function y(I){const D="CDATA[";return I===D.charCodeAt(i++)?(e.consume(I),i===D.length?g:y):n(I)}function g(I){return I===null?n(I):I===93?(e.consume(I),v):Ze(I)?(l=g,_(I)):(e.consume(I),g)}function v(I){return I===93?(e.consume(I),x):g(I)}function x(I){return I===62?R(I):I===93?(e.consume(I),x):g(I)}function S(I){return I===null||I===62?R(I):Ze(I)?(l=S,_(I)):(e.consume(I),S)}function w(I){return I===null?n(I):I===63?(e.consume(I),k):Ze(I)?(l=w,_(I)):(e.consume(I),w)}function k(I){return I===62?R(I):w(I)}function E(I){return Jr(I)?(e.consume(I),T):n(I)}function T(I){return I===45||er(I)?(e.consume(I),T):N(I)}function N(I){return Ze(I)?(l=N,_(I)):Tt(I)?(e.consume(I),N):R(I)}function P(I){return I===45||er(I)?(e.consume(I),P):I===47||I===62||Hn(I)?O(I):n(I)}function O(I){return I===47?(e.consume(I),R):I===58||I===95||Jr(I)?(e.consume(I),L):Ze(I)?(l=O,_(I)):Tt(I)?(e.consume(I),O):R(I)}function L(I){return I===45||I===46||I===58||I===95||er(I)?(e.consume(I),L):$(I)}function $(I){return I===61?(e.consume(I),C):Ze(I)?(l=$,_(I)):Tt(I)?(e.consume(I),$):O(I)}function C(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),o=I,j):Ze(I)?(l=C,_(I)):Tt(I)?(e.consume(I),C):(e.consume(I),F)}function j(I){return I===o?(e.consume(I),o=void 0,M):I===null?n(I):Ze(I)?(l=j,_(I)):(e.consume(I),j)}function F(I){return I===null||I===34||I===39||I===60||I===61||I===96?n(I):I===47||I===62||Hn(I)?O(I):(e.consume(I),F)}function M(I){return I===47||I===62||Hn(I)?O(I):n(I)}function R(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),t):n(I)}function _(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),V}function V(I){return Tt(I)?Wt(e,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):W(I)}function W(I){return e.enter("htmlTextData"),l(I)}}const qh={name:"labelEnd",resolveAll:WU,resolveTo:UU,tokenize:qU},VU={tokenize:KU},HU={tokenize:YU},GU={tokenize:XU};function WU(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",t+=o}}return e.length!==n.length&&uo(e,0,e.length,n),e}function UU(e,t){let n=e.length,r=0,o,i,l,a;for(;n--;)if(o=e[n][1],i){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(i=n,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(l=n);const c={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[l][1].end}},d={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",c,t],["enter",u,t]],a=pr(a,e.slice(i+1,i+r+3)),a=pr(a,[["enter",d,t]]),a=pr(a,Uh(t.parser.constructs.insideSpan.null,e.slice(i+r+4,l-3),t)),a=pr(a,[["exit",d,t],e[l-2],e[l-1],["exit",u,t]]),a=pr(a,e.slice(l+1)),a=pr(a,[["exit",c,t]]),uo(e,i,e.length,a),e}function qU(e,t,n){const r=this;let o=r.events.length,i,l;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){i=r.events[o][1];break}return a;function a(m){return i?i._inactive?p(m):(l=r.parser.defined.includes(vi(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),c):n(m)}function c(m){return m===40?e.attempt(VU,d,l?d:p)(m):m===91?e.attempt(HU,d,l?u:p)(m):l?d(m):p(m)}function u(m){return e.attempt(GU,d,p)(m)}function d(m){return t(m)}function p(m){return i._balanced=!0,n(m)}}function KU(e,t,n){return r;function r(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),o}function o(p){return Hn(p)?Hl(e,i)(p):i(p)}function i(p){return p===41?d(p):J2(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function l(p){return Hn(p)?Hl(e,c)(p):d(p)}function a(p){return n(p)}function c(p){return p===34||p===39||p===40?tk(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):d(p)}function u(p){return Hn(p)?Hl(e,d)(p):d(p)}function d(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function YU(e,t,n){const r=this;return o;function o(a){return ek.call(r,e,i,l,"reference","referenceMarker","referenceString")(a)}function i(a){return r.parser.defined.includes(vi(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function l(a){return n(a)}}function XU(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),o}function o(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const ZU={name:"labelStartImage",resolveAll:qh.resolveAll,tokenize:QU};function QU(e,t,n){const r=this;return o;function o(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),i}function i(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):n(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const JU={name:"labelStartLink",resolveAll:qh.resolveAll,tokenize:eq};function eq(e,t,n){const r=this;return o;function o(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),i}function i(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const Sp={name:"lineEnding",tokenize:tq};function tq(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Wt(e,t,"linePrefix")}}const Fc={name:"thematicBreak",tokenize:nq};function nq(e,t,n){let r=0,o;return i;function i(u){return e.enter("thematicBreak"),l(u)}function l(u){return o=u,a(u)}function a(u){return u===o?(e.enter("thematicBreakSequence"),c(u)):r>=3&&(u===null||Ze(u))?(e.exit("thematicBreak"),t(u)):n(u)}function c(u){return u===o?(e.consume(u),r++,c):(e.exit("thematicBreakSequence"),Tt(u)?Wt(e,a,"whitespace")(u):a(u))}}const Dn={continuation:{tokenize:iq},exit:aq,name:"list",tokenize:sq},rq={partial:!0,tokenize:cq},oq={partial:!0,tokenize:lq};function sq(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,l=0;return a;function a(f){const y=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:Df(f)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Fc,n,u)(f):u(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(f)}return n(f)}function c(f){return Df(f)&&++l<10?(e.consume(f),c):(!r.interrupt||l<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),u(f)):n(f)}function u(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(xd,r.interrupt?n:d,e.attempt(rq,m,p))}function d(f){return r.containerState.initialBlankLine=!0,i++,m(f)}function p(f){return Tt(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),m):n(f)}function m(f){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function iq(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(xd,o,i);function o(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Wt(e,t,"listItemIndent",r.containerState.size+1)(a)}function i(a){return r.containerState.furtherBlankLines||!Tt(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(oq,t,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,Wt(e,e.attempt(Dn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function lq(e,t,n){const r=this;return Wt(e,o,"listItemIndent",r.containerState.size+1);function o(i){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(i):n(i)}}function aq(e){e.exit(this.containerState.type)}function cq(e,t,n){const r=this;return Wt(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(i){const l=r.events[r.events.length-1];return!Tt(i)&&l&&l[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const b0={name:"setextUnderline",resolveTo:uq,tokenize:dq};function uq(e,t){let n=e.length,r,o,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",i?(e.splice(o,0,["enter",l,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function dq(e,t,n){const r=this;let o;return i;function i(u){let d=r.events.length,p;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){p=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter("setextHeadingLine"),o=u,l(u)):n(u)}function l(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===o?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),Tt(u)?Wt(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||Ze(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const pq={tokenize:fq};function fq(e){const t=this,n=e.attempt(xd,r,e.attempt(this.parser.constructs.flowInitial,o,Wt(e,e.attempt(this.parser.constructs.flow,o,e.attempt(yU,o)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const mq={resolveAll:rk()},hq=nk("string"),gq=nk("text");function nk(e){return{resolveAll:rk(e==="text"?bq:void 0),tokenize:t};function t(n){const r=this,o=this.parser.constructs[e],i=n.attempt(o,l,a);return l;function l(d){return u(d)?i(d):a(d)}function a(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),c}function c(d){return u(d)?(n.exit("data"),i(d)):(n.consume(d),c)}function u(d){if(d===null)return!0;const p=o[d];let m=-1;if(p)for(;++m<p.length;){const f=p[m];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function rk(e){return t;function t(n,r){let o=-1,i;for(;++o<=n.length;)i===void 0?n[o]&&n[o][1].type==="data"&&(i=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==i+2&&(n[i][1].end=n[o-1][1].end,n.splice(i+2,o-i-2),o=i+2),i=void 0);return e?e(n,r):n}}function bq(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],o=t.sliceStream(r);let i=o.length,l=-1,a=0,c;for(;i--;){const u=o[i];if(typeof u=="string"){for(l=u.length;u.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(u===-2)c=!0,a++;else if(u!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||c||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?l:r.start._bufferIndex+l,_index:r.start._index+i,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const yq={42:Dn,43:Dn,45:Dn,48:Dn,49:Dn,50:Dn,51:Dn,52:Dn,53:Dn,54:Dn,55:Dn,56:Dn,57:Dn,62:Y2},vq={91:SU},xq={[-2]:wp,[-1]:wp,32:wp},Cq={35:OU,42:Fc,45:[b0,Fc],60:LU,61:b0,95:Fc,96:h0,126:h0},wq={38:Z2,92:X2},Sq={[-5]:Sp,[-4]:Sp,[-3]:Sp,33:ZU,38:Z2,42:_f,60:[JW,zU],91:JU,92:[IU,X2],93:qh,95:_f,96:pU},kq={null:[_f,mq]},Eq={null:[42,95]},Tq={null:[]},Iq=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Eq,contentInitial:vq,disable:Tq,document:yq,flow:Cq,flowInitial:xq,insideSpan:kq,string:wq,text:Sq},Symbol.toStringTag,{value:"Module"}));function Pq(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let l=[],a=[];const c={attempt:N(E),check:N(T),consume:S,enter:w,exit:k,interrupt:N(T,{interrupt:!0})},u={code:null,containerState:{},defineSkip:g,events:[],now:y,parser:e,previous:null,sliceSerialize:m,sliceStream:f,write:p};let d=t.tokenize.call(u,c);return t.resolveAll&&i.push(t),u;function p($){return l=pr(l,$),v(),l[l.length-1]!==null?[]:(P(t,0),u.events=Uh(i,u.events,u),u.events)}function m($,C){return Mq(f($),C)}function f($){return Oq(l,$)}function y(){const{_bufferIndex:$,_index:C,line:j,column:F,offset:M}=r;return{_bufferIndex:$,_index:C,line:j,column:F,offset:M}}function g($){o[$.line]=$.column,L()}function v(){let $;for(;r._index<l.length;){const C=l[r._index];if(typeof C=="string")for($=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===$&&r._bufferIndex<C.length;)x(C.charCodeAt(r._bufferIndex));else x(C)}}function x($){d=d($)}function S($){Ze($)?(r.line++,r.column=1,r.offset+=$===-3?2:1,L()):$!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=$}function w($,C){const j=C||{};return j.type=$,j.start=y(),u.events.push(["enter",j,u]),a.push(j),j}function k($){const C=a.pop();return C.end=y(),u.events.push(["exit",C,u]),C}function E($,C){P($,C.from)}function T($,C){C.restore()}function N($,C){return j;function j(F,M,R){let _,V,W,I;return Array.isArray(F)?G(F):"tokenize"in F?G([F]):D(F);function D(U){return q;function q(Z){const X=Z!==null&&U[Z],Q=Z!==null&&U.null,re=[...Array.isArray(X)?X:X?[X]:[],...Array.isArray(Q)?Q:Q?[Q]:[]];return G(re)(Z)}}function G(U){return _=U,V=0,U.length===0?R:A(U[V])}function A(U){return q;function q(Z){return I=O(),W=U,U.partial||(u.currentConstruct=U),U.name&&u.parser.constructs.disable.null.includes(U.name)?Y():U.tokenize.call(C?Object.assign(Object.create(u),C):u,c,K,Y)(Z)}}function K(U){return $(W,I),M}function Y(U){return I.restore(),++V<_.length?A(_[V]):R}}}function P($,C){$.resolveAll&&!i.includes($)&&i.push($),$.resolve&&uo(u.events,C,u.events.length-C,$.resolve(u.events.slice(C),u)),$.resolveTo&&(u.events=$.resolveTo(u.events,u))}function O(){const $=y(),C=u.previous,j=u.currentConstruct,F=u.events.length,M=Array.from(a);return{from:F,restore:R};function R(){r=$,u.previous=C,u.currentConstruct=j,u.events.length=F,a=M,L()}}function L(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function Oq(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let l;if(n===o)l=[e[n].slice(r,i)];else{if(l=e.slice(n,o),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}i>0&&l.push(e[o].slice(0,i))}return l}function Mq(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let l;if(typeof i=="string")l=i;else switch(i){case-5:{l="\r";break}case-4:{l=`
|
|
1261
|
+
`;break}case-3:{l=`\r
|
|
1262
|
+
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&o)continue;l=" ";break}default:l=String.fromCharCode(i)}o=i===-2,r.push(l)}return r.join("")}function Rq(e){const r={constructs:DW([Iq,...(e||{}).extensions||[]]),content:o(UW),defined:[],document:o(KW),flow:o(pq),lazy:{},string:o(hq),text:o(gq)};return r;function o(i){return l;function l(a){return Pq(r,i,a)}}}function jq(e){for(;!Q2(e););return e}const y0=/[\0\t\n\r]/g;function Lq(){let e=1,t="",n=!0,r;return o;function o(i,l,a){const c=[];let u,d,p,m,f;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(l||void 0).decode(i)),p=0,t="",n&&(i.charCodeAt(0)===65279&&p++,n=void 0);p<i.length;){if(y0.lastIndex=p,u=y0.exec(i),m=u&&u.index!==void 0?u.index:i.length,f=i.charCodeAt(m),!u){t=i.slice(p);break}if(f===10&&p===m&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),p<m&&(c.push(i.slice(p,m)),e+=m-p),f){case 0:{c.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,c.push(-2);e++<d;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}p=m+1}return a&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}const $q=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Nq(e){return e.replace($q,Fq)}function Fq(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),i=o===120||o===88;return K2(n.slice(i?2:1),i?16:10)}return Wh(n)||e}const ok={}.hasOwnProperty;function Aq(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),Dq(n)(jq(Rq(n).document().write(Lq()(e,t,!0))))}function Dq(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(Se),autolinkProtocol:O,autolinkEmail:O,atxHeading:i(fe),blockQuote:i(Q),characterEscape:O,characterReference:O,codeFenced:i(re),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:i(re,l),codeText:i(J,l),codeTextData:O,data:O,codeFlowValue:O,definition:i(oe),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:i(te),hardBreakEscape:i(ve),hardBreakTrailing:i(ve),htmlFlow:i(Ce,l),htmlFlowData:O,htmlText:i(Ce,l),htmlTextData:O,image:i(xe),label:l,link:i(Se),listItem:i(Ae),listItemValue:m,listOrdered:i(Oe,p),listUnordered:i(Oe),paragraph:i(se),reference:A,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:i(fe),strong:i(Ge),thematicBreak:i(Ye)},exit:{atxHeading:c(),atxHeadingSequence:E,autolink:c(),autolinkEmail:X,autolinkProtocol:Z,blockQuote:c(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:Y,characterReferenceMarkerNumeric:Y,characterReferenceValue:U,characterReference:q,codeFenced:c(v),codeFencedFence:g,codeFencedFenceInfo:f,codeFencedFenceMeta:y,codeFlowValue:L,codeIndented:c(x),codeText:c(M),codeTextData:L,data:L,definition:c(),definitionDestinationString:k,definitionLabelString:S,definitionTitleString:w,emphasis:c(),hardBreakEscape:c(C),hardBreakTrailing:c(C),htmlFlow:c(j),htmlFlowData:L,htmlText:c(F),htmlTextData:L,image:c(_),label:W,labelText:V,lineEnding:$,link:c(R),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:K,resourceDestinationString:I,resourceTitleString:D,resource:G,setextHeading:c(P),setextHeadingLineSequence:N,setextHeadingText:T,strong:c(),thematicBreak:c()}};sk(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ee){let de={type:"root",children:[]};const he={stack:[de],tokenStack:[],config:t,enter:a,exit:u,buffer:l,resume:d,data:n},ae=[];let ge=-1;for(;++ge<ee.length;)if(ee[ge][1].type==="listOrdered"||ee[ge][1].type==="listUnordered")if(ee[ge][0]==="enter")ae.push(ge);else{const be=ae.pop();ge=o(ee,be,ge)}for(ge=-1;++ge<ee.length;){const be=t[ee[ge][0]];ok.call(be,ee[ge][1].type)&&be[ee[ge][1].type].call(Object.assign({sliceSerialize:ee[ge][2].sliceSerialize},he),ee[ge][1])}if(he.tokenStack.length>0){const be=he.tokenStack[he.tokenStack.length-1];(be[1]||v0).call(he,void 0,be[0])}for(de.position={start:Lo(ee.length>0?ee[0][1].start:{line:1,column:1,offset:0}),end:Lo(ee.length>0?ee[ee.length-2][1].end:{line:1,column:1,offset:0})},ge=-1;++ge<t.transforms.length;)de=t.transforms[ge](de)||de;return de}function o(ee,de,he){let ae=de-1,ge=-1,be=!1,Te,_e,ke,ct;for(;++ae<=he;){const it=ee[ae];switch(it[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{it[0]==="enter"?ge++:ge--,ct=void 0;break}case"lineEndingBlank":{it[0]==="enter"&&(Te&&!ct&&!ge&&!ke&&(ke=ae),ct=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ct=void 0}if(!ge&&it[0]==="enter"&&it[1].type==="listItemPrefix"||ge===-1&&it[0]==="exit"&&(it[1].type==="listUnordered"||it[1].type==="listOrdered")){if(Te){let Pt=ae;for(_e=void 0;Pt--;){const qe=ee[Pt];if(qe[1].type==="lineEnding"||qe[1].type==="lineEndingBlank"){if(qe[0]==="exit")continue;_e&&(ee[_e][1].type="lineEndingBlank",be=!0),qe[1].type="lineEnding",_e=Pt}else if(!(qe[1].type==="linePrefix"||qe[1].type==="blockQuotePrefix"||qe[1].type==="blockQuotePrefixWhitespace"||qe[1].type==="blockQuoteMarker"||qe[1].type==="listItemIndent"))break}ke&&(!_e||ke<_e)&&(Te._spread=!0),Te.end=Object.assign({},_e?ee[_e][1].start:it[1].end),ee.splice(_e||ae,0,["exit",Te,it[2]]),ae++,he++}if(it[1].type==="listItemPrefix"){const Pt={type:"listItem",_spread:!1,start:Object.assign({},it[1].start),end:void 0};Te=Pt,ee.splice(ae,0,["enter",Pt,it[2]]),ae++,he++,ke=void 0,ct=!0}}}return ee[de][1]._spread=be,he}function i(ee,de){return he;function he(ae){a.call(this,ee(ae),ae),de&&de.call(this,ae)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(ee,de,he){this.stack[this.stack.length-1].children.push(ee),this.stack.push(ee),this.tokenStack.push([de,he||void 0]),ee.position={start:Lo(de.start),end:void 0}}function c(ee){return de;function de(he){ee&&ee.call(this,he),u.call(this,he)}}function u(ee,de){const he=this.stack.pop(),ae=this.tokenStack.pop();if(ae)ae[0].type!==ee.type&&(de?de.call(this,ee,ae[0]):(ae[1]||v0).call(this,ee,ae[0]));else throw new Error("Cannot close `"+ee.type+"` ("+Vl({start:ee.start,end:ee.end})+"): it’s not open");he.position.end=Lo(ee.end)}function d(){return FW(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function m(ee){if(this.data.expectingFirstListItemValue){const de=this.stack[this.stack.length-2];de.start=Number.parseInt(this.sliceSerialize(ee),10),this.data.expectingFirstListItemValue=void 0}}function f(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.lang=ee}function y(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.meta=ee}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee.replace(/(\r?\n|\r)$/g,"")}function S(ee){const de=this.resume(),he=this.stack[this.stack.length-1];he.label=de,he.identifier=vi(this.sliceSerialize(ee)).toLowerCase()}function w(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.title=ee}function k(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.url=ee}function E(ee){const de=this.stack[this.stack.length-1];if(!de.depth){const he=this.sliceSerialize(ee).length;de.depth=he}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function N(ee){const de=this.stack[this.stack.length-1];de.depth=this.sliceSerialize(ee).codePointAt(0)===61?1:2}function P(){this.data.setextHeadingSlurpLineEnding=void 0}function O(ee){const he=this.stack[this.stack.length-1].children;let ae=he[he.length-1];(!ae||ae.type!=="text")&&(ae=Ie(),ae.position={start:Lo(ee.start),end:void 0},he.push(ae)),this.stack.push(ae)}function L(ee){const de=this.stack.pop();de.value+=this.sliceSerialize(ee),de.position.end=Lo(ee.end)}function $(ee){const de=this.stack[this.stack.length-1];if(this.data.atHardBreak){const he=de.children[de.children.length-1];he.position.end=Lo(ee.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(de.type)&&(O.call(this,ee),L.call(this,ee))}function C(){this.data.atHardBreak=!0}function j(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee}function F(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee}function M(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee}function R(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=de,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function _(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=de,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function V(ee){const de=this.sliceSerialize(ee),he=this.stack[this.stack.length-2];he.label=Nq(de),he.identifier=vi(de).toLowerCase()}function W(){const ee=this.stack[this.stack.length-1],de=this.resume(),he=this.stack[this.stack.length-1];if(this.data.inReference=!0,he.type==="link"){const ae=ee.children;he.children=ae}else he.alt=de}function I(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.url=ee}function D(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.title=ee}function G(){this.data.inReference=void 0}function A(){this.data.referenceType="collapsed"}function K(ee){const de=this.resume(),he=this.stack[this.stack.length-1];he.label=de,he.identifier=vi(this.sliceSerialize(ee)).toLowerCase(),this.data.referenceType="full"}function Y(ee){this.data.characterReferenceType=ee.type}function U(ee){const de=this.sliceSerialize(ee),he=this.data.characterReferenceType;let ae;he?(ae=K2(de,he==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ae=Wh(de);const ge=this.stack[this.stack.length-1];ge.value+=ae}function q(ee){const de=this.stack.pop();de.position.end=Lo(ee.end)}function Z(ee){L.call(this,ee);const de=this.stack[this.stack.length-1];de.url=this.sliceSerialize(ee)}function X(ee){L.call(this,ee);const de=this.stack[this.stack.length-1];de.url="mailto:"+this.sliceSerialize(ee)}function Q(){return{type:"blockquote",children:[]}}function re(){return{type:"code",lang:null,meta:null,value:""}}function J(){return{type:"inlineCode",value:""}}function oe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function te(){return{type:"emphasis",children:[]}}function fe(){return{type:"heading",depth:0,children:[]}}function ve(){return{type:"break"}}function Ce(){return{type:"html",value:""}}function xe(){return{type:"image",title:null,url:"",alt:null}}function Se(){return{type:"link",title:null,url:"",children:[]}}function Oe(ee){return{type:"list",ordered:ee.type==="listOrdered",start:null,spread:ee._spread,children:[]}}function Ae(ee){return{type:"listItem",spread:ee._spread,checked:null,children:[]}}function se(){return{type:"paragraph",children:[]}}function Ge(){return{type:"strong",children:[]}}function Ie(){return{type:"text",value:""}}function Ye(){return{type:"thematicBreak"}}}function Lo(e){return{line:e.line,column:e.column,offset:e.offset}}function sk(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?sk(e,r):_q(e,r)}}function _q(e,t){let n;for(n in t)if(ok.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function v0(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Vl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Vl({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Vl({start:t.start,end:t.end})+") is still open")}function zq(e){const t=this;t.parser=n;function n(r){return Aq(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Bq(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Vq(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
1263
|
+
`}]}function Hq(e,t){const n=t.value?t.value+`
|
|
1264
|
+
`:"",r={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(r.className=["language-"+o[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function Gq(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Wq(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Uq(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=Ki(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=i+1,a+=1,e.footnoteCounts.set(r,a);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,u),e.applyData(t,u)}function qq(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Kq(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function ik(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&i.type==="text"?i.value="["+i.value:o.unshift({type:"text",value:"["});const l=o[o.length-1];return l&&l.type==="text"?l.value+=r:o.push({type:"text",value:r}),o}function Yq(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ik(e,t);const o={src:Ki(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)}function Xq(e,t){const n={src:Ki(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Zq(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Qq(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ik(e,t);const o={href:Ki(r.url||"")};r.title!==null&&r.title!==void 0&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Jq(e,t){const n={href:Ki(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function eK(e,t,n){const r=e.all(t),o=n?tK(n):lk(t),i={},l=[];if(typeof t.checked=="boolean"){const d=r[0];let p;d&&d.type==="element"&&d.tagName==="p"?p=d:(p={type:"element",tagName:"p",properties:{},children:[]},r.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const d=r[a];(o||a!==0||d.type!=="element"||d.tagName!=="p")&&l.push({type:"text",value:`
|
|
1265
|
+
`}),d.type==="element"&&d.tagName==="p"&&!o?l.push(...d.children):l.push(d)}const c=r[r.length-1];c&&(o||c.type!=="element"||c.tagName!=="p")&&l.push({type:"text",value:`
|
|
1266
|
+
`});const u={type:"element",tagName:"li",properties:i,children:l};return e.patch(t,u),e.applyData(t,u)}function tK(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=lk(n[r])}return t}function lk(e){const t=e.spread;return t==null?e.children.length>1:t}function nK(e,t){const n={},r=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<r.length;){const l=r[o];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function rK(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function oK(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function sK(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function iK(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),o.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=Bh(t.children[1]),c=B2(t.children[t.children.length-1]);a&&c&&(l.position={start:a,end:c}),o.push(l)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)}function lK(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,a=l?l.length:t.children.length;let c=-1;const u=[];for(;++c<a;){const p=t.children[c],m={},f=l?l[c]:void 0;f&&(m.align=f);let y={type:"element",tagName:i,properties:m,children:[]};p&&(y.children=e.all(p),e.patch(p,y),y=e.applyData(p,y)),u.push(y)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function aK(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const x0=9,C0=32;function cK(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(w0(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(w0(t.slice(o),o>0,!1)),i.join("")}function w0(e,t,n){let r=0,o=e.length;if(t){let i=e.codePointAt(r);for(;i===x0||i===C0;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(o-1);for(;i===x0||i===C0;)o--,i=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}function uK(e,t){const n={type:"text",value:cK(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function dK(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const pK={blockquote:Bq,break:Vq,code:Hq,delete:Gq,emphasis:Wq,footnoteReference:Uq,heading:qq,html:Kq,imageReference:Yq,image:Xq,inlineCode:Zq,linkReference:Qq,link:Jq,listItem:eK,list:nK,paragraph:rK,root:oK,strong:sK,table:iK,tableCell:aK,tableRow:lK,text:uK,thematicBreak:dK,toml:wc,yaml:wc,definition:wc,footnoteDefinition:wc};function wc(){}const ak=-1,Cd=0,Gl=1,bu=2,Kh=3,Yh=4,Xh=5,Zh=6,ck=7,uk=8,dk=typeof self=="object"?self:globalThis,S0=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new dk[e](t)},fK=(e,t)=>{const n=(o,i)=>(e.set(i,o),o),r=o=>{if(e.has(o))return e.get(o);const[i,l]=t[o];switch(i){case Cd:case ak:return n(l,o);case Gl:{const a=n([],o);for(const c of l)a.push(r(c));return a}case bu:{const a=n({},o);for(const[c,u]of l)a[r(c)]=r(u);return a}case Kh:return n(new Date(l),o);case Yh:{const{source:a,flags:c}=l;return n(new RegExp(a,c),o)}case Xh:{const a=n(new Map,o);for(const[c,u]of l)a.set(r(c),r(u));return a}case Zh:{const a=n(new Set,o);for(const c of l)a.add(r(c));return a}case ck:{const{name:a,message:c}=l;return n(typeof dk[a]=="function"?S0(a,c):new Error(c),o)}case uk:return n(BigInt(l),o);case"BigInt":return n(Object(BigInt(l)),o);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:a}=new Uint8Array(l);return n(new DataView(a),l)}}return n(S0(i,l),o)};return r},k0=e=>fK(new Map,e)(0),gs="",{toString:mK}={},{keys:hK}=Object,vl=e=>{const t=typeof e;if(t!=="object"||!e)return[Cd,t];const n=mK.call(e).slice(8,-1);switch(n){case"Array":return[Gl,gs];case"Object":return[bu,gs];case"Date":return[Kh,gs];case"RegExp":return[Yh,gs];case"Map":return[Xh,gs];case"Set":return[Zh,gs];case"DataView":return[Gl,n]}return n.includes("Array")?[Gl,n]:e instanceof Error?[ck,e.name||"Error"]:[bu,n]},Sc=([e,t])=>e===Cd&&(t==="function"||t==="symbol"),gK=(e,t,n,r)=>{const o=(l,a)=>{const c=r.push(l)-1;return n.set(a,c),c},i=l=>{if(n.has(l))return n.get(l);let[a,c]=vl(l);switch(a){case Cd:{let d=l;switch(c){case"bigint":a=uk,d=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);d=null;break;case"undefined":return o([ak],l)}return o([a,d],l)}case Gl:{if(c){let m=l;return c==="DataView"?m=new Uint8Array(l.buffer):c==="ArrayBuffer"&&(m=new Uint8Array(l)),o([c,[...m]],l)}const d=[],p=o([a,d],l);for(const m of l)d.push(i(m));return p}case bu:{if(c)switch(c){case"BigInt":return o([c,l.toString()],l);case"Boolean":case"Number":case"String":return o([c,l.valueOf()],l)}if(t&&"toJSON"in l)return i(l.toJSON());const d=[],p=o([a,d],l);for(const m of hK(l))(e||!Sc(vl(l[m])))&&d.push([i(m),i(l[m])]);return p}case Kh:return o([a,isNaN(l.getTime())?gs:l.toISOString()],l);case Yh:{const{source:d,flags:p}=l;return o([a,{source:d,flags:p}],l)}case Xh:{const d=[],p=o([a,d],l);for(const[m,f]of l)(e||!(Sc(vl(m))||Sc(vl(f))))&&d.push([i(m),i(f)]);return p}case Zh:{const d=[],p=o([a,d],l);for(const m of l)(e||!Sc(vl(m)))&&d.push(i(m));return p}}const{message:u}=l;return o([a,{name:c,message:u}],l)};return i},E0=(e,{json:t,lossy:n}={})=>{const r=[];return gK(!(t||n),!!t,new Map,r)(e),r},yu=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?k0(E0(e,t)):structuredClone(e):(e,t)=>k0(E0(e,t));function bK(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function yK(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function vK(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||bK,r=e.options.footnoteBackLabel||yK,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let c=-1;for(;++c<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[c]);if(!u)continue;const d=e.all(u),p=String(u.identifier).toUpperCase(),m=Ki(p.toLowerCase());let f=0;const y=[],g=e.footnoteCounts.get(p);for(;g!==void 0&&++f<=g;){y.length>0&&y.push({type:"text",value:" "});let S=typeof n=="string"?n:n(c,f);typeof S=="string"&&(S={type:"text",value:S}),y.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,f),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const v=d[d.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const S=v.children[v.children.length-1];S&&S.type==="text"?S.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...y)}else d.push(...y);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(d,!0)};e.patch(u,x),a.push(x)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...yu(l),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
1267
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
1268
|
+
`}]}}const pk=(function(e){if(e==null)return SK;if(typeof e=="function")return wd(e);if(typeof e=="object")return Array.isArray(e)?xK(e):CK(e);if(typeof e=="string")return wK(e);throw new Error("Expected function, string, or object as test")});function xK(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=pk(e[n]);return wd(r);function r(...o){let i=-1;for(;++i<t.length;)if(t[i].apply(this,o))return!0;return!1}}function CK(e){const t=e;return wd(n);function n(r){const o=r;let i;for(i in e)if(o[i]!==t[i])return!1;return!0}}function wK(e){return wd(t);function t(n){return n&&n.type===e}}function wd(e){return t;function t(n,r,o){return!!(kK(n)&&e.call(this,n,typeof r=="number"?r:void 0,o||void 0))}}function SK(){return!0}function kK(e){return e!==null&&typeof e=="object"&&"type"in e}const fk=[],EK=!0,T0=!1,TK="skip";function IK(e,t,n,r){let o;typeof t=="function"&&typeof n!="function"?(r=n,n=t):o=t;const i=pk(o),l=r?-1:1;a(e,void 0,[])();function a(c,u,d){const p=c&&typeof c=="object"?c:{};if(typeof p.type=="string"){const f=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(c.type+(f?"<"+f+">":""))+")"})}return m;function m(){let f=fk,y,g,v;if((!t||i(c,u,d[d.length-1]||void 0))&&(f=PK(n(c,d)),f[0]===T0))return f;if("children"in c&&c.children){const x=c;if(x.children&&f[0]!==TK)for(g=(r?x.children.length:-1)+l,v=d.concat(x);g>-1&&g<x.children.length;){const S=x.children[g];if(y=a(S,g,v)(),y[0]===T0)return y;g=typeof y[1]=="number"?y[1]:g+l}}return f}}}function PK(e){return Array.isArray(e)?e:typeof e=="number"?[EK,e]:e==null?fk:[e]}function mk(e,t,n,r){let o,i,l;typeof t=="function"&&typeof n!="function"?(i=void 0,l=t,o=n):(i=t,l=n,o=r),IK(e,i,a,o);function a(c,u){const d=u[u.length-1],p=d?d.children.indexOf(c):void 0;return l(c,p,d)}}const zf={}.hasOwnProperty,OK={};function MK(e,t){const n=t||OK,r=new Map,o=new Map,i=new Map,l={...pK,...n.handlers},a={all:u,applyData:jK,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:l,one:c,options:n,patch:RK,wrap:$K};return mk(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const p=d.type==="definition"?r:o,m=String(d.identifier).toUpperCase();p.has(m)||p.set(m,d)}}),a;function c(d,p){const m=d.type,f=a.handlers[m];if(zf.call(a.handlers,m)&&f)return f(a,d,p);if(a.options.passThrough&&a.options.passThrough.includes(m)){if("children"in d){const{children:g,...v}=d,x=yu(v);return x.children=a.all(d),x}return yu(d)}return(a.options.unknownHandler||LK)(a,d,p)}function u(d){const p=[];if("children"in d){const m=d.children;let f=-1;for(;++f<m.length;){const y=a.one(m[f],d);if(y){if(f&&m[f-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=I0(y.value)),!Array.isArray(y)&&y.type==="element")){const g=y.children[0];g&&g.type==="text"&&(g.value=I0(g.value))}Array.isArray(y)?p.push(...y):p.push(y)}}}return p}}function RK(e,t){e.position&&(t.position=mW(e))}function jK(e,t){let n=t;if(e&&e.data){const r=e.data.hName,o=e.data.hChildren,i=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&i&&Object.assign(n.properties,yu(i)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function LK(e,t){const n=t.data||{},r="value"in t&&!(zf.call(n,"hProperties")||zf.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function $K(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
1269
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
1270
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
1271
|
+
`}),n}function I0(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function P0(e,t){const n=MK(e,t),r=n.one(e,void 0),o=vK(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:`
|
|
1272
|
+
`},o),i}function NK(e,t){return e&&"run"in e?async function(n,r){const o=P0(n,{file:r,...t});await e.run(o,r)}:function(n,r){return P0(n,{file:r,...e||t})}}function O0(e){if(e)throw e}var kp,M0;function FK(){if(M0)return kp;M0=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},i=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var d=e.call(u,"constructor"),p=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!d&&!p)return!1;var m;for(m in u);return typeof m=="undefined"||e.call(u,m)},l=function(u,d){n&&d.name==="__proto__"?n(u,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):u[d.name]=d.newValue},a=function(u,d){if(d==="__proto__")if(e.call(u,d)){if(r)return r(u,d).value}else return;return u[d]};return kp=function c(){var u,d,p,m,f,y,g=arguments[0],v=1,x=arguments.length,S=!1;for(typeof g=="boolean"&&(S=g,g=arguments[1]||{},v=2),(g==null||typeof g!="object"&&typeof g!="function")&&(g={});v<x;++v)if(u=arguments[v],u!=null)for(d in u)p=a(g,d),m=a(u,d),g!==m&&(S&&m&&(i(m)||(f=o(m)))?(f?(f=!1,y=p&&o(p)?p:[]):y=p&&i(p)?p:{},l(g,{name:d,newValue:c(S,y,m)})):typeof m!="undefined"&&l(g,{name:d,newValue:m}));return g},kp}var AK=FK();const Ep=vu(AK);function Bf(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 DK(){const e=[],t={run:n,use:r};return t;function n(...o){let i=-1;const l=o.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...o);function a(c,...u){const d=e[++i];let p=-1;if(c){l(c);return}for(;++p<o.length;)(u[p]===null||u[p]===void 0)&&(u[p]=o[p]);o=u,d?_K(d,a)(...u):l(null,...u)}}function r(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function _K(e,t){let n;return r;function r(...l){const a=e.length>l.length;let c;a&&l.push(o);try{c=e.apply(this,l)}catch(u){const d=u;if(a&&n)throw d;return o(d)}a||(c&&c.then&&typeof c.then=="function"?c.then(i,o):c instanceof Error?o(c):i(c))}function o(l,...a){n||(n=!0,t(l,...a))}function i(l){o(null,l)}}const Kr={basename:zK,dirname:BK,extname:VK,join:HK,sep:"/"};function zK(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ka(e);let n=0,r=-1,o=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(i){n=o+1;break}}else r<0&&(i=!0,r=o+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,a=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(i){n=o+1;break}}else l<0&&(i=!0,l=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(r=o):(a=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function BK(e){if(Ka(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function VK(e){Ka(e);let t=e.length,n=-1,r=0,o=-1,i=0,l;for(;t--;){const a=e.codePointAt(t);if(a===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),a===46?o<0?o=t:i!==1&&(i=1):o>-1&&(i=-1)}return o<0||n<0||i===0||i===1&&o===n-1&&o===r+1?"":e.slice(o,n)}function HK(...e){let t=-1,n;for(;++t<e.length;)Ka(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":GK(n)}function GK(e){Ka(e);const t=e.codePointAt(0)===47;let n=WK(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function WK(e,t){let n="",r=0,o=-1,i=0,l=-1,a,c;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(o===l-1||i===1))if(o!==l-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),o=l,i=0;continue}}else if(n.length>0){n="",r=0,o=l,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(o+1,l):n=e.slice(o+1,l),r=l-o-1;o=l,i=0}else a===46&&i>-1?i++:i=-1}return n}function Ka(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const UK={cwd:qK};function qK(){return"/"}function Vf(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function KK(e){if(typeof e=="string")e=new URL(e);else if(!Vf(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return YK(e)}function YK(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const Tp=["history","path","basename","stem","extname","dirname"];class hk{constructor(t){let n;t?Vf(t)?n={path:t}:typeof t=="string"||XK(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":UK.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Tp.length;){const i=Tp[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let o;for(o in n)Tp.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?Kr.basename(this.path):void 0}set basename(t){Pp(t,"basename"),Ip(t,"basename"),this.path=Kr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Kr.dirname(this.path):void 0}set dirname(t){R0(this.basename,"dirname"),this.path=Kr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Kr.extname(this.path):void 0}set extname(t){if(Ip(t,"extname"),R0(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Kr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Vf(t)&&(t=KK(t)),Pp(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Kr.basename(this.path,this.extname):void 0}set stem(t){Pp(t,"stem"),Ip(t,"stem"),this.path=Kr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const o=this.message(t,n,r);throw o.fatal=!0,o}info(t,n,r){const o=this.message(t,n,r);return o.fatal=void 0,o}message(t,n,r){const o=new Mn(t,n,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Ip(e,t){if(e&&e.includes(Kr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Kr.sep+"`")}function Pp(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function R0(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function XK(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ZK=(function(e){const r=this.constructor.prototype,o=r[e],i=function(){return o.apply(i,arguments)};return Object.setPrototypeOf(i,r),i}),QK={}.hasOwnProperty;class Qh extends ZK{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=DK()}copy(){const t=new Qh;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Ep(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Rp("data",this.frozen),this.namespace[t]=n,this):QK.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Rp("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=n.call(t,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=kc(t),r=this.parser||this.Parser;return Op("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Op("process",this.parser||this.Parser),Mp("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(i,l){const a=kc(t),c=r.parse(a);r.run(c,a,function(d,p,m){if(d||!p||!m)return u(d);const f=p,y=r.stringify(f,m);tY(y)?m.value=y:m.result=y,u(d,m)});function u(d,p){d||!p?l(d):i?i(p):n(void 0,p)}}}processSync(t){let n=!1,r;return this.freeze(),Op("processSync",this.parser||this.Parser),Mp("processSync",this.compiler||this.Compiler),this.process(t,o),L0("processSync","process",n),r;function o(i,l){n=!0,O0(i),r=l}}run(t,n,r){j0(t),this.freeze();const o=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(l,a){const c=kc(n);o.run(t,c,u);function u(d,p,m){const f=p||t;d?a(d):l?l(f):r(void 0,f,m)}}}runSync(t,n){let r=!1,o;return this.run(t,n,i),L0("runSync","run",r),o;function i(l,a){O0(l),o=a,r=!0}}stringify(t,n){this.freeze();const r=kc(n),o=this.compiler||this.Compiler;return Mp("stringify",o),j0(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(Rp("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(u){if(typeof u=="function")c(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...p]=u;c(d,p)}else l(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function l(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(o.settings=Ep(!0,o.settings,u.settings))}function a(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const p=u[d];i(p)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function c(u,d){let p=-1,m=-1;for(;++p<r.length;)if(r[p][0]===u){m=p;break}if(m===-1)r.push([u,...d]);else if(d.length>0){let[f,...y]=d;const g=r[m][1];Bf(g)&&Bf(f)&&(f=Ep(!0,g,f)),r[m]=[u,f,...y]}}}}const JK=new Qh().freeze();function Op(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Mp(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Rp(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function j0(e){if(!Bf(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function L0(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function kc(e){return eY(e)?e:new hk(e)}function eY(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function tY(e){return typeof e=="string"||nY(e)}function nY(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const rY="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",$0=[],N0={allowDangerousHtml:!0},oY=/^(https?|ircs?|mailto|xmpp)$/i,sY=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function iY(e){const t=lY(e),n=aY(e);return cY(t.runSync(t.parse(n),n),e)}function lY(e){const t=e.rehypePlugins||$0,n=e.remarkPlugins||$0,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...N0}:N0;return JK().use(zq).use(n).use(NK,r).use(t)}function aY(e){const t=e.children||"",n=new hk;return typeof t=="string"&&(n.value=t),n}function cY(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,i=t.disallowedElements,l=t.skipHtml,a=t.unwrapDisallowed,c=t.urlTransform||uY;for(const d of sY)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+rY+d.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),mk(e,u),vW(e,{Fragment:h.Fragment,components:o,ignoreInvalidStyle:!0,jsx:h.jsx,jsxs:h.jsxs,passKeys:!0,passNode:!0});function u(d,p,m){if(d.type==="raw"&&m&&typeof p=="number")return l?m.children.splice(p,1):m.children[p]={type:"text",value:d.value},p;if(d.type==="element"){let f;for(f in Cp)if(Object.hasOwn(Cp,f)&&Object.hasOwn(d.properties,f)){const y=d.properties[f],g=Cp[f];(g===null||g.includes(d.tagName))&&(d.properties[f]=c(String(y||""),f,d))}}if(d.type==="element"){let f=n?!n.includes(d.tagName):i?i.includes(d.tagName):!1;if(!f&&r&&typeof p=="number"&&(f=!r(d,p,m)),f&&m&&typeof p=="number")return a&&d.children?m.children.splice(p,1,...d.children):m.children.splice(p,1),p}}}function uY(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||n!==-1&&t>n||r!==-1&&t>r||oY.test(e.slice(0,t))?e:""}const go="Lato, sans-serif",gk=e=>{var t,n,r,o,i,l,a,c,u,d,p,m,f,y,g,v,x,S,w,k,E,T;return{h1:{fontFamily:(t=e.typography.fontFamily)!=null?t:go,fontWeight:(n=e.typography.fontWeightBold)!=null?n:700,fontSize:(r=e.typography["4xl"])!=null?r:"3rem",textAlign:"center",verticalAlign:"middle"},h2:{fontFamily:(o=e.typography.fontFamily)!=null?o:go,fontWeight:(i=e.typography.fontWeightMedium)!=null?i:600,fontSize:(l=e.typography["3xl"])!=null?l:"2.5rem",textAlign:"center",verticalAlign:"middle"},h3:{fontFamily:(a=e.typography.fontFamily)!=null?a:go,fontWeight:(c=e.typography.fontWeightRegular)!=null?c:400,fontSize:(u=e.typography["2xl"])!=null?u:"2rem",textAlign:"left",width:"100%",mt:"1rem"},h4:{fontFamily:(d=e.typography.fontFamily)!=null?d:go,fontWeight:(p=e.typography.fontWeightMedium)!=null?p:700,fontSize:(m=e.typography.base)!=null?m:"1rem",textAlign:"center",verticalAlign:"middle"},ul:{fontFamily:(f=e.typography.fontFamily)!=null?f:go,fontWeight:(y=e.typography.fontWeightRegular)!=null?y:400,listStyleType:"disc",pl:"1rem",textAlign:"left",width:"100%",pt:0},ol:{fontFamily:(g=e.typography.fontFamily)!=null?g:go,fontWeight:(v=e.typography.fontWeightRegular)!=null?v:400,listStyleType:"decimal",pl:"1rem",mt:"0.5rem",textAlign:"left",width:"100%"},p:{fontFamily:(x=e.typography.fontFamily)!=null?x:go,fontWeight:(S=e.typography.fontWeightRegular)!=null?S:400,mt:"0.25rem",textAlign:"left",wordBreak:"break-word",width:"100%"},a:{fontFamily:(w=e.typography.fontFamily)!=null?w:go,fontWeight:(k=e.typography.fontWeightRegular)!=null?k:400,color:e.palette.primary.main,textDecoration:"underline"},li:{fontFamily:(E=e.typography.fontFamily)!=null?E:go,fontWeight:(T=e.typography.fontWeightRegular)!=null?T:400,display:"list-item",p:0}}},dY=ne(mt)(({theme:e})=>({width:"100%",maxWidth:"624px",borderRadius:"10px",overflow:"hidden",position:"relative",height:"100%",padding:"0.5rem",fontFamily:e.typography.fontFamily})),pY=({content:e=""})=>{const t=nn(),n=H.useMemo(()=>gk(t),[t]);return h.jsx(dY,{"data-testid":"content-text",children:h.jsx(iY,{components:{h1({children:r}){return h.jsx(dt,{variant:"h1",component:"h1",sx:n.h1,children:r})},h2({children:r}){return h.jsx(dt,{variant:"h2",component:"h2",sx:n.h2,children:r})},h3({children:r}){return h.jsx(dt,{variant:"h3",component:"h3",sx:n.h3,children:r})},h4({children:r}){return h.jsx(dt,{variant:"h4",component:"h4",sx:n.h4,children:r})},ul({children:r}){return h.jsx(tu,{sx:n.ul,children:r})},p({children:r}){return h.jsx(dt,{sx:n.p,children:r})},ol({children:r}){return h.jsx(tu,{component:"ol",sx:n.ol,children:r})},a({children:r,href:o}){return h.jsx(EC,{href:o,target:"_blank",rel:"noopener noreferrer",underline:"always",sx:n.a,children:r})},li({children:r}){return h.jsx(TC,{sx:n.li,children:r})}},children:e})})},fY=Me(h.jsx("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay"),mY=({label:e,onClick:t,ariaLabel:n})=>{const r=nn();return h.jsx(Dr,{onClick:t,"aria-label":n||e,startIcon:h.jsx(fY,{sx:{fontSize:24}}),"data-testid":"video-replay-button",sx:{backgroundColor:r.palette.neutral.lightest,minWidth:"200px",maxWidth:"min(80vw, 500px)",minHeight:"52px",borderRadius:4,padding:"14px 16px",gap:1,pointerEvents:"auto",transition:"transform 0.2s ease, box-shadow 0.2s ease",border:"none",color:r.palette.primary.main,fontWeight:700,fontSize:"1rem",textTransform:"none",whiteSpace:"normal",textAlign:"center",wordBreak:"break-word","&:hover":{backgroundColor:r.palette.neutral.lightest,boxShadow:`0 2px 8px ${r.palette.primary.light}`},"& .MuiButton-startIcon":{color:r.palette.primary.main,fontSize:24,flexShrink:0}},children:e})},hY=ne(Dr)(({theme:e,disabled:t})=>({whiteSpace:"nowrap",padding:"0.75rem 1rem",height:"48px",borderRadius:"16px",fontSize:e.typography.base.fontSize,fontWeight:e.typography.fontWeightBold,textTransform:"none",marginTop:"1rem","&&":{color:e.customColors.white},backgroundColor:t?e.palette.neutral.main:e.palette.primary.main,"&:hover":{backgroundColor:t?e.palette.neutral.light:e.palette.primary.dark},"&:focus":{boxShadow:`0 0 0 4px ${e.palette.primary.lighter}`},[e.breakpoints.down("sm")]:{whiteSpace:"normal",padding:"0.25rem 0.5rem"}})),gY=ne(Dr)(({theme:e,disabled:t})=>({whiteSpace:"nowrap",padding:"0.25rem 0.75rem",width:"145px",marginBottom:"1rem",marginTop:"1rem",borderRadius:"1.5rem",backgroundColor:t?e.palette.neutral.light:e.palette.error.dark,"&:hover":{backgroundColor:t?e.palette.neutral.light:e.palette.error.main},"&:focus":{boxShadow:`0 0 0 4px ${e.palette.error.lighter}`},display:"flex",alignItems:"center",justifyContent:"center","&&":{color:e.customColors.white},textTransform:"none",[e.breakpoints.down("sm")]:{whiteSpace:"normal",padding:"0.25rem 0.5rem",width:"100%"}})),bY=({children:e})=>{const t=nn();return h.jsx(fC,{sx:{backgroundColor:t.customColors.white,borderTop:1,borderColor:t.palette.neutral.light,height:"88px",minHeight:"88px",maxHeight:"88px",width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",borderBottomLeftRadius:"1.5rem",borderBottomRightRadius:"1.5rem",overflow:"hidden",padding:0,flexShrink:0,position:"relative",zIndex:15},children:e})},yY=Me(h.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m4 14H8V8h8z"}),"StopCircle"),vY=Me(h.jsx("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp"),Jh={en:"en-CA",fr:"fr-CA"};function xY(e){const t=(e!=null?e:"").toLowerCase().split(/[-_]/)[0];return t in Jh?t:"en"}const CY=1e4;function bk(e,t){var o;const n=t.toLowerCase(),r=n.split("-")[0];return(o=e.find(i=>i.lang.toLowerCase().replace("_","-")===n))!=null?o:e.find(i=>i.lang.toLowerCase().startsWith(r))}function jp(){return typeof window!="undefined"&&"speechSynthesis"in window&&typeof window.SpeechSynthesisUtterance=="function"}const wY=({text:e,language:t,playLabel:n="Text to speech",stopLabel:r="Stop reading aloud"})=>{const[o,i]=H.useState(!1),[l]=H.useState(jp),a=H.useRef(null),c=H.useCallback(()=>{a.current!==null&&(clearInterval(a.current),a.current=null)},[]),u=H.useCallback(()=>{c(),jp()&&window.speechSynthesis.cancel(),i(!1)},[c]);H.useEffect(()=>u,[u]),H.useEffect(()=>{u()},[e,u]);const d=H.useCallback(()=>{if(!jp()||!e)return;window.speechSynthesis.cancel();const p=new SpeechSynthesisUtterance(e),m=Jh[t];p.lang=m;const f=bk(window.speechSynthesis.getVoices(),m);f&&(p.voice=f);const y=()=>{c(),i(!1)};p.onend=y,p.onerror=y,i(!0),window.speechSynthesis.speak(p),c(),a.current=setInterval(()=>{if(!window.speechSynthesis.speaking){c();return}window.speechSynthesis.pause(),window.speechSynthesis.resume()},CY)},[e,t,c]);return!l||!e?null:h.jsx(Dr,{onClick:o?u:d,startIcon:o?h.jsx(yY,{}):h.jsx(vY,{}),variant:"outlined","aria-live":"polite",sx:{whiteSpace:"nowrap",flexShrink:0,borderRadius:"1rem",textTransform:"none"},children:o?r:n})},SY=Me(h.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m4.5 14H8c-1.66 0-3-1.34-3-3s1.34-3 3-3l.14.01C8.58 8.28 10.13 7 12 7c2.21 0 4 1.79 4 4h.5c1.38 0 2.5 1.12 2.5 2.5S17.88 16 16.5 16"}),"CloudCircle"),yk=Xl.div`
|
|
1273
|
+
flex-direction: row;
|
|
1274
|
+
display: flex;
|
|
1275
|
+
align-items: center;
|
|
1276
|
+
background-color: white;
|
|
1277
|
+
height: 45px;
|
|
1278
|
+
width: 100%;
|
|
1279
|
+
z-index: 0;
|
|
1280
|
+
`,kY=_r`
|
|
1281
|
+
from { width: 0%; }
|
|
1282
|
+
to { width: 100%; }
|
|
1283
|
+
`,EY=Xl(yk,{shouldForwardProp:e=>!["duration","paused"].includes(e)})(({duration:e,paused:t})=>({animation:`${kY} ${e}s linear forwards`,animationPlayState:t?"paused":"running",overflow:"hidden",textWrap:"nowrap",position:"absolute",zIndex:1,top:0,width:0})),TY=h.jsx(SY,{}),IY={display:"flex",alignItems:"center",ml:"0.5rem","& > svg":{fontSize:25}},Hf=H.forwardRef(({timeLeft:e,positionLeftOffset:t,label:n,icon:r},o)=>{const i={position:"absolute",left:t,marginLeft:0};return h.jsxs(h.Fragment,{children:[h.jsx(mt,{sx:IY,children:r!=null?r:TY}),n&&h.jsx(dt,{sx:{ml:"0.25rem"},children:n}),h.jsx(dt,{ref:o,sx:{mr:"0.5rem"},style:{marginLeft:"auto",...t?i:{}},children:Dh(e)})]})});Hf.displayName="BarContent";function PY(e,t){switch(!0){case e<50:return{backgroundColor:t.palette["acuity-green"].dark,color:t.palette.common.white};case e<90:return{backgroundColor:t.customColors["yellowy-taupe"],color:t.palette.neutral.darkest};case e>=90:return{backgroundColor:t.palette["acuity-red"].dark,color:t.palette.common.white};default:return{backgroundColor:t.palette["acuity-green"].dark,color:t.palette.common.white}}}function OY(e){return[0,100,e].sort((n,r)=>n-r)[1]}const MY=({secondsLeft:e,paused:t,duration:n,label:r,icon:o})=>{const i=nn(),[l,a]=H.useState(0),c=Math.max(e,0),u=OY(Math.floor((n-c)*100/n)),d=H.useRef(null),p=PY(u,i),{backgroundColor:m,color:f}=t?{backgroundColor:fr(p.backgroundColor,.35),color:i.palette.neutral.darkest}:p;return H.useLayoutEffect(()=>{var g;const y=(g=d.current)==null?void 0:g.offsetLeft;y!==void 0&&y!==l&&a(y)},[l,c,r,o]),h.jsxs(Br,{role:"timer","aria-label":t?"Thinking time is paused":`${c} seconds remaining`,variant:"outlined",sx:{width:"inherit",borderRadius:"20px",position:"relative",overflow:"hidden",...t&&{border:`1px dashed ${i.palette.neutral.dark}`}},children:[h.jsx(yk,{"aria-hidden":"true",children:h.jsx(Hf,{ref:d,timeLeft:c,label:r,icon:o})}),h.jsx(EY,{duration:n,paused:t,style:{backgroundColor:m,color:f},children:h.jsx(Hf,{timeLeft:c,positionLeftOffset:l,label:r,icon:o})})]})},RY=Me(h.jsx("path",{d:"M9.19 6.35c-2.04 2.29-3.44 5.58-3.57 5.89L2 10.69l4.05-4.05c.47-.47 1.15-.68 1.81-.55zM11.17 17s3.74-1.55 5.89-3.7c5.4-5.4 4.5-9.62 4.21-10.57-.95-.3-5.17-1.19-10.57 4.21C8.55 9.09 7 12.83 7 12.83zm6.48-2.19c-2.29 2.04-5.58 3.44-5.89 3.57L13.31 22l4.05-4.05c.47-.47.68-1.15.55-1.81zM9 18c0 .83-.34 1.58-.88 2.12C6.94 21.3 2 22 2 22s.7-4.94 1.88-6.12C4.42 15.34 5.17 15 6 15c1.66 0 3 1.34 3 3m4-9c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2"}),"RocketLaunch"),jY=ne("div",{shouldForwardProp:e=>!["isBackground","width","variant"].includes(e)})(({theme:e,isBackground:t=!0,width:n=100,variant:r})=>{function o(){return r==="error"?e.palette.error.main:t?e.palette.background.paper:e.palette["acuity-green"].dark}return{display:"flex",flexDirection:"row",alignItems:"center",backgroundColor:o(),height:"100%",zIndex:t?0:1,position:t?"relative":"absolute",width:`${n}%`,overflow:"hidden",top:t?"auto":0,textWrap:"nowrap",transition:`width ${n===100?0:.25}s linear`}}),F0=({isBackground:e=!0,width:t=100,label:n,variant:r})=>{const o=nn();function i(){return r==="error"?o.palette.common.white:e?o.palette.text.primary:o.palette.common.white}const l=i();return h.jsxs(jY,{isBackground:e,width:t,variant:r,children:[h.jsx(RY,{sx:{fontSize:25,ml:"1rem",fill:l}}),h.jsx(dt,{sx:{ml:"0.5rem",mr:"1rem",color:l},children:n})]})},LY={"in-progress":"Uploading your video",error:"There was an error uploading your video"},$Y=({percentDone:e,label:t,variant:n,accessibleLabel:r})=>h.jsxs(Br,{role:"progressbar","aria-label":r!=null?r:LY[n],"aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":100,sx:{width:"fit-content",position:"relative",overflow:"hidden",height:"45px",borderRadius:"20px"},children:[h.jsx(F0,{label:t,variant:n}),h.jsx(F0,{isBackground:!1,width:e,label:t,variant:n})]}),vk="@media (min-width: 768px)",NY={position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:0},FY=ne(zs)(()=>({width:"100%",maxWidth:"800px",margin:"1rem 0"})),AY=ne("p")(({theme:e})=>({color:e.palette.text.primary,fontWeight:500,fontSize:"1rem",margin:"0 0 1rem 0"})),DY=ne(mt)(()=>({width:"100%",[vk]:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"0.5rem"}})),A0=ne(dt)(({theme:e})=>({...NY,fontSize:"0.875rem",color:e.palette.text.secondary,minWidth:"100px",textAlign:"center",[vk]:{position:"static",width:"auto",height:"auto",margin:0,overflow:"visible",clip:"auto",whiteSpace:"normal"}})),_Y=ne(oa)(({theme:e})=>({margin:0,"& .MuiFormControlLabel-label":{fontSize:"0.875rem",fontWeight:500},"& .MuiRadio-root":{padding:"8px",color:e.palette.grey[400],"&.Mui-checked":{color:e.palette.primary.main}}})),zY=ne(nh)(()=>({flexDirection:"row",justifyContent:"space-evenly",flex:1,gap:"8px"})),BY=({label:e,min:t,max:n,leftLabel:r,rightLabel:o,value:i,onChange:l,name:a,disabled:c=!1,getOptionAriaLabel:u})=>{var w,k;const d=H.useId(),p=a!=null?a:d,m=`${p}-label`,[f,y]=H.useState(),g=(k=(w=i!=null?i:f)==null?void 0:w.toString())!=null?k:"",v=E=>{const T=Number(E.target.value);y(T),l==null||l(T)},x=u!=null?u:(E=>E===t?`${E} of ${n}, ${r}`:E===n?`${E} of ${n}, ${o}`:`${E} of ${n}`),S=Array.from({length:Math.max(n-t+1,0)},(E,T)=>t+T);return h.jsxs(FY,{"data-testid":"numeric-scale",children:[h.jsx(AY,{id:m,children:e}),h.jsxs(DY,{children:[h.jsx(A0,{children:r}),h.jsx(zY,{value:g,onChange:v,name:p,"data-testid":"numeric-scale-group","aria-labelledby":m,children:S.map(E=>h.jsx(_Y,{value:E.toString(),control:h.jsx(th,{disabled:c,slotProps:{input:{"aria-label":x(E)}},"data-testid":`numeric-scale-option-${E}`}),label:h.jsx(dt,{variant:"body2",sx:{fontWeight:500},children:E}),labelPlacement:"bottom",disabled:c},E))}),h.jsx(A0,{children:o})]})]})},VY=({children:e,sx:t,...n})=>h.jsx(Dr,{"data-testid":"primary-button",variant:"contained",color:"primary",sx:{height:"45px",borderRadius:"16px",fontSize:"16px",fontWeight:700,textTransform:"none",padding:"16px 32px",...t||{}},...n,children:e}),HY=({section:e,sectionNumber:t,totalSections:n})=>`Step ${t} of ${n}: ${e.label}, ${e.state}`,GY=({completedSections:e,totalSections:t,currentSection:n})=>`Progress stepper: ${e} of ${t} steps completed, currently on step ${n}.`,WY=ne(mt)(()=>({marginLeft:"clamp(8px, 1vw, 20px)",marginRight:"clamp(8px, 1vw, 20px)"})),UY=ne(zC)(({theme:e})=>({paddingLeft:"15vw",paddingRight:"15vw","& .MuiStep-root":{paddingLeft:"15px",paddingRight:"15px"},"& .MuiStep-root:first-of-type":{paddingLeft:"0"},"& .MuiStep-root:last-of-type":{paddingRight:"0"},"& .MuiStepConnector-root":{top:"50%",transform:"translateY(-50%)",left:"calc(-50% + 16px)",right:"calc(50% + 16px)"},"& .MuiStepConnector-line":{height:3,border:0,backgroundColor:e.palette.neutral.lighter,borderRadius:1},[e.breakpoints.down("sm")]:{paddingLeft:"18px",paddingRight:"18px"}})),qY=(e,t)=>{switch(e){case"complete":return{backgroundColor:t.palette.primary.main,color:t.palette.common.white,border:`3px solid ${t.palette.primary.main}`};case"active":return{backgroundColor:t.palette.common.white,color:t.palette.primary.main,border:`3px solid ${t.palette.primary.main}`};case"upcoming":default:return{backgroundColor:t.palette.common.white,color:t.palette.neutral.dark,border:`3px solid ${t.palette.neutral.lighter}`}}},KY=(e,t,n)=>t||n||!!e&&(e.length>3||/\d{3,}/.test(e)||e.includes(" ")),YY=ne("div",{shouldForwardProp:e=>!["state","wide"].includes(e)})(({theme:e,state:t,wide:n})=>({zIndex:1,display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center",fontSize:"0.875rem",fontWeight:600,transition:"all 0.2s ease-in-out",position:"relative",...t==="complete"?{width:"34px",height:"34px",borderRadius:"24px",fontSize:"14px",borderWidth:"2px"}:n?{minWidth:"60px",width:"max-content",maxWidth:"min(180px, 18vw)",height:"34px",borderRadius:"22px",padding:"8px 16px",whiteSpace:"normal",wordWrap:"break-word",lineHeight:1.2}:{width:"34px",height:"34px",borderRadius:"50%"},...qY(t,e),[e.breakpoints.down("sm")]:{width:"23px !important",height:"23px !important",fontSize:"12px !important"}})),XY=ne(rh)(()=>({"& .MuiStepLabel-label":{display:"none !important"}})),ZY=()=>h.jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none","data-testid":"check-icon","aria-hidden":"true",children:h.jsx("path",{d:"M9.98242 1.19141L3.33301 7.98145L0.0166016 4.5957L1.16602 3.42188L3.32422 5.62598L3.33301 5.63477L3.3418 5.62598L8.83301 0.0175781L9.98242 1.19141Z",fill:"white"})}),QY=({section:e,sectionNumber:t,totalSections:n,ariaLabel:r})=>h.jsx(YY,{state:e.state,wide:KY(e.label,t===1,t===n),role:"img","aria-label":r,"data-testid":`step-icon-${t}`,children:e.state==="complete"?h.jsx(ZY,{}):e.label}),JY=({progress:e,getStepAriaLabel:t=HY,getContainerAriaLabel:n=GY})=>{const r=e==null?void 0:e.sections;if(!r||r.length===0)return null;const o=r.length,i=r.findIndex(c=>c.state==="active"),l=i!==-1?i:0,a=r.filter(c=>c.state==="complete").length;return h.jsx(WY,{children:h.jsx(UY,{activeStep:l,alternativeLabel:!0,"aria-label":n({completedSections:a,totalSections:o,currentSection:l+1}),children:r.map((c,u)=>h.jsx(AC,{completed:c.state==="complete",children:h.jsx(XY,{slots:{stepIcon:d=>h.jsx(QY,{...d,section:c,sectionNumber:u+1,totalSections:o,ariaLabel:t({section:c,sectionNumber:u+1,totalSections:o})})}})},`${c.label}-${u}`))})})},eX=ne(zs)(()=>({width:"100%",maxWidth:"800px",margin:"1rem 0"})),tX=ne("p")(({theme:e})=>({color:e.palette.text.primary,fontWeight:500,fontSize:"1rem",margin:"0 0 0.75rem 0",display:"block"})),nX=ne(nh)(()=>({gap:"0.625rem"})),rX=ne(oa)(({theme:e})=>({marginLeft:0,marginRight:0,padding:0,"& .MuiFormControlLabel-label":{fontSize:"0.875rem"},"& .MuiRadio-root":{color:e.palette.grey[400],"&.Mui-checked":{color:e.palette.primary.main}},"&:hover .MuiRadio-root":{backgroundColor:e.palette.action.hover}})),oX=ne(mt)(()=>({marginTop:"0.5rem",marginLeft:"2rem"})),sX=ne(Vs)(({theme:e})=>({"& .MuiOutlinedInput-root":{padding:0,"& fieldset":{display:"none"}},"& .MuiInputBase-input":{fontSize:"0.875rem",padding:"15px 20px",resize:"vertical",backgroundColor:e.palette.common.white,border:`1px solid ${e.palette.grey[400]}`,borderRadius:0,"&:hover":{borderColor:e.palette.primary.main},"&:focus":{borderColor:e.palette.primary.main,outline:"none"}}})),iX=({label:e,options:t,value:n,freeTextValue:r,onChange:o,name:i,disabled:l=!1,freeTextPlaceholder:a="Type your answer"})=>{const c=H.useId(),u=i!=null?i:c,d=`${u}-label`,[p,m]=H.useState(""),[f,y]=H.useState(""),g=n!=null?n:p,v=r!=null?r:f,x=w=>{const k=w.target.value,E=t.find(N=>N.value===k),T=E!=null&&E.allowsFreeText?v:"";m(k),y(T),o==null||o(k,E!=null&&E.allowsFreeText?T:void 0)},S=w=>{const k=w.target.value;y(k),o==null||o(g,k)};return h.jsxs(eX,{"data-testid":"single-select",children:[h.jsx(tX,{id:d,children:e}),h.jsx(nX,{value:g,onChange:x,name:u,"data-testid":"single-select-group","aria-labelledby":d,children:t.map(w=>h.jsxs(mt,{children:[h.jsx(rX,{value:w.value,control:h.jsx(th,{disabled:l,"data-testid":`single-select-option-${w.value}`}),label:w.label,disabled:l}),w.allowsFreeText&&g===w.value&&h.jsx(oX,{children:h.jsx(sX,{fullWidth:!0,multiline:!0,minRows:1,placeholder:a,value:v,onChange:S,variant:"outlined",disabled:l,slotProps:{htmlInput:{"aria-label":`${w.label} free text`}}})})]},w.value))})]})},lX=ne(zs)(()=>({width:"100%",maxWidth:"800px",margin:"1rem 0"})),aX=ne(Gm)(({theme:e})=>({color:e.palette.text.primary,fontWeight:500,fontSize:"1rem",marginBottom:"0.5rem",display:"block"})),cX=ne(Vs)(({theme:e})=>({"& .MuiOutlinedInput-root":{backgroundColor:e.palette.background.paper,"&:hover fieldset":{borderColor:e.palette.primary.main},"&.Mui-focused fieldset":{borderColor:e.palette.primary.main}},"& .MuiInputBase-input":{fontSize:"0.875rem",padding:"12px"}})),uX=ne(dt)(({theme:e})=>({fontSize:"0.75rem",color:e.palette.text.secondary,textAlign:"right",marginTop:"0.25rem"})),dX=({label:e,placeholder:t,maxLength:n,value:r,defaultValue:o="",onChange:i,multiline:l=!0,rows:a=4})=>{const[c,u]=H.useState(o),d=r!=null?r:c,p=m=>{const f=m.target.value;n&&f.length>n||(u(f),i==null||i(f))};return h.jsxs(lX,{"data-testid":"text-response",children:[h.jsx(aX,{children:e}),h.jsxs(mt,{children:[h.jsx(cX,{multiline:l,rows:l?a:void 0,fullWidth:!0,placeholder:t,value:d,onChange:p,slotProps:{htmlInput:{maxLength:n,"aria-label":e}},variant:"outlined"}),n&&h.jsxs(uX,{children:[d.length,"/",n]})]})]})},pX=Me([h.jsx("path",{d:"M18 10.48V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4.48l4 3.98v-11zm-2-.79V18H4V6h12z"},"0"),h.jsx("circle",{cx:"10",cy:"10",r:"2"},"1"),h.jsx("path",{d:"M14 15.43c0-.81-.48-1.53-1.22-1.85-.85-.37-1.79-.58-2.78-.58s-1.93.21-2.78.58C6.48 13.9 6 14.62 6 15.43V16h8z"},"2")],"VideoCameraFrontOutlined"),fX=({sx:e,...t})=>{const n=nn();return h.jsx(mt,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"1.5em",height:"1.5em",borderRadius:"50%",backgroundColor:n.palette["acuity-green"].main,border:`2px solid ${n.palette.common.white}`,boxSizing:"border-box"},children:h.jsx(pX,{...t,sx:{fontSize:"0.9em",fill:n.palette.common.white,color:n.palette.common.white,...e}})})},mX=({"aria-label":e="Acuity Insights",...t})=>h.jsx("svg",{fill:"none",height:"39",role:"img",viewBox:"0 0 39 39",width:"39",xmlns:"http://www.w3.org/2000/svg","aria-label":e,...t,children:h.jsx("path",{d:"M0 19.5C0 30.2696 8.73045 39 19.5 39C30.2696 39 39 30.2696 39 19.5C39 8.73045 30.2696 3.8147e-06 19.5 3.8147e-06C8.73045 3.8147e-06 0 8.73045 0 19.5ZM21.4413 10.2613C21.6667 10.5733 29.64 28.5653 29.64 28.7733C29.64 28.8947 28.9813 28.9467 27.8027 28.912C26.68 28.8802 25.6753 28.2066 25.2196 27.18L22.7413 21.5973C19.916 15.236 19.5 14.404 19.3267 14.7507C19.24 14.976 17.784 18.2347 16.1027 22.0133L13.8001 27.1811C13.3429 28.2072 12.3376 28.8802 11.2147 28.912C10.1747 28.9293 9.36 28.8947 9.36 28.808C9.36 28.652 16.9693 11.4573 17.4373 10.5213C17.68 10.0533 17.6973 10.0533 19.4827 10.0533C20.7133 10.0533 21.3373 10.1227 21.4413 10.2613ZM21.4933 26.9707C21.8747 27.7853 22.1867 28.5653 22.1867 28.704C22.1867 28.8947 21.684 28.9467 19.4827 28.9467H17.1907C16.9822 28.9467 16.8301 28.7497 16.8827 28.548C16.9347 28.3227 17.2467 27.5427 17.576 26.8147L17.6375 26.6793C17.9695 25.9489 18.6977 25.48 19.5 25.48C20.3021 25.48 21.0301 25.9492 21.3614 26.6797L21.4933 26.9707Z",fill:"#4B55A5"})}),hX=({"aria-label":e="Acuity Insights",...t})=>h.jsxs("svg",{fill:"none",height:"29",role:"img",viewBox:"0 0 28 29",width:"28",xmlns:"http://www.w3.org/2000/svg","aria-label":e,...t,children:[h.jsx("rect",{fill:"#364699",height:"28.86",rx:"6",width:"28"}),h.jsx("path",{d:"M5.74341 14.7997V15.0643C5.74341 19.8224 9.60065 23.6797 14.3588 23.6797C19.1169 23.6797 22.9742 19.8224 22.9742 15.0643V14.7997V14.5351C22.9742 9.77693 19.1169 5.91969 14.3588 5.91969C9.60065 5.91969 5.74341 9.77693 5.74341 14.5351V14.7997ZM15.2165 10.5925C15.3161 10.7346 18.8388 18.9279 18.8388 19.0226C18.8388 19.0779 18.5478 19.1016 18.027 19.0858C17.5319 19.0713 17.09 18.7712 16.894 18.3162L15.7909 15.7548C14.5426 12.8579 14.3588 12.479 14.2822 12.6369C14.2439 12.7395 13.6006 14.2235 12.8578 15.9442L11.8322 18.3167C11.6356 18.7715 11.1935 19.0713 10.6982 19.0858C10.2387 19.0937 9.87879 19.0779 9.87879 19.0384C9.87879 18.9674 13.2407 11.1372 13.4475 10.7109C13.5547 10.4978 13.5623 10.4978 14.3511 10.4978C14.8949 10.4978 15.1706 10.5294 15.2165 10.5925ZM15.2395 18.2017C15.408 18.5727 15.5458 18.9279 15.5458 18.991C15.5458 19.0779 15.3237 19.1016 14.3511 19.1016H13.3437C13.2487 19.1016 13.1791 19.0121 13.2024 18.92C13.2254 18.8174 13.3632 18.4622 13.5087 18.1307L13.5419 18.0554C13.6847 17.7318 14.005 17.5229 14.3588 17.5229C14.7125 17.5229 15.0328 17.7319 15.1752 18.0556L15.2395 18.2017Z",fill:"white"})]}),ai={primary:{darkest:"#161E4A",dark:"#253170",main:"#364699",light:"#7779B8",lighter:"#B0B1D7",lightest:"#E9ECF6"},secondary:{darkest:"#15436E",dark:"#205C94",main:"#2C76BC",light:"#799DD1",lighter:"#B3C6E5",lightest:"#EAF1F9"},error:{darkest:"#720202",dark:"#A90508",main:"#E40A0A",light:"#F97054",lighter:"#FFB19E",lightest:"#FFECE8"},info:{darkest:"#0D556D",dark:"#157393",main:"#5A65E4",light:"#76B2CF",lighter:"#B2D3E3",lightest:"#EBF4F8"},warning:{darkest:"#816E09",dark:"#E0CA01",main:"#FCE833",light:"#FFEE7A",lighter:"#FFF5B1",lightest:"#FEFBE0"},success:{darkest:"#24590A",dark:"#387F14",main:"#4DA81F",light:"#89C368",lighter:"#BCDEA9",lightest:"#EEF8EB"},neutral:{darkest:"#333333",dark:"#555555",main:"#949494",light:"#B8B8B8",lighter:"#F5F5F5",lightest:"#FFFFFF"},"acuity-green":{darkest:"#00514B",dark:"#007A72",main:"#00A59B",light:"#70C0B8",lighter:"#B0DBD6",lightest:"#EBF6F5"},"acuity-red":{darkest:"#5C0924",dark:"#8A1339",main:"#BA1E50",light:"#D66D80",lighter:"#ECACB5",lightest:"#FBEAEC"},customColors:{black:"#000000",white:"#FFFFFF","light-gray":"#D9D9D9","medium-gray":"#767676","transparent-medium":"rgba(0, 0, 0, 0.25)","transparent-light":"rgba(0, 0, 0, 0.05)"}},D0=["Lato","Helvetica Neue","Helvetica","Arial","sans-serif"].join(","),xk=Gu({palette:{...ai,primary:{...ai.primary,contrastText:"#FFFFFF"},neutral:{...ai.neutral,darker:ai.neutral.darkest}},customColors:{...ai.customColors,transparent:"rgba(0, 0, 0, 0)","yellowy-taupe":"#FCEDCA"},typography:{fontFamily:D0,sm:{fontSize:".875rem",lineHeight:"1.25rem"},base:{fontSize:"1rem",lineHeight:"1.5rem"},lg:{fontSize:"1.125rem",lineHeight:"1.5rem"},xl:{fontSize:"1.25rem",lineHeight:"1.75rem"},"2xl":{fontSize:"1.4375rem",lineHeight:"2rem"},"3xl":{fontSize:"1.625rem",lineHeight:"2.25rem"},"4xl":{fontSize:"2.25rem",lineHeight:"3rem"}},components:{MuiCssBaseline:{styleOverrides:{body:{fontFamily:D0}}}}}),gX=({children:e,withCssBaseline:t=!1})=>h.jsxs(zM,{theme:xk,children:[t&&h.jsx(yC,{}),e]});exports.AcuityDataGrid=kH;exports.AcuityLogo=mX;exports.AcuityLogoMobile=hX;exports.AcuityMuiThemeProvider=gX;exports.AddItem=WN;exports.AdvancedTable=OH;exports.Alert=lv;exports.AlertBanner=FG;exports.AppLayout=QN;exports.AppLayoutDrawer=UC;exports.AudioVolumeIndicator=AG;exports.Badge=Gv;exports.Button=cv;exports.ButtonAddTableItem=UN;exports.Card=tT;exports.Checkbox=oT;exports.CheckboxCell=y2;exports.CheckedIcon=Ah;exports.ContentPanelContext=lh;exports.CustomTable=MH;exports.CustomTableHead=NH;exports.CustomTableRow=C2;exports.DefaultStepButton=hY;exports.DigitalTimer=_G;exports.Dropdown=U5;exports.DropdownAtom=Kv;exports.FileDropzone=KN;exports.FormValidation=iT;exports.Heading=Zf;exports.HoldToConfirmButton=S2;exports.Icon=io;exports.IconButton=Cu;exports.ImageFrame=L2;exports.ImagePreview=zG;exports.IndeterminateIcon=b2;exports.InlineAlert=YN;exports.InputDeviceSelect=GG;exports.KebabMenu=zH;exports.LabelAtom=Wv;exports.LabelCell=AH;exports.Link=bT;exports.Markdown=pY;exports.Modal=k5;exports.NumericScale=BY;exports.PageTitle=BH;exports.PrimaryButton=VY;exports.ProgressBar=Z5;exports.ProgressStepper=JY;exports.Radio=hT;exports.RecordStepButton=gY;exports.ReplayButton=mY;exports.SPEECH_LOCALES=Jh;exports.SingleSelect=iX;exports.SortIcon=v2;exports.SortableTableCell=x2;exports.Spinner=Dc;exports.Tab=M5;exports.Tabs=O5;exports.TexFooter=bY;exports.TextInput=V5;exports.TextInputAtom=qv;exports.TextResponse=dX;exports.TextToSpeech=wY;exports.Textarea=_5;exports.TextareaAtom=Uv;exports.TimerProgressBar=MY;exports.Toast=OG;exports.Tooltip=jG;exports.UploadProgressBar=$Y;exports.UserAvatar=$G;exports.VideoInterviewIcon=fX;exports.acuityMuiTheme=xk;exports.filterTableData=w2;exports.formatTime=Dh;exports.getMarkdownStyles=gk;exports.pickVoice=bk;exports.platformPalette=ai;exports.toSpeechLanguage=xY;exports.toast=MG;exports.useContentPanelContext=WC;exports.useTable=DH;
|
|
31
1284
|
//# sourceMappingURL=index.cjs.js.map
|