@scmlatam/web-ui 0.1.14 → 0.1.15

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.
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./main-BY-YXM0S.js";
1
+ import { _ as f } from "./main-BreZ23wY.js";
2
2
  const o = {
3
3
  config: {
4
4
  isInitialized: !1
@@ -42004,7 +42004,7 @@ async function U2(e) {
42004
42004
  return;
42005
42005
  const {
42006
42006
  default: t
42007
- } = await import("./get-context-DwfjZ7Vi.js"), r = await t();
42007
+ } = await import("./get-context-AQFDhv4c.js"), r = await t();
42008
42008
  if (!e || !j2(r))
42009
42009
  return;
42010
42010
  const o = y({}, e, {
@@ -58244,7 +58244,8 @@ const R0 = ({
58244
58244
  onRowSelectionModelChange: (t) => {
58245
58245
  e.setRowSelectionModel(t);
58246
58246
  },
58247
- rowSelectionModel: e.rowSelectionModel
58247
+ rowSelectionModel: e.rowSelectionModel,
58248
+ disableRowSelectionOnClick: e.disableRowSelectionOnClick
58248
58249
  }
58249
58250
  ),
58250
58251
  /* @__PURE__ */ p(
package/dist/web-ui.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as o, b as r, c as s, F as b, G as t, a as C, T, u as i } from "./main-BY-YXM0S.js";
1
+ import { C as o, b as r, c as s, F as b, G as t, a as C, T, u as i } from "./main-BreZ23wY.js";
2
2
  export {
3
3
  o as Core,
4
4
  r as CoreContext,
@@ -500,7 +500,7 @@ return result$$;`.replaceAll("$$",String(Wf)));return Wf+=1,(a,c)=>s(n,a,c)},kf=
500
500
  `));return e},m6=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef","onFocus","onBlur","classes","ownerState"],E6=e=>Math.round(e*1e5)/1e5,oI=_("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>y({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${E6(.15/16)}em`,variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),OM=_(nA,{name:"MuiPickersInputBase",slot:"SectionsContainer"})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{fieldDirection:"rtl"},style:{justifyContent:"end"}},{props:{inputSize:"small"},style:{paddingTop:1}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0},style:{color:"currentColor",opacity:0}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!1},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!0,isLabelShrunk:!0},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),d6=_(sA,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),M6=_(aA,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),R6=_(lA,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),h6=_("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(y({},fY)),V6=_("div",{name:"MuiPickersInputBase",slot:"ActiveBar"})(({theme:e,ownerState:t})=>({display:"none",position:"absolute",height:2,bottom:2,borderTopLeftRadius:2,borderTopRightRadius:2,transition:e.transitions.create(["width","left"],{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.primary.main,'[data-active-range-position="start"] &, [data-active-range-position="end"] &':{display:"block"},'[data-active-range-position="start"] &':{left:t.sectionOffsets[0]},'[data-active-range-position="end"] &':{left:t.sectionOffsets[1]}})),z6=(e,t)=>{const{isFieldFocused:r,isFieldDisabled:o,isFieldReadOnly:n,hasFieldError:s,inputSize:l,isInputInFullWidth:a,inputColor:c,hasStartAdornment:u,hasEndAdornment:I}=t,E={root:["root",r&&!o&&"focused",o&&"disabled",n&&"readOnly",s&&"error",a&&"fullWidth",`color${oe(c)}`,l==="small"&&"inputSizeSmall",u&&"adornedStart",I&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"],activeBar:["activeBar"]};return Re(E,a6,e)};function uA(e,t,r,o){if(e.content.id){const n=t.current?.querySelectorAll(`[data-sectionindex="${r}"] [data-range-position="${o}"]`);if(n)return Array.from(n).reduce((s,l)=>s+l.offsetWidth,0)}return 0}function C6(e,t){let r=0;if(t.current?.getAttribute("data-active-range-position")==="end")for(let n=e.length-1;n>=e.length/2;n-=1)r+=uA(e[n],t,n,"end");else for(let n=0;n<e.length/2;n+=1)r+=uA(e[n],t,n,"start");return{activeBarWidth:r,sectionOffsets:[t.current?.querySelector('[data-sectionindex="0"]')?.offsetLeft||0,t.current?.querySelector(`[data-sectionindex="${e.length/2}"]`)?.offsetLeft||0]}}const ya=m.forwardRef(function(t,r){const o=io({props:t,name:"MuiPickersInputBase"}),{elements:n,areAllSectionsEmpty:s,value:l,onChange:a,id:c,endAdornment:u,startAdornment:I,renderSuffix:E,slots:d,slotProps:M,contentEditable:V,tabIndex:R,onInput:h,onPaste:z,onKeyDown:f,name:Z,readOnly:g,inputProps:p,inputRef:F,sectionListRef:v,onFocus:A,onBlur:x,classes:K,ownerState:Y}=o,q=Ie(o,m6),k=iI(),U=m.useRef(null),W=m.useRef(null),b=m.useRef([]),Q=tt(r,U),P=tt(p?.ref,F),J=Ii();if(!J)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const S=Y??k,j=X=>{J.onFocus?.(X),A?.(X)},T=X=>{j(X)},H=X=>{if(f?.(X),X.key==="Enter"&&!X.defaultMuiPrevented){if(U.current?.dataset.multiInput)return;const re=U.current?.closest("form"),L=re?.querySelector('[type="submit"]');if(!re||!L)return;X.preventDefault(),re.requestSubmit(L)}},G=X=>{J.onBlur?.(X),x?.(X)};m.useEffect(()=>{J&&J.setAdornedStart(!!I)},[J,I]),m.useEffect(()=>{J&&(s?J.onEmpty():J.onFilled())},[J,s]);const O=z6(K,S),B=d?.root||oI,N=yr({elementType:B,externalSlotProps:M?.root,externalForwardedProps:q,additionalProps:{"aria-invalid":J.error,ref:Q},className:O.root,ownerState:S}),ee=d?.input||OM,D=n.some(X=>X.content["data-range-position"]!==void 0);return m.useEffect(()=>{if(!D||!S.isPickerOpen)return;const{activeBarWidth:X,sectionOffsets:re}=C6(n,U);b.current=[re[0],re[1]],W.current&&(W.current.style.width=`${X}px`)},[n,D,S.isPickerOpen]),C.jsxs(B,y({},N,{children:[I,C.jsx(TM,{sectionListRef:v,elements:n,contentEditable:V,tabIndex:R,className:O.sectionsContainer,onFocus:j,onBlur:G,onInput:h,onPaste:z,onKeyDown:H,slots:{root:ee,section:d6,sectionContent:M6,sectionSeparator:R6},slotProps:{root:y({},M?.input,{ownerState:S}),sectionContent:{className:Ps.sectionContent},sectionSeparator:({separatorPosition:X})=>({className:X==="before"?Ps.sectionBefore:Ps.sectionAfter})}}),u,E?E(y({},J)):null,C.jsx(h6,y({name:Z,className:O.input,value:l,onChange:a,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:g,required:J.required,disabled:J.disabled,onFocus:T},p,{ref:P})),D&&C.jsx(V6,{className:O.activeBar,ref:W,ownerState:{sectionOffsets:b.current}})]}))});process.env.NODE_ENV!=="production"&&(ya.displayName="PickersInputBase"),process.env.NODE_ENV!=="production"&&(ya.propTypes={areAllSectionsEmpty:i.bool.isRequired,className:i.string,component:i.elementType,contentEditable:i.bool.isRequired,"data-multi-input":i.string,elements:i.arrayOf(i.shape({after:i.object.isRequired,before:i.object.isRequired,container:i.object.isRequired,content:i.object.isRequired})).isRequired,endAdornment:i.node,fullWidth:i.bool,id:i.string,inputProps:i.object,inputRef:Tt,label:i.node,margin:i.oneOf(["dense","none","normal"]),name:i.string,onChange:i.func.isRequired,onClick:i.func.isRequired,onInput:i.func.isRequired,onKeyDown:i.func.isRequired,onPaste:i.func.isRequired,ownerState:i.any,readOnly:i.bool,renderSuffix:i.func,sectionListRef:i.oneOfType([i.func,i.shape({current:i.shape({getRoot:i.func.isRequired,getSectionContainer:i.func.isRequired,getSectionContent:i.func.isRequired,getSectionIndexFromDOMElement:i.func.isRequired})})]),slotProps:i.object,slots:i.object,startAdornment:i.node,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.string.isRequired});function f6(e){return ke("MuiPickersOutlinedInput",e)}const Yi=y({},Ps,je("MuiPickersOutlinedInput",["root","notchedOutline","input"])),Z6=["children","className","label","notched","shrink"],p6=_("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),IA=_("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),q6=_("legend",{shouldForwardProp:e=>rn(e)&&e!=="notched"})(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{inputHasLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{inputHasLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{inputHasLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function A6(e){const{className:t,label:r,notched:o}=e,n=Ie(e,Z6),s=iI();return C.jsx(p6,y({"aria-hidden":!0,className:t},n,{ownerState:s,children:C.jsx(q6,{ownerState:s,notched:o,children:r?C.jsx(IA,{children:r}):C.jsx(IA,{className:"notranslate",children:"​"})})}))}const g6=["label","autoFocus","ownerState","classes","notched"],y6=_(oI,{name:"MuiPickersOutlinedInput",slot:"Root"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Yi.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Yi.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Yi.focused} .${Yi.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${Yi.disabled}`]:{[`& .${Yi.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${Yi.error} .${Yi.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(r=>(e.vars??e).palette[r]?.main??!1).map(r=>({props:{inputColor:r},style:{[`&.${Yi.focused}:not(.${Yi.error}) .${Yi.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}}))}}),v6=_(OM,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),F6=e=>{const r=Re({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},f6,e);return y({},e,r)},nI=m.forwardRef(function(t,r){const o=io({props:t,name:"MuiPickersOutlinedInput"}),{label:n,classes:s,notched:l}=o,a=Ie(o,g6),c=Ii(),u=F6(s);return C.jsx(ya,y({slots:{root:y6,input:v6},renderSuffix:I=>C.jsx(A6,{shrink:!!(l||I.adornedStart||I.focused||I.filled),notched:!!(l||I.adornedStart||I.focused||I.filled),className:u.notchedOutline,label:n!=null&&n!==""&&c?.required?C.jsxs(m.Fragment,{children:[n," ","*"]}):n})},a,{label:n,classes:u,ref:r}))});process.env.NODE_ENV!=="production"&&(nI.displayName="PickersOutlinedInput"),process.env.NODE_ENV!=="production"&&(nI.propTypes={areAllSectionsEmpty:i.bool.isRequired,className:i.string,component:i.elementType,contentEditable:i.bool.isRequired,"data-multi-input":i.string,elements:i.arrayOf(i.shape({after:i.object.isRequired,before:i.object.isRequired,container:i.object.isRequired,content:i.object.isRequired})).isRequired,endAdornment:i.node,fullWidth:i.bool,id:i.string,inputProps:i.object,inputRef:Tt,label:i.node,margin:i.oneOf(["dense","none","normal"]),name:i.string,notched:i.bool,onChange:i.func.isRequired,onClick:i.func.isRequired,onInput:i.func.isRequired,onKeyDown:i.func.isRequired,onPaste:i.func.isRequired,ownerState:i.any,readOnly:i.bool,renderSuffix:i.func,sectionListRef:i.oneOfType([i.func,i.shape({current:i.shape({getRoot:i.func.isRequired,getSectionContainer:i.func.isRequired,getSectionContent:i.func.isRequired,getSectionIndexFromDOMElement:i.func.isRequired})})]),slotProps:i.object,slots:i.object,startAdornment:i.node,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.string.isRequired}),nI.muiName="Input";function x6(e){return ke("MuiPickersFilledInput",e)}const bn=y({},Ps,je("MuiPickersFilledInput",["root","underline","input"])),K6=["label","autoFocus","disableUnderline","hiddenLabel","classes"],b6=_(oI,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>rn(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",n=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:n,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${bn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${bn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[...Object.keys((e.vars??e).palette).filter(l=>(e.vars??e).palette[l].main).map(l=>({props:{inputColor:l,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[l]?.main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${bn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bn.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${bn.disabled}, .${bn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${bn.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),Y6=_(OM,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>rn(e)&&e!=="hiddenLabel"})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{inputSize:"small"},style:{paddingTop:21,paddingBottom:4}},{props:{hasStartAdornment:!0},style:{paddingLeft:0}},{props:{hasEndAdornment:!0},style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,inputSize:"small"},style:{paddingTop:8,paddingBottom:9}}]}),S6=(e,t)=>{const{inputHasUnderline:r}=t,n=Re({root:["root",r&&"underline"],input:["input"]},x6,e);return y({},e,n)},sI=m.forwardRef(function(t,r){const o=io({props:t,name:"MuiPickersFilledInput"}),{label:n,disableUnderline:s=!1,hiddenLabel:l=!1,classes:a}=o,c=Ie(o,K6),u=iI(),I=y({},u,{inputHasUnderline:!s}),E=S6(a,I);return C.jsx(ya,y({slots:{root:b6,input:Y6},slotProps:{root:{disableUnderline:s},input:{hiddenLabel:l}}},c,{label:n,classes:E,ref:r,ownerState:I}))});process.env.NODE_ENV!=="production"&&(sI.displayName="PickersFilledInput"),process.env.NODE_ENV!=="production"&&(sI.propTypes={areAllSectionsEmpty:i.bool.isRequired,className:i.string,component:i.elementType,contentEditable:i.bool.isRequired,"data-multi-input":i.string,disableUnderline:i.bool,elements:i.arrayOf(i.shape({after:i.object.isRequired,before:i.object.isRequired,container:i.object.isRequired,content:i.object.isRequired})).isRequired,endAdornment:i.node,fullWidth:i.bool,hiddenLabel:i.bool,id:i.string,inputProps:i.object,inputRef:Tt,label:i.node,margin:i.oneOf(["dense","none","normal"]),name:i.string,onChange:i.func.isRequired,onClick:i.func.isRequired,onInput:i.func.isRequired,onKeyDown:i.func.isRequired,onPaste:i.func.isRequired,ownerState:i.any,readOnly:i.bool,renderSuffix:i.func,sectionListRef:i.oneOfType([i.func,i.shape({current:i.shape({getRoot:i.func.isRequired,getSectionContainer:i.func.isRequired,getSectionContent:i.func.isRequired,getSectionIndexFromDOMElement:i.func.isRequired})})]),slotProps:i.object,slots:i.object,startAdornment:i.node,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.string.isRequired}),sI.muiName="Input";function W6(e){return ke("MuiPickersFilledInput",e)}const va=y({},Ps,je("MuiPickersInput",["root","underline","input"])),k6=["label","autoFocus","disableUnderline","ownerState","classes"],j6=_(oI,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>rn(e)&&e!=="disableUnderline"})(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(o=>(e.vars??e).palette[o].main).map(o=>({props:{inputColor:o,inputHasUnderline:!0},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{inputHasUnderline:!0},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${va.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${va.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${va.disabled}, .${va.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${va.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),U6=(e,t)=>{const{inputHasUnderline:r}=t,n=Re({root:["root",!r&&"underline"],input:["input"]},W6,e);return y({},e,n)},lI=m.forwardRef(function(t,r){const o=io({props:t,name:"MuiPickersInput"}),{label:n,disableUnderline:s=!1,classes:l}=o,a=Ie(o,k6),c=iI(),u=y({},c,{inputHasUnderline:!s}),I=U6(l,u);return C.jsx(ya,y({slots:{root:j6},slotProps:{root:{disableUnderline:s}}},a,{ownerState:u,label:n,classes:I,ref:r}))});process.env.NODE_ENV!=="production"&&(lI.displayName="PickersInput"),process.env.NODE_ENV!=="production"&&(lI.propTypes={areAllSectionsEmpty:i.bool.isRequired,className:i.string,component:i.elementType,contentEditable:i.bool.isRequired,"data-multi-input":i.string,disableUnderline:i.bool,elements:i.arrayOf(i.shape({after:i.object.isRequired,before:i.object.isRequired,container:i.object.isRequired,content:i.object.isRequired})).isRequired,endAdornment:i.node,fullWidth:i.bool,id:i.string,inputProps:i.object,inputRef:Tt,label:i.node,margin:i.oneOf(["dense","none","normal"]),name:i.string,onChange:i.func.isRequired,onClick:i.func.isRequired,onInput:i.func.isRequired,onKeyDown:i.func.isRequired,onPaste:i.func.isRequired,ownerState:i.any,readOnly:i.bool,renderSuffix:i.func,sectionListRef:i.oneOfType([i.func,i.shape({current:i.shape({getRoot:i.func.isRequired,getSectionContainer:i.func.isRequired,getSectionContent:i.func.isRequired,getSectionIndexFromDOMElement:i.func.isRequired})})]),slotProps:i.object,slots:i.object,startAdornment:i.node,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.string.isRequired}),lI.muiName="Input";const Q6=["onFocus","onBlur","className","classes","color","disabled","error","variant","required","hiddenLabel","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps","data-active-range-position"],J6={standard:lI,filled:sI,outlined:nI},P6=_(os,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),w6=(e,t)=>{const{isFieldFocused:r,isFieldDisabled:o,isFieldRequired:n}=t;return Re({root:["root",r&&!o&&"focused",o&&"disabled",n&&"required"]},l6,e)},aI=m.forwardRef(function(t,r){const o=io({props:t,name:"MuiPickersTextField"}),{onFocus:n,onBlur:s,className:l,classes:a,color:c="primary",disabled:u=!1,error:I=!1,variant:E="outlined",required:d=!1,hiddenLabel:M=!1,InputProps:V,inputProps:R,inputRef:h,sectionListRef:z,elements:f,areAllSectionsEmpty:Z,onClick:g,onKeyDown:p,onKeyUp:F,onPaste:v,onInput:A,endAdornment:x,startAdornment:K,tabIndex:Y,contentEditable:q,focused:k,value:U,onChange:W,fullWidth:b,id:Q,name:P,helperText:J,FormHelperTextProps:S,label:j,InputLabelProps:T,"data-active-range-position":H}=o,G=Ie(o,Q6),O=m.useRef(null),B=tt(r,O),N=et(Q),ee=J&&N?`${N}-helper-text`:void 0,D=j&&N?`${N}-label`:void 0,X=SM({disabled:o.disabled,required:o.required,readOnly:V?.readOnly}),re=m.useMemo(()=>y({},X,{isFieldValueEmpty:Z,isFieldFocused:k??!1,hasFieldError:I??!1,inputSize:o.size??"medium",inputColor:c??"primary",isInputInFullWidth:b??!1,hasStartAdornment:!!(K??V?.startAdornment),hasEndAdornment:!!(x??V?.endAdornment),inputHasLabel:!!j,isLabelShrunk:!!T?.shrink}),[X,Z,k,I,o.size,c,b,K,x,V?.startAdornment,V?.endAdornment,j,T?.shrink]),L=w6(a,re),se=J6[E],ie={};return E==="outlined"?(T&&typeof T.shrink<"u"&&(ie.notched=T.shrink),ie.label=j):E==="filled"&&(ie.hiddenLabel=M),C.jsx(GM.Provider,{value:re,children:C.jsxs(P6,y({className:me(L.root,l),ref:B,focused:k,disabled:u,variant:E,error:I,color:c,fullWidth:b,required:d,ownerState:re},G,{children:[j!=null&&j!==""&&C.jsx(ls,y({htmlFor:N,id:D},T,{children:j})),C.jsx(se,y({elements:f,areAllSectionsEmpty:Z,onClick:g,onKeyDown:p,onKeyUp:F,onInput:A,onPaste:v,onFocus:n,onBlur:s,endAdornment:x,startAdornment:K,tabIndex:Y,contentEditable:q,value:U,onChange:W,id:N,fullWidth:b,inputProps:R,inputRef:h,sectionListRef:z,label:j,name:P,role:"group","aria-labelledby":D,"aria-describedby":ee,"aria-live":ee?"polite":void 0,"data-active-range-position":H},ie,V)),J&&C.jsx(Nm,y({id:ee},S,{children:J}))]}))})});process.env.NODE_ENV!=="production"&&(aI.displayName="PickersTextField"),process.env.NODE_ENV!=="production"&&(aI.propTypes={areAllSectionsEmpty:i.bool.isRequired,className:i.string,color:i.oneOf(["error","info","primary","secondary","success","warning"]),component:i.elementType,contentEditable:i.bool.isRequired,disabled:i.bool.isRequired,elements:i.arrayOf(i.shape({after:i.object.isRequired,before:i.object.isRequired,container:i.object.isRequired,content:i.object.isRequired})).isRequired,endAdornment:i.node,error:i.bool.isRequired,focused:i.bool,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:Tt,label:i.node,margin:i.oneOf(["dense","none","normal"]),name:i.string,onBlur:i.func.isRequired,onChange:i.func.isRequired,onClick:i.func.isRequired,onFocus:i.func.isRequired,onInput:i.func.isRequired,onKeyDown:i.func.isRequired,onPaste:i.func.isRequired,readOnly:i.bool,required:i.bool,sectionListRef:i.oneOfType([i.func,i.shape({current:i.shape({getRoot:i.func.isRequired,getSectionContainer:i.func.isRequired,getSectionContent:i.func.isRequired,getSectionIndexFromDOMElement:i.func.isRequired})})]),size:i.oneOf(["medium","small"]),startAdornment:i.node,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.string.isRequired,variant:i.oneOf(["filled","outlined","standard"])});const T6=["enableAccessibleFieldDOMStructure"],G6=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],O6=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],H6=["ownerState"],B6=["ownerState"],L6=["ownerState"],X6=["ownerState"],N6=["InputProps","inputProps"],D6=e=>{let{enableAccessibleFieldDOMStructure:t}=e,r=Ie(e,T6);if(t){const{InputProps:h,readOnly:z,onClear:f,clearable:Z,clearButtonPosition:g,openPickerButtonPosition:p,openPickerAriaLabel:F}=r,v=Ie(r,G6);return{clearable:Z,onClear:f,clearButtonPosition:g,openPickerButtonPosition:p,openPickerAriaLabel:F,textFieldProps:y({},v,{InputProps:y({},h??{},{readOnly:z})})}}const{onPaste:o,onKeyDown:n,inputMode:s,readOnly:l,InputProps:a,inputProps:c,inputRef:u,onClear:I,clearable:E,clearButtonPosition:d,openPickerButtonPosition:M,openPickerAriaLabel:V}=r,R=Ie(r,O6);return{clearable:E,onClear:I,clearButtonPosition:d,openPickerButtonPosition:M,openPickerAriaLabel:V,textFieldProps:y({},R,{InputProps:y({},a??{},{readOnly:l}),inputProps:y({},c??{},{inputMode:s,onPaste:o,onKeyDown:n,ref:u})})}},HM=m.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&(HM.displayName="PickerFieldUIContext");function mA(e){const{slots:t,slotProps:r,fieldResponse:o,defaultOpenPickerIcon:n}=e,s=Aa(),l=wM(),a=m.useContext(HM),{textFieldProps:c,onClear:u,clearable:I,openPickerAriaLabel:E,clearButtonPosition:d="end",openPickerButtonPosition:M="end"}=D6(o),V=SM(c),R=Ze(J=>{J.preventDefault(),l?.setOpen(S=>!S)}),h=l?l.triggerStatus:"hidden",z=I?d:null,f=h!=="hidden"?M:null,Z=t?.textField??a.slots.textField??(o.enableAccessibleFieldDOMStructure===!1?ko:aI),g=t?.inputAdornment??a.slots.inputAdornment??Gc,p=yr({elementType:g,externalSlotProps:cI(a.slotProps.inputAdornment,r?.inputAdornment),additionalProps:{position:"start"},ownerState:y({},V,{position:"start"})}),F=Ie(p,H6),v=yr({elementType:g,externalSlotProps:r?.inputAdornment,additionalProps:{position:"end"},ownerState:y({},V,{position:"end"})}),A=Ie(v,B6),x=a.slots.openPickerButton??fr,K=yr({elementType:x,externalSlotProps:a.slotProps.openPickerButton,additionalProps:{disabled:h==="disabled",onClick:R,"aria-label":E,edge:c.variant!=="standard"?f:!1},ownerState:V}),Y=Ie(K,L6),q=a.slots.openPickerIcon??n,k=yr({elementType:q,externalSlotProps:a.slotProps.openPickerIcon,ownerState:V}),U=t?.clearButton??a.slots.clearButton??fr,W=yr({elementType:U,externalSlotProps:cI(a.slotProps.clearButton,r?.clearButton),className:"clearButton",additionalProps:{title:s.fieldClearLabel,tabIndex:-1,onClick:u,disabled:o.disabled||o.readOnly,edge:c.variant!=="standard"&&z!==f?z:!1},ownerState:V}),b=Ie(W,X6),Q=t?.clearIcon??a.slots.clearIcon??JB,P=yr({elementType:Q,externalSlotProps:cI(a.slotProps.clearIcon,r?.clearIcon),additionalProps:{fontSize:"small"},ownerState:V});return c.ref=tt(c.ref,l?.rootRef),c.InputProps||(c.InputProps={}),l&&(c.InputProps.ref=l.triggerRef),!c.InputProps?.startAdornment&&(z==="start"||f==="start")&&(c.InputProps.startAdornment=C.jsxs(g,y({},F,{children:[f==="start"&&C.jsx(x,y({},Y,{children:C.jsx(q,y({},k))})),z==="start"&&C.jsx(U,y({},b,{children:C.jsx(Q,y({},P))}))]}))),!c.InputProps?.endAdornment&&(z==="end"||f==="end")&&(c.InputProps.endAdornment=C.jsxs(g,y({},A,{children:[z==="end"&&C.jsx(U,y({},b,{children:C.jsx(Q,y({},P))})),f==="end"&&C.jsx(x,y({},Y,{children:C.jsx(q,y({},k))}))]}))),z!=null&&(c.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(c.sx)?c.sx:[c.sx]]),C.jsx(Z,y({},c))}function cI(e,t){return e?t?r=>y({},fc(t,r),fc(e,r)):e:t}function EA(e){const{ref:t,externalForwardedProps:r,slotProps:o}=e,n=m.useContext(HM),s=wM(),l=SM(r),{InputProps:a,inputProps:c}=r,u=Ie(r,N6),I=yr({elementType:aI,externalSlotProps:cI(n.slotProps.textField,o?.textField),externalForwardedProps:u,additionalProps:{ref:t,sx:s?.rootSx,label:s?.label,name:s?.name,className:s?.rootClassName,inputRef:n.inputRef},ownerState:l});return I.inputProps=y({},c,I.inputProps),I.InputProps=y({},a,I.InputProps),I}const dA=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?dA(t.shadowRoot):t:null},fi=e=>dA(Kt(e)),$6=({name:e,timezone:t,value:r,defaultValue:o,referenceDate:n,onChange:s,valueManager:l})=>{const a=Ci(),[c,u]=no({name:e,state:"value",controlled:r,default:o??l.emptyValue}),I=m.useMemo(()=>l.getTimezone(a,c),[a,l,c]),E=Ze(R=>I==null?R:l.setTimezone(a,I,R)),d=m.useMemo(()=>t||I||(n?a.getTimezone(Array.isArray(n)?n[0]:n):"default"),[t,I,n,a]),M=m.useMemo(()=>l.setTimezone(a,d,c),[l,a,d,c]),V=Ze((R,...h)=>{const z=E(R);u(z),s?.(z,...h)});return{value:M,handleValueChange:V,timezone:d}},ws=e=>e.saveQuery!=null,MA=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:r,timezone:o,setCharacterQuery:n,setTempAndroidValueStr:s,updateSectionValue:l}})=>{const a=Ci(),c=({keyPressed:E,sectionIndex:d},M,V)=>{const R=E.toLowerCase(),h=r.sections[d];if(r.characterQuery!=null&&(!V||V(r.characterQuery.value))&&r.characterQuery.sectionIndex===d){const f=`${r.characterQuery.value}${R}`,Z=M(f,h);if(!ws(Z))return n({sectionIndex:d,value:f,sectionType:h.type}),Z}const z=M(R,h);return ws(z)&&!z.saveQuery?(n(null),null):(n({sectionIndex:d,value:R,sectionType:h.type}),ws(z)?null:z)},u=E=>{const d=(R,h,z)=>{const f=h.filter(Z=>Z.toLowerCase().startsWith(z));return f.length===0?{saveQuery:!1}:{sectionValue:f[0],shouldGoToNextSection:f.length===1}},M=(R,h,z,f)=>{const Z=g=>H3(a,o,h.type,g);if(h.contentType==="letter")return d(h.format,Z(h.format),R);if(z&&f!=null&&jM(a,z).contentType==="letter"){const g=Z(z),p=d(z,g,R);return ws(p)?{saveQuery:!1}:y({},p,{sectionValue:f(p.sectionValue,g)})}return{saveQuery:!1}};return c(E,(R,h)=>{switch(h.type){case"month":{const z=f=>N3(a,f,a.formats.month,h.format);return M(R,h,a.formats.month,z)}case"weekDay":{const z=(f,Z)=>Z.indexOf(f).toString();return M(R,h,a.formats.weekday,z)}case"meridiem":return M(R,h);default:return{saveQuery:!1}}})},I=E=>{const d=({queryValue:V,skipIfBelowMinimum:R,section:h})=>{const z=Kn(V,e),f=Number(z),Z=t[h.type]({currentDate:null,format:h.format,contentType:h.contentType});if(f>Z.maximum)return{saveQuery:!1};if(R&&f<Z.minimum)return{saveQuery:!0};const g=f*10>Z.maximum||z.length===Z.maximum.toString().length;return{sectionValue:X3(a,f,Z,e,h),shouldGoToNextSection:g}};return c(E,(V,R)=>{if(R.contentType==="digit"||R.contentType==="digit-with-letter")return d({queryValue:V,skipIfBelowMinimum:!1,section:R});if(R.type==="month"){D3(a,"digit","month","MM");const h=d({queryValue:V,skipIfBelowMinimum:!0,section:{type:R.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});if(ws(h))return h;const z=N3(a,h.sectionValue,"MM",R.format);return y({},h,{sectionValue:z})}if(R.type==="weekDay"){const h=d({queryValue:V,skipIfBelowMinimum:!0,section:R});if(ws(h))return h;const z=rI(a,R.format)[Number(h.sectionValue)-1];return y({},h,{sectionValue:z})}return{saveQuery:!1}},V=>L3(V,e))};return Ze(E=>{const d=r.sections[E.sectionIndex],V=L3(E.keyPressed,e)?I(y({},E,{keyPressed:UM(E.keyPressed,e)})):u(E);if(V==null){s(null);return}l({section:d,newSectionValue:V.sectionValue,shouldGoToNextSection:V.shouldGoToNextSection})})},RA=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),hA=(e,t)=>(r,o)=>e?t.isAfter(r,o):RA(r,t)>RA(o,t),Yn={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},_6=e=>Math.max(...e.map(t=>Yn[t.type]??1)),Fa=(e,t,r)=>{if(t===Yn.year)return e.startOfYear(r);if(t===Yn.month)return e.startOfMonth(r);if(t===Yn.day)return e.startOfDay(r);let o=r;return t<Yn.minutes&&(o=e.setMinutes(o,0)),t<Yn.seconds&&(o=e.setSeconds(o,0)),t<Yn.milliseconds&&(o=e.setMilliseconds(o,0)),o},VA=({props:e,adapter:t,granularity:r,timezone:o,getTodayDate:n})=>{let s=n?n():Fa(t,r,tI(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=Fa(t,r,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=Fa(t,r,e.maxDate));const l=hA(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&l(e.minTime,s)&&(s=Fa(t,r,e.disableIgnoringDatePartForTimeValidation?e.minTime:T3(t,s,e.minTime))),e.maxTime!=null&&l(s,e.maxTime)&&(s=Fa(t,r,e.disableIgnoringDatePartForTimeValidation?e.maxTime:T3(t,s,e.maxTime))),s},e0=["value","referenceDate"],uI={emptyValue:null,getTodayValue:tI,getInitialReferenceValue:e=>{let{value:t,referenceDate:r}=e,o=Ie(e,e0);return o.adapter.isValid(t)?t:r??VA(o)},cleanValue:G3,areValuesEqual:kM,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,r)=>r==null?null:e.setTimezone(r,t)},t0={updateReferenceValue:(e,t,r)=>e.isValid(t)?t:r,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:$3,getV6InputValueFromSections:_3,parseValueStr:(e,t,r)=>r(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,r)=>r,clearDateSections:e=>e.map(t=>y({},t,{value:""}))},II=({props:e,value:t,timezone:r,adapter:o})=>{if(t===null)return null;const{shouldDisableDate:n,shouldDisableMonth:s,shouldDisableYear:l,disablePast:a,disableFuture:c,minDate:u,maxDate:I}=e,E=o.date(void 0,r);switch(!0){case!o.isValid(t):return"invalidDate";case!!(n&&n(t)):return"shouldDisableDate";case!!(s&&s(t)):return"shouldDisableMonth";case!!(l&&l(t)):return"shouldDisableYear";case!!(c&&o.isAfterDay(t,E)):return"disableFuture";case!!(a&&o.isBeforeDay(t,E)):return"disablePast";case!!(u&&o.isBeforeDay(t,u)):return"minDate";case!!(I&&o.isAfterDay(t,I)):return"maxDate";default:return null}};II.valueManager=uI;const zA=({adapter:e,value:t,timezone:r,props:o})=>{if(t===null)return null;const{minTime:n,maxTime:s,minutesStep:l,shouldDisableTime:a,disableIgnoringDatePartForTimeValidation:c=!1,disablePast:u,disableFuture:I}=o,E=e.date(void 0,r),d=hA(c,e);switch(!0){case!e.isValid(t):return"invalidDate";case!!(n&&d(n,t)):return"minTime";case!!(s&&d(t,s)):return"maxTime";case!!(I&&e.isAfter(t,E)):return"disableFuture";case!!(u&&e.isBefore(t,E)):return"disablePast";case!!(a&&a(t,"hours")):return"shouldDisableTime-hours";case!!(a&&a(t,"minutes")):return"shouldDisableTime-minutes";case!!(a&&a(t,"seconds")):return"shouldDisableTime-seconds";case!!(l&&e.getMinutes(t)%l!==0):return"minutesStep";default:return null}};zA.valueManager=uI;const CA=({adapter:e,value:t,timezone:r,props:o})=>{const n=II({adapter:e,value:t,timezone:r,props:o});return n!==null?n:zA({adapter:e,value:t,timezone:r,props:o})};CA.valueManager=uI;function r0(e){const{props:t,validator:r,value:o,timezone:n,onError:s}=e,l=Ci(),a=m.useRef(r.valueManager.defaultErrorState),c=r({adapter:l,value:o,timezone:n,props:t}),u=r.valueManager.hasError(c);m.useEffect(()=>{s&&!r.valueManager.isSameError(c,a.current)&&s(c,o),a.current=c},[r,s,c,o]);const I=Ze(E=>r({adapter:l,value:E,timezone:n,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:I}}const i0=5e3,fA=e=>{const t=Ci(),r=Aa(),o=_t(),{manager:{validator:n,valueType:s,internal_valueManager:l,internal_fieldValueManager:a},internalPropsWithDefaults:c,internalPropsWithDefaults:{value:u,defaultValue:I,referenceDate:E,onChange:d,format:M,formatDensity:V="dense",selectedSections:R,onSelectedSectionsChange:h,shouldRespectLeadingZeros:z=!1,timezone:f,enableAccessibleFieldDOMStructure:Z=!0},forwardedProps:{error:g}}=e,{value:p,handleValueChange:F,timezone:v}=$6({name:"a field component",timezone:f,value:u,defaultValue:I,referenceDate:E,onChange:d,valueManager:l}),A=m.useRef(p);m.useEffect(()=>{A.current=p},[p]);const{hasValidationError:x}=r0({props:c,validator:n,timezone:v,value:p,onError:c.onError}),K=m.useMemo(()=>g!==void 0?g:x,[x,g]),Y=m.useMemo(()=>LB(t),[t]),q=m.useMemo(()=>DB(t,Y,v),[t,Y,v]),k=m.useCallback($=>a.getSectionsFromValue($,Ve=>oA({adapter:t,localeText:r,localizedDigits:Y,format:M,date:Ve,formatDensity:V,shouldRespectLeadingZeros:z,enableAccessibleFieldDOMStructure:Z,isRtl:o})),[a,M,r,Y,o,z,t,V,Z]),[U,W]=m.useState(()=>{const $=k(p);tA($,s);const Ve={sections:$,lastExternalValue:p,lastSectionsDependencies:{format:M,isRtl:o,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},le=_6($),ve=l.getInitialReferenceValue({referenceDate:E,value:p,adapter:t,props:c,granularity:le,timezone:v});return y({},Ve,{referenceValue:ve})}),[b,Q]=no({controlled:R,default:null,name:"useField",state:"selectedSections"}),P=$=>{Q($),h?.($)},J=m.useMemo(()=>PM(b,U.sections),[b,U.sections]),S=J==="all"?0:J,j=m.useMemo(()=>e6(U.sections,o&&!Z),[U.sections,o,Z]),T=m.useMemo(()=>U.sections.every($=>$.value===""),[U.sections]),H=$=>{const Ve={validationError:n({adapter:t,value:$,timezone:v,props:c})};F($,Ve)},G=($,Ve)=>{const le=[...U.sections];return le[$]=y({},le[$],{value:Ve,modified:!0}),le},O=m.useRef(null),B=er(),N=$=>{S!=null&&(O.current={sectionIndex:S,value:$},B.start(0,()=>{O.current=null}))},ee=()=>{l.areValuesEqual(t,p,l.emptyValue)?W($=>y({},$,{sections:$.sections.map(Ve=>y({},Ve,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(W($=>y({},$,{characterQuery:null})),H(l.emptyValue))},D=()=>{if(S==null)return;const $=U.sections[S];$.value!==""&&(N(""),a.getDateFromSection(p,$)===null?W(Ve=>y({},Ve,{sections:G(S,""),tempValueStrAndroid:null,characterQuery:null})):(W(Ve=>y({},Ve,{characterQuery:null})),H(a.updateDateInValue(p,$,null))))},X=$=>{const Ve=(ve,ge)=>{const be=t.parse(ve,M);if(!t.isValid(be))return null;const ne=oA({adapter:t,localeText:r,localizedDigits:Y,format:M,date:be,formatDensity:V,shouldRespectLeadingZeros:z,enableAccessibleFieldDOMStructure:Z,isRtl:o});return iA(t,be,ne,ge,!1)},le=a.parseValueStr($,U.referenceValue,Ve);H(le)},re=er(),L=({section:$,newSectionValue:Ve,shouldGoToNextSection:le})=>{B.clear(),re.clear();const ve=a.getDateFromSection(p,$);le&&S<U.sections.length-1&&P(S+1);const ge=G(S,Ve),be=a.getDateSectionsFromValue(ge,$),ne=NB(t,be,Y);if(t.isValid(ne)){const We=iA(t,ne,be,a.getDateFromSection(U.referenceValue,$),!0);return ve==null&&re.start(0,()=>{A.current===p&&W(ye=>y({},ye,{sections:a.clearDateSections(U.sections,$),tempValueStrAndroid:null}))}),H(a.updateDateInValue(p,$,We))}return be.every(We=>We.value!=="")&&(ve==null||t.isValid(ve))?(N(Ve),H(a.updateDateInValue(p,$,ne))):ve!=null?(N(Ve),H(a.updateDateInValue(p,$,null))):W(We=>y({},We,{sections:ge,tempValueStrAndroid:null}))},se=$=>W(Ve=>y({},Ve,{tempValueStrAndroid:$})),ie=Ze($=>{W(Ve=>y({},Ve,{characterQuery:$}))});if(p!==U.lastExternalValue){let $;O.current!=null&&!t.isValid(a.getDateFromSection(p,U.sections[O.current.sectionIndex]))?$=G(O.current.sectionIndex,O.current.value):$=k(p),W(Ve=>y({},Ve,{lastExternalValue:p,sections:$,sectionsDependencies:{format:M,isRtl:o,locale:t.locale},referenceValue:a.updateReferenceValue(t,p,Ve.referenceValue),tempValueStrAndroid:null}))}if(o!==U.lastSectionsDependencies.isRtl||M!==U.lastSectionsDependencies.format||t.locale!==U.lastSectionsDependencies.locale){const $=k(p);tA($,s),W(Ve=>y({},Ve,{lastSectionsDependencies:{format:M,isRtl:o,locale:t.locale},sections:$,tempValueStrAndroid:null,characterQuery:null}))}U.characterQuery!=null&&!K&&S==null&&ie(null),U.characterQuery!=null&&U.sections[U.characterQuery.sectionIndex]?.type!==U.characterQuery.sectionType&&ie(null),m.useEffect(()=>{O.current!=null&&(O.current=null)});const Me=er();return m.useEffect(()=>(U.characterQuery!=null&&Me.start(i0,()=>ie(null)),()=>{}),[U.characterQuery,ie,Me]),m.useEffect(()=>{U.tempValueStrAndroid!=null&&S!=null&&D()},[U.sections]),{activeSectionIndex:S,areAllSectionsEmpty:T,error:K,localizedDigits:Y,parsedSelectedSections:J,sectionOrder:j,sectionsValueBoundaries:q,state:U,timezone:v,value:p,clearValue:ee,clearActiveSection:D,setCharacterQuery:ie,setSelectedSections:P,setTempAndroidValueStr:se,updateSectionValue:L,updateValueFromValueStr:X,getSectionsFromValue:k}};function ZA(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:r,skipContextFieldRefAssignment:o}=e,n=wM(),s=k3(),l=tt(r.unstableFieldRef,o?null:s?.fieldRef),a=n?.setValue,c=m.useCallback((I,E)=>a?.(I,{validationError:E.validationError,shouldClose:!1}),[a]),u=m.useMemo(()=>s!=null&&n!=null?y({value:n.value,onChange:c,timezone:n.timezone,disabled:n.disabled,readOnly:n.readOnly,autoFocus:n.autoFocus&&!n.open,focused:n.open?!0:void 0,format:n.fieldFormat,formatDensity:s.formatDensity,enableAccessibleFieldDOMStructure:s.enableAccessibleFieldDOMStructure,selectedSections:s.selectedSections,onSelectedSectionsChange:s.onSelectedSectionsChange,unstableFieldRef:l},r):r,[n,s,r,c,l]);return t(u)}function BM(e){const{focused:t,domGetters:r,stateResponse:{parsedSelectedSections:o,state:n}}=e;if(!r.isReady())return;const s=Kt(r.getRoot()).getSelection();if(!s)return;if(o==null){s.rangeCount>0&&s.getRangeAt(0).startContainer instanceof Node&&r.getRoot().contains(s.getRangeAt(0).startContainer)&&s.removeAllRanges(),t&&r.getRoot().blur();return}if(!r.getRoot().contains(fi(r.getRoot())))return;const l=new window.Range;let a;o==="all"?a=r.getRoot():n.sections[o].type==="empty"?a=r.getSectionContainer(o):a=r.getSectionContent(o),l.selectNodeContents(a),a.focus(),s.removeAllRanges(),s.addRange(l)}function pA(e){const t=Ci(),{manager:{internal_fieldValueManager:r},internalPropsWithDefaults:{minutesStep:o,disabled:n,readOnly:s},stateResponse:{state:l,value:a,activeSectionIndex:c,parsedSelectedSections:u,sectionsValueBoundaries:I,localizedDigits:E,timezone:d,sectionOrder:M,clearValue:V,clearActiveSection:R,setSelectedSections:h,updateSectionValue:z}}=e;return Ze(f=>{if(!n)switch(!0){case((f.ctrlKey||f.metaKey)&&String.fromCharCode(f.keyCode)==="A"&&!f.shiftKey&&!f.altKey):{f.preventDefault(),h("all");break}case f.key==="ArrowRight":{if(f.preventDefault(),u==null)h(M.startIndex);else if(u==="all")h(M.endIndex);else{const Z=M.neighbors[u].rightIndex;Z!==null&&h(Z)}break}case f.key==="ArrowLeft":{if(f.preventDefault(),u==null)h(M.endIndex);else if(u==="all")h(M.startIndex);else{const Z=M.neighbors[u].leftIndex;Z!==null&&h(Z)}break}case f.key==="Delete":{if(f.preventDefault(),s)break;u==null||u==="all"?V():R();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(f.key):{if(f.preventDefault(),s||c==null)break;u==="all"&&h(c);const Z=l.sections[c],g=n0(t,d,Z,f.key,I,E,r.getDateFromSection(a,Z),{minutesStep:o});z({section:Z,newSectionValue:g,shouldGoToNextSection:!1});break}}})}function o0(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function n0(e,t,r,o,n,s,l,a){const c=o0(o),u=o==="Home",I=o==="End",E=r.value===""||u||I,d=()=>{const V=n[r.type]({currentDate:l,format:r.format,contentType:r.contentType}),R=f=>X3(e,f,V,s,r),h=r.type==="minutes"&&a?.minutesStep?a.minutesStep:1;let z;if(E){if(r.type==="year"&&!I&&!u)return e.formatByString(e.date(void 0,t),r.format);c>0||u?z=V.minimum:z=V.maximum}else z=parseInt(Kn(r.value,s),10)+c*h;return z%h!==0&&((c<0||u)&&(z+=h-(h+z)%h),(c>0||I)&&(z-=z%h)),z>V.maximum?R(V.minimum+(z-V.maximum-1)%(V.maximum-V.minimum+1)):z<V.minimum?R(V.maximum-(V.minimum-z-1)%(V.maximum-V.minimum+1)):R(z)},M=()=>{const V=H3(e,t,r.type,r.format);if(V.length===0)return r.value;if(E)return c>0||u?V[0]:V[V.length-1];const z=((V.indexOf(r.value)+c)%V.length+V.length)%V.length;return V[z]};return r.contentType==="digit"||r.contentType==="digit-with-letter"?d():M()}function s0(e){const{manager:t,focused:r,setFocused:o,domGetters:n,stateResponse:s,applyCharacterEditing:l,internalPropsWithDefaults:a,stateResponse:{parsedSelectedSections:c,sectionOrder:u,state:I,clearValue:E,setCharacterQuery:d,setSelectedSections:M,updateValueFromValueStr:V},internalPropsWithDefaults:{disabled:R=!1,readOnly:h=!1}}=e,z=pA({manager:t,internalPropsWithDefaults:a,stateResponse:s}),f=er(),Z=Ze(A=>{R||!n.isReady()||(o(!0),c==="all"?f.start(0,()=>{const x=document.getSelection().getRangeAt(0).startOffset;if(x===0){M(u.startIndex);return}let K=0,Y=0;for(;Y<x&&K<I.sections.length;){const q=I.sections[K];K+=1,Y+=`${q.startSeparator}${q.value||q.placeholder}${q.endSeparator}`.length}M(K-1)}):r?n.getRoot().contains(A.target)||M(u.startIndex):(o(!0),M(u.startIndex)))}),g=Ze(A=>{if(!n.isReady()||c!=="all")return;const K=A.target.textContent??"";n.getRoot().innerHTML=I.sections.map(Y=>`${Y.startSeparator}${Y.value||Y.placeholder}${Y.endSeparator}`).join(""),BM({focused:r,domGetters:n,stateResponse:s}),K.length===0||K.charCodeAt(0)===10?(E(),M("all")):K.length>1?V(K):(c==="all"&&M(0),l({keyPressed:K,sectionIndex:0}))}),p=Ze(A=>{if(h||c!=="all"){A.preventDefault();return}const x=A.clipboardData.getData("text");A.preventDefault(),d(null),V(x)}),F=Ze(()=>{if(r||R||!n.isReady())return;const A=fi(n.getRoot());o(!0),n.getSectionIndexFromDOMElement(A)!=null||M(u.startIndex)}),v=Ze(()=>{setTimeout(()=>{if(!n.isReady())return;const A=fi(n.getRoot());!n.getRoot().contains(A)&&(o(!1),M(null))})});return{onKeyDown:z,onBlur:v,onFocus:F,onClick:Z,onPaste:p,onInput:g,contentEditable:c==="all",tabIndex:c===0?-1:0}}function l0(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:r,state:o,updateValueFromValueStr:n}}=e,s=Ze(a=>{n(a.target.value)});return{value:m.useMemo(()=>r?"":t.getV7HiddenInputValueFromSections(o.sections),[r,o.sections,t]),onChange:s}}function a0(e){const{stateResponse:{setSelectedSections:t},internalPropsWithDefaults:{disabled:r=!1}}=e,o=m.useCallback(n=>s=>{r||s.isDefaultPrevented()||t(n)},[r,t]);return m.useCallback(n=>({"data-sectionindex":n,onClick:o(n)}),[o])}function c0(e){const t=Ci(),r=Aa(),o=et(),{focused:n,domGetters:s,stateResponse:l,applyCharacterEditing:a,manager:{internal_fieldValueManager:c},stateResponse:{parsedSelectedSections:u,sectionsValueBoundaries:I,state:E,value:d,clearActiveSection:M,setCharacterQuery:V,setSelectedSections:R,updateSectionValue:h,updateValueFromValueStr:z},internalPropsWithDefaults:{disabled:f=!1,readOnly:Z=!1}}=e,g=u==="all",p=!g&&!f&&!Z,F=Ze(q=>{if(!s.isReady())return;const k=E.sections[q];s.getSectionContent(q).innerHTML=k.value||k.placeholder,BM({focused:n,domGetters:s,stateResponse:l})}),v=Ze(q=>{if(!s.isReady())return;const k=q.target,U=k.textContent??"",W=s.getSectionIndexFromDOMElement(k),b=E.sections[W];if(Z){F(W);return}if(U.length===0){if(b.value===""){F(W);return}const Q=q.nativeEvent.inputType;if(Q==="insertParagraph"||Q==="insertLineBreak"){F(W);return}F(W),M();return}a({keyPressed:U,sectionIndex:W}),F(W)}),A=Ze(q=>{q.preventDefault()}),x=Ze(q=>{if(q.preventDefault(),Z||f||typeof u!="number")return;const k=E.sections[u],U=q.clipboardData.getData("text"),W=/^[a-zA-Z]+$/.test(U),b=/^[0-9]+$/.test(U),Q=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(U);k.contentType==="letter"&&W||k.contentType==="digit"&&b||k.contentType==="digit-with-letter"&&Q?(V(null),h({section:k,newSectionValue:U,shouldGoToNextSection:!0})):!W&&!b&&(V(null),z(U))}),K=Ze(q=>{q.preventDefault(),q.dataTransfer.dropEffect="none"}),Y=m.useCallback(q=>()=>{f||R(q)},[f,R]);return m.useCallback((q,k)=>{const U=I[q.type]({currentDate:c.getDateFromSection(d,q),contentType:q.contentType,format:q.format});return{onInput:v,onPaste:x,onMouseUp:A,onDragOver:K,onFocus:Y(k),"aria-labelledby":`${o}-${q.type}`,"aria-readonly":Z,"aria-valuenow":I0(q,t),"aria-valuemin":U.minimum,"aria-valuemax":U.maximum,"aria-valuetext":q.value?u0(q,t):r.empty,"aria-label":r[q.type],"aria-disabled":f,tabIndex:g||k>0?-1:0,contentEditable:!g&&!f&&!Z,role:"spinbutton",id:`${o}-${q.type}`,"data-range-position":q.dateName||void 0,spellCheck:p?!1:void 0,autoCapitalize:p?"off":void 0,autoCorrect:p?"off":void 0,children:q.value||q.placeholder,inputMode:q.contentType==="letter"?"text":"numeric"}},[I,o,g,f,Z,p,r,t,v,x,A,K,Y,c,d])}function u0(e,t){if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const r=t.parse(e.value,e.format);return r?t.format(r,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}}function I0(e,t){if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const r=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return r?t.getHours(r)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const r=t.parse(e.value,e.format);return r?t.getMonth(r)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}}const m0=e=>{const{props:t,manager:r,skipContextFieldRefAssignment:o,manager:{valueType:n,internal_useOpenPickerButtonAriaLabel:s}}=e,{internalProps:l,forwardedProps:a}=w3(t,n),c=ZA({manager:r,internalProps:l,skipContextFieldRefAssignment:o}),{sectionListRef:u,onBlur:I,onClick:E,onFocus:d,onInput:M,onPaste:V,onKeyDown:R,onClear:h,clearable:z}=a,{disabled:f=!1,readOnly:Z=!1,autoFocus:g=!1,focused:p,unstableFieldRef:F}=c,v=m.useRef(null),A=tt(u,v),x=m.useMemo(()=>({isReady:()=>v.current!=null,getRoot:()=>v.current.getRoot(),getSectionContainer:$=>v.current.getSectionContainer($),getSectionContent:$=>v.current.getSectionContent($),getSectionIndexFromDOMElement:$=>v.current.getSectionIndexFromDOMElement($)}),[v]),K=fA({manager:r,internalPropsWithDefaults:c,forwardedProps:a}),{areAllSectionsEmpty:Y,error:q,parsedSelectedSections:k,sectionOrder:U,state:W,value:b,clearValue:Q,setSelectedSections:P}=K,J=MA({stateResponse:K}),S=s(b),[j,T]=m.useState(!1);function H($=0){if(f||!v.current||qA(v)!=null)return;const Ve=PM($,W.sections);T(!0),v.current.getSectionContent(Ve).focus()}const G=s0({manager:r,internalPropsWithDefaults:c,stateResponse:K,applyCharacterEditing:J,focused:j,setFocused:T,domGetters:x}),O=l0({manager:r,stateResponse:K}),B=a0({stateResponse:K,internalPropsWithDefaults:c}),N=c0({manager:r,stateResponse:K,applyCharacterEditing:J,internalPropsWithDefaults:c,domGetters:x,focused:j}),ee=Ze($=>{R?.($),G.onKeyDown($)}),D=Ze($=>{I?.($),G.onBlur($)}),X=Ze($=>{d?.($),G.onFocus($)}),re=Ze($=>{$.isDefaultPrevented()||(E?.($),G.onClick($))}),L=Ze($=>{V?.($),G.onPaste($)}),se=Ze($=>{M?.($),G.onInput($)}),ie=Ze(($,...Ve)=>{$.preventDefault(),h?.($,...Ve),Q(),AA(v)?P(U.startIndex):H(0)}),Me=m.useMemo(()=>W.sections.map(($,Ve)=>{const le=N($,Ve);return{container:B(Ve),content:N($,Ve),before:{children:$.startSeparator},after:{children:$.endSeparator,"data-range-position":$.isEndFormatSeparator?le["data-range-position"]:void 0}}}),[W.sections,B,N]);return m.useEffect(()=>{if(v.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please add the `enableAccessibleFieldDOMStructure={false}` prop to your Picker or Field component:","","<DatePicker enableAccessibleFieldDOMStructure={false} slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
501
501
  `));g&&!f&&v.current&&v.current.getSectionContent(U.startIndex).focus()},[]),lt(()=>{if(!(!j||!v.current)){if(k==="all")v.current.getRoot().focus();else if(typeof k=="number"){const $=v.current.getSectionContent(k);$&&$.focus()}}},[k,j]),lt(()=>{BM({focused:j,domGetters:x,stateResponse:K})}),m.useImperativeHandle(F,()=>({getSections:()=>W.sections,getActiveSectionIndex:()=>qA(v),setSelectedSections:$=>{if(f||!v.current)return;const Ve=PM($,W.sections);T((Ve==="all"?0:Ve)!==null),P($)},focusField:H,isFieldFocused:()=>AA(v)})),y({},a,G,{onBlur:D,onClick:re,onFocus:X,onInput:se,onPaste:L,onKeyDown:ee,onClear:ie},O,{error:q,clearable:!!(z&&!Y&&!Z&&!f),focused:p??j,sectionListRef:A,enableAccessibleFieldDOMStructure:!0,elements:Me,areAllSectionsEmpty:Y,disabled:f,readOnly:Z,autoFocus:g,openPickerAriaLabel:S})};function qA(e){const t=fi(e.current?.getRoot());return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function AA(e){const t=fi(e.current?.getRoot());return!!e.current&&e.current.getRoot().contains(t)}const Ts=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),E0=(e,t,r)=>{let o=0,n=r?1:0;const s=[];for(let l=0;l<e.length;l+=1){const a=e[l],c=JM(a,r?"input-rtl":"input-ltr",t),u=`${a.startSeparator}${c}${a.endSeparator}`,I=Ts(u).length,E=u.length,d=Ts(c),M=n+(d===""?0:c.indexOf(d[0]))+a.startSeparator.length,V=M+d.length;s.push(y({},a,{start:o,end:o+I,startInInput:M,endInInput:V})),o+=I,n+=E}return s},d0=e=>{const t=_t(),r=er(),o=er(),{props:n,manager:s,skipContextFieldRefAssignment:l,manager:{valueType:a,internal_valueManager:c,internal_fieldValueManager:u,internal_useOpenPickerButtonAriaLabel:I}}=e,{internalProps:E,forwardedProps:d}=w3(n,a),M=ZA({manager:s,internalProps:E,skipContextFieldRefAssignment:l}),{onFocus:V,onClick:R,onPaste:h,onBlur:z,onKeyDown:f,onClear:Z,clearable:g,inputRef:p,placeholder:F}=d,{readOnly:v=!1,disabled:A=!1,autoFocus:x=!1,focused:K,unstableFieldRef:Y}=M,q=m.useRef(null),k=tt(p,q),U=fA({manager:s,internalPropsWithDefaults:M,forwardedProps:d}),{activeSectionIndex:W,areAllSectionsEmpty:b,error:Q,localizedDigits:P,parsedSelectedSections:J,sectionOrder:S,state:j,value:T,clearValue:H,clearActiveSection:G,setCharacterQuery:O,setSelectedSections:B,setTempAndroidValueStr:N,updateSectionValue:ee,updateValueFromValueStr:D,getSectionsFromValue:X}=U,re=MA({stateResponse:U}),L=I(T),se=m.useMemo(()=>E0(j.sections,P,t),[j.sections,P,t]);function ie(){const Ee=q.current.selectionStart??0;let Ce;Ee<=se[0].startInInput||Ee>=se[se.length-1].endInInput?Ce=1:Ce=se.findIndex(Ae=>Ae.startInInput-Ae.startSeparator.length>Ee);const ae=Ce===-1?se.length-1:Ce-1;B(ae)}function Me(Ee=0){fi(q.current)!==q.current&&(q.current?.focus(),B(Ee))}const $=Ze(Ee=>{V?.(Ee);const Ce=q.current;r.start(0,()=>{!Ce||Ce!==q.current||W==null&&(Ce.value.length&&Number(Ce.selectionEnd)-Number(Ce.selectionStart)===Ce.value.length?B("all"):ie())})}),Ve=Ze((Ee,...Ce)=>{Ee.isDefaultPrevented()||(R?.(Ee,...Ce),ie())}),le=Ze(Ee=>{if(h?.(Ee),Ee.preventDefault(),v||A)return;const Ce=Ee.clipboardData.getData("text");if(typeof J=="number"){const ae=j.sections[J],Ae=/^[a-zA-Z]+$/.test(Ce),Ke=/^[0-9]+$/.test(Ce),Pe=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Ce);if(ae.contentType==="letter"&&Ae||ae.contentType==="digit"&&Ke||ae.contentType==="digit-with-letter"&&Pe){O(null),ee({section:ae,newSectionValue:Ce,shouldGoToNextSection:!0});return}if(Ae||Ke)return}O(null),D(Ce)}),ve=Ze(Ee=>{z?.(Ee),B(null)}),ge=Ze(Ee=>{if(v)return;const Ce=Ee.target.value;if(Ce===""){H();return}const ae=Ee.nativeEvent.data,Ae=ae&&ae.length>1,Ke=Ae?ae:Ce,Pe=Ts(Ke);if(J==="all"&&B(W),W==null||Ae){D(Ae?ae:Pe);return}let St;if(J==="all"&&Pe.length===1)St=Pe;else{const qe=Ts(u.getV6InputValueFromSections(se,P,t));let Ye=-1,ct=-1;for(let Wt=0;Wt<qe.length;Wt+=1)Ye===-1&&qe[Wt]!==Pe[Wt]&&(Ye=Wt),ct===-1&&qe[qe.length-Wt-1]!==Pe[Pe.length-Wt-1]&&(ct=Wt);const Pt=se[W];if(Ye<Pt.start||qe.length-ct-1>Pt.end)return;const hr=Pe.length-qe.length+Pt.end-Ts(Pt.endSeparator||"").length;St=Pe.slice(Pt.start+Ts(Pt.startSeparator||"").length,hr)}if(St.length===0){_B()&&N(Ke),G();return}re({keyPressed:St,sectionIndex:W})}),be=Ze((Ee,...Ce)=>{Ee.preventDefault(),Z?.(Ee,...Ce),H(),gA(q)?B(S.startIndex):Me(0)}),ne=pA({manager:s,internalPropsWithDefaults:M,stateResponse:U}),We=Ze(Ee=>{f?.(Ee),ne(Ee)}),ye=m.useMemo(()=>F!==void 0?F:u.getV6InputValueFromSections(X(c.emptyValue),P,t),[F,u,X,c.emptyValue,P,t]),Qe=m.useMemo(()=>j.tempValueStrAndroid??u.getV6InputValueFromSections(j.sections,P,t),[j.sections,u,j.tempValueStrAndroid,P,t]);m.useEffect(()=>{q.current&&q.current===fi(q.current)&&B("all")},[]),lt(()=>{function Ee(){if(!q.current)return;if(J==null){q.current.scrollLeft&&(q.current.scrollLeft=0);return}if(q.current!==fi(q.current))return;const Ce=q.current.scrollTop;if(J==="all")q.current.select();else{const ae=se[J],Ae=ae.type==="empty"?ae.startInInput-ae.startSeparator.length:ae.startInInput,Ke=ae.type==="empty"?ae.endInInput+ae.endSeparator.length:ae.endInInput;(Ae!==q.current.selectionStart||Ke!==q.current.selectionEnd)&&q.current===fi(q.current)&&q.current.setSelectionRange(Ae,Ke),o.start(0,()=>{q.current&&q.current===fi(q.current)&&q.current.selectionStart===q.current.selectionEnd&&(q.current.selectionStart!==Ae||q.current.selectionEnd!==Ke)&&Ee()})}q.current.scrollTop=Ce}Ee()});const Je=m.useMemo(()=>W==null||j.sections[W].contentType==="letter"?"text":"numeric",[W,j.sections]),De=!(q.current&&q.current===fi(q.current))&&b;return m.useImperativeHandle(Y,()=>({getSections:()=>j.sections,getActiveSectionIndex:()=>{const Ee=q.current.selectionStart??0,Ce=q.current.selectionEnd??0;if(Ee===0&&Ce===0)return null;const ae=Ee<=se[0].startInInput?1:se.findIndex(Ae=>Ae.startInInput-Ae.startSeparator.length>Ee);return ae===-1?se.length-1:ae-1},setSelectedSections:Ee=>B(Ee),focusField:Me,isFieldFocused:()=>gA(q)})),y({},d,{error:Q,clearable:!!(g&&!b&&!v&&!A),onBlur:ve,onClick:Ve,onFocus:$,onPaste:le,onKeyDown:We,onClear:be,inputRef:k,enableAccessibleFieldDOMStructure:!1,placeholder:ye,inputMode:Je,autoComplete:"off",value:De?"":Qe,onChange:ge,focused:K,disabled:A,readOnly:v,autoFocus:x,openPickerAriaLabel:L})};function gA(e){return e.current===fi(e.current)}const yA=e=>{const t=k3();return(e.props.enableAccessibleFieldDOMStructure??t?.enableAccessibleFieldDOMStructure??!0?m0:d0)(e)},vA=()=>WM().defaultDates;function M0(e){const t=Ci(),r=vA();return m.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,minDate:eI(t,e.minDate,r.minDate),maxDate:eI(t,e.maxDate,r.maxDate)}),[e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,r])}function R0(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return m.useMemo(()=>({valueType:"date-time",validator:CA,internal_valueManager:uI,internal_fieldValueManager:t0,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:V0,internal_useOpenPickerButtonAriaLabel:h0}),[t])}function h0(e){const t=Ci(),r=Aa();return m.useMemo(()=>{const o=t.isValid(e)?t.format(e,"fullDate"):null;return r.openDatePickerDialogue(o)},[e,r,t])}function V0(e){const t=Ci(),r=z0(e),o=m.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return m.useMemo(()=>y({},e,r,{format:e.format??(o?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h)}),[e,r,o,t])}function z0(e){const t=Ci(),r=vA();return m.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,disableIgnoringDatePartForTimeValidation:!!e.minDateTime||!!e.maxDateTime||!!e.disableFuture||!!e.disablePast,minDate:eI(t,e.minDateTime??e.minDate,r.minDate),maxDate:eI(t,e.maxDateTime??e.maxDate,r.maxDate),minTime:e.minDateTime??e.minTime,maxTime:e.maxDateTime??e.maxTime}),[e.minDateTime,e.maxDateTime,e.minTime,e.maxTime,e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,r])}const mI=e=>{const t=[],r=[];return e.forEach(o=>{o.dateName==="start"?t.push(o):r.push(o)}),{startDate:t,endDate:r}},C0=e=>e.map((t,r)=>r===e.length-1?y({},t,{separator:null}):t),f0=["value","referenceDate"],FA={emptyValue:[null,null],getTodayValue:(e,t,r)=>[tI(e,t,r),tI(e,t,r)],getInitialReferenceValue:e=>{let{value:t,referenceDate:r}=e,o=Ie(e,f0);const n=o.adapter.isValid(t[0]),s=o.adapter.isValid(t[1]);if(n&&s)return t;const l=r??VA(o),a=Array.isArray(l)?l[0]:l,c=Array.isArray(l)?l[1]:l;return[n?t[0]:a,s?t[1]:c]},cleanValue:(e,t)=>t.map(r=>G3(e,r)),areValuesEqual:(e,t,r)=>kM(e,t[0],r[0])&&kM(e,t[1],r[1]),isSameError:(e,t)=>t!==null&&e[1]===t[1]&&e[0]===t[0],hasError:e=>e[0]!=null||e[1]!=null,defaultErrorState:[null,null],getTimezone:(e,t)=>{const r=e.isValid(t[0])?e.getTimezone(t[0]):null,o=e.isValid(t[1])?e.getTimezone(t[1]):null;if(r!=null&&o!=null&&r!==o)throw new Error("MUI X: The timezone of the start and the end date should be the same.");return r??o},setTimezone:(e,t,r)=>[r[0]==null?null:e.setTimezone(r[0],t),r[1]==null?null:e.setTimezone(r[1],t)]},Z0=({dateSeparator:e="–"})=>({updateReferenceValue:(t,r,o)=>{const n=t.isValid(r[0]),s=t.isValid(r[1]);return!n&&!s?o:n&&s?r:n?[r[0],o[0]]:[o[1],r[1]]},getSectionsFromValue:([t,r],o)=>{const n=(s,l)=>{const a=o(s);return a.map((c,u)=>u===a.length-1&&l==="start"?y({},c,{dateName:l,endSeparator:`${c.endSeparator} ${e} `}):y({},c,{dateName:l}))};return[...n(t,"start"),...n(r,"end")]},getV7HiddenInputValueFromSections:t=>{const r=mI(t);return $3([...r.startDate,...r.endDate])},getV6InputValueFromSections:(t,r,o)=>{const n=mI(t);return _3([...n.startDate,...n.endDate],r,o)},parseValueStr:(t,r,o)=>{const[n,s]=t.split(e);return[n,s].map((l,a)=>l==null?null:o(l.trim(),r[a]))},getDateFromSection:(t,r)=>t[EI(r)],getDateSectionsFromValue:(t,r)=>{const o=mI(t);return EI(r)===0?C0(o.startDate):o.endDate},updateDateInValue:(t,r,o)=>EI(r)===0?[o,t[1]]:[t[0],o],clearDateSections:(t,r)=>{const o=mI(t);return EI(r)===0?[...o.startDate.map(n=>y({},n,{value:""})),...o.endDate]:[...o.startDate,...o.endDate.map(n=>y({},n,{value:""}))]}});function EI(e){return e==null||e.dateName==="start"?0:1}const xA=(e,t)=>e.isValid(t[0])&&e.isValid(t[1])&&!e.isBefore(t[1],t[0]),p0=(e,t,r)=>xA(e,t)?`${e.format(t[0],r)} - ${e.format(t[1],r)}`:null,q0=["shouldDisableDate"],KA=({adapter:e,value:t,timezone:r,props:o})=>{const[n,s]=t,{shouldDisableDate:l}=o,a=Ie(o,q0),c=[II({adapter:e,value:n,timezone:r,props:y({},a,{shouldDisableDate:u=>!!l?.(u,"start")})}),II({adapter:e,value:s,timezone:r,props:y({},a,{shouldDisableDate:u=>!!l?.(u,"end")})})];return c[0]||c[1]?c:n===null||s===null?[null,null]:xA(e,t)?[null,null]:["invalidRange","invalidRange"]};KA.valueManager=FA;function A0(e={}){const{enableAccessibleFieldDOMStructure:t=!0,dateSeparator:r}=e;return m.useMemo(()=>({valueType:"date",validator:KA,internal_valueManager:FA,internal_fieldValueManager:Z0({dateSeparator:r}),internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:y0,internal_useOpenPickerButtonAriaLabel:g0}),[t,r])}function g0(e){const t=Ci(),r=Aa();return m.useMemo(()=>r.openRangePickerDialogue(p0(t,e,"fullDate")),[e,r,t])}function y0(e){const t=Ci(),r=M0(e);return m.useMemo(()=>y({},e,r,{format:e.format??t.formats.keyboardDate}),[e,r,t])}const v0=e=>{const t=A0(e);return yA({manager:t,props:e})},F0=["slots","slotProps"],dI=m.forwardRef(function(t,r){const o=io({props:t,name:"MuiSingleInputDateRangeField"}),{slots:n,slotProps:s}=o,l=Ie(o,F0),a=EA({slotProps:s,ref:r,externalForwardedProps:l}),c=v0(a);return C.jsx(mA,{slots:n,slotProps:s,fieldResponse:c,defaultOpenPickerIcon:QB})});process.env.NODE_ENV!=="production"&&(dI.displayName="SingleInputDateRangeField"),dI.fieldType="single-input",process.env.NODE_ENV!=="production"&&(dI.propTypes={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,dateSeparator:i.string,defaultValue:i.arrayOf(i.object),disabled:i.bool,disableFuture: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:Tt,label:i.node,margin:i.oneOf(["dense","none","normal"]),maxDate:i.object,minDate:i.object,name:i.string,onBlur:i.func,onChange:i.func,onClear:i.func,onError:i.func,onFocus:i.func,onSelectedSectionsChange:i.func,readOnly:i.bool,referenceDate:i.oneOfType([i.arrayOf(i.object),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,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.arrayOf(i.object),variant:i.oneOf(["filled","outlined","standard"])});var MI={exports:{}},x0=MI.exports,bA;function K0(){return bA||(bA=1,function(e,t){(function(r,o){e.exports=o()})(x0,function(){var r=1e3,o=6e4,n=36e5,s="millisecond",l="second",a="minute",c="hour",u="day",I="week",E="month",d="quarter",M="year",V="date",R="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,z=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(U){var W=["th","st","nd","rd"],b=U%100;return"["+U+(W[(b-20)%10]||W[b]||W[0])+"]"}},Z=function(U,W,b){var Q=String(U);return!Q||Q.length>=W?U:""+Array(W+1-Q.length).join(b)+U},g={s:Z,z:function(U){var W=-U.utcOffset(),b=Math.abs(W),Q=Math.floor(b/60),P=b%60;return(W<=0?"+":"-")+Z(Q,2,"0")+":"+Z(P,2,"0")},m:function U(W,b){if(W.date()<b.date())return-U(b,W);var Q=12*(b.year()-W.year())+(b.month()-W.month()),P=W.clone().add(Q,E),J=b-P<0,S=W.clone().add(Q+(J?-1:1),E);return+(-(Q+(b-P)/(J?P-S:S-P))||0)},a:function(U){return U<0?Math.ceil(U)||0:Math.floor(U)},p:function(U){return{M:E,y:M,w:I,d:u,D:V,h:c,m:a,s:l,ms:s,Q:d}[U]||String(U||"").toLowerCase().replace(/s$/,"")},u:function(U){return U===void 0}},p="en",F={};F[p]=f;var v="$isDayjsObject",A=function(U){return U instanceof q||!(!U||!U[v])},x=function U(W,b,Q){var P;if(!W)return p;if(typeof W=="string"){var J=W.toLowerCase();F[J]&&(P=J),b&&(F[J]=b,P=J);var S=W.split("-");if(!P&&S.length>1)return U(S[0])}else{var j=W.name;F[j]=W,P=j}return!Q&&P&&(p=P),P||!Q&&p},K=function(U,W){if(A(U))return U.clone();var b=typeof W=="object"?W:{};return b.date=U,b.args=arguments,new q(b)},Y=g;Y.l=x,Y.i=A,Y.w=function(U,W){return K(U,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var q=function(){function U(b){this.$L=x(b.locale,null,!0),this.parse(b),this.$x=this.$x||b.x||{},this[v]=!0}var W=U.prototype;return W.parse=function(b){this.$d=function(Q){var P=Q.date,J=Q.utc;if(P===null)return new Date(NaN);if(Y.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var S=P.match(h);if(S){var j=S[2]-1||0,T=(S[7]||"0").substring(0,3);return J?new Date(Date.UTC(S[1],j,S[3]||1,S[4]||0,S[5]||0,S[6]||0,T)):new Date(S[1],j,S[3]||1,S[4]||0,S[5]||0,S[6]||0,T)}}return new Date(P)}(b),this.init()},W.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},W.$utils=function(){return Y},W.isValid=function(){return this.$d.toString()!==R},W.isSame=function(b,Q){var P=K(b);return this.startOf(Q)<=P&&P<=this.endOf(Q)},W.isAfter=function(b,Q){return K(b)<this.startOf(Q)},W.isBefore=function(b,Q){return this.endOf(Q)<K(b)},W.$g=function(b,Q,P){return Y.u(b)?this[Q]:this.set(P,b)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(b,Q){var P=this,J=!!Y.u(Q)||Q,S=Y.p(b),j=function(D,X){var re=Y.w(P.$u?Date.UTC(P.$y,X,D):new Date(P.$y,X,D),P);return J?re:re.endOf(u)},T=function(D,X){return Y.w(P.toDate()[D].apply(P.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(X)),P)},H=this.$W,G=this.$M,O=this.$D,B="set"+(this.$u?"UTC":"");switch(S){case M:return J?j(1,0):j(31,11);case E:return J?j(1,G):j(0,G+1);case I:var N=this.$locale().weekStart||0,ee=(H<N?H+7:H)-N;return j(J?O-ee:O+(6-ee),G);case u:case V:return T(B+"Hours",0);case c:return T(B+"Minutes",1);case a:return T(B+"Seconds",2);case l:return T(B+"Milliseconds",3);default:return this.clone()}},W.endOf=function(b){return this.startOf(b,!1)},W.$set=function(b,Q){var P,J=Y.p(b),S="set"+(this.$u?"UTC":""),j=(P={},P[u]=S+"Date",P[V]=S+"Date",P[E]=S+"Month",P[M]=S+"FullYear",P[c]=S+"Hours",P[a]=S+"Minutes",P[l]=S+"Seconds",P[s]=S+"Milliseconds",P)[J],T=J===u?this.$D+(Q-this.$W):Q;if(J===E||J===M){var H=this.clone().set(V,1);H.$d[j](T),H.init(),this.$d=H.set(V,Math.min(this.$D,H.daysInMonth())).$d}else j&&this.$d[j](T);return this.init(),this},W.set=function(b,Q){return this.clone().$set(b,Q)},W.get=function(b){return this[Y.p(b)]()},W.add=function(b,Q){var P,J=this;b=Number(b);var S=Y.p(Q),j=function(G){var O=K(J);return Y.w(O.date(O.date()+Math.round(G*b)),J)};if(S===E)return this.set(E,this.$M+b);if(S===M)return this.set(M,this.$y+b);if(S===u)return j(1);if(S===I)return j(7);var T=(P={},P[a]=o,P[c]=n,P[l]=r,P)[S]||1,H=this.$d.getTime()+b*T;return Y.w(H,this)},W.subtract=function(b,Q){return this.add(-1*b,Q)},W.format=function(b){var Q=this,P=this.$locale();if(!this.isValid())return P.invalidDate||R;var J=b||"YYYY-MM-DDTHH:mm:ssZ",S=Y.z(this),j=this.$H,T=this.$m,H=this.$M,G=P.weekdays,O=P.months,B=P.meridiem,N=function(X,re,L,se){return X&&(X[re]||X(Q,J))||L[re].slice(0,se)},ee=function(X){return Y.s(j%12||12,X,"0")},D=B||function(X,re,L){var se=X<12?"AM":"PM";return L?se.toLowerCase():se};return J.replace(z,function(X,re){return re||function(L){switch(L){case"YY":return String(Q.$y).slice(-2);case"YYYY":return Y.s(Q.$y,4,"0");case"M":return H+1;case"MM":return Y.s(H+1,2,"0");case"MMM":return N(P.monthsShort,H,O,3);case"MMMM":return N(O,H);case"D":return Q.$D;case"DD":return Y.s(Q.$D,2,"0");case"d":return String(Q.$W);case"dd":return N(P.weekdaysMin,Q.$W,G,2);case"ddd":return N(P.weekdaysShort,Q.$W,G,3);case"dddd":return G[Q.$W];case"H":return String(j);case"HH":return Y.s(j,2,"0");case"h":return ee(1);case"hh":return ee(2);case"a":return D(j,T,!0);case"A":return D(j,T,!1);case"m":return String(T);case"mm":return Y.s(T,2,"0");case"s":return String(Q.$s);case"ss":return Y.s(Q.$s,2,"0");case"SSS":return Y.s(Q.$ms,3,"0");case"Z":return S}return null}(X)||S.replace(":","")})},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(b,Q,P){var J,S=this,j=Y.p(Q),T=K(b),H=(T.utcOffset()-this.utcOffset())*o,G=this-T,O=function(){return Y.m(S,T)};switch(j){case M:J=O()/12;break;case E:J=O();break;case d:J=O()/3;break;case I:J=(G-H)/6048e5;break;case u:J=(G-H)/864e5;break;case c:J=G/n;break;case a:J=G/o;break;case l:J=G/r;break;default:J=G}return P?J:Y.a(J)},W.daysInMonth=function(){return this.endOf(E).$D},W.$locale=function(){return F[this.$L]},W.locale=function(b,Q){if(!b)return this.$L;var P=this.clone(),J=x(b,Q,!0);return J&&(P.$L=J),P},W.clone=function(){return Y.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},U}(),k=q.prototype;return K.prototype=k,[["$ms",s],["$s",l],["$m",a],["$H",c],["$W",u],["$M",E],["$y",M],["$D",V]].forEach(function(U){k[U[1]]=function(W){return this.$g(W,U[0],U[1])}}),K.extend=function(U,W){return U.$i||(U(W,q,K),U.$i=!0),K},K.locale=x,K.isDayjs=A,K.unix=function(U){return K(1e3*U)},K.en=F[p],K.Ls=F,K.p={},K})}(MI)),MI.exports}var b0=K0();const ur=po(b0);var RI={exports:{}},Y0=RI.exports,YA;function S0(){return YA||(YA=1,function(e,t){(function(r,o){e.exports=o()})(Y0,function(){var r="week",o="year";return function(n,s,l){var a=s.prototype;a.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var I=l(this).startOf(o).add(1,o).date(u),E=l(this).endOf(r);if(I.isBefore(E))return 1}var d=l(this).startOf(o).date(u).startOf(r).subtract(1,"millisecond"),M=this.diff(d,r,!0);return M<0?l(this).startOf("week").week():Math.ceil(M)},a.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})}(RI)),RI.exports}var W0=S0();const k0=po(W0);var hI={exports:{}},j0=hI.exports,SA;function U0(){return SA||(SA=1,function(e,t){(function(r,o){e.exports=o()})(j0,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,s=/\d\d/,l=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,c={},u=function(h){return(h=+h)+(h>68?1900:2e3)},I=function(h){return function(z){this[h]=+z}},E=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(z){if(!z||z==="Z")return 0;var f=z.match(/([+-]|\d\d)/g),Z=60*f[1]+(+f[2]||0);return Z===0?0:f[0]==="+"?-Z:Z}(h)}],d=function(h){var z=c[h];return z&&(z.indexOf?z:z.s.concat(z.f))},M=function(h,z){var f,Z=c.meridiem;if(Z){for(var g=1;g<=24;g+=1)if(h.indexOf(Z(g,0,z))>-1){f=g>12;break}}else f=h===(z?"pm":"PM");return f},V={A:[a,function(h){this.afternoon=M(h,!1)}],a:[a,function(h){this.afternoon=M(h,!0)}],Q:[n,function(h){this.month=3*(h-1)+1}],S:[n,function(h){this.milliseconds=100*+h}],SS:[s,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[l,I("seconds")],ss:[l,I("seconds")],m:[l,I("minutes")],mm:[l,I("minutes")],H:[l,I("hours")],h:[l,I("hours")],HH:[l,I("hours")],hh:[l,I("hours")],D:[l,I("day")],DD:[s,I("day")],Do:[a,function(h){var z=c.ordinal,f=h.match(/\d+/);if(this.day=f[0],z)for(var Z=1;Z<=31;Z+=1)z(Z).replace(/\[|\]/g,"")===h&&(this.day=Z)}],w:[l,I("week")],ww:[s,I("week")],M:[l,I("month")],MM:[s,I("month")],MMM:[a,function(h){var z=d("months"),f=(d("monthsShort")||z.map(function(Z){return Z.slice(0,3)})).indexOf(h)+1;if(f<1)throw new Error;this.month=f%12||f}],MMMM:[a,function(h){var z=d("months").indexOf(h)+1;if(z<1)throw new Error;this.month=z%12||z}],Y:[/[+-]?\d+/,I("year")],YY:[s,function(h){this.year=u(h)}],YYYY:[/\d{4}/,I("year")],Z:E,ZZ:E};function R(h){var z,f;z=h,f=c&&c.formats;for(var Z=(h=z.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(K,Y,q){var k=q&&q.toUpperCase();return Y||f[q]||r[q]||f[k].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(U,W,b){return W||b.slice(1)})})).match(o),g=Z.length,p=0;p<g;p+=1){var F=Z[p],v=V[F],A=v&&v[0],x=v&&v[1];Z[p]=x?{regex:A,parser:x}:F.replace(/^\[|\]$/g,"")}return function(K){for(var Y={},q=0,k=0;q<g;q+=1){var U=Z[q];if(typeof U=="string")k+=U.length;else{var W=U.regex,b=U.parser,Q=K.slice(k),P=W.exec(Q)[0];b.call(Y,P),K=K.replace(P,"")}}return function(J){var S=J.afternoon;if(S!==void 0){var j=J.hours;S?j<12&&(J.hours+=12):j===12&&(J.hours=0),delete J.afternoon}}(Y),Y}}return function(h,z,f){f.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var Z=z.prototype,g=Z.parse;Z.parse=function(p){var F=p.date,v=p.utc,A=p.args;this.$u=v;var x=A[1];if(typeof x=="string"){var K=A[2]===!0,Y=A[3]===!0,q=K||Y,k=A[2];Y&&(k=A[2]),c=this.$locale(),!K&&k&&(c=f.Ls[k]),this.$d=function(Q,P,J,S){try{if(["x","X"].indexOf(P)>-1)return new Date((P==="X"?1e3:1)*Q);var j=R(P)(Q),T=j.year,H=j.month,G=j.day,O=j.hours,B=j.minutes,N=j.seconds,ee=j.milliseconds,D=j.zone,X=j.week,re=new Date,L=G||(T||H?1:re.getDate()),se=T||re.getFullYear(),ie=0;T&&!H||(ie=H>0?H-1:re.getMonth());var Me,$=O||0,Ve=B||0,le=N||0,ve=ee||0;return D?new Date(Date.UTC(se,ie,L,$,Ve,le,ve+60*D.offset*1e3)):J?new Date(Date.UTC(se,ie,L,$,Ve,le,ve)):(Me=new Date(se,ie,L,$,Ve,le,ve),X&&(Me=S(Me).week(X).toDate()),Me)}catch{return new Date("")}}(F,x,v,f),this.init(),k&&k!==!0&&(this.$L=this.locale(k).$L),q&&F!=this.format(x)&&(this.$d=new Date("")),c={}}else if(x instanceof Array)for(var U=x.length,W=1;W<=U;W+=1){A[1]=x[W-1];var b=f.apply(this,A);if(b.isValid()){this.$d=b.$d,this.$L=b.$L,this.init();break}W===U&&(this.$d=new Date(""))}else g.call(this,p)}}})}(hI)),hI.exports}var Q0=U0();const J0=po(Q0);var VI={exports:{}},P0=VI.exports,WA;function w0(){return WA||(WA=1,function(e,t){(function(r,o){e.exports=o()})(P0,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(o,n,s){var l=n.prototype,a=l.format;s.en.formats=r,l.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,I=function(E,d){return E.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,V,R){var h=R&&R.toUpperCase();return V||d[R]||r[R]||d[h].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(z,f,Z){return f||Z.slice(1)})})}(c,u===void 0?{}:u);return a.call(this,I)}}})}(VI)),VI.exports}var T0=w0();const G0=po(T0);var zI={exports:{}},O0=zI.exports,kA;function H0(){return kA||(kA=1,function(e,t){(function(r,o){e.exports=o()})(O0,function(){return function(r,o,n){o.prototype.isBetween=function(s,l,a,c){var u=n(s),I=n(l),E=(c=c||"()")[0]==="(",d=c[1]===")";return(E?this.isAfter(u,a):!this.isBefore(u,a))&&(d?this.isBefore(I,a):!this.isAfter(I,a))||(E?this.isBefore(u,a):!this.isAfter(u,a))&&(d?this.isAfter(I,a):!this.isBefore(I,a))}}})}(zI)),zI.exports}var B0=H0();const L0=po(B0);var CI={exports:{}},X0=CI.exports,jA;function N0(){return jA||(jA=1,function(e,t){(function(r,o){e.exports=o()})(X0,function(){return function(r,o){var n=o.prototype,s=n.format;n.format=function(l){var a=this,c=this.$locale();if(!this.isValid())return s.bind(this)(l);var u=this.$utils(),I=(l||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(E){switch(E){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return c.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return c.ordinal(a.week(),"W");case"w":case"ww":return u.s(a.week(),E==="w"?1:2,"0");case"W":case"WW":return u.s(a.isoWeek(),E==="W"?1:2,"0");case"k":case"kk":return u.s(String(a.$H===0?24:a.$H),E==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return E}});return s.bind(this)(I)}}})}(CI)),CI.exports}var D0=N0();const $0=po(D0);ur.extend(G0),ur.extend(k0),ur.extend(L0),ur.extend($0);const _0={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},eL={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},LM=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
502
502
  `),UA=["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
- `);class QA{isMUIAdapter=!0;isTimezoneCompatible=!0;lib="dayjs";escapedCharacters={start:"[",end:"]"};formatTokenMap=_0;constructor({locale:t,formats:r}={}){this.locale=t,this.formats=y({},eL,r),ur.extend(J0)}setLocaleToValue=t=>{const r=this.getCurrentLocaleCode();return r===t.locale()?t:t.locale(r)};hasUTCPlugin=()=>typeof ur.utc<"u";hasTimezonePlugin=()=>typeof ur.tz<"u";isSame=(t,r,o)=>{const n=this.setTimezone(r,this.getTimezone(t));return t.format(o)===n.format(o)};cleanTimezone=t=>{switch(t){case"default":return;case"system":return ur.tz.guess();default:return t}};createSystemDate=t=>{let r;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=ur.tz.guess();o==="UTC"?r=ur(t):r=ur.tz(t,o)}else r=ur(t);return this.setLocaleToValue(r)};createUTCDate=t=>{if(!this.hasUTCPlugin())throw new Error(LM);return this.setLocaleToValue(ur.utc(t))};createTZDate=(t,r)=>{if(!this.hasUTCPlugin())throw new Error(LM);if(!this.hasTimezonePlugin())throw new Error(UA);const o=t!==void 0&&!t.endsWith("Z");return this.setLocaleToValue(ur(t).tz(this.cleanTimezone(r),o))};getLocaleFormats=()=>{const t=ur.Ls,r=this.locale||"en";let o=t[r];return o===void 0&&(process.env.NODE_ENV!=="production"&&Jr(["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."]),o=t.en),o.formats};adjustOffset=t=>{if(!this.hasTimezonePlugin())return t;const r=this.getTimezone(t);if(r!=="UTC"){const o=t.tz(this.cleanTimezone(r),!0);if(o.$offset===(t.$offset??0))return t;t.$offset=o.$offset}return t};date=(t,r="default")=>t===null?null:r==="UTC"?this.createUTCDate(t):r==="system"||r==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(t):this.createTZDate(t,r);getInvalidDate=()=>ur(new Date("Invalid date"));getTimezone=t=>{if(this.hasTimezonePlugin()){const r=t.$x?.$timezone;if(r)return r}return this.hasUTCPlugin()&&t.isUTC()?"UTC":"system"};setTimezone=(t,r)=>{if(this.getTimezone(t)===r)return t;if(r==="UTC"){if(!this.hasUTCPlugin())throw new Error(LM);return t.utc()}if(r==="system")return t.local();if(!this.hasTimezonePlugin()){if(r==="default")return t;throw new Error(UA)}return this.setLocaleToValue(ur.tz(t,this.cleanTimezone(r)))};toJsDate=t=>t.toDate();parse=(t,r)=>t===""?null:ur(t,r,this.locale,!0);getCurrentLocaleCode=()=>this.locale||"en";is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||"");expandFormat=t=>{const r=this.getLocaleFormats(),o=n=>n.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(s,l,a)=>l||a.slice(1));return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(n,s,l)=>{const a=l&&l.toUpperCase();return s||r[l]||o(r[a])})};isValid=t=>t==null?!1:t.isValid();format=(t,r)=>this.formatByString(t,this.formats[r]);formatByString=(t,r)=>this.setLocaleToValue(t).format(r);formatNumber=t=>t;isEqual=(t,r)=>t===null&&r===null?!0:t===null||r===null?!1:t.toDate().getTime()===r.toDate().getTime();isSameYear=(t,r)=>this.isSame(t,r,"YYYY");isSameMonth=(t,r)=>this.isSame(t,r,"YYYY-MM");isSameDay=(t,r)=>this.isSame(t,r,"YYYY-MM-DD");isSameHour=(t,r)=>t.isSame(r,"hour");isAfter=(t,r)=>t>r;isAfterYear=(t,r)=>this.hasUTCPlugin()?!this.isSameYear(t,r)&&t.utc()>r.utc():t.isAfter(r,"year");isAfterDay=(t,r)=>this.hasUTCPlugin()?!this.isSameDay(t,r)&&t.utc()>r.utc():t.isAfter(r,"day");isBefore=(t,r)=>t<r;isBeforeYear=(t,r)=>this.hasUTCPlugin()?!this.isSameYear(t,r)&&t.utc()<r.utc():t.isBefore(r,"year");isBeforeDay=(t,r)=>this.hasUTCPlugin()?!this.isSameDay(t,r)&&t.utc()<r.utc():t.isBefore(r,"day");isWithinRange=(t,[r,o])=>t>=r&&t<=o;startOfYear=t=>this.adjustOffset(t.startOf("year"));startOfMonth=t=>this.adjustOffset(t.startOf("month"));startOfWeek=t=>this.adjustOffset(this.setLocaleToValue(t).startOf("week"));startOfDay=t=>this.adjustOffset(t.startOf("day"));endOfYear=t=>this.adjustOffset(t.endOf("year"));endOfMonth=t=>this.adjustOffset(t.endOf("month"));endOfWeek=t=>this.adjustOffset(this.setLocaleToValue(t).endOf("week"));endOfDay=t=>this.adjustOffset(t.endOf("day"));addYears=(t,r)=>this.adjustOffset(t.add(r,"year"));addMonths=(t,r)=>this.adjustOffset(t.add(r,"month"));addWeeks=(t,r)=>this.adjustOffset(t.add(r,"week"));addDays=(t,r)=>this.adjustOffset(t.add(r,"day"));addHours=(t,r)=>this.adjustOffset(t.add(r,"hour"));addMinutes=(t,r)=>this.adjustOffset(t.add(r,"minute"));addSeconds=(t,r)=>this.adjustOffset(t.add(r,"second"));getYear=t=>t.year();getMonth=t=>t.month();getDate=t=>t.date();getHours=t=>t.hour();getMinutes=t=>t.minute();getSeconds=t=>t.second();getMilliseconds=t=>t.millisecond();setYear=(t,r)=>this.adjustOffset(t.set("year",r));setMonth=(t,r)=>this.adjustOffset(t.set("month",r));setDate=(t,r)=>this.adjustOffset(t.set("date",r));setHours=(t,r)=>this.adjustOffset(t.set("hour",r));setMinutes=(t,r)=>this.adjustOffset(t.set("minute",r));setSeconds=(t,r)=>this.adjustOffset(t.set("second",r));setMilliseconds=(t,r)=>this.adjustOffset(t.set("millisecond",r));getDaysInMonth=t=>t.daysInMonth();getWeekArray=t=>{const r=this.startOfWeek(this.startOfMonth(t)),o=this.endOfWeek(this.endOfMonth(t));let n=0,s=r;const l=[];for(;s<o;){const a=Math.floor(n/7);l[a]=l[a]||[],l[a].push(s),s=this.addDays(s,1),n+=1}return l};getWeekNumber=t=>t.week();getDayOfWeek(t){return t.day()+1}getYearRange=([t,r])=>{const o=this.startOfYear(t),n=this.endOfYear(r),s=[];let l=o;for(;this.isBefore(l,n);)s.push(l),l=this.addYears(l,1);return s}}const tL=({label:e,value:t,setValue:r,disabled:o})=>C.jsx(C.Fragment,{children:C.jsx(_u,{dateAdapter:QA,children:C.jsx(dI,{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})})}),JA=zt(C.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),PA=({label:e,multiValue:t,setMultiValue:r,values:o,placeholder:n,disabled:s})=>C.jsx(C.Fragment,{children:C.jsxs(os,{focused:!0,children:[C.jsx(ls,{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(hn,{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:JA,MenuProps:{PaperProps:{style:{maxHeight:"500px",width:"260px",borderBottomLeftRadius:"32px",borderBottomRightRadius:"32px",borderTopLeftRadius:"0px",borderTopRightRadius:"0px"}},MenuListProps:{sx:{backgroundColor:l=>l.palette["gr-base-dark"].main,"& .MuiMenuItem-root":{backgroundColor:l=>l.palette["gr-base-dark"].main,color:"white","&:hover":{backgroundColor:l=>l.palette["gr-base-dark"].main},"&.Mui-selected":{backgroundColor:l=>l.palette["gr-base-dark"].main},"&.Mui-focusVisible":{backgroundColor:l=>l.palette["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(co,{disabled:!0,value:"",children:C.jsx("em",{children:n})}),o.map(l=>C.jsxs(co,{value:l.value,children:[C.jsx(xl,{checked:t.includes(l.value)}),C.jsx(Rn,{slotProps:{primary:{sx:{color:"#FFFFFF"}}},primary:l.label})]},l.value))]})]})}),XM=({label:e,value:t,setValue:r,values:o,placeholder:n,disabled:s,fullWidth:l,white:a})=>{const c=u=>C.jsx(JA,{...u,sx:{color:a?"black !important":"white !important",...u.sx}});return C.jsx(C.Fragment,{children:C.jsxs(os,{fullWidth:l,focused:!0,children:[C.jsx(ls,{id:`filter-table-label-${e}`,sx:{color:a?"black":"white",position:"absolute","&.Mui-focused":{color:a?"black":"white"},'&[data-shrink="false"]':{transform:"translateY(12px) translateX(12px)"}},children:e}),C.jsxs(hn,{labelId:`filter-table-label-${e}`,id:`filter-${e}`,value:t,label:e,onChange:u=>r(u.target.value),color:"gr-yellow",sx:{color:a?"black":"white"},IconComponent:c,MenuProps:{PaperProps:{style:{maxHeight:"500px",borderBottomLeftRadius:"32px",borderBottomRightRadius:"32px",borderTopLeftRadius:"0px",borderTopRightRadius:"0px"}},MenuListProps:{sx:{backgroundColor:u=>a?"white":u.palette["gr-base-dark"].main,"& .MuiMenuItem-root":{backgroundColor:u=>a?"white":u.palette["gr-base-dark"].main,color:a?"black":"white","&:hover":{backgroundColor:u=>a?"white":u.palette["gr-base-dark"].main},"&.Mui-selected":{backgroundColor:u=>a?"white":u.palette["gr-base-dark"].main},"&.Mui-focusVisible":{backgroundColor:u=>a?"white":u.palette["gr-base-dark"].main}}}}},displayEmpty:!0,disabled:s,children:[C.jsx(co,{sx:{mt:2},disabled:!0,value:"",children:C.jsx("em",{children:n})}),o.map(u=>C.jsx(co,{value:u.value,children:u.label},u.value))]})]})})},rL=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(lr,{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(tL,{label:"Rango de días",value:t,setValue:r,disabled:!1}),o?C.jsx(PA,{label:"Etiquetas",multiValue:a,setMultiValue:c,values:n,placeholder:"Seleccionar",disabled:!1,fullWidth:!1}):C.jsx(XM,{label:"Etiquetas",value:s,setValue:l,values:n,placeholder:"Seleccionar",disabled:!1,fullWidth:!1,white:!1}),u?C.jsx(PA,{label:"Trabajadores",multiValue:M,setMultiValue:V,values:I,placeholder:"Seleccionar",fullWidth:!1,disabled:!1}):C.jsx(XM,{label:"Trabajadores",value:E,setValue:d,values:I,placeholder:"Seleccionar",disabled:!1,fullWidth:!1,white:!1}),C.jsx(Ei,{variant:"contained",color:"gr-yellow",sx:{borderRadius:"20px",color:h=>h.palette.background.paper},onClick:()=>R(),children:"Buscar"})]})},iL=({contextMenu:e,setContextMenu:t,options:r,checked:o})=>C.jsxs(C.Fragment,{children:[C.jsx(aE,{open:e!==null,onClose:()=>t(null),anchorReference:"anchorPosition",anchorPosition:e!==null?{top:e.mouseY,left:e.mouseX}:void 0,slots:{transition:Fl},slotProps:{paper:{sx:{bgcolor:"white",borderRadius:"12px"},elevation:1}},sx:{cursor:"pointer"},children:r.filter(n=>!n.hide).map((n,s)=>C.jsxs(lr,{children:[s!==0&&r[s-1].group!==n.group?C.jsx(Yl,{}):null,C.jsxs(co,{onClick:n.click,disabled:n.disabled,children:[C.jsx(us,{sx:{color:l=>l.palette["gr-grey"].main},children:n.icon}),C.jsx(Rn,{sx:{color:l=>l.palette["gr-grey"].main},children:n.name}),n.selected?C.jsxs(Zr,{sx:{pl:3,color:l=>l.palette["gr-grey"].main},variant:"body2",children:["selecionados",":",o.length]}):null,n.onlyOne?C.jsx(Zr,{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(lr,{children:n.dialog},s))]}),oL=e=>C.jsxs(C.Fragment,{children:[C.jsx(S3,{...e,showToolbar:!0,slots:{toolbar:rL},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(iL,{contextMenu:e.contextMenu,setContextMenu:e.setContextMenu,options:e.options,checked:e.rowSelectionModel})]}),nL=()=>{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,v]=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:v}};var xa={exports:{}},NM={},fI={exports:{}},wA;function sL(){if(wA)return fI.exports;wA=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 fI.exports=t,fI.exports.clsx=t,fI.exports}var tr={},Bo={},TA;function ZI(){if(TA)return Bo;TA=1,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.dontSetMe=n,Bo.findInArray=e,Bo.int=o,Bo.isFunction=t,Bo.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 Bo}var Lo={},GA;function lL(){if(GA)return Lo;GA=1,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.browserPrefixToKey=r,Lo.browserPrefixToStyle=o,Lo.default=void 0,Lo.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 Lo.default=t(),Lo}var OA;function DM(){if(OA)return tr;OA=1,Object.defineProperty(tr,"__esModule",{value:!0}),tr.addClassName=p,tr.addEvent=l,tr.addUserSelectStyles=f,tr.createCSSTransform=M,tr.createSVGTransform=V,tr.getTouch=h,tr.getTouchIdentifier=z,tr.getTranslation=R,tr.innerHeight=I,tr.innerWidth=E,tr.matchesSelector=n,tr.matchesSelectorAndParentsTo=s,tr.offsetXYFromParent=d,tr.outerHeight=c,tr.outerWidth=u,tr.removeClassName=F,tr.removeEvent=a,tr.scheduleRemoveUserSelectStyles=Z;var e=ZI(),t=r(lL());function r(v,A){if(typeof WeakMap=="function")var x=new WeakMap,K=new WeakMap;return(r=function(Y,q){if(!q&&Y&&Y.__esModule)return Y;var k,U,W={__proto__:null,default:Y};if(Y===null||typeof Y!="object"&&typeof Y!="function")return W;if(k=q?K:x){if(k.has(Y))return k.get(Y);k.set(Y,W)}for(const b in Y)b!=="default"&&{}.hasOwnProperty.call(Y,b)&&((U=(k=Object.defineProperty)&&Object.getOwnPropertyDescriptor(Y,b))&&(U.get||U.set)?k(W,b,U):W[b]=Y[b]);return W})(v,A)}let o="";function n(v,A){return o||(o=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(x){return(0,e.isFunction)(v[x])})),(0,e.isFunction)(v[o])?v[o](A):!1}function s(v,A,x){let K=v;do{if(n(K,A))return!0;if(K===x)return!1;K=K.parentNode}while(K);return!1}function l(v,A,x,K){if(!v)return;const Y={capture:!0,...K};v.addEventListener?v.addEventListener(A,x,Y):v.attachEvent?v.attachEvent("on"+A,x):v["on"+A]=x}function a(v,A,x,K){if(!v)return;const Y={capture:!0,...K};v.removeEventListener?v.removeEventListener(A,x,Y):v.detachEvent?v.detachEvent("on"+A,x):v["on"+A]=null}function c(v){let A=v.clientHeight;const x=v.ownerDocument.defaultView.getComputedStyle(v);return A+=(0,e.int)(x.borderTopWidth),A+=(0,e.int)(x.borderBottomWidth),A}function u(v){let A=v.clientWidth;const x=v.ownerDocument.defaultView.getComputedStyle(v);return A+=(0,e.int)(x.borderLeftWidth),A+=(0,e.int)(x.borderRightWidth),A}function I(v){let A=v.clientHeight;const x=v.ownerDocument.defaultView.getComputedStyle(v);return A-=(0,e.int)(x.paddingTop),A-=(0,e.int)(x.paddingBottom),A}function E(v){let A=v.clientWidth;const x=v.ownerDocument.defaultView.getComputedStyle(v);return A-=(0,e.int)(x.paddingLeft),A-=(0,e.int)(x.paddingRight),A}function d(v,A,x){const Y=A===A.ownerDocument.body?{left:0,top:0}:A.getBoundingClientRect(),q=(v.clientX+A.scrollLeft-Y.left)/x,k=(v.clientY+A.scrollTop-Y.top)/x;return{x:q,y:k}}function M(v,A){const x=R(v,A,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:x}}function V(v,A){return R(v,A,"")}function R(v,A,x){let{x:K,y:Y}=v,q=`translate(${K}${x},${Y}${x})`;if(A){const k=`${typeof A.x=="string"?A.x:A.x+x}`,U=`${typeof A.y=="string"?A.y:A.y+x}`;q=`translate(${k}, ${U})`+q}return q}function h(v,A){return v.targetTouches&&(0,e.findInArray)(v.targetTouches,x=>A===x.identifier)||v.changedTouches&&(0,e.findInArray)(v.changedTouches,x=>A===x.identifier)}function z(v){if(v.targetTouches&&v.targetTouches[0])return v.targetTouches[0].identifier;if(v.changedTouches&&v.changedTouches[0])return v.changedTouches[0].identifier}function f(v){if(!v)return;let A=v.getElementById("react-draggable-style-el");A||(A=v.createElement("style"),A.type="text/css",A.id="react-draggable-style-el",A.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
503
+ `);class QA{isMUIAdapter=!0;isTimezoneCompatible=!0;lib="dayjs";escapedCharacters={start:"[",end:"]"};formatTokenMap=_0;constructor({locale:t,formats:r}={}){this.locale=t,this.formats=y({},eL,r),ur.extend(J0)}setLocaleToValue=t=>{const r=this.getCurrentLocaleCode();return r===t.locale()?t:t.locale(r)};hasUTCPlugin=()=>typeof ur.utc<"u";hasTimezonePlugin=()=>typeof ur.tz<"u";isSame=(t,r,o)=>{const n=this.setTimezone(r,this.getTimezone(t));return t.format(o)===n.format(o)};cleanTimezone=t=>{switch(t){case"default":return;case"system":return ur.tz.guess();default:return t}};createSystemDate=t=>{let r;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=ur.tz.guess();o==="UTC"?r=ur(t):r=ur.tz(t,o)}else r=ur(t);return this.setLocaleToValue(r)};createUTCDate=t=>{if(!this.hasUTCPlugin())throw new Error(LM);return this.setLocaleToValue(ur.utc(t))};createTZDate=(t,r)=>{if(!this.hasUTCPlugin())throw new Error(LM);if(!this.hasTimezonePlugin())throw new Error(UA);const o=t!==void 0&&!t.endsWith("Z");return this.setLocaleToValue(ur(t).tz(this.cleanTimezone(r),o))};getLocaleFormats=()=>{const t=ur.Ls,r=this.locale||"en";let o=t[r];return o===void 0&&(process.env.NODE_ENV!=="production"&&Jr(["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."]),o=t.en),o.formats};adjustOffset=t=>{if(!this.hasTimezonePlugin())return t;const r=this.getTimezone(t);if(r!=="UTC"){const o=t.tz(this.cleanTimezone(r),!0);if(o.$offset===(t.$offset??0))return t;t.$offset=o.$offset}return t};date=(t,r="default")=>t===null?null:r==="UTC"?this.createUTCDate(t):r==="system"||r==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(t):this.createTZDate(t,r);getInvalidDate=()=>ur(new Date("Invalid date"));getTimezone=t=>{if(this.hasTimezonePlugin()){const r=t.$x?.$timezone;if(r)return r}return this.hasUTCPlugin()&&t.isUTC()?"UTC":"system"};setTimezone=(t,r)=>{if(this.getTimezone(t)===r)return t;if(r==="UTC"){if(!this.hasUTCPlugin())throw new Error(LM);return t.utc()}if(r==="system")return t.local();if(!this.hasTimezonePlugin()){if(r==="default")return t;throw new Error(UA)}return this.setLocaleToValue(ur.tz(t,this.cleanTimezone(r)))};toJsDate=t=>t.toDate();parse=(t,r)=>t===""?null:ur(t,r,this.locale,!0);getCurrentLocaleCode=()=>this.locale||"en";is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||"");expandFormat=t=>{const r=this.getLocaleFormats(),o=n=>n.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(s,l,a)=>l||a.slice(1));return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(n,s,l)=>{const a=l&&l.toUpperCase();return s||r[l]||o(r[a])})};isValid=t=>t==null?!1:t.isValid();format=(t,r)=>this.formatByString(t,this.formats[r]);formatByString=(t,r)=>this.setLocaleToValue(t).format(r);formatNumber=t=>t;isEqual=(t,r)=>t===null&&r===null?!0:t===null||r===null?!1:t.toDate().getTime()===r.toDate().getTime();isSameYear=(t,r)=>this.isSame(t,r,"YYYY");isSameMonth=(t,r)=>this.isSame(t,r,"YYYY-MM");isSameDay=(t,r)=>this.isSame(t,r,"YYYY-MM-DD");isSameHour=(t,r)=>t.isSame(r,"hour");isAfter=(t,r)=>t>r;isAfterYear=(t,r)=>this.hasUTCPlugin()?!this.isSameYear(t,r)&&t.utc()>r.utc():t.isAfter(r,"year");isAfterDay=(t,r)=>this.hasUTCPlugin()?!this.isSameDay(t,r)&&t.utc()>r.utc():t.isAfter(r,"day");isBefore=(t,r)=>t<r;isBeforeYear=(t,r)=>this.hasUTCPlugin()?!this.isSameYear(t,r)&&t.utc()<r.utc():t.isBefore(r,"year");isBeforeDay=(t,r)=>this.hasUTCPlugin()?!this.isSameDay(t,r)&&t.utc()<r.utc():t.isBefore(r,"day");isWithinRange=(t,[r,o])=>t>=r&&t<=o;startOfYear=t=>this.adjustOffset(t.startOf("year"));startOfMonth=t=>this.adjustOffset(t.startOf("month"));startOfWeek=t=>this.adjustOffset(this.setLocaleToValue(t).startOf("week"));startOfDay=t=>this.adjustOffset(t.startOf("day"));endOfYear=t=>this.adjustOffset(t.endOf("year"));endOfMonth=t=>this.adjustOffset(t.endOf("month"));endOfWeek=t=>this.adjustOffset(this.setLocaleToValue(t).endOf("week"));endOfDay=t=>this.adjustOffset(t.endOf("day"));addYears=(t,r)=>this.adjustOffset(t.add(r,"year"));addMonths=(t,r)=>this.adjustOffset(t.add(r,"month"));addWeeks=(t,r)=>this.adjustOffset(t.add(r,"week"));addDays=(t,r)=>this.adjustOffset(t.add(r,"day"));addHours=(t,r)=>this.adjustOffset(t.add(r,"hour"));addMinutes=(t,r)=>this.adjustOffset(t.add(r,"minute"));addSeconds=(t,r)=>this.adjustOffset(t.add(r,"second"));getYear=t=>t.year();getMonth=t=>t.month();getDate=t=>t.date();getHours=t=>t.hour();getMinutes=t=>t.minute();getSeconds=t=>t.second();getMilliseconds=t=>t.millisecond();setYear=(t,r)=>this.adjustOffset(t.set("year",r));setMonth=(t,r)=>this.adjustOffset(t.set("month",r));setDate=(t,r)=>this.adjustOffset(t.set("date",r));setHours=(t,r)=>this.adjustOffset(t.set("hour",r));setMinutes=(t,r)=>this.adjustOffset(t.set("minute",r));setSeconds=(t,r)=>this.adjustOffset(t.set("second",r));setMilliseconds=(t,r)=>this.adjustOffset(t.set("millisecond",r));getDaysInMonth=t=>t.daysInMonth();getWeekArray=t=>{const r=this.startOfWeek(this.startOfMonth(t)),o=this.endOfWeek(this.endOfMonth(t));let n=0,s=r;const l=[];for(;s<o;){const a=Math.floor(n/7);l[a]=l[a]||[],l[a].push(s),s=this.addDays(s,1),n+=1}return l};getWeekNumber=t=>t.week();getDayOfWeek(t){return t.day()+1}getYearRange=([t,r])=>{const o=this.startOfYear(t),n=this.endOfYear(r),s=[];let l=o;for(;this.isBefore(l,n);)s.push(l),l=this.addYears(l,1);return s}}const tL=({label:e,value:t,setValue:r,disabled:o})=>C.jsx(C.Fragment,{children:C.jsx(_u,{dateAdapter:QA,children:C.jsx(dI,{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})})}),JA=zt(C.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),PA=({label:e,multiValue:t,setMultiValue:r,values:o,placeholder:n,disabled:s})=>C.jsx(C.Fragment,{children:C.jsxs(os,{focused:!0,children:[C.jsx(ls,{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(hn,{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:JA,MenuProps:{PaperProps:{style:{maxHeight:"500px",width:"260px",borderBottomLeftRadius:"32px",borderBottomRightRadius:"32px",borderTopLeftRadius:"0px",borderTopRightRadius:"0px"}},MenuListProps:{sx:{backgroundColor:l=>l.palette["gr-base-dark"].main,"& .MuiMenuItem-root":{backgroundColor:l=>l.palette["gr-base-dark"].main,color:"white","&:hover":{backgroundColor:l=>l.palette["gr-base-dark"].main},"&.Mui-selected":{backgroundColor:l=>l.palette["gr-base-dark"].main},"&.Mui-focusVisible":{backgroundColor:l=>l.palette["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(co,{disabled:!0,value:"",children:C.jsx("em",{children:n})}),o.map(l=>C.jsxs(co,{value:l.value,children:[C.jsx(xl,{checked:t.includes(l.value)}),C.jsx(Rn,{slotProps:{primary:{sx:{color:"#FFFFFF"}}},primary:l.label})]},l.value))]})]})}),XM=({label:e,value:t,setValue:r,values:o,placeholder:n,disabled:s,fullWidth:l,white:a})=>{const c=u=>C.jsx(JA,{...u,sx:{color:a?"black !important":"white !important",...u.sx}});return C.jsx(C.Fragment,{children:C.jsxs(os,{fullWidth:l,focused:!0,children:[C.jsx(ls,{id:`filter-table-label-${e}`,sx:{color:a?"black":"white",position:"absolute","&.Mui-focused":{color:a?"black":"white"},'&[data-shrink="false"]':{transform:"translateY(12px) translateX(12px)"}},children:e}),C.jsxs(hn,{labelId:`filter-table-label-${e}`,id:`filter-${e}`,value:t,label:e,onChange:u=>r(u.target.value),color:"gr-yellow",sx:{color:a?"black":"white"},IconComponent:c,MenuProps:{PaperProps:{style:{maxHeight:"500px",borderBottomLeftRadius:"32px",borderBottomRightRadius:"32px",borderTopLeftRadius:"0px",borderTopRightRadius:"0px"}},MenuListProps:{sx:{backgroundColor:u=>a?"white":u.palette["gr-base-dark"].main,"& .MuiMenuItem-root":{backgroundColor:u=>a?"white":u.palette["gr-base-dark"].main,color:a?"black":"white","&:hover":{backgroundColor:u=>a?"white":u.palette["gr-base-dark"].main},"&.Mui-selected":{backgroundColor:u=>a?"white":u.palette["gr-base-dark"].main},"&.Mui-focusVisible":{backgroundColor:u=>a?"white":u.palette["gr-base-dark"].main}}}}},displayEmpty:!0,disabled:s,children:[C.jsx(co,{sx:{mt:2},disabled:!0,value:"",children:C.jsx("em",{children:n})}),o.map(u=>C.jsx(co,{value:u.value,children:u.label},u.value))]})]})})},rL=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(lr,{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(tL,{label:"Rango de días",value:t,setValue:r,disabled:!1}),o?C.jsx(PA,{label:"Etiquetas",multiValue:a,setMultiValue:c,values:n,placeholder:"Seleccionar",disabled:!1,fullWidth:!1}):C.jsx(XM,{label:"Etiquetas",value:s,setValue:l,values:n,placeholder:"Seleccionar",disabled:!1,fullWidth:!1,white:!1}),u?C.jsx(PA,{label:"Trabajadores",multiValue:M,setMultiValue:V,values:I,placeholder:"Seleccionar",fullWidth:!1,disabled:!1}):C.jsx(XM,{label:"Trabajadores",value:E,setValue:d,values:I,placeholder:"Seleccionar",disabled:!1,fullWidth:!1,white:!1}),C.jsx(Ei,{variant:"contained",color:"gr-yellow",sx:{borderRadius:"20px",color:h=>h.palette.background.paper},onClick:()=>R(),children:"Buscar"})]})},iL=({contextMenu:e,setContextMenu:t,options:r,checked:o})=>C.jsxs(C.Fragment,{children:[C.jsx(aE,{open:e!==null,onClose:()=>t(null),anchorReference:"anchorPosition",anchorPosition:e!==null?{top:e.mouseY,left:e.mouseX}:void 0,slots:{transition:Fl},slotProps:{paper:{sx:{bgcolor:"white",borderRadius:"12px"},elevation:1}},sx:{cursor:"pointer"},children:r.filter(n=>!n.hide).map((n,s)=>C.jsxs(lr,{children:[s!==0&&r[s-1].group!==n.group?C.jsx(Yl,{}):null,C.jsxs(co,{onClick:n.click,disabled:n.disabled,children:[C.jsx(us,{sx:{color:l=>l.palette["gr-grey"].main},children:n.icon}),C.jsx(Rn,{sx:{color:l=>l.palette["gr-grey"].main},children:n.name}),n.selected?C.jsxs(Zr,{sx:{pl:3,color:l=>l.palette["gr-grey"].main},variant:"body2",children:["selecionados",":",o.length]}):null,n.onlyOne?C.jsx(Zr,{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(lr,{children:n.dialog},s))]}),oL=e=>C.jsxs(C.Fragment,{children:[C.jsx(S3,{...e,showToolbar:!0,slots:{toolbar:rL},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,disableRowSelectionOnClick:e.disableRowSelectionOnClick}),C.jsx(iL,{contextMenu:e.contextMenu,setContextMenu:e.setContextMenu,options:e.options,checked:e.rowSelectionModel})]}),nL=()=>{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,v]=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:v}};var xa={exports:{}},NM={},fI={exports:{}},wA;function sL(){if(wA)return fI.exports;wA=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 fI.exports=t,fI.exports.clsx=t,fI.exports}var tr={},Bo={},TA;function ZI(){if(TA)return Bo;TA=1,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.dontSetMe=n,Bo.findInArray=e,Bo.int=o,Bo.isFunction=t,Bo.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 Bo}var Lo={},GA;function lL(){if(GA)return Lo;GA=1,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.browserPrefixToKey=r,Lo.browserPrefixToStyle=o,Lo.default=void 0,Lo.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 Lo.default=t(),Lo}var OA;function DM(){if(OA)return tr;OA=1,Object.defineProperty(tr,"__esModule",{value:!0}),tr.addClassName=p,tr.addEvent=l,tr.addUserSelectStyles=f,tr.createCSSTransform=M,tr.createSVGTransform=V,tr.getTouch=h,tr.getTouchIdentifier=z,tr.getTranslation=R,tr.innerHeight=I,tr.innerWidth=E,tr.matchesSelector=n,tr.matchesSelectorAndParentsTo=s,tr.offsetXYFromParent=d,tr.outerHeight=c,tr.outerWidth=u,tr.removeClassName=F,tr.removeEvent=a,tr.scheduleRemoveUserSelectStyles=Z;var e=ZI(),t=r(lL());function r(v,A){if(typeof WeakMap=="function")var x=new WeakMap,K=new WeakMap;return(r=function(Y,q){if(!q&&Y&&Y.__esModule)return Y;var k,U,W={__proto__:null,default:Y};if(Y===null||typeof Y!="object"&&typeof Y!="function")return W;if(k=q?K:x){if(k.has(Y))return k.get(Y);k.set(Y,W)}for(const b in Y)b!=="default"&&{}.hasOwnProperty.call(Y,b)&&((U=(k=Object.defineProperty)&&Object.getOwnPropertyDescriptor(Y,b))&&(U.get||U.set)?k(W,b,U):W[b]=Y[b]);return W})(v,A)}let o="";function n(v,A){return o||(o=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(x){return(0,e.isFunction)(v[x])})),(0,e.isFunction)(v[o])?v[o](A):!1}function s(v,A,x){let K=v;do{if(n(K,A))return!0;if(K===x)return!1;K=K.parentNode}while(K);return!1}function l(v,A,x,K){if(!v)return;const Y={capture:!0,...K};v.addEventListener?v.addEventListener(A,x,Y):v.attachEvent?v.attachEvent("on"+A,x):v["on"+A]=x}function a(v,A,x,K){if(!v)return;const Y={capture:!0,...K};v.removeEventListener?v.removeEventListener(A,x,Y):v.detachEvent?v.detachEvent("on"+A,x):v["on"+A]=null}function c(v){let A=v.clientHeight;const x=v.ownerDocument.defaultView.getComputedStyle(v);return A+=(0,e.int)(x.borderTopWidth),A+=(0,e.int)(x.borderBottomWidth),A}function u(v){let A=v.clientWidth;const x=v.ownerDocument.defaultView.getComputedStyle(v);return A+=(0,e.int)(x.borderLeftWidth),A+=(0,e.int)(x.borderRightWidth),A}function I(v){let A=v.clientHeight;const x=v.ownerDocument.defaultView.getComputedStyle(v);return A-=(0,e.int)(x.paddingTop),A-=(0,e.int)(x.paddingBottom),A}function E(v){let A=v.clientWidth;const x=v.ownerDocument.defaultView.getComputedStyle(v);return A-=(0,e.int)(x.paddingLeft),A-=(0,e.int)(x.paddingRight),A}function d(v,A,x){const Y=A===A.ownerDocument.body?{left:0,top:0}:A.getBoundingClientRect(),q=(v.clientX+A.scrollLeft-Y.left)/x,k=(v.clientY+A.scrollTop-Y.top)/x;return{x:q,y:k}}function M(v,A){const x=R(v,A,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:x}}function V(v,A){return R(v,A,"")}function R(v,A,x){let{x:K,y:Y}=v,q=`translate(${K}${x},${Y}${x})`;if(A){const k=`${typeof A.x=="string"?A.x:A.x+x}`,U=`${typeof A.y=="string"?A.y:A.y+x}`;q=`translate(${k}, ${U})`+q}return q}function h(v,A){return v.targetTouches&&(0,e.findInArray)(v.targetTouches,x=>A===x.identifier)||v.changedTouches&&(0,e.findInArray)(v.changedTouches,x=>A===x.identifier)}function z(v){if(v.targetTouches&&v.targetTouches[0])return v.targetTouches[0].identifier;if(v.changedTouches&&v.changedTouches[0])return v.changedTouches[0].identifier}function f(v){if(!v)return;let A=v.getElementById("react-draggable-style-el");A||(A=v.createElement("style"),A.type="text/css",A.id="react-draggable-style-el",A.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
504
504
  `,A.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
505
505
  `,v.getElementsByTagName("head")[0].appendChild(A)),v.body&&p(v.body,"react-draggable-transparent-selection")}function Z(v){window.requestAnimationFrame?window.requestAnimationFrame(()=>{g(v)}):g(v)}function g(v){if(v)try{if(v.body&&F(v.body,"react-draggable-transparent-selection"),v.selection)v.selection.empty();else{const A=(v.defaultView||window).getSelection();A&&A.type!=="Caret"&&A.removeAllRanges()}}catch{}}function p(v,A){v.classList?v.classList.add(A):v.className.match(new RegExp(`(?:^|\\s)${A}(?!\\S)`))||(v.className+=` ${A}`)}function F(v,A){v.classList?v.classList.remove(A):v.className=v.className.replace(new RegExp(`(?:^|\\s)${A}(?!\\S)`,"g"),"")}return tr}var _i={},HA;function BA(){if(HA)return _i;HA=1,Object.defineProperty(_i,"__esModule",{value:!0}),_i.canDragX=n,_i.canDragY=s,_i.createCoreData=a,_i.createDraggableData=c,_i.getBoundPosition=r,_i.getControlPosition=l,_i.snapToGrid=o;var e=ZI(),t=DM();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 _i}var Ka={},pI={},LA;function XA(){if(LA)return pI;LA=1,Object.defineProperty(pI,"__esModule",{value:!0}),pI.default=e;function e(){}return pI}var NA;function aL(){if(NA)return Ka;NA=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.default=void 0;var e=c(xe),t=a(XI()),r=a(en),o=DM(),n=BA(),s=ZI(),l=a(XA());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,v={__proto__:null,default:Z};if(Z===null||typeof Z!="object"&&typeof Z!="function")return v;if(p=g?f:z){if(p.has(Z))return p.get(Z);p.set(Z,v)}for(const A in Z)A!=="default"&&{}.hasOwnProperty.call(Z,A)&&((F=(p=Object.defineProperty)&&Object.getOwnPropertyDescriptor(Z,A))&&(F.get||F.set)?p(v,A,F):v[A]=Z[A]);return v})(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,v=(0,n.createCoreData)(this,p,F);(0,l.default)("DraggableCore: handleDragStart: %j",v),(0,l.default)("calling",this.props.onStart),!(this.props.onStart(h,v)===!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,v=Z-this.lastY;if([F,v]=(0,n.snapToGrid)(this.props.grid,F,v),!F&&!v)return;f=this.lastX+F,Z=this.lastY+v}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 v=document.createEvent("MouseEvents");v.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(v)}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 v=f-this.lastX||0,A=Z-this.lastY||0;[v,A]=(0,n.snapToGrid)(this.props.grid,v,A),f=this.lastX+v,Z=this.lastY+A}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 Ka.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}),Ka}var DA;function cL(){return DA||(DA=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(XI()),o=I(en),n=sL(),s=DM(),l=BA(),a=ZI(),c=I(aL()),u=I(XA());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 v,A,x={__proto__:null,default:p};if(p===null||typeof p!="object"&&typeof p!="function")return x;if(v=F?g:Z){if(v.has(p))return v.get(p);v.set(p,x)}for(const K in p)K!=="default"&&{}.hasOwnProperty.call(p,K)&&((A=(v=Object.defineProperty)&&Object.getOwnPropertyDescriptor(p,K))&&(A.get||A.set)?v(x,K,A):x[K]=p[K]);return x})(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:A,y:x}=F;F.x+=this.state.slackX,F.y+=this.state.slackY;const[K,Y]=(0,l.getBoundPosition)(this,F.x,F.y);F.x=K,F.y=Y,F.slackX=this.state.slackX+(A-F.x),F.slackY=this.state.slackY+(x-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:A,y:x}=this.props.position;F.x=A,F.y=x}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:v,defaultClassNameDragged:A,position:x,positionOffset:K,scale:Y,...q}=this.props;let k={},U=null;const b=!!!x||this.state.dragging,Q=x||p,P={x:(0,l.canDragX)(this)&&b?this.state.x:Q.x,y:(0,l.canDragY)(this)&&b?this.state.y:Q.y};this.state.isElementSVG?U=(0,s.createSVGTransform)(P,K):k=(0,s.createCSSTransform)(P,K);const J=(0,n.clsx)(g.props.className||"",F,{[v]:this.state.dragging,[A]:this.state.dragged});return t.createElement(c.default,d({},q,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(g),{className:J,style:{...g.props.style,...k},transform:U}))}}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})}(NM)),NM}var $A;function uL(){if($A)return xa.exports;$A=1;const{default:e,DraggableCore:t}=cL();return xa.exports=e,xa.exports.default=e,xa.exports.DraggableCore=t,xa.exports}var IL=uL();const mL=po(IL),EL=zt(C.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),dL=e=>{const t=R0(e);return yA({manager:t,props:e})},ML=["slots","slotProps"],$M=m.forwardRef(function(t,r){const o=io({props:t,name:"MuiDateTimeField"}),{slots:n,slotProps:s}=o,l=Ie(o,ML),a=EA({slotProps:s,ref:r,externalForwardedProps:l}),c=dL(a);return C.jsx(mA,{slots:n,slotProps:s,fieldResponse:c,defaultOpenPickerIcon:UB})});process.env.NODE_ENV!=="production"&&($M.displayName="DateTimeField"),process.env.NODE_ENV!=="production"&&($M.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:Tt,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 RL=zt(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"),hL=({label:e,value:t,setValue:r,disabled:o,fullWidth:n,white:s})=>C.jsx(C.Fragment,{children:C.jsx(_u,{dateAdapter:QA,children:C.jsx($M,{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(Gc,{position:"end",sx:{color:s?"black":"white"},children:C.jsx(RL,{sx:{height:"18px",mt:"-4px"}})})})})}),VL=zt(C.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),zL=zt(C.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel"),CL=({label:e,placeholder:t,values:r,value:o,setValue:n,white:s})=>{const[l,a]=xe.useState(!1);return C.jsx(C.Fragment,{children:C.jsx(jm,{multiple:!0,options:r,getOptionLabel:c=>c.label,value:r.filter(c=>o.includes(c.value)),onChange:(c,u)=>{n(u.map(I=>I.value))},onOpen:()=>a(!0),onClose:()=>a(!1),renderInput:c=>C.jsx(ko,{...c,variant:"outlined",label:e,placeholder:t,sx:{backgroundColor:u=>s?"white":u.palette["gr-base-dark"].main,borderTopLeftRadius:"18px",borderTopRightRadius:"18px",borderBottomLeftRadius:l?"0px":"18px",borderBottomRightRadius:l?"0px":"18px",color:s?"black !important":"white !important","& .MuiChip-root":{maxWidth:"100px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& .MuiAutocomplete-tag":{maxHeight:"32px",overflow:"hidden",display:"inline-flex",flexWrap:"nowrap"},"& .MuiAutocomplete-inputRoot":{flexWrap:"nowrap"}},slotProps:{inputLabel:{sx:{color:s?"black !important":"white !important"}}},color:"gr-yellow",focused:!0}),popupIcon:C.jsx(VL,{sx:{color:s?"black":"white"}}),slotProps:{paper:{sx:{maxHeight:"500px",borderBottomLeftRadius:"32px",borderBottomRightRadius:"32px",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",backgroundColor:c=>s?"white":c.palette["gr-base-dark"].main,color:s?"black":"white"}},chip:{sx:{bgcolor:c=>s?`${c.palette["gr-grey"].light} !important`:`${c.palette["gr-grey"].main} !important`,color:s?"black":"white"},size:"small",deleteIcon:C.jsx(zL,{sx:{color:s?"black !important":"white !important"}})}},limitTags:2,size:"small"})})},fL=e=>{const t=xe.useRef(null);return C.jsx(C.Fragment,{children:C.jsx(mL,{nodeRef:t,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',children:C.jsx(so,{...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"}})})})},ZL=({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(At,{size:d.ncolumn,sx:{mb:"20px"},children:C.jsx(ko,{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(At,{size:d.ncolumn,sx:{mb:"20px"},children:C.jsx(XM,{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(At,{size:d.ncolumn,sx:{mb:"20px"},children:C.jsx(hL,{label:d.label,value:d.value,setValue:d.setValue,disabled:d.disable||r.actionButton.loading,fullWidth:!0,white:!0})},M);case"CheckboxField":return C.jsx(At,{size:d.ncolumn,sx:{mb:"20px"},children:C.jsx(Xm,{children:C.jsx(wc,{control:C.jsx(xl,{sx:{ml:1.5,color:V=>V.palette["gr-base-dark"].main,"&.Mui-checked":{color:V=>V.palette["gr-base-dark"].main}},checked:d.value,onChange:V=>d.setValue(V.target.checked)}),label:d.label})})},M);case"CheckboxGroup":return C.jsx(At,{size:d.ncolumn,sx:{mb:"20px"},children:C.jsx(Xm,{children:d.checkboxs.map((V,R)=>C.jsx(wc,{control:C.jsx(xl,{sx:{ml:1.5,color:h=>h.palette["gr-base-dark"].main,"&.Mui-checked":{color:h=>h.palette["gr-base-dark"].main}},checked:V.value,onChange:h=>V.setValue(h.target.checked)}),label:V.label},R))})},M);case"AutoCompleteField":return C.jsx(At,{size:d.ncolumn,sx:{mb:"20px"},children:C.jsx(CL,{label:"Selecciona tus películas favoritas",placeholder:"Seleccionar",values:d.values,value:d.value,setValue:d.setValue,white:!0})},M);case"ListField":return C.jsx(At,{size:d.ncolumn,sx:{mb:"20px"},children:C.jsx(as,{dense:!0,sx:{borderRadius:"16px",border:V=>`1px solid ${V.palette["gr-grey"].dark}`},children:d.items.map((V,R)=>C.jsx(xz,{children:C.jsx(Rn,{primary:V.primaryText,secondary:V.secondaryText})},R))})},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=>{if(V.element==="CheckboxGroup")return V.checkboxs.some(R=>R.value!==R.initialValue);if(V.element==="CheckboxField"||V.element==="TextField"||V.element==="SelectField"||V.element==="DateField"||V.element==="AutoCompleteField")return V.value!==V.initialValue})?c(!0):s(!1)};return C.jsx(C.Fragment,{children:C.jsxs(fz,{open:n,onClose:()=>E(o),PaperComponent:fL,"aria-labelledby":"draggable-dialog-title",children:[C.jsx(pz,{style:{cursor:"move",textAlign:"center",margin:0,padding:0},id:"draggable-dialog-title",children:e}),a&&C.jsx(Lm,{sx:{padding:0,margin:0,width:"100%",overflow:"hidden",minHeight:"85px"},children:C.jsxs(AV,{icon:C.jsx(EL,{}),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(lr,{sx:{mt:3.75},children:[C.jsx(Ei,{color:"gr-grey",size:"small",onClick:()=>c(!1),children:C.jsx("b",{children:t.actionButton.buttonText})}),C.jsx(Ei,{color:"gr-grey",size:"small",onClick:()=>{I(),s(!1)},children:C.jsx("b",{children:t.cancelButton.buttonText})})]}),children:[C.jsx(vV,{children:t.title}),C.jsx(Zr,{variant:"body2",children:t.message})]})}),C.jsx(Lm,{sx:{padding:0,margin:0},children:C.jsx(At,{container:!0,spacing:2,sx:{mt:1},children:o.map((d,M)=>u(d,M))})}),C.jsxs(Zz,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",width:"100%"},children:[C.jsx(Ei,{variant:"outlined",autoFocus:!0,onClick:()=>E(o),sx:{minWidth:"130px",borderRadius:"44px",fontWeight:"500"},color:"gr-base-dark",children:r.cancelButton.buttonText}),C.jsx(Ei,{variant:"contained",onClick:()=>{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})]})]})})},Sn={config:{isInitialized:!1},traits:{}},pL="__mui_x_telemetry_";function _A(e){return pL+btoa(e)}function _M(e,t,r){try{if(typeof window<"u"&&window[e])return window[e].setItem(_A(t),r),!0}catch{}return!1}function eR(e,t){try{if(typeof window<"u"&&window[e])return window[e].getItem(_A(t))}catch{}return null}function tR(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 qL(e,t){return t.reduce((r,o)=>(r[o]=e[o],r),{})}const AL=typeof window>"u"||process.env.NODE_ENV==="test"?()=>{}:async()=>{const e="fingerprint";try{const t=eR("localStorage",e);if(t)return JSON.parse(t);const r=await Promise.resolve().then(()=>r8),n=await(await r.load({monitoring:!1})).get(),s=y({},n.components);delete s.cookiesEnabled;const l=r.hashComponents(s),a=r.hashComponents(y({},qL(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 _M("localStorage",e,JSON.stringify(c)),c}catch{return null}};function gL(){const e="anonymous_id",t=eR("localStorage",e);if(t)return t;const r=`anid_${tR(32)}`;return _M("localStorage",e,r)?r:""}function yL(){const e="session_id",t=eR("sessionStorage",e);if(t)return t;const r=`sesid_${tR(32)}`;return _M("sessionStorage",e,r)?r:`sestp_${tR(32)}`}async function vL(){return Sn.traits.sessionId=yL(),Sn.config.isInitialized||(Sn.traits.anonymousId=gL(),Sn.config.isInitialized=!0),Sn.traits.fingerprint||(Sn.traits.fingerprint=await AL()),Sn}const FL=Object.freeze(Object.defineProperty({__proto__:null,default:vL},Symbol.toStringTag,{value:"Module"}));var rR=function(){return rR=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},rR.apply(this,arguments)};function zo(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 Co(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 e7(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 t7="3.4.2";function ba(e,t){return new Promise(function(r){return setTimeout(r,e,t)})}function xL(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})}):ba(Math.min(e,t))}function qI(e){return!!e&&typeof e.then=="function"}function r7(e,t){try{var r=e();qI(r)?r.then(function(o){return t(!0,o)},function(o){return t(!1,o)}):t(!0,r)}catch(o){t(!1,o)}}function i7(e,t,r){return r===void 0&&(r=16),zo(this,void 0,void 0,function(){var o,n,s,l;return Co(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,ba(0)]):[3,3]):[3,4];case 2:a.sent(),a.label=3;case 3:return++s,[3,1];case 4:return[2,o]}})})}function Ya(e){e.then(void 0,function(){})}function Xo(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 Gs(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 ei(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 Jt(e,t){return[e[0]^t[0],e[1]^t[1]]}function o7(e){return e=Jt(e,[0,e[0]>>>1]),e=Zi(e,[4283543511,3981806797]),e=Jt(e,[0,e[0]>>>1]),e=Zi(e,[3301882366,444984403]),e=Jt(e,[0,e[0]>>>1]),e}function n7(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=Gs(l,31),l=Zi(l,u),n=Jt(n,l),n=Gs(n,27),n=Xo(n,s),n=Xo(Zi(n,[0,5]),[0,1390208809]),a=Zi(a,u),a=Gs(a,33),a=Zi(a,c),s=Jt(s,a),s=Gs(s,31),s=Xo(s,n),s=Xo(Zi(s,[0,5]),[0,944331445]);switch(l=[0,0],a=[0,0],r){case 15:a=Jt(a,ei([0,e.charCodeAt(I+14)],48));case 14:a=Jt(a,ei([0,e.charCodeAt(I+13)],40));case 13:a=Jt(a,ei([0,e.charCodeAt(I+12)],32));case 12:a=Jt(a,ei([0,e.charCodeAt(I+11)],24));case 11:a=Jt(a,ei([0,e.charCodeAt(I+10)],16));case 10:a=Jt(a,ei([0,e.charCodeAt(I+9)],8));case 9:a=Jt(a,[0,e.charCodeAt(I+8)]),a=Zi(a,u),a=Gs(a,33),a=Zi(a,c),s=Jt(s,a);case 8:l=Jt(l,ei([0,e.charCodeAt(I+7)],56));case 7:l=Jt(l,ei([0,e.charCodeAt(I+6)],48));case 6:l=Jt(l,ei([0,e.charCodeAt(I+5)],40));case 5:l=Jt(l,ei([0,e.charCodeAt(I+4)],32));case 4:l=Jt(l,ei([0,e.charCodeAt(I+3)],24));case 3:l=Jt(l,ei([0,e.charCodeAt(I+2)],16));case 2:l=Jt(l,ei([0,e.charCodeAt(I+1)],8));case 1:l=Jt(l,[0,e.charCodeAt(I)]),l=Zi(l,c),l=Gs(l,31),l=Zi(l,u),n=Jt(n,l)}return n=Jt(n,[0,e.length]),s=Jt(s,[0,e.length]),n=Xo(n,s),s=Xo(s,n),n=o7(n),s=o7(s),n=Xo(n,s),s=Xo(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 KL(e){var t;return rR({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(`
506
506
  `)},e)}function bL(e,t){for(var r=0,o=e.length;r<o;++r)if(e[r]===t)return!0;return!1}function YL(e,t){return!bL(e,t)}function iR(e){return parseInt(e)}function Si(e){return parseFloat(e)}function fo(e,t){return typeof e=="number"&&isNaN(e)?t:e}function Wi(e){return e.reduce(function(t,r){return t+(r?1:0)},0)}function s7(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 SL(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 l7(e){return e&&typeof e=="object"&&"message"in e?e:{message:e}}function a7(e){return typeof e!="function"}function WL(e,t){var r=new Promise(function(o){var n=Date.now();r7(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:l7(s[1]),duration:a}});var c=s[1];if(a7(c))return o(function(){return{value:c,duration:a}});o(function(){return new Promise(function(u){var I=Date.now();r7(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:l7(E[1]),duration:M});u({value:E[1],duration:M})})})})})});return Ya(r),function(){return r.then(function(n){return n()})}}function c7(e,t,r){var o=Object.keys(e).filter(function(s){return YL(r,s)}),n=i7(o,function(s){return WL(e[s],t)});return Ya(n),function(){return zo(this,void 0,void 0,function(){var l,a,c,u,I;return Co(this,function(E){switch(E.label){case 0:return[4,n];case 1:return l=E.sent(),[4,i7(l,function(d){var M=d();return Ya(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 kL(e,t){var r=function(o){return a7(o)?t(o):function(){var n=o();return qI(n)?n.then(t):t(n)}};return function(o){var n=e(o);return qI(n)?n.then(r):r(n)}}function oR(){var e=window,t=navigator;return Wi(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function u7(){var e=window,t=navigator;return Wi(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!oR()}function AI(){var e=window,t=navigator;return Wi(["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 Os(){var e=window,t=navigator;return Wi(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"getStorageUpdates"in t,"WebKitMediaKeys"in e])>=4}function gI(){var e=window;return Wi(["safari"in e,!("DeviceMotionEvent"in e),!("ongestureend"in e),!("standalone"in navigator)])>=3}function I7(){var e,t,r=window;return Wi(["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 jL(){var e=window;return Wi([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function UL(){var e=window;return Wi(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function QL(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return Wi(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function m7(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function JL(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function nR(){var e=AI(),t=I7();if(!e&&!t)return!1;var r=window;return Wi(["onorientationchange"in r,"orientation"in r,e&&!("SharedWorker"in r),t&&/android/i.test(navigator.appVersion)])>=2}function PL(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(wL())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=TL(n),c=a[0],u=a[1],I=c.then(function(E){return GL(E.getChannelData(0).subarray(r))},function(E){if(E.name==="timeout"||E.name==="suspended")return-3;throw E});return Ya(I),function(){return u(),I}}function wL(){return Os()&&!gI()&&!UL()}function TL(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(E7("timeout"))},Math.min(o,E+n-Date.now()))},M=function(){try{var V=e.startRendering();switch(qI(V)&&Ya(V),e.state){case"running":E=Date.now(),u&&d();break;case"suspended":document.hidden||I++,u&&I>=t?c(E7("suspended")):setTimeout(M,r);break}}catch(R){c(R)}};M(),s=function(){u||(u=!0,E>0&&d())}});return[l,s]}function GL(e){for(var t=0,r=0;r<e.length;++r)t+=Math.abs(e[r]);return t}function E7(e){var t=new Error(e);return t.name=e,t}function sR(e,t,r){var o,n,s;return r===void 0&&(r=50),zo(this,void 0,void 0,function(){var l,a;return Co(this,function(c){switch(c.label){case 0:l=document,c.label=1;case 1:return l.body?[3,3]:[4,ba(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,ba(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 OL(e){for(var t=SL(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"?HL(n.style,c):n.setAttribute(a,c)}return n}function HL(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 BL="mmMwWLliI0O&1",LL="48px",Hs=["monospace","sans-serif","serif"],d7=["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 XL(){return sR(function(e,t){var r=t.document,o=r.body;o.style.fontSize=LL;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=BL,n.appendChild(h),h},c=function(R,h){return a("'".concat(R,"',").concat(h))},u=function(){return Hs.map(a)},I=function(){for(var R={},h=function(g){R[g]=Hs.map(function(p){return c(g,p)})},z=0,f=d7;z<f.length;z++){var Z=f[z];h(Z)}return R},E=function(R){return Hs.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<Hs.length;V++)s[Hs[V]]=d[V].offsetWidth,l[Hs[V]]=d[V].offsetHeight;return d7.filter(function(R){return E(M[R])})})}function NL(){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 DL(){var e=!1,t,r,o=$L(),n=o[0],s=o[1];if(!_L(n,s))t=r="";else{e=eX(s),tX(n,s);var l=lR(n),a=lR(n);l!==a?t=r="unstable":(r=l,rX(n,s),t=lR(n))}return{winding:e,geometry:t,text:r}}function $L(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}function _L(e,t){return!!(t&&e.toDataURL)}function eX(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}function tX(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 rX(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 lR(e){return e.toDataURL()}function iX(){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 oX(){return navigator.oscpu}function nX(){var e=navigator,t=[],r=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(r!==void 0&&t.push([r]),Array.isArray(e.languages))AI()&&jL()||t.push(e.languages);else if(typeof e.languages=="string"){var o=e.languages;o&&t.push(o.split(","))}return t}function sX(){return window.screen.colorDepth}function lX(){return fo(Si(navigator.deviceMemory),void 0)}function aX(){var e=screen,t=function(o){return fo(iR(o),null)},r=[t(e.width),t(e.height)];return r.sort().reverse(),r}var cX=2500,uX=10,yI,aR;function IX(){if(aR===void 0){var e=function(){var t=cR();uR(t)?aR=setTimeout(e,cX):(yI=t,aR=void 0)};e()}}function M7(){var e=this;return IX(),function(){return zo(e,void 0,void 0,function(){var t;return Co(this,function(r){switch(r.label){case 0:return t=cR(),uR(t)?yI?[2,e7([],yI,!0)]:m7()?[4,JL()]:[3,2]:[3,2];case 1:r.sent(),t=cR(),r.label=2;case 2:return uR(t)||(yI=t),[2,t]}})})}}function mX(){var e=this,t=M7();return function(){return zo(e,void 0,void 0,function(){var r,o;return Co(this,function(n){switch(n.label){case 0:return[4,t()];case 1:return r=n.sent(),o=function(s){return s===null?null:s7(s,uX)},[2,[o(r[0]),o(r[1]),o(r[2]),o(r[3])]]}})})}}function cR(){var e=screen;return[fo(Si(e.availTop),null),fo(Si(e.width)-Si(e.availWidth)-fo(Si(e.availLeft),0),null),fo(Si(e.height)-Si(e.availHeight)-fo(Si(e.availTop),0),null),fo(Si(e.availLeft),null)]}function uR(e){for(var t=0;t<4;++t)if(e[t])return!1;return!0}function EX(){return fo(iR(navigator.hardwareConcurrency),void 0)}function dX(){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=-MX();return"UTC".concat(o>=0?"+":"").concat(Math.abs(o))}function MX(){var e=new Date().getFullYear();return Math.max(Si(new Date(e,0,1).getTimezoneOffset()),Si(new Date(e,6,1).getTimezoneOffset()))}function RX(){try{return!!window.sessionStorage}catch{return!0}}function hX(){try{return!!window.localStorage}catch{return!0}}function VX(){if(!(oR()||u7()))try{return!!window.indexedDB}catch{return!0}}function zX(){return!!window.openDatabase}function CX(){return navigator.cpuClass}function fX(){var e=navigator.platform;return e==="MacIntel"&&Os()&&!gI()?QL()?"iPad":"iPhone":e}function ZX(){return navigator.vendor||""}function pX(){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 qX(){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 AX(){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 gX(e){var t=e===void 0?{}:e,r=t.debug;return zo(this,void 0,void 0,function(){var o,n,s,l,a,c;return Co(this,function(u){switch(u.label){case 0:return yX()?(o=AX(),n=Object.keys(o),s=(c=[]).concat.apply(c,n.map(function(I){return o[I]})),[4,vX(s)]):[2,void 0];case 1:return l=u.sent(),r&&FX(o,l),a=n.filter(function(I){var E=o[I],d=Wi(E.map(function(M){return l[M]}));return d>E.length*.6}),a.sort(),[2,a]}})})}function yX(){return Os()||nR()}function vX(e){var t;return zo(this,void 0,void 0,function(){var r,o,n,s,c,l,a,c;return Co(this,function(u){switch(u.label){case 0:for(r=document,o=r.createElement("div"),n=new Array(e.length),s={},R7(o),c=0;c<e.length;++c)l=OL(e[c]),l.tagName==="DIALOG"&&l.show(),a=r.createElement("div"),R7(a),a.appendChild(l),o.appendChild(a),n[c]=l;u.label=1;case 1:return r.body?[3,3]:[4,ba(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 R7(e){e.style.setProperty("display","block","important")}function FX(e,t){for(var r="DOM blockers debug:\n```",o=0,n=Object.keys(e);o<n.length;o++){var s=n[o];r+=`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scmlatam/web-ui",
3
3
  "private": false,
4
- "version": "0.1.14",
4
+ "version": "0.1.15",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public"