@leapdevuk/component-toolbox 0.1.0 → 0.1.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/dist/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GridCallbackDetails, GridColDef, GridColumnVisibilityModel, GridInitialState, GridProSlotsComponent, GridRowParams, GridRowSelectionModel, GridSlotProps, GridSlotsComponentsProps, GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
1
|
+
import { GridCallbackDetails, GridColDef, GridColumnVisibilityModel, GridGroupingColDefOverride, GridGroupingColDefOverrideParams, GridInitialState, GridProSlotsComponent, GridRowParams, GridRowSelectionModel, GridSlotProps, GridSlotsComponentsProps, GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
2
2
|
interface IDataGridProps {
|
|
3
3
|
borderTop?: boolean;
|
|
4
4
|
checkboxSelection?: boolean;
|
|
@@ -9,6 +9,7 @@ interface IDataGridProps {
|
|
|
9
9
|
defaultGroupingExpansionDepth?: number;
|
|
10
10
|
disableMultipleRowSelection?: boolean;
|
|
11
11
|
getTreeDataPath?: ((row: GridValidRowModel) => readonly string[]) | undefined;
|
|
12
|
+
groupingColDef?: GridGroupingColDefOverride<GridValidRowModel> | ((params: GridGroupingColDefOverrideParams) => GridGroupingColDefOverride<GridValidRowModel> | null | undefined) | undefined;
|
|
12
13
|
height?: any;
|
|
13
14
|
hideFooter?: boolean;
|
|
14
15
|
id: (row: any) => any;
|
package/dist/index.cjs.js
CHANGED
|
@@ -98,7 +98,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
|
|
|
98
98
|
1.821-4.474.273-.787-.211-1.136-1.74.209l-.34-.64c1.744-1.897 5.335-2.326 4.113.613-.763\r
|
|
99
99
|
1.835-1.309 3.074-1.621 4.03-.455 1.393.694.828 1.819-.211.153.25.203.331.356.619-2.498\r
|
|
100
100
|
2.378-5.271 2.588-4.408-.146zm4.742-8.169c-.532.453-1.32.443-1.761-.022-.441-.465-.367-1.208.164-1.661.532-.453\r
|
|
101
|
-
1.32-.442 1.761.022.439.466.367 1.209-.164 1.661z`})})})}const E0=()=>l.jsx(O.SvgIcon,{xmlns:"http://www.w3.org/2000/svg",height:"14px",width:"14px",viewBox:"0 0 90 90",style:{height:"14px !important",width:"14px !important"},children:l.jsx("polygon",{points:"78 44.996 85 44.996 85 59.996 78 59.996 78 77.996 22 77.996 22 21.996 40 21.996 40 15 15 15 15 85 85 85 85 15 55 15 55 21.996 73.003 21.996 43 52 48 57 78 26.995"})});function Po(){return l.jsxs(O.SvgIcon,{viewBox:"0 0 16 16","aria-hidden":"true",height:"16",width:"16",style:{width:16,height:16},children:[l.jsx("path",{fill:"#1E365E",d:"M0 0h16v16H0z"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.118 7.71l-4.43-.5 1.306-3.147 4.444 2.098-.785 5.245-.535-3.696zM6.421 8l.262-.781 2.098.52-.786 1.824-5.245 2.343L6.421 8z",fill:"#F69139"})]})}const k0=()=>l.jsx(Re,{style:{height:18},viewBox:"0 0 48 48",id:"doctype-pdf-24",children:l.jsxs("g",{fill:"none",fillRule:"evenodd",children:[l.jsx("path",{fill:"#FFF",d:"M46 46H10V2h26l10 10z"}),l.jsx("path",{fill:"#ED2D26",d:"M16.713 38.286c.467-1.217.407-.952 1.278-1.617.651-.496.993-.796 1.73-1.089-.65.976-1.678 2.188-3.008 2.706zm16.282-5.955c1.391-.095 6.776.966 5.125 2.65-1.315 1.344-4.667-2.269-5.125-2.65zm-6.43-5.02c.554.465 2.268 2.897 2.642 3.575l-4.87 1.015 2.229-4.59zm-.064-5.217c-.377-.879-.463-1.297-.453-2.436.023-2.418.546-1.79.821-1.922.513 1.033-.178 3.203-.368 4.358zm4.185 10.34c.985.946 6.33 6.872 8.875 3.46 1.524-2.042-.76-3.808-1.938-4.374-1.942-.93-4.26-.86-6.494-.89-.55-.952-1.351-1.796-2.077-2.79-.624-.855-1.731-2.042-1.496-3.383.343-1.95 2.487-7.076.184-8.14-3.521-1.625-3.625 3.38-2.97 6.235.585 2.552 1.534 2.706-1.348 7.57-2.689 4.542-1.716 2.17-5.68 4.677-4.126 2.611-3.033 5.934-.409 5.058 2.286-.761 3.773-3.512 5.193-5.186 1.156-1.364 6.167-2.2 8.16-2.237z"}),l.jsx("path",{fill:"#9DA7B3",fillRule:"nonzero",d:"M46 46H10V2h26l10 10v34zm-2-33.172L35.172 4H12v40h32V12.828zM34 14h10v2H32V4h2v10z"}),l.jsx("path",{fill:"#BE241E",d:"M24 8v8H2V8z"}),l.jsx("path",{fill:"#ED2D26",d:"M22 10v4H4v-4z"})]})}),O0=({disabled:e})=>l.jsx(O.SvgIcon,{width:"22",height:"22",viewBox:"-2 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M16 9.78496C16 10.0611 16.2239 10.285 16.5 10.285C16.7761 10.285 17 10.0611 17 9.78496H16ZM1 10C1 10.2761 1.22386 10.5 1.5 10.5C1.77614 10.5 2 10.2761 2 10H1ZM17 9.78496C17 8.41679 16.1208 6.96494 14.7309 5.87741C13.3252 4.77756 11.3417 4 9 4V5C11.119 5 12.8855 5.70321 14.1146 6.66498C15.3596 7.63907 16 8.82971 16 9.78496H17ZM9 4C6.65831 4 4.67232 4.77769 3.26423 5.90819C1.86692 7.03002 1 8.53606 1 10H2C2 8.92548 2.65275 7.68152 3.89028 6.68797C5.11701 5.70308 6.88102 5 9 5V4ZM11.5 11C11.5 12.3805 10.3805 13.5 9 13.5V14.5C10.9327 14.5 12.5 12.9327 12.5 11H11.5ZM9 13.5C7.61954 13.5 6.5 12.3805 6.5 11H5.5C5.5 12.9327 7.06726 14.5 9 14.5V13.5ZM6.5 11C6.5 9.61954 7.61954 8.5 9 8.5V7.5C7.06726 7.5 5.5 9.06726 5.5 11H6.5ZM9 8.5C10.3805 8.5 11.5 9.61954 11.5 11H12.5C12.5 9.06726 10.9327 7.5 9 7.5V8.5Z",fill:e?"grey":"#1E365E"})});function L0(){return l.jsx(Re,{height:"20",id:"help-circle-outline",viewBox:"0 0 96 96",width:"20",style:{width:20,height:20},children:l.jsx("path",{d:"M84 48c0-19.882-16.118-36-36-36S12 28.118 12 48s16.118 36 36 36 36-16.118 36-36zM4 48C4 23.7 23.7 4 48 4s44 19.7 44 44-19.7 44-44 44S4 72.3 4 48zm43.838-23.803c-3.31 0-6.104.826-8.372 2.483-3.602 2.592-5.516 6.992-5.748 13.197h8.347c0-1.81.467-3.546 1.397-5.227.93-1.677 2.511-2.513 4.74-2.513 2.267 0 3.83.68 4.68 2.039.854 1.364 1.282 2.87 1.282 4.524 0 1.44-.636 2.76-1.406 3.955a7.848 7.848 0 0 1-1.669 1.927s-4.526 3.288-6.512 5.93c-1.152 1.53-1.254 3.827-1.358 7.115-.005.234.072.72.795.72h6.49c.647 0 .78-.54.787-.782.046-1.196.161-1.81.357-2.503.363-1.306 1.358-2.445 2.47-3.428l2.297-1.792c2.075-1.834 3.728-3.335 4.46-4.513C62.121 43.395 63 41.01 63 38.179c-.003-4.618-1.442-8.098-4.32-10.455-2.875-2.35-6.49-3.527-10.842-3.527zm-4.836 42.688c-.084 3.027 2.073 5.032 4.825 5.112 2.87.086 5.08-1.783 5.17-4.816.082-3.033-2.013-5.094-4.886-5.18-2.751-.084-5.021 1.851-5.109 4.884z",style:{fill:"#545454"}})})}const D0=({disabled:e})=>l.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",width:"100",height:"100",viewBox:"0 0 100 100",style:e?{color:"#d5d6d5"}:{color:"#ffffff",strokeWidth:1},children:l.jsx("path",{strokeWidth:3,d:"M40,35 L60,35 C74.1962733,35 85,43.9380755 85,57.5 C85,71.0619245 74.1962733,80 60,80 L50,80 C47.2385763,80 45,77.7614237 45,75 C45,72.2385763 47.2385763,70 50,70 L60,70 C69.0479048,70 75,65.0757477 75,57.5 C75,49.9242523 69.0479048,45 60,45 L40,45 L40,60 L15,40 L40,20 L40,35 Z"})});function P0(){return l.jsxs(O.SvgIcon,{xmlns:"http://www.w3.org/2000/svg",style:{height:18},width:"28",height:"28",viewBox:"0 0 1024 1024",fill:"none",children:[l.jsx("path",{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM790.2 326H602V137.8L790.2 326z m1.8 562H232V136h302v216c0 23.2 18.8 42 42 42h216v494z",fill:"#979593"}),l.jsx("path",{d:"M402 549c0 5.4 4.4 9.5 9.8 9.5h32.4c5.4 0 9.8-4.2 9.8-9.4 0-28.2 25.8-51.6 58-51.6s58 23.4 58 51.5c0 25.3-21 47.2-49.3 50.9-19.3 2.8-34.5 20.3-34.7 40.1v32c0 5.5 4.5 10 10 10h32c5.5 0 10-4.5 10-10v-12.2c0-6 4-11.5 9.7-13.3 44.6-14.4 75-54 74.3-98.9-0.8-55.5-49.2-100.8-108.5-101.6-61.4-0.7-111.5 45.6-111.5 103zM480 744a32 32 0 1 0 64 0 32 32 0 1 0-64 0z",fill:"#979593"})]})}function Ro(){return l.jsx(O.SvgIcon,{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 20 20",style:{width:56,height:56},children:l.jsxs("g",{fill:"#FFBF00",fillRule:"evenodd",transform:"translate(1 1)",children:[l.jsx("path",{d:"m9.5.5 9 16h-18z",stroke:"#000000",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"m9.5 10.5v-5",stroke:"#000000",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("circle",{cx:"9.5",cy:"13.5",fill:"#000000",r:"1"})]})})}const R0=gr(l.jsx("path",{d:"M15.88 9.29 12 13.17 8.12 9.29a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41-.39-.38-1.03-.39-1.42 0"}),"ExpandMoreRounded"),j0=gr(l.jsx("path",{d:"M8.12 14.71 12 10.83l3.88 3.88c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L12.7 8.71a.996.996 0 0 0-1.41 0L6.7 13.3c-.39.39-.39 1.02 0 1.41.39.38 1.03.39 1.42 0"}),"KeyboardArrowUpRounded"),jo=({params:e,sortModel:r})=>l.jsxs("div",{style:{display:"grid",width:"100%",height:"100%"},children:[l.jsxs("div",{style:{marginRight:"auto",marginLeft:"auto",height:5},children:[(r==null?void 0:r.find(t=>t.field===e.colDef.field&&t.sort==="asc"))&&l.jsx(j0,{className:"tableHeaderIcon"}),(r==null?void 0:r.find(t=>t.field===e.colDef.field&&t.sort==="desc"))&&l.jsx(R0,{className:"tableHeaderIcon"})]}),l.jsx("div",{style:{display:"block"},children:l.jsx(O.Typography,{textAlign:e.colDef.headerAlign,style:{fontWeight:500},children:e.colDef.headerName})})]}),_0=40,I0=46,_o=O.styled(e=>{var o;const[r,t]=ue.useState(void 0),n=ue.useRef(!1);return!n.current&&!r&&e.initialState&&(t((o=e.initialState.sorting)==null?void 0:o.sortModel),n.current=!0),l.jsx(O.Box,{sx:{backgroundColor:"#fff",height:e.height?e.height:e.maxHeight,maxHeight:e.maxHeight,width:"100%"},children:l.jsx(ca.DataGridPro,{checkboxSelection:e.checkboxSelection,columnHeaderHeight:e.columnHeaderHeight||e.columnHeaderHeight===0?e.columnHeaderHeight:_0,columns:e.columns.map(a=>({...a,disableColumnMenu:a.disableColumnMenu?a.disableColumnMenu:!0,disableReorder:!0,renderHeader:s=>l.jsx(jo,{sortModel:r,params:s}),hideSortIcons:!0})),columnVisibilityModel:e.columnVisibilityModel,defaultGroupingExpansionDepth:e.defaultGroupingExpansionDepth?e.defaultGroupingExpansionDepth:0,disableColumnReorder:!0,disableMultipleRowSelection:e.disableMultipleRowSelection,getRowId:e.id,getTreeDataPath:e.getTreeDataPath,hideFooter:e.hideFooter!==void 0?e.hideFooter:!0,initialState:e.initialState||void 0,isRowSelectable:e.isRowSelectable,keepNonExistentRowsSelected:e.keepNonExistentRowsSelected,localeText:{noRowsLabel:e.noDataText?e.noDataText:"There are no results to display. Please update your search criteria"},onRowClick:e.onRowClick,onRowDoubleClick:e.onRowDoubleClick,onRowSelectionModelChange:e.onRowSelectionModelChange,onSortModelChange:a=>t(a),rowHeight:e.rowHeight?e.rowHeight:I0,rows:e.rows||[],rowSelectionModel:e.rowSelectionModel,slotProps:e.componentsProps,slots:{...e.slots,moreActionsIcon:void 0,noRowsOverlay:e.noRowsOverlay,baseCheckbox:a=>{const{slotProps:s,...i}=a;return l.jsx(O.Checkbox,{...i,checkedIcon:l.jsx("div",{style:{alignItems:"center",display:"flex"},children:l.jsx(Yr,{})}),icon:l.jsx("div",{style:{alignItems:"center",display:"flex"},children:l.jsx(zr,{})})})}},sortingOrder:["desc","asc"],sortModel:r,style:{borderBottom:0},sx:{"&.MuiDataGrid-root":{border:0},borderRadius:0,".MuiDataGrid-overlay ":{color:"#0060bb"},".Mui-selected":{backgroundColor:"#cde6f7 !important"},".MuiDataGrid-columnHeaders":e.borderTop?{borderTop:"1px solid rgb(224, 224, 224)"}:{}},treeData:e.treeData})})})(()=>({})),$0=O.styled(e=>{var s;const[r,t]=ue.useState(void 0),n=ue.useRef(!1);!n.current&&!r&&e.initialState&&(t((s=e.initialState.sorting)==null?void 0:s.sortModel),n.current=!0);const o=e.rowHeight?e.rowHeight:29,a=e.headerHeight?e.headerHeight:29;return l.jsx(_o,{maxHeight:e.maxHeight,height:a+(e.rows||[]).length*o,id:e.id,rows:e.rows||[],initialState:e.initialState||void 0,columns:e.columns.map(i=>({...i,disableColumnMenu:!0,disableReorder:!0,hideSortIcons:!0})),onRowDoubleClick:e.onRowDoubleClick,rowHeight:o,columnHeaderHeight:a,componentsProps:e.componentsProps})})(({})=>({})),N0=e=>l.jsx(O.Alert,{severity:e.severity?e.severity:"success",...e,children:e.children}),A0=({leftComponents:e,centerComponents:r,rightComponents:t,onClickHelp:n})=>l.jsxs("div",{style:{alignItems:"center",backgroundColor:"#fafafa",borderBottom:"1px solid #d8d8d8",display:"flex",justifyContent:"space-between",minHeight:"36px",paddingLeft:"0px",paddingRight:"15px"},children:[e&&l.jsx(l.Fragment,{children:e}),r&&l.jsx(l.Fragment,{children:r}),t&&l.jsx(l.Fragment,{children:t}),n&&l.jsx(O.Tooltip,{placement:"bottom-end",title:"Help for this Window",children:l.jsx(O.Link,{component:"button",onClick:n,sx:{lineHeight:"2.5",":hover":{cursor:"pointer",color:"#0060AC"}},underline:"hover",variant:"body1",children:"Help"})})]}),H0=e=>l.jsx(O.Autocomplete,{...e,autoComplete:!0,autoSelect:!0,forcePopupIcon:!0,fullWidth:!0,disableClearable:!0,slotProps:{listbox:{style:{padding:0}}},size:"small",renderInput:e.renderInput,sx:e.sx,getOptionLabel:e.getOptionLabel,renderOption:e.renderOption,options:e.options,value:e.value}),V0=e=>l.jsx(O.AvatarGroup,{...e,children:e.children}),B0=e=>l.jsx(O.Box,{...e,children:e.children}),Xe=e=>l.jsx(O.Button,{color:e.color||"primary",disabled:e.disabled,disableRipple:!0,onClick:e.onClick,size:e.size||"small",variant:e.variant||"contained",sx:e.sx,...e,children:e.children}),F0=e=>l.jsx(O.ButtonGroup,{...e,children:e.children}),W0=".checkbox {align-self: center; display: contents;} .checkbox svg {margin-left: 5px;}",Y0=({label:e,value:r,disabled:t,onChange:n})=>l.jsxs(l.Fragment,{children:[l.jsx("style",{children:W0}),l.jsx(O.FormControlLabel,{style:e?{marginLeft:0,marginRight:3}:{marginLeft:3,marginRight:3},control:l.jsx(O.Checkbox,{checked:r||!1,disabled:t,onChange:(o,a)=>{n&&n(a)},checkedIcon:l.jsx("div",{className:"checkbox",children:l.jsx(Yr,{disabled:t})}),icon:l.jsx("div",{className:"checkbox",children:l.jsx(zr,{})}),style:{marginRight:5},disableRipple:!0,disableTouchRipple:!0,disableFocusRipple:!0}),label:e})]}),z0=e=>l.jsx(O.Chip,{sx:e.sx?e.sx:{marginLeft:"auto",marginRight:"auto",fontSize:11,width:160,height:24,backgroundColor:"#e4e4e4"},...e}),G0=({decimalScale:e,disabled:r,id:t,onUpdate:n,placeholder:o,prefix:a,size:s,value:i,maxLength:u,width:f})=>l.jsx(Ir.NumericFormat,{customInput:O.OutlinedInput,decimalScale:e||2,disabled:r,fixedDecimalScale:!0,id:t,slotProps:{input:{maxLength:u}},onFocus:m=>m.target.select(),onValueChange:m=>{n&&n(m.floatValue)},placeholder:o,size:s||"small",startAdornment:a&&l.jsx(O.InputAdornment,{position:"start",children:l.jsx(O.Typography,{children:a})}),sx:{paddingLeft:"8px",width:f||130,"& .MuiInputBase-input":{borderLeft:"1px solid rgba(0, 0, 0, 0.23)",color:"#000",height:"16px",textAlign:"end"},"&.MuiOutlinedInput-root":{backgroundColor:r?"#f3f3f3":"field"}},thousandSeparator:!0,value:i||""}),Io=6048e5,q0=864e5,$o=6e4,No=36e5,Z0=1e3,Yn=Symbol.for("constructDateFrom");function fe(e,r){return typeof e=="function"?e(r):e&&typeof e=="object"&&Yn in e?e[Yn](r):e instanceof Date?new e.constructor(r):new Date(r)}function Y(e,r){return fe(r||e,e)}function Tt(e,r,t){const n=Y(e,t==null?void 0:t.in);return isNaN(r)?fe((t==null?void 0:t.in)||e,NaN):(r&&n.setDate(n.getDate()+r),n)}function Ao(e,r,t){return fe(e,+Y(e)+r)}function Q0(e,r,t){return Ao(e,r*1e3)}function X0(e,r,t){const n=Y(e,t==null?void 0:t.in);return n.setTime(n.getTime()+r*$o),n}function K0(e,r,t){return Ao(e,r*No)}function U0(e,r,t){return Tt(e,r*7,t)}function Ho(e,r,t){const n=Y(e,t==null?void 0:t.in);if(isNaN(r))return fe(e,NaN);if(!r)return n;const o=n.getDate(),a=fe(e,n.getTime());a.setMonth(n.getMonth()+r+1,0);const s=a.getDate();return o>=s?a:(n.setFullYear(a.getFullYear(),a.getMonth(),o),n)}function J0(e,r,t){return Ho(e,r*12,t)}function zn(e,r){const t=Y(e,r==null?void 0:r.in);return t.setHours(23,59,59,999),t}let ec={};function Ue(){return ec}function tc(e,r){var i,u,f,m;const t=Ue(),n=(r==null?void 0:r.weekStartsOn)??((u=(i=r==null?void 0:r.locale)==null?void 0:i.options)==null?void 0:u.weekStartsOn)??t.weekStartsOn??((m=(f=t.locale)==null?void 0:f.options)==null?void 0:m.weekStartsOn)??0,o=Y(e,r==null?void 0:r.in),a=o.getDay(),s=(a<n?-7:0)+6-(a-n);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function Gn(e,r){const t=Y(e,r==null?void 0:r.in),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}const rc={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Gr=(e,r,t)=>{let n;const o=rc[e];return typeof o=="string"?n=o:r===1?n=o.one:n=o.other.replace("{{count}}",r.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+n:n+" ago":n};function _e(e){return(r={})=>{const t=r.width?String(r.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}const nc={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},oc={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ac={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},sc={date:_e({formats:nc,defaultWidth:"full"}),time:_e({formats:oc,defaultWidth:"full"}),dateTime:_e({formats:ac,defaultWidth:"full"})},ic={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},qr=(e,r,t,n)=>ic[e];function gt(e){return(r,t)=>{const n=t!=null&&t.context?String(t.context):"standalone";let o;if(n==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,i=t!=null&&t.width?String(t.width):s;o=e.formattingValues[i]||e.formattingValues[s]}else{const s=e.defaultWidth,i=t!=null&&t.width?String(t.width):e.defaultWidth;o=e.values[i]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(r):r;return o[a]}}const cc={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},lc={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},uc={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dc={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},fc={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},hc={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},mc=(e,r)=>{const t=Number(e),n=t%100;if(n>20||n<10)switch(n%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},Zr={ordinalNumber:mc,era:gt({values:cc,defaultWidth:"wide"}),quarter:gt({values:lc,defaultWidth:"wide",argumentCallback:e=>e-1}),month:gt({values:uc,defaultWidth:"wide"}),day:gt({values:dc,defaultWidth:"wide"}),dayPeriod:gt({values:fc,defaultWidth:"wide",formattingValues:hc,defaultFormattingWidth:"wide"})};function yt(e){return(r,t={})=>{const n=t.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=r.match(o);if(!a)return null;const s=a[0],i=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(i)?yc(i,C=>C.test(s)):gc(i,C=>C.test(s));let f;f=e.valueCallback?e.valueCallback(u):u,f=t.valueCallback?t.valueCallback(f):f;const m=r.slice(s.length);return{value:f,rest:m}}}function gc(e,r){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&r(e[t]))return t}function yc(e,r){for(let t=0;t<e.length;t++)if(r(e[t]))return t}function pc(e){return(r,t={})=>{const n=r.match(e.matchPattern);if(!n)return null;const o=n[0],a=r.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=t.valueCallback?t.valueCallback(s):s;const i=r.slice(o.length);return{value:s,rest:i}}}const bc=/^(\d+)(th|st|nd|rd)?/i,Cc=/\d+/i,wc={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},xc={any:[/^b/i,/^(a|c)/i]},vc={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Tc={any:[/1/i,/2/i,/3/i,/4/i]},Sc={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Mc={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ec={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},kc={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Oc={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Lc={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Qr={ordinalNumber:pc({matchPattern:bc,parsePattern:Cc,valueCallback:e=>parseInt(e,10)}),era:yt({matchPatterns:wc,defaultMatchWidth:"wide",parsePatterns:xc,defaultParseWidth:"any"}),quarter:yt({matchPatterns:vc,defaultMatchWidth:"wide",parsePatterns:Tc,defaultParseWidth:"any",valueCallback:e=>e+1}),month:yt({matchPatterns:Sc,defaultMatchWidth:"wide",parsePatterns:Mc,defaultParseWidth:"any"}),day:yt({matchPatterns:Ec,defaultMatchWidth:"wide",parsePatterns:kc,defaultParseWidth:"any"}),dayPeriod:yt({matchPatterns:Oc,defaultMatchWidth:"any",parsePatterns:Lc,defaultParseWidth:"any"})},St={code:"en-US",formatDistance:Gr,formatLong:sc,formatRelative:qr,localize:Zr,match:Qr,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ut(e){const r=Y(e),t=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return t.setUTCFullYear(r.getFullYear()),+e-+t}function jt(e,...r){const t=fe.bind(null,r.find(n=>typeof n=="object"));return r.map(t)}function Mt(e,r){const t=Y(e,r==null?void 0:r.in);return t.setHours(0,0,0,0),t}function Dc(e,r,t){const[n,o]=jt(t==null?void 0:t.in,e,r),a=Mt(n),s=Mt(o),i=+a-Ut(a),u=+s-Ut(s);return Math.round((i-u)/q0)}function Vo(e,r){const t=Y(e,r==null?void 0:r.in);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}function Pc(e,r){const t=Y(e,r==null?void 0:r.in);return Dc(t,Vo(t))+1}function Ne(e,r){var i,u,f,m;const t=Ue(),n=(r==null?void 0:r.weekStartsOn)??((u=(i=r==null?void 0:r.locale)==null?void 0:i.options)==null?void 0:u.weekStartsOn)??t.weekStartsOn??((m=(f=t.locale)==null?void 0:f.options)==null?void 0:m.weekStartsOn)??0,o=Y(e,r==null?void 0:r.in),a=o.getDay(),s=(a<n?7:0)+a-n;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function lt(e,r){return Ne(e,{...r,weekStartsOn:1})}function Bo(e,r){const t=Y(e,r==null?void 0:r.in),n=t.getFullYear(),o=fe(t,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const a=lt(o),s=fe(t,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);const i=lt(s);return t.getTime()>=a.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function Rc(e,r){const t=Bo(e,r),n=fe(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),lt(n)}function Fo(e,r){const t=Y(e,r==null?void 0:r.in),n=+lt(t)-+Rc(t);return Math.round(n/Io)+1}function Xr(e,r){var m,C,p,x;const t=Y(e,r==null?void 0:r.in),n=t.getFullYear(),o=Ue(),a=(r==null?void 0:r.firstWeekContainsDate)??((C=(m=r==null?void 0:r.locale)==null?void 0:m.options)==null?void 0:C.firstWeekContainsDate)??o.firstWeekContainsDate??((x=(p=o.locale)==null?void 0:p.options)==null?void 0:x.firstWeekContainsDate)??1,s=fe((r==null?void 0:r.in)||e,0);s.setFullYear(n+1,0,a),s.setHours(0,0,0,0);const i=Ne(s,r),u=fe((r==null?void 0:r.in)||e,0);u.setFullYear(n,0,a),u.setHours(0,0,0,0);const f=Ne(u,r);return+t>=+i?n+1:+t>=+f?n:n-1}function jc(e,r){var i,u,f,m;const t=Ue(),n=(r==null?void 0:r.firstWeekContainsDate)??((u=(i=r==null?void 0:r.locale)==null?void 0:i.options)==null?void 0:u.firstWeekContainsDate)??t.firstWeekContainsDate??((m=(f=t.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??1,o=Xr(e,r),a=fe((r==null?void 0:r.in)||e,0);return a.setFullYear(o,0,n),a.setHours(0,0,0,0),Ne(a,r)}function Kr(e,r){const t=Y(e,r==null?void 0:r.in),n=+Ne(t,r)-+jc(t,r);return Math.round(n/Io)+1}function ae(e,r){const t=e<0?"-":"",n=Math.abs(e).toString().padStart(r,"0");return t+n}const Ae={y(e,r){const t=e.getFullYear(),n=t>0?t:1-t;return ae(r==="yy"?n%100:n,r.length)},M(e,r){const t=e.getMonth();return r==="M"?String(t+1):ae(t+1,2)},d(e,r){return ae(e.getDate(),r.length)},a(e,r){const t=e.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(e,r){return ae(e.getHours()%12||12,r.length)},H(e,r){return ae(e.getHours(),r.length)},m(e,r){return ae(e.getMinutes(),r.length)},s(e,r){return ae(e.getSeconds(),r.length)},S(e,r){const t=r.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,t-3));return ae(o,r.length)}},ot={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},qn={G:function(e,r,t){const n=e.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return t.era(n,{width:"abbreviated"});case"GGGGG":return t.era(n,{width:"narrow"});case"GGGG":default:return t.era(n,{width:"wide"})}},y:function(e,r,t){if(r==="yo"){const n=e.getFullYear(),o=n>0?n:1-n;return t.ordinalNumber(o,{unit:"year"})}return Ae.y(e,r)},Y:function(e,r,t,n){const o=Xr(e,n),a=o>0?o:1-o;if(r==="YY"){const s=a%100;return ae(s,2)}return r==="Yo"?t.ordinalNumber(a,{unit:"year"}):ae(a,r.length)},R:function(e,r){const t=Bo(e);return ae(t,r.length)},u:function(e,r){const t=e.getFullYear();return ae(t,r.length)},Q:function(e,r,t){const n=Math.ceil((e.getMonth()+1)/3);switch(r){case"Q":return String(n);case"QQ":return ae(n,2);case"Qo":return t.ordinalNumber(n,{unit:"quarter"});case"QQQ":return t.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,r,t){const n=Math.ceil((e.getMonth()+1)/3);switch(r){case"q":return String(n);case"qq":return ae(n,2);case"qo":return t.ordinalNumber(n,{unit:"quarter"});case"qqq":return t.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,r,t){const n=e.getMonth();switch(r){case"M":case"MM":return Ae.M(e,r);case"Mo":return t.ordinalNumber(n+1,{unit:"month"});case"MMM":return t.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(n,{width:"wide",context:"formatting"})}},L:function(e,r,t){const n=e.getMonth();switch(r){case"L":return String(n+1);case"LL":return ae(n+1,2);case"Lo":return t.ordinalNumber(n+1,{unit:"month"});case"LLL":return t.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(n,{width:"wide",context:"standalone"})}},w:function(e,r,t,n){const o=Kr(e,n);return r==="wo"?t.ordinalNumber(o,{unit:"week"}):ae(o,r.length)},I:function(e,r,t){const n=Fo(e);return r==="Io"?t.ordinalNumber(n,{unit:"week"}):ae(n,r.length)},d:function(e,r,t){return r==="do"?t.ordinalNumber(e.getDate(),{unit:"date"}):Ae.d(e,r)},D:function(e,r,t){const n=Pc(e);return r==="Do"?t.ordinalNumber(n,{unit:"dayOfYear"}):ae(n,r.length)},E:function(e,r,t){const n=e.getDay();switch(r){case"E":case"EE":case"EEE":return t.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(n,{width:"short",context:"formatting"});case"EEEE":default:return t.day(n,{width:"wide",context:"formatting"})}},e:function(e,r,t,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return ae(a,2);case"eo":return t.ordinalNumber(a,{unit:"day"});case"eee":return t.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(o,{width:"short",context:"formatting"});case"eeee":default:return t.day(o,{width:"wide",context:"formatting"})}},c:function(e,r,t,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return ae(a,r.length);case"co":return t.ordinalNumber(a,{unit:"day"});case"ccc":return t.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(o,{width:"narrow",context:"standalone"});case"cccccc":return t.day(o,{width:"short",context:"standalone"});case"cccc":default:return t.day(o,{width:"wide",context:"standalone"})}},i:function(e,r,t){const n=e.getDay(),o=n===0?7:n;switch(r){case"i":return String(o);case"ii":return ae(o,r.length);case"io":return t.ordinalNumber(o,{unit:"day"});case"iii":return t.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(n,{width:"short",context:"formatting"});case"iiii":default:return t.day(n,{width:"wide",context:"formatting"})}},a:function(e,r,t){const o=e.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,r,t){const n=e.getHours();let o;switch(n===12?o=ot.noon:n===0?o=ot.midnight:o=n/12>=1?"pm":"am",r){case"b":case"bb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,r,t){const n=e.getHours();let o;switch(n>=17?o=ot.evening:n>=12?o=ot.afternoon:n>=4?o=ot.morning:o=ot.night,r){case"B":case"BB":case"BBB":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,r,t){if(r==="ho"){let n=e.getHours()%12;return n===0&&(n=12),t.ordinalNumber(n,{unit:"hour"})}return Ae.h(e,r)},H:function(e,r,t){return r==="Ho"?t.ordinalNumber(e.getHours(),{unit:"hour"}):Ae.H(e,r)},K:function(e,r,t){const n=e.getHours()%12;return r==="Ko"?t.ordinalNumber(n,{unit:"hour"}):ae(n,r.length)},k:function(e,r,t){let n=e.getHours();return n===0&&(n=24),r==="ko"?t.ordinalNumber(n,{unit:"hour"}):ae(n,r.length)},m:function(e,r,t){return r==="mo"?t.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ae.m(e,r)},s:function(e,r,t){return r==="so"?t.ordinalNumber(e.getSeconds(),{unit:"second"}):Ae.s(e,r)},S:function(e,r){return Ae.S(e,r)},X:function(e,r,t){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(r){case"X":return Qn(n);case"XXXX":case"XX":return Ge(n);case"XXXXX":case"XXX":default:return Ge(n,":")}},x:function(e,r,t){const n=e.getTimezoneOffset();switch(r){case"x":return Qn(n);case"xxxx":case"xx":return Ge(n);case"xxxxx":case"xxx":default:return Ge(n,":")}},O:function(e,r,t){const n=e.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Zn(n,":");case"OOOO":default:return"GMT"+Ge(n,":")}},z:function(e,r,t){const n=e.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Zn(n,":");case"zzzz":default:return"GMT"+Ge(n,":")}},t:function(e,r,t){const n=Math.trunc(+e/1e3);return ae(n,r.length)},T:function(e,r,t){return ae(+e,r.length)}};function Zn(e,r=""){const t=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),a=n%60;return a===0?t+String(o):t+String(o)+r+ae(a,2)}function Qn(e,r){return e%60===0?(e>0?"-":"+")+ae(Math.abs(e)/60,2):Ge(e,r)}function Ge(e,r=""){const t=e>0?"-":"+",n=Math.abs(e),o=ae(Math.trunc(n/60),2),a=ae(n%60,2);return t+o+r+a}const Xn=(e,r)=>{switch(e){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},Wo=(e,r)=>{switch(e){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},_c=(e,r)=>{const t=e.match(/(P+)(p+)?/)||[],n=t[1],o=t[2];if(!o)return Xn(e,r);let a;switch(n){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;case"PPPP":default:a=r.dateTime({width:"full"});break}return a.replace("{{date}}",Xn(n,r)).replace("{{time}}",Wo(o,r))},Et={p:Wo,P:_c},Ic=/^D+$/,$c=/^Y+$/,Nc=["D","DD","YY","YYYY"];function Yo(e){return Ic.test(e)}function zo(e){return $c.test(e)}function Rr(e,r,t){const n=Ac(e,r,t);if(console.warn(n),Nc.includes(e))throw new RangeError(n)}function Ac(e,r,t){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${r}\`) for formatting ${n} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function Hc(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Go(e){return!(!Hc(e)&&typeof e!="number"||isNaN(+Y(e)))}const Vc=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Bc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Fc=/^'([^]*?)'?$/,Wc=/''/g,Yc=/[a-zA-Z]/;function zc(e,r,t){var m,C,p,x,w,h,E,$;const n=Ue(),o=(t==null?void 0:t.locale)??n.locale??St,a=(t==null?void 0:t.firstWeekContainsDate)??((C=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:C.firstWeekContainsDate)??n.firstWeekContainsDate??((x=(p=n.locale)==null?void 0:p.options)==null?void 0:x.firstWeekContainsDate)??1,s=(t==null?void 0:t.weekStartsOn)??((h=(w=t==null?void 0:t.locale)==null?void 0:w.options)==null?void 0:h.weekStartsOn)??n.weekStartsOn??(($=(E=n.locale)==null?void 0:E.options)==null?void 0:$.weekStartsOn)??0,i=Y(e,t==null?void 0:t.in);if(!Go(i))throw new RangeError("Invalid time value");let u=r.match(Bc).map(j=>{const P=j[0];if(P==="p"||P==="P"){const k=Et[P];return k(j,o.formatLong)}return j}).join("").match(Vc).map(j=>{if(j==="''")return{isToken:!1,value:"'"};const P=j[0];if(P==="'")return{isToken:!1,value:Gc(j)};if(qn[P])return{isToken:!0,value:j};if(P.match(Yc))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");return{isToken:!1,value:j}});o.localize.preprocessor&&(u=o.localize.preprocessor(i,u));const f={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return u.map(j=>{if(!j.isToken)return j.value;const P=j.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&zo(P)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&Yo(P))&&Rr(P,r,String(e));const k=qn[P[0]];return k(i,P,o.localize,f)}).join("")}function Gc(e){const r=e.match(Fc);return r?r[1].replace(Wc,"'"):e}function qc(e,r){return Y(e,r==null?void 0:r.in).getDate()}function qo(e,r){const t=Y(e,r==null?void 0:r.in),n=t.getFullYear(),o=t.getMonth(),a=fe(t,0);return a.setFullYear(n,o+1,0),a.setHours(0,0,0,0),a.getDate()}function Zc(e,r){return Y(e,r==null?void 0:r.in).getHours()}function Qc(e,r){return Y(e,r==null?void 0:r.in).getMinutes()}function Xc(e,r){return Y(e,r==null?void 0:r.in).getMonth()}function Kc(e){return Y(e).getSeconds()}function Uc(e){return Y(e).getMilliseconds()}function Jc(e,r){return Y(e,r==null?void 0:r.in).getFullYear()}function Er(e,r){return+Y(e)>+Y(r)}function kr(e,r){return+Y(e)<+Y(r)}function el(e,r){return+Y(e)==+Y(r)}function tl(e,r,t){const[n,o]=jt(t==null?void 0:t.in,e,r);return+Mt(n)==+Mt(o)}function rl(e,r,t){const[n,o]=jt(t==null?void 0:t.in,e,r);return n.getFullYear()===o.getFullYear()}function nl(e,r,t){const[n,o]=jt(t==null?void 0:t.in,e,r);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function Kn(e,r){const t=Y(e,r==null?void 0:r.in);return t.setMinutes(0,0,0),t}function ol(e,r,t){const[n,o]=jt(t==null?void 0:t.in,e,r);return+Kn(n)==+Kn(o)}function al(){return Object.assign({},Ue())}function sl(e,r){const t=il(r)?new r(0):fe(r,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t}function il(e){var r;return typeof e=="function"&&((r=e.prototype)==null?void 0:r.constructor)===e}const cl=10;class Zo{constructor(){v(this,"subPriority",0)}validate(r,t){return!0}}class ll extends Zo{constructor(r,t,n,o,a){super(),this.value=r,this.validateValue=t,this.setValue=n,this.priority=o,a&&(this.subPriority=a)}validate(r,t){return this.validateValue(r,this.value,t)}set(r,t,n){return this.setValue(r,t,this.value,n)}}class ul extends Zo{constructor(t,n){super();v(this,"priority",cl);v(this,"subPriority",-1);this.context=t||(o=>fe(n,o))}set(t,n){return n.timestampIsSet?t:fe(t,sl(t,this.context))}}class ee{run(r,t,n,o){const a=this.parse(r,t,n,o);return a?{setter:new ll(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(r,t,n){return!0}}class dl extends ee{constructor(){super(...arguments);v(this,"priority",140);v(this,"incompatibleTokens",["R","u","t","T"])}parse(t,n,o){switch(n){case"G":case"GG":case"GGG":return o.era(t,{width:"abbreviated"})||o.era(t,{width:"narrow"});case"GGGGG":return o.era(t,{width:"narrow"});case"GGGG":default:return o.era(t,{width:"wide"})||o.era(t,{width:"abbreviated"})||o.era(t,{width:"narrow"})}}set(t,n,o){return n.era=o,t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}}const pe={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Le={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function be(e,r){return e&&{value:r(e.value),rest:e.rest}}function he(e,r){const t=r.match(e);return t?{value:parseInt(t[0],10),rest:r.slice(t[0].length)}:null}function De(e,r){const t=r.match(e);if(!t)return null;if(t[0]==="Z")return{value:0,rest:r.slice(1)};const n=t[1]==="+"?1:-1,o=t[2]?parseInt(t[2],10):0,a=t[3]?parseInt(t[3],10):0,s=t[5]?parseInt(t[5],10):0;return{value:n*(o*No+a*$o+s*Z0),rest:r.slice(t[0].length)}}function Qo(e){return he(pe.anyDigitsSigned,e)}function ye(e,r){switch(e){case 1:return he(pe.singleDigit,r);case 2:return he(pe.twoDigits,r);case 3:return he(pe.threeDigits,r);case 4:return he(pe.fourDigits,r);default:return he(new RegExp("^\\d{1,"+e+"}"),r)}}function Jt(e,r){switch(e){case 1:return he(pe.singleDigitSigned,r);case 2:return he(pe.twoDigitsSigned,r);case 3:return he(pe.threeDigitsSigned,r);case 4:return he(pe.fourDigitsSigned,r);default:return he(new RegExp("^-?\\d{1,"+e+"}"),r)}}function Ur(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Xo(e,r){const t=r>0,n=t?r:1-r;let o;if(n<=50)o=e||100;else{const a=n+50,s=Math.trunc(a/100)*100,i=e>=a%100;o=e+s-(i?100:0)}return t?o:1-o}function Ko(e){return e%400===0||e%4===0&&e%100!==0}class fl extends ee{constructor(){super(...arguments);v(this,"priority",130);v(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,n,o){const a=s=>({year:s,isTwoDigitYear:n==="yy"});switch(n){case"y":return be(ye(4,t),a);case"yo":return be(o.ordinalNumber(t,{unit:"year"}),a);default:return be(ye(n.length,t),a)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,o){const a=t.getFullYear();if(o.isTwoDigitYear){const i=Xo(o.year,a);return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}const s=!("era"in n)||n.era===1?o.year:1-o.year;return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}}class hl extends ee{constructor(){super(...arguments);v(this,"priority",130);v(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,n,o){const a=s=>({year:s,isTwoDigitYear:n==="YY"});switch(n){case"Y":return be(ye(4,t),a);case"Yo":return be(o.ordinalNumber(t,{unit:"year"}),a);default:return be(ye(n.length,t),a)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,o,a){const s=Xr(t,a);if(o.isTwoDigitYear){const u=Xo(o.year,s);return t.setFullYear(u,0,a.firstWeekContainsDate),t.setHours(0,0,0,0),Ne(t,a)}const i=!("era"in n)||n.era===1?o.year:1-o.year;return t.setFullYear(i,0,a.firstWeekContainsDate),t.setHours(0,0,0,0),Ne(t,a)}}class ml extends ee{constructor(){super(...arguments);v(this,"priority",130);v(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,n){return Jt(n==="R"?4:n.length,t)}set(t,n,o){const a=fe(t,0);return a.setFullYear(o,0,4),a.setHours(0,0,0,0),lt(a)}}class gl extends ee{constructor(){super(...arguments);v(this,"priority",130);v(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,n){return Jt(n==="u"?4:n.length,t)}set(t,n,o){return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}}class yl extends ee{constructor(){super(...arguments);v(this,"priority",120);v(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,n,o){switch(n){case"Q":case"QQ":return ye(n.length,t);case"Qo":return o.ordinalNumber(t,{unit:"quarter"});case"QQQ":return o.quarter(t,{width:"abbreviated",context:"formatting"})||o.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(t,{width:"wide",context:"formatting"})||o.quarter(t,{width:"abbreviated",context:"formatting"})||o.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=1&&n<=4}set(t,n,o){return t.setMonth((o-1)*3,1),t.setHours(0,0,0,0),t}}class pl extends ee{constructor(){super(...arguments);v(this,"priority",120);v(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,n,o){switch(n){case"q":case"qq":return ye(n.length,t);case"qo":return o.ordinalNumber(t,{unit:"quarter"});case"qqq":return o.quarter(t,{width:"abbreviated",context:"standalone"})||o.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(t,{width:"wide",context:"standalone"})||o.quarter(t,{width:"abbreviated",context:"standalone"})||o.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=1&&n<=4}set(t,n,o){return t.setMonth((o-1)*3,1),t.setHours(0,0,0,0),t}}class bl extends ee{constructor(){super(...arguments);v(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);v(this,"priority",110)}parse(t,n,o){const a=s=>s-1;switch(n){case"M":return be(he(pe.month,t),a);case"MM":return be(ye(2,t),a);case"Mo":return be(o.ordinalNumber(t,{unit:"month"}),a);case"MMM":return o.month(t,{width:"abbreviated",context:"formatting"})||o.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(t,{width:"wide",context:"formatting"})||o.month(t,{width:"abbreviated",context:"formatting"})||o.month(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=11}set(t,n,o){return t.setMonth(o,1),t.setHours(0,0,0,0),t}}class Cl extends ee{constructor(){super(...arguments);v(this,"priority",110);v(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,n,o){const a=s=>s-1;switch(n){case"L":return be(he(pe.month,t),a);case"LL":return be(ye(2,t),a);case"Lo":return be(o.ordinalNumber(t,{unit:"month"}),a);case"LLL":return o.month(t,{width:"abbreviated",context:"standalone"})||o.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(t,{width:"wide",context:"standalone"})||o.month(t,{width:"abbreviated",context:"standalone"})||o.month(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=11}set(t,n,o){return t.setMonth(o,1),t.setHours(0,0,0,0),t}}function wl(e,r,t){const n=Y(e,t==null?void 0:t.in),o=Kr(n,t)-r;return n.setDate(n.getDate()-o*7),Y(n,t==null?void 0:t.in)}class xl extends ee{constructor(){super(...arguments);v(this,"priority",100);v(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,n,o){switch(n){case"w":return he(pe.week,t);case"wo":return o.ordinalNumber(t,{unit:"week"});default:return ye(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,o,a){return Ne(wl(t,o,a),a)}}function vl(e,r,t){const n=Y(e,t==null?void 0:t.in),o=Fo(n,t)-r;return n.setDate(n.getDate()-o*7),n}class Tl extends ee{constructor(){super(...arguments);v(this,"priority",100);v(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,n,o){switch(n){case"I":return he(pe.week,t);case"Io":return o.ordinalNumber(t,{unit:"week"});default:return ye(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,o){return lt(vl(t,o))}}const Sl=[31,28,31,30,31,30,31,31,30,31,30,31],Ml=[31,29,31,30,31,30,31,31,30,31,30,31];class El extends ee{constructor(){super(...arguments);v(this,"priority",90);v(this,"subPriority",1);v(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,n,o){switch(n){case"d":return he(pe.date,t);case"do":return o.ordinalNumber(t,{unit:"date"});default:return ye(n.length,t)}}validate(t,n){const o=t.getFullYear(),a=Ko(o),s=t.getMonth();return a?n>=1&&n<=Ml[s]:n>=1&&n<=Sl[s]}set(t,n,o){return t.setDate(o),t.setHours(0,0,0,0),t}}class kl extends ee{constructor(){super(...arguments);v(this,"priority",90);v(this,"subpriority",1);v(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,n,o){switch(n){case"D":case"DD":return he(pe.dayOfYear,t);case"Do":return o.ordinalNumber(t,{unit:"date"});default:return ye(n.length,t)}}validate(t,n){const o=t.getFullYear();return Ko(o)?n>=1&&n<=366:n>=1&&n<=365}set(t,n,o){return t.setMonth(0,o),t.setHours(0,0,0,0),t}}function Jr(e,r,t){var C,p,x,w;const n=Ue(),o=(t==null?void 0:t.weekStartsOn)??((p=(C=t==null?void 0:t.locale)==null?void 0:C.options)==null?void 0:p.weekStartsOn)??n.weekStartsOn??((w=(x=n.locale)==null?void 0:x.options)==null?void 0:w.weekStartsOn)??0,a=Y(e,t==null?void 0:t.in),s=a.getDay(),u=(r%7+7)%7,f=7-o,m=r<0||r>6?r-(s+f)%7:(u+f)%7-(s+f)%7;return Tt(a,m,t)}class Ol extends ee{constructor(){super(...arguments);v(this,"priority",90);v(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,n,o){switch(n){case"E":case"EE":case"EEE":return o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,o,a){return t=Jr(t,o,a),t.setHours(0,0,0,0),t}}class Ll extends ee{constructor(){super(...arguments);v(this,"priority",90);v(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,n,o,a){const s=i=>{const u=Math.floor((i-1)/7)*7;return(i+a.weekStartsOn+6)%7+u};switch(n){case"e":case"ee":return be(ye(n.length,t),s);case"eo":return be(o.ordinalNumber(t,{unit:"day"}),s);case"eee":return o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"eeeee":return o.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,o,a){return t=Jr(t,o,a),t.setHours(0,0,0,0),t}}class Dl extends ee{constructor(){super(...arguments);v(this,"priority",90);v(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,n,o,a){const s=i=>{const u=Math.floor((i-1)/7)*7;return(i+a.weekStartsOn+6)%7+u};switch(n){case"c":case"cc":return be(ye(n.length,t),s);case"co":return be(o.ordinalNumber(t,{unit:"day"}),s);case"ccc":return o.day(t,{width:"abbreviated",context:"standalone"})||o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"});case"ccccc":return o.day(t,{width:"narrow",context:"standalone"});case"cccccc":return o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(t,{width:"wide",context:"standalone"})||o.day(t,{width:"abbreviated",context:"standalone"})||o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=6}set(t,n,o,a){return t=Jr(t,o,a),t.setHours(0,0,0,0),t}}function Pl(e,r){const t=Y(e,r==null?void 0:r.in).getDay();return t===0?7:t}function Rl(e,r,t){const n=Y(e,t==null?void 0:t.in),o=Pl(n,t),a=r-o;return Tt(n,a,t)}class jl extends ee{constructor(){super(...arguments);v(this,"priority",90);v(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,n,o){const a=s=>s===0?7:s;switch(n){case"i":case"ii":return ye(n.length,t);case"io":return o.ordinalNumber(t,{unit:"day"});case"iii":return be(o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"}),a);case"iiiii":return be(o.day(t,{width:"narrow",context:"formatting"}),a);case"iiiiii":return be(o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"}),a);case"iiii":default:return be(o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"}),a)}}validate(t,n){return n>=1&&n<=7}set(t,n,o){return t=Rl(t,o),t.setHours(0,0,0,0),t}}class _l extends ee{constructor(){super(...arguments);v(this,"priority",80);v(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,n,o){switch(n){case"a":case"aa":case"aaa":return o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(t,{width:"wide",context:"formatting"})||o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,o){return t.setHours(Ur(o),0,0,0),t}}class Il extends ee{constructor(){super(...arguments);v(this,"priority",80);v(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,n,o){switch(n){case"b":case"bb":case"bbb":return o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(t,{width:"wide",context:"formatting"})||o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,o){return t.setHours(Ur(o),0,0,0),t}}class $l extends ee{constructor(){super(...arguments);v(this,"priority",80);v(this,"incompatibleTokens",["a","b","t","T"])}parse(t,n,o){switch(n){case"B":case"BB":case"BBB":return o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(t,{width:"wide",context:"formatting"})||o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,o){return t.setHours(Ur(o),0,0,0),t}}class Nl extends ee{constructor(){super(...arguments);v(this,"priority",70);v(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,n,o){switch(n){case"h":return he(pe.hour12h,t);case"ho":return o.ordinalNumber(t,{unit:"hour"});default:return ye(n.length,t)}}validate(t,n){return n>=1&&n<=12}set(t,n,o){const a=t.getHours()>=12;return a&&o<12?t.setHours(o+12,0,0,0):!a&&o===12?t.setHours(0,0,0,0):t.setHours(o,0,0,0),t}}class Al extends ee{constructor(){super(...arguments);v(this,"priority",70);v(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,n,o){switch(n){case"H":return he(pe.hour23h,t);case"Ho":return o.ordinalNumber(t,{unit:"hour"});default:return ye(n.length,t)}}validate(t,n){return n>=0&&n<=23}set(t,n,o){return t.setHours(o,0,0,0),t}}class Hl extends ee{constructor(){super(...arguments);v(this,"priority",70);v(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,n,o){switch(n){case"K":return he(pe.hour11h,t);case"Ko":return o.ordinalNumber(t,{unit:"hour"});default:return ye(n.length,t)}}validate(t,n){return n>=0&&n<=11}set(t,n,o){return t.getHours()>=12&&o<12?t.setHours(o+12,0,0,0):t.setHours(o,0,0,0),t}}class Vl extends ee{constructor(){super(...arguments);v(this,"priority",70);v(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,n,o){switch(n){case"k":return he(pe.hour24h,t);case"ko":return o.ordinalNumber(t,{unit:"hour"});default:return ye(n.length,t)}}validate(t,n){return n>=1&&n<=24}set(t,n,o){const a=o<=24?o%24:o;return t.setHours(a,0,0,0),t}}class Bl extends ee{constructor(){super(...arguments);v(this,"priority",60);v(this,"incompatibleTokens",["t","T"])}parse(t,n,o){switch(n){case"m":return he(pe.minute,t);case"mo":return o.ordinalNumber(t,{unit:"minute"});default:return ye(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,o){return t.setMinutes(o,0,0),t}}class Fl extends ee{constructor(){super(...arguments);v(this,"priority",50);v(this,"incompatibleTokens",["t","T"])}parse(t,n,o){switch(n){case"s":return he(pe.second,t);case"so":return o.ordinalNumber(t,{unit:"second"});default:return ye(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,o){return t.setSeconds(o,0),t}}class Wl extends ee{constructor(){super(...arguments);v(this,"priority",30);v(this,"incompatibleTokens",["t","T"])}parse(t,n){const o=a=>Math.trunc(a*Math.pow(10,-n.length+3));return be(ye(n.length,t),o)}set(t,n,o){return t.setMilliseconds(o),t}}class Yl extends ee{constructor(){super(...arguments);v(this,"priority",10);v(this,"incompatibleTokens",["t","T","x"])}parse(t,n){switch(n){case"X":return De(Le.basicOptionalMinutes,t);case"XX":return De(Le.basic,t);case"XXXX":return De(Le.basicOptionalSeconds,t);case"XXXXX":return De(Le.extendedOptionalSeconds,t);case"XXX":default:return De(Le.extended,t)}}set(t,n,o){return n.timestampIsSet?t:fe(t,t.getTime()-Ut(t)-o)}}class zl extends ee{constructor(){super(...arguments);v(this,"priority",10);v(this,"incompatibleTokens",["t","T","X"])}parse(t,n){switch(n){case"x":return De(Le.basicOptionalMinutes,t);case"xx":return De(Le.basic,t);case"xxxx":return De(Le.basicOptionalSeconds,t);case"xxxxx":return De(Le.extendedOptionalSeconds,t);case"xxx":default:return De(Le.extended,t)}}set(t,n,o){return n.timestampIsSet?t:fe(t,t.getTime()-Ut(t)-o)}}class Gl extends ee{constructor(){super(...arguments);v(this,"priority",40);v(this,"incompatibleTokens","*")}parse(t){return Qo(t)}set(t,n,o){return[fe(t,o*1e3),{timestampIsSet:!0}]}}class ql extends ee{constructor(){super(...arguments);v(this,"priority",20);v(this,"incompatibleTokens","*")}parse(t){return Qo(t)}set(t,n,o){return[fe(t,o),{timestampIsSet:!0}]}}const Zl={G:new dl,y:new fl,Y:new hl,R:new ml,u:new gl,Q:new yl,q:new pl,M:new bl,L:new Cl,w:new xl,I:new Tl,d:new El,D:new kl,E:new Ol,e:new Ll,c:new Dl,i:new jl,a:new _l,b:new Il,B:new $l,h:new Nl,H:new Al,K:new Hl,k:new Vl,m:new Bl,s:new Fl,S:new Wl,X:new Yl,x:new zl,t:new Gl,T:new ql},Ql=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Xl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Kl=/^'([^]*?)'?$/,Ul=/''/g,Jl=/\S/,eu=/[a-zA-Z]/;function tu(e,r,t,n){var E,$,j,P,k,M,_,N;const o=()=>fe((n==null?void 0:n.in)||t,NaN),a=al(),s=(n==null?void 0:n.locale)??a.locale??St,i=(n==null?void 0:n.firstWeekContainsDate)??(($=(E=n==null?void 0:n.locale)==null?void 0:E.options)==null?void 0:$.firstWeekContainsDate)??a.firstWeekContainsDate??((P=(j=a.locale)==null?void 0:j.options)==null?void 0:P.firstWeekContainsDate)??1,u=(n==null?void 0:n.weekStartsOn)??((M=(k=n==null?void 0:n.locale)==null?void 0:k.options)==null?void 0:M.weekStartsOn)??a.weekStartsOn??((N=(_=a.locale)==null?void 0:_.options)==null?void 0:N.weekStartsOn)??0;if(!r)return e?o():Y(t,n==null?void 0:n.in);const f={firstWeekContainsDate:i,weekStartsOn:u,locale:s},m=[new ul(n==null?void 0:n.in,t)],C=r.match(Xl).map(D=>{const B=D[0];if(B in Et){const G=Et[B];return G(D,s.formatLong)}return D}).join("").match(Ql),p=[];for(let D of C){!(n!=null&&n.useAdditionalWeekYearTokens)&&zo(D)&&Rr(D,r,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Yo(D)&&Rr(D,r,e);const B=D[0],G=Zl[B];if(G){const{incompatibleTokens:z}=G;if(Array.isArray(z)){const g=p.find(b=>z.includes(b.token)||b.token===B);if(g)throw new RangeError(`The format string mustn't contain \`${g.fullToken}\` and \`${D}\` at the same time`)}else if(G.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${D}\` and any other token at the same time`);p.push({token:B,fullToken:D});const c=G.run(e,D,s.match,f);if(!c)return o();m.push(c.setter),e=c.rest}else{if(B.match(eu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+B+"`");if(D==="''"?D="'":B==="'"&&(D=ru(D)),e.indexOf(D)===0)e=e.slice(D.length);else return o()}}if(e.length>0&&Jl.test(e))return o();const x=m.map(D=>D.priority).sort((D,B)=>B-D).filter((D,B,G)=>G.indexOf(D)===B).map(D=>m.filter(B=>B.priority===D).sort((B,G)=>G.subPriority-B.subPriority)).map(D=>D[0]);let w=Y(t,n==null?void 0:n.in);if(isNaN(+w))return o();const h={};for(const D of x){if(!D.validate(w,f))return o();const B=D.set(w,h,f);Array.isArray(B)?(w=B[0],Object.assign(h,B[1])):w=B}return w}function ru(e){return e.match(Kl)[1].replace(Ul,"'")}function nu(e,r,t){const n=Y(e,t==null?void 0:t.in);return n.setDate(r),n}function ou(e,r,t){const n=Y(e,t==null?void 0:t.in);return n.setHours(r),n}function au(e,r,t){const n=Y(e,t==null?void 0:t.in);return n.setMinutes(r),n}function su(e,r,t){const n=Y(e,t==null?void 0:t.in),o=n.getFullYear(),a=n.getDate(),s=fe(e,0);s.setFullYear(o,r,15),s.setHours(0,0,0,0);const i=qo(s);return n.setMonth(r,Math.min(a,i)),n}function iu(e,r,t){const n=Y(e,t==null?void 0:t.in);return n.setSeconds(r),n}function cu(e,r,t){const n=Y(e,t==null?void 0:t.in);return n.setMilliseconds(r),n}function lu(e,r,t){const n=Y(e,t==null?void 0:t.in);return isNaN(+n)?fe(e,NaN):(n.setFullYear(r),n)}function uu(e,r){const t=Y(e,r==null?void 0:r.in);return t.setDate(1),t.setHours(0,0,0,0),t}function du(e,r){const t=Y(e,r==null?void 0:r.in),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function fu(e,r,t){const n=+Y(e,t==null?void 0:t.in),[o,a]=[+Y(r.start,t==null?void 0:t.in),+Y(r.end,t==null?void 0:t.in)].sort((s,i)=>s-i);return n>=o&&n<=a}function jr(){return jr=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},jr.apply(null,arguments)}const hu={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},mu={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",dayOfMonthFull:"do",weekday:"EEEE",weekdayShort:"EEEEEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class gu{constructor(r){v(this,"isMUIAdapter",!0);v(this,"isTimezoneCompatible",!1);v(this,"formatTokenMap",hu);v(this,"escapedCharacters",{start:"'",end:"'"});v(this,"date",r=>typeof r>"u"?new Date:r===null?null:new Date(r));v(this,"getInvalidDate",()=>new Date("Invalid Date"));v(this,"getTimezone",()=>"default");v(this,"setTimezone",r=>r);v(this,"toJsDate",r=>r);v(this,"getCurrentLocaleCode",()=>this.locale.code);v(this,"is12HourCycleInCurrentLocale",()=>/a/.test(this.locale.formatLong.time({width:"short"})));v(this,"expandFormat",r=>{const t=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return r.match(t).map(n=>{const o=n[0];if(o==="p"||o==="P"){const a=this.longFormatters[o];return a(n,this.locale.formatLong)}return n}).join("")});v(this,"formatNumber",r=>r);v(this,"getDayOfWeek",r=>r.getDay()+1);const{locale:t,formats:n,longFormatters:o,lib:a}=r;this.locale=t,this.formats=jr({},mu,n),this.longFormatters=o,this.lib=a||"date-fns"}}class Uo extends gu{constructor({locale:t,formats:n}={}){if(process.env.NODE_ENV!=="production"){if(typeof Tt!="function")throw new Error(["MUI: The `date-fns` package v2.x is not compatible with this adapter.","Please, install v3.x or v4.x of the package or use the `AdapterDateFnsV2` instead."].join(`
|
|
101
|
+
1.32-.442 1.761.022.439.466.367 1.209-.164 1.661z`})})})}const E0=()=>l.jsx(O.SvgIcon,{xmlns:"http://www.w3.org/2000/svg",height:"14px",width:"14px",viewBox:"0 0 90 90",style:{height:"14px !important",width:"14px !important"},children:l.jsx("polygon",{points:"78 44.996 85 44.996 85 59.996 78 59.996 78 77.996 22 77.996 22 21.996 40 21.996 40 15 15 15 15 85 85 85 85 15 55 15 55 21.996 73.003 21.996 43 52 48 57 78 26.995"})});function Po(){return l.jsxs(O.SvgIcon,{viewBox:"0 0 16 16","aria-hidden":"true",height:"16",width:"16",style:{width:16,height:16},children:[l.jsx("path",{fill:"#1E365E",d:"M0 0h16v16H0z"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.118 7.71l-4.43-.5 1.306-3.147 4.444 2.098-.785 5.245-.535-3.696zM6.421 8l.262-.781 2.098.52-.786 1.824-5.245 2.343L6.421 8z",fill:"#F69139"})]})}const k0=()=>l.jsx(Re,{style:{height:18},viewBox:"0 0 48 48",id:"doctype-pdf-24",children:l.jsxs("g",{fill:"none",fillRule:"evenodd",children:[l.jsx("path",{fill:"#FFF",d:"M46 46H10V2h26l10 10z"}),l.jsx("path",{fill:"#ED2D26",d:"M16.713 38.286c.467-1.217.407-.952 1.278-1.617.651-.496.993-.796 1.73-1.089-.65.976-1.678 2.188-3.008 2.706zm16.282-5.955c1.391-.095 6.776.966 5.125 2.65-1.315 1.344-4.667-2.269-5.125-2.65zm-6.43-5.02c.554.465 2.268 2.897 2.642 3.575l-4.87 1.015 2.229-4.59zm-.064-5.217c-.377-.879-.463-1.297-.453-2.436.023-2.418.546-1.79.821-1.922.513 1.033-.178 3.203-.368 4.358zm4.185 10.34c.985.946 6.33 6.872 8.875 3.46 1.524-2.042-.76-3.808-1.938-4.374-1.942-.93-4.26-.86-6.494-.89-.55-.952-1.351-1.796-2.077-2.79-.624-.855-1.731-2.042-1.496-3.383.343-1.95 2.487-7.076.184-8.14-3.521-1.625-3.625 3.38-2.97 6.235.585 2.552 1.534 2.706-1.348 7.57-2.689 4.542-1.716 2.17-5.68 4.677-4.126 2.611-3.033 5.934-.409 5.058 2.286-.761 3.773-3.512 5.193-5.186 1.156-1.364 6.167-2.2 8.16-2.237z"}),l.jsx("path",{fill:"#9DA7B3",fillRule:"nonzero",d:"M46 46H10V2h26l10 10v34zm-2-33.172L35.172 4H12v40h32V12.828zM34 14h10v2H32V4h2v10z"}),l.jsx("path",{fill:"#BE241E",d:"M24 8v8H2V8z"}),l.jsx("path",{fill:"#ED2D26",d:"M22 10v4H4v-4z"})]})}),O0=({disabled:e})=>l.jsx(O.SvgIcon,{width:"22",height:"22",viewBox:"-2 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M16 9.78496C16 10.0611 16.2239 10.285 16.5 10.285C16.7761 10.285 17 10.0611 17 9.78496H16ZM1 10C1 10.2761 1.22386 10.5 1.5 10.5C1.77614 10.5 2 10.2761 2 10H1ZM17 9.78496C17 8.41679 16.1208 6.96494 14.7309 5.87741C13.3252 4.77756 11.3417 4 9 4V5C11.119 5 12.8855 5.70321 14.1146 6.66498C15.3596 7.63907 16 8.82971 16 9.78496H17ZM9 4C6.65831 4 4.67232 4.77769 3.26423 5.90819C1.86692 7.03002 1 8.53606 1 10H2C2 8.92548 2.65275 7.68152 3.89028 6.68797C5.11701 5.70308 6.88102 5 9 5V4ZM11.5 11C11.5 12.3805 10.3805 13.5 9 13.5V14.5C10.9327 14.5 12.5 12.9327 12.5 11H11.5ZM9 13.5C7.61954 13.5 6.5 12.3805 6.5 11H5.5C5.5 12.9327 7.06726 14.5 9 14.5V13.5ZM6.5 11C6.5 9.61954 7.61954 8.5 9 8.5V7.5C7.06726 7.5 5.5 9.06726 5.5 11H6.5ZM9 8.5C10.3805 8.5 11.5 9.61954 11.5 11H12.5C12.5 9.06726 10.9327 7.5 9 7.5V8.5Z",fill:e?"grey":"#1E365E"})});function L0(){return l.jsx(Re,{height:"20",id:"help-circle-outline",viewBox:"0 0 96 96",width:"20",style:{width:20,height:20},children:l.jsx("path",{d:"M84 48c0-19.882-16.118-36-36-36S12 28.118 12 48s16.118 36 36 36 36-16.118 36-36zM4 48C4 23.7 23.7 4 48 4s44 19.7 44 44-19.7 44-44 44S4 72.3 4 48zm43.838-23.803c-3.31 0-6.104.826-8.372 2.483-3.602 2.592-5.516 6.992-5.748 13.197h8.347c0-1.81.467-3.546 1.397-5.227.93-1.677 2.511-2.513 4.74-2.513 2.267 0 3.83.68 4.68 2.039.854 1.364 1.282 2.87 1.282 4.524 0 1.44-.636 2.76-1.406 3.955a7.848 7.848 0 0 1-1.669 1.927s-4.526 3.288-6.512 5.93c-1.152 1.53-1.254 3.827-1.358 7.115-.005.234.072.72.795.72h6.49c.647 0 .78-.54.787-.782.046-1.196.161-1.81.357-2.503.363-1.306 1.358-2.445 2.47-3.428l2.297-1.792c2.075-1.834 3.728-3.335 4.46-4.513C62.121 43.395 63 41.01 63 38.179c-.003-4.618-1.442-8.098-4.32-10.455-2.875-2.35-6.49-3.527-10.842-3.527zm-4.836 42.688c-.084 3.027 2.073 5.032 4.825 5.112 2.87.086 5.08-1.783 5.17-4.816.082-3.033-2.013-5.094-4.886-5.18-2.751-.084-5.021 1.851-5.109 4.884z",style:{fill:"#545454"}})})}const D0=({disabled:e})=>l.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",width:"100",height:"100",viewBox:"0 0 100 100",style:e?{color:"#d5d6d5"}:{color:"#ffffff",strokeWidth:1},children:l.jsx("path",{strokeWidth:3,d:"M40,35 L60,35 C74.1962733,35 85,43.9380755 85,57.5 C85,71.0619245 74.1962733,80 60,80 L50,80 C47.2385763,80 45,77.7614237 45,75 C45,72.2385763 47.2385763,70 50,70 L60,70 C69.0479048,70 75,65.0757477 75,57.5 C75,49.9242523 69.0479048,45 60,45 L40,45 L40,60 L15,40 L40,20 L40,35 Z"})});function P0(){return l.jsxs(O.SvgIcon,{xmlns:"http://www.w3.org/2000/svg",style:{height:18},width:"28",height:"28",viewBox:"0 0 1024 1024",fill:"none",children:[l.jsx("path",{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM790.2 326H602V137.8L790.2 326z m1.8 562H232V136h302v216c0 23.2 18.8 42 42 42h216v494z",fill:"#979593"}),l.jsx("path",{d:"M402 549c0 5.4 4.4 9.5 9.8 9.5h32.4c5.4 0 9.8-4.2 9.8-9.4 0-28.2 25.8-51.6 58-51.6s58 23.4 58 51.5c0 25.3-21 47.2-49.3 50.9-19.3 2.8-34.5 20.3-34.7 40.1v32c0 5.5 4.5 10 10 10h32c5.5 0 10-4.5 10-10v-12.2c0-6 4-11.5 9.7-13.3 44.6-14.4 75-54 74.3-98.9-0.8-55.5-49.2-100.8-108.5-101.6-61.4-0.7-111.5 45.6-111.5 103zM480 744a32 32 0 1 0 64 0 32 32 0 1 0-64 0z",fill:"#979593"})]})}function Ro(){return l.jsx(O.SvgIcon,{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 20 20",style:{width:56,height:56},children:l.jsxs("g",{fill:"#FFBF00",fillRule:"evenodd",transform:"translate(1 1)",children:[l.jsx("path",{d:"m9.5.5 9 16h-18z",stroke:"#000000",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"m9.5 10.5v-5",stroke:"#000000",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("circle",{cx:"9.5",cy:"13.5",fill:"#000000",r:"1"})]})})}const R0=gr(l.jsx("path",{d:"M15.88 9.29 12 13.17 8.12 9.29a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41-.39-.38-1.03-.39-1.42 0"}),"ExpandMoreRounded"),j0=gr(l.jsx("path",{d:"M8.12 14.71 12 10.83l3.88 3.88c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L12.7 8.71a.996.996 0 0 0-1.41 0L6.7 13.3c-.39.39-.39 1.02 0 1.41.39.38 1.03.39 1.42 0"}),"KeyboardArrowUpRounded"),jo=({params:e,sortModel:r})=>l.jsxs("div",{style:{display:"grid",width:"100%",height:"100%"},children:[l.jsxs("div",{style:{marginRight:"auto",marginLeft:"auto",height:5},children:[(r==null?void 0:r.find(t=>t.field===e.colDef.field&&t.sort==="asc"))&&l.jsx(j0,{className:"tableHeaderIcon"}),(r==null?void 0:r.find(t=>t.field===e.colDef.field&&t.sort==="desc"))&&l.jsx(R0,{className:"tableHeaderIcon"})]}),l.jsx("div",{style:{display:"block"},children:l.jsx(O.Typography,{textAlign:e.colDef.headerAlign,style:{fontWeight:500},children:e.colDef.headerName})})]}),_0=40,I0=46,_o=O.styled(e=>{var o;const[r,t]=ue.useState(void 0),n=ue.useRef(!1);return!n.current&&!r&&e.initialState&&(t((o=e.initialState.sorting)==null?void 0:o.sortModel),n.current=!0),l.jsx(O.Box,{sx:{backgroundColor:"#fff",height:e.height?e.height:e.maxHeight,maxHeight:e.maxHeight,width:"100%"},children:l.jsx(ca.DataGridPro,{checkboxSelection:e.checkboxSelection,columnHeaderHeight:e.columnHeaderHeight||e.columnHeaderHeight===0?e.columnHeaderHeight:_0,columns:e.columns.map(a=>({...a,disableColumnMenu:a.disableColumnMenu?a.disableColumnMenu:!0,disableReorder:!0,renderHeader:s=>l.jsx(jo,{sortModel:r,params:s}),hideSortIcons:!0})),columnVisibilityModel:e.columnVisibilityModel,defaultGroupingExpansionDepth:e.defaultGroupingExpansionDepth?e.defaultGroupingExpansionDepth:0,disableColumnReorder:!0,disableMultipleRowSelection:e.disableMultipleRowSelection,getRowId:e.id,getTreeDataPath:e.getTreeDataPath,groupingColDef:e.groupingColDef,hideFooter:e.hideFooter!==void 0?e.hideFooter:!0,initialState:e.initialState||void 0,isRowSelectable:e.isRowSelectable,keepNonExistentRowsSelected:e.keepNonExistentRowsSelected,localeText:{noRowsLabel:e.noDataText?e.noDataText:"There are no results to display. Please update your search criteria"},onRowClick:e.onRowClick,onRowDoubleClick:e.onRowDoubleClick,onRowSelectionModelChange:e.onRowSelectionModelChange,onSortModelChange:a=>t(a),rowHeight:e.rowHeight?e.rowHeight:I0,rows:e.rows||[],rowSelectionModel:e.rowSelectionModel,slotProps:e.componentsProps,slots:{...e.slots,moreActionsIcon:void 0,noRowsOverlay:e.noRowsOverlay,baseCheckbox:a=>{const{slotProps:s,...i}=a;return l.jsx(O.Checkbox,{...i,checkedIcon:l.jsx("div",{style:{alignItems:"center",display:"flex"},children:l.jsx(Yr,{})}),icon:l.jsx("div",{style:{alignItems:"center",display:"flex"},children:l.jsx(zr,{})})})}},sortingOrder:["desc","asc"],sortModel:r,style:{borderBottom:0},sx:{"&.MuiDataGrid-root":{border:0},borderRadius:0,".MuiDataGrid-overlay ":{color:"#0060bb"},".Mui-selected":{backgroundColor:"#cde6f7 !important"},".MuiDataGrid-columnHeaders":e.borderTop?{borderTop:"1px solid rgb(224, 224, 224)"}:{}},treeData:e.treeData})})})(()=>({})),$0=O.styled(e=>{var s;const[r,t]=ue.useState(void 0),n=ue.useRef(!1);!n.current&&!r&&e.initialState&&(t((s=e.initialState.sorting)==null?void 0:s.sortModel),n.current=!0);const o=e.rowHeight?e.rowHeight:29,a=e.headerHeight?e.headerHeight:29;return l.jsx(_o,{maxHeight:e.maxHeight,height:a+(e.rows||[]).length*o,id:e.id,rows:e.rows||[],initialState:e.initialState||void 0,columns:e.columns.map(i=>({...i,disableColumnMenu:!0,disableReorder:!0,hideSortIcons:!0})),onRowDoubleClick:e.onRowDoubleClick,rowHeight:o,columnHeaderHeight:a,componentsProps:e.componentsProps})})(({})=>({})),N0=e=>l.jsx(O.Alert,{severity:e.severity?e.severity:"success",...e,children:e.children}),A0=({leftComponents:e,centerComponents:r,rightComponents:t,onClickHelp:n})=>l.jsxs("div",{style:{alignItems:"center",backgroundColor:"#fafafa",borderBottom:"1px solid #d8d8d8",display:"flex",justifyContent:"space-between",minHeight:"36px",paddingLeft:"0px",paddingRight:"15px"},children:[e&&l.jsx(l.Fragment,{children:e}),r&&l.jsx(l.Fragment,{children:r}),t&&l.jsx(l.Fragment,{children:t}),n&&l.jsx(O.Tooltip,{placement:"bottom-end",title:"Help for this Window",children:l.jsx(O.Link,{component:"button",onClick:n,sx:{lineHeight:"2.5",":hover":{cursor:"pointer",color:"#0060AC"}},underline:"hover",variant:"body1",children:"Help"})})]}),H0=e=>l.jsx(O.Autocomplete,{...e,autoComplete:!0,autoSelect:!0,forcePopupIcon:!0,fullWidth:!0,disableClearable:!0,slotProps:{listbox:{style:{padding:0}}},size:"small",renderInput:e.renderInput,sx:e.sx,getOptionLabel:e.getOptionLabel,renderOption:e.renderOption,options:e.options,value:e.value}),V0=e=>l.jsx(O.AvatarGroup,{...e,children:e.children}),B0=e=>l.jsx(O.Box,{...e,children:e.children}),Xe=e=>l.jsx(O.Button,{color:e.color||"primary",disabled:e.disabled,disableRipple:!0,onClick:e.onClick,size:e.size||"small",variant:e.variant||"contained",sx:e.sx,...e,children:e.children}),F0=e=>l.jsx(O.ButtonGroup,{...e,children:e.children}),W0=".checkbox {align-self: center; display: contents;} .checkbox svg {margin-left: 5px;}",Y0=({label:e,value:r,disabled:t,onChange:n})=>l.jsxs(l.Fragment,{children:[l.jsx("style",{children:W0}),l.jsx(O.FormControlLabel,{style:e?{marginLeft:0,marginRight:3}:{marginLeft:3,marginRight:3},control:l.jsx(O.Checkbox,{checked:r||!1,disabled:t,onChange:(o,a)=>{n&&n(a)},checkedIcon:l.jsx("div",{className:"checkbox",children:l.jsx(Yr,{disabled:t})}),icon:l.jsx("div",{className:"checkbox",children:l.jsx(zr,{})}),style:{marginRight:5},disableRipple:!0,disableTouchRipple:!0,disableFocusRipple:!0}),label:e})]}),z0=e=>l.jsx(O.Chip,{sx:e.sx?e.sx:{marginLeft:"auto",marginRight:"auto",fontSize:11,width:160,height:24,backgroundColor:"#e4e4e4"},...e}),G0=({decimalScale:e,disabled:r,id:t,onUpdate:n,placeholder:o,prefix:a,size:s,value:i,maxLength:u,width:f})=>l.jsx(Ir.NumericFormat,{customInput:O.OutlinedInput,decimalScale:e||2,disabled:r,fixedDecimalScale:!0,id:t,slotProps:{input:{maxLength:u}},onFocus:m=>m.target.select(),onValueChange:m=>{n&&n(m.floatValue)},placeholder:o,size:s||"small",startAdornment:a&&l.jsx(O.InputAdornment,{position:"start",children:l.jsx(O.Typography,{children:a})}),sx:{paddingLeft:"8px",width:f||130,"& .MuiInputBase-input":{borderLeft:"1px solid rgba(0, 0, 0, 0.23)",color:"#000",height:"16px",textAlign:"end"},"&.MuiOutlinedInput-root":{backgroundColor:r?"#f3f3f3":"field"}},thousandSeparator:!0,value:i||""}),Io=6048e5,q0=864e5,$o=6e4,No=36e5,Z0=1e3,Yn=Symbol.for("constructDateFrom");function fe(e,r){return typeof e=="function"?e(r):e&&typeof e=="object"&&Yn in e?e[Yn](r):e instanceof Date?new e.constructor(r):new Date(r)}function Y(e,r){return fe(r||e,e)}function Tt(e,r,t){const n=Y(e,t==null?void 0:t.in);return isNaN(r)?fe((t==null?void 0:t.in)||e,NaN):(r&&n.setDate(n.getDate()+r),n)}function Ao(e,r,t){return fe(e,+Y(e)+r)}function Q0(e,r,t){return Ao(e,r*1e3)}function X0(e,r,t){const n=Y(e,t==null?void 0:t.in);return n.setTime(n.getTime()+r*$o),n}function K0(e,r,t){return Ao(e,r*No)}function U0(e,r,t){return Tt(e,r*7,t)}function Ho(e,r,t){const n=Y(e,t==null?void 0:t.in);if(isNaN(r))return fe(e,NaN);if(!r)return n;const o=n.getDate(),a=fe(e,n.getTime());a.setMonth(n.getMonth()+r+1,0);const s=a.getDate();return o>=s?a:(n.setFullYear(a.getFullYear(),a.getMonth(),o),n)}function J0(e,r,t){return Ho(e,r*12,t)}function zn(e,r){const t=Y(e,r==null?void 0:r.in);return t.setHours(23,59,59,999),t}let ec={};function Ue(){return ec}function tc(e,r){var i,u,f,m;const t=Ue(),n=(r==null?void 0:r.weekStartsOn)??((u=(i=r==null?void 0:r.locale)==null?void 0:i.options)==null?void 0:u.weekStartsOn)??t.weekStartsOn??((m=(f=t.locale)==null?void 0:f.options)==null?void 0:m.weekStartsOn)??0,o=Y(e,r==null?void 0:r.in),a=o.getDay(),s=(a<n?-7:0)+6-(a-n);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function Gn(e,r){const t=Y(e,r==null?void 0:r.in),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}const rc={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Gr=(e,r,t)=>{let n;const o=rc[e];return typeof o=="string"?n=o:r===1?n=o.one:n=o.other.replace("{{count}}",r.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+n:n+" ago":n};function _e(e){return(r={})=>{const t=r.width?String(r.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}const nc={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},oc={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ac={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},sc={date:_e({formats:nc,defaultWidth:"full"}),time:_e({formats:oc,defaultWidth:"full"}),dateTime:_e({formats:ac,defaultWidth:"full"})},ic={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},qr=(e,r,t,n)=>ic[e];function gt(e){return(r,t)=>{const n=t!=null&&t.context?String(t.context):"standalone";let o;if(n==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,i=t!=null&&t.width?String(t.width):s;o=e.formattingValues[i]||e.formattingValues[s]}else{const s=e.defaultWidth,i=t!=null&&t.width?String(t.width):e.defaultWidth;o=e.values[i]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(r):r;return o[a]}}const cc={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},lc={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},uc={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dc={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},fc={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},hc={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},mc=(e,r)=>{const t=Number(e),n=t%100;if(n>20||n<10)switch(n%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},Zr={ordinalNumber:mc,era:gt({values:cc,defaultWidth:"wide"}),quarter:gt({values:lc,defaultWidth:"wide",argumentCallback:e=>e-1}),month:gt({values:uc,defaultWidth:"wide"}),day:gt({values:dc,defaultWidth:"wide"}),dayPeriod:gt({values:fc,defaultWidth:"wide",formattingValues:hc,defaultFormattingWidth:"wide"})};function yt(e){return(r,t={})=>{const n=t.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=r.match(o);if(!a)return null;const s=a[0],i=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(i)?yc(i,C=>C.test(s)):gc(i,C=>C.test(s));let f;f=e.valueCallback?e.valueCallback(u):u,f=t.valueCallback?t.valueCallback(f):f;const m=r.slice(s.length);return{value:f,rest:m}}}function gc(e,r){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&r(e[t]))return t}function yc(e,r){for(let t=0;t<e.length;t++)if(r(e[t]))return t}function pc(e){return(r,t={})=>{const n=r.match(e.matchPattern);if(!n)return null;const o=n[0],a=r.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=t.valueCallback?t.valueCallback(s):s;const i=r.slice(o.length);return{value:s,rest:i}}}const bc=/^(\d+)(th|st|nd|rd)?/i,Cc=/\d+/i,wc={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},xc={any:[/^b/i,/^(a|c)/i]},vc={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Tc={any:[/1/i,/2/i,/3/i,/4/i]},Sc={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Mc={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ec={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},kc={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Oc={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Lc={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Qr={ordinalNumber:pc({matchPattern:bc,parsePattern:Cc,valueCallback:e=>parseInt(e,10)}),era:yt({matchPatterns:wc,defaultMatchWidth:"wide",parsePatterns:xc,defaultParseWidth:"any"}),quarter:yt({matchPatterns:vc,defaultMatchWidth:"wide",parsePatterns:Tc,defaultParseWidth:"any",valueCallback:e=>e+1}),month:yt({matchPatterns:Sc,defaultMatchWidth:"wide",parsePatterns:Mc,defaultParseWidth:"any"}),day:yt({matchPatterns:Ec,defaultMatchWidth:"wide",parsePatterns:kc,defaultParseWidth:"any"}),dayPeriod:yt({matchPatterns:Oc,defaultMatchWidth:"any",parsePatterns:Lc,defaultParseWidth:"any"})},St={code:"en-US",formatDistance:Gr,formatLong:sc,formatRelative:qr,localize:Zr,match:Qr,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ut(e){const r=Y(e),t=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return t.setUTCFullYear(r.getFullYear()),+e-+t}function jt(e,...r){const t=fe.bind(null,r.find(n=>typeof n=="object"));return r.map(t)}function Mt(e,r){const t=Y(e,r==null?void 0:r.in);return t.setHours(0,0,0,0),t}function Dc(e,r,t){const[n,o]=jt(t==null?void 0:t.in,e,r),a=Mt(n),s=Mt(o),i=+a-Ut(a),u=+s-Ut(s);return Math.round((i-u)/q0)}function Vo(e,r){const t=Y(e,r==null?void 0:r.in);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}function Pc(e,r){const t=Y(e,r==null?void 0:r.in);return Dc(t,Vo(t))+1}function Ne(e,r){var i,u,f,m;const t=Ue(),n=(r==null?void 0:r.weekStartsOn)??((u=(i=r==null?void 0:r.locale)==null?void 0:i.options)==null?void 0:u.weekStartsOn)??t.weekStartsOn??((m=(f=t.locale)==null?void 0:f.options)==null?void 0:m.weekStartsOn)??0,o=Y(e,r==null?void 0:r.in),a=o.getDay(),s=(a<n?7:0)+a-n;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function lt(e,r){return Ne(e,{...r,weekStartsOn:1})}function Bo(e,r){const t=Y(e,r==null?void 0:r.in),n=t.getFullYear(),o=fe(t,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const a=lt(o),s=fe(t,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);const i=lt(s);return t.getTime()>=a.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function Rc(e,r){const t=Bo(e,r),n=fe(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),lt(n)}function Fo(e,r){const t=Y(e,r==null?void 0:r.in),n=+lt(t)-+Rc(t);return Math.round(n/Io)+1}function Xr(e,r){var m,C,p,x;const t=Y(e,r==null?void 0:r.in),n=t.getFullYear(),o=Ue(),a=(r==null?void 0:r.firstWeekContainsDate)??((C=(m=r==null?void 0:r.locale)==null?void 0:m.options)==null?void 0:C.firstWeekContainsDate)??o.firstWeekContainsDate??((x=(p=o.locale)==null?void 0:p.options)==null?void 0:x.firstWeekContainsDate)??1,s=fe((r==null?void 0:r.in)||e,0);s.setFullYear(n+1,0,a),s.setHours(0,0,0,0);const i=Ne(s,r),u=fe((r==null?void 0:r.in)||e,0);u.setFullYear(n,0,a),u.setHours(0,0,0,0);const f=Ne(u,r);return+t>=+i?n+1:+t>=+f?n:n-1}function jc(e,r){var i,u,f,m;const t=Ue(),n=(r==null?void 0:r.firstWeekContainsDate)??((u=(i=r==null?void 0:r.locale)==null?void 0:i.options)==null?void 0:u.firstWeekContainsDate)??t.firstWeekContainsDate??((m=(f=t.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??1,o=Xr(e,r),a=fe((r==null?void 0:r.in)||e,0);return a.setFullYear(o,0,n),a.setHours(0,0,0,0),Ne(a,r)}function Kr(e,r){const t=Y(e,r==null?void 0:r.in),n=+Ne(t,r)-+jc(t,r);return Math.round(n/Io)+1}function ae(e,r){const t=e<0?"-":"",n=Math.abs(e).toString().padStart(r,"0");return t+n}const Ae={y(e,r){const t=e.getFullYear(),n=t>0?t:1-t;return ae(r==="yy"?n%100:n,r.length)},M(e,r){const t=e.getMonth();return r==="M"?String(t+1):ae(t+1,2)},d(e,r){return ae(e.getDate(),r.length)},a(e,r){const t=e.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(e,r){return ae(e.getHours()%12||12,r.length)},H(e,r){return ae(e.getHours(),r.length)},m(e,r){return ae(e.getMinutes(),r.length)},s(e,r){return ae(e.getSeconds(),r.length)},S(e,r){const t=r.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,t-3));return ae(o,r.length)}},ot={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},qn={G:function(e,r,t){const n=e.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return t.era(n,{width:"abbreviated"});case"GGGGG":return t.era(n,{width:"narrow"});case"GGGG":default:return t.era(n,{width:"wide"})}},y:function(e,r,t){if(r==="yo"){const n=e.getFullYear(),o=n>0?n:1-n;return t.ordinalNumber(o,{unit:"year"})}return Ae.y(e,r)},Y:function(e,r,t,n){const o=Xr(e,n),a=o>0?o:1-o;if(r==="YY"){const s=a%100;return ae(s,2)}return r==="Yo"?t.ordinalNumber(a,{unit:"year"}):ae(a,r.length)},R:function(e,r){const t=Bo(e);return ae(t,r.length)},u:function(e,r){const t=e.getFullYear();return ae(t,r.length)},Q:function(e,r,t){const n=Math.ceil((e.getMonth()+1)/3);switch(r){case"Q":return String(n);case"QQ":return ae(n,2);case"Qo":return t.ordinalNumber(n,{unit:"quarter"});case"QQQ":return t.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,r,t){const n=Math.ceil((e.getMonth()+1)/3);switch(r){case"q":return String(n);case"qq":return ae(n,2);case"qo":return t.ordinalNumber(n,{unit:"quarter"});case"qqq":return t.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,r,t){const n=e.getMonth();switch(r){case"M":case"MM":return Ae.M(e,r);case"Mo":return t.ordinalNumber(n+1,{unit:"month"});case"MMM":return t.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(n,{width:"wide",context:"formatting"})}},L:function(e,r,t){const n=e.getMonth();switch(r){case"L":return String(n+1);case"LL":return ae(n+1,2);case"Lo":return t.ordinalNumber(n+1,{unit:"month"});case"LLL":return t.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(n,{width:"wide",context:"standalone"})}},w:function(e,r,t,n){const o=Kr(e,n);return r==="wo"?t.ordinalNumber(o,{unit:"week"}):ae(o,r.length)},I:function(e,r,t){const n=Fo(e);return r==="Io"?t.ordinalNumber(n,{unit:"week"}):ae(n,r.length)},d:function(e,r,t){return r==="do"?t.ordinalNumber(e.getDate(),{unit:"date"}):Ae.d(e,r)},D:function(e,r,t){const n=Pc(e);return r==="Do"?t.ordinalNumber(n,{unit:"dayOfYear"}):ae(n,r.length)},E:function(e,r,t){const n=e.getDay();switch(r){case"E":case"EE":case"EEE":return t.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(n,{width:"short",context:"formatting"});case"EEEE":default:return t.day(n,{width:"wide",context:"formatting"})}},e:function(e,r,t,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return ae(a,2);case"eo":return t.ordinalNumber(a,{unit:"day"});case"eee":return t.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(o,{width:"short",context:"formatting"});case"eeee":default:return t.day(o,{width:"wide",context:"formatting"})}},c:function(e,r,t,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return ae(a,r.length);case"co":return t.ordinalNumber(a,{unit:"day"});case"ccc":return t.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(o,{width:"narrow",context:"standalone"});case"cccccc":return t.day(o,{width:"short",context:"standalone"});case"cccc":default:return t.day(o,{width:"wide",context:"standalone"})}},i:function(e,r,t){const n=e.getDay(),o=n===0?7:n;switch(r){case"i":return String(o);case"ii":return ae(o,r.length);case"io":return t.ordinalNumber(o,{unit:"day"});case"iii":return t.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(n,{width:"short",context:"formatting"});case"iiii":default:return t.day(n,{width:"wide",context:"formatting"})}},a:function(e,r,t){const o=e.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,r,t){const n=e.getHours();let o;switch(n===12?o=ot.noon:n===0?o=ot.midnight:o=n/12>=1?"pm":"am",r){case"b":case"bb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,r,t){const n=e.getHours();let o;switch(n>=17?o=ot.evening:n>=12?o=ot.afternoon:n>=4?o=ot.morning:o=ot.night,r){case"B":case"BB":case"BBB":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,r,t){if(r==="ho"){let n=e.getHours()%12;return n===0&&(n=12),t.ordinalNumber(n,{unit:"hour"})}return Ae.h(e,r)},H:function(e,r,t){return r==="Ho"?t.ordinalNumber(e.getHours(),{unit:"hour"}):Ae.H(e,r)},K:function(e,r,t){const n=e.getHours()%12;return r==="Ko"?t.ordinalNumber(n,{unit:"hour"}):ae(n,r.length)},k:function(e,r,t){let n=e.getHours();return n===0&&(n=24),r==="ko"?t.ordinalNumber(n,{unit:"hour"}):ae(n,r.length)},m:function(e,r,t){return r==="mo"?t.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ae.m(e,r)},s:function(e,r,t){return r==="so"?t.ordinalNumber(e.getSeconds(),{unit:"second"}):Ae.s(e,r)},S:function(e,r){return Ae.S(e,r)},X:function(e,r,t){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(r){case"X":return Qn(n);case"XXXX":case"XX":return Ge(n);case"XXXXX":case"XXX":default:return Ge(n,":")}},x:function(e,r,t){const n=e.getTimezoneOffset();switch(r){case"x":return Qn(n);case"xxxx":case"xx":return Ge(n);case"xxxxx":case"xxx":default:return Ge(n,":")}},O:function(e,r,t){const n=e.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Zn(n,":");case"OOOO":default:return"GMT"+Ge(n,":")}},z:function(e,r,t){const n=e.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Zn(n,":");case"zzzz":default:return"GMT"+Ge(n,":")}},t:function(e,r,t){const n=Math.trunc(+e/1e3);return ae(n,r.length)},T:function(e,r,t){return ae(+e,r.length)}};function Zn(e,r=""){const t=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),a=n%60;return a===0?t+String(o):t+String(o)+r+ae(a,2)}function Qn(e,r){return e%60===0?(e>0?"-":"+")+ae(Math.abs(e)/60,2):Ge(e,r)}function Ge(e,r=""){const t=e>0?"-":"+",n=Math.abs(e),o=ae(Math.trunc(n/60),2),a=ae(n%60,2);return t+o+r+a}const Xn=(e,r)=>{switch(e){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},Wo=(e,r)=>{switch(e){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},_c=(e,r)=>{const t=e.match(/(P+)(p+)?/)||[],n=t[1],o=t[2];if(!o)return Xn(e,r);let a;switch(n){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;case"PPPP":default:a=r.dateTime({width:"full"});break}return a.replace("{{date}}",Xn(n,r)).replace("{{time}}",Wo(o,r))},Et={p:Wo,P:_c},Ic=/^D+$/,$c=/^Y+$/,Nc=["D","DD","YY","YYYY"];function Yo(e){return Ic.test(e)}function zo(e){return $c.test(e)}function Rr(e,r,t){const n=Ac(e,r,t);if(console.warn(n),Nc.includes(e))throw new RangeError(n)}function Ac(e,r,t){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${r}\`) for formatting ${n} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function Hc(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Go(e){return!(!Hc(e)&&typeof e!="number"||isNaN(+Y(e)))}const Vc=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Bc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Fc=/^'([^]*?)'?$/,Wc=/''/g,Yc=/[a-zA-Z]/;function zc(e,r,t){var m,C,p,x,w,h,E,$;const n=Ue(),o=(t==null?void 0:t.locale)??n.locale??St,a=(t==null?void 0:t.firstWeekContainsDate)??((C=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:C.firstWeekContainsDate)??n.firstWeekContainsDate??((x=(p=n.locale)==null?void 0:p.options)==null?void 0:x.firstWeekContainsDate)??1,s=(t==null?void 0:t.weekStartsOn)??((h=(w=t==null?void 0:t.locale)==null?void 0:w.options)==null?void 0:h.weekStartsOn)??n.weekStartsOn??(($=(E=n.locale)==null?void 0:E.options)==null?void 0:$.weekStartsOn)??0,i=Y(e,t==null?void 0:t.in);if(!Go(i))throw new RangeError("Invalid time value");let u=r.match(Bc).map(j=>{const P=j[0];if(P==="p"||P==="P"){const k=Et[P];return k(j,o.formatLong)}return j}).join("").match(Vc).map(j=>{if(j==="''")return{isToken:!1,value:"'"};const P=j[0];if(P==="'")return{isToken:!1,value:Gc(j)};if(qn[P])return{isToken:!0,value:j};if(P.match(Yc))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");return{isToken:!1,value:j}});o.localize.preprocessor&&(u=o.localize.preprocessor(i,u));const f={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return u.map(j=>{if(!j.isToken)return j.value;const P=j.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&zo(P)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&Yo(P))&&Rr(P,r,String(e));const k=qn[P[0]];return k(i,P,o.localize,f)}).join("")}function Gc(e){const r=e.match(Fc);return r?r[1].replace(Wc,"'"):e}function qc(e,r){return Y(e,r==null?void 0:r.in).getDate()}function qo(e,r){const t=Y(e,r==null?void 0:r.in),n=t.getFullYear(),o=t.getMonth(),a=fe(t,0);return a.setFullYear(n,o+1,0),a.setHours(0,0,0,0),a.getDate()}function Zc(e,r){return Y(e,r==null?void 0:r.in).getHours()}function Qc(e,r){return Y(e,r==null?void 0:r.in).getMinutes()}function Xc(e,r){return Y(e,r==null?void 0:r.in).getMonth()}function Kc(e){return Y(e).getSeconds()}function Uc(e){return Y(e).getMilliseconds()}function Jc(e,r){return Y(e,r==null?void 0:r.in).getFullYear()}function Er(e,r){return+Y(e)>+Y(r)}function kr(e,r){return+Y(e)<+Y(r)}function el(e,r){return+Y(e)==+Y(r)}function tl(e,r,t){const[n,o]=jt(t==null?void 0:t.in,e,r);return+Mt(n)==+Mt(o)}function rl(e,r,t){const[n,o]=jt(t==null?void 0:t.in,e,r);return n.getFullYear()===o.getFullYear()}function nl(e,r,t){const[n,o]=jt(t==null?void 0:t.in,e,r);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function Kn(e,r){const t=Y(e,r==null?void 0:r.in);return t.setMinutes(0,0,0),t}function ol(e,r,t){const[n,o]=jt(t==null?void 0:t.in,e,r);return+Kn(n)==+Kn(o)}function al(){return Object.assign({},Ue())}function sl(e,r){const t=il(r)?new r(0):fe(r,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t}function il(e){var r;return typeof e=="function"&&((r=e.prototype)==null?void 0:r.constructor)===e}const cl=10;class Zo{constructor(){v(this,"subPriority",0)}validate(r,t){return!0}}class ll extends Zo{constructor(r,t,n,o,a){super(),this.value=r,this.validateValue=t,this.setValue=n,this.priority=o,a&&(this.subPriority=a)}validate(r,t){return this.validateValue(r,this.value,t)}set(r,t,n){return this.setValue(r,t,this.value,n)}}class ul extends Zo{constructor(t,n){super();v(this,"priority",cl);v(this,"subPriority",-1);this.context=t||(o=>fe(n,o))}set(t,n){return n.timestampIsSet?t:fe(t,sl(t,this.context))}}class ee{run(r,t,n,o){const a=this.parse(r,t,n,o);return a?{setter:new ll(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(r,t,n){return!0}}class dl extends ee{constructor(){super(...arguments);v(this,"priority",140);v(this,"incompatibleTokens",["R","u","t","T"])}parse(t,n,o){switch(n){case"G":case"GG":case"GGG":return o.era(t,{width:"abbreviated"})||o.era(t,{width:"narrow"});case"GGGGG":return o.era(t,{width:"narrow"});case"GGGG":default:return o.era(t,{width:"wide"})||o.era(t,{width:"abbreviated"})||o.era(t,{width:"narrow"})}}set(t,n,o){return n.era=o,t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}}const pe={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Le={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function be(e,r){return e&&{value:r(e.value),rest:e.rest}}function he(e,r){const t=r.match(e);return t?{value:parseInt(t[0],10),rest:r.slice(t[0].length)}:null}function De(e,r){const t=r.match(e);if(!t)return null;if(t[0]==="Z")return{value:0,rest:r.slice(1)};const n=t[1]==="+"?1:-1,o=t[2]?parseInt(t[2],10):0,a=t[3]?parseInt(t[3],10):0,s=t[5]?parseInt(t[5],10):0;return{value:n*(o*No+a*$o+s*Z0),rest:r.slice(t[0].length)}}function Qo(e){return he(pe.anyDigitsSigned,e)}function ye(e,r){switch(e){case 1:return he(pe.singleDigit,r);case 2:return he(pe.twoDigits,r);case 3:return he(pe.threeDigits,r);case 4:return he(pe.fourDigits,r);default:return he(new RegExp("^\\d{1,"+e+"}"),r)}}function Jt(e,r){switch(e){case 1:return he(pe.singleDigitSigned,r);case 2:return he(pe.twoDigitsSigned,r);case 3:return he(pe.threeDigitsSigned,r);case 4:return he(pe.fourDigitsSigned,r);default:return he(new RegExp("^-?\\d{1,"+e+"}"),r)}}function Ur(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Xo(e,r){const t=r>0,n=t?r:1-r;let o;if(n<=50)o=e||100;else{const a=n+50,s=Math.trunc(a/100)*100,i=e>=a%100;o=e+s-(i?100:0)}return t?o:1-o}function Ko(e){return e%400===0||e%4===0&&e%100!==0}class fl extends ee{constructor(){super(...arguments);v(this,"priority",130);v(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,n,o){const a=s=>({year:s,isTwoDigitYear:n==="yy"});switch(n){case"y":return be(ye(4,t),a);case"yo":return be(o.ordinalNumber(t,{unit:"year"}),a);default:return be(ye(n.length,t),a)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,o){const a=t.getFullYear();if(o.isTwoDigitYear){const i=Xo(o.year,a);return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}const s=!("era"in n)||n.era===1?o.year:1-o.year;return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}}class hl extends ee{constructor(){super(...arguments);v(this,"priority",130);v(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,n,o){const a=s=>({year:s,isTwoDigitYear:n==="YY"});switch(n){case"Y":return be(ye(4,t),a);case"Yo":return be(o.ordinalNumber(t,{unit:"year"}),a);default:return be(ye(n.length,t),a)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,o,a){const s=Xr(t,a);if(o.isTwoDigitYear){const u=Xo(o.year,s);return t.setFullYear(u,0,a.firstWeekContainsDate),t.setHours(0,0,0,0),Ne(t,a)}const i=!("era"in n)||n.era===1?o.year:1-o.year;return t.setFullYear(i,0,a.firstWeekContainsDate),t.setHours(0,0,0,0),Ne(t,a)}}class ml extends ee{constructor(){super(...arguments);v(this,"priority",130);v(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,n){return Jt(n==="R"?4:n.length,t)}set(t,n,o){const a=fe(t,0);return a.setFullYear(o,0,4),a.setHours(0,0,0,0),lt(a)}}class gl extends ee{constructor(){super(...arguments);v(this,"priority",130);v(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,n){return Jt(n==="u"?4:n.length,t)}set(t,n,o){return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}}class yl extends ee{constructor(){super(...arguments);v(this,"priority",120);v(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,n,o){switch(n){case"Q":case"QQ":return ye(n.length,t);case"Qo":return o.ordinalNumber(t,{unit:"quarter"});case"QQQ":return o.quarter(t,{width:"abbreviated",context:"formatting"})||o.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(t,{width:"wide",context:"formatting"})||o.quarter(t,{width:"abbreviated",context:"formatting"})||o.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=1&&n<=4}set(t,n,o){return t.setMonth((o-1)*3,1),t.setHours(0,0,0,0),t}}class pl extends ee{constructor(){super(...arguments);v(this,"priority",120);v(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,n,o){switch(n){case"q":case"qq":return ye(n.length,t);case"qo":return o.ordinalNumber(t,{unit:"quarter"});case"qqq":return o.quarter(t,{width:"abbreviated",context:"standalone"})||o.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(t,{width:"wide",context:"standalone"})||o.quarter(t,{width:"abbreviated",context:"standalone"})||o.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=1&&n<=4}set(t,n,o){return t.setMonth((o-1)*3,1),t.setHours(0,0,0,0),t}}class bl extends ee{constructor(){super(...arguments);v(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);v(this,"priority",110)}parse(t,n,o){const a=s=>s-1;switch(n){case"M":return be(he(pe.month,t),a);case"MM":return be(ye(2,t),a);case"Mo":return be(o.ordinalNumber(t,{unit:"month"}),a);case"MMM":return o.month(t,{width:"abbreviated",context:"formatting"})||o.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(t,{width:"wide",context:"formatting"})||o.month(t,{width:"abbreviated",context:"formatting"})||o.month(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=11}set(t,n,o){return t.setMonth(o,1),t.setHours(0,0,0,0),t}}class Cl extends ee{constructor(){super(...arguments);v(this,"priority",110);v(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,n,o){const a=s=>s-1;switch(n){case"L":return be(he(pe.month,t),a);case"LL":return be(ye(2,t),a);case"Lo":return be(o.ordinalNumber(t,{unit:"month"}),a);case"LLL":return o.month(t,{width:"abbreviated",context:"standalone"})||o.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(t,{width:"wide",context:"standalone"})||o.month(t,{width:"abbreviated",context:"standalone"})||o.month(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=11}set(t,n,o){return t.setMonth(o,1),t.setHours(0,0,0,0),t}}function wl(e,r,t){const n=Y(e,t==null?void 0:t.in),o=Kr(n,t)-r;return n.setDate(n.getDate()-o*7),Y(n,t==null?void 0:t.in)}class xl extends ee{constructor(){super(...arguments);v(this,"priority",100);v(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,n,o){switch(n){case"w":return he(pe.week,t);case"wo":return o.ordinalNumber(t,{unit:"week"});default:return ye(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,o,a){return Ne(wl(t,o,a),a)}}function vl(e,r,t){const n=Y(e,t==null?void 0:t.in),o=Fo(n,t)-r;return n.setDate(n.getDate()-o*7),n}class Tl extends ee{constructor(){super(...arguments);v(this,"priority",100);v(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,n,o){switch(n){case"I":return he(pe.week,t);case"Io":return o.ordinalNumber(t,{unit:"week"});default:return ye(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,o){return lt(vl(t,o))}}const Sl=[31,28,31,30,31,30,31,31,30,31,30,31],Ml=[31,29,31,30,31,30,31,31,30,31,30,31];class El extends ee{constructor(){super(...arguments);v(this,"priority",90);v(this,"subPriority",1);v(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,n,o){switch(n){case"d":return he(pe.date,t);case"do":return o.ordinalNumber(t,{unit:"date"});default:return ye(n.length,t)}}validate(t,n){const o=t.getFullYear(),a=Ko(o),s=t.getMonth();return a?n>=1&&n<=Ml[s]:n>=1&&n<=Sl[s]}set(t,n,o){return t.setDate(o),t.setHours(0,0,0,0),t}}class kl extends ee{constructor(){super(...arguments);v(this,"priority",90);v(this,"subpriority",1);v(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,n,o){switch(n){case"D":case"DD":return he(pe.dayOfYear,t);case"Do":return o.ordinalNumber(t,{unit:"date"});default:return ye(n.length,t)}}validate(t,n){const o=t.getFullYear();return Ko(o)?n>=1&&n<=366:n>=1&&n<=365}set(t,n,o){return t.setMonth(0,o),t.setHours(0,0,0,0),t}}function Jr(e,r,t){var C,p,x,w;const n=Ue(),o=(t==null?void 0:t.weekStartsOn)??((p=(C=t==null?void 0:t.locale)==null?void 0:C.options)==null?void 0:p.weekStartsOn)??n.weekStartsOn??((w=(x=n.locale)==null?void 0:x.options)==null?void 0:w.weekStartsOn)??0,a=Y(e,t==null?void 0:t.in),s=a.getDay(),u=(r%7+7)%7,f=7-o,m=r<0||r>6?r-(s+f)%7:(u+f)%7-(s+f)%7;return Tt(a,m,t)}class Ol extends ee{constructor(){super(...arguments);v(this,"priority",90);v(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,n,o){switch(n){case"E":case"EE":case"EEE":return o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,o,a){return t=Jr(t,o,a),t.setHours(0,0,0,0),t}}class Ll extends ee{constructor(){super(...arguments);v(this,"priority",90);v(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,n,o,a){const s=i=>{const u=Math.floor((i-1)/7)*7;return(i+a.weekStartsOn+6)%7+u};switch(n){case"e":case"ee":return be(ye(n.length,t),s);case"eo":return be(o.ordinalNumber(t,{unit:"day"}),s);case"eee":return o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"eeeee":return o.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,o,a){return t=Jr(t,o,a),t.setHours(0,0,0,0),t}}class Dl extends ee{constructor(){super(...arguments);v(this,"priority",90);v(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,n,o,a){const s=i=>{const u=Math.floor((i-1)/7)*7;return(i+a.weekStartsOn+6)%7+u};switch(n){case"c":case"cc":return be(ye(n.length,t),s);case"co":return be(o.ordinalNumber(t,{unit:"day"}),s);case"ccc":return o.day(t,{width:"abbreviated",context:"standalone"})||o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"});case"ccccc":return o.day(t,{width:"narrow",context:"standalone"});case"cccccc":return o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(t,{width:"wide",context:"standalone"})||o.day(t,{width:"abbreviated",context:"standalone"})||o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=6}set(t,n,o,a){return t=Jr(t,o,a),t.setHours(0,0,0,0),t}}function Pl(e,r){const t=Y(e,r==null?void 0:r.in).getDay();return t===0?7:t}function Rl(e,r,t){const n=Y(e,t==null?void 0:t.in),o=Pl(n,t),a=r-o;return Tt(n,a,t)}class jl extends ee{constructor(){super(...arguments);v(this,"priority",90);v(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,n,o){const a=s=>s===0?7:s;switch(n){case"i":case"ii":return ye(n.length,t);case"io":return o.ordinalNumber(t,{unit:"day"});case"iii":return be(o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"}),a);case"iiiii":return be(o.day(t,{width:"narrow",context:"formatting"}),a);case"iiiiii":return be(o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"}),a);case"iiii":default:return be(o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"}),a)}}validate(t,n){return n>=1&&n<=7}set(t,n,o){return t=Rl(t,o),t.setHours(0,0,0,0),t}}class _l extends ee{constructor(){super(...arguments);v(this,"priority",80);v(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,n,o){switch(n){case"a":case"aa":case"aaa":return o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(t,{width:"wide",context:"formatting"})||o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,o){return t.setHours(Ur(o),0,0,0),t}}class Il extends ee{constructor(){super(...arguments);v(this,"priority",80);v(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,n,o){switch(n){case"b":case"bb":case"bbb":return o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(t,{width:"wide",context:"formatting"})||o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,o){return t.setHours(Ur(o),0,0,0),t}}class $l extends ee{constructor(){super(...arguments);v(this,"priority",80);v(this,"incompatibleTokens",["a","b","t","T"])}parse(t,n,o){switch(n){case"B":case"BB":case"BBB":return o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(t,{width:"wide",context:"formatting"})||o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,o){return t.setHours(Ur(o),0,0,0),t}}class Nl extends ee{constructor(){super(...arguments);v(this,"priority",70);v(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,n,o){switch(n){case"h":return he(pe.hour12h,t);case"ho":return o.ordinalNumber(t,{unit:"hour"});default:return ye(n.length,t)}}validate(t,n){return n>=1&&n<=12}set(t,n,o){const a=t.getHours()>=12;return a&&o<12?t.setHours(o+12,0,0,0):!a&&o===12?t.setHours(0,0,0,0):t.setHours(o,0,0,0),t}}class Al extends ee{constructor(){super(...arguments);v(this,"priority",70);v(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,n,o){switch(n){case"H":return he(pe.hour23h,t);case"Ho":return o.ordinalNumber(t,{unit:"hour"});default:return ye(n.length,t)}}validate(t,n){return n>=0&&n<=23}set(t,n,o){return t.setHours(o,0,0,0),t}}class Hl extends ee{constructor(){super(...arguments);v(this,"priority",70);v(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,n,o){switch(n){case"K":return he(pe.hour11h,t);case"Ko":return o.ordinalNumber(t,{unit:"hour"});default:return ye(n.length,t)}}validate(t,n){return n>=0&&n<=11}set(t,n,o){return t.getHours()>=12&&o<12?t.setHours(o+12,0,0,0):t.setHours(o,0,0,0),t}}class Vl extends ee{constructor(){super(...arguments);v(this,"priority",70);v(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,n,o){switch(n){case"k":return he(pe.hour24h,t);case"ko":return o.ordinalNumber(t,{unit:"hour"});default:return ye(n.length,t)}}validate(t,n){return n>=1&&n<=24}set(t,n,o){const a=o<=24?o%24:o;return t.setHours(a,0,0,0),t}}class Bl extends ee{constructor(){super(...arguments);v(this,"priority",60);v(this,"incompatibleTokens",["t","T"])}parse(t,n,o){switch(n){case"m":return he(pe.minute,t);case"mo":return o.ordinalNumber(t,{unit:"minute"});default:return ye(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,o){return t.setMinutes(o,0,0),t}}class Fl extends ee{constructor(){super(...arguments);v(this,"priority",50);v(this,"incompatibleTokens",["t","T"])}parse(t,n,o){switch(n){case"s":return he(pe.second,t);case"so":return o.ordinalNumber(t,{unit:"second"});default:return ye(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,o){return t.setSeconds(o,0),t}}class Wl extends ee{constructor(){super(...arguments);v(this,"priority",30);v(this,"incompatibleTokens",["t","T"])}parse(t,n){const o=a=>Math.trunc(a*Math.pow(10,-n.length+3));return be(ye(n.length,t),o)}set(t,n,o){return t.setMilliseconds(o),t}}class Yl extends ee{constructor(){super(...arguments);v(this,"priority",10);v(this,"incompatibleTokens",["t","T","x"])}parse(t,n){switch(n){case"X":return De(Le.basicOptionalMinutes,t);case"XX":return De(Le.basic,t);case"XXXX":return De(Le.basicOptionalSeconds,t);case"XXXXX":return De(Le.extendedOptionalSeconds,t);case"XXX":default:return De(Le.extended,t)}}set(t,n,o){return n.timestampIsSet?t:fe(t,t.getTime()-Ut(t)-o)}}class zl extends ee{constructor(){super(...arguments);v(this,"priority",10);v(this,"incompatibleTokens",["t","T","X"])}parse(t,n){switch(n){case"x":return De(Le.basicOptionalMinutes,t);case"xx":return De(Le.basic,t);case"xxxx":return De(Le.basicOptionalSeconds,t);case"xxxxx":return De(Le.extendedOptionalSeconds,t);case"xxx":default:return De(Le.extended,t)}}set(t,n,o){return n.timestampIsSet?t:fe(t,t.getTime()-Ut(t)-o)}}class Gl extends ee{constructor(){super(...arguments);v(this,"priority",40);v(this,"incompatibleTokens","*")}parse(t){return Qo(t)}set(t,n,o){return[fe(t,o*1e3),{timestampIsSet:!0}]}}class ql extends ee{constructor(){super(...arguments);v(this,"priority",20);v(this,"incompatibleTokens","*")}parse(t){return Qo(t)}set(t,n,o){return[fe(t,o),{timestampIsSet:!0}]}}const Zl={G:new dl,y:new fl,Y:new hl,R:new ml,u:new gl,Q:new yl,q:new pl,M:new bl,L:new Cl,w:new xl,I:new Tl,d:new El,D:new kl,E:new Ol,e:new Ll,c:new Dl,i:new jl,a:new _l,b:new Il,B:new $l,h:new Nl,H:new Al,K:new Hl,k:new Vl,m:new Bl,s:new Fl,S:new Wl,X:new Yl,x:new zl,t:new Gl,T:new ql},Ql=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Xl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Kl=/^'([^]*?)'?$/,Ul=/''/g,Jl=/\S/,eu=/[a-zA-Z]/;function tu(e,r,t,n){var E,$,j,P,k,M,_,N;const o=()=>fe((n==null?void 0:n.in)||t,NaN),a=al(),s=(n==null?void 0:n.locale)??a.locale??St,i=(n==null?void 0:n.firstWeekContainsDate)??(($=(E=n==null?void 0:n.locale)==null?void 0:E.options)==null?void 0:$.firstWeekContainsDate)??a.firstWeekContainsDate??((P=(j=a.locale)==null?void 0:j.options)==null?void 0:P.firstWeekContainsDate)??1,u=(n==null?void 0:n.weekStartsOn)??((M=(k=n==null?void 0:n.locale)==null?void 0:k.options)==null?void 0:M.weekStartsOn)??a.weekStartsOn??((N=(_=a.locale)==null?void 0:_.options)==null?void 0:N.weekStartsOn)??0;if(!r)return e?o():Y(t,n==null?void 0:n.in);const f={firstWeekContainsDate:i,weekStartsOn:u,locale:s},m=[new ul(n==null?void 0:n.in,t)],C=r.match(Xl).map(D=>{const B=D[0];if(B in Et){const G=Et[B];return G(D,s.formatLong)}return D}).join("").match(Ql),p=[];for(let D of C){!(n!=null&&n.useAdditionalWeekYearTokens)&&zo(D)&&Rr(D,r,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Yo(D)&&Rr(D,r,e);const B=D[0],G=Zl[B];if(G){const{incompatibleTokens:z}=G;if(Array.isArray(z)){const g=p.find(b=>z.includes(b.token)||b.token===B);if(g)throw new RangeError(`The format string mustn't contain \`${g.fullToken}\` and \`${D}\` at the same time`)}else if(G.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${D}\` and any other token at the same time`);p.push({token:B,fullToken:D});const c=G.run(e,D,s.match,f);if(!c)return o();m.push(c.setter),e=c.rest}else{if(B.match(eu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+B+"`");if(D==="''"?D="'":B==="'"&&(D=ru(D)),e.indexOf(D)===0)e=e.slice(D.length);else return o()}}if(e.length>0&&Jl.test(e))return o();const x=m.map(D=>D.priority).sort((D,B)=>B-D).filter((D,B,G)=>G.indexOf(D)===B).map(D=>m.filter(B=>B.priority===D).sort((B,G)=>G.subPriority-B.subPriority)).map(D=>D[0]);let w=Y(t,n==null?void 0:n.in);if(isNaN(+w))return o();const h={};for(const D of x){if(!D.validate(w,f))return o();const B=D.set(w,h,f);Array.isArray(B)?(w=B[0],Object.assign(h,B[1])):w=B}return w}function ru(e){return e.match(Kl)[1].replace(Ul,"'")}function nu(e,r,t){const n=Y(e,t==null?void 0:t.in);return n.setDate(r),n}function ou(e,r,t){const n=Y(e,t==null?void 0:t.in);return n.setHours(r),n}function au(e,r,t){const n=Y(e,t==null?void 0:t.in);return n.setMinutes(r),n}function su(e,r,t){const n=Y(e,t==null?void 0:t.in),o=n.getFullYear(),a=n.getDate(),s=fe(e,0);s.setFullYear(o,r,15),s.setHours(0,0,0,0);const i=qo(s);return n.setMonth(r,Math.min(a,i)),n}function iu(e,r,t){const n=Y(e,t==null?void 0:t.in);return n.setSeconds(r),n}function cu(e,r,t){const n=Y(e,t==null?void 0:t.in);return n.setMilliseconds(r),n}function lu(e,r,t){const n=Y(e,t==null?void 0:t.in);return isNaN(+n)?fe(e,NaN):(n.setFullYear(r),n)}function uu(e,r){const t=Y(e,r==null?void 0:r.in);return t.setDate(1),t.setHours(0,0,0,0),t}function du(e,r){const t=Y(e,r==null?void 0:r.in),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function fu(e,r,t){const n=+Y(e,t==null?void 0:t.in),[o,a]=[+Y(r.start,t==null?void 0:t.in),+Y(r.end,t==null?void 0:t.in)].sort((s,i)=>s-i);return n>=o&&n<=a}function jr(){return jr=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},jr.apply(null,arguments)}const hu={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},mu={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",dayOfMonthFull:"do",weekday:"EEEE",weekdayShort:"EEEEEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class gu{constructor(r){v(this,"isMUIAdapter",!0);v(this,"isTimezoneCompatible",!1);v(this,"formatTokenMap",hu);v(this,"escapedCharacters",{start:"'",end:"'"});v(this,"date",r=>typeof r>"u"?new Date:r===null?null:new Date(r));v(this,"getInvalidDate",()=>new Date("Invalid Date"));v(this,"getTimezone",()=>"default");v(this,"setTimezone",r=>r);v(this,"toJsDate",r=>r);v(this,"getCurrentLocaleCode",()=>this.locale.code);v(this,"is12HourCycleInCurrentLocale",()=>/a/.test(this.locale.formatLong.time({width:"short"})));v(this,"expandFormat",r=>{const t=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return r.match(t).map(n=>{const o=n[0];if(o==="p"||o==="P"){const a=this.longFormatters[o];return a(n,this.locale.formatLong)}return n}).join("")});v(this,"formatNumber",r=>r);v(this,"getDayOfWeek",r=>r.getDay()+1);const{locale:t,formats:n,longFormatters:o,lib:a}=r;this.locale=t,this.formats=jr({},mu,n),this.longFormatters=o,this.lib=a||"date-fns"}}class Uo extends gu{constructor({locale:t,formats:n}={}){if(process.env.NODE_ENV!=="production"){if(typeof Tt!="function")throw new Error(["MUI: The `date-fns` package v2.x is not compatible with this adapter.","Please, install v3.x or v4.x of the package or use the `AdapterDateFnsV2` instead."].join(`
|
|
102
102
|
`));if(!Et)throw new Error("MUI: The minimum supported `date-fns` package version compatible with this adapter is `3.2.x`.")}super({locale:t??St,formats:n,longFormatters:Et});v(this,"parse",(t,n)=>t===""?null:tu(t,n,new Date,{locale:this.locale}));v(this,"isValid",t=>t==null?!1:Go(t));v(this,"format",(t,n)=>this.formatByString(t,this.formats[n]));v(this,"formatByString",(t,n)=>zc(t,n,{locale:this.locale}));v(this,"isEqual",(t,n)=>t===null&&n===null?!0:t===null||n===null?!1:el(t,n));v(this,"isSameYear",(t,n)=>rl(t,n));v(this,"isSameMonth",(t,n)=>nl(t,n));v(this,"isSameDay",(t,n)=>tl(t,n));v(this,"isSameHour",(t,n)=>ol(t,n));v(this,"isAfter",(t,n)=>Er(t,n));v(this,"isAfterYear",(t,n)=>Er(t,Gn(n)));v(this,"isAfterDay",(t,n)=>Er(t,zn(n)));v(this,"isBefore",(t,n)=>kr(t,n));v(this,"isBeforeYear",(t,n)=>kr(t,this.startOfYear(n)));v(this,"isBeforeDay",(t,n)=>kr(t,this.startOfDay(n)));v(this,"isWithinRange",(t,[n,o])=>fu(t,{start:n,end:o}));v(this,"startOfYear",t=>Vo(t));v(this,"startOfMonth",t=>uu(t));v(this,"startOfWeek",t=>Ne(t,{locale:this.locale}));v(this,"startOfDay",t=>Mt(t));v(this,"endOfYear",t=>Gn(t));v(this,"endOfMonth",t=>du(t));v(this,"endOfWeek",t=>tc(t,{locale:this.locale}));v(this,"endOfDay",t=>zn(t));v(this,"addYears",(t,n)=>J0(t,n));v(this,"addMonths",(t,n)=>Ho(t,n));v(this,"addWeeks",(t,n)=>U0(t,n));v(this,"addDays",(t,n)=>Tt(t,n));v(this,"addHours",(t,n)=>K0(t,n));v(this,"addMinutes",(t,n)=>X0(t,n));v(this,"addSeconds",(t,n)=>Q0(t,n));v(this,"getYear",t=>Jc(t));v(this,"getMonth",t=>Xc(t));v(this,"getDate",t=>qc(t));v(this,"getHours",t=>Zc(t));v(this,"getMinutes",t=>Qc(t));v(this,"getSeconds",t=>Kc(t));v(this,"getMilliseconds",t=>Uc(t));v(this,"setYear",(t,n)=>lu(t,n));v(this,"setMonth",(t,n)=>su(t,n));v(this,"setDate",(t,n)=>nu(t,n));v(this,"setHours",(t,n)=>ou(t,n));v(this,"setMinutes",(t,n)=>au(t,n));v(this,"setSeconds",(t,n)=>iu(t,n));v(this,"setMilliseconds",(t,n)=>cu(t,n));v(this,"getDaysInMonth",t=>qo(t));v(this,"getWeekArray",t=>{const n=this.startOfWeek(this.startOfMonth(t)),o=this.endOfWeek(this.endOfMonth(t));let a=0,s=n;const i=[];for(;this.isBefore(s,o);){const u=Math.floor(a/7);i[u]=i[u]||[],i[u].push(s),s=this.addDays(s,1),a+=1}return i});v(this,"getWeekNumber",t=>Kr(t,{locale:this.locale}));v(this,"getYearRange",([t,n])=>{const o=this.startOfYear(t),a=this.endOfYear(n),s=[];let i=o;for(;this.isBefore(i,a);)s.push(i),i=this.addYears(i,1);return s})}}const yu={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},pu={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},bu={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Cu={date:_e({formats:yu,defaultWidth:"full"}),time:_e({formats:pu,defaultWidth:"full"}),dateTime:_e({formats:bu,defaultWidth:"full"})},Un={code:"en-AU",formatDistance:Gr,formatLong:Cu,formatRelative:qr,localize:Zr,match:Qr,options:{weekStartsOn:1,firstWeekContainsDate:4}},wu={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},xu={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},vu={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Tu={date:_e({formats:wu,defaultWidth:"full"}),time:_e({formats:xu,defaultWidth:"full"}),dateTime:_e({formats:vu,defaultWidth:"full"})},Vt={code:"en-GB",formatDistance:Gr,formatLong:Tu,formatRelative:qr,localize:Zr,match:Qr,options:{weekStartsOn:1,firstWeekContainsDate:4}},Jn="Invalid date",en="yyyy-MM-dd",Ye="dd/MM/yyyy",Ct="yyyy-MM-dd HH:mm:ss",Su=new Date("1900-01-01"),Mu=Intl.DateTimeFormat().resolvedOptions().timeZone,Wt="yyyy-MM-dd HH:mm:ss",Eu="Etc/UTC";W.format(Su,Ye);W.format(W.add(new Date,{weeks:1}),Ye);W.format(new Date,Ye);W.format(W.add(new Date,{days:1}),Ye);W.format(W.add(new Date,{weeks:2}),Ye);const K=(e,r,t,n,o)=>{if(!e)return null;let a=e;if(o)return W.format(new Date(a),en);if(r)return a=W.startOfDay(e),W.format(new Date(a),Wt);if(t)return a=W.endOfDay(e),W.format(new Date(a),Wt);if(n){const s=new Date;return a=W.setHours(a,W.getHours(s)),a=W.setMinutes(a,W.getMinutes(s)),a=W.setSeconds(a,W.getSeconds(s)),no.fromZonedTime(a,Mu).toISOString()}else return W.format(new Date(a),Wt)},at=(e,r=Ye,t,n)=>{var f;if(e===null)return null;const o=e.split(/[./-]/).map(m=>parseInt(m,10));let a=t.indexOf("d")===0?o[0]:o[1],s=t.indexOf("M")===0?o[0]:o[1],i=o[2];if(!n&&o.some(isNaN)||((f=o==null?void 0:o.filter(m=>m.isNaN))==null?void 0:f.length)===(o==null?void 0:o.length)||isNaN(a))return e=Jn,null;if(isNaN(s)&&(s=new Date().getMonth()+1),isNaN(i))i=new Date().getFullYear();else{i.toString().length<=2&&(i=ku(i));//! Force maximum calendar year
|
|
103
103
|
i>2099&&(i=2099)}const u=new Date(i,s-1,a);return u.getDate()!==a&&(e=Jn),W.format(new Date(u),r)},ku=e=>{const r=new Date().getFullYear()+5,t=Math.floor(r/100)*100,n=parseInt(e);return(n>r%100?t-100:t)+n},Ou=e=>{if((e==null?void 0:e.hostInfo.region.toLowerCase())==="uk")return{...Vt,options:{...Vt.options,weekStartsOn:1}};if((e==null?void 0:e.hostInfo.region.toLowerCase())==="us")return{...St,options:{...St.options,weekStartsOn:1}};if((e==null?void 0:e.hostInfo.region.toLowerCase())==="au"){//! includes NZ
|
|
104
104
|
return{...Un,options:{...Un.options,weekStartsOn:1}}}else if((e==null?void 0:e.hostInfo.region.toLowerCase())==="ca")return{...Vt,options:{...Vt.options,weekStartsOn:1}}},Lu=(e,r,t=!0,n,o)=>{const a=o?" HH:mm":" hh:mm a";return r&&e?W.format(t&&typeof e=="string"?e.replace(" ","T").replace("Z","").concat("Z"):e,`${r.formatLong.date({width:"short"})}${n?"":a}`):""},Du=(e,r)=>{if(!e)return console.warn("formatReportDate called with null or undefined date."),"";if(!r)return console.warn("formatReportDate called with undefined locale."),"";if(typeof e=="string"&&e.includes("T")){const t=new Date(e);if(isNaN(t.getTime()))return console.warn(`Invalid date string: ${e}`),"";e=t.toISOString()}else if(typeof e=="string"){const t=e.split("-");if(t.length!==3||t.some(n=>isNaN(Number(n))))return console.warn(`Invalid date string format: ${e}`),"";r.code==="en-US"?e=`${t[1]}-${t[2]}-${t[0]}`:e=`${t[2]}-${t[1]}-${t[0]}`}return e},Ze=e=>{const r=new Date(e).getTimezoneOffset();return W.addMinutes(new Date(e),r)},Pu=e=>!e||e==="",Ru=e=>W.format(e,en),ju=(e,r,t)=>{if(e){const n=no.toZonedTime(new Date(e),Eu);return r?W.startOfDay(n).toISOString():t?W.endOfDay(n).toISOString():new Date(e).toISOString()}return""},er=(e,r,t,n,o,a,s)=>s==null?void 0:s.system.openDialogV2({dialogType:"3button",message:e,confirmButtonText:r,refuseButtonText:n,cancelButtonText:a}).then(i=>{switch(i){case 1:t();break;case 2:o&&o();break}}),_u=({disabled:e,fullWidth:r,isUTC:t,startOfDate:n,endOfDate:o,dateOnly:a,onUpdate:s,additionalActions:i,size:u,validate30Days:f,validate:m,value:C,locale:p,sdk:x})=>{var z;const[w,h]=ue.useState(null),[E,$]=ue.useState(null),[j,P]=ue.useState(null),[k,M]=ue.useState(null),[_,N]=ue.useState(!1),D=p?p.formatLong.date({width:"short"}).toLowerCase().replaceAll("m","M"):Ye;ue.useEffect(()=>{p&&($(C?new Date(C):null),P(C&&W.format(Ze(C),D)),C||(P(null),s(null)))},[D,C,p]);const B=(p==null?void 0:p.formatLong.date({width:"short"}).indexOf("M"))===0?/^(\d{1,2}\/\d{1,2}\/\d{2,4}\s+\d{1,2}\:\d{1,2})|(\d{1,2}\/\d{1,2}\/\d{2,4}\s+\d{1,2}\:)|(\d{1,2}\/\d{1,2}\/\d{2,4}\s+\d{1,2})|(\d{1,2}\/\d{1,2}\/\d{2,4}\s+)|(\d{1,2}\/\d{1,2}\/\d{2,4})|(\d{1,2}\/\d{1,2}\/)|(\d{1,2}\/\d{1,2})|(\d{1,2}\/)|(\d{1,2})$/:/^(\d{1,4}\/\d{1,2}\/\d{1,2}\s+\d{1,2}\:\d{1,2})|(\d{1,4}\/\d{1,2}\/\d{1,2}\s+\d{1,2}\:)|(\d{1,4}\/\d{1,2}\/\d{1,2}\s+\d{1,2})|(\d{1,4}\/\d{1,2}\/\d{1,2}\s+)|(\d{1,4}\/\d{1,2}\/\d{1,2})|(\d{1,4}\/\d{1,2}\/)|(\d{1,4}\/\d{1,2})|(\d{1,4}\/)|(\d{1,4})$/,G=/^[\0-9_\/_:]*$/;return ue.useEffect(()=>{k&&(k!=null&&k.keepButton?er(k.message,"Keep Value",()=>{},"Revert",()=>{const c=k==null?void 0:k.originalValue;s(c||null),$(c),P(c?W.format(Ze(c),D):null),M(null)},"",x):er((k==null?void 0:k.message)||"","Revert",()=>{const c=k==null?void 0:k.originalValue;s(c||null),$(c),P(c?W.format(Ze(c),D):null),M(null)},void 0,void 0,void 0,x))},[k]),l.jsxs(l.Fragment,{children:[l.jsx(O.TextField,{onChange:c=>{const g=c.target.value;c.target.value[c.target.value.length-1]===":"&&(g.match(/:/g)||[]).length>1||c.target.value[c.target.value.length-1]==="/"&&(g.match(/\//g)||[]).length>2||(g.match(/\/\//g)||[]).length||(G.test(g)&&B.test(g)||Pu(g))&&P(g)},placeholder:p?p.formatLong.date({width:"short"}).toLowerCase():void 0,onKeyDown:c=>{const g=c.target.value;if(c.code==="Backspace")j&&(j[(j==null?void 0:j.length)-1]==="/"||j[(j==null?void 0:j.length)-1]===":")&&P(g.substring(0,g.length-1));else{if(c.code==="Semicolon"&&g.includes(":"))return;G.test(g)&&B.test(g)&&P(g)}},onKeyUp:c=>{const g=c.target.value;let b=g.replace("-","/");const S=b.length;g.includes&&(c.code==="Backspace"||c.code==="Delete"||c.code==="Slash"&&b.split("/").length<3||c.code==="Semicolon"&&b.includes(":"))||B.test(b)&&(S===2&&!b.includes("/")&&(b=b+"/"),S>4&&b.split("/")[1].length===2&&b.split("/").length<3&&(b=b+"/"),P(b))},onBlur:c=>{const g=c.target.value;if(g!==C){const b=at(g,Ct,D,!0);if(C&&b&&f&&W.differenceInDays(new Date(b),new Date)>30&&JSON.stringify(K(b?new Date(b):null,n,o,t,a))!==JSON.stringify(K(E?new Date(E):null,n,o,t,a))&&M({keepButton:!0,message:"Selected date is in the future.",originalValue:C}),m){const S=m(b||null);S&&M(S)}$(b?new Date(b):null),P(b&&W.format(new Date(b),D)),s(K(b?new Date(b):null,n,o,t,a))}},value:j||"",disabled:e,sx:{width:r?"100%":110},size:u||"small",slotProps:{input:{endAdornment:l.jsx(l.Fragment,{children:e?void 0:l.jsx(O.IconButton,{sx:{borderRadius:0,padding:"2px",backgroundColor:e?"#f3f3f3 !important":"inherit",":hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},":focus":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},onClick:c=>{h(c.currentTarget),N(!0)},disabled:e,disableFocusRipple:!0,disableRipple:!0,children:l.jsx(Kt,{})})})}}}),l.jsx(O.Popper,{open:_,sx:{zIndex:1500},anchorEl:w,children:l.jsx(O.ClickAwayListener,{onClickAway:()=>{N(!1)},children:l.jsx(O.Paper,{children:l.jsxs("div",{className:"displayFlex",style:{flexDirection:"column",alignItems:"center",backgroundColor:"#fff"},children:[l.jsx(Yt.LocalizationProvider,{dateAdapter:Uo,adapterLocale:p,children:l.jsx(Yt.DateCalendar,{value:E?new Date(E):null,onChange:(c,g)=>{const b=c||null;if(g!=="partial"){if(N(!1),C&&f&&W.differenceInDays(new Date(c),new Date)>30&&M({keepButton:!0,message:"Selected date is in the future.",originalValue:C}),m){const S=m(b);S&&M(S)}s(K(b?new Date(b):null,n,o,t,a))}$(b?new Date(b):null),P(b&&W.format(new Date(b),D))},views:["year","month","day"]})}),((i==null?void 0:i.showToday)||(i==null?void 0:i.customActions)||(i==null?void 0:i.showClear))&&l.jsxs("div",{className:"displayFlex",style:{paddingBottom:10},children:[(i==null?void 0:i.showToday)&&l.jsx(Xe,{onClick:()=>{const c=new Date;$(c),s(K(c?new Date(c):null,n,o,t,a)),N(!1)},size:"small",children:"Today"}),(i==null?void 0:i.customActions)&&((z=i==null?void 0:i.customActions)==null?void 0:z.map(c=>l.jsx("div",{style:{paddingLeft:5},children:l.jsx(Xe,{onClick:()=>{$(c.value),s(K(c.value?new Date(c.value):null,n,o,t,a)),N(!1)},size:"small",children:c.label})}))),(i==null?void 0:i.showClear)&&l.jsx("div",{style:{paddingLeft:5},children:l.jsx(Xe,{onClick:()=>{$(null),P(""),N(!1),s(null),N(!1)},variant:"outlined",color:"secondary",size:"small",children:"Clear"})})]})]})})})})]})},Iu=({disabled:e,fullWidth:r,isUTC:t,startOfDate:n,endOfDate:o,dateOnly:a,onUpdateFromDate:s,onUpdateToDate:i,additionalActions:u,size:f,validate30Days:m,validate:C,fromDate:p,toDate:x,locale:w,calendars:h,sdk:E})=>{var c;const[$,j]=ue.useState(null),[P,k]=ue.useState(null),[M,_]=ue.useState(null),[N,D]=ue.useState(null),[B,G]=ue.useState(!1),z=w?w.formatLong.date({width:"short"}).toLowerCase().replaceAll("m","M"):Ye;return ue.useEffect(()=>{w&&(p?k(p&&W.format(Ze(p),z)):(k(null),s(null),s(null)))},[p,w]),ue.useEffect(()=>{w&&(x?_(x&&W.format(Ze(x),z)):(_(null),i(null)))},[x,w]),ue.useEffect(()=>{N&&(N!=null&&N.keepButton?er(N.message,"Keep Value",()=>{},"Revert",()=>{const g=N==null?void 0:N.originalValue;N!=null&&N.fromDate&&s(g||null),N!=null&&N.toDate&&i(g||null),D(null)},"",E):er((N==null?void 0:N.message)||"","Revert",()=>{const g=N==null?void 0:N.originalValue;N!=null&&N.fromDate&&s(g||null),N!=null&&N.toDate&&i(g||null),D(null)},void 0,void 0,void 0,E))},[N]),l.jsxs(l.Fragment,{children:[l.jsx(O.TextField,{onChange:g=>{const b=g.target.value;(/^[0-9/]+$/.test(b)||b===""||b.length<2)&&b.split("/").length<=3&&k(b)},placeholder:w?w.formatLong.date({width:"short"}).toLowerCase():void 0,onKeyDown:g=>{g.code==="Backspace"&&P&&P[(P==null?void 0:P.length)-1]==="/"&&k(g.target.value.substring(0,g.target.value.length-1))},onKeyUp:g=>{const b=g.target.value,S=/^(?!.*\/\/)[0-9/]+$/;let R=b.replace("-","/");const q=R.length;g.code==="Backspace"||g.code==="Delete"||g.code==="Slash"&&R.split("/").length<3||S.test(R)&&(q===2&&!R.includes("/")&&(R=R+"/"),q>4&&R.split("/")[1].length===2&&R.split("/").length<3&&(R=R+"/"),k(R))},onBlur:g=>{const b=g.target.value;if(b!==p){const S=at(b,Ct,z,!0),R=at(M,Ct,z,!0);if(R&&S&&W.isAfter(new Date(S),new Date(R))&&D({fromDate:!0,toDate:!1,keepButton:!1,message:"Selected To Date is before From Date.",originalValue:p}),p&&S&&m&&W.differenceInDays(new Date(S),new Date)>30&&JSON.stringify(K(S?new Date(S):null,!0,o,t,a))!==JSON.stringify(K(p?new Date(p):null,!0,o,t,a))&&D({fromDate:!0,toDate:!1,keepButton:!0,message:"Selected date is in the future.",originalValue:p}),C){const q=C(S||null);q&&D(q)}s(K(S?new Date(S):null,!0,o,t,a))}},value:P||"",disabled:e,sx:{width:r?"100%":110},size:f||"small",slotProps:{input:{endAdornment:l.jsx(O.IconButton,{sx:{borderRadius:0,padding:"2px",backgroundColor:e?"#f3f3f3 !important":"inherit",":hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},":focus":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},onClick:g=>{j(g.currentTarget),G(!0)},disabled:e,disableFocusRipple:!0,disableRipple:!0,children:l.jsx(Kt,{})})}}}),l.jsx("div",{style:{margin:"auto"},children:l.jsx(O.Typography,{style:{paddingLeft:8,paddingRight:5},children:"To"})}),l.jsx(O.TextField,{onChange:g=>{const b=g.target.value;(/^[0-9/]+$/.test(b)||b===""||b.length<2)&&b.split("/").length<=3&&_(b)},placeholder:w?w.formatLong.date({width:"short"}).toLowerCase():void 0,onKeyDown:g=>{g.code==="Backspace"&&M&&M[(M==null?void 0:M.length)-1]==="/"&&_(g.target.value.substring(0,g.target.value.length-1))},onKeyUp:g=>{const b=g.target.value,S=/^(?!.*\/\/)[0-9/]+$/;let R=b.replace("-","/");const q=R.length;g.code==="Backspace"||g.code==="Delete"||g.code==="Slash"&&R.split("/").length<3||S.test(R)&&(q===2&&!R.includes("/")&&(R=R+"/"),q>4&&R.split("/")[1].length===2&&R.split("/").length<3&&(R=R+"/"),_(R))},onBlur:g=>{const b=g.target.value;if(b!==x){const S=at(b,Ct,z,!0),R=at(P,Ct,z,!0);if(R&&S&&W.isBefore(new Date(S),new Date(R))&&D({fromDate:!1,toDate:!0,keepButton:!1,message:"Selected To Date is before From Date.",originalValue:x}),x&&S&&m&&W.differenceInDays(new Date(S),new Date)>30&&JSON.stringify(K(S?new Date(S):null,n,!0,t,a))!==JSON.stringify(K(x?new Date(x):null,n,!0,t,a))&&D({fromDate:!1,toDate:!0,keepButton:!0,message:"Selected date is in the future.",originalValue:x}),C){const q=C(S||null);q&&D(q)}i(K(S?new Date(S):null,n,!0,t,a))}},value:M||"",disabled:e,sx:{width:r?"100%":110},size:f||"small",slotProps:{input:{endAdornment:l.jsx(O.IconButton,{sx:{borderRadius:0,padding:"2px",backgroundColor:e?"#f3f3f3 !important":"inherit",":hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},":focus":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},onClick:g=>{j(g.currentTarget),G(!0)},disabled:e,disableFocusRipple:!0,disableRipple:!0,children:l.jsx(Kt,{})})}}}),l.jsx(O.Popper,{open:B,sx:{zIndex:1500},anchorEl:$,children:l.jsx(O.ClickAwayListener,{onClickAway:()=>{G(!1)},children:l.jsx(O.Paper,{style:{backgroundColor:"#fff",border:"1px solid rgba(0, 0, 0, 0.12)",borderRadius:0},children:l.jsxs("div",{className:"displayFlex dateActionButtons",style:{flexDirection:"row"},children:[((u==null?void 0:u.showToday)||(u==null?void 0:u.showYesterday)||(u==null?void 0:u.showThisWeek)||(u==null?void 0:u.showLastWeek)||(u==null?void 0:u.showThisMonth)||(u==null?void 0:u.showLastMonth)||(u==null?void 0:u.showLast30)||(u==null?void 0:u.showLast60)||(u==null?void 0:u.showLast90)||(u==null?void 0:u.customActions))&&l.jsxs("div",{className:"displayFlex",style:{flexDirection:"column",minHeight:208},children:[(u==null?void 0:u.showToday)&&l.jsx(O.Button,{className:"datePickerAction",onClick:()=>{const g=new Date;s(K(g||null,!0,!1,t,a)),i(K(g||null,!1,!0,t,a)),G(!1)},children:"Today"}),(u==null?void 0:u.showYesterday)&&l.jsx(O.Button,{className:"datePickerAction",onClick:()=>{const g=W.addDays(new Date,-1);s(K(g||null,!0,!1,t,a)),i(K(g||null,!1,!0,t,a)),G(!1)},children:"Yesterday"}),(u==null?void 0:u.showThisWeek)&&l.jsx(O.Button,{className:"datePickerAction",onClick:()=>{const g=new Date,b=W.startOfWeek(g,{weekStartsOn:1}),S=W.endOfWeek(g,{weekStartsOn:1});s(K(b?new Date(b):null,n,o,t,a)),i(K(S?new Date(S):null,n,o,t,a)),G(!1)},children:"This Week"}),(u==null?void 0:u.showLastWeek)&&l.jsx(O.Button,{className:"datePickerAction",onClick:()=>{const g=new Date,b=W.startOfWeek(W.addDays(g,-7),{weekStartsOn:1}),S=W.endOfWeek(W.addDays(g,-7),{weekStartsOn:1});s(K(b?new Date(b):null,n,o,t,a)),i(K(S?new Date(S):null,n,o,t,a)),G(!1)},children:"Last Week"}),(u==null?void 0:u.showThisMonth)&&l.jsx(O.Button,{className:"datePickerAction",onClick:()=>{const g=new Date,b=W.startOfMonth(g),S=W.endOfMonth(g);s(K(b?new Date(b):null,n,o,t,a)),i(K(S?new Date(S):null,n,o,t,a)),G(!1)},children:"This Month"}),(u==null?void 0:u.showLastMonth)&&l.jsx(O.Button,{className:"datePickerAction",onClick:()=>{const g=new Date,b=W.startOfMonth(W.addMonths(g,-1)),S=W.endOfMonth(W.addMonths(g,-1));s(K(b?new Date(b):null,n,o,t,a)),i(K(S?new Date(S):null,n,o,t,a)),G(!1)},children:"Last Month"}),(u==null?void 0:u.showLast30)&&l.jsx(O.Button,{className:"datePickerAction",onClick:()=>{const g=new Date,b=W.addDays(g,-30),S=g;s(K(b?new Date(b):null,!0,!1,t,a)),i(K(S?new Date(S):null,!1,!0,t,a)),G(!1)},children:"Last 30 days"}),(u==null?void 0:u.showLast60)&&l.jsx(O.Button,{className:"datePickerAction",onClick:()=>{const g=new Date,b=W.addDays(g,-60),S=g;s(K(b?new Date(b):null,!0,!1,t,a)),i(K(S?new Date(S):null,!1,!0,t,a)),G(!1)},children:"Last 60 days"}),(u==null?void 0:u.showLast90)&&l.jsx(O.Button,{className:"datePickerAction",onClick:()=>{const g=new Date,b=W.addDays(g,-90),S=g;s(K(b?new Date(b):null,!0,!1,t,a)),i(K(S?new Date(S):null,!1,!0,t,a)),G(!1)},children:"Last 90 days"}),(u==null?void 0:u.customActions)&&((c=u==null?void 0:u.customActions)==null?void 0:c.map(g=>l.jsx(O.Button,{className:"datePickerAction",onClick:()=>{s(K(g.fromValue?new Date(g.fromValue):null,n,o,t,a)),i(K(g.toValue?new Date(g.toValue):null,n,o,t,a)),G(!1)},children:g.label})))]}),l.jsx("div",{className:"displayFlex",style:{flexDirection:"column",borderLeft:"1px solid #e0e0e0",alignSelf:"flex-start"},children:l.jsx(Yt.LocalizationProvider,{dateAdapter:Uo,adapterLocale:w,children:l.jsx(Yt.DateRangeCalendar,{value:[p?Ze(p):null,x?Ze(x):null],onChange:(g,b)=>{b!=="partial"&&G(!1);const S=g[0]?g[0]:null,R=g[1]?g[1]:null;if(C){const q=C(S);q&&D(q);const se=C(R);se&&D(se)}s(K(S?new Date(S):null,!0,o,t,a)),i(K(R?new Date(R):null,n,!0,t,a))},calendars:h||2,sx:{"& .MuiTypography-caption":{height:30,width:30},"& .MuiDateRangePickerDay-rangeIntervalPreview":{height:30,width:30},"& .MuiDayCalendar-slideTransition":{minHeight:220,height:220}},slotProps:{day:{style:{height:30,width:30}}}})})})]})})})})]})},Jo=gr(l.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"}),"CloseOutlined"),$u=({actions:e,children:r,closeIcon:t,hideOverflow:n,isOpen:o,key:a,maxWidth:s,minWidth:i,onClose:u,showWarningIcon:f,title:m})=>l.jsx(l.Fragment,{children:l.jsxs(O.Dialog,{open:o,maxWidth:s||"xl",children:[l.jsxs(O.DialogContent,{sx:n?{padding:0,minWidth:i||400,overflowY:"hidden"}:{padding:0,minWidth:i||400},children:[l.jsx(O.DialogTitle,{style:{backgroundColor:"#f0f1f2",padding:0},children:l.jsxs("div",{style:{alignItems:"center",display:"flex",minHeight:28,paddingLeft:8,verticalAlign:"center"},children:[l.jsx(Po,{}),l.jsx("div",{style:{flex:1,paddingLeft:5},children:l.jsx(O.Typography,{variant:"body1",children:m})}),l.jsx("div",{children:t&&l.jsx(O.IconButton,{disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,sx:{borderRadius:0,":hover":{backgroundColor:"#c42b1c",".MuiSvgIcon-root":{path:{color:"#ffffff"}}}},onClick:()=>{u&&u()},children:l.jsx(Jo,{style:{height:20}})})})]})}),l.jsxs("div",{style:{display:"flex",minHeight:120},children:[!!f&&l.jsx("div",{style:{marginLeft:15,marginTop:"auto",marginBottom:"auto"},children:l.jsx(Ro,{})}),l.jsx("div",{style:{flex:1,marginTop:"auto",marginBottom:"auto",marginLeft:15,marginRight:15},children:r})]})]}),e&&l.jsx(O.DialogActions,{style:{borderTop:"1px solid rgba(224, 224, 224, 1)",backgroundColor:"rgb(241, 243, 249)"},children:e})]},a)}),Nu=e=>l.jsx(O.Divider,{...e}),Au=e=>{var f,m;const[r,t]=ue.useState(e.defaultDrawerWidth),n=ue.createRef(),o=e.minDrawerWidth?e.minDrawerWidth:500,a=(((f=n.current)==null?void 0:f.clientWidth)||1100)-250,s=()=>{document.addEventListener("mouseup",i,!0),document.addEventListener("mousemove",u,!0)},i=()=>{document.removeEventListener("mouseup",i,!0),document.removeEventListener("mousemove",u,!0)},u=ue.useCallback(C=>{const p=C.clientX-document.body.offsetLeft;p>o&&p<a&&t(p)},[a]);return l.jsxs("div",{ref:n,children:[l.jsxs(O.Drawer,{...e,style:{flexShrink:0},variant:"permanent",PaperProps:{style:{width:r,top:130,height:e.height,maxHeight:e.height}},children:[l.jsx("div",{onMouseDown:()=>s(),style:{width:"5px",cursor:"ew-resize",padding:"4px 0 0",borderTop:"1px solid #ddd",position:"absolute",top:0,right:0,bottom:0,zIndex:100,backgroundColor:"#f4f7f9"}}),e.leftContent]}),l.jsx("div",{style:{width:(((m=n.current)==null?void 0:m.clientWidth)||1100)-r,float:"right"},children:e.rightContent})]})},Hu=({leftComponents:e,rightComponents:r,onCancel:t,onClose:n,onOK:o,onSaveDisable:a})=>l.jsxs("div",{style:{alignItems:"center",backgroundColor:"rgb(240, 241, 242)",borderTop:"1px solid #d8d8d8",display:"flex",height:"35px",padding:"12px 15px"},children:[e&&l.jsx(l.Fragment,{children:e}),l.jsx("div",{className:"flex1"}),r&&l.jsx(l.Fragment,{children:r}),t&&l.jsx(Xe,{onClick:t,variant:"outlined",color:"secondary",size:"small",children:"Cancel"}),o&&l.jsx("div",{style:{marginRight:5},children:l.jsx(Xe,{color:"primary",disabled:a||!1,onClick:o,size:"small",children:"OK"})}),n&&l.jsx(Xe,{variant:"outlined",color:"secondary",onClick:n,size:"small",children:"Close"})]}),Vu=e=>l.jsx(O.FormControlLabel,{...e}),Bu=({children:e,closeIcon:r,fullWidth:t,hideOverflow:n,isOpen:o,maxWidth:a,minWidth:s,onDelete:i,onClose:u,actions:f,leftHeaderActions:m,title:C})=>{var x;const p=ue.useRef(null);return l.jsx(l.Fragment,{children:l.jsxs(O.Dialog,{fullWidth:t||!1,maxWidth:a||"xl",open:o,children:[l.jsxs(O.DialogContent,{sx:n?{padding:0,minWidth:s||400,overflowY:"hidden"}:{padding:0,minWidth:s||400},children:[l.jsx("div",{style:{width:"100%",backgroundColor:"#6e7780"},children:l.jsxs("div",{className:"displayFlex",style:{alignItems:"center",minHeight:28},children:[i&&l.jsx(O.Tooltip,{title:"Delete",children:l.jsx(O.IconButton,{"aria-label":"delete",onClick:i,sx:{borderRadius:0,color:"#ffffff",padding:"9px 8px"},children:l.jsx(Do,{})})}),l.jsx("div",{ref:p,children:m}),l.jsx("div",{className:"flex1",style:{marginRight:((x=p==null?void 0:p.current)==null?void 0:x.offsetWidth)||0},children:l.jsx(O.Typography,{variant:"body1",textAlign:"center",style:{color:"#ffffff"},children:C})}),l.jsx("div",{children:r&&l.jsx(O.IconButton,{disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,sx:{borderRadius:0,padding:"7px 6px",":hover":{backgroundColor:"#c42b1c",color:"#ffffff",".MuiSvgIcon-root":{path:{color:"#ffffff"}}}},onClick:()=>{u&&u()},children:l.jsx(Jo,{style:{color:"#ffffff",height:20}})})})]})}),l.jsx("div",{className:"displayFlex",style:{alignItems:"baseline",minHeight:120},children:l.jsx("div",{className:"flex1 formBody",children:e})})]}),l.jsx(O.DialogActions,{children:f})]})})},tn=Si({createStyledComponent:dt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.container&&r.container]}}),componentName:"MuiGrid",useThemeProps:e=>Rt({props:e,name:"MuiGrid"}),useTheme:a0});process.env.NODE_ENV!=="production"&&(tn.propTypes={children:d.node,columns:d.oneOfType([d.arrayOf(d.number),d.number,d.object]),columnSpacing:d.oneOfType([d.arrayOf(d.oneOfType([d.number,d.string])),d.number,d.object,d.string]),container:d.bool,direction:d.oneOfType([d.oneOf(["column-reverse","column","row-reverse","row"]),d.arrayOf(d.oneOf(["column-reverse","column","row-reverse","row"])),d.object]),offset:d.oneOfType([d.string,d.number,d.arrayOf(d.oneOfType([d.string,d.number])),d.object]),rowSpacing:d.oneOfType([d.arrayOf(d.oneOfType([d.number,d.string])),d.number,d.object,d.string]),size:d.oneOfType([d.string,d.bool,d.number,d.arrayOf(d.oneOfType([d.string,d.bool,d.number])),d.object]),spacing:d.oneOfType([d.arrayOf(d.oneOfType([d.number,d.string])),d.number,d.object,d.string]),sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),unstable_level:d.number,wrap:d.oneOf(["nowrap","wrap-reverse","wrap"])});if(process.env.NODE_ENV!=="production"){const e=tn,r=f0("Grid",e);e.propTypes={...e.propTypes,direction:r("container"),spacing:r("container"),wrap:r("container")}}const Fu=e=>l.jsx(tn,{...e}),Wu=e=>l.jsx(O.IconButton,{...e,children:e.children}),Yu=e=>l.jsx(O.InputAdornment,{...e,position:e.position?e.position:"start",children:e.children}),zu=e=>l.jsx(O.InputLabel,{...e,children:e.children}),Gu=e=>l.jsx(O.List,{...e,children:e.children});function ea(e,r){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||r(...n)}}function qu(e){const{prototype:r={}}=e;return!!r.isReactComponent}function Zu(e,r,t,n,o){const a=e[r],s=o||r;if(a==null||typeof window>"u")return null;let i;return typeof a=="function"&&!qu(a)&&(i="Did you accidentally provide a plain function component instead?"),i!==void 0?new Error(`Invalid ${n} \`${s}\` supplied to \`${t}\`. Expected an element type that can hold a ref. ${i} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Qu=ea(d.elementType,Zu);function _r(e){return typeof e=="string"}function Xu(e,r,t){return e===void 0||_r(e)?r:{...r,ownerState:{...r.ownerState,...t}}}function Ku(e,r,t){return typeof e=="function"?e(r,t):e}function Uu(e,r=[]){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!r.includes(n)).forEach(n=>{t[n]=e[n]}),t}function eo(e){if(e===void 0)return{};const r={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]=="function")).forEach(t=>{r[t]=e[t]}),r}function Ju(e){const{getSlotProps:r,additionalProps:t,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!r){const x=Ie(t==null?void 0:t.className,a,o==null?void 0:o.className,n==null?void 0:n.className),w={...t==null?void 0:t.style,...o==null?void 0:o.style,...n==null?void 0:n.style},h={...t,...o,...n};return x.length>0&&(h.className=x),Object.keys(w).length>0&&(h.style=w),{props:h,internalRef:void 0}}const s=Uu({...o,...n}),i=eo(n),u=eo(o),f=r(s),m=Ie(f==null?void 0:f.className,t==null?void 0:t.className,a,o==null?void 0:o.className,n==null?void 0:n.className),C={...f==null?void 0:f.style,...t==null?void 0:t.style,...o==null?void 0:o.style,...n==null?void 0:n.style},p={...f,...t,...u,...i};return m.length>0&&(p.className=m),Object.keys(C).length>0&&(p.style=C),{props:p,internalRef:f.ref}}function e1(e,r){const{className:t,elementType:n,ownerState:o,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:i=!1,...u}=r,{component:f,slots:m={[e]:void 0},slotProps:C={[e]:void 0},...p}=a,x=m[e]||n,w=Ku(C[e],o),{props:{component:h,...E},internalRef:$}=Ju({className:t,...u,externalForwardedProps:void 0,externalSlotProps:w}),j=Lo($,w==null?void 0:w.ref,r.ref),P=h,k=Xu(x,{...e==="root",...!m[e]&&s,...E,...P&&!i&&{as:P},...P&&i&&{component:P},ref:j},o);return[x,k]}const xt=le.createContext({});process.env.NODE_ENV!=="production"&&(xt.displayName="ListContext");function t1(e){return Ke("MuiListItem",e)}Pt("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const r1=Pt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function n1(e){return Ke("MuiListItemSecondaryAction",e)}Pt("MuiListItemSecondaryAction",["root","disableGutters"]);const o1=e=>{const{disableGutters:r,classes:t}=e;return kt({root:["root",r&&"disableGutters"]},n1,t)},a1=dt("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.disableGutters&&r.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),rn=le.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiListItemSecondaryAction"}),{className:o,...a}=n,s=le.useContext(xt),i={...n,disableGutters:s.disableGutters},u=o1(i);return l.jsx(a1,{className:Ie(u.root,o),ownerState:i,ref:t,...a})});process.env.NODE_ENV!=="production"&&(rn.propTypes={children:d.node,classes:d.object,className:d.string,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object])});rn.muiName="ListItemSecondaryAction";const s1=(e,r)=>{const{ownerState:t}=e;return[r.root,t.dense&&r.dense,t.alignItems==="flex-start"&&r.alignItemsFlexStart,t.divider&&r.divider,!t.disableGutters&&r.gutters,!t.disablePadding&&r.padding,t.hasSecondaryAction&&r.secondaryAction]},i1=e=>{const{alignItems:r,classes:t,dense:n,disableGutters:o,disablePadding:a,divider:s,hasSecondaryAction:i}=e;return kt({root:["root",n&&"dense",!o&&"gutters",!a&&"padding",s&&"divider",r==="flex-start"&&"alignItemsFlexStart",i&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},t1,t)},c1=dt("div",{name:"MuiListItem",slot:"Root",overridesResolver:s1})(Wr(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:r})=>!r.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:r})=>!r.disablePadding&&r.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:r})=>!r.disablePadding&&!r.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:r})=>!r.disablePadding&&!!r.secondaryAction,style:{paddingRight:48}},{props:({ownerState:r})=>!!r.secondaryAction,style:{[`& > .${r1.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:r})=>r.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:r})=>r.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:r})=>r.hasSecondaryAction,style:{paddingRight:48}}]}))),l1=dt("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),ta=le.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiListItem"}),{alignItems:o="center",children:a,className:s,component:i,components:u={},componentsProps:f={},ContainerComponent:m="li",ContainerProps:{className:C,...p}={},dense:x=!1,disableGutters:w=!1,disablePadding:h=!1,divider:E=!1,secondaryAction:$,slotProps:j={},slots:P={},...k}=n,M=le.useContext(xt),_=le.useMemo(()=>({dense:x||M.dense||!1,alignItems:o,disableGutters:w}),[o,M.dense,x,w]),N=le.useRef(null),D=le.Children.toArray(a),B=D.length&&Br(D[D.length-1],["ListItemSecondaryAction"]),G={...n,alignItems:o,dense:_.dense,disableGutters:w,disablePadding:h,divider:E,hasSecondaryAction:B},z=i1(G),c=Lo(N,t),g={slots:P,slotProps:j},[b,S]=e1("secondaryAction",{elementType:rn,externalForwardedProps:g,ownerState:G,className:z.secondaryAction}),R=P.root||u.Root||c1,q=j.root||f.root||{},se={className:Ie(z.root,q.className,s),...k};let we=i||"li";return B?(we=!se.component&&!i?"div":we,m==="li"&&(we==="li"?we="div":se.component==="li"&&(se.component="div")),l.jsx(xt.Provider,{value:_,children:l.jsxs(l1,{as:m,className:Ie(z.container,C),ref:c,ownerState:G,...p,children:[l.jsx(R,{...q,...!_r(R)&&{as:we,ownerState:{...G,...q.ownerState}},...se,children:D}),D.pop()]})})):l.jsx(xt.Provider,{value:_,children:l.jsxs(R,{...q,as:we,ref:c,...!_r(R)&&{ownerState:{...G,...q.ownerState}},...se,children:[D,$&&l.jsx(b,{...S,children:$})]})})});process.env.NODE_ENV!=="production"&&(ta.propTypes={alignItems:d.oneOf(["center","flex-start"]),children:ea(d.node,e=>{const r=le.Children.toArray(e.children);let t=-1;for(let n=r.length-1;n>=0;n-=1){const o=r[n];if(Br(o,["ListItemSecondaryAction"])){t=n;break}}return t!==-1&&t!==r.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:d.object,className:d.string,component:d.elementType,components:d.shape({Root:d.elementType}),componentsProps:d.shape({root:d.object}),ContainerComponent:Qu,ContainerProps:d.object,dense:d.bool,disableGutters:d.bool,disablePadding:d.bool,divider:d.bool,secondaryAction:d.node,slotProps:d.shape({root:d.object,secondaryAction:d.oneOfType([d.func,d.object])}),slots:d.shape({root:d.elementType,secondaryAction:d.elementType}),sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object])});const u1=e=>l.jsx(ta,{...e,children:e.children}),d1=e=>l.jsx(O.ListItemButton,{...e,children:e.children});function f1(e){return typeof e.main=="string"}function h1(e,r=[]){if(!f1(e))return!1;for(const t of r)if(!e.hasOwnProperty(t)||typeof e[t]!="string")return!1;return!0}function m1(e=[]){return([,r])=>r&&h1(r,e)}function g1(e){return Ke("MuiTypography",e)}Pt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const y1={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},p1=c0(),b1=e=>{const{align:r,gutterBottom:t,noWrap:n,paragraph:o,variant:a,classes:s}=e,i={root:["root",a,e.align!=="inherit"&&`align${Pe(r)}`,t&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return kt(i,g1,s)},C1=dt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.variant&&r[t.variant],t.align!=="inherit"&&r[`align${Pe(t.align)}`],t.noWrap&&r.noWrap,t.gutterBottom&&r.gutterBottom,t.paragraph&&r.paragraph]}})(Wr(({theme:e})=>{var r;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(m1()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(((r=e.palette)==null?void 0:r.text)||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${Pe(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}})),to={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},nn=le.forwardRef(function(r,t){const{color:n,...o}=Rt({props:r,name:"MuiTypography"}),a=!y1[n],s=p1({...o,...a&&{color:n}}),{align:i="inherit",className:u,component:f,gutterBottom:m=!1,noWrap:C=!1,paragraph:p=!1,variant:x="body1",variantMapping:w=to,...h}=s,E={...s,align:i,color:n,className:u,component:f,gutterBottom:m,noWrap:C,paragraph:p,variant:x,variantMapping:w},$=f||(p?"p":w[x]||to[x])||"span",j=b1(E);return l.jsx(C1,{as:$,ref:t,className:Ie(j.root,u),...h,ownerState:E,style:{...i!=="inherit"&&{"--Typography-textAlign":i},...h.style}})});process.env.NODE_ENV!=="production"&&(nn.propTypes={align:d.oneOf(["center","inherit","justify","left","right"]),children:d.node,classes:d.object,className:d.string,color:d.oneOfType([d.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),d.string]),component:d.elementType,gutterBottom:d.bool,noWrap:d.bool,paragraph:d.bool,style:d.object,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),variant:d.oneOfType([d.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),d.string]),variantMapping:d.object});const w1=e=>l.jsx(nn,{...e,children:e.children}),x1=({overlay:e})=>l.jsx(l.Fragment,{children:l.jsx(O.Backdrop,{open:!0,invisible:!e,style:{zIndex:1350},children:l.jsx(O.CircularProgress,{style:{position:"absolute",left:"calc(50vw - 20px)",top:"calc(50vh - 20px)"}})})}),v1=e=>l.jsx(O.Menu,{...e,children:e.children}),T1=e=>l.jsx(O.MenuItem,{...e,children:e.children}),S1=({align:e,bold:r,color:t,displayAsQty:n,hideNoValue:o,noValueText:a,notCurrency:s,showNegative:i,prefix:u,value:f})=>l.jsx(l.Fragment,{children:o&&!f?l.jsx(l.Fragment,{children:a&&l.jsx(O.Typography,{align:e,fontWeight:r?600:void 0,color:t||void 0,children:a})}):l.jsxs(O.Typography,{align:e,fontWeight:r?600:void 0,color:t||void 0,children:[i&&f!==0&&"(",l.jsx(Ir.NumericFormat,{value:(f||0).toFixed(n?0:2),displayType:"text",thousandSeparator:!s,prefix:u||void 0,fixedDecimalScale:!s}),i&&f!==0&&")"]})}),ra=ue.forwardRef((e,r)=>{const{onChange:t,...n}=e;return l.jsx(Ir.NumericFormat,{...n,getInputRef:r,onValueChange:o=>{t({target:{name:e.name,value:o.value}})},allowNegative:!1})});ra.displayName="LCTNumberInputNumericFormat";const M1=({autoFocus:e,disabled:r,placeholder:t,size:n,updater:o,value:a,width:s,...i})=>l.jsx(l.Fragment,{children:l.jsx(O.OutlinedInput,{autoFocus:e,disabled:r,inputComponent:ra,onBlur:u=>{o&&o(u.target.value)},placeholder:t,size:n||"small",sx:{width:s||130,"& .MuiInputBase-input":{textAlign:"end"},"& .MuiOutlinedInput-notchedOutline ":{border:"1px solid rgba(0, 0, 0, 0.23)"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline ":{border:"1px solid rgba(0, 0, 0, 0.23)"}},value:a,...i})}),E1=(e,r,t)=>{let n=[];return e.includes("All")&&!r.includes("All")?n=t.concat("All"):!e.includes("All")&&r.includes("All")?n=[]:e.filter(o=>o!=="All").length===t.length?n=e.concat("All"):n=e.filter(o=>o!=="All"),n},k1=e=>{var r;return l.jsx(O.Select,{fullWidth:!0,sx:e.sx,variant:"outlined",value:e.value,disabled:e.disabled,MenuProps:e.MenuProps&&e.multiple?{...e.MenuProps,sx:{...e.MenuProps.sx,".MuiButtonBase-root":{borderRadius:0,padding:"4px 8px 4px 0px"}},variant:"menu",PaperProps:{sx:{borderRadius:0}}}:{...e.MenuProps,sx:{...(r=e.MenuProps)==null?void 0:r.sx,".MuiButtonBase-root":{borderRadius:0}},variant:"menu",PaperProps:{sx:{borderRadius:0}}},onChange:(t,n)=>e.multiple?e.onChange(E1(t.target.value,e.originalValue||[],e.fullList||[])):e.onChange&&e.onChange(t,n),renderValue:e.renderValue,multiple:e.multiple,children:e.children})},O1=e=>l.jsx(O.Snackbar,{anchorOrigin:e.anchorOrigin?e.anchorOrigin:{vertical:"bottom",horizontal:"right"},autoHideDuration:e.autoHideDuration?e.autoHideDuration:3e3,...e}),na=e=>l.jsx(O.Tooltip,{...e,children:e.children}),L1=e=>{var r;return l.jsx(na,{title:(e==null?void 0:e.fullName)||"",children:l.jsx(O.Avatar,{sx:{height:28,width:28,marginLeft:e!=null&&e.hideMargin?0:"auto",marginRight:e!=null&&e.hideMargin?0:"auto",fontSize:12,backgroundColor:"#a7a7a7"},children:((r=e==null?void 0:e.staffInitials)==null?void 0:r.toUpperCase())||"?"})})},Re=e=>l.jsx(O.SvgIcon,{...e,children:e.children}),D1=e=>l.jsx(O.Tab,{...e,children:e.children}),P1=e=>l.jsx(O.Tabs,{...e,children:e.children}),R1=e=>l.jsxs(l.Fragment,{children:[l.jsx("style",{children:`.textareaautosize textarea {
|