@scmlatam/web-ui 0.1.9 → 0.1.10
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.
|
@@ -41716,7 +41716,7 @@ async function zw(e) {
|
|
|
41716
41716
|
return;
|
|
41717
41717
|
const {
|
|
41718
41718
|
default: t
|
|
41719
|
-
} = await import("./get-context-
|
|
41719
|
+
} = await import("./get-context-DOucrlL_.js"), r = await t();
|
|
41720
41720
|
if (!e || !Vw(r))
|
|
41721
41721
|
return;
|
|
41722
41722
|
const o = y({}, e, {
|
|
@@ -59274,68 +59274,117 @@ const hL = vt(/* @__PURE__ */ p("path", {
|
|
|
59274
59274
|
)
|
|
59275
59275
|
}
|
|
59276
59276
|
) });
|
|
59277
|
-
}, KL = ({
|
|
59278
|
-
|
|
59279
|
-
|
|
59280
|
-
|
|
59281
|
-
|
|
59282
|
-
|
|
59277
|
+
}, KL = ({
|
|
59278
|
+
title: e,
|
|
59279
|
+
alert: t,
|
|
59280
|
+
action: r,
|
|
59281
|
+
fields: o,
|
|
59282
|
+
open: n,
|
|
59283
|
+
setOpen: s,
|
|
59284
|
+
onClickSave: l
|
|
59285
|
+
}) => {
|
|
59286
|
+
const [a, c] = mr(!1), u = (d, M) => {
|
|
59287
|
+
switch (d.element) {
|
|
59288
|
+
case "TextField":
|
|
59289
|
+
return /* @__PURE__ */ p(
|
|
59290
|
+
Wt,
|
|
59283
59291
|
{
|
|
59284
|
-
|
|
59285
|
-
|
|
59286
|
-
|
|
59287
|
-
|
|
59288
|
-
|
|
59289
|
-
|
|
59290
|
-
|
|
59291
|
-
|
|
59292
|
-
|
|
59293
|
-
|
|
59294
|
-
|
|
59295
|
-
|
|
59296
|
-
|
|
59297
|
-
|
|
59298
|
-
|
|
59292
|
+
size: d.ncolumn,
|
|
59293
|
+
sx: { mb: "20px" },
|
|
59294
|
+
children: /* @__PURE__ */ p(
|
|
59295
|
+
hn,
|
|
59296
|
+
{
|
|
59297
|
+
fullWidth: !0,
|
|
59298
|
+
variant: "outlined",
|
|
59299
|
+
label: d.label,
|
|
59300
|
+
type: d.type,
|
|
59301
|
+
placeholder: d.placeholder,
|
|
59302
|
+
focused: !0,
|
|
59303
|
+
value: d.value,
|
|
59304
|
+
onChange: (V) => {
|
|
59305
|
+
d.setValue(V.target.value);
|
|
59306
|
+
},
|
|
59307
|
+
disabled: d.disable || r.actionButton.loading
|
|
59308
|
+
}
|
|
59309
|
+
)
|
|
59310
|
+
},
|
|
59311
|
+
M
|
|
59312
|
+
);
|
|
59313
|
+
case "SelectField":
|
|
59314
|
+
return /* @__PURE__ */ p(
|
|
59315
|
+
Wt,
|
|
59299
59316
|
{
|
|
59300
|
-
|
|
59301
|
-
|
|
59302
|
-
|
|
59303
|
-
|
|
59304
|
-
|
|
59305
|
-
|
|
59306
|
-
|
|
59307
|
-
|
|
59308
|
-
|
|
59309
|
-
|
|
59310
|
-
|
|
59311
|
-
|
|
59312
|
-
|
|
59317
|
+
size: d.ncolumn,
|
|
59318
|
+
sx: { mb: "20px" },
|
|
59319
|
+
children: /* @__PURE__ */ p(
|
|
59320
|
+
cE,
|
|
59321
|
+
{
|
|
59322
|
+
label: d.label,
|
|
59323
|
+
placeholder: d.placeholder,
|
|
59324
|
+
value: d.value,
|
|
59325
|
+
setValue: d.setValue,
|
|
59326
|
+
values: d.values,
|
|
59327
|
+
disabled: d.disable || r.actionButton.loading,
|
|
59328
|
+
fullWidth: !0,
|
|
59329
|
+
white: !0
|
|
59330
|
+
}
|
|
59331
|
+
)
|
|
59332
|
+
},
|
|
59333
|
+
M
|
|
59334
|
+
);
|
|
59335
|
+
case "DateField":
|
|
59336
|
+
return /* @__PURE__ */ p(
|
|
59337
|
+
Wt,
|
|
59313
59338
|
{
|
|
59314
|
-
|
|
59315
|
-
|
|
59316
|
-
|
|
59317
|
-
|
|
59318
|
-
|
|
59319
|
-
|
|
59320
|
-
|
|
59321
|
-
|
|
59339
|
+
size: d.ncolumn,
|
|
59340
|
+
sx: { mb: "20px" },
|
|
59341
|
+
children: /* @__PURE__ */ p(
|
|
59342
|
+
VL,
|
|
59343
|
+
{
|
|
59344
|
+
label: d.label,
|
|
59345
|
+
value: d.value,
|
|
59346
|
+
setValue: d.setValue,
|
|
59347
|
+
disabled: d.disable || r.actionButton.loading,
|
|
59348
|
+
fullWidth: !0,
|
|
59349
|
+
white: !0
|
|
59350
|
+
}
|
|
59351
|
+
)
|
|
59352
|
+
},
|
|
59353
|
+
M
|
|
59354
|
+
);
|
|
59322
59355
|
default:
|
|
59323
59356
|
return /* @__PURE__ */ p(Ii, {});
|
|
59324
59357
|
}
|
|
59325
|
-
},
|
|
59326
|
-
|
|
59327
|
-
|
|
59328
|
-
|
|
59329
|
-
|
|
59330
|
-
|
|
59331
|
-
|
|
59332
|
-
|
|
59358
|
+
}, m = () => {
|
|
59359
|
+
o.forEach((d) => {
|
|
59360
|
+
switch (d.element) {
|
|
59361
|
+
case "TextField":
|
|
59362
|
+
d.setValue(
|
|
59363
|
+
d.initialValue
|
|
59364
|
+
);
|
|
59365
|
+
break;
|
|
59366
|
+
case "SelectField":
|
|
59367
|
+
d.setValue(
|
|
59368
|
+
d.initialValue
|
|
59369
|
+
);
|
|
59370
|
+
break;
|
|
59371
|
+
case "DateField":
|
|
59372
|
+
d.setValue(
|
|
59373
|
+
d.initialValue
|
|
59374
|
+
);
|
|
59375
|
+
break;
|
|
59376
|
+
}
|
|
59377
|
+
}), c(!1);
|
|
59378
|
+
}, E = (d) => {
|
|
59379
|
+
d.some(
|
|
59380
|
+
(V) => V.value !== V.initialValue
|
|
59381
|
+
) ? c(!0) : s(!1);
|
|
59333
59382
|
};
|
|
59334
59383
|
return /* @__PURE__ */ p(Ii, { children: /* @__PURE__ */ ne(
|
|
59335
59384
|
Lf,
|
|
59336
59385
|
{
|
|
59337
|
-
open:
|
|
59338
|
-
onClose: () =>
|
|
59386
|
+
open: n,
|
|
59387
|
+
onClose: () => E(o),
|
|
59339
59388
|
PaperComponent: zL,
|
|
59340
59389
|
"aria-labelledby": "draggable-dialog-title",
|
|
59341
59390
|
children: [
|
|
@@ -59349,10 +59398,10 @@ const hL = vt(/* @__PURE__ */ p("path", {
|
|
|
59349
59398
|
padding: 0
|
|
59350
59399
|
},
|
|
59351
59400
|
id: "draggable-dialog-title",
|
|
59352
|
-
children:
|
|
59401
|
+
children: e
|
|
59353
59402
|
}
|
|
59354
59403
|
),
|
|
59355
|
-
|
|
59404
|
+
a && /* @__PURE__ */ p(
|
|
59356
59405
|
xI,
|
|
59357
59406
|
{
|
|
59358
59407
|
sx: {
|
|
@@ -59367,9 +59416,9 @@ const hL = vt(/* @__PURE__ */ p("path", {
|
|
|
59367
59416
|
sx: {
|
|
59368
59417
|
borderRadius: "24px",
|
|
59369
59418
|
bgcolor: "#FFEFE5",
|
|
59370
|
-
border: (
|
|
59419
|
+
border: (d) => `1px solid ${d.palette["gr-orange"].main}`,
|
|
59371
59420
|
"& .MuiAlert-icon": {
|
|
59372
|
-
color: (
|
|
59421
|
+
color: (d) => d.palette["gr-orange"].main
|
|
59373
59422
|
}
|
|
59374
59423
|
},
|
|
59375
59424
|
action: /* @__PURE__ */ ne(nr, { sx: { mt: 3.75 }, children: [
|
|
@@ -59378,8 +59427,8 @@ const hL = vt(/* @__PURE__ */ p("path", {
|
|
|
59378
59427
|
{
|
|
59379
59428
|
color: "gr-grey",
|
|
59380
59429
|
size: "small",
|
|
59381
|
-
onClick: () =>
|
|
59382
|
-
children: /* @__PURE__ */ p("b", { children:
|
|
59430
|
+
onClick: () => c(!1),
|
|
59431
|
+
children: /* @__PURE__ */ p("b", { children: t.actionButton.buttonText })
|
|
59383
59432
|
}
|
|
59384
59433
|
),
|
|
59385
59434
|
/* @__PURE__ */ p(
|
|
@@ -59388,21 +59437,21 @@ const hL = vt(/* @__PURE__ */ p("path", {
|
|
|
59388
59437
|
color: "gr-grey",
|
|
59389
59438
|
size: "small",
|
|
59390
59439
|
onClick: () => {
|
|
59391
|
-
|
|
59440
|
+
m(), s(!1);
|
|
59392
59441
|
},
|
|
59393
|
-
children: /* @__PURE__ */ p("b", { children:
|
|
59442
|
+
children: /* @__PURE__ */ p("b", { children: t.cancelButton.buttonText })
|
|
59394
59443
|
}
|
|
59395
59444
|
)
|
|
59396
59445
|
] }),
|
|
59397
59446
|
children: [
|
|
59398
|
-
/* @__PURE__ */ p(gf, { children:
|
|
59399
|
-
/* @__PURE__ */ p(pr, { variant: "body2", children:
|
|
59447
|
+
/* @__PURE__ */ p(gf, { children: t.title }),
|
|
59448
|
+
/* @__PURE__ */ p(pr, { variant: "body2", children: t.message })
|
|
59400
59449
|
]
|
|
59401
59450
|
}
|
|
59402
59451
|
)
|
|
59403
59452
|
}
|
|
59404
59453
|
),
|
|
59405
|
-
/* @__PURE__ */ p(xI, { sx: { padding: 0, margin: 0 }, children: /* @__PURE__ */ p(Wt, { container: !0, spacing: 2, sx: { mt: 1 }, children:
|
|
59454
|
+
/* @__PURE__ */ p(xI, { sx: { padding: 0, margin: 0 }, children: /* @__PURE__ */ p(Wt, { container: !0, spacing: 2, sx: { mt: 1 }, children: o.map((d, M) => u(d, M)) }) }),
|
|
59406
59455
|
/* @__PURE__ */ ne(
|
|
59407
59456
|
Xf,
|
|
59408
59457
|
{
|
|
@@ -59419,14 +59468,14 @@ const hL = vt(/* @__PURE__ */ p("path", {
|
|
|
59419
59468
|
{
|
|
59420
59469
|
variant: "outlined",
|
|
59421
59470
|
autoFocus: !0,
|
|
59422
|
-
onClick: () =>
|
|
59471
|
+
onClick: () => E(o),
|
|
59423
59472
|
sx: {
|
|
59424
59473
|
minWidth: "130px",
|
|
59425
59474
|
borderRadius: "44px",
|
|
59426
59475
|
fontWeight: "500"
|
|
59427
59476
|
},
|
|
59428
59477
|
color: "gr-base-dark",
|
|
59429
|
-
children:
|
|
59478
|
+
children: r.cancelButton.buttonText
|
|
59430
59479
|
}
|
|
59431
59480
|
),
|
|
59432
59481
|
/* @__PURE__ */ p(
|
|
@@ -59436,8 +59485,8 @@ const hL = vt(/* @__PURE__ */ p("path", {
|
|
|
59436
59485
|
onClick: () => {
|
|
59437
59486
|
console.log(
|
|
59438
59487
|
"data",
|
|
59439
|
-
|
|
59440
|
-
),
|
|
59488
|
+
o.map((d) => ({ label: d.label, value: d.value }))
|
|
59489
|
+
), l();
|
|
59441
59490
|
},
|
|
59442
59491
|
sx: {
|
|
59443
59492
|
minWidth: "130px",
|
|
@@ -59447,7 +59496,9 @@ const hL = vt(/* @__PURE__ */ p("path", {
|
|
|
59447
59496
|
},
|
|
59448
59497
|
color: "gr-base-dark",
|
|
59449
59498
|
disableElevation: !0,
|
|
59450
|
-
|
|
59499
|
+
disabled: r.actionButton.disabled,
|
|
59500
|
+
loading: r.actionButton.loading,
|
|
59501
|
+
children: r.actionButton.buttonText
|
|
59451
59502
|
}
|
|
59452
59503
|
)
|
|
59453
59504
|
]
|
package/dist/web-ui.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Context } from 'react';
|
|
2
2
|
import { ContextMenu } from '../components/table/types/types';
|
|
3
3
|
import { CoreProps } from './types/types';
|
|
4
|
+
import { DateFieldForm } from './form/types/types';
|
|
4
5
|
import { Dayjs } from 'dayjs';
|
|
5
6
|
import { Dispatch } from 'react';
|
|
6
|
-
import { Field } from './form/types/types';
|
|
7
|
-
import { FieldType } from './form/types/types';
|
|
8
7
|
import { FormProps } from './form/types/types';
|
|
9
8
|
import { FormProps as FormProps_2 } from './types/types';
|
|
10
9
|
import { GridRowSelectionModel } from '@mui/x-data-grid';
|
|
@@ -17,10 +16,12 @@ import { PageProps } from './core/types/types';
|
|
|
17
16
|
import { PaginationModel } from './table/types/types';
|
|
18
17
|
import { RouteItem } from './core/types/types';
|
|
19
18
|
import { Row } from './table/types/types';
|
|
19
|
+
import { SelectFieldForm } from './form/types/types';
|
|
20
20
|
import { SetStateAction } from 'react';
|
|
21
21
|
import { TableProps } from './table/types/types';
|
|
22
22
|
import { TableProps as TableProps_2 } from './types/types';
|
|
23
23
|
import { TableProviderProps } from './table/types/types';
|
|
24
|
+
import { TextFieldForm } from './form/types/types';
|
|
24
25
|
import { Theme } from '@mui/material';
|
|
25
26
|
import { ToolbarProps } from './table/types/types';
|
|
26
27
|
import { ValueItem } from './select/types/types';
|
|
@@ -36,11 +37,9 @@ declare interface CoreProviderProps {
|
|
|
36
37
|
children: React.ReactNode;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
|
-
export {
|
|
40
|
+
export { DateFieldForm }
|
|
40
41
|
|
|
41
|
-
export {
|
|
42
|
-
|
|
43
|
-
export declare const Form: ({ open, setOpen, fields, onClickSave }: FormProps_2) => JSX.Element;
|
|
42
|
+
export declare const Form: ({ title, alert, action, fields, open, setOpen, onClickSave, }: FormProps_2) => JSX.Element;
|
|
44
43
|
|
|
45
44
|
export { FormProps }
|
|
46
45
|
|
|
@@ -75,12 +74,16 @@ export { RouteItem }
|
|
|
75
74
|
|
|
76
75
|
export { Row }
|
|
77
76
|
|
|
77
|
+
export { SelectFieldForm }
|
|
78
|
+
|
|
78
79
|
export declare const Table: (props: TableProps_2) => JSX.Element;
|
|
79
80
|
|
|
80
81
|
export { TableProps }
|
|
81
82
|
|
|
82
83
|
export { TableProviderProps }
|
|
83
84
|
|
|
85
|
+
export { TextFieldForm }
|
|
86
|
+
|
|
84
87
|
export { ToolbarProps }
|
|
85
88
|
|
|
86
89
|
export declare const useTable: () => {
|
package/dist/web-ui.js
CHANGED
package/dist/web-ui.umd.cjs
CHANGED
|
@@ -502,7 +502,7 @@ return result$$;`.replaceAll("$$",String(rZ)));return rZ+=1,(a,c)=>s(n,a,c)},iZ=
|
|
|
502
502
|
`),m7=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
|
|
503
503
|
`);class E7{constructor({locale:t,formats:r}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=UL,this.setLocaleToValue=o=>{const n=this.getCurrentLocaleCode();return n===o.locale()?o:o.locale(n)},this.hasUTCPlugin=()=>typeof Ir.utc<"u",this.hasTimezonePlugin=()=>typeof Ir.tz<"u",this.isSame=(o,n,s)=>{const l=this.setTimezone(n,this.getTimezone(o));return o.format(s)===l.format(s)},this.cleanTimezone=o=>{switch(o){case"default":return;case"system":return Ir.tz.guess();default:return o}},this.createSystemDate=o=>{let n;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const s=Ir.tz.guess();s==="UTC"?n=Ir(o):n=Ir.tz(o,s)}else n=Ir(o);return this.setLocaleToValue(n)},this.createUTCDate=o=>{if(!this.hasUTCPlugin())throw new Error(iR);return this.setLocaleToValue(Ir.utc(o))},this.createTZDate=(o,n)=>{if(!this.hasUTCPlugin())throw new Error(iR);if(!this.hasTimezonePlugin())throw new Error(m7);const s=o!==void 0&&!o.endsWith("Z");return this.setLocaleToValue(Ir(o).tz(this.cleanTimezone(n),s))},this.getLocaleFormats=()=>{const o=Ir.Ls,n=this.locale||"en";let s=o[n];return s===void 0&&(process.env.NODE_ENV!=="production"&&Qr(["MUI X: Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale."]),s=o.en),s.formats},this.adjustOffset=o=>{if(!this.hasTimezonePlugin())return o;const n=this.getTimezone(o);if(n!=="UTC"){const s=o.tz(this.cleanTimezone(n),!0);if(s.$offset===(o.$offset??0))return o;o.$offset=s.$offset}return o},this.date=(o,n="default")=>o===null?null:n==="UTC"?this.createUTCDate(o):n==="system"||n==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(o):this.createTZDate(o,n),this.getInvalidDate=()=>Ir(new Date("Invalid date")),this.getTimezone=o=>{if(this.hasTimezonePlugin()){const n=o.$x?.$timezone;if(n)return n}return this.hasUTCPlugin()&&o.isUTC()?"UTC":"system"},this.setTimezone=(o,n)=>{if(this.getTimezone(o)===n)return o;if(n==="UTC"){if(!this.hasUTCPlugin())throw new Error(iR);return o.utc()}if(n==="system")return o.local();if(!this.hasTimezonePlugin()){if(n==="default")return o;throw new Error(m7)}return this.setLocaleToValue(Ir.tz(o,this.cleanTimezone(n)))},this.toJsDate=o=>o.toDate(),this.parse=(o,n)=>o===""?null:Ir(o,n,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=o=>{const n=this.getLocaleFormats(),s=l=>l.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(a,c,u)=>c||u.slice(1));return o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(l,a,c)=>{const u=c&&c.toUpperCase();return a||n[c]||s(n[u])})},this.isValid=o=>o==null?!1:o.isValid(),this.format=(o,n)=>this.formatByString(o,this.formats[n]),this.formatByString=(o,n)=>this.setLocaleToValue(o).format(n),this.formatNumber=o=>o,this.isEqual=(o,n)=>o===null&&n===null?!0:o===null||n===null?!1:o.toDate().getTime()===n.toDate().getTime(),this.isSameYear=(o,n)=>this.isSame(o,n,"YYYY"),this.isSameMonth=(o,n)=>this.isSame(o,n,"YYYY-MM"),this.isSameDay=(o,n)=>this.isSame(o,n,"YYYY-MM-DD"),this.isSameHour=(o,n)=>o.isSame(n,"hour"),this.isAfter=(o,n)=>o>n,this.isAfterYear=(o,n)=>this.hasUTCPlugin()?!this.isSameYear(o,n)&&o.utc()>n.utc():o.isAfter(n,"year"),this.isAfterDay=(o,n)=>this.hasUTCPlugin()?!this.isSameDay(o,n)&&o.utc()>n.utc():o.isAfter(n,"day"),this.isBefore=(o,n)=>o<n,this.isBeforeYear=(o,n)=>this.hasUTCPlugin()?!this.isSameYear(o,n)&&o.utc()<n.utc():o.isBefore(n,"year"),this.isBeforeDay=(o,n)=>this.hasUTCPlugin()?!this.isSameDay(o,n)&&o.utc()<n.utc():o.isBefore(n,"day"),this.isWithinRange=(o,[n,s])=>o>=n&&o<=s,this.startOfYear=o=>this.adjustOffset(o.startOf("year")),this.startOfMonth=o=>this.adjustOffset(o.startOf("month")),this.startOfWeek=o=>this.adjustOffset(this.setLocaleToValue(o).startOf("week")),this.startOfDay=o=>this.adjustOffset(o.startOf("day")),this.endOfYear=o=>this.adjustOffset(o.endOf("year")),this.endOfMonth=o=>this.adjustOffset(o.endOf("month")),this.endOfWeek=o=>this.adjustOffset(this.setLocaleToValue(o).endOf("week")),this.endOfDay=o=>this.adjustOffset(o.endOf("day")),this.addYears=(o,n)=>this.adjustOffset(o.add(n,"year")),this.addMonths=(o,n)=>this.adjustOffset(o.add(n,"month")),this.addWeeks=(o,n)=>this.adjustOffset(o.add(n,"week")),this.addDays=(o,n)=>this.adjustOffset(o.add(n,"day")),this.addHours=(o,n)=>this.adjustOffset(o.add(n,"hour")),this.addMinutes=(o,n)=>this.adjustOffset(o.add(n,"minute")),this.addSeconds=(o,n)=>this.adjustOffset(o.add(n,"second")),this.getYear=o=>o.year(),this.getMonth=o=>o.month(),this.getDate=o=>o.date(),this.getHours=o=>o.hour(),this.getMinutes=o=>o.minute(),this.getSeconds=o=>o.second(),this.getMilliseconds=o=>o.millisecond(),this.setYear=(o,n)=>this.adjustOffset(o.set("year",n)),this.setMonth=(o,n)=>this.adjustOffset(o.set("month",n)),this.setDate=(o,n)=>this.adjustOffset(o.set("date",n)),this.setHours=(o,n)=>this.adjustOffset(o.set("hour",n)),this.setMinutes=(o,n)=>this.adjustOffset(o.set("minute",n)),this.setSeconds=(o,n)=>this.adjustOffset(o.set("second",n)),this.setMilliseconds=(o,n)=>this.adjustOffset(o.set("millisecond",n)),this.getDaysInMonth=o=>o.daysInMonth(),this.getWeekArray=o=>{const n=this.startOfWeek(this.startOfMonth(o)),s=this.endOfWeek(this.endOfMonth(o));let l=0,a=n;const c=[];for(;a<s;){const u=Math.floor(l/7);c[u]=c[u]||[],c[u].push(a),a=this.addDays(a,1),l+=1}return c},this.getWeekNumber=o=>o.week(),this.getYearRange=([o,n])=>{const s=this.startOfYear(o),l=this.endOfYear(n),a=[];let c=s;for(;this.isBefore(c,l);)a.push(c),c=this.addYears(c,1);return a},this.locale=t,this.formats=y({},QL,r),Ir.extend(AL)}getDayOfWeek(t){return t.day()+1}}const JL=({label:e,value:t,setValue:r,disabled:o})=>C.jsx(C.Fragment,{children:C.jsx(nI,{dateAdapter:E7,children:C.jsx(CI,{label:e,value:t,onChange:n=>{r(n)},InputProps:{sx:{borderRadius:"16px",width:"260px"},color:n=>n.palette["gr-yellow"].main},size:"small",color:"gr-yellow",slotProps:{textField:{InputLabelProps:{sx:{color:"white !important"}}}},focused:!0,format:"YYYY-MM-DD",disabled:o})})}),d7=({label:e,multiValue:t,setMultiValue:r,values:o,placeholder:n,disabled:s})=>C.jsx(C.Fragment,{children:C.jsxs(ls,{focused:!0,children:[C.jsx(us,{id:`filter-table-label-${e}`,sx:{color:"white",position:"absolute","&.Mui-focused":{color:"white"},'&[data-shrink="false"]':{transform:"translateY(12px) translateX(12px)"}},children:e}),C.jsxs(Vn,{labelId:`filter-table-label-${e}`,id:`filter-${e}`,value:t,label:e,onChange:l=>{const{target:{value:a}}=l;r(typeof a=="string"?a.split(","):a)},color:"gr-yellow",sx:{width:"260px",color:"white"},IconComponent:aA,MenuProps:{PaperProps:{style:{maxHeight:"500px",width:"260px",borderBottomLeftRadius:"32px",borderBottomRightRadius:"32px",borderTopLeftRadius:"0px",borderTopRightRadius:"0px"}},MenuListProps:{sx:{backgroundColor:et["gr-base-dark"].main,"& .MuiMenuItem-root":{backgroundColor:et["gr-base-dark"].main,color:"white","&:hover":{backgroundColor:et["gr-base-dark"].main},"&.Mui-selected":{backgroundColor:et["gr-base-dark"].main},"&.Mui-focusVisible":{backgroundColor:et["gr-base-dark"].main}}}}},renderValue:l=>o.filter(a=>l.includes(a.value)).map(a=>a.label).join(", "),displayEmpty:!0,disabled:s,multiple:!0,children:[C.jsx(Io,{disabled:!0,value:"",children:C.jsx("em",{children:n})}),o.map(l=>C.jsxs(Io,{value:l.value,children:[C.jsx(Nm,{checked:t.includes(l.value)}),C.jsx(ms,{slotProps:{primary:{sx:{color:"#FFFFFF"}}},primary:l.label})]},l.value))]})]})}),PL=e=>{const{range:t=[null,null],setRange:r=()=>{},multipleTags:o=!1,tags:n=[],tagSelected:s="",setTagSelected:l=()=>{},tagMultipleSelected:a=[],setTagMultipleSelected:c=()=>{},multipleEmployees:u=!1,employees:I=[],employeeSelected:E="",setEmployeeSelected:d=()=>{},employeeMultipleSelected:M=[],setEmployeeMultipleSelected:V=()=>{},search:R=()=>{}}=e;return C.jsxs(sr,{sx:{bgcolor:h=>h.palette.background.paper,height:"70px",borderTopLeftRadius:"20px",borderTopRightRadius:"20px",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",padding:"20px",gap:"20px"},children:[C.jsx(JL,{label:"Rango de días",value:t,setValue:r,disabled:!1}),o?C.jsx(d7,{label:"Etiquetas",multiValue:a,setMultiValue:c,values:n,placeholder:"Seleccionar",disabled:!1,fullWidth:!1}):C.jsx(PM,{label:"Etiquetas",value:s,setValue:l,values:n,placeholder:"Seleccionar",disabled:!1,fullWidth:!1,white:!1}),u?C.jsx(d7,{label:"Trabajadores",multiValue:M,setMultiValue:V,values:I,placeholder:"Seleccionar",fullWidth:!1,disabled:!1}):C.jsx(PM,{label:"Trabajadores",value:E,setValue:d,values:I,placeholder:"Seleccionar",disabled:!1,fullWidth:!1,white:!1}),C.jsx(mi,{variant:"contained",color:"gr-yellow",sx:{borderRadius:"20px",color:h=>h.palette.background.paper},onClick:()=>R(),children:"Buscar"})]})},wL=({contextMenu:e,setContextMenu:t,options:r,checked:o})=>C.jsxs(C.Fragment,{children:[C.jsx(dE,{open:e!==null,onClose:()=>t(null),anchorReference:"anchorPosition",anchorPosition:e!==null?{top:e.mouseY,left:e.mouseX}:void 0,slots:{transition:Wl},slotProps:{paper:{sx:{bgcolor:"white",borderRadius:"12px"},elevation:1}},sx:{cursor:"pointer"},children:r.filter(n=>!n.hide).map((n,s)=>C.jsxs(sr,{children:[s!==0&&r[s-1].group!==n.group?C.jsx(Ul,{}):null,C.jsxs(Io,{onClick:n.click,disabled:n.disabled,children:[C.jsx(Is,{sx:{color:l=>l.palette["gr-grey"].main},children:n.icon}),C.jsx(ms,{sx:{color:l=>l.palette["gr-grey"].main},children:n.name}),n.selected?C.jsxs(pr,{sx:{pl:3,color:l=>l.palette["gr-grey"].main},variant:"body2",children:["selecionados",":",o.length]}):null,n.onlyOne?C.jsx(pr,{sx:{pl:3,color:l=>l.palette["gr-grey"].main},variant:"body2",children:"solo uno"}):null]},s)]},s))}),r.filter(n=>!n.hide).map((n,s)=>C.jsx(sr,{children:n.dialog},s))]}),TL=e=>C.jsxs(C.Fragment,{children:[C.jsx(lA,{...e,showToolbar:!0,slots:{toolbar:PL},slotProps:{toolbar:{range:e.range,setRange:e.setRange,multipleTags:e.multipleTags,tags:e.tags,tagSelected:e.tagSelected,setTagSelected:e.setTagSelected,tagMultipleSelected:e.tagMultipleSelected,setTagMultipleSelected:e.setTagMultipleSelected,multipleEmployees:e.multipleEmployees,employees:e.employees,employeeSelected:e.employeeSelected,setEmployeeSelected:e.setEmployeeSelected,employeeMultipleSelected:e.employeeMultipleSelected,setEmployeeMultipleSelected:e.setEmployeeMultipleSelected,search:e.search}},sx:{border:"none",color:"black","& .MuiDataGrid-columnHeaderCheckbox":{backgroundColor:"white"},"& .MuiDataGrid-columnHeader":{backgroundColor:"white"},"& .MuiDataGrid-virtualScroller":{bgcolor:"white",borderBottomLeftRadius:"20px",borderBottomRightRadius:"20px"},"& .MuiDataGrid-checkboxInput":{color:t=>t.palette.background.paper},"& .MuiDataGrid-footerContainer":{borderTop:"none",fontWeight:"500",display:"flex",justifyContent:"center",alignItems:"center"},"& .MuiIconButton-root":{color:t=>t.palette.background.paper,"&.Mui-disabled":{color:"#888",backgroundColor:"#eee",opacity:.7}}},loading:e.loading,checkboxSelection:!0,pagination:!0,autoPageSize:!0,paginationModel:e.paginationModel,onPaginationModelChange:t=>{e.setPaginationModel(t)},onRowSelectionModelChange:t=>{e.setRowSelectionModel(t)},rowSelectionModel:e.rowSelectionModel}),C.jsx(wL,{contextMenu:e.contextMenu,setContextMenu:e.setContextMenu,options:e.options,checked:e.rowSelectionModel})]}),GL=()=>{const[e,t]=xe.useState([null,null]),[r,o]=xe.useState([]),[n,s]=xe.useState(""),[l,a]=xe.useState([]),[c,u]=xe.useState([]),[I,E]=xe.useState(""),[d,M]=xe.useState([]),[V,R]=xe.useState(!1),[h,z]=xe.useState([]),[f,Z]=xe.useState({pageSize:25,page:0}),[g,p]=xe.useState({type:"include",ids:new Set}),[F,x]=xe.useState(null);return{rows:h,setRows:z,range:e,setRange:t,tags:r,setTags:o,tagSelected:n,setTagSelected:s,tagMultipleSelected:l,setTagMultipleSelected:a,employees:c,setEmployees:u,employeeSelected:I,setEmployeeSelected:E,employeeMultipleSelected:d,setEmployeeMultipleSelected:M,loading:V,setLoading:R,paginationModel:f,setPaginationModel:Z,rowSelectionModel:g,setRowSelectionModel:p,contextMenu:F,setContextMenu:x}};var ja={exports:{}},oR={},yI={exports:{}},M7;function OL(){if(M7)return yI.exports;M7=1;function e(r){var o,n,s="";if(typeof r=="string"||typeof r=="number")s+=r;else if(typeof r=="object")if(Array.isArray(r)){var l=r.length;for(o=0;o<l;o++)r[o]&&(n=e(r[o]))&&(s&&(s+=" "),s+=n)}else for(n in r)r[n]&&(s&&(s+=" "),s+=n);return s}function t(){for(var r,o,n=0,s="",l=arguments.length;n<l;n++)(r=arguments[n])&&(o=e(r))&&(s&&(s+=" "),s+=o);return s}return yI.exports=t,yI.exports.clsx=t,yI.exports}var er={},Xo={},R7;function vI(){if(R7)return Xo;R7=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.dontSetMe=n,Xo.findInArray=e,Xo.int=o,Xo.isFunction=t,Xo.isNum=r;function e(s,l){for(let a=0,c=s.length;a<c;a++)if(l.apply(l,[s[a],a,s]))return s[a]}function t(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Function]"}function r(s){return typeof s=="number"&&!isNaN(s)}function o(s){return parseInt(s,10)}function n(s,l,a){if(s[l])return new Error(`Invalid prop ${l} passed to ${a} - do not set this, set it on the child.`)}return Xo}var No={},h7;function HL(){if(h7)return No;h7=1,Object.defineProperty(No,"__esModule",{value:!0}),No.browserPrefixToKey=r,No.browserPrefixToStyle=o,No.default=void 0,No.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const l=window.document?.documentElement?.style;if(!l||s in l)return"";for(let a=0;a<e.length;a++)if(r(s,e[a])in l)return e[a];return""}function r(s,l){return l?`${l}${n(s)}`:s}function o(s,l){return l?`-${l.toLowerCase()}-${s}`:s}function n(s){let l="",a=!0;for(let c=0;c<s.length;c++)a?(l+=s[c].toUpperCase(),a=!1):s[c]==="-"?a=!0:l+=s[c];return l}return No.default=t(),No}var V7;function nR(){if(V7)return er;V7=1,Object.defineProperty(er,"__esModule",{value:!0}),er.addClassName=p,er.addEvent=l,er.addUserSelectStyles=f,er.createCSSTransform=M,er.createSVGTransform=V,er.getTouch=h,er.getTouchIdentifier=z,er.getTranslation=R,er.innerHeight=I,er.innerWidth=E,er.matchesSelector=n,er.matchesSelectorAndParentsTo=s,er.offsetXYFromParent=d,er.outerHeight=c,er.outerWidth=u,er.removeClassName=F,er.removeEvent=a,er.scheduleRemoveUserSelectStyles=Z;var e=vI(),t=r(HL());function r(x,q){if(typeof WeakMap=="function")var v=new WeakMap,S=new WeakMap;return(r=function(b,A){if(!A&&b&&b.__esModule)return b;var j,k,K={__proto__:null,default:b};if(b===null||typeof b!="object"&&typeof b!="function")return K;if(j=A?S:v){if(j.has(b))return j.get(b);j.set(b,K)}for(const Y in b)Y!=="default"&&{}.hasOwnProperty.call(b,Y)&&((k=(j=Object.defineProperty)&&Object.getOwnPropertyDescriptor(b,Y))&&(k.get||k.set)?j(K,Y,k):K[Y]=b[Y]);return K})(x,q)}let o="";function n(x,q){return o||(o=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(v){return(0,e.isFunction)(x[v])})),(0,e.isFunction)(x[o])?x[o](q):!1}function s(x,q,v){let S=x;do{if(n(S,q))return!0;if(S===v)return!1;S=S.parentNode}while(S);return!1}function l(x,q,v,S){if(!x)return;const b={capture:!0,...S};x.addEventListener?x.addEventListener(q,v,b):x.attachEvent?x.attachEvent("on"+q,v):x["on"+q]=v}function a(x,q,v,S){if(!x)return;const b={capture:!0,...S};x.removeEventListener?x.removeEventListener(q,v,b):x.detachEvent?x.detachEvent("on"+q,v):x["on"+q]=null}function c(x){let q=x.clientHeight;const v=x.ownerDocument.defaultView.getComputedStyle(x);return q+=(0,e.int)(v.borderTopWidth),q+=(0,e.int)(v.borderBottomWidth),q}function u(x){let q=x.clientWidth;const v=x.ownerDocument.defaultView.getComputedStyle(x);return q+=(0,e.int)(v.borderLeftWidth),q+=(0,e.int)(v.borderRightWidth),q}function I(x){let q=x.clientHeight;const v=x.ownerDocument.defaultView.getComputedStyle(x);return q-=(0,e.int)(v.paddingTop),q-=(0,e.int)(v.paddingBottom),q}function E(x){let q=x.clientWidth;const v=x.ownerDocument.defaultView.getComputedStyle(x);return q-=(0,e.int)(v.paddingLeft),q-=(0,e.int)(v.paddingRight),q}function d(x,q,v){const b=q===q.ownerDocument.body?{left:0,top:0}:q.getBoundingClientRect(),A=(x.clientX+q.scrollLeft-b.left)/v,j=(x.clientY+q.scrollTop-b.top)/v;return{x:A,y:j}}function M(x,q){const v=R(x,q,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:v}}function V(x,q){return R(x,q,"")}function R(x,q,v){let{x:S,y:b}=x,A=`translate(${S}${v},${b}${v})`;if(q){const j=`${typeof q.x=="string"?q.x:q.x+v}`,k=`${typeof q.y=="string"?q.y:q.y+v}`;A=`translate(${j}, ${k})`+A}return A}function h(x,q){return x.targetTouches&&(0,e.findInArray)(x.targetTouches,v=>q===v.identifier)||x.changedTouches&&(0,e.findInArray)(x.changedTouches,v=>q===v.identifier)}function z(x){if(x.targetTouches&&x.targetTouches[0])return x.targetTouches[0].identifier;if(x.changedTouches&&x.changedTouches[0])return x.changedTouches[0].identifier}function f(x){if(!x)return;let q=x.getElementById("react-draggable-style-el");q||(q=x.createElement("style"),q.type="text/css",q.id="react-draggable-style-el",q.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
504
504
|
`,q.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
505
|
-
`,x.getElementsByTagName("head")[0].appendChild(q)),x.body&&p(x.body,"react-draggable-transparent-selection")}function Z(x){window.requestAnimationFrame?window.requestAnimationFrame(()=>{g(x)}):g(x)}function g(x){if(x)try{if(x.body&&F(x.body,"react-draggable-transparent-selection"),x.selection)x.selection.empty();else{const q=(x.defaultView||window).getSelection();q&&q.type!=="Caret"&&q.removeAllRanges()}}catch{}}function p(x,q){x.classList?x.classList.add(q):x.className.match(new RegExp(`(?:^|\\s)${q}(?!\\S)`))||(x.className+=` ${q}`)}function F(x,q){x.classList?x.classList.remove(q):x.className=x.className.replace(new RegExp(`(?:^|\\s)${q}(?!\\S)`,"g"),"")}return er}var to={},z7;function C7(){if(z7)return to;z7=1,Object.defineProperty(to,"__esModule",{value:!0}),to.canDragX=n,to.canDragY=s,to.createCoreData=a,to.createDraggableData=c,to.getBoundPosition=r,to.getControlPosition=l,to.snapToGrid=o;var e=vI(),t=nR();function r(E,d,M){if(!E.props.bounds)return[d,M];let{bounds:V}=E.props;V=typeof V=="string"?V:u(V);const R=I(E);if(typeof V=="string"){const{ownerDocument:h}=R,z=h.defaultView;let f;if(V==="parent"?f=R.parentNode:f=R.getRootNode().querySelector(V),!(f instanceof z.HTMLElement))throw new Error('Bounds selector "'+V+'" could not find an element.');const Z=f,g=z.getComputedStyle(R),p=z.getComputedStyle(Z);V={left:-R.offsetLeft+(0,e.int)(p.paddingLeft)+(0,e.int)(g.marginLeft),top:-R.offsetTop+(0,e.int)(p.paddingTop)+(0,e.int)(g.marginTop),right:(0,t.innerWidth)(Z)-(0,t.outerWidth)(R)-R.offsetLeft+(0,e.int)(p.paddingRight)-(0,e.int)(g.marginRight),bottom:(0,t.innerHeight)(Z)-(0,t.outerHeight)(R)-R.offsetTop+(0,e.int)(p.paddingBottom)-(0,e.int)(g.marginBottom)}}return(0,e.isNum)(V.right)&&(d=Math.min(d,V.right)),(0,e.isNum)(V.bottom)&&(M=Math.min(M,V.bottom)),(0,e.isNum)(V.left)&&(d=Math.max(d,V.left)),(0,e.isNum)(V.top)&&(M=Math.max(M,V.top)),[d,M]}function o(E,d,M){const V=Math.round(d/E[0])*E[0],R=Math.round(M/E[1])*E[1];return[V,R]}function n(E){return E.props.axis==="both"||E.props.axis==="x"}function s(E){return E.props.axis==="both"||E.props.axis==="y"}function l(E,d,M){const V=typeof d=="number"?(0,t.getTouch)(E,d):null;if(typeof d=="number"&&!V)return null;const R=I(M),h=M.props.offsetParent||R.offsetParent||R.ownerDocument.body;return(0,t.offsetXYFromParent)(V||E,h,M.props.scale)}function a(E,d,M){const V=!(0,e.isNum)(E.lastX),R=I(E);return V?{node:R,deltaX:0,deltaY:0,lastX:d,lastY:M,x:d,y:M}:{node:R,deltaX:d-E.lastX,deltaY:M-E.lastY,lastX:E.lastX,lastY:E.lastY,x:d,y:M}}function c(E,d){const M=E.props.scale;return{node:d.node,x:E.state.x+d.deltaX/M,y:E.state.y+d.deltaY/M,deltaX:d.deltaX/M,deltaY:d.deltaY/M,lastX:E.state.x,lastY:E.state.y}}function u(E){return{left:E.left,top:E.top,right:E.right,bottom:E.bottom}}function I(E){const d=E.findDOMNode();if(!d)throw new Error("<DraggableCore>: Unmounted during event!");return d}return to}var Ua={},FI={},f7;function Z7(){if(f7)return FI;f7=1,Object.defineProperty(FI,"__esModule",{value:!0}),FI.default=e;function e(){}return FI}var p7;function BL(){if(p7)return Ua;p7=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.default=void 0;var e=c(xe),t=a(tm()),r=a(tn),o=nR(),n=C7(),s=vI(),l=a(Z7());function a(R){return R&&R.__esModule?R:{default:R}}function c(R,h){if(typeof WeakMap=="function")var z=new WeakMap,f=new WeakMap;return(c=function(Z,g){if(!g&&Z&&Z.__esModule)return Z;var p,F,x={__proto__:null,default:Z};if(Z===null||typeof Z!="object"&&typeof Z!="function")return x;if(p=g?f:z){if(p.has(Z))return p.get(Z);p.set(Z,x)}for(const q in Z)q!=="default"&&{}.hasOwnProperty.call(Z,q)&&((F=(p=Object.defineProperty)&&Object.getOwnPropertyDescriptor(Z,q))&&(F.get||F.set)?p(x,q,F):x[q]=Z[q]);return x})(R,h)}function u(R,h,z){return(h=I(h))in R?Object.defineProperty(R,h,{value:z,enumerable:!0,configurable:!0,writable:!0}):R[h]=z,R}function I(R){var h=E(R,"string");return typeof h=="symbol"?h:h+""}function E(R,h){if(typeof R!="object"||!R)return R;var z=R[Symbol.toPrimitive];if(z!==void 0){var f=z.call(R,h);if(typeof f!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(R)}const d={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let M=d.mouse,V=class extends e.Component{constructor(){super(...arguments),u(this,"dragging",!1),u(this,"lastX",NaN),u(this,"lastY",NaN),u(this,"touchIdentifier",null),u(this,"mounted",!1),u(this,"handleDragStart",h=>{if(this.props.onMouseDown(h),!this.props.allowAnyClick&&typeof h.button=="number"&&h.button!==0)return!1;const z=this.findDOMNode();if(!z||!z.ownerDocument||!z.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:f}=z;if(this.props.disabled||!(h.target instanceof f.defaultView.Node)||this.props.handle&&!(0,o.matchesSelectorAndParentsTo)(h.target,this.props.handle,z)||this.props.cancel&&(0,o.matchesSelectorAndParentsTo)(h.target,this.props.cancel,z))return;h.type==="touchstart"&&!this.props.allowMobileScroll&&h.preventDefault();const Z=(0,o.getTouchIdentifier)(h);this.touchIdentifier=Z;const g=(0,n.getControlPosition)(h,Z,this);if(g==null)return;const{x:p,y:F}=g,x=(0,n.createCoreData)(this,p,F);(0,l.default)("DraggableCore: handleDragStart: %j",x),(0,l.default)("calling",this.props.onStart),!(this.props.onStart(h,x)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,o.addUserSelectStyles)(f),this.dragging=!0,this.lastX=p,this.lastY=F,(0,o.addEvent)(f,M.move,this.handleDrag),(0,o.addEvent)(f,M.stop,this.handleDragStop))}),u(this,"handleDrag",h=>{const z=(0,n.getControlPosition)(h,this.touchIdentifier,this);if(z==null)return;let{x:f,y:Z}=z;if(Array.isArray(this.props.grid)){let F=f-this.lastX,x=Z-this.lastY;if([F,x]=(0,n.snapToGrid)(this.props.grid,F,x),!F&&!x)return;f=this.lastX+F,Z=this.lastY+x}const g=(0,n.createCoreData)(this,f,Z);if((0,l.default)("DraggableCore: handleDrag: %j",g),this.props.onDrag(h,g)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const x=document.createEvent("MouseEvents");x.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(x)}return}this.lastX=f,this.lastY=Z}),u(this,"handleDragStop",h=>{if(!this.dragging)return;const z=(0,n.getControlPosition)(h,this.touchIdentifier,this);if(z==null)return;let{x:f,y:Z}=z;if(Array.isArray(this.props.grid)){let x=f-this.lastX||0,q=Z-this.lastY||0;[x,q]=(0,n.snapToGrid)(this.props.grid,x,q),f=this.lastX+x,Z=this.lastY+q}const g=(0,n.createCoreData)(this,f,Z);if(this.props.onStop(h,g)===!1||this.mounted===!1)return!1;const F=this.findDOMNode();F&&this.props.enableUserSelectHack&&(0,o.scheduleRemoveUserSelectStyles)(F.ownerDocument),(0,l.default)("DraggableCore: handleDragStop: %j",g),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,F&&((0,l.default)("DraggableCore: Removing handlers"),(0,o.removeEvent)(F.ownerDocument,M.move,this.handleDrag),(0,o.removeEvent)(F.ownerDocument,M.stop,this.handleDragStop))}),u(this,"onMouseDown",h=>(M=d.mouse,this.handleDragStart(h))),u(this,"onMouseUp",h=>(M=d.mouse,this.handleDragStop(h))),u(this,"onTouchStart",h=>(M=d.touch,this.handleDragStart(h))),u(this,"onTouchEnd",h=>(M=d.touch,this.handleDragStop(h)))}componentDidMount(){this.mounted=!0;const h=this.findDOMNode();h&&(0,o.addEvent)(h,d.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const h=this.findDOMNode();if(h){const{ownerDocument:z}=h;(0,o.removeEvent)(z,d.mouse.move,this.handleDrag),(0,o.removeEvent)(z,d.touch.move,this.handleDrag),(0,o.removeEvent)(z,d.mouse.stop,this.handleDragStop),(0,o.removeEvent)(z,d.touch.stop,this.handleDragStop),(0,o.removeEvent)(h,d.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,o.scheduleRemoveUserSelectStyles)(z)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return Ua.default=V,u(V,"displayName","DraggableCore"),u(V,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(R,h){if(R[h]&&R[h].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),u(V,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Ua}var q7;function LL(){return q7||(q7=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),e.default=void 0;var t=E(xe),r=I(tm()),o=I(tn),n=OL(),s=nR(),l=C7(),a=vI(),c=I(BL()),u=I(Z7());function I(z){return z&&z.__esModule?z:{default:z}}function E(z,f){if(typeof WeakMap=="function")var Z=new WeakMap,g=new WeakMap;return(E=function(p,F){if(!F&&p&&p.__esModule)return p;var x,q,v={__proto__:null,default:p};if(p===null||typeof p!="object"&&typeof p!="function")return v;if(x=F?g:Z){if(x.has(p))return x.get(p);x.set(p,v)}for(const S in p)S!=="default"&&{}.hasOwnProperty.call(p,S)&&((q=(x=Object.defineProperty)&&Object.getOwnPropertyDescriptor(p,S))&&(q.get||q.set)?x(v,S,q):v[S]=p[S]);return v})(z,f)}function d(){return d=Object.assign?Object.assign.bind():function(z){for(var f=1;f<arguments.length;f++){var Z=arguments[f];for(var g in Z)({}).hasOwnProperty.call(Z,g)&&(z[g]=Z[g])}return z},d.apply(null,arguments)}function M(z,f,Z){return(f=V(f))in z?Object.defineProperty(z,f,{value:Z,enumerable:!0,configurable:!0,writable:!0}):z[f]=Z,z}function V(z){var f=R(z,"string");return typeof f=="symbol"?f:f+""}function R(z,f){if(typeof z!="object"||!z)return z;var Z=z[Symbol.toPrimitive];if(Z!==void 0){var g=Z.call(z,f);if(typeof g!="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(z)}class h extends t.Component{static getDerivedStateFromProps(f,Z){let{position:g}=f,{prevPropsPosition:p}=Z;return g&&(!p||g.x!==p.x||g.y!==p.y)?((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:g,prevPropsPosition:p}),{x:g.x,y:g.y,prevPropsPosition:{...g}}):null}constructor(f){super(f),M(this,"onDragStart",(Z,g)=>{if((0,u.default)("Draggable: onDragStart: %j",g),this.props.onStart(Z,(0,l.createDraggableData)(this,g))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),M(this,"onDrag",(Z,g)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",g);const p=(0,l.createDraggableData)(this,g),F={x:p.x,y:p.y,slackX:0,slackY:0};if(this.props.bounds){const{x:q,y:v}=F;F.x+=this.state.slackX,F.y+=this.state.slackY;const[S,b]=(0,l.getBoundPosition)(this,F.x,F.y);F.x=S,F.y=b,F.slackX=this.state.slackX+(q-F.x),F.slackY=this.state.slackY+(v-F.y),p.x=F.x,p.y=F.y,p.deltaX=F.x-this.state.x,p.deltaY=F.y-this.state.y}if(this.props.onDrag(Z,p)===!1)return!1;this.setState(F)}),M(this,"onDragStop",(Z,g)=>{if(!this.state.dragging||this.props.onStop(Z,(0,l.createDraggableData)(this,g))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",g);const F={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:q,y:v}=this.props.position;F.x=q,F.y=v}this.setState(F)}),this.state={dragging:!1,dragged:!1,x:f.position?f.position.x:f.defaultPosition.x,y:f.position?f.position.y:f.defaultPosition.y,prevPropsPosition:{...f.position},slackX:0,slackY:0,isElementSVG:!1},f.position&&!(f.onDrag||f.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??o.default.findDOMNode(this)}render(){const{axis:f,bounds:Z,children:g,defaultPosition:p,defaultClassName:F,defaultClassNameDragging:x,defaultClassNameDragged:q,position:v,positionOffset:S,scale:b,...A}=this.props;let j={},k=null;const Y=!!!v||this.state.dragging,Q=v||p,P={x:(0,l.canDragX)(this)&&Y?this.state.x:Q.x,y:(0,l.canDragY)(this)&&Y?this.state.y:Q.y};this.state.isElementSVG?k=(0,s.createSVGTransform)(P,S):j=(0,s.createCSSTransform)(P,S);const J=(0,n.clsx)(g.props.className||"",F,{[x]:this.state.dragging,[q]:this.state.dragged});return t.createElement(c.default,d({},A,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(g),{className:J,style:{...g.props.style,...j},transform:k}))}}e.default=h,M(h,"displayName","Draggable"),M(h,"propTypes",{...c.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),M(h,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(oR)),oR}var A7;function XL(){if(A7)return ja.exports;A7=1;const{default:e,DraggableCore:t}=LL();return ja.exports=e,ja.exports.default=e,ja.exports.DraggableCore=t,ja.exports}var NL=XL();const DL=qo(NL),$L=yt(C.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),_L=e=>{const t=tL(e);return t7({manager:t,props:e})},eX=["slots","slotProps"],sR=m.forwardRef(function(t,r){const o=oo({props:t,name:"MuiDateTimeField"}),{slots:n,slotProps:s}=o,l=Ie(o,eX),a=PA({slotProps:s,ref:r,externalForwardedProps:l}),c=_L(a);return C.jsx(JA,{slots:n,slotProps:s,fieldResponse:c,defaultOpenPickerIcon:p6})});process.env.NODE_ENV!=="production"&&(sR.displayName="DateTimeField"),process.env.NODE_ENV!=="production"&&(sR.propTypes={ampm:i.bool,autoFocus:i.bool,className:i.string,clearable:i.bool,clearButtonPosition:i.oneOf(["end","start"]),color:i.oneOf(["error","info","primary","secondary","success","warning"]),component:i.elementType,defaultValue:i.object,disabled:i.bool,disableFuture:i.bool,disableIgnoringDatePartForTimeValidation:i.bool,disablePast:i.bool,enableAccessibleFieldDOMStructure:i.bool,focused:i.bool,format:i.string,formatDensity:i.oneOf(["dense","spacious"]),FormHelperTextProps:i.object,fullWidth:i.bool,helperText:i.node,hiddenLabel:i.bool,id:i.string,InputLabelProps:i.object,inputProps:i.object,InputProps:i.object,inputRef:_t,label:i.node,margin:i.oneOf(["dense","none","normal"]),maxDate:i.object,maxDateTime:i.object,maxTime:i.object,minDate:i.object,minDateTime:i.object,minTime:i.object,minutesStep:i.number,name:i.string,onBlur:i.func,onChange:i.func,onClear:i.func,onError:i.func,onFocus:i.func,onSelectedSectionsChange:i.func,openPickerButtonPosition:i.oneOf(["end","start"]),readOnly:i.bool,referenceDate:i.object,required:i.bool,selectedSections:i.oneOfType([i.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),i.number]),shouldDisableDate:i.func,shouldDisableMonth:i.func,shouldDisableTime:i.func,shouldDisableYear:i.func,shouldRespectLeadingZeros:i.bool,size:i.oneOf(["medium","small"]),slotProps:i.object,slots:i.object,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),timezone:i.string,unstableFieldRef:i.oneOfType([i.func,i.object]),value:i.object,variant:i.oneOf(["filled","outlined","standard"])});const tX=yt(C.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),rX=({label:e,value:t,setValue:r,disabled:o,fullWidth:n,white:s})=>C.jsx(C.Fragment,{children:C.jsx(nI,{dateAdapter:E7,children:C.jsx(sR,{label:e,value:t,onChange:l=>{r(l)},InputProps:{sx:{borderRadius:"16px",color:s?"black !important":"white !important"}},size:"small",color:"gr-yellow",slotProps:{textField:{InputLabelProps:{sx:{color:s?"black !important":"white !important"}}}},focused:!0,format:"YYYY-MM-DD",disabled:o,fullWidth:n,endAdornment:C.jsx(Lc,{position:"end",sx:{color:s?"black":"white"},children:C.jsx(tX,{sx:{height:"18px",mt:"-4px"}})})})})}),iX=e=>{const t=xe.useRef(null);return C.jsx(C.Fragment,{children:C.jsx(DL,{nodeRef:t,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',children:C.jsx(lo,{...e,ref:t,sx:{bgcolor:"white",color:r=>r.palette.background.paper,padding:"20px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"50px",borderRadius:"20px"}})})})},oX=({open:e,setOpen:t,fields:r,onClickSave:o})=>{const[n,s]=xe.useState(!1),l=(u,I)=>{switch(u.type){case"text":return C.jsx(kt,{size:u.ncolumn,sx:{mb:"20px"},children:C.jsx(Cn,{fullWidth:!0,variant:"outlined",label:u.label,type:u.type,placeholder:u.placeholder,focused:!0,value:u.value,onChange:E=>{u.setValue(E.target.value)}})},I);case"select":return C.jsx(kt,{size:u.ncolumn,sx:{mb:"20px"},children:C.jsx(PM,{label:u.label,placeholder:u.placeholder,value:u.value,setValue:u.setValue,values:u.values,disabled:!1,fullWidth:!0,white:!0})},I);case"date":return C.jsx(kt,{size:u.ncolumn,sx:{mb:"20px"},children:C.jsx(rX,{label:u.label,value:u.value,setValue:u.setValue,disabled:!1,fullWidth:!0,white:!0})},I);default:return C.jsx(C.Fragment,{})}},a=()=>{r.forEach(u=>{u.setValue(u.initialValue)}),s(!1)},c=u=>{u.some(E=>E.value!==E.initialValue)?s(!0):t(!1)};return C.jsx(C.Fragment,{children:C.jsxs(Sz,{open:e,onClose:()=>c(r),PaperComponent:iX,"aria-labelledby":"draggable-dialog-title",children:[C.jsx(kz,{style:{cursor:"move",textAlign:"center",margin:0,padding:0},id:"draggable-dialog-title",children:"Agregar empleado"}),n&&C.jsx(rE,{sx:{padding:0,margin:0,width:"100%"},children:C.jsxs(jV,{icon:C.jsx($L,{}),sx:{borderRadius:"24px",bgcolor:"#FFEFE5",border:u=>`1px solid ${u.palette["gr-orange"].main}`,"& .MuiAlert-icon":{color:u=>u.palette["gr-orange"].main}},action:C.jsxs(sr,{sx:{mt:3.75},children:[C.jsx(mi,{color:"gr-grey",size:"small",onClick:()=>s(!1),children:C.jsx("b",{children:"SI"})}),C.jsx(mi,{color:"gr-grey",size:"small",onClick:()=>{a(),t(!1)},children:C.jsx("b",{children:"NO"})})]}),children:[C.jsx(JV,{children:"Hay cambios sin guardar"}),C.jsx(pr,{variant:"body2",children:"¿Desea continuar?"})]})}),C.jsx(rE,{sx:{padding:0,margin:0},children:C.jsx(kt,{container:!0,spacing:2,sx:{mt:1},children:r.map((u,I)=>l(u,I))})}),C.jsxs(Wz,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",width:"100%"},children:[C.jsx(mi,{variant:"outlined",autoFocus:!0,onClick:()=>c(r),sx:{minWidth:"130px",borderRadius:"44px",fontWeight:"500"},color:"gr-base-dark",children:"Cancel"}),C.jsx(mi,{variant:"contained",onClick:()=>{console.log("data",r.map(u=>({label:u.label,value:u.value}))),o()},sx:{minWidth:"130px",borderRadius:"44px",color:"white",fontWeight:"500"},color:"gr-base-dark",disableElevation:!0,children:"Agregar"})]})]})})},Qn={config:{isInitialized:!1},traits:{}},nX="__mui_x_telemetry_";function g7(e){return nX+btoa(e)}function lR(e,t,r){try{if(typeof window<"u"&&window[e])return window[e].setItem(g7(t),r),!0}catch{}return!1}function aR(e,t){try{if(typeof window<"u"&&window[e])return window[e].getItem(g7(t))}catch{}return null}function cR(e){let t="";const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=r.length;let n=0;for(;n<e;)t+=r.charAt(Math.floor(Math.random()*o)),n+=1;return t}function sX(e,t){return t.reduce((r,o)=>(r[o]=e[o],r),{})}const lX=typeof window>"u"||process.env.NODE_ENV==="test"?()=>{}:async()=>{const e="fingerprint";try{const t=aR("localStorage",e);if(t)return JSON.parse(t);const r=await Promise.resolve().then(()=>U8),n=await(await r.load({monitoring:!1})).get(),s=y({},n.components);delete s.cookiesEnabled;const l=r.hashComponents(s),a=r.hashComponents(y({},sX(s,["fonts","audio","languages","deviceMemory","timezone","sessionStorage","localStorage","indexedDB","openDatabase","platform","canvas","vendor","vendorFlavors","colorGamut","forcedColors","monochrome","contrast","reducedMotion","math","videoCard","architecture"]))),c={fullHash:l,coreHash:a};return lR("localStorage",e,JSON.stringify(c)),c}catch{return null}};function aX(){const e="anonymous_id",t=aR("localStorage",e);if(t)return t;const r=`anid_${cR(32)}`;return lR("localStorage",e,r)?r:""}function cX(){const e="session_id",t=aR("sessionStorage",e);if(t)return t;const r=`sesid_${cR(32)}`;return lR("sessionStorage",e,r)?r:`sestp_${cR(32)}`}async function uX(){return Qn.traits.sessionId=cX(),Qn.config.isInitialized||(Qn.traits.anonymousId=aX(),Qn.config.isInitialized=!0),Qn.traits.fingerprint||(Qn.traits.fingerprint=await lX()),Qn}const IX=Object.freeze(Object.defineProperty({__proto__:null,default:uX},Symbol.toStringTag,{value:"Module"}));var uR=function(){return uR=Object.assign||function(t){for(var r,o=1,n=arguments.length;o<n;o++){r=arguments[o];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},uR.apply(this,arguments)};function fo(e,t,r,o){function n(s){return s instanceof r?s:new r(function(l){l(s)})}return new(r||(r=Promise))(function(s,l){function a(I){try{u(o.next(I))}catch(E){l(E)}}function c(I){try{u(o.throw(I))}catch(E){l(E)}}function u(I){I.done?s(I.value):n(I.value).then(a,c)}u((o=o.apply(e,t||[])).next())})}function Zo(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,n,s,l=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return l.next=a(0),l.throw=a(1),l.return=a(2),typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function a(u){return function(I){return c([u,I])}}function c(u){if(o)throw new TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(r=0)),r;)try{if(o=1,n&&(s=u[0]&2?n.return:u[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,u[1])).done)return s;switch(n=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,n=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){r.label=u[1];break}if(u[0]===6&&r.label<s[1]){r.label=s[1],s=u;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(u);break}s[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(I){u=[6,I],n=0}finally{o=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function y7(e,t,r){if(r||arguments.length===2)for(var o=0,n=t.length,s;o<n;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var v7="3.4.2";function Qa(e,t){return new Promise(function(r){return setTimeout(r,e,t)})}function mX(e,t){t===void 0&&(t=1/0);var r=window.requestIdleCallback;return r?new Promise(function(o){return r.call(window,function(){return o()},{timeout:t})}):Qa(Math.min(e,t))}function xI(e){return!!e&&typeof e.then=="function"}function F7(e,t){try{var r=e();xI(r)?r.then(function(o){return t(!0,o)},function(o){return t(!1,o)}):t(!0,r)}catch(o){t(!1,o)}}function x7(e,t,r){return r===void 0&&(r=16),fo(this,void 0,void 0,function(){var o,n,s,l;return Zo(this,function(a){switch(a.label){case 0:o=Array(e.length),n=Date.now(),s=0,a.label=1;case 1:return s<e.length?(o[s]=t(e[s],s),l=Date.now(),l>=n+r?(n=l,[4,Qa(0)]):[3,3]):[3,4];case 2:a.sent(),a.label=3;case 3:return++s,[3,1];case 4:return[2,o]}})})}function Ja(e){e.then(void 0,function(){})}function Do(e,t){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535],t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535];var r=[0,0,0,0];return r[3]+=e[3]+t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]+t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]+t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]+t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]}function Zi(e,t){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535],t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535];var r=[0,0,0,0];return r[3]+=e[3]*t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]*t[3],r[1]+=r[2]>>>16,r[2]&=65535,r[2]+=e[3]*t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]*t[3],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[2]*t[2],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[3]*t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]}function Xs(e,t){return t%=64,t===32?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}function $r(e,t){return t%=64,t===0?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}function Pt(e,t){return[e[0]^t[0],e[1]^t[1]]}function K7(e){return e=Pt(e,[0,e[0]>>>1]),e=Zi(e,[4283543511,3981806797]),e=Pt(e,[0,e[0]>>>1]),e=Zi(e,[3301882366,444984403]),e=Pt(e,[0,e[0]>>>1]),e}function b7(e,t){e=e||"",t=t||0;var r=e.length%16,o=e.length-r,n=[0,t],s=[0,t],l=[0,0],a=[0,0],c=[2277735313,289559509],u=[1291169091,658871167],I;for(I=0;I<o;I=I+16)l=[e.charCodeAt(I+4)&255|(e.charCodeAt(I+5)&255)<<8|(e.charCodeAt(I+6)&255)<<16|(e.charCodeAt(I+7)&255)<<24,e.charCodeAt(I)&255|(e.charCodeAt(I+1)&255)<<8|(e.charCodeAt(I+2)&255)<<16|(e.charCodeAt(I+3)&255)<<24],a=[e.charCodeAt(I+12)&255|(e.charCodeAt(I+13)&255)<<8|(e.charCodeAt(I+14)&255)<<16|(e.charCodeAt(I+15)&255)<<24,e.charCodeAt(I+8)&255|(e.charCodeAt(I+9)&255)<<8|(e.charCodeAt(I+10)&255)<<16|(e.charCodeAt(I+11)&255)<<24],l=Zi(l,c),l=Xs(l,31),l=Zi(l,u),n=Pt(n,l),n=Xs(n,27),n=Do(n,s),n=Do(Zi(n,[0,5]),[0,1390208809]),a=Zi(a,u),a=Xs(a,33),a=Zi(a,c),s=Pt(s,a),s=Xs(s,31),s=Do(s,n),s=Do(Zi(s,[0,5]),[0,944331445]);switch(l=[0,0],a=[0,0],r){case 15:a=Pt(a,$r([0,e.charCodeAt(I+14)],48));case 14:a=Pt(a,$r([0,e.charCodeAt(I+13)],40));case 13:a=Pt(a,$r([0,e.charCodeAt(I+12)],32));case 12:a=Pt(a,$r([0,e.charCodeAt(I+11)],24));case 11:a=Pt(a,$r([0,e.charCodeAt(I+10)],16));case 10:a=Pt(a,$r([0,e.charCodeAt(I+9)],8));case 9:a=Pt(a,[0,e.charCodeAt(I+8)]),a=Zi(a,u),a=Xs(a,33),a=Zi(a,c),s=Pt(s,a);case 8:l=Pt(l,$r([0,e.charCodeAt(I+7)],56));case 7:l=Pt(l,$r([0,e.charCodeAt(I+6)],48));case 6:l=Pt(l,$r([0,e.charCodeAt(I+5)],40));case 5:l=Pt(l,$r([0,e.charCodeAt(I+4)],32));case 4:l=Pt(l,$r([0,e.charCodeAt(I+3)],24));case 3:l=Pt(l,$r([0,e.charCodeAt(I+2)],16));case 2:l=Pt(l,$r([0,e.charCodeAt(I+1)],8));case 1:l=Pt(l,[0,e.charCodeAt(I)]),l=Zi(l,c),l=Xs(l,31),l=Zi(l,u),n=Pt(n,l)}return n=Pt(n,[0,e.length]),s=Pt(s,[0,e.length]),n=Do(n,s),s=Do(s,n),n=K7(n),s=K7(s),n=Do(n,s),s=Do(s,n),("00000000"+(n[0]>>>0).toString(16)).slice(-8)+("00000000"+(n[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function EX(e){var t;return uR({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(`
|
|
505
|
+
`,x.getElementsByTagName("head")[0].appendChild(q)),x.body&&p(x.body,"react-draggable-transparent-selection")}function Z(x){window.requestAnimationFrame?window.requestAnimationFrame(()=>{g(x)}):g(x)}function g(x){if(x)try{if(x.body&&F(x.body,"react-draggable-transparent-selection"),x.selection)x.selection.empty();else{const q=(x.defaultView||window).getSelection();q&&q.type!=="Caret"&&q.removeAllRanges()}}catch{}}function p(x,q){x.classList?x.classList.add(q):x.className.match(new RegExp(`(?:^|\\s)${q}(?!\\S)`))||(x.className+=` ${q}`)}function F(x,q){x.classList?x.classList.remove(q):x.className=x.className.replace(new RegExp(`(?:^|\\s)${q}(?!\\S)`,"g"),"")}return er}var to={},z7;function C7(){if(z7)return to;z7=1,Object.defineProperty(to,"__esModule",{value:!0}),to.canDragX=n,to.canDragY=s,to.createCoreData=a,to.createDraggableData=c,to.getBoundPosition=r,to.getControlPosition=l,to.snapToGrid=o;var e=vI(),t=nR();function r(E,d,M){if(!E.props.bounds)return[d,M];let{bounds:V}=E.props;V=typeof V=="string"?V:u(V);const R=I(E);if(typeof V=="string"){const{ownerDocument:h}=R,z=h.defaultView;let f;if(V==="parent"?f=R.parentNode:f=R.getRootNode().querySelector(V),!(f instanceof z.HTMLElement))throw new Error('Bounds selector "'+V+'" could not find an element.');const Z=f,g=z.getComputedStyle(R),p=z.getComputedStyle(Z);V={left:-R.offsetLeft+(0,e.int)(p.paddingLeft)+(0,e.int)(g.marginLeft),top:-R.offsetTop+(0,e.int)(p.paddingTop)+(0,e.int)(g.marginTop),right:(0,t.innerWidth)(Z)-(0,t.outerWidth)(R)-R.offsetLeft+(0,e.int)(p.paddingRight)-(0,e.int)(g.marginRight),bottom:(0,t.innerHeight)(Z)-(0,t.outerHeight)(R)-R.offsetTop+(0,e.int)(p.paddingBottom)-(0,e.int)(g.marginBottom)}}return(0,e.isNum)(V.right)&&(d=Math.min(d,V.right)),(0,e.isNum)(V.bottom)&&(M=Math.min(M,V.bottom)),(0,e.isNum)(V.left)&&(d=Math.max(d,V.left)),(0,e.isNum)(V.top)&&(M=Math.max(M,V.top)),[d,M]}function o(E,d,M){const V=Math.round(d/E[0])*E[0],R=Math.round(M/E[1])*E[1];return[V,R]}function n(E){return E.props.axis==="both"||E.props.axis==="x"}function s(E){return E.props.axis==="both"||E.props.axis==="y"}function l(E,d,M){const V=typeof d=="number"?(0,t.getTouch)(E,d):null;if(typeof d=="number"&&!V)return null;const R=I(M),h=M.props.offsetParent||R.offsetParent||R.ownerDocument.body;return(0,t.offsetXYFromParent)(V||E,h,M.props.scale)}function a(E,d,M){const V=!(0,e.isNum)(E.lastX),R=I(E);return V?{node:R,deltaX:0,deltaY:0,lastX:d,lastY:M,x:d,y:M}:{node:R,deltaX:d-E.lastX,deltaY:M-E.lastY,lastX:E.lastX,lastY:E.lastY,x:d,y:M}}function c(E,d){const M=E.props.scale;return{node:d.node,x:E.state.x+d.deltaX/M,y:E.state.y+d.deltaY/M,deltaX:d.deltaX/M,deltaY:d.deltaY/M,lastX:E.state.x,lastY:E.state.y}}function u(E){return{left:E.left,top:E.top,right:E.right,bottom:E.bottom}}function I(E){const d=E.findDOMNode();if(!d)throw new Error("<DraggableCore>: Unmounted during event!");return d}return to}var Ua={},FI={},f7;function Z7(){if(f7)return FI;f7=1,Object.defineProperty(FI,"__esModule",{value:!0}),FI.default=e;function e(){}return FI}var p7;function BL(){if(p7)return Ua;p7=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.default=void 0;var e=c(xe),t=a(tm()),r=a(tn),o=nR(),n=C7(),s=vI(),l=a(Z7());function a(R){return R&&R.__esModule?R:{default:R}}function c(R,h){if(typeof WeakMap=="function")var z=new WeakMap,f=new WeakMap;return(c=function(Z,g){if(!g&&Z&&Z.__esModule)return Z;var p,F,x={__proto__:null,default:Z};if(Z===null||typeof Z!="object"&&typeof Z!="function")return x;if(p=g?f:z){if(p.has(Z))return p.get(Z);p.set(Z,x)}for(const q in Z)q!=="default"&&{}.hasOwnProperty.call(Z,q)&&((F=(p=Object.defineProperty)&&Object.getOwnPropertyDescriptor(Z,q))&&(F.get||F.set)?p(x,q,F):x[q]=Z[q]);return x})(R,h)}function u(R,h,z){return(h=I(h))in R?Object.defineProperty(R,h,{value:z,enumerable:!0,configurable:!0,writable:!0}):R[h]=z,R}function I(R){var h=E(R,"string");return typeof h=="symbol"?h:h+""}function E(R,h){if(typeof R!="object"||!R)return R;var z=R[Symbol.toPrimitive];if(z!==void 0){var f=z.call(R,h);if(typeof f!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(R)}const d={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let M=d.mouse,V=class extends e.Component{constructor(){super(...arguments),u(this,"dragging",!1),u(this,"lastX",NaN),u(this,"lastY",NaN),u(this,"touchIdentifier",null),u(this,"mounted",!1),u(this,"handleDragStart",h=>{if(this.props.onMouseDown(h),!this.props.allowAnyClick&&typeof h.button=="number"&&h.button!==0)return!1;const z=this.findDOMNode();if(!z||!z.ownerDocument||!z.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:f}=z;if(this.props.disabled||!(h.target instanceof f.defaultView.Node)||this.props.handle&&!(0,o.matchesSelectorAndParentsTo)(h.target,this.props.handle,z)||this.props.cancel&&(0,o.matchesSelectorAndParentsTo)(h.target,this.props.cancel,z))return;h.type==="touchstart"&&!this.props.allowMobileScroll&&h.preventDefault();const Z=(0,o.getTouchIdentifier)(h);this.touchIdentifier=Z;const g=(0,n.getControlPosition)(h,Z,this);if(g==null)return;const{x:p,y:F}=g,x=(0,n.createCoreData)(this,p,F);(0,l.default)("DraggableCore: handleDragStart: %j",x),(0,l.default)("calling",this.props.onStart),!(this.props.onStart(h,x)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,o.addUserSelectStyles)(f),this.dragging=!0,this.lastX=p,this.lastY=F,(0,o.addEvent)(f,M.move,this.handleDrag),(0,o.addEvent)(f,M.stop,this.handleDragStop))}),u(this,"handleDrag",h=>{const z=(0,n.getControlPosition)(h,this.touchIdentifier,this);if(z==null)return;let{x:f,y:Z}=z;if(Array.isArray(this.props.grid)){let F=f-this.lastX,x=Z-this.lastY;if([F,x]=(0,n.snapToGrid)(this.props.grid,F,x),!F&&!x)return;f=this.lastX+F,Z=this.lastY+x}const g=(0,n.createCoreData)(this,f,Z);if((0,l.default)("DraggableCore: handleDrag: %j",g),this.props.onDrag(h,g)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const x=document.createEvent("MouseEvents");x.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(x)}return}this.lastX=f,this.lastY=Z}),u(this,"handleDragStop",h=>{if(!this.dragging)return;const z=(0,n.getControlPosition)(h,this.touchIdentifier,this);if(z==null)return;let{x:f,y:Z}=z;if(Array.isArray(this.props.grid)){let x=f-this.lastX||0,q=Z-this.lastY||0;[x,q]=(0,n.snapToGrid)(this.props.grid,x,q),f=this.lastX+x,Z=this.lastY+q}const g=(0,n.createCoreData)(this,f,Z);if(this.props.onStop(h,g)===!1||this.mounted===!1)return!1;const F=this.findDOMNode();F&&this.props.enableUserSelectHack&&(0,o.scheduleRemoveUserSelectStyles)(F.ownerDocument),(0,l.default)("DraggableCore: handleDragStop: %j",g),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,F&&((0,l.default)("DraggableCore: Removing handlers"),(0,o.removeEvent)(F.ownerDocument,M.move,this.handleDrag),(0,o.removeEvent)(F.ownerDocument,M.stop,this.handleDragStop))}),u(this,"onMouseDown",h=>(M=d.mouse,this.handleDragStart(h))),u(this,"onMouseUp",h=>(M=d.mouse,this.handleDragStop(h))),u(this,"onTouchStart",h=>(M=d.touch,this.handleDragStart(h))),u(this,"onTouchEnd",h=>(M=d.touch,this.handleDragStop(h)))}componentDidMount(){this.mounted=!0;const h=this.findDOMNode();h&&(0,o.addEvent)(h,d.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const h=this.findDOMNode();if(h){const{ownerDocument:z}=h;(0,o.removeEvent)(z,d.mouse.move,this.handleDrag),(0,o.removeEvent)(z,d.touch.move,this.handleDrag),(0,o.removeEvent)(z,d.mouse.stop,this.handleDragStop),(0,o.removeEvent)(z,d.touch.stop,this.handleDragStop),(0,o.removeEvent)(h,d.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,o.scheduleRemoveUserSelectStyles)(z)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return Ua.default=V,u(V,"displayName","DraggableCore"),u(V,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(R,h){if(R[h]&&R[h].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),u(V,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Ua}var q7;function LL(){return q7||(q7=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),e.default=void 0;var t=E(xe),r=I(tm()),o=I(tn),n=OL(),s=nR(),l=C7(),a=vI(),c=I(BL()),u=I(Z7());function I(z){return z&&z.__esModule?z:{default:z}}function E(z,f){if(typeof WeakMap=="function")var Z=new WeakMap,g=new WeakMap;return(E=function(p,F){if(!F&&p&&p.__esModule)return p;var x,q,v={__proto__:null,default:p};if(p===null||typeof p!="object"&&typeof p!="function")return v;if(x=F?g:Z){if(x.has(p))return x.get(p);x.set(p,v)}for(const S in p)S!=="default"&&{}.hasOwnProperty.call(p,S)&&((q=(x=Object.defineProperty)&&Object.getOwnPropertyDescriptor(p,S))&&(q.get||q.set)?x(v,S,q):v[S]=p[S]);return v})(z,f)}function d(){return d=Object.assign?Object.assign.bind():function(z){for(var f=1;f<arguments.length;f++){var Z=arguments[f];for(var g in Z)({}).hasOwnProperty.call(Z,g)&&(z[g]=Z[g])}return z},d.apply(null,arguments)}function M(z,f,Z){return(f=V(f))in z?Object.defineProperty(z,f,{value:Z,enumerable:!0,configurable:!0,writable:!0}):z[f]=Z,z}function V(z){var f=R(z,"string");return typeof f=="symbol"?f:f+""}function R(z,f){if(typeof z!="object"||!z)return z;var Z=z[Symbol.toPrimitive];if(Z!==void 0){var g=Z.call(z,f);if(typeof g!="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(z)}class h extends t.Component{static getDerivedStateFromProps(f,Z){let{position:g}=f,{prevPropsPosition:p}=Z;return g&&(!p||g.x!==p.x||g.y!==p.y)?((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:g,prevPropsPosition:p}),{x:g.x,y:g.y,prevPropsPosition:{...g}}):null}constructor(f){super(f),M(this,"onDragStart",(Z,g)=>{if((0,u.default)("Draggable: onDragStart: %j",g),this.props.onStart(Z,(0,l.createDraggableData)(this,g))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),M(this,"onDrag",(Z,g)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",g);const p=(0,l.createDraggableData)(this,g),F={x:p.x,y:p.y,slackX:0,slackY:0};if(this.props.bounds){const{x:q,y:v}=F;F.x+=this.state.slackX,F.y+=this.state.slackY;const[S,b]=(0,l.getBoundPosition)(this,F.x,F.y);F.x=S,F.y=b,F.slackX=this.state.slackX+(q-F.x),F.slackY=this.state.slackY+(v-F.y),p.x=F.x,p.y=F.y,p.deltaX=F.x-this.state.x,p.deltaY=F.y-this.state.y}if(this.props.onDrag(Z,p)===!1)return!1;this.setState(F)}),M(this,"onDragStop",(Z,g)=>{if(!this.state.dragging||this.props.onStop(Z,(0,l.createDraggableData)(this,g))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",g);const F={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:q,y:v}=this.props.position;F.x=q,F.y=v}this.setState(F)}),this.state={dragging:!1,dragged:!1,x:f.position?f.position.x:f.defaultPosition.x,y:f.position?f.position.y:f.defaultPosition.y,prevPropsPosition:{...f.position},slackX:0,slackY:0,isElementSVG:!1},f.position&&!(f.onDrag||f.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??o.default.findDOMNode(this)}render(){const{axis:f,bounds:Z,children:g,defaultPosition:p,defaultClassName:F,defaultClassNameDragging:x,defaultClassNameDragged:q,position:v,positionOffset:S,scale:b,...A}=this.props;let j={},k=null;const Y=!!!v||this.state.dragging,Q=v||p,P={x:(0,l.canDragX)(this)&&Y?this.state.x:Q.x,y:(0,l.canDragY)(this)&&Y?this.state.y:Q.y};this.state.isElementSVG?k=(0,s.createSVGTransform)(P,S):j=(0,s.createCSSTransform)(P,S);const J=(0,n.clsx)(g.props.className||"",F,{[x]:this.state.dragging,[q]:this.state.dragged});return t.createElement(c.default,d({},A,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(g),{className:J,style:{...g.props.style,...j},transform:k}))}}e.default=h,M(h,"displayName","Draggable"),M(h,"propTypes",{...c.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),M(h,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(oR)),oR}var A7;function XL(){if(A7)return ja.exports;A7=1;const{default:e,DraggableCore:t}=LL();return ja.exports=e,ja.exports.default=e,ja.exports.DraggableCore=t,ja.exports}var NL=XL();const DL=qo(NL),$L=yt(C.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),_L=e=>{const t=tL(e);return t7({manager:t,props:e})},eX=["slots","slotProps"],sR=m.forwardRef(function(t,r){const o=oo({props:t,name:"MuiDateTimeField"}),{slots:n,slotProps:s}=o,l=Ie(o,eX),a=PA({slotProps:s,ref:r,externalForwardedProps:l}),c=_L(a);return C.jsx(JA,{slots:n,slotProps:s,fieldResponse:c,defaultOpenPickerIcon:p6})});process.env.NODE_ENV!=="production"&&(sR.displayName="DateTimeField"),process.env.NODE_ENV!=="production"&&(sR.propTypes={ampm:i.bool,autoFocus:i.bool,className:i.string,clearable:i.bool,clearButtonPosition:i.oneOf(["end","start"]),color:i.oneOf(["error","info","primary","secondary","success","warning"]),component:i.elementType,defaultValue:i.object,disabled:i.bool,disableFuture:i.bool,disableIgnoringDatePartForTimeValidation:i.bool,disablePast:i.bool,enableAccessibleFieldDOMStructure:i.bool,focused:i.bool,format:i.string,formatDensity:i.oneOf(["dense","spacious"]),FormHelperTextProps:i.object,fullWidth:i.bool,helperText:i.node,hiddenLabel:i.bool,id:i.string,InputLabelProps:i.object,inputProps:i.object,InputProps:i.object,inputRef:_t,label:i.node,margin:i.oneOf(["dense","none","normal"]),maxDate:i.object,maxDateTime:i.object,maxTime:i.object,minDate:i.object,minDateTime:i.object,minTime:i.object,minutesStep:i.number,name:i.string,onBlur:i.func,onChange:i.func,onClear:i.func,onError:i.func,onFocus:i.func,onSelectedSectionsChange:i.func,openPickerButtonPosition:i.oneOf(["end","start"]),readOnly:i.bool,referenceDate:i.object,required:i.bool,selectedSections:i.oneOfType([i.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),i.number]),shouldDisableDate:i.func,shouldDisableMonth:i.func,shouldDisableTime:i.func,shouldDisableYear:i.func,shouldRespectLeadingZeros:i.bool,size:i.oneOf(["medium","small"]),slotProps:i.object,slots:i.object,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),timezone:i.string,unstableFieldRef:i.oneOfType([i.func,i.object]),value:i.object,variant:i.oneOf(["filled","outlined","standard"])});const tX=yt(C.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),rX=({label:e,value:t,setValue:r,disabled:o,fullWidth:n,white:s})=>C.jsx(C.Fragment,{children:C.jsx(nI,{dateAdapter:E7,children:C.jsx(sR,{label:e,value:t,onChange:l=>{r(l)},InputProps:{sx:{borderRadius:"16px",color:s?"black !important":"white !important"}},size:"small",color:"gr-yellow",slotProps:{textField:{InputLabelProps:{sx:{color:s?"black !important":"white !important"}}}},focused:!0,format:"YYYY-MM-DD",disabled:o,fullWidth:n,endAdornment:C.jsx(Lc,{position:"end",sx:{color:s?"black":"white"},children:C.jsx(tX,{sx:{height:"18px",mt:"-4px"}})})})})}),iX=e=>{const t=xe.useRef(null);return C.jsx(C.Fragment,{children:C.jsx(DL,{nodeRef:t,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',children:C.jsx(lo,{...e,ref:t,sx:{bgcolor:"white",color:r=>r.palette.background.paper,padding:"20px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"50px",borderRadius:"20px"}})})})},oX=({title:e,alert:t,action:r,fields:o,open:n,setOpen:s,onClickSave:l})=>{const[a,c]=xe.useState(!1),u=(d,M)=>{switch(d.element){case"TextField":return C.jsx(kt,{size:d.ncolumn,sx:{mb:"20px"},children:C.jsx(Cn,{fullWidth:!0,variant:"outlined",label:d.label,type:d.type,placeholder:d.placeholder,focused:!0,value:d.value,onChange:V=>{d.setValue(V.target.value)},disabled:d.disable||r.actionButton.loading})},M);case"SelectField":return C.jsx(kt,{size:d.ncolumn,sx:{mb:"20px"},children:C.jsx(PM,{label:d.label,placeholder:d.placeholder,value:d.value,setValue:d.setValue,values:d.values,disabled:d.disable||r.actionButton.loading,fullWidth:!0,white:!0})},M);case"DateField":return C.jsx(kt,{size:d.ncolumn,sx:{mb:"20px"},children:C.jsx(rX,{label:d.label,value:d.value,setValue:d.setValue,disabled:d.disable||r.actionButton.loading,fullWidth:!0,white:!0})},M);default:return C.jsx(C.Fragment,{})}},I=()=>{o.forEach(d=>{switch(d.element){case"TextField":d.setValue(d.initialValue);break;case"SelectField":d.setValue(d.initialValue);break;case"DateField":d.setValue(d.initialValue);break}}),c(!1)},E=d=>{d.some(V=>V.value!==V.initialValue)?c(!0):s(!1)};return C.jsx(C.Fragment,{children:C.jsxs(Sz,{open:n,onClose:()=>E(o),PaperComponent:iX,"aria-labelledby":"draggable-dialog-title",children:[C.jsx(kz,{style:{cursor:"move",textAlign:"center",margin:0,padding:0},id:"draggable-dialog-title",children:e}),a&&C.jsx(rE,{sx:{padding:0,margin:0,width:"100%"},children:C.jsxs(jV,{icon:C.jsx($L,{}),sx:{borderRadius:"24px",bgcolor:"#FFEFE5",border:d=>`1px solid ${d.palette["gr-orange"].main}`,"& .MuiAlert-icon":{color:d=>d.palette["gr-orange"].main}},action:C.jsxs(sr,{sx:{mt:3.75},children:[C.jsx(mi,{color:"gr-grey",size:"small",onClick:()=>c(!1),children:C.jsx("b",{children:t.actionButton.buttonText})}),C.jsx(mi,{color:"gr-grey",size:"small",onClick:()=>{I(),s(!1)},children:C.jsx("b",{children:t.cancelButton.buttonText})})]}),children:[C.jsx(JV,{children:t.title}),C.jsx(pr,{variant:"body2",children:t.message})]})}),C.jsx(rE,{sx:{padding:0,margin:0},children:C.jsx(kt,{container:!0,spacing:2,sx:{mt:1},children:o.map((d,M)=>u(d,M))})}),C.jsxs(Wz,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",width:"100%"},children:[C.jsx(mi,{variant:"outlined",autoFocus:!0,onClick:()=>E(o),sx:{minWidth:"130px",borderRadius:"44px",fontWeight:"500"},color:"gr-base-dark",children:r.cancelButton.buttonText}),C.jsx(mi,{variant:"contained",onClick:()=>{console.log("data",o.map(d=>({label:d.label,value:d.value}))),l()},sx:{minWidth:"130px",borderRadius:"44px",color:"white",fontWeight:"500"},color:"gr-base-dark",disableElevation:!0,disabled:r.actionButton.disabled,loading:r.actionButton.loading,children:r.actionButton.buttonText})]})]})})},Qn={config:{isInitialized:!1},traits:{}},nX="__mui_x_telemetry_";function g7(e){return nX+btoa(e)}function lR(e,t,r){try{if(typeof window<"u"&&window[e])return window[e].setItem(g7(t),r),!0}catch{}return!1}function aR(e,t){try{if(typeof window<"u"&&window[e])return window[e].getItem(g7(t))}catch{}return null}function cR(e){let t="";const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=r.length;let n=0;for(;n<e;)t+=r.charAt(Math.floor(Math.random()*o)),n+=1;return t}function sX(e,t){return t.reduce((r,o)=>(r[o]=e[o],r),{})}const lX=typeof window>"u"||process.env.NODE_ENV==="test"?()=>{}:async()=>{const e="fingerprint";try{const t=aR("localStorage",e);if(t)return JSON.parse(t);const r=await Promise.resolve().then(()=>U8),n=await(await r.load({monitoring:!1})).get(),s=y({},n.components);delete s.cookiesEnabled;const l=r.hashComponents(s),a=r.hashComponents(y({},sX(s,["fonts","audio","languages","deviceMemory","timezone","sessionStorage","localStorage","indexedDB","openDatabase","platform","canvas","vendor","vendorFlavors","colorGamut","forcedColors","monochrome","contrast","reducedMotion","math","videoCard","architecture"]))),c={fullHash:l,coreHash:a};return lR("localStorage",e,JSON.stringify(c)),c}catch{return null}};function aX(){const e="anonymous_id",t=aR("localStorage",e);if(t)return t;const r=`anid_${cR(32)}`;return lR("localStorage",e,r)?r:""}function cX(){const e="session_id",t=aR("sessionStorage",e);if(t)return t;const r=`sesid_${cR(32)}`;return lR("sessionStorage",e,r)?r:`sestp_${cR(32)}`}async function uX(){return Qn.traits.sessionId=cX(),Qn.config.isInitialized||(Qn.traits.anonymousId=aX(),Qn.config.isInitialized=!0),Qn.traits.fingerprint||(Qn.traits.fingerprint=await lX()),Qn}const IX=Object.freeze(Object.defineProperty({__proto__:null,default:uX},Symbol.toStringTag,{value:"Module"}));var uR=function(){return uR=Object.assign||function(t){for(var r,o=1,n=arguments.length;o<n;o++){r=arguments[o];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},uR.apply(this,arguments)};function fo(e,t,r,o){function n(s){return s instanceof r?s:new r(function(l){l(s)})}return new(r||(r=Promise))(function(s,l){function a(I){try{u(o.next(I))}catch(E){l(E)}}function c(I){try{u(o.throw(I))}catch(E){l(E)}}function u(I){I.done?s(I.value):n(I.value).then(a,c)}u((o=o.apply(e,t||[])).next())})}function Zo(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,n,s,l=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return l.next=a(0),l.throw=a(1),l.return=a(2),typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function a(u){return function(I){return c([u,I])}}function c(u){if(o)throw new TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(r=0)),r;)try{if(o=1,n&&(s=u[0]&2?n.return:u[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,u[1])).done)return s;switch(n=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,n=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){r.label=u[1];break}if(u[0]===6&&r.label<s[1]){r.label=s[1],s=u;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(u);break}s[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(I){u=[6,I],n=0}finally{o=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function y7(e,t,r){if(r||arguments.length===2)for(var o=0,n=t.length,s;o<n;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var v7="3.4.2";function Qa(e,t){return new Promise(function(r){return setTimeout(r,e,t)})}function mX(e,t){t===void 0&&(t=1/0);var r=window.requestIdleCallback;return r?new Promise(function(o){return r.call(window,function(){return o()},{timeout:t})}):Qa(Math.min(e,t))}function xI(e){return!!e&&typeof e.then=="function"}function F7(e,t){try{var r=e();xI(r)?r.then(function(o){return t(!0,o)},function(o){return t(!1,o)}):t(!0,r)}catch(o){t(!1,o)}}function x7(e,t,r){return r===void 0&&(r=16),fo(this,void 0,void 0,function(){var o,n,s,l;return Zo(this,function(a){switch(a.label){case 0:o=Array(e.length),n=Date.now(),s=0,a.label=1;case 1:return s<e.length?(o[s]=t(e[s],s),l=Date.now(),l>=n+r?(n=l,[4,Qa(0)]):[3,3]):[3,4];case 2:a.sent(),a.label=3;case 3:return++s,[3,1];case 4:return[2,o]}})})}function Ja(e){e.then(void 0,function(){})}function Do(e,t){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535],t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535];var r=[0,0,0,0];return r[3]+=e[3]+t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]+t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]+t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]+t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]}function Zi(e,t){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535],t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535];var r=[0,0,0,0];return r[3]+=e[3]*t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]*t[3],r[1]+=r[2]>>>16,r[2]&=65535,r[2]+=e[3]*t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]*t[3],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[2]*t[2],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[3]*t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]}function Xs(e,t){return t%=64,t===32?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}function $r(e,t){return t%=64,t===0?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}function Pt(e,t){return[e[0]^t[0],e[1]^t[1]]}function K7(e){return e=Pt(e,[0,e[0]>>>1]),e=Zi(e,[4283543511,3981806797]),e=Pt(e,[0,e[0]>>>1]),e=Zi(e,[3301882366,444984403]),e=Pt(e,[0,e[0]>>>1]),e}function b7(e,t){e=e||"",t=t||0;var r=e.length%16,o=e.length-r,n=[0,t],s=[0,t],l=[0,0],a=[0,0],c=[2277735313,289559509],u=[1291169091,658871167],I;for(I=0;I<o;I=I+16)l=[e.charCodeAt(I+4)&255|(e.charCodeAt(I+5)&255)<<8|(e.charCodeAt(I+6)&255)<<16|(e.charCodeAt(I+7)&255)<<24,e.charCodeAt(I)&255|(e.charCodeAt(I+1)&255)<<8|(e.charCodeAt(I+2)&255)<<16|(e.charCodeAt(I+3)&255)<<24],a=[e.charCodeAt(I+12)&255|(e.charCodeAt(I+13)&255)<<8|(e.charCodeAt(I+14)&255)<<16|(e.charCodeAt(I+15)&255)<<24,e.charCodeAt(I+8)&255|(e.charCodeAt(I+9)&255)<<8|(e.charCodeAt(I+10)&255)<<16|(e.charCodeAt(I+11)&255)<<24],l=Zi(l,c),l=Xs(l,31),l=Zi(l,u),n=Pt(n,l),n=Xs(n,27),n=Do(n,s),n=Do(Zi(n,[0,5]),[0,1390208809]),a=Zi(a,u),a=Xs(a,33),a=Zi(a,c),s=Pt(s,a),s=Xs(s,31),s=Do(s,n),s=Do(Zi(s,[0,5]),[0,944331445]);switch(l=[0,0],a=[0,0],r){case 15:a=Pt(a,$r([0,e.charCodeAt(I+14)],48));case 14:a=Pt(a,$r([0,e.charCodeAt(I+13)],40));case 13:a=Pt(a,$r([0,e.charCodeAt(I+12)],32));case 12:a=Pt(a,$r([0,e.charCodeAt(I+11)],24));case 11:a=Pt(a,$r([0,e.charCodeAt(I+10)],16));case 10:a=Pt(a,$r([0,e.charCodeAt(I+9)],8));case 9:a=Pt(a,[0,e.charCodeAt(I+8)]),a=Zi(a,u),a=Xs(a,33),a=Zi(a,c),s=Pt(s,a);case 8:l=Pt(l,$r([0,e.charCodeAt(I+7)],56));case 7:l=Pt(l,$r([0,e.charCodeAt(I+6)],48));case 6:l=Pt(l,$r([0,e.charCodeAt(I+5)],40));case 5:l=Pt(l,$r([0,e.charCodeAt(I+4)],32));case 4:l=Pt(l,$r([0,e.charCodeAt(I+3)],24));case 3:l=Pt(l,$r([0,e.charCodeAt(I+2)],16));case 2:l=Pt(l,$r([0,e.charCodeAt(I+1)],8));case 1:l=Pt(l,[0,e.charCodeAt(I)]),l=Zi(l,c),l=Xs(l,31),l=Zi(l,u),n=Pt(n,l)}return n=Pt(n,[0,e.length]),s=Pt(s,[0,e.length]),n=Do(n,s),s=Do(s,n),n=K7(n),s=K7(s),n=Do(n,s),s=Do(s,n),("00000000"+(n[0]>>>0).toString(16)).slice(-8)+("00000000"+(n[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function EX(e){var t;return uR({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(`
|
|
506
506
|
`)},e)}function dX(e,t){for(var r=0,o=e.length;r<o;++r)if(e[r]===t)return!0;return!1}function MX(e,t){return!dX(e,t)}function IR(e){return parseInt(e)}function Ui(e){return parseFloat(e)}function po(e,t){return typeof e=="number"&&isNaN(e)?t:e}function Qi(e){return e.reduce(function(t,r){return t+(r?1:0)},0)}function Y7(e,t){if(t===void 0&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var r=1/t;return Math.round(e*r)/r}function RX(e){for(var t,r,o="Unexpected syntax '".concat(e,"'"),n=/^\s*([a-z-]*)(.*)$/i.exec(e),s=n[1]||void 0,l={},a=/([.:#][\w-]+|\[.+?\])/gi,c=function(d,M){l[d]=l[d]||[],l[d].push(M)};;){var u=a.exec(n[2]);if(!u)break;var I=u[0];switch(I[0]){case".":c("class",I.slice(1));break;case"#":c("id",I.slice(1));break;case"[":{var E=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(I);if(E)c(E[1],(r=(t=E[4])!==null&&t!==void 0?t:E[5])!==null&&r!==void 0?r:"");else throw new Error(o);break}default:throw new Error(o)}}return[s,l]}function S7(e){return e&&typeof e=="object"&&"message"in e?e:{message:e}}function W7(e){return typeof e!="function"}function hX(e,t){var r=new Promise(function(o){var n=Date.now();F7(e.bind(null,t),function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];var a=Date.now()-n;if(!s[0])return o(function(){return{error:S7(s[1]),duration:a}});var c=s[1];if(W7(c))return o(function(){return{value:c,duration:a}});o(function(){return new Promise(function(u){var I=Date.now();F7(c,function(){for(var E=[],d=0;d<arguments.length;d++)E[d]=arguments[d];var M=a+Date.now()-I;if(!E[0])return u({error:S7(E[1]),duration:M});u({value:E[1],duration:M})})})})})});return Ja(r),function(){return r.then(function(n){return n()})}}function k7(e,t,r){var o=Object.keys(e).filter(function(s){return MX(r,s)}),n=x7(o,function(s){return hX(e[s],t)});return Ja(n),function(){return fo(this,void 0,void 0,function(){var l,a,c,u,I;return Zo(this,function(E){switch(E.label){case 0:return[4,n];case 1:return l=E.sent(),[4,x7(l,function(d){var M=d();return Ja(M),M})];case 2:return a=E.sent(),[4,Promise.all(a)];case 3:for(c=E.sent(),u={},I=0;I<o.length;++I)u[o[I]]=c[I];return[2,u]}})})}}function VX(e,t){var r=function(o){return W7(o)?t(o):function(){var n=o();return xI(n)?n.then(t):t(n)}};return function(o){var n=e(o);return xI(n)?n.then(r):r(n)}}function mR(){var e=window,t=navigator;return Qi(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function j7(){var e=window,t=navigator;return Qi(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!mR()}function KI(){var e=window,t=navigator;return Qi(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Ns(){var e=window,t=navigator;return Qi(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"getStorageUpdates"in t,"WebKitMediaKeys"in e])>=4}function bI(){var e=window;return Qi(["safari"in e,!("DeviceMotionEvent"in e),!("ongestureend"in e),!("standalone"in navigator)])>=3}function U7(){var e,t,r=window;return Qi(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in r,"mozInnerScreenX"in r,"CSSMozDocumentRule"in r,"CanvasCaptureMediaStream"in r])>=4}function zX(){var e=window;return Qi([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function CX(){var e=window;return Qi(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function fX(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return Qi(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function Q7(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function ZX(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function ER(){var e=KI(),t=U7();if(!e&&!t)return!1;var r=window;return Qi(["onorientationchange"in r,"orientation"in r,e&&!("SharedWorker"in r),t&&/android/i.test(navigator.appVersion)])>=2}function pX(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(qX())return-1;var r=4500,o=5e3,n=new t(1,o,44100),s=n.createOscillator();s.type="triangle",s.frequency.value=1e4;var l=n.createDynamicsCompressor();l.threshold.value=-50,l.knee.value=40,l.ratio.value=12,l.attack.value=0,l.release.value=.25,s.connect(l),l.connect(n.destination),s.start(0);var a=AX(n),c=a[0],u=a[1],I=c.then(function(E){return gX(E.getChannelData(0).subarray(r))},function(E){if(E.name==="timeout"||E.name==="suspended")return-3;throw E});return Ja(I),function(){return u(),I}}function qX(){return Ns()&&!bI()&&!CX()}function AX(e){var t=3,r=500,o=500,n=5e3,s=function(){},l=new Promise(function(a,c){var u=!1,I=0,E=0;e.oncomplete=function(V){return a(V.renderedBuffer)};var d=function(){setTimeout(function(){return c(J7("timeout"))},Math.min(o,E+n-Date.now()))},M=function(){try{var V=e.startRendering();switch(xI(V)&&Ja(V),e.state){case"running":E=Date.now(),u&&d();break;case"suspended":document.hidden||I++,u&&I>=t?c(J7("suspended")):setTimeout(M,r);break}}catch(R){c(R)}};M(),s=function(){u||(u=!0,E>0&&d())}});return[l,s]}function gX(e){for(var t=0,r=0;r<e.length;++r)t+=Math.abs(e[r]);return t}function J7(e){var t=new Error(e);return t.name=e,t}function dR(e,t,r){var o,n,s;return r===void 0&&(r=50),fo(this,void 0,void 0,function(){var l,a;return Zo(this,function(c){switch(c.label){case 0:l=document,c.label=1;case 1:return l.body?[3,3]:[4,Qa(r)];case 2:return c.sent(),[3,1];case 3:a=l.createElement("iframe"),c.label=4;case 4:return c.trys.push([4,,10,11]),[4,new Promise(function(u,I){var E=!1,d=function(){E=!0,u()},M=function(h){E=!0,I(h)};a.onload=d,a.onerror=M;var V=a.style;V.setProperty("display","block","important"),V.position="absolute",V.top="0",V.left="0",V.visibility="hidden",t&&"srcdoc"in a?a.srcdoc=t:a.src="about:blank",l.body.appendChild(a);var R=function(){var h,z;E||(((z=(h=a.contentWindow)===null||h===void 0?void 0:h.document)===null||z===void 0?void 0:z.readyState)==="complete"?d():setTimeout(R,10))};R()})];case 5:c.sent(),c.label=6;case 6:return!((n=(o=a.contentWindow)===null||o===void 0?void 0:o.document)===null||n===void 0)&&n.body?[3,8]:[4,Qa(r)];case 7:return c.sent(),[3,6];case 8:return[4,e(a,a.contentWindow)];case 9:return[2,c.sent()];case 10:return(s=a.parentNode)===null||s===void 0||s.removeChild(a),[7];case 11:return[2]}})})}function yX(e){for(var t=RX(e),r=t[0],o=t[1],n=document.createElement(r??"div"),s=0,l=Object.keys(o);s<l.length;s++){var a=l[s],c=o[a].join(" ");a==="style"?vX(n.style,c):n.setAttribute(a,c)}return n}function vX(e,t){for(var r=0,o=t.split(";");r<o.length;r++){var n=o[r],s=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(n);if(s){var l=s[1],a=s[2],c=s[4];e.setProperty(l,a,c||"")}}}var FX="mmMwWLliI0O&1",xX="48px",Ds=["monospace","sans-serif","serif"],P7=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function KX(){return dR(function(e,t){var r=t.document,o=r.body;o.style.fontSize=xX;var n=r.createElement("div"),s={},l={},a=function(R){var h=r.createElement("span"),z=h.style;return z.position="absolute",z.top="0",z.left="0",z.fontFamily=R,h.textContent=FX,n.appendChild(h),h},c=function(R,h){return a("'".concat(R,"',").concat(h))},u=function(){return Ds.map(a)},I=function(){for(var R={},h=function(g){R[g]=Ds.map(function(p){return c(g,p)})},z=0,f=P7;z<f.length;z++){var Z=f[z];h(Z)}return R},E=function(R){return Ds.some(function(h,z){return R[z].offsetWidth!==s[h]||R[z].offsetHeight!==l[h]})},d=u(),M=I();o.appendChild(n);for(var V=0;V<Ds.length;V++)s[Ds[V]]=d[V].offsetWidth,l[Ds[V]]=d[V].offsetHeight;return P7.filter(function(R){return E(M[R])})})}function bX(){var e=navigator.plugins;if(e){for(var t=[],r=0;r<e.length;++r){var o=e[r];if(o){for(var n=[],s=0;s<o.length;++s){var l=o[s];n.push({type:l.type,suffixes:l.suffixes})}t.push({name:o.name,description:o.description,mimeTypes:n})}}return t}}function YX(){var e=!1,t,r,o=SX(),n=o[0],s=o[1];if(!WX(n,s))t=r="";else{e=kX(s),jX(n,s);var l=MR(n),a=MR(n);l!==a?t=r="unstable":(r=l,UX(n,s),t=MR(n))}return{winding:e,geometry:t,text:r}}function SX(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}function WX(e,t){return!!(t&&e.toDataURL)}function kX(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}function jX(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';var r="Cwm fjordbank gly ".concat("😃");t.fillText(r,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(r,4,45)}function UX(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(var r=0,o=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];r<o.length;r++){var n=o[r],s=n[0],l=n[1],a=n[2];t.fillStyle=s,t.beginPath(),t.arc(l,a,40,0,Math.PI*2,!0),t.closePath(),t.fill()}t.fillStyle="#f9c",t.arc(60,60,60,0,Math.PI*2,!0),t.arc(60,60,20,0,Math.PI*2,!0),t.fill("evenodd")}function MR(e){return e.toDataURL()}function QX(){var e=navigator,t=0,r;e.maxTouchPoints!==void 0?t=IR(e.maxTouchPoints):e.msMaxTouchPoints!==void 0&&(t=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),r=!0}catch{r=!1}var o="ontouchstart"in window;return{maxTouchPoints:t,touchEvent:r,touchStart:o}}function JX(){return navigator.oscpu}function PX(){var e=navigator,t=[],r=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(r!==void 0&&t.push([r]),Array.isArray(e.languages))KI()&&zX()||t.push(e.languages);else if(typeof e.languages=="string"){var o=e.languages;o&&t.push(o.split(","))}return t}function wX(){return window.screen.colorDepth}function TX(){return po(Ui(navigator.deviceMemory),void 0)}function GX(){var e=screen,t=function(o){return po(IR(o),null)},r=[t(e.width),t(e.height)];return r.sort().reverse(),r}var OX=2500,HX=10,YI,RR;function BX(){if(RR===void 0){var e=function(){var t=hR();VR(t)?RR=setTimeout(e,OX):(YI=t,RR=void 0)};e()}}function w7(){var e=this;return BX(),function(){return fo(e,void 0,void 0,function(){var t;return Zo(this,function(r){switch(r.label){case 0:return t=hR(),VR(t)?YI?[2,y7([],YI,!0)]:Q7()?[4,ZX()]:[3,2]:[3,2];case 1:r.sent(),t=hR(),r.label=2;case 2:return VR(t)||(YI=t),[2,t]}})})}}function LX(){var e=this,t=w7();return function(){return fo(e,void 0,void 0,function(){var r,o;return Zo(this,function(n){switch(n.label){case 0:return[4,t()];case 1:return r=n.sent(),o=function(s){return s===null?null:Y7(s,HX)},[2,[o(r[0]),o(r[1]),o(r[2]),o(r[3])]]}})})}}function hR(){var e=screen;return[po(Ui(e.availTop),null),po(Ui(e.width)-Ui(e.availWidth)-po(Ui(e.availLeft),0),null),po(Ui(e.height)-Ui(e.availHeight)-po(Ui(e.availTop),0),null),po(Ui(e.availLeft),null)]}function VR(e){for(var t=0;t<4;++t)if(e[t])return!1;return!0}function XX(){return po(IR(navigator.hardwareConcurrency),void 0)}function NX(){var e,t=(e=window.Intl)===null||e===void 0?void 0:e.DateTimeFormat;if(t){var r=new t().resolvedOptions().timeZone;if(r)return r}var o=-DX();return"UTC".concat(o>=0?"+":"").concat(Math.abs(o))}function DX(){var e=new Date().getFullYear();return Math.max(Ui(new Date(e,0,1).getTimezoneOffset()),Ui(new Date(e,6,1).getTimezoneOffset()))}function $X(){try{return!!window.sessionStorage}catch{return!0}}function _X(){try{return!!window.localStorage}catch{return!0}}function e8(){if(!(mR()||j7()))try{return!!window.indexedDB}catch{return!0}}function t8(){return!!window.openDatabase}function r8(){return navigator.cpuClass}function i8(){var e=navigator.platform;return e==="MacIntel"&&Ns()&&!bI()?fX()?"iPad":"iPhone":e}function o8(){return navigator.vendor||""}function n8(){for(var e=[],t=0,r=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];t<r.length;t++){var o=r[t],n=window[o];n&&typeof n=="object"&&e.push(o)}return e.sort()}function s8(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var t=e.cookie.indexOf("cookietest=")!==-1;return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch{return!1}}function l8(){var e=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',e("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",e("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",e("LnNwb25zb3JpdA=="),".ylamainos",e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",e("LmhlYWRlci1ibG9ja2VkLWFk"),e("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",e("I2FkXzMwMFgyNTA="),e("I2Jhbm5lcmZsb2F0MjI="),e("I2NhbXBhaWduLWJhbm5lcg=="),e("I0FkLUNvbnRlbnQ=")],adGuardChinese:[e("LlppX2FkX2FfSA=="),e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",e("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),e("LmFkZ29vZ2xl"),e("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[e("YW1wLWF1dG8tYWRz"),e("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",e("I2FkX2ludmlld19hcmVh")],adGuardRussian:[e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),e("LnJlY2xhbWE="),'div[id^="smi2adblock"]',e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",e("I3Jla2xhbWk="),e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),e("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),e("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",e("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",e("I3Jla2xhbW5pLWJveA=="),e("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[e("I2FkdmVydGVudGll"),e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",e("LnNwb25zb3JsaW5rZ3J1ZW4="),e("I3dlcmJ1bmdza3k="),e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[e("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[e("LnJla2xhbW9zX3RhcnBhcw=="),e("LnJla2xhbW9zX251b3JvZG9z"),e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[e("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",e("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",e("LmFkX19tYWlu"),e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),e("I2xpdmVyZUFkV3JhcHBlcg=="),e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),e("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[e("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),e("ZGl2I3NrYXBpZWNfYWQ=")],ro:[e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),e("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",e("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}function a8(e){var t=e===void 0?{}:e,r=t.debug;return fo(this,void 0,void 0,function(){var o,n,s,l,a,c;return Zo(this,function(u){switch(u.label){case 0:return c8()?(o=l8(),n=Object.keys(o),s=(c=[]).concat.apply(c,n.map(function(I){return o[I]})),[4,u8(s)]):[2,void 0];case 1:return l=u.sent(),r&&I8(o,l),a=n.filter(function(I){var E=o[I],d=Qi(E.map(function(M){return l[M]}));return d>E.length*.6}),a.sort(),[2,a]}})})}function c8(){return Ns()||ER()}function u8(e){var t;return fo(this,void 0,void 0,function(){var r,o,n,s,c,l,a,c;return Zo(this,function(u){switch(u.label){case 0:for(r=document,o=r.createElement("div"),n=new Array(e.length),s={},T7(o),c=0;c<e.length;++c)l=yX(e[c]),l.tagName==="DIALOG"&&l.show(),a=r.createElement("div"),T7(a),a.appendChild(l),o.appendChild(a),n[c]=l;u.label=1;case 1:return r.body?[3,3]:[4,Qa(50)];case 2:return u.sent(),[3,1];case 3:r.body.appendChild(o);try{for(c=0;c<e.length;++c)n[c].offsetParent||(s[e[c]]=!0)}finally{(t=o.parentNode)===null||t===void 0||t.removeChild(o)}return[2,s]}})})}function T7(e){e.style.setProperty("display","block","important")}function I8(e,t){for(var r="DOM blockers debug:\n```",o=0,n=Object.keys(e);o<n.length;o++){var s=n[o];r+=`
|
|
507
507
|
`.concat(s,":");for(var l=0,a=e[s];l<a.length;l++){var c=a[l];r+=`
|
|
508
508
|
`.concat(t[c]?"🚫":"➡️"," ").concat(c)}}console.log("".concat(r,"\n```"))}function m8(){for(var e=0,t=["rec2020","p3","srgb"];e<t.length;e++){var r=t[e];if(matchMedia("(color-gamut: ".concat(r,")")).matches)return r}}function E8(){if(G7("inverted"))return!0;if(G7("none"))return!1}function G7(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function d8(){if(O7("active"))return!0;if(O7("none"))return!1}function O7(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}var M8=100;function R8(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=M8;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}}function h8(){if($s("no-preference"))return 0;if($s("high")||$s("more"))return 1;if($s("low")||$s("less"))return-1;if($s("forced"))return 10}function $s(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function V8(){if(H7("reduce"))return!0;if(H7("no-preference"))return!1}function H7(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function z8(){if(B7("high"))return!0;if(B7("standard"))return!1}function B7(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var ft=Math,Yr=function(){return 0};function C8(){var e=ft.acos||Yr,t=ft.acosh||Yr,r=ft.asin||Yr,o=ft.asinh||Yr,n=ft.atanh||Yr,s=ft.atan||Yr,l=ft.sin||Yr,a=ft.sinh||Yr,c=ft.cos||Yr,u=ft.cosh||Yr,I=ft.tan||Yr,E=ft.tanh||Yr,d=ft.exp||Yr,M=ft.expm1||Yr,V=ft.log1p||Yr,R=function(q){return ft.pow(ft.PI,q)},h=function(q){return ft.log(q+ft.sqrt(q*q-1))},z=function(q){return ft.log(q+ft.sqrt(q*q+1))},f=function(q){return ft.log((1+q)/(1-q))/2},Z=function(q){return ft.exp(q)-1/ft.exp(q)/2},g=function(q){return(ft.exp(q)+1/ft.exp(q))/2},p=function(q){return ft.exp(q)-1},F=function(q){return(ft.exp(2*q)-1)/(ft.exp(2*q)+1)},x=function(q){return ft.log(1+q)};return{acos:e(.12312423423423424),acosh:t(1e308),acoshPf:h(1e154),asin:r(.12312423423423424),asinh:o(1),asinhPf:z(1),atanh:n(.5),atanhPf:f(.5),atan:s(.5),sin:l(-1e300),sinh:a(1),sinhPf:Z(1),cos:c(10.000000000123),cosh:u(1),coshPf:g(1),tan:I(-1e300),tanh:E(1),tanhPf:F(1),exp:d(1),expm1:M(1),expm1Pf:p(1),log1p:V(10),log1pPf:x(10),powPI:R(-100)}}var f8="mmMwWLliI0fiflO&1",zR={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function Z8(){return p8(function(e,t){for(var r={},o={},n=0,s=Object.keys(zR);n<s.length;n++){var l=s[n],a=zR[l],c=a[0],u=c===void 0?{}:c,I=a[1],E=I===void 0?f8:I,d=e.createElement("span");d.textContent=E,d.style.whiteSpace="nowrap";for(var M=0,V=Object.keys(u);M<V.length;M++){var R=V[M],h=u[R];h!==void 0&&(d.style[R]=h)}r[l]=d,t.appendChild(e.createElement("br")),t.appendChild(d)}for(var z=0,f=Object.keys(zR);z<f.length;z++){var l=f[z];o[l]=r[l].getBoundingClientRect().width}return o})}function p8(e,t){return t===void 0&&(t=4e3),dR(function(r,o){var n=o.document,s=n.body,l=s.style;l.width="".concat(t,"px"),l.webkitTextSizeAdjust=l.textSizeAdjust="none",KI()?s.style.zoom="".concat(1/o.devicePixelRatio):Ns()&&(s.style.zoom="reset");var a=n.createElement("div");return a.textContent=y7([],Array(t/20<<0),!0).map(function(){return"word"}).join(" "),s.appendChild(a),e(n,s)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function q8(){var e,t=document.createElement("canvas"),r=(e=t.getContext("webgl"))!==null&&e!==void 0?e:t.getContext("experimental-webgl");if(r&&"getExtension"in r){var o=r.getExtension("WEBGL_debug_renderer_info");if(o)return{vendor:(r.getParameter(o.UNMASKED_VENDOR_WEBGL)||"").toString(),renderer:(r.getParameter(o.UNMASKED_RENDERER_WEBGL)||"").toString()}}}function A8(){return navigator.pdfViewerEnabled}function g8(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}var L7={fonts:KX,domBlockers:a8,fontPreferences:Z8,audio:pX,screenFrame:LX,osCpu:JX,languages:PX,colorDepth:wX,deviceMemory:TX,screenResolution:GX,hardwareConcurrency:XX,timezone:NX,sessionStorage:$X,localStorage:_X,indexedDB:e8,openDatabase:t8,cpuClass:r8,platform:i8,plugins:bX,canvas:YX,touchSupport:QX,vendor:o8,vendorFlavors:n8,cookiesEnabled:s8,colorGamut:m8,invertedColors:E8,forcedColors:d8,monochrome:R8,contrast:h8,reducedMotion:V8,hdr:z8,math:C8,videoCard:q8,pdfViewerEnabled:A8,architecture:g8};function y8(e){return k7(L7,e,[])}var v8="$ if upgrade to Pro: https://fpjs.dev/pro";function F8(e){var t=x8(e),r=K8(t);return{score:t,comment:v8.replace(/\$/g,"".concat(r))}}function x8(e){if(ER())return .4;if(Ns())return bI()?.5:.3;var t=e.platform.value||"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}function K8(e){return Y7(.99+.01*e,1e-4)}function b8(e){for(var t="",r=0,o=Object.keys(e).sort();r<o.length;r++){var n=o[r],s=e[n],l=s.error?"error":JSON.stringify(s.value);t+="".concat(t?"|":"").concat(n.replace(/([:|\\])/g,"\\$1"),":").concat(l)}return t}function CR(e){return JSON.stringify(e,function(t,r){return r instanceof Error?EX(r):r},2)}function fR(e){return b7(b8(e))}function Y8(e){var t,r=F8(e);return{get visitorId(){return t===void 0&&(t=fR(this.components)),t},set visitorId(o){t=o},confidence:r,components:e,version:v7}}function X7(e){return e===void 0&&(e=50),mX(e,e*2)}function S8(e,t){var r=Date.now();return{get:function(o){return fo(this,void 0,void 0,function(){var n,s,l;return Zo(this,function(a){switch(a.label){case 0:return n=Date.now(),[4,e()];case 1:return s=a.sent(),l=Y8(s),(t||o?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(l.version,`
|