slick-table 1.1.79 → 1.1.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/dist/index.cjs.js +65 -32
- package/dist/index.es.js +222 -168
- package/dist/types/shared/lib/slickgrid/model/SlickTable/printer/DefaultPrinter.d.ts +5 -4
- package/dist/types/shared/lib/slickgrid/model/SlickTable/printer/DefaultPrinter.d.ts.map +1 -1
- package/dist/types/shared/lib/slickgrid/model/SlickTable/printer/lib/applyHtmlToDocument.d.ts +3 -0
- package/dist/types/shared/lib/slickgrid/model/SlickTable/printer/lib/applyHtmlToDocument.d.ts.map +1 -0
- package/dist/types/shared/lib/slickgrid/model/SlickTable/printer/lib/index.d.ts +2 -0
- package/dist/types/shared/lib/slickgrid/model/SlickTable/printer/lib/index.d.ts.map +1 -0
- package/dist/types/shared/lib/slickgrid/model/SlickTable/printer/model/consts/cssStyles.d.ts +1 -1
- package/dist/types/shared/lib/slickgrid/model/SlickTable/printer/model/consts/cssStyles.d.ts.map +1 -1
- package/dist/types/shared/model/types/IHtmlDocElements.d.ts +8 -0
- package/dist/types/shared/model/types/IHtmlDocElements.d.ts.map +1 -0
- package/dist/types/shared/model/types/IPrinter.d.ts +6 -4
- package/dist/types/shared/model/types/IPrinter.d.ts.map +1 -1
- package/dist/types/shared/model/types/index.d.ts +1 -0
- package/dist/types/shared/model/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/shared/lib/slickgrid/model/SlickTable/printer/DefaultPrinter.ts +76 -33
- package/src/shared/lib/slickgrid/model/SlickTable/printer/lib/applyHtmlToDocument.ts +7 -0
- package/src/shared/lib/slickgrid/model/SlickTable/printer/lib/index.ts +1 -0
- package/src/shared/lib/slickgrid/model/SlickTable/printer/model/consts/cssStyles.ts +28 -23
- package/src/shared/model/types/IHtmlDocElements.ts +7 -0
- package/src/shared/model/types/IPrinter.ts +6 -4
- package/src/shared/model/types/index.ts +1 -0
package/dist/index.cjs.js
CHANGED
|
@@ -264,8 +264,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
264
264
|
)`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:pD||{"&::after":{animation:`${lu} 2s linear 0.5s infinite`}}}]}})),nh=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiSkeleton"}),{animation:r="pulse",className:i,component:a="span",height:l,style:d,variant:u="text",width:f,...p}=o,y={...o,animation:r,component:a,variant:u,hasChildren:!!p.children},w=hD(y);return E.jsx(mD,{as:a,ref:n,className:Se(w.root,i),ownerState:y,...p,style:{width:f,height:l,...d}})});process.env.NODE_ENV!=="production"&&(nh.propTypes={animation:s.oneOf(["pulse","wave",!1]),children:s.node,classes:s.object,className:s.string,component:s.elementType,height:s.oneOfType([s.number,s.string]),style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["circular","rectangular","rounded","text"]),s.string]),width:s.oneOfType([s.number,s.string])});function gD(e){return Me("MuiTooltip",e)}const Zt=Pe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function yD(e){return Math.round(e*1e5)/1e5}const vD=e=>{const{classes:t,disableInteractive:n,arrow:o,touch:r,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",r&&"touch",`tooltipPlacement${we(i.split("-")[0])}`],arrow:["arrow"]};return Ie(a,gD,t)},bD=ie(dc,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(ot(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Zt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Zt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Zt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Zt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Zt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Zt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Zt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Zt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),wD=ie("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${we(n.placement.split("-")[0])}`]]}})(ot(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:tt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Zt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Zt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Zt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Zt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${yD(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Zt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Zt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Zt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Zt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Zt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Zt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Zt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Zt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Zt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Zt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),CD=ie("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(ot(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:tt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let el=!1;const fm=new sc;let mi={x:0,y:0};function tl(e,t){return(n,...o)=>{t&&t(n,...o),e(n,...o)}}const $y=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiTooltip"}),{arrow:r=!1,children:i,classes:a,components:l={},componentsProps:d={},describeChild:u=!1,disableFocusListener:f=!1,disableHoverListener:p=!1,disableInteractive:y=!1,disableTouchListener:w=!1,enterDelay:b=100,enterNextDelay:m=0,enterTouchDelay:v=700,followCursor:P=!1,id:D,leaveDelay:x=0,leaveTouchDelay:S=1500,onClose:C,onOpen:O,open:A,placement:F="bottom",PopperComponent:W,PopperProps:R={},slotProps:$={},slots:K={},title:G,TransitionComponent:q=qr,TransitionProps:Y,...z}=o,ae=T.isValidElement(i)?i:E.jsx("span",{children:i}),N=Zr(),M=ro(),[L,B]=T.useState(),[ne,oe]=T.useState(null),se=T.useRef(!1),j=y||P,ee=Ss(),J=Ss(),te=Ss(),ce=Ss(),[le,he]=go({controlled:A,default:!1,name:"Tooltip",state:"open"});let H=le;if(process.env.NODE_ENV!=="production"){const{current:He}=T.useRef(A!==void 0);T.useEffect(()=>{L&&L.disabled&&!He&&G!==""&&L.tagName.toLowerCase()==="button"&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
265
265
|
`))},[G,L,He])}const re=cr(D),Z=T.useRef(),fe=Te(()=>{Z.current!==void 0&&(document.body.style.WebkitUserSelect=Z.current,Z.current=void 0),ce.clear()});T.useEffect(()=>fe,[fe]);const pe=He=>{fm.clear(),el=!0,he(!0),O&&!H&&O(He)},be=Te(He=>{fm.start(800+x,()=>{el=!1}),he(!1),C&&H&&C(He),ee.start(N.transitions.duration.shortest,()=>{se.current=!1})}),ge=He=>{se.current&&He.type!=="touchstart"||(L&&L.removeAttribute("title"),J.clear(),te.clear(),b||el&&m?J.start(el?m:b,()=>{pe(He)}):pe(He))},Re=He=>{J.clear(),te.start(x,()=>{be(He)})},[,Ve]=T.useState(!1),Ne=He=>{Rl(He.target)||(Ve(!1),Re(He))},Je=He=>{L||B(He.currentTarget),Rl(He.target)&&(Ve(!0),ge(He))},Ee=He=>{se.current=!0;const _e=ae.props;_e.onTouchStart&&_e.onTouchStart(He)},ut=He=>{Ee(He),te.clear(),ee.clear(),fe(),Z.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(v,()=>{document.body.style.WebkitUserSelect=Z.current,ge(He)})},Ut=He=>{ae.props.onTouchEnd&&ae.props.onTouchEnd(He),fe(),te.start(S,()=>{be(He)})};T.useEffect(()=>{if(!H)return;function He(_e){_e.key==="Escape"&&be(_e)}return document.addEventListener("keydown",He),()=>{document.removeEventListener("keydown",He)}},[be,H]);const rt=ct(Gs(ae),B,n);!G&&G!==0&&(H=!1);const Ot=T.useRef(),qt=He=>{const _e=ae.props;_e.onMouseMove&&_e.onMouseMove(He),mi={x:He.clientX,y:He.clientY},Ot.current&&Ot.current.update()},Lt={},Ue=typeof G=="string";u?(Lt.title=!H&&Ue&&!p?G:null,Lt["aria-describedby"]=H?re:null):(Lt["aria-label"]=Ue?G:null,Lt["aria-labelledby"]=H&&!Ue?re:null);const We={...Lt,...z,...ae.props,className:Se(z.className,ae.props.className),onTouchStart:Ee,ref:rt,...P?{onMouseMove:qt}:{}};process.env.NODE_ENV!=="production"&&(We["data-mui-internal-clone-element"]=!0,T.useEffect(()=>{L&&!L.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
266
266
|
`))},[L]));const ln={};w||(We.onTouchStart=ut,We.onTouchEnd=Ut),p||(We.onMouseOver=tl(ge,We.onMouseOver),We.onMouseLeave=tl(Re,We.onMouseLeave),j||(ln.onMouseOver=ge,ln.onMouseLeave=Re)),f||(We.onFocus=tl(Je,We.onFocus),We.onBlur=tl(Ne,We.onBlur),j||(ln.onFocus=Je,ln.onBlur=Ne)),process.env.NODE_ENV!=="production"&&ae.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${ae.props.title}\` or the Tooltip component.`].join(`
|
|
267
|
-
`));const hn=T.useMemo(()=>{let He=[{name:"arrow",enabled:!!ne,options:{element:ne,padding:4}}];return R.popperOptions?.modifiers&&(He=He.concat(R.popperOptions.modifiers)),{...R.popperOptions,modifiers:He}},[ne,R]),Oe={...o,isRtl:M,arrow:r,disableInteractive:j,placement:F,PopperComponentProp:W,touch:se.current},Be=vD(Oe),ht=K.popper??l.Popper??bD,sn=K.transition??l.Transition??q??qr,Fn=K.tooltip??l.Tooltip??wD,at=K.arrow??l.Arrow??CD,Qt=_s(ht,{...R,...$.popper??d.popper,className:Se(Be.popper,R?.className,($.popper??d.popper)?.className)},Oe),gn=_s(sn,{...Y,...$.transition??d.transition},Oe),Jt=_s(Fn,{...$.tooltip??d.tooltip,className:Se(Be.tooltip,($.tooltip??d.tooltip)?.className)},Oe),fr=_s(at,{...$.arrow??d.arrow,className:Se(Be.arrow,($.arrow??d.arrow)?.className)},Oe);return E.jsxs(T.Fragment,{children:[T.cloneElement(ae,We),E.jsx(ht,{as:W??dc,placement:F,anchorEl:P?{getBoundingClientRect:()=>({top:mi.y,left:mi.x,right:mi.x,bottom:mi.y,width:0,height:0})}:L,popperRef:Ot,open:L?H:!1,id:re,transition:!0,...ln,...Qt,popperOptions:hn,children:({TransitionProps:He})=>E.jsx(sn,{timeout:N.transitions.duration.shorter,...He,...gn,children:E.jsxs(Fn,{...Jt,children:[G,r?E.jsx(at,{...fr,ref:oe}):null]})})})]})});process.env.NODE_ENV!=="production"&&($y.propTypes={arrow:s.bool,children:qs.isRequired,classes:s.object,className:s.string,components:s.shape({Arrow:s.elementType,Popper:s.elementType,Tooltip:s.elementType,Transition:s.elementType}),componentsProps:s.shape({arrow:s.object,popper:s.object,tooltip:s.object,transition:s.object}),describeChild:s.bool,disableFocusListener:s.bool,disableHoverListener:s.bool,disableInteractive:s.bool,disableTouchListener:s.bool,enterDelay:s.number,enterNextDelay:s.number,enterTouchDelay:s.number,followCursor:s.bool,id:s.string,leaveDelay:s.number,leaveTouchDelay:s.number,onClose:s.func,onOpen:s.func,open:s.bool,placement:s.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:s.elementType,PopperProps:s.object,slotProps:s.shape({arrow:s.object,popper:s.object,tooltip:s.object,transition:s.object}),slots:s.shape({arrow:s.elementType,popper:s.elementType,tooltip:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),title:s.node,TransitionComponent:s.elementType,TransitionProps:s.object});function SD(e){return Me("MuiTextField",e)}Pe("MuiTextField",["root"]);const _D={standard:oa,filled:na,outlined:Bs},xD=e=>{const{classes:t}=e;return Ie({root:["root"]},SD,t)},RD=ie(yc,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Hs=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:a,className:l,color:d="primary",defaultValue:u,disabled:f=!1,error:p=!1,FormHelperTextProps:y,fullWidth:w=!1,helperText:b,id:m,InputLabelProps:v,inputProps:P,InputProps:D,inputRef:x,label:S,maxRows:C,minRows:O,multiline:A=!1,name:F,onBlur:W,onChange:R,onFocus:$,placeholder:K,required:G=!1,rows:q,select:Y=!1,SelectProps:z,slots:ae={},slotProps:N={},type:M,value:L,variant:B="outlined",...ne}=o,oe={...o,autoFocus:i,color:d,disabled:f,error:p,fullWidth:w,multiline:A,required:G,select:Y,variant:B},se=xD(oe);process.env.NODE_ENV!=="production"&&Y&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const j=cr(m),ee=b&&j?`${j}-helper-text`:void 0,J=S&&j?`${j}-label`:void 0,te=_D[B],ce={slots:ae,slotProps:{input:D,inputLabel:v,htmlInput:P,formHelperText:y,select:z,...N}},le={},he=ce.slotProps.inputLabel;B==="outlined"&&(he&&typeof he.shrink<"u"&&(le.notched=he.shrink),le.label=S),Y&&((!z||!z.native)&&(le.id=void 0),le["aria-describedby"]=void 0);const[H,re]=On("input",{elementType:te,externalForwardedProps:ce,additionalProps:le,ownerState:oe}),[Z,fe]=On("inputLabel",{elementType:vc,externalForwardedProps:ce,ownerState:oe}),[pe,be]=On("htmlInput",{elementType:"input",externalForwardedProps:ce,ownerState:oe}),[ge,Re]=On("formHelperText",{elementType:Xu,externalForwardedProps:ce,ownerState:oe}),[Ve,Ne]=On("select",{elementType:Ca,externalForwardedProps:ce,ownerState:oe}),Je=E.jsx(H,{"aria-describedby":ee,autoComplete:r,autoFocus:i,defaultValue:u,fullWidth:w,multiline:A,name:F,rows:q,maxRows:C,minRows:O,type:M,value:L,id:j,inputRef:x,onBlur:W,onChange:R,onFocus:$,placeholder:K,inputProps:be,slots:{input:ae.htmlInput?pe:void 0},...re});return E.jsxs(RD,{className:Se(se.root,l),disabled:f,error:p,fullWidth:w,ref:n,required:G,color:d,variant:B,ownerState:oe,...ne,children:[S!=null&&S!==""&&E.jsx(Z,{htmlFor:j,id:J,...fe,children:S}),Y?E.jsx(Ve,{"aria-describedby":ee,id:j,labelId:J,value:L,input:Je,...Ne,children:a}):Je,b&&E.jsx(ge,{id:ee,...Re,children:b})]})});process.env.NODE_ENV!=="production"&&(Hs.propTypes={autoComplete:s.string,autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),defaultValue:s.any,disabled:s.bool,error:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:Yt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onFocus:s.func,placeholder:s.string,required:s.bool,rows:s.oneOfType([s.number,s.string]),select:s.bool,SelectProps:s.object,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({formHelperText:s.oneOfType([s.func,s.object]),htmlInput:s.oneOfType([s.func,s.object]),input:s.oneOfType([s.func,s.object]),inputLabel:s.oneOfType([s.func,s.object]),select:s.oneOfType([s.func,s.object])}),slots:s.shape({formHelperText:s.elementType,htmlInput:s.elementType,input:s.elementType,inputLabel:s.elementType,select:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any,variant:s.oneOf(["filled","outlined","standard"])});const TD=ie(nh)({width:"100%",borderRadius:"10px"}),ED={Skeleton:TD},kD=({height:e="calc(100% - 1em)"})=>E.jsx(ED.Skeleton,{variant:"rectangular",height:e});var je=(e=>(e[e.Boolean=1]="Boolean",e[e.DateBetween=2]="DateBetween",e[e.DateEqual=3]="DateEqual",e[e.DateFrom=4]="DateFrom",e[e.DateTo=5]="DateTo",e[e.MultipleSelect=6]="MultipleSelect",e[e.NumberBetween=7]="NumberBetween",e[e.NumberEqual=8]="NumberEqual",e[e.NumberFrom=9]="NumberFrom",e[e.NumberTo=10]="NumberTo",e[e.TextContain=11]="TextContain",e[e.TextEqual=12]="TextEqual",e[e.TextNotContain=13]="TextNotContain",e[e.TextNotEqual=14]="TextNotEqual",e))(je||{}),pn=(e=>(e.Boolean="Boolean",e.Date="Date",e.MultipleSelect="MultipleSelect",e.Number="Number",e.NumberFormatted="NumberFormatted",e.Text="Text",e))(pn||{}),Gr=(e=>(e.db="YYYY-MM-DD",e.ui="MM/DD/YY",e))(Gr||{}),Vr=(e=>(e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.Control="Control",e.Enter="Enter",e.Tab="Tab",e))(Vr||{}),Jr=(e=>(e[e.KeyB=66]="KeyB",e[e.KeyDel=46]="KeyDel",e[e.KeyEnter=13]="KeyEnter",e[e.KeyR=82]="KeyR",e[e.KeyS=83]="KeyS",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e))(Jr||{}),Ro=(e=>(e[e.DATE=1]="DATE",e[e.NUMBER=2]="NUMBER",e[e.NUMBER_FORMATTED=3]="NUMBER_FORMATTED",e[e.TEXT_NUMERIC=4]="TEXT_NUMERIC",e[e.TEXT=5]="TEXT",e))(Ro||{});const pm=e=>t=>{t.keyCode===Jr.KeyEnter&&(t.stopImmediatePropagation(),e.navigateNext())},PD=e=>(t,n)=>{const{grid:o,item:r}=n;r.isEdited=!0,o.invalidate(),e.isEdited=!0,e.hotKeysBehavior.pushToCommandQueue(o)},DD=e=>(t,n)=>{e.invalidateRows(n.rows),e.render()},OD=e=>()=>{const t=e.grid;t&&(t.updateRowCount(),t.render())};var nn=(e=>(e.columnFilters="column-filters",e.columnWidths="column-widths",e.hiddenColumnIds="hidden-column-ids",e.slickTable="slick-table",e.sorting="sorting",e))(nn||{});function Vy(){return JSON.parse(localStorage.getItem(nn.slickTable)||"{}")}function po(e){return Vy()[e]||{}}function Kr(e,t){const n=Vy();localStorage.setItem(nn.slickTable,JSON.stringify({...n,[e]:t}))}let MD=class{get(t){return po(nn.columnFilters)[t]}reset(t){const n=po(nn.columnFilters);n[t]=void 0,Kr(nn.columnFilters,n)}set(t,n){const o=po(nn.columnFilters);o[t]=n,Kr(nn.columnFilters,o)}};class ID{get(t){return po(nn.columnWidths)[t]}reset(t){const n=po(nn.columnWidths);n[t]=void 0,Kr(nn.columnWidths,n)}set(t,n){const o=po(nn.columnWidths);o[t]=n,Kr(nn.columnWidths,o)}}class ND{get(t){return po(nn.hiddenColumnIds)[t]||[]}set(t,n){const o=po(nn.hiddenColumnIds);o[t]=n.length?n:void 0,Kr(nn.hiddenColumnIds,o)}}class AD{get(t){return po(nn.sorting)[t]}reset(t){const n=po(nn.sorting);n[t]=void 0,Kr(nn.sorting,n)}set(t,n,o){const r=po(nn.sorting);r[t]={columnId:n,isAscending:o},Kr(nn.sorting,r)}}class FD{constructor(){this.columnFilters=new MD,this.columnWidths=new ID,this.hiddenColumns=new ND,this.sorting=new AD}}const mo=new FD;class LD{constructor(){this._initialColumns=[],this._hiddenColumnIds=[],this._tableId=""}getInitialColumns(){return this._initialColumns}setInitialColumns(t,n){this._initialColumns=t,this._tableId=n,this.hiddenColumnIds=mo.hiddenColumns.get(n)}get hiddenColumnIds(){return this._hiddenColumnIds}set hiddenColumnIds(t){this._hiddenColumnIds=t,mo.hiddenColumns.set(this._tableId,t)}}const Td=e=>e!==e?"":String(e??"").replace(/(^")|("$)/g,"");function jy(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}const $D=["FormatterStatus","FormatterNumber"];class VD{constructor(){this.table=null}download(t,n,o){if(this.table||(this.table=t),this.table=t,!t.grid)return;const i=this.createCSV(t),a=document.createElement("a");a.href="data:text/csv;charset=utf-8,"+encodeURIComponent(i),a.target="_blank",a.download=`${n}-${o}-${t.id}.csv`,a.click()}createCSV(t){this.table||(this.table=t);const n=t.grid;if(!n)return"";const o=this.getTitle(),r=this.getCSVHeader(n),i=this.getCSVBody(n);return`${o}${r}${i}`}getTitle(){return""}getCSVHeader(t){const r=t.getColumns().filter(i=>i.forPrint).reduce((i,a)=>{if(typeof a.name=="string"){const l=Td(a.name);return i.concat(`"${l}",`)}else return i.concat('" ",')},"");return this.addRowSeparator(r)}getCSVBody(t){const n=t.getData(),r=t.getColumns().filter(i=>i.forPrint);return WB(t).reduce((i,a)=>{const l=n.getItemMetadata(a),d=n.getItem(a),u=d.__group,f=d.__groupTotals;let p="";if(u){const y=Td(jy(d.title));p+=`"${y}",`}else for(let y=0;y<r.length;++y){const w=r[y],b=w.field,m=l?.columns?.[b]?.formatter,v=w.printer||m||w.formatter;let P=d[b];if(f){const x=w.groupTotalsFormatter;P=x?x(d,w,t):""}else v&&!$D.includes(v.name)&&(P=v(0,0,P,w,d,t));const D=Td(P);p+=`"${D}",`}return this.addRowSeparator(`${i}${p}`)},"")}addRowSeparator(t){return`${t}
|
|
268
|
-
`}}class jD{constructor(){this.externalVariables={},this.commandQueue=[],this.queueIndex=-1}getQueueIndex(){return this.queueIndex}setQueueIndex(t){this.queueIndex=t}handleKeyboardEvent(t,n){if(!n.isActive)return;const o=n.grid;if(!o||!o.getOptions().editable)return;const r=o.getData();if(Yh(t)){if(t.preventDefault(),t.stopImmediatePropagation(),
|
|
267
|
+
`));const hn=T.useMemo(()=>{let He=[{name:"arrow",enabled:!!ne,options:{element:ne,padding:4}}];return R.popperOptions?.modifiers&&(He=He.concat(R.popperOptions.modifiers)),{...R.popperOptions,modifiers:He}},[ne,R]),Oe={...o,isRtl:M,arrow:r,disableInteractive:j,placement:F,PopperComponentProp:W,touch:se.current},Be=vD(Oe),ht=K.popper??l.Popper??bD,sn=K.transition??l.Transition??q??qr,Fn=K.tooltip??l.Tooltip??wD,at=K.arrow??l.Arrow??CD,Qt=_s(ht,{...R,...$.popper??d.popper,className:Se(Be.popper,R?.className,($.popper??d.popper)?.className)},Oe),gn=_s(sn,{...Y,...$.transition??d.transition},Oe),Jt=_s(Fn,{...$.tooltip??d.tooltip,className:Se(Be.tooltip,($.tooltip??d.tooltip)?.className)},Oe),fr=_s(at,{...$.arrow??d.arrow,className:Se(Be.arrow,($.arrow??d.arrow)?.className)},Oe);return E.jsxs(T.Fragment,{children:[T.cloneElement(ae,We),E.jsx(ht,{as:W??dc,placement:F,anchorEl:P?{getBoundingClientRect:()=>({top:mi.y,left:mi.x,right:mi.x,bottom:mi.y,width:0,height:0})}:L,popperRef:Ot,open:L?H:!1,id:re,transition:!0,...ln,...Qt,popperOptions:hn,children:({TransitionProps:He})=>E.jsx(sn,{timeout:N.transitions.duration.shorter,...He,...gn,children:E.jsxs(Fn,{...Jt,children:[G,r?E.jsx(at,{...fr,ref:oe}):null]})})})]})});process.env.NODE_ENV!=="production"&&($y.propTypes={arrow:s.bool,children:qs.isRequired,classes:s.object,className:s.string,components:s.shape({Arrow:s.elementType,Popper:s.elementType,Tooltip:s.elementType,Transition:s.elementType}),componentsProps:s.shape({arrow:s.object,popper:s.object,tooltip:s.object,transition:s.object}),describeChild:s.bool,disableFocusListener:s.bool,disableHoverListener:s.bool,disableInteractive:s.bool,disableTouchListener:s.bool,enterDelay:s.number,enterNextDelay:s.number,enterTouchDelay:s.number,followCursor:s.bool,id:s.string,leaveDelay:s.number,leaveTouchDelay:s.number,onClose:s.func,onOpen:s.func,open:s.bool,placement:s.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:s.elementType,PopperProps:s.object,slotProps:s.shape({arrow:s.object,popper:s.object,tooltip:s.object,transition:s.object}),slots:s.shape({arrow:s.elementType,popper:s.elementType,tooltip:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),title:s.node,TransitionComponent:s.elementType,TransitionProps:s.object});function SD(e){return Me("MuiTextField",e)}Pe("MuiTextField",["root"]);const _D={standard:oa,filled:na,outlined:Bs},xD=e=>{const{classes:t}=e;return Ie({root:["root"]},SD,t)},RD=ie(yc,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Hs=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:a,className:l,color:d="primary",defaultValue:u,disabled:f=!1,error:p=!1,FormHelperTextProps:y,fullWidth:w=!1,helperText:b,id:m,InputLabelProps:v,inputProps:P,InputProps:D,inputRef:x,label:S,maxRows:C,minRows:O,multiline:A=!1,name:F,onBlur:W,onChange:R,onFocus:$,placeholder:K,required:G=!1,rows:q,select:Y=!1,SelectProps:z,slots:ae={},slotProps:N={},type:M,value:L,variant:B="outlined",...ne}=o,oe={...o,autoFocus:i,color:d,disabled:f,error:p,fullWidth:w,multiline:A,required:G,select:Y,variant:B},se=xD(oe);process.env.NODE_ENV!=="production"&&Y&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const j=cr(m),ee=b&&j?`${j}-helper-text`:void 0,J=S&&j?`${j}-label`:void 0,te=_D[B],ce={slots:ae,slotProps:{input:D,inputLabel:v,htmlInput:P,formHelperText:y,select:z,...N}},le={},he=ce.slotProps.inputLabel;B==="outlined"&&(he&&typeof he.shrink<"u"&&(le.notched=he.shrink),le.label=S),Y&&((!z||!z.native)&&(le.id=void 0),le["aria-describedby"]=void 0);const[H,re]=On("input",{elementType:te,externalForwardedProps:ce,additionalProps:le,ownerState:oe}),[Z,fe]=On("inputLabel",{elementType:vc,externalForwardedProps:ce,ownerState:oe}),[pe,be]=On("htmlInput",{elementType:"input",externalForwardedProps:ce,ownerState:oe}),[ge,Re]=On("formHelperText",{elementType:Xu,externalForwardedProps:ce,ownerState:oe}),[Ve,Ne]=On("select",{elementType:Ca,externalForwardedProps:ce,ownerState:oe}),Je=E.jsx(H,{"aria-describedby":ee,autoComplete:r,autoFocus:i,defaultValue:u,fullWidth:w,multiline:A,name:F,rows:q,maxRows:C,minRows:O,type:M,value:L,id:j,inputRef:x,onBlur:W,onChange:R,onFocus:$,placeholder:K,inputProps:be,slots:{input:ae.htmlInput?pe:void 0},...re});return E.jsxs(RD,{className:Se(se.root,l),disabled:f,error:p,fullWidth:w,ref:n,required:G,color:d,variant:B,ownerState:oe,...ne,children:[S!=null&&S!==""&&E.jsx(Z,{htmlFor:j,id:J,...fe,children:S}),Y?E.jsx(Ve,{"aria-describedby":ee,id:j,labelId:J,value:L,input:Je,...Ne,children:a}):Je,b&&E.jsx(ge,{id:ee,...Re,children:b})]})});process.env.NODE_ENV!=="production"&&(Hs.propTypes={autoComplete:s.string,autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),defaultValue:s.any,disabled:s.bool,error:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:Yt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onFocus:s.func,placeholder:s.string,required:s.bool,rows:s.oneOfType([s.number,s.string]),select:s.bool,SelectProps:s.object,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({formHelperText:s.oneOfType([s.func,s.object]),htmlInput:s.oneOfType([s.func,s.object]),input:s.oneOfType([s.func,s.object]),inputLabel:s.oneOfType([s.func,s.object]),select:s.oneOfType([s.func,s.object])}),slots:s.shape({formHelperText:s.elementType,htmlInput:s.elementType,input:s.elementType,inputLabel:s.elementType,select:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any,variant:s.oneOf(["filled","outlined","standard"])});const TD=ie(nh)({width:"100%",borderRadius:"10px"}),ED={Skeleton:TD},kD=({height:e="calc(100% - 1em)"})=>E.jsx(ED.Skeleton,{variant:"rectangular",height:e});var je=(e=>(e[e.Boolean=1]="Boolean",e[e.DateBetween=2]="DateBetween",e[e.DateEqual=3]="DateEqual",e[e.DateFrom=4]="DateFrom",e[e.DateTo=5]="DateTo",e[e.MultipleSelect=6]="MultipleSelect",e[e.NumberBetween=7]="NumberBetween",e[e.NumberEqual=8]="NumberEqual",e[e.NumberFrom=9]="NumberFrom",e[e.NumberTo=10]="NumberTo",e[e.TextContain=11]="TextContain",e[e.TextEqual=12]="TextEqual",e[e.TextNotContain=13]="TextNotContain",e[e.TextNotEqual=14]="TextNotEqual",e))(je||{}),pn=(e=>(e.Boolean="Boolean",e.Date="Date",e.MultipleSelect="MultipleSelect",e.Number="Number",e.NumberFormatted="NumberFormatted",e.Text="Text",e))(pn||{}),Gr=(e=>(e.db="YYYY-MM-DD",e.ui="MM/DD/YY",e))(Gr||{}),Vr=(e=>(e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.Control="Control",e.Enter="Enter",e.Tab="Tab",e))(Vr||{}),Jr=(e=>(e[e.KeyB=66]="KeyB",e[e.KeyDel=46]="KeyDel",e[e.KeyEnter=13]="KeyEnter",e[e.KeyR=82]="KeyR",e[e.KeyS=83]="KeyS",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e))(Jr||{}),Ro=(e=>(e[e.DATE=1]="DATE",e[e.NUMBER=2]="NUMBER",e[e.NUMBER_FORMATTED=3]="NUMBER_FORMATTED",e[e.TEXT_NUMERIC=4]="TEXT_NUMERIC",e[e.TEXT=5]="TEXT",e))(Ro||{});const pm=e=>t=>{t.keyCode===Jr.KeyEnter&&(t.stopImmediatePropagation(),e.navigateNext())},PD=e=>(t,n)=>{const{grid:o,item:r}=n;r.isEdited=!0,o.invalidate(),e.isEdited=!0,e.hotKeysBehavior.pushToCommandQueue(o)},DD=e=>(t,n)=>{e.invalidateRows(n.rows),e.render()},OD=e=>()=>{const t=e.grid;t&&(t.updateRowCount(),t.render())};var nn=(e=>(e.columnFilters="column-filters",e.columnWidths="column-widths",e.hiddenColumnIds="hidden-column-ids",e.slickTable="slick-table",e.sorting="sorting",e))(nn||{});function Vy(){return JSON.parse(localStorage.getItem(nn.slickTable)||"{}")}function po(e){return Vy()[e]||{}}function Kr(e,t){const n=Vy();localStorage.setItem(nn.slickTable,JSON.stringify({...n,[e]:t}))}let MD=class{get(t){return po(nn.columnFilters)[t]}reset(t){const n=po(nn.columnFilters);n[t]=void 0,Kr(nn.columnFilters,n)}set(t,n){const o=po(nn.columnFilters);o[t]=n,Kr(nn.columnFilters,o)}};class ID{get(t){return po(nn.columnWidths)[t]}reset(t){const n=po(nn.columnWidths);n[t]=void 0,Kr(nn.columnWidths,n)}set(t,n){const o=po(nn.columnWidths);o[t]=n,Kr(nn.columnWidths,o)}}class ND{get(t){return po(nn.hiddenColumnIds)[t]||[]}set(t,n){const o=po(nn.hiddenColumnIds);o[t]=n.length?n:void 0,Kr(nn.hiddenColumnIds,o)}}class AD{get(t){return po(nn.sorting)[t]}reset(t){const n=po(nn.sorting);n[t]=void 0,Kr(nn.sorting,n)}set(t,n,o){const r=po(nn.sorting);r[t]={columnId:n,isAscending:o},Kr(nn.sorting,r)}}class FD{constructor(){this.columnFilters=new MD,this.columnWidths=new ID,this.hiddenColumns=new ND,this.sorting=new AD}}const mo=new FD;class LD{constructor(){this._initialColumns=[],this._hiddenColumnIds=[],this._tableId=""}getInitialColumns(){return this._initialColumns}setInitialColumns(t,n){this._initialColumns=t,this._tableId=n,this.hiddenColumnIds=mo.hiddenColumns.get(n)}get hiddenColumnIds(){return this._hiddenColumnIds}set hiddenColumnIds(t){this._hiddenColumnIds=t,mo.hiddenColumns.set(this._tableId,t)}}const Td=e=>e!==e?"":String(e??"").replace(/(^")|("$)/g,"");function jy(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}const $D=["FormatterStatus","FormatterNumber"];class VD{constructor(){this.table=null}download(t,n,o){if(this.table||(this.table=t),this.table=t,!t.grid)return;const i=this.createCSV(t),a=document.createElement("a");a.href="data:text/csv;charset=utf-8,"+encodeURIComponent(i),a.target="_blank",a.download=`${n}-${o}-${t.id}.csv`,a.click()}createCSV(t){this.table||(this.table=t);const n=t.grid;if(!n)return"";const o=this.getTitle(),r=this.getCSVHeader(n),i=this.getCSVBody(n);return`${o}${r}${i}`}getTitle(){return""}getCSVHeader(t){const r=t.getColumns().filter(i=>i.forPrint).reduce((i,a)=>{if(typeof a.name=="string"){const l=Td(a.name);return i.concat(`"${l}",`)}else return i.concat('" ",')},"");return this.addRowSeparator(r)}getCSVBody(t){const n=t.getData(),r=t.getColumns().filter(i=>i.forPrint);return BB(t).reduce((i,a)=>{const l=n.getItemMetadata(a),d=n.getItem(a),u=d.__group,f=d.__groupTotals;let p="";if(u){const y=Td(jy(d.title));p+=`"${y}",`}else for(let y=0;y<r.length;++y){const w=r[y],b=w.field,m=l?.columns?.[b]?.formatter,v=w.printer||m||w.formatter;let P=d[b];if(f){const x=w.groupTotalsFormatter;P=x?x(d,w,t):""}else v&&!$D.includes(v.name)&&(P=v(0,0,P,w,d,t));const D=Td(P);p+=`"${D}",`}return this.addRowSeparator(`${i}${p}`)},"")}addRowSeparator(t){return`${t}
|
|
268
|
+
`}}class jD{constructor(){this.externalVariables={},this.commandQueue=[],this.queueIndex=-1}getQueueIndex(){return this.queueIndex}setQueueIndex(t){this.queueIndex=t}handleKeyboardEvent(t,n){if(!n.isActive)return;const o=n.grid;if(!o||!o.getOptions().editable)return;const r=o.getData();if(Yh(t)){if(t.preventDefault(),t.stopImmediatePropagation(),mB(o))return;Lb(o),o.invalidate(),this.pushToCommandQueue(o),n.isEdited=!0}else if(Ab(t)){t.preventDefault(),t.stopImmediatePropagation();const i=o.getSelectedRows();if(!i.length)return;i.forEach(a=>{const l=r.getItem(a);l.isDeleted=!0}),o.setSelectedRows([]),r.refresh(),o.invalidate(),this.pushToCommandQueue(o),n.isEdited=!0}else if(qh(t)){t.preventDefault(),t.stopImmediatePropagation();const i=this.getQueueIndex();if(i<1)return;const a=i-1;this.setQueueIndex(a),r.setItems(Ed(this.commandQueue[a])),o.invalidate(),n.isEdited=a!==0}else if(Uh(t)){t.preventDefault(),t.stopImmediatePropagation();const i=this.getQueueIndex();if(i===this.commandQueue.length-1)return;const a=i+1;this.setQueueIndex(a),r.setItems(Ed(this.commandQueue[a])),o.invalidate(),n.isEdited=!0}}pushToCommandQueue(t){if(!t)return;const o=t.getData().getItems(),i=this.getQueueIndex()+1;this.commandQueue.length=i,this.commandQueue.push(Ed(o)),this.setQueueIndex(i)}resetQueue(){this.commandQueue.length=0,this.queueIndex=-1}setExternalVariables(t){this.externalVariables={...this.externalVariables,...t}}getExternalVariables(){return this.externalVariables}}function Ed(e){return e.map(t=>({...t}))}class Wy{handleKeyboardEvent(){}pushToCommandQueue(){}resetQueue(){}setExternalVariables(t){}getExternalVariables(){return{}}}class bc{constructor(t){this.hotKeysBehaviour=t}handleKeyboardEvent(t,n){this.hotKeysBehaviour.handleKeyboardEvent(t,n)}pushToCommandQueue(t){this.hotKeysBehaviour.pushToCommandQueue(t)}resetQueue(){this.hotKeysBehaviour.resetQueue()}setExternalVariables(t){this.hotKeysBehaviour.setExternalVariables(t)}getExternalVariables(){return this.hotKeysBehaviour.getExternalVariables()}}class WD extends bc{handleKeyboardEvent(t,n){n.isActive&&(Yh(t)||super.handleKeyboardEvent.call(this,t,n))}}class BD extends bc{handleKeyboardEvent(t,n){n.isActive&&(Uh(t)||qh(t))&&super.handleKeyboardEvent.call(this,t,n)}}const cu="checkboxSelector",HD="wink",zD="bold";//! moment.js
|
|
269
269
|
//! version : 2.30.1
|
|
270
270
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
271
271
|
//! license : MIT
|
|
@@ -274,7 +274,7 @@ var By;function xe(){return By.apply(null,arguments)}function YD(e){By=e}functio
|
|
|
274
274
|
[`+i+"] ";for(a in arguments[0])mt(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[i];o.push(r)}zy(e+`
|
|
275
275
|
Arguments: `+Array.prototype.slice.call(o).join("")+`
|
|
276
276
|
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var gm={};function Yy(e,t){xe.deprecationHandler!=null&&xe.deprecationHandler(e,t),gm[e]||(zy(t),gm[e]=!0)}xe.suppressDeprecationWarnings=!1;xe.deprecationHandler=null;function Wo(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function qD(e){var t,n;for(n in e)mt(e,n)&&(t=e[n],Wo(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function uu(e,t){var n=br({},e),o;for(o in t)mt(t,o)&&(zr(e[o])&&zr(t[o])?(n[o]={},br(n[o],e[o]),br(n[o],t[o])):t[o]!=null?n[o]=t[o]:delete n[o]);for(o in e)mt(e,o)&&!mt(t,o)&&zr(e[o])&&(n[o]=br({},n[o]));return n}function ih(e){e!=null&&this.set(e)}var hu;Object.keys?hu=Object.keys:hu=function(e){var t,n=[];for(t in e)mt(e,t)&&n.push(t);return n};var GD={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function KD(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return Wo(o)?o.call(t,n):o}function Lo(e,t,n){var o=""+Math.abs(e),r=t-o.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+o}var ah=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,nl=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Pd={},Ds={};function $e(e,t,n,o){var r=o;typeof o=="string"&&(r=function(){return this[o]()}),e&&(Ds[e]=r),t&&(Ds[t[0]]=function(){return Lo(r.apply(this,arguments),t[1],t[2])}),n&&(Ds[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function XD(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function ZD(e){var t=e.match(ah),n,o;for(n=0,o=t.length;n<o;n++)Ds[t[n]]?t[n]=Ds[t[n]]:t[n]=XD(t[n]);return function(r){var i="",a;for(a=0;a<o;a++)i+=Wo(t[a])?t[a].call(r,e):t[a];return i}}function yl(e,t){return e.isValid()?(t=Uy(t,e.localeData()),Pd[t]=Pd[t]||ZD(t),Pd[t](e)):e.localeData().invalidDate()}function Uy(e,t){var n=5;function o(r){return t.longDateFormat(r)||r}for(nl.lastIndex=0;n>=0&&nl.test(e);)e=e.replace(nl,o),nl.lastIndex=0,n-=1;return e}var QD={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"};function JD(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ah).map(function(o){return o==="MMMM"||o==="MM"||o==="DD"||o==="dddd"?o.slice(1):o}).join(""),this._longDateFormat[e])}var eO="Invalid date";function tO(){return this._invalidDate}var nO="%d",oO=/\d{1,2}/;function rO(e){return this._ordinal.replace("%d",e)}var sO={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function iO(e,t,n,o){var r=this._relativeTime[n];return Wo(r)?r(e,t,n,o):r.replace(/%d/i,e)}function aO(e,t){var n=this._relativeTime[e>0?"future":"past"];return Wo(n)?n(t):n.replace(/%s/i,t)}var ym={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ao(e){return typeof e=="string"?ym[e]||ym[e.toLowerCase()]:void 0}function lh(e){var t={},n,o;for(o in e)mt(e,o)&&(n=ao(o),n&&(t[n]=e[o]));return t}var lO={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function cO(e){var t=[],n;for(n in e)mt(e,n)&&t.push({unit:n,priority:lO[n]});return t.sort(function(o,r){return o.priority-r.priority}),t}var qy=/\d/,zn=/\d\d/,Gy=/\d{3}/,ch=/\d{4}/,Cc=/[+-]?\d{6}/,At=/\d\d?/,Ky=/\d\d\d\d?/,Xy=/\d\d\d\d\d\d?/,Sc=/\d{1,3}/,dh=/\d{1,4}/,_c=/[+-]?\d{1,6}/,Zs=/\d+/,xc=/[+-]?\d+/,dO=/Z|[+-]\d\d:?\d\d/gi,Rc=/Z|[+-]\d\d(?::?\d\d)?/gi,uO=/[+-]?\d+(\.\d{1,3})?/,xa=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Qs=/^[1-9]\d?/,uh=/^([1-9]\d|\d)/,Nl;Nl={};function De(e,t,n){Nl[e]=Wo(t)?t:function(o,r){return o&&n?n:t}}function hO(e,t){return mt(Nl,e)?Nl[e](t._strict,t._locale):new RegExp(fO(e))}function fO(e){return tr(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,o,r,i){return n||o||r||i}))}function tr(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Qn(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function nt(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Qn(t)),n}var fu={};function kt(e,t){var n,o=t,r;for(typeof e=="string"&&(e=[e]),ar(t)&&(o=function(i,a){a[t]=nt(i)}),r=e.length,n=0;n<r;n++)fu[e[n]]=o}function Ra(e,t){kt(e,function(n,o,r,i){r._w=r._w||{},t(n,r._w,r,i)})}function pO(e,t,n){t!=null&&mt(fu,e)&&fu[e](t,n._a,n,e)}function Tc(e){return e%4===0&&e%100!==0||e%400===0}var Rn=0,Qo=1,Do=2,dn=3,ho=4,Jo=5,Wr=6,mO=7,gO=8;$e("Y",0,0,function(){var e=this.year();return e<=9999?Lo(e,4):"+"+e});$e(0,["YY",2],0,function(){return this.year()%100});$e(0,["YYYY",4],0,"year");$e(0,["YYYYY",5],0,"year");$e(0,["YYYYYY",6,!0],0,"year");De("Y",xc);De("YY",At,zn);De("YYYY",dh,ch);De("YYYYY",_c,Cc);De("YYYYYY",_c,Cc);kt(["YYYYY","YYYYYY"],Rn);kt("YYYY",function(e,t){t[Rn]=e.length===2?xe.parseTwoDigitYear(e):nt(e)});kt("YY",function(e,t){t[Rn]=xe.parseTwoDigitYear(e)});kt("Y",function(e,t){t[Rn]=parseInt(e,10)});function Wi(e){return Tc(e)?366:365}xe.parseTwoDigitYear=function(e){return nt(e)+(nt(e)>68?1900:2e3)};var Zy=Js("FullYear",!0);function yO(){return Tc(this.year())}function Js(e,t){return function(n){return n!=null?(Qy(this,e,n),xe.updateOffset(this,t),this):ra(this,e)}}function ra(e,t){if(!e.isValid())return NaN;var n=e._d,o=e._isUTC;switch(t){case"Milliseconds":return o?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return o?n.getUTCSeconds():n.getSeconds();case"Minutes":return o?n.getUTCMinutes():n.getMinutes();case"Hours":return o?n.getUTCHours():n.getHours();case"Date":return o?n.getUTCDate():n.getDate();case"Day":return o?n.getUTCDay():n.getDay();case"Month":return o?n.getUTCMonth():n.getMonth();case"FullYear":return o?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Qy(e,t,n){var o,r,i,a,l;if(!(!e.isValid()||isNaN(n))){switch(o=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?o.setUTCMilliseconds(n):o.setMilliseconds(n));case"Seconds":return void(r?o.setUTCSeconds(n):o.setSeconds(n));case"Minutes":return void(r?o.setUTCMinutes(n):o.setMinutes(n));case"Hours":return void(r?o.setUTCHours(n):o.setHours(n));case"Date":return void(r?o.setUTCDate(n):o.setDate(n));case"FullYear":break;default:return}i=n,a=e.month(),l=e.date(),l=l===29&&a===1&&!Tc(i)?28:l,r?o.setUTCFullYear(i,a,l):o.setFullYear(i,a,l)}}function vO(e){return e=ao(e),Wo(this[e])?this[e]():this}function bO(e,t){if(typeof e=="object"){e=lh(e);var n=cO(e),o,r=n.length;for(o=0;o<r;o++)this[n[o].unit](e[n[o].unit])}else if(e=ao(e),Wo(this[e]))return this[e](t);return this}function wO(e,t){return(e%t+t)%t}var tn;Array.prototype.indexOf?tn=Array.prototype.indexOf:tn=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function hh(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=wO(t,12);return e+=(t-n)/12,n===1?Tc(e)?29:28:31-n%7%2}$e("M",["MM",2],"Mo",function(){return this.month()+1});$e("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});$e("MMMM",0,0,function(e){return this.localeData().months(this,e)});De("M",At,Qs);De("MM",At,zn);De("MMM",function(e,t){return t.monthsShortRegex(e)});De("MMMM",function(e,t){return t.monthsRegex(e)});kt(["M","MM"],function(e,t){t[Qo]=nt(e)-1});kt(["MMM","MMMM"],function(e,t,n,o){var r=n._locale.monthsParse(e,o,n._strict);r!=null?t[Qo]=r:qe(n).invalidMonth=e});var CO="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Jy="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ev=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,SO=xa,_O=xa;function xO(e,t){return e?yo(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ev).test(t)?"format":"standalone"][e.month()]:yo(this._months)?this._months:this._months.standalone}function RO(e,t){return e?yo(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ev.test(t)?"format":"standalone"][e.month()]:yo(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function TO(e,t,n){var o,r,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)i=jo([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(i,"").toLocaleLowerCase();return n?t==="MMM"?(r=tn.call(this._shortMonthsParse,a),r!==-1?r:null):(r=tn.call(this._longMonthsParse,a),r!==-1?r:null):t==="MMM"?(r=tn.call(this._shortMonthsParse,a),r!==-1?r:(r=tn.call(this._longMonthsParse,a),r!==-1?r:null)):(r=tn.call(this._longMonthsParse,a),r!==-1?r:(r=tn.call(this._shortMonthsParse,a),r!==-1?r:null))}function EO(e,t,n){var o,r,i;if(this._monthsParseExact)return TO.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(r=jo([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!n&&!this._monthsParse[o]&&(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[o]=new RegExp(i.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[o].test(e))return o;if(n&&t==="MMM"&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}}function tv(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=nt(t);else if(t=e.localeData().monthsParse(t),!ar(t))return e}var n=t,o=e.date();return o=o<29?o:Math.min(o,hh(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,o):e._d.setMonth(n,o),e}function nv(e){return e!=null?(tv(this,e),xe.updateOffset(this,!0),this):ra(this,"Month")}function kO(){return hh(this.year(),this.month())}function PO(e){return this._monthsParseExact?(mt(this,"_monthsRegex")||ov.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(mt(this,"_monthsShortRegex")||(this._monthsShortRegex=SO),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function DO(e){return this._monthsParseExact?(mt(this,"_monthsRegex")||ov.call(this),e?this._monthsStrictRegex:this._monthsRegex):(mt(this,"_monthsRegex")||(this._monthsRegex=_O),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ov(){function e(d,u){return u.length-d.length}var t=[],n=[],o=[],r,i,a,l;for(r=0;r<12;r++)i=jo([2e3,r]),a=tr(this.monthsShort(i,"")),l=tr(this.months(i,"")),t.push(a),n.push(l),o.push(l),o.push(a);t.sort(e),n.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function OO(e,t,n,o,r,i,a){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,o,r,i,a),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,o,r,i,a),l}function sa(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Al(e,t,n){var o=7+t-n,r=(7+sa(e,0,o).getUTCDay()-t)%7;return-r+o-1}function rv(e,t,n,o,r){var i=(7+n-o)%7,a=Al(e,o,r),l=1+7*(t-1)+i+a,d,u;return l<=0?(d=e-1,u=Wi(d)+l):l>Wi(e)?(d=e+1,u=l-Wi(e)):(d=e,u=l),{year:d,dayOfYear:u}}function ia(e,t,n){var o=Al(e.year(),t,n),r=Math.floor((e.dayOfYear()-o-1)/7)+1,i,a;return r<1?(a=e.year()-1,i=r+nr(a,t,n)):r>nr(e.year(),t,n)?(i=r-nr(e.year(),t,n),a=e.year()+1):(a=e.year(),i=r),{week:i,year:a}}function nr(e,t,n){var o=Al(e,t,n),r=Al(e+1,t,n);return(Wi(e)-o+r)/7}$e("w",["ww",2],"wo","week");$e("W",["WW",2],"Wo","isoWeek");De("w",At,Qs);De("ww",At,zn);De("W",At,Qs);De("WW",At,zn);Ra(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=nt(e)});function MO(e){return ia(e,this._week.dow,this._week.doy).week}var IO={dow:0,doy:6};function NO(){return this._week.dow}function AO(){return this._week.doy}function FO(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function LO(e){var t=ia(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}$e("d",0,"do","day");$e("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});$e("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});$e("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});$e("e",0,0,"weekday");$e("E",0,0,"isoWeekday");De("d",At);De("e",At);De("E",At);De("dd",function(e,t){return t.weekdaysMinRegex(e)});De("ddd",function(e,t){return t.weekdaysShortRegex(e)});De("dddd",function(e,t){return t.weekdaysRegex(e)});Ra(["dd","ddd","dddd"],function(e,t,n,o){var r=n._locale.weekdaysParse(e,o,n._strict);r!=null?t.d=r:qe(n).invalidWeekday=e});Ra(["d","e","E"],function(e,t,n,o){t[o]=nt(e)});function $O(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function VO(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function fh(e,t){return e.slice(t,7).concat(e.slice(0,t))}var jO="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),sv="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),WO="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),BO=xa,HO=xa,zO=xa;function YO(e,t){var n=yo(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?fh(n,this._week.dow):e?n[e.day()]:n}function UO(e){return e===!0?fh(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function qO(e){return e===!0?fh(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function GO(e,t,n){var o,r,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)i=jo([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(r=tn.call(this._weekdaysParse,a),r!==-1?r:null):t==="ddd"?(r=tn.call(this._shortWeekdaysParse,a),r!==-1?r:null):(r=tn.call(this._minWeekdaysParse,a),r!==-1?r:null):t==="dddd"?(r=tn.call(this._weekdaysParse,a),r!==-1||(r=tn.call(this._shortWeekdaysParse,a),r!==-1)?r:(r=tn.call(this._minWeekdaysParse,a),r!==-1?r:null)):t==="ddd"?(r=tn.call(this._shortWeekdaysParse,a),r!==-1||(r=tn.call(this._weekdaysParse,a),r!==-1)?r:(r=tn.call(this._minWeekdaysParse,a),r!==-1?r:null)):(r=tn.call(this._minWeekdaysParse,a),r!==-1||(r=tn.call(this._weekdaysParse,a),r!==-1)?r:(r=tn.call(this._shortWeekdaysParse,a),r!==-1?r:null))}function KO(e,t,n){var o,r,i;if(this._weekdaysParseExact)return GO.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(r=jo([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[o]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[o].test(e))return o;if(n&&t==="ddd"&&this._shortWeekdaysParse[o].test(e))return o;if(n&&t==="dd"&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}}function XO(e){if(!this.isValid())return e!=null?this:NaN;var t=ra(this,"Day");return e!=null?(e=$O(e,this.localeData()),this.add(e-t,"d")):t}function ZO(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function QO(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=VO(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function JO(e){return this._weekdaysParseExact?(mt(this,"_weekdaysRegex")||ph.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(mt(this,"_weekdaysRegex")||(this._weekdaysRegex=BO),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function eM(e){return this._weekdaysParseExact?(mt(this,"_weekdaysRegex")||ph.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(mt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=HO),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function tM(e){return this._weekdaysParseExact?(mt(this,"_weekdaysRegex")||ph.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(mt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zO),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ph(){function e(f,p){return p.length-f.length}var t=[],n=[],o=[],r=[],i,a,l,d,u;for(i=0;i<7;i++)a=jo([2e3,1]).day(i),l=tr(this.weekdaysMin(a,"")),d=tr(this.weekdaysShort(a,"")),u=tr(this.weekdays(a,"")),t.push(l),n.push(d),o.push(u),r.push(l),r.push(d),r.push(u);t.sort(e),n.sort(e),o.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function mh(){return this.hours()%12||12}function nM(){return this.hours()||24}$e("H",["HH",2],0,"hour");$e("h",["hh",2],0,mh);$e("k",["kk",2],0,nM);$e("hmm",0,0,function(){return""+mh.apply(this)+Lo(this.minutes(),2)});$e("hmmss",0,0,function(){return""+mh.apply(this)+Lo(this.minutes(),2)+Lo(this.seconds(),2)});$e("Hmm",0,0,function(){return""+this.hours()+Lo(this.minutes(),2)});$e("Hmmss",0,0,function(){return""+this.hours()+Lo(this.minutes(),2)+Lo(this.seconds(),2)});function iv(e,t){$e(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}iv("a",!0);iv("A",!1);function av(e,t){return t._meridiemParse}De("a",av);De("A",av);De("H",At,uh);De("h",At,Qs);De("k",At,Qs);De("HH",At,zn);De("hh",At,zn);De("kk",At,zn);De("hmm",Ky);De("hmmss",Xy);De("Hmm",Ky);De("Hmmss",Xy);kt(["H","HH"],dn);kt(["k","kk"],function(e,t,n){var o=nt(e);t[dn]=o===24?0:o});kt(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});kt(["h","hh"],function(e,t,n){t[dn]=nt(e),qe(n).bigHour=!0});kt("hmm",function(e,t,n){var o=e.length-2;t[dn]=nt(e.substr(0,o)),t[ho]=nt(e.substr(o)),qe(n).bigHour=!0});kt("hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[dn]=nt(e.substr(0,o)),t[ho]=nt(e.substr(o,2)),t[Jo]=nt(e.substr(r)),qe(n).bigHour=!0});kt("Hmm",function(e,t,n){var o=e.length-2;t[dn]=nt(e.substr(0,o)),t[ho]=nt(e.substr(o))});kt("Hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[dn]=nt(e.substr(0,o)),t[ho]=nt(e.substr(o,2)),t[Jo]=nt(e.substr(r))});function oM(e){return(e+"").toLowerCase().charAt(0)==="p"}var rM=/[ap]\.?m?\.?/i,sM=Js("Hours",!0);function iM(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var lv={calendar:GD,longDateFormat:QD,invalidDate:eO,ordinal:nO,dayOfMonthOrdinalParse:oO,relativeTime:sO,months:CO,monthsShort:Jy,week:IO,weekdays:jO,weekdaysMin:WO,weekdaysShort:sv,meridiemParse:rM},Wt={},gi={},aa;function aM(e,t){var n,o=Math.min(e.length,t.length);for(n=0;n<o;n+=1)if(e[n]!==t[n])return n;return o}function vm(e){return e&&e.toLowerCase().replace("_","-")}function lM(e){for(var t=0,n,o,r,i;t<e.length;){for(i=vm(e[t]).split("-"),n=i.length,o=vm(e[t+1]),o=o?o.split("-"):null;n>0;){if(r=Ec(i.slice(0,n).join("-")),r)return r;if(o&&o.length>=n&&aM(i,o)>=n-1)break;n--}t++}return aa}function cM(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Ec(e){var t=null,n;if(Wt[e]===void 0&&typeof module<"u"&&module&&module.exports&&cM(e))try{t=aa._abbr,n=require,n("./locale/"+e),Cr(t)}catch{Wt[e]=null}return Wt[e]}function Cr(e,t){var n;return e&&(Dn(t)?n=dr(e):n=gh(e,t),n?aa=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),aa._abbr}function gh(e,t){if(t!==null){var n,o=lv;if(t.abbr=e,Wt[e]!=null)Yy("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=Wt[e]._config;else if(t.parentLocale!=null)if(Wt[t.parentLocale]!=null)o=Wt[t.parentLocale]._config;else if(n=Ec(t.parentLocale),n!=null)o=n._config;else return gi[t.parentLocale]||(gi[t.parentLocale]=[]),gi[t.parentLocale].push({name:e,config:t}),null;return Wt[e]=new ih(uu(o,t)),gi[e]&&gi[e].forEach(function(r){gh(r.name,r.config)}),Cr(e),Wt[e]}else return delete Wt[e],null}function dM(e,t){if(t!=null){var n,o,r=lv;Wt[e]!=null&&Wt[e].parentLocale!=null?Wt[e].set(uu(Wt[e]._config,t)):(o=Ec(e),o!=null&&(r=o._config),t=uu(r,t),o==null&&(t.abbr=e),n=new ih(t),n.parentLocale=Wt[e],Wt[e]=n),Cr(e)}else Wt[e]!=null&&(Wt[e].parentLocale!=null?(Wt[e]=Wt[e].parentLocale,e===Cr()&&Cr(e)):Wt[e]!=null&&delete Wt[e]);return Wt[e]}function dr(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return aa;if(!yo(e)){if(t=Ec(e),t)return t;e=[e]}return lM(e)}function uM(){return hu(Wt)}function yh(e){var t,n=e._a;return n&&qe(e).overflow===-2&&(t=n[Qo]<0||n[Qo]>11?Qo:n[Do]<1||n[Do]>hh(n[Rn],n[Qo])?Do:n[dn]<0||n[dn]>24||n[dn]===24&&(n[ho]!==0||n[Jo]!==0||n[Wr]!==0)?dn:n[ho]<0||n[ho]>59?ho:n[Jo]<0||n[Jo]>59?Jo:n[Wr]<0||n[Wr]>999?Wr:-1,qe(e)._overflowDayOfYear&&(t<Rn||t>Do)&&(t=Do),qe(e)._overflowWeeks&&t===-1&&(t=mO),qe(e)._overflowWeekday&&t===-1&&(t=gO),qe(e).overflow=t),e}var hM=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,fM=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pM=/Z|[+-]\d\d(?::?\d\d)?/,ol=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Dd=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],mM=/^\/?Date\((-?\d+)/i,gM=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,yM={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function cv(e){var t,n,o=e._i,r=hM.exec(o)||fM.exec(o),i,a,l,d,u=ol.length,f=Dd.length;if(r){for(qe(e).iso=!0,t=0,n=u;t<n;t++)if(ol[t][1].exec(r[1])){a=ol[t][0],i=ol[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(r[3]){for(t=0,n=f;t<n;t++)if(Dd[t][1].exec(r[3])){l=(r[2]||" ")+Dd[t][0];break}if(l==null){e._isValid=!1;return}}if(!i&&l!=null){e._isValid=!1;return}if(r[4])if(pM.exec(r[4]))d="Z";else{e._isValid=!1;return}e._f=a+(l||"")+(d||""),bh(e)}else e._isValid=!1}function vM(e,t,n,o,r,i){var a=[bM(e),Jy.indexOf(t),parseInt(n,10),parseInt(o,10),parseInt(r,10)];return i&&a.push(parseInt(i,10)),a}function bM(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function wM(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function CM(e,t,n){if(e){var o=sv.indexOf(e),r=new Date(t[0],t[1],t[2]).getDay();if(o!==r)return qe(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function SM(e,t,n){if(e)return yM[e];if(t)return 0;var o=parseInt(n,10),r=o%100,i=(o-r)/100;return i*60+r}function dv(e){var t=gM.exec(wM(e._i)),n;if(t){if(n=vM(t[4],t[3],t[2],t[5],t[6],t[7]),!CM(t[1],n,e))return;e._a=n,e._tzm=SM(t[8],t[9],t[10]),e._d=sa.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),qe(e).rfc2822=!0}else e._isValid=!1}function _M(e){var t=mM.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(cv(e),e._isValid===!1)delete e._isValid;else return;if(dv(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:xe.createFromInputFallback(e)}xe.createFromInputFallback=io("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Cs(e,t,n){return e??t??n}function xM(e){var t=new Date(xe.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function vh(e){var t,n,o=[],r,i,a;if(!e._d){for(r=xM(e),e._w&&e._a[Do]==null&&e._a[Qo]==null&&RM(e),e._dayOfYear!=null&&(a=Cs(e._a[Rn],r[Rn]),(e._dayOfYear>Wi(a)||e._dayOfYear===0)&&(qe(e)._overflowDayOfYear=!0),n=sa(a,0,e._dayOfYear),e._a[Qo]=n.getUTCMonth(),e._a[Do]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[dn]===24&&e._a[ho]===0&&e._a[Jo]===0&&e._a[Wr]===0&&(e._nextDay=!0,e._a[dn]=0),e._d=(e._useUTC?sa:OO).apply(null,o),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[dn]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(qe(e).weekdayMismatch=!0)}}function RM(e){var t,n,o,r,i,a,l,d,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,n=Cs(t.GG,e._a[Rn],ia(It(),1,4).year),o=Cs(t.W,1),r=Cs(t.E,1),(r<1||r>7)&&(d=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,u=ia(It(),i,a),n=Cs(t.gg,e._a[Rn],u.year),o=Cs(t.w,u.week),t.d!=null?(r=t.d,(r<0||r>6)&&(d=!0)):t.e!=null?(r=t.e+i,(t.e<0||t.e>6)&&(d=!0)):r=i),o<1||o>nr(n,i,a)?qe(e)._overflowWeeks=!0:d!=null?qe(e)._overflowWeekday=!0:(l=rv(n,o,r,i,a),e._a[Rn]=l.year,e._dayOfYear=l.dayOfYear)}xe.ISO_8601=function(){};xe.RFC_2822=function(){};function bh(e){if(e._f===xe.ISO_8601){cv(e);return}if(e._f===xe.RFC_2822){dv(e);return}e._a=[],qe(e).empty=!0;var t=""+e._i,n,o,r,i,a,l=t.length,d=0,u,f;for(r=Uy(e._f,e._locale).match(ah)||[],f=r.length,n=0;n<f;n++)i=r[n],o=(t.match(hO(i,e))||[])[0],o&&(a=t.substr(0,t.indexOf(o)),a.length>0&&qe(e).unusedInput.push(a),t=t.slice(t.indexOf(o)+o.length),d+=o.length),Ds[i]?(o?qe(e).empty=!1:qe(e).unusedTokens.push(i),pO(i,o,e)):e._strict&&!o&&qe(e).unusedTokens.push(i);qe(e).charsLeftOver=l-d,t.length>0&&qe(e).unusedInput.push(t),e._a[dn]<=12&&qe(e).bigHour===!0&&e._a[dn]>0&&(qe(e).bigHour=void 0),qe(e).parsedDateParts=e._a.slice(0),qe(e).meridiem=e._meridiem,e._a[dn]=TM(e._locale,e._a[dn],e._meridiem),u=qe(e).era,u!==null&&(e._a[Rn]=e._locale.erasConvertYear(u,e._a[Rn])),vh(e),yh(e)}function TM(e,t,n){var o;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(o=e.isPM(n),o&&t<12&&(t+=12),!o&&t===12&&(t=0)),t)}function EM(e){var t,n,o,r,i,a,l=!1,d=e._f.length;if(d===0){qe(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;r<d;r++)i=0,a=!1,t=sh({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[r],bh(t),rh(t)&&(a=!0),i+=qe(t).charsLeftOver,i+=qe(t).unusedTokens.length*10,qe(t).score=i,l?i<o&&(o=i,n=t):(o==null||i<o||a)&&(o=i,n=t,a&&(l=!0));br(e,n||t)}function kM(e){if(!e._d){var t=lh(e._i),n=t.day===void 0?t.date:t.day;e._a=Hy([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(o){return o&&parseInt(o,10)}),vh(e)}}function PM(e){var t=new _a(yh(uv(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function uv(e){var t=e._i,n=e._f;return e._locale=e._locale||dr(e._l),t===null||n===void 0&&t===""?wc({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),vo(t)?new _a(yh(t)):(Sa(t)?e._d=t:yo(n)?EM(e):n?bh(e):DM(e),rh(e)||(e._d=null),e))}function DM(e){var t=e._i;Dn(t)?e._d=new Date(xe.now()):Sa(t)?e._d=new Date(t.valueOf()):typeof t=="string"?_M(e):yo(t)?(e._a=Hy(t.slice(0),function(n){return parseInt(n,10)}),vh(e)):zr(t)?kM(e):ar(t)?e._d=new Date(t):xe.createFromInputFallback(e)}function hv(e,t,n,o,r){var i={};return(t===!0||t===!1)&&(o=t,t=void 0),(n===!0||n===!1)&&(o=n,n=void 0),(zr(e)&&oh(e)||yo(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=r,i._l=n,i._i=e,i._f=t,i._strict=o,PM(i)}function It(e,t,n,o){return hv(e,t,n,o,!1)}var OM=io("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=It.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:wc()}),MM=io("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=It.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:wc()});function fv(e,t){var n,o;if(t.length===1&&yo(t[0])&&(t=t[0]),!t.length)return It();for(n=t[0],o=1;o<t.length;++o)(!t[o].isValid()||t[o][e](n))&&(n=t[o]);return n}function IM(){var e=[].slice.call(arguments,0);return fv("isBefore",e)}function NM(){var e=[].slice.call(arguments,0);return fv("isAfter",e)}var AM=function(){return Date.now?Date.now():+new Date},yi=["year","quarter","month","week","day","hour","minute","second","millisecond"];function FM(e){var t,n=!1,o,r=yi.length;for(t in e)if(mt(e,t)&&!(tn.call(yi,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(o=0;o<r;++o)if(e[yi[o]]){if(n)return!1;parseFloat(e[yi[o]])!==nt(e[yi[o]])&&(n=!0)}return!0}function LM(){return this._isValid}function $M(){return bo(NaN)}function kc(e){var t=lh(e),n=t.year||0,o=t.quarter||0,r=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,l=t.hour||0,d=t.minute||0,u=t.second||0,f=t.millisecond||0;this._isValid=FM(t),this._milliseconds=+f+u*1e3+d*6e4+l*1e3*60*60,this._days=+a+i*7,this._months=+r+o*3+n*12,this._data={},this._locale=dr(),this._bubble()}function vl(e){return e instanceof kc}function pu(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function VM(e,t,n){var o=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),i=0,a;for(a=0;a<o;a++)nt(e[a])!==nt(t[a])&&i++;return i+r}function pv(e,t){$e(e,0,0,function(){var n=this.utcOffset(),o="+";return n<0&&(n=-n,o="-"),o+Lo(~~(n/60),2)+t+Lo(~~n%60,2)})}pv("Z",":");pv("ZZ","");De("Z",Rc);De("ZZ",Rc);kt(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=wh(Rc,e)});var jM=/([\+\-]|\d\d)/gi;function wh(e,t){var n=(t||"").match(e),o,r,i;return n===null?null:(o=n[n.length-1]||[],r=(o+"").match(jM)||["-",0,0],i=+(r[1]*60)+nt(r[2]),i===0?0:r[0]==="+"?i:-i)}function Ch(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(vo(e)||Sa(e)?e.valueOf():It(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),xe.updateOffset(n,!1),n):It(e).local()}function mu(e){return-Math.round(e._d.getTimezoneOffset())}xe.updateOffset=function(){};function WM(e,t,n){var o=this._offset||0,r;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=wh(Rc,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(r=mu(this)),this._offset=e,this._isUTC=!0,r!=null&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?yv(this,bo(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,xe.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?o:mu(this)}function BM(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function HM(e){return this.utcOffset(0,e)}function zM(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mu(this),"m")),this}function YM(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=wh(dO,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function UM(e){return this.isValid()?(e=e?It(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function qM(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function GM(){if(!Dn(this._isDSTShifted))return this._isDSTShifted;var e={},t;return sh(e,this),e=uv(e),e._a?(t=e._isUTC?jo(e._a):It(e._a),this._isDSTShifted=this.isValid()&&VM(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function KM(){return this.isValid()?!this._isUTC:!1}function XM(){return this.isValid()?this._isUTC:!1}function mv(){return this.isValid()?this._isUTC&&this._offset===0:!1}var ZM=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,QM=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function bo(e,t){var n=e,o=null,r,i,a;return vl(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:ar(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(o=ZM.exec(e))?(r=o[1]==="-"?-1:1,n={y:0,d:nt(o[Do])*r,h:nt(o[dn])*r,m:nt(o[ho])*r,s:nt(o[Jo])*r,ms:nt(pu(o[Wr]*1e3))*r}):(o=QM.exec(e))?(r=o[1]==="-"?-1:1,n={y:Mr(o[2],r),M:Mr(o[3],r),w:Mr(o[4],r),d:Mr(o[5],r),h:Mr(o[6],r),m:Mr(o[7],r),s:Mr(o[8],r)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=JM(It(n.from),It(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),i=new kc(n),vl(e)&&mt(e,"_locale")&&(i._locale=e._locale),vl(e)&&mt(e,"_isValid")&&(i._isValid=e._isValid),i}bo.fn=kc.prototype;bo.invalid=$M;function Mr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function bm(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function JM(e,t){var n;return e.isValid()&&t.isValid()?(t=Ch(t,e),e.isBefore(t)?n=bm(e,t):(n=bm(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function gv(e,t){return function(n,o){var r,i;return o!==null&&!isNaN(+o)&&(Yy(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=o,o=i),r=bo(n,o),yv(this,r,e),this}}function yv(e,t,n,o){var r=t._milliseconds,i=pu(t._days),a=pu(t._months);e.isValid()&&(o=o??!0,a&&tv(e,ra(e,"Month")+a*n),i&&Qy(e,"Date",ra(e,"Date")+i*n),r&&e._d.setTime(e._d.valueOf()+r*n),o&&xe.updateOffset(e,i||a))}var eI=gv(1,"add"),tI=gv(-1,"subtract");function vv(e){return typeof e=="string"||e instanceof String}function nI(e){return vo(e)||Sa(e)||vv(e)||ar(e)||rI(e)||oI(e)||e===null||e===void 0}function oI(e){var t=zr(e)&&!oh(e),n=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,i,a=o.length;for(r=0;r<a;r+=1)i=o[r],n=n||mt(e,i);return t&&n}function rI(e){var t=yo(e),n=!1;return t&&(n=e.filter(function(o){return!ar(o)&&vv(e)}).length===0),t&&n}function sI(e){var t=zr(e)&&!oh(e),n=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,i;for(r=0;r<o.length;r+=1)i=o[r],n=n||mt(e,i);return t&&n}function iI(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function aI(e,t){arguments.length===1&&(arguments[0]?nI(arguments[0])?(e=arguments[0],t=void 0):sI(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||It(),o=Ch(n,this).startOf("day"),r=xe.calendarFormat(this,o)||"sameElse",i=t&&(Wo(t[r])?t[r].call(this,n):t[r]);return this.format(i||this.localeData().calendar(r,this,It(n)))}function lI(){return new _a(this)}function cI(e,t){var n=vo(e)?e:It(e);return this.isValid()&&n.isValid()?(t=ao(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function dI(e,t){var n=vo(e)?e:It(e);return this.isValid()&&n.isValid()?(t=ao(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function uI(e,t,n,o){var r=vo(e)?e:It(e),i=vo(t)?t:It(t);return this.isValid()&&r.isValid()&&i.isValid()?(o=o||"()",(o[0]==="("?this.isAfter(r,n):!this.isBefore(r,n))&&(o[1]===")"?this.isBefore(i,n):!this.isAfter(i,n))):!1}function hI(e,t){var n=vo(e)?e:It(e),o;return this.isValid()&&n.isValid()?(t=ao(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(o=n.valueOf(),this.clone().startOf(t).valueOf()<=o&&o<=this.clone().endOf(t).valueOf())):!1}function fI(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function pI(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function mI(e,t,n){var o,r,i;if(!this.isValid())return NaN;if(o=Ch(e,this),!o.isValid())return NaN;switch(r=(o.utcOffset()-this.utcOffset())*6e4,t=ao(t),t){case"year":i=bl(this,o)/12;break;case"month":i=bl(this,o);break;case"quarter":i=bl(this,o)/3;break;case"second":i=(this-o)/1e3;break;case"minute":i=(this-o)/6e4;break;case"hour":i=(this-o)/36e5;break;case"day":i=(this-o-r)/864e5;break;case"week":i=(this-o-r)/6048e5;break;default:i=this-o}return n?i:Qn(i)}function bl(e,t){if(e.date()<t.date())return-bl(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),o=e.clone().add(n,"months"),r,i;return t-o<0?(r=e.clone().add(n-1,"months"),i=(t-o)/(o-r)):(r=e.clone().add(n+1,"months"),i=(t-o)/(r-o)),-(n+i)||0}xe.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";xe.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function gI(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function yI(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?yl(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Wo(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",yl(n,"Z")):yl(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function vI(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,o,r,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+o+r+i)}function bI(e){e||(e=this.isUtc()?xe.defaultFormatUtc:xe.defaultFormat);var t=yl(this,e);return this.localeData().postformat(t)}function wI(e,t){return this.isValid()&&(vo(e)&&e.isValid()||It(e).isValid())?bo({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function CI(e){return this.from(It(),e)}function SI(e,t){return this.isValid()&&(vo(e)&&e.isValid()||It(e).isValid())?bo({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function _I(e){return this.to(It(),e)}function bv(e){var t;return e===void 0?this._locale._abbr:(t=dr(e),t!=null&&(this._locale=t),this)}var wv=io("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Cv(){return this._locale}var Fl=1e3,Os=60*Fl,Ll=60*Os,Sv=(365*400+97)*24*Ll;function Ms(e,t){return(e%t+t)%t}function _v(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Sv:new Date(e,t,n).valueOf()}function xv(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Sv:Date.UTC(e,t,n)}function xI(e){var t,n;if(e=ao(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?xv:_v,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Ms(t+(this._isUTC?0:this.utcOffset()*Os),Ll);break;case"minute":t=this._d.valueOf(),t-=Ms(t,Os);break;case"second":t=this._d.valueOf(),t-=Ms(t,Fl);break}return this._d.setTime(t),xe.updateOffset(this,!0),this}function RI(e){var t,n;if(e=ao(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?xv:_v,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Ll-Ms(t+(this._isUTC?0:this.utcOffset()*Os),Ll)-1;break;case"minute":t=this._d.valueOf(),t+=Os-Ms(t,Os)-1;break;case"second":t=this._d.valueOf(),t+=Fl-Ms(t,Fl)-1;break}return this._d.setTime(t),xe.updateOffset(this,!0),this}function TI(){return this._d.valueOf()-(this._offset||0)*6e4}function EI(){return Math.floor(this.valueOf()/1e3)}function kI(){return new Date(this.valueOf())}function PI(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function DI(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function OI(){return this.isValid()?this.toISOString():null}function MI(){return rh(this)}function II(){return br({},qe(this))}function NI(){return qe(this).overflow}function AI(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}$e("N",0,0,"eraAbbr");$e("NN",0,0,"eraAbbr");$e("NNN",0,0,"eraAbbr");$e("NNNN",0,0,"eraName");$e("NNNNN",0,0,"eraNarrow");$e("y",["y",1],"yo","eraYear");$e("y",["yy",2],0,"eraYear");$e("y",["yyy",3],0,"eraYear");$e("y",["yyyy",4],0,"eraYear");De("N",Sh);De("NN",Sh);De("NNN",Sh);De("NNNN",UI);De("NNNNN",qI);kt(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,o){var r=n._locale.erasParse(e,o,n._strict);r?qe(n).era=r:qe(n).invalidEra=e});De("y",Zs);De("yy",Zs);De("yyy",Zs);De("yyyy",Zs);De("yo",GI);kt(["y","yy","yyy","yyyy"],Rn);kt(["yo"],function(e,t,n,o){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Rn]=n._locale.eraYearOrdinalParse(e,r):t[Rn]=parseInt(e,10)});function FI(e,t){var n,o,r,i=this._eras||dr("en")._eras;for(n=0,o=i.length;n<o;++n){switch(typeof i[n].since){case"string":r=xe(i[n].since).startOf("day"),i[n].since=r.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":r=xe(i[n].until).startOf("day").valueOf(),i[n].until=r.valueOf();break}}return i}function LI(e,t,n){var o,r,i=this.eras(),a,l,d;for(e=e.toUpperCase(),o=0,r=i.length;o<r;++o)if(a=i[o].name.toUpperCase(),l=i[o].abbr.toUpperCase(),d=i[o].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return i[o];break;case"NNNN":if(a===e)return i[o];break;case"NNNNN":if(d===e)return i[o];break}else if([a,l,d].indexOf(e)>=0)return i[o]}function $I(e,t){var n=e.since<=e.until?1:-1;return t===void 0?xe(e.since).year():xe(e.since).year()+(t-e.offset)*n}function VI(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until||o[e].until<=n&&n<=o[e].since)return o[e].name;return""}function jI(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until||o[e].until<=n&&n<=o[e].since)return o[e].narrow;return""}function WI(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until||o[e].until<=n&&n<=o[e].since)return o[e].abbr;return""}function BI(){var e,t,n,o,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=r[e].since<=r[e].until?1:-1,o=this.clone().startOf("day").valueOf(),r[e].since<=o&&o<=r[e].until||r[e].until<=o&&o<=r[e].since)return(this.year()-xe(r[e].since).year())*n+r[e].offset;return this.year()}function HI(e){return mt(this,"_erasNameRegex")||_h.call(this),e?this._erasNameRegex:this._erasRegex}function zI(e){return mt(this,"_erasAbbrRegex")||_h.call(this),e?this._erasAbbrRegex:this._erasRegex}function YI(e){return mt(this,"_erasNarrowRegex")||_h.call(this),e?this._erasNarrowRegex:this._erasRegex}function Sh(e,t){return t.erasAbbrRegex(e)}function UI(e,t){return t.erasNameRegex(e)}function qI(e,t){return t.erasNarrowRegex(e)}function GI(e,t){return t._eraYearOrdinalRegex||Zs}function _h(){var e=[],t=[],n=[],o=[],r,i,a,l,d,u=this.eras();for(r=0,i=u.length;r<i;++r)a=tr(u[r].name),l=tr(u[r].abbr),d=tr(u[r].narrow),t.push(a),e.push(l),n.push(d),o.push(a),o.push(l),o.push(d);this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}$e(0,["gg",2],0,function(){return this.weekYear()%100});$e(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Pc(e,t){$e(0,[e,e.length],0,t)}Pc("gggg","weekYear");Pc("ggggg","weekYear");Pc("GGGG","isoWeekYear");Pc("GGGGG","isoWeekYear");De("G",xc);De("g",xc);De("GG",At,zn);De("gg",At,zn);De("GGGG",dh,ch);De("gggg",dh,ch);De("GGGGG",_c,Cc);De("ggggg",_c,Cc);Ra(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=nt(e)});Ra(["gg","GG"],function(e,t,n,o){t[o]=xe.parseTwoDigitYear(e)});function KI(e){return Rv.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function XI(e){return Rv.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function ZI(){return nr(this.year(),1,4)}function QI(){return nr(this.isoWeekYear(),1,4)}function JI(){var e=this.localeData()._week;return nr(this.year(),e.dow,e.doy)}function eN(){var e=this.localeData()._week;return nr(this.weekYear(),e.dow,e.doy)}function Rv(e,t,n,o,r){var i;return e==null?ia(this,o,r).year:(i=nr(e,o,r),t>i&&(t=i),tN.call(this,e,t,n,o,r))}function tN(e,t,n,o,r){var i=rv(e,t,n,o,r),a=sa(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}$e("Q",0,"Qo","quarter");De("Q",qy);kt("Q",function(e,t){t[Qo]=(nt(e)-1)*3});function nN(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}$e("D",["DD",2],"Do","date");De("D",At,Qs);De("DD",At,zn);De("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});kt(["D","DD"],Do);kt("Do",function(e,t){t[Do]=nt(e.match(At)[0])});var Tv=Js("Date",!0);$e("DDD",["DDDD",3],"DDDo","dayOfYear");De("DDD",Sc);De("DDDD",Gy);kt(["DDD","DDDD"],function(e,t,n){n._dayOfYear=nt(e)});function oN(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}$e("m",["mm",2],0,"minute");De("m",At,uh);De("mm",At,zn);kt(["m","mm"],ho);var rN=Js("Minutes",!1);$e("s",["ss",2],0,"second");De("s",At,uh);De("ss",At,zn);kt(["s","ss"],Jo);var sN=Js("Seconds",!1);$e("S",0,0,function(){return~~(this.millisecond()/100)});$e(0,["SS",2],0,function(){return~~(this.millisecond()/10)});$e(0,["SSS",3],0,"millisecond");$e(0,["SSSS",4],0,function(){return this.millisecond()*10});$e(0,["SSSSS",5],0,function(){return this.millisecond()*100});$e(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});$e(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});$e(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});$e(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});De("S",Sc,qy);De("SS",Sc,zn);De("SSS",Sc,Gy);var wr,Ev;for(wr="SSSS";wr.length<=9;wr+="S")De(wr,Zs);function iN(e,t){t[Wr]=nt(("0."+e)*1e3)}for(wr="S";wr.length<=9;wr+="S")kt(wr,iN);Ev=Js("Milliseconds",!1);$e("z",0,0,"zoneAbbr");$e("zz",0,0,"zoneName");function aN(){return this._isUTC?"UTC":""}function lN(){return this._isUTC?"Coordinated Universal Time":""}var ve=_a.prototype;ve.add=eI;ve.calendar=aI;ve.clone=lI;ve.diff=mI;ve.endOf=RI;ve.format=bI;ve.from=wI;ve.fromNow=CI;ve.to=SI;ve.toNow=_I;ve.get=vO;ve.invalidAt=NI;ve.isAfter=cI;ve.isBefore=dI;ve.isBetween=uI;ve.isSame=hI;ve.isSameOrAfter=fI;ve.isSameOrBefore=pI;ve.isValid=MI;ve.lang=wv;ve.locale=bv;ve.localeData=Cv;ve.max=MM;ve.min=OM;ve.parsingFlags=II;ve.set=bO;ve.startOf=xI;ve.subtract=tI;ve.toArray=PI;ve.toObject=DI;ve.toDate=kI;ve.toISOString=yI;ve.inspect=vI;typeof Symbol<"u"&&Symbol.for!=null&&(ve[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ve.toJSON=OI;ve.toString=gI;ve.unix=EI;ve.valueOf=TI;ve.creationData=AI;ve.eraName=VI;ve.eraNarrow=jI;ve.eraAbbr=WI;ve.eraYear=BI;ve.year=Zy;ve.isLeapYear=yO;ve.weekYear=KI;ve.isoWeekYear=XI;ve.quarter=ve.quarters=nN;ve.month=nv;ve.daysInMonth=kO;ve.week=ve.weeks=FO;ve.isoWeek=ve.isoWeeks=LO;ve.weeksInYear=JI;ve.weeksInWeekYear=eN;ve.isoWeeksInYear=ZI;ve.isoWeeksInISOWeekYear=QI;ve.date=Tv;ve.day=ve.days=XO;ve.weekday=ZO;ve.isoWeekday=QO;ve.dayOfYear=oN;ve.hour=ve.hours=sM;ve.minute=ve.minutes=rN;ve.second=ve.seconds=sN;ve.millisecond=ve.milliseconds=Ev;ve.utcOffset=WM;ve.utc=HM;ve.local=zM;ve.parseZone=YM;ve.hasAlignedHourOffset=UM;ve.isDST=qM;ve.isLocal=KM;ve.isUtcOffset=XM;ve.isUtc=mv;ve.isUTC=mv;ve.zoneAbbr=aN;ve.zoneName=lN;ve.dates=io("dates accessor is deprecated. Use date instead.",Tv);ve.months=io("months accessor is deprecated. Use month instead",nv);ve.years=io("years accessor is deprecated. Use year instead",Zy);ve.zone=io("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",BM);ve.isDSTShifted=io("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",GM);function cN(e){return It(e*1e3)}function dN(){return It.apply(null,arguments).parseZone()}function kv(e){return e}var gt=ih.prototype;gt.calendar=KD;gt.longDateFormat=JD;gt.invalidDate=tO;gt.ordinal=rO;gt.preparse=kv;gt.postformat=kv;gt.relativeTime=iO;gt.pastFuture=aO;gt.set=qD;gt.eras=FI;gt.erasParse=LI;gt.erasConvertYear=$I;gt.erasAbbrRegex=zI;gt.erasNameRegex=HI;gt.erasNarrowRegex=YI;gt.months=xO;gt.monthsShort=RO;gt.monthsParse=EO;gt.monthsRegex=DO;gt.monthsShortRegex=PO;gt.week=MO;gt.firstDayOfYear=AO;gt.firstDayOfWeek=NO;gt.weekdays=YO;gt.weekdaysMin=qO;gt.weekdaysShort=UO;gt.weekdaysParse=KO;gt.weekdaysRegex=JO;gt.weekdaysShortRegex=eM;gt.weekdaysMinRegex=tM;gt.isPM=oM;gt.meridiem=iM;function $l(e,t,n,o){var r=dr(),i=jo().set(o,t);return r[n](i,e)}function Pv(e,t,n){if(ar(e)&&(t=e,e=void 0),e=e||"",t!=null)return $l(e,t,n,"month");var o,r=[];for(o=0;o<12;o++)r[o]=$l(e,o,n,"month");return r}function xh(e,t,n,o){typeof e=="boolean"?(ar(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,ar(t)&&(n=t,t=void 0),t=t||"");var r=dr(),i=e?r._week.dow:0,a,l=[];if(n!=null)return $l(t,(n+i)%7,o,"day");for(a=0;a<7;a++)l[a]=$l(t,(a+i)%7,o,"day");return l}function uN(e,t){return Pv(e,t,"months")}function hN(e,t){return Pv(e,t,"monthsShort")}function fN(e,t,n){return xh(e,t,n,"weekdays")}function pN(e,t,n){return xh(e,t,n,"weekdaysShort")}function mN(e,t,n){return xh(e,t,n,"weekdaysMin")}Cr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=nt(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});xe.lang=io("moment.lang is deprecated. Use moment.locale instead.",Cr);xe.langData=io("moment.langData is deprecated. Use moment.localeData instead.",dr);var Ko=Math.abs;function gN(){var e=this._data;return this._milliseconds=Ko(this._milliseconds),this._days=Ko(this._days),this._months=Ko(this._months),e.milliseconds=Ko(e.milliseconds),e.seconds=Ko(e.seconds),e.minutes=Ko(e.minutes),e.hours=Ko(e.hours),e.months=Ko(e.months),e.years=Ko(e.years),this}function Dv(e,t,n,o){var r=bo(t,n);return e._milliseconds+=o*r._milliseconds,e._days+=o*r._days,e._months+=o*r._months,e._bubble()}function yN(e,t){return Dv(this,e,t,1)}function vN(e,t){return Dv(this,e,t,-1)}function wm(e){return e<0?Math.floor(e):Math.ceil(e)}function bN(){var e=this._milliseconds,t=this._days,n=this._months,o=this._data,r,i,a,l,d;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=wm(gu(n)+t)*864e5,t=0,n=0),o.milliseconds=e%1e3,r=Qn(e/1e3),o.seconds=r%60,i=Qn(r/60),o.minutes=i%60,a=Qn(i/60),o.hours=a%24,t+=Qn(a/24),d=Qn(Ov(t)),n+=d,t-=wm(gu(d)),l=Qn(n/12),n%=12,o.days=t,o.months=n,o.years=l,this}function Ov(e){return e*4800/146097}function gu(e){return e*146097/4800}function wN(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if(e=ao(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+o/864e5,n=this._months+Ov(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(gu(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return t*24+o/36e5;case"minute":return t*1440+o/6e4;case"second":return t*86400+o/1e3;case"millisecond":return Math.floor(t*864e5)+o;default:throw new Error("Unknown unit "+e)}}function ur(e){return function(){return this.as(e)}}var Mv=ur("ms"),CN=ur("s"),SN=ur("m"),_N=ur("h"),xN=ur("d"),RN=ur("w"),TN=ur("M"),EN=ur("Q"),kN=ur("y"),PN=Mv;function DN(){return bo(this)}function ON(e){return e=ao(e),this.isValid()?this[e+"s"]():NaN}function es(e){return function(){return this.isValid()?this._data[e]:NaN}}var MN=es("milliseconds"),IN=es("seconds"),NN=es("minutes"),AN=es("hours"),FN=es("days"),LN=es("months"),$N=es("years");function VN(){return Qn(this.days()/7)}var Zo=Math.round,Rs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function jN(e,t,n,o,r){return r.relativeTime(t||1,!!n,e,o)}function WN(e,t,n,o){var r=bo(e).abs(),i=Zo(r.as("s")),a=Zo(r.as("m")),l=Zo(r.as("h")),d=Zo(r.as("d")),u=Zo(r.as("M")),f=Zo(r.as("w")),p=Zo(r.as("y")),y=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||l<=1&&["h"]||l<n.h&&["hh",l]||d<=1&&["d"]||d<n.d&&["dd",d];return n.w!=null&&(y=y||f<=1&&["w"]||f<n.w&&["ww",f]),y=y||u<=1&&["M"]||u<n.M&&["MM",u]||p<=1&&["y"]||["yy",p],y[2]=t,y[3]=+e>0,y[4]=o,jN.apply(null,y)}function BN(e){return e===void 0?Zo:typeof e=="function"?(Zo=e,!0):!1}function HN(e,t){return Rs[e]===void 0?!1:t===void 0?Rs[e]:(Rs[e]=t,e==="s"&&(Rs.ss=t-1),!0)}function zN(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,o=Rs,r,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(o=Object.assign({},Rs,t),t.s!=null&&t.ss==null&&(o.ss=t.s-1)),r=this.localeData(),i=WN(this,!n,o,r),n&&(i=r.pastFuture(+this,i)),r.postformat(i)}var Od=Math.abs;function ys(e){return(e>0)-(e<0)||+e}function Dc(){if(!this.isValid())return this.localeData().invalidDate();var e=Od(this._milliseconds)/1e3,t=Od(this._days),n=Od(this._months),o,r,i,a,l=this.asSeconds(),d,u,f,p;return l?(o=Qn(e/60),r=Qn(o/60),e%=60,o%=60,i=Qn(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",d=l<0?"-":"",u=ys(this._months)!==ys(l)?"-":"",f=ys(this._days)!==ys(l)?"-":"",p=ys(this._milliseconds)!==ys(l)?"-":"",d+"P"+(i?u+i+"Y":"")+(n?u+n+"M":"")+(t?f+t+"D":"")+(r||o||e?"T":"")+(r?p+r+"H":"")+(o?p+o+"M":"")+(e?p+a+"S":"")):"P0D"}var dt=kc.prototype;dt.isValid=LM;dt.abs=gN;dt.add=yN;dt.subtract=vN;dt.as=wN;dt.asMilliseconds=Mv;dt.asSeconds=CN;dt.asMinutes=SN;dt.asHours=_N;dt.asDays=xN;dt.asWeeks=RN;dt.asMonths=TN;dt.asQuarters=EN;dt.asYears=kN;dt.valueOf=PN;dt._bubble=bN;dt.clone=DN;dt.get=ON;dt.milliseconds=MN;dt.seconds=IN;dt.minutes=NN;dt.hours=AN;dt.days=FN;dt.weeks=VN;dt.months=LN;dt.years=$N;dt.humanize=zN;dt.toISOString=Dc;dt.toString=Dc;dt.toJSON=Dc;dt.locale=bv;dt.localeData=Cv;dt.toIsoString=io("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Dc);dt.lang=wv;$e("X",0,0,"unix");$e("x",0,0,"valueOf");De("x",xc);De("X",uO);kt("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});kt("x",function(e,t,n){n._d=new Date(nt(e))});//! moment.js
|
|
277
|
-
xe.version="2.30.1";YD(It);xe.fn=ve;xe.min=IM;xe.max=NM;xe.now=AM;xe.utc=jo;xe.unix=cN;xe.months=uN;xe.isDate=Sa;xe.locale=Cr;xe.invalid=wc;xe.duration=bo;xe.isMoment=vo;xe.weekdays=fN;xe.parseZone=dN;xe.localeData=dr;xe.isDuration=vl;xe.monthsShort=hN;xe.weekdaysMin=mN;xe.defineLocale=gh;xe.updateLocale=dM;xe.locales=uM;xe.weekdaysShort=pN;xe.normalizeUnits=ao;xe.relativeTimeRounding=BN;xe.relativeTimeThreshold=HN;xe.calendarFormat=iI;xe.prototype=ve;xe.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const YN=Object.freeze(Object.defineProperty({__proto__:null,default:xe},Symbol.toStringTag,{value:"Module"})),UN=[xe.ISO_8601,Gr.ui,Gr.db],yu="Invalid date";ie(oy)({width:"100%","& .MuiAlert-message":{fontSize:"0.8rem"}," [data-testid=CloseIcon]":{fill:"white"}});class qN extends bc{handleKeyboardEvent(t,n){if(n.isActive)if(fB(t)){if(!n.summaryColumnIds.length)return;const o=n.grid;if(!o||o.getSelectedRows().length<2)return;t.preventDefault(),t.stopImmediatePropagation(),jn.table=n,jn.open=!0}else super.handleKeyboardEvent.call(this,t,n)}}let Iv=class{constructor(){this._args={},this._grid=null,this._tableId=""}getFilterFn(){return()=>!0}register(t,n){this.tableId=n,this.grid=t;const o=t.getData();o.setFilter(this.getFilterFn()),o.setFilterArgs(this.args),o.refresh()}reset(){if(!this.grid)return;this.args={};const t=this.grid.getData();t.setFilterArgs(this.args),t.refresh()}print(){return[]}set grid(t){this._grid=t}get grid(){return this._grid}set args(t){if(this._args=t,!this.grid)return;const n=this.grid.getData();n.setFilterArgs(t),n.refresh()}get args(){return this._args}set tableId(t){this._tableId=t}get tableId(){return this._tableId}};class GN extends Iv{getFilterFn(){return t=>!t?.isDeleted}}class KN{constructor(){this._args={},this._grid=null,this._tableId=""}getFilterFn(){return()=>!0}register(){}print(){return[]}reset(){}get args(){return this._args}get grid(){return this._grid}get tableId(){return this._tableId}set args(t){}set grid(t){}set tableId(t){}}function Ts(e){return new Date(e).getTime()}class Nv{constructor(t){this.filter=t}getFilterFn(){const t=this.filter.getFilterFn();return(n,o)=>this.filterFn(n,o)&&t(n,o)}register(t,n){this.tableId=n,this.grid=t;const o=t.getData();o.setFilter(this.getFilterFn()),o.setFilterArgs(this.args),o.refresh()}reset(){this.filter.reset()}print(t){return this.filter.print(t)}set args(t){this.filter.args=t}set grid(t){this.filter.grid=t}set tableId(t){this.filter.tableId=t}get args(){return this.filter.args}get grid(){return this.filter.grid}get tableId(){return this.filter.tableId}}function XN(e){return{tooltip:"Apply column filter",command:e}}class Ta{constructor(){this.observers=[]}subscribe(t){~this.observers.indexOf(t)||this.observers.push(t)}unsubscribe(t){const n=this.observers.indexOf(t);~this.observers.indexOf(t)&&this.observers.splice(n,1)}notify(){for(const t of this.observers)t()}}class ZN extends Ta{constructor(){super(...arguments),this.columnId="",this.group=pn.Text,this.target=null,this.x=0,this.y=0}}const Cn=new ZN;class QN{highlightAllColumns(t,n){const o=document.getElementById(n);if(!o)return;const r=Object.keys(t.columnFilters||{});if(r.length)for(const i of r){const a=o.querySelector(`[data-id="${i}"]`);a&&(t.columnFilters[i].value[1]||t.columnFilters[i].value[2]?a.classList.add("filter-active"):a.classList.remove("filter-active"))}else{const i=o.querySelectorAll(".slick-header-column");for(const a of i)a.classList.remove("filter-active")}}highlightColumn(t,n){const o=document.getElementById(t.id);if(!o)return;const r=o.querySelector(`[data-id="${n}"]`);r&&r.classList.add("filter-active")}resetColumn(t,n){const o=document.getElementById(t.id);if(!o)return;const r=o.querySelector(`[data-id="${n}"]`);r&&r.classList.remove("filter-active")}}const $o=new QN;function Av(e){return $o.highlightAllColumns(e.filter.args,e.id),function(t,n){t.preventDefault(),Cn.columnId=n.column.id||"",Cn.group=n.command,Cn.table=e,Cn.target=t.target,Cn.x=t.x||0,Cn.y=t.y||0,Cn.notify()}}function Rh(e,t,n){const{scrollWidth:o}=document.documentElement,{left:r,right:i}=e.getBoundingClientRect(),a=i-r,l=t+i>=o;e.style.left=`${l?t-a:t}px`,e.style.top=`${n}px`,e.style.visibility="visible"}const JN=ie(Hn)({position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:"2"}),eA={Wrapper:JN},Oc=({setIsOpened:e})=>E.jsx(eA.Wrapper,{onClick:()=>e(!1),onContextMenu:t=>{t.preventDefault(),e(!1)},"data-testid":"overlay"}),tA=ie(Hn)({visibility:"hidden",borderRadius:"5px",backgroundColor:"#FFFFFF",boxShadow:"1px 1px 1px 1px gray",padding:"0.5em",position:"fixed",zIndex:10,userSelect:"none",fontSize:"inherit",top:0,left:0}),nA={Wrapper:tA},Mc=({children:e,id:t})=>E.jsx(nA.Wrapper,{id:t,children:e});function oA(e){return`(${rA(e)})`}function rA(e){return e.replace("-","")}function Ic(e,t={}){const{currencySymbol:n="",decimalPlaces:o=2,decimalSeparator:r=".",negativeClass:i,negativeInParentheses:a=!0,noHTML:l=!1,positiveClass:d,thousandsSeparator:u=",",zeroAsBlank:f=!1}=t;if(e==null||e==="")return"";if(!Number(e)&&f)return"";const p=(Number(e)||0)<0,y=Math.abs(Number(e)||0).toFixed(o),w=parseInt(y).toString(),b=w.length>3?w.length%3:0,v=(b?w.slice(0,b)+u:"")+w.slice(b).replace(/(\d{3})(?=\d)/g,`$1${u}`)+(o?r+y.slice(-o):""),P=`${n}${v}`,D=p?`-${P}`:P,x=p&&a?oA(D):D;return l?x:p?i?`<span class="${i}">${x}</span>`:x:d?`<span class="${d}">${x}</span>`:x}function sA(e){const t={};if(!e)return t;const n=e.summaryColumnIds,o=e.grid;if(!o)return t;const r=o.getSelectedRows();o.getColumns().forEach((l,d)=>{const{formatter:u,id:f,name:p}=l;n.includes(f)&&(t[f]={cell:d,column:l,formatter:u,label:p,total:0,totalFormatted:u?u(0,0,0,l,{},o):"0"})});const a=o.getData();return r.forEach(l=>{const d=a.getItem(l);Object.keys(t).forEach(u=>{t[u].total+=d[u],t[u].totalFormatted=t[u].formatter?t[u].formatter(l,t[u].cell,t[u].total,t[u].column,d,o):`${Ic(t[u].total)}`})}),t}const Fv="selected-rows-summary";function iA(e){Fe.useEffect(()=>{if(!e)return;const t=document.getElementById(Fv);t&&(t.style.visibility="visible",t.style.left=`${jn.x}px`,t.style.top=`${jn.y}px`)},[e])}function aA(e,t,n,o){Fe.useEffect(()=>{function r(){const{open:i,table:a}=jn;if(a?.id===o){if(i){const l=jn.table,d=l?.grid;t(d?.getSelectedRows().length||0),n(sA(l))}e(i)}}return jn.subscribe(r),()=>{jn.unsubscribe(r)}},[o])}const lA=ie(xy)({alignItems:"center",color:"#1E456F",display:"flex",justifyContent:"space-between"}),cA=ie("span")({display:"flex",alignItems:"center"}),dA=ie("span")({marginLeft:"0.5em",width:"20px",cursor:"pointer",backgroundColor:"#1E456F","&:hover":{scale:"1.3"}}),Md={Icon:dA,Total:cA},uA=({label:e,total:t,totalFormatted:n})=>{const[o,r]=Fe.useState(!1);function i(){navigator.clipboard.writeText(`${t}`),r(!0),setTimeout(()=>{r(!1)},1e3)}return E.jsxs(lA,{children:[E.jsx("span",{children:`Total ${e}:`}),E.jsxs(Md.Total,{children:[E.jsx("span",{children:`${n}`}),o?E.jsx(Md.Icon,{className:"sgi sgi-check"}):E.jsx($y,{title:"Copy to clipboard",children:E.jsx(Md.Icon,{className:"sgi sgi-content-copy",onClick:i})})]})]})},hA=ie(Sn)({color:"#1E456F",marginBottom:"0.5em",fontWeight:"600",fontSize:"1.3rem",letterSpacing:"-2%",minWidth:"14em"}),fA=ie(Hn)({color:"#1E456F"}),pA=ie("ul")({paddingLeft:"1.5em"}),mA=ie(Hn)({display:"flex",justifyContent:"end"}),gA=ie(Oo)({borderColor:"#1E9577",color:"#1E9577",textTransform:"none"}),vi={Button:gA,ButtonContainer:mA,RowsNumber:fA,Title:hA,Ul:pA},yA=({tableId:e})=>{const[t,n]=Fe.useState(0),[o,r]=Fe.useState(!1),[i,a]=Fe.useState({});function l(){jn.open=!1}return iA(o),aA(r,n,a,e),o?E.jsxs(Fe.Fragment,{children:[E.jsx(Oc,{setIsOpened:r}),E.jsxs(Mc,{id:Fv,children:[E.jsx(vi.Title,{variant:"h6",children:"Selected rows summary"}),E.jsx(vi.RowsNumber,{children:`Number of selected rows: ${t}`}),E.jsx(vi.Ul,{children:Object.entries(i).map(([d,{label:u,total:f,totalFormatted:p}])=>E.jsx("li",{children:E.jsx(uA,{label:u,total:f,totalFormatted:p})},d))}),E.jsx(vi.ButtonContainer,{children:E.jsx(vi.Button,{variant:"outlined",onClick:l,children:"Close"})})]})]}):null};function Lv(e,t=300){let n;return function(...o){const r=()=>e.apply(this,o);clearTimeout(n),n=setTimeout(r,t)}}function vA(e){const{columnId:t,table:n}=Cn;if(!t||!n)return;const o=n.filter.args;o.columnFilters&&(n.filter.args={...o,columnFilters:{...o.columnFilters,[t]:{...o.columnFilters[t],value:e}}},e[1]||e[2]?$o.highlightColumn(n,t):$o.resetColumn(n,t))}const lr=Lv(vA),zs={1:"",2:""},$v="column-filters",uo={filter:"🔎︎ Filter...",from:"🔎︎ From...",to:"🔎︎ To..."};function bA(e){switch(e){case pn.Boolean:return je.Boolean;case pn.Date:return je.DateEqual;case pn.MultipleSelect:return je.MultipleSelect;case pn.Number:case pn.NumberFormatted:return je.NumberEqual;case pn.Text:return je.TextContain}}function wA(e,t,n){Fe.useEffect(()=>{if(!e)return;const o=document.getElementById($v);if(!o)return;const{columnId:r,group:i,table:a,x:l,y:d}=Cn;if(!a?.grid)return;const f=a.filter.args;Rh(o,l,d);const{filterId:p,value:y}=f.columnFilters?.[r]||{},w=p||bA(i),b=y||zs;a.filter.args={...f,columnFilters:{...f.columnFilters,[r]:{filterId:w,group:i,value:b}}},t(w),n(b)},[e])}function CA(e,t){Fe.useEffect(()=>{function n(){Cn.table?.id===t&&e(!0)}return Cn.subscribe(n),()=>{Cn.unsubscribe(n)}},[t])}function vu(e){return{format:Gr.ui,value:e?xe(e,UN):null}}const SA=ie(Oo)({width:"5em",alignSelf:"flex-end"}),_A={Button:SA},xA=({setIsOpened:e,setValue:t,value:n})=>{function o(){const{columnId:r,table:i}=Cn;if(!i||!i.grid)return;const l=i.filter.args;delete l.columnFilters?.[r],i.filter.args=l,$o.resetColumn(i,r),t(zs),e(!1)}return E.jsx(_A.Button,{disabled:!n[1]&&!n[2],onClick:o,variant:"outlined",size:"small",children:"Reset"})},RA=ie(gc)({padding:0}),TA=ie(Ry)({margin:"0.5em 0 0 1em"}),rl={Checkbox:RA,FormGroup:TA},EA=({setValue:e,value:t})=>{function n(o){e(o),lr(o)}return E.jsxs(rl.FormGroup,{children:[E.jsx(ml,{control:E.jsx(rl.Checkbox,{checked:!t[1]&&!t[2],onClick:()=>n({1:"",2:""}),size:"small"}),label:"All"}),E.jsx(ml,{control:E.jsx(rl.Checkbox,{checked:!!t[1],onClick:()=>n({1:"true",2:""}),size:"small"}),label:"Yes"}),E.jsx(ml,{control:E.jsx(rl.Checkbox,{checked:!!t[2],onClick:()=>n({1:"",2:"true"}),size:"small"}),label:"No"})]})},kA={Y:"year",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"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},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"},PA={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Cm=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join(`
|
|
277
|
+
xe.version="2.30.1";YD(It);xe.fn=ve;xe.min=IM;xe.max=NM;xe.now=AM;xe.utc=jo;xe.unix=cN;xe.months=uN;xe.isDate=Sa;xe.locale=Cr;xe.invalid=wc;xe.duration=bo;xe.isMoment=vo;xe.weekdays=fN;xe.parseZone=dN;xe.localeData=dr;xe.isDuration=vl;xe.monthsShort=hN;xe.weekdaysMin=mN;xe.defineLocale=gh;xe.updateLocale=dM;xe.locales=uM;xe.weekdaysShort=pN;xe.normalizeUnits=ao;xe.relativeTimeRounding=BN;xe.relativeTimeThreshold=HN;xe.calendarFormat=iI;xe.prototype=ve;xe.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const YN=Object.freeze(Object.defineProperty({__proto__:null,default:xe},Symbol.toStringTag,{value:"Module"})),UN=[xe.ISO_8601,Gr.ui,Gr.db],yu="Invalid date";ie(oy)({width:"100%","& .MuiAlert-message":{fontSize:"0.8rem"}," [data-testid=CloseIcon]":{fill:"white"}});class qN extends bc{handleKeyboardEvent(t,n){if(n.isActive)if(pB(t)){if(!n.summaryColumnIds.length)return;const o=n.grid;if(!o||o.getSelectedRows().length<2)return;t.preventDefault(),t.stopImmediatePropagation(),jn.table=n,jn.open=!0}else super.handleKeyboardEvent.call(this,t,n)}}let Iv=class{constructor(){this._args={},this._grid=null,this._tableId=""}getFilterFn(){return()=>!0}register(t,n){this.tableId=n,this.grid=t;const o=t.getData();o.setFilter(this.getFilterFn()),o.setFilterArgs(this.args),o.refresh()}reset(){if(!this.grid)return;this.args={};const t=this.grid.getData();t.setFilterArgs(this.args),t.refresh()}print(){return[]}set grid(t){this._grid=t}get grid(){return this._grid}set args(t){if(this._args=t,!this.grid)return;const n=this.grid.getData();n.setFilterArgs(t),n.refresh()}get args(){return this._args}set tableId(t){this._tableId=t}get tableId(){return this._tableId}};class GN extends Iv{getFilterFn(){return t=>!t?.isDeleted}}class KN{constructor(){this._args={},this._grid=null,this._tableId=""}getFilterFn(){return()=>!0}register(){}print(){return[]}reset(){}get args(){return this._args}get grid(){return this._grid}get tableId(){return this._tableId}set args(t){}set grid(t){}set tableId(t){}}function Ts(e){return new Date(e).getTime()}class Nv{constructor(t){this.filter=t}getFilterFn(){const t=this.filter.getFilterFn();return(n,o)=>this.filterFn(n,o)&&t(n,o)}register(t,n){this.tableId=n,this.grid=t;const o=t.getData();o.setFilter(this.getFilterFn()),o.setFilterArgs(this.args),o.refresh()}reset(){this.filter.reset()}print(t){return this.filter.print(t)}set args(t){this.filter.args=t}set grid(t){this.filter.grid=t}set tableId(t){this.filter.tableId=t}get args(){return this.filter.args}get grid(){return this.filter.grid}get tableId(){return this.filter.tableId}}function XN(e){return{tooltip:"Apply column filter",command:e}}class Ta{constructor(){this.observers=[]}subscribe(t){~this.observers.indexOf(t)||this.observers.push(t)}unsubscribe(t){const n=this.observers.indexOf(t);~this.observers.indexOf(t)&&this.observers.splice(n,1)}notify(){for(const t of this.observers)t()}}class ZN extends Ta{constructor(){super(...arguments),this.columnId="",this.group=pn.Text,this.target=null,this.x=0,this.y=0}}const Cn=new ZN;class QN{highlightAllColumns(t,n){const o=document.getElementById(n);if(!o)return;const r=Object.keys(t.columnFilters||{});if(r.length)for(const i of r){const a=o.querySelector(`[data-id="${i}"]`);a&&(t.columnFilters[i].value[1]||t.columnFilters[i].value[2]?a.classList.add("filter-active"):a.classList.remove("filter-active"))}else{const i=o.querySelectorAll(".slick-header-column");for(const a of i)a.classList.remove("filter-active")}}highlightColumn(t,n){const o=document.getElementById(t.id);if(!o)return;const r=o.querySelector(`[data-id="${n}"]`);r&&r.classList.add("filter-active")}resetColumn(t,n){const o=document.getElementById(t.id);if(!o)return;const r=o.querySelector(`[data-id="${n}"]`);r&&r.classList.remove("filter-active")}}const $o=new QN;function Av(e){return $o.highlightAllColumns(e.filter.args,e.id),function(t,n){t.preventDefault(),Cn.columnId=n.column.id||"",Cn.group=n.command,Cn.table=e,Cn.target=t.target,Cn.x=t.x||0,Cn.y=t.y||0,Cn.notify()}}function Rh(e,t,n){const{scrollWidth:o}=document.documentElement,{left:r,right:i}=e.getBoundingClientRect(),a=i-r,l=t+i>=o;e.style.left=`${l?t-a:t}px`,e.style.top=`${n}px`,e.style.visibility="visible"}const JN=ie(Hn)({position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:"2"}),eA={Wrapper:JN},Oc=({setIsOpened:e})=>E.jsx(eA.Wrapper,{onClick:()=>e(!1),onContextMenu:t=>{t.preventDefault(),e(!1)},"data-testid":"overlay"}),tA=ie(Hn)({visibility:"hidden",borderRadius:"5px",backgroundColor:"#FFFFFF",boxShadow:"1px 1px 1px 1px gray",padding:"0.5em",position:"fixed",zIndex:10,userSelect:"none",fontSize:"inherit",top:0,left:0}),nA={Wrapper:tA},Mc=({children:e,id:t})=>E.jsx(nA.Wrapper,{id:t,children:e});function oA(e){return`(${rA(e)})`}function rA(e){return e.replace("-","")}function Ic(e,t={}){const{currencySymbol:n="",decimalPlaces:o=2,decimalSeparator:r=".",negativeClass:i,negativeInParentheses:a=!0,noHTML:l=!1,positiveClass:d,thousandsSeparator:u=",",zeroAsBlank:f=!1}=t;if(e==null||e==="")return"";if(!Number(e)&&f)return"";const p=(Number(e)||0)<0,y=Math.abs(Number(e)||0).toFixed(o),w=parseInt(y).toString(),b=w.length>3?w.length%3:0,v=(b?w.slice(0,b)+u:"")+w.slice(b).replace(/(\d{3})(?=\d)/g,`$1${u}`)+(o?r+y.slice(-o):""),P=`${n}${v}`,D=p?`-${P}`:P,x=p&&a?oA(D):D;return l?x:p?i?`<span class="${i}">${x}</span>`:x:d?`<span class="${d}">${x}</span>`:x}function sA(e){const t={};if(!e)return t;const n=e.summaryColumnIds,o=e.grid;if(!o)return t;const r=o.getSelectedRows();o.getColumns().forEach((l,d)=>{const{formatter:u,id:f,name:p}=l;n.includes(f)&&(t[f]={cell:d,column:l,formatter:u,label:p,total:0,totalFormatted:u?u(0,0,0,l,{},o):"0"})});const a=o.getData();return r.forEach(l=>{const d=a.getItem(l);Object.keys(t).forEach(u=>{t[u].total+=d[u],t[u].totalFormatted=t[u].formatter?t[u].formatter(l,t[u].cell,t[u].total,t[u].column,d,o):`${Ic(t[u].total)}`})}),t}const Fv="selected-rows-summary";function iA(e){Fe.useEffect(()=>{if(!e)return;const t=document.getElementById(Fv);t&&(t.style.visibility="visible",t.style.left=`${jn.x}px`,t.style.top=`${jn.y}px`)},[e])}function aA(e,t,n,o){Fe.useEffect(()=>{function r(){const{open:i,table:a}=jn;if(a?.id===o){if(i){const l=jn.table,d=l?.grid;t(d?.getSelectedRows().length||0),n(sA(l))}e(i)}}return jn.subscribe(r),()=>{jn.unsubscribe(r)}},[o])}const lA=ie(xy)({alignItems:"center",color:"#1E456F",display:"flex",justifyContent:"space-between"}),cA=ie("span")({display:"flex",alignItems:"center"}),dA=ie("span")({marginLeft:"0.5em",width:"20px",cursor:"pointer",backgroundColor:"#1E456F","&:hover":{scale:"1.3"}}),Md={Icon:dA,Total:cA},uA=({label:e,total:t,totalFormatted:n})=>{const[o,r]=Fe.useState(!1);function i(){navigator.clipboard.writeText(`${t}`),r(!0),setTimeout(()=>{r(!1)},1e3)}return E.jsxs(lA,{children:[E.jsx("span",{children:`Total ${e}:`}),E.jsxs(Md.Total,{children:[E.jsx("span",{children:`${n}`}),o?E.jsx(Md.Icon,{className:"sgi sgi-check"}):E.jsx($y,{title:"Copy to clipboard",children:E.jsx(Md.Icon,{className:"sgi sgi-content-copy",onClick:i})})]})]})},hA=ie(Sn)({color:"#1E456F",marginBottom:"0.5em",fontWeight:"600",fontSize:"1.3rem",letterSpacing:"-2%",minWidth:"14em"}),fA=ie(Hn)({color:"#1E456F"}),pA=ie("ul")({paddingLeft:"1.5em"}),mA=ie(Hn)({display:"flex",justifyContent:"end"}),gA=ie(Oo)({borderColor:"#1E9577",color:"#1E9577",textTransform:"none"}),vi={Button:gA,ButtonContainer:mA,RowsNumber:fA,Title:hA,Ul:pA},yA=({tableId:e})=>{const[t,n]=Fe.useState(0),[o,r]=Fe.useState(!1),[i,a]=Fe.useState({});function l(){jn.open=!1}return iA(o),aA(r,n,a,e),o?E.jsxs(Fe.Fragment,{children:[E.jsx(Oc,{setIsOpened:r}),E.jsxs(Mc,{id:Fv,children:[E.jsx(vi.Title,{variant:"h6",children:"Selected rows summary"}),E.jsx(vi.RowsNumber,{children:`Number of selected rows: ${t}`}),E.jsx(vi.Ul,{children:Object.entries(i).map(([d,{label:u,total:f,totalFormatted:p}])=>E.jsx("li",{children:E.jsx(uA,{label:u,total:f,totalFormatted:p})},d))}),E.jsx(vi.ButtonContainer,{children:E.jsx(vi.Button,{variant:"outlined",onClick:l,children:"Close"})})]})]}):null};function Lv(e,t=300){let n;return function(...o){const r=()=>e.apply(this,o);clearTimeout(n),n=setTimeout(r,t)}}function vA(e){const{columnId:t,table:n}=Cn;if(!t||!n)return;const o=n.filter.args;o.columnFilters&&(n.filter.args={...o,columnFilters:{...o.columnFilters,[t]:{...o.columnFilters[t],value:e}}},e[1]||e[2]?$o.highlightColumn(n,t):$o.resetColumn(n,t))}const lr=Lv(vA),zs={1:"",2:""},$v="column-filters",uo={filter:"🔎︎ Filter...",from:"🔎︎ From...",to:"🔎︎ To..."};function bA(e){switch(e){case pn.Boolean:return je.Boolean;case pn.Date:return je.DateEqual;case pn.MultipleSelect:return je.MultipleSelect;case pn.Number:case pn.NumberFormatted:return je.NumberEqual;case pn.Text:return je.TextContain}}function wA(e,t,n){Fe.useEffect(()=>{if(!e)return;const o=document.getElementById($v);if(!o)return;const{columnId:r,group:i,table:a,x:l,y:d}=Cn;if(!a?.grid)return;const f=a.filter.args;Rh(o,l,d);const{filterId:p,value:y}=f.columnFilters?.[r]||{},w=p||bA(i),b=y||zs;a.filter.args={...f,columnFilters:{...f.columnFilters,[r]:{filterId:w,group:i,value:b}}},t(w),n(b)},[e])}function CA(e,t){Fe.useEffect(()=>{function n(){Cn.table?.id===t&&e(!0)}return Cn.subscribe(n),()=>{Cn.unsubscribe(n)}},[t])}function vu(e){return{format:Gr.ui,value:e?xe(e,UN):null}}const SA=ie(Oo)({width:"5em",alignSelf:"flex-end"}),_A={Button:SA},xA=({setIsOpened:e,setValue:t,value:n})=>{function o(){const{columnId:r,table:i}=Cn;if(!i||!i.grid)return;const l=i.filter.args;delete l.columnFilters?.[r],i.filter.args=l,$o.resetColumn(i,r),t(zs),e(!1)}return E.jsx(_A.Button,{disabled:!n[1]&&!n[2],onClick:o,variant:"outlined",size:"small",children:"Reset"})},RA=ie(gc)({padding:0}),TA=ie(Ry)({margin:"0.5em 0 0 1em"}),rl={Checkbox:RA,FormGroup:TA},EA=({setValue:e,value:t})=>{function n(o){e(o),lr(o)}return E.jsxs(rl.FormGroup,{children:[E.jsx(ml,{control:E.jsx(rl.Checkbox,{checked:!t[1]&&!t[2],onClick:()=>n({1:"",2:""}),size:"small"}),label:"All"}),E.jsx(ml,{control:E.jsx(rl.Checkbox,{checked:!!t[1],onClick:()=>n({1:"true",2:""}),size:"small"}),label:"Yes"}),E.jsx(ml,{control:E.jsx(rl.Checkbox,{checked:!!t[2],onClick:()=>n({1:"",2:"true"}),size:"small"}),label:"No"})]})},kA={Y:"year",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"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},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"},PA={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Cm=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join(`
|
|
278
278
|
`);class Vv{constructor({locale:t,formats:n,instance:o}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=kA,this.setLocaleToValue=r=>{const i=this.getCurrentLocaleCode();return i===r.locale()?r:r.locale(i)},this.hasTimezonePlugin=()=>typeof this.moment.tz<"u",this.createSystemDate=r=>{const i=this.moment(r).local();return this.locale===void 0?i:i.locale(this.locale)},this.createUTCDate=r=>{const i=this.moment.utc(r);return this.locale===void 0?i:i.locale(this.locale)},this.createTZDate=(r,i)=>{if(!this.hasTimezonePlugin())throw new Error(Cm);const a=i==="default"?this.moment(r):this.moment.tz(r,i);return this.locale===void 0?a:a.locale(this.locale)},this.date=(r,i="default")=>r===null?null:i==="UTC"?this.createUTCDate(r):i==="system"||i==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(r):this.createTZDate(r,i),this.getInvalidDate=()=>this.moment(new Date("Invalid Date")),this.getTimezone=r=>{const i=r._z?.name,a=r.isUTC()?"UTC":"system";return i??this.moment.defaultZone?.name??a},this.setTimezone=(r,i)=>{if(this.getTimezone(r)===i)return r;if(i==="UTC")return r.clone().utc();if(i==="system")return r.clone().local();if(!this.hasTimezonePlugin()){if(i!=="default")throw new Error(Cm);return r}const a=i==="default"?this.moment.defaultZone?.name??"system":i;if(a==="system")return r.clone().local();const l=r.clone();return l.tz(a),l},this.toJsDate=r=>r.toDate(),this.parse=(r,i)=>r===""?null:this.locale?this.moment(r,i,this.locale,!0):this.moment(r,i,!0),this.getCurrentLocaleCode=()=>this.locale||xe.locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(xe.localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=r=>{const i=/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;return r.match(i).map(a=>{const l=a[0];return l==="L"||l===";"?xe.localeData(this.getCurrentLocaleCode()).longDateFormat(a):a}).join("")},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,i)=>this.formatByString(r,this.formats[i]),this.formatByString=(r,i)=>{const a=r.clone();return a.locale(this.getCurrentLocaleCode()),a.format(i)},this.formatNumber=r=>r,this.isEqual=(r,i)=>r===null&&i===null?!0:r===null||i===null?!1:r.isSame(i),this.isSameYear=(r,i)=>r.isSame(i,"year"),this.isSameMonth=(r,i)=>r.isSame(i,"month"),this.isSameDay=(r,i)=>r.isSame(i,"day"),this.isSameHour=(r,i)=>r.isSame(i,"hour"),this.isAfter=(r,i)=>r.isAfter(i),this.isAfterYear=(r,i)=>r.isAfter(i,"year"),this.isAfterDay=(r,i)=>r.isAfter(i,"day"),this.isBefore=(r,i)=>r.isBefore(i),this.isBeforeYear=(r,i)=>r.isBefore(i,"year"),this.isBeforeDay=(r,i)=>r.isBefore(i,"day"),this.isWithinRange=(r,[i,a])=>r.isBetween(i,a,null,"[]"),this.startOfYear=r=>r.clone().startOf("year"),this.startOfMonth=r=>r.clone().startOf("month"),this.startOfWeek=r=>this.setLocaleToValue(r.clone()).startOf("week"),this.startOfDay=r=>r.clone().startOf("day"),this.endOfYear=r=>r.clone().endOf("year"),this.endOfMonth=r=>r.clone().endOf("month"),this.endOfWeek=r=>this.setLocaleToValue(r.clone()).endOf("week"),this.endOfDay=r=>r.clone().endOf("day"),this.addYears=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"years"):r.clone().add(i,"years"),this.addMonths=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"months"):r.clone().add(i,"months"),this.addWeeks=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"weeks"):r.clone().add(i,"weeks"),this.addDays=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"days"):r.clone().add(i,"days"),this.addHours=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"hours"):r.clone().add(i,"hours"),this.addMinutes=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"minutes"):r.clone().add(i,"minutes"),this.addSeconds=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"seconds"):r.clone().add(i,"seconds"),this.getYear=r=>r.get("year"),this.getMonth=r=>r.get("month"),this.getDate=r=>r.get("date"),this.getHours=r=>r.get("hours"),this.getMinutes=r=>r.get("minutes"),this.getSeconds=r=>r.get("seconds"),this.getMilliseconds=r=>r.get("milliseconds"),this.setYear=(r,i)=>r.clone().year(i),this.setMonth=(r,i)=>r.clone().month(i),this.setDate=(r,i)=>r.clone().date(i),this.setHours=(r,i)=>r.clone().hours(i),this.setMinutes=(r,i)=>r.clone().minutes(i),this.setSeconds=(r,i)=>r.clone().seconds(i),this.setMilliseconds=(r,i)=>r.clone().milliseconds(i),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const i=this.startOfWeek(this.startOfMonth(r)),a=this.endOfWeek(this.endOfMonth(r));let l=0,d=i;const u=[];for(;d.isBefore(a);){const f=Math.floor(l/7);u[f]=u[f]||[],u[f].push(d),d=this.addDays(d,1),l+=1}return u},this.getWeekNumber=r=>r.week(),this.getDayOfWeek=r=>r.day()+1,this.moment=o||xe,this.locale=t,this.formats=Q({},PA,n)}getYearRange([t,n]){const o=this.startOfYear(t),r=this.endOfYear(n),i=[];let a=o;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i}}const bi=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),DA=({openTo:e,defaultOpenTo:t,views:n,defaultViews:o})=>{const r=n??o;let i;if(e!=null)i=e;else if(r.includes(t))i=t;else if(r.length>0)i=r[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:r,openTo:i}},Vl=(e,t,n)=>{let o=t;return o=e.setHours(o,e.getHours(n)),o=e.setMinutes(o,e.getMinutes(n)),o=e.setSeconds(o,e.getSeconds(n)),o=e.setMilliseconds(o,e.getMilliseconds(n)),o},Bi=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:r,isDateDisabled:i,utils:a,timezone:l})=>{const d=Vl(a,a.date(void 0,l),e);n&&a.isBefore(r,d)&&(r=d),t&&a.isAfter(o,d)&&(o=d);let u=e,f=e;for(a.isBefore(e,r)&&(u=r,f=null),a.isAfter(e,o)&&(f&&(f=o),u=null);u||f;){if(u&&a.isAfter(u,o)&&(u=null),f&&a.isBefore(f,r)&&(f=null),u){if(!i(u))return u;u=a.addDays(u,1)}if(f){if(!i(f))return f;f=a.addDays(f,-1)}}return null},OA=(e,t)=>t==null||!e.isValid(t)?null:t,no=(e,t,n)=>t==null||!e.isValid(t)?n:t,MA=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Th=(e,t)=>{const o=[e.startOfYear(t)];for(;o.length<12;){const r=o[o.length-1];o.push(e.addMonths(r,1))}return o},jv=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),IA=["year","month","day"],Sm=e=>IA.includes(e),Eh=(e,{format:t,views:n},o)=>{if(t!=null)return t;const r=e.formats;return bi(n,["year"])?r.year:bi(n,["month"])?r.month:bi(n,["day"])?r.dayOfMonth:bi(n,["month","year"])?`${r.month} ${r.year}`:bi(n,["day","month"])?`${r.month} ${r.dayOfMonth}`:o?/en/.test(e.getCurrentLocaleCode())?r.normalDateWithWeekday:r.normalDate:r.keyboardDate},NA=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},AA=["hours","minutes","seconds"],FA=e=>AA.includes(e),_m=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),LA=(e,t)=>(n,o)=>e?t.isAfter(n,o):_m(n,t)>_m(o,t),ko={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},$A=e=>Math.max(...e.map(t=>ko[t.type]??1)),wi=(e,t,n)=>{if(t===ko.year)return e.startOfYear(n);if(t===ko.month)return e.startOfMonth(n);if(t===ko.day)return e.startOfDay(n);let o=n;return t<ko.minutes&&(o=e.setMinutes(o,0)),t<ko.seconds&&(o=e.setSeconds(o,0)),t<ko.milliseconds&&(o=e.setMilliseconds(o,0)),o},VA=({props:e,utils:t,granularity:n,timezone:o,getTodayDate:r})=>{let i=r?r():wi(t,n,jv(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=wi(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=wi(t,n,e.maxDate));const a=LA(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=wi(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Vl(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=wi(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Vl(t,i,e.maxTime))),i},kh=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
|
|
279
279
|
`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},jA=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Nc=(e,t)=>{const n=[],o=e.date(void 0,"default"),r=e.startOfWeek(o),i=e.endOfWeek(o);let a=r;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(l=>e.formatByString(l,t))},Wv=(e,t,n,o)=>{switch(n){case"month":return Th(e,e.date(void 0,t)).map(r=>e.formatByString(r,o));case"weekDay":return Nc(e,o);case"meridiem":{const r=e.date(void 0,t);return[e.startOfDay(r),e.endOfDay(r)].map(i=>e.formatByString(i,o))}default:return[]}},xm="s",WA=["0","1","2","3","4","5","6","7","8","9"],BA=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),xm)==="0"?WA:Array.from({length:10}).map((o,r)=>e.formatByString(e.setSeconds(t,r),xm))},Xr=(e,t)=>{if(t[0]==="0")return e;const n=[];let o="";for(let r=0;r<e.length;r+=1){o+=e[r];const i=t.indexOf(o);i>-1&&(n.push(i.toString()),o="")}return n.join("")},Ph=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),Rm=(e,t)=>{const n=Xr(e,t);return n!==" "&&!Number.isNaN(Number(n))},Bv=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},Hv=(e,t,n,o,r)=>{if(process.env.NODE_ENV!=="production"&&r.type!=="day"&&r.contentType==="digit-with-letter")throw new Error([`MUI X: The token "${r.format}" is a digit format with letter in it.'
|
|
280
280
|
This type of format is only supported for 'day' sections`].join(`
|
|
@@ -301,17 +301,17 @@ xe.version="2.30.1";YD(It);xe.fn=ve;xe.min=IM;xe.max=NM;xe.now=AM;xe.utc=jo;xe.u
|
|
|
301
301
|
* This increases the speed dramatically, but can only be done safely because there are no event handlers
|
|
302
302
|
* or data associated with any cell/row DOM nodes. Cell editors must make sure they implement .destroy()
|
|
303
303
|
* and do proper cleanup.
|
|
304
|
-
*/const $W={asyncEditorLoading:!1,autosizeColsMode:Ob.LegacyForceFit,enableAutoSizeColumns:!0,enableColumnReorder:!1};function VW(e){return function(n,{grid:o}){const i=o.getColumns().reduce((a,{id:l,width:d})=>(a[l]=d,a),{});mo.columnWidths.set(e,i)}}const jW=e=>(t,{grid:n,item:o})=>{WW(n,o),n.updateRowCount(),n.invalidate(),e.isEdited=!0,e.hotKeysBehavior.pushToCommandQueue(n)},WW=(e,t)=>{const n=e.getData(),o=n.getIdPropertyName(),i={...
|
|
304
|
+
*/const $W={asyncEditorLoading:!1,autosizeColsMode:Ob.LegacyForceFit,enableAutoSizeColumns:!0,enableColumnReorder:!1};function VW(e){return function(n,{grid:o}){const i=o.getColumns().reduce((a,{id:l,width:d})=>(a[l]=d,a),{});mo.columnWidths.set(e,i)}}const jW=e=>(t,{grid:n,item:o})=>{WW(n,o),n.updateRowCount(),n.invalidate(),e.isEdited=!0,e.hotKeysBehavior.pushToCommandQueue(n)},WW=(e,t)=>{const n=e.getData(),o=n.getIdPropertyName(),i={...fB(n),...t,[o]:Bc(e),isEdited:!0,isNew:!0};n.addItem(i)};function BW({SlickDataView:e=MW,applyCellCssStyles:t,assignIds:n=!1,columnSorter:o=qB,columns:r,getItemMetadata:i,groups:a,idPropertyName:l="id",items:d,onAddNewRow:u,onBeforeEditCell:f,onCellChange:p,onClick:y,onDblClick:w,onHeaderMenuCommand:b,onMouseEnter:m,onMouseLeave:v,onRowCountChanged:P=OD,onSelectedRowsChanged:D,options:x={},table:S}){Fe.useEffect(()=>{const C=new Ib,O=new vW({}),A=new CW({}),F=new e({groupItemMetadataProvider:a?C:void 0}),W=S.createGrid(F,[],x);W.setSelectionModel(new kW({selectActiveRow:!1})),W.registerPlugin(O),W.registerPlugin(C),i&&(F.getItemMetadata=i(W)),F.setItems(n?d.map(($,K)=>({...$,[l]:++K})):d.map($=>({...$})),l),W.invalidate(),F.onRowCountChanged.subscribe(P(S)),F.onRowsChanged.subscribe(DD(W)),W.onAddNewRow.subscribe(u),W.onCellChange.subscribe(p),m&&W.onMouseEnter.subscribe(m),v&&W.onMouseLeave.subscribe(v),D&&W.onSelectedRowsChanged.subscribe(D),f&&W.onBeforeEditCell.subscribe(f),y&&W.onClick.subscribe(y),w&&W.onDblClick.subscribe(w),W.onSort.subscribe(o.getSortFunction(S.id)),W.onColumnsResized.subscribe(VW(S.id)),W.onContextMenu.subscribe(yB(S)),S.columnPicker&&W.onHeaderContextMenu.subscribe(vB(S));const R=Av(S);return O.onCommand.subscribe(R),b&&(A.onCommand.subscribe(b),W.registerPlugin(A)),a&&(S.grouping={groups:a,isGrouped:S.grouping.isGrouped??!0}),t?.(W),()=>{O.onCommand.unsubscribe(R),b&&A.onCommand.unsubscribe(b),W.onAddNewRow.unsubscribe(u),W.onCellChange.unsubscribe(p),D&&W.onSelectedRowsChanged.unsubscribe(D),f&&W.onBeforeEditCell.unsubscribe(f),y&&W.onClick.unsubscribe(y),w&&W.onDblClick.unsubscribe(w),m&&W.onMouseEnter.unsubscribe(m),v&&W.onMouseLeave.unsubscribe(v),S.reset()}},[d]),Fe.useEffect(()=>{const C=S.grid;!C||!x||setTimeout(()=>{C.setOptions({...$W,...x}),C.render(),$o.highlightAllColumns(S.filter.args,S.id),S.totalCalculator?.calculate(C),S.notifyObservers(),o.restoreSorting(S)},0)},[x,d]),Fe.useEffect(()=>{const C=S.grid;if(!C||!r.length)return;const O=mo.columnWidths.get(S.id),A=O?r.map(F=>({...F,width:O[F.id]||F.width})):r;if(A[0].id===cu){const F=new pW;C.setColumns([{...F.getColumnDefinition(),focusable:!1},...A.slice(1)]),C.registerPlugin(F)}else C.setColumns(A);return S.columnPicker&&(S.columnPicker.setInitialColumns(C.getColumns(),S.id),C.setColumns(C.getColumns().filter(({id:F})=>S.columnPicker?!S.columnPicker.hiddenColumnIds.includes(F):!0))),$o.highlightAllColumns(S.filter.args,S.id),S.filter.register(C,S.id),C.invalidate(),S.totalCalculator?.calculate(C),S.notifyObservers(),o.restoreSorting(S),S.hotKeysBehavior.pushToCommandQueue(C),()=>{S.hotKeysBehavior.resetQueue()}},[r,d])}const Xm=Us`
|
|
305
305
|
50% {
|
|
306
306
|
background-color: #ffb1b1;
|
|
307
307
|
}
|
|
308
|
-
`,Ei="0.75rem",HW="24px",zW=ie(Hn)({backgroundColor:"transparent",fontFamily:"inherit",height:"100%",maxHeight:"100%",maxWidth:"100%",userSelect:"none","& .slick-header":{borderTopColor:"transparent","& .slick-header-column":{"&:last-child":{borderRightColor:"transparent"},"&.filter-active .slick-header-button::after":{width:"7px",height:"7px",content:"''",backgroundColor:"#2196f3",position:"absolute",borderRadius:"50%",border:"2px solid #f8f8f8",top:"3px",right:"3px"},"&:not([data-id=_checkbox_selector]):not([data-id=isEdited])":{"& .slick-column-name":{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",maxWidth:"calc(100% - 16px)"}},"& .slick-column-name":{fontSize:Ei},"& .slick-header-button":{width:"19px",height:"12px","&::before":{position:"absolute",content:"''",width:"19px",height:"12px",top:"6px",right:"5px",backgroundImage:"repeating-linear-gradient(0deg, #808080, #808080 2px, transparent 2px, transparent 4px)",clipPath:"polygon(0% 0%, 100% 0%, 50% 110%)",backgroundColor:"transparent"}},"& .slick-resizable-handle":{boxShadow:"none"}}},"& .slick-viewport":{overflowX:"hidden !important",scrollbarWidth:"thin","& .slick-cell":{borderTop:"none",borderRightStyle:"solid",borderLeft:"none",borderWidth:"1px",display:"flex",fontSize:Ei,"&:last-child":{borderRight:"none"},"&.text-center":{justifyContent:"center",textAlign:"center"},"&.text-right":{justifyContent:"end",textAlign:"right"},"&.bold":{fontWeight:"bold"},"&.wink":{animation:`${Xm} infinite 0.5s linear`,"& input":{animation:`${Xm} infinite 0.5s linear`}},"& input.editor-text":{textAlign:"inherit"},"& #autocomplete":{boxShadow:"0 0 5px 1px gray",fontSize:Ei,margin:0,maxHeight:"300px",minWidth:"100%",overflow:"auto",padding:0,position:"absolute",top:HW,"& div":{fontSize:Ei,"&:hover":{cursor:"pointer"},"& strong":{color:"#007bff"}}}}},"& .slick-footerrow":{borderTop:"1px solid silver","& .slick-footerrow-column":{height:"100%",display:"flex",justifyContent:"flex-end",alignItems:"center",fontSize:Ei,paddingRight:"5px",borderBottom:"none",fontWeight:"bold","&:last-child":{borderRight:"none"}}}}),YW={Container:zW},UW=({SlickDataView:e,applyCellCssStyles:t,assignIds:n,columnSorter:o,columns:r,getItemMetadata:i,groups:a,idPropertyName:l,items:d,onAddNewRow:u,onBeforeEditCell:f,onCellChange:p,onClick:y,onDblClick:w,onHeaderMenuCommand:b,onMouseEnter:m,onMouseLeave:v,onRowCountChanged:P,onSelectedRowsChanged:D,options:x,table:S})=>(BW({SlickDataView:e,applyCellCssStyles:t,assignIds:n,columnSorter:o,columns:r,getItemMetadata:i,groups:a,idPropertyName:l,items:d,onAddNewRow:u||jW(S),onBeforeEditCell:f,onCellChange:p||PD(S),onClick:y,onDblClick:w,onHeaderMenuCommand:b,onMouseEnter:m,onMouseLeave:v,onRowCountChanged:P,onSelectedRowsChanged:D,options:x,table:S}),
|
|
308
|
+
`,Ei="0.75rem",HW="24px",zW=ie(Hn)({backgroundColor:"transparent",fontFamily:"inherit",height:"100%",maxHeight:"100%",maxWidth:"100%",userSelect:"none","& .slick-header":{borderTopColor:"transparent","& .slick-header-column":{"&:last-child":{borderRightColor:"transparent"},"&.filter-active .slick-header-button::after":{width:"7px",height:"7px",content:"''",backgroundColor:"#2196f3",position:"absolute",borderRadius:"50%",border:"2px solid #f8f8f8",top:"3px",right:"3px"},"&:not([data-id=_checkbox_selector]):not([data-id=isEdited])":{"& .slick-column-name":{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",maxWidth:"calc(100% - 16px)"}},"& .slick-column-name":{fontSize:Ei},"& .slick-header-button":{width:"19px",height:"12px","&::before":{position:"absolute",content:"''",width:"19px",height:"12px",top:"6px",right:"5px",backgroundImage:"repeating-linear-gradient(0deg, #808080, #808080 2px, transparent 2px, transparent 4px)",clipPath:"polygon(0% 0%, 100% 0%, 50% 110%)",backgroundColor:"transparent"}},"& .slick-resizable-handle":{boxShadow:"none"}}},"& .slick-viewport":{overflowX:"hidden !important",scrollbarWidth:"thin","& .slick-cell":{borderTop:"none",borderRightStyle:"solid",borderLeft:"none",borderWidth:"1px",display:"flex",fontSize:Ei,"&:last-child":{borderRight:"none"},"&.text-center":{justifyContent:"center",textAlign:"center"},"&.text-right":{justifyContent:"end",textAlign:"right"},"&.bold":{fontWeight:"bold"},"&.wink":{animation:`${Xm} infinite 0.5s linear`,"& input":{animation:`${Xm} infinite 0.5s linear`}},"& input.editor-text":{textAlign:"inherit"},"& #autocomplete":{boxShadow:"0 0 5px 1px gray",fontSize:Ei,margin:0,maxHeight:"300px",minWidth:"100%",overflow:"auto",padding:0,position:"absolute",top:HW,"& div":{fontSize:Ei,"&:hover":{cursor:"pointer"},"& strong":{color:"#007bff"}}}}},"& .slick-footerrow":{borderTop:"1px solid silver","& .slick-footerrow-column":{height:"100%",display:"flex",justifyContent:"flex-end",alignItems:"center",fontSize:Ei,paddingRight:"5px",borderBottom:"none",fontWeight:"bold","&:last-child":{borderRight:"none"}}}}),YW={Container:zW},UW=({SlickDataView:e,applyCellCssStyles:t,assignIds:n,columnSorter:o,columns:r,getItemMetadata:i,groups:a,idPropertyName:l,items:d,onAddNewRow:u,onBeforeEditCell:f,onCellChange:p,onClick:y,onDblClick:w,onHeaderMenuCommand:b,onMouseEnter:m,onMouseLeave:v,onRowCountChanged:P,onSelectedRowsChanged:D,options:x,table:S})=>(BW({SlickDataView:e,applyCellCssStyles:t,assignIds:n,columnSorter:o,columns:r,getItemMetadata:i,groups:a,idPropertyName:l,items:d,onAddNewRow:u||jW(S),onBeforeEditCell:f,onCellChange:p||PD(S),onClick:y,onDblClick:w,onHeaderMenuCommand:b,onMouseEnter:m,onMouseLeave:v,onRowCountChanged:P,onSelectedRowsChanged:D,options:x,table:S}),wB(S),xB(S),_B(S),E.jsx(YW.Container,{id:S.id,className:"slick-container"})),qW=ie(Hn)({height:"100%",width:"100%"}),GW=ie(nh)({borderRadius:"10px",height:"100%",width:"100%"}),Zm={Skeleton:GW,Wrapper:qW},KW=({SlickDataView:e,applyCellCssStyles:t,assignIds:n,columnSorter:o,columns:r,getItemMetadata:i,groups:a,idPropertyName:l,isLoading:d,items:u,onAddNewRow:f,onBeforeEditCell:p,onCellChange:y,onClick:w,onDblClick:b,onHeaderMenuCommand:m,onMouseEnter:v,onMouseLeave:P,onRowCountChanged:D,onSelectedRowsChanged:x,options:S,table:C})=>d?E.jsx(Zm.Skeleton,{animation:"wave",variant:"rectangular"}):E.jsxs(Zm.Wrapper,{className:"slick-table",children:[E.jsx(UW,{SlickDataView:e,applyCellCssStyles:t,assignIds:n,columnSorter:o,columns:r,getItemMetadata:i,groups:a,idPropertyName:l,items:u,onAddNewRow:f,onBeforeEditCell:p,onCellChange:y,onClick:w,onDblClick:b,onHeaderMenuCommand:m,onMouseEnter:v,onMouseLeave:P,onRowCountChanged:D,onSelectedRowsChanged:x,options:S,table:C}),E.jsx(zj,{tableId:C.id}),E.jsx(mj,{tableId:C.id}),E.jsx(Mj,{tableId:C.id}),E.jsx(yA,{tableId:C.id})]}),XW={cssClass:"text-center",id:cu,field:cu};function ZW(e,t,n){return n?"<span>✎</span>":""}const QW={id:"isEdited",name:"✎",field:"isEdited",formatter:ZW,focusable:!1,sortable:!0,sortAs:Ro.NUMBER,cssClass:"text-center",maxWidth:30};class JW{passed(t,n,o){if(!n[1]&&!n[2])return!0;switch(o){case je.Boolean:return this.boolean(t,n);case je.DateBetween:return this.dateBetween(t,n);case je.DateEqual:return this.dateEqual(t,n[1]);case je.DateFrom:return this.dateFrom(t,n[1]);case je.DateTo:return this.dateTo(t,n[1]);case je.MultipleSelect:return this.multipleSelect(t,n[1]);case je.NumberBetween:return this.numberBetween(t,n);case je.NumberEqual:return this.numberEqual(t,n[1]);case je.NumberFrom:return this.numberFrom(t,n[1]);case je.NumberTo:return this.numberTo(t,n[1]);case je.TextContain:return this.textContain(t,n[1]);case je.TextEqual:return this.textEqual(t,n[1]);case je.TextNotContain:return!this.textContain(t,n[1]);case je.TextNotEqual:return!this.textEqual(t,n[1])}}boolean(t,n){return n[1]?!!t:n[2]?!t:!0}dateBetween(t,n){const o=n[1],r=n[2];return o?r?this.dateFrom(t,o)&&this.dateTo(t,r):this.dateFrom(t,o):this.dateTo(t,r)}dateEqual(t,n){return n===t}dateFrom(t,n){return Ts(t)>=Ts(n)}dateTo(t,n){return Ts(t)<=Ts(n)}multipleSelect(t,n){const o=JSON.parse(n);return o.includes("All")?!0:o.includes(t)}numberBetween(t,n){const o=n[1]||0,r=n[2]||0;return o?r?this.numberFrom(t,o)&&this.numberTo(t,r):Number(t)>=Number(o):Number(t)<=Number(r)}numberEqual(t,n){return Number(n)===Number(t)}numberFrom(t,n){return Number(t)>=Number(n)}numberTo(t,n){return Number(t)<=Number(n)}textEqual(t,n){return(t||"").toLowerCase()===n.toLowerCase()}textContain(t,n){return(t||"").toLowerCase().match(n.toLowerCase())}}const eB=new JW,tB=[pn.Date,pn.Boolean,pn.Number];class nB extends Nv{filterFn(t,n){if(!n.columnFilters)return!0;const o=this.grid;if(!o)return!0;const r=o.getColumns(),i=Object.keys(n.columnFilters);for(let a=0;a<i.length;a++){const l=i[a],d=r[o.getColumnIndex(l)];if(!d)continue;const{filterId:u,group:f,value:p}=n.columnFilters[l];let y=t[d?.field];if(!tB.includes(f)){const w=d?.formatter;w&&(y=w(0,0,y,d,t,o))}if(!eB.passed(y,p,u))return!1}return!0}reset(){this.filter.reset(),this.tableId&&(mo.columnFilters.reset(this.tableId),$o.highlightAllColumns(this.args,this.tableId))}set args(t){mo.columnFilters.set(this.tableId,t.columnFilters),this.filter.args=t}get args(){return this.filter.args}}function oB(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var wl={exports:{}},rB=wl.exports,Qm;function sB(){return Qm||(Qm=1,function(e,t){(function(n,o){e.exports=o()})(rB,function(){var n;function o(){return n.apply(null,arguments)}function r(c){n=c}function i(c){return c instanceof Array||Object.prototype.toString.call(c)==="[object Array]"}function a(c){return c!=null&&Object.prototype.toString.call(c)==="[object Object]"}function l(c,h){return Object.prototype.hasOwnProperty.call(c,h)}function d(c){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(c).length===0;var h;for(h in c)if(l(c,h))return!1;return!0}function u(c){return c===void 0}function f(c){return typeof c=="number"||Object.prototype.toString.call(c)==="[object Number]"}function p(c){return c instanceof Date||Object.prototype.toString.call(c)==="[object Date]"}function y(c,h){var g=[],_,I=c.length;for(_=0;_<I;++_)g.push(h(c[_],_));return g}function w(c,h){for(var g in h)l(h,g)&&(c[g]=h[g]);return l(h,"toString")&&(c.toString=h.toString),l(h,"valueOf")&&(c.valueOf=h.valueOf),c}function b(c,h,g,_){return cf(c,h,g,_,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function v(c){return c._pf==null&&(c._pf=m()),c._pf}var P;Array.prototype.some?P=Array.prototype.some:P=function(c){var h=Object(this),g=h.length>>>0,_;for(_=0;_<g;_++)if(_ in h&&c.call(this,h[_],_,h))return!0;return!1};function D(c){var h=null,g=!1,_=c._d&&!isNaN(c._d.getTime());if(_&&(h=v(c),g=P.call(h.parsedDateParts,function(I){return I!=null}),_=h.overflow<0&&!h.empty&&!h.invalidEra&&!h.invalidMonth&&!h.invalidWeekday&&!h.weekdayMismatch&&!h.nullInput&&!h.invalidFormat&&!h.userInvalidated&&(!h.meridiem||h.meridiem&&g),c._strict&&(_=_&&h.charsLeftOver===0&&h.unusedTokens.length===0&&h.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(c))c._isValid=_;else return _;return c._isValid}function x(c){var h=b(NaN);return c!=null?w(v(h),c):v(h).userInvalidated=!0,h}var S=o.momentProperties=[],C=!1;function O(c,h){var g,_,I,X=S.length;if(u(h._isAMomentObject)||(c._isAMomentObject=h._isAMomentObject),u(h._i)||(c._i=h._i),u(h._f)||(c._f=h._f),u(h._l)||(c._l=h._l),u(h._strict)||(c._strict=h._strict),u(h._tzm)||(c._tzm=h._tzm),u(h._isUTC)||(c._isUTC=h._isUTC),u(h._offset)||(c._offset=h._offset),u(h._pf)||(c._pf=v(h)),u(h._locale)||(c._locale=h._locale),X>0)for(g=0;g<X;g++)_=S[g],I=h[_],u(I)||(c[_]=I);return c}function A(c){O(this,c),this._d=new Date(c._d!=null?c._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),C===!1&&(C=!0,o.updateOffset(this),C=!1)}function F(c){return c instanceof A||c!=null&&c._isAMomentObject!=null}function W(c){o.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+c)}function R(c,h){var g=!0;return w(function(){if(o.deprecationHandler!=null&&o.deprecationHandler(null,c),g){var _=[],I,X,de,ke=arguments.length;for(X=0;X<ke;X++){if(I="",typeof arguments[X]=="object"){I+=`
|
|
309
309
|
[`+X+"] ";for(de in arguments[0])l(arguments[0],de)&&(I+=de+": "+arguments[0][de]+", ");I=I.slice(0,-2)}else I=arguments[X];_.push(I)}W(c+`
|
|
310
310
|
Arguments: `+Array.prototype.slice.call(_).join("")+`
|
|
311
311
|
`+new Error().stack),g=!1}return h.apply(this,arguments)},h)}var $={};function K(c,h){o.deprecationHandler!=null&&o.deprecationHandler(c,h),$[c]||(W(h),$[c]=!0)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null;function G(c){return typeof Function<"u"&&c instanceof Function||Object.prototype.toString.call(c)==="[object Function]"}function q(c){var h,g;for(g in c)l(c,g)&&(h=c[g],G(h)?this[g]=h:this["_"+g]=h);this._config=c,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Y(c,h){var g=w({},c),_;for(_ in h)l(h,_)&&(a(c[_])&&a(h[_])?(g[_]={},w(g[_],c[_]),w(g[_],h[_])):h[_]!=null?g[_]=h[_]:delete g[_]);for(_ in c)l(c,_)&&!l(h,_)&&a(c[_])&&(g[_]=w({},g[_]));return g}function z(c){c!=null&&this.set(c)}var ae;Object.keys?ae=Object.keys:ae=function(c){var h,g=[];for(h in c)l(c,h)&&g.push(h);return g};var N={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function M(c,h,g){var _=this._calendar[c]||this._calendar.sameElse;return G(_)?_.call(h,g):_}function L(c,h,g){var _=""+Math.abs(c),I=h-_.length,X=c>=0;return(X?g?"+":"":"-")+Math.pow(10,Math.max(0,I)).toString().substr(1)+_}var B=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,oe={},se={};function j(c,h,g,_){var I=_;typeof _=="string"&&(I=function(){return this[_]()}),c&&(se[c]=I),h&&(se[h[0]]=function(){return L(I.apply(this,arguments),h[1],h[2])}),g&&(se[g]=function(){return this.localeData().ordinal(I.apply(this,arguments),c)})}function ee(c){return c.match(/\[[\s\S]/)?c.replace(/^\[|\]$/g,""):c.replace(/\\/g,"")}function J(c){var h=c.match(B),g,_;for(g=0,_=h.length;g<_;g++)se[h[g]]?h[g]=se[h[g]]:h[g]=ee(h[g]);return function(I){var X="",de;for(de=0;de<_;de++)X+=G(h[de])?h[de].call(I,c):h[de];return X}}function te(c,h){return c.isValid()?(h=ce(h,c.localeData()),oe[h]=oe[h]||J(h),oe[h](c)):c.localeData().invalidDate()}function ce(c,h){var g=5;function _(I){return h.longDateFormat(I)||I}for(ne.lastIndex=0;g>=0&&ne.test(c);)c=c.replace(ne,_),ne.lastIndex=0,g-=1;return c}var le={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"};function he(c){var h=this._longDateFormat[c],g=this._longDateFormat[c.toUpperCase()];return h||!g?h:(this._longDateFormat[c]=g.match(B).map(function(_){return _==="MMMM"||_==="MM"||_==="DD"||_==="dddd"?_.slice(1):_}).join(""),this._longDateFormat[c])}var H="Invalid date";function re(){return this._invalidDate}var Z="%d",fe=/\d{1,2}/;function pe(c){return this._ordinal.replace("%d",c)}var be={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ge(c,h,g,_){var I=this._relativeTime[g];return G(I)?I(c,h,g,_):I.replace(/%d/i,c)}function Re(c,h){var g=this._relativeTime[c>0?"future":"past"];return G(g)?g(h):g.replace(/%s/i,h)}var Ve={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Ne(c){return typeof c=="string"?Ve[c]||Ve[c.toLowerCase()]:void 0}function Je(c){var h={},g,_;for(_ in c)l(c,_)&&(g=Ne(_),g&&(h[g]=c[_]));return h}var Ee={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ut(c){var h=[],g;for(g in c)l(c,g)&&h.push({unit:g,priority:Ee[g]});return h.sort(function(_,I){return _.priority-I.priority}),h}var Ut=/\d/,rt=/\d\d/,Ot=/\d{3}/,qt=/\d{4}/,Lt=/[+-]?\d{6}/,Ue=/\d\d?/,We=/\d\d\d\d?/,ln=/\d\d\d\d\d\d?/,hn=/\d{1,3}/,Oe=/\d{1,4}/,Be=/[+-]?\d{1,6}/,ht=/\d+/,sn=/[+-]?\d+/,Fn=/Z|[+-]\d\d:?\d\d/gi,at=/Z|[+-]\d\d(?::?\d\d)?/gi,Qt=/[+-]?\d+(\.\d{1,3})?/,gn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Jt=/^[1-9]\d?/,fr=/^([1-9]\d|\d)/,He;He={};function _e(c,h,g){He[c]=G(h)?h:function(_,I){return _&&g?g:h}}function zc(c,h){return l(He,c)?He[c](h._strict,h._locale):new RegExp(Da(c))}function Da(c){return Yn(c.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(h,g,_,I,X){return g||_||I||X}))}function Yn(c){return c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function kn(c){return c<0?Math.ceil(c)||0:Math.floor(c)}function Xe(c){var h=+c,g=0;return h!==0&&isFinite(h)&&(g=kn(h)),g}var os={};function yt(c,h){var g,_=h,I;for(typeof c=="string"&&(c=[c]),f(h)&&(_=function(X,de){de[h]=Xe(X)}),I=c.length,g=0;g<I;g++)os[c[g]]=_}function kr(c,h){yt(c,function(g,_,I,X){I._w=I._w||{},h(g,I._w,I,X)})}function Yc(c,h,g){h!=null&&l(os,c)&&os[c](h,g._a,g,c)}function rs(c){return c%4===0&&c%100!==0||c%400===0}var fn=0,U=1,me=2,Ce=3,Ae=4,Ge=5,st=6,et=7,Ze=8;j("Y",0,0,function(){var c=this.year();return c<=9999?L(c,4):"+"+c}),j(0,["YY",2],0,function(){return this.year()%100}),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),_e("Y",sn),_e("YY",Ue,rt),_e("YYYY",Oe,qt),_e("YYYYY",Be,Lt),_e("YYYYYY",Be,Lt),yt(["YYYYY","YYYYYY"],fn),yt("YYYY",function(c,h){h[fn]=c.length===2?o.parseTwoDigitYear(c):Xe(c)}),yt("YY",function(c,h){h[fn]=o.parseTwoDigitYear(c)}),yt("Y",function(c,h){h[fn]=parseInt(c,10)});function en(c){return rs(c)?366:365}o.parseTwoDigitYear=function(c){return Xe(c)+(Xe(c)>68?1900:2e3)};var $t=cn("FullYear",!0);function Gt(){return rs(this.year())}function cn(c,h){return function(g){return g!=null?(Co(this,c,g),o.updateOffset(this,h),this):Un(this,c)}}function Un(c,h){if(!c.isValid())return NaN;var g=c._d,_=c._isUTC;switch(h){case"Milliseconds":return _?g.getUTCMilliseconds():g.getMilliseconds();case"Seconds":return _?g.getUTCSeconds():g.getSeconds();case"Minutes":return _?g.getUTCMinutes():g.getMinutes();case"Hours":return _?g.getUTCHours():g.getHours();case"Date":return _?g.getUTCDate():g.getDate();case"Day":return _?g.getUTCDay():g.getDay();case"Month":return _?g.getUTCMonth():g.getMonth();case"FullYear":return _?g.getUTCFullYear():g.getFullYear();default:return NaN}}function Co(c,h,g){var _,I,X,de,ke;if(!(!c.isValid()||isNaN(g))){switch(_=c._d,I=c._isUTC,h){case"Milliseconds":return void(I?_.setUTCMilliseconds(g):_.setMilliseconds(g));case"Seconds":return void(I?_.setUTCSeconds(g):_.setSeconds(g));case"Minutes":return void(I?_.setUTCMinutes(g):_.setMinutes(g));case"Hours":return void(I?_.setUTCHours(g):_.setHours(g));case"Date":return void(I?_.setUTCDate(g):_.setDate(g));case"FullYear":break;default:return}X=g,de=c.month(),ke=c.date(),ke=ke===29&&de===1&&!rs(X)?28:ke,I?_.setUTCFullYear(X,de,ke):_.setFullYear(X,de,ke)}}function bn(c){return c=Ne(c),G(this[c])?this[c]():this}function ei(c,h){if(typeof c=="object"){c=Je(c);var g=ut(c),_,I=g.length;for(_=0;_<I;_++)this[g[_].unit](c[g[_].unit])}else if(c=Ne(c),G(this[c]))return this[c](h);return this}function Uc(c,h){return(c%h+h)%h}var Bt;Array.prototype.indexOf?Bt=Array.prototype.indexOf:Bt=function(c){var h;for(h=0;h<this.length;++h)if(this[h]===c)return h;return-1};function qc(c,h){if(isNaN(c)||isNaN(h))return NaN;var g=Uc(h,12);return c+=(h-g)/12,g===1?rs(c)?29:28:31-g%7%2}j("M",["MM",2],"Mo",function(){return this.month()+1}),j("MMM",0,0,function(c){return this.localeData().monthsShort(this,c)}),j("MMMM",0,0,function(c){return this.localeData().months(this,c)}),_e("M",Ue,Jt),_e("MM",Ue,rt),_e("MMM",function(c,h){return h.monthsShortRegex(c)}),_e("MMMM",function(c,h){return h.monthsRegex(c)}),yt(["M","MM"],function(c,h){h[U]=Xe(c)-1}),yt(["MMM","MMMM"],function(c,h,g,_){var I=g._locale.monthsParse(c,_,g._strict);I!=null?h[U]=I:v(g).invalidMonth=c});var Yb="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Gh="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Kh=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ub=gn,qb=gn;function Gb(c,h){return c?i(this._months)?this._months[c.month()]:this._months[(this._months.isFormat||Kh).test(h)?"format":"standalone"][c.month()]:i(this._months)?this._months:this._months.standalone}function Kb(c,h){return c?i(this._monthsShort)?this._monthsShort[c.month()]:this._monthsShort[Kh.test(h)?"format":"standalone"][c.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Xb(c,h,g){var _,I,X,de=c.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],_=0;_<12;++_)X=b([2e3,_]),this._shortMonthsParse[_]=this.monthsShort(X,"").toLocaleLowerCase(),this._longMonthsParse[_]=this.months(X,"").toLocaleLowerCase();return g?h==="MMM"?(I=Bt.call(this._shortMonthsParse,de),I!==-1?I:null):(I=Bt.call(this._longMonthsParse,de),I!==-1?I:null):h==="MMM"?(I=Bt.call(this._shortMonthsParse,de),I!==-1?I:(I=Bt.call(this._longMonthsParse,de),I!==-1?I:null)):(I=Bt.call(this._longMonthsParse,de),I!==-1?I:(I=Bt.call(this._shortMonthsParse,de),I!==-1?I:null))}function Zb(c,h,g){var _,I,X;if(this._monthsParseExact)return Xb.call(this,c,h,g);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),_=0;_<12;_++){if(I=b([2e3,_]),g&&!this._longMonthsParse[_]&&(this._longMonthsParse[_]=new RegExp("^"+this.months(I,"").replace(".","")+"$","i"),this._shortMonthsParse[_]=new RegExp("^"+this.monthsShort(I,"").replace(".","")+"$","i")),!g&&!this._monthsParse[_]&&(X="^"+this.months(I,"")+"|^"+this.monthsShort(I,""),this._monthsParse[_]=new RegExp(X.replace(".",""),"i")),g&&h==="MMMM"&&this._longMonthsParse[_].test(c))return _;if(g&&h==="MMM"&&this._shortMonthsParse[_].test(c))return _;if(!g&&this._monthsParse[_].test(c))return _}}function Xh(c,h){if(!c.isValid())return c;if(typeof h=="string"){if(/^\d+$/.test(h))h=Xe(h);else if(h=c.localeData().monthsParse(h),!f(h))return c}var g=h,_=c.date();return _=_<29?_:Math.min(_,qc(c.year(),g)),c._isUTC?c._d.setUTCMonth(g,_):c._d.setMonth(g,_),c}function Zh(c){return c!=null?(Xh(this,c),o.updateOffset(this,!0),this):Un(this,"Month")}function Qb(){return qc(this.year(),this.month())}function Jb(c){return this._monthsParseExact?(l(this,"_monthsRegex")||Qh.call(this),c?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=Ub),this._monthsShortStrictRegex&&c?this._monthsShortStrictRegex:this._monthsShortRegex)}function ew(c){return this._monthsParseExact?(l(this,"_monthsRegex")||Qh.call(this),c?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=qb),this._monthsStrictRegex&&c?this._monthsStrictRegex:this._monthsRegex)}function Qh(){function c(ze,it){return it.length-ze.length}var h=[],g=[],_=[],I,X,de,ke;for(I=0;I<12;I++)X=b([2e3,I]),de=Yn(this.monthsShort(X,"")),ke=Yn(this.months(X,"")),h.push(de),g.push(ke),_.push(ke),_.push(de);h.sort(c),g.sort(c),_.sort(c),this._monthsRegex=new RegExp("^("+_.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+h.join("|")+")","i")}function tw(c,h,g,_,I,X,de){var ke;return c<100&&c>=0?(ke=new Date(c+400,h,g,_,I,X,de),isFinite(ke.getFullYear())&&ke.setFullYear(c)):ke=new Date(c,h,g,_,I,X,de),ke}function ti(c){var h,g;return c<100&&c>=0?(g=Array.prototype.slice.call(arguments),g[0]=c+400,h=new Date(Date.UTC.apply(null,g)),isFinite(h.getUTCFullYear())&&h.setUTCFullYear(c)):h=new Date(Date.UTC.apply(null,arguments)),h}function Oa(c,h,g){var _=7+h-g,I=(7+ti(c,0,_).getUTCDay()-h)%7;return-I+_-1}function Jh(c,h,g,_,I){var X=(7+g-_)%7,de=Oa(c,_,I),ke=1+7*(h-1)+X+de,ze,it;return ke<=0?(ze=c-1,it=en(ze)+ke):ke>en(c)?(ze=c+1,it=ke-en(c)):(ze=c,it=ke),{year:ze,dayOfYear:it}}function ni(c,h,g){var _=Oa(c.year(),h,g),I=Math.floor((c.dayOfYear()-_-1)/7)+1,X,de;return I<1?(de=c.year()-1,X=I+Bo(de,h,g)):I>Bo(c.year(),h,g)?(X=I-Bo(c.year(),h,g),de=c.year()+1):(de=c.year(),X=I),{week:X,year:de}}function Bo(c,h,g){var _=Oa(c,h,g),I=Oa(c+1,h,g);return(en(c)-_+I)/7}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),_e("w",Ue,Jt),_e("ww",Ue,rt),_e("W",Ue,Jt),_e("WW",Ue,rt),kr(["w","ww","W","WW"],function(c,h,g,_){h[_.substr(0,1)]=Xe(c)});function nw(c){return ni(c,this._week.dow,this._week.doy).week}var ow={dow:0,doy:6};function rw(){return this._week.dow}function sw(){return this._week.doy}function iw(c){var h=this.localeData().week(this);return c==null?h:this.add((c-h)*7,"d")}function aw(c){var h=ni(this,1,4).week;return c==null?h:this.add((c-h)*7,"d")}j("d",0,"do","day"),j("dd",0,0,function(c){return this.localeData().weekdaysMin(this,c)}),j("ddd",0,0,function(c){return this.localeData().weekdaysShort(this,c)}),j("dddd",0,0,function(c){return this.localeData().weekdays(this,c)}),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),_e("d",Ue),_e("e",Ue),_e("E",Ue),_e("dd",function(c,h){return h.weekdaysMinRegex(c)}),_e("ddd",function(c,h){return h.weekdaysShortRegex(c)}),_e("dddd",function(c,h){return h.weekdaysRegex(c)}),kr(["dd","ddd","dddd"],function(c,h,g,_){var I=g._locale.weekdaysParse(c,_,g._strict);I!=null?h.d=I:v(g).invalidWeekday=c}),kr(["d","e","E"],function(c,h,g,_){h[_]=Xe(c)});function lw(c,h){return typeof c!="string"?c:isNaN(c)?(c=h.weekdaysParse(c),typeof c=="number"?c:null):parseInt(c,10)}function cw(c,h){return typeof c=="string"?h.weekdaysParse(c)%7||7:isNaN(c)?null:c}function Gc(c,h){return c.slice(h,7).concat(c.slice(0,h))}var dw="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ef="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),uw="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),hw=gn,fw=gn,pw=gn;function mw(c,h){var g=i(this._weekdays)?this._weekdays:this._weekdays[c&&c!==!0&&this._weekdays.isFormat.test(h)?"format":"standalone"];return c===!0?Gc(g,this._week.dow):c?g[c.day()]:g}function gw(c){return c===!0?Gc(this._weekdaysShort,this._week.dow):c?this._weekdaysShort[c.day()]:this._weekdaysShort}function yw(c){return c===!0?Gc(this._weekdaysMin,this._week.dow):c?this._weekdaysMin[c.day()]:this._weekdaysMin}function vw(c,h,g){var _,I,X,de=c.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],_=0;_<7;++_)X=b([2e3,1]).day(_),this._minWeekdaysParse[_]=this.weekdaysMin(X,"").toLocaleLowerCase(),this._shortWeekdaysParse[_]=this.weekdaysShort(X,"").toLocaleLowerCase(),this._weekdaysParse[_]=this.weekdays(X,"").toLocaleLowerCase();return g?h==="dddd"?(I=Bt.call(this._weekdaysParse,de),I!==-1?I:null):h==="ddd"?(I=Bt.call(this._shortWeekdaysParse,de),I!==-1?I:null):(I=Bt.call(this._minWeekdaysParse,de),I!==-1?I:null):h==="dddd"?(I=Bt.call(this._weekdaysParse,de),I!==-1||(I=Bt.call(this._shortWeekdaysParse,de),I!==-1)?I:(I=Bt.call(this._minWeekdaysParse,de),I!==-1?I:null)):h==="ddd"?(I=Bt.call(this._shortWeekdaysParse,de),I!==-1||(I=Bt.call(this._weekdaysParse,de),I!==-1)?I:(I=Bt.call(this._minWeekdaysParse,de),I!==-1?I:null)):(I=Bt.call(this._minWeekdaysParse,de),I!==-1||(I=Bt.call(this._weekdaysParse,de),I!==-1)?I:(I=Bt.call(this._shortWeekdaysParse,de),I!==-1?I:null))}function bw(c,h,g){var _,I,X;if(this._weekdaysParseExact)return vw.call(this,c,h,g);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),_=0;_<7;_++){if(I=b([2e3,1]).day(_),g&&!this._fullWeekdaysParse[_]&&(this._fullWeekdaysParse[_]=new RegExp("^"+this.weekdays(I,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[_]=new RegExp("^"+this.weekdaysShort(I,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[_]=new RegExp("^"+this.weekdaysMin(I,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[_]||(X="^"+this.weekdays(I,"")+"|^"+this.weekdaysShort(I,"")+"|^"+this.weekdaysMin(I,""),this._weekdaysParse[_]=new RegExp(X.replace(".",""),"i")),g&&h==="dddd"&&this._fullWeekdaysParse[_].test(c))return _;if(g&&h==="ddd"&&this._shortWeekdaysParse[_].test(c))return _;if(g&&h==="dd"&&this._minWeekdaysParse[_].test(c))return _;if(!g&&this._weekdaysParse[_].test(c))return _}}function ww(c){if(!this.isValid())return c!=null?this:NaN;var h=Un(this,"Day");return c!=null?(c=lw(c,this.localeData()),this.add(c-h,"d")):h}function Cw(c){if(!this.isValid())return c!=null?this:NaN;var h=(this.day()+7-this.localeData()._week.dow)%7;return c==null?h:this.add(c-h,"d")}function Sw(c){if(!this.isValid())return c!=null?this:NaN;if(c!=null){var h=cw(c,this.localeData());return this.day(this.day()%7?h:h-7)}else return this.day()||7}function _w(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Kc.call(this),c?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=hw),this._weekdaysStrictRegex&&c?this._weekdaysStrictRegex:this._weekdaysRegex)}function xw(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Kc.call(this),c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=fw),this._weekdaysShortStrictRegex&&c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Rw(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Kc.call(this),c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=pw),this._weekdaysMinStrictRegex&&c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Kc(){function c(Tn,qo){return qo.length-Tn.length}var h=[],g=[],_=[],I=[],X,de,ke,ze,it;for(X=0;X<7;X++)de=b([2e3,1]).day(X),ke=Yn(this.weekdaysMin(de,"")),ze=Yn(this.weekdaysShort(de,"")),it=Yn(this.weekdays(de,"")),h.push(ke),g.push(ze),_.push(it),I.push(ke),I.push(ze),I.push(it);h.sort(c),g.sort(c),_.sort(c),I.sort(c),this._weekdaysRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+h.join("|")+")","i")}function Xc(){return this.hours()%12||12}function Tw(){return this.hours()||24}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,Xc),j("k",["kk",2],0,Tw),j("hmm",0,0,function(){return""+Xc.apply(this)+L(this.minutes(),2)}),j("hmmss",0,0,function(){return""+Xc.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)}),j("Hmm",0,0,function(){return""+this.hours()+L(this.minutes(),2)}),j("Hmmss",0,0,function(){return""+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)});function tf(c,h){j(c,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),h)})}tf("a",!0),tf("A",!1);function nf(c,h){return h._meridiemParse}_e("a",nf),_e("A",nf),_e("H",Ue,fr),_e("h",Ue,Jt),_e("k",Ue,Jt),_e("HH",Ue,rt),_e("hh",Ue,rt),_e("kk",Ue,rt),_e("hmm",We),_e("hmmss",ln),_e("Hmm",We),_e("Hmmss",ln),yt(["H","HH"],Ce),yt(["k","kk"],function(c,h,g){var _=Xe(c);h[Ce]=_===24?0:_}),yt(["a","A"],function(c,h,g){g._isPm=g._locale.isPM(c),g._meridiem=c}),yt(["h","hh"],function(c,h,g){h[Ce]=Xe(c),v(g).bigHour=!0}),yt("hmm",function(c,h,g){var _=c.length-2;h[Ce]=Xe(c.substr(0,_)),h[Ae]=Xe(c.substr(_)),v(g).bigHour=!0}),yt("hmmss",function(c,h,g){var _=c.length-4,I=c.length-2;h[Ce]=Xe(c.substr(0,_)),h[Ae]=Xe(c.substr(_,2)),h[Ge]=Xe(c.substr(I)),v(g).bigHour=!0}),yt("Hmm",function(c,h,g){var _=c.length-2;h[Ce]=Xe(c.substr(0,_)),h[Ae]=Xe(c.substr(_))}),yt("Hmmss",function(c,h,g){var _=c.length-4,I=c.length-2;h[Ce]=Xe(c.substr(0,_)),h[Ae]=Xe(c.substr(_,2)),h[Ge]=Xe(c.substr(I))});function Ew(c){return(c+"").toLowerCase().charAt(0)==="p"}var kw=/[ap]\.?m?\.?/i,Pw=cn("Hours",!0);function Dw(c,h,g){return c>11?g?"pm":"PM":g?"am":"AM"}var of={calendar:N,longDateFormat:le,invalidDate:H,ordinal:Z,dayOfMonthOrdinalParse:fe,relativeTime:be,months:Yb,monthsShort:Gh,week:ow,weekdays:dw,weekdaysMin:uw,weekdaysShort:ef,meridiemParse:kw},Vt={},oi={},ri;function Ow(c,h){var g,_=Math.min(c.length,h.length);for(g=0;g<_;g+=1)if(c[g]!==h[g])return g;return _}function rf(c){return c&&c.toLowerCase().replace("_","-")}function Mw(c){for(var h=0,g,_,I,X;h<c.length;){for(X=rf(c[h]).split("-"),g=X.length,_=rf(c[h+1]),_=_?_.split("-"):null;g>0;){if(I=Ma(X.slice(0,g).join("-")),I)return I;if(_&&_.length>=g&&Ow(X,_)>=g-1)break;g--}h++}return ri}function Iw(c){return!!(c&&c.match("^[^/\\\\]*$"))}function Ma(c){var h=null,g;if(Vt[c]===void 0&&e&&e.exports&&Iw(c))try{h=ri._abbr,g=oB,g("./locale/"+c),pr(h)}catch{Vt[c]=null}return Vt[c]}function pr(c,h){var g;return c&&(u(h)?g=Ho(c):g=Zc(c,h),g?ri=g:typeof console<"u"&&console.warn&&console.warn("Locale "+c+" not found. Did you forget to load it?")),ri._abbr}function Zc(c,h){if(h!==null){var g,_=of;if(h.abbr=c,Vt[c]!=null)K("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),_=Vt[c]._config;else if(h.parentLocale!=null)if(Vt[h.parentLocale]!=null)_=Vt[h.parentLocale]._config;else if(g=Ma(h.parentLocale),g!=null)_=g._config;else return oi[h.parentLocale]||(oi[h.parentLocale]=[]),oi[h.parentLocale].push({name:c,config:h}),null;return Vt[c]=new z(Y(_,h)),oi[c]&&oi[c].forEach(function(I){Zc(I.name,I.config)}),pr(c),Vt[c]}else return delete Vt[c],null}function Nw(c,h){if(h!=null){var g,_,I=of;Vt[c]!=null&&Vt[c].parentLocale!=null?Vt[c].set(Y(Vt[c]._config,h)):(_=Ma(c),_!=null&&(I=_._config),h=Y(I,h),_==null&&(h.abbr=c),g=new z(h),g.parentLocale=Vt[c],Vt[c]=g),pr(c)}else Vt[c]!=null&&(Vt[c].parentLocale!=null?(Vt[c]=Vt[c].parentLocale,c===pr()&&pr(c)):Vt[c]!=null&&delete Vt[c]);return Vt[c]}function Ho(c){var h;if(c&&c._locale&&c._locale._abbr&&(c=c._locale._abbr),!c)return ri;if(!i(c)){if(h=Ma(c),h)return h;c=[c]}return Mw(c)}function Aw(){return ae(Vt)}function Qc(c){var h,g=c._a;return g&&v(c).overflow===-2&&(h=g[U]<0||g[U]>11?U:g[me]<1||g[me]>qc(g[fn],g[U])?me:g[Ce]<0||g[Ce]>24||g[Ce]===24&&(g[Ae]!==0||g[Ge]!==0||g[st]!==0)?Ce:g[Ae]<0||g[Ae]>59?Ae:g[Ge]<0||g[Ge]>59?Ge:g[st]<0||g[st]>999?st:-1,v(c)._overflowDayOfYear&&(h<fn||h>me)&&(h=me),v(c)._overflowWeeks&&h===-1&&(h=et),v(c)._overflowWeekday&&h===-1&&(h=Ze),v(c).overflow=h),c}var Fw=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Lw=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,$w=/Z|[+-]\d\d(?::?\d\d)?/,Ia=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Jc=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Vw=/^\/?Date\((-?\d+)/i,jw=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ww={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function sf(c){var h,g,_=c._i,I=Fw.exec(_)||Lw.exec(_),X,de,ke,ze,it=Ia.length,Tn=Jc.length;if(I){for(v(c).iso=!0,h=0,g=it;h<g;h++)if(Ia[h][1].exec(I[1])){de=Ia[h][0],X=Ia[h][2]!==!1;break}if(de==null){c._isValid=!1;return}if(I[3]){for(h=0,g=Tn;h<g;h++)if(Jc[h][1].exec(I[3])){ke=(I[2]||" ")+Jc[h][0];break}if(ke==null){c._isValid=!1;return}}if(!X&&ke!=null){c._isValid=!1;return}if(I[4])if($w.exec(I[4]))ze="Z";else{c._isValid=!1;return}c._f=de+(ke||"")+(ze||""),td(c)}else c._isValid=!1}function Bw(c,h,g,_,I,X){var de=[Hw(c),Gh.indexOf(h),parseInt(g,10),parseInt(_,10),parseInt(I,10)];return X&&de.push(parseInt(X,10)),de}function Hw(c){var h=parseInt(c,10);return h<=49?2e3+h:h<=999?1900+h:h}function zw(c){return c.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Yw(c,h,g){if(c){var _=ef.indexOf(c),I=new Date(h[0],h[1],h[2]).getDay();if(_!==I)return v(g).weekdayMismatch=!0,g._isValid=!1,!1}return!0}function Uw(c,h,g){if(c)return Ww[c];if(h)return 0;var _=parseInt(g,10),I=_%100,X=(_-I)/100;return X*60+I}function af(c){var h=jw.exec(zw(c._i)),g;if(h){if(g=Bw(h[4],h[3],h[2],h[5],h[6],h[7]),!Yw(h[1],g,c))return;c._a=g,c._tzm=Uw(h[8],h[9],h[10]),c._d=ti.apply(null,c._a),c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),v(c).rfc2822=!0}else c._isValid=!1}function qw(c){var h=Vw.exec(c._i);if(h!==null){c._d=new Date(+h[1]);return}if(sf(c),c._isValid===!1)delete c._isValid;else return;if(af(c),c._isValid===!1)delete c._isValid;else return;c._strict?c._isValid=!1:o.createFromInputFallback(c)}o.createFromInputFallback=R("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(c){c._d=new Date(c._i+(c._useUTC?" UTC":""))});function ss(c,h,g){return c??h??g}function Gw(c){var h=new Date(o.now());return c._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()]}function ed(c){var h,g,_=[],I,X,de;if(!c._d){for(I=Gw(c),c._w&&c._a[me]==null&&c._a[U]==null&&Kw(c),c._dayOfYear!=null&&(de=ss(c._a[fn],I[fn]),(c._dayOfYear>en(de)||c._dayOfYear===0)&&(v(c)._overflowDayOfYear=!0),g=ti(de,0,c._dayOfYear),c._a[U]=g.getUTCMonth(),c._a[me]=g.getUTCDate()),h=0;h<3&&c._a[h]==null;++h)c._a[h]=_[h]=I[h];for(;h<7;h++)c._a[h]=_[h]=c._a[h]==null?h===2?1:0:c._a[h];c._a[Ce]===24&&c._a[Ae]===0&&c._a[Ge]===0&&c._a[st]===0&&(c._nextDay=!0,c._a[Ce]=0),c._d=(c._useUTC?ti:tw).apply(null,_),X=c._useUTC?c._d.getUTCDay():c._d.getDay(),c._tzm!=null&&c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),c._nextDay&&(c._a[Ce]=24),c._w&&typeof c._w.d<"u"&&c._w.d!==X&&(v(c).weekdayMismatch=!0)}}function Kw(c){var h,g,_,I,X,de,ke,ze,it;h=c._w,h.GG!=null||h.W!=null||h.E!=null?(X=1,de=4,g=ss(h.GG,c._a[fn],ni(Mt(),1,4).year),_=ss(h.W,1),I=ss(h.E,1),(I<1||I>7)&&(ze=!0)):(X=c._locale._week.dow,de=c._locale._week.doy,it=ni(Mt(),X,de),g=ss(h.gg,c._a[fn],it.year),_=ss(h.w,it.week),h.d!=null?(I=h.d,(I<0||I>6)&&(ze=!0)):h.e!=null?(I=h.e+X,(h.e<0||h.e>6)&&(ze=!0)):I=X),_<1||_>Bo(g,X,de)?v(c)._overflowWeeks=!0:ze!=null?v(c)._overflowWeekday=!0:(ke=Jh(g,_,I,X,de),c._a[fn]=ke.year,c._dayOfYear=ke.dayOfYear)}o.ISO_8601=function(){},o.RFC_2822=function(){};function td(c){if(c._f===o.ISO_8601){sf(c);return}if(c._f===o.RFC_2822){af(c);return}c._a=[],v(c).empty=!0;var h=""+c._i,g,_,I,X,de,ke=h.length,ze=0,it,Tn;for(I=ce(c._f,c._locale).match(B)||[],Tn=I.length,g=0;g<Tn;g++)X=I[g],_=(h.match(zc(X,c))||[])[0],_&&(de=h.substr(0,h.indexOf(_)),de.length>0&&v(c).unusedInput.push(de),h=h.slice(h.indexOf(_)+_.length),ze+=_.length),se[X]?(_?v(c).empty=!1:v(c).unusedTokens.push(X),Yc(X,_,c)):c._strict&&!_&&v(c).unusedTokens.push(X);v(c).charsLeftOver=ke-ze,h.length>0&&v(c).unusedInput.push(h),c._a[Ce]<=12&&v(c).bigHour===!0&&c._a[Ce]>0&&(v(c).bigHour=void 0),v(c).parsedDateParts=c._a.slice(0),v(c).meridiem=c._meridiem,c._a[Ce]=Xw(c._locale,c._a[Ce],c._meridiem),it=v(c).era,it!==null&&(c._a[fn]=c._locale.erasConvertYear(it,c._a[fn])),ed(c),Qc(c)}function Xw(c,h,g){var _;return g==null?h:c.meridiemHour!=null?c.meridiemHour(h,g):(c.isPM!=null&&(_=c.isPM(g),_&&h<12&&(h+=12),!_&&h===12&&(h=0)),h)}function Zw(c){var h,g,_,I,X,de,ke=!1,ze=c._f.length;if(ze===0){v(c).invalidFormat=!0,c._d=new Date(NaN);return}for(I=0;I<ze;I++)X=0,de=!1,h=O({},c),c._useUTC!=null&&(h._useUTC=c._useUTC),h._f=c._f[I],td(h),D(h)&&(de=!0),X+=v(h).charsLeftOver,X+=v(h).unusedTokens.length*10,v(h).score=X,ke?X<_&&(_=X,g=h):(_==null||X<_||de)&&(_=X,g=h,de&&(ke=!0));w(c,g||h)}function Qw(c){if(!c._d){var h=Je(c._i),g=h.day===void 0?h.date:h.day;c._a=y([h.year,h.month,g,h.hour,h.minute,h.second,h.millisecond],function(_){return _&&parseInt(_,10)}),ed(c)}}function Jw(c){var h=new A(Qc(lf(c)));return h._nextDay&&(h.add(1,"d"),h._nextDay=void 0),h}function lf(c){var h=c._i,g=c._f;return c._locale=c._locale||Ho(c._l),h===null||g===void 0&&h===""?x({nullInput:!0}):(typeof h=="string"&&(c._i=h=c._locale.preparse(h)),F(h)?new A(Qc(h)):(p(h)?c._d=h:i(g)?Zw(c):g?td(c):eC(c),D(c)||(c._d=null),c))}function eC(c){var h=c._i;u(h)?c._d=new Date(o.now()):p(h)?c._d=new Date(h.valueOf()):typeof h=="string"?qw(c):i(h)?(c._a=y(h.slice(0),function(g){return parseInt(g,10)}),ed(c)):a(h)?Qw(c):f(h)?c._d=new Date(h):o.createFromInputFallback(c)}function cf(c,h,g,_,I){var X={};return(h===!0||h===!1)&&(_=h,h=void 0),(g===!0||g===!1)&&(_=g,g=void 0),(a(c)&&d(c)||i(c)&&c.length===0)&&(c=void 0),X._isAMomentObject=!0,X._useUTC=X._isUTC=I,X._l=g,X._i=c,X._f=h,X._strict=_,Jw(X)}function Mt(c,h,g,_){return cf(c,h,g,_,!1)}var tC=R("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var c=Mt.apply(null,arguments);return this.isValid()&&c.isValid()?c<this?this:c:x()}),nC=R("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var c=Mt.apply(null,arguments);return this.isValid()&&c.isValid()?c>this?this:c:x()});function df(c,h){var g,_;if(h.length===1&&i(h[0])&&(h=h[0]),!h.length)return Mt();for(g=h[0],_=1;_<h.length;++_)(!h[_].isValid()||h[_][c](g))&&(g=h[_]);return g}function oC(){var c=[].slice.call(arguments,0);return df("isBefore",c)}function rC(){var c=[].slice.call(arguments,0);return df("isAfter",c)}var sC=function(){return Date.now?Date.now():+new Date},si=["year","quarter","month","week","day","hour","minute","second","millisecond"];function iC(c){var h,g=!1,_,I=si.length;for(h in c)if(l(c,h)&&!(Bt.call(si,h)!==-1&&(c[h]==null||!isNaN(c[h]))))return!1;for(_=0;_<I;++_)if(c[si[_]]){if(g)return!1;parseFloat(c[si[_]])!==Xe(c[si[_]])&&(g=!0)}return!0}function aC(){return this._isValid}function lC(){return lo(NaN)}function Na(c){var h=Je(c),g=h.year||0,_=h.quarter||0,I=h.month||0,X=h.week||h.isoWeek||0,de=h.day||0,ke=h.hour||0,ze=h.minute||0,it=h.second||0,Tn=h.millisecond||0;this._isValid=iC(h),this._milliseconds=+Tn+it*1e3+ze*6e4+ke*1e3*60*60,this._days=+de+X*7,this._months=+I+_*3+g*12,this._data={},this._locale=Ho(),this._bubble()}function Aa(c){return c instanceof Na}function nd(c){return c<0?Math.round(-1*c)*-1:Math.round(c)}function cC(c,h,g){var _=Math.min(c.length,h.length),I=Math.abs(c.length-h.length),X=0,de;for(de=0;de<_;de++)Xe(c[de])!==Xe(h[de])&&X++;return X+I}function uf(c,h){j(c,0,0,function(){var g=this.utcOffset(),_="+";return g<0&&(g=-g,_="-"),_+L(~~(g/60),2)+h+L(~~g%60,2)})}uf("Z",":"),uf("ZZ",""),_e("Z",at),_e("ZZ",at),yt(["Z","ZZ"],function(c,h,g){g._useUTC=!0,g._tzm=od(at,c)});var dC=/([\+\-]|\d\d)/gi;function od(c,h){var g=(h||"").match(c),_,I,X;return g===null?null:(_=g[g.length-1]||[],I=(_+"").match(dC)||["-",0,0],X=+(I[1]*60)+Xe(I[2]),X===0?0:I[0]==="+"?X:-X)}function rd(c,h){var g,_;return h._isUTC?(g=h.clone(),_=(F(c)||p(c)?c.valueOf():Mt(c).valueOf())-g.valueOf(),g._d.setTime(g._d.valueOf()+_),o.updateOffset(g,!1),g):Mt(c).local()}function sd(c){return-Math.round(c._d.getTimezoneOffset())}o.updateOffset=function(){};function uC(c,h,g){var _=this._offset||0,I;if(!this.isValid())return c!=null?this:NaN;if(c!=null){if(typeof c=="string"){if(c=od(at,c),c===null)return this}else Math.abs(c)<16&&!g&&(c=c*60);return!this._isUTC&&h&&(I=sd(this)),this._offset=c,this._isUTC=!0,I!=null&&this.add(I,"m"),_!==c&&(!h||this._changeInProgress?mf(this,lo(c-_,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?_:sd(this)}function hC(c,h){return c!=null?(typeof c!="string"&&(c=-c),this.utcOffset(c,h),this):-this.utcOffset()}function fC(c){return this.utcOffset(0,c)}function pC(c){return this._isUTC&&(this.utcOffset(0,c),this._isUTC=!1,c&&this.subtract(sd(this),"m")),this}function mC(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var c=od(Fn,this._i);c!=null?this.utcOffset(c):this.utcOffset(0,!0)}return this}function gC(c){return this.isValid()?(c=c?Mt(c).utcOffset():0,(this.utcOffset()-c)%60===0):!1}function yC(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function vC(){if(!u(this._isDSTShifted))return this._isDSTShifted;var c={},h;return O(c,this),c=lf(c),c._a?(h=c._isUTC?b(c._a):Mt(c._a),this._isDSTShifted=this.isValid()&&cC(c._a,h.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function bC(){return this.isValid()?!this._isUTC:!1}function wC(){return this.isValid()?this._isUTC:!1}function hf(){return this.isValid()?this._isUTC&&this._offset===0:!1}var CC=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,SC=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function lo(c,h){var g=c,_=null,I,X,de;return Aa(c)?g={ms:c._milliseconds,d:c._days,M:c._months}:f(c)||!isNaN(+c)?(g={},h?g[h]=+c:g.milliseconds=+c):(_=CC.exec(c))?(I=_[1]==="-"?-1:1,g={y:0,d:Xe(_[me])*I,h:Xe(_[Ce])*I,m:Xe(_[Ae])*I,s:Xe(_[Ge])*I,ms:Xe(nd(_[st]*1e3))*I}):(_=SC.exec(c))?(I=_[1]==="-"?-1:1,g={y:Pr(_[2],I),M:Pr(_[3],I),w:Pr(_[4],I),d:Pr(_[5],I),h:Pr(_[6],I),m:Pr(_[7],I),s:Pr(_[8],I)}):g==null?g={}:typeof g=="object"&&("from"in g||"to"in g)&&(de=_C(Mt(g.from),Mt(g.to)),g={},g.ms=de.milliseconds,g.M=de.months),X=new Na(g),Aa(c)&&l(c,"_locale")&&(X._locale=c._locale),Aa(c)&&l(c,"_isValid")&&(X._isValid=c._isValid),X}lo.fn=Na.prototype,lo.invalid=lC;function Pr(c,h){var g=c&&parseFloat(c.replace(",","."));return(isNaN(g)?0:g)*h}function ff(c,h){var g={};return g.months=h.month()-c.month()+(h.year()-c.year())*12,c.clone().add(g.months,"M").isAfter(h)&&--g.months,g.milliseconds=+h-+c.clone().add(g.months,"M"),g}function _C(c,h){var g;return c.isValid()&&h.isValid()?(h=rd(h,c),c.isBefore(h)?g=ff(c,h):(g=ff(h,c),g.milliseconds=-g.milliseconds,g.months=-g.months),g):{milliseconds:0,months:0}}function pf(c,h){return function(g,_){var I,X;return _!==null&&!isNaN(+_)&&(K(h,"moment()."+h+"(period, number) is deprecated. Please use moment()."+h+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),X=g,g=_,_=X),I=lo(g,_),mf(this,I,c),this}}function mf(c,h,g,_){var I=h._milliseconds,X=nd(h._days),de=nd(h._months);c.isValid()&&(_=_??!0,de&&Xh(c,Un(c,"Month")+de*g),X&&Co(c,"Date",Un(c,"Date")+X*g),I&&c._d.setTime(c._d.valueOf()+I*g),_&&o.updateOffset(c,X||de))}var xC=pf(1,"add"),RC=pf(-1,"subtract");function gf(c){return typeof c=="string"||c instanceof String}function TC(c){return F(c)||p(c)||gf(c)||f(c)||kC(c)||EC(c)||c===null||c===void 0}function EC(c){var h=a(c)&&!d(c),g=!1,_=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],I,X,de=_.length;for(I=0;I<de;I+=1)X=_[I],g=g||l(c,X);return h&&g}function kC(c){var h=i(c),g=!1;return h&&(g=c.filter(function(_){return!f(_)&&gf(c)}).length===0),h&&g}function PC(c){var h=a(c)&&!d(c),g=!1,_=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],I,X;for(I=0;I<_.length;I+=1)X=_[I],g=g||l(c,X);return h&&g}function DC(c,h){var g=c.diff(h,"days",!0);return g<-6?"sameElse":g<-1?"lastWeek":g<0?"lastDay":g<1?"sameDay":g<2?"nextDay":g<7?"nextWeek":"sameElse"}function OC(c,h){arguments.length===1&&(arguments[0]?TC(arguments[0])?(c=arguments[0],h=void 0):PC(arguments[0])&&(h=arguments[0],c=void 0):(c=void 0,h=void 0));var g=c||Mt(),_=rd(g,this).startOf("day"),I=o.calendarFormat(this,_)||"sameElse",X=h&&(G(h[I])?h[I].call(this,g):h[I]);return this.format(X||this.localeData().calendar(I,this,Mt(g)))}function MC(){return new A(this)}function IC(c,h){var g=F(c)?c:Mt(c);return this.isValid()&&g.isValid()?(h=Ne(h)||"millisecond",h==="millisecond"?this.valueOf()>g.valueOf():g.valueOf()<this.clone().startOf(h).valueOf()):!1}function NC(c,h){var g=F(c)?c:Mt(c);return this.isValid()&&g.isValid()?(h=Ne(h)||"millisecond",h==="millisecond"?this.valueOf()<g.valueOf():this.clone().endOf(h).valueOf()<g.valueOf()):!1}function AC(c,h,g,_){var I=F(c)?c:Mt(c),X=F(h)?h:Mt(h);return this.isValid()&&I.isValid()&&X.isValid()?(_=_||"()",(_[0]==="("?this.isAfter(I,g):!this.isBefore(I,g))&&(_[1]===")"?this.isBefore(X,g):!this.isAfter(X,g))):!1}function FC(c,h){var g=F(c)?c:Mt(c),_;return this.isValid()&&g.isValid()?(h=Ne(h)||"millisecond",h==="millisecond"?this.valueOf()===g.valueOf():(_=g.valueOf(),this.clone().startOf(h).valueOf()<=_&&_<=this.clone().endOf(h).valueOf())):!1}function LC(c,h){return this.isSame(c,h)||this.isAfter(c,h)}function $C(c,h){return this.isSame(c,h)||this.isBefore(c,h)}function VC(c,h,g){var _,I,X;if(!this.isValid())return NaN;if(_=rd(c,this),!_.isValid())return NaN;switch(I=(_.utcOffset()-this.utcOffset())*6e4,h=Ne(h),h){case"year":X=Fa(this,_)/12;break;case"month":X=Fa(this,_);break;case"quarter":X=Fa(this,_)/3;break;case"second":X=(this-_)/1e3;break;case"minute":X=(this-_)/6e4;break;case"hour":X=(this-_)/36e5;break;case"day":X=(this-_-I)/864e5;break;case"week":X=(this-_-I)/6048e5;break;default:X=this-_}return g?X:kn(X)}function Fa(c,h){if(c.date()<h.date())return-Fa(h,c);var g=(h.year()-c.year())*12+(h.month()-c.month()),_=c.clone().add(g,"months"),I,X;return h-_<0?(I=c.clone().add(g-1,"months"),X=(h-_)/(_-I)):(I=c.clone().add(g+1,"months"),X=(h-_)/(I-_)),-(g+X)||0}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function jC(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function WC(c){if(!this.isValid())return null;var h=c!==!0,g=h?this.clone().utc():this;return g.year()<0||g.year()>9999?te(g,h?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):G(Date.prototype.toISOString)?h?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",te(g,"Z")):te(g,h?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function BC(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var c="moment",h="",g,_,I,X;return this.isLocal()||(c=this.utcOffset()===0?"moment.utc":"moment.parseZone",h="Z"),g="["+c+'("]',_=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",I="-MM-DD[T]HH:mm:ss.SSS",X=h+'[")]',this.format(g+_+I+X)}function HC(c){c||(c=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var h=te(this,c);return this.localeData().postformat(h)}function zC(c,h){return this.isValid()&&(F(c)&&c.isValid()||Mt(c).isValid())?lo({to:this,from:c}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function YC(c){return this.from(Mt(),c)}function UC(c,h){return this.isValid()&&(F(c)&&c.isValid()||Mt(c).isValid())?lo({from:this,to:c}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function qC(c){return this.to(Mt(),c)}function yf(c){var h;return c===void 0?this._locale._abbr:(h=Ho(c),h!=null&&(this._locale=h),this)}var vf=R("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(c){return c===void 0?this.localeData():this.locale(c)});function bf(){return this._locale}var La=1e3,is=60*La,$a=60*is,wf=(365*400+97)*24*$a;function as(c,h){return(c%h+h)%h}function Cf(c,h,g){return c<100&&c>=0?new Date(c+400,h,g)-wf:new Date(c,h,g).valueOf()}function Sf(c,h,g){return c<100&&c>=0?Date.UTC(c+400,h,g)-wf:Date.UTC(c,h,g)}function GC(c){var h,g;if(c=Ne(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?Sf:Cf,c){case"year":h=g(this.year(),0,1);break;case"quarter":h=g(this.year(),this.month()-this.month()%3,1);break;case"month":h=g(this.year(),this.month(),1);break;case"week":h=g(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":h=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":h=g(this.year(),this.month(),this.date());break;case"hour":h=this._d.valueOf(),h-=as(h+(this._isUTC?0:this.utcOffset()*is),$a);break;case"minute":h=this._d.valueOf(),h-=as(h,is);break;case"second":h=this._d.valueOf(),h-=as(h,La);break}return this._d.setTime(h),o.updateOffset(this,!0),this}function KC(c){var h,g;if(c=Ne(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?Sf:Cf,c){case"year":h=g(this.year()+1,0,1)-1;break;case"quarter":h=g(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":h=g(this.year(),this.month()+1,1)-1;break;case"week":h=g(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":h=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":h=g(this.year(),this.month(),this.date()+1)-1;break;case"hour":h=this._d.valueOf(),h+=$a-as(h+(this._isUTC?0:this.utcOffset()*is),$a)-1;break;case"minute":h=this._d.valueOf(),h+=is-as(h,is)-1;break;case"second":h=this._d.valueOf(),h+=La-as(h,La)-1;break}return this._d.setTime(h),o.updateOffset(this,!0),this}function XC(){return this._d.valueOf()-(this._offset||0)*6e4}function ZC(){return Math.floor(this.valueOf()/1e3)}function QC(){return new Date(this.valueOf())}function JC(){var c=this;return[c.year(),c.month(),c.date(),c.hour(),c.minute(),c.second(),c.millisecond()]}function eS(){var c=this;return{years:c.year(),months:c.month(),date:c.date(),hours:c.hours(),minutes:c.minutes(),seconds:c.seconds(),milliseconds:c.milliseconds()}}function tS(){return this.isValid()?this.toISOString():null}function nS(){return D(this)}function oS(){return w({},v(this))}function rS(){return v(this).overflow}function sS(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}j("N",0,0,"eraAbbr"),j("NN",0,0,"eraAbbr"),j("NNN",0,0,"eraAbbr"),j("NNNN",0,0,"eraName"),j("NNNNN",0,0,"eraNarrow"),j("y",["y",1],"yo","eraYear"),j("y",["yy",2],0,"eraYear"),j("y",["yyy",3],0,"eraYear"),j("y",["yyyy",4],0,"eraYear"),_e("N",id),_e("NN",id),_e("NNN",id),_e("NNNN",gS),_e("NNNNN",yS),yt(["N","NN","NNN","NNNN","NNNNN"],function(c,h,g,_){var I=g._locale.erasParse(c,_,g._strict);I?v(g).era=I:v(g).invalidEra=c}),_e("y",ht),_e("yy",ht),_e("yyy",ht),_e("yyyy",ht),_e("yo",vS),yt(["y","yy","yyy","yyyy"],fn),yt(["yo"],function(c,h,g,_){var I;g._locale._eraYearOrdinalRegex&&(I=c.match(g._locale._eraYearOrdinalRegex)),g._locale.eraYearOrdinalParse?h[fn]=g._locale.eraYearOrdinalParse(c,I):h[fn]=parseInt(c,10)});function iS(c,h){var g,_,I,X=this._eras||Ho("en")._eras;for(g=0,_=X.length;g<_;++g){switch(typeof X[g].since){case"string":I=o(X[g].since).startOf("day"),X[g].since=I.valueOf();break}switch(typeof X[g].until){case"undefined":X[g].until=1/0;break;case"string":I=o(X[g].until).startOf("day").valueOf(),X[g].until=I.valueOf();break}}return X}function aS(c,h,g){var _,I,X=this.eras(),de,ke,ze;for(c=c.toUpperCase(),_=0,I=X.length;_<I;++_)if(de=X[_].name.toUpperCase(),ke=X[_].abbr.toUpperCase(),ze=X[_].narrow.toUpperCase(),g)switch(h){case"N":case"NN":case"NNN":if(ke===c)return X[_];break;case"NNNN":if(de===c)return X[_];break;case"NNNNN":if(ze===c)return X[_];break}else if([de,ke,ze].indexOf(c)>=0)return X[_]}function lS(c,h){var g=c.since<=c.until?1:-1;return h===void 0?o(c.since).year():o(c.since).year()+(h-c.offset)*g}function cS(){var c,h,g,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(g=this.clone().startOf("day").valueOf(),_[c].since<=g&&g<=_[c].until||_[c].until<=g&&g<=_[c].since)return _[c].name;return""}function dS(){var c,h,g,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(g=this.clone().startOf("day").valueOf(),_[c].since<=g&&g<=_[c].until||_[c].until<=g&&g<=_[c].since)return _[c].narrow;return""}function uS(){var c,h,g,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(g=this.clone().startOf("day").valueOf(),_[c].since<=g&&g<=_[c].until||_[c].until<=g&&g<=_[c].since)return _[c].abbr;return""}function hS(){var c,h,g,_,I=this.localeData().eras();for(c=0,h=I.length;c<h;++c)if(g=I[c].since<=I[c].until?1:-1,_=this.clone().startOf("day").valueOf(),I[c].since<=_&&_<=I[c].until||I[c].until<=_&&_<=I[c].since)return(this.year()-o(I[c].since).year())*g+I[c].offset;return this.year()}function fS(c){return l(this,"_erasNameRegex")||ad.call(this),c?this._erasNameRegex:this._erasRegex}function pS(c){return l(this,"_erasAbbrRegex")||ad.call(this),c?this._erasAbbrRegex:this._erasRegex}function mS(c){return l(this,"_erasNarrowRegex")||ad.call(this),c?this._erasNarrowRegex:this._erasRegex}function id(c,h){return h.erasAbbrRegex(c)}function gS(c,h){return h.erasNameRegex(c)}function yS(c,h){return h.erasNarrowRegex(c)}function vS(c,h){return h._eraYearOrdinalRegex||ht}function ad(){var c=[],h=[],g=[],_=[],I,X,de,ke,ze,it=this.eras();for(I=0,X=it.length;I<X;++I)de=Yn(it[I].name),ke=Yn(it[I].abbr),ze=Yn(it[I].narrow),h.push(de),c.push(ke),g.push(ze),_.push(de),_.push(ke),_.push(ze);this._erasRegex=new RegExp("^("+_.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+h.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+g.join("|")+")","i")}j(0,["gg",2],0,function(){return this.weekYear()%100}),j(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Va(c,h){j(0,[c,c.length],0,h)}Va("gggg","weekYear"),Va("ggggg","weekYear"),Va("GGGG","isoWeekYear"),Va("GGGGG","isoWeekYear"),_e("G",sn),_e("g",sn),_e("GG",Ue,rt),_e("gg",Ue,rt),_e("GGGG",Oe,qt),_e("gggg",Oe,qt),_e("GGGGG",Be,Lt),_e("ggggg",Be,Lt),kr(["gggg","ggggg","GGGG","GGGGG"],function(c,h,g,_){h[_.substr(0,2)]=Xe(c)}),kr(["gg","GG"],function(c,h,g,_){h[_]=o.parseTwoDigitYear(c)});function bS(c){return _f.call(this,c,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function wS(c){return _f.call(this,c,this.isoWeek(),this.isoWeekday(),1,4)}function CS(){return Bo(this.year(),1,4)}function SS(){return Bo(this.isoWeekYear(),1,4)}function _S(){var c=this.localeData()._week;return Bo(this.year(),c.dow,c.doy)}function xS(){var c=this.localeData()._week;return Bo(this.weekYear(),c.dow,c.doy)}function _f(c,h,g,_,I){var X;return c==null?ni(this,_,I).year:(X=Bo(c,_,I),h>X&&(h=X),RS.call(this,c,h,g,_,I))}function RS(c,h,g,_,I){var X=Jh(c,h,g,_,I),de=ti(X.year,0,X.dayOfYear);return this.year(de.getUTCFullYear()),this.month(de.getUTCMonth()),this.date(de.getUTCDate()),this}j("Q",0,"Qo","quarter"),_e("Q",Ut),yt("Q",function(c,h){h[U]=(Xe(c)-1)*3});function TS(c){return c==null?Math.ceil((this.month()+1)/3):this.month((c-1)*3+this.month()%3)}j("D",["DD",2],"Do","date"),_e("D",Ue,Jt),_e("DD",Ue,rt),_e("Do",function(c,h){return c?h._dayOfMonthOrdinalParse||h._ordinalParse:h._dayOfMonthOrdinalParseLenient}),yt(["D","DD"],me),yt("Do",function(c,h){h[me]=Xe(c.match(Ue)[0])});var xf=cn("Date",!0);j("DDD",["DDDD",3],"DDDo","dayOfYear"),_e("DDD",hn),_e("DDDD",Ot),yt(["DDD","DDDD"],function(c,h,g){g._dayOfYear=Xe(c)});function ES(c){var h=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return c==null?h:this.add(c-h,"d")}j("m",["mm",2],0,"minute"),_e("m",Ue,fr),_e("mm",Ue,rt),yt(["m","mm"],Ae);var kS=cn("Minutes",!1);j("s",["ss",2],0,"second"),_e("s",Ue,fr),_e("ss",Ue,rt),yt(["s","ss"],Ge);var PS=cn("Seconds",!1);j("S",0,0,function(){return~~(this.millisecond()/100)}),j(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,function(){return this.millisecond()*10}),j(0,["SSSSS",5],0,function(){return this.millisecond()*100}),j(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),j(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),j(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),j(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),_e("S",hn,Ut),_e("SS",hn,rt),_e("SSS",hn,Ot);var mr,Rf;for(mr="SSSS";mr.length<=9;mr+="S")_e(mr,ht);function DS(c,h){h[st]=Xe(("0."+c)*1e3)}for(mr="S";mr.length<=9;mr+="S")yt(mr,DS);Rf=cn("Milliseconds",!1),j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");function OS(){return this._isUTC?"UTC":""}function MS(){return this._isUTC?"Coordinated Universal Time":""}var ye=A.prototype;ye.add=xC,ye.calendar=OC,ye.clone=MC,ye.diff=VC,ye.endOf=KC,ye.format=HC,ye.from=zC,ye.fromNow=YC,ye.to=UC,ye.toNow=qC,ye.get=bn,ye.invalidAt=rS,ye.isAfter=IC,ye.isBefore=NC,ye.isBetween=AC,ye.isSame=FC,ye.isSameOrAfter=LC,ye.isSameOrBefore=$C,ye.isValid=nS,ye.lang=vf,ye.locale=yf,ye.localeData=bf,ye.max=nC,ye.min=tC,ye.parsingFlags=oS,ye.set=ei,ye.startOf=GC,ye.subtract=RC,ye.toArray=JC,ye.toObject=eS,ye.toDate=QC,ye.toISOString=WC,ye.inspect=BC,typeof Symbol<"u"&&Symbol.for!=null&&(ye[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ye.toJSON=tS,ye.toString=jC,ye.unix=ZC,ye.valueOf=XC,ye.creationData=sS,ye.eraName=cS,ye.eraNarrow=dS,ye.eraAbbr=uS,ye.eraYear=hS,ye.year=$t,ye.isLeapYear=Gt,ye.weekYear=bS,ye.isoWeekYear=wS,ye.quarter=ye.quarters=TS,ye.month=Zh,ye.daysInMonth=Qb,ye.week=ye.weeks=iw,ye.isoWeek=ye.isoWeeks=aw,ye.weeksInYear=_S,ye.weeksInWeekYear=xS,ye.isoWeeksInYear=CS,ye.isoWeeksInISOWeekYear=SS,ye.date=xf,ye.day=ye.days=ww,ye.weekday=Cw,ye.isoWeekday=Sw,ye.dayOfYear=ES,ye.hour=ye.hours=Pw,ye.minute=ye.minutes=kS,ye.second=ye.seconds=PS,ye.millisecond=ye.milliseconds=Rf,ye.utcOffset=uC,ye.utc=fC,ye.local=pC,ye.parseZone=mC,ye.hasAlignedHourOffset=gC,ye.isDST=yC,ye.isLocal=bC,ye.isUtcOffset=wC,ye.isUtc=hf,ye.isUTC=hf,ye.zoneAbbr=OS,ye.zoneName=MS,ye.dates=R("dates accessor is deprecated. Use date instead.",xf),ye.months=R("months accessor is deprecated. Use month instead",Zh),ye.years=R("years accessor is deprecated. Use year instead",$t),ye.zone=R("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",hC),ye.isDSTShifted=R("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",vC);function IS(c){return Mt(c*1e3)}function NS(){return Mt.apply(null,arguments).parseZone()}function Tf(c){return c}var ft=z.prototype;ft.calendar=M,ft.longDateFormat=he,ft.invalidDate=re,ft.ordinal=pe,ft.preparse=Tf,ft.postformat=Tf,ft.relativeTime=ge,ft.pastFuture=Re,ft.set=q,ft.eras=iS,ft.erasParse=aS,ft.erasConvertYear=lS,ft.erasAbbrRegex=pS,ft.erasNameRegex=fS,ft.erasNarrowRegex=mS,ft.months=Gb,ft.monthsShort=Kb,ft.monthsParse=Zb,ft.monthsRegex=ew,ft.monthsShortRegex=Jb,ft.week=nw,ft.firstDayOfYear=sw,ft.firstDayOfWeek=rw,ft.weekdays=mw,ft.weekdaysMin=yw,ft.weekdaysShort=gw,ft.weekdaysParse=bw,ft.weekdaysRegex=_w,ft.weekdaysShortRegex=xw,ft.weekdaysMinRegex=Rw,ft.isPM=Ew,ft.meridiem=Dw;function ja(c,h,g,_){var I=Ho(),X=b().set(_,h);return I[g](X,c)}function Ef(c,h,g){if(f(c)&&(h=c,c=void 0),c=c||"",h!=null)return ja(c,h,g,"month");var _,I=[];for(_=0;_<12;_++)I[_]=ja(c,_,g,"month");return I}function ld(c,h,g,_){typeof c=="boolean"?(f(h)&&(g=h,h=void 0),h=h||""):(h=c,g=h,c=!1,f(h)&&(g=h,h=void 0),h=h||"");var I=Ho(),X=c?I._week.dow:0,de,ke=[];if(g!=null)return ja(h,(g+X)%7,_,"day");for(de=0;de<7;de++)ke[de]=ja(h,(de+X)%7,_,"day");return ke}function AS(c,h){return Ef(c,h,"months")}function FS(c,h){return Ef(c,h,"monthsShort")}function LS(c,h,g){return ld(c,h,g,"weekdays")}function $S(c,h,g){return ld(c,h,g,"weekdaysShort")}function VS(c,h,g){return ld(c,h,g,"weekdaysMin")}pr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(c){var h=c%10,g=Xe(c%100/10)===1?"th":h===1?"st":h===2?"nd":h===3?"rd":"th";return c+g}}),o.lang=R("moment.lang is deprecated. Use moment.locale instead.",pr),o.langData=R("moment.langData is deprecated. Use moment.localeData instead.",Ho);var zo=Math.abs;function jS(){var c=this._data;return this._milliseconds=zo(this._milliseconds),this._days=zo(this._days),this._months=zo(this._months),c.milliseconds=zo(c.milliseconds),c.seconds=zo(c.seconds),c.minutes=zo(c.minutes),c.hours=zo(c.hours),c.months=zo(c.months),c.years=zo(c.years),this}function kf(c,h,g,_){var I=lo(h,g);return c._milliseconds+=_*I._milliseconds,c._days+=_*I._days,c._months+=_*I._months,c._bubble()}function WS(c,h){return kf(this,c,h,1)}function BS(c,h){return kf(this,c,h,-1)}function Pf(c){return c<0?Math.floor(c):Math.ceil(c)}function HS(){var c=this._milliseconds,h=this._days,g=this._months,_=this._data,I,X,de,ke,ze;return c>=0&&h>=0&&g>=0||c<=0&&h<=0&&g<=0||(c+=Pf(cd(g)+h)*864e5,h=0,g=0),_.milliseconds=c%1e3,I=kn(c/1e3),_.seconds=I%60,X=kn(I/60),_.minutes=X%60,de=kn(X/60),_.hours=de%24,h+=kn(de/24),ze=kn(Df(h)),g+=ze,h-=Pf(cd(ze)),ke=kn(g/12),g%=12,_.days=h,_.months=g,_.years=ke,this}function Df(c){return c*4800/146097}function cd(c){return c*146097/4800}function zS(c){if(!this.isValid())return NaN;var h,g,_=this._milliseconds;if(c=Ne(c),c==="month"||c==="quarter"||c==="year")switch(h=this._days+_/864e5,g=this._months+Df(h),c){case"month":return g;case"quarter":return g/3;case"year":return g/12}else switch(h=this._days+Math.round(cd(this._months)),c){case"week":return h/7+_/6048e5;case"day":return h+_/864e5;case"hour":return h*24+_/36e5;case"minute":return h*1440+_/6e4;case"second":return h*86400+_/1e3;case"millisecond":return Math.floor(h*864e5)+_;default:throw new Error("Unknown unit "+c)}}function Yo(c){return function(){return this.as(c)}}var Of=Yo("ms"),YS=Yo("s"),US=Yo("m"),qS=Yo("h"),GS=Yo("d"),KS=Yo("w"),XS=Yo("M"),ZS=Yo("Q"),QS=Yo("y"),JS=Of;function e0(){return lo(this)}function t0(c){return c=Ne(c),this.isValid()?this[c+"s"]():NaN}function Dr(c){return function(){return this.isValid()?this._data[c]:NaN}}var n0=Dr("milliseconds"),o0=Dr("seconds"),r0=Dr("minutes"),s0=Dr("hours"),i0=Dr("days"),a0=Dr("months"),l0=Dr("years");function c0(){return kn(this.days()/7)}var Uo=Math.round,ls={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function d0(c,h,g,_,I){return I.relativeTime(h||1,!!g,c,_)}function u0(c,h,g,_){var I=lo(c).abs(),X=Uo(I.as("s")),de=Uo(I.as("m")),ke=Uo(I.as("h")),ze=Uo(I.as("d")),it=Uo(I.as("M")),Tn=Uo(I.as("w")),qo=Uo(I.as("y")),gr=X<=g.ss&&["s",X]||X<g.s&&["ss",X]||de<=1&&["m"]||de<g.m&&["mm",de]||ke<=1&&["h"]||ke<g.h&&["hh",ke]||ze<=1&&["d"]||ze<g.d&&["dd",ze];return g.w!=null&&(gr=gr||Tn<=1&&["w"]||Tn<g.w&&["ww",Tn]),gr=gr||it<=1&&["M"]||it<g.M&&["MM",it]||qo<=1&&["y"]||["yy",qo],gr[2]=h,gr[3]=+c>0,gr[4]=_,d0.apply(null,gr)}function h0(c){return c===void 0?Uo:typeof c=="function"?(Uo=c,!0):!1}function f0(c,h){return ls[c]===void 0?!1:h===void 0?ls[c]:(ls[c]=h,c==="s"&&(ls.ss=h-1),!0)}function p0(c,h){if(!this.isValid())return this.localeData().invalidDate();var g=!1,_=ls,I,X;return typeof c=="object"&&(h=c,c=!1),typeof c=="boolean"&&(g=c),typeof h=="object"&&(_=Object.assign({},ls,h),h.s!=null&&h.ss==null&&(_.ss=h.s-1)),I=this.localeData(),X=u0(this,!g,_,I),g&&(X=I.pastFuture(+this,X)),I.postformat(X)}var dd=Math.abs;function cs(c){return(c>0)-(c<0)||+c}function Wa(){if(!this.isValid())return this.localeData().invalidDate();var c=dd(this._milliseconds)/1e3,h=dd(this._days),g=dd(this._months),_,I,X,de,ke=this.asSeconds(),ze,it,Tn,qo;return ke?(_=kn(c/60),I=kn(_/60),c%=60,_%=60,X=kn(g/12),g%=12,de=c?c.toFixed(3).replace(/\.?0+$/,""):"",ze=ke<0?"-":"",it=cs(this._months)!==cs(ke)?"-":"",Tn=cs(this._days)!==cs(ke)?"-":"",qo=cs(this._milliseconds)!==cs(ke)?"-":"",ze+"P"+(X?it+X+"Y":"")+(g?it+g+"M":"")+(h?Tn+h+"D":"")+(I||_||c?"T":"")+(I?qo+I+"H":"")+(_?qo+_+"M":"")+(c?qo+de+"S":"")):"P0D"}var lt=Na.prototype;lt.isValid=aC,lt.abs=jS,lt.add=WS,lt.subtract=BS,lt.as=zS,lt.asMilliseconds=Of,lt.asSeconds=YS,lt.asMinutes=US,lt.asHours=qS,lt.asDays=GS,lt.asWeeks=KS,lt.asMonths=XS,lt.asQuarters=ZS,lt.asYears=QS,lt.valueOf=JS,lt._bubble=HS,lt.clone=e0,lt.get=t0,lt.milliseconds=n0,lt.seconds=o0,lt.minutes=r0,lt.hours=s0,lt.days=i0,lt.weeks=c0,lt.months=a0,lt.years=l0,lt.humanize=p0,lt.toISOString=Wa,lt.toString=Wa,lt.toJSON=Wa,lt.locale=yf,lt.localeData=bf,lt.toIsoString=R("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Wa),lt.lang=vf,j("X",0,0,"unix"),j("x",0,0,"valueOf"),_e("x",sn),_e("X",Qt),yt("X",function(c,h,g){g._d=new Date(parseFloat(c)*1e3)}),yt("x",function(c,h,g){g._d=new Date(Xe(c))});//! moment.js
|
|
312
|
-
return o.version="2.30.1",r(Mt),o.fn=ye,o.min=oC,o.max=rC,o.now=sC,o.utc=b,o.unix=IS,o.months=AS,o.isDate=p,o.locale=pr,o.invalid=x,o.duration=lo,o.isMoment=F,o.weekdays=LS,o.parseZone=NS,o.localeData=Ho,o.isDuration=Aa,o.monthsShort=FS,o.weekdaysMin=VS,o.defineLocale=Zc,o.updateLocale=Nw,o.locales=Aw,o.weekdaysShort=$S,o.normalizeUnits=Ne,o.relativeTimeRounding=h0,o.relativeTimeThreshold=f0,o.calendarFormat=DC,o.prototype=ye,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o})}(wl)),wl.exports}sB();const
|
|
312
|
+
return o.version="2.30.1",r(Mt),o.fn=ye,o.min=oC,o.max=rC,o.now=sC,o.utc=b,o.unix=IS,o.months=AS,o.isDate=p,o.locale=pr,o.invalid=x,o.duration=lo,o.isMoment=F,o.weekdays=LS,o.parseZone=NS,o.localeData=Ho,o.isDuration=Aa,o.monthsShort=FS,o.weekdaysMin=VS,o.defineLocale=Zc,o.updateLocale=Nw,o.locales=Aw,o.weekdaysShort=$S,o.normalizeUnits=Ne,o.relativeTimeRounding=h0,o.relativeTimeThreshold=f0,o.calendarFormat=DC,o.prototype=ye,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o})}(wl)),wl.exports}sB();function iB(e,t){const n=new DOMParser().parseFromString(t,"text/html");e.documentElement.replaceWith(e.importNode(n.documentElement,!0))}const aB=`
|
|
313
313
|
html body {
|
|
314
|
-
font-family:
|
|
314
|
+
font-family: Carlito, Calibri, Arial, Helvetica, sans-serif;
|
|
315
315
|
font-size: 12px;
|
|
316
316
|
}
|
|
317
317
|
body table {
|
|
@@ -319,48 +319,81 @@ return o.version="2.30.1",r(Mt),o.fn=ye,o.min=oC,o.max=rC,o.now=sC,o.utc=b,o.uni
|
|
|
319
319
|
border-collapse: collapse;
|
|
320
320
|
font-size: 12px;
|
|
321
321
|
}
|
|
322
|
-
table thead {
|
|
323
|
-
border-bottom: 2px solid gray;
|
|
324
|
-
}
|
|
325
322
|
table th,
|
|
326
323
|
table td {
|
|
327
|
-
padding: 0
|
|
324
|
+
padding: 0 4px;
|
|
328
325
|
font-weight: normal;
|
|
329
326
|
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
}
|
|
333
|
-
table td.text-right {
|
|
334
|
-
text-align: right;
|
|
327
|
+
.main-table > thead {
|
|
328
|
+
border-bottom: 1px solid gray;
|
|
335
329
|
}
|
|
336
|
-
.
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
330
|
+
.client-name {
|
|
331
|
+
font-size: 16px;
|
|
332
|
+
font-weight: bold;
|
|
333
|
+
padding: 6px 4px;
|
|
340
334
|
text-align: left;
|
|
341
|
-
padding-bottom: 20px;
|
|
342
335
|
}
|
|
343
|
-
.
|
|
344
|
-
|
|
345
|
-
padding-bottom: 20px;
|
|
336
|
+
.empty-row {
|
|
337
|
+
height: 15px
|
|
346
338
|
}
|
|
347
|
-
.
|
|
348
|
-
padding-top: 1em;
|
|
339
|
+
.font-bold {
|
|
349
340
|
font-weight: bold;
|
|
350
341
|
}
|
|
351
|
-
.
|
|
352
|
-
|
|
342
|
+
.row-column-names {
|
|
343
|
+
border-bottom: 1px solid gray;
|
|
344
|
+
border-top: 1px solid gray;
|
|
345
|
+
line-height: 2.5;
|
|
346
|
+
}
|
|
347
|
+
.slick-table {
|
|
348
|
+
border-bottom: double gray;
|
|
349
|
+
}
|
|
350
|
+
.text-center {
|
|
351
|
+
text-align: center;
|
|
353
352
|
}
|
|
354
|
-
.
|
|
353
|
+
.text-left {
|
|
355
354
|
text-align: left;
|
|
356
355
|
}
|
|
357
|
-
`;class Nb{constructor(){this.clientId=0,this.clientName="",this.cssStyles=iB}getClientName(){const t=document.createElement("tr"),n=document.createElement("th");return n.classList.add("align_left"),n.setAttribute("colspan","100%"),n.innerText=`${this.clientName} [${this.clientId}]`,t.append(n),t}columnNames(t){const n=document.createElement("tr");return(t.grid?.getColumns()||[]).filter(a=>a.forPrint).forEach(({name:a})=>{const l=document.createElement("th");l.classList.add("column_name"),typeof a=="string"?l.innerText=a:l.innerText=" ",n.append(l)}),n}tableNameAndTime(t){const n=document.createElement("tr");n.classList.add("heading");const o=document.createElement("th");o.setAttribute("colspan","2"),o.classList.add("table_name"),o.innerText=t.name||t.id,n.append(o);const r=document.createElement("th");return r.setAttribute("colspan","100%"),r.classList.add("date_stamp"),r.innerText=xe().format("MM/DD/YYYY h:mm A"),n.append(r),n}createStyleElement(){const t=document.createElement("style");return t.innerHTML=this.cssStyles,t}createTableElement(t){const n=document.createElement("table");return n.append(this.createThead(t)),n.append(this.createTbody(t)),n}createTbody(t){const n=document.createElement("tbody"),o=t.grid;if(!o)return n;const i=o.getColumns().filter(d=>d.forPrint),a=o.getData();return Hc(a).forEach((d,u)=>{const f=this.createTr(i,u,o);n.append(f)}),n.append(...this.totals(t)),n}filters(t){const n=[];if(t.filter){const o=t.filter.print(t);if(o.length){const r=document.createElement("tr"),i=document.createElement("th");i.setAttribute("colspan","100%"),i.classList.add("align_left"),i.innerText="Applied filters",r.append(i),n.push(r)}o.forEach(r=>{n.push(r)})}return n}totals(t){return[]}createThead(t){const n=document.createElement("thead");return n.append(this.getClientName()),n.append(this.tableNameAndTime(t)),n.append(...this.filters(t)),n.append(this.columnNames(t)),n}createTr(t,n,o){const r=document.createElement("tr"),i=o.getData(),a=i.getItem(n),l=a.__group,d=a.__groupTotals;if(l){const u=document.createElement("td");u.setAttribute("colspan","100%"),u.innerText=jy(a.title),r.append(u)}else t.forEach(u=>{const f=document.createElement("td");u.cssClass&&f.classList.add(u.cssClass);const p=u.field,w=i.getItemMetadata(n)?.columns?.[p]?.formatter,b=u.printer||w||u.formatter;let m=a[p];if(d){const v=u.groupTotalsFormatter;m=v?v(a,u,o):""}else b&&(m=b(0,0,m,u,a,o));f.innerText=m||"",r.append(f)});return r}print(t,n,o){this.clientId=n,this.clientName=o;const r=window.open(),i=document.createElement("title");i.innerText=t.name||t.id;const a=r.document.querySelector("head");a.append(i),a.append(this.createStyleElement()),r.document.querySelector("body").append(this.createTableElement(t)),r.print()}}function aB(e){const t=document.querySelector(e);if(!t)return!0;const{scrollHeight:n,scrollWidth:o}=document.documentElement,{bottom:r,left:i,right:a,top:l}=t.getBoundingClientRect();return r<=0||i>=o||a<=0||l>=n}class lB{constructor(t){this.columnPicker=null,this.copiedRows=[],this.downloadManager=new VD,this.filter=new KN,this.hotKeysBehavior=new Wy,this.summaryColumnIds=[],this._grid=null,this._grouping={},this._isActive=!1,this._isEdited=!1,this._lastActiveCell={row:0,cell:0},this._observers=[],this._printer=new Nb;const{columnPicker:n,downloadManager:o,filter:r,hotKeys:i,id:a,name:l,printer:d,summaryColumnIds:u,totalCalculator:f}=t;this.id=a,this.name=l||"",n&&(this.columnPicker=n),o&&(this.downloadManager=o),r&&(this.filter=r,this.filter.tableId=a,this.filter.args={columnFilters:mo.columnFilters.get(this.id)}),i&&(this.hotKeysBehavior=i),d&&(this.printer=d),u&&(this.summaryColumnIds=u),f&&(this.totalCalculator=f)}createGrid(t,n,o){this.reset();const r=new LW(`#${this.id}`,t,n,o);return this.grid=r,r.onKeyDown.subscribe(pm(r)),this.filter.register(r,this.id),this.grid}handleKeyboardEvent(t){aB(`#${this.id}`)||this.hotKeysBehavior.handleKeyboardEvent(t,this)}get grid(){return this._grid}get grouping(){return this._grouping}get isEdited(){return this._isEdited}set grid(t){this._grid=t}set grouping(t){if(this._grouping={...this._grouping,...t},!this.grid)return;const n=this.grid.getData();this.grouping.isGrouped?n.setGrouping(this.grouping.groups||[]):n.setGrouping([])}set isEdited(t){this._isEdited=t,this.notifyObservers()}set printer(t){this._printer=t}get printer(){return this._printer}get isActive(){return this._isActive}set isActive(t){this._isActive=t}get lastActiveSell(){return this._lastActiveCell}set lastActiveSell(t){this._lastActiveCell=t}resizeCanvas(){console.log(""),this.grid?.resizeCanvas()}registerObservers(t){~this._observers.indexOf(t)||this._observers.push(t)}notifyObservers(){for(const t of this._observers)t(this)}deleteObserver(t){const n=this._observers.indexOf(t);this._observers.splice(n,1)}reset(){this.grid?.onKeyDown.unsubscribe(pm(this.grid)),this.grid?.getSelectionModel()&&this.grid.setSelectedRows([]),this.hotKeysBehavior.resetQueue(),this.isEdited=!1,this.isActive=!1,this.grid=null}}class cB extends Ta{constructor(){super(...arguments),this.clientId=0,this.clientName="",this.x=0,this.y=0}}const on=new cB;class dB extends Ta{constructor(){super(...arguments),this.x=0,this.y=0}}const fo=new dB;class uB extends Ta{constructor(){super(...arguments),this._open=!1,this.x=0,this.y=0}get open(){return this._open}set open(t){this._open=t,this.notify()}get table(){return this._table}set table(t){this._table=t}}const jn=new uB,hB=e=>{const t=e.getLength()-1;return e.getItem(t)},Bc=e=>{const t=e.getData(),n=t.getIdPropertyName(),o=t.getItems();let r=0;return o.forEach(i=>{i[n]>r&&(r=i[n])}),r+1},Hh=()=>{Db.commitCurrentEdit()};function zh(e){return e.ctrlKey||e.metaKey}function Yh(e){return zh(e)&&e.keyCode===Jr.KeyB}function Ab(e){return e.shiftKey&&e.keyCode===Jr.KeyDel}function fB(e){return e.altKey&&e.keyCode===Jr.KeyS}function Uh(e){return zh(e)&&e.keyCode===Jr.KeyY}function qh(e){return zh(e)&&e.keyCode===Jr.KeyZ}function pB(e){const t=e.getActiveCell();return!e.getSelectedRows().length&&!t}function Fb(e){const t=mB(e),o=e.getData().getItems(),r=o.findIndex(a=>a.id===t)+1,i=o.length;return r||i}const Hc=e=>{const t=[];for(let n=0;n<e.getLength();n++)t.push(e.getItem(n));return t},Lb=e=>{const t=e.getSelectedRows(),n=e.getData(),o=Hc(n),r=n.getItems(),i=[],a=n.getIdPropertyName();let l=Bc(e);t.length?t.forEach(d=>{i.push({...o[d],[a]:l++,isEdited:!0,isNew:!0})}):i.push({[a]:l,isEdited:!0,isNew:!0}),r.splice(Fb(e),0,...i),n.setItems(r),e.setSelectedRows([]),e.invalidate()},mB=e=>{const t=e.getData(),n=Hc(t),o=e.getActiveCell()?.row;return o!==void 0?(n[o]||n[n.length-1])?.id:0};function gB(e){return function(t){t.preventDefault(),Hh(),on.table=e,on.x=t.pageX||0,on.y=t.pageY||0,on.notify()}}function yB(e){return function(t){t.preventDefault(),Hh(),fo.table=e,fo.x=t.pageX||0,fo.y=t.pageY||0,fo.notify()}}class vB extends Ta{constructor(){super(...arguments),this._activeTable=null}get activeTable(){return this._activeTable}set activeTable(t){this._activeTable=t}}const ki=new vB,bB=e=>{function t(){if(e.id!==ki.activeTable?.id){e.isActive=!1;const o=e.grid;o?.resetActiveCell(),o?.setSelectedRows([])}}function n(){e.isActive=!0,ki.activeTable=e,ki.notify()}Fe.useEffect(()=>{ki.subscribe(t),document.addEventListener("keydown",e.handleKeyboardEvent.bind(e));const o=document.getElementById(e.id);if(o)return o.addEventListener("click",n,!0),()=>{ki.unsubscribe(t),document.removeEventListener("keydown",e.handleKeyboardEvent.bind(e)),o.removeEventListener("click",n,!0)}},[])},wB=e=>{const[t,n]=Fe.useState(CB(e));return Fe.useEffect(()=>{const o=r=>{n(i=>({...i,[r.id]:r.isEdited}))};return e.forEach(r=>{r.registerObservers(o)}),()=>{e.forEach(r=>{r.deleteObserver(o)})}},[]),Object.values(t).some(o=>o)};function CB(e){const t={};for(const n of e)t[n.id]=n.isEdited;return t}function SB(e){Fe.useEffect(()=>{function t(){e.grid?.resizeCanvas()}const n=Lv(t);return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[])}const _B=e=>{Fe.useEffect(()=>{function t(n){const o=n.grid;o&&n.totalCalculator?.calculate(o)}return e.registerObservers(t),()=>{e.deleteObserver(t)}},[])},xB=e=>{if(!e)return 0;if(typeof e=="number")return e;const t=e.replace(/\$|,|\s/g,""),n=t.replace(/\(|\)/g,"");return isNaN(Number(n))?0:t.startsWith("(")&&t.endsWith(")")?0-Number(n):Number(t)},Br=function(){const e=function(x,S,C,O){for(C=C||{},O=x.length;O--;C[x[O]]=S);return C},t=[1,3],n=[1,4],o=[1,5],r=[1,6],i=[1,7],a=[1,9],l=[1,10],d=[1,11],u=[1,12],f=[1,13],p=[1,14],y=[1,15],w=[5,6,7,8,9,10,11,12,14],b=[5,6,7,14],m=[5,6,7,8,9,14],v={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,"+":6,"-":7,"*":8,"/":9,"^":10,"!":11,"%":12,"(":13,")":14,NUMBER:15,E:16,PI:17,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"+",7:"-",8:"*",9:"/",10:"^",11:"!",12:"%",13:"(",14:")",15:"NUMBER",16:"E",17:"PI"},productions_:[0,[3,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,2],[4,2],[4,2],[4,3],[4,1],[4,1],[4,1]],performAction:function(S,C,O,A,F,W,R){const $=W.length-1;switch(F){case 1:return W[$-1];case 2:this.$=W[$-2]+W[$];break;case 3:this.$=W[$-2]-W[$];break;case 4:this.$=W[$-2]*W[$];break;case 5:this.$=W[$-2]/W[$];break;case 6:this.$=Math.pow(W[$-2],W[$]);break;case 7:this.$=function K(G){return G==0?1:K(G-1)*G}(W[$-1]);break;case 8:this.$=W[$-1]/100;break;case 9:this.$=-W[$];break;case 10:this.$=W[$-1];break;case 11:this.$=Number(S);break;case 12:this.$=Math.E;break;case 13:this.$=Math.PI;break}},table:[{3:1,4:2,7:t,13:n,15:o,16:r,17:i},{1:[3]},{5:[1,8],6:a,7:l,8:d,9:u,10:f,11:p,12:y},{4:16,7:t,13:n,15:o,16:r,17:i},{4:17,7:t,13:n,15:o,16:r,17:i},e(w,[2,11]),e(w,[2,12]),e(w,[2,13]),{1:[2,1]},{4:18,7:t,13:n,15:o,16:r,17:i},{4:19,7:t,13:n,15:o,16:r,17:i},{4:20,7:t,13:n,15:o,16:r,17:i},{4:21,7:t,13:n,15:o,16:r,17:i},{4:22,7:t,13:n,15:o,16:r,17:i},e(w,[2,7]),e(w,[2,8]),e(w,[2,9]),{6:a,7:l,8:d,9:u,10:f,11:p,12:y,14:[1,23]},e(b,[2,2],{8:d,9:u,10:f,11:p,12:y}),e(b,[2,3],{8:d,9:u,10:f,11:p,12:y}),e(m,[2,4],{10:f,11:p,12:y}),e(m,[2,5],{10:f,11:p,12:y}),e([5,6,7,8,9,10,14],[2,6],{11:p,12:y}),e(w,[2,10])],defaultActions:{8:[2,1]},parseError:function(S,C){if(C.recoverable)this.trace(S);else{const O=new Error(S);throw O.hash=C,O}},parse:function(S){const C=this;let O=[0],A=[null],F=[];const W=this.table;let R="",$=0,K=0;const G=2,q=1,Y=F.slice.call(arguments,1),z=Object.create(this.lexer),ae={yy:{}};for(let le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,le)&&(ae.yy[le]=this.yy[le]);z.setInput(S,ae.yy),ae.yy.lexer=z,ae.yy.parser=this,typeof z.yylloc>"u"&&(z.yylloc={});let N=z.yylloc;F.push(N);const M=z.options&&z.options.ranges;typeof ae.yy.parseError=="function"?this.parseError=ae.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;var L=function(){let le;return le=z.lex()||q,typeof le!="number"&&(le=C.symbols_[le]||le),le};let B,ne,oe,se;const j={};let ee,J,te,ce;for(;;){if(ne=O[O.length-1],this.defaultActions[ne]?oe=this.defaultActions[ne]:((B===null||typeof B>"u")&&(B=L()),oe=W[ne]&&W[ne][B]),typeof oe>"u"||!oe.length||!oe[0]){let le="";ce=[];for(ee in W[ne])this.terminals_[ee]&&ee>G&&ce.push("'"+this.terminals_[ee]+"'");z.showPosition?le="Parse error on line "+($+1)+`:
|
|
356
|
+
.text-right {
|
|
357
|
+
text-align: right;
|
|
358
|
+
}
|
|
359
|
+
.w-full {
|
|
360
|
+
width: 100%;
|
|
361
|
+
}
|
|
362
|
+
`;class Nb{constructor(){this.clientId=0,this.clientName="",this.cssStyles=aB}getClientName(){const t=document.createElement("tr"),n=document.createElement("th");return n.classList.add("client-name"),n.setAttribute("colspan","100%"),n.innerText=`${this.clientName} [${this.clientId}]`,t.append(n),t}getHtmlTemplate(t){const{body:n="",footer:o="",header:r="",styles:i="",title:a=""}=t;return`
|
|
363
|
+
<!doctype html>
|
|
364
|
+
<html lang="en">
|
|
365
|
+
<head>
|
|
366
|
+
<meta charset="UTF-8">
|
|
367
|
+
<meta name="viewport"
|
|
368
|
+
content="width=device-width, initial-scale=1.0">
|
|
369
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
370
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
371
|
+
<link href="https://fonts.googleapis.com/css2?family=Carlito:ital,wght@0,400;0,700;1,400;1,700&display=swap"
|
|
372
|
+
rel="stylesheet">
|
|
373
|
+
<title>${a}</title>
|
|
374
|
+
<style>${i}</style>
|
|
375
|
+
</head>
|
|
376
|
+
<body>
|
|
377
|
+
<table class="main-table w-full">
|
|
378
|
+
${r}
|
|
379
|
+
<tbody>
|
|
380
|
+
<tr>
|
|
381
|
+
<td colspan="100%">
|
|
382
|
+
${n}
|
|
383
|
+
</td>
|
|
384
|
+
</tr>
|
|
385
|
+
</tbody>
|
|
386
|
+
${o}
|
|
387
|
+
</table>
|
|
388
|
+
</body>
|
|
389
|
+
</html>
|
|
390
|
+
`}columnNames(t){const n=document.createElement("thead"),o=document.createElement("tr");o.classList.add("empty-row");const r=document.createElement("tr");return r.classList.add("row-column-names"),(t.grid?.getColumns()||[]).filter(d=>d.forPrint).forEach(({name:d})=>{const u=document.createElement("th");u.classList.add("text-left"),typeof d=="string"?u.innerText=d:u.innerText=" ",r.append(u)}),n.append(o),n.append(r),n}tableNameAndTime(t){const n=document.createElement("tr"),o=document.createElement("th");o.classList.add("text-left"),o.innerText=t.name||t.id,n.append(o);const r=document.createElement("th");return r.classList.add("text-right"),r.innerText=xe().format("MM/DD/YYYY h:mm A"),n.append(r),n}createTableElement(t){const n=document.createElement("table");return n.classList.add("slick-table"),n.style.width="100%",n.append(this.columnNames(t)),n.append(this.createTbody(t)),n}createTbody(t){const n=document.createElement("tbody"),o=t.grid;if(!o)return n;const i=o.getColumns().filter(d=>d.forPrint),a=o.getData();return Hc(a).forEach((d,u)=>{const f=this.createTr(i,u,o);n.append(f)}),n.append(...this.totals(t)),n}filters(t){const n=[];if(t.filter){const o=t.filter.print(t);if(o.length){const r=document.createElement("tr"),i=document.createElement("th");i.setAttribute("colspan","100%"),i.classList.add("text-left"),i.innerText="Applied filters",r.append(i),n.push(r)}o.forEach(r=>{n.push(r)})}return n}totals(t){return[]}createHeader(t){const n=document.createElement("thead");return n.append(this.getClientName()),n.append(this.tableNameAndTime(t)),n.append(...this.filters(t)),n}createTr(t,n,o){const r=document.createElement("tr"),i=o.getData(),a=i.getItem(n),l=a.__group,d=a.__groupTotals;if(l){const u=document.createElement("td");u.setAttribute("colspan","100%"),u.innerText=jy(a.title),r.append(u)}else t.forEach(u=>{const f=document.createElement("td");u.cssClass&&f.classList.add(u.cssClass);const p=u.field,w=i.getItemMetadata(n)?.columns?.[p]?.formatter,b=u.printer||w||u.formatter;let m=a[p];if(d){const v=u.groupTotalsFormatter;m=v?v(a,u,o):""}else b&&(m=b(0,0,m,u,a,o));f.innerText=m||"",r.append(f)});return r}print(t,n,o){const r=window.open();r&&(this.clientId=n,this.clientName=o,iB(r.document,this.getHtmlTemplate({title:t.name||t.id,styles:this.cssStyles,header:this.createHeader(t).outerHTML,body:this.createTableElement(t).outerHTML,footer:this.createFooter().outerHTML})),r.print())}createFooter(){return document.createElement("tfoot")}}function lB(e){const t=document.querySelector(e);if(!t)return!0;const{scrollHeight:n,scrollWidth:o}=document.documentElement,{bottom:r,left:i,right:a,top:l}=t.getBoundingClientRect();return r<=0||i>=o||a<=0||l>=n}class cB{constructor(t){this.columnPicker=null,this.copiedRows=[],this.downloadManager=new VD,this.filter=new KN,this.hotKeysBehavior=new Wy,this.summaryColumnIds=[],this._grid=null,this._grouping={},this._isActive=!1,this._isEdited=!1,this._lastActiveCell={row:0,cell:0},this._observers=[],this._printer=new Nb;const{columnPicker:n,downloadManager:o,filter:r,hotKeys:i,id:a,name:l,printer:d,summaryColumnIds:u,totalCalculator:f}=t;this.id=a,this.name=l||"",n&&(this.columnPicker=n),o&&(this.downloadManager=o),r&&(this.filter=r,this.filter.tableId=a,this.filter.args={columnFilters:mo.columnFilters.get(this.id)}),i&&(this.hotKeysBehavior=i),d&&(this.printer=d),u&&(this.summaryColumnIds=u),f&&(this.totalCalculator=f)}createGrid(t,n,o){this.reset();const r=new LW(`#${this.id}`,t,n,o);return this.grid=r,r.onKeyDown.subscribe(pm(r)),this.filter.register(r,this.id),this.grid}handleKeyboardEvent(t){lB(`#${this.id}`)||this.hotKeysBehavior.handleKeyboardEvent(t,this)}get grid(){return this._grid}get grouping(){return this._grouping}get isEdited(){return this._isEdited}set grid(t){this._grid=t}set grouping(t){if(this._grouping={...this._grouping,...t},!this.grid)return;const n=this.grid.getData();this.grouping.isGrouped?n.setGrouping(this.grouping.groups||[]):n.setGrouping([])}set isEdited(t){this._isEdited=t,this.notifyObservers()}set printer(t){this._printer=t}get printer(){return this._printer}get isActive(){return this._isActive}set isActive(t){this._isActive=t}get lastActiveSell(){return this._lastActiveCell}set lastActiveSell(t){this._lastActiveCell=t}resizeCanvas(){console.log(""),this.grid?.resizeCanvas()}registerObservers(t){~this._observers.indexOf(t)||this._observers.push(t)}notifyObservers(){for(const t of this._observers)t(this)}deleteObserver(t){const n=this._observers.indexOf(t);this._observers.splice(n,1)}reset(){this.grid?.onKeyDown.unsubscribe(pm(this.grid)),this.grid?.getSelectionModel()&&this.grid.setSelectedRows([]),this.hotKeysBehavior.resetQueue(),this.isEdited=!1,this.isActive=!1,this.grid=null}}class dB extends Ta{constructor(){super(...arguments),this.clientId=0,this.clientName="",this.x=0,this.y=0}}const on=new dB;class uB extends Ta{constructor(){super(...arguments),this.x=0,this.y=0}}const fo=new uB;class hB extends Ta{constructor(){super(...arguments),this._open=!1,this.x=0,this.y=0}get open(){return this._open}set open(t){this._open=t,this.notify()}get table(){return this._table}set table(t){this._table=t}}const jn=new hB,fB=e=>{const t=e.getLength()-1;return e.getItem(t)},Bc=e=>{const t=e.getData(),n=t.getIdPropertyName(),o=t.getItems();let r=0;return o.forEach(i=>{i[n]>r&&(r=i[n])}),r+1},Hh=()=>{Db.commitCurrentEdit()};function zh(e){return e.ctrlKey||e.metaKey}function Yh(e){return zh(e)&&e.keyCode===Jr.KeyB}function Ab(e){return e.shiftKey&&e.keyCode===Jr.KeyDel}function pB(e){return e.altKey&&e.keyCode===Jr.KeyS}function Uh(e){return zh(e)&&e.keyCode===Jr.KeyY}function qh(e){return zh(e)&&e.keyCode===Jr.KeyZ}function mB(e){const t=e.getActiveCell();return!e.getSelectedRows().length&&!t}function Fb(e){const t=gB(e),o=e.getData().getItems(),r=o.findIndex(a=>a.id===t)+1,i=o.length;return r||i}const Hc=e=>{const t=[];for(let n=0;n<e.getLength();n++)t.push(e.getItem(n));return t},Lb=e=>{const t=e.getSelectedRows(),n=e.getData(),o=Hc(n),r=n.getItems(),i=[],a=n.getIdPropertyName();let l=Bc(e);t.length?t.forEach(d=>{i.push({...o[d],[a]:l++,isEdited:!0,isNew:!0})}):i.push({[a]:l,isEdited:!0,isNew:!0}),r.splice(Fb(e),0,...i),n.setItems(r),e.setSelectedRows([]),e.invalidate()},gB=e=>{const t=e.getData(),n=Hc(t),o=e.getActiveCell()?.row;return o!==void 0?(n[o]||n[n.length-1])?.id:0};function yB(e){return function(t){t.preventDefault(),Hh(),on.table=e,on.x=t.pageX||0,on.y=t.pageY||0,on.notify()}}function vB(e){return function(t){t.preventDefault(),Hh(),fo.table=e,fo.x=t.pageX||0,fo.y=t.pageY||0,fo.notify()}}class bB extends Ta{constructor(){super(...arguments),this._activeTable=null}get activeTable(){return this._activeTable}set activeTable(t){this._activeTable=t}}const ki=new bB,wB=e=>{function t(){if(e.id!==ki.activeTable?.id){e.isActive=!1;const o=e.grid;o?.resetActiveCell(),o?.setSelectedRows([])}}function n(){e.isActive=!0,ki.activeTable=e,ki.notify()}Fe.useEffect(()=>{ki.subscribe(t),document.addEventListener("keydown",e.handleKeyboardEvent.bind(e));const o=document.getElementById(e.id);if(o)return o.addEventListener("click",n,!0),()=>{ki.unsubscribe(t),document.removeEventListener("keydown",e.handleKeyboardEvent.bind(e)),o.removeEventListener("click",n,!0)}},[])},CB=e=>{const[t,n]=Fe.useState(SB(e));return Fe.useEffect(()=>{const o=r=>{n(i=>({...i,[r.id]:r.isEdited}))};return e.forEach(r=>{r.registerObservers(o)}),()=>{e.forEach(r=>{r.deleteObserver(o)})}},[]),Object.values(t).some(o=>o)};function SB(e){const t={};for(const n of e)t[n.id]=n.isEdited;return t}function _B(e){Fe.useEffect(()=>{function t(){e.grid?.resizeCanvas()}const n=Lv(t);return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[])}const xB=e=>{Fe.useEffect(()=>{function t(n){const o=n.grid;o&&n.totalCalculator?.calculate(o)}return e.registerObservers(t),()=>{e.deleteObserver(t)}},[])},RB=e=>{if(!e)return 0;if(typeof e=="number")return e;const t=e.replace(/\$|,|\s/g,""),n=t.replace(/\(|\)/g,"");return isNaN(Number(n))?0:t.startsWith("(")&&t.endsWith(")")?0-Number(n):Number(t)},Br=function(){const e=function(x,S,C,O){for(C=C||{},O=x.length;O--;C[x[O]]=S);return C},t=[1,3],n=[1,4],o=[1,5],r=[1,6],i=[1,7],a=[1,9],l=[1,10],d=[1,11],u=[1,12],f=[1,13],p=[1,14],y=[1,15],w=[5,6,7,8,9,10,11,12,14],b=[5,6,7,14],m=[5,6,7,8,9,14],v={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,"+":6,"-":7,"*":8,"/":9,"^":10,"!":11,"%":12,"(":13,")":14,NUMBER:15,E:16,PI:17,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"+",7:"-",8:"*",9:"/",10:"^",11:"!",12:"%",13:"(",14:")",15:"NUMBER",16:"E",17:"PI"},productions_:[0,[3,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,2],[4,2],[4,2],[4,3],[4,1],[4,1],[4,1]],performAction:function(S,C,O,A,F,W,R){const $=W.length-1;switch(F){case 1:return W[$-1];case 2:this.$=W[$-2]+W[$];break;case 3:this.$=W[$-2]-W[$];break;case 4:this.$=W[$-2]*W[$];break;case 5:this.$=W[$-2]/W[$];break;case 6:this.$=Math.pow(W[$-2],W[$]);break;case 7:this.$=function K(G){return G==0?1:K(G-1)*G}(W[$-1]);break;case 8:this.$=W[$-1]/100;break;case 9:this.$=-W[$];break;case 10:this.$=W[$-1];break;case 11:this.$=Number(S);break;case 12:this.$=Math.E;break;case 13:this.$=Math.PI;break}},table:[{3:1,4:2,7:t,13:n,15:o,16:r,17:i},{1:[3]},{5:[1,8],6:a,7:l,8:d,9:u,10:f,11:p,12:y},{4:16,7:t,13:n,15:o,16:r,17:i},{4:17,7:t,13:n,15:o,16:r,17:i},e(w,[2,11]),e(w,[2,12]),e(w,[2,13]),{1:[2,1]},{4:18,7:t,13:n,15:o,16:r,17:i},{4:19,7:t,13:n,15:o,16:r,17:i},{4:20,7:t,13:n,15:o,16:r,17:i},{4:21,7:t,13:n,15:o,16:r,17:i},{4:22,7:t,13:n,15:o,16:r,17:i},e(w,[2,7]),e(w,[2,8]),e(w,[2,9]),{6:a,7:l,8:d,9:u,10:f,11:p,12:y,14:[1,23]},e(b,[2,2],{8:d,9:u,10:f,11:p,12:y}),e(b,[2,3],{8:d,9:u,10:f,11:p,12:y}),e(m,[2,4],{10:f,11:p,12:y}),e(m,[2,5],{10:f,11:p,12:y}),e([5,6,7,8,9,10,14],[2,6],{11:p,12:y}),e(w,[2,10])],defaultActions:{8:[2,1]},parseError:function(S,C){if(C.recoverable)this.trace(S);else{const O=new Error(S);throw O.hash=C,O}},parse:function(S){const C=this;let O=[0],A=[null],F=[];const W=this.table;let R="",$=0,K=0;const G=2,q=1,Y=F.slice.call(arguments,1),z=Object.create(this.lexer),ae={yy:{}};for(let le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,le)&&(ae.yy[le]=this.yy[le]);z.setInput(S,ae.yy),ae.yy.lexer=z,ae.yy.parser=this,typeof z.yylloc>"u"&&(z.yylloc={});let N=z.yylloc;F.push(N);const M=z.options&&z.options.ranges;typeof ae.yy.parseError=="function"?this.parseError=ae.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;var L=function(){let le;return le=z.lex()||q,typeof le!="number"&&(le=C.symbols_[le]||le),le};let B,ne,oe,se;const j={};let ee,J,te,ce;for(;;){if(ne=O[O.length-1],this.defaultActions[ne]?oe=this.defaultActions[ne]:((B===null||typeof B>"u")&&(B=L()),oe=W[ne]&&W[ne][B]),typeof oe>"u"||!oe.length||!oe[0]){let le="";ce=[];for(ee in W[ne])this.terminals_[ee]&&ee>G&&ce.push("'"+this.terminals_[ee]+"'");z.showPosition?le="Parse error on line "+($+1)+`:
|
|
358
391
|
`+z.showPosition()+`
|
|
359
392
|
Expecting `+ce.join(", ")+", got '"+(this.terminals_[B]||B)+"'":le="Parse error on line "+($+1)+": Unexpected "+(B==q?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(le,{text:z.match,token:this.terminals_[B]||B,line:z.yylineno,loc:N,expected:ce})}if(oe[0]instanceof Array&&oe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ne+", token: "+B);switch(oe[0]){case 1:O.push(B),A.push(z.yytext),F.push(z.yylloc),O.push(oe[1]),B=null,K=z.yyleng,R=z.yytext,$=z.yylineno,N=z.yylloc;break;case 2:if(J=this.productions_[oe[1]][1],j.$=A[A.length-J],j._$={first_line:F[F.length-(J||1)].first_line,last_line:F[F.length-1].last_line,first_column:F[F.length-(J||1)].first_column,last_column:F[F.length-1].last_column},M&&(j._$.range=[F[F.length-(J||1)].range[0],F[F.length-1].range[1]]),se=this.performAction.apply(j,[R,K,$,ae.yy,oe[1],A,F].concat(Y)),typeof se<"u")return se;J&&(O=O.slice(0,-1*J*2),A=A.slice(0,-1*J),F=F.slice(0,-1*J)),O.push(this.productions_[oe[1]][0]),A.push(j.$),F.push(j._$),te=W[O[O.length-2]][O[O.length-1]],O.push(te);break;case 3:return!0}}return!0}},P=function(){return{EOF:1,parseError:function(C,O){if(this.yy.parser)this.yy.parser.parseError(C,O);else throw new Error(C)},setInput:function(S,C){return this.yy=C||this.yy||{},this._input=S,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){const S=this._input[0];return this.yytext+=S,this.yyleng++,this.offset++,this.match+=S,this.matched+=S,S.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),S},unput:function(S){const C=S.length,O=S.split(/(?:\r\n?|\n)/g);this._input=S+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-C),this.offset-=C;const A=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),O.length-1&&(this.yylineno-=O.length-1);const F=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:O?(O.length===A.length?this.yylloc.first_column:0)+A[A.length-O.length].length-O[0].length:this.yylloc.first_column-C},this.options.ranges&&(this.yylloc.range=[F[0],F[0]+this.yyleng-C]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
360
393
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(S){this.unput(this.match.slice(S))},pastInput:function(){const S=this.matched.substr(0,this.matched.length-this.match.length);return(S.length>20?"...":"")+S.substr(-20).replace(/\n/g,"")},upcomingInput:function(){let S=this.match;return S.length<20&&(S+=this._input.substr(0,20-S.length)),(S.substr(0,20)+(S.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){const S=this.pastInput(),C=new Array(S.length+1).join("-");return S+this.upcomingInput()+`
|
|
361
394
|
`+C+"^"},test_match:function(S,C){let O,A,F;if(this.options.backtrack_lexer&&(F={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(F.yylloc.range=this.yylloc.range.slice(0))),A=S[0].match(/(?:\r\n?|\n).*/g),A&&(this.yylineno+=A.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+S[0].length},this.yytext+=S[0],this.match+=S[0],this.matches=S,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(S[0].length),this.matched+=S[0],O=this.performAction.call(this,this.yy,this,C,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),O)return O;if(this._backtrack){for(let W in F)this[W]=F[W];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);let S,C,O,A;this._more||(this.yytext="",this.match="");const F=this._currentRules();for(let W=0;W<F.length;W++)if(O=this._input.match(this.rules[F[W]]),O&&(!C||O[0].length>C[0].length)){if(C=O,A=W,this.options.backtrack_lexer){if(S=this.test_match(O,F[W]),S!==!1)return S;if(this._backtrack){C=!1;continue}else return!1}else if(!this.options.flex)break}return C?(S=this.test_match(C,F[A]),S!==!1?S:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
362
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){const C=this.next();return C||this.lex()},begin:function(C){this.conditionStack.push(C)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(C){return C=this.conditionStack.length-1-Math.abs(C||0),C>=0?this.conditionStack[C]:"INITIAL"},pushState:function(C){this.begin(C)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(C,O,A,F){switch(A){case 0:break;case 1:return 15;case 2:return 8;case 3:return 9;case 4:return 7;case 5:return 6;case 6:return 10;case 7:return 11;case 8:return 12;case 9:return 13;case 10:return 14;case 11:return 17;case 12:return 16;case 13:return 5;case 14:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:[0-9]+(\.[0-9]+)?\b)/,/^(?:\*)/,/^(?:\/)/,/^(?:-)/,/^(?:\+)/,/^(?:\^)/,/^(?:!)/,/^(?:%)/,/^(?:\()/,/^(?:\))/,/^(?:PI\b)/,/^(?:E\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],inclusive:!0}}}}();v.lexer=P;function D(){this.yy={},this.parse=this.parse.bind(this)}return D.prototype=v,v.Parser=D,new D}();typeof require<"u"&&typeof exports<"u"&&(exports.parser=Br,exports.Parser=Br.Parser,exports.parse=function(){return Br.parse.apply(Br,arguments)});const $b=2;class
|
|
395
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){const C=this.next();return C||this.lex()},begin:function(C){this.conditionStack.push(C)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(C){return C=this.conditionStack.length-1-Math.abs(C||0),C>=0?this.conditionStack[C]:"INITIAL"},pushState:function(C){this.begin(C)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(C,O,A,F){switch(A){case 0:break;case 1:return 15;case 2:return 8;case 3:return 9;case 4:return 7;case 5:return 6;case 6:return 10;case 7:return 11;case 8:return 12;case 9:return 13;case 10:return 14;case 11:return 17;case 12:return 16;case 13:return 5;case 14:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:[0-9]+(\.[0-9]+)?\b)/,/^(?:\*)/,/^(?:\/)/,/^(?:-)/,/^(?:\+)/,/^(?:\^)/,/^(?:!)/,/^(?:%)/,/^(?:\()/,/^(?:\))/,/^(?:PI\b)/,/^(?:E\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],inclusive:!0}}}}();v.lexer=P;function D(){this.yy={},this.parse=this.parse.bind(this)}return D.prototype=v,v.Parser=D,new D}();typeof require<"u"&&typeof exports<"u"&&(exports.parser=Br,exports.Parser=Br.Parser,exports.parse=function(){return Br.parse.apply(Br,arguments)});const $b=2;class TB extends zm{isValueChanged(){const t=RB(this.defaultValue);let n=0;try{n=Br.parse(this.input.value||"0")}catch{return!0}return!n&&!t?!1:n!==t}loadValue(t){const n=Number(t[this.args.column.field]||"0");this.defaultValue=n.toFixed($b),this.input.value=this.defaultValue,this.input.defaultValue=this.input.value,this.input.select()}serializeValue(){let t=Br.parse(this.input.value||"0");zm.AllowEmptyValue?!t&&t!==0&&(t=void 0):t=t||0;const n=this.getDecimalPlaces();return n!==null&&(t||t===0)&&t.toFixed&&(t=parseFloat(t.toFixed(n))),t}validate(){let t=0;try{if(t=Br.parse(`${this.input.value}`),t===1/0)throw new Error}catch{return{valid:!1,msg:"Please enter a valid number"}}if(this.args.column.validator){const n=this.args.column.validator(t,this.args);if(!n.valid)return n}return{valid:!0,msg:null}}}TB.DefaultDecimalPlaces=$b;class Vb{constructor(){this.currentFocus=-1,this.defaultValue="",this.id="slick-table-autocomplete",this.input=document.createElement("input"),this.keyCaptureList=[No.UP,No.DOWN,No.ENTER]}applyValue(t,n){t[this.args.column.field]=n}closeAllList(){this.list?.remove(),this.list=void 0,this.currentFocus=-1}createList(){this.list=document.createElement("div");const t=document.getElementById("root");if(!t)return;t.appendChild(this.list),this.list.setAttribute("tabIndex","0"),this.list.setAttribute("id",this.id);const{top:n,left:o,right:r}=this.args.position,i=this.args.grid.getOptions().rowHeight||25;this.list.style.top=`${n+i}px`,this.list.style.left=`${o}px`,this.list.style.minWidth=`${r-o}px`}destroy(){this.input.removeEventListener("input",this.onInput.bind(this)),this.input.removeEventListener("keydown",this.onKeydown.bind(this)),this.closeAllList(),this.input.remove()}focus(){this.input.focus()}init(){this.navOnLR=this.args.grid.getOptions().editorCellNavOnLRKeys,this.input.setAttribute("type","text"),this.input.classList.add("editor-text"),this.args.container.append(this.input),this.input.addEventListener("input",this.onInput.bind(this)),this.input.addEventListener("keydown",this.onKeydown.bind(this)),this.input.addEventListener("blur",({relatedTarget:t})=>{t?.id===this.id?this.focus():this.closeAllList()}),this.input.focus(),this.input.select()}isValueChanged(){return!(this.input.value==""&&this.defaultValue==null)&&this.input.value!=this.defaultValue}loadValue(t){this.defaultValue=t[this.args.column.field]||"",this.input.value=this.defaultValue,this.input.defaultValue=this.defaultValue,this.input.focus(),this.input.select()}makeVisible(){if(!this.list)return;const{bottom:t,left:n,right:o,top:r}=this.list.getBoundingClientRect(),{bottom:i,right:a}=document.body.getBoundingClientRect();if(t>=i){const l=this.args.grid.getOptions().rowHeight||25,d=t-r;this.list.style.top=`${r-d-l}px`}if(o>=a){const{right:l}=this.args.container.getBoundingClientRect(),d=o-l;this.list.style.left=`${n-d}px`}}onKeydown(t){if(t.key===Vr.ArrowLeft){this.navOnLR&&this.args.grid.navigatePrev(),t.stopImmediatePropagation();return}else if(t.key===Vr.ArrowRight){this.navOnLR&&this.args.grid.navigateNext(),t.stopImmediatePropagation();return}if(!this.list)return;const n=this.list.getElementsByTagName("div");t.key===Vr.ArrowDown?(this.currentFocus++,this.setActive(n)):t.key===Vr.ArrowUp?(this.currentFocus--,this.setActive(n)):(t.key===Vr.Enter||t.key===Vr.Tab)&&(t.preventDefault(),n.length===1&&(this.currentFocus=0),this.currentFocus>-1&&n&&n[this.currentFocus].click())}removeActive(t){for(let n=0;n<t.length;n++)t[n].classList.remove("active")}scrollToElement(t){const n=t.parentElement;if(!n)return;const{clientHeight:o,offsetTop:r}=t,{clientHeight:i,scrollTop:a}=n;r>=a+i?n.scrollTop=r-o*1.5:r-o<=a&&(n.scrollTop=r-i)}serializeValue(){return this.input.value}setActive(t){if(!t.length)return;this.removeActive(t),this.currentFocus>=t.length&&(this.currentFocus=0),this.currentFocus<0&&(this.currentFocus=t.length-1);const n=t[this.currentFocus];n.classList.add("active"),this.scrollToElement(n)}validate(){if(this.args.column.validator){const t=this.args.column.validator(this.input.value,this.args);if(!t.valid)return t}return{valid:!0,msg:null}}}function EB(e){return e.replace(/[.*+?^${}()|[\]\\]/g,t=>`\\${t}`)}class kB extends Vb{constructor(t){super(),this.args=t;const n=this.args.column,o=n.optionsList;if(o)this.suggestionsList=new Set(o);else{this.suggestionsList=new Set;const a=n.id;this.args.grid.getData().getItems().forEach(u=>{u[a]&&this.suggestionsList.add(u[a])})}this.init(),this.args.item[n.field]||this.showOptions("")}onInput(t){this.closeAllList(),this.currentFocus=-1,this.showOptions(t.target.value)}onClick(t){const o=t.target.closest("div")?.querySelector("input");this.input.value=o?.value||"",this.closeAllList()}showOptions(t){this.createList(),this.suggestionsList.forEach(n=>{const o=n.match(new RegExp(EB(t),"i"));if(o){const r=o[0],i=document.createElement("div");i.innerHTML=`${n.replaceAll(r,`<strong>${r}</strong>`)}`,i.innerHTML+=`<input type="hidden" value="${n}">`,i.addEventListener("click",this.onClick.bind(this)),this.list?.appendChild(i)}}),this.makeVisible()}}var Cl={exports:{}};const PB=y0(YN);/*!
|
|
363
396
|
* Pikaday
|
|
364
397
|
*
|
|
365
398
|
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
|
|
366
|
-
*/var PB=Cl.exports,Jm;function DB(){return Jm||(Jm=1,function(e,t){(function(n,o){var r;{try{r=kB}catch{}e.exports=o(r)}})(PB,function(n){var o=typeof n=="function",r=!!window.addEventListener,i=window.document,a=window.setTimeout,l=function(N,M,L,B){r?N.addEventListener(M,L,!!B):N.attachEvent("on"+M,L)},d=function(N,M,L,B){r?N.removeEventListener(M,L,!!B):N.detachEvent("on"+M,L)},u=function(N){return N.trim?N.trim():N.replace(/^\s+|\s+$/g,"")},f=function(N,M){return(" "+N.className+" ").indexOf(" "+M+" ")!==-1},p=function(N,M){f(N,M)||(N.className=N.className===""?M:N.className+" "+M)},y=function(N,M){N.className=u((" "+N.className+" ").replace(" "+M+" "," "))},w=function(N){return/Array/.test(Object.prototype.toString.call(N))},b=function(N){return/Date/.test(Object.prototype.toString.call(N))&&!isNaN(N.getTime())},m=function(N){var M=N.getDay();return M===0||M===6},v=function(N){return N%4===0&&N%100!==0||N%400===0},P=function(N,M){return[31,v(N)?29:28,31,30,31,30,31,31,30,31,30,31][M]},D=function(N){b(N)&&N.setHours(0,0,0,0)},x=function(N,M){return N.getTime()===M.getTime()},S=function(N,M,L){var B,ne;for(B in M)ne=N[B]!==void 0,ne&&typeof M[B]=="object"&&M[B]!==null&&M[B].nodeName===void 0?b(M[B])?L&&(N[B]=new Date(M[B].getTime())):w(M[B])?L&&(N[B]=M[B].slice(0)):N[B]=S({},M[B],L):(L||!ne)&&(N[B]=M[B]);return N},C=function(N,M,L){var B;i.createEvent?(B=i.createEvent("HTMLEvents"),B.initEvent(M,!0,!1),B=S(B,L),N.dispatchEvent(B)):i.createEventObject&&(B=i.createEventObject(),B=S(B,L),N.fireEvent("on"+M,B))},O=function(N){return N.month<0&&(N.year-=Math.ceil(Math.abs(N.month)/12),N.month+=12),N.month>11&&(N.year+=Math.floor(Math.abs(N.month)/12),N.month-=12),N},A={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},F=function(N,M,L){for(M+=N.firstDay;M>=7;)M-=7;return L?N.i18n.weekdaysShort[M]:N.i18n.weekdays[M]},W=function(N){var M=[],L="false";if(N.isEmpty)if(N.showDaysInNextAndPreviousMonths)M.push("is-outside-current-month"),N.enableSelectionDaysInNextAndPreviousMonths||M.push("is-selection-disabled");else return'<td class="is-empty"></td>';return N.isDisabled&&M.push("is-disabled"),N.isToday&&M.push("is-today"),N.isSelected&&(M.push("is-selected"),L="true"),N.hasEvent&&M.push("has-event"),N.isInRange&&M.push("is-inrange"),N.isStartRange&&M.push("is-startrange"),N.isEndRange&&M.push("is-endrange"),'<td data-day="'+N.day+'" class="'+M.join(" ")+'" aria-selected="'+L+'"><button class="pika-button pika-day" type="button" data-pika-year="'+N.year+'" data-pika-month="'+N.month+'" data-pika-day="'+N.day+'">'+N.day+"</button></td>"},R=function(N,M){N.setHours(0,0,0,0);var L=N.getDate(),B=N.getDay(),ne=M,oe=ne-1,se=7,j=function(le){return(le+se-1)%se};N.setDate(L+oe-j(B));var ee=new Date(N.getFullYear(),0,ne),J=24*60*60*1e3,te=(N.getTime()-ee.getTime())/J,ce=1+Math.round((te-oe+j(ee.getDay()))/se);return ce},$=function(N,M,L,B){var ne=new Date(L,M,N),oe=o?n(ne).isoWeek():R(ne,B);return'<td class="pika-week">'+oe+"</td>"},K=function(N,M,L,B){return'<tr class="pika-row'+(L?" pick-whole-week":"")+(B?" is-selected":"")+'">'+(M?N.reverse():N).join("")+"</tr>"},G=function(N){return"<tbody>"+N.join("")+"</tbody>"},q=function(N){var M,L=[];for(N.showWeekNumber&&L.push("<th></th>"),M=0;M<7;M++)L.push('<th scope="col"><abbr title="'+F(N,M)+'">'+F(N,M,!0)+"</abbr></th>");return"<thead><tr>"+(N.isRTL?L.reverse():L).join("")+"</tr></thead>"},Y=function(N,M,L,B,ne,oe){var se,j,ee,J=N._o,te=L===J.minYear,ce=L===J.maxYear,le='<div id="'+oe+'" class="pika-title" role="heading" aria-live="assertive">',he,H,re=!0,Z=!0;for(ee=[],se=0;se<12;se++)ee.push('<option value="'+(L===ne?se-M:12+se-M)+'"'+(se===B?' selected="selected"':"")+(te&&se<J.minMonth||ce&&se>J.maxMonth?' disabled="disabled"':"")+">"+J.i18n.months[se]+"</option>");for(he='<div class="pika-label">'+J.i18n.months[B]+'<select class="pika-select pika-select-month" tabindex="-1">'+ee.join("")+"</select></div>",w(J.yearRange)?(se=J.yearRange[0],j=J.yearRange[1]+1):(se=L-J.yearRange,j=1+L+J.yearRange),ee=[];se<j&&se<=J.maxYear;se++)se>=J.minYear&&ee.push('<option value="'+se+'"'+(se===L?' selected="selected"':"")+">"+se+"</option>");return H='<div class="pika-label">'+L+J.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+ee.join("")+"</select></div>",J.showMonthAfterYear?le+=H+he:le+=he+H,te&&(B===0||J.minMonth>=B)&&(re=!1),ce&&(B===11||J.maxMonth<=B)&&(Z=!1),M===0&&(le+='<button class="pika-prev'+(re?"":" is-disabled")+'" type="button">'+J.i18n.previousMonth+"</button>"),M===N._o.numberOfMonths-1&&(le+='<button class="pika-next'+(Z?"":" is-disabled")+'" type="button">'+J.i18n.nextMonth+"</button>"),le+="</div>"},z=function(N,M,L){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+L+'">'+q(N)+G(M)+"</table>"},ae=function(N){var M=this,L=M.config(N);M._onMouseDown=function(ne){if(M._v){ne=ne||window.event;var oe=ne.target||ne.srcElement;if(oe)if(f(oe,"is-disabled")||(f(oe,"pika-button")&&!f(oe,"is-empty")&&!f(oe.parentNode,"is-disabled")?(M.setDate(new Date(oe.getAttribute("data-pika-year"),oe.getAttribute("data-pika-month"),oe.getAttribute("data-pika-day"))),L.bound&&a(function(){M.hide(),L.blurFieldOnSelect&&L.field&&L.field.blur()},100)):f(oe,"pika-prev")?M.prevMonth():f(oe,"pika-next")&&M.nextMonth()),f(oe,"pika-select"))M._c=!0;else if(ne.preventDefault)ne.preventDefault();else return ne.returnValue=!1,!1}},M._onChange=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement;oe&&(f(oe,"pika-select-month")?M.gotoMonth(oe.value):f(oe,"pika-select-year")&&M.gotoYear(oe.value))},M._onKeyChange=function(ne){if(ne=ne||window.event,M.isVisible())switch(ne.keyCode){case 13:case 27:L.field&&L.field.blur();break;case 37:M.adjustDate("subtract",1);break;case 38:M.adjustDate("subtract",7);break;case 39:M.adjustDate("add",1);break;case 40:M.adjustDate("add",7);break;case 8:case 46:M.setDate(null);break}},M._parseFieldValue=function(){if(L.parse)return L.parse(L.field.value,L.format);if(o){var ne=n(L.field.value,L.format,L.formatStrict);return ne&&ne.isValid()?ne.toDate():null}else return new Date(Date.parse(L.field.value))},M._onInputChange=function(ne){var oe;ne.firedBy!==M&&(oe=M._parseFieldValue(),b(oe)&&M.setDate(oe),M._v||M.show())},M._onInputFocus=function(){M.show()},M._onInputClick=function(){M.show()},M._onInputBlur=function(){var ne=i.activeElement;do if(f(ne,"pika-single"))return;while(ne=ne.parentNode);M._c||(M._b=a(function(){M.hide()},50)),M._c=!1},M._onClick=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement,se=oe;if(oe){!r&&f(oe,"pika-select")&&(oe.onchange||(oe.setAttribute("onchange","return;"),l(oe,"change",M._onChange)));do if(f(se,"pika-single")||se===L.trigger)return;while(se=se.parentNode);M._v&&oe!==L.trigger&&se!==L.trigger&&M.hide()}},M.el=i.createElement("div"),M.el.className="pika-single"+(L.isRTL?" is-rtl":"")+(L.theme?" "+L.theme:""),l(M.el,"mousedown",M._onMouseDown,!0),l(M.el,"touchend",M._onMouseDown,!0),l(M.el,"change",M._onChange),L.keyboardInput&&l(i,"keydown",M._onKeyChange),L.field&&(L.container?L.container.appendChild(M.el):L.bound?i.body.appendChild(M.el):L.field.parentNode.insertBefore(M.el,L.field.nextSibling),l(L.field,"change",M._onInputChange),L.defaultDate||(L.defaultDate=M._parseFieldValue(),L.setDefaultDate=!0));var B=L.defaultDate;b(B)?L.setDefaultDate?M.setDate(B,!0):M.gotoDate(B):M.gotoDate(new Date),L.bound?(this.hide(),M.el.className+=" is-bound",l(L.trigger,"click",M._onInputClick),l(L.trigger,"focus",M._onInputFocus),l(L.trigger,"blur",M._onInputBlur)):this.show()};return ae.prototype={config:function(N){this._o||(this._o=S({},A,!0));var M=S(this._o,N,!0);M.isRTL=!!M.isRTL,M.field=M.field&&M.field.nodeName?M.field:null,M.theme=typeof M.theme=="string"&&M.theme?M.theme:null,M.bound=!!(M.bound!==void 0?M.field&&M.bound:M.field),M.trigger=M.trigger&&M.trigger.nodeName?M.trigger:M.field,M.disableWeekends=!!M.disableWeekends,M.disableDayFn=typeof M.disableDayFn=="function"?M.disableDayFn:null;var L=parseInt(M.numberOfMonths,10)||1;if(M.numberOfMonths=L>4?4:L,b(M.minDate)||(M.minDate=!1),b(M.maxDate)||(M.maxDate=!1),M.minDate&&M.maxDate&&M.maxDate<M.minDate&&(M.maxDate=M.minDate=!1),M.minDate&&this.setMinDate(M.minDate),M.maxDate&&this.setMaxDate(M.maxDate),w(M.yearRange)){var B=new Date().getFullYear()-10;M.yearRange[0]=parseInt(M.yearRange[0],10)||B,M.yearRange[1]=parseInt(M.yearRange[1],10)||B}else M.yearRange=Math.abs(parseInt(M.yearRange,10))||A.yearRange,M.yearRange>100&&(M.yearRange=100);return M},toString:function(N){return N=N||this._o.format,b(this._d)?this._o.toString?this._o.toString(this._d,N):o?n(this._d).format(N):this._d.toDateString():""},getMoment:function(){return o?n(this._d):null},setMoment:function(N,M){o&&n.isMoment(N)&&this.setDate(N.toDate(),M)},getDate:function(){return b(this._d)?new Date(this._d.getTime()):null},setDate:function(N,M){if(!N)return this._d=null,this._o.field&&(this._o.field.value="",C(this._o.field,"change",{firedBy:this})),this.draw();if(typeof N=="string"&&(N=new Date(Date.parse(N))),!!b(N)){var L=this._o.minDate,B=this._o.maxDate;b(L)&&N<L?N=L:b(B)&&N>B&&(N=B),this._d=new Date(N.getTime()),D(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),C(this._o.field,"change",{firedBy:this})),!M&&typeof this._o.onSelect=="function"&&this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(N){var M=!0;if(b(N)){if(this.calendars){var L=new Date(this.calendars[0].year,this.calendars[0].month,1),B=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),ne=N.getTime();B.setMonth(B.getMonth()+1),B.setDate(B.getDate()-1),M=ne<L.getTime()||B.getTime()<ne}M&&(this.calendars=[{month:N.getMonth(),year:N.getFullYear()}],this._o.mainCalendar==="right"&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(N,M){var L=this.getDate()||new Date,B=parseInt(M)*24*60*60*1e3,ne;N==="add"?ne=new Date(L.valueOf()+B):N==="subtract"&&(ne=new Date(L.valueOf()-B)),this.setDate(ne)},adjustCalendars:function(){this.calendars[0]=O(this.calendars[0]);for(var N=1;N<this._o.numberOfMonths;N++)this.calendars[N]=O({month:this.calendars[0].month+N,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(N){isNaN(N)||(this.calendars[0].month=parseInt(N,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(N){isNaN(N)||(this.calendars[0].year=parseInt(N,10),this.adjustCalendars())},setMinDate:function(N){N instanceof Date?(D(N),this._o.minDate=N,this._o.minYear=N.getFullYear(),this._o.minMonth=N.getMonth()):(this._o.minDate=A.minDate,this._o.minYear=A.minYear,this._o.minMonth=A.minMonth,this._o.startRange=A.startRange),this.draw()},setMaxDate:function(N){N instanceof Date?(D(N),this._o.maxDate=N,this._o.maxYear=N.getFullYear(),this._o.maxMonth=N.getMonth()):(this._o.maxDate=A.maxDate,this._o.maxYear=A.maxYear,this._o.maxMonth=A.maxMonth,this._o.endRange=A.endRange),this.draw()},setStartRange:function(N){this._o.startRange=N},setEndRange:function(N){this._o.endRange=N},draw:function(N){if(!(!this._v&&!N)){var M=this._o,L=M.minYear,B=M.maxYear,ne=M.minMonth,oe=M.maxMonth,se="",j;this._y<=L&&(this._y=L,!isNaN(ne)&&this._m<ne&&(this._m=ne)),this._y>=B&&(this._y=B,!isNaN(oe)&&this._m>oe&&(this._m=oe));for(var ee=0;ee<M.numberOfMonths;ee++)j="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),se+='<div class="pika-lendar">'+Y(this,ee,this.calendars[ee].year,this.calendars[ee].month,this.calendars[0].year,j)+this.render(this.calendars[ee].year,this.calendars[ee].month,j)+"</div>";this.el.innerHTML=se,M.bound&&M.field.type!=="hidden"&&a(function(){M.trigger.focus()},1),typeof this._o.onDraw=="function"&&this._o.onDraw(this),M.bound&&M.field.setAttribute("aria-label",M.ariaLabel)}},adjustPosition:function(){var N,M,L,B,ne,oe,se,j,ee,J,te,ce;if(!this._o.container){if(this.el.style.position="absolute",N=this._o.trigger,M=N,L=this.el.offsetWidth,B=this.el.offsetHeight,ne=window.innerWidth||i.documentElement.clientWidth,oe=window.innerHeight||i.documentElement.clientHeight,se=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,te=!0,ce=!0,typeof N.getBoundingClientRect=="function")J=N.getBoundingClientRect(),j=J.left+window.pageXOffset,ee=J.bottom+window.pageYOffset;else for(j=M.offsetLeft,ee=M.offsetTop+M.offsetHeight;M=M.offsetParent;)j+=M.offsetLeft,ee+=M.offsetTop;(this._o.reposition&&j+L>ne||this._o.position.indexOf("right")>-1&&j-L+N.offsetWidth>0)&&(j=j-L+N.offsetWidth,te=!1),(this._o.reposition&&ee+B>oe+se||this._o.position.indexOf("top")>-1&&ee-B-N.offsetHeight>0)&&(ee=ee-B-N.offsetHeight,ce=!1),this.el.style.left=j+"px",this.el.style.top=ee+"px",p(this.el,te?"left-aligned":"right-aligned"),p(this.el,ce?"bottom-aligned":"top-aligned"),y(this.el,te?"right-aligned":"left-aligned"),y(this.el,ce?"top-aligned":"bottom-aligned")}},render:function(N,M,L){var B=this._o,ne=new Date,oe=P(N,M),se=new Date(N,M,1).getDay(),j=[],ee=[];D(ne),B.firstDay>0&&(se-=B.firstDay,se<0&&(se+=7));for(var J=M===0?11:M-1,te=M===11?0:M+1,ce=M===0?N-1:N,le=M===11?N+1:N,he=P(ce,J),H=oe+se,re=H;re>7;)re-=7;H+=7-re;for(var Z=!1,fe=0,pe=0;fe<H;fe++){var be=new Date(N,M,1+(fe-se)),ge=b(this._d)?x(be,this._d):!1,Re=x(be,ne),Ve=B.events.indexOf(be.toDateString())!==-1,Ne=fe<se||fe>=oe+se,Je=1+(fe-se),Ee=M,ut=N,Ut=B.startRange&&x(B.startRange,be),rt=B.endRange&&x(B.endRange,be),Ot=B.startRange&&B.endRange&&B.startRange<be&&be<B.endRange,qt=B.minDate&&be<B.minDate||B.maxDate&&be>B.maxDate||B.disableWeekends&&m(be)||B.disableDayFn&&B.disableDayFn(be);Ne&&(fe<se?(Je=he+Je,Ee=J,ut=ce):(Je=Je-oe,Ee=te,ut=le));var Lt={day:Je,month:Ee,year:ut,hasEvent:Ve,isSelected:ge,isToday:Re,isDisabled:qt,isEmpty:Ne,isStartRange:Ut,isEndRange:rt,isInRange:Ot,showDaysInNextAndPreviousMonths:B.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:B.enableSelectionDaysInNextAndPreviousMonths};B.pickWholeWeek&&ge&&(Z=!0),ee.push(W(Lt)),++pe===7&&(B.showWeekNumber&&ee.unshift($(fe-se,M,N,B.firstWeekOfYearMinDays)),j.push(K(ee,B.isRTL,B.pickWholeWeek,Z)),ee=[],pe=0,Z=!1)}return z(B,j,L)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),y(this.el,"is-hidden"),this._o.bound&&(l(i,"click",this._onClick),this.adjustPosition()),typeof this._o.onOpen=="function"&&this._o.onOpen.call(this))},hide:function(){var N=this._v;N!==!1&&(this._o.bound&&d(i,"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),p(this.el,"is-hidden"),this._v=!1,N!==void 0&&typeof this._o.onClose=="function"&&this._o.onClose.call(this))},destroy:function(){var N=this._o;this.hide(),d(this.el,"mousedown",this._onMouseDown,!0),d(this.el,"touchend",this._onMouseDown,!0),d(this.el,"change",this._onChange),N.keyboardInput&&d(i,"keydown",this._onKeyChange),N.field&&(d(N.field,"change",this._onInputChange),N.bound&&(d(N.trigger,"click",this._onInputClick),d(N.trigger,"focus",this._onInputFocus),d(N.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},ae})}(Cl)),Cl.exports}DB();class jb{constructor(t){this.args=t,this.defaultOptions={Yes:"Yes",No:"No"},this.defaultValue="",this.keyCaptureList=[No.UP,No.DOWN,No.ENTER],this.select=document.createElement("select"),this.init()}init(){this.select.classList.add("editor-yesno"),this.select.setAttribute("tabIndex","0"),this.select.append(...OB(this.htmlOptionElements())),this.args.container.append(this.select),this.select.focus()}htmlOptionElements(){const n=this.args.column.selectOptions||this.defaultOptions,o=[];for(const r in n){const i=document.createElement("option");i.value=r,i.innerText=`${n[r]}`,o.push(i)}return o}destroy(){this.select.remove()}focus(){this.select.focus()}loadValue(t){this.defaultValue=t[this.args.column.field],this.select.value=`${this.defaultValue}`}serializeValue(){return this.select.value}applyValue(t,n){t[this.args.column.field]=n}isValueChanged(){return!this.select.value&&!this.defaultValue?!1:this.select.value!=this.defaultValue}validate(){return this.args.column.validator?this.args.column.validator(this.select.value,this.args):{valid:!0}}}function OB(e){return e.sort((t,n)=>t.innerText.toLowerCase()>n.innerText.toLowerCase()?1:t.innerText.toLowerCase()<n.innerText.toLowerCase()?-1:0)}class MB extends jb{applyValue(t,n){t[this.args.column.field]=Number(n)}}const IB=(e,t,n)=>n==="0"?"":n?"<span class='sgi sgi-check green'></span>":"";function Wb(e){return function(n,o,r){return Ic(r,e)}}const NB=Wb().name,AB=(e,t)=>{const n=e.sum&&e.sum[t.field];return n!==null?`${e.group.level?"total":"TOTAL"}: ${Ic(n)}`:""},FB=(e,t,n)=>{const r=e.getData().getRowById(t);if(r===void 0)return;const i=e.getColumnIndex(n);e.gotoCell(r,i),e.setCellCssStyles(`${r}`,{[r]:{[n]:"wink"}}),setTimeout(()=>{e.removeCellCssStyles(`${r}`)},1500)};function LB(e){return e.reduce((t,n)=>(t[n]="wink",t),{})}function $B(e,t){const o=e.getData().getLength(),r=VB(o,t);e.setCellCssStyles("wink",r),setTimeout(()=>{e.removeCellCssStyles("wink")},1500)}function VB(e,t){const n=LB(t),o={};let r=0;for(;r<e;)o[r]=n,r++;return o}function jB(e,t,n){return n==="0"?"":n?"Yes":""}function WB(e){if(!e.getSelectionModel())return eg(e);let t=e.getSelectedRows();return t.sort((n,o)=>n-o),t.length===0&&(t=eg(e)),t}function eg(e){const t=e.getData();return Array.from({length:t.getLength()},(n,o)=>o)}const da="ignore";function Bb(e,t,n,o){const r=o[n];n===da?t.field=String(t.id):t.field=n,t.cssClass=r.cssClass,t.editor=r.editor,t.selectOptions=r.selectOptions,t.validator=r.validator,e.updateColumnHeader(t.id,r.field)}function Hb(e,t,n){const r=e.getData().getItems();n!==t.field&&r.forEach(i=>{n===da?i[t.id]=i[t.field]:i[n]=i[t.field],delete i[t.field]})}function BB(e,t,n,o){const i=e.getColumns().find(a=>a.field===n&&a.id!==t.id);i&&(Hb(e,i,da),Bb(e,i,da,o))}function HB(e,t){return function(o,r){const i=r.grid,a=r.column,l=r.command;BB(i,a,l,e),Hb(i,a,l),Bb(i,a,l,e),i.invalidate(),t.hotKeysBehavior.resetQueue(),t.hotKeysBehavior.pushToCommandQueue(i)}}class zB{constructor(){this.emptyValue="1/1/1970"}dates(t,n){const o=Ts(t||this.emptyValue),r=Ts(n||this.emptyValue);return o-r}numbers(t,n){return Number(t||0)-Number(n||0)}stringsNumeric(t,n){return!t&&!n?0:t?n?t.localeCompare(n,void 0,{numeric:!0}):1:-1}strings(t,n){return(t||"").toLowerCase()>(n||"").toLowerCase()?1:(t||"").toLowerCase()<(n||"").toLowerCase()?-1:0}numbersWithSymbols(t,n){const o=Number((t||"0").match(/^\d+/g)?.[0]||0);return Number((n||"0").match(/^\d+/g)?.[0]||0)-o}}const YB=new zB;class zb{constructor(){this.sort=YB,this.withFormatter=[Ro.TEXT,Ro.NUMBER_FORMATTED]}getSortFunction(t){let n="",o=!1,r;return(i,a)=>{const{grid:l,sortAsc:d,columnId:u}=a,f=a.sortCol;if(!l||!f)return;const p=f.field;if(!p)return;const y=f.sortAs;if(!y)return;const{formatter:w}=f,b=l.getData();d&&n===f?.id?(o=!0,mo.sorting.reset(t),l.setSortColumns([]),n=""):(o=!1,n=u,mo.sorting.set(t,u,d));const m=d?-1:1,v=b.getGrouping(),P=v.find(({getter:D})=>D===f.id);if(P){if(r||(r=v.map(({comparer:D})=>D)),o){const D=b.getGrouping(),x=D.findIndex(({getter:S})=>S===f.id);D[x].comparer=r[x],b.refresh();return}P.comparer=(D,x)=>{let S=D.value,C=x.value;return w&&this.withFormatter.includes(y)&&(S=w(0,0,S,f,null,l),C=w(0,0,C,f,null,l)),this.priority(D,x)||this.compare(S,C,m,y)}}else{const D=b.getItems(),x=b.getIdPropertyName();D.sort((S,C)=>{if(o)return S[x]-C[x];let O=S[p],A=C[p];return w&&this.withFormatter.includes(y)&&(O=w(0,0,O,f,S,l),A=w(0,0,A,f,C,l)),this.priority(S,C)||this.compare(O,A,m,y)})}b.refresh()}}priority(t,n){return 0}restoreSorting(t){const n=t.grid;if(!n)return;const o=mo.sorting.get(t.id);if(o){const{columnId:r,isAscending:i}=o,a=this.getSortFunction(t.id),l=n.getColumns().find(({id:d})=>d===r);if(l){a(null,{grid:n,columnId:r,sortAsc:i,sortCol:l,sortCols:[]});const d=document.querySelector(`#${t.id} [data-id="${r}"]`);if(!d)return;d.classList.add("slick-header-column-sorted");const u=d.querySelector(".slick-sort-indicator");if(!u)return;u.classList.add(`slick-sort-indicator-${i?"asc":"desc"}`),n.invalidate()}}}compare(t,n,o,r){switch(r){case Ro.DATE:return this.sort.dates(t,n)*o;case Ro.NUMBER:case Ro.NUMBER_FORMATTED:return this.sort.numbers(t,n)*o;case Ro.TEXT_NUMERIC:return this.sort.stringsNumeric(t,n)*o;case Ro.TEXT:return this.sort.strings(t,n)*o;default:return 0}}}const UB=new zb;class qB{constructor(t,n){this.columnsWithTitle=t,this.columnsWithValue=n}calculate(t){let n=t.getColumns().length;for(;n--;)this.calculateColumn(n,t)}calculateColumn(t,n){const r=n.getColumns()[t].field;this.columnsWithTitle.includes(r)?this.addTitle(n,t):this.columnsWithValue.includes(r)&&this.addTotal(n,t)}addTitle(t,n){const r=t.getColumns()[n].id,i=t.getFooterRowColumn(r);i.textContent="TOTAL:"}addTotal(t,n){const o=t.getColumns()[n],r=o.field,i=t.getData(),a=this.displayedRows(i),l=this.totalAmountOf(a,r),d=t.getFooterRowColumn(r),u=o.formatter;d.textContent=`${u?u(0,0,l,o,null,t):l}`}displayedRows(t){const n=[],o=t.getLength();if(!o)return n;for(let r=0;r<o;r++)n.push(t.getItem(r));return n}totalAmountOf(t,n){return t.reduce((o,r)=>(r.isDeleted||(o+=Number(r[n])||0),o),0)}}exports.Autocomplete=Vb;exports.BOLD=zD;exports.ColumnPicker=LD;exports.ColumnSorter=zb;exports.DecoratorColumnFilter=nB;exports.DecoratorFilter=Nv;exports.DefaultHotKeys=jD;exports.DefaultPrinter=Nb;exports.DeletedRowsFilter=GN;exports.EColumnFilter=je;exports.EColumnFiltersGroup=pn;exports.ESortType=Ro;exports.EditorAutocomplete=EB;exports.EditorSelectNumber=MB;exports.EditorSelectString=jb;exports.FORMATTER_NUMBER=NB;exports.Filter=Iv;exports.HotKeysDecorator=bc;exports.IGNORE=da;exports.PreventCopying=WD;exports.RedoUndoOnly=BD;exports.Skeleton=kD;exports.SlickTable=lB;exports.SlickgridTable=KW;exports.TotalCalculator=qB;exports.WINK=HD;exports.WithSummary=qN;exports.WithoutHotKeys=Wy;exports.columnCheckboxSelector=XW;exports.columnIsEdited=QW;exports.commitCurrentEdit=Hh;exports.copySelectedRows=Lb;exports.eventContextMenu=on;exports.formatNumber=Ic;exports.formatterCheckMark=IB;exports.formatterGroupTotals=AB;exports.getDisplayedRows=Hc;exports.getFormatterNumber=Wb;exports.getNextId=Bc;exports.getOnHeaderMenuCommand=HB;exports.handleHeaderButtons=Av;exports.headerButtons=$o;exports.highlightCell=FB;exports.highlightColumns=$B;exports.hotKeysCopy=Yh;exports.hotKeysDelete=Ab;exports.hotKeysRedo=Uh;exports.hotKeysUndo=qh;exports.openColumnFilter=XN;exports.printerCheckMark=jB;exports.useListenIfTablesWereEdited=wB;
|
|
399
|
+
*/var DB=Cl.exports,Jm;function OB(){return Jm||(Jm=1,function(e,t){(function(n,o){var r;{try{r=PB}catch{}e.exports=o(r)}})(DB,function(n){var o=typeof n=="function",r=!!window.addEventListener,i=window.document,a=window.setTimeout,l=function(N,M,L,B){r?N.addEventListener(M,L,!!B):N.attachEvent("on"+M,L)},d=function(N,M,L,B){r?N.removeEventListener(M,L,!!B):N.detachEvent("on"+M,L)},u=function(N){return N.trim?N.trim():N.replace(/^\s+|\s+$/g,"")},f=function(N,M){return(" "+N.className+" ").indexOf(" "+M+" ")!==-1},p=function(N,M){f(N,M)||(N.className=N.className===""?M:N.className+" "+M)},y=function(N,M){N.className=u((" "+N.className+" ").replace(" "+M+" "," "))},w=function(N){return/Array/.test(Object.prototype.toString.call(N))},b=function(N){return/Date/.test(Object.prototype.toString.call(N))&&!isNaN(N.getTime())},m=function(N){var M=N.getDay();return M===0||M===6},v=function(N){return N%4===0&&N%100!==0||N%400===0},P=function(N,M){return[31,v(N)?29:28,31,30,31,30,31,31,30,31,30,31][M]},D=function(N){b(N)&&N.setHours(0,0,0,0)},x=function(N,M){return N.getTime()===M.getTime()},S=function(N,M,L){var B,ne;for(B in M)ne=N[B]!==void 0,ne&&typeof M[B]=="object"&&M[B]!==null&&M[B].nodeName===void 0?b(M[B])?L&&(N[B]=new Date(M[B].getTime())):w(M[B])?L&&(N[B]=M[B].slice(0)):N[B]=S({},M[B],L):(L||!ne)&&(N[B]=M[B]);return N},C=function(N,M,L){var B;i.createEvent?(B=i.createEvent("HTMLEvents"),B.initEvent(M,!0,!1),B=S(B,L),N.dispatchEvent(B)):i.createEventObject&&(B=i.createEventObject(),B=S(B,L),N.fireEvent("on"+M,B))},O=function(N){return N.month<0&&(N.year-=Math.ceil(Math.abs(N.month)/12),N.month+=12),N.month>11&&(N.year+=Math.floor(Math.abs(N.month)/12),N.month-=12),N},A={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},F=function(N,M,L){for(M+=N.firstDay;M>=7;)M-=7;return L?N.i18n.weekdaysShort[M]:N.i18n.weekdays[M]},W=function(N){var M=[],L="false";if(N.isEmpty)if(N.showDaysInNextAndPreviousMonths)M.push("is-outside-current-month"),N.enableSelectionDaysInNextAndPreviousMonths||M.push("is-selection-disabled");else return'<td class="is-empty"></td>';return N.isDisabled&&M.push("is-disabled"),N.isToday&&M.push("is-today"),N.isSelected&&(M.push("is-selected"),L="true"),N.hasEvent&&M.push("has-event"),N.isInRange&&M.push("is-inrange"),N.isStartRange&&M.push("is-startrange"),N.isEndRange&&M.push("is-endrange"),'<td data-day="'+N.day+'" class="'+M.join(" ")+'" aria-selected="'+L+'"><button class="pika-button pika-day" type="button" data-pika-year="'+N.year+'" data-pika-month="'+N.month+'" data-pika-day="'+N.day+'">'+N.day+"</button></td>"},R=function(N,M){N.setHours(0,0,0,0);var L=N.getDate(),B=N.getDay(),ne=M,oe=ne-1,se=7,j=function(le){return(le+se-1)%se};N.setDate(L+oe-j(B));var ee=new Date(N.getFullYear(),0,ne),J=24*60*60*1e3,te=(N.getTime()-ee.getTime())/J,ce=1+Math.round((te-oe+j(ee.getDay()))/se);return ce},$=function(N,M,L,B){var ne=new Date(L,M,N),oe=o?n(ne).isoWeek():R(ne,B);return'<td class="pika-week">'+oe+"</td>"},K=function(N,M,L,B){return'<tr class="pika-row'+(L?" pick-whole-week":"")+(B?" is-selected":"")+'">'+(M?N.reverse():N).join("")+"</tr>"},G=function(N){return"<tbody>"+N.join("")+"</tbody>"},q=function(N){var M,L=[];for(N.showWeekNumber&&L.push("<th></th>"),M=0;M<7;M++)L.push('<th scope="col"><abbr title="'+F(N,M)+'">'+F(N,M,!0)+"</abbr></th>");return"<thead><tr>"+(N.isRTL?L.reverse():L).join("")+"</tr></thead>"},Y=function(N,M,L,B,ne,oe){var se,j,ee,J=N._o,te=L===J.minYear,ce=L===J.maxYear,le='<div id="'+oe+'" class="pika-title" role="heading" aria-live="assertive">',he,H,re=!0,Z=!0;for(ee=[],se=0;se<12;se++)ee.push('<option value="'+(L===ne?se-M:12+se-M)+'"'+(se===B?' selected="selected"':"")+(te&&se<J.minMonth||ce&&se>J.maxMonth?' disabled="disabled"':"")+">"+J.i18n.months[se]+"</option>");for(he='<div class="pika-label">'+J.i18n.months[B]+'<select class="pika-select pika-select-month" tabindex="-1">'+ee.join("")+"</select></div>",w(J.yearRange)?(se=J.yearRange[0],j=J.yearRange[1]+1):(se=L-J.yearRange,j=1+L+J.yearRange),ee=[];se<j&&se<=J.maxYear;se++)se>=J.minYear&&ee.push('<option value="'+se+'"'+(se===L?' selected="selected"':"")+">"+se+"</option>");return H='<div class="pika-label">'+L+J.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+ee.join("")+"</select></div>",J.showMonthAfterYear?le+=H+he:le+=he+H,te&&(B===0||J.minMonth>=B)&&(re=!1),ce&&(B===11||J.maxMonth<=B)&&(Z=!1),M===0&&(le+='<button class="pika-prev'+(re?"":" is-disabled")+'" type="button">'+J.i18n.previousMonth+"</button>"),M===N._o.numberOfMonths-1&&(le+='<button class="pika-next'+(Z?"":" is-disabled")+'" type="button">'+J.i18n.nextMonth+"</button>"),le+="</div>"},z=function(N,M,L){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+L+'">'+q(N)+G(M)+"</table>"},ae=function(N){var M=this,L=M.config(N);M._onMouseDown=function(ne){if(M._v){ne=ne||window.event;var oe=ne.target||ne.srcElement;if(oe)if(f(oe,"is-disabled")||(f(oe,"pika-button")&&!f(oe,"is-empty")&&!f(oe.parentNode,"is-disabled")?(M.setDate(new Date(oe.getAttribute("data-pika-year"),oe.getAttribute("data-pika-month"),oe.getAttribute("data-pika-day"))),L.bound&&a(function(){M.hide(),L.blurFieldOnSelect&&L.field&&L.field.blur()},100)):f(oe,"pika-prev")?M.prevMonth():f(oe,"pika-next")&&M.nextMonth()),f(oe,"pika-select"))M._c=!0;else if(ne.preventDefault)ne.preventDefault();else return ne.returnValue=!1,!1}},M._onChange=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement;oe&&(f(oe,"pika-select-month")?M.gotoMonth(oe.value):f(oe,"pika-select-year")&&M.gotoYear(oe.value))},M._onKeyChange=function(ne){if(ne=ne||window.event,M.isVisible())switch(ne.keyCode){case 13:case 27:L.field&&L.field.blur();break;case 37:M.adjustDate("subtract",1);break;case 38:M.adjustDate("subtract",7);break;case 39:M.adjustDate("add",1);break;case 40:M.adjustDate("add",7);break;case 8:case 46:M.setDate(null);break}},M._parseFieldValue=function(){if(L.parse)return L.parse(L.field.value,L.format);if(o){var ne=n(L.field.value,L.format,L.formatStrict);return ne&&ne.isValid()?ne.toDate():null}else return new Date(Date.parse(L.field.value))},M._onInputChange=function(ne){var oe;ne.firedBy!==M&&(oe=M._parseFieldValue(),b(oe)&&M.setDate(oe),M._v||M.show())},M._onInputFocus=function(){M.show()},M._onInputClick=function(){M.show()},M._onInputBlur=function(){var ne=i.activeElement;do if(f(ne,"pika-single"))return;while(ne=ne.parentNode);M._c||(M._b=a(function(){M.hide()},50)),M._c=!1},M._onClick=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement,se=oe;if(oe){!r&&f(oe,"pika-select")&&(oe.onchange||(oe.setAttribute("onchange","return;"),l(oe,"change",M._onChange)));do if(f(se,"pika-single")||se===L.trigger)return;while(se=se.parentNode);M._v&&oe!==L.trigger&&se!==L.trigger&&M.hide()}},M.el=i.createElement("div"),M.el.className="pika-single"+(L.isRTL?" is-rtl":"")+(L.theme?" "+L.theme:""),l(M.el,"mousedown",M._onMouseDown,!0),l(M.el,"touchend",M._onMouseDown,!0),l(M.el,"change",M._onChange),L.keyboardInput&&l(i,"keydown",M._onKeyChange),L.field&&(L.container?L.container.appendChild(M.el):L.bound?i.body.appendChild(M.el):L.field.parentNode.insertBefore(M.el,L.field.nextSibling),l(L.field,"change",M._onInputChange),L.defaultDate||(L.defaultDate=M._parseFieldValue(),L.setDefaultDate=!0));var B=L.defaultDate;b(B)?L.setDefaultDate?M.setDate(B,!0):M.gotoDate(B):M.gotoDate(new Date),L.bound?(this.hide(),M.el.className+=" is-bound",l(L.trigger,"click",M._onInputClick),l(L.trigger,"focus",M._onInputFocus),l(L.trigger,"blur",M._onInputBlur)):this.show()};return ae.prototype={config:function(N){this._o||(this._o=S({},A,!0));var M=S(this._o,N,!0);M.isRTL=!!M.isRTL,M.field=M.field&&M.field.nodeName?M.field:null,M.theme=typeof M.theme=="string"&&M.theme?M.theme:null,M.bound=!!(M.bound!==void 0?M.field&&M.bound:M.field),M.trigger=M.trigger&&M.trigger.nodeName?M.trigger:M.field,M.disableWeekends=!!M.disableWeekends,M.disableDayFn=typeof M.disableDayFn=="function"?M.disableDayFn:null;var L=parseInt(M.numberOfMonths,10)||1;if(M.numberOfMonths=L>4?4:L,b(M.minDate)||(M.minDate=!1),b(M.maxDate)||(M.maxDate=!1),M.minDate&&M.maxDate&&M.maxDate<M.minDate&&(M.maxDate=M.minDate=!1),M.minDate&&this.setMinDate(M.minDate),M.maxDate&&this.setMaxDate(M.maxDate),w(M.yearRange)){var B=new Date().getFullYear()-10;M.yearRange[0]=parseInt(M.yearRange[0],10)||B,M.yearRange[1]=parseInt(M.yearRange[1],10)||B}else M.yearRange=Math.abs(parseInt(M.yearRange,10))||A.yearRange,M.yearRange>100&&(M.yearRange=100);return M},toString:function(N){return N=N||this._o.format,b(this._d)?this._o.toString?this._o.toString(this._d,N):o?n(this._d).format(N):this._d.toDateString():""},getMoment:function(){return o?n(this._d):null},setMoment:function(N,M){o&&n.isMoment(N)&&this.setDate(N.toDate(),M)},getDate:function(){return b(this._d)?new Date(this._d.getTime()):null},setDate:function(N,M){if(!N)return this._d=null,this._o.field&&(this._o.field.value="",C(this._o.field,"change",{firedBy:this})),this.draw();if(typeof N=="string"&&(N=new Date(Date.parse(N))),!!b(N)){var L=this._o.minDate,B=this._o.maxDate;b(L)&&N<L?N=L:b(B)&&N>B&&(N=B),this._d=new Date(N.getTime()),D(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),C(this._o.field,"change",{firedBy:this})),!M&&typeof this._o.onSelect=="function"&&this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(N){var M=!0;if(b(N)){if(this.calendars){var L=new Date(this.calendars[0].year,this.calendars[0].month,1),B=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),ne=N.getTime();B.setMonth(B.getMonth()+1),B.setDate(B.getDate()-1),M=ne<L.getTime()||B.getTime()<ne}M&&(this.calendars=[{month:N.getMonth(),year:N.getFullYear()}],this._o.mainCalendar==="right"&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(N,M){var L=this.getDate()||new Date,B=parseInt(M)*24*60*60*1e3,ne;N==="add"?ne=new Date(L.valueOf()+B):N==="subtract"&&(ne=new Date(L.valueOf()-B)),this.setDate(ne)},adjustCalendars:function(){this.calendars[0]=O(this.calendars[0]);for(var N=1;N<this._o.numberOfMonths;N++)this.calendars[N]=O({month:this.calendars[0].month+N,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(N){isNaN(N)||(this.calendars[0].month=parseInt(N,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(N){isNaN(N)||(this.calendars[0].year=parseInt(N,10),this.adjustCalendars())},setMinDate:function(N){N instanceof Date?(D(N),this._o.minDate=N,this._o.minYear=N.getFullYear(),this._o.minMonth=N.getMonth()):(this._o.minDate=A.minDate,this._o.minYear=A.minYear,this._o.minMonth=A.minMonth,this._o.startRange=A.startRange),this.draw()},setMaxDate:function(N){N instanceof Date?(D(N),this._o.maxDate=N,this._o.maxYear=N.getFullYear(),this._o.maxMonth=N.getMonth()):(this._o.maxDate=A.maxDate,this._o.maxYear=A.maxYear,this._o.maxMonth=A.maxMonth,this._o.endRange=A.endRange),this.draw()},setStartRange:function(N){this._o.startRange=N},setEndRange:function(N){this._o.endRange=N},draw:function(N){if(!(!this._v&&!N)){var M=this._o,L=M.minYear,B=M.maxYear,ne=M.minMonth,oe=M.maxMonth,se="",j;this._y<=L&&(this._y=L,!isNaN(ne)&&this._m<ne&&(this._m=ne)),this._y>=B&&(this._y=B,!isNaN(oe)&&this._m>oe&&(this._m=oe));for(var ee=0;ee<M.numberOfMonths;ee++)j="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),se+='<div class="pika-lendar">'+Y(this,ee,this.calendars[ee].year,this.calendars[ee].month,this.calendars[0].year,j)+this.render(this.calendars[ee].year,this.calendars[ee].month,j)+"</div>";this.el.innerHTML=se,M.bound&&M.field.type!=="hidden"&&a(function(){M.trigger.focus()},1),typeof this._o.onDraw=="function"&&this._o.onDraw(this),M.bound&&M.field.setAttribute("aria-label",M.ariaLabel)}},adjustPosition:function(){var N,M,L,B,ne,oe,se,j,ee,J,te,ce;if(!this._o.container){if(this.el.style.position="absolute",N=this._o.trigger,M=N,L=this.el.offsetWidth,B=this.el.offsetHeight,ne=window.innerWidth||i.documentElement.clientWidth,oe=window.innerHeight||i.documentElement.clientHeight,se=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,te=!0,ce=!0,typeof N.getBoundingClientRect=="function")J=N.getBoundingClientRect(),j=J.left+window.pageXOffset,ee=J.bottom+window.pageYOffset;else for(j=M.offsetLeft,ee=M.offsetTop+M.offsetHeight;M=M.offsetParent;)j+=M.offsetLeft,ee+=M.offsetTop;(this._o.reposition&&j+L>ne||this._o.position.indexOf("right")>-1&&j-L+N.offsetWidth>0)&&(j=j-L+N.offsetWidth,te=!1),(this._o.reposition&&ee+B>oe+se||this._o.position.indexOf("top")>-1&&ee-B-N.offsetHeight>0)&&(ee=ee-B-N.offsetHeight,ce=!1),this.el.style.left=j+"px",this.el.style.top=ee+"px",p(this.el,te?"left-aligned":"right-aligned"),p(this.el,ce?"bottom-aligned":"top-aligned"),y(this.el,te?"right-aligned":"left-aligned"),y(this.el,ce?"top-aligned":"bottom-aligned")}},render:function(N,M,L){var B=this._o,ne=new Date,oe=P(N,M),se=new Date(N,M,1).getDay(),j=[],ee=[];D(ne),B.firstDay>0&&(se-=B.firstDay,se<0&&(se+=7));for(var J=M===0?11:M-1,te=M===11?0:M+1,ce=M===0?N-1:N,le=M===11?N+1:N,he=P(ce,J),H=oe+se,re=H;re>7;)re-=7;H+=7-re;for(var Z=!1,fe=0,pe=0;fe<H;fe++){var be=new Date(N,M,1+(fe-se)),ge=b(this._d)?x(be,this._d):!1,Re=x(be,ne),Ve=B.events.indexOf(be.toDateString())!==-1,Ne=fe<se||fe>=oe+se,Je=1+(fe-se),Ee=M,ut=N,Ut=B.startRange&&x(B.startRange,be),rt=B.endRange&&x(B.endRange,be),Ot=B.startRange&&B.endRange&&B.startRange<be&&be<B.endRange,qt=B.minDate&&be<B.minDate||B.maxDate&&be>B.maxDate||B.disableWeekends&&m(be)||B.disableDayFn&&B.disableDayFn(be);Ne&&(fe<se?(Je=he+Je,Ee=J,ut=ce):(Je=Je-oe,Ee=te,ut=le));var Lt={day:Je,month:Ee,year:ut,hasEvent:Ve,isSelected:ge,isToday:Re,isDisabled:qt,isEmpty:Ne,isStartRange:Ut,isEndRange:rt,isInRange:Ot,showDaysInNextAndPreviousMonths:B.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:B.enableSelectionDaysInNextAndPreviousMonths};B.pickWholeWeek&&ge&&(Z=!0),ee.push(W(Lt)),++pe===7&&(B.showWeekNumber&&ee.unshift($(fe-se,M,N,B.firstWeekOfYearMinDays)),j.push(K(ee,B.isRTL,B.pickWholeWeek,Z)),ee=[],pe=0,Z=!1)}return z(B,j,L)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),y(this.el,"is-hidden"),this._o.bound&&(l(i,"click",this._onClick),this.adjustPosition()),typeof this._o.onOpen=="function"&&this._o.onOpen.call(this))},hide:function(){var N=this._v;N!==!1&&(this._o.bound&&d(i,"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),p(this.el,"is-hidden"),this._v=!1,N!==void 0&&typeof this._o.onClose=="function"&&this._o.onClose.call(this))},destroy:function(){var N=this._o;this.hide(),d(this.el,"mousedown",this._onMouseDown,!0),d(this.el,"touchend",this._onMouseDown,!0),d(this.el,"change",this._onChange),N.keyboardInput&&d(i,"keydown",this._onKeyChange),N.field&&(d(N.field,"change",this._onInputChange),N.bound&&(d(N.trigger,"click",this._onInputClick),d(N.trigger,"focus",this._onInputFocus),d(N.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},ae})}(Cl)),Cl.exports}OB();class jb{constructor(t){this.args=t,this.defaultOptions={Yes:"Yes",No:"No"},this.defaultValue="",this.keyCaptureList=[No.UP,No.DOWN,No.ENTER],this.select=document.createElement("select"),this.init()}init(){this.select.classList.add("editor-yesno"),this.select.setAttribute("tabIndex","0"),this.select.append(...MB(this.htmlOptionElements())),this.args.container.append(this.select),this.select.focus()}htmlOptionElements(){const n=this.args.column.selectOptions||this.defaultOptions,o=[];for(const r in n){const i=document.createElement("option");i.value=r,i.innerText=`${n[r]}`,o.push(i)}return o}destroy(){this.select.remove()}focus(){this.select.focus()}loadValue(t){this.defaultValue=t[this.args.column.field],this.select.value=`${this.defaultValue}`}serializeValue(){return this.select.value}applyValue(t,n){t[this.args.column.field]=n}isValueChanged(){return!this.select.value&&!this.defaultValue?!1:this.select.value!=this.defaultValue}validate(){return this.args.column.validator?this.args.column.validator(this.select.value,this.args):{valid:!0}}}function MB(e){return e.sort((t,n)=>t.innerText.toLowerCase()>n.innerText.toLowerCase()?1:t.innerText.toLowerCase()<n.innerText.toLowerCase()?-1:0)}class IB extends jb{applyValue(t,n){t[this.args.column.field]=Number(n)}}const NB=(e,t,n)=>n==="0"?"":n?"<span class='sgi sgi-check green'></span>":"";function Wb(e){return function(n,o,r){return Ic(r,e)}}const AB=Wb().name,FB=(e,t)=>{const n=e.sum&&e.sum[t.field];return n!==null?`${e.group.level?"total":"TOTAL"}: ${Ic(n)}`:""},LB=(e,t,n)=>{const r=e.getData().getRowById(t);if(r===void 0)return;const i=e.getColumnIndex(n);e.gotoCell(r,i),e.setCellCssStyles(`${r}`,{[r]:{[n]:"wink"}}),setTimeout(()=>{e.removeCellCssStyles(`${r}`)},1500)};function $B(e){return e.reduce((t,n)=>(t[n]="wink",t),{})}function VB(e,t){const o=e.getData().getLength(),r=jB(o,t);e.setCellCssStyles("wink",r),setTimeout(()=>{e.removeCellCssStyles("wink")},1500)}function jB(e,t){const n=$B(t),o={};let r=0;for(;r<e;)o[r]=n,r++;return o}function WB(e,t,n){return n==="0"?"":n?"Yes":""}function BB(e){if(!e.getSelectionModel())return eg(e);let t=e.getSelectedRows();return t.sort((n,o)=>n-o),t.length===0&&(t=eg(e)),t}function eg(e){const t=e.getData();return Array.from({length:t.getLength()},(n,o)=>o)}const da="ignore";function Bb(e,t,n,o){const r=o[n];n===da?t.field=String(t.id):t.field=n,t.cssClass=r.cssClass,t.editor=r.editor,t.selectOptions=r.selectOptions,t.validator=r.validator,e.updateColumnHeader(t.id,r.field)}function Hb(e,t,n){const r=e.getData().getItems();n!==t.field&&r.forEach(i=>{n===da?i[t.id]=i[t.field]:i[n]=i[t.field],delete i[t.field]})}function HB(e,t,n,o){const i=e.getColumns().find(a=>a.field===n&&a.id!==t.id);i&&(Hb(e,i,da),Bb(e,i,da,o))}function zB(e,t){return function(o,r){const i=r.grid,a=r.column,l=r.command;HB(i,a,l,e),Hb(i,a,l),Bb(i,a,l,e),i.invalidate(),t.hotKeysBehavior.resetQueue(),t.hotKeysBehavior.pushToCommandQueue(i)}}class YB{constructor(){this.emptyValue="1/1/1970"}dates(t,n){const o=Ts(t||this.emptyValue),r=Ts(n||this.emptyValue);return o-r}numbers(t,n){return Number(t||0)-Number(n||0)}stringsNumeric(t,n){return!t&&!n?0:t?n?t.localeCompare(n,void 0,{numeric:!0}):1:-1}strings(t,n){return(t||"").toLowerCase()>(n||"").toLowerCase()?1:(t||"").toLowerCase()<(n||"").toLowerCase()?-1:0}numbersWithSymbols(t,n){const o=Number((t||"0").match(/^\d+/g)?.[0]||0);return Number((n||"0").match(/^\d+/g)?.[0]||0)-o}}const UB=new YB;class zb{constructor(){this.sort=UB,this.withFormatter=[Ro.TEXT,Ro.NUMBER_FORMATTED]}getSortFunction(t){let n="",o=!1,r;return(i,a)=>{const{grid:l,sortAsc:d,columnId:u}=a,f=a.sortCol;if(!l||!f)return;const p=f.field;if(!p)return;const y=f.sortAs;if(!y)return;const{formatter:w}=f,b=l.getData();d&&n===f?.id?(o=!0,mo.sorting.reset(t),l.setSortColumns([]),n=""):(o=!1,n=u,mo.sorting.set(t,u,d));const m=d?-1:1,v=b.getGrouping(),P=v.find(({getter:D})=>D===f.id);if(P){if(r||(r=v.map(({comparer:D})=>D)),o){const D=b.getGrouping(),x=D.findIndex(({getter:S})=>S===f.id);D[x].comparer=r[x],b.refresh();return}P.comparer=(D,x)=>{let S=D.value,C=x.value;return w&&this.withFormatter.includes(y)&&(S=w(0,0,S,f,null,l),C=w(0,0,C,f,null,l)),this.priority(D,x)||this.compare(S,C,m,y)}}else{const D=b.getItems(),x=b.getIdPropertyName();D.sort((S,C)=>{if(o)return S[x]-C[x];let O=S[p],A=C[p];return w&&this.withFormatter.includes(y)&&(O=w(0,0,O,f,S,l),A=w(0,0,A,f,C,l)),this.priority(S,C)||this.compare(O,A,m,y)})}b.refresh()}}priority(t,n){return 0}restoreSorting(t){const n=t.grid;if(!n)return;const o=mo.sorting.get(t.id);if(o){const{columnId:r,isAscending:i}=o,a=this.getSortFunction(t.id),l=n.getColumns().find(({id:d})=>d===r);if(l){a(null,{grid:n,columnId:r,sortAsc:i,sortCol:l,sortCols:[]});const d=document.querySelector(`#${t.id} [data-id="${r}"]`);if(!d)return;d.classList.add("slick-header-column-sorted");const u=d.querySelector(".slick-sort-indicator");if(!u)return;u.classList.add(`slick-sort-indicator-${i?"asc":"desc"}`),n.invalidate()}}}compare(t,n,o,r){switch(r){case Ro.DATE:return this.sort.dates(t,n)*o;case Ro.NUMBER:case Ro.NUMBER_FORMATTED:return this.sort.numbers(t,n)*o;case Ro.TEXT_NUMERIC:return this.sort.stringsNumeric(t,n)*o;case Ro.TEXT:return this.sort.strings(t,n)*o;default:return 0}}}const qB=new zb;class GB{constructor(t,n){this.columnsWithTitle=t,this.columnsWithValue=n}calculate(t){let n=t.getColumns().length;for(;n--;)this.calculateColumn(n,t)}calculateColumn(t,n){const r=n.getColumns()[t].field;this.columnsWithTitle.includes(r)?this.addTitle(n,t):this.columnsWithValue.includes(r)&&this.addTotal(n,t)}addTitle(t,n){const r=t.getColumns()[n].id,i=t.getFooterRowColumn(r);i.textContent="TOTAL:"}addTotal(t,n){const o=t.getColumns()[n],r=o.field,i=t.getData(),a=this.displayedRows(i),l=this.totalAmountOf(a,r),d=t.getFooterRowColumn(r),u=o.formatter;d.textContent=`${u?u(0,0,l,o,null,t):l}`}displayedRows(t){const n=[],o=t.getLength();if(!o)return n;for(let r=0;r<o;r++)n.push(t.getItem(r));return n}totalAmountOf(t,n){return t.reduce((o,r)=>(r.isDeleted||(o+=Number(r[n])||0),o),0)}}exports.Autocomplete=Vb;exports.BOLD=zD;exports.ColumnPicker=LD;exports.ColumnSorter=zb;exports.DecoratorColumnFilter=nB;exports.DecoratorFilter=Nv;exports.DefaultHotKeys=jD;exports.DefaultPrinter=Nb;exports.DeletedRowsFilter=GN;exports.EColumnFilter=je;exports.EColumnFiltersGroup=pn;exports.ESortType=Ro;exports.EditorAutocomplete=kB;exports.EditorSelectNumber=IB;exports.EditorSelectString=jb;exports.FORMATTER_NUMBER=AB;exports.Filter=Iv;exports.HotKeysDecorator=bc;exports.IGNORE=da;exports.PreventCopying=WD;exports.RedoUndoOnly=BD;exports.Skeleton=kD;exports.SlickTable=cB;exports.SlickgridTable=KW;exports.TotalCalculator=GB;exports.WINK=HD;exports.WithSummary=qN;exports.WithoutHotKeys=Wy;exports.columnCheckboxSelector=XW;exports.columnIsEdited=QW;exports.commitCurrentEdit=Hh;exports.copySelectedRows=Lb;exports.eventContextMenu=on;exports.formatNumber=Ic;exports.formatterCheckMark=NB;exports.formatterGroupTotals=FB;exports.getDisplayedRows=Hc;exports.getFormatterNumber=Wb;exports.getNextId=Bc;exports.getOnHeaderMenuCommand=zB;exports.handleHeaderButtons=Av;exports.headerButtons=$o;exports.highlightCell=LB;exports.highlightColumns=VB;exports.hotKeysCopy=Yh;exports.hotKeysDelete=Ab;exports.hotKeysRedo=Uh;exports.hotKeysUndo=qh;exports.openColumnFilter=XN;exports.printerCheckMark=WB;exports.useListenIfTablesWereEdited=CB;
|