@nebula.js/sn-pivot-table 5.0.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @nebula.js/sn-pivot-table v5.0.0
2
+ * @nebula.js/sn-pivot-table v6.0.0
3
3
  * Copyright (c) 2025 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -111,7 +111,7 @@ function cx(e,t){let n;return n=t?ax(e).withConfig({displayName:t.label,shouldFo
111
111
  }
112
112
  `),Qw.rippleVisible,aC,550,(({theme:e})=>e.transitions.easing.easeInOut),Qw.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Qw.child,Qw.childLeaving,lC,550,(({theme:e})=>e.transitions.easing.easeInOut),Qw.childPulsate,sC,(({theme:e})=>e.transitions.easing.easeInOut)),cC=c.forwardRef((function(e,t){const n=Lw({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Rg(n,eC),[l,s]=c.useState([]),u=c.useRef(0),d=c.useRef(null);c.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const p=c.useRef(!1),f=Ly(),m=c.useRef(null),h=c.useRef(null),g=c.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,de.jsx(dC,{classes:{ripple:kw(o.ripple,Qw.ripple),rippleVisible:kw(o.rippleVisible,Qw.rippleVisible),ripplePulsate:kw(o.ripplePulsate,Qw.ripplePulsate),child:kw(o.child,Qw.child),childLeaving:kw(o.childLeaving,Qw.childLeaving),childPulsate:kw(o.childPulsate,Qw.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,d.current=a}),[o]),b=c.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,d,c;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),d=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),d=Math.round(n-s.top)}if(i)c=Math.sqrt((2*s.width**2+s.height**2)/3),c%2==0&&(c+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-d),d)+2;c=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===m.current&&(m.current=()=>{g({pulsate:o,rippleX:u,rippleY:d,rippleSize:c,cb:n})},f.start(80,(()=>{m.current&&(m.current(),m.current=null)}))):g({pulsate:o,rippleX:u,rippleY:d,rippleSize:c,cb:n})}),[r,g,f]),v=c.useCallback((()=>{b({},{pulsate:!0})}),[b]),x=c.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&m.current)return m.current(),m.current=null,void f.start(0,(()=>{x(e,t)}));m.current=null,s((e=>e.length>0?e.slice(1):e)),d.current=t}),[f]);return c.useImperativeHandle(t,(()=>({pulsate:v,start:b,stop:x})),[v,b,x]),de.jsx(uC,Eg({className:kw(Qw.root,o.root,i),ref:h},a,{children:de.jsx(Vw,{component:null,exit:!0,children:l})}))}));function pC(e){return q_("MuiButtonBase",e)}const fC=N_("MuiButtonBase",["root","disabled","focusVisible"]),mC=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],hC=Cw("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${fC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),gC=c.forwardRef((function(e,t){const n=Lw({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:m,onClick:h,onContextMenu:g,onDragLeave:b,onFocus:v,onFocusVisible:x,onKeyDown:_,onKeyUp:y,onMouseDown:S,onMouseLeave:w,onMouseUp:C,onTouchEnd:E,onTouchMove:R,onTouchStart:k,tabIndex:L=0,TouchRippleProps:A,touchRippleRef:I,type:P}=n,M=Rg(n,mC),D=c.useRef(null),T=c.useRef(null),O=Cy(T,I),{isFocusVisibleRef:z,onFocus:q,onBlur:N,ref:j}=qy(),[F,$]=c.useState(!1);s&&F&&$(!1),c.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),D.current.focus()}})),[]);const[B,G]=c.useState(!1);c.useEffect((()=>{G(!0)}),[]);const W=B&&!u&&!s;function H(e,t,n=d){return wy((r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0}))}c.useEffect((()=>{F&&p&&!u&&B&&T.current.pulsate()}),[u,p,F,B]);const V=H("start",S),Y=H("stop",g),U=H("stop",b),K=H("stop",C),X=H("stop",(e=>{F&&e.preventDefault(),w&&w(e)})),J=H("start",k),Z=H("stop",E),Q=H("stop",R),ee=H("stop",(e=>{N(e),!1===z.current&&$(!1),m&&m(e)}),!1),te=wy((e=>{D.current||(D.current=e.currentTarget),q(e),!0===z.current&&($(!0),x&&x(e)),v&&v(e)})),ne=()=>{const e=D.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=c.useRef(!1),oe=wy((e=>{p&&!re.current&&F&&T.current&&" "===e.key&&(re.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),_&&_(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=wy((e=>{p&&" "===e.key&&T.current&&F&&!e.defaultPrevented&&(re.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),y&&y(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(M.href||M.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=s):(M.href||M.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Cy(t,j,D),ue=Eg({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:L,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=jy({root:["root",t&&"disabled",n&&"focusVisible"]},pC,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return de.jsxs(hC,Eg({as:ae,className:kw(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:L,type:P},le,M,{children:[i,W?de.jsx(cC,Eg({ref:O,center:o},A)):null]}))}));function bC(e){return q_("MuiTypography",e)}N_("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const vC=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],xC=Cw("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Rx(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Eg({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),_C={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},yC={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},SC=c.forwardRef((function(e,t){const n=Lw({props:e,name:"MuiTypography"}),r=(e=>yC[e]||e)(n.color),o=A_(Eg({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:d=!1,variant:c="body1",variantMapping:p=_C}=o,f=Rg(o,vC),m=Eg({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:d,variant:c,variantMapping:p}),h=l||(d?"p":p[c]||_C[c])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return jy({root:["root",i,"inherit"!==e.align&&`align${Rx(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},bC,a)})(m);return de.jsx(xC,Eg({as:h,ref:t,ownerState:m,className:kw(g.root,a)},f))}));const wC=c.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=c.useState(null),l=Cy(c.isValidElement(n)?Hy(n):null,t);if(uy((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),uy((()=>{if(i&&!o)return vy(t,i),()=>{vy(t,null)}}),[t,i,o]),o){if(c.isValidElement(n)){const e={ref:l};return c.cloneElement(n,e)}return de.jsx(c.Fragment,{children:n})}return de.jsx(c.Fragment,{children:i?S.createPortal(n,i):i})})),CC=["onChange","maxRows","minRows","style","value"];function EC(e){return parseInt(e,10)||0}const RC={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function kC(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const LC=c.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=Rg(e,CC),{current:s}=c.useRef(null!=a),u=c.useRef(null),d=Cy(t,u),p=c.useRef(null),f=c.useRef(null),m=c.useCallback((()=>{const t=u.current,n=f.current;if(!t||!n)return;const i=by(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,l=EC(i.paddingBottom)+EC(i.paddingTop),s=EC(i.borderBottomWidth)+EC(i.borderTopWidth),d=n.scrollHeight;n.value="x";const c=n.scrollHeight;let p=d;o&&(p=Math.max(Number(o)*c,p)),r&&(p=Math.min(Number(r)*c,p)),p=Math.max(p,c);return{outerHeightStyle:p+("border-box"===a?l+s:0),overflowing:Math.abs(p-d)<=1}}),[r,o,e.placeholder]),h=wy((()=>{const e=u.current,t=m();if(!e||!t||kC(t))return!1;const n=t.outerHeightStyle;return null!=p.current&&p.current!==n})),g=c.useCallback((()=>{const e=u.current,t=m();if(!e||!t||kC(t))return;const n=t.outerHeightStyle;p.current!==n&&(p.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""}),[m]),b=c.useRef(-1);uy((()=>{const e=hy(g),t=null==u?void 0:u.current;if(!t)return;const n=by(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver((()=>{h()&&(r.unobserve(t),cancelAnimationFrame(b.current),g(),b.current=requestAnimationFrame((()=>{r.observe(t)})))})),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(b.current),n.removeEventListener("resize",e),r&&r.disconnect()}}),[m,g,h]),uy((()=>{g()}));return de.jsxs(c.Fragment,{children:[de.jsx("textarea",Eg({value:a,onChange:e=>{s||g(),n&&n(e)},ref:d,rows:o,style:i},l)),de.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:Eg({},RC,i,{paddingTop:0,paddingBottom:0})})]})}));function AC({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}const IC=c.createContext(void 0);function PC(){return c.useContext(IC)}function MC(e){return de.jsx(k_,Eg({},e,{defaultTheme:GS,themeId:Cg}))}function DC(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function TC(e,t=!1){return e&&(DC(e.value)&&""!==e.value||t&&DC(e.defaultValue)&&""!==e.defaultValue)}function OC(e){return q_("MuiInputBase",e)}const zC=N_("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),qC=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],NC=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Rx(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},jC=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},FC=Cw("div",{name:"MuiInputBase",slot:"Root",overridesResolver:NC})((({theme:e,ownerState:t})=>Eg({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${zC.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Eg({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),$C=Cw("input",{name:"MuiInputBase",slot:"Input",overridesResolver:jC})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Eg({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Eg({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${zC.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${zC.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),BC=de.jsx(MC,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),GC=c.forwardRef((function(e,t){var n;const r=Lw({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:m,fullWidth:h=!1,id:g,inputComponent:b="input",inputProps:v={},inputRef:x,maxRows:_,minRows:y,multiline:S=!1,name:w,onBlur:C,onChange:E,onClick:R,onFocus:k,onKeyDown:L,onKeyUp:A,placeholder:I,readOnly:P,renderSuffix:M,rows:D,slotProps:T={},slots:O={},startAdornment:z,type:q="text",value:N}=r,j=Rg(r,qC),F=null!=v.value?v.value:N,{current:$}=c.useRef(null!=F),B=c.useRef(),G=c.useCallback((e=>{}),[]),W=Cy(B,x,v.ref,G),[H,V]=c.useState(!1),Y=PC(),U=AC({props:r,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=Y?Y.focused:H,c.useEffect((()=>{!Y&&p&&H&&(V(!1),C&&C())}),[Y,p,H,C]);const K=Y&&Y.onFilled,X=Y&&Y.onEmpty,J=c.useCallback((e=>{TC(e)?K&&K():X&&X()}),[K,X]);uy((()=>{$&&J({value:F})}),[F,J,$]);c.useEffect((()=>{J(B.current)}),[]);let Z=b,Q=v;S&&"input"===Z&&(Q=Eg(D?{type:void 0,minRows:D,maxRows:D}:{type:void 0,maxRows:_,minRows:y},Q),Z=LC);c.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(z))}),[Y,z]);const ee=Eg({},r,{color:U.color||"primary",disabled:U.disabled,endAdornment:m,error:U.error,focused:U.focused,formControl:Y,fullWidth:h,hiddenLabel:U.hiddenLabel,multiline:S,size:U.size,startAdornment:z,type:q}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:d,readOnly:c,size:p,startAdornment:f,type:m}=e;return jy({root:["root",`color${Rx(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Rx(p)}`,d&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",c&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",d&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",c&&"readOnly"]},OC,t)})(ee),ne=O.root||s.Root||FC,re=T.root||u.root||{},oe=O.input||s.Input||$C;return Q=Eg({},Q,null!=(n=T.input)?n:u.input),de.jsxs(c.Fragment,{children:[!f&&BC,de.jsxs(ne,Eg({},re,!Fy(ne)&&{ownerState:Eg({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),R&&R(e)}},j,{className:kw(te.root,re.className,l,P&&"MuiInputBase-readOnly"),children:[z,de.jsx(IC.Provider,{value:null,children:de.jsx(oe,Eg({ownerState:ee,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:d,disabled:U.disabled,id:g,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:w,placeholder:I,readOnly:P,required:U.required,rows:D,value:F,onKeyDown:L,onKeyUp:A,type:q},Q,!Fy(oe)&&{as:Z,ownerState:Eg({},ee,Q.ownerState)},{ref:W,className:kw(te.input,Q.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),v.onBlur&&v.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||B.current;if(null==t)throw new Error(Sg(1));J({value:t.value})}v.onChange&&v.onChange(e,...t),E&&E(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(k&&k(e),v.onFocus&&v.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):V(!0))}}))}),m,M?M(Eg({},U,{startAdornment:z})):null]}))]})}));function WC(e){return q_("MuiInput",e)}const HC=Eg({},zC,N_("MuiInput",["root","underline","input"]));function VC(e){return q_("MuiOutlinedInput",e)}const YC=Eg({},zC,N_("MuiOutlinedInput",["root","notchedOutline","input"]));function UC(e){return q_("MuiFilledInput",e)}const KC=Eg({},zC,N_("MuiFilledInput",["root","underline","input"]));var XC=function(e,t){function n(n,r){return de.jsx(Mw,Eg({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Mw.muiName,c.memo(c.forwardRef(n))}(de.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const JC=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ZC={entering:{opacity:1},entered:{opacity:1}},QC=c.forwardRef((function(e,t){const n=WS(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,style:g,timeout:b=r,TransitionComponent:v=Fw}=e,x=Rg(e,JC),_=c.useRef(null),y=Cy(_,Hy(a),t),S=e=>t=>{if(e){const n=_.current;void 0===t?e(n):e(n,t)}},w=S(p),C=S(((e,t)=>{Yw(e);const r=Uw({style:g,timeout:b,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),E=S(d),R=S(h),k=S((e=>{const t=Uw({style:g,timeout:b,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),L=S(m);return de.jsx(v,Eg({appear:i,in:s,nodeRef:_,onEnter:C,onEntered:E,onEntering:w,onExit:k,onExited:L,onExiting:R,addEndListener:e=>{o&&o(_.current,e)},timeout:b},x,{children:(e,t)=>c.cloneElement(a,Eg({style:Eg({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},ZC[e],g,a.props.style),ref:y},t))}))}));function eE(e){return q_("MuiBackdrop",e)}N_("MuiBackdrop",["root","invisible"]);const tE=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],nE=Cw("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Eg({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),rE=c.forwardRef((function(e,t){var n,r,o;const i=Lw({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:d={},invisible:c=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=QC,transitionDuration:g}=i,b=Rg(i,tE),v=Eg({},i,{component:s,invisible:c}),x=(e=>{const{classes:t,invisible:n}=e;return jy({root:["root",n&&"invisible"]},eE,t)})(v),_=null!=(n=f.root)?n:d.root;return de.jsx(h,Eg({in:p,timeout:g},b,{children:de.jsx(nE,Eg({"aria-hidden":!0},_,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:kw(x.root,l,null==_?void 0:_.className),ownerState:Eg({},v,null==_?void 0:_.ownerState),classes:x,ref:t,children:a}))}))})),oE=N_("MuiBox",["root"]),iE=BS(),aE=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=cx("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(x_);return c.forwardRef((function(e,a){const l=R_(n),s=A_(e),{className:u,component:d="div"}=s,c=Ou(s,O_);return de.jsx(i,qs({as:d,ref:a,className:T_(u,o?o(r):r),theme:t&&l[t]||l},c))}))}({themeId:Cg,defaultTheme:iE,defaultClassName:oE.root,generateClassName:M_.generate});function lE(e){return q_("MuiButton",e)}const sE=N_("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),uE=c.createContext({}),dE=c.createContext(void 0),cE=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],pE=e=>Eg({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),fE=Cw(gC,{shouldForwardProp:e=>ww(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Rx(n.color)}`],t[`size${Rx(n.size)}`],t[`${n.variant}Size${Rx(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Eg({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Eg({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:aS(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:aS(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:aS(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Eg({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${sE.focusVisible}`]:Eg({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${sE.disabled}`]:Eg({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${aS(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${sE.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${sE.disabled}`]:{boxShadow:"none"}})),mE=Cw("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Rx(n.size)}`]]}})((({ownerState:e})=>Eg({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},pE(e)))),hE=Cw("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Rx(n.size)}`]]}})((({ownerState:e})=>Eg({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},pE(e)))),gE=c.forwardRef((function(e,t){const n=c.useContext(uE),r=c.useContext(dE),o=Lw({props:sy(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:f,focusVisibleClassName:m,fullWidth:h=!1,size:g="medium",startIcon:b,type:v,variant:x="text"}=o,_=Rg(o,cE),y=Eg({},o,{color:a,component:l,disabled:u,disableElevation:d,disableFocusRipple:p,fullWidth:h,size:g,type:v,variant:x}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Eg({},a,jy({root:["root",i,`${i}${Rx(t)}`,`size${Rx(o)}`,`${i}Size${Rx(o)}`,`color${Rx(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Rx(o)}`],endIcon:["icon","endIcon",`iconSize${Rx(o)}`]},lE,a))})(y),w=b&&de.jsx(mE,{className:S.startIcon,ownerState:y,children:b}),C=f&&de.jsx(hE,{className:S.endIcon,ownerState:y,children:f}),E=r||"";return de.jsxs(fE,Eg({ownerState:y,className:kw(n.className,S.root,s,E),component:l,disabled:u,focusRipple:!p,focusVisibleClassName:kw(S.focusVisible,m),ref:t,type:v},_,{classes:S,children:[w,i,C]}))}));function bE(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function vE(e){return parseInt(by(e).getComputedStyle(e).paddingRight,10)||0}function xE(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&bE(e,o)}))}function _E(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function yE(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=gy(e);return t.body===e?by(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Ny(gy(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${vE(r)+e}px`;const t=gy(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${vE(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=gy(r).body;else{const t=r.parentElement,n=by(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const SE=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function wE(e){const t=[],n=[];return Array.from(e.querySelectorAll(SE)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function CE(){return!0}function EE(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=wE,isEnabled:a=CE,open:l}=e,s=c.useRef(!1),u=c.useRef(null),d=c.useRef(null),p=c.useRef(null),f=c.useRef(null),m=c.useRef(!1),h=c.useRef(null),g=Cy(Hy(t),h),b=c.useRef(null);c.useEffect((()=>{l&&h.current&&(m.current=!n)}),[n,l]),c.useEffect((()=>{if(!l||!h.current)return;const e=gy(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{o||(p.current&&p.current.focus&&(s.current=!0,p.current.focus()),p.current=null)}}),[l]),c.useEffect((()=>{if(!l||!h.current)return;const e=gy(h.current),t=t=>{b.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,d.current&&d.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==d.current||(n=i(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=b.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=b.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return de.jsxs(c.Fragment,{children:[de.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),de.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const RE=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&bE(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);xE(t,e.mount,e.modalRef,r,!0);const o=_E(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=_E(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=yE(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=_E(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&bE(e.modalRef,t),xE(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&bE(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function kE(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=RE,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:d,rootRef:p}=e,f=c.useRef({}),m=c.useRef(null),h=c.useRef(null),g=Cy(h,p),[b,v]=c.useState(!d),x=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let _=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(_=!1);const y=()=>(f.current.modalRef=h.current,f.current.mount=m.current,f.current),S=()=>{o.mount(y(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},w=wy((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||gy(m.current).body;o.add(y(),e),h.current&&S()})),C=c.useCallback((()=>o.isTopModal(y())),[o]),E=wy((e=>{m.current=e,e&&(d&&C()?S():h.current&&bE(h.current,_))})),R=c.useCallback((()=>{o.remove(y(),_)}),[_,o]);c.useEffect((()=>()=>{R()}),[R]),c.useEffect((()=>{d?w():x&&i||R()}),[d,R,x,i,w]);const k=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},L=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=$y(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Eg({},n,t);return Eg({role:"presentation"},r,{onKeyDown:k(r),ref:g})},getBackdropProps:(e={})=>Eg({"aria-hidden":!0},e,{onClick:L(e),open:d}),getTransitionProps:()=>({onEnter:my((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:my((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:g,portalRef:E,isTopModal:C,exited:b,hasTransition:x}}function LE(e){return q_("MuiModal",e)}N_("MuiModal",["root","hidden","backdrop"]);const AE=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],IE=Cw("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Eg({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),PE=Cw(rE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),ME=c.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Lw({name:"MuiModal",props:e}),{BackdropComponent:u=PE,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:m,container:h,component:g,components:b={},componentsProps:v={},disableAutoFocus:x=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:y=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:C=!1,hideBackdrop:E=!1,keepMounted:R=!1,onBackdropClick:k,open:L,slotProps:A,slots:I}=s,P=Rg(s,AE),M=Eg({},s,{closeAfterTransition:f,disableAutoFocus:x,disableEnforceFocus:_,disableEscapeKeyDown:y,disablePortal:S,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:E,keepMounted:R}),{getRootProps:D,getBackdropProps:T,getTransitionProps:O,portalRef:z,isTopModal:q,exited:N,hasTransition:j}=kE(Eg({},M,{rootRef:t})),F=Eg({},M,{exited:N}),$=(e=>{const{open:t,exited:n,classes:r}=e;return jy({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},LE,r)})(F),B={};if(void 0===m.props.tabIndex&&(B.tabIndex="-1"),j){const{onEnter:e,onExited:t}=O();B.onEnter=e,B.onExited=t}const G=null!=(n=null!=(r=null==I?void 0:I.root)?r:b.Root)?n:IE,W=null!=(o=null!=(i=null==I?void 0:I.backdrop)?i:b.Backdrop)?o:u,H=null!=(a=null==A?void 0:A.root)?a:v.root,V=null!=(l=null==A?void 0:A.backdrop)?l:v.backdrop,Y=Wy({elementType:G,externalSlotProps:H,externalForwardedProps:P,getSlotProps:D,additionalProps:{ref:t,as:g},ownerState:F,className:kw(p,null==H?void 0:H.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),U=Wy({elementType:W,externalSlotProps:V,additionalProps:d,getSlotProps:e=>T(Eg({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:kw(null==V?void 0:V.className,null==d?void 0:d.className,null==$?void 0:$.backdrop),ownerState:F});return R||L||j&&!N?de.jsx(wC,{ref:z,container:h,disablePortal:S,children:de.jsxs(G,Eg({},Y,{children:[!E&&u?de.jsx(W,Eg({},U)):null,de.jsx(EE,{disableEnforceFocus:_,disableAutoFocus:x,disableRestoreFocus:w,isEnabled:q,open:L,children:c.cloneElement(m,B)})]}))}):null}));function DE(e){return q_("MuiDivider",e)}const TE=N_("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),OE=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],zE=Cw("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Eg({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:aS(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>Eg({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Eg({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>Eg({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>Eg({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),qE=Cw("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Eg({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),NE=c.forwardRef((function(e,t){const n=Lw({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:d=("hr"!==a?"separator":void 0),textAlign:c="center",variant:p="fullWidth"}=n,f=Rg(n,OE),m=Eg({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:d,textAlign:c,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return jy({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},DE,r)})(m);return de.jsx(zE,Eg({as:a,className:kw(h.root,i),role:d,ref:t,ownerState:m},f,{children:o?de.jsx(qE,{className:h.wrapper,ownerState:m,children:o}):null}))}));NE.muiSkipListHighlight=!0;const jE=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],FE=Cw(FC,{shouldForwardProp:e=>ww(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...NC(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Eg({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${KC.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${KC.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${KC.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${KC.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${KC.disabled}, .${KC.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${KC.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Eg({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),$E=Cw($C,{name:"MuiFilledInput",slot:"Input",overridesResolver:jC})((({theme:e,ownerState:t})=>Eg({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),BE=c.forwardRef((function(e,t){var n,r,o,i;const a=Lw({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:d="input",multiline:c=!1,slotProps:p,slots:f={},type:m="text"}=a,h=Rg(a,jE),g=Eg({},a,{fullWidth:u,inputComponent:d,multiline:c,type:m}),b=(e=>{const{classes:t,disableUnderline:n}=e;return Eg({},t,jy({root:["root",!n&&"underline"],input:["input"]},UC,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},x=(null!=p?p:s)?bx(v,null!=p?p:s):v,_=null!=(n=null!=(r=f.root)?r:l.Root)?n:FE,y=null!=(o=null!=(i=f.input)?i:l.Input)?o:$E;return de.jsx(GC,Eg({slots:{root:_,input:y},componentsProps:x,fullWidth:u,inputComponent:d,multiline:c,ref:t,type:m},h,{classes:b}))}));BE.muiName="Input";const GE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function WE(e){return`scale(${e}, ${e**2})`}const HE={entering:{opacity:1,transform:WE(1)},entered:{opacity:1,transform:"none"}},VE="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),YE=c.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:d,onExited:p,onExiting:f,style:m,timeout:h="auto",TransitionComponent:g=Fw}=e,b=Rg(e,GE),v=Ly(),x=c.useRef(),_=WS(),y=c.useRef(null),S=Cy(y,Hy(o),t),w=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},C=w(u),E=w(((e,t)=>{Yw(e);const{duration:n,delay:r,easing:o}=Uw({style:m,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=_.transitions.getAutoHeightDuration(e.clientHeight),x.current=a):a=n,e.style.transition=[_.transitions.create("opacity",{duration:a,delay:r}),_.transitions.create("transform",{duration:VE?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=w(s),k=w(f),L=w((e=>{const{duration:t,delay:n,easing:r}=Uw({style:m,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=_.transitions.getAutoHeightDuration(e.clientHeight),x.current=o):o=t,e.style.transition=[_.transitions.create("opacity",{duration:o,delay:n}),_.transitions.create("transform",{duration:VE?o:.666*o,delay:VE?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=WE(.75),d&&d(e)})),A=w(p);return de.jsx(g,Eg({appear:r,in:a,nodeRef:y,onEnter:E,onEntered:R,onEntering:C,onExit:L,onExited:A,onExiting:k,addEndListener:e=>{"auto"===h&&v.start(x.current||0,e),n&&n(y.current,e)},timeout:"auto"===h?null:h},b,{children:(e,t)=>c.cloneElement(o,Eg({style:Eg({opacity:0,transform:WE(.75),visibility:"exited"!==e||a?void 0:"hidden"},HE[e],m,o.props.style),ref:S},t))}))}));YE.muiSupportAuto=!0;const UE=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],KE=Cw(FC,{shouldForwardProp:e=>ww(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...NC(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Eg({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${HC.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${HC.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${HC.disabled}, .${HC.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${HC.disabled}:before`]:{borderBottomStyle:"dotted"}})})),XE=Cw($C,{name:"MuiInput",slot:"Input",overridesResolver:jC})({}),JE=c.forwardRef((function(e,t){var n,r,o,i;const a=Lw({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:d=!1,inputComponent:c="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=Rg(a,UE),b=(e=>{const{classes:t,disableUnderline:n}=e;return Eg({},t,jy({root:["root",!n&&"underline"],input:["input"]},WC,t))})(a),v={root:{ownerState:{disableUnderline:l}}},x=(null!=f?f:u)?bx(null!=f?f:u,v):v,_=null!=(n=null!=(r=m.root)?r:s.Root)?n:KE,y=null!=(o=null!=(i=m.input)?i:s.Input)?o:XE;return de.jsx(GC,Eg({slots:{root:_,input:y},slotProps:x,fullWidth:d,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:b}))}));function ZE(e){return q_("MuiLink",e)}JE.muiName="Input";const QE=N_("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),eR={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},tR=({theme:e,ownerState:t})=>{const n=(e=>eR[e]||e)(t.color),r=Lx(e,`palette.${n}`,!1)||t.color,o=Lx(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:aS(r,.4)},nR=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],rR=Cw(SC,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Rx(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>Eg({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Eg({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:tR({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${QE.focusVisible}`]:{outline:"auto"}}))),oR=c.forwardRef((function(e,t){const n=Lw({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:d="inherit",sx:p}=n,f=Rg(n,nR),{isFocusVisibleRef:m,onBlur:h,onFocus:g,ref:b}=qy(),[v,x]=c.useState(!1),_=Cy(t,b),y=Eg({},n,{color:o,component:i,focusVisible:v,underline:u,variant:d}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return jy({root:["root",`underline${Rx(o)}`,"button"===n&&"button",r&&"focusVisible"]},ZE,t)})(y);return de.jsx(rR,Eg({color:o,className:kw(S.root,r),classes:s,component:i,onBlur:e=>{h(e),!1===m.current&&x(!1),a&&a(e)},onFocus:e=>{g(e),!0===m.current&&x(!0),l&&l(e)},ref:_,ownerState:y,variant:d,sx:[...Object.keys(eR).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},f))})),iR=c.createContext({});function aR(e){return q_("MuiList",e)}N_("MuiList",["root","padding","dense","subheader"]);const lR=["children","className","component","dense","disablePadding","subheader"],sR=Cw("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Eg({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),uR=c.forwardRef((function(e,t){const n=Lw({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Rg(n,lR),d=c.useMemo((()=>({dense:a})),[a]),p=Eg({},n,{component:i,dense:a,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return jy({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},aR,t)})(p);return de.jsx(iR.Provider,{value:d,children:de.jsxs(sR,Eg({as:i,className:kw(f.root,o),ref:t,ownerState:p},u,{children:[s,r]}))})}));function dR(e){return q_("MuiListItemIcon",e)}const cR=N_("MuiListItemIcon",["root","alignItemsFlexStart"]),pR=["className"],fR=Cw("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Eg({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),mR=c.forwardRef((function(e,t){const n=Lw({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Rg(n,pR),i=Eg({},n,{alignItems:c.useContext(iR).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return jy({root:["root","flex-start"===t&&"alignItemsFlexStart"]},dR,n)})(i);return de.jsx(fR,Eg({className:kw(a.root,r),ownerState:i,ref:t},o))})),hR=N_("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),gR=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function bR(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function vR(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function xR(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function _R(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&xR(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const yR=c.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:d="selectedMenu"}=e,p=Rg(e,gR),f=c.useRef(null),m=c.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});uy((()=>{r&&f.current.focus()}),[r]),c.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${Ny(gy(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}})),[]);const h=Cy(f,t);let g=-1;c.Children.forEach(i,((e,t)=>{c.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))):g===t&&(g+=1,g>=i.length&&(g=-1))}));const b=c.Children.map(i,((e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),c.cloneElement(e,t)}return e}));return de.jsx(uR,Eg({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=f.current,n=e.key,r=gy(t).activeElement;if("ArrowDown"===n)e.preventDefault(),_R(t,r,s,l,bR);else if("ArrowUp"===n)e.preventDefault(),_R(t,r,s,l,vR);else if("Home"===n)e.preventDefault(),_R(t,null,s,l,bR);else if("End"===n)e.preventDefault(),_R(t,null,s,l,vR);else if(1===n.length){const o=m.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&xR(r,o);o.previousKeyMatched&&(s||_R(t,r,!1,l,bR,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},p,{children:b}))}));function SR(e){return q_("MuiPopover",e)}N_("MuiPopover",["root","paper"]);const wR=["onEntering"],CR=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],ER=["slotProps"];function RR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function kR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function LR(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function AR(e){return"function"==typeof e?e():e}const IR=Cw(ME,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),PR=Cw(Zw,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),MR=c.forwardRef((function(e,t){var n,r,o;const i=Lw({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:p,className:f,container:m,elevation:h=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:x,slotProps:_,transformOrigin:y={vertical:"top",horizontal:"left"},TransitionComponent:S=YE,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:E=!1}=i,R=Rg(i.TransitionProps,wR),k=Rg(i,CR),L=null!=(n=null==_?void 0:_.paper)?n:v,A=c.useRef(),I=Cy(A,L.ref),P=Eg({},i,{anchorOrigin:s,anchorReference:d,elevation:h,marginThreshold:g,externalPaperSlotProps:L,transformOrigin:y,TransitionComponent:S,transitionDuration:w,TransitionProps:R}),M=(e=>{const{classes:t}=e;return jy({root:["root"],paper:["paper"]},SR,t)})(P),D=c.useCallback((()=>{if("anchorPosition"===d)return u;const e=AR(l),t=(e&&1===e.nodeType?e:gy(A.current).body).getBoundingClientRect();return{top:t.top+RR(t,s.vertical),left:t.left+kR(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,d]),T=c.useCallback((e=>({vertical:RR(e,y.vertical),horizontal:kR(e,y.horizontal)})),[y.horizontal,y.vertical]),O=c.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===d)return{top:null,left:null,transformOrigin:LR(n)};const r=D();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=by(AR(l)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,n.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,n.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:LR(n)}}),[l,d,D,T,g]),[z,q]=c.useState(b),N=c.useCallback((()=>{const e=A.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,q(!0)}),[O]);c.useEffect((()=>(E&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N))),[l,E,N]);c.useEffect((()=>{b&&N()})),c.useImperativeHandle(a,(()=>b?{updatePosition:()=>{N()}}:null),[b,N]),c.useEffect((()=>{if(!b)return;const e=hy((()=>{N()})),t=by(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,b,N]);let j=w;"auto"!==w||S.muiSupportAuto||(j=void 0);const F=m||(l?gy(AR(l)).body:void 0),$=null!=(r=null==x?void 0:x.root)?r:IR,B=null!=(o=null==x?void 0:x.paper)?o:PR,G=Wy({elementType:B,externalSlotProps:Eg({},L,{style:z?L.style:Eg({},L.style,{opacity:0})}),additionalProps:{elevation:h,ref:I},ownerState:P,className:kw(M.paper,null==L?void 0:L.className)}),W=Wy({elementType:$,externalSlotProps:(null==_?void 0:_.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:b},ownerState:P,className:kw(M.root,f)}),{slotProps:H}=W,V=Rg(W,ER);return de.jsx($,Eg({},V,!Fy($)&&{slotProps:H,disableScrollLock:E},{children:de.jsx(S,Eg({appear:!0,in:b,onEntering:(e,t)=>{C&&C(e,t),N()},onExited:()=>{q(!1)},timeout:j},R,{children:de.jsx(B,Eg({},G,{children:p}))}))}))}));function DR(e){return q_("MuiMenu",e)}N_("MuiMenu",["root","paper","list"]);const TR=["onEntering"],OR=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],zR={vertical:"top",horizontal:"right"},qR={vertical:"top",horizontal:"left"},NR=Cw(MR,{shouldForwardProp:e=>ww(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),jR=Cw(PR,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),FR=Cw(yR,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),$R=c.forwardRef((function(e,t){var n,r;const o=Lw({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:d,open:p,PaperProps:f={},PopoverClasses:m,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:v={},slotProps:x={}}=o,_=Rg(o.TransitionProps,TR),y=Rg(o,OR),S=(()=>{const e=c.useContext(Xy);return null!=e&&e})(),w=Eg({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:g,PaperProps:f,transitionDuration:h,TransitionProps:_,variant:b}),C=(e=>{const{classes:t}=e;return jy({root:["root"],paper:["paper"],list:["list"]},DR,t)})(w),E=i&&!s&&p,R=c.useRef(null);let k=-1;c.Children.map(a,((e,t)=>{c.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===k)&&(k=t))}));const L=null!=(n=v.paper)?n:jR,A=null!=(r=x.paper)?r:f,I=Wy({elementType:v.root,externalSlotProps:x.root,ownerState:w,className:[C.root,l]}),P=Wy({elementType:L,externalSlotProps:A,ownerState:w,className:C.paper});return de.jsx(NR,Eg({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?zR:qR,slots:{paper:L,root:v.root},slotProps:{root:I,paper:P},open:p,ref:t,transitionDuration:h,TransitionProps:Eg({onEntering:(e,t)=>{R.current&&R.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),g&&g(e,t)}},_),ownerState:w},y,{classes:m,children:de.jsx(FR,Eg({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:R,autoFocus:i&&(-1===k||s),autoFocusItem:E,variant:b},u,{className:kw(C.list,u.className),children:a}))}))}));function BR(e){return q_("MuiMenuItem",e)}const GR=N_("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),WR=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],HR=Cw(gC,{shouldForwardProp:e=>ww(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Eg({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${GR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:aS(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${GR.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:aS(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${GR.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:aS(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:aS(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${GR.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${GR.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${TE.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${TE.inset}`]:{marginLeft:52},[`& .${hR.root}`]:{marginTop:0,marginBottom:0},[`& .${hR.inset}`]:{paddingLeft:36},[`& .${cR.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Eg({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${cR.root} svg`]:{fontSize:"1.25rem"}})))),VR=c.forwardRef((function(e,t){const n=Lw({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:d,className:p}=n,f=Rg(n,WR),m=c.useContext(iR),h=c.useMemo((()=>({dense:i||m.dense||!1,disableGutters:l})),[m.dense,i,l]),g=c.useRef(null);uy((()=>{r&&g.current&&g.current.focus()}),[r]);const b=Eg({},n,{dense:h.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Eg({},a,jy({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},BR,a))})(n),x=Cy(g,t);let _;return n.disabled||(_=void 0!==d?d:-1),de.jsx(iR.Provider,{value:h,children:de.jsx(HR,Eg({ref:x,role:u,tabIndex:_,component:o,focusVisibleClassName:kw(v.focusVisible,s),className:kw(v.root,p)},f,{ownerState:b,classes:v}))})}));function YR(e){return q_("MuiNativeSelect",e)}const UR=N_("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),KR=["className","disabled","error","IconComponent","inputRef","variant"],XR=({ownerState:e,theme:t})=>Eg({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Eg({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${UR.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),JR=Cw("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ww,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${UR.multiple}`]:t.multiple}]}})(XR),ZR=({ownerState:e,theme:t})=>Eg({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${UR.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),QR=Cw("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Rx(n.variant)}`],n.open&&t.iconOpen]}})(ZR),ek=c.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=Rg(e,KR),u=Eg({},e,{disabled:r,variant:l,error:o}),d=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return jy({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Rx(n)}`,i&&"iconOpen",r&&"disabled"]},YR,t)})(u);return de.jsxs(c.Fragment,{children:[de.jsx(JR,Eg({ownerState:u,className:kw(d.select,n),disabled:r,ref:a||t},s)),e.multiple?null:de.jsx(QR,{as:i,ownerState:u,className:d.icon})]})}));var tk;const nk=["children","classes","className","label","notched"],rk=Cw("fieldset",{shouldForwardProp:ww})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),ok=Cw("legend",{shouldForwardProp:ww})((({ownerState:e,theme:t})=>Eg({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Eg({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const ik=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ak=Cw(FC,{shouldForwardProp:e=>ww(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:NC})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Eg({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${YC.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${YC.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${YC.focused} .${YC.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${YC.error} .${YC.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${YC.disabled} .${YC.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Eg({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),lk=Cw((function(e){const{className:t,label:n,notched:r}=e,o=Rg(e,nk),i=null!=n&&""!==n,a=Eg({},e,{notched:r,withLabel:i});return de.jsx(rk,Eg({"aria-hidden":!0,className:t,ownerState:a},o,{children:de.jsx(ok,{ownerState:a,children:i?de.jsx("span",{children:n}):tk||(tk=de.jsx("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),sk=Cw($C,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:jC})((({theme:e,ownerState:t})=>Eg({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),uk=c.forwardRef((function(e,t){var n,r,o,i,a;const l=Lw({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:d="input",label:p,multiline:f=!1,notched:m,slots:h={},type:g="text"}=l,b=Rg(l,ik),v=(e=>{const{classes:t}=e;return Eg({},t,jy({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},VC,t))})(l),x=PC(),_=AC({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),y=Eg({},l,{color:_.color||"primary",disabled:_.disabled,error:_.error,focused:_.focused,formControl:x,fullWidth:u,hiddenLabel:_.hiddenLabel,multiline:f,size:_.size,type:g}),S=null!=(n=null!=(r=h.root)?r:s.Root)?n:ak,w=null!=(o=null!=(i=h.input)?i:s.Input)?o:sk;return de.jsx(GC,Eg({slots:{root:S,input:w},renderSuffix:e=>de.jsx(lk,{ownerState:y,className:v.notchedOutline,label:null!=p&&""!==p&&_.required?a||(a=de.jsxs(c.Fragment,{children:[p," ","*"]})):p,notched:void 0!==m?m:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:d,multiline:f,ref:t,type:g},b,{classes:Eg({},v,{notchedOutline:null})}))}));function dk(e){return q_("MuiSelect",e)}uk.muiName="Input";const ck=N_("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var pk;const fk=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],mk=Cw("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ck.select}`]:t.select},{[`&.${ck.select}`]:t[n.variant]},{[`&.${ck.error}`]:t.error},{[`&.${ck.multiple}`]:t.multiple}]}})(XR,{[`&.${ck.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),hk=Cw("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Rx(n.variant)}`],n.open&&t.iconOpen]}})(ZR),gk=Cw("input",{shouldForwardProp:e=>Sw(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function bk(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function vk(e){return null==e||"string"==typeof e&&!e.trim()}const xk=c.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:f,error:m=!1,IconComponent:h,inputRef:g,labelId:b,MenuProps:v={},multiple:x,name:_,onBlur:y,onChange:S,onClose:w,onFocus:C,onOpen:E,open:R,readOnly:k,renderValue:L,SelectDisplayProps:A={},tabIndex:I,value:P,variant:M="standard"}=e,D=Rg(e,fk),[T,O]=Sy({controlled:P,default:d,name:"Select"}),[z,q]=Sy({controlled:R,default:u,name:"Select"}),N=c.useRef(null),j=c.useRef(null),[F,$]=c.useState(null),{current:B}=c.useRef(null!=R),[G,W]=c.useState(),H=Cy(t,g),V=c.useCallback((e=>{j.current=e,e&&$(e)}),[]),Y=null==F?void 0:F.parentNode;c.useImperativeHandle(H,(()=>({focus:()=>{j.current.focus()},node:N.current,value:T})),[T]),c.useEffect((()=>{u&&z&&F&&!B&&(W(a?null:Y.clientWidth),j.current.focus())}),[F,a]),c.useEffect((()=>{i&&j.current.focus()}),[i]),c.useEffect((()=>{if(!b)return;const e=gy(j.current).getElementById(b);if(e){const t=()=>{getSelection().isCollapsed&&j.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[b]);const U=(e,t)=>{e?E&&E(t):w&&w(t),B||(W(a?null:Y.clientWidth),q(e))},K=c.Children.toArray(l),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(x){n=Array.isArray(T)?T.slice():[];const t=T.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),T!==n&&(O(n),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:_}}),S(o,e)}x||U(!1,t)}},J=null!==F&&z;let Z,Q;delete D["aria-invalid"];const ee=[];let te=!1;(TC({value:T})||f)&&(L?Z=L(T):te=!0);const ne=K.map((e=>{if(!c.isValidElement(e))return null;let t;if(x){if(!Array.isArray(T))throw new Error(Sg(2));t=T.some((t=>bk(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=bk(T,e.props.value),t&&te&&(Q=e.props.children);return c.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=x?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):Q);let re,oe=G;!a&&B&&F&&(oe=Y.clientWidth),re=void 0!==I?I:p?null:0;const ie=A.id||(_?`mui-component-select-${_}`:void 0),ae=Eg({},e,{variant:M,value:T,open:J,error:m}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return jy({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Rx(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},dk,t)})(ae),se=Eg({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),ue=yy();return de.jsxs(c.Fragment,{children:[de.jsx(mk,Eg({ref:V,tabIndex:re,role:"combobox","aria-controls":ue,"aria-disabled":p?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[b,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!k){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:p||k?null:e=>{0===e.button&&(e.preventDefault(),j.current.focus(),U(!0,e))},onBlur:e=>{!J&&y&&(Object.defineProperty(e,"target",{writable:!0,value:{value:T,name:_}}),y(e))},onFocus:C},A,{ownerState:ae,className:kw(A.className,le.select,s),id:ie,children:vk(Z)?pk||(pk=de.jsx("span",{className:"notranslate",children:"​"})):Z})),de.jsx(gk,Eg({"aria-invalid":m,value:Array.isArray(T)?T.join(","):T,name:_,ref:N,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(O(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:p,className:le.nativeInput,autoFocus:i,ownerState:ae},D)),de.jsx(hk,{as:h,className:le.icon,ownerState:ae}),de.jsx($R,Eg({id:`menu-${_||""}`,anchorEl:Y,open:J,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:Eg({"aria-labelledby":b,role:"listbox","aria-multiselectable":x?"true":void 0,disableListWrap:!0,id:ue},v.MenuListProps),slotProps:Eg({},v.slotProps,{paper:Eg({},se,{style:Eg({minWidth:oe},null!=se?se.style:null)})}),children:ne}))]})})),_k=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],yk=["root"],Sk={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ww(e)&&"variant"!==e,slot:"Root"},wk=Cw(JE,Sk)(""),Ck=Cw(uk,Sk)(""),Ek=Cw(BE,Sk)(""),Rk=c.forwardRef((function(e,t){const n=Lw({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=XC,id:d,input:p,inputProps:f,label:m,labelId:h,MenuProps:g,multiple:b=!1,native:v=!1,onClose:x,onOpen:_,open:y,renderValue:S,SelectDisplayProps:w,variant:C="outlined"}=n,E=Rg(n,_k),R=v?ek:xk,k=AC({props:n,muiFormControl:PC(),states:["variant","error"]}),L=k.variant||C,A=Eg({},n,{variant:L,classes:i}),I=(e=>{const{classes:t}=e;return t})(A),P=Rg(I,yk),M=p||{standard:de.jsx(wk,{ownerState:A}),outlined:de.jsx(Ck,{label:m,ownerState:A}),filled:de.jsx(Ek,{ownerState:A})}[L],D=Cy(t,Hy(M));return de.jsx(c.Fragment,{children:c.cloneElement(M,Eg({inputComponent:R,inputProps:Eg({children:o,error:k.error,IconComponent:u,variant:L,type:void 0,multiple:b},v?{id:d}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:h,MenuProps:g,onClose:x,onOpen:_,open:y,renderValue:S,SelectDisplayProps:Eg({id:d},w)},f,{classes:f?bx(P,f.classes):P},p?p.props.inputProps:{})},(b&&v||s)&&"outlined"===L?{notched:!0}:{},{ref:D,className:kw(M.props.className,a,I.root)},!p&&{variant:L},E))})}));function kk(e={}){return de.jsx(zh,{...e,children:de.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:de.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:de.jsx("rect",{stroke:xh.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}Rk.muiName="Select";const Lk={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Ch,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var Ak=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:xh.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:xh.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:de.jsx(Dh,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${xh.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:xh.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${xh.MISC_FOCUS_BORDER}`,borderRadius:Ch,backgroundColor:xh.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${xh.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:xh.WHITE,color:xh.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:Ch},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${xh.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:xh.GREYSCALE_0_15,backgroundColor:xh.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:xh.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${xh.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:xh.GREEN_PALE},"&:active":{backgroundColor:xh.GREEN_DARK},"&.Mui-focusVisible":{borderColor:xh.GREEN_PALE,boxShadow:`0 0 0 3px ${fy(xh.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:xh.BLUE_PALE},"&:active":{backgroundColor:xh.BLUE_DARK},"&.Mui-focusVisible":{borderColor:xh.BLUE_PALE,boxShadow:`0 0 0 3px ${fy(xh.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Ch,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:xh.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${xh.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:xh.GREYSCALE_0_15,backgroundColor:xh.GREYSCALE_100_60,"&:active":{backgroundColor:xh.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:xh.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${xh.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:xh.PURPLE,"&.Mui-focusVisible":{borderColor:xh.PURPLE,boxShadow:`0 0 0 3px ${fy(xh.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:xh.GREEN,"&.Mui-focusVisible":{borderColor:xh.GREEN,boxShadow:`0 0 0 3px ${fy(xh.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:xh.BLUE,"&.Mui-focusVisible":{borderColor:xh.BLUE,boxShadow:`0 0 0 3px ${fy(xh.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:xh.ORANGE,"&.Mui-focusVisible":{borderColor:xh.ORANGE,boxShadow:`0 0 0 3px ${fy(xh.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:xh.RED,"&.Mui-focusVisible":{borderColor:xh.RED,boxShadow:`0 0 0 3px ${fy(xh.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:xh.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:xh.PURPLE_PALE},"&:active":{backgroundColor:xh.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:xh.PURPLE_PALE,boxShadow:`0 0 0 3px ${fy(xh.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:xh.GREEN_PALE},"&:active":{backgroundColor:xh.GREEN_DARK},"&.Mui-focusVisible":{borderColor:xh.GREEN_PALE,boxShadow:`0 0 0 3px ${fy(xh.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:xh.BLUE_PALE},"&:active":{backgroundColor:xh.BLUE_DARK},"&.Mui-focusVisible":{borderColor:xh.BLUE_PALE,boxShadow:`0 0 0 3px ${fy(xh.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:xh.ORANGE_PALE},"&:active":{backgroundColor:xh.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:xh.ORANGE_PALE,boxShadow:`0 0 0 3px ${fy(xh.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:xh.RED_PALE},"&:active":{backgroundColor:xh.RED_DARK},"&.Mui-focusVisible":{borderColor:xh.RED_PALE,boxShadow:`0 0 0 3px ${fy(xh.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:xh.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:xh.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Ch,boxShadow:`inset 0 0 0 2px ${xh.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:de.jsx(Oh,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:_h,borderRadius:Ch,color:xh.TEXT_PRIMARY,backgroundColor:xh.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:xh.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${xh.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:xh.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:xh.GREYSCALE_0_05,color:xh.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:xh.GREEN,borderColor:xh.GREEN},"&.MuiChip-outlinedInfo":{color:xh.BLUE,borderColor:xh.BLUE},"&.MuiChip-outlinedWarning":{color:xh.ORANGE,borderColor:xh.ORANGE},"&.MuiChip-outlinedError":{color:xh.RED,borderColor:xh.RED}},outlined:{border:`solid 1px ${xh.GREYSCALE_0_15}`,backgroundColor:xh.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Ch,boxShadow:"none",backgroundColor:xh.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:xh.GREEN,borderColor:xh.GREEN},outlinedSecondary:{color:xh.BLUE,borderColor:xh.BLUE},label:{fontFamily:Ah.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:de.jsx(Oh,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:de.jsx(Dh,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:Ch},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Ch,fontSize:yh,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:xh.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${xh.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:xh.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:xh.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:xh.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Ch,border:`solid 1px ${xh.GREYSCALE_0_15}`,color:xh.GREYSCALE_0_60,marginRight:0,width:wh,height:wh},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${xh.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Ch,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:xh.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:yh}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:_h,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:xh.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:xh.GREYSCALE_25,fontSize:_h,fontFamily:Ah.FONT_FAMILY,fontWeight:kh,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:xh.TEXT_PRIMARY},"&.Mui-error":{color:xh.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:xh.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Rh,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:xh.TEXT_SECONDARY,content:"'(required)'",fontWeight:Rh,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:yh,lineHeight:"16px",backgroundColor:xh.WHITE,borderRadius:Ch,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${xh.GREYSCALE_0_05}`,borderColor:xh.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${xh.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${xh.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${xh.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${xh.RED}`,boxShadow:`0px 0px 0px 1px ${xh.RED}, inset 0 2px 0 0 ${xh.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${xh.GREYSCALE_0_10}`,borderColor:xh.GREYSCALE_0_10,backgroundColor:xh.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:xh.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:xh.GREYSCALE_0_15,borderRadius:Ch,boxShadow:`inset 0 2px 0 0 ${xh.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>de.jsx(Dh,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:xh.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:xh.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:xh.GREYSCALE_0_03},"&:active":{backgroundColor:xh.GREYSCALE_0_10},"&:focus":{backgroundColor:xh.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${xh.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${xh.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:xh.GREYSCALE_0_30,"&:hover":{backgroundColor:xh.GREYSCALE_0_0,borderColor:xh.GREYSCALE_0_15},"& ~svg":{color:xh.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${xh.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Ch}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:xh.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${xh.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:xh.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:yh,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:_h,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:_h,fontWeight:kh,color:xh.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:kh}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${xh.GREYSCALE_0_15}, 0px 0px 0px 1px ${xh.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:de.jsx(jh,{}),checkedIcon:de.jsx(Fh,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:xh.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${xh.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:xh.GREEN_PALE,boxShadow:`0 0 0 3px ${fy(xh.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:xh.BLUE_PALE,boxShadow:`0 0 0 3px ${fy(xh.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:xh.GREYSCALE_0_20}},"&.Mui-disabled":{fill:xh.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:de.jsx(kk,{}),checkedIcon:de.jsx(qh,{}),indeterminateIcon:de.jsx(Nh,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Ch,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:xh.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:xh.GREYSCALE_0_55,color:xh.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:xh.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:xh.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:xh.GREYSCALE_0_55,"&:hover":{color:xh.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:xh.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:xh.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:yh,color:xh.TEXT_PRIMARY,lineHeight:"16px",fontWeight:kh},secondary:{fontSize:_h,color:xh.GREYSCALE_45,fontWeight:Rh,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:yh,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:yh,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:xh.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:_h,borderBottom:`solid 1px ${xh.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:yh,color:xh.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:xh.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:xh.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:xh.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:xh.RED}}},"&.Mui-focusVisible":{backgroundColor:xh.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:xh.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:xh.GREEN,height:"24px","&.Mui-disabled":{color:xh.GREYSCALE_0_15}},rail:{backgroundColor:xh.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${xh.GREYSCALE_0_05}`,borderRadius:Ch,boxShadow:`inset 0px 0px 0px 1px ${xh.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${xh.GREYSCALE_0_05}`,borderRadius:Ch},thumb:{height:"16px",width:"16px",borderRadius:Ch,backgroundColor:xh.WHITE,boxShadow:`0px 1px 2px 0px ${xh.GREYSCALE_0_15}, 0px 0px 0px 1px ${xh.GREYSCALE_0_05}`,"&:hover":{borderRadius:Ch,boxShadow:`0 2px 4px 0 ${xh.GREYSCALE_0_30}, 0 0 0 1px ${xh.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${xh.GREYSCALE_0_15}, 0 0 0 1px ${xh.GREYSCALE_0_06}, 0 0 0 2px ${xh.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${xh.GREYSCALE_0_15}, 0 0 0 1px ${xh.GREYSCALE_0_06}, 0 0 0 2px ${xh.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:xh.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:xh.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:xh.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:xh.GREYSCALE_0_15},markLabel:{color:xh.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:xh.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:xh.WHITE,color:xh.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:xh.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:xh.GREEN_PALE,boxShadow:`0 0 0 3px ${fy(xh.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:xh.BLUE_PALE,boxShadow:`0 0 0 3px ${fy(xh.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:xh.GREYSCALE_0_15,borderRadius:Ch},thumb:{height:"16px",width:"16px",borderRadius:Ch,backgroundColor:xh.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:yh,fontWeight:kh,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${xh.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${xh.MISC_FOCUS_BORDER}`,backgroundColor:xh.GREYSCALE_0_03,borderRadius:Ch},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:xh.GREYSCALE_25,"&.Mui-selected":{color:xh.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:yh,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Ch,"&:hover":{backgroundColor:xh.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${xh.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${xh.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Ch,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:xh.GREYSCALE_0_05},"&:hover":{backgroundColor:xh.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${xh.GREYSCALE_85}`,borderRight:`1px solid ${xh.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:kh,backgroundColor:xh.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:xh.GREYSCALE_98,borderBottom:`1px solid ${xh.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${xh.GREYSCALE_85}`,borderTop:`1px solid ${xh.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:xh.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:xh.GREYSCALE_0_05,"&:hover":{backgroundColor:xh.GREYSCALE_0_03}},"&&:hover":{backgroundColor:xh.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>de.jsx($h,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${xh.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:yh,borderRadius:Ch,padding:"7px 16px",border:`1px solid ${xh.GREYSCALE_0_15}`,backgroundColor:xh.GREYSCALE_100_60,color:xh.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:xh.GREYSCALE_0_10,border:`1px solid ${xh.GREYSCALE_0_30}`},"&:hover":{backgroundColor:xh.GREYSCALE_0_03,border:`1px solid ${xh.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:xh.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${xh.MISC_FOCUS_BORDER}`,border:`1px solid ${xh.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:xh.GREYSCALE_25,backgroundColor:xh.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:xh.GREYSCALE_0_10,border:`1px solid ${xh.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:_h,height:24,width:24,padding:7},sizeLarge:{fontSize:Sh,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:yh,borderRadius:Ch}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:xh.GREYSCALE_20},tooltip:{backgroundColor:xh.GREYSCALE_20,fontSize:_h,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...Lk}:{}}))(t);const Ik=e=>({mode:"light",primary:{ultraLight:xh.GREEN_ULTRA_LIGHT,light:xh.GREEN_PALE,main:xh.GREEN,dark:xh.GREEN_DARK,extraDark:xh.GREEN_EXTRA_DARK,contrastText:xh.WHITE},secondary:{ultraLight:xh.BLUE_ULTRA_LIGHT,light:xh.BLUE_PALE,main:xh.BLUE,dark:xh.BLUE_DARK,extraDark:xh.BLUE_EXTRA_DARK,contrastText:xh.WHITE},error:{ultraLight:xh.RED_ULTRA_LIGHT,light:xh.RED_PALE,main:xh.RED,dark:xh.RED_DARK,extraDark:xh.RED_EXTRA_DARK,contrastText:xh.WHITE},warning:{ultraLight:xh.ORANGE_ULTRA_LIGHT,light:xh.ORANGE_PALE,main:xh.ORANGE,dark:xh.ORANGE_DARK,extraDark:xh.ORANGE_EXTRA_DARK,contrastText:xh.WHITE},success:{ultraLight:xh.GREEN_ULTRA_LIGHT,light:xh.GREEN_PALE,main:xh.GREEN,dark:xh.GREEN_DARK,extraDark:xh.GREEN_EXTRA_DARK,contrastText:xh.WHITE},info:{ultraLight:xh.BLUE_ULTRA_LIGHT,light:xh.BLUE_PALE,main:xh.BLUE,dark:xh.BLUE_DARK,extraDark:xh.BLUE_EXTRA_DARK,contrastText:xh.WHITE},text:{primary:xh.TEXT_PRIMARY,secondary:xh.TEXT_SECONDARY,disabled:xh.GREYSCALE_0_30},action:{hover:xh.GREYSCALE_0_03,hoverOpacity:.03,selected:xh.GREYSCALE_0_05,selectedOpacity:.05,focus:xh.MISC_FOCUS_BORDER},amethyst:{ultraLight:xh.WHITE,main:xh.PURPLE,light:xh.PURPLE_PALE,dark:xh.PURPLE_DARK,extraDark:xh.GREYSCALE_0_0,contrastText:xh.WHITE},background:{paper:xh.WHITE,default:xh.GREYSCALE_95},divider:xh.GREYSCALE_0_15}),Pk={...vh},Mk=((e="light",t=!1)=>((e,t=!1)=>({components:Ak(0,t),palette:Ik(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:yh,fontWeightLight:Eh,fontWeightRegular:Rh,fontWeightMedium:kh,fontWeightBold:Lh,htmlFontSize:yh,fontFamily:Ah.FONT_FAMILY,button:{fontWeight:kh,fontSize:yh,textTransform:"none"},body1:{fontSize:Sh,lineHeight:"24px"},body2:{fontSize:yh,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:wh,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Sh,fontWeight:kh,lineHeight:"16px"},h6:{fontSize:yh,fontWeight:kh,lineHeight:"16px"},caption:{color:xh.TEXT_SECONDARY},subtitle1:{fontSize:yh,color:xh.TEXT_SECONDARY},subtitle2:{fontSize:_h,color:xh.TEXT_SECONDARY}},shape:{borderRadius:Ch}}))(0,t))().palette,Dk={TEXT:Mk.text.primary,DISABLED:Mk.text.disabled,HOVER:Mk.action.hover,WHITE:Pk.GREYSCALE_100,BORDER_LIGHT:Pk.GREYSCALE_90,BORDER_MEDIUM:Pk.GREYSCALE_85,BORDER_HEAVY:Pk.GREYSCALE_50,DARK_MODE_TEXT:Pk.GREYSCALE_95,DARK_MODE_BORDER:Pk.GREYSCALE_95,DARK_MODE_DISABLED:Pk.GREYSCALE_70,DARK_MODE_BACKGROUND:Pk.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Pk.GREYSCALE_95,SELECTED:Mk.primary.main};function Tk(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function Ok(e){if("object"==typeof e&&Tk(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),n=parseInt(o[2],10),r=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),n=parseInt(o[2],16),r=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),n=parseInt(o[2]+o[2],16),r=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+r}const zk={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function qk(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,r=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&"qcm-color"===a.type)({r:n,g:r,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(Tk(e[0]))({r:n,g:r,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let l;if(l=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))n=parseInt(l[1],10),r=parseInt(l[2],10),o=parseInt(l[3],10);else if(l=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))n=parseInt(l[1],10),r=parseInt(l[2],10),o=parseInt(l[3],10),i=parseFloat(l[4]);else if(l=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(l[1],10)/255,n=parseInt(l[2],10),r=parseInt(l[3],10),o=parseInt(l[4],10);else if(l=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))n=parseInt(l[1],16),r=parseInt(l[2],16),o=parseInt(l[3],16),i=1;else if(l=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))n=parseInt(l[1]+l[1],16),r=parseInt(l[2]+l[2],16),o=parseInt(l[3]+l[3],16),i=1;else if(l=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(l[1]),t=parseFloat(l[3]),a=parseFloat(l[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const s=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const d=s*(1-Math.abs(u%2-1));let c=[];switch(u=Math.floor(u),u){case 0:c=[s,d,0];break;case 1:c=[d,s,0];break;case 2:c=[0,s,d];break;case 3:c=[0,d,s];break;case 4:c=[d,0,s];break;case 5:c=[s,0,d];break;default:c=[0,0,0]}const p=a-.5*s;n=c[0]+p,r=c[1]+p,o=c[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else if(l=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(l[1]),t=parseFloat(l[3]),a=parseFloat(l[5]);i=parseFloat(l[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const s=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const d=s*(1-Math.abs(u%2-1));let c=[];switch(u=Math.floor(u),u){case 0:c=[s,d,0];break;case 1:c=[d,s,0];break;case 2:c=[0,s,d];break;case 3:c=[0,d,s];break;case 4:c=[d,0,s];break;case 5:c=[s,0,d];break;default:c=[0,0,0]}const p=a-.5*s;n=c[0]+p,r=c[1]+p,o=c[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o)}else if(l=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(l[1]),t=parseFloat(l[3]),a=parseFloat(l[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const s=a*t;let u=e/60;const d=s*(1-Math.abs(u%2-1));let c=[];switch(u=Math.floor(u),u){case 0:c=[s,d,0];break;case 1:c=[d,s,0];break;case 2:c=[0,s,d];break;case 3:c=[0,d,s];break;case 4:c=[d,0,s];break;case 5:c=[s,0,d];break;default:c=[0,0,0]}const p=a-s;n=c[0]+p,r=c[1]+p,o=c[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in zk}(e)){const t=zk[e];({r:n,g:r,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+n+r+o+i)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(o),t.a=i,t}function Nk(e){let t,n,r;if(Tk(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`;const o="string"==typeof e?Ok(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),r=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`}function jk(e){let t,n,r=0;const o="string"==typeof e?qk(e):e,i=o.r/255,a=o.g/255,l=o.b/255,{a:s}=o,u=Math.max(i,a,l),d=Math.min(i,a,l),c=(u+d)/2;if(u===d)t=0,r=0;else{switch(n=u-d,t=c>.5?n/(2-u-d):n/(u+d),u){case i:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-i)/n+2;break;case l:r=(i-a)/n+4}r/=6}return{h:360*r,s:100*t,l:100*c,a:s}}function Fk(e){let t,n,r=0;const o="string"==typeof e?qk(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),d=s;if(s===u)t=0,r=0;else{switch(n=s-u,t=0===n?0:n/d,s){case i:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-i)/n+2;break;case l:r=(i-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*d}}function $k(e){if(Tk(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?Ok(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function Bk(e,t){return Tk(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:Bk(qk(e))}function Gk(e){return Tk(e)?1===e.a?$k(e):Bk(e):Gk(qk(e))}const Wk=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function Hk(e){return.2126*Wk(e.r)+.7152*Wk(e.g)+.0722*Wk(e.b)}function Vk(...e){const t=qk(...e);return t.invalid||Hk(t)<.4}function Yk(...e){const t=qk(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=jk(n)),n.spaces.hslaObject),o=e=>{const t=r(),{h:n,s:o,l:i,a:a}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=qk(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>Vk(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=$k(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=Bk(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=Gk(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=Nk(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?qk(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),d=(s+u)/2;if(s===u)t=0,r=0;else{switch(n=s-u,t=d>.5?n/(2-s-u):n/(s+u),s){case i:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-i)/n+2;break;case l:r=(i-a)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*d})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:r,a:o}=jk(e);return`hsla(${t}, ${n}, ${r}, ${o})`}(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:o,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:r}=Fk(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=Fk(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>Yk(o(18*e)),getDarkenedColor:(e=1)=>Yk(o(18*-e))}}function Uk(e,t){if(!e||!t)return;const n=Hk(e),r=Hk(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}var Kk,Xk,Jk=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],Zk=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function Qk(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Zk:Jk}var eL=function(){if(Xk)return Kk;Xk=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Kk=function e(){var t,n,r,s,u,d,c=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof c&&(m=c,c=arguments[1]||{},p=2),(null==c||"object"!=typeof c&&"function"!=typeof c)&&(c={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=l(c,n),c!==(s=l(t,n))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,d=r&&o(r)?r:[]):d=r&&i(r)?r:{},a(c,{name:n,newValue:e(m,d,s)})):void 0!==s&&a(c,{name:n,newValue:s}));return c},Kk}();function tL(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function nL(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function rL(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(eL);var oL=1/.7,iL="\\s*([+-]?\\d+)\\s*",aL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",lL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",sL=/^#([0-9a-f]{3,8})$/,uL=new RegExp(`^rgb\\(${iL},${iL},${iL}\\)$`),dL=new RegExp(`^rgb\\(${lL},${lL},${lL}\\)$`),cL=new RegExp(`^rgba\\(${iL},${iL},${iL},${aL}\\)$`),pL=new RegExp(`^rgba\\(${lL},${lL},${lL},${aL}\\)$`),fL=new RegExp(`^hsl\\(${aL},${lL},${lL}\\)$`),mL=new RegExp(`^hsla\\(${aL},${lL},${lL},${aL}\\)$`),hL={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function gL(){return this.rgb().formatHex()}function bL(){return this.rgb().formatRgb()}function vL(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=sL.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?xL(t):3===n?new wL(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?_L(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?_L(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=uL.exec(e))?new wL(t[1],t[2],t[3],1):(t=dL.exec(e))?new wL(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=cL.exec(e))?_L(t[1],t[2],t[3],t[4]):(t=pL.exec(e))?_L(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=fL.exec(e))?AL(t[1],t[2]/100,t[3]/100,1):(t=mL.exec(e))?AL(t[1],t[2]/100,t[3]/100,t[4]):hL.hasOwnProperty(e)?xL(hL[e]):"transparent"===e?new wL(NaN,NaN,NaN,0):null}function xL(e){return new wL(e>>16&255,e>>8&255,255&e,1)}function _L(e,t,n,r){return r<=0&&(e=t=n=NaN),new wL(e,t,n,r)}function yL(e){return e instanceof rL||(e=vL(e)),e?new wL((e=e.rgb()).r,e.g,e.b,e.opacity):new wL}function SL(e,t,n,r){return 1===arguments.length?yL(e):new wL(e,t,n,null==r?1:r)}function wL(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function CL(){return`#${LL(this.r)}${LL(this.g)}${LL(this.b)}`}function EL(){const e=RL(this.opacity);return`${1===e?"rgb(":"rgba("}${kL(this.r)}, ${kL(this.g)}, ${kL(this.b)}${1===e?")":`, ${e})`}`}function RL(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function kL(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function LL(e){return((e=kL(e))<16?"0":"")+e.toString(16)}function AL(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new PL(e,t,n,r)}function IL(e){if(e instanceof PL)return new PL(e.h,e.s,e.l,e.opacity);if(e instanceof rL||(e=vL(e)),!e)return new PL;if(e instanceof PL)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new PL(a,l,s,e.opacity)}function PL(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ML(e){return(e=(e||0)%360)<0?e+360:e}function DL(e){return Math.max(0,Math.min(1,e||0))}function TL(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}tL(rL,vL,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:gL,formatHex:gL,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return IL(this).formatHsl()},formatRgb:bL,toString:bL}),tL(wL,SL,nL(rL,{brighter(e){return e=null==e?oL:Math.pow(oL,e),new wL(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new wL(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new wL(kL(this.r),kL(this.g),kL(this.b),RL(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:CL,formatHex:CL,formatHex8:function(){return`#${LL(this.r)}${LL(this.g)}${LL(this.b)}${LL(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:EL,toString:EL})),tL(PL,(function(e,t,n,r){return 1===arguments.length?IL(e):new PL(e,t,n,null==r?1:r)}),nL(rL,{brighter(e){return e=null==e?oL:Math.pow(oL,e),new PL(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new PL(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new wL(TL(e>=240?e-240:e+120,o,r),TL(e,o,r),TL(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new PL(ML(this.h),DL(this.s),DL(this.l),RL(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=RL(this.opacity);return`${1===e?"hsl(":"hsla("}${ML(this.h)}, ${100*DL(this.s)}%, ${100*DL(this.l)}%${1===e?")":`, ${e})`}`}}));const OL=Math.PI/180,zL=180/Math.PI,qL=4/29,NL=6/29,jL=3*NL*NL;function FL(e){if(e instanceof $L)return new $L(e.l,e.a,e.b,e.opacity);if(e instanceof VL)return YL(e);e instanceof wL||(e=yL(e));var t,n,r=HL(e.r),o=HL(e.g),i=HL(e.b),a=BL((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=BL((.4360747*r+.3850649*o+.1430804*i)/.96422),n=BL((.0139322*r+.0971045*o+.7141733*i)/.82521)),new $L(116*a-16,500*(t-a),200*(a-n),e.opacity)}function $L(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function BL(e){return e>.008856451679035631?Math.pow(e,1/3):e/jL+qL}function GL(e){return e>NL?e*e*e:jL*(e-qL)}function WL(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function HL(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function VL(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function YL(e){if(isNaN(e.h))return new $L(e.l,0,0,e.opacity);var t=e.h*OL;return new $L(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}tL($L,(function(e,t,n,r){return 1===arguments.length?FL(e):new $L(e,t,n,null==r?1:r)}),nL(rL,{brighter(e){return new $L(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new $L(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new wL(WL(3.1338561*(t=.96422*GL(t))-1.6168667*(e=1*GL(e))-.4906146*(n=.82521*GL(n))),WL(-.9787684*t+1.9161415*e+.033454*n),WL(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),tL(VL,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof VL)return new VL(e.h,e.c,e.l,e.opacity);if(e instanceof $L||(e=FL(e)),0===e.a&&0===e.b)return new VL(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*zL;return new VL(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new VL(e,t,n,null==r?1:r)}),nL(rL,{brighter(e){return new VL(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new VL(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return YL(this).rgb()}}));var UL=e=>()=>e;function KL(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):UL(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?KL:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):UL(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=SL(e)).r,(t=SL(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=KL(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var XL,JL="center",ZL="bottom";function QL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function eA(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function tA(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=rA)):void 0===t&&(t=nA);for(var n,r,o,i,a,l=new aA(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new aA(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(iA)}function nA(e){return e.children}function rA(e){return Array.isArray(e)?e[1]:null}function oA(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function iA(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function aA(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:JL,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:JL,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:JL,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:JL},{key:"DataRangeIncludingZero",alignment:ZL},{key:"LimitedData",alignment:ZL},{key:"NegativeOrZeroValues",alignment:ZL}].reduce((function(e,t){return e[t.key]=t,e}),{}),aA.prototype=tA.prototype={constructor:aA,count:function(){return this.eachAfter(eA)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return tA(this).eachBefore(oA)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},XL=function(e){
113
113
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
114
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,d,c,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),x=b+("."===v||","===v?1:0),_=g>0?e.substring(x,p):"";if(n=(t="-"===(e=e.substring(f,x)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),d=e[0].split(i),e[0]=d.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=d[1]&&d[d.length-1].length){for(h="",b=(c=t[0]).length%s,p=c.length,x=0;x<p;x++)h+=c.charAt(x),!((x-b+1)%s)&&x<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+_}},XL({exports:{}});const lA=(e,t=Dk.TEXT,n=Dk.WHITE)=>{const r=Yk(e),o=Yk(t),i=Yk(n);return r.isInvalid()?t:function(e,t,n){const r=Uk(e,t),o=Uk(e,n);if(void 0!==r&&void 0!==o)return r>o?t:n}(r,i,o).getRGB()},sA=e=>{const t=e.getStyle("","","dataColors.selected")||Dk.SELECTED,n=function(e,t){const n=Yk("#FFFFFF"),r=Yk(e),o=Yk(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const i=Uk(n,r),a=Uk(o,r),l=i>a||i>4.5;return!l&&a>3?o.getHex():l?"#FFFFFF":"#000000"}(t,Dk.TEXT);return{background:t,color:n}},uA=(e,t)=>{const n=Yk(e);return 0===n.a?(n.setAlpha(t.opacity),n.getString()):n.isDark()?n.getBrightenedColor(t.brighter).getString():n.getDarkenedColor(t.darker).getString()},dA=e=>!!e&&0===Yk(e).a,cA=e=>{const t=Yk(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},pA=e=>{e.stopPropagation(),e.preventDefault()},fA=(e,t,n,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:null!=r&&r,defaultValue(e,t,o){var i;const a=null!==(i=null==r?void 0:r(e,t,o))&&void 0!==i&&i,l=o.theme.current(),s=n(l,a);return{color:"transparent"===s?"none":s}}}),mA=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},hA=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"Source Sans Pro, sans-serif",l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>mA(e,!0)))],d=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...Qk(r).filter((e=>!s.includes(e))).map((e=>mA(e,!0)))];return[...u,...d.length>1?d:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),gA=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],bA=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{var r;const o=t.fontSize,i=null!==(r=t.fontSizes)&&void 0!==r?r:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>mA(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...gA.filter((e=>!a.includes(e))).map((e=>mA(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),vA=({section:e,defaultFontStyle:t,translator:n,flags:r,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:hA({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=o(t,e,"fontFamily"))&&void 0!==n?n:t.fontFamily},translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:bA({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=o(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:fA(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=o(t,e,"color"))&&void 0!==n?n:t.color}))}},background:fA(`${e}.background`,"properties.background",((t,n)=>{var r;const i=n?Dk.WHITE:Dk.TRANSPARENT;return null!==(r=o(t,e,"backgroundColor"))&&void 0!==r?r:i}),a)}}}}),xA=({section:e,defaultFontStyle:t,fallbackBackground:n,getThemeValue:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:fA(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=r(t,e,"color"))&&void 0!==n?n:t.color}))}},background:fA(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=r(t,e,"backgroundColor"))&&void 0!==i?i:n)&&void 0!==o?o:"transparent"}))}}}}),_A=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),yA="12px",SA="Source Sans Pro, sans-serif",wA="600",CA=15e3,EA=4/3;var RA,kA;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(RA||(RA={})),function(e){e.Solid="solid",e.None="none"}(kA||(kA={}));const LA={display:"flex",justifyContent:"center",alignItems:"center"},AA={borderStyle:"solid"},IA={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},PA={lineHeight:EA,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},MA=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),DA=(e,t)=>e>0?`${e}px ${kA.Solid} ${t}`:kA.None,TA=(e,t,n,r,o)=>{const i=Number(!t||(null==o?void 0:o.right)),a=Number(!e||(null==o?void 0:o.bottom));return{borderRight:"rtl"!==r?DA(i,n):kA.None,borderBottom:DA(a,n),borderLeft:"rtl"===r?DA(i,n):kA.None,borderTop:kA.None}},OA=(e,t,n,r,o,i,a)=>{const l=TA(t,r,o,i,a);return e.isLeftDimension||(e.isLastDimension&&!t&&(l.borderBottom=DA(2,o)),n||(l.borderLeft="rtl"!==i?DA(1,o):"none",l.borderRight="rtl"===i?DA(1,o):"none")),l},zA=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=DA(1,n)),t&&(r.borderRight=DA(1,n)),r},qA=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:_A("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?_A("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:fA("grid.border","properties.border",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:RA.DividerLight})),divider:fA("grid.divider","properties.pivot.divider",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n||null===(n=n.divider)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:RA.DividerDark})),background:fA("grid.background","properties.background",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:RA.Transparent}))}}}}),NA=(e,t,n)=>{var r,o,i,a,l,s;switch(t){case"header":return null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.dimension)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r[n];case"dimensionValues":return null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[n];case"measureLabels":return null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[n];case"measureValues":return null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[n];case"totalValues":return null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[n];case"nullValues":return null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[n];default:return}},jA=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,defaultValue:[],items:{headerSection:vA({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:NA}),dimensionValueSection:vA({section:"dimensionValues",translator:e,flags:t,getThemeValue:NA}),measureValueSection:vA({section:"measureValues",translator:e,flags:t,getThemeValue:NA}),measureLabelSection:xA({section:"measureLabels",getThemeValue:NA}),totalValuesSection:xA({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:NA}),nullValuesSection:xA({section:"nullValues",fallbackBackground:RA.NullValueBackground,getThemeValue:NA}),gridSection:qA(t)}}]}),FA=e=>{if(e.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}}},$A=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[jA(e,t),{type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:aa.Auto,translation:"Common.Auto"},{value:aa.Pixels,translation:"Object.Table.Column.Pixels"},{value:aa.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:aa.Auto,show:e=>!!e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:ia.PixelsDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===aa.Pixels},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(n.indentModeColumnWidth.pixels=Math.max(ia.PixelsMin,Math.min(ia.PixelsMax,n.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:ia.PercentageDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===aa.Percentage},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(n.indentModeColumnWidth.percentage=Math.max(ia.PercentageMin,Math.min(ia.PercentageMaxInIndentMode,n.indentModeColumnWidth.percentage)))}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){const{qIndentMode:t}=e.qHyperCubeDef;return!t&&!!e.qHyperCubeDef.qDimensions.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)}))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>!!e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,n,r){e.qHyperCubeDef.qExpansionState=[],r.$emit("saveProperties",e)}}}}]},...FA(t)}}),BA="auto",GA={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>{t("integer",e?-1:0)}},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>!!e.qHyperCubeDef.qSortbyYValue}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:BA,translation:"Object.Table.SortingInSearch",options:[{value:BA,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function WA(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:Os(e),sorting:GA,addons:hs,settings:$A(t,n)}}}function HA(e){return{support:{cssScaling:!0,snapshot:!0,export:!0,exploration:e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:WA(e),importProperties:fs(e),exportProperties:ms,exploration:ma(e)}}const VA=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function YA(e,t){return C((()=>e),t)}const UA={},KA=e=>{const t=C((()=>({current:UA})),[]);return t.current=t.current===UA?e:t.current,t},XA=()=>{const{viewState:e}=E(),t=KA(new Set),n=void 0!==e,{promise:r,resolve:o}=C((()=>VA()),[]),i=YA((e=>{n&&t.current.add(e)}),[t]),a=YA(function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,i)}),n)}}((async()=>{await Promise.all(t.current),t.current.clear(),o()}),1e3),[o,t]);return R((async()=>{n&&await r}),[r,n]),C((()=>({viewState:e,isDownloadedAsPDForImage:n,notifyIsDoneRendering:a,waitForPromise:i})),[a,n,e,i])},JA="#grid",ZA=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},QA=(e,t,n,r,o)=>{const i=ZA(".qv-object .qv-inner-object",n),a=ZA(".qv-panel-sheet",n),l=ZA(JA,n),s=null!=l?l:a,u=(e=>{var t,n,r,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(n=l.bgColor)||void 0===n?void 0:n.colorExpression,u=null==l||null===(r=l.bgColor)||void 0===r||null===(r=r.color)||void 0===r?void 0:r.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return cA(s);if("none"===u)return"transparent";if(void 0===u)return;const d=Yk(u);return d.setAlpha(null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:d.a),d.getRGBA()})(e),d=null==r?void 0:r(t),c=null==o?void 0:o(t),p=d||i||c,f=dA(p),m=!dA(h=f?s:p)&&lA(h,Dk.TEXT,Dk.DARK_MODE_TEXT)===$k(Dk.DARK_MODE_TEXT);var h;const g=((e,t,n,r=Dk.WHITE)=>e&&!dA(e)?e:dA(t)?n&&!dA(n)?n:r:t)(u,p,s);return{color:p,headerColor:g,isDark:m}},eI=(e,t,n,r)=>{const o=A(),i=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[n,r]=k([]);return L((()=>{let n;return e&&(n=new MutationObserver((e=>{r(e)})),n.observe(e,t)),()=>{var e;null===(e=n)||void 0===e||e.disconnect()}}),[e,t]),n})(t.closest(JA),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return C((()=>({...o,background:QA(e,o,t,n,r)})),[o.name(),t,n,r,e,i])};function tI(e,t){const n=C((()=>({isLoading:!0})),t),[r,o]=R((async()=>{try{return await e()}finally{n.isLoading=!1}}),t);return[r,n.isLoading,o]}const nI=3;function rI(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=n(a),u=n(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?r=i+1:o=i}return null}function oI({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=nI}={},{estimateWidth:l,measureText:s,estimateLineCount:u}=a((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=QL(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=QL((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=rI(o,t,l)}while(null!==o&&r<i);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:l,measureText:s,estimateLineCount:u}}var iI,aI=w;iI=aI.createRoot,aI.hydrateRoot;const lI="Source Sans Pro, sans-serif";function sI(e,t){const[r,o]=n(t),i=r.some(((e,n)=>e!==t[n]));i&&(o(t),e())}var uI={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const dI=({translator:e})=>(a((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(uI).forEach((t=>{e.add(uI[t])}))}}(e)}),[e]),e);var cI="$$material";const pI=["values","unit","step"];function fI(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Ou(e,pI),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>qs({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return qs({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const mI={borderRadius:4};function hI(e,t){return t?bx(e,t,{clone:!1}):e}const gI={xs:0,sm:600,md:900,lg:1200,xl:1536},bI={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${gI[e]}px)`};function vI(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||bI;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||bI;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||gI).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function xI(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function _I(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function yI(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:_I(e,n)||r,t&&(o=t(o,r,e)),o}function SI(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=_I(e.theme,r)||{};return vI(e,i,(e=>{let r=yI(a,o,e);return e===r&&"string"==typeof e&&(r=yI(a,o,`${t}${"default"===e?"":Rx(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const wI={m:"margin",p:"padding"},CI={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},EI={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},RI=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!EI[e])return[e];e=EI[e]}const[t,n]=e.split(""),r=wI[t],o=CI[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),kI=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],LI=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function AI(e,t,n,r){var o;const i=null!=(o=_I(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function II(e){return AI(e,"spacing",8)}function PI(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function MI(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=PI(t,n),e)),{})}(RI(n),r);return vI(e,e[n],o)}function DI(e,t){const n=II(e.theme);return Object.keys(e).map((r=>MI(e,t,r,n))).reduce(hI,{})}function TI(e){return DI(e,kI)}function OI(e){return DI(e,LI)}function zI(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?hI(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function qI(e){return"number"!=typeof e?e:`${e}px solid`}function NI(e,t){return SI({prop:e,themeKey:"borders",transform:t})}TI.propTypes={},TI.filterProps=kI,OI.propTypes={},OI.filterProps=LI;const jI=NI("border",qI),FI=NI("borderTop",qI),$I=NI("borderRight",qI),BI=NI("borderBottom",qI),GI=NI("borderLeft",qI),WI=NI("borderColor"),HI=NI("borderTopColor"),VI=NI("borderRightColor"),YI=NI("borderBottomColor"),UI=NI("borderLeftColor"),KI=NI("outline",qI),XI=NI("outlineColor"),JI=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=AI(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:PI(t,e)});return vI(e,e.borderRadius,n)}return null};JI.propTypes={},JI.filterProps=["borderRadius"],zI(jI,FI,$I,BI,GI,WI,HI,VI,YI,UI,JI,KI,XI);const ZI=e=>{if(void 0!==e.gap&&null!==e.gap){const t=AI(e.theme,"spacing",8),n=e=>({gap:PI(t,e)});return vI(e,e.gap,n)}return null};ZI.propTypes={},ZI.filterProps=["gap"];const QI=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=AI(e.theme,"spacing",8),n=e=>({columnGap:PI(t,e)});return vI(e,e.columnGap,n)}return null};QI.propTypes={},QI.filterProps=["columnGap"];const eP=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=AI(e.theme,"spacing",8),n=e=>({rowGap:PI(t,e)});return vI(e,e.rowGap,n)}return null};eP.propTypes={},eP.filterProps=["rowGap"];function tP(e,t){return"grey"===t?t:e}zI(ZI,QI,eP,SI({prop:"gridColumn"}),SI({prop:"gridRow"}),SI({prop:"gridAutoFlow"}),SI({prop:"gridAutoColumns"}),SI({prop:"gridAutoRows"}),SI({prop:"gridTemplateColumns"}),SI({prop:"gridTemplateRows"}),SI({prop:"gridTemplateAreas"}),SI({prop:"gridArea"}));function nP(e){return e<=1&&0!==e?100*e+"%":e}zI(SI({prop:"color",themeKey:"palette",transform:tP}),SI({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:tP}),SI({prop:"backgroundColor",themeKey:"palette",transform:tP}));const rP=SI({prop:"width",transform:nP}),oP=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||gI[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:nP(t)}};return vI(e,e.maxWidth,t)}return null};oP.filterProps=["maxWidth"];const iP=SI({prop:"minWidth",transform:nP}),aP=SI({prop:"height",transform:nP}),lP=SI({prop:"maxHeight",transform:nP}),sP=SI({prop:"minHeight",transform:nP});SI({prop:"size",cssProperty:"width",transform:nP}),SI({prop:"size",cssProperty:"height",transform:nP});zI(rP,oP,iP,aP,lP,sP,SI({prop:"boxSizing"}));const uP={border:{themeKey:"borders",transform:qI},borderTop:{themeKey:"borders",transform:qI},borderRight:{themeKey:"borders",transform:qI},borderBottom:{themeKey:"borders",transform:qI},borderLeft:{themeKey:"borders",transform:qI},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:qI},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:JI},color:{themeKey:"palette",transform:tP},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:tP},backgroundColor:{themeKey:"palette",transform:tP},p:{style:OI},pt:{style:OI},pr:{style:OI},pb:{style:OI},pl:{style:OI},px:{style:OI},py:{style:OI},padding:{style:OI},paddingTop:{style:OI},paddingRight:{style:OI},paddingBottom:{style:OI},paddingLeft:{style:OI},paddingX:{style:OI},paddingY:{style:OI},paddingInline:{style:OI},paddingInlineStart:{style:OI},paddingInlineEnd:{style:OI},paddingBlock:{style:OI},paddingBlockStart:{style:OI},paddingBlockEnd:{style:OI},m:{style:TI},mt:{style:TI},mr:{style:TI},mb:{style:TI},ml:{style:TI},mx:{style:TI},my:{style:TI},margin:{style:TI},marginTop:{style:TI},marginRight:{style:TI},marginBottom:{style:TI},marginLeft:{style:TI},marginX:{style:TI},marginY:{style:TI},marginInline:{style:TI},marginInlineStart:{style:TI},marginInlineEnd:{style:TI},marginBlock:{style:TI},marginBlockStart:{style:TI},marginBlockEnd:{style:TI},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ZI},rowGap:{style:eP},columnGap:{style:QI},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:nP},maxWidth:{style:oP},minWidth:{transform:nP},height:{transform:nP},maxHeight:{transform:nP},minHeight:{transform:nP},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function dP(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const d=_I(n,l)||{};if(u)return u(o);return vI(o,t,(t=>{let n=yI(d,s,t);return t===n&&"string"==typeof t&&(n=yI(d,s,`${e}${"default"===t?"":Rx(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const l=null!=(r=i.unstable_sxConfig)?r:uP;function s(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}(i.breakpoints),s=Object.keys(o);let u=o;return Object.keys(r).forEach((n=>{const o=(a=r[n],s=i,"function"==typeof a?a(s):a);var a,s;if(null!=o)if("object"==typeof o)if(l[n])u=hI(u,e(n,o,i,l));else{const e=vI({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?u=hI(u,e):u[n]=t({sx:o,theme:i,nested:!0})}else u=hI(u,e(n,o,i,l))})),!a&&i.modularCssLayers?{"@layer sx":xI(s,u)}:xI(s,u)}return Array.isArray(o)?o.map(s):s(o)}}const cP=dP();function pP(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}cP.filterProps=["sx"];const fP=["breakpoints","palette","spacing","shape"];function mP(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Ou(e,fP),l=fI(n),s=function(e=8){if(e.mui)return e;const t=II({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=bx({breakpoints:l,direction:"ltr",components:{},palette:qs({mode:"light"},r),spacing:s,shape:qs({},mI,i)},a);return u.applyStyles=pP,u=t.reduce(((e,t)=>bx(e,t)),u),u.unstable_sxConfig=qs({},uP,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return cP({sx:e,theme:this})},u}var hP=Object.freeze({__proto__:null,default:mP,private_createBreakpoints:fI,unstable_applyStyles:pP});function gP(e=null){const t=c.useContext(Zv);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const bP=mP();function vP(e=bP){return gP(e)}function xP(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function _P({styles:e,themeId:t,defaultTheme:n={}}){const r=vP(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>xP("function"==typeof e?e(o):e))):xP(i)),de.jsx(dx,{styles:i})}const yP=["sx"];function SP(e){const{sx:t}=e,n=Ou(e,yP),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:uP;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return hx(n)?qs({},r,n):r}:qs({},r,t),qs({},o,{sx:i})}var wP=Object.freeze({__proto__:null,default:cP,extendSxProp:SP,unstable_createStyleFunctionSx:dP,unstable_defaultSxConfig:uP});const CP=["className","component"];function EP(e){if(e.type)return e;if("#"===e.charAt(0))return EP(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Sg(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Sg(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function RP(e,t){return e=EP(e),t=function(e,t=0,n=1){return dy(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}const kP=["value"],LP=c.createContext();function AP(e){let{value:t}=e,n=Ou(e,kP);return de.jsx(LP.Provider,qs({value:null==t||t},n))}const IP=c.createContext(void 0);function PP({value:e,children:t}){return de.jsx(IP.Provider,{value:e,children:t})}function MP({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?sy(o.defaultProps,r):o.styleOverrides||o.variants?r:sy(o,r)}({props:e,name:t,theme:{components:c.useContext(IP)}})}const DP={};function TP(e,t,n,r=!1){return c.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?qs({},t,{[e]:i}):i;return r?()=>a:a}return qs({},t,e?{[e]:n}:n)}),[e,t,n,r])}function OP(e){const{children:t,theme:n,themeId:r}=e,o=gP(DP),i=Yy()||DP,a=TP(r,o,n),l=TP(r,i,n,!0),s="rtl"===a.direction,u=function(e){const t=gP(),n=yy()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",uy((()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",n),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${n}"]`))||i.remove()}}),[o,n]),o?de.jsx(_P,{styles:o}):null}(a);return de.jsx(Ky,{theme:l,children:de.jsx(Zv.Provider,{value:a,children:de.jsx(AP,{value:s,children:de.jsxs(PP,{value:null==a?void 0:a.components,children:[u,t]})})})})}function zP(e,t){return qs({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var qP={},NP=nS;Object.defineProperty(qP,"__esModule",{value:!0});var jP=qP.alpha=ZP;qP.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=YP(e),a=YP(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return KP({type:"rgb",values:l})},qP.colorChannel=void 0;var FP=qP.darken=QP;qP.decomposeColor=YP,qP.emphasize=tM;var $P=qP.getContrastRatio=function(e,t){const n=JP(e),r=JP(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};qP.getLuminance=JP,qP.hexToRgb=VP,qP.hslToRgb=XP;var BP=qP.lighten=eM;qP.private_safeAlpha=function(e,t,n){try{return ZP(e,t)}catch(t){return e}},qP.private_safeColorChannel=void 0,qP.private_safeDarken=function(e,t,n){try{return QP(e,t)}catch(t){return e}},qP.private_safeEmphasize=function(e,t,n){try{return tM(e,t)}catch(t){return e}},qP.private_safeLighten=function(e,t,n){try{return eM(e,t)}catch(t){return e}},qP.recomposeColor=KP,qP.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=YP(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var GP=NP(rS),WP=NP(oS);function HP(e,t=0,n=1){return(0,WP.default)(e,t,n)}function VP(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function YP(e){if(e.type)return e;if("#"===e.charAt(0))return YP(VP(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,GP.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,GP.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const UP=e=>{const t=YP(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};qP.colorChannel=UP;function KP(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function XP(e){e=YP(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),KP({type:l,values:s})}function JP(e){let t="hsl"===(e=YP(e)).type||"hsla"===e.type?YP(XP(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ZP(e,t){return e=YP(e),t=HP(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,KP(e)}function QP(e,t){if(e=YP(e),t=HP(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return KP(e)}function eM(e,t){if(e=YP(e),t=HP(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return KP(e)}function tM(e,t=.15){return JP(e)>.5?QP(e,t):eM(e,t)}qP.private_safeColorChannel=(e,t)=>{try{return UP(e)}catch(t){return e}};const nM={black:"#000",white:"#fff"},rM={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},oM="#f3e5f5",iM="#ce93d8",aM="#ba68c8",lM="#ab47bc",sM="#9c27b0",uM="#7b1fa2",dM="#e57373",cM="#ef5350",pM="#f44336",fM="#d32f2f",mM="#c62828",hM="#ffb74d",gM="#ffa726",bM="#ff9800",vM="#f57c00",xM="#e65100",_M="#e3f2fd",yM="#90caf9",SM="#42a5f5",wM="#1976d2",CM="#1565c0",EM="#4fc3f7",RM="#29b6f6",kM="#03a9f4",LM="#0288d1",AM="#01579b",IM="#81c784",PM="#66bb6a",MM="#4caf50",DM="#388e3c",TM="#2e7d32",OM="#1b5e20",zM=["mode","contrastThreshold","tonalOffset"],qM={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:nM.white,default:nM.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},NM={text:{primary:nM.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:nM.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function jM(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=BP(e.main,o):"dark"===t&&(e.dark=FP(e.main,i)))}function FM(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Ou(e,zM),i=e.primary||function(e="light"){return"dark"===e?{main:yM,light:_M,dark:SM}:{main:wM,light:SM,dark:CM}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:iM,light:oM,dark:lM}:{main:sM,light:aM,dark:uM}}(t),l=e.error||function(e="light"){return"dark"===e?{main:pM,light:dM,dark:fM}:{main:fM,light:cM,dark:mM}}(t),s=e.info||function(e="light"){return"dark"===e?{main:RM,light:EM,dark:LM}:{main:LM,light:kM,dark:AM}}(t),u=e.success||function(e="light"){return"dark"===e?{main:PM,light:IM,dark:DM}:{main:TM,light:MM,dark:OM}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:gM,light:hM,dark:vM}:{main:"#ed6c02",light:bM,dark:xM}}(t);function c(e){return $P(e,NM.text.primary)>=n?NM.text.primary:qM.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=qs({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Sg(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Sg(12,t?` (${t})`:"",JSON.stringify(e.main)));return jM(e,"light",o,r),jM(e,"dark",i,r),e.contrastText||(e.contrastText=c(e.main)),e},f={dark:NM,light:qM};return bx(qs({common:qs({},nM),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:rM,contrastThreshold:n,getContrastText:c,augmentColor:p,tonalOffset:r},f[t]),o)}const $M=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const BM={textTransform:"uppercase"},GM='"Roboto", "Helvetica", "Arial", sans-serif';function WM(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=GM,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:d,pxToRem:c}=n,p=Ou(n,$M),f=o/14,m=c||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return qs({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===GM?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,d);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,BM),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,BM),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return bx(qs({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function HM(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const VM=["none",HM(0,2,1,-1,0,1,1,0,0,1,3,0),HM(0,3,1,-2,0,2,2,0,0,1,5,0),HM(0,3,3,-2,0,3,4,0,0,1,8,0),HM(0,2,4,-1,0,4,5,0,0,1,10,0),HM(0,3,5,-1,0,5,8,0,0,1,14,0),HM(0,3,5,-1,0,6,10,0,0,1,18,0),HM(0,4,5,-2,0,7,10,1,0,2,16,1),HM(0,5,5,-3,0,8,10,1,0,3,14,2),HM(0,5,6,-3,0,9,12,1,0,3,16,2),HM(0,6,6,-3,0,10,14,1,0,4,18,3),HM(0,6,7,-4,0,11,15,1,0,4,20,3),HM(0,7,8,-4,0,12,17,2,0,5,22,4),HM(0,7,8,-4,0,13,19,2,0,5,24,4),HM(0,7,9,-4,0,14,21,2,0,5,26,4),HM(0,8,9,-5,0,15,22,2,0,6,28,5),HM(0,8,10,-5,0,16,24,2,0,6,30,5),HM(0,8,11,-5,0,17,26,2,0,6,32,5),HM(0,9,11,-5,0,18,28,2,0,7,34,6),HM(0,9,12,-6,0,19,29,2,0,7,36,6),HM(0,10,13,-6,0,20,31,3,0,8,38,7),HM(0,10,13,-6,0,21,33,3,0,8,40,7),HM(0,10,14,-6,0,22,35,3,0,8,42,7),HM(0,11,14,-7,0,23,36,3,0,9,44,8),HM(0,11,15,-7,0,24,38,3,0,9,46,8)],YM=["duration","easing","delay"],UM={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},KM={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function XM(e){return`${Math.round(e)}ms`}function JM(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ZM(e){const t=qs({},UM,e.easing),n=qs({},KM,e.duration);return qs({getAutoHeightDuration:JM,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Ou(r,YM),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:XM(o)} ${i} ${"string"==typeof a?a:XM(a)}`)).join(",")}},e,{easing:t,duration:n})}const QM={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},eD=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function tD(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Ou(e,eD);if(e.vars&&void 0===e.generateCssVars)throw new Error(Sg(18));const l=FM(r),s=mP(e);let u=bx(s,{mixins:zP(s.breakpoints,n),palette:l,shadows:VM.slice(),typography:WM(l,i),transitions:ZM(o),zIndex:qs({},QM)});return u=bx(u,a),u=t.reduce(((e,t)=>bx(e,t)),u),u.unstable_sxConfig=qs({},uP,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return cP({sx:e,theme:this})},u}const nD=tD();function rD(){const e=vP(nD);return e[cI]||e}var oD={},iD=ee(hP),aD=ee(wP),lD=nS;Object.defineProperty(oD,"__esModule",{value:!0});var sD=oD.default=function(e={}){const{themeId:t,defaultTheme:n=yD,rootShouldForwardProp:r=xD,slotShouldForwardProp:o=xD}=e,i=e=>(0,mD.default)((0,uD.default)({},e,{theme:wD((0,uD.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,cD.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:d,overridesResolver:c=CD(SD(s))}=a,p=(0,dD.default)(a,bD),f=l&&l.startsWith("Mui")||s?"components":"custom",m=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=d||!1;let g=xD;"Root"===s||"root"===s?g=r:s?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const b=(0,cD.default)(e,(0,uD.default)({shouldForwardProp:g,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,pD.isPlainObject)(e)?r=>{const o=wD({theme:r.theme,defaultTheme:n,themeId:t});return ED(e,(0,uD.default)({},r,{theme:o}),o.modularCssLayers?f:void 0)}:e,x=(r,...o)=>{let a=v(r);const s=o?o.map(v):[];l&&c&&s.push((e=>{const r=wD((0,uD.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=ED(n,(0,uD.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)})),c(e,i)})),l&&!m&&s.push((e=>{var r;const o=wD((0,uD.default)({},e,{defaultTheme:n,themeId:t}));return ED({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,uD.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const d=b(a,...s);return e.muiName&&(d.muiName=e.muiName),d};return b.withConfig&&(x.withConfig=b.withConfig),x}};oD.shouldForwardProp=xD,oD.systemDefaultTheme=void 0;var uD=lD(US()),dD=lD(JS()),cD=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=vD(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(ZS),pD=QS;lD(ew),lD(tw);var fD=lD(iD),mD=lD(aD);const hD=["ownerState"],gD=["variants"],bD=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function vD(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(vD=function(e){return e?n:t})(e)}function xD(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function _D(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const yD=oD.systemDefaultTheme=(0,fD.default)(),SD=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function wD({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function CD(e){return e?(t,n)=>n[e]:null}function ED(e,t,n){let{ownerState:r}=t,o=(0,dD.default)(t,hD);const i="function"==typeof e?e((0,uD.default)({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap((e=>ED(e,(0,uD.default)({ownerState:r},o),n)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,dD.default)(i,gD);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,uD.default)({ownerState:r},o,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)})),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,uD.default)({ownerState:r},o,r)):e.style;t.push(n?_D((0,cD.internal_serializeStyles)(i),n):i)}})),t}return n?_D((0,cD.internal_serializeStyles)(i),n):i}const RD=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,kD=sD({themeId:cI,defaultTheme:nD,rootShouldForwardProp:RD}),LD=["theme"];function AD(e){let{theme:t}=e,n=Ou(e,LD);const r=t[cI];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=qs({},r,{vars:null}):t&&!t.vars&&(o=qs({},t,{vars:null}))),de.jsx(OP,qs({},n,{themeId:r?cI:void 0,theme:o}))}const ID=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},PD={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},MD={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},DD=Cw("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t,dir:n})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===n?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...PD},"&::-moz-range-track":{...PD},"&::-ms-track":{...PD},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...MD},"&::-moz-range-thumb":{...MD},"&::-ms-thumb":{...MD},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}}))),TD=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:d,accessibilityRelatedArgs:c,direction:p="ltr"})=>{const f=dI({translator:c.translator}),h=m({initWidth:e,columnWidth:e,initX:0}),g=n?0:1,b=r&&!d,v=()=>b?h.current.columnWidth-g:"100%",x={left:"rtl"!==p?v():void 0,right:"rtl"===p?v():void 0},_=t=>{h.current={initWidth:e,columnWidth:e,initX:null!=t?t:h.current.initX}};sI((()=>{b&&_()}),[e]);const y=e=>{const t=Math.max(e,ia.PixelsMin);h.current.columnWidth=t,a(t)},S=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:aa.Pixels,pixels:h.current.columnWidth};l(e)}else null==u||u(!1)},w=e=>{const t="rtl"===p?h.current.initWidth+h.current.initX-e.clientX:h.current.initWidth+e.clientX-h.current.initX;y(t)},C=e=>{pA(e),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C),S()},E=e=>{const t="rtl"===p?h.current.initWidth+-h.current.initX-e.touches[0].clientX:h.current.initWidth+e.touches[0].clientX-h.current.initX;y(t)},R=e=>{pA(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",R),S()},k=!r&&s?e=>{if(e.key===ra.Left||e.key===ra.Right){pA(e);const t=5,n=e.key===ra.Left?t:-t,r="rtl"===p?n:-n;y(h.current.columnWidth+r)}else e.key===ra.Space||e.key===ra.Enter?(pA(e),s(e),S()):e.key===ra.Esc&&(pA(e),s(e),y(h.current.initWidth))}:void 0,L=f.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return i.createElement(DD,{style:x,key:t,hoverColor:o,isLastColumn:n,className:oa,"data-testid":oa,onMouseDown:e=>{pA(e),document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),null==u||u(!0),_(e.clientX)},onDoubleClick:()=>{l({type:aa.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(pA(e),document.addEventListener("touchmove",E),document.addEventListener("touchend",R),null==u||u(!0),_(e.touches[0].clientX))},onKeyDown:k,onBlur:s,onFocus:()=>{_()},type:"range",tabIndex:-1,"aria-label":L,"aria-valuemin":ia.PixelsMin,"aria-valuemax":ia.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:p})},OD=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),zD=Cw(aE,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),qD=Cw(OD,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),ND=Cw($R)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),jD=Cw(NE)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),FD=Cw(VR)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),$D=Cw(VR,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:n?"rgba(0, 0, 0, 0.05)":"transparent"}))),BD=Cw("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:n})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:n||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),GD=Cw("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),WD=Cw(SC)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),HD=Cw(mR,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:n})=>({width:16,minWidth:"unset !important",marginRight:n||"rtl"!==t?e.spacing(1.5):0,marginLeft:n||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0}))),VD=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),YD=e=>{const t=e.nextElementSibling;var n;return t?"HR"===t.tagName?YD(t):t:null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[0]},UD=e=>{const t=e.previousElementSibling;if(!t){var n,r;const t=null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n.length;return null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[t-1]}return"HR"===t.tagName?UD(t):t},KD=e=>{var t;const{key:n,currentTarget:r}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:r;if(n===ra.Down||n===ra.Up){const t=e=>n===ra.Down?YD(e):UD(e);e.preventDefault(),e.stopPropagation();let r=t(o);for(;r;){if("true"!==r.ariaDisabled){r.focus();break}r=t(r)}}},XD=(e,t)=>e.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((({onClick:e,...n})=>({...n,...e?{onClick:async n=>{Object.entries(t).forEach((([,e])=>{e(!1)})),await e(n)}}:{}})))})))));let JD={};const ZD=({autoFocus:e,id:t,onClick:r,itemTitle:o,icon:a,enabled:l,subMenus:s,isSubMenu:u,isActive:d,direction:c,isPagination:p})=>{const[f,g]=n(!1),b=m(null),v=h((e=>{e.stopPropagation(),g(!1)}),[g]);return i.createElement(i.Fragment,null,i.createElement($D,{ref:s?b:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),JD={}),null!=s&&s.length&&(g(!0),JD[o]=g))},disabled:!l,autoFocus:e,isSubMenu:!!u,isActive:!!d,onKeyDown:KD},d?i.createElement(BD,{direction:c,isPagination:p}):null,i.createElement(GD,null,i.createElement(HD,{direction:c,isPagination:p},i.createElement(a,null)),i.createElement(WD,{variant:"body2"},o)),null!=s&&s.length?i.createElement(VD,null):null),null!=s&&s.length?i.createElement(tT,{isSubMenu:!0,open:f,anchorEl:b.current,onClose:v,menuGroups:XD(s,JD),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:p}):null)},QD=({menuGroup:e,isSubMenu:t,direction:n,isPagination:r})=>e.map((e=>[[e.groupHeading&&i.createElement(FD,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),e.items.map((e=>i.createElement(ZD,ve({key:e.id},e,{isSubMenu:t,direction:n,isPagination:r}))))].filter(Boolean)])),eT={appear:0,enter:0,exit:0},tT=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:a,isSubMenu:l,direction:s,isPagination:u})=>r.length?i.createElement(ND,ve({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:eT,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},a?{anchorOrigin:a}:{},o?{transformOrigin:o}:{},{dir:s}),(({itemGroups:e,isSubMenu:t,direction:n,isPagination:r})=>e.map(((o,a)=>[QD({menuGroup:o,isSubMenu:t,direction:n,isPagination:r}),a<e.length-1?i.createElement(jD,{"data-testid":"group-divider",variant:"middle"}):void 0])))({itemGroups:r,isSubMenu:l,direction:s,isPagination:u})):null,nT=(e,t)=>e.some((e=>t[e]>0)),rT={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},oT=({open:e,qStateName:t="$",headerData:o,app:i})=>{const[a,l]=n(null),[s,u]=n(rT);return sI((()=>{e||(u(rT),l(null))}),[e]),r((()=>{if(null==i||!i.createSessionObject||!o.isDim||!e)return()=>{};let n,r=!1;const a=()=>{n&&i.destroySessionObject(n)};return(async()=>{try{var e,s,d;const c=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,o),p=await i.createSessionObject(c),f=await p.getLayout(),{qStateCounts:m}=null!==(e=null===(s=f.qListObject)||void 0===s?void 0:s.qDimensionInfo)&&void 0!==e?e:{};n=null===(d=f.qInfo)||void 0===d?void 0:d.qId,r?a():(l(p),m&&u((e=>({canSelectAll:nT(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:nT(["qSelected"],e),canSelectPossible:nT(["qOption"],e),canSelectAlternative:nT(["qAlternative"],e),canSelectExcluded:nT(["qAlternative","qExcluded"],e)}))(m)))}catch(e){console.error(e)}})(),()=>{r=!0,a()}}),[e,i,o,t]),{fieldInstance:a,selectionActionsEnabledStatus:s}},iT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})}))),aT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})}))),lT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})}))),sT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})}))),uT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})}))),dT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})}))),cT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})}))),pT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})}))),fT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})}))),mT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),hT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),gT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),bT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})})));let vT=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const xT="/qListObjectDef",_T=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,focusColumnAdjuster:d,setActiveFieldCallback:c,expandOrCollapseArgs:p})=>{const f=[];if(n[vT.Sorting]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),r(!1)},icon:iT,enabled:a,isActive:!!n&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),r(!1)},icon:sT,enabled:l,isActive:!!n&&"D"===i,autoFocus:!a&&l}]}])}if(e.isCyclic&&c){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos].label,enabled:!0,icon:cT,subMenus:[[{items:e.groupDimensionLabels.map((({label:t,enabled:n},o)=>({id:o+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),r(!1),c(o)},enabled:n,icon:ui,isActive:e.groupDimensionPos===o})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];n[vT.Searching]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:pT,enabled:!0}]}]),n[vT.Selections]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:bT,enabled:!!l,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectListObjectAll(xT))},icon:fT,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectListObjectPossible(xT))},icon:gT,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectListObjectAlternative(xT))},icon:mT,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectListObjectExcluded(xT))},icon:hT,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.clearSelections(xT))},icon:aT,enabled:s.canClearSelections}]}]]}]}]),p&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.expandCallback()},icon:dT,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.collapseCallback()},icon:uT,enabled:!0}]}]),e.length>0&&f.push(...e)}return n[vT.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==d||d(u)},icon:lT,enabled:!0}]}]),f},yT=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:d,selectionRelatedArgs:c,adjustHeaderSizeRelatedArgs:p,expandOrCollapseArgs:f,model:m,direction:g="ltr",isPagination:b})=>{var v;const x=dI({translator:o}),{qLibraryId:_,fieldId:y,headTextAlign:S}=r,w=null==c?void 0:c.app,{fieldInstance:C,selectionActionsEnabledStatus:E}=oT({open:e,headerData:r,app:w,qStateName:null==c?void 0:c.qStateName});let R=null;if(m&&"setActiveField"in m&&void 0!==r.dimensionInfoIndex){const e=r.dimensionInfoIndex;R=async t=>{try{await m.setActiveField("/qHyperCubeDef",e,t)}catch(e){console.error(e)}}}const k=h((()=>{const e=_?{qLibraryId:_,type:"dimension"}:y;if(null!=d&&d.embed){const{embed:t,listboxRef:n}=d;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===g?"right":"left"},sortCriteria:d.sortCriteria,stateName:null==c?void 0:c.qStateName,direction:g})}}),[_,y,d,null==c?void 0:c.qStateName,g]),L=h((e=>{e.stopPropagation(),t(!1)}),[t]);return a.active?i.createElement(zD,{rightAligned:"right"===S,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper"},s?i.createElement(qD,{height:ea,className:ta,"data-testid":ta,isInteractionsActive:null!==(v=a.active)&&void 0!==v&&v},i.createElement(OD,null)):null,i.createElement(tT,{open:e,anchorEl:n.current,onClose:L,menuGroups:_T({headerData:r,translator:x,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:k,interactions:a,fieldInstance:C,selectionActionsEnabledStatus:E,anchorRef:n,focusColumnAdjuster:null==p?void 0:p.focusColumnAdjuster,setActiveFieldCallback:R,expandOrCollapseArgs:f}),direction:g,isPagination:b})):null},ST=e=>e.isDark?{background:e.color,borderColor:Dk.DARK_MODE_BORDER,color:Dk.DARK_MODE_TEXT,disabledColor:Dk.DARK_MODE_DISABLED,iconColor:Dk.DARK_MODE_TEXT}:{background:e.color,borderColor:Dk.BORDER_MEDIUM,color:Dk.TEXT,disabledColor:Dk.DISABLED},wT=Cw(aE,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),CT=Cw(Rk,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),ET=Cw(gE,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),RT=Cw(SC)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),kT=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const l=a((()=>ST(r.background)),[r]);if(!n.active)return null;const s=o?i.createElement(wT,{footerStyle:l},e):null;return t?w.createPortal(e,t):s},LT=f({}),AT=()=>p(LT),IT=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:l,handleChangePage:s,totalRowCount:u,totalColumnCount:d,totalPages:c,keyboard:p,translator:f,theme:m,interactions:h,rect:g,layout:b})=>{const v=(e=>!e.enabled||e.active)(p)?0:-1,x=a((()=>ST(m.background)),[m]),_=o?o.getBoundingClientRect().width:g.width,y=dI({translator:f}),S=a((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:l,handleChangePage:s,totalRowCount:u,totalColumnCount:d,totalPages:c,keyboard:p,translator:y,theme:m,interactions:h,rect:g,layout:b,footerStyle:x,tabIndex:v,width:_})),[t,n,r,o,l,s,u,d,c,p,y,m,h,g,b,x,v,_]);return i.createElement(LT.Provider,{value:S},e)};let PT=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),MT=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});const DT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),TT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),OT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),zT={FirstPage:TT,PreviousPage:DT,NextPage:VD,LastPage:OT,FirstPageRTL:OT,PreviousPageRTL:VD,NextPageRTL:DT,LastPageRTL:TT},qT=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=AT(),u=n.concat("rtl"===r?"RTL":""),d=zT[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?void 0:()=>{i(t)}},IconComponent:d}},NT=()=>{const{pageInfo:e,width:t}=AT(),n=0===e.page,{IconComponent:r,styledProps:o}=qT({type:PT.FirstPage,disabledCondition:n,pageNumber:0});return t<=MT.FirstPage?null:i.createElement(ET,o,i.createElement(r,{height:ea}))},jT=(e,t,n=!1)=>{n&&e.key===ra.Tab&&!e.shiftKey&&(pA(e),((e,t,n)=>{var r,o,i,a;const l=null!==(r=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==r?r:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,n)})(e.target,t,!1))},FT=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=AT(),a=e.page>=n-1,{IconComponent:l,styledProps:s}=qT({type:PT.LastPage,disabledCondition:a,pageNumber:n-1}),u=t.enabled?e=>{jT(e,t,r)}:void 0;return o<=MT.LastPage?null:i.createElement(ET,ve({},s,{onKeyDown:u}),i.createElement(l,{height:ea}))},$T=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=AT(),a=e.page>=n-1,{IconComponent:l,styledProps:s}=qT({type:PT.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>MT.FirstPage&&o>MT.LastPage)&&t.enabled?e=>{jT(e,t,r)}:void 0;return i.createElement(ET,ve({},s,{onKeyDown:u}),i.createElement(l,{height:ea}))},BT=()=>{const{pageInfo:e}=AT(),t=0===e.page,{IconComponent:n,styledProps:r}=qT({type:PT.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return i.createElement(ET,r,i.createElement(n,{height:ea}))},GT=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=AT(),{page:o,rowsPerPage:a}=n;if(t<=MT.DisplayedRowsLabel)return null;const l=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*a+1} - ${Math.min((o+1)*a,r)}`,r.toString()]);return i.createElement(RT,{variant:"caption",dir:"ltr"},l)},WT=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:a,translator:l,tabIndex:s}=AT(),u=o.qInfo.qId,d=l.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,p=`${c}-label-${u}`,f={tabIndex:s,id:`${c}-${u}`,"data-testid":c,"aria-labelledby":p};return i.createElement(i.Fragment,null,i.createElement(RT,{variant:"caption",id:p},d,":"),i.createElement(CT,{footerStyle:a,size:"small",native:!0,value:t,onChange:r,inputProps:f},n))},HT=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:a}=AT();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>MT.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const l=i.createElement(i.Fragment,null,t.rowsPerPageOptions.map((e=>i.createElement("option",{key:e,value:e},e))));return i.createElement(WT,{name:"RowsPerPage",value:t.rowsPerPage,options:l,handleChange:e=>{null==a||a(+e.target.value)}})},VT=1e3,YT="…",UT=({totalPages:e,page:t})=>{const n=Math.min(e,VT),r=n<e&&t>500,o=r?Math.min(500+t,e):n,a=r?Math.max(0,o-VT):0,l=Array.from(Array(n).keys()).map((e=>{const t=e+a;return i.createElement("option",{key:t,value:t},t+1)}));return a>0&&l.unshift(i.createElement("option",{key:"startMoreOptions",value:YT,disabled:!0},YT)),o<e-1&&l.push(i.createElement("option",{key:"endMoreOptions",value:YT,disabled:!0},YT)),i.createElement(i.Fragment,null,l)},KT=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=AT(),{page:o}=e;if(t<=MT.SelectPage)return null;const a=i.createElement(UT,{totalPages:n,page:o});return i.createElement(WT,{name:"SelectPage",value:o,options:a,handleChange:e=>{r(+e.target.value)}})};var XT=_((e=>i.createElement(IT,e,i.createElement(HT,null),i.createElement(KT,null),i.createElement(GT,null),i.createElement(NT,null),i.createElement(BT,null),i.createElement($T,null),i.createElement(FT,null))));const JT=e=>i.createElement(kT,e,i.createElement(XT,e)),ZT=f({}),QT=()=>p(ZT),eO=({rect:e,pageInfo:t,qPivotDataPages:n,updatePageInfo:r,direction:o,children:i})=>{const l=a((()=>({rect:e,pageInfo:t,qPivotDataPages:n,updatePageInfo:r,direction:o})),[e,t,n,r,o]);return de.jsx(ZT.Provider,{value:l,children:i})},tO=f({}),nO=()=>p(tO),rO=({app:e,model:t,theme:n,embed:r,keyboard:o,translator:i,interactions:l,env:s,children:u})=>{const d=a((()=>({model:t,app:e,interactions:l,embed:r,theme:n,keyboard:o,env:s,translator:i})),[e,l,t,r,n,o,s,i]);return de.jsx(tO.Provider,{value:d,children:u})},oO=f({}),iO=()=>p(oO),aO=({children:e,...t})=>de.jsx(oO.Provider,{value:t,children:e}),lO=()=>{const{text:e,fontFamily:t,fontSize:n,justifyContent:r,alignItems:o,height:i}=(()=>{var e;const{theme:t,translator:n}=nO(),{layoutService:r}=iO(),o=null!==(e=t.getStyle("","","fontFamily"))&&void 0!==e?e:SA;return r.hasData?r.hasLimitedData?{text:n.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:n.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:de.jsx("div",{style:{display:"flex",justifyContent:r,alignItems:o,width:"100%",height:i},children:de.jsx("span",{style:{...PA,fontFamily:t,fontSize:n,fontStyle:"italic",color:"#7b7a78"},children:e})})},sO="/qHyperCubeDef",uO=-1,dO="PSEUDO-DIM",cO=[];for(let e=0;e<256;++e)cO.push((e+256).toString(16).slice(1));let pO;const fO=new Uint8Array(16);var mO={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function hO(e,t,n){var r,o,i,a;if(mO.randomUUID&&!e)return mO.randomUUID();const l=null!==(r=null!==(o=(e=e||{}).random)&&void 0!==o?o:null===(i=(a=e).rng)||void 0===i?void 0:i.call(a))&&void 0!==r?r:function(){if(!pO){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");pO=crypto.getRandomValues.bind(crypto)}return pO(fO)}();if(l.length<16)throw new Error("Random bytes length must be >= 16");return l[6]=15&l[6]|64,l[8]=63&l[8]|128,function(e,t=0){return(cO[e[t+0]]+cO[e[t+1]]+cO[e[t+2]]+cO[e[t+3]]+"-"+cO[e[t+4]]+cO[e[t+5]]+"-"+cO[e[t+6]]+cO[e[t+7]]+"-"+cO[e[t+8]]+cO[e[t+9]]+"-"+cO[e[t+10]]+cO[e[t+11]]+cO[e[t+12]]+cO[e[t+13]]+cO[e[t+14]]+cO[e[t+15]]).toLowerCase()}(l)}const gO=()=>{var e,t,n;return null!==(e=null===(t=crypto)||void 0===t||null===(n=t.randomUUID)||void 0===n?void 0:n.call(t))&&void 0!==e?e:hO()},bO=e=>e===uO?dO:(({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:gO()})(e),vO=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{n&&(n.canBeResized=!0,n.colIdx=n.colIdx||r,n.dimensionInfoIndex===uO?n.columnWidthLocation=ws.Measures:n.isLeftDimension?n.columnWidthLocation=ws.Dimension:t.at(-1)===uO?n.columnWidthLocation=ws.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=ws.Pivot))},xO=e=>"string"==typeof e?e.replace(/^=+/,"").trim():e,_O=(e,t,n,r,o)=>{var i;const a=bO(n),l=e.getDimensionInfoIndex(n),s=e.isLeftDimension(l);return n===uO?{id:a,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,isCyclic:!1,groupDimensionPos:0,groupDimensionLabels:[],headTextAlign:"left",dimensionInfoIndex:l,canBeResized:!1,isLeftDimension:s,isLastDimension:r,columnWidthLocation:ws.Measures,isPivot:!0,qEffectiveDimensionName:void 0}:{id:a,colIdx:0,label:n.qFallbackTitle,qReverseSort:n.qReverseSort,sortDirection:n.qSortIndicator&&"N"!==n.qSortIndicator?n.qSortIndicator:"A",qLibraryId:n.qLibraryId,fieldId:n.qGroupFieldDefs[n.qGroupPos],isLocked:null!==(i=n.qLocked)&&void 0!==i&&i,columnWidth:n.columnWidth,qApprMaxGlyphCount:n.qApprMaxGlyphCount,isDim:!0,isCyclic:n.qGrouping===ua.Cyclic,groupDimensionPos:n.qGroupPos,groupDimensionLabels:n.qGroupFallbackTitles.map(((e,t)=>({label:e,enabled:!o.has(xO(n.qGroupFieldDefs[t]))}))),headTextAlign:"left",dimensionInfoIndex:l,canBeResized:!1,isLeftDimension:s,isLastDimension:r,columnWidthLocation:ws.Dimension,isPivot:!0,isSortedByFirstMeasure:t.isSortedByFirstMeasure,qEffectiveDimensionName:n.qEffectiveDimensionName}},yO=({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r})=>{let o=r;var i;n.length>0&&(o=(i=r).at(-1)===uO?i.slice(0,-1):i);const a=o.length+(n.length?1:0),l=Math.max(1,n.length),s=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(a,l),u=(e=>{const t=new Set;return e.forEach((e=>{e!==uO&&t.add(xO(e.qGroupFieldDefs[e.qGroupPos]))})),t})([...n,...o]);return n.forEach(((n,r,o)=>{const i=r===o.length-1;s[a-1][r]=_O(e,t,n,i,u)})),o.forEach(((n,r,o)=>{const i=r===o.length-1;s[r][l-1]=_O(e,t,n,i,u)})),s},SO=(e,t,n,r)=>{var o,i;const a=((e,t,n,r)=>{let o;var i;return o=0===n.length||n.includes(uO)?yO({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(yO({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r})),e.isIndentModeEnabled&&o[o.length-1].length>1&&(o[o.length-1]=[o.at(-1),...new Array(o[0]?o[0].length-1:0).fill(null)]),o.length&&(null===(i=o.at(-1))||void 0===i||i.forEach(((t,n)=>{Array.isArray(t)?t.forEach(((t,n)=>{vO({layoutService:e,visibleLeftDimensionInfos:r,cell:t,colIdx:n})})):vO({layoutService:e,visibleLeftDimensionInfos:r,cell:t,colIdx:n})}))),o})(e,t,n,r);return{data:a,size:{x:null!==(o=null===(i=a[0])||void 0===i?void 0:i.length)&&void 0!==o?o:0,y:a.length}}};function wO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function CO(e,t,n){return t=LO(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,IO()?Reflect.construct(t,n||[],LO(e).constructor):t.apply(e,n))}function EO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,DO(r.key),r)}}function kO(e,t,n){return t&&RO(e.prototype,t),n&&RO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function LO(e){return LO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},LO(e)}function AO(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&PO(e,t)}function IO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(IO=function(){return!!e})()}function PO(e,t){return PO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},PO(e,t)}function MO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return wO(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wO(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DO(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function TO(e){return TO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},TO(e)}var OO={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var n,r=e.indexOf("="),o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,n){return{key:zO(e),value:zO(t),useEqualSign:n}}(n,o,i))}})),t}};function zO(e){try{return decodeURIComponent(e)}catch(t){return e}}function qO(e){if(!(this instanceof qO))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return OO.fromSearchString(t.search)}}})}function NO(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}qO.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},qO.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=NO((t=e[r]).key),t.value?n+="=".concat(NO(t.value)):n+=t.useEqualSign?"=":"";return n};var jO,FO=function(){return kO((function e(t){EO(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}),[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}])}(),$O=function(){return kO((function e(){EO(this,e)}),[{key:"decode",value:function(e){for(var t,n="",r=new FO(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}])}(),BO=function(e){return e>=0&&e<=1114111},GO=function(e){return e.match(/[\s]/)},WO=function(e){function t(){return EO(this,t),CO(this,t,arguments)}return AO(t,e),kO(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,n=0;n<5&&(null!=(r=e.next())&&!GO(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return BO(a)?String.fromCharCode(a):"�"}}])}($O),HO=function(){function e(t,n){EO(this,e),this._key=t,this._value=n}return kO(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}}])}(),VO=function(){function e(){EO(this,e)}return kO(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,n,r){var o,i;if(t.length===n)return i=this._value,this.setValue(r),i;var a=t.charAt(n);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,n+1,r)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return HO.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return HO.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||HO.newInstanceIfNeeded(e,t,this._value)}}])}(),YO=function(){return kO((function e(){EO(this,e),this.clear()}),[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new VO);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}])}(),UO=function(){var e,t,n,r=[],o=[],i=new YO;for(e in r["&quot"]="34",r["&amp"]="38",r["&lt"]="60",r["&gt"]="62",r["&nbsp"]="160",r["&iexcl"]="161",r["&cent"]="162",r["&pound"]="163",r["&curren"]="164",r["&yen"]="165",r["&brvbar"]="166",r["&sect"]="167",r["&uml"]="168",r["&copy"]="169",r["&ordf"]="170",r["&laquo"]="171",r["&not"]="172",r["&shy"]="173",r["&reg"]="174",r["&macr"]="175",r["&deg"]="176",r["&plusmn"]="177",r["&sup2"]="178",r["&sup3"]="179",r["&acute"]="180",r["&micro"]="181",r["&para"]="182",r["&middot"]="183",r["&cedil"]="184",r["&sup1"]="185",r["&ordm"]="186",r["&raquo"]="187",r["&frac14"]="188",r["&frac12"]="189",r["&frac34"]="190",r["&iquest"]="191",r["&Agrave"]="192",r["&Aacute"]="193",r["&Acirc"]="194",r["&Atilde"]="195",r["&Auml"]="196",r["&Aring"]="197",r["&AElig"]="198",r["&Ccedil"]="199",r["&Egrave"]="200",r["&Eacute"]="201",r["&Ecirc"]="202",r["&Euml"]="203",r["&Igrave"]="204",r["&Iacute"]="205",r["&Icirc"]="206",r["&Iuml"]="207",r["&ETH"]="208",r["&Ntilde"]="209",r["&Ograve"]="210",r["&Oacute"]="211",r["&Ocirc"]="212",r["&Otilde"]="213",r["&Ouml"]="214",r["&times"]="215",r["&Oslash"]="216",r["&Ugrave"]="217",r["&Uacute"]="218",r["&Ucirc"]="219",r["&Uuml"]="220",r["&Yacute"]="221",r["&THORN"]="222",r["&szlig"]="223",r["&agrave"]="224",r["&aacute"]="225",r["&acirc"]="226",r["&atilde"]="227",r["&auml"]="228",r["&aring"]="229",r["&aelig"]="230",r["&ccedil"]="231",r["&egrave"]="232",r["&eacute"]="233",r["&ecirc"]="234",r["&euml"]="235",r["&igrave"]="236",r["&iacute"]="237",r["&icirc"]="238",r["&iuml"]="239",r["&eth"]="240",r["&ntilde"]="241",r["&ograve"]="242",r["&oacute"]="243",r["&ocirc"]="244",r["&otilde"]="245",r["&ouml"]="246",r["&divide"]="247",r["&oslash"]="248",r["&ugrave"]="249",r["&uacute"]="250",r["&ucirc"]="251",r["&uuml"]="252",r["&yacute"]="253",r["&thorn"]="254",r["&yuml"]="255",r["&OElig"]="338",r["&oelig"]="339",r["&Scaron"]="352",r["&scaron"]="353",r["&Yuml"]="376",r["&fnof"]="402",r["&circ"]="710",r["&tilde"]="732",r["&Alpha"]="913",r["&Beta"]="914",r["&Gamma"]="915",r["&Delta"]="916",r["&Epsilon"]="917",r["&Zeta"]="918",r["&Eta"]="919",r["&Theta"]="920",r["&Iota"]="921",r["&Kappa"]="922",r["&Lambda"]="923",r["&Mu"]="924",r["&Nu"]="925",r["&Xi"]="926",r["&Omicron"]="927",r["&Pi"]="928",r["&Rho"]="929",r["&Sigma"]="931",r["&Tau"]="932",r["&Upsilon"]="933",r["&Phi"]="934",r["&Chi"]="935",r["&Psi"]="936",r["&Omega"]="937",r["&alpha"]="945",r["&beta"]="946",r["&gamma"]="947",r["&delta"]="948",r["&epsilon"]="949",r["&zeta"]="950",r["&eta"]="951",r["&theta"]="952",r["&iota"]="953",r["&kappa"]="954",r["&lambda"]="955",r["&mu"]="956",r["&nu"]="957",r["&xi"]="958",r["&omicron"]="959",r["&pi"]="960",r["&rho"]="961",r["&sigmaf"]="962",r["&sigma"]="963",r["&tau"]="964",r["&upsilon"]="965",r["&phi"]="966",r["&chi"]="967",r["&psi"]="968",r["&omega"]="969",r["&thetasym"]="977",r["&upsih"]="978",r["&piv"]="982",r["&ensp"]="8194",r["&emsp"]="8195",r["&thinsp"]="8201",r["&zwnj"]="8204",r["&zwj"]="8205",r["&lrm"]="8206",r["&rlm"]="8207",r["&ndash"]="8211",r["&mdash"]="8212",r["&lsquo"]="8216",r["&rsquo"]="8217",r["&sbquo"]="8218",r["&ldquo"]="8220",r["&rdquo"]="8221",r["&bdquo"]="8222",r["&dagger"]="8224",r["&Dagger"]="8225",r["&bull"]="8226",r["&hellip"]="8230",r["&permil"]="8240",r["&prime"]="8242",r["&Prime"]="8243",r["&lsaquo"]="8249",r["&rsaquo"]="8250",r["&oline"]="8254",r["&frasl"]="8260",r["&euro"]="8364",r["&image"]="8365",r["&weierp"]="8472",r["&real"]="8476",r["&trade"]="8482",r["&alefsym"]="8501",r["&larr"]="8592",r["&uarr"]="8593",r["&rarr"]="8594",r["&darr"]="8595",r["&harr"]="8596",r["&crarr"]="8629",r["&lArr"]="8656",r["&uArr"]="8657",r["&rArr"]="8658",r["&dArr"]="8659",r["&hArr"]="8660",r["&forall"]="8704",r["&part"]="8706",r["&exist"]="8707",r["&empty"]="8709",r["&nabla"]="8711",r["&isin"]="8712",r["&notin"]="8713",r["&ni"]="8715",r["&prod"]="8719",r["&sum"]="8721",r["&minus"]="8722",r["&lowast"]="8727",r["&radic"]="8730",r["&prop"]="8733",r["&infin"]="8734",r["&ang"]="8736",r["&and"]="8743",r["&or"]="8744",r["&cap"]="8745",r["&cup"]="8746",r["&int"]="8747",r["&there4"]="8756",r["&sim"]="8764",r["&cong"]="8773",r["&asymp"]="8776",r["&ne"]="8800",r["&equiv"]="8801",r["&le"]="8804",r["&ge"]="8805",r["&sub"]="8834",r["&sup"]="8835",r["&nsub"]="8836",r["&sube"]="8838",r["&supe"]="8839",r["&oplus"]="8853",r["&otimes"]="8855",r["&perp"]="8869",r["&sdot"]="8901",r["&lceil"]="8968",r["&rceil"]="8969",r["&lfloor"]="8970",r["&rfloor"]="8971",r["&lang"]="9001",r["&rang"]="9002",r["&loz"]="9674",r["&spades"]="9824",r["&clubs"]="9827",r["&hearts"]="9829",r["&diams"]="9830",r)"function"!=typeof r[e]&&r.hasOwnProperty(e)&&(o[r[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(n=o[t].toLowerCase().substr(1),i.put(n,String.fromCharCode(t)));return i}(),KO=function(e){function t(){return EO(this,t),CO(this,t,arguments)}return AO(t,e),kO(t,[{key:"decodeCharacter",value:function(e){var t;e.mark();var n=e.next();if(null==n||"&"!==n)return e.reset(),null;var r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(null!=(t=this._getNumericEntity(e)))return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,n,r,o="";for(t=Math.min(e.remainder().length,UO.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=UO.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,16);return!Number.isNaN(+r)&&BO(r)?String.fromCharCode(r):null}},{key:"_parseNumber",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,10);return!Number.isNaN(+r)&&BO(r)?String.fromCharCode(r):null}}])}($O),XO=function(e){function t(){return EO(this,t),CO(this,t,arguments)}return AO(t,e),kO(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",n=0;n<2;n++)null!=(r=e.nextHex())&&(t+=r);return 2===t.length&&(o=parseInt(t,16),BO(o))?String.fromCharCode(o):(e.reset(),null)}}])}($O),JO=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(jO=document.createElement("div"));var ZO=Array.prototype.indexOf,QO=[",",".","_"," "],ez=[",",".","-","_"," "],tz={width:["%"],height:["%"]},nz={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},rz={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":nz.image,"background-color":nz.color,"border-color":nz.color,"border-image":nz.image,color:nz.color,icon:nz.image,"list-style-image":nz.image,"outline-color":nz.color},oz={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function iz(e,t,n){var r;if(t){if(ZO)return ZO.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function az(e){if(null==e)return"";var t,n=document.createTextNode(e);return jO.appendChild(n),t=jO.innerHTML,jO.removeChild(n),t}function lz(e,t,n){var r,o,i,a,l,s,u,d,c;for(e=uz(e).toLowerCase(),t=uz(t),i=0;i<oz.attr_name.length;i++)if(e.match(oz.attr_name[i]))throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<oz.attr_val.length;i++)if(t.toLowerCase().match(oz.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=tz[e])||(r=ez),o="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),d=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&iz(u,r)<0?(c=d.toString(16),o+="&#x".concat(c,";")):o+=u;return n||(o+='"'),o}function sz(e,t,n){var r,o,i,a,l,s,u,d,c,p;if(e=uz(e).toLowerCase(),t=uz(t),iz(e,oz.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<oz.css_val.length;r++)if(t.toLowerCase().indexOf(oz.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=rz[e])||(o=nz.default),i="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),d=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&iz(u,o)<0?(c=d.toString(16),p="000000".substr(c.length),i+="\\".concat(p).concat(c)):i+=u;return i}function uz(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new KO,new XO,new WO];!a;){r=n;for(var s=0;s<l.length;s++)(i=l[s].decode(n))!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}for(var dz=[],cz=0;cz<255;cz++)dz[cz]=cz>=48&&cz<=57||cz>=65&&cz<=90||cz>=97&&cz<=122?null:cz.toString(16);var pz=function(e){return az(e.unsafe)},fz=function(e){var t,n=[],r=[],o={},i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=sz(t,n[t],!0),i+=sz(t,n[t],!0),o[t]=r[t]);return e.map?o:i},mz=function(e){var t=[],n=[],r={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(n[i]=lz(i,t[i],!0),o+=lz(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function hz(e,t){throw new Error(t)}var gz={canonicalize:uz,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===TO(arguments[0])?function(){for(var e,t,n,r=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r===(n=e[t]))continue;void 0!==n&&(r[t]=n)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?pz(e):"css"===e.context?(null!=e.map&&"object"!==TO(e.map)&&hz(this,"Invalid parameter type"),fz(e)):"attr"===e.context?(null!=e.map&&"object"!==TO(e.map)&&hz(this,"Invalid parameter type"),mz(e)):void hz(this,"Invalid parameter type")},encodeForAttr:lz,encodeForAttr2:function(e){return lz("nonsens",e,!0)},encodeForCSS:sz,encodeForHref:function(e){uz(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new qO(e),n=qO.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+qO.encodeSearchParams(r)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var n,r,o,i,a,l;for(t||(t=QO),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),iz(o,t)>=0||null==dz[i]?l+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),l+="\\x".concat(a).concat(r.toUpperCase())):(a="0000".substr(r.length),l+="\\u".concat(a).concat(r.toUpperCase())));return l},encodeForHTML:az,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=uz(t).toLowerCase():hz(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':""},isSafeDataURL:function(e,t){var n=null!=t?t:{},r=n.maxByteSizeSvg,o=void 0===r?5e5:r,i=n.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,n=MO(null!==(t=JO.exec(e.trim()))&&void 0!==t?t:[],4),r=n[1];return{encoding:n[2],data:n[3],mimeType:null==r?void 0:r.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,d=l.data;if(!d)return!0;var c=function(e,t,n){var r={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(n)],r).size}catch(e){return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0}(s,u,d);return"image/svg+xml"===s?c<=o:c<=a},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch(e){return!1}}(e))return!1;var t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;var n=function(e){for(var t=e,n="";t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");var r=n.lastIndexOf("/");-1!==r&&(n=n.slice(0,r))}else if("/.."===t){t="/";var o=n.lastIndexOf("/");-1!==o&&(n=n.slice(0,o))}else if("."===t||".."===t)t="";else{var i=t.match(/^\/?[^/]*/),a=i?i[0]:"";t=t.slice(a.length),n+=a}return n}(t);return""!==n&&"/"!==n&&n}};const bz=(e,t)=>{var n;return null===(n=t.qAttrExps)||void 0===n||null===(n=n.qValues)||void 0===n?void 0:n[e]},vz=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},xz=({text:e,url:t,imageSize:n,imagePosition:r,labelStructure:o,imageBox:i,direction:a})=>r&&t&&!t.toLowerCase().includes("javascript:")&&gz.isSafeDataURL(t)?{type:gs.Image,url:t,text:e,imageSize:n,resolvedImagePosition:vz(r,a),labelStructure:o,imageBox:i}:{type:gs.Text,url:void 0,text:e,labelStructure:o},_z=(e,t,n,r)=>{if(!e.qMiniChart||null==t||!t.miniChart||!n)return{type:gs.Text,text:r};const{minY:o,maxY:i}=((e,t,n)=>{var r,o;const i="global"===(null===(r=t.yAxis)||void 0===r?void 0:r.scale),a="zeroCenter"===(null===(o=t.yAxis)||void 0===o?void 0:o.position),l=i?n.qYMin:e.qMiniChart.qMin,s=i?n.qYMax:e.qMiniChart.qMax;if(a){const e=Math.max(Math.abs(l),Math.abs(s));return{minY:-e,maxY:e}}return(e=>{var t,n;return"zeroBaseline"===(null===(t=e.yAxis)||void 0===t?void 0:t.position)||"bars"===e.type&&"auto"===(null===(n=e.yAxis)||void 0===n?void 0:n.position)})(t)?{minY:Math.min(0,l),maxY:Math.max(0,s)}:{minY:l,maxY:s}})(e,t.miniChart,n),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:gs.MiniChart,text:r,miniChart:a}},yz=(e,t,n)=>{var r;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r?void 0:r[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==n?void 0:n.urlPosition)===bs.Attribute||null==n?void 0:n.urlLabel},Sz=({labelStructure:e,text:t,url:n})=>{try{if(!n)throw Error("Invalid url");return{type:gs.Link,url:gz.encodeForHref(n),text:t,labelStructure:e}}catch(n){return{type:gs.Text,url:void 0,text:t,labelStructure:e}}},wz=({cell:e,representationProperties:t,attrExprInfoIndex:n,env:r,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:l=e=>e.qText,direction:s,enabledFeatures:u})=>{var d,c,p,f,m,h;const g=vs(t),b=l(e);return g!==gs.Image||!u[gs.Image]||null!==(d=r.anything.sense)&&void 0!==d&&null!==(c=d.isUnsupportedFeature)&&void 0!==c&&c.call(d,"tableImages")?g===gs.Link?((e,t,n,r,o)=>{const{urlPosition:i}=null!=t?t:{};if(i===bs.Attribute){var a;const i=yz(null!==(a=n.url)&&void 0!==a?a:-1,e,t);return Sz({labelStructure:r,text:o||i||"",url:i})}if(i===bs.Dimension){var l,s;const i=yz(null!==(l=n.urlLabel)&&void 0!==l?l:-1,e,t)||o;return r&&(r.maskedValue=i),Sz({text:i,labelStructure:r,url:null!==(s=null==r?void 0:r.originalValue)&&void 0!==s?s:o})}return{type:gs.Text,url:void 0,text:o,labelStructure:r}})(e,t,n,a,b):g!==gs.Indicator||!u[gs.Indicator]||null!==(p=r.anything.sense)&&void 0!==p&&null!==(f=p.isUnsupportedFeature)&&void 0!==f&&f.call(p,"tableIndicators")?g!==gs.MiniChart||!u[gs.MiniChart]||null!==(m=r.anything.sense)&&void 0!==m&&null!==(h=m.isUnsupportedFeature)&&void 0!==h&&h.call(m,"qMiniChartDef")?{type:gs.Text,url:void 0,text:b,labelStructure:a}:_z(e,t,i,b):((e,t,n)=>{const{indicator:r}=null!=e?e:{};return{type:gs.Indicator,url:void 0,text:n,indicator:{applySegmentColors:null==r?void 0:r.applySegmentColors,position:null==r?void 0:r.position,showTextValues:null==r?void 0:r.showTextValues},indicatorConditionalColoring:t}})(t,o,b):((e,t,n,r,o,i)=>{const{imageSize:a,imagePosition:l,imageSetting:s,imageLabel:u,imageBox:d}=null!=t?t:{};if("url"===s){var c,p;const t=null===(c=bz(null!==(p=n.imageUrl)&&void 0!==p?p:-1,e))||void 0===c?void 0:c.qText;return i&&(i.maskedValue=null!=t?t:""),xz({text:r,url:t,imageSize:a,imagePosition:l,labelStructure:i,imageBox:d,direction:o})}if("label"===s){var f,m,h;const t=i?i.originalValue:r;if(-1===n.imageLabel)return xz({text:u||t||"",url:t,imageSize:a,imagePosition:l,labelStructure:i,imageBox:d,direction:o});const s=null!==(f=null===(m=bz(null!==(h=n.imageLabel)&&void 0!==h?h:-1,e))||void 0===m?void 0:m.qText)&&void 0!==f?f:r;return xz({text:s,url:t,imageSize:a,imagePosition:l,labelStructure:i,imageBox:d,direction:o})}return{type:gs.Text,url:void 0,labelStructure:i,text:r}})(e,t,n,b,s,a)},Cz=(e,t)=>{var n,r,o,i;const a=t.qAttrExps,l=null==a||null===(n=a.qValues)||void 0===n||null===(n=n[null!==(r=null==e?void 0:e.cellForegroundColor)&&void 0!==r?r:-1])||void 0===n?void 0:n.qText,s=null==a||null===(o=a.qValues)||void 0===o||null===(o=o[null!==(i=null==e?void 0:e.cellBackgroundColor)&&void 0!==i?i:-1])||void 0===o?void 0:o.qText,u=s?cA(s):null,d=l?cA(l):null,c=((e,t)=>e||!t?null:lA(t))(d,u);return{color:null!=c?c:d,background:u}},Ez=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:Ez(e,t)),e),Rz=(e,t,n,r,o,i)=>{const a=o?i.rowsPerPage-n:CA-r;let l=e.qUp+e.qDown;if(o&&0===n){const n=(t+e.qUp)%i.rowsPerPage;l=e.qDown+n}return Math.min(a,Ez(l,e))},kz=({node:e,parent:t,root:n,x:r,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:d=!1,indentModeFeatures:c,indentLevel:p,labelStructure:f,env:m,pageInfo:h,direction:g="ltr"})=>{var b,v;const x=(!d||!u)&&"P"===e.qType,_=((e,t,n)=>{if(e!==uO){if(t){const t=vs(e.representation);return t===gs.Link||null!=n&&n.isImagesSupported&&t===gs.Image?e.representation:{type:gs.Text}}return e.representation}})(l,d,c),y=(({node:e,isLeftColumn:t,isIndentModeEnabled:n,labelStructure:r,representationType:o,parentOrRootOriginalValue:i})=>{let a=e.qText;if(t&&n&&r){const{originalValue:t,delimeter:n,suffix:l}=r;a=o===gs.Link?"P"===e.qType?i:t:`${t} ${!l||!t&&l?"":n} ${l}`.trim()}return a})({node:e,isLeftColumn:u,isIndentModeEnabled:d,labelStructure:f,representationType:vs(_),parentOrRootOriginalValue:null!==(b=null===(v=t||n)||void 0===v||null===(v=v.representation)||void 0===v||null===(v=v.labelStructure)||void 0===v?void 0:v.originalValue)&&void 0!==b?b:""}),S=wz({cell:{...e,qText:y},representationProperties:_,attrExprInfoIndex:s,env:m,labelStructure:f,direction:g,enabledFeatures:{[gs.Image]:m.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[gs.Indicator]:m.flags.isEnabled("CLIENT_VNA-118_PIVOT_INDICATOR")}}),w={id:gO(),ref:e,x:r,y:o,pageX:r,pageY:i,mainAxisPageCoord:u?i:r,isLeftColumn:u,parent:t,root:n,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:Rz(e,o,i,r,u,h),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:"T"===e.qType||!(null==t||!t.isTotal),isEmpty:"E"===e.qType||-4===e.qElemNo,isNull:"U"===e.qType,isPseudoDimension:x,expressionColor:Cz(s,e),selectionCellType:u?"L":"T",dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:x?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:S,...void 0!==p&&{indentLevel:p}};return t&&(t.children[w.mainAxisPageCoord-t.mainAxisPageCoord]=w),w},Lz=(e,t,n,r,o,i,a,l,s)=>{const{isIndentModeEnabled:u,indentModeFeatures:d}=o;if(!t.length)return e;let c=0;return function t(p,f,m,h=0,g=-1){e[h]||(e[h]={}),u&&g++;const b=o.leftDimensionInfoIndexes.indexOf(uO);m.forEach(((m,v)=>{var x,_;const y={originalValue:null!==(x=m.qText)&&void 0!==x?x:"",maskedValue:"",delimeter:"-",suffix:""};c+=0===v?0:1;const S=n.qTop-r.page*r.rowsPerPage,w=Math.max(0,S+c-m.qUp),C=n.qTop+c-m.qUp;if(u){var E,R;if(o.hasPseudoDimOnLeft&&g<=b)if(y.originalValue=null!==(E=m.qText)&&void 0!==E?E:"",y.maskedValue=null!==(R=m.qText)&&void 0!==R?R:"","N"===m.qType||"U"===m.qType||"T"===m.qType)"U"===m.qType&&(y.originalValue=o.getNullValueText()),g<b&&(y.suffix=o.visibleMeasureInfo[0].qFallbackTitle);else if("P"===m.qType){var k,L,A,I,P,M,D,T;y.originalValue=null!==(k=null===(L=f||p)||void 0===L||null===(L=L.representation.labelStructure)||void 0===L?void 0:L.originalValue)&&void 0!==k?k:"",y.maskedValue=null!==(A=null===(I=f||p)||void 0===I||null===(I=I.representation.labelStructure)||void 0===I?void 0:I.originalValue)&&void 0!==A?A:"",y.suffix=null!==(P=m.qText)&&void 0!==P?P:"";const e=m.qSubNodes;m={...null===(M=f||p)||void 0===M?void 0:M.ref,...m.qText?{qText:m.qText}:{},qSubNodes:e},g=null!==(D=null===(T=f||p)||void 0===T?void 0:T.indentLevel)&&void 0!==D?D:0}"U"===m.qType&&(y.originalValue=o.getNullValueText())}let O=h;u&&(O=b>=1&&g>=b?g+1:g,0===g&&0===b&&0===m.qSubNodes.length&&(O=0));const z=null===(_=e.at(h))||void 0===_?void 0:_[w],q=u&&void 0===(null==z?void 0:z.ref.qText)||!z?kz({node:m,parent:f,root:p,x:O,y:C,pageY:w,layoutService:o,dimensionInfo:i[O],attrExprInfoIndex:a[O],isLeftColumn:!0,...u&&{isIndentModeEnabled:u,indentModeFeatures:d,indentLevel:g},env:l,pageInfo:r,labelStructure:y,direction:s}):e[h][w];if(e[h][w]=q,m.qSubNodes.length){const e=u?0:h+1;t(p||q,q,m.qSubNodes,e,g)}}))}(null,null,t,0,-1),e},Az=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,n,r)=>{const o=r.at(n+1);e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},Iz=(e,t)=>{const n=e[0],r=n?Object.values(n):[],o=null!=t&&t.isIndentModeEnabled&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=null==n?void 0:n[o],a=r.at(-1);return null!=i&&i.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:null!=a&&a.isTotal?a.mainAxisPageCoord-1:-1},Pz=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a,direction:l})=>{const{qLeft:s,qArea:u}=t;if(!s.length)return e;const d=Lz(e.grid,s,u,n,r,o,i,a,l);Az(d,n.rowsOnCurrentPage);const c=Iz(d,r);return{...e,grid:d,columnCount:d.length,totalDividerIndex:c}},Mz=({qArea:e,prevData:t,pivotValuePoints:n,pageInfo:r})=>{const o=[...t];return n.forEach(((t,n)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-r.page*r.rowsPerPage+n,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u="U"===t.qType;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:gO(),ref:t,isNull:u}}))})),o},Dz=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:o}=t;return null!=r&&r.length?Mz({qArea:o,prevData:e,pivotValuePoints:r,pageInfo:n}):e},Tz=(e,t,n,r,o,i,a,l,s,u)=>{const{isIndentModeEnabled:d,indentModeFeatures:c}=r;if(!t.length)return e;let p=0;!function t(a,f,m,h=0){e[h]||(e[h]={}),m.forEach(((m,g)=>{var b;p+=0===g?0:1;const v=n.qLeft+p-m.qUp,x=null!==(b=e[h][v])&&void 0!==b?b:kz({node:m,parent:f,root:a,x:v,y:h,pageY:h,layoutService:r,dimensionInfo:o[h],attrExprInfoIndex:i[h],isLeftColumn:!1,...d&&{isIndentModeEnabled:d,indentModeFeatures:c},env:l,pageInfo:s,direction:u});e[h][v]=x,m.qSubNodes.length&&t(a||x,x,m.qSubNodes,h+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},Oz=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:l,direction:s})=>{const{qTop:u,qArea:d}=t;if(!u.length)return e;const c=Tz(e.grid,u,d,n,r,o,i,a,l,s);Az(c,n.size.x);const p=Iz(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:p}},zz=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},n)=>(e[t]=n,e)),{}),qz=(e,t)=>{const{env:r}=nO(),{direction:o}=QT(),{layoutService:i,effectivePropertiesService:l}=iO(),{qPivotDataPages:s,pageInfo:u}=QT(),[d,c]=n(null),p=((e,t,n)=>a((()=>({left:e.map(zz),top:t.map(zz),measures:n.map(zz)})),[n,e,t]))(e,t,i.visibleMeasureInfo),f=a((()=>SO(i,l,t,e)),[i,l,t,e]),m=h((()=>s.slice(1).reduce(((e,t)=>Dz({prevData:e,dataPage:t,pageInfo:u})),((e,t)=>{const{qData:n,qArea:r}=e;return Mz({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(s[0],u))),[s,u]),g=h((()=>s.slice(1).reduce(((e,n)=>Oz({prevData:e,nextDataPage:n,layoutService:i,visibleTopDimensionInfo:t,attrExprInfoIndexes:p.top,headerRows:f.size.y,env:r,pageInfo:u,direction:o})),((e,t,n,r,o,i,a,l)=>{const{qArea:s,qTop:u}=e,d=Tz([],u,s,t,n,r,o,i,a,l);Az(d,t.size.x);const c=Iz(d);return{grid:d,rowCount:d.length,layoutSize:t.size,totalDividerIndex:c}})(s[0],i,t,p.top,f.size.y,r,u,o))),[s,i,t,p.top,f.size.y,r,u,o]),b=h((()=>s.slice(1).reduce(((t,n)=>Pz({prevData:t,nextDataPage:n,pageInfo:u,layoutService:i,visibleLeftDimensionInfo:e,attrExprInfoIndexes:p.left,env:r,direction:o})),((e,t,n,r,o,i,a)=>{const{qArea:l,qLeft:s}=e,u=Lz([],s,l,n,t,r,o,i,a);Az(u,n.rowsOnCurrentPage);const d=Iz(u,t);return{grid:u,columnCount:u.length,layoutSize:t.size,totalDividerIndex:d}})(s[0],i,u,e,p.left,r,o))),[s,i,u,e,p,r,o]),[v,x]=n((()=>m())),[_,y]=n((()=>g())),[S,w]=n((()=>b()));sI((()=>{x(m())}),[m]),sI((()=>{y(g())}),[g]),sI((()=>{w(b())}),[b]),sI((()=>{d&&d.forEach((n=>{x((e=>Dz({prevData:e,dataPage:n,pageInfo:u}))),y((e=>Oz({prevData:e,nextDataPage:n,layoutService:i,visibleTopDimensionInfo:t,attrExprInfoIndexes:p.top,headerRows:f.size.y,env:r,pageInfo:u,direction:o}))),w((t=>Pz({prevData:t,nextDataPage:n,pageInfo:u,layoutService:i,visibleLeftDimensionInfo:e,attrExprInfoIndexes:p.left,env:r,direction:o})))}))}),[d]);const C=h((e=>{c(e)}),[]);return{headersData:f,measureData:v,topDimensionData:_,leftDimensionData:S,attrExprInfoIndexes:p,nextPageHandler:C}},Nz=Math.sqrt(1e4),jz=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/ia.PixelsMin)}),Fz=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/Nz),r=Math.ceil(e.qHeight/Nz);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*Nz,qTop:e.qTop+n*Nz,qWidth:Math.min(Nz,e.qWidth-o*Nz),qHeight:Math.min(Nz,e.qHeight-n*Nz)});return t};function $z({nextPageHandler:e}){const{model:t}=nO(),{pageInfo:n}=QT(),{layoutService:r}=iO(),o=(e=>{const t=m(e);return t.current=e,t})(n.page),i=t,l=h((async(e,t)=>{await(null==i?void 0:i.collapseLeft(sO,e,t,!1))}),[i]),s=h((async(e,t)=>{await(null==i?void 0:i.collapseTop(sO,e,t,!1))}),[i]),u=h((async(e,t)=>{await(null==i?void 0:i.expandLeft(sO,e,t,!1))}),[i]),d=h((async(e,t)=>{await(null==i?void 0:i.expandTop(sO,e,t,!1))}),[i]),c=h((async t=>{if(null!=i&&i.getHyperCubePivotData&&0!==t.length)try{const r=await i.getHyperCubePivotData(sO,t.reduce(((e,t)=>[...e,...Fz(t)]),[]));o.current===n.page&&e(r)}catch(e){console.error(e)}}),[i,e,n,o]),p=h(((e,{dimensionInfoIndex:n,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=r.layout.qHyperCube;let d=[];switch(a){case ws.Dimension:d=[{qPath:`${sO}/qDimensions/${n}/qDef/columnWidth`,oldValue:s[n].columnWidth}];break;case ws.Measures:if(o)d=l.map(((e,t)=>({qPath:`${sO}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);d=[{qPath:`${sO}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case ws.Pivot:d=[{qPath:`${sO}/topHeadersColumnWidth`,oldValue:u}]}const c=d.map((t=>{const{qPath:n,oldValue:r}=t;return{qPath:n,qOp:r?"Replace":"Add",qValue:JSON.stringify({...r,...e})}}));null==t||t.applyPatches(c,!0)}),[t,r]),f=h((async e=>{await(null==i?void 0:i.applyPatches([{qPath:`${sO}/indentModeColumnWidth`,qOp:r.layout.qHyperCube.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...r.indentModeColumnWidth,...e})}],!0))}),[i,r]);return a((()=>({collapseLeft:l,collapseTop:s,expandLeft:u,expandTop:d,applyColumnWidth:p,applyIndentModeColumnWidth:f,fetchPages:c})),[l,s,u,d,p,f,c])}const Bz=(e,t,n)=>(r,o)=>{if("P"===r)return uO;const i=t[n+o];return e[i]},Gz=e=>{const t=[],n=(e,r=0)=>{e.slice(0,1).forEach((e=>{t[r]=e.qType,e.qSubNodes.length&&n(e.qSubNodes,r+1)}))};return n(e),t},Wz=f({}),Hz=()=>p(Wz),Vz=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:n}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:n}}}}=iO(),{qPivotDataPages:r}=QT();return a((()=>{var o,i,a,l;const s=Gz(null!==(o=null===(i=r[0])||void 0===i?void 0:i.qLeft)&&void 0!==o?o:[]),u=Gz(null!==(a=null===(l=r[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(Bz(n,t,0)),visibleTopDimensionInfo:u.map(Bz(n,t,e))}}),[n,t,e,r])})(),{headersData:r,measureData:o,topDimensionData:i,leftDimensionData:l,attrExprInfoIndexes:s,nextPageHandler:u}=qz(t,n),d=$z({nextPageHandler:u}),c=a((()=>({gridSectionsData:{headersData:r,topDimensionData:i,leftDimensionData:l,measureData:o},visibleDimensionsInfo:{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:n},attrExprInfoIndexes:s,dataModel:d})),[t,n,r,o,i,l,s,d]);return de.jsx(Wz.Provider,{value:c,children:e})},Yz=18,Uz=.75,Kz=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===gs.Image},Xz=({isLeftColumn:e,layoutService:t,representation:n})=>Boolean(e)&&t.isIndentModeEnabled&&t.indentModeFeatures.isImagesSupported&&n.type===gs.Image,Jz=e=>void 0===e?wA:e,Zz=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,Qz=e=>Zz(e,ia.PixelsDefault),eq=(e,t)=>Zz(e,ia.PercentageDefault)*t/100,tq=(e,t,n)=>{switch(null==t?void 0:t.type){case aa.Pixels:return Qz(t.pixels);case aa.Percentage:return eq(t.percentage,e);case aa.FitToContent:case aa.Auto:default:return n}},nq=({headers:e,layoutService:t,effectivePropertiesService:n,estimateWidthForDimensionValue:r,shouldConsiderCombinatedLength:o,measureTextForHeader:i,longestMeasureValuePossible:a})=>e.reduce(((e,l,s)=>{var u;const{layout:{qHyperCube:{qNoOfLeftDims:d,qDimensionInfo:c}}}=t,{id:p,colIdx:f,qApprMaxGlyphCount:m,isLeftDimension:h}=l,g=c.find((e=>e.cId===p)),b={width:24,...null==g||null===(u=g.representation)||void 0===u?void 0:u.imageBox};if(!h)return e+0;if(p===dO)return e+0;const v=Xz({isLeftColumn:h,layoutService:t,representation:(null==g?void 0:g.representation)||{type:gs.Text}})?b.width+8+4:r(m),x=!n.qAlwaysFullyExpanded&&f<d-1?21:0;let _=0;if(o&&i&&a){_=i("- ")+a}return Math.max(e,24*s+Yz+x+v+_)}),0),rq=(e,t,n)=>e.reduce(((e,r)=>{const o=(n?0:1)*Yz;return Math.max(e,o+t(r.qFallbackTitle))}),0),oq=(e,t,n,r)=>{const o=100*e/t,i=r*Uz*(o/100),a=n*(o/100);return Math.min(a,i)},iq=(e,t,n,r)=>r*(n/100)*(100*e/t/100),aq=(e,t)=>e.some((e=>e>=t*Uz)),lq=({layoutService:e,effectivePropertiesService:t,headersData:n,columnWidths:r,tableWidth:o,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:s,translator:u})=>{let d=[];const c=o*Uz,p=n.data[n.data.length-1][0];if(!Array.isArray(p))return{leftGridWidth:0,leftGridColumnWidths:[],leftGridFullWidth:0};const f=Math.min(c,r.at(-1)),m=Math.min(c,nq({headers:p,layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:l})),h=Math.min(c,rq(e.visibleMeasureInfo,a));let g=0;const b=p.findIndex((e=>e.id===dO)),v=(({layoutService:e,measureTextForHeader:t,translator:n,headersData:r})=>{const{type:o}=e.indentModeColumnWidth;return o===aa.Auto&&r.size.y<=1?t(n.get("SNPivotTable.IndentMode.Rows"))+8+Yz+16:24})({layoutService:e,measureTextForHeader:a,translator:u,headersData:n});if(e.hasPseudoDimOnLeft)if(0===b){const e=Math.max(f,m,h);d=[Math.max(v,e-f),f]}else{const n=Math.min(c,rq(e.visibleMeasureInfo,s,!0));g=Math.min(c,nq({headers:p.slice(0,b),layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:l,shouldConsiderCombinatedLength:!0,measureTextForHeader:a,longestMeasureValuePossible:n}));const r=Math.max(f,m,g);d=[Math.max(v,r-f),f]}else d=[Math.max(v,m-f),f];const x=Math.min(c,d.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:_}=e;i&&i<=c&&(_.type=aa.Pixels,_.pixels=i);return[aa.Pixels,aa.Percentage].includes(_.type)||aq(d,o)?((e,t,n,r)=>{let o=e[0],i=e[1],a=[];const l=e.reduce(((e,t)=>e+t),0),{type:s,pixels:u,percentage:d}=t,c=aq(e,n);s===aa.Auto&&c&&(o>i?o-=i:i-=o),s===aa.Pixels&&u&&(o=oq(e[0],l,u,n),i=oq(e[1],l,u,n)),s===aa.Percentage&&d&&(o=iq(e[0],l,d,n),i=iq(e[1],l,d,n));let p=0;i<=r&&(p=o-5,p>0&&(o-=p,i+=p)),p=i-r,p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(d,_,o,f):{leftGridWidth:x,leftGridColumnWidths:d,leftGridFullWidth:x}};function sq({tableWidth:e}){const t=e*Uz,{styleService:r,layoutService:o,effectivePropertiesService:i}=iO(),{translator:a}=nO(),{gridSectionsData:{headersData:l}}=Hz(),{measureText:s}=oI(r.header),{estimateWidth:u,measureText:d}=oI({...r.dimensionValues,fontWeight:Jz(r.dimensionValues.fontWeight)}),{measureText:c}=oI({...r.dimensionValues,...r.measureLabels}),p=h(((n,r)=>{const{layout:{qHyperCube:{qNoOfLeftDims:p,topHeadersColumnWidth:f}},visibleMeasureInfo:m,isIndentModeEnabled:h,hasPseudoDimOnLeft:g}=o,b=(t=0)=>m.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=c(r)+Yz,a=Math.max(i,t);return Math.max(n,h?a:tq(e,o,a))}),0),v=e=>l.data.reduce(((t,n)=>{const r=n.at(e);if(!r||Array.isArray(r))return t;if(r.id===dO)return t;const o=(e=>{const{label:t,isLocked:n}=e,r=n?20:0;return Yz+s(t)+20+r})(r);return Math.max(o,t)}),0);let x=0,_=l.data.at(-1);h&&l.size.x>1&&_&&_[0]&&(_=_[0]);const y=_.map(((a,s)=>{let d=Yz;if(h&&1!==l.size.x||!n||void 0===r||r!==a.colIdx){let t;a.columnWidthLocation===ws.Pivot?t=h?void 0:f:a.columnWidthLocation===ws.Dimension&&({columnWidth:t}=a);let n=0;if(a.isLeftDimension)if(a.id===dO)n=b();else{const e=v(s),t=((e,t)=>{const{qApprMaxGlyphCount:n,isLeftDimension:r,dimensionInfoIndex:a}=e,l=o.getDimensionInfo(a);if(Kz(l))return ia.PixelsDefault;const s=!i.qAlwaysFullyExpanded&&r&&t<p-1?21:0;return Yz+u(n)+s})(a,s);n=Math.max(e,t),h&&!g&&s+1===p&&a.columnWidthLocation===ws.Dimension&&l.size.x>1&&(n=e)}else n=v(s),a.columnWidthLocation===ws.Measures&&(n=b(n));h&&1===l.size.x&&(t=o.indentModeColumnWidth),d=h&&!g&&l.size.x>1?n:tq(e,t,n)}else d=h?Math.min(t,n):n;return x+=d,d}));return h&&l.size.x>1?lq({layoutService:o,effectivePropertiesService:i,headersData:l,columnWidths:y,tableWidth:e,widthOverride:n,measureTextForHeader:s,estimateWidthForDimensionValue:u,measureTextWidthForMeasuresCombinedWithDimensions:d,translator:a}):{leftGridWidth:Math.min(t,x),leftGridColumnWidths:y,leftGridFullWidth:x}}),[e,l,o,t,s,c,u,d,a,i]),[f,m]=n(p);sI((()=>{m(p())}),[p]);const g=h(((e,t)=>{m(p(e,t))}),[p]);return{...f,overrideLeftGridWidth:g}}function uq({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:n}){const{styleService:r,layoutService:o}=iO(),{visibleDimensionsInfo:{visibleTopDimensionInfo:i}}=Hz(),{layout:{qHyperCube:{qNoOfLeftDims:l,qEffectiveInterColumnSortOrder:s}},size:u,visibleMeasureInfo:d}=o,{estimateWidth:c,measureText:p}=oI(r.measureValues),{estimateWidth:f}=oI({...r.dimensionValues,fontWeight:Jz(r.dimensionValues.fontWeight)}),m=e-n-1,g=i.at(-1),b=g===uO,v=s.length-l>i.length?21:0,x=a((()=>{const e=b?d:[g],t=u.x/e.length,n=[],r=[];let o=m;const i=(e,r)=>{n[e]=Math.min(ia.PixelsMax,Math.max(ia.PixelsMin,r)),o-=n[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:n,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:s}=e;switch(n){case aa.Pixels:i(t,Qz(o));break;case aa.Percentage:i(t,eq(a,m));break;case aa.FitToContent:i(t,((e,t,n)=>n?ia.PixelsDefault:Yz+(b?Math.max(c(e),p(t)):Math.max(Math.max(...d.map((e=>c(e.qApprMaxGlyphCount)))),f(e)+v)))(l,s,Kz(e)));break;case aa.Auto:default:r.push(t)}}else r.push(t)})),r.length){const e=r.length*t,i=o/e;r.forEach((e=>{n[e]=Math.max(ia.AutoMinPivot,i)}))}return n}),[b,d,g,u.x,m,c,p,f,v]),_=a((()=>{if(b){const e=d.reduce(((e,t,n)=>e+x[n]),0);return e/d.length}return x[0]}),[b,x,d]),y=parseFloat((t/o.size.x).toFixed(12)),S=h((e=>(b&&void 0!==e?x[o.getMeasureInfoIndexFromCellIndex(e,!0)]:_)-y),[b,x,o,_,y]),w=u.x*_;return{rightGridFullWidth:w,rightGridWidth:Math.min(w,m),getRightGridColumnWidth:S}}const dq=`scrollable-container--${Es.TopGrid}`,cq=`scrollable-container--${Es.LeftGrid}`,pq=`scrollable-container--${Es.DataGrid}`,fq=e=>e&&e instanceof HTMLDivElement?{width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight}:{width:0,height:0},mq=(e,t)=>e>t?Rs.Forward:e<t?Rs.Backward:Rs.None,hq=({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:n},getWrapperElements:o,updateViewService:i,trackScrollDirection:a,interactions:l})=>{const{direction:s}=QT();r((()=>{const{headerGridWrapperElement:r,topGridWrapperElement:u,leftGridWrapperElement:d,dataGridWrapperElement:c}=o(),p=e=>{const t=e.target;r.scrollLeft=t.scrollLeft,a(e),null==i||i(e)},f=e=>{const t=e.target;r.scrollTop=t.scrollTop,a(e),null==i||i(e)},m=r=>{var o,l,p;const f=r.target,m=((e,t)=>{const{scrollWidth:n,clientWidth:r,scrollLeft:o}=e,i=n-r;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(f,s);null===(o=n.current)||void 0===o||o.scrollTo({scrollLeft:m,scrollTop:f.scrollTop}),u.scrollLeft=m,null===(l=e.current)||void 0===l||l.forEach((e=>{null==e||e.scrollTo(m)})),d.scrollTop=c.scrollTop,null===(p=t.current)||void 0===p||p.forEach((e=>{null==e||e.scrollTo(f.scrollTop)})),a(r),null==i||i(r)};return d.addEventListener("scroll",p),u.addEventListener("scroll",f),c.addEventListener("scroll",m),l.scroll||setTimeout((()=>{d.removeEventListener("scroll",p),u.removeEventListener("scroll",f),c.removeEventListener("scroll",m)}),0),()=>{d.removeEventListener("scroll",p),u.removeEventListener("scroll",f),c.removeEventListener("scroll",m)}}),[a,i,l,e,t,n,o,s])},gq=()=>{const{interactions:e}=nO(),t=m(null),o=m(null),i=m(null),a=m(null),l=m([]),s=m([]),u=m(null),{scrollbarsDimensions:{verticalScrollbarWidth:c,horizontalScrollbarHeight:p},resetHorizontalScrollbarHeight:f}=(({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:r})=>{const[o,i]=n(0),[a,l]=n(0);return d((()=>{(e.current||r.current)&&i(Math.max(fq(e.current).width,fq(r.current).width))})),d((()=>{(t.current||r.current)&&l(Math.max(fq(t.current).height,fq(r.current).height))})),{scrollbarsDimensions:{verticalScrollbarWidth:o,horizontalScrollbarHeight:a},resetHorizontalScrollbarHeight:()=>{l(0)}}})({topGridWrapperRef:o,leftGridWrapperRef:i,dataGridWrapperRef:a});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:n,dataGridWrapperRef:r},gridRefs:{topGridRef:o,leftGridRef:i,dataGridRef:a}})=>{const{pageInfo:l}=QT(),{downloadService:s,viewService:u,layoutService:c}=iO(),p=h((()=>{var o,i,a,l;const s={left:0,top:0};null===(o=e.current)||void 0===o||o.scrollTo(s),null===(i=t.current)||void 0===i||i.scrollTo(s),null===(a=n.current)||void 0===a||a.scrollTo(s),null===(l=r.current)||void 0===l||l.scrollTo(s)}),[e,t,n,r]);d((()=>{p()}),[l.page,p]),d((()=>{c.triggerdByExpandOrCollapse||p()}),[c,p]),d((()=>{if(c.triggerdByExpandOrCollapse){var e,t,n,l,s,u,d;const c=null!==(e=null===(t=r.current)||void 0===t?void 0:t.scrollLeft)&&void 0!==e?e:0,p=null!==(n=null===(l=r.current)||void 0===l?void 0:l.scrollTop)&&void 0!==n?n:0;null===(s=i.current)||void 0===s||s.forEach((e=>{null==e||e.scrollTo(p)})),null===(u=o.current)||void 0===u||u.forEach((e=>{null==e||e.scrollTo(c)})),null===(d=a.current)||void 0===d||d.scrollTo({scrollTop:p,scrollLeft:c})}}),[c,r,a,i,o]),d((()=>{(s.isDownloadedAsPDForImage||c.isSnapshot)&&r.current&&n.current&&t.current&&(r.current.scrollTop=u.scrollTop,r.current.scrollLeft=u.scrollLeft,n.current.scrollLeft=u.leftGridScrollLeft,t.current.scrollTop=u.topGridScrollTop)}),[u,s,c,r,n,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:o,leftGridWrapperRef:i,dataGridWrapperRef:a},gridRefs:{topGridRef:l,leftGridRef:s,dataGridRef:u}});const{trackScrollDirection:g,scrollDirectionRefs:{verticalScrollDirection:b,horizontalScrollDirection:v}}=(()=>{const e=m(Rs.None),t=m(Rs.None),n=m({prevScrollTop:0,prevScrollLeft:0});return{trackScrollDirection:h((r=>{if(r instanceof WheelEvent&&(e.current=mq(r.deltaY,0),t.current=mq(r.deltaX,0)),r instanceof Event&&!(r instanceof WheelEvent)){const o=r.target;e.current=mq(o.scrollTop,n.current.prevScrollTop),n.current.prevScrollTop=o.scrollTop,t.current=mq(o.scrollLeft,n.current.prevScrollLeft),n.current.prevScrollLeft=o.scrollLeft}}),[e,t,n]),scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),x=(()=>{const{viewService:e}=iO();return h((t=>{const n=t.target,r=t.currentTarget,o=n.dataset.key;o===cq&&(e.leftGridScrollLeft=r.scrollLeft),o===pq&&(e.scrollLeft=r.scrollLeft),o===dq&&(e.topGridScrollTop=r.scrollTop),o!==cq&&o!==pq||(e.scrollTop=r.scrollTop)}),[e])})(),_={gridRefs:{topGridRef:l,leftGridRef:s,dataGridRef:u},getWrapperElements:h((()=>({headerGridWrapperElement:t.current,topGridWrapperElement:o.current,leftGridWrapperElement:i.current,dataGridWrapperElement:a.current})),[t,o,i,a]),updateViewService:x,trackScrollDirection:g,interactions:e};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:n},getWrapperElements:o,updateViewService:i,trackScrollDirection:a,interactions:l})=>{r((()=>{const{headerGridWrapperElement:r,topGridWrapperElement:i,leftGridWrapperElement:s,dataGridWrapperElement:u}=o(),d=e=>{r.scrollLeft+=e.deltaX,r.scrollTop+=e.deltaY,s.scrollLeft=r.scrollLeft,i.scrollTop=r.scrollTop,a(e)},c=e=>{var o,i;s.scrollTop+=e.deltaY,null===(o=t.current)||void 0===o||o.forEach((e=>{null==e||e.scrollTo(s.scrollTop)})),r.scrollLeft+=e.deltaX,s.scrollLeft=r.scrollLeft,u.scrollTop=s.scrollTop,null===(i=n.current)||void 0===i||i.scrollTo({scrollTop:s.scrollTop}),a(e)},p=t=>{var o,l;i.scrollLeft+=t.deltaX,null===(o=e.current)||void 0===o||o.forEach((e=>{null==e||e.scrollTo(i.scrollLeft)})),r.scrollTop+=t.deltaY,i.scrollTop=r.scrollTop,u.scrollLeft=i.scrollLeft,null===(l=n.current)||void 0===l||l.scrollTo({scrollLeft:i.scrollLeft}),a(t)},f=r=>{var o,l,d;u.scrollLeft+=r.deltaX,u.scrollTop+=r.deltaY,null===(o=n.current)||void 0===o||o.scrollTo({scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}),i.scrollLeft=u.scrollLeft,null===(l=e.current)||void 0===l||l.forEach((e=>{null==e||e.scrollTo(u.scrollLeft)})),s.scrollTop=u.scrollTop,null===(d=t.current)||void 0===d||d.forEach((e=>{null==e||e.scrollTo(u.scrollTop)})),a(r)};return r.addEventListener("wheel",d),s.addEventListener("wheel",c),i.addEventListener("wheel",p),u.addEventListener("wheel",f),l.scroll||setTimeout((()=>{r.removeEventListener("wheel",d),s.removeEventListener("wheel",c),i.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}),0),()=>{r.removeEventListener("wheel",d),s.removeEventListener("wheel",c),i.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}}),[a,i,l,e,t,n,o])})(_),hq(_),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:o,leftGridWrapperRef:i,dataGridWrapperRef:a},gridRefs:{topGridRef:l,leftGridRef:s,dataGridRef:u},scrollDirectionRefs:{verticalScrollDirection:b,horizontalScrollDirection:v},scrollbarsDimensions:{verticalScrollbarWidth:c,horizontalScrollbarHeight:p,resetHorizontalScrollbarHeight:f}}},bq=()=>{const{layoutService:e}=iO(),{rect:t,pageInfo:n}=QT();return a((()=>{let{height:r}=t;return e.hasLimitedData&&(r-=22),n.shouldShowPagination&&(r-=41),{...t,height:r}}),[t,e,n.shouldShowPagination])},vq=({children:e,style:t})=>de.jsx("div",{"data-testid":"fullSize",style:t,children:e}),xq=({children:e,style:t})=>{const{direction:n}=QT();return de.jsx("div",{"data-section-id":"GRID",style:{direction:n,display:"grid",...t},children:e})},_q=e=>e&&`scrollable-container--${e}`,yq=({children:e,style:t,origin:n},r)=>{const{interactions:o}=nO(),i=o.scroll?t:{overflow:"hidden"};return de.jsx("div",{"data-testid":"scrollable","data-key":_q(n),style:i,ref:r,children:e})};var Sq=i.forwardRef(yq);const wq=({children:e,style:t})=>{const{direction:n}=QT();return de.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,["rtl"===n?"right":"left"]:0,...t},children:e})};var Cq=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Eq(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||Cq(r)&&Cq(o)))return!1;var r,o;return!0}function Rq(e,t){var n;void 0===t&&(t=Eq);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var kq="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Lq(e){cancelAnimationFrame(e.id)}function Aq(e,t){var n=kq();var r={id:requestAnimationFrame((function o(){kq()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var Iq=-1;function Pq(e){if(void 0===e&&(e=!1),-1===Iq||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Iq=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Iq}var Mq=null;function Dq(e){if(void 0===e&&(e=!1),null===Mq||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Mq="positive-descending":(t.scrollLeft=1,Mq=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Mq}return Mq}var Tq=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Oq(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,d=e.getRowHeight,c=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,b=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,kc(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:kc(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Rq((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=Rq((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:c(r.props,e,r._instanceProps),height:d(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=Rq((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(Dq()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var d=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:d,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&Lq(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Aq(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Rc(t,e),t.getDerivedStateFromProps=function(e,t){return zq(e,t),b(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,d=i.columnCount,c=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=Pq();void 0!==r&&(r=Math.max(0,Math.min(r,d-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),x=l(this.props,this._instanceProps)>f?b:0,_=v>c?b:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,h,this._instanceProps,_):h,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,x):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(Dq()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Lq(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,d=e.innerTagName,c=e.itemData,p=e.itemKey,f=void 0===p?Tq:p,m=e.outerElementType,h=e.outerTagName,b=e.rowCount,v=e.style,x=e.useIsScrolling,_=e.width,y=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],C=S[1],E=this._getVerticalRangeToRender(),R=E[0],k=E[1],L=[];if(r>0&&b)for(var A=R;A<=k;A++)for(var I=w;I<=C;I++)L.push(g(t,{columnIndex:I,data:c,isScrolling:x?y:void 0,key:f({columnIndex:I,data:c,rowIndex:A}),rowIndex:A,style:this._getItemStyle(A,I)}));var P=a(this.props,this._instanceProps),M=l(this.props,this._instanceProps);return g(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:qs({position:"relative",height:i,width:_,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},g(u||d||"div",{children:L,ref:s,style:{height:P,pointerEvents:y?"none":void 0,width:M}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],d=this._getVerticalRangeToRender(),c=d[0],p=d[1],f=d[2],m=d[3];this._callOnItemsRendered(a,l,c,p,s,u,f,m)}if("function"==typeof r){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,x=h.scrollUpdateWasRequested,_=h.verticalScrollDirection;this._callOnScroll(b,v,g,_,x)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,d=s.isScrolling,c=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,c,this._instanceProps),m=o(this.props,f,c,this._instanceProps),h=d&&"backward"!==u?1:Math.max(1,p),g=d&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,d=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var c=p(this.props,u,this._instanceProps),m=f(this.props,c,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,d),g=l&&"forward"!==s?1:Math.max(1,d);return[Math.max(0,c-h),Math.max(0,Math.min(i-1,m+g)),c,m]},t}(y),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var zq=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},qq=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},Nq=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},jq=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var d=i(u);o[u]={offset:l,size:d},l+=d}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},Fq=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?$q(e,t,n,i,0,r):Bq(e,t,n,Math.max(0,i),r)},$q=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=jq(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},Bq=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&jq(e,t,r,n).offset<o;)r+=a,a*=2;return $q(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},Gq=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=jq(e,t,n,i),u="column"===e?Nq(t,i):qq(t,i),d=Math.max(0,Math.min(u-l,s.offset)),c=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=c-l&&o<=d+l?"auto":"center"),r){case"start":return d;case"end":return c;case"center":return Math.round(c+(d-c)/2);default:return o>=c&&o<=d?o:c>d||o<c?c:d}},Wq=Oq({getColumnOffset:function(e,t,n){return jq("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return Fq("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=jq("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=jq("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:qq,getEstimatedTotalWidth:Nq,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return Gq("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return Gq("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return jq("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return Fq("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=jq("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=jq("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),Hq=function(e,t){return e};function Vq(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,kc(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:kc(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Rq((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=Rq((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,d=r._getItemStyleCache(u&&l,u&&s,u&&a);if(d.hasOwnProperty(e))t=d[e];else{var c=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?c:0;d[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:c,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=Rq((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(Dq()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&Lq(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Aq(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Rc(t,e),t.getDerivedStateFromProps=function(e,t){return Yq(e,t),d(e),null};var c=t.prototype;return c.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},c.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?Pq():0:s.scrollHeight>s.clientHeight?Pq():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},c.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},c.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(Dq()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},c.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Lq(this._resetIsScrollingTimeoutId)},c.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,d=e.itemData,c=e.itemKey,p=void 0===c?Hq:c,f=e.layout,m=e.outerElementType,h=e.outerTagName,b=e.style,v=e.useIsScrolling,x=e.width,_=this.state.isScrolling,y="horizontal"===o||"horizontal"===f,S=y?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),C=w[0],E=w[1],R=[];if(u>0)for(var k=C;k<=E;k++)R.push(g(t,{data:d,key:p(k,d),index:k,isScrolling:v?_:void 0,style:this._getItemStyle(k)}));var L=r(this.props,this._instanceProps);return g(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:qs({position:"relative",height:i,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},g(l||s||"div",{children:R,ref:a,style:{height:y?"100%":L,pointerEvents:_?"none":void 0,width:y?L:"100%"}}))},c._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},c._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),d=l(this.props,u,s,this._instanceProps),c=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-c),Math.max(0,Math.min(t-1,d+p)),u,d]},t}(y),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Yq=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Uq=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},Kq=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=Uq(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},Xq=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&Uq(e,n,t).offset<r;)n+=i,i*=2;return Kq(e,t,Math.min(n,o-1),Math.floor(n/2),r)},Jq=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},Zq=Vq({getItemOffset:function(e,t,n){return Uq(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:Jq,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,d="horizontal"===a||"horizontal"===s?u:l,c=Uq(e,t,o),p=Jq(e,o),f=Math.max(0,Math.min(p-d,c.offset)),m=Math.max(0,c.offset-d+c.size+i);switch("smart"===n&&(n=r>=m-d&&r<=f+d?"auto":"center"),n){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?Kq(e,t,o,0,n):Xq(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,d=Uq(e,t,r),c=n+u,p=d.offset+d.size,f=t;f<a-1&&p<c;)f++,p+=Uq(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function Qq(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var eN=["style"],tN=["style"];function nN(e,t){var n=e.style,r=Ou(e,eN),o=t.style,i=Ou(t,tN);return!Qq(n,o)&&!Qq(r,i)}const rN=10,oN=(e,t)=>e.current===Rs.Backward?t:0,iN=(e,t,n,r)=>{for(let o=n;o<n+r;o++){const n=e.at(o);if(void 0===n||void 0===n.at(t))return!0}return!1},aN=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,lN=({pageInfo:e,measureData:t,pageTop:n,qHeight:r,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(iN(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+l,qWidth:1,qHeight:r};void 0!==t&&aN(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},sN=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=r,u=n.current===Rs.Backward?Math.max(0,o-25):i,d=Math.min(u+25,a);return lN({pageInfo:e,measureData:t,startLeft:u,endLeft:d,pageTop:l,qHeight:s})},uN=({pageInfo:e,measureData:t,scrollDirection:n,layoutService:r,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=oN(n,rN),u=Math.max(r-s,0);return{startLeft:u,endLeft:u+Math.min(i+rN,l-u),pageTop:o,qHeight:a}})(r,o,n),u=lN({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...sN({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},dN=(e,t,n,r)=>{const o=e[n];if(void 0===o)return!0;for(let e=t;e<t+r;e++){if(void 0===o[e])return!0}return!1},cN=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,pN=({startTop:e,endTop:t,qLeft:n,qWidth:r,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(dN(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+l,qWidth:r,qHeight:1};void 0!==e&&cN(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},fN=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=oN(n,rN),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+rN,e.rowsOnCurrentPage-s),qLeft:r,qWidth:i}})(e,r,n),s=pN({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const r=n.current===Rs.Backward?Math.max(0,o-25):i,u=Math.min(r+25,e.rowsOnCurrentPage),d=pN({startTop:r,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...d]}return s},mN=async(e,t,n,r,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:d,gridHeight:c}=o;let p=[],f=[];i.current!==Rs.None&&(p=fN({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==Rs.None&&(f=uN({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===Rs.None&&a.current===Rs.None&&(p=pN({measureData:n,pageInfo:r,qLeft:s,qWidth:d,startTop:u,endTop:u+c}));const m=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(m)},hN=function(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];n=l;var u=Date.now()-i,d=function(){i=Date.now(),r=0,e.apply(t,n)};r||(u>=o?d():r=setTimeout(d,o-u))}}(mN,100),gN=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,i)}),n)}}(mN,75),bN=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),vN=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{direction:l}=QT(),{styleService:{grid:{border:s,divider:u}}}=iO();return de.jsx("div",{style:{...e,...IA,...TA(n,r,s,l,o),...zA({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:u})},"data-testid":"empty-cell","data-index":t})},xN=({children:e,verticalAlign:t,width:n,right:r,isLeftColumn:o})=>{const{layoutService:{isIndentModeEnabled:i,indentModeFeatures:a}}=iO(),l=o&&i&&a.isImagesSupported;return de.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",flexDirection:"row",width:n,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:r,...!l&&{alignItems:t,alignSelf:t,overflow:"hidden"}},children:e})},_N=e=>{const{type:t,imageSize:n}=e;return t!==gs.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"},yN=e=>"number"==typeof e&&!Number.isNaN(+e),SN=e=>"string"==typeof e&&e.length>0||"number"==typeof e?+e:NaN,wN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})}))),CN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})}))),EN=u(((e,t)=>de.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[de.jsx("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),de.jsx("use",{fillRule:"evenodd"})]}))),RN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})}))),kN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})}))),LN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})}))),AN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M2 7h12v2H2z"})}))),IN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})}))),PN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})}))),MN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})}))),DN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})}))),TN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),ON=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})}))),zN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})}))),qN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})}))),NN={m:TN,"ï":MN,R:u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"})}))),S:ON,T:zN,U:qN,P:PN,Q:LN,"è":u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})}))),"¢":RN,"©":EN,"23F4":kN,2013:DN,"&":IN,add:wN,"minus-2":AN,dot:CN},jN=({size:e,iconKey:t,color:n,pvStyle:r})=>{const o=t&&NN[t];return o&&i.createElement("div",{"data-testid":"representation-indicator-icon",style:{color:n,height:e,...r}},i.createElement(o,{style:{height:e}}))},FN=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),$N=(e,t,n)=>{const r=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return n.getColorPickerColor(r)},BN=(e,t)=>{const n=(e=>e.map((e=>{var t;return null!==(t=e.value)&&void 0!==t?t:e})).sort(((e,t)=>e-t)))(e),r=n.some((e=>!yN(e)));return 0===n.length||r?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===n.length?((e,t)=>{const n=e[0]-t;if(0===n||!yN(n)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return n>0?{min:t-.5*Math.abs(t),max:e[0]+2*n}:{min:e[0]+2*n,max:t+.5*Math.abs(t)}})(n,t):((e,t)=>{let n=e[e.length-1]-e[0];return n=n>0?n:1,{min:Math.min(t,e[0])-n/2,max:Math.max(t,e[e.length-1])+n/2}})(n,t)},GN=(e,t,n)=>{const r={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const n=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:n&&t>0?n[t-1]:{value:0,gradient:!1},upperLimit:n&&n[t]?n[t]:{value:1,gradient:!1}}})(e,t),l=((e,t,n,r,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:l,nextColor:s}=t,u=r===i.value?1:(r-a.value)/(i.value-a.value);return a.gradient&&i.gradient?r-a.value<i.value-r?{color:l.color,t:.5-u}:{color:s.color,t:u-.5}:a.gradient?{color:l.color,t:1-(.5+u/2)}:i.gradient?{color:s.color,t:u/2}:{color:o.localPaletteColors[n].color,t:r}})(a,r,t,n,e);return l&&Yk(e.localPaletteColors[t].color).blend(Yk(l.color),l.t)},WN=(e,t,n)=>{const r=((e,t)=>{const{limits:n}=e;return n&&(e.limits=n.sort(((e,t)=>e.value-t.value)),e.limits=n.map((e=>({...e,value:FN(t,e.value)})))),e})({...e},t),o=r.paletteColors||r.localPaletteColors;return o&&(r.localPaletteColors=o.concat().map(((e,t)=>({color:$N(r,t,n)})))),r},HN=(e,t,n,r)=>{const o=WN(e,n,r),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let n="",r=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=r&&t<i){n=GN(e,a,t);break}r=i}return n})(o,t);return a},VN=(e,t)=>{const{limits:n}=e.segments;if(!n)return;const r=((e,t)=>{const{min:n,max:r}=BN(e,t),o=Math.abs(t);return{min:null!=n?n:t-o,max:null!=r?r:t+o}})(n,t),o=((e,t,n)=>{const{limits:r,paletteColors:o,localPaletteColors:i}=e.segments;if(!r||!yN(t))return 0;let a=n&&yN(n)?Math.min(n,t):0;const l=r.sort(((e,t)=>e.value-t.value)),s=o||i;for(let e=0;e<s.length;e++){if(e===s.length-1||t<l[e].value&&t>=a)return e;a=l[e].value}return 0})(e,t,r.min);return{limitRange:r,limitPaletteColorIndex:o}},YN=e=>"flex-start"===e?"flex-end":"flex-start",UN=(e,t,n,r)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=VN(o,t),a=((e,t,n,r)=>{const{segments:o}=e;if(!o||!n)return;const{limits:i}=o;if(null==i||!i.length||!((e,t)=>{var n,r,o;return!(!e||0===e.length||!(null!==(n=null===(r=e[t])||void 0===r?void 0:r.gradient)&&void 0!==n?n:null===(o=e[t-1])||void 0===o?void 0:o.gradient))})(i,n.limitPaletteColorIndex))return $N(o,n.limitPaletteColorIndex,r);const a=FN(n.limitRange,t);return HN(o,a,n.limitRange,r)})(o,t,i,r),l=o.segments.paletteColors[(null==i?void 0:i.limitPaletteColorIndex)||0].icon,{indicator:s}=e;let u=(null==s?void 0:s.position)||"right";return"rtl"===n&&(u="right"===u?"left":"right"),{color:a,iconKey:l,position:u}},KN=({representation:e,cellValue:t,textStyle:n})=>{const{styleService:r}=iO(),{theme:o}=nO(),{direction:i}=QT(),{text:a,indicator:l}=e,{showTextValues:s,applySegmentColors:u}=null!=l?l:{},d=UN(e,t,i,o),{fontSize:c,fontFamily:p,fontStyle:f,fontWeight:m,textDecoration:h}=r.measureValues,g={fontSize:c,fontFamily:p,fontStyle:f,fontWeight:m,textDecoration:h},b=parseInt(c||yA,10),{iconKey:v,color:x,position:_}=d||{},y={display:"flex",paddingTop:2};return s?de.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",overflow:null==n?void 0:n.overflow,color:u?x:null==n?void 0:n.color},children:["left"===_&&jN({size:b,iconKey:v,color:x,pvStyle:y}),de.jsx("span",{style:{paddingTop:4,overflow:null==n?void 0:n.overflow,textOverflow:null==n?void 0:n.textOverflow,whiteSpace:"nowrap",direction:t<0?"ltr":void 0,...g},children:a}),"right"===_&&jN({size:b,iconKey:v,color:x,pvStyle:y})]}):(y.paddingTop=5,jN({size:b,iconKey:v,color:x,pvStyle:y}))},XN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})}))),JN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})}))),ZN=e=>{var t;return!(null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t||!t.includes(oa))},QN=(e,t)=>{switch(t.type){case"clearSelections":return{engineSelectedCells:null,activeSelection:null,selectedField:null};case"mouseup":return{...e,activeSelection:null,engineSelectedCells:t.payload.engineSelectedCells};case"mousedown":return{...e,activeSelection:t.payload.activeSelection,selectedField:t.payload.selectedField};case"mouseover":{if(!e.activeSelection)return e;const{index:n}=t.payload,r=Math.min(n,e.activeSelection.startIndex),o=Math.max(n,e.activeSelection.endIndex);if(r===e.activeSelection.startIndex&&o===e.activeSelection.endIndex)return e;const i={...e.activeSelection,startIndex:r,endIndex:o};return i.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:n,endIndex:r,clientSelectedCells:o}=e,i=new Map(o);for(let e=n;e<=r;e++){const n=t(e);"N"===(null==n?void 0:n.ref.qType)&&i.set(n.ref.qElemNo,n)}return i})(i),{...e,activeSelection:i}}default:return e}};const ej=f({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),tj=()=>p(ej),nj=({children:e,selections:t})=>{const n=function(e){var t,n,o;const{updatePageInfo:i}=QT(),l=e.isActive(),[s,u]=b(QN,{engineSelectedCells:null,selectedField:null,activeSelection:null});r((()=>{const t=()=>{u({type:"clearSelections"})},n=()=>{t(),i({page:0})};return e.on("deactivated",t),e.on("canceled",t),e.on("confirmed",n),e.on("cleared",t),()=>{e.removeListener("deactivated",t),e.removeListener("canceled",t),e.removeListener("confirmed",n),e.removeListener("cleared",t)}}),[e,i]);const d=h((async()=>{var t,n,r;if(!s.activeSelection)return;1===s.activeSelection.clientSelectedCells.size&&(n=s.engineSelectedCells,(r=s.activeSelection).clientSelectedCells.forEach(((e,t)=>{null!=n&&n.has(t)&&(r.clientSelectedCells.delete(t),n.delete(t))})));const o=new Map([...null!==(t=s.engineSelectedCells)&&void 0!==t?t:new Map,...s.activeSelection.clientSelectedCells]);try{u({type:"mouseup",payload:{engineSelectedCells:o}}),await e.select({method:"selectPivotCells",params:[sO,Array.from(o,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]})}catch(e){console.error(e),u({type:"mouseup",payload:{engineSelectedCells:s.engineSelectedCells}})}}),[s,e]);r((()=>{if(s.activeSelection)return document.addEventListener("mouseup",d),()=>{document.removeEventListener("mouseup",d)}}),[d,s.activeSelection]);const c=h(((e,t)=>n=>{const r=t(e);ZN(n)||(e=>{var t;return null!==(null===(t=e.target)||void 0===t?void 0:t.closest("[data-prevent-selection]"))})(n)||(e=>{var t;return"A"===(null===(t=e.target)||void 0===t?void 0:t.tagName)})(n)||!(e=>1===e.buttons)(n)||!r||u({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(r.ref.qElemNo,r)},selectedField:{selectionCellType:r.selectionCellType,index:"L"===r.selectionCellType?r.x:r.y}}})}),[]),p=h((t=>async()=>{s.activeSelection&&(e.isActive()||await e.begin([sO]),u({type:"mouseover",payload:{index:t}}))}),[s.activeSelection,e]),f=h((e=>{var t,n;return!(!(null!==(t=s.engineSelectedCells)&&void 0!==t&&t.size||null!==(n=s.activeSelection)&&void 0!==n&&n.clientSelectedCells.size)||!s.selectedField||e.selectionCellType===s.selectedField.selectionCellType&&("L"===e.selectionCellType?s.selectedField.index===e.x:s.selectedField.index===e.y))}),[null===(t=s.activeSelection)||void 0===t?void 0:t.clientSelectedCells.size,null===(n=s.engineSelectedCells)||void 0===n?void 0:n.size,s.selectedField]),m=h((e=>{var t,n;return!f(e)&&((null===(t=s.engineSelectedCells)||void 0===t?void 0:t.has(e.ref.qElemNo))||!(null===(n=s.activeSelection)||void 0===n||!n.clientSelectedCells.has(e.ref.qElemNo)))}),[f,null===(o=s.activeSelection)||void 0===o?void 0:o.clientSelectedCells,s.engineSelectedCells]);return a((()=>({isSelected:m,isActive:l,isLocked:f,createMouseDownHandler:c,createMouseOverHandler:p})),[m,l,f,c,p])}(t);return de.jsx(ej.Provider,{value:n,children:e})},rj=e=>"fill"===e.representation.imageSize,oj=(e,t)=>{let n=e.isLeftColumn?"flex-start":"center";var r;return e.isLeftColumn&&rj(e)&&t&&(n="center"),e.representation.type!==gs.Image||rj(e)?n:null===(r=e.representation.resolvedImagePosition)||void 0===r?void 0:r.vertical};var ij;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(ij||(ij={}));const aj={brighter:.5,darker:.3,opacity:.03},lj=(e,{cell:t,styleService:n})=>{if(e===ij.Background||e===ij.Color){const n=t.expressionColor[e];if(n)return n}return t.isNull?n.nullValues[e]:t.isPseudoDimension?n.measureLabels[e]:t.isTotal?n.totalValues[e]:n.dimensionValues[e]},sj=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return e.selectedColors.background;const o=lj(ij.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?lj(ij.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${uA(i=o,aj)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},uj=({cell:e,styleService:t,isCellSelected:n})=>n?t.selectedColors.color:lj(ij.Color,{cell:e,styleService:t}),dj=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=lj(ij.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?wA:o},cj=({cell:e,styleService:t})=>lj(ij.FontStyle,{cell:e,styleService:t}),pj=({cell:e,styleService:t})=>lj(ij.TextDecoration,{cell:e,styleService:t}),fj=e=>e?"pointer":"default",mj=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},hj=(e,t)=>{if(!e.isLeftColumn||e.representation.type===gs.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},gj=({cell:e,isLeftColumn:t,isCellSelected:n})=>{const{styleService:r,layoutService:o}=iO(),{interactions:i}=nO(),{isActive:a}=tj(),{dataModel:l}=Hz();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const s=!i.active||a||!l,u=uj({cell:e,styleService:r,isCellSelected:n}),d=a?.4:1,c=e.ref.qCanExpand?JN:XN;let p;p=e.ref.qCanExpand?t?l.expandLeft:l.expandTop:t?l.collapseLeft:l.collapseTop;const f=Xz({isLeftColumn:t,layoutService:o,representation:e.representation});return de.jsx(c,{opacity:d,color:u,"data-prevent-selection":!s||void 0,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:s?"default":"pointer",position:"sticky",top:0,...hj(e,r),...f&&{alignSelf:oj(e)}},onClick:s?void 0:mj({cell:e,expandOrCollapse:p})})},bj=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},vj=(e,t,n)=>{if("alwaysFit"===e&&t&&!n)return"fit-content";switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";case"alwaysFit":return n?"unset":"100%";default:return"100%"}},xj=(e,t)=>{if("alwaysFit"===e)switch(null==t?void 0:t.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},_j=({representation:e,canExpandOrCollapse:t,leafCount:n,isLeftColumn:r,styleService:o,layoutService:i,isMeasureCell:a})=>{var l,s;const{isIndentModeEnabled:u,indentModeFeatures:{isImagesSupported:d}}=i,c=Xz({isLeftColumn:r,layoutService:i,representation:e}),p=t?21:0,f=null!==(l=null===(s=e.imageBox)||void 0===s?void 0:s.width)&&void 0!==l?l:24;let m=`calc(100% - ${p}px)`,h=o.headerCellHeight;r&&c&&(m=f),(a||r)&&(h=o.contentCellHeight);let g=h;switch(!r||void 0===n||u&&d||(g=h*Math.max(n,1)),e.imageSize){case"originalSize":return{maxWidth:m,maxHeight:g,...c?{width:m}:{}};case"fitWidth":return{width:m,maxHeight:g};case"fitHeight":return{height:g,maxWidth:m,...c?{width:m}:{}};case"fill":return{height:g,width:m};default:return{width:m,height:h}}},yj=e=>{if("alwaysFit"===e)return"contain"},Sj=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`.trim(),wj=({imageSize:e,resolvedImagePosition:t,isImagesInIndentModeEnabled:n,isMeasureCell:r})=>({width:vj(e,n,r),height:bj(e),objectFit:yj(e),objectPosition:xj(e,t),...n&&"alwaysFit"===e?{"max-width":"100%"}:{}}),Cj=({representation:e,textStyle:t,isMeasureCell:n})=>{const{imageRef:o,onLoad:i}=(()=>{const{downloadService:e}=iO(),t=m(null),{promise:n,resolve:o}=a((()=>VA()),[]);return r((()=>{var r;return e.isDownloadedAsPDForImage&&(e.waitForPromise(n),null!==(r=t.current)&&void 0!==r&&r.complete&&o()),()=>{o()}}),[t,e,n,o]),{onLoad:h((()=>{o()}),[o]),imageRef:t}})(),{layoutService:{isIndentModeEnabled:l,indentModeFeatures:{isImagesSupported:s}}}=iO(),{url:u,text:d,imageSize:c,resolvedImagePosition:p}=e,{overflow:f,...g}=t;return de.jsx("img",{src:u,alt:d,style:{...wj({imageSize:c,resolvedImagePosition:p,isImagesInIndentModeEnabled:l&&s,isMeasureCell:n}),...g},onLoad:i,ref:o})},Ej=({representation:e,textStyle:t,canExpandOrCollapse:n,leafCount:r,isLeftColumn:o=!1,imageContainerHorizontalAlignment:i,isMeasureCell:a})=>{const{styleService:l,layoutService:s}=iO(),{resolvedImagePosition:u}=e;return de.jsx("div",{"data-key":"image-container--image",style:{display:"flex",flexDirection:"column",justifyContent:null==u?void 0:u.vertical,alignItems:i,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",..._j({representation:e,canExpandOrCollapse:n,leafCount:r,styleService:l,layoutService:s,isLeftColumn:o,isMeasureCell:a})},children:de.jsx(Cj,{representation:e,textStyle:t,isMeasureCell:!0})})},Rj=(e,t,n)=>{if(null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"rtl"===n?"flex-end":"flex-start";case"right":return"rtl"===n?"flex-start":"flex-end";default:return t}},kj=(e,t)=>{var n,r;let{textAlign:o}=null!==(n=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==n?n:{};var i;e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex&&({labelTextAlign:o}=null!==(i=t.visibleMeasureInfo.at(e.visibleMeasureInfoIndex))&&void 0!==i?i:{});return null!==(r=o)&&void 0!==r&&r.auto||void 0===o?"left":o.align},Lj={display:"flex",flexDirection:"row",alignItems:"center"},Aj={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},Ij=(e,t,n,r)=>t?{...Aj,...e.nullValues}:n?{...Lj,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...Lj,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},Pj=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...PA,...!n&&MA(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.nullValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}if(r){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.totalValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}const{fontWeight:s,fontStyle:u,textDecoration:d}=e.measureValues;return{...l,fontWeight:void 0===s?wA:s,fontStyle:u,textDecoration:d}},Mj=({cell:e,representation:t,color:n,isTotalValueCell:r,cellHorizontalAlignment:o})=>{const{layoutService:i,styleService:a}=iO(),{isIndentModeEnabled:l,indentModeFeatures:s}=i,u=e.isNull?i.getNullValueText():t.text,d=t.type===gs.Image,c=t.type===gs.Indicator,p=yN(SN(u)),f=Pj(a,n,p,r,e.isNull);if(!l&&d&&!e.isNull||l&&s.isImagesSupported&&d&&!e.isNull)return de.jsx(Ej,{isMeasureCell:!0,textStyle:f,representation:t,imageContainerHorizontalAlignment:o});const m=SN(e.isNull?t.text:e.ref.qNum);return c&&yN(m)?de.jsx(KN,{representation:t,cellValue:m,textStyle:f}):de.jsx("span",{style:{padding:4,direction:p?"ltr":void 0,...f},children:u})},Dj=(e,t)=>{var n,r;return null!==(n=null==e||null===(r=e[t])||void 0===r?void 0:r.visibleMeasureInfoIndex)&&void 0!==n?n:0},Tj="flex-start",Oj=(e,t)=>{return e.isNull?Tj:t.type===gs.Image&&"fill"!==t.imageSize?null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.vertical:Tj;var n},zj=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const{env:i}=nO(),{pageInfo:a,direction:l}=QT(),{styleService:s,layoutService:u}=iO(),{attrExprInfoIndexes:d,gridSectionsData:{measureData:c,leftDimensionData:p,topDimensionData:f},visibleDimensionsInfo:{visibleLeftDimensionInfo:m,visibleTopDimensionInfo:g}}=Hz(),b=(()=>{const{layoutService:{isIndentModeEnabled:e}}=iO(),{gridSectionsData:{leftDimensionData:t,topDimensionData:n},visibleDimensionsInfo:{visibleLeftDimensionInfo:r,visibleTopDimensionInfo:o}}=Hz(),i=r.length,a=o.length;return h(((r,o)=>{var l,s;return!!(null!==(l=n.grid.at(a-1))&&void 0!==l&&null!==(l=l[r])&&void 0!==l&&l.isTotal||null!==(s=t.grid.at(e?0:i-1))&&void 0!==s&&null!==(s=s[o])&&void 0!==s&&s.isTotal)}),[n,t,i,a,e])})(),v=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=Hz(),n=t.length;return h((t=>{var r;const o=null===(r=e.grid.at(n-1))||void 0===r?void 0:r[t];return bN(o,e.totalDividerIndex)}),[e,n])})(),x=(()=>{const{layoutService:{isIndentModeEnabled:e}}=iO(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:n}}=Hz(),r=n.length;return h((n=>{var o;const i=e?0:r-1,a=null===(o=t.grid.at(i))||void 0===o?void 0:o[n];return bN(a,t.totalDividerIndex,e)}),[t,e,r])})(),{showLastBorder:_}=r,y=f.grid.at(g.length-1),S=p.grid.at(m.length-1),{background:w}=s.measureValues,C=null===(o=c[t])||void 0===o?void 0:o[e],E=t===a.rowsOnCurrentPage-1,R=e===u.size.x-1;if(!C)return de.jsx(vN,{style:{...n,background:w},isLastRow:E,isLastColumn:R,showLastBorder:_,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const k=u.hasPseudoDimOnLeft?Dj(S,t):Dj(y,e),L=u.visibleMeasureInfo[k],A=wz({cell:C.ref,representationProperties:L.representation,attrExprInfoIndex:d.measures[k],env:i,direction:l,conditionalColoring:L.conditionalColoring,enabledFeatures:{[gs.Image]:i.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[gs.Indicator]:i.flags.isEnabled("CLIENT_VNA-118_PIVOT_INDICATOR")}}),I=!C.isNull&&b(e,t),P=C.isNull?u.getNullValueText():A.text,M=!C.isNull||!Number.isNaN(+P),D=Cz(d.measures[k],C.ref),T=((e,t,n,r,o)=>{const{textAlign:i}=t,a=r?"flex-end":"center";var l,s;return e.isNull||n.type!==gs.Image?Rj(i,a,o):null!==(l=null===(s=n.resolvedImagePosition)||void 0===s?void 0:s.horizontal)&&void 0!==l?l:"center"})(C,L,A,M,l),O={...Ij(s,C.isNull,I,D.background),...TA(E,R,s.grid.border,l,_),...zA({bottomDivider:x(t),rightDivider:v(e),borderColor:s.grid.divider}),...IA,padding:"0px 4px",display:"flex",justifyContent:T};return de.jsx("div",{className:na,title:P,style:{...O,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:de.jsx(xN,{width:_N(A),verticalAlign:Oj(C,A),children:de.jsx(Mj,{cell:C,representation:A,isTotalValueCell:I,color:D.color,cellHorizontalAlignment:T})})})};var qj=i.memo(zj,nN);const Nj=(e,t)=>{var n,r;return null!==(n=null===(r=t.list[e])||void 0===r?void 0:r.id)&&void 0!==n?n:e.toString()},jj=({columnIndex:e,rowIndex:t,data:n})=>{var r,o;return null!==(r=null===(o=n.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==r?r:`${t}-${e}`},Fj=e=>({...AA,overflow:"hidden",boxSizing:"content-box",borderWidth:"rtl"===e?"1px 1px 0px 0px":"1px 0px 0px 1px"}),$j=({dataGridRef:e,height:t,rowHightCallback:n,width:r,showLastBorder:o,getRightGridColumnWidth:i,verticalScrollDirection:a,horizontalScrollDirection:l})=>{const{pageInfo:s,direction:u}=QT(),{layoutService:c,styleService:{grid:{divider:p},contentCellHeight:f}}=iO(),{dataModel:m,gridSectionsData:{measureData:g}}=Hz(),b={...Fj(u),borderColor:p,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},v=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:n}=QT(),{downloadService:r,viewService:o,layoutService:i}=iO(),{dataModel:a,gridSectionsData:{leftDimensionData:l,topDimensionData:s,measureData:u}}=Hz(),d=l.columnCount,c=s.rowCount;return h((async({overscanColumnStartIndex:l,overscanColumnStopIndex:s,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{o.gridColumnStartIndex=l,o.gridRowStartIndex=p,o.gridWidth=s-l+1,o.gridHeight=f-p+1;const m=o.gridWidth+d+(t.current===Rs.None?0:rN),h=o.gridHeight+c+(e.current===Rs.None?0:rN);let g=hN;h*m>1500&&(g=gN),g(a,i,u,n,o,e,t,r)}),[o,i,a,u,e,t,n,d,c,r])})({verticalScrollDirection:a,horizontalScrollDirection:l});return sI((()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)}),[e,m,g]),d((()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[r,t,e,f,u]),0===c.size.x?null:de.jsx(Wq,{"data-section-id":"DATA_GRID",ref:e,style:b,columnCount:c.size.x,columnWidth:i,height:t,rowCount:s.rowsOnCurrentPage,rowHeight:n,width:r,itemData:{showLastBorder:o,grid:g},onItemsRendered:v,estimatedRowHeight:n(),estimatedColumnWidth:i(),itemKey:jj,direction:u,children:qj})};var Bj=_($j);const Gj=u(((e,t)=>de.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[de.jsx("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),de.jsx("use",{fillRule:"evenodd"})]}))),Wj=e=>{const[t,r]=n(!1);return sI((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},Hj=()=>{const[e,t]=n(!1),{dataModel:r}=Hz(),{interactions:o}=nO(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=Wj([r]);return{open:e,setOpen:t,handleOpenMenu:e=>{!o.active||ZN(e)||i||t(!0)},setIsAdjustingWidth:a}};function Vj(e,t){var n,r;const o=null!==(n=null===(r=t.expressionColor)||void 0===r?void 0:r.background)&&void 0!==n?n:e.dimensionValues.background,i=t.isLeftColumn?e.header.background:o,a=i===RA.Transparent?Dk.WHITE:i,l=Fa(e.grid.border),s=Fa(a);return s.isInvalid()||l.isInvalid()||1===l.a?e.grid.border:function(e,t,n){return Fa(e.r+(t.r-e.r)*n,e.g+(t.g-e.g)*n,e.b+(t.b-e.b)*n,e.a+(t.a-e.a)*n)}(s,l,l.a).getRGB()}const Yj=({cellInfo:e,columnWidth:t,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i,shouldApplyIndentModeColumnWidth:a,tableWidth:l})=>{var s;const{direction:u}=QT(),{interactions:d,translator:c}=nO(),{isActive:p}=tj(),{dataModel:f}=Hz(),{styleService:m}=iO(),[,h]=n({});if(!(e.canBeResized&&!!d.active&&!p))return null;const g=Vj(m,e);return de.jsx(TD,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:g,updateWidthCallback:t=>{h({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>{var n;a?f.applyIndentModeColumnWidth({...t,pixels:Math.min((null!=l?l:0)*Uz,null!==(n=t.pixels)&&void 0!==n?n:0)}):f.applyColumnWidth(t,e)},setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:c,columnLabel:null!==(s=e.label)&&void 0!==s?s:""},direction:u})};function Uj(e){return MP(e)}const Kj=e=>e.scrollTop;function Xj(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Jj(e){return q_("MuiPaper",e)}N_("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Zj=["className","component","elevation","square","variant"],Qj=kD("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return qs({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&qs({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${jP("#fff",ID(t.elevation))}, ${jP("#fff",ID(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),eF=c.forwardRef((function(e,t){const n=Uj({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Ou(n,Zj),u=qs({},n,{component:o,elevation:i,square:a,variant:l}),d=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return jy({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Jj,o)})(u);return de.jsx(Qj,qs({as:o,ownerState:u,className:T_(d.root,r),ref:t},s))}));const tF=N_("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),nF=["center","classes","className"];let rF,oF,iF,aF,lF=e=>e;const sF=sx(rF||(rF=lF`
114
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,d,c,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),x=b+("."===v||","===v?1:0),_=g>0?e.substring(x,p):"";if(n=(t="-"===(e=e.substring(f,x)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),d=e[0].split(i),e[0]=d.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=d[1]&&d[d.length-1].length){for(h="",b=(c=t[0]).length%s,p=c.length,x=0;x<p;x++)h+=c.charAt(x),!((x-b+1)%s)&&x<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+_}},XL({exports:{}});const lA=(e,t=Dk.TEXT,n=Dk.WHITE)=>{const r=Yk(e),o=Yk(t),i=Yk(n);return r.isInvalid()?t:function(e,t,n){const r=Uk(e,t),o=Uk(e,n);if(void 0!==r&&void 0!==o)return r>o?t:n}(r,i,o).getRGB()},sA=e=>{const t=e.getStyle("","","dataColors.selected")||Dk.SELECTED,n=function(e,t){const n=Yk("#FFFFFF"),r=Yk(e),o=Yk(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const i=Uk(n,r),a=Uk(o,r),l=i>a||i>4.5;return!l&&a>3?o.getHex():l?"#FFFFFF":"#000000"}(t,Dk.TEXT);return{background:t,color:n}},uA=(e,t)=>{const n=Yk(e);return 0===n.a?(n.setAlpha(t.opacity),n.getString()):n.isDark()?n.getBrightenedColor(t.brighter).getString():n.getDarkenedColor(t.darker).getString()},dA=e=>!!e&&0===Yk(e).a,cA=e=>{const t=Yk(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},pA=e=>{e.stopPropagation(),e.preventDefault()},fA=(e,t,n,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:null!=r&&r,defaultValue(e,t,o){var i;const a=null!==(i=null==r?void 0:r(e,t,o))&&void 0!==i&&i,l=o.theme.current(),s=n(l,a);return{color:"transparent"===s?"none":s}}}),mA=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},hA=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"Source Sans Pro, sans-serif",l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>mA(e,!0)))],d=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...Qk(r).filter((e=>!s.includes(e))).map((e=>mA(e,!0)))];return[...u,...d.length>1?d:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),gA=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],bA=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{var r;const o=t.fontSize,i=null!==(r=t.fontSizes)&&void 0!==r?r:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>mA(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...gA.filter((e=>!a.includes(e))).map((e=>mA(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),vA=({section:e,defaultFontStyle:t,translator:n,flags:r,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:hA({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=o(t,e,"fontFamily"))&&void 0!==n?n:t.fontFamily},translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:bA({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=o(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:fA(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=o(t,e,"color"))&&void 0!==n?n:t.color}))}},background:fA(`${e}.background`,"properties.background",((t,n)=>{var r;const i=n?Dk.WHITE:Dk.TRANSPARENT;return null!==(r=o(t,e,"backgroundColor"))&&void 0!==r?r:i}),a)}}}}),xA=({section:e,defaultFontStyle:t,fallbackBackground:n,getThemeValue:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:fA(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=r(t,e,"color"))&&void 0!==n?n:t.color}))}},background:fA(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=r(t,e,"backgroundColor"))&&void 0!==i?i:n)&&void 0!==o?o:"transparent"}))}}}}),_A=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),yA="12px",SA="Source Sans Pro, sans-serif",wA="600",CA=15e3,EA=4/3;var RA,kA;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(RA||(RA={})),function(e){e.Solid="solid",e.None="none"}(kA||(kA={}));const LA={display:"flex",justifyContent:"center",alignItems:"center"},AA={borderStyle:"solid"},IA={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},PA={lineHeight:EA,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},MA=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),DA=(e,t)=>e>0?`${e}px ${kA.Solid} ${t}`:kA.None,TA=(e,t,n,r,o)=>{const i=Number(!t||(null==o?void 0:o.right)),a=Number(!e||(null==o?void 0:o.bottom));return{borderRight:"rtl"!==r?DA(i,n):kA.None,borderBottom:DA(a,n),borderLeft:"rtl"===r?DA(i,n):kA.None,borderTop:kA.None}},OA=(e,t,n,r,o,i,a)=>{const l=TA(t,r,o,i,a);return e.isLeftDimension||(e.isLastDimension&&!t&&(l.borderBottom=DA(2,o)),n||(l.borderLeft="rtl"!==i?DA(1,o):"none",l.borderRight="rtl"===i?DA(1,o):"none")),l},zA=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=DA(1,n)),t&&(r.borderRight=DA(1,n)),r},qA=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:_A("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?_A("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:fA("grid.border","properties.border",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:RA.DividerLight})),divider:fA("grid.divider","properties.pivot.divider",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n||null===(n=n.divider)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:RA.DividerDark})),background:fA("grid.background","properties.background",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:RA.Transparent}))}}}}),NA=(e,t,n)=>{var r,o,i,a,l,s;switch(t){case"header":return null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.dimension)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r[n];case"dimensionValues":return null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[n];case"measureLabels":return null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[n];case"measureValues":return null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[n];case"totalValues":return null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[n];case"nullValues":return null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[n];default:return}},jA=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,defaultValue:[],items:{headerSection:vA({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:NA}),dimensionValueSection:vA({section:"dimensionValues",translator:e,flags:t,getThemeValue:NA}),measureValueSection:vA({section:"measureValues",translator:e,flags:t,getThemeValue:NA}),measureLabelSection:xA({section:"measureLabels",getThemeValue:NA}),totalValuesSection:xA({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:NA}),nullValuesSection:xA({section:"nullValues",fallbackBackground:RA.NullValueBackground,getThemeValue:NA}),gridSection:qA(t)}}]}),FA=e=>{if(e.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}}},$A=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[jA(e,t),{type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:aa.Auto,translation:"Common.Auto"},{value:aa.Pixels,translation:"Object.Table.Column.Pixels"},{value:aa.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:aa.Auto,show:e=>!!e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:ia.PixelsDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===aa.Pixels},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(n.indentModeColumnWidth.pixels=Math.max(ia.PixelsMin,Math.min(ia.PixelsMax,n.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:ia.PercentageDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===aa.Percentage},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(n.indentModeColumnWidth.percentage=Math.max(ia.PercentageMin,Math.min(ia.PercentageMaxInIndentMode,n.indentModeColumnWidth.percentage)))}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){const{qIndentMode:t}=e.qHyperCubeDef;return!t&&!!e.qHyperCubeDef.qDimensions.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)}))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>!!e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,n,r){e.qHyperCubeDef.qExpansionState=[],r.$emit("saveProperties",e)}}}}]},...FA(t)}}),BA="auto",GA={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>{t("integer",e?-1:0)}},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>!!e.qHyperCubeDef.qSortbyYValue}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:BA,translation:"Object.Table.SortingInSearch",options:[{value:BA,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function WA(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:Os(e),sorting:GA,addons:hs,settings:$A(t,n)}}}function HA(e){return{support:{cssScaling:!0,snapshot:!0,export:!0,exploration:e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:WA(e),importProperties:fs(e),exportProperties:ms,exploration:ma(e)}}const VA=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function YA(e,t){return C((()=>e),t)}const UA={},KA=e=>{const t=C((()=>({current:UA})),[]);return t.current=t.current===UA?e:t.current,t},XA=()=>{const{viewState:e}=E(),t=KA(new Set),n=void 0!==e,{promise:r,resolve:o}=C((()=>VA()),[]),i=YA((e=>{n&&t.current.add(e)}),[t]),a=YA(function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,i)}),n)}}((async()=>{await Promise.all(t.current),t.current.clear(),o()}),1e3),[o,t]);return R((async()=>{n&&await r}),[r,n]),C((()=>({viewState:e,isDownloadedAsPDForImage:n,notifyIsDoneRendering:a,waitForPromise:i})),[a,n,e,i])},JA="#grid",ZA=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},QA=(e,t,n,r,o)=>{const i=ZA(".qv-object .qv-inner-object",n),a=ZA(".qv-panel-sheet",n),l=ZA(JA,n),s=null!=l?l:a,u=(e=>{var t,n,r,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(n=l.bgColor)||void 0===n?void 0:n.colorExpression,u=null==l||null===(r=l.bgColor)||void 0===r||null===(r=r.color)||void 0===r?void 0:r.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return cA(s);if("none"===u)return"transparent";if(void 0===u)return;const d=Yk(u);return d.setAlpha(null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:d.a),d.getRGBA()})(e),d=null==r?void 0:r(t),c=null==o?void 0:o(t),p=d||i||c,f=dA(p),m=!dA(h=f?s:p)&&lA(h,Dk.TEXT,Dk.DARK_MODE_TEXT)===$k(Dk.DARK_MODE_TEXT);var h;const g=((e,t,n,r=Dk.WHITE)=>e&&!dA(e)?e:dA(t)?n&&!dA(n)?n:r:t)(u,p,s);return{color:p,headerColor:g,isDark:m}},eI=(e,t,n,r)=>{const o=A(),i=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[n,r]=k([]);return L((()=>{let n;return e&&(n=new MutationObserver((e=>{r(e)})),n.observe(e,t)),()=>{var e;null===(e=n)||void 0===e||e.disconnect()}}),[e,t]),n})(t.closest(JA),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return C((()=>({...o,background:QA(e,o,t,n,r)})),[o.name(),t,n,r,e,i])};function tI(e,t){const n=C((()=>({isLoading:!0})),t),[r,o]=R((async()=>{try{return await e()}finally{n.isLoading=!1}}),t);return[r,n.isLoading,o]}const nI=3;function rI(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=n(a),u=n(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?r=i+1:o=i}return null}function oI({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=nI}={},{estimateWidth:l,measureText:s,estimateLineCount:u}=a((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=QL(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=QL((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=rI(o,t,l)}while(null!==o&&r<i);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:l,measureText:s,estimateLineCount:u}}var iI,aI=w;iI=aI.createRoot,aI.hydrateRoot;const lI="Source Sans Pro, sans-serif";function sI(e,t){const[r,o]=n(t),i=r.some(((e,n)=>e!==t[n]));i&&(o(t),e())}var uI={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const dI=({translator:e})=>(a((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(uI).forEach((t=>{e.add(uI[t])}))}}(e)}),[e]),e);var cI="$$material";const pI=["values","unit","step"];function fI(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Ou(e,pI),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>qs({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return qs({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const mI={borderRadius:4};function hI(e,t){return t?bx(e,t,{clone:!1}):e}const gI={xs:0,sm:600,md:900,lg:1200,xl:1536},bI={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${gI[e]}px)`};function vI(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||bI;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||bI;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||gI).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function xI(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function _I(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function yI(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:_I(e,n)||r,t&&(o=t(o,r,e)),o}function SI(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=_I(e.theme,r)||{};return vI(e,i,(e=>{let r=yI(a,o,e);return e===r&&"string"==typeof e&&(r=yI(a,o,`${t}${"default"===e?"":Rx(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const wI={m:"margin",p:"padding"},CI={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},EI={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},RI=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!EI[e])return[e];e=EI[e]}const[t,n]=e.split(""),r=wI[t],o=CI[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),kI=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],LI=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function AI(e,t,n,r){var o;const i=null!=(o=_I(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function II(e){return AI(e,"spacing",8)}function PI(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function MI(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=PI(t,n),e)),{})}(RI(n),r);return vI(e,e[n],o)}function DI(e,t){const n=II(e.theme);return Object.keys(e).map((r=>MI(e,t,r,n))).reduce(hI,{})}function TI(e){return DI(e,kI)}function OI(e){return DI(e,LI)}function zI(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?hI(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function qI(e){return"number"!=typeof e?e:`${e}px solid`}function NI(e,t){return SI({prop:e,themeKey:"borders",transform:t})}TI.propTypes={},TI.filterProps=kI,OI.propTypes={},OI.filterProps=LI;const jI=NI("border",qI),FI=NI("borderTop",qI),$I=NI("borderRight",qI),BI=NI("borderBottom",qI),GI=NI("borderLeft",qI),WI=NI("borderColor"),HI=NI("borderTopColor"),VI=NI("borderRightColor"),YI=NI("borderBottomColor"),UI=NI("borderLeftColor"),KI=NI("outline",qI),XI=NI("outlineColor"),JI=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=AI(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:PI(t,e)});return vI(e,e.borderRadius,n)}return null};JI.propTypes={},JI.filterProps=["borderRadius"],zI(jI,FI,$I,BI,GI,WI,HI,VI,YI,UI,JI,KI,XI);const ZI=e=>{if(void 0!==e.gap&&null!==e.gap){const t=AI(e.theme,"spacing",8),n=e=>({gap:PI(t,e)});return vI(e,e.gap,n)}return null};ZI.propTypes={},ZI.filterProps=["gap"];const QI=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=AI(e.theme,"spacing",8),n=e=>({columnGap:PI(t,e)});return vI(e,e.columnGap,n)}return null};QI.propTypes={},QI.filterProps=["columnGap"];const eP=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=AI(e.theme,"spacing",8),n=e=>({rowGap:PI(t,e)});return vI(e,e.rowGap,n)}return null};eP.propTypes={},eP.filterProps=["rowGap"];function tP(e,t){return"grey"===t?t:e}zI(ZI,QI,eP,SI({prop:"gridColumn"}),SI({prop:"gridRow"}),SI({prop:"gridAutoFlow"}),SI({prop:"gridAutoColumns"}),SI({prop:"gridAutoRows"}),SI({prop:"gridTemplateColumns"}),SI({prop:"gridTemplateRows"}),SI({prop:"gridTemplateAreas"}),SI({prop:"gridArea"}));function nP(e){return e<=1&&0!==e?100*e+"%":e}zI(SI({prop:"color",themeKey:"palette",transform:tP}),SI({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:tP}),SI({prop:"backgroundColor",themeKey:"palette",transform:tP}));const rP=SI({prop:"width",transform:nP}),oP=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||gI[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:nP(t)}};return vI(e,e.maxWidth,t)}return null};oP.filterProps=["maxWidth"];const iP=SI({prop:"minWidth",transform:nP}),aP=SI({prop:"height",transform:nP}),lP=SI({prop:"maxHeight",transform:nP}),sP=SI({prop:"minHeight",transform:nP});SI({prop:"size",cssProperty:"width",transform:nP}),SI({prop:"size",cssProperty:"height",transform:nP});zI(rP,oP,iP,aP,lP,sP,SI({prop:"boxSizing"}));const uP={border:{themeKey:"borders",transform:qI},borderTop:{themeKey:"borders",transform:qI},borderRight:{themeKey:"borders",transform:qI},borderBottom:{themeKey:"borders",transform:qI},borderLeft:{themeKey:"borders",transform:qI},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:qI},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:JI},color:{themeKey:"palette",transform:tP},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:tP},backgroundColor:{themeKey:"palette",transform:tP},p:{style:OI},pt:{style:OI},pr:{style:OI},pb:{style:OI},pl:{style:OI},px:{style:OI},py:{style:OI},padding:{style:OI},paddingTop:{style:OI},paddingRight:{style:OI},paddingBottom:{style:OI},paddingLeft:{style:OI},paddingX:{style:OI},paddingY:{style:OI},paddingInline:{style:OI},paddingInlineStart:{style:OI},paddingInlineEnd:{style:OI},paddingBlock:{style:OI},paddingBlockStart:{style:OI},paddingBlockEnd:{style:OI},m:{style:TI},mt:{style:TI},mr:{style:TI},mb:{style:TI},ml:{style:TI},mx:{style:TI},my:{style:TI},margin:{style:TI},marginTop:{style:TI},marginRight:{style:TI},marginBottom:{style:TI},marginLeft:{style:TI},marginX:{style:TI},marginY:{style:TI},marginInline:{style:TI},marginInlineStart:{style:TI},marginInlineEnd:{style:TI},marginBlock:{style:TI},marginBlockStart:{style:TI},marginBlockEnd:{style:TI},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ZI},rowGap:{style:eP},columnGap:{style:QI},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:nP},maxWidth:{style:oP},minWidth:{transform:nP},height:{transform:nP},maxHeight:{transform:nP},minHeight:{transform:nP},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function dP(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const d=_I(n,l)||{};if(u)return u(o);return vI(o,t,(t=>{let n=yI(d,s,t);return t===n&&"string"==typeof t&&(n=yI(d,s,`${e}${"default"===t?"":Rx(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const l=null!=(r=i.unstable_sxConfig)?r:uP;function s(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}(i.breakpoints),s=Object.keys(o);let u=o;return Object.keys(r).forEach((n=>{const o=(a=r[n],s=i,"function"==typeof a?a(s):a);var a,s;if(null!=o)if("object"==typeof o)if(l[n])u=hI(u,e(n,o,i,l));else{const e=vI({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?u=hI(u,e):u[n]=t({sx:o,theme:i,nested:!0})}else u=hI(u,e(n,o,i,l))})),!a&&i.modularCssLayers?{"@layer sx":xI(s,u)}:xI(s,u)}return Array.isArray(o)?o.map(s):s(o)}}const cP=dP();function pP(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}cP.filterProps=["sx"];const fP=["breakpoints","palette","spacing","shape"];function mP(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Ou(e,fP),l=fI(n),s=function(e=8){if(e.mui)return e;const t=II({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=bx({breakpoints:l,direction:"ltr",components:{},palette:qs({mode:"light"},r),spacing:s,shape:qs({},mI,i)},a);return u.applyStyles=pP,u=t.reduce(((e,t)=>bx(e,t)),u),u.unstable_sxConfig=qs({},uP,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return cP({sx:e,theme:this})},u}var hP=Object.freeze({__proto__:null,default:mP,private_createBreakpoints:fI,unstable_applyStyles:pP});function gP(e=null){const t=c.useContext(Zv);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const bP=mP();function vP(e=bP){return gP(e)}function xP(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function _P({styles:e,themeId:t,defaultTheme:n={}}){const r=vP(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>xP("function"==typeof e?e(o):e))):xP(i)),de.jsx(dx,{styles:i})}const yP=["sx"];function SP(e){const{sx:t}=e,n=Ou(e,yP),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:uP;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return hx(n)?qs({},r,n):r}:qs({},r,t),qs({},o,{sx:i})}var wP=Object.freeze({__proto__:null,default:cP,extendSxProp:SP,unstable_createStyleFunctionSx:dP,unstable_defaultSxConfig:uP});const CP=["className","component"];function EP(e){if(e.type)return e;if("#"===e.charAt(0))return EP(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Sg(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Sg(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function RP(e,t){return e=EP(e),t=function(e,t=0,n=1){return dy(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}const kP=["value"],LP=c.createContext();function AP(e){let{value:t}=e,n=Ou(e,kP);return de.jsx(LP.Provider,qs({value:null==t||t},n))}const IP=c.createContext(void 0);function PP({value:e,children:t}){return de.jsx(IP.Provider,{value:e,children:t})}function MP({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?sy(o.defaultProps,r):o.styleOverrides||o.variants?r:sy(o,r)}({props:e,name:t,theme:{components:c.useContext(IP)}})}const DP={};function TP(e,t,n,r=!1){return c.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?qs({},t,{[e]:i}):i;return r?()=>a:a}return qs({},t,e?{[e]:n}:n)}),[e,t,n,r])}function OP(e){const{children:t,theme:n,themeId:r}=e,o=gP(DP),i=Yy()||DP,a=TP(r,o,n),l=TP(r,i,n,!0),s="rtl"===a.direction,u=function(e){const t=gP(),n=yy()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",uy((()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",n),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${n}"]`))||i.remove()}}),[o,n]),o?de.jsx(_P,{styles:o}):null}(a);return de.jsx(Ky,{theme:l,children:de.jsx(Zv.Provider,{value:a,children:de.jsx(AP,{value:s,children:de.jsxs(PP,{value:null==a?void 0:a.components,children:[u,t]})})})})}function zP(e,t){return qs({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var qP={},NP=nS;Object.defineProperty(qP,"__esModule",{value:!0});var jP=qP.alpha=ZP;qP.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=YP(e),a=YP(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return KP({type:"rgb",values:l})},qP.colorChannel=void 0;var FP=qP.darken=QP;qP.decomposeColor=YP,qP.emphasize=tM;var $P=qP.getContrastRatio=function(e,t){const n=JP(e),r=JP(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};qP.getLuminance=JP,qP.hexToRgb=VP,qP.hslToRgb=XP;var BP=qP.lighten=eM;qP.private_safeAlpha=function(e,t,n){try{return ZP(e,t)}catch(t){return e}},qP.private_safeColorChannel=void 0,qP.private_safeDarken=function(e,t,n){try{return QP(e,t)}catch(t){return e}},qP.private_safeEmphasize=function(e,t,n){try{return tM(e,t)}catch(t){return e}},qP.private_safeLighten=function(e,t,n){try{return eM(e,t)}catch(t){return e}},qP.recomposeColor=KP,qP.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=YP(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var GP=NP(rS),WP=NP(oS);function HP(e,t=0,n=1){return(0,WP.default)(e,t,n)}function VP(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function YP(e){if(e.type)return e;if("#"===e.charAt(0))return YP(VP(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,GP.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,GP.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const UP=e=>{const t=YP(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};qP.colorChannel=UP;function KP(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function XP(e){e=YP(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),KP({type:l,values:s})}function JP(e){let t="hsl"===(e=YP(e)).type||"hsla"===e.type?YP(XP(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ZP(e,t){return e=YP(e),t=HP(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,KP(e)}function QP(e,t){if(e=YP(e),t=HP(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return KP(e)}function eM(e,t){if(e=YP(e),t=HP(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return KP(e)}function tM(e,t=.15){return JP(e)>.5?QP(e,t):eM(e,t)}qP.private_safeColorChannel=(e,t)=>{try{return UP(e)}catch(t){return e}};const nM={black:"#000",white:"#fff"},rM={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},oM="#f3e5f5",iM="#ce93d8",aM="#ba68c8",lM="#ab47bc",sM="#9c27b0",uM="#7b1fa2",dM="#e57373",cM="#ef5350",pM="#f44336",fM="#d32f2f",mM="#c62828",hM="#ffb74d",gM="#ffa726",bM="#ff9800",vM="#f57c00",xM="#e65100",_M="#e3f2fd",yM="#90caf9",SM="#42a5f5",wM="#1976d2",CM="#1565c0",EM="#4fc3f7",RM="#29b6f6",kM="#03a9f4",LM="#0288d1",AM="#01579b",IM="#81c784",PM="#66bb6a",MM="#4caf50",DM="#388e3c",TM="#2e7d32",OM="#1b5e20",zM=["mode","contrastThreshold","tonalOffset"],qM={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:nM.white,default:nM.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},NM={text:{primary:nM.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:nM.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function jM(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=BP(e.main,o):"dark"===t&&(e.dark=FP(e.main,i)))}function FM(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Ou(e,zM),i=e.primary||function(e="light"){return"dark"===e?{main:yM,light:_M,dark:SM}:{main:wM,light:SM,dark:CM}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:iM,light:oM,dark:lM}:{main:sM,light:aM,dark:uM}}(t),l=e.error||function(e="light"){return"dark"===e?{main:pM,light:dM,dark:fM}:{main:fM,light:cM,dark:mM}}(t),s=e.info||function(e="light"){return"dark"===e?{main:RM,light:EM,dark:LM}:{main:LM,light:kM,dark:AM}}(t),u=e.success||function(e="light"){return"dark"===e?{main:PM,light:IM,dark:DM}:{main:TM,light:MM,dark:OM}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:gM,light:hM,dark:vM}:{main:"#ed6c02",light:bM,dark:xM}}(t);function c(e){return $P(e,NM.text.primary)>=n?NM.text.primary:qM.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=qs({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Sg(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Sg(12,t?` (${t})`:"",JSON.stringify(e.main)));return jM(e,"light",o,r),jM(e,"dark",i,r),e.contrastText||(e.contrastText=c(e.main)),e},f={dark:NM,light:qM};return bx(qs({common:qs({},nM),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:rM,contrastThreshold:n,getContrastText:c,augmentColor:p,tonalOffset:r},f[t]),o)}const $M=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const BM={textTransform:"uppercase"},GM='"Roboto", "Helvetica", "Arial", sans-serif';function WM(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=GM,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:d,pxToRem:c}=n,p=Ou(n,$M),f=o/14,m=c||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return qs({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===GM?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,d);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,BM),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,BM),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return bx(qs({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function HM(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const VM=["none",HM(0,2,1,-1,0,1,1,0,0,1,3,0),HM(0,3,1,-2,0,2,2,0,0,1,5,0),HM(0,3,3,-2,0,3,4,0,0,1,8,0),HM(0,2,4,-1,0,4,5,0,0,1,10,0),HM(0,3,5,-1,0,5,8,0,0,1,14,0),HM(0,3,5,-1,0,6,10,0,0,1,18,0),HM(0,4,5,-2,0,7,10,1,0,2,16,1),HM(0,5,5,-3,0,8,10,1,0,3,14,2),HM(0,5,6,-3,0,9,12,1,0,3,16,2),HM(0,6,6,-3,0,10,14,1,0,4,18,3),HM(0,6,7,-4,0,11,15,1,0,4,20,3),HM(0,7,8,-4,0,12,17,2,0,5,22,4),HM(0,7,8,-4,0,13,19,2,0,5,24,4),HM(0,7,9,-4,0,14,21,2,0,5,26,4),HM(0,8,9,-5,0,15,22,2,0,6,28,5),HM(0,8,10,-5,0,16,24,2,0,6,30,5),HM(0,8,11,-5,0,17,26,2,0,6,32,5),HM(0,9,11,-5,0,18,28,2,0,7,34,6),HM(0,9,12,-6,0,19,29,2,0,7,36,6),HM(0,10,13,-6,0,20,31,3,0,8,38,7),HM(0,10,13,-6,0,21,33,3,0,8,40,7),HM(0,10,14,-6,0,22,35,3,0,8,42,7),HM(0,11,14,-7,0,23,36,3,0,9,44,8),HM(0,11,15,-7,0,24,38,3,0,9,46,8)],YM=["duration","easing","delay"],UM={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},KM={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function XM(e){return`${Math.round(e)}ms`}function JM(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ZM(e){const t=qs({},UM,e.easing),n=qs({},KM,e.duration);return qs({getAutoHeightDuration:JM,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Ou(r,YM),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:XM(o)} ${i} ${"string"==typeof a?a:XM(a)}`)).join(",")}},e,{easing:t,duration:n})}const QM={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},eD=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function tD(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Ou(e,eD);if(e.vars&&void 0===e.generateCssVars)throw new Error(Sg(18));const l=FM(r),s=mP(e);let u=bx(s,{mixins:zP(s.breakpoints,n),palette:l,shadows:VM.slice(),typography:WM(l,i),transitions:ZM(o),zIndex:qs({},QM)});return u=bx(u,a),u=t.reduce(((e,t)=>bx(e,t)),u),u.unstable_sxConfig=qs({},uP,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return cP({sx:e,theme:this})},u}const nD=tD();function rD(){const e=vP(nD);return e[cI]||e}var oD={},iD=ee(hP),aD=ee(wP),lD=nS;Object.defineProperty(oD,"__esModule",{value:!0});var sD=oD.default=function(e={}){const{themeId:t,defaultTheme:n=yD,rootShouldForwardProp:r=xD,slotShouldForwardProp:o=xD}=e,i=e=>(0,mD.default)((0,uD.default)({},e,{theme:wD((0,uD.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,cD.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:d,overridesResolver:c=CD(SD(s))}=a,p=(0,dD.default)(a,bD),f=l&&l.startsWith("Mui")||s?"components":"custom",m=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=d||!1;let g=xD;"Root"===s||"root"===s?g=r:s?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const b=(0,cD.default)(e,(0,uD.default)({shouldForwardProp:g,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,pD.isPlainObject)(e)?r=>{const o=wD({theme:r.theme,defaultTheme:n,themeId:t});return ED(e,(0,uD.default)({},r,{theme:o}),o.modularCssLayers?f:void 0)}:e,x=(r,...o)=>{let a=v(r);const s=o?o.map(v):[];l&&c&&s.push((e=>{const r=wD((0,uD.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=ED(n,(0,uD.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)})),c(e,i)})),l&&!m&&s.push((e=>{var r;const o=wD((0,uD.default)({},e,{defaultTheme:n,themeId:t}));return ED({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,uD.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const d=b(a,...s);return e.muiName&&(d.muiName=e.muiName),d};return b.withConfig&&(x.withConfig=b.withConfig),x}};oD.shouldForwardProp=xD,oD.systemDefaultTheme=void 0;var uD=lD(US()),dD=lD(JS()),cD=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=vD(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(ZS),pD=QS;lD(ew),lD(tw);var fD=lD(iD),mD=lD(aD);const hD=["ownerState"],gD=["variants"],bD=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function vD(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(vD=function(e){return e?n:t})(e)}function xD(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function _D(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const yD=oD.systemDefaultTheme=(0,fD.default)(),SD=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function wD({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function CD(e){return e?(t,n)=>n[e]:null}function ED(e,t,n){let{ownerState:r}=t,o=(0,dD.default)(t,hD);const i="function"==typeof e?e((0,uD.default)({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap((e=>ED(e,(0,uD.default)({ownerState:r},o),n)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,dD.default)(i,gD);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,uD.default)({ownerState:r},o,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)})),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,uD.default)({ownerState:r},o,r)):e.style;t.push(n?_D((0,cD.internal_serializeStyles)(i),n):i)}})),t}return n?_D((0,cD.internal_serializeStyles)(i),n):i}const RD=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,kD=sD({themeId:cI,defaultTheme:nD,rootShouldForwardProp:RD}),LD=["theme"];function AD(e){let{theme:t}=e,n=Ou(e,LD);const r=t[cI];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=qs({},r,{vars:null}):t&&!t.vars&&(o=qs({},t,{vars:null}))),de.jsx(OP,qs({},n,{themeId:r?cI:void 0,theme:o}))}const ID=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},PD={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},MD={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},DD=Cw("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t,dir:n})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===n?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...PD},"&::-moz-range-track":{...PD},"&::-ms-track":{...PD},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...MD},"&::-moz-range-thumb":{...MD},"&::-ms-thumb":{...MD},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}}))),TD=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:d,accessibilityRelatedArgs:c,direction:p="ltr"})=>{const f=dI({translator:c.translator}),h=m({initWidth:e,columnWidth:e,initX:0}),g=n?0:1,b=r&&!d,v=()=>b?h.current.columnWidth-g:"100%",x={left:"rtl"!==p?v():void 0,right:"rtl"===p?v():void 0},_=t=>{h.current={initWidth:e,columnWidth:e,initX:null!=t?t:h.current.initX}};sI((()=>{b&&_()}),[e]);const y=e=>{const t=Math.max(e,ia.PixelsMin);h.current.columnWidth=t,a(t)},S=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:aa.Pixels,pixels:h.current.columnWidth};l(e)}else null==u||u(!1)},w=e=>{const t="rtl"===p?h.current.initWidth+h.current.initX-e.clientX:h.current.initWidth+e.clientX-h.current.initX;y(t)},C=e=>{pA(e),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C),S()},E=e=>{const t="rtl"===p?h.current.initWidth+-h.current.initX-e.touches[0].clientX:h.current.initWidth+e.touches[0].clientX-h.current.initX;y(t)},R=e=>{pA(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",R),S()},k=!r&&s?e=>{if(e.key===ra.Left||e.key===ra.Right){pA(e);const t=5,n=e.key===ra.Left?t:-t,r="rtl"===p?n:-n;y(h.current.columnWidth+r)}else e.key===ra.Space||e.key===ra.Enter?(pA(e),s(e),S()):e.key===ra.Esc&&(pA(e),s(e),y(h.current.initWidth))}:void 0,L=f.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return i.createElement(DD,{style:x,key:t,hoverColor:o,isLastColumn:n,className:oa,"data-testid":oa,onMouseDown:e=>{pA(e),document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),null==u||u(!0),_(e.clientX)},onDoubleClick:()=>{l({type:aa.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(pA(e),document.addEventListener("touchmove",E),document.addEventListener("touchend",R),null==u||u(!0),_(e.touches[0].clientX))},onKeyDown:k,onBlur:s,onFocus:()=>{_()},type:"range",tabIndex:-1,"aria-label":L,"aria-valuemin":ia.PixelsMin,"aria-valuemax":ia.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:p})},OD=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),zD=Cw(aE,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),qD=Cw(OD,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),ND=Cw($R)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),jD=Cw(NE)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),FD=Cw(VR)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),$D=Cw(VR,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:n?"rgba(0, 0, 0, 0.05)":"transparent"}))),BD=Cw("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:n})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:n||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),GD=Cw("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),WD=Cw(SC)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),HD=Cw(mR,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:n})=>({width:16,minWidth:"unset !important",marginRight:n||"rtl"!==t?e.spacing(1.5):0,marginLeft:n||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0}))),VD=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),YD=e=>{const t=e.nextElementSibling;var n;return t?"HR"===t.tagName?YD(t):t:null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[0]},UD=e=>{const t=e.previousElementSibling;if(!t){var n,r;const t=null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n.length;return null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[t-1]}return"HR"===t.tagName?UD(t):t},KD=e=>{var t;const{key:n,currentTarget:r}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:r;if(n===ra.Down||n===ra.Up){const t=e=>n===ra.Down?YD(e):UD(e);e.preventDefault(),e.stopPropagation();let r=t(o);for(;r;){if("true"!==r.ariaDisabled){r.focus();break}r=t(r)}}},XD=(e,t)=>e.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((({onClick:e,...n})=>({...n,...e?{onClick:async n=>{Object.entries(t).forEach((([,e])=>{e(!1)})),await e(n)}}:{}})))})))));let JD={};const ZD=({autoFocus:e,id:t,onClick:r,itemTitle:o,icon:a,enabled:l,subMenus:s,isSubMenu:u,isActive:d,direction:c,isPagination:p})=>{const[f,g]=n(!1),b=m(null),v=h((e=>{e.stopPropagation(),g(!1)}),[g]);return i.createElement(i.Fragment,null,i.createElement($D,{ref:s?b:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),JD={}),null!=s&&s.length&&(g(!0),JD[o]=g))},disabled:!l,autoFocus:e,isSubMenu:!!u,isActive:!!d,onKeyDown:KD},d?i.createElement(BD,{direction:c,isPagination:p}):null,i.createElement(GD,null,i.createElement(HD,{direction:c,isPagination:p},i.createElement(a,null)),i.createElement(WD,{variant:"body2"},o)),null!=s&&s.length?i.createElement(VD,null):null),null!=s&&s.length?i.createElement(tT,{isSubMenu:!0,open:f,anchorEl:b.current,onClose:v,menuGroups:XD(s,JD),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:p}):null)},QD=({menuGroup:e,isSubMenu:t,direction:n,isPagination:r})=>e.map((e=>[[e.groupHeading&&i.createElement(FD,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),e.items.map((e=>i.createElement(ZD,ve({key:e.id},e,{isSubMenu:t,direction:n,isPagination:r}))))].filter(Boolean)])),eT={appear:0,enter:0,exit:0},tT=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:a,isSubMenu:l,direction:s,isPagination:u})=>r.length?i.createElement(ND,ve({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:eT,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},a?{anchorOrigin:a}:{},o?{transformOrigin:o}:{},{dir:s}),(({itemGroups:e,isSubMenu:t,direction:n,isPagination:r})=>e.map(((o,a)=>[QD({menuGroup:o,isSubMenu:t,direction:n,isPagination:r}),a<e.length-1?i.createElement(jD,{"data-testid":"group-divider",variant:"middle"}):void 0])))({itemGroups:r,isSubMenu:l,direction:s,isPagination:u})):null,nT=(e,t)=>e.some((e=>t[e]>0)),rT={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},oT=({open:e,qStateName:t="$",headerData:o,app:i})=>{const[a,l]=n(null),[s,u]=n(rT);return sI((()=>{e||(u(rT),l(null))}),[e]),r((()=>{if(null==i||!i.createSessionObject||!o.isDim||!e)return()=>{};let n,r=!1;const a=()=>{n&&i.destroySessionObject(n)};return(async()=>{try{var e,s,d;const c=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,o),p=await i.createSessionObject(c),f=await p.getLayout(),{qStateCounts:m}=null!==(e=null===(s=f.qListObject)||void 0===s?void 0:s.qDimensionInfo)&&void 0!==e?e:{};n=null===(d=f.qInfo)||void 0===d?void 0:d.qId,r?a():(l(p),m&&u((e=>({canSelectAll:nT(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:nT(["qSelected"],e),canSelectPossible:nT(["qOption"],e),canSelectAlternative:nT(["qAlternative"],e),canSelectExcluded:nT(["qAlternative","qExcluded"],e)}))(m)))}catch(e){console.error(e)}})(),()=>{r=!0,a()}}),[e,i,o,t]),{fieldInstance:a,selectionActionsEnabledStatus:s}},iT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})}))),aT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})}))),lT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})}))),sT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})}))),uT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})}))),dT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})}))),cT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})}))),pT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})}))),fT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})}))),mT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),hT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),gT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),bT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})})));let vT=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const xT="/qListObjectDef",_T=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,focusColumnAdjuster:d,setActiveFieldCallback:c,expandOrCollapseArgs:p})=>{const f=[];if(n[vT.Sorting]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),r(!1)},icon:iT,enabled:a,isActive:!!n&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),r(!1)},icon:sT,enabled:l,isActive:!!n&&"D"===i,autoFocus:!a&&l}]}])}if(e.isCyclic&&c){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos].label,enabled:!0,icon:cT,subMenus:[[{items:e.groupDimensionLabels.map((({label:t,enabled:n},o)=>({id:o+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),r(!1),c(o)},enabled:n,icon:ui,isActive:e.groupDimensionPos===o})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];n[vT.Searching]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:pT,enabled:!0}]}]),n[vT.Selections]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:bT,enabled:!!l,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectListObjectAll(xT))},icon:fT,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectListObjectPossible(xT))},icon:gT,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectListObjectAlternative(xT))},icon:mT,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectListObjectExcluded(xT))},icon:hT,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.clearSelections(xT))},icon:aT,enabled:s.canClearSelections}]}]]}]}]),p&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.expandCallback()},icon:dT,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.collapseCallback()},icon:uT,enabled:!0}]}]),e.length>0&&f.push(...e)}return n[vT.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==d||d(u)},icon:lT,enabled:!0}]}]),f},yT=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:d,selectionRelatedArgs:c,adjustHeaderSizeRelatedArgs:p,expandOrCollapseArgs:f,model:m,direction:g="ltr",isPagination:b})=>{var v;const x=dI({translator:o}),{qLibraryId:_,fieldId:y,headTextAlign:S}=r,w=null==c?void 0:c.app,{fieldInstance:C,selectionActionsEnabledStatus:E}=oT({open:e,headerData:r,app:w,qStateName:null==c?void 0:c.qStateName});let R=null;if(m&&"setActiveField"in m&&void 0!==r.dimensionInfoIndex){const e=r.dimensionInfoIndex;R=async t=>{try{await m.setActiveField("/qHyperCubeDef",e,t)}catch(e){console.error(e)}}}const k=h((()=>{const e=_?{qLibraryId:_,type:"dimension"}:y;if(null!=d&&d.embed){const{embed:t,listboxRef:n}=d;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===g?"right":"left"},sortCriteria:d.sortCriteria,stateName:null==c?void 0:c.qStateName,direction:g})}}),[_,y,d,null==c?void 0:c.qStateName,g]),L=h((e=>{e.stopPropagation(),t(!1)}),[t]);return a.active?i.createElement(zD,{rightAligned:"right"===S,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper"},s?i.createElement(qD,{height:ea,className:ta,"data-testid":ta,isInteractionsActive:null!==(v=a.active)&&void 0!==v&&v},i.createElement(OD,null)):null,i.createElement(tT,{open:e,anchorEl:n.current,onClose:L,menuGroups:_T({headerData:r,translator:x,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:k,interactions:a,fieldInstance:C,selectionActionsEnabledStatus:E,anchorRef:n,focusColumnAdjuster:null==p?void 0:p.focusColumnAdjuster,setActiveFieldCallback:R,expandOrCollapseArgs:f}),direction:g,isPagination:b})):null},ST=e=>e.isDark?{background:e.color,borderColor:Dk.DARK_MODE_BORDER,color:Dk.DARK_MODE_TEXT,disabledColor:Dk.DARK_MODE_DISABLED,iconColor:Dk.DARK_MODE_TEXT}:{background:e.color,borderColor:Dk.BORDER_MEDIUM,color:Dk.TEXT,disabledColor:Dk.DISABLED},wT=Cw(aE,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),CT=Cw(Rk,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),ET=Cw(gE,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),RT=Cw(SC)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),kT=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const l=a((()=>ST(r.background)),[r]);if(!n.active)return null;const s=o?i.createElement(wT,{footerStyle:l},e):null;return t?w.createPortal(e,t):s},LT=f({}),AT=()=>p(LT),IT=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:l,handleChangePage:s,totalRowCount:u,totalColumnCount:d,totalPages:c,keyboard:p,translator:f,theme:m,interactions:h,rect:g,layout:b})=>{const v=(e=>!e.enabled||e.active)(p)?0:-1,x=a((()=>ST(m.background)),[m]),_=o?o.getBoundingClientRect().width:g.width,y=dI({translator:f}),S=a((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:l,handleChangePage:s,totalRowCount:u,totalColumnCount:d,totalPages:c,keyboard:p,translator:y,theme:m,interactions:h,rect:g,layout:b,footerStyle:x,tabIndex:v,width:_})),[t,n,r,o,l,s,u,d,c,p,y,m,h,g,b,x,v,_]);return i.createElement(LT.Provider,{value:S},e)};let PT=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),MT=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});const DT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),TT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),OT=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),zT={FirstPage:TT,PreviousPage:DT,NextPage:VD,LastPage:OT,FirstPageRTL:OT,PreviousPageRTL:VD,NextPageRTL:DT,LastPageRTL:TT},qT=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=AT(),u=n.concat("rtl"===r?"RTL":""),d=zT[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?void 0:()=>{i(t)}},IconComponent:d}},NT=()=>{const{pageInfo:e,width:t,interactions:n}=AT(),r=0===e.page,{IconComponent:o,styledProps:a}=qT({type:PT.FirstPage,disabledCondition:r,pageNumber:0});return t<=MT.FirstPage?null:i.createElement(ET,ve({},a,{disabled:!n.active}),i.createElement(o,{height:ea}))},jT=(e,t,n=!1)=>{n&&e.key===ra.Tab&&!e.shiftKey&&(pA(e),((e,t,n)=>{var r,o,i,a;const l=null!==(r=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==r?r:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,n)})(e.target,t,!1))},FT=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o,interactions:a}=AT(),l=e.page>=n-1,{IconComponent:s,styledProps:u}=qT({type:PT.LastPage,disabledCondition:l,pageNumber:n-1}),d=t.enabled?e=>{jT(e,t,r)}:void 0;return o<=MT.LastPage?null:i.createElement(ET,ve({},u,{onKeyDown:d,disabled:!a.active}),i.createElement(s,{height:ea}))},$T=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o,interactions:a}=AT(),l=e.page>=n-1,{IconComponent:s,styledProps:u}=qT({type:PT.NextPage,disabledCondition:l,pageNumber:e.page+1}),d=!(o>MT.FirstPage&&o>MT.LastPage)&&t.enabled?e=>{jT(e,t,r)}:void 0;return i.createElement(ET,ve({},u,{onKeyDown:d,disabled:!a.active}),i.createElement(s,{height:ea}))},BT=()=>{const{pageInfo:e,interactions:t}=AT(),n=0===e.page,{IconComponent:r,styledProps:o}=qT({type:PT.PreviousPage,disabledCondition:n,pageNumber:e.page-1});return i.createElement(ET,ve({},o,{disabled:!t.active}),i.createElement(r,{height:ea}))},GT=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=AT(),{page:o,rowsPerPage:a}=n;if(t<=MT.DisplayedRowsLabel)return null;const l=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*a+1} - ${Math.min((o+1)*a,r)}`,r.toString()]);return i.createElement(RT,{variant:"caption",dir:"ltr"},l)},WT=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:a,translator:l,tabIndex:s,interactions:u}=AT(),d=o.qInfo.qId,c=l.get(`NebulaTableUtils.Pagination.${e}`),p=`${e}-dropdown`,f=`${p}-label-${d}`,m={tabIndex:s,id:`${p}-${d}`,"data-testid":p,"aria-labelledby":f};return i.createElement(i.Fragment,null,i.createElement(RT,{variant:"caption",id:f},c,":"),i.createElement(CT,{footerStyle:a,size:"small",native:!0,value:t,onChange:r,inputProps:m,disabled:!u.active},n))},HT=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:a}=AT();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>MT.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const l=i.createElement(i.Fragment,null,t.rowsPerPageOptions.map((e=>i.createElement("option",{key:e,value:e},e))));return i.createElement(WT,{name:"RowsPerPage",value:t.rowsPerPage,options:l,handleChange:e=>{null==a||a(+e.target.value)}})},VT=1e3,YT="…",UT=({totalPages:e,page:t})=>{const n=Math.min(e,VT),r=n<e&&t>500,o=r?Math.min(500+t,e):n,a=r?Math.max(0,o-VT):0,l=Array.from(Array(n).keys()).map((e=>{const t=e+a;return i.createElement("option",{key:t,value:t},t+1)}));return a>0&&l.unshift(i.createElement("option",{key:"startMoreOptions",value:YT,disabled:!0},YT)),o<e-1&&l.push(i.createElement("option",{key:"endMoreOptions",value:YT,disabled:!0},YT)),i.createElement(i.Fragment,null,l)},KT=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=AT(),{page:o}=e;if(t<=MT.SelectPage)return null;const a=i.createElement(UT,{totalPages:n,page:o});return i.createElement(WT,{name:"SelectPage",value:o,options:a,handleChange:e=>{r(+e.target.value)}})};var XT=_((e=>i.createElement(IT,e,i.createElement(HT,null),i.createElement(KT,null),i.createElement(GT,null),i.createElement(NT,null),i.createElement(BT,null),i.createElement($T,null),i.createElement(FT,null))));const JT=e=>i.createElement(kT,e,i.createElement(XT,e)),ZT=f({}),QT=()=>p(ZT),eO=({rect:e,pageInfo:t,qPivotDataPages:n,updatePageInfo:r,direction:o,children:i})=>{const l=a((()=>({rect:e,pageInfo:t,qPivotDataPages:n,updatePageInfo:r,direction:o})),[e,t,n,r,o]);return de.jsx(ZT.Provider,{value:l,children:i})},tO=f({}),nO=()=>p(tO),rO=({app:e,model:t,theme:n,embed:r,keyboard:o,translator:i,interactions:l,env:s,children:u})=>{const d=a((()=>({model:t,app:e,interactions:l,embed:r,theme:n,keyboard:o,env:s,translator:i})),[e,l,t,r,n,o,s,i]);return de.jsx(tO.Provider,{value:d,children:u})},oO=f({}),iO=()=>p(oO),aO=({children:e,...t})=>de.jsx(oO.Provider,{value:t,children:e}),lO=()=>{const{text:e,fontFamily:t,fontSize:n,justifyContent:r,alignItems:o,height:i}=(()=>{var e;const{theme:t,translator:n}=nO(),{layoutService:r}=iO(),o=null!==(e=t.getStyle("","","fontFamily"))&&void 0!==e?e:SA;return r.hasData?r.hasLimitedData?{text:n.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:n.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:de.jsx("div",{style:{display:"flex",justifyContent:r,alignItems:o,width:"100%",height:i},children:de.jsx("span",{style:{...PA,fontFamily:t,fontSize:n,fontStyle:"italic",color:"#7b7a78"},children:e})})},sO="/qHyperCubeDef",uO=-1,dO="PSEUDO-DIM",cO=[];for(let e=0;e<256;++e)cO.push((e+256).toString(16).slice(1));let pO;const fO=new Uint8Array(16);var mO={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function hO(e,t,n){var r,o,i,a;if(mO.randomUUID&&!e)return mO.randomUUID();const l=null!==(r=null!==(o=(e=e||{}).random)&&void 0!==o?o:null===(i=(a=e).rng)||void 0===i?void 0:i.call(a))&&void 0!==r?r:function(){if(!pO){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");pO=crypto.getRandomValues.bind(crypto)}return pO(fO)}();if(l.length<16)throw new Error("Random bytes length must be >= 16");return l[6]=15&l[6]|64,l[8]=63&l[8]|128,function(e,t=0){return(cO[e[t+0]]+cO[e[t+1]]+cO[e[t+2]]+cO[e[t+3]]+"-"+cO[e[t+4]]+cO[e[t+5]]+"-"+cO[e[t+6]]+cO[e[t+7]]+"-"+cO[e[t+8]]+cO[e[t+9]]+"-"+cO[e[t+10]]+cO[e[t+11]]+cO[e[t+12]]+cO[e[t+13]]+cO[e[t+14]]+cO[e[t+15]]).toLowerCase()}(l)}const gO=()=>{var e,t,n;return null!==(e=null===(t=crypto)||void 0===t||null===(n=t.randomUUID)||void 0===n?void 0:n.call(t))&&void 0!==e?e:hO()},bO=e=>e===uO?dO:(({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:gO()})(e),vO=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{n&&(n.canBeResized=!0,n.colIdx=n.colIdx||r,n.dimensionInfoIndex===uO?n.columnWidthLocation=ws.Measures:n.isLeftDimension?n.columnWidthLocation=ws.Dimension:t.at(-1)===uO?n.columnWidthLocation=ws.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=ws.Pivot))},xO=e=>"string"==typeof e?e.replace(/^=+/,"").trim():e,_O=(e,t,n,r,o)=>{var i;const a=bO(n),l=e.getDimensionInfoIndex(n),s=e.isLeftDimension(l);return n===uO?{id:a,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,isCyclic:!1,groupDimensionPos:0,groupDimensionLabels:[],headTextAlign:"left",dimensionInfoIndex:l,canBeResized:!1,isLeftDimension:s,isLastDimension:r,columnWidthLocation:ws.Measures,isPivot:!0,qEffectiveDimensionName:void 0}:{id:a,colIdx:0,label:n.qFallbackTitle,qReverseSort:n.qReverseSort,sortDirection:n.qSortIndicator&&"N"!==n.qSortIndicator?n.qSortIndicator:"A",qLibraryId:n.qLibraryId,fieldId:n.qGroupFieldDefs[n.qGroupPos],isLocked:null!==(i=n.qLocked)&&void 0!==i&&i,columnWidth:n.columnWidth,qApprMaxGlyphCount:n.qApprMaxGlyphCount,isDim:!0,isCyclic:n.qGrouping===ua.Cyclic,groupDimensionPos:n.qGroupPos,groupDimensionLabels:n.qGroupFallbackTitles.map(((e,t)=>({label:e,enabled:!o.has(xO(n.qGroupFieldDefs[t]))}))),headTextAlign:"left",dimensionInfoIndex:l,canBeResized:!1,isLeftDimension:s,isLastDimension:r,columnWidthLocation:ws.Dimension,isPivot:!0,isSortedByFirstMeasure:t.isSortedByFirstMeasure,qEffectiveDimensionName:n.qEffectiveDimensionName}},yO=({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r})=>{let o=r;var i;n.length>0&&(o=(i=r).at(-1)===uO?i.slice(0,-1):i);const a=o.length+(n.length?1:0),l=Math.max(1,n.length),s=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(a,l),u=(e=>{const t=new Set;return e.forEach((e=>{e!==uO&&t.add(xO(e.qGroupFieldDefs[e.qGroupPos]))})),t})([...n,...o]);return n.forEach(((n,r,o)=>{const i=r===o.length-1;s[a-1][r]=_O(e,t,n,i,u)})),o.forEach(((n,r,o)=>{const i=r===o.length-1;s[r][l-1]=_O(e,t,n,i,u)})),s},SO=(e,t,n,r)=>{var o,i;const a=((e,t,n,r)=>{let o;var i;return o=0===n.length||n.includes(uO)?yO({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(yO({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r})),e.isIndentModeEnabled&&o[o.length-1].length>1&&(o[o.length-1]=[o.at(-1),...new Array(o[0]?o[0].length-1:0).fill(null)]),o.length&&(null===(i=o.at(-1))||void 0===i||i.forEach(((t,n)=>{Array.isArray(t)?t.forEach(((t,n)=>{vO({layoutService:e,visibleLeftDimensionInfos:r,cell:t,colIdx:n})})):vO({layoutService:e,visibleLeftDimensionInfos:r,cell:t,colIdx:n})}))),o})(e,t,n,r);return{data:a,size:{x:null!==(o=null===(i=a[0])||void 0===i?void 0:i.length)&&void 0!==o?o:0,y:a.length}}};function wO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function CO(e,t,n){return t=LO(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,IO()?Reflect.construct(t,n||[],LO(e).constructor):t.apply(e,n))}function EO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,DO(r.key),r)}}function kO(e,t,n){return t&&RO(e.prototype,t),n&&RO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function LO(e){return LO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},LO(e)}function AO(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&PO(e,t)}function IO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(IO=function(){return!!e})()}function PO(e,t){return PO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},PO(e,t)}function MO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return wO(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wO(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DO(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function TO(e){return TO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},TO(e)}var OO={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var n,r=e.indexOf("="),o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,n){return{key:zO(e),value:zO(t),useEqualSign:n}}(n,o,i))}})),t}};function zO(e){try{return decodeURIComponent(e)}catch(t){return e}}function qO(e){if(!(this instanceof qO))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return OO.fromSearchString(t.search)}}})}function NO(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}qO.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},qO.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=NO((t=e[r]).key),t.value?n+="=".concat(NO(t.value)):n+=t.useEqualSign?"=":"";return n};var jO,FO=function(){return kO((function e(t){EO(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}),[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}])}(),$O=function(){return kO((function e(){EO(this,e)}),[{key:"decode",value:function(e){for(var t,n="",r=new FO(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}])}(),BO=function(e){return e>=0&&e<=1114111},GO=function(e){return e.match(/[\s]/)},WO=function(e){function t(){return EO(this,t),CO(this,t,arguments)}return AO(t,e),kO(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,n=0;n<5&&(null!=(r=e.next())&&!GO(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return BO(a)?String.fromCharCode(a):"�"}}])}($O),HO=function(){function e(t,n){EO(this,e),this._key=t,this._value=n}return kO(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}}])}(),VO=function(){function e(){EO(this,e)}return kO(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,n,r){var o,i;if(t.length===n)return i=this._value,this.setValue(r),i;var a=t.charAt(n);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,n+1,r)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return HO.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return HO.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||HO.newInstanceIfNeeded(e,t,this._value)}}])}(),YO=function(){return kO((function e(){EO(this,e),this.clear()}),[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new VO);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}])}(),UO=function(){var e,t,n,r=[],o=[],i=new YO;for(e in r["&quot"]="34",r["&amp"]="38",r["&lt"]="60",r["&gt"]="62",r["&nbsp"]="160",r["&iexcl"]="161",r["&cent"]="162",r["&pound"]="163",r["&curren"]="164",r["&yen"]="165",r["&brvbar"]="166",r["&sect"]="167",r["&uml"]="168",r["&copy"]="169",r["&ordf"]="170",r["&laquo"]="171",r["&not"]="172",r["&shy"]="173",r["&reg"]="174",r["&macr"]="175",r["&deg"]="176",r["&plusmn"]="177",r["&sup2"]="178",r["&sup3"]="179",r["&acute"]="180",r["&micro"]="181",r["&para"]="182",r["&middot"]="183",r["&cedil"]="184",r["&sup1"]="185",r["&ordm"]="186",r["&raquo"]="187",r["&frac14"]="188",r["&frac12"]="189",r["&frac34"]="190",r["&iquest"]="191",r["&Agrave"]="192",r["&Aacute"]="193",r["&Acirc"]="194",r["&Atilde"]="195",r["&Auml"]="196",r["&Aring"]="197",r["&AElig"]="198",r["&Ccedil"]="199",r["&Egrave"]="200",r["&Eacute"]="201",r["&Ecirc"]="202",r["&Euml"]="203",r["&Igrave"]="204",r["&Iacute"]="205",r["&Icirc"]="206",r["&Iuml"]="207",r["&ETH"]="208",r["&Ntilde"]="209",r["&Ograve"]="210",r["&Oacute"]="211",r["&Ocirc"]="212",r["&Otilde"]="213",r["&Ouml"]="214",r["&times"]="215",r["&Oslash"]="216",r["&Ugrave"]="217",r["&Uacute"]="218",r["&Ucirc"]="219",r["&Uuml"]="220",r["&Yacute"]="221",r["&THORN"]="222",r["&szlig"]="223",r["&agrave"]="224",r["&aacute"]="225",r["&acirc"]="226",r["&atilde"]="227",r["&auml"]="228",r["&aring"]="229",r["&aelig"]="230",r["&ccedil"]="231",r["&egrave"]="232",r["&eacute"]="233",r["&ecirc"]="234",r["&euml"]="235",r["&igrave"]="236",r["&iacute"]="237",r["&icirc"]="238",r["&iuml"]="239",r["&eth"]="240",r["&ntilde"]="241",r["&ograve"]="242",r["&oacute"]="243",r["&ocirc"]="244",r["&otilde"]="245",r["&ouml"]="246",r["&divide"]="247",r["&oslash"]="248",r["&ugrave"]="249",r["&uacute"]="250",r["&ucirc"]="251",r["&uuml"]="252",r["&yacute"]="253",r["&thorn"]="254",r["&yuml"]="255",r["&OElig"]="338",r["&oelig"]="339",r["&Scaron"]="352",r["&scaron"]="353",r["&Yuml"]="376",r["&fnof"]="402",r["&circ"]="710",r["&tilde"]="732",r["&Alpha"]="913",r["&Beta"]="914",r["&Gamma"]="915",r["&Delta"]="916",r["&Epsilon"]="917",r["&Zeta"]="918",r["&Eta"]="919",r["&Theta"]="920",r["&Iota"]="921",r["&Kappa"]="922",r["&Lambda"]="923",r["&Mu"]="924",r["&Nu"]="925",r["&Xi"]="926",r["&Omicron"]="927",r["&Pi"]="928",r["&Rho"]="929",r["&Sigma"]="931",r["&Tau"]="932",r["&Upsilon"]="933",r["&Phi"]="934",r["&Chi"]="935",r["&Psi"]="936",r["&Omega"]="937",r["&alpha"]="945",r["&beta"]="946",r["&gamma"]="947",r["&delta"]="948",r["&epsilon"]="949",r["&zeta"]="950",r["&eta"]="951",r["&theta"]="952",r["&iota"]="953",r["&kappa"]="954",r["&lambda"]="955",r["&mu"]="956",r["&nu"]="957",r["&xi"]="958",r["&omicron"]="959",r["&pi"]="960",r["&rho"]="961",r["&sigmaf"]="962",r["&sigma"]="963",r["&tau"]="964",r["&upsilon"]="965",r["&phi"]="966",r["&chi"]="967",r["&psi"]="968",r["&omega"]="969",r["&thetasym"]="977",r["&upsih"]="978",r["&piv"]="982",r["&ensp"]="8194",r["&emsp"]="8195",r["&thinsp"]="8201",r["&zwnj"]="8204",r["&zwj"]="8205",r["&lrm"]="8206",r["&rlm"]="8207",r["&ndash"]="8211",r["&mdash"]="8212",r["&lsquo"]="8216",r["&rsquo"]="8217",r["&sbquo"]="8218",r["&ldquo"]="8220",r["&rdquo"]="8221",r["&bdquo"]="8222",r["&dagger"]="8224",r["&Dagger"]="8225",r["&bull"]="8226",r["&hellip"]="8230",r["&permil"]="8240",r["&prime"]="8242",r["&Prime"]="8243",r["&lsaquo"]="8249",r["&rsaquo"]="8250",r["&oline"]="8254",r["&frasl"]="8260",r["&euro"]="8364",r["&image"]="8365",r["&weierp"]="8472",r["&real"]="8476",r["&trade"]="8482",r["&alefsym"]="8501",r["&larr"]="8592",r["&uarr"]="8593",r["&rarr"]="8594",r["&darr"]="8595",r["&harr"]="8596",r["&crarr"]="8629",r["&lArr"]="8656",r["&uArr"]="8657",r["&rArr"]="8658",r["&dArr"]="8659",r["&hArr"]="8660",r["&forall"]="8704",r["&part"]="8706",r["&exist"]="8707",r["&empty"]="8709",r["&nabla"]="8711",r["&isin"]="8712",r["&notin"]="8713",r["&ni"]="8715",r["&prod"]="8719",r["&sum"]="8721",r["&minus"]="8722",r["&lowast"]="8727",r["&radic"]="8730",r["&prop"]="8733",r["&infin"]="8734",r["&ang"]="8736",r["&and"]="8743",r["&or"]="8744",r["&cap"]="8745",r["&cup"]="8746",r["&int"]="8747",r["&there4"]="8756",r["&sim"]="8764",r["&cong"]="8773",r["&asymp"]="8776",r["&ne"]="8800",r["&equiv"]="8801",r["&le"]="8804",r["&ge"]="8805",r["&sub"]="8834",r["&sup"]="8835",r["&nsub"]="8836",r["&sube"]="8838",r["&supe"]="8839",r["&oplus"]="8853",r["&otimes"]="8855",r["&perp"]="8869",r["&sdot"]="8901",r["&lceil"]="8968",r["&rceil"]="8969",r["&lfloor"]="8970",r["&rfloor"]="8971",r["&lang"]="9001",r["&rang"]="9002",r["&loz"]="9674",r["&spades"]="9824",r["&clubs"]="9827",r["&hearts"]="9829",r["&diams"]="9830",r)"function"!=typeof r[e]&&r.hasOwnProperty(e)&&(o[r[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(n=o[t].toLowerCase().substr(1),i.put(n,String.fromCharCode(t)));return i}(),KO=function(e){function t(){return EO(this,t),CO(this,t,arguments)}return AO(t,e),kO(t,[{key:"decodeCharacter",value:function(e){var t;e.mark();var n=e.next();if(null==n||"&"!==n)return e.reset(),null;var r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(null!=(t=this._getNumericEntity(e)))return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,n,r,o="";for(t=Math.min(e.remainder().length,UO.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=UO.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,16);return!Number.isNaN(+r)&&BO(r)?String.fromCharCode(r):null}},{key:"_parseNumber",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,10);return!Number.isNaN(+r)&&BO(r)?String.fromCharCode(r):null}}])}($O),XO=function(e){function t(){return EO(this,t),CO(this,t,arguments)}return AO(t,e),kO(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",n=0;n<2;n++)null!=(r=e.nextHex())&&(t+=r);return 2===t.length&&(o=parseInt(t,16),BO(o))?String.fromCharCode(o):(e.reset(),null)}}])}($O),JO=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(jO=document.createElement("div"));var ZO=Array.prototype.indexOf,QO=[",",".","_"," "],ez=[",",".","-","_"," "],tz={width:["%"],height:["%"]},nz={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},rz={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":nz.image,"background-color":nz.color,"border-color":nz.color,"border-image":nz.image,color:nz.color,icon:nz.image,"list-style-image":nz.image,"outline-color":nz.color},oz={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function iz(e,t,n){var r;if(t){if(ZO)return ZO.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function az(e){if(null==e)return"";var t,n=document.createTextNode(e);return jO.appendChild(n),t=jO.innerHTML,jO.removeChild(n),t}function lz(e,t,n){var r,o,i,a,l,s,u,d,c;for(e=uz(e).toLowerCase(),t=uz(t),i=0;i<oz.attr_name.length;i++)if(e.match(oz.attr_name[i]))throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<oz.attr_val.length;i++)if(t.toLowerCase().match(oz.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=tz[e])||(r=ez),o="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),d=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&iz(u,r)<0?(c=d.toString(16),o+="&#x".concat(c,";")):o+=u;return n||(o+='"'),o}function sz(e,t,n){var r,o,i,a,l,s,u,d,c,p;if(e=uz(e).toLowerCase(),t=uz(t),iz(e,oz.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<oz.css_val.length;r++)if(t.toLowerCase().indexOf(oz.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=rz[e])||(o=nz.default),i="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),d=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&iz(u,o)<0?(c=d.toString(16),p="000000".substr(c.length),i+="\\".concat(p).concat(c)):i+=u;return i}function uz(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new KO,new XO,new WO];!a;){r=n;for(var s=0;s<l.length;s++)(i=l[s].decode(n))!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}for(var dz=[],cz=0;cz<255;cz++)dz[cz]=cz>=48&&cz<=57||cz>=65&&cz<=90||cz>=97&&cz<=122?null:cz.toString(16);var pz=function(e){return az(e.unsafe)},fz=function(e){var t,n=[],r=[],o={},i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=sz(t,n[t],!0),i+=sz(t,n[t],!0),o[t]=r[t]);return e.map?o:i},mz=function(e){var t=[],n=[],r={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(n[i]=lz(i,t[i],!0),o+=lz(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function hz(e,t){throw new Error(t)}var gz={canonicalize:uz,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===TO(arguments[0])?function(){for(var e,t,n,r=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r===(n=e[t]))continue;void 0!==n&&(r[t]=n)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?pz(e):"css"===e.context?(null!=e.map&&"object"!==TO(e.map)&&hz(this,"Invalid parameter type"),fz(e)):"attr"===e.context?(null!=e.map&&"object"!==TO(e.map)&&hz(this,"Invalid parameter type"),mz(e)):void hz(this,"Invalid parameter type")},encodeForAttr:lz,encodeForAttr2:function(e){return lz("nonsens",e,!0)},encodeForCSS:sz,encodeForHref:function(e){uz(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new qO(e),n=qO.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+qO.encodeSearchParams(r)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var n,r,o,i,a,l;for(t||(t=QO),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),iz(o,t)>=0||null==dz[i]?l+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),l+="\\x".concat(a).concat(r.toUpperCase())):(a="0000".substr(r.length),l+="\\u".concat(a).concat(r.toUpperCase())));return l},encodeForHTML:az,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=uz(t).toLowerCase():hz(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':""},isSafeDataURL:function(e,t){var n=null!=t?t:{},r=n.maxByteSizeSvg,o=void 0===r?5e5:r,i=n.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,n=MO(null!==(t=JO.exec(e.trim()))&&void 0!==t?t:[],4),r=n[1];return{encoding:n[2],data:n[3],mimeType:null==r?void 0:r.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,d=l.data;if(!d)return!0;var c=function(e,t,n){var r={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(n)],r).size}catch(e){return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0}(s,u,d);return"image/svg+xml"===s?c<=o:c<=a},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch(e){return!1}}(e))return!1;var t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;var n=function(e){for(var t=e,n="";t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");var r=n.lastIndexOf("/");-1!==r&&(n=n.slice(0,r))}else if("/.."===t){t="/";var o=n.lastIndexOf("/");-1!==o&&(n=n.slice(0,o))}else if("."===t||".."===t)t="";else{var i=t.match(/^\/?[^/]*/),a=i?i[0]:"";t=t.slice(a.length),n+=a}return n}(t);return""!==n&&"/"!==n&&n}};const bz=(e,t)=>{var n;return null===(n=t.qAttrExps)||void 0===n||null===(n=n.qValues)||void 0===n?void 0:n[e]},vz=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},xz=({text:e,url:t,imageSize:n,imagePosition:r,labelStructure:o,imageBox:i,direction:a})=>r&&t&&!t.toLowerCase().includes("javascript:")&&gz.isSafeDataURL(t)?{type:gs.Image,url:t,text:e,imageSize:n,resolvedImagePosition:vz(r,a),labelStructure:o,imageBox:i}:{type:gs.Text,url:void 0,text:e,labelStructure:o},_z=(e,t,n,r)=>{if(!e.qMiniChart||null==t||!t.miniChart||!n)return{type:gs.Text,text:r};const{minY:o,maxY:i}=((e,t,n)=>{var r,o;const i="global"===(null===(r=t.yAxis)||void 0===r?void 0:r.scale),a="zeroCenter"===(null===(o=t.yAxis)||void 0===o?void 0:o.position),l=i?n.qYMin:e.qMiniChart.qMin,s=i?n.qYMax:e.qMiniChart.qMax;if(a){const e=Math.max(Math.abs(l),Math.abs(s));return{minY:-e,maxY:e}}return(e=>{var t,n;return"zeroBaseline"===(null===(t=e.yAxis)||void 0===t?void 0:t.position)||"bars"===e.type&&"auto"===(null===(n=e.yAxis)||void 0===n?void 0:n.position)})(t)?{minY:Math.min(0,l),maxY:Math.max(0,s)}:{minY:l,maxY:s}})(e,t.miniChart,n),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:gs.MiniChart,text:r,miniChart:a}},yz=(e,t,n)=>{var r;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r?void 0:r[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==n?void 0:n.urlPosition)===bs.Attribute||null==n?void 0:n.urlLabel},Sz=({labelStructure:e,text:t,url:n})=>{try{if(!n)throw Error("Invalid url");return{type:gs.Link,url:gz.encodeForHref(n),text:t,labelStructure:e}}catch(n){return{type:gs.Text,url:void 0,text:t,labelStructure:e}}},wz=({cell:e,representationProperties:t,attrExprInfoIndex:n,env:r,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:l=e=>e.qText,direction:s,enabledFeatures:u})=>{var d,c,p,f,m,h;const g=vs(t),b=l(e);return g!==gs.Image||!u[gs.Image]||null!==(d=r.anything.sense)&&void 0!==d&&null!==(c=d.isUnsupportedFeature)&&void 0!==c&&c.call(d,"tableImages")?g===gs.Link?((e,t,n,r,o)=>{const{urlPosition:i}=null!=t?t:{};if(i===bs.Attribute){var a;const i=yz(null!==(a=n.url)&&void 0!==a?a:-1,e,t);return Sz({labelStructure:r,text:o||i||"",url:i})}if(i===bs.Dimension){var l,s;const i=yz(null!==(l=n.urlLabel)&&void 0!==l?l:-1,e,t)||o;return r&&(r.maskedValue=i),Sz({text:i,labelStructure:r,url:null!==(s=null==r?void 0:r.originalValue)&&void 0!==s?s:o})}return{type:gs.Text,url:void 0,text:o,labelStructure:r}})(e,t,n,a,b):g!==gs.Indicator||!u[gs.Indicator]||null!==(p=r.anything.sense)&&void 0!==p&&null!==(f=p.isUnsupportedFeature)&&void 0!==f&&f.call(p,"tableIndicators")?g!==gs.MiniChart||!u[gs.MiniChart]||null!==(m=r.anything.sense)&&void 0!==m&&null!==(h=m.isUnsupportedFeature)&&void 0!==h&&h.call(m,"qMiniChartDef")?{type:gs.Text,url:void 0,text:b,labelStructure:a}:_z(e,t,i,b):((e,t,n)=>{const{indicator:r}=null!=e?e:{};return{type:gs.Indicator,url:void 0,text:n,indicator:{applySegmentColors:null==r?void 0:r.applySegmentColors,position:null==r?void 0:r.position,showTextValues:null==r?void 0:r.showTextValues},indicatorConditionalColoring:t}})(t,o,b):((e,t,n,r,o,i)=>{const{imageSize:a,imagePosition:l,imageSetting:s,imageLabel:u,imageBox:d}=null!=t?t:{};if("url"===s){var c,p;const t=null===(c=bz(null!==(p=n.imageUrl)&&void 0!==p?p:-1,e))||void 0===c?void 0:c.qText;return i&&(i.maskedValue=null!=t?t:""),xz({text:r,url:t,imageSize:a,imagePosition:l,labelStructure:i,imageBox:d,direction:o})}if("label"===s){var f,m,h;const t=i?i.originalValue:r;if(-1===n.imageLabel)return xz({text:u||t||"",url:t,imageSize:a,imagePosition:l,labelStructure:i,imageBox:d,direction:o});const s=null!==(f=null===(m=bz(null!==(h=n.imageLabel)&&void 0!==h?h:-1,e))||void 0===m?void 0:m.qText)&&void 0!==f?f:r;return xz({text:s,url:t,imageSize:a,imagePosition:l,labelStructure:i,imageBox:d,direction:o})}return{type:gs.Text,url:void 0,labelStructure:i,text:r}})(e,t,n,b,s,a)},Cz=(e,t)=>{var n,r,o,i;const a=t.qAttrExps,l=null==a||null===(n=a.qValues)||void 0===n||null===(n=n[null!==(r=null==e?void 0:e.cellForegroundColor)&&void 0!==r?r:-1])||void 0===n?void 0:n.qText,s=null==a||null===(o=a.qValues)||void 0===o||null===(o=o[null!==(i=null==e?void 0:e.cellBackgroundColor)&&void 0!==i?i:-1])||void 0===o?void 0:o.qText,u=s?cA(s):null,d=l?cA(l):null,c=((e,t)=>e||!t?null:lA(t))(d,u);return{color:null!=c?c:d,background:u}},Ez=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:Ez(e,t)),e),Rz=(e,t,n,r,o,i)=>{const a=o?i.rowsPerPage-n:CA-r;let l=e.qUp+e.qDown;if(o&&0===n){const n=(t+e.qUp)%i.rowsPerPage;l=e.qDown+n}return Math.min(a,Ez(l,e))},kz=({node:e,parent:t,root:n,x:r,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:d=!1,indentModeFeatures:c,indentLevel:p,labelStructure:f,env:m,pageInfo:h,direction:g="ltr"})=>{var b,v;const x=(!d||!u)&&"P"===e.qType,_=((e,t,n)=>{if(e!==uO){if(t){const t=vs(e.representation);return t===gs.Link||null!=n&&n.isImagesSupported&&t===gs.Image?e.representation:{type:gs.Text}}return e.representation}})(l,d,c),y=(({node:e,isLeftColumn:t,isIndentModeEnabled:n,labelStructure:r,representationType:o,parentOrRootOriginalValue:i})=>{let a=e.qText;if(t&&n&&r){const{originalValue:t,delimeter:n,suffix:l}=r;a=o===gs.Link?"P"===e.qType?i:t:`${t} ${!l||!t&&l?"":n} ${l}`.trim()}return a})({node:e,isLeftColumn:u,isIndentModeEnabled:d,labelStructure:f,representationType:vs(_),parentOrRootOriginalValue:null!==(b=null===(v=t||n)||void 0===v||null===(v=v.representation)||void 0===v||null===(v=v.labelStructure)||void 0===v?void 0:v.originalValue)&&void 0!==b?b:""}),S=wz({cell:{...e,qText:y},representationProperties:_,attrExprInfoIndex:s,env:m,labelStructure:f,direction:g,enabledFeatures:{[gs.Image]:m.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[gs.Indicator]:m.flags.isEnabled("CLIENT_VNA-118_PIVOT_INDICATOR")}}),w={id:gO(),ref:e,x:r,y:o,pageX:r,pageY:i,mainAxisPageCoord:u?i:r,isLeftColumn:u,parent:t,root:n,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:Rz(e,o,i,r,u,h),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:"T"===e.qType||!(null==t||!t.isTotal),isEmpty:"E"===e.qType||-4===e.qElemNo,isNull:"U"===e.qType,isPseudoDimension:x,expressionColor:Cz(s,e),selectionCellType:u?"L":"T",dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:x?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:S,...void 0!==p&&{indentLevel:p}};return t&&(t.children[w.mainAxisPageCoord-t.mainAxisPageCoord]=w),w},Lz=(e,t,n,r,o,i,a,l,s)=>{const{isIndentModeEnabled:u,indentModeFeatures:d}=o;if(!t.length)return e;let c=0;return function t(p,f,m,h=0,g=-1){e[h]||(e[h]={}),u&&g++;const b=o.leftDimensionInfoIndexes.indexOf(uO);m.forEach(((m,v)=>{var x,_;const y={originalValue:null!==(x=m.qText)&&void 0!==x?x:"",maskedValue:"",delimeter:"-",suffix:""};c+=0===v?0:1;const S=n.qTop-r.page*r.rowsPerPage,w=Math.max(0,S+c-m.qUp),C=n.qTop+c-m.qUp;if(u){var E,R;if(o.hasPseudoDimOnLeft&&g<=b)if(y.originalValue=null!==(E=m.qText)&&void 0!==E?E:"",y.maskedValue=null!==(R=m.qText)&&void 0!==R?R:"","N"===m.qType||"U"===m.qType||"T"===m.qType)"U"===m.qType&&(y.originalValue=o.getNullValueText()),g<b&&(y.suffix=o.visibleMeasureInfo[0].qFallbackTitle);else if("P"===m.qType){var k,L,A,I,P,M,D,T;y.originalValue=null!==(k=null===(L=f||p)||void 0===L||null===(L=L.representation.labelStructure)||void 0===L?void 0:L.originalValue)&&void 0!==k?k:"",y.maskedValue=null!==(A=null===(I=f||p)||void 0===I||null===(I=I.representation.labelStructure)||void 0===I?void 0:I.originalValue)&&void 0!==A?A:"",y.suffix=null!==(P=m.qText)&&void 0!==P?P:"";const e=m.qSubNodes;m={...null===(M=f||p)||void 0===M?void 0:M.ref,...m.qText?{qText:m.qText}:{},qSubNodes:e},g=null!==(D=null===(T=f||p)||void 0===T?void 0:T.indentLevel)&&void 0!==D?D:0}"U"===m.qType&&(y.originalValue=o.getNullValueText())}let O=h;u&&(O=b>=1&&g>=b?g+1:g,0===g&&0===b&&0===m.qSubNodes.length&&(O=0));const z=null===(_=e.at(h))||void 0===_?void 0:_[w],q=u&&void 0===(null==z?void 0:z.ref.qText)||!z?kz({node:m,parent:f,root:p,x:O,y:C,pageY:w,layoutService:o,dimensionInfo:i[O],attrExprInfoIndex:a[O],isLeftColumn:!0,...u&&{isIndentModeEnabled:u,indentModeFeatures:d,indentLevel:g},env:l,pageInfo:r,labelStructure:y,direction:s}):e[h][w];if(e[h][w]=q,m.qSubNodes.length){const e=u?0:h+1;t(p||q,q,m.qSubNodes,e,g)}}))}(null,null,t,0,-1),e},Az=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,n,r)=>{const o=r.at(n+1);e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},Iz=(e,t)=>{const n=e[0],r=n?Object.values(n):[],o=null!=t&&t.isIndentModeEnabled&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=null==n?void 0:n[o],a=r.at(-1);return null!=i&&i.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:null!=a&&a.isTotal?a.mainAxisPageCoord-1:-1},Pz=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a,direction:l})=>{const{qLeft:s,qArea:u}=t;if(!s.length)return e;const d=Lz(e.grid,s,u,n,r,o,i,a,l);Az(d,n.rowsOnCurrentPage);const c=Iz(d,r);return{...e,grid:d,columnCount:d.length,totalDividerIndex:c}},Mz=({qArea:e,prevData:t,pivotValuePoints:n,pageInfo:r})=>{const o=[...t];return n.forEach(((t,n)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-r.page*r.rowsPerPage+n,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u="U"===t.qType;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:gO(),ref:t,isNull:u}}))})),o},Dz=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:o}=t;return null!=r&&r.length?Mz({qArea:o,prevData:e,pivotValuePoints:r,pageInfo:n}):e},Tz=(e,t,n,r,o,i,a,l,s,u)=>{const{isIndentModeEnabled:d,indentModeFeatures:c}=r;if(!t.length)return e;let p=0;!function t(a,f,m,h=0){e[h]||(e[h]={}),m.forEach(((m,g)=>{var b;p+=0===g?0:1;const v=n.qLeft+p-m.qUp,x=null!==(b=e[h][v])&&void 0!==b?b:kz({node:m,parent:f,root:a,x:v,y:h,pageY:h,layoutService:r,dimensionInfo:o[h],attrExprInfoIndex:i[h],isLeftColumn:!1,...d&&{isIndentModeEnabled:d,indentModeFeatures:c},env:l,pageInfo:s,direction:u});e[h][v]=x,m.qSubNodes.length&&t(a||x,x,m.qSubNodes,h+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},Oz=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:l,direction:s})=>{const{qTop:u,qArea:d}=t;if(!u.length)return e;const c=Tz(e.grid,u,d,n,r,o,i,a,l,s);Az(c,n.size.x);const p=Iz(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:p}},zz=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},n)=>(e[t]=n,e)),{}),qz=(e,t)=>{const{env:r}=nO(),{direction:o}=QT(),{layoutService:i,effectivePropertiesService:l}=iO(),{qPivotDataPages:s,pageInfo:u}=QT(),[d,c]=n(null),p=((e,t,n)=>a((()=>({left:e.map(zz),top:t.map(zz),measures:n.map(zz)})),[n,e,t]))(e,t,i.visibleMeasureInfo),f=a((()=>SO(i,l,t,e)),[i,l,t,e]),m=h((()=>s.slice(1).reduce(((e,t)=>Dz({prevData:e,dataPage:t,pageInfo:u})),((e,t)=>{const{qData:n,qArea:r}=e;return Mz({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(s[0],u))),[s,u]),g=h((()=>s.slice(1).reduce(((e,n)=>Oz({prevData:e,nextDataPage:n,layoutService:i,visibleTopDimensionInfo:t,attrExprInfoIndexes:p.top,headerRows:f.size.y,env:r,pageInfo:u,direction:o})),((e,t,n,r,o,i,a,l)=>{const{qArea:s,qTop:u}=e,d=Tz([],u,s,t,n,r,o,i,a,l);Az(d,t.size.x);const c=Iz(d);return{grid:d,rowCount:d.length,layoutSize:t.size,totalDividerIndex:c}})(s[0],i,t,p.top,f.size.y,r,u,o))),[s,i,t,p.top,f.size.y,r,u,o]),b=h((()=>s.slice(1).reduce(((t,n)=>Pz({prevData:t,nextDataPage:n,pageInfo:u,layoutService:i,visibleLeftDimensionInfo:e,attrExprInfoIndexes:p.left,env:r,direction:o})),((e,t,n,r,o,i,a)=>{const{qArea:l,qLeft:s}=e,u=Lz([],s,l,n,t,r,o,i,a);Az(u,n.rowsOnCurrentPage);const d=Iz(u,t);return{grid:u,columnCount:u.length,layoutSize:t.size,totalDividerIndex:d}})(s[0],i,u,e,p.left,r,o))),[s,i,u,e,p,r,o]),[v,x]=n((()=>m())),[_,y]=n((()=>g())),[S,w]=n((()=>b()));sI((()=>{x(m())}),[m]),sI((()=>{y(g())}),[g]),sI((()=>{w(b())}),[b]),sI((()=>{d&&d.forEach((n=>{x((e=>Dz({prevData:e,dataPage:n,pageInfo:u}))),y((e=>Oz({prevData:e,nextDataPage:n,layoutService:i,visibleTopDimensionInfo:t,attrExprInfoIndexes:p.top,headerRows:f.size.y,env:r,pageInfo:u,direction:o}))),w((t=>Pz({prevData:t,nextDataPage:n,pageInfo:u,layoutService:i,visibleLeftDimensionInfo:e,attrExprInfoIndexes:p.left,env:r,direction:o})))}))}),[d]);const C=h((e=>{c(e)}),[]);return{headersData:f,measureData:v,topDimensionData:_,leftDimensionData:S,attrExprInfoIndexes:p,nextPageHandler:C}},Nz=Math.sqrt(1e4),jz=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/ia.PixelsMin)}),Fz=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/Nz),r=Math.ceil(e.qHeight/Nz);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*Nz,qTop:e.qTop+n*Nz,qWidth:Math.min(Nz,e.qWidth-o*Nz),qHeight:Math.min(Nz,e.qHeight-n*Nz)});return t};function $z({nextPageHandler:e}){const{model:t}=nO(),{pageInfo:n}=QT(),{layoutService:r}=iO(),o=(e=>{const t=m(e);return t.current=e,t})(n.page),i=t,l=h((async(e,t)=>{await(null==i?void 0:i.collapseLeft(sO,e,t,!1))}),[i]),s=h((async(e,t)=>{await(null==i?void 0:i.collapseTop(sO,e,t,!1))}),[i]),u=h((async(e,t)=>{await(null==i?void 0:i.expandLeft(sO,e,t,!1))}),[i]),d=h((async(e,t)=>{await(null==i?void 0:i.expandTop(sO,e,t,!1))}),[i]),c=h((async t=>{if(null!=i&&i.getHyperCubePivotData&&0!==t.length)try{const r=await i.getHyperCubePivotData(sO,t.reduce(((e,t)=>[...e,...Fz(t)]),[]));o.current===n.page&&e(r)}catch(e){console.error(e)}}),[i,e,n,o]),p=h(((e,{dimensionInfoIndex:n,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=r.layout.qHyperCube;let d=[];switch(a){case ws.Dimension:d=[{qPath:`${sO}/qDimensions/${n}/qDef/columnWidth`,oldValue:s[n].columnWidth}];break;case ws.Measures:if(o)d=l.map(((e,t)=>({qPath:`${sO}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);d=[{qPath:`${sO}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case ws.Pivot:d=[{qPath:`${sO}/topHeadersColumnWidth`,oldValue:u}]}const c=d.map((t=>{const{qPath:n,oldValue:r}=t;return{qPath:n,qOp:r?"Replace":"Add",qValue:JSON.stringify({...r,...e})}}));null==t||t.applyPatches(c,!0)}),[t,r]),f=h((async e=>{await(null==i?void 0:i.applyPatches([{qPath:`${sO}/indentModeColumnWidth`,qOp:r.layout.qHyperCube.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...r.indentModeColumnWidth,...e})}],!0))}),[i,r]);return a((()=>({collapseLeft:l,collapseTop:s,expandLeft:u,expandTop:d,applyColumnWidth:p,applyIndentModeColumnWidth:f,fetchPages:c})),[l,s,u,d,p,f,c])}const Bz=(e,t,n)=>(r,o)=>{if("P"===r)return uO;const i=t[n+o];return e[i]},Gz=e=>{const t=[],n=(e,r=0)=>{e.slice(0,1).forEach((e=>{t[r]=e.qType,e.qSubNodes.length&&n(e.qSubNodes,r+1)}))};return n(e),t},Wz=f({}),Hz=()=>p(Wz),Vz=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:n}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:n}}}}=iO(),{qPivotDataPages:r}=QT();return a((()=>{var o,i,a,l;const s=Gz(null!==(o=null===(i=r[0])||void 0===i?void 0:i.qLeft)&&void 0!==o?o:[]),u=Gz(null!==(a=null===(l=r[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(Bz(n,t,0)),visibleTopDimensionInfo:u.map(Bz(n,t,e))}}),[n,t,e,r])})(),{headersData:r,measureData:o,topDimensionData:i,leftDimensionData:l,attrExprInfoIndexes:s,nextPageHandler:u}=qz(t,n),d=$z({nextPageHandler:u}),c=a((()=>({gridSectionsData:{headersData:r,topDimensionData:i,leftDimensionData:l,measureData:o},visibleDimensionsInfo:{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:n},attrExprInfoIndexes:s,dataModel:d})),[t,n,r,o,i,l,s,d]);return de.jsx(Wz.Provider,{value:c,children:e})},Yz=18,Uz=.75,Kz=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===gs.Image},Xz=({isLeftColumn:e,layoutService:t,representation:n})=>Boolean(e)&&t.isIndentModeEnabled&&t.indentModeFeatures.isImagesSupported&&n.type===gs.Image,Jz=e=>void 0===e?wA:e,Zz=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,Qz=e=>Zz(e,ia.PixelsDefault),eq=(e,t)=>Zz(e,ia.PercentageDefault)*t/100,tq=(e,t,n)=>{switch(null==t?void 0:t.type){case aa.Pixels:return Qz(t.pixels);case aa.Percentage:return eq(t.percentage,e);case aa.FitToContent:case aa.Auto:default:return n}},nq=({headers:e,layoutService:t,effectivePropertiesService:n,estimateWidthForDimensionValue:r,shouldConsiderCombinatedLength:o,measureTextForHeader:i,longestMeasureValuePossible:a})=>e.reduce(((e,l,s)=>{var u;const{layout:{qHyperCube:{qNoOfLeftDims:d,qDimensionInfo:c}}}=t,{id:p,colIdx:f,qApprMaxGlyphCount:m,isLeftDimension:h}=l,g=c.find((e=>e.cId===p)),b={width:24,...null==g||null===(u=g.representation)||void 0===u?void 0:u.imageBox};if(!h)return e+0;if(p===dO)return e+0;const v=Xz({isLeftColumn:h,layoutService:t,representation:(null==g?void 0:g.representation)||{type:gs.Text}})?b.width+8+4:r(m),x=!n.qAlwaysFullyExpanded&&f<d-1?21:0;let _=0;if(o&&i&&a){_=i("- ")+a}return Math.max(e,24*s+Yz+x+v+_)}),0),rq=(e,t,n)=>e.reduce(((e,r)=>{const o=(n?0:1)*Yz;return Math.max(e,o+t(r.qFallbackTitle))}),0),oq=(e,t,n,r)=>{const o=100*e/t,i=r*Uz*(o/100),a=n*(o/100);return Math.min(a,i)},iq=(e,t,n,r)=>r*(n/100)*(100*e/t/100),aq=(e,t)=>e.some((e=>e>=t*Uz)),lq=({layoutService:e,effectivePropertiesService:t,headersData:n,columnWidths:r,tableWidth:o,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:s,translator:u})=>{let d=[];const c=o*Uz,p=n.data[n.data.length-1][0];if(!Array.isArray(p))return{leftGridWidth:0,leftGridColumnWidths:[],leftGridFullWidth:0};const f=Math.min(c,r.at(-1)),m=Math.min(c,nq({headers:p,layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:l})),h=Math.min(c,rq(e.visibleMeasureInfo,a));let g=0;const b=p.findIndex((e=>e.id===dO)),v=(({layoutService:e,measureTextForHeader:t,translator:n,headersData:r})=>{const{type:o}=e.indentModeColumnWidth;return o===aa.Auto&&r.size.y<=1?t(n.get("SNPivotTable.IndentMode.Rows"))+8+Yz+16:24})({layoutService:e,measureTextForHeader:a,translator:u,headersData:n});if(e.hasPseudoDimOnLeft)if(0===b){const e=Math.max(f,m,h);d=[Math.max(v,e-f),f]}else{const n=Math.min(c,rq(e.visibleMeasureInfo,s,!0));g=Math.min(c,nq({headers:p.slice(0,b),layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:l,shouldConsiderCombinatedLength:!0,measureTextForHeader:a,longestMeasureValuePossible:n}));const r=Math.max(f,m,g);d=[Math.max(v,r-f),f]}else d=[Math.max(v,m-f),f];const x=Math.min(c,d.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:_}=e;i&&i<=c&&(_.type=aa.Pixels,_.pixels=i);return[aa.Pixels,aa.Percentage].includes(_.type)||aq(d,o)?((e,t,n,r)=>{let o=e[0],i=e[1],a=[];const l=e.reduce(((e,t)=>e+t),0),{type:s,pixels:u,percentage:d}=t,c=aq(e,n);s===aa.Auto&&c&&(o>i?o-=i:i-=o),s===aa.Pixels&&u&&(o=oq(e[0],l,u,n),i=oq(e[1],l,u,n)),s===aa.Percentage&&d&&(o=iq(e[0],l,d,n),i=iq(e[1],l,d,n));let p=0;i<=r&&(p=o-5,p>0&&(o-=p,i+=p)),p=i-r,p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(d,_,o,f):{leftGridWidth:x,leftGridColumnWidths:d,leftGridFullWidth:x}};function sq({tableWidth:e}){const t=e*Uz,{styleService:r,layoutService:o,effectivePropertiesService:i}=iO(),{translator:a}=nO(),{gridSectionsData:{headersData:l}}=Hz(),{measureText:s}=oI(r.header),{estimateWidth:u,measureText:d}=oI({...r.dimensionValues,fontWeight:Jz(r.dimensionValues.fontWeight)}),{measureText:c}=oI({...r.dimensionValues,...r.measureLabels}),p=h(((n,r)=>{const{layout:{qHyperCube:{qNoOfLeftDims:p,topHeadersColumnWidth:f}},visibleMeasureInfo:m,isIndentModeEnabled:h,hasPseudoDimOnLeft:g}=o,b=(t=0)=>m.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=c(r)+Yz,a=Math.max(i,t);return Math.max(n,h?a:tq(e,o,a))}),0),v=e=>l.data.reduce(((t,n)=>{const r=n.at(e);if(!r||Array.isArray(r))return t;if(r.id===dO)return t;const o=(e=>{const{label:t,isLocked:n}=e,r=n?20:0;return Yz+s(t)+20+r})(r);return Math.max(o,t)}),0);let x=0,_=l.data.at(-1);h&&l.size.x>1&&_&&_[0]&&(_=_[0]);const y=_.map(((a,s)=>{let d=Yz;if(h&&1!==l.size.x||!n||void 0===r||r!==a.colIdx){let t;a.columnWidthLocation===ws.Pivot?t=h?void 0:f:a.columnWidthLocation===ws.Dimension&&({columnWidth:t}=a);let n=0;if(a.isLeftDimension)if(a.id===dO)n=b();else{const e=v(s),t=((e,t)=>{const{qApprMaxGlyphCount:n,isLeftDimension:r,dimensionInfoIndex:a}=e,l=o.getDimensionInfo(a);if(Kz(l))return ia.PixelsDefault;const s=!i.qAlwaysFullyExpanded&&r&&t<p-1?21:0;return Yz+u(n)+s})(a,s);n=Math.max(e,t),h&&!g&&s+1===p&&a.columnWidthLocation===ws.Dimension&&l.size.x>1&&(n=e)}else n=v(s),a.columnWidthLocation===ws.Measures&&(n=b(n));h&&1===l.size.x&&(t=o.indentModeColumnWidth),d=h&&!g&&l.size.x>1?n:tq(e,t,n)}else d=h?Math.min(t,n):n;return x+=d,d}));return h&&l.size.x>1?lq({layoutService:o,effectivePropertiesService:i,headersData:l,columnWidths:y,tableWidth:e,widthOverride:n,measureTextForHeader:s,estimateWidthForDimensionValue:u,measureTextWidthForMeasuresCombinedWithDimensions:d,translator:a}):{leftGridWidth:Math.min(t,x),leftGridColumnWidths:y,leftGridFullWidth:x}}),[e,l,o,t,s,c,u,d,a,i]),[f,m]=n(p);sI((()=>{m(p())}),[p]);const g=h(((e,t)=>{m(p(e,t))}),[p]);return{...f,overrideLeftGridWidth:g}}function uq({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:n}){const{styleService:r,layoutService:o}=iO(),{visibleDimensionsInfo:{visibleTopDimensionInfo:i}}=Hz(),{layout:{qHyperCube:{qNoOfLeftDims:l,qEffectiveInterColumnSortOrder:s}},size:u,visibleMeasureInfo:d}=o,{estimateWidth:c,measureText:p}=oI(r.measureValues),{estimateWidth:f}=oI({...r.dimensionValues,fontWeight:Jz(r.dimensionValues.fontWeight)}),m=e-n-1,g=i.at(-1),b=g===uO,v=s.length-l>i.length?21:0,x=a((()=>{const e=b?d:[g],t=u.x/e.length,n=[],r=[];let o=m;const i=(e,r)=>{n[e]=Math.min(ia.PixelsMax,Math.max(ia.PixelsMin,r)),o-=n[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:n,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:s}=e;switch(n){case aa.Pixels:i(t,Qz(o));break;case aa.Percentage:i(t,eq(a,m));break;case aa.FitToContent:i(t,((e,t,n)=>n?ia.PixelsDefault:Yz+(b?Math.max(c(e),p(t)):Math.max(Math.max(...d.map((e=>c(e.qApprMaxGlyphCount)))),f(e)+v)))(l,s,Kz(e)));break;case aa.Auto:default:r.push(t)}}else r.push(t)})),r.length){const e=r.length*t,i=o/e;r.forEach((e=>{n[e]=Math.max(ia.AutoMinPivot,i)}))}return n}),[b,d,g,u.x,m,c,p,f,v]),_=a((()=>{if(b){const e=d.reduce(((e,t,n)=>e+x[n]),0);return e/d.length}return x[0]}),[b,x,d]),y=parseFloat((t/o.size.x).toFixed(12)),S=h((e=>(b&&void 0!==e?x[o.getMeasureInfoIndexFromCellIndex(e,!0)]:_)-y),[b,x,o,_,y]),w=u.x*_;return{rightGridFullWidth:w,rightGridWidth:Math.min(w,m),getRightGridColumnWidth:S}}const dq=`scrollable-container--${Es.TopGrid}`,cq=`scrollable-container--${Es.LeftGrid}`,pq=`scrollable-container--${Es.DataGrid}`,fq=e=>e&&e instanceof HTMLDivElement?{width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight}:{width:0,height:0},mq=(e,t)=>e>t?Rs.Forward:e<t?Rs.Backward:Rs.None,hq=({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:n},getWrapperElements:o,updateViewService:i,trackScrollDirection:a,interactions:l})=>{const{direction:s}=QT();r((()=>{const{headerGridWrapperElement:r,topGridWrapperElement:u,leftGridWrapperElement:d,dataGridWrapperElement:c}=o(),p=e=>{const t=e.target;r.scrollLeft=t.scrollLeft,a(e),null==i||i(e)},f=e=>{const t=e.target;r.scrollTop=t.scrollTop,a(e),null==i||i(e)},m=r=>{var o,l,p;const f=r.target,m=((e,t)=>{const{scrollWidth:n,clientWidth:r,scrollLeft:o}=e,i=n-r;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(f,s);null===(o=n.current)||void 0===o||o.scrollTo({scrollLeft:m,scrollTop:f.scrollTop}),u.scrollLeft=m,null===(l=e.current)||void 0===l||l.forEach((e=>{null==e||e.scrollTo(m)})),d.scrollTop=c.scrollTop,null===(p=t.current)||void 0===p||p.forEach((e=>{null==e||e.scrollTo(f.scrollTop)})),a(r),null==i||i(r)};return d.addEventListener("scroll",p),u.addEventListener("scroll",f),c.addEventListener("scroll",m),l.scroll||setTimeout((()=>{d.removeEventListener("scroll",p),u.removeEventListener("scroll",f),c.removeEventListener("scroll",m)}),0),()=>{d.removeEventListener("scroll",p),u.removeEventListener("scroll",f),c.removeEventListener("scroll",m)}}),[a,i,l,e,t,n,o,s])},gq=()=>{const{interactions:e}=nO(),t=m(null),o=m(null),i=m(null),a=m(null),l=m([]),s=m([]),u=m(null),{scrollbarsDimensions:{verticalScrollbarWidth:c,horizontalScrollbarHeight:p},resetHorizontalScrollbarHeight:f}=(({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:r})=>{const[o,i]=n(0),[a,l]=n(0);return d((()=>{(e.current||r.current)&&i(Math.max(fq(e.current).width,fq(r.current).width))})),d((()=>{(t.current||r.current)&&l(Math.max(fq(t.current).height,fq(r.current).height))})),{scrollbarsDimensions:{verticalScrollbarWidth:o,horizontalScrollbarHeight:a},resetHorizontalScrollbarHeight:()=>{l(0)}}})({topGridWrapperRef:o,leftGridWrapperRef:i,dataGridWrapperRef:a});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:n,dataGridWrapperRef:r},gridRefs:{topGridRef:o,leftGridRef:i,dataGridRef:a}})=>{const{pageInfo:l}=QT(),{downloadService:s,viewService:u,layoutService:c}=iO(),p=h((()=>{var o,i,a,l;const s={left:0,top:0};null===(o=e.current)||void 0===o||o.scrollTo(s),null===(i=t.current)||void 0===i||i.scrollTo(s),null===(a=n.current)||void 0===a||a.scrollTo(s),null===(l=r.current)||void 0===l||l.scrollTo(s)}),[e,t,n,r]);d((()=>{p()}),[l.page,p]),d((()=>{c.triggerdByExpandOrCollapse||p()}),[c,p]),d((()=>{if(c.triggerdByExpandOrCollapse){var e,t,n,l,s,u,d;const c=null!==(e=null===(t=r.current)||void 0===t?void 0:t.scrollLeft)&&void 0!==e?e:0,p=null!==(n=null===(l=r.current)||void 0===l?void 0:l.scrollTop)&&void 0!==n?n:0;null===(s=i.current)||void 0===s||s.forEach((e=>{null==e||e.scrollTo(p)})),null===(u=o.current)||void 0===u||u.forEach((e=>{null==e||e.scrollTo(c)})),null===(d=a.current)||void 0===d||d.scrollTo({scrollTop:p,scrollLeft:c})}}),[c,r,a,i,o]),d((()=>{(s.isDownloadedAsPDForImage||c.isSnapshot)&&r.current&&n.current&&t.current&&(r.current.scrollTop=u.scrollTop,r.current.scrollLeft=u.scrollLeft,n.current.scrollLeft=u.leftGridScrollLeft,t.current.scrollTop=u.topGridScrollTop)}),[u,s,c,r,n,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:o,leftGridWrapperRef:i,dataGridWrapperRef:a},gridRefs:{topGridRef:l,leftGridRef:s,dataGridRef:u}});const{trackScrollDirection:g,scrollDirectionRefs:{verticalScrollDirection:b,horizontalScrollDirection:v}}=(()=>{const e=m(Rs.None),t=m(Rs.None),n=m({prevScrollTop:0,prevScrollLeft:0});return{trackScrollDirection:h((r=>{if(r instanceof WheelEvent&&(e.current=mq(r.deltaY,0),t.current=mq(r.deltaX,0)),r instanceof Event&&!(r instanceof WheelEvent)){const o=r.target;e.current=mq(o.scrollTop,n.current.prevScrollTop),n.current.prevScrollTop=o.scrollTop,t.current=mq(o.scrollLeft,n.current.prevScrollLeft),n.current.prevScrollLeft=o.scrollLeft}}),[e,t,n]),scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),x=(()=>{const{viewService:e}=iO();return h((t=>{const n=t.target,r=t.currentTarget,o=n.dataset.key;o===cq&&(e.leftGridScrollLeft=r.scrollLeft),o===pq&&(e.scrollLeft=r.scrollLeft),o===dq&&(e.topGridScrollTop=r.scrollTop),o!==cq&&o!==pq||(e.scrollTop=r.scrollTop)}),[e])})(),_={gridRefs:{topGridRef:l,leftGridRef:s,dataGridRef:u},getWrapperElements:h((()=>({headerGridWrapperElement:t.current,topGridWrapperElement:o.current,leftGridWrapperElement:i.current,dataGridWrapperElement:a.current})),[t,o,i,a]),updateViewService:x,trackScrollDirection:g,interactions:e};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:n},getWrapperElements:o,updateViewService:i,trackScrollDirection:a,interactions:l})=>{r((()=>{const{headerGridWrapperElement:r,topGridWrapperElement:i,leftGridWrapperElement:s,dataGridWrapperElement:u}=o(),d=e=>{r.scrollLeft+=e.deltaX,r.scrollTop+=e.deltaY,s.scrollLeft=r.scrollLeft,i.scrollTop=r.scrollTop,a(e)},c=e=>{var o,i;s.scrollTop+=e.deltaY,null===(o=t.current)||void 0===o||o.forEach((e=>{null==e||e.scrollTo(s.scrollTop)})),r.scrollLeft+=e.deltaX,s.scrollLeft=r.scrollLeft,u.scrollTop=s.scrollTop,null===(i=n.current)||void 0===i||i.scrollTo({scrollTop:s.scrollTop}),a(e)},p=t=>{var o,l;i.scrollLeft+=t.deltaX,null===(o=e.current)||void 0===o||o.forEach((e=>{null==e||e.scrollTo(i.scrollLeft)})),r.scrollTop+=t.deltaY,i.scrollTop=r.scrollTop,u.scrollLeft=i.scrollLeft,null===(l=n.current)||void 0===l||l.scrollTo({scrollLeft:i.scrollLeft}),a(t)},f=r=>{var o,l,d;u.scrollLeft+=r.deltaX,u.scrollTop+=r.deltaY,null===(o=n.current)||void 0===o||o.scrollTo({scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}),i.scrollLeft=u.scrollLeft,null===(l=e.current)||void 0===l||l.forEach((e=>{null==e||e.scrollTo(u.scrollLeft)})),s.scrollTop=u.scrollTop,null===(d=t.current)||void 0===d||d.forEach((e=>{null==e||e.scrollTo(u.scrollTop)})),a(r)};return r.addEventListener("wheel",d),s.addEventListener("wheel",c),i.addEventListener("wheel",p),u.addEventListener("wheel",f),l.scroll||setTimeout((()=>{r.removeEventListener("wheel",d),s.removeEventListener("wheel",c),i.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}),0),()=>{r.removeEventListener("wheel",d),s.removeEventListener("wheel",c),i.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}}),[a,i,l,e,t,n,o])})(_),hq(_),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:o,leftGridWrapperRef:i,dataGridWrapperRef:a},gridRefs:{topGridRef:l,leftGridRef:s,dataGridRef:u},scrollDirectionRefs:{verticalScrollDirection:b,horizontalScrollDirection:v},scrollbarsDimensions:{verticalScrollbarWidth:c,horizontalScrollbarHeight:p,resetHorizontalScrollbarHeight:f}}},bq=()=>{const{layoutService:e}=iO(),{rect:t,pageInfo:n}=QT();return a((()=>{let{height:r}=t;return e.hasLimitedData&&(r-=22),n.shouldShowPagination&&(r-=41),{...t,height:r}}),[t,e,n.shouldShowPagination])},vq=({children:e,style:t})=>de.jsx("div",{"data-testid":"fullSize",style:t,children:e}),xq=({children:e,style:t})=>{const{direction:n}=QT();return de.jsx("div",{"data-section-id":"GRID",style:{direction:n,display:"grid",...t},children:e})},_q=e=>e&&`scrollable-container--${e}`,yq=({children:e,style:t,origin:n},r)=>{const{interactions:o}=nO(),i=o.scroll?t:{overflow:"hidden"};return de.jsx("div",{"data-testid":"scrollable","data-key":_q(n),style:i,ref:r,children:e})};var Sq=i.forwardRef(yq);const wq=({children:e,style:t})=>{const{direction:n}=QT();return de.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,["rtl"===n?"right":"left"]:0,...t},children:e})};var Cq=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Eq(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||Cq(r)&&Cq(o)))return!1;var r,o;return!0}function Rq(e,t){var n;void 0===t&&(t=Eq);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var kq="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Lq(e){cancelAnimationFrame(e.id)}function Aq(e,t){var n=kq();var r={id:requestAnimationFrame((function o(){kq()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var Iq=-1;function Pq(e){if(void 0===e&&(e=!1),-1===Iq||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Iq=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Iq}var Mq=null;function Dq(e){if(void 0===e&&(e=!1),null===Mq||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Mq="positive-descending":(t.scrollLeft=1,Mq=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Mq}return Mq}var Tq=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Oq(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,d=e.getRowHeight,c=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,b=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,kc(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:kc(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Rq((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=Rq((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:c(r.props,e,r._instanceProps),height:d(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=Rq((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(Dq()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var d=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:d,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&Lq(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Aq(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Rc(t,e),t.getDerivedStateFromProps=function(e,t){return zq(e,t),b(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,d=i.columnCount,c=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=Pq();void 0!==r&&(r=Math.max(0,Math.min(r,d-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),x=l(this.props,this._instanceProps)>f?b:0,_=v>c?b:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,h,this._instanceProps,_):h,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,x):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(Dq()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Lq(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,d=e.innerTagName,c=e.itemData,p=e.itemKey,f=void 0===p?Tq:p,m=e.outerElementType,h=e.outerTagName,b=e.rowCount,v=e.style,x=e.useIsScrolling,_=e.width,y=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],C=S[1],E=this._getVerticalRangeToRender(),R=E[0],k=E[1],L=[];if(r>0&&b)for(var A=R;A<=k;A++)for(var I=w;I<=C;I++)L.push(g(t,{columnIndex:I,data:c,isScrolling:x?y:void 0,key:f({columnIndex:I,data:c,rowIndex:A}),rowIndex:A,style:this._getItemStyle(A,I)}));var P=a(this.props,this._instanceProps),M=l(this.props,this._instanceProps);return g(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:qs({position:"relative",height:i,width:_,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},g(u||d||"div",{children:L,ref:s,style:{height:P,pointerEvents:y?"none":void 0,width:M}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],d=this._getVerticalRangeToRender(),c=d[0],p=d[1],f=d[2],m=d[3];this._callOnItemsRendered(a,l,c,p,s,u,f,m)}if("function"==typeof r){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,x=h.scrollUpdateWasRequested,_=h.verticalScrollDirection;this._callOnScroll(b,v,g,_,x)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,d=s.isScrolling,c=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,c,this._instanceProps),m=o(this.props,f,c,this._instanceProps),h=d&&"backward"!==u?1:Math.max(1,p),g=d&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,d=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var c=p(this.props,u,this._instanceProps),m=f(this.props,c,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,d),g=l&&"forward"!==s?1:Math.max(1,d);return[Math.max(0,c-h),Math.max(0,Math.min(i-1,m+g)),c,m]},t}(y),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var zq=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},qq=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},Nq=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},jq=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var d=i(u);o[u]={offset:l,size:d},l+=d}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},Fq=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?$q(e,t,n,i,0,r):Bq(e,t,n,Math.max(0,i),r)},$q=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=jq(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},Bq=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&jq(e,t,r,n).offset<o;)r+=a,a*=2;return $q(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},Gq=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=jq(e,t,n,i),u="column"===e?Nq(t,i):qq(t,i),d=Math.max(0,Math.min(u-l,s.offset)),c=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=c-l&&o<=d+l?"auto":"center"),r){case"start":return d;case"end":return c;case"center":return Math.round(c+(d-c)/2);default:return o>=c&&o<=d?o:c>d||o<c?c:d}},Wq=Oq({getColumnOffset:function(e,t,n){return jq("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return Fq("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=jq("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=jq("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:qq,getEstimatedTotalWidth:Nq,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return Gq("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return Gq("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return jq("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return Fq("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=jq("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=jq("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),Hq=function(e,t){return e};function Vq(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,kc(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:kc(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Rq((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=Rq((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,d=r._getItemStyleCache(u&&l,u&&s,u&&a);if(d.hasOwnProperty(e))t=d[e];else{var c=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?c:0;d[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:c,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=Rq((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(Dq()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&Lq(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Aq(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Rc(t,e),t.getDerivedStateFromProps=function(e,t){return Yq(e,t),d(e),null};var c=t.prototype;return c.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},c.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?Pq():0:s.scrollHeight>s.clientHeight?Pq():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},c.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},c.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(Dq()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},c.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Lq(this._resetIsScrollingTimeoutId)},c.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,d=e.itemData,c=e.itemKey,p=void 0===c?Hq:c,f=e.layout,m=e.outerElementType,h=e.outerTagName,b=e.style,v=e.useIsScrolling,x=e.width,_=this.state.isScrolling,y="horizontal"===o||"horizontal"===f,S=y?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),C=w[0],E=w[1],R=[];if(u>0)for(var k=C;k<=E;k++)R.push(g(t,{data:d,key:p(k,d),index:k,isScrolling:v?_:void 0,style:this._getItemStyle(k)}));var L=r(this.props,this._instanceProps);return g(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:qs({position:"relative",height:i,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},g(l||s||"div",{children:R,ref:a,style:{height:y?"100%":L,pointerEvents:_?"none":void 0,width:y?L:"100%"}}))},c._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},c._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),d=l(this.props,u,s,this._instanceProps),c=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-c),Math.max(0,Math.min(t-1,d+p)),u,d]},t}(y),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Yq=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Uq=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},Kq=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=Uq(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},Xq=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&Uq(e,n,t).offset<r;)n+=i,i*=2;return Kq(e,t,Math.min(n,o-1),Math.floor(n/2),r)},Jq=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},Zq=Vq({getItemOffset:function(e,t,n){return Uq(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:Jq,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,d="horizontal"===a||"horizontal"===s?u:l,c=Uq(e,t,o),p=Jq(e,o),f=Math.max(0,Math.min(p-d,c.offset)),m=Math.max(0,c.offset-d+c.size+i);switch("smart"===n&&(n=r>=m-d&&r<=f+d?"auto":"center"),n){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?Kq(e,t,o,0,n):Xq(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,d=Uq(e,t,r),c=n+u,p=d.offset+d.size,f=t;f<a-1&&p<c;)f++,p+=Uq(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function Qq(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var eN=["style"],tN=["style"];function nN(e,t){var n=e.style,r=Ou(e,eN),o=t.style,i=Ou(t,tN);return!Qq(n,o)&&!Qq(r,i)}const rN=10,oN=(e,t)=>e.current===Rs.Backward?t:0,iN=(e,t,n,r)=>{for(let o=n;o<n+r;o++){const n=e.at(o);if(void 0===n||void 0===n.at(t))return!0}return!1},aN=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,lN=({pageInfo:e,measureData:t,pageTop:n,qHeight:r,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(iN(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+l,qWidth:1,qHeight:r};void 0!==t&&aN(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},sN=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=r,u=n.current===Rs.Backward?Math.max(0,o-25):i,d=Math.min(u+25,a);return lN({pageInfo:e,measureData:t,startLeft:u,endLeft:d,pageTop:l,qHeight:s})},uN=({pageInfo:e,measureData:t,scrollDirection:n,layoutService:r,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=oN(n,rN),u=Math.max(r-s,0);return{startLeft:u,endLeft:u+Math.min(i+rN,l-u),pageTop:o,qHeight:a}})(r,o,n),u=lN({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...sN({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},dN=(e,t,n,r)=>{const o=e[n];if(void 0===o)return!0;for(let e=t;e<t+r;e++){if(void 0===o[e])return!0}return!1},cN=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,pN=({startTop:e,endTop:t,qLeft:n,qWidth:r,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(dN(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+l,qWidth:r,qHeight:1};void 0!==e&&cN(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},fN=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=oN(n,rN),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+rN,e.rowsOnCurrentPage-s),qLeft:r,qWidth:i}})(e,r,n),s=pN({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const r=n.current===Rs.Backward?Math.max(0,o-25):i,u=Math.min(r+25,e.rowsOnCurrentPage),d=pN({startTop:r,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...d]}return s},mN=async(e,t,n,r,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:d,gridHeight:c}=o;let p=[],f=[];i.current!==Rs.None&&(p=fN({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==Rs.None&&(f=uN({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===Rs.None&&a.current===Rs.None&&(p=pN({measureData:n,pageInfo:r,qLeft:s,qWidth:d,startTop:u,endTop:u+c}));const m=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(m)},hN=function(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];n=l;var u=Date.now()-i,d=function(){i=Date.now(),r=0,e.apply(t,n)};r||(u>=o?d():r=setTimeout(d,o-u))}}(mN,100),gN=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,i)}),n)}}(mN,75),bN=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),vN=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{direction:l}=QT(),{styleService:{grid:{border:s,divider:u}}}=iO();return de.jsx("div",{style:{...e,...IA,...TA(n,r,s,l,o),...zA({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:u})},"data-testid":"empty-cell","data-index":t})},xN=({children:e,verticalAlign:t,width:n,right:r,isLeftColumn:o})=>{const{layoutService:{isIndentModeEnabled:i,indentModeFeatures:a}}=iO(),l=o&&i&&a.isImagesSupported;return de.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",flexDirection:"row",width:n,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:r,...!l&&{alignItems:t,alignSelf:t,overflow:"hidden"}},children:e})},_N=e=>{const{type:t,imageSize:n}=e;return t!==gs.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"},yN=e=>"number"==typeof e&&!Number.isNaN(+e),SN=e=>"string"==typeof e&&e.length>0||"number"==typeof e?+e:NaN,wN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})}))),CN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})}))),EN=u(((e,t)=>de.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[de.jsx("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),de.jsx("use",{fillRule:"evenodd"})]}))),RN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})}))),kN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})}))),LN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})}))),AN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M2 7h12v2H2z"})}))),IN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})}))),PN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})}))),MN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})}))),DN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})}))),TN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),ON=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})}))),zN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})}))),qN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})}))),NN={m:TN,"ï":MN,R:u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"})}))),S:ON,T:zN,U:qN,P:PN,Q:LN,"è":u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})}))),"¢":RN,"©":EN,"23F4":kN,2013:DN,"&":IN,add:wN,"minus-2":AN,dot:CN},jN=({size:e,iconKey:t,color:n,pvStyle:r})=>{const o=t&&NN[t];return o&&i.createElement("div",{"data-testid":"representation-indicator-icon",style:{color:n,height:e,...r}},i.createElement(o,{style:{height:e}}))},FN=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),$N=(e,t,n)=>{const r=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return n.getColorPickerColor(r)},BN=(e,t)=>{const n=(e=>e.map((e=>{var t;return null!==(t=e.value)&&void 0!==t?t:e})).sort(((e,t)=>e-t)))(e),r=n.some((e=>!yN(e)));return 0===n.length||r?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===n.length?((e,t)=>{const n=e[0]-t;if(0===n||!yN(n)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return n>0?{min:t-.5*Math.abs(t),max:e[0]+2*n}:{min:e[0]+2*n,max:t+.5*Math.abs(t)}})(n,t):((e,t)=>{let n=e[e.length-1]-e[0];return n=n>0?n:1,{min:Math.min(t,e[0])-n/2,max:Math.max(t,e[e.length-1])+n/2}})(n,t)},GN=(e,t,n)=>{const r={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const n=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:n&&t>0?n[t-1]:{value:0,gradient:!1},upperLimit:n&&n[t]?n[t]:{value:1,gradient:!1}}})(e,t),l=((e,t,n,r,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:l,nextColor:s}=t,u=r===i.value?1:(r-a.value)/(i.value-a.value);return a.gradient&&i.gradient?r-a.value<i.value-r?{color:l.color,t:.5-u}:{color:s.color,t:u-.5}:a.gradient?{color:l.color,t:1-(.5+u/2)}:i.gradient?{color:s.color,t:u/2}:{color:o.localPaletteColors[n].color,t:r}})(a,r,t,n,e);return l&&Yk(e.localPaletteColors[t].color).blend(Yk(l.color),l.t)},WN=(e,t,n)=>{const r=((e,t)=>{const{limits:n}=e;return n&&(e.limits=n.sort(((e,t)=>e.value-t.value)),e.limits=n.map((e=>({...e,value:FN(t,e.value)})))),e})({...e},t),o=r.paletteColors||r.localPaletteColors;return o&&(r.localPaletteColors=o.concat().map(((e,t)=>({color:$N(r,t,n)})))),r},HN=(e,t,n,r)=>{const o=WN(e,n,r),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let n="",r=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=r&&t<i){n=GN(e,a,t);break}r=i}return n})(o,t);return a},VN=(e,t)=>{const{limits:n}=e.segments;if(!n)return;const r=((e,t)=>{const{min:n,max:r}=BN(e,t),o=Math.abs(t);return{min:null!=n?n:t-o,max:null!=r?r:t+o}})(n,t),o=((e,t,n)=>{const{limits:r,paletteColors:o,localPaletteColors:i}=e.segments;if(!r||!yN(t))return 0;let a=n&&yN(n)?Math.min(n,t):0;const l=r.sort(((e,t)=>e.value-t.value)),s=o||i;for(let e=0;e<s.length;e++){if(e===s.length-1||t<l[e].value&&t>=a)return e;a=l[e].value}return 0})(e,t,r.min);return{limitRange:r,limitPaletteColorIndex:o}},YN=e=>"flex-start"===e?"flex-end":"flex-start",UN=(e,t,n,r)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=VN(o,t),a=((e,t,n,r)=>{const{segments:o}=e;if(!o||!n)return;const{limits:i}=o;if(null==i||!i.length||!((e,t)=>{var n,r,o;return!(!e||0===e.length||!(null!==(n=null===(r=e[t])||void 0===r?void 0:r.gradient)&&void 0!==n?n:null===(o=e[t-1])||void 0===o?void 0:o.gradient))})(i,n.limitPaletteColorIndex))return $N(o,n.limitPaletteColorIndex,r);const a=FN(n.limitRange,t);return HN(o,a,n.limitRange,r)})(o,t,i,r),l=o.segments.paletteColors[(null==i?void 0:i.limitPaletteColorIndex)||0].icon,{indicator:s}=e;let u=(null==s?void 0:s.position)||"right";return"rtl"===n&&(u="right"===u?"left":"right"),{color:a,iconKey:l,position:u}},KN=({representation:e,cellValue:t,textStyle:n})=>{const{styleService:r}=iO(),{theme:o}=nO(),{direction:i}=QT(),{text:a,indicator:l}=e,{showTextValues:s,applySegmentColors:u}=null!=l?l:{},d=UN(e,t,i,o),{fontSize:c,fontFamily:p,fontStyle:f,fontWeight:m,textDecoration:h}=r.measureValues,g={fontSize:c,fontFamily:p,fontStyle:f,fontWeight:m,textDecoration:h},b=parseInt(c||yA,10),{iconKey:v,color:x,position:_}=d||{},y={display:"flex",paddingTop:2};return s?de.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",overflow:null==n?void 0:n.overflow,color:u?x:null==n?void 0:n.color},children:["left"===_&&jN({size:b,iconKey:v,color:x,pvStyle:y}),de.jsx("span",{style:{paddingTop:4,overflow:null==n?void 0:n.overflow,textOverflow:null==n?void 0:n.textOverflow,whiteSpace:"nowrap",direction:t<0?"ltr":void 0,...g},children:a}),"right"===_&&jN({size:b,iconKey:v,color:x,pvStyle:y})]}):(y.paddingTop=5,jN({size:b,iconKey:v,color:x,pvStyle:y}))},XN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})}))),JN=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})}))),ZN=e=>{var t;return!(null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t||!t.includes(oa))},QN=(e,t)=>{switch(t.type){case"clearSelections":return{engineSelectedCells:null,activeSelection:null,selectedField:null};case"mouseup":return{...e,activeSelection:null,engineSelectedCells:t.payload.engineSelectedCells};case"mousedown":return{...e,activeSelection:t.payload.activeSelection,selectedField:t.payload.selectedField};case"mouseover":{if(!e.activeSelection)return e;const{index:n}=t.payload,r=Math.min(n,e.activeSelection.startIndex),o=Math.max(n,e.activeSelection.endIndex);if(r===e.activeSelection.startIndex&&o===e.activeSelection.endIndex)return e;const i={...e.activeSelection,startIndex:r,endIndex:o};return i.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:n,endIndex:r,clientSelectedCells:o}=e,i=new Map(o);for(let e=n;e<=r;e++){const n=t(e);"N"===(null==n?void 0:n.ref.qType)&&i.set(n.ref.qElemNo,n)}return i})(i),{...e,activeSelection:i}}default:return e}};const ej=f({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),tj=()=>p(ej),nj=({children:e,selections:t})=>{const n=function(e){var t,n,o;const{updatePageInfo:i}=QT(),l=e.isActive(),[s,u]=b(QN,{engineSelectedCells:null,selectedField:null,activeSelection:null});r((()=>{const t=()=>{u({type:"clearSelections"})},n=()=>{t(),i({page:0})};return e.on("deactivated",t),e.on("canceled",t),e.on("confirmed",n),e.on("cleared",t),()=>{e.removeListener("deactivated",t),e.removeListener("canceled",t),e.removeListener("confirmed",n),e.removeListener("cleared",t)}}),[e,i]);const d=h((async()=>{var t,n,r;if(!s.activeSelection)return;1===s.activeSelection.clientSelectedCells.size&&(n=s.engineSelectedCells,(r=s.activeSelection).clientSelectedCells.forEach(((e,t)=>{null!=n&&n.has(t)&&(r.clientSelectedCells.delete(t),n.delete(t))})));const o=new Map([...null!==(t=s.engineSelectedCells)&&void 0!==t?t:new Map,...s.activeSelection.clientSelectedCells]);try{u({type:"mouseup",payload:{engineSelectedCells:o}}),await e.select({method:"selectPivotCells",params:[sO,Array.from(o,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]})}catch(e){console.error(e),u({type:"mouseup",payload:{engineSelectedCells:s.engineSelectedCells}})}}),[s,e]);r((()=>{if(s.activeSelection)return document.addEventListener("mouseup",d),()=>{document.removeEventListener("mouseup",d)}}),[d,s.activeSelection]);const c=h(((e,t)=>n=>{const r=t(e);ZN(n)||(e=>{var t;return null!==(null===(t=e.target)||void 0===t?void 0:t.closest("[data-prevent-selection]"))})(n)||(e=>{var t;return"A"===(null===(t=e.target)||void 0===t?void 0:t.tagName)})(n)||!(e=>1===e.buttons)(n)||!r||u({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(r.ref.qElemNo,r)},selectedField:{selectionCellType:r.selectionCellType,index:"L"===r.selectionCellType?r.x:r.y}}})}),[]),p=h((t=>async()=>{s.activeSelection&&(e.isActive()||await e.begin([sO]),u({type:"mouseover",payload:{index:t}}))}),[s.activeSelection,e]),f=h((e=>{var t,n;return!(!(null!==(t=s.engineSelectedCells)&&void 0!==t&&t.size||null!==(n=s.activeSelection)&&void 0!==n&&n.clientSelectedCells.size)||!s.selectedField||e.selectionCellType===s.selectedField.selectionCellType&&("L"===e.selectionCellType?s.selectedField.index===e.x:s.selectedField.index===e.y))}),[null===(t=s.activeSelection)||void 0===t?void 0:t.clientSelectedCells.size,null===(n=s.engineSelectedCells)||void 0===n?void 0:n.size,s.selectedField]),m=h((e=>{var t,n;return!f(e)&&((null===(t=s.engineSelectedCells)||void 0===t?void 0:t.has(e.ref.qElemNo))||!(null===(n=s.activeSelection)||void 0===n||!n.clientSelectedCells.has(e.ref.qElemNo)))}),[f,null===(o=s.activeSelection)||void 0===o?void 0:o.clientSelectedCells,s.engineSelectedCells]);return a((()=>({isSelected:m,isActive:l,isLocked:f,createMouseDownHandler:c,createMouseOverHandler:p})),[m,l,f,c,p])}(t);return de.jsx(ej.Provider,{value:n,children:e})},rj=e=>"fill"===e.representation.imageSize,oj=(e,t)=>{let n=e.isLeftColumn?"flex-start":"center";var r;return e.isLeftColumn&&rj(e)&&t&&(n="center"),e.representation.type!==gs.Image||rj(e)?n:null===(r=e.representation.resolvedImagePosition)||void 0===r?void 0:r.vertical};var ij;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(ij||(ij={}));const aj={brighter:.5,darker:.3,opacity:.03},lj=(e,{cell:t,styleService:n})=>{if(e===ij.Background||e===ij.Color){const n=t.expressionColor[e];if(n)return n}return t.isNull?n.nullValues[e]:t.isPseudoDimension?n.measureLabels[e]:t.isTotal?n.totalValues[e]:n.dimensionValues[e]},sj=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return e.selectedColors.background;const o=lj(ij.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?lj(ij.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${uA(i=o,aj)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},uj=({cell:e,styleService:t,isCellSelected:n})=>n?t.selectedColors.color:lj(ij.Color,{cell:e,styleService:t}),dj=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=lj(ij.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?wA:o},cj=({cell:e,styleService:t})=>lj(ij.FontStyle,{cell:e,styleService:t}),pj=({cell:e,styleService:t})=>lj(ij.TextDecoration,{cell:e,styleService:t}),fj=e=>e?"pointer":"default",mj=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},hj=(e,t)=>{if(!e.isLeftColumn||e.representation.type===gs.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},gj=({cell:e,isLeftColumn:t,isCellSelected:n})=>{const{styleService:r,layoutService:o}=iO(),{interactions:i}=nO(),{isActive:a}=tj(),{dataModel:l}=Hz();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const s=!i.active||a||!l,u=uj({cell:e,styleService:r,isCellSelected:n}),d=a?.4:1,c=e.ref.qCanExpand?JN:XN;let p;p=e.ref.qCanExpand?t?l.expandLeft:l.expandTop:t?l.collapseLeft:l.collapseTop;const f=Xz({isLeftColumn:t,layoutService:o,representation:e.representation});return de.jsx(c,{opacity:d,color:u,"data-prevent-selection":!s||void 0,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:s?"default":"pointer",position:"sticky",top:0,...hj(e,r),...f&&{alignSelf:oj(e)}},onClick:s?void 0:mj({cell:e,expandOrCollapse:p})})},bj=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},vj=(e,t,n)=>{if("alwaysFit"===e&&t&&!n)return"fit-content";switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";case"alwaysFit":return n?"unset":"100%";default:return"100%"}},xj=(e,t)=>{if("alwaysFit"===e)switch(null==t?void 0:t.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},_j=({representation:e,canExpandOrCollapse:t,leafCount:n,isLeftColumn:r,styleService:o,layoutService:i,isMeasureCell:a})=>{var l,s;const{isIndentModeEnabled:u,indentModeFeatures:{isImagesSupported:d}}=i,c=Xz({isLeftColumn:r,layoutService:i,representation:e}),p=t?21:0,f=null!==(l=null===(s=e.imageBox)||void 0===s?void 0:s.width)&&void 0!==l?l:24;let m=`calc(100% - ${p}px)`,h=o.headerCellHeight;r&&c&&(m=f),(a||r)&&(h=o.contentCellHeight);let g=h;switch(!r||void 0===n||u&&d||(g=h*Math.max(n,1)),e.imageSize){case"originalSize":return{maxWidth:m,maxHeight:g,...c?{width:m}:{}};case"fitWidth":return{width:m,maxHeight:g};case"fitHeight":return{height:g,maxWidth:m,...c?{width:m}:{}};case"fill":return{height:g,width:m};default:return{width:m,height:h}}},yj=e=>{if("alwaysFit"===e)return"contain"},Sj=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`.trim(),wj=({imageSize:e,resolvedImagePosition:t,isImagesInIndentModeEnabled:n,isMeasureCell:r})=>({width:vj(e,n,r),height:bj(e),objectFit:yj(e),objectPosition:xj(e,t),...n&&"alwaysFit"===e?{"max-width":"100%"}:{}}),Cj=({representation:e,textStyle:t,isMeasureCell:n})=>{const{imageRef:o,onLoad:i}=(()=>{const{downloadService:e}=iO(),t=m(null),{promise:n,resolve:o}=a((()=>VA()),[]);return r((()=>{var r;return e.isDownloadedAsPDForImage&&(e.waitForPromise(n),null!==(r=t.current)&&void 0!==r&&r.complete&&o()),()=>{o()}}),[t,e,n,o]),{onLoad:h((()=>{o()}),[o]),imageRef:t}})(),{layoutService:{isIndentModeEnabled:l,indentModeFeatures:{isImagesSupported:s}}}=iO(),{url:u,text:d,imageSize:c,resolvedImagePosition:p}=e,{overflow:f,...g}=t;return de.jsx("img",{src:u,alt:d,style:{...wj({imageSize:c,resolvedImagePosition:p,isImagesInIndentModeEnabled:l&&s,isMeasureCell:n}),...g},onLoad:i,ref:o})},Ej=({representation:e,textStyle:t,canExpandOrCollapse:n,leafCount:r,isLeftColumn:o=!1,imageContainerHorizontalAlignment:i,isMeasureCell:a})=>{const{styleService:l,layoutService:s}=iO(),{resolvedImagePosition:u}=e;return de.jsx("div",{"data-key":"image-container--image",style:{display:"flex",flexDirection:"column",justifyContent:null==u?void 0:u.vertical,alignItems:i,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",..._j({representation:e,canExpandOrCollapse:n,leafCount:r,styleService:l,layoutService:s,isLeftColumn:o,isMeasureCell:a})},children:de.jsx(Cj,{representation:e,textStyle:t,isMeasureCell:!0})})},Rj=(e,t,n)=>{if(null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"rtl"===n?"flex-end":"flex-start";case"right":return"rtl"===n?"flex-start":"flex-end";default:return t}},kj=(e,t)=>{var n,r;let{textAlign:o}=null!==(n=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==n?n:{};var i;e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex&&({labelTextAlign:o}=null!==(i=t.visibleMeasureInfo.at(e.visibleMeasureInfoIndex))&&void 0!==i?i:{});return null!==(r=o)&&void 0!==r&&r.auto||void 0===o?"left":o.align},Lj={display:"flex",flexDirection:"row",alignItems:"center"},Aj={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},Ij=(e,t,n,r)=>t?{...Aj,...e.nullValues}:n?{...Lj,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...Lj,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},Pj=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...PA,...!n&&MA(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.nullValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}if(r){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.totalValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}const{fontWeight:s,fontStyle:u,textDecoration:d}=e.measureValues;return{...l,fontWeight:void 0===s?wA:s,fontStyle:u,textDecoration:d}},Mj=({cell:e,representation:t,color:n,isTotalValueCell:r,cellHorizontalAlignment:o})=>{const{layoutService:i,styleService:a}=iO(),{isIndentModeEnabled:l,indentModeFeatures:s}=i,u=e.isNull?i.getNullValueText():t.text,d=t.type===gs.Image,c=t.type===gs.Indicator,p=yN(SN(u)),f=Pj(a,n,p,r,e.isNull);if(!l&&d&&!e.isNull||l&&s.isImagesSupported&&d&&!e.isNull)return de.jsx(Ej,{isMeasureCell:!0,textStyle:f,representation:t,imageContainerHorizontalAlignment:o});const m=SN(e.isNull?t.text:e.ref.qNum);return c&&yN(m)?de.jsx(KN,{representation:t,cellValue:m,textStyle:f}):de.jsx("span",{style:{padding:4,direction:p?"ltr":void 0,...f},children:u})},Dj=(e,t)=>{var n,r;return null!==(n=null==e||null===(r=e[t])||void 0===r?void 0:r.visibleMeasureInfoIndex)&&void 0!==n?n:0},Tj="flex-start",Oj=(e,t)=>{return e.isNull?Tj:t.type===gs.Image&&"fill"!==t.imageSize?null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.vertical:Tj;var n},zj=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const{env:i}=nO(),{pageInfo:a,direction:l}=QT(),{styleService:s,layoutService:u}=iO(),{attrExprInfoIndexes:d,gridSectionsData:{measureData:c,leftDimensionData:p,topDimensionData:f},visibleDimensionsInfo:{visibleLeftDimensionInfo:m,visibleTopDimensionInfo:g}}=Hz(),b=(()=>{const{layoutService:{isIndentModeEnabled:e}}=iO(),{gridSectionsData:{leftDimensionData:t,topDimensionData:n},visibleDimensionsInfo:{visibleLeftDimensionInfo:r,visibleTopDimensionInfo:o}}=Hz(),i=r.length,a=o.length;return h(((r,o)=>{var l,s;return!!(null!==(l=n.grid.at(a-1))&&void 0!==l&&null!==(l=l[r])&&void 0!==l&&l.isTotal||null!==(s=t.grid.at(e?0:i-1))&&void 0!==s&&null!==(s=s[o])&&void 0!==s&&s.isTotal)}),[n,t,i,a,e])})(),v=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=Hz(),n=t.length;return h((t=>{var r;const o=null===(r=e.grid.at(n-1))||void 0===r?void 0:r[t];return bN(o,e.totalDividerIndex)}),[e,n])})(),x=(()=>{const{layoutService:{isIndentModeEnabled:e}}=iO(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:n}}=Hz(),r=n.length;return h((n=>{var o;const i=e?0:r-1,a=null===(o=t.grid.at(i))||void 0===o?void 0:o[n];return bN(a,t.totalDividerIndex,e)}),[t,e,r])})(),{showLastBorder:_}=r,y=f.grid.at(g.length-1),S=p.grid.at(m.length-1),{background:w}=s.measureValues,C=null===(o=c[t])||void 0===o?void 0:o[e],E=t===a.rowsOnCurrentPage-1,R=e===u.size.x-1;if(!C)return de.jsx(vN,{style:{...n,background:w},isLastRow:E,isLastColumn:R,showLastBorder:_,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const k=u.hasPseudoDimOnLeft?Dj(S,t):Dj(y,e),L=u.visibleMeasureInfo[k],A=wz({cell:C.ref,representationProperties:L.representation,attrExprInfoIndex:d.measures[k],env:i,direction:l,conditionalColoring:L.conditionalColoring,enabledFeatures:{[gs.Image]:i.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[gs.Indicator]:i.flags.isEnabled("CLIENT_VNA-118_PIVOT_INDICATOR")}}),I=!C.isNull&&b(e,t),P=C.isNull?u.getNullValueText():A.text,M=!C.isNull||!Number.isNaN(+P),D=Cz(d.measures[k],C.ref),T=((e,t,n,r,o)=>{const{textAlign:i}=t,a=r?"flex-end":"center";var l,s;return e.isNull||n.type!==gs.Image?Rj(i,a,o):null!==(l=null===(s=n.resolvedImagePosition)||void 0===s?void 0:s.horizontal)&&void 0!==l?l:"center"})(C,L,A,M,l),O={...Ij(s,C.isNull,I,D.background),...TA(E,R,s.grid.border,l,_),...zA({bottomDivider:x(t),rightDivider:v(e),borderColor:s.grid.divider}),...IA,padding:"0px 4px",display:"flex",justifyContent:T};return de.jsx("div",{className:na,title:P,style:{...O,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:de.jsx(xN,{width:_N(A),verticalAlign:Oj(C,A),children:de.jsx(Mj,{cell:C,representation:A,isTotalValueCell:I,color:D.color,cellHorizontalAlignment:T})})})};var qj=i.memo(zj,nN);const Nj=(e,t)=>{var n,r;return null!==(n=null===(r=t.list[e])||void 0===r?void 0:r.id)&&void 0!==n?n:e.toString()},jj=({columnIndex:e,rowIndex:t,data:n})=>{var r,o;return null!==(r=null===(o=n.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==r?r:`${t}-${e}`},Fj=e=>({...AA,overflow:"hidden",boxSizing:"content-box",borderWidth:"rtl"===e?"1px 1px 0px 0px":"1px 0px 0px 1px"}),$j=({dataGridRef:e,height:t,rowHightCallback:n,width:r,showLastBorder:o,getRightGridColumnWidth:i,verticalScrollDirection:a,horizontalScrollDirection:l})=>{const{pageInfo:s,direction:u}=QT(),{layoutService:c,styleService:{grid:{divider:p},contentCellHeight:f}}=iO(),{dataModel:m,gridSectionsData:{measureData:g}}=Hz(),b={...Fj(u),borderColor:p,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},v=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:n}=QT(),{downloadService:r,viewService:o,layoutService:i}=iO(),{dataModel:a,gridSectionsData:{leftDimensionData:l,topDimensionData:s,measureData:u}}=Hz(),d=l.columnCount,c=s.rowCount;return h((async({overscanColumnStartIndex:l,overscanColumnStopIndex:s,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{o.gridColumnStartIndex=l,o.gridRowStartIndex=p,o.gridWidth=s-l+1,o.gridHeight=f-p+1;const m=o.gridWidth+d+(t.current===Rs.None?0:rN),h=o.gridHeight+c+(e.current===Rs.None?0:rN);let g=hN;h*m>1500&&(g=gN),g(a,i,u,n,o,e,t,r)}),[o,i,a,u,e,t,n,d,c,r])})({verticalScrollDirection:a,horizontalScrollDirection:l});return sI((()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)}),[e,m,g]),d((()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[r,t,e,f,u]),0===c.size.x?null:de.jsx(Wq,{"data-section-id":"DATA_GRID",ref:e,style:b,columnCount:c.size.x,columnWidth:i,height:t,rowCount:s.rowsOnCurrentPage,rowHeight:n,width:r,itemData:{showLastBorder:o,grid:g},onItemsRendered:v,estimatedRowHeight:n(),estimatedColumnWidth:i(),itemKey:jj,direction:u,children:qj})};var Bj=_($j);const Gj=u(((e,t)=>de.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[de.jsx("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),de.jsx("use",{fillRule:"evenodd"})]}))),Wj=e=>{const[t,r]=n(!1);return sI((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},Hj=()=>{const[e,t]=n(!1),{dataModel:r}=Hz(),{interactions:o}=nO(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=Wj([r]);return{open:e,setOpen:t,handleOpenMenu:e=>{!o.active||ZN(e)||i||t(!0)},setIsAdjustingWidth:a}};function Vj(e,t){var n,r;const o=null!==(n=null===(r=t.expressionColor)||void 0===r?void 0:r.background)&&void 0!==n?n:e.dimensionValues.background,i=t.isLeftColumn?e.header.background:o,a=i===RA.Transparent?Dk.WHITE:i,l=Fa(e.grid.border),s=Fa(a);return s.isInvalid()||l.isInvalid()||1===l.a?e.grid.border:function(e,t,n){return Fa(e.r+(t.r-e.r)*n,e.g+(t.g-e.g)*n,e.b+(t.b-e.b)*n,e.a+(t.a-e.a)*n)}(s,l,l.a).getRGB()}const Yj=({cellInfo:e,columnWidth:t,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i,shouldApplyIndentModeColumnWidth:a,tableWidth:l})=>{var s;const{direction:u}=QT(),{interactions:d,translator:c}=nO(),{isActive:p}=tj(),{dataModel:f}=Hz(),{styleService:m}=iO(),[,h]=n({});if(!(e.canBeResized&&!!d.active&&!p))return null;const g=Vj(m,e);return de.jsx(TD,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:g,updateWidthCallback:t=>{h({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>{var n;a?f.applyIndentModeColumnWidth({...t,pixels:Math.min((null!=l?l:0)*Uz,null!==(n=t.pixels)&&void 0!==n?n:0)}):f.applyColumnWidth(t,e)},setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:c,columnLabel:null!==(s=e.label)&&void 0!==s?s:""},direction:u})};function Uj(e){return MP(e)}const Kj=e=>e.scrollTop;function Xj(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Jj(e){return q_("MuiPaper",e)}N_("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Zj=["className","component","elevation","square","variant"],Qj=kD("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return qs({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&qs({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${jP("#fff",ID(t.elevation))}, ${jP("#fff",ID(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),eF=c.forwardRef((function(e,t){const n=Uj({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Ou(n,Zj),u=qs({},n,{component:o,elevation:i,square:a,variant:l}),d=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return jy({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Jj,o)})(u);return de.jsx(Qj,qs({as:o,ownerState:u,className:T_(d.root,r),ref:t},s))}));const tF=N_("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),nF=["center","classes","className"];let rF,oF,iF,aF,lF=e=>e;const sF=sx(rF||(rF=lF`
115
115
  0% {
116
116
  transform: scale(0);
117
117
  opacity: 0.1;
@@ -184,4 +184,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,d,c,p=e.le
184
184
  animation-iteration-count: infinite;
185
185
  animation-delay: 200ms;
186
186
  }
187
- `),tF.rippleVisible,sF,550,(({theme:e})=>e.transitions.easing.easeInOut),tF.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),tF.child,tF.childLeaving,uF,550,(({theme:e})=>e.transitions.easing.easeInOut),tF.childPulsate,dF,(({theme:e})=>e.transitions.easing.easeInOut)),fF=c.forwardRef((function(e,t){const n=Uj({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Ou(n,nF),[l,s]=c.useState([]),u=c.useRef(0),d=c.useRef(null);c.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const p=c.useRef(!1),f=Ly(),m=c.useRef(null),h=c.useRef(null),g=c.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,de.jsx(pF,{classes:{ripple:T_(o.ripple,tF.ripple),rippleVisible:T_(o.rippleVisible,tF.rippleVisible),ripplePulsate:T_(o.ripplePulsate,tF.ripplePulsate),child:T_(o.child,tF.child),childLeaving:T_(o.childLeaving,tF.childLeaving),childPulsate:T_(o.childPulsate,tF.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,d.current=a}),[o]),b=c.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,d,c;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),d=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),d=Math.round(n-s.top)}if(i)c=Math.sqrt((2*s.width**2+s.height**2)/3),c%2==0&&(c+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-d),d)+2;c=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===m.current&&(m.current=()=>{g({pulsate:o,rippleX:u,rippleY:d,rippleSize:c,cb:n})},f.start(80,(()=>{m.current&&(m.current(),m.current=null)}))):g({pulsate:o,rippleX:u,rippleY:d,rippleSize:c,cb:n})}),[r,g,f]),v=c.useCallback((()=>{b({},{pulsate:!0})}),[b]),x=c.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&m.current)return m.current(),m.current=null,void f.start(0,(()=>{x(e,t)}));m.current=null,s((e=>e.length>0?e.slice(1):e)),d.current=t}),[f]);return c.useImperativeHandle(t,(()=>({pulsate:v,start:b,stop:x})),[v,b,x]),de.jsx(cF,qs({className:T_(tF.root,o.root,i),ref:h},a,{children:de.jsx(Vw,{component:null,exit:!0,children:l})}))}));function mF(e){return q_("MuiButtonBase",e)}const hF=N_("MuiButtonBase",["root","disabled","focusVisible"]),gF=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],bF=kD("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${hF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),vF=c.forwardRef((function(e,t){const n=Uj({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:m,onClick:h,onContextMenu:g,onDragLeave:b,onFocus:v,onFocusVisible:x,onKeyDown:_,onKeyUp:y,onMouseDown:S,onMouseLeave:w,onMouseUp:C,onTouchEnd:E,onTouchMove:R,onTouchStart:k,tabIndex:L=0,TouchRippleProps:A,touchRippleRef:I,type:P}=n,M=Ou(n,gF),D=c.useRef(null),T=c.useRef(null),O=Cy(T,I),{isFocusVisibleRef:z,onFocus:q,onBlur:N,ref:j}=qy(),[F,$]=c.useState(!1);s&&F&&$(!1),c.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),D.current.focus()}})),[]);const[B,G]=c.useState(!1);c.useEffect((()=>{G(!0)}),[]);const W=B&&!u&&!s;function H(e,t,n=d){return wy((r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0}))}c.useEffect((()=>{F&&p&&!u&&B&&T.current.pulsate()}),[u,p,F,B]);const V=H("start",S),Y=H("stop",g),U=H("stop",b),K=H("stop",C),X=H("stop",(e=>{F&&e.preventDefault(),w&&w(e)})),J=H("start",k),Z=H("stop",E),Q=H("stop",R),ee=H("stop",(e=>{N(e),!1===z.current&&$(!1),m&&m(e)}),!1),te=wy((e=>{D.current||(D.current=e.currentTarget),q(e),!0===z.current&&($(!0),x&&x(e)),v&&v(e)})),ne=()=>{const e=D.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=c.useRef(!1),oe=wy((e=>{p&&!re.current&&F&&T.current&&" "===e.key&&(re.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),_&&_(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=wy((e=>{p&&" "===e.key&&T.current&&F&&!e.defaultPrevented&&(re.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),y&&y(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(M.href||M.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=s):(M.href||M.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Cy(t,j,D),ue=qs({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:L,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=jy({root:["root",t&&"disabled",n&&"focusVisible"]},mF,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return de.jsxs(bF,qs({as:ae,className:T_(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:L,type:P},le,M,{children:[i,W?de.jsx(fF,qs({ref:O,center:o},A)):null]}))}));function xF(e){return q_("MuiTypography",e)}N_("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const _F=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],yF=kD("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Rx(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>qs({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),SF={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},wF={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},CF=c.forwardRef((function(e,t){const n=Uj({props:e,name:"MuiTypography"}),r=(e=>wF[e]||e)(n.color),o=SP(qs({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:d=!1,variant:c="body1",variantMapping:p=SF}=o,f=Ou(o,_F),m=qs({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:d,variant:c,variantMapping:p}),h=l||(d?"p":p[c]||SF[c])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return jy({root:["root",i,"inherit"!==e.align&&`align${Rx(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},xF,a)})(m);return de.jsx(yF,qs({as:h,ref:t,ownerState:m,className:T_(g.root,a)},f))}));const EF=c.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=c.useState(null),l=Cy(c.isValidElement(n)?Hy(n):null,t);if(uy((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),uy((()=>{if(i&&!o)return vy(t,i),()=>{vy(t,null)}}),[t,i,o]),o){if(c.isValidElement(n)){const e={ref:l};return c.cloneElement(n,e)}return de.jsx(c.Fragment,{children:n})}return de.jsx(c.Fragment,{children:i?S.createPortal(n,i):i})})),RF=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],kF={entering:{opacity:1},entered:{opacity:1}},LF=c.forwardRef((function(e,t){const n=rD(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,style:g,timeout:b=r,TransitionComponent:v=Fw}=e,x=Ou(e,RF),_=c.useRef(null),y=Cy(_,Hy(a),t),S=e=>t=>{if(e){const n=_.current;void 0===t?e(n):e(n,t)}},w=S(p),C=S(((e,t)=>{Kj(e);const r=Xj({style:g,timeout:b,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),E=S(d),R=S(h),k=S((e=>{const t=Xj({style:g,timeout:b,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),L=S(m);return de.jsx(v,qs({appear:i,in:s,nodeRef:_,onEnter:C,onEntered:E,onEntering:w,onExit:k,onExited:L,onExiting:R,addEndListener:e=>{o&&o(_.current,e)},timeout:b},x,{children:(e,t)=>c.cloneElement(a,qs({style:qs({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},kF[e],g,a.props.style),ref:y},t))}))}));function AF(e){return q_("MuiBackdrop",e)}N_("MuiBackdrop",["root","invisible"]);const IF=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],PF=kD("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>qs({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),MF=c.forwardRef((function(e,t){var n,r,o;const i=Uj({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:d={},invisible:c=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=LF,transitionDuration:g}=i,b=Ou(i,IF),v=qs({},i,{component:s,invisible:c}),x=(e=>{const{classes:t,invisible:n}=e;return jy({root:["root",n&&"invisible"]},AF,t)})(v),_=null!=(n=f.root)?n:d.root;return de.jsx(h,qs({in:p,timeout:g},b,{children:de.jsx(PF,qs({"aria-hidden":!0},_,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:T_(x.root,l,null==_?void 0:_.className),ownerState:qs({},v,null==_?void 0:_.ownerState),classes:x,ref:t,children:a}))}))})),DF=N_("MuiBox",["root"]),TF=tD(),OF=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=cx("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(cP);return c.forwardRef((function(e,a){const l=vP(n),s=SP(e),{className:u,component:d="div"}=s,c=Ou(s,CP);return de.jsx(i,qs({as:d,ref:a,className:T_(u,o?o(r):r),theme:t&&l[t]||l},c))}))}({themeId:cI,defaultTheme:TF,defaultClassName:DF.root,generateClassName:M_.generate});function zF(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function qF(e){return parseInt(by(e).getComputedStyle(e).paddingRight,10)||0}function NF(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&zF(e,o)}))}function jF(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function FF(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=gy(e);return t.body===e?by(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Ny(gy(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${qF(r)+e}px`;const t=gy(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${qF(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=gy(r).body;else{const t=r.parentElement,n=by(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const $F=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function BF(e){const t=[],n=[];return Array.from(e.querySelectorAll($F)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function GF(){return!0}function WF(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=BF,isEnabled:a=GF,open:l}=e,s=c.useRef(!1),u=c.useRef(null),d=c.useRef(null),p=c.useRef(null),f=c.useRef(null),m=c.useRef(!1),h=c.useRef(null),g=Cy(Hy(t),h),b=c.useRef(null);c.useEffect((()=>{l&&h.current&&(m.current=!n)}),[n,l]),c.useEffect((()=>{if(!l||!h.current)return;const e=gy(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{o||(p.current&&p.current.focus&&(s.current=!0,p.current.focus()),p.current=null)}}),[l]),c.useEffect((()=>{if(!l||!h.current)return;const e=gy(h.current),t=t=>{b.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,d.current&&d.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==d.current||(n=i(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=b.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=b.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return de.jsxs(c.Fragment,{children:[de.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),de.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const HF=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&zF(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);NF(t,e.mount,e.modalRef,r,!0);const o=jF(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=jF(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=FF(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=jF(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&zF(e.modalRef,t),NF(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&zF(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function VF(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=HF,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:d,rootRef:p}=e,f=c.useRef({}),m=c.useRef(null),h=c.useRef(null),g=Cy(h,p),[b,v]=c.useState(!d),x=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let _=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(_=!1);const y=()=>(f.current.modalRef=h.current,f.current.mount=m.current,f.current),S=()=>{o.mount(y(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},w=wy((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||gy(m.current).body;o.add(y(),e),h.current&&S()})),C=c.useCallback((()=>o.isTopModal(y())),[o]),E=wy((e=>{m.current=e,e&&(d&&C()?S():h.current&&zF(h.current,_))})),R=c.useCallback((()=>{o.remove(y(),_)}),[_,o]);c.useEffect((()=>()=>{R()}),[R]),c.useEffect((()=>{d?w():x&&i||R()}),[d,R,x,i,w]);const k=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},L=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=$y(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=qs({},n,t);return qs({role:"presentation"},r,{onKeyDown:k(r),ref:g})},getBackdropProps:(e={})=>qs({"aria-hidden":!0},e,{onClick:L(e),open:d}),getTransitionProps:()=>({onEnter:my((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:my((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:g,portalRef:E,isTopModal:C,exited:b,hasTransition:x}}function YF(e){return q_("MuiModal",e)}N_("MuiModal",["root","hidden","backdrop"]);const UF=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],KF=kD("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>qs({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),XF=kD(MF,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),JF=c.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Uj({name:"MuiModal",props:e}),{BackdropComponent:u=XF,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:m,container:h,component:g,components:b={},componentsProps:v={},disableAutoFocus:x=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:y=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:C=!1,hideBackdrop:E=!1,keepMounted:R=!1,onBackdropClick:k,open:L,slotProps:A,slots:I}=s,P=Ou(s,UF),M=qs({},s,{closeAfterTransition:f,disableAutoFocus:x,disableEnforceFocus:_,disableEscapeKeyDown:y,disablePortal:S,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:E,keepMounted:R}),{getRootProps:D,getBackdropProps:T,getTransitionProps:O,portalRef:z,isTopModal:q,exited:N,hasTransition:j}=VF(qs({},M,{rootRef:t})),F=qs({},M,{exited:N}),$=(e=>{const{open:t,exited:n,classes:r}=e;return jy({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},YF,r)})(F),B={};if(void 0===m.props.tabIndex&&(B.tabIndex="-1"),j){const{onEnter:e,onExited:t}=O();B.onEnter=e,B.onExited=t}const G=null!=(n=null!=(r=null==I?void 0:I.root)?r:b.Root)?n:KF,W=null!=(o=null!=(i=null==I?void 0:I.backdrop)?i:b.Backdrop)?o:u,H=null!=(a=null==A?void 0:A.root)?a:v.root,V=null!=(l=null==A?void 0:A.backdrop)?l:v.backdrop,Y=Wy({elementType:G,externalSlotProps:H,externalForwardedProps:P,getSlotProps:D,additionalProps:{ref:t,as:g},ownerState:F,className:T_(p,null==H?void 0:H.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),U=Wy({elementType:W,externalSlotProps:V,additionalProps:d,getSlotProps:e=>T(qs({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:T_(null==V?void 0:V.className,null==d?void 0:d.className,null==$?void 0:$.backdrop),ownerState:F});return R||L||j&&!N?de.jsx(EF,{ref:z,container:h,disablePortal:S,children:de.jsxs(G,qs({},Y,{children:[!E&&u?de.jsx(W,qs({},U)):null,de.jsx(WF,{disableEnforceFocus:_,disableAutoFocus:x,disableRestoreFocus:w,isEnabled:q,open:L,children:c.cloneElement(m,B)})]}))}):null})),ZF=N_("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),QF=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function e$(e){return`scale(${e}, ${e**2})`}const t$={entering:{opacity:1,transform:e$(1)},entered:{opacity:1,transform:"none"}},n$="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),r$=c.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:d,onExited:p,onExiting:f,style:m,timeout:h="auto",TransitionComponent:g=Fw}=e,b=Ou(e,QF),v=Ly(),x=c.useRef(),_=rD(),y=c.useRef(null),S=Cy(y,Hy(o),t),w=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},C=w(u),E=w(((e,t)=>{Kj(e);const{duration:n,delay:r,easing:o}=Xj({style:m,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=_.transitions.getAutoHeightDuration(e.clientHeight),x.current=a):a=n,e.style.transition=[_.transitions.create("opacity",{duration:a,delay:r}),_.transitions.create("transform",{duration:n$?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=w(s),k=w(f),L=w((e=>{const{duration:t,delay:n,easing:r}=Xj({style:m,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=_.transitions.getAutoHeightDuration(e.clientHeight),x.current=o):o=t,e.style.transition=[_.transitions.create("opacity",{duration:o,delay:n}),_.transitions.create("transform",{duration:n$?o:.666*o,delay:n$?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=e$(.75),d&&d(e)})),A=w(p);return de.jsx(g,qs({appear:r,in:a,nodeRef:y,onEnter:E,onEntered:R,onEntering:C,onExit:L,onExited:A,onExiting:k,addEndListener:e=>{"auto"===h&&v.start(x.current||0,e),n&&n(y.current,e)},timeout:"auto"===h?null:h},b,{children:(e,t)=>c.cloneElement(o,qs({style:qs({opacity:0,transform:e$(.75),visibility:"exited"!==e||a?void 0:"hidden"},t$[e],m,o.props.style),ref:S},t))}))}));function o$(e){return q_("MuiLink",e)}r$.muiSupportAuto=!0;const i$=N_("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),a$={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},l$=({theme:e,ownerState:t})=>{const n=(e=>a$[e]||e)(t.color),r=_I(e,`palette.${n}`,!1)||t.color,o=_I(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:jP(r,.4)},s$=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],u$=kD(CF,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Rx(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>qs({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&qs({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:l$({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${i$.focusVisible}`]:{outline:"auto"}}))),d$=c.forwardRef((function(e,t){const n=Uj({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:d="inherit",sx:p}=n,f=Ou(n,s$),{isFocusVisibleRef:m,onBlur:h,onFocus:g,ref:b}=qy(),[v,x]=c.useState(!1),_=Cy(t,b),y=qs({},n,{color:o,component:i,focusVisible:v,underline:u,variant:d}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return jy({root:["root",`underline${Rx(o)}`,"button"===n&&"button",r&&"focusVisible"]},o$,t)})(y);return de.jsx(u$,qs({color:o,className:T_(S.root,r),classes:s,component:i,onBlur:e=>{h(e),!1===m.current&&x(!1),a&&a(e)},onFocus:e=>{g(e),!0===m.current&&x(!0),l&&l(e)},ref:_,ownerState:y,variant:d,sx:[...Object.keys(a$).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},f))})),c$=c.createContext({});function p$(e){return q_("MuiList",e)}N_("MuiList",["root","padding","dense","subheader"]);const f$=["children","className","component","dense","disablePadding","subheader"],m$=kD("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>qs({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),h$=c.forwardRef((function(e,t){const n=Uj({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Ou(n,f$),d=c.useMemo((()=>({dense:a})),[a]),p=qs({},n,{component:i,dense:a,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return jy({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},p$,t)})(p);return de.jsx(c$.Provider,{value:d,children:de.jsxs(m$,qs({as:i,className:T_(f.root,o),ref:t,ownerState:p},u,{children:[s,r]}))})})),g$=N_("MuiListItemIcon",["root","alignItemsFlexStart"]),b$=N_("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),v$=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function x$(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function _$(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function y$(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function S$(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&y$(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const w$=c.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:d="selectedMenu"}=e,p=Ou(e,v$),f=c.useRef(null),m=c.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});uy((()=>{r&&f.current.focus()}),[r]),c.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${Ny(gy(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}})),[]);const h=Cy(f,t);let g=-1;c.Children.forEach(i,((e,t)=>{c.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))):g===t&&(g+=1,g>=i.length&&(g=-1))}));const b=c.Children.map(i,((e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),c.cloneElement(e,t)}return e}));return de.jsx(h$,qs({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=f.current,n=e.key,r=gy(t).activeElement;if("ArrowDown"===n)e.preventDefault(),S$(t,r,s,l,x$);else if("ArrowUp"===n)e.preventDefault(),S$(t,r,s,l,_$);else if("Home"===n)e.preventDefault(),S$(t,null,s,l,x$);else if("End"===n)e.preventDefault(),S$(t,null,s,l,_$);else if(1===n.length){const o=m.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&y$(r,o);o.previousKeyMatched&&(s||S$(t,r,!1,l,x$,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},p,{children:b}))}));function C$(e){return q_("MuiPopover",e)}N_("MuiPopover",["root","paper"]);const E$=["onEntering"],R$=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],k$=["slotProps"];function L$(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function A$(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function I$(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function P$(e){return"function"==typeof e?e():e}const M$=kD(JF,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),D$=kD(eF,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),T$=c.forwardRef((function(e,t){var n,r,o;const i=Uj({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:p,className:f,container:m,elevation:h=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:x,slotProps:_,transformOrigin:y={vertical:"top",horizontal:"left"},TransitionComponent:S=r$,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:E=!1}=i,R=Ou(i.TransitionProps,E$),k=Ou(i,R$),L=null!=(n=null==_?void 0:_.paper)?n:v,A=c.useRef(),I=Cy(A,L.ref),P=qs({},i,{anchorOrigin:s,anchorReference:d,elevation:h,marginThreshold:g,externalPaperSlotProps:L,transformOrigin:y,TransitionComponent:S,transitionDuration:w,TransitionProps:R}),M=(e=>{const{classes:t}=e;return jy({root:["root"],paper:["paper"]},C$,t)})(P),D=c.useCallback((()=>{if("anchorPosition"===d)return u;const e=P$(l),t=(e&&1===e.nodeType?e:gy(A.current).body).getBoundingClientRect();return{top:t.top+L$(t,s.vertical),left:t.left+A$(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,d]),T=c.useCallback((e=>({vertical:L$(e,y.vertical),horizontal:A$(e,y.horizontal)})),[y.horizontal,y.vertical]),O=c.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===d)return{top:null,left:null,transformOrigin:I$(n)};const r=D();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=by(P$(l)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,n.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,n.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:I$(n)}}),[l,d,D,T,g]),[z,q]=c.useState(b),N=c.useCallback((()=>{const e=A.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,q(!0)}),[O]);c.useEffect((()=>(E&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N))),[l,E,N]);c.useEffect((()=>{b&&N()})),c.useImperativeHandle(a,(()=>b?{updatePosition:()=>{N()}}:null),[b,N]),c.useEffect((()=>{if(!b)return;const e=hy((()=>{N()})),t=by(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,b,N]);let j=w;"auto"!==w||S.muiSupportAuto||(j=void 0);const F=m||(l?gy(P$(l)).body:void 0),$=null!=(r=null==x?void 0:x.root)?r:M$,B=null!=(o=null==x?void 0:x.paper)?o:D$,G=Wy({elementType:B,externalSlotProps:qs({},L,{style:z?L.style:qs({},L.style,{opacity:0})}),additionalProps:{elevation:h,ref:I},ownerState:P,className:T_(M.paper,null==L?void 0:L.className)}),W=Wy({elementType:$,externalSlotProps:(null==_?void 0:_.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:b},ownerState:P,className:T_(M.root,f)}),{slotProps:H}=W,V=Ou(W,k$);return de.jsx($,qs({},V,!Fy($)&&{slotProps:H,disableScrollLock:E},{children:de.jsx(S,qs({appear:!0,in:b,onEntering:(e,t)=>{C&&C(e,t),N()},onExited:()=>{q(!1)},timeout:j},R,{children:de.jsx(B,qs({},G,{children:p}))}))}))}));function O$(e){return q_("MuiMenu",e)}N_("MuiMenu",["root","paper","list"]);const z$=["onEntering"],q$=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],N$={vertical:"top",horizontal:"right"},j$={vertical:"top",horizontal:"left"},F$=kD(T$,{shouldForwardProp:e=>RD(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$$=kD(D$,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),B$=kD(w$,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),G$=c.forwardRef((function(e,t){var n,r;const o=Uj({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:d,open:p,PaperProps:f={},PopoverClasses:m,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:v={},slotProps:x={}}=o,_=Ou(o.TransitionProps,z$),y=Ou(o,q$),S=(()=>{const e=c.useContext(LP);return null!=e&&e})(),w=qs({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:g,PaperProps:f,transitionDuration:h,TransitionProps:_,variant:b}),C=(e=>{const{classes:t}=e;return jy({root:["root"],paper:["paper"],list:["list"]},O$,t)})(w),E=i&&!s&&p,R=c.useRef(null);let k=-1;c.Children.map(a,((e,t)=>{c.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===k)&&(k=t))}));const L=null!=(n=v.paper)?n:$$,A=null!=(r=x.paper)?r:f,I=Wy({elementType:v.root,externalSlotProps:x.root,ownerState:w,className:[C.root,l]}),P=Wy({elementType:L,externalSlotProps:A,ownerState:w,className:C.paper});return de.jsx(F$,qs({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?N$:j$,slots:{paper:L,root:v.root},slotProps:{root:I,paper:P},open:p,ref:t,transitionDuration:h,TransitionProps:qs({onEntering:(e,t)=>{R.current&&R.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),g&&g(e,t)}},_),ownerState:w},y,{classes:m,children:de.jsx(B$,qs({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:R,autoFocus:i&&(-1===k||s),autoFocusItem:E,variant:b},u,{className:T_(C.list,u.className),children:a}))}))}));function W$(e){return q_("MuiMenuItem",e)}const H$=N_("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),V$=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Y$=kD(vF,{shouldForwardProp:e=>RD(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>qs({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${H$.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:jP(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${H$.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:jP(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${H$.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:jP(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:jP(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${H$.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${H$.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ZF.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ZF.inset}`]:{marginLeft:52},[`& .${b$.root}`]:{marginTop:0,marginBottom:0},[`& .${b$.inset}`]:{paddingLeft:36},[`& .${g$.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&qs({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${g$.root} svg`]:{fontSize:"1.25rem"}})))),U$=c.forwardRef((function(e,t){const n=Uj({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:d,className:p}=n,f=Ou(n,V$),m=c.useContext(c$),h=c.useMemo((()=>({dense:i||m.dense||!1,disableGutters:l})),[m.dense,i,l]),g=c.useRef(null);uy((()=>{r&&g.current&&g.current.focus()}),[r]);const b=qs({},n,{dense:h.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return qs({},a,jy({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},W$,a))})(n),x=Cy(g,t);let _;return n.disabled||(_=void 0!==d?d:-1),de.jsx(c$.Provider,{value:h,children:de.jsx(Y$,qs({ref:x,role:u,tabIndex:_,component:o,focusVisibleClassName:T_(v.focusVisible,s),className:T_(v.root,p)},f,{ownerState:b,classes:v}))})})),K$=kD(OF,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?n:t}}))),X$=kD("div",{shouldForwardProp:e=>!["direction"].includes(e)})((({direction:e})=>({position:"absolute",left:"rtl"!==e?0:void 0,bottom:0}))),J$=kD("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...LA,justifyContent:null!=e?e:LA.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),Z$=kD("div")((()=>({...LA}))),Q$=kD("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:o}))),eB=kD(G$)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),tB=kD(U$,{shouldForwardProp:e=>!["isActive"].includes(e)})((({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:e.spacing(.5),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:t?"rgba(0, 0, 0, 0.05)":"transparent","&:hover":{".indent-mode-dropdown-more":{opacity:1}}}))),nB=kD("span")({textOverflow:"ellipsis",overflow:"hidden"}),rB=kD("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:20,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),oB=kD("span",{shouldForwardProp:e=>!["padding","alignSelf"].includes(e)})((({padding:e,alignSelf:t})=>({padding:e,alignSelf:t,position:"sticky",top:0})));var iB;!function(e){e.Expand="Expand",e.Collapse="Collapse"}(iB||(iB={}));const aB=(e,t)=>({qExcludeList:t===iB.Expand,qPos:{qDimName:e,qElemNo:[]}}),lB=`${sO}/qExpansionState`,sB=({model:e,qExpansionState:t,qEffectiveDimensionName:n,action:r})=>async()=>{const o=(({qEffectiveDimensionName:e,oldExpansionState:t,action:n})=>{const r=null==t?void 0:t.findIndex((t=>{var n;return(null===(n=t.qPos)||void 0===n?void 0:n.qDimName)===e}));return{expansionData:aB(e,n),index:r}})({qEffectiveDimensionName:n,oldExpansionState:t,action:r});await(async({model:e,newExpansionState:t,errorMsg:n})=>{const{index:r,expansionData:o}=t;try{let t,n=lB,i="Add";void 0===r?t=JSON.stringify([o]):-1===r?(n=`${lB}/-`,t=JSON.stringify(o)):(n=`${lB}/${r}`,i="Replace",t=JSON.stringify(o)),await e.applyPatches([{qPath:n,qOp:i,qValue:t}],!0)}catch(e){console.error(n,e)}})({model:e,newExpansionState:o,errorMsg:`Failed to ${r} dimension`})},uB=({model:e,effectivePropertiesService:t,cell:n})=>{if(void 0===n.qEffectiveDimensionName)return;const r={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n.qEffectiveDimensionName};return{expandCallback:sB({...r,action:iB.Expand}),collapseCallback:sB({...r,action:iB.Collapse})}},dB={[vT.Sorting]:!0,[vT.Selections]:!0,[vT.Searching]:!0},cB=({cell:e,style:t,isFirstColumn:n,isLastColumn:r,isLastRow:o,changeSortOrder:i,iconsVisibilityStatus:a,columnWidth:l,overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:u,tableWidth:d})=>{var c;const p=m(null),{styleService:f,layoutService:h,effectivePropertiesService:g}=iO(),{app:b,interactions:v,embed:x,translator:_,model:y}=nO(),{fontSize:S,fontFamily:w,fontStyle:C,fontWeight:E,textDecoration:R,color:k,background:L,hoverBackground:A,activeBackground:I}=f.header,P=m(null),{shouldShowLockIcon:M,shouldShowMenuIcon:D}=a,{open:T,setOpen:O,handleOpenMenu:z,setIsAdjustingWidth:q}=Hj(),{direction:N}=QT(),j={sortFromMenu:async(t,n)=>{t.stopPropagation(),await i(e,n)}},F={embed:x,listboxRef:p,sortCriteria:h.searchSortFromDimension&&e.isDim?g.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},$={app:b,qStateName:h.layout.qStateName},{labelTextAlign:B}=null!==(c=h.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==c?c:{},G=Rj(B,"flex-start",N);return de.jsxs(K$,{className:na,title:e.label,interactions:v,background:T?I:L,hoverBackground:A,shouldShowMenuIcon:D,isDimension:e.isDim,style:{...t,...IA,...OA(e,o,n,r,f.grid.border,N),color:k},"data-testid":"title-cell",onClick:z,children:[de.jsxs(J$,{children:[M?de.jsx(Z$,{children:de.jsx(Gj,{height:12})}):null,de.jsx(Q$,{fontFamily:w,fontSize:S,fontStyle:C,fontWeight:E,textDecoration:R,justifyContent:G,children:de.jsx("span",{style:PA,children:e.label})})]}),e.isDim?de.jsxs(de.Fragment,{children:[de.jsx(yT,{headerData:e,translator:_,anchorRef:P,open:T,setOpen:O,interactions:v,menuAvailabilityFlags:dB,sortRelatedArgs:j,searchRelatedArgs:F,selectionRelatedArgs:$,expandOrCollapseArgs:uB({model:y,effectivePropertiesService:g,cell:e}),shouldShowMenuIcon:D,model:y&&"setActiveField"in y?y:void 0,direction:N}),de.jsx(X$,{ref:p,direction:N}),de.jsx(X$,{ref:P,direction:N})]}):null,de.jsx(Yj,{cellInfo:{...e,isLeftColumn:!0},columnWidth:l,isLastColumn:r,overrideLeftGridWidth:s,setIsAdjustingWidth:q,shouldApplyIndentModeColumnWidth:u,tableWidth:d})]})},pB=({rowSpan:e,columnSpan:t})=>{const{styleService:n}=iO(),{direction:r}=QT();return e>0&&t>0?de.jsx("div",{style:{...AA,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"rtl"===r?"0px 0px 0px 1px":"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null},fB=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}))),mB=u(((e,t)=>de.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[de.jsx("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),de.jsx("use",{fillRule:"evenodd"})]}))),hB=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:n})=>{const{direction:r}=QT(),{styleService:o}=iO(),{interactions:i,translator:a}=nO(),{isActive:l}=tj(),{dataModel:s}=Hz(),{setIsAdjustingWidth:u}=Wj([s]);if(!(!!i.active&&!l))return null;const d=Vj(o,{isLeftColumn:!0});return de.jsx(TD,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:d,columnWidth:t,updateWidthCallback:t=>{n(Math.min(t,e*Uz))},confirmWidthCallback:r=>{var o;if(r.type===aa.FitToContent)return void s.applyIndentModeColumnWidth({type:aa.Auto});const i=Math.min(null!==(o=r.pixels)&&void 0!==o?o:t,e*Uz);n(i),s.applyIndentModeColumnWidth({type:aa.Pixels,pixels:i})},setIsAdjustingWidth:u,accessibilityRelatedArgs:{translator:a,columnLabel:a.get("SNPivotTable.IndentMode.Rows")},direction:r})},gB=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})}))),bB=({cell:e,changeSortOrder:t})=>{const n=m(null),r=m(null),{app:o,interactions:i,embed:a,translator:l,model:s}=nO(),{layoutService:u,effectivePropertiesService:d}=iO(),{open:c,setOpen:p,handleOpenMenu:f}=Hj();return de.jsxs(tB,{onClick:f,isActive:c,children:[de.jsx(nB,{children:e.label}),de.jsxs(rB,{className:"indent-mode-dropdown-more",visible:c,children:[de.jsx(gB,{}),e.isDim?de.jsxs(de.Fragment,{children:[de.jsx(yT,{headerData:e,translator:l,anchorRef:n,open:c,setOpen:p,interactions:i,menuAvailabilityFlags:dB,sortRelatedArgs:{sortFromMenu:async(n,r)=>{n.stopPropagation(),await t(e,r)}},searchRelatedArgs:{embed:a,listboxRef:r},selectionRelatedArgs:{app:o,qStateName:u.layout.qStateName},expandOrCollapseArgs:uB({model:s,effectivePropertiesService:d,cell:e}),shouldShowMenuIcon:!1,model:s&&"setActiveField"in s?s:void 0}),de.jsx(X$,{ref:r}),de.jsx(X$,{ref:n})]}):null]})]})},vB=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{var o,i;const a=(null===(o=n.at(-1))||void 0===o?void 0:o.id)===dO,l=e+1<n.length&&(null===(i=n[e+1])||void 0===i?void 0:i.id)===dO;return!(r&&a&&l)&&((null==t?void 0:t.id)!==dO&&e<n.length-1)},xB=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:r,leftGridWidth:o,tableWidth:i})=>{const{styleService:a}=iO(),{interactions:l,translator:s}=nO(),{dataModel:u,gridSectionsData:{headersData:d}}=Hz(),[c,p]=n(!1),f=m(null),{headerCellHeight:h}=a,{color:g,background:b,hoverBackground:v,activeBackground:x,fontFamily:_,fontSize:y,fontStyle:S,fontWeight:w,textDecoration:C}=a.header,{isAdjustingWidth:E}=Wj([u]),R=e=>{e.stopPropagation()},k={height:h,gridColumn:`1 / span ${d.size.x}`,gridRow:d.size.y,zIndex:d.size.x-0};return de.jsxs(K$,{isDimension:!0,background:c?x:b,interactions:l,hoverBackground:v,style:{...k,...IA,color:g},onClick:e=>{!l.active||ZN(e)||E||p(!c)},"data-testid":"indentModeHeaderCellWrapper",children:[de.jsxs(J$,{justifyContent:"flex-start",children:[de.jsx(Q$,{fontFamily:_,fontSize:y,fontStyle:S,fontWeight:w,textDecoration:C,justifyContent:"flex-start",children:de.jsx("span",{style:PA,children:s.get("SNPivotTable.IndentMode.Rows")})}),c?de.jsx(mB,{}):de.jsx(fB,{}),de.jsx(X$,{ref:f})]}),de.jsx(eB,{open:c,anchorEl:f.current,disableEnforceFocus:!0,children:e.map(((n,r)=>[n&&n.id!==dO&&de.jsx("li",{role:"presentation",onClick:R,onKeyDown:R,children:de.jsx(bB,{cell:n,changeSortOrder:t})}),vB({idx:r,menu:n,menuItems:e,isOnlyOneRow:1===d.size.y})&&de.jsx(jD,{"data-testid":"group-divider",variant:"middle"})]))}),de.jsx(hB,{tableWidth:i,leftGridWidth:o,overrideLeftGridWidth:r})]})},_B=({layoutService:e,headersData:t,topRowIndex:n})=>e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y,yB={display:"grid",width:"fit-content"},SB=({tableWidth:e,leftGridWidth:t,columnWidths:n,rowHight:r,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:l})=>{const{layoutService:s}=iO(),{gridSectionsData:{headersData:u}}=Hz();return de.jsxs("div",{"data-testid":"HEADER_GRID",style:{...yB,gridTemplateColumns:n.map((e=>`${e}px`)).join(" "),gridTemplateRows:u.data.map((()=>`${r}px`)).join(" "),height:a},children:[u.size.y>1&&de.jsx(pB,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map(((a,d)=>{let c=[];if(_B({layoutService:s,headersData:u,topRowIndex:d})){const n=a.at(0);var p;if(Array.isArray(n))c.push(de.jsx(xB,{menuItems:n,changeSortOrder:o,overrideLeftGridWidth:l,leftGridWidth:t,tableWidth:e},null===(p=n.at(0))||void 0===p?void 0:p.id));return c}return c=a.reduce(((t,a,c)=>{if(a&&!Array.isArray(a)){const p=i(c,a.isLocked,a.label),f=s.isIndentModeEnabled&&1===u.size.x;t.push(de.jsx(cB,{style:{width:n[c],height:r,gridColumn:s.isIndentModeEnabled&&u.size.x>1?2:c+1,gridRow:d+1,zIndex:u.size.x-c},isLastRow:d===u.size.y-1,isFirstColumn:0===c,isLastColumn:c===u.size.x-1,changeSortOrder:o,cell:a,iconsVisibilityStatus:p,columnWidth:n[c],overrideLeftGridWidth:l,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t}),[]),c}))]})};var wB=_(SB);const CB=(e,t,n,r)=>{const{layoutService:o}=iO();d((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,n,r,o])},EB=(e,t)=>{sI((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},RB=(e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]},kB=(e,t,n,r,o)=>{var i,a;if(o)return;const l=e.representation,s=Xz({isLeftColumn:n,layoutService:t,representation:l}),u=n?"flex-start":"center",d=null===(i=e.representation.resolvedImagePosition)||void 0===i?void 0:i.horizontal;if(e.representation.type===gs.Image)return s&&d&&"center"!==d&&"rtl"===r?YN(d):null!=d?d:u;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var c;const{labelTextAlign:n}=null!==(c=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==c?c:{};return Rj(n,u,r)}const{textAlign:p}=null!==(a=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==a?a:{};return Rj(p,u,r)},LB=()=>{},AB=({children:e,reactWindowStyle:t,cell:n,data:r,showTotalCellDivider:o,isLastRow:i,isLastColumn:a,isLeftColumn:l,isCellSelected:s,isAdjustingWidth:u,index:d})=>{var c;const{styleService:p,layoutService:f}=iO(),{interactions:m}=nO(),{direction:h}=QT(),{isLocked:g,createMouseDownHandler:b,createMouseOverHandler:v}=tj(),{showLastBorder:x}=r,_=g(n)||n.isLockedByDimension,y=!(_||!m.active||!m.select||n.isEmpty||n.isNull||n.isPseudoDimension||n.isTotal||u),S=y?b(d,(e=>RB(e,r))):void 0,w=y?v(d):void 0,C=Xz({isLeftColumn:l,layoutService:f,representation:n.representation});return de.jsx("div",{className:na,title:m.passive?n.representation.text:void 0,style:{...t,...TA(i,a,p.grid.border,h,x),...zA({bottomDivider:o&&l,rightDivider:o&&!l,borderColor:p.grid.divider}),...IA,padding:"rtl"===h?"0px 0px 0px 4px":"0px 4px",cursor:fj(y),background:sj({styleService:p,isCellSelected:s,cell:n,isCellLocked:_}),zIndex:l?void 0:f.size.x-n.x,justifyContent:kB(n,f,l,h,C),display:"flex",...f.isIndentModeEnabled&&l&&{["rtl"===h?"paddingRight":"paddingLeft"]:Math.max(4,24*(null!==(c=n.indentLevel)&&void 0!==c?c:0))},textAlign:kj(n,f)},"aria-hidden":"true",onMouseDown:S,onMouseOver:w,onKeyUp:LB,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":n.x,"data-page-x":n.pageX,"data-y":n.y,"data-page-y":n.pageY,"data-cell-type":n.ref.qType,"data-dimension-info-index":n.dimensionInfoIndex,children:e})},IB=e=>{e.stopPropagation()},PB=({href:e,text:t,interactions:n,color:r})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:IB,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}}),MB=({href:e,text:t,interactions:n,color:r})=>i.createElement(oR,PB({href:e,text:t,interactions:n,color:r}),t),DB=W();DB.use(G),DB.renderer.prio(["canvas"]);const TB=(e,t)=>e&&"center"!==e&&"rtl"===t?YN(e):e,OB=({cell:e,representation:t,textStyle:n,imageContainerHorizontalAlignment:r})=>{var o,i;const{imageBox:a}=t,{styleService:{grid:{lineClamp:l}}}=iO(),{direction:s}=QT();return de.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${null!==(o=null==a?void 0:a.width)&&void 0!==o?o:24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",boxSizing:"border-box"},children:[de.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:oj(e),alignItems:TB(r,s),overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:null!==(i=null==a?void 0:a.width)&&void 0!==i?i:24,height:"100%"},children:de.jsx(Cj,{representation:t,textStyle:n})}),de.jsx(oB,{padding:4/(l<=2?2:1),alignSelf:oj(e,!0),children:!!t.labelStructure&&Sj(t.labelStructure)})]})},zB=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,qB=({href:e,text:t,labelStructure:n,interactions:r,color:o})=>de.jsxs("span",{children:[de.jsx(d$,{...PB({href:e,text:t,interactions:r,color:o}),children:null!=n&&n.maskedValue?n.maskedValue:null==n?void 0:n.originalValue}),!!n&&zB(n)]}),NB=({children:e,textStyle:t,shouldEnableStickyText:n})=>de.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box",...n&&{alignSelf:"flex-start",position:"sticky",top:0}},children:e}),jB=({cell:e,isCellSelected:t,isLeftColumn:n})=>{const{direction:r}=QT(),{isActive:o}=tj(),{layoutService:i,styleService:a}=iO(),{interactions:l}=nO(),s=i.isIndentModeEnabled&&i.indentModeFeatures.isImagesSupported,u=n&&s;let d=n&&!e.isNull?(e=>{const{representation:{text:t,labelStructure:n}}=e;if(!n||!n.originalValue)return t;const{originalValue:r,maskedValue:o,suffix:i,delimeter:a}=n;return`${0!==o.length?o:r} ${i?a:""} ${i}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const c=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...PA,...MA(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:uj({cell:e,styleService:t,isCellSelected:n}),fontWeight:dj({cell:e,styleService:t}),fontStyle:cj({cell:e,styleService:t}),textDecoration:pj({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:a,isCellSelected:t,isLeftColumn:n});if(e.representation.type===gs.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,o=n&&t&&t.suffix?OB:Ej;return de.jsx(o,{cell:e,representation:e.representation,leafCount:e.leafCount,textStyle:c,isLeftColumn:n,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:kB(e,i,n,r)})}if(e.representation.type===gs.Link&&!o&&!e.isTotal){const t=n&&e.representation.labelStructure?qB:MB;d=de.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:l,color:e.expressionColor.color})}return de.jsx(NB,{shouldEnableStickyText:u,textStyle:{...c,...e.representation.type===gs.Image&&e.isNull?{alignSelf:oj(e)}:{}},children:d})},FB=({index:e,style:t,data:n})=>{const{styleService:r,layoutService:o}=iO(),{isSelected:i}=tj(),{isLeftColumn:a=!1,showLastBorder:l,itemCount:s,isLast:u,totalDividerIndex:d}=n,{isAdjustingWidth:c,setIsAdjustingWidth:p}=Wj([n]),f=RB(e,n),m=a?e===s-1:u,h=a?u:e===s-1,g=bN(f,d,o.isIndentModeEnabled);if(void 0===f){const{background:n}=r.dimensionValues;return de.jsx(vN,{style:{...t,background:n},index:e,isLastRow:m,isLastColumn:h,showLastBorder:l,isLeftColumn:a,showTotalCellDivider:g})}const b=i(f);return de.jsxs(AB,{reactWindowStyle:t,isLeftColumn:a,isLastRow:m,isLastColumn:h,isCellSelected:b,showTotalCellDivider:g,cell:f,data:n,isAdjustingWidth:c,index:e,children:[de.jsxs(xN,{verticalAlign:oj(f),width:_N(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[de.jsx(gj,{isLeftColumn:a,isCellSelected:b,cell:f}),de.jsx(jB,{isLeftColumn:a,isCellSelected:b,cell:f})]}),de.jsx(Yj,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?ws.Measures:ws.Dimension},columnWidth:t.width,isLastColumn:h,setIsAdjustingWidth:p})]})};var $B=i.memo(FB,nN);const BB=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>o=>{var i;const a=n?e[o]:t.at(o);return a&&0===o&&a.x>0?(a.leafCount+a.x+a.distanceToNextCell)*r():!n&&a?(a.leafCount+a.distanceToNextCell)*r():r(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o)},GB=(e,t,n,r)=>{const o=Object.values(e);let i,a=o.length;return r&&(a=n,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},WB=(e,t)=>n=>{e.current&&(e.current[t]=n)},HB={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...AA},VB={overflow:"hidden",willChange:"auto",flexShrink:0},YB=({leftGridRef:e,width:t,height:n,columnWidths:r,showLastBorder:o})=>{const{pageInfo:i,direction:a}=QT(),{layoutService:l,styleService:{contentCellHeight:s,grid:{divider:u}}}=iO(),{qSize:d}=l.layout.qHyperCube,{gridSectionsData:{leftDimensionData:c},visibleDimensionsInfo:{visibleLeftDimensionInfo:p}}=Hz();EB(e,c),CB(e,t,n,s);const f=i.rowsOnCurrentPage*s,m={...HB,borderColor:u,width:r.reduce(((e,t)=>e+t),0)};return de.jsx("div",{style:m,"data-section-id":"LEFT_GRID",children:c.grid.map(((t,u)=>{const m=u===c.columnCount-1,h=bO(p[u]),{itemCount:g,estimatedItemSize:b,listValues:v}=GB(t,f,i.rowsOnCurrentPage,m),x=l.isIndentModeEnabled?()=>s:((e,t,n,r,o)=>i=>{const a=r?e[i]:t.at(i);if(a&&0===i&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if(a&&a.leafCount>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(t,v,s,m,d.qcy);return de.jsx(Zq,{ref:WB(e,u),style:{...VB,flexGrow:m?1:0,direction:a},height:n,width:r[u],itemCount:g,itemSize:x,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:m,itemCount:g,showLastBorder:o,listValues:v,totalDividerIndex:c.totalDividerIndex},itemKey:Nj,estimatedItemSize:b,children:$B},h)}))})};var UB=_(YB);const KB={overflow:"hidden",willChange:"auto"},XB=e=>({...AA,borderWidth:"rtl"===e?"0px 1px 0px 0px":"0px 0px 0px 1px"}),JB=({topGridRef:e,rowHightCallback:t,width:n,height:r,showLastBorder:o,getRightGridColumnWidth:i})=>{const{direction:a}=QT(),{layoutService:l,styleService:{grid:{divider:s},headerCellHeight:u}}=iO(),{gridSectionsData:{headersData:d,topDimensionData:c}}=Hz(),p={...XB(a),borderColor:s,height:r};EB(e,c),CB(e,n,r,u);const f=l.size.x*i();return 0===c.rowCount?de.jsx("div",{style:{width:n,height:r,...XB(a)}}):de.jsx("div",{style:p,"data-section-id":"TOP_GRID",children:c.grid.map(((r,s)=>{const u=s===c.rowCount-1,{itemCount:p,estimatedItemSize:m,listValues:h}=GB(r,f,l.size.x,u),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{const r=t.data.at(n);if(void 0===r)return;const o=t.size.x-1,i=_B({layoutService:e,headersData:t,topRowIndex:n})?0:o,a=r.at(i),l=Array.isArray(a)?a.at(o):a;return l?e.getDimensionInfo(l.dimensionInfoIndex):void 0})({layoutService:l,headersData:d,topRowIndex:s}),b=g?bO(g):`empty ${s}`;return de.jsx(Zq,{ref:WB(e,s),style:KB,height:t(),width:n,itemCount:p,itemSize:BB({list:r,listValues:h,isLastRow:u,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:r,isLast:u,itemCount:p,showLastBorder:o,listValues:h,totalDividerIndex:c.totalDividerIndex},itemKey:Nj,estimatedItemSize:m,direction:a,children:$B},b)}))})};var ZB=_(JB);const QB=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=iO(),n=bq(),o=(()=>{const{model:e}=nO(),t=h((async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(n===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:i,topGridWrapperRef:a,leftGridWrapperRef:l,dataGridWrapperRef:s},gridRefs:{topGridRef:u,leftGridRef:d,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:p,horizontalScrollDirection:f},scrollbarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:b}}=gq(),{leftGridWidth:v,leftGridFullWidth:x,leftGridColumnWidths:_,rightGridFullWidth:y,showLastRightBorder:S,getRightGridColumnWidth:w,getHeaderCellsIconsVisibilityStatus:C,overrideLeftGridWidth:E}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:n}){const{layoutService:o,styleService:i}=iO(),{gridSectionsData:{headersData:a}}=Hz(),{measureText:l}=oI(i.header),s=sq({tableWidth:e}),u=uq({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:s.leftGridWidth}),d=s.leftGridWidth+u.rightGridFullWidth+1<e,c=h(((e,t,n="")=>{let r=e;o.isIndentModeEnabled&&(r=1,1===a.size.x&&(r=0));const i=s.leftGridColumnWidths[r];let u=!1,d=!1,c=l(n)+Yz;return t&&c+20<=i&&(d=!0,c+=20),c+20<=i&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:d}}),[s.leftGridColumnWidths,l,o.isIndentModeEnabled,a.size.x]);return r((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=u.rightGridWidth===u.rightGridFullWidth;e&&t&&n()}),[n,s.leftGridWidth,s.leftGridFullWidth,u.rightGridWidth,u.rightGridFullWidth]),{...s,...u,showLastRightBorder:d,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:n.width,verticalScrollbarWidth:m,resetHorizontalScrollbarHeight:b}),{gridScaffoldDimensions:R,headerGridDims:k,topGridDims:L,leftGridDims:A,dataGridDims:I,metadata:{everyThingFitsInTableRectHeight:P,scrollbarsVisibilityStatus:M}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:n,leftGridOriginalWidth:r,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const l=bq(),{pageInfo:s}=QT(),{gridSectionsData:{headersData:u,topDimensionData:d}}=Hz(),c=Math.min(l.height*Uz,Math.max(l.height*Uz-25,l.height-t-a)),p=l.width*Uz,f=s.rowsOnCurrentPage*t,m=Math.max(u.size.y,d.rowCount,1),h=e*m,g=e*m,b=Math.min(p,n),v=l.width-p,x=Math.max(v,l.width-b),_=Math.min(c,h,g),{availableHeight:y,everyThingFitsInTableRectHeight:S,everyThingFitsInTableRectWidth:w}=((e,t,n)=>{const r=t+1+n+i<=l.width,o=e+1+f+a,s=o-l.height<a||o<=l.height;return{availableHeight:s?o:l.height,everyThingFitsInTableRectHeight:s,everyThingFitsInTableRectWidth:r}})(_,b,x),C=y-c,E=Math.max(C,y-_),R=Math.min(E,f),k=Math.min(E,f),L=h+1+f,{visibilityStatus:A,metadata:{hasLeftGridOverflowX:I,hasDataGridOverflowX:P}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:n},Y_AXIS:{topSectionHeight:r,bottomSectionHeight:o}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:i,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:l,bottomSectionFullHeight:s}}}=e,u=l>r,d=i>t,c=a>n,p=s>o;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:u?"scroll":"hidden"},leftGrid:{overflowX:d?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:c?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:u,hasLeftGridOverflowX:d,hasDataGridOverflowX:c,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:b,rightSectionWidth:x},Y_AXIS:{topSectionHeight:_,bottomSectionHeight:E}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:r,rightSectionFullWidth:o},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:L-g}}});return{gridScaffoldDimensions:{width:l.width,height:l.height,gridTemplateColumns:`${b}px ${x}px`,gridTemplateRows:`${_}px ${E}px`},headerGridDims:{width:-1,height:_},topGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:g},stickyWrapper:{width:x-1-i,height:-1},self:{width:Math.min(o,x)-(w?1:0)-i,height:g}},leftGridDims:{fullSizeWrapper:{width:b,height:L-g+(!I&&P?a:0)},stickyWrapper:{width:b,height:E-1-a},self:{width:b,height:Math.max(t,R-(S?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:L-g+(!P&&I?a:0)},stickyWrapper:{width:x-1-i,height:E-1-a},self:{width:Math.min(o,x)-(w?1:0)-i,height:Math.max(t,k-(S?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:S,scrollbarsVisibilityStatus:A}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:v,leftGridOriginalWidth:x,rightGridOriginalWidth:y},scrollBarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g}}),D=h((()=>e),[e]),T=h((()=>t),[t]);return(()=>{const{downloadService:e}=iO();r((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),de.jsxs(xq,{style:R,children:[de.jsx("div",{style:{overflow:"hidden"},ref:i,children:de.jsx(wB,{tableWidth:n.width,leftGridWidth:v,columnWidths:_,getHeaderCellsIconsVisibilityStatus:C,rowHight:e,height:k.height,changeSortOrder:o,overrideLeftGridWidth:E})}),de.jsx(Sq,{style:M.topGrid,origin:Es.TopGrid,ref:a,children:de.jsx(vq,{style:L.fullSizeWrapper,children:de.jsx(wq,{style:L.stickyWrapper,children:de.jsx(ZB,{topGridRef:u,rowHightCallback:D,...L.self,showLastBorder:{right:S,bottom:!1},getRightGridColumnWidth:w})})})}),de.jsx(Sq,{style:M.leftGrid,origin:Es.LeftGrid,ref:l,children:de.jsx(vq,{style:A.fullSizeWrapper,children:de.jsx(wq,{style:A.stickyWrapper,children:de.jsx(UB,{leftGridRef:d,...A.self,columnWidths:_,showLastBorder:{right:!1,bottom:P}})})})}),de.jsx(Sq,{style:M.dataGrid,origin:Es.DataGrid,ref:s,children:de.jsx(vq,{style:I.fullSizeWrapper,children:de.jsx(wq,{style:I.stickyWrapper,children:de.jsx(Bj,{dataGridRef:c,rowHightCallback:T,...I.self,showLastBorder:{right:S,bottom:P},getRightGridColumnWidth:w,verticalScrollDirection:p,horizontalScrollDirection:f})})})})]})},eG=()=>{const{keyboard:e,theme:t,interactions:n,translator:r}=nO(),{pageInfo:o,updatePageInfo:i,rect:a}=QT(),{layoutService:l}=iO(),{layout:s,hasData:u}=l;return de.jsxs(de.Fragment,{children:[u?de.jsx(QB,{}):null,de.jsx(lO,{}),de.jsx(JT,{paginationNeeded:o.shouldShowPagination,handleChangePage:e=>{i({page:e})},pageInfo:o,totalRowCount:o.totalRowCount,totalColumnCount:0,totalPages:o.totalPages,keyboard:e,translator:r,theme:t,interactions:n,rect:a,layout:s})]})},tG={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},nG=12,rG=14,oG=16,iG=24,aG=3,lG=300,sG=400,uG=600,dG=700,cG={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};var pG='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A';function fG(e){return de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:de.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var mG=function({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return de.jsx("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})};function hG(e={}){return de.jsx(mG,{...e,children:de.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[de.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),de.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function gG(e={}){return de.jsx(mG,{fontSize:"medium",...e,children:de.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[de.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),de.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function bG(e){return de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:de.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function vG(e={}){return de.jsx(mG,{...e,children:de.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:de.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[de.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),de.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function xG(e={}){return de.jsx(mG,{fontSize:"medium",...e,children:de.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:de.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:de.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function _G({className:e}){return de.jsx(mG,{fontSize:"small",className:e,children:de.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:de.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:de.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:de.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[de.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),de.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function yG(e={}){return de.jsx(mG,{...e,children:de.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:de.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:de.jsx("rect",{stroke:tG.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const SG={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:aG,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var wG=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:tG.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:tG.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:de.jsx(fG,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${tG.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:tG.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${tG.MISC_FOCUS_BORDER}`,borderRadius:aG,backgroundColor:tG.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${tG.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:tG.WHITE,color:tG.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:aG},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${tG.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:tG.GREYSCALE_0_15,backgroundColor:tG.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:tG.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${tG.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:tG.GREEN_PALE},"&:active":{backgroundColor:tG.GREEN_DARK},"&.Mui-focusVisible":{borderColor:tG.GREEN_PALE,boxShadow:`0 0 0 3px ${RP(tG.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:tG.BLUE_PALE},"&:active":{backgroundColor:tG.BLUE_DARK},"&.Mui-focusVisible":{borderColor:tG.BLUE_PALE,boxShadow:`0 0 0 3px ${RP(tG.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:aG,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:tG.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${tG.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:tG.GREYSCALE_0_15,backgroundColor:tG.GREYSCALE_100_60,"&:active":{backgroundColor:tG.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:tG.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${tG.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:tG.PURPLE,"&.Mui-focusVisible":{borderColor:tG.PURPLE,boxShadow:`0 0 0 3px ${RP(tG.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:tG.GREEN,"&.Mui-focusVisible":{borderColor:tG.GREEN,boxShadow:`0 0 0 3px ${RP(tG.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:tG.BLUE,"&.Mui-focusVisible":{borderColor:tG.BLUE,boxShadow:`0 0 0 3px ${RP(tG.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:tG.ORANGE,"&.Mui-focusVisible":{borderColor:tG.ORANGE,boxShadow:`0 0 0 3px ${RP(tG.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:tG.RED,"&.Mui-focusVisible":{borderColor:tG.RED,boxShadow:`0 0 0 3px ${RP(tG.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:tG.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:tG.PURPLE_PALE},"&:active":{backgroundColor:tG.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:tG.PURPLE_PALE,boxShadow:`0 0 0 3px ${RP(tG.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:tG.GREEN_PALE},"&:active":{backgroundColor:tG.GREEN_DARK},"&.Mui-focusVisible":{borderColor:tG.GREEN_PALE,boxShadow:`0 0 0 3px ${RP(tG.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:tG.BLUE_PALE},"&:active":{backgroundColor:tG.BLUE_DARK},"&.Mui-focusVisible":{borderColor:tG.BLUE_PALE,boxShadow:`0 0 0 3px ${RP(tG.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:tG.ORANGE_PALE},"&:active":{backgroundColor:tG.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:tG.ORANGE_PALE,boxShadow:`0 0 0 3px ${RP(tG.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:tG.RED_PALE},"&:active":{backgroundColor:tG.RED_DARK},"&.Mui-focusVisible":{borderColor:tG.RED_PALE,boxShadow:`0 0 0 3px ${RP(tG.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:tG.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:tG.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:aG,boxShadow:`inset 0 0 0 2px ${tG.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:de.jsx(bG,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:nG,borderRadius:aG,color:tG.TEXT_PRIMARY,backgroundColor:tG.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:tG.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${tG.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:tG.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:tG.GREYSCALE_0_05,color:tG.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:tG.GREEN,borderColor:tG.GREEN},"&.MuiChip-outlinedInfo":{color:tG.BLUE,borderColor:tG.BLUE},"&.MuiChip-outlinedWarning":{color:tG.ORANGE,borderColor:tG.ORANGE},"&.MuiChip-outlinedError":{color:tG.RED,borderColor:tG.RED}},outlined:{border:`solid 1px ${tG.GREYSCALE_0_15}`,backgroundColor:tG.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:aG,boxShadow:"none",backgroundColor:tG.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:tG.GREEN,borderColor:tG.GREEN},outlinedSecondary:{color:tG.BLUE,borderColor:tG.BLUE},label:{fontFamily:cG.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:de.jsx(bG,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:de.jsx(fG,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:aG},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:aG,fontSize:rG,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:tG.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${tG.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:tG.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:tG.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:tG.GREYSCALE_0_05}}},popupIndicator:{borderRadius:aG,border:`solid 1px ${tG.GREYSCALE_0_15}`,color:tG.GREYSCALE_0_60,marginRight:0,width:iG,height:iG},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${tG.GREYSCALE_0_15}`},clearIndicator:{borderRadius:aG,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:tG.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:rG}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:nG,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:tG.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:tG.GREYSCALE_25,fontSize:nG,fontFamily:cG.FONT_FAMILY,fontWeight:uG,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:tG.TEXT_PRIMARY},"&.Mui-error":{color:tG.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:tG.TEXT_SECONDARY,content:"'(optional)'",fontWeight:sG,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:tG.TEXT_SECONDARY,content:"'(required)'",fontWeight:sG,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:rG,lineHeight:"16px",backgroundColor:tG.WHITE,borderRadius:aG,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${tG.GREYSCALE_0_05}`,borderColor:tG.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${tG.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${tG.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${tG.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${tG.RED}`,boxShadow:`0px 0px 0px 1px ${tG.RED}, inset 0 2px 0 0 ${tG.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${tG.GREYSCALE_0_10}`,borderColor:tG.GREYSCALE_0_10,backgroundColor:tG.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:tG.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:tG.GREYSCALE_0_15,borderRadius:aG,boxShadow:`inset 0 2px 0 0 ${tG.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>de.jsx(fG,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:tG.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:tG.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:tG.GREYSCALE_0_03},"&:active":{backgroundColor:tG.GREYSCALE_0_10},"&:focus":{backgroundColor:tG.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${tG.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${tG.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:tG.GREYSCALE_0_30,"&:hover":{backgroundColor:tG.GREYSCALE_0_0,borderColor:tG.GREYSCALE_0_15},"& ~svg":{color:tG.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${tG.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:aG}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:tG.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${tG.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:tG.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:rG,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:nG,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:nG,fontWeight:uG,color:tG.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:uG}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${tG.GREYSCALE_0_15}, 0px 0px 0px 1px ${tG.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:de.jsx(xG,{}),checkedIcon:de.jsx(gG,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:tG.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${tG.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:tG.GREEN_PALE,boxShadow:`0 0 0 3px ${RP(tG.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:tG.BLUE_PALE,boxShadow:`0 0 0 3px ${RP(tG.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:tG.GREYSCALE_0_20}},"&.Mui-disabled":{fill:tG.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:de.jsx(yG,{}),checkedIcon:de.jsx(hG,{}),indeterminateIcon:de.jsx(vG,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:aG,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:tG.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:tG.GREYSCALE_0_55,color:tG.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:tG.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:tG.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:tG.GREYSCALE_0_55,"&:hover":{color:tG.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:tG.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:tG.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:rG,color:tG.TEXT_PRIMARY,lineHeight:"16px",fontWeight:uG},secondary:{fontSize:nG,color:tG.GREYSCALE_45,fontWeight:sG,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:rG,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:rG,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:tG.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:nG,borderBottom:`solid 1px ${tG.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:rG,color:tG.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:tG.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:tG.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:tG.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:`url('${pG}')`,fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:tG.RED}}},"&.Mui-focusVisible":{backgroundColor:tG.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:tG.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:tG.GREEN,height:"24px","&.Mui-disabled":{color:tG.GREYSCALE_0_15}},rail:{backgroundColor:tG.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${tG.GREYSCALE_0_05}`,borderRadius:aG,boxShadow:`inset 0px 0px 0px 1px ${tG.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${tG.GREYSCALE_0_05}`,borderRadius:aG},thumb:{height:"16px",width:"16px",borderRadius:aG,backgroundColor:tG.WHITE,boxShadow:`0px 1px 2px 0px ${tG.GREYSCALE_0_15}, 0px 0px 0px 1px ${tG.GREYSCALE_0_05}`,"&:hover":{borderRadius:aG,boxShadow:`0 2px 4px 0 ${tG.GREYSCALE_0_30}, 0 0 0 1px ${tG.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${tG.GREYSCALE_0_15}, 0 0 0 1px ${tG.GREYSCALE_0_06}, 0 0 0 2px ${tG.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${tG.GREYSCALE_0_15}, 0 0 0 1px ${tG.GREYSCALE_0_06}, 0 0 0 2px ${tG.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:tG.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:tG.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:tG.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:tG.GREYSCALE_0_15},markLabel:{color:tG.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:tG.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:tG.WHITE,color:tG.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:tG.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:tG.GREEN_PALE,boxShadow:`0 0 0 3px ${RP(tG.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:tG.BLUE_PALE,boxShadow:`0 0 0 3px ${RP(tG.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:tG.GREYSCALE_0_15,borderRadius:aG},thumb:{height:"16px",width:"16px",borderRadius:aG,backgroundColor:tG.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:rG,fontWeight:uG,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${tG.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${tG.MISC_FOCUS_BORDER}`,backgroundColor:tG.GREYSCALE_0_03,borderRadius:aG},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:tG.GREYSCALE_25,"&.Mui-selected":{color:tG.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:rG,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:aG,"&:hover":{backgroundColor:tG.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${tG.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${tG.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:aG,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:tG.GREYSCALE_0_05},"&:hover":{backgroundColor:tG.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${tG.GREYSCALE_85}`,borderRight:`1px solid ${tG.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:uG,backgroundColor:tG.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:tG.GREYSCALE_98,borderBottom:`1px solid ${tG.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${tG.GREYSCALE_85}`,borderTop:`1px solid ${tG.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:tG.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:tG.GREYSCALE_0_05,"&:hover":{backgroundColor:tG.GREYSCALE_0_03}},"&&:hover":{backgroundColor:tG.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>de.jsx(_G,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${tG.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:rG,borderRadius:aG,padding:"7px 16px",border:`1px solid ${tG.GREYSCALE_0_15}`,backgroundColor:tG.GREYSCALE_100_60,color:tG.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:tG.GREYSCALE_0_10,border:`1px solid ${tG.GREYSCALE_0_30}`},"&:hover":{backgroundColor:tG.GREYSCALE_0_03,border:`1px solid ${tG.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:tG.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${tG.MISC_FOCUS_BORDER}`,border:`1px solid ${tG.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:tG.GREYSCALE_25,backgroundColor:tG.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:tG.GREYSCALE_0_10,border:`1px solid ${tG.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:nG,height:24,width:24,padding:7},sizeLarge:{fontSize:oG,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:rG,borderRadius:aG}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:tG.GREYSCALE_20},tooltip:{backgroundColor:tG.GREYSCALE_20,fontSize:nG,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...SG}:{}});var CG=()=>({mode:"light",primary:{ultraLight:tG.GREEN_ULTRA_LIGHT,light:tG.GREEN_PALE,main:tG.GREEN,dark:tG.GREEN_DARK,extraDark:tG.GREEN_EXTRA_DARK,contrastText:tG.WHITE},secondary:{ultraLight:tG.BLUE_ULTRA_LIGHT,light:tG.BLUE_PALE,main:tG.BLUE,dark:tG.BLUE_DARK,extraDark:tG.BLUE_EXTRA_DARK,contrastText:tG.WHITE},error:{ultraLight:tG.RED_ULTRA_LIGHT,light:tG.RED_PALE,main:tG.RED,dark:tG.RED_DARK,extraDark:tG.RED_EXTRA_DARK,contrastText:tG.WHITE},warning:{ultraLight:tG.ORANGE_ULTRA_LIGHT,light:tG.ORANGE_PALE,main:tG.ORANGE,dark:tG.ORANGE_DARK,extraDark:tG.ORANGE_EXTRA_DARK,contrastText:tG.WHITE},success:{ultraLight:tG.GREEN_ULTRA_LIGHT,light:tG.GREEN_PALE,main:tG.GREEN,dark:tG.GREEN_DARK,extraDark:tG.GREEN_EXTRA_DARK,contrastText:tG.WHITE},info:{ultraLight:tG.BLUE_ULTRA_LIGHT,light:tG.BLUE_PALE,main:tG.BLUE,dark:tG.BLUE_DARK,extraDark:tG.BLUE_EXTRA_DARK,contrastText:tG.WHITE},text:{primary:tG.TEXT_PRIMARY,secondary:tG.TEXT_SECONDARY,disabled:tG.GREYSCALE_0_30},action:{hover:tG.GREYSCALE_0_03,hoverOpacity:.03,selected:tG.GREYSCALE_0_05,selectedOpacity:.05,focus:tG.MISC_FOCUS_BORDER},amethyst:{ultraLight:tG.WHITE,main:tG.PURPLE,light:tG.PURPLE_PALE,dark:tG.PURPLE_DARK,extraDark:tG.GREYSCALE_0_0,contrastText:tG.WHITE},background:{paper:tG.WHITE,default:tG.GREYSCALE_95},divider:tG.GREYSCALE_0_15});var EG=e=>CG();var RG=(e,t=!1)=>{const n=((e,t)=>wG(t))(0,t);return{components:n,palette:EG(e),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:rG,fontWeightLight:lG,fontWeightRegular:sG,fontWeightMedium:uG,fontWeightBold:dG,htmlFontSize:rG,fontFamily:cG.FONT_FAMILY,button:{fontWeight:uG,fontSize:rG,textTransform:"none"},body1:{fontSize:oG,lineHeight:"24px"},body2:{fontSize:rG,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:iG,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:oG,fontWeight:uG,lineHeight:"16px"},h6:{fontSize:rG,fontWeight:uG,lineHeight:"16px"},caption:{color:tG.TEXT_SECONDARY},subtitle1:{fontSize:rG,color:tG.TEXT_SECONDARY},subtitle2:{fontSize:nG,color:tG.TEXT_SECONDARY}},shape:{borderRadius:aG}}},kG={},LG={exports:{}},AG={exports:{}};!function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(AG);var IG=AG.exports;!function(e){var t=IG.default;function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}e.exports=function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=t(e)&&"function"!=typeof e)return{default:e};var o=n(r);if(o&&o.has(e))return o.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var s=a?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(i,l,s):i[l]=e[l]}return i.default=e,o&&o.set(e,i),i},e.exports.__esModule=!0,e.exports.default=e.exports}(LG);var PG=LG.exports,MG={},DG=ee(Mu);Object.defineProperty(MG,"__esModule",{value:!0}),MG.hexToRgb=zG,MG.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=NG(e),n=t.values;return"#".concat(n.map((function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)})).join(""))},MG.hslToRgb=qG,MG.decomposeColor=NG,MG.recomposeColor=jG,MG.getContrastRatio=function(e,t){var n=FG(e),r=FG(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},MG.getLuminance=FG,MG.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return FG(e)>.5?BG(e,t):GG(e,t)},MG.fade=function(e,t){return $G(e,t)},MG.alpha=$G,MG.darken=BG,MG.lighten=GG;var TG=DG;function OG(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function zG(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function qG(e){var t=(e=NG(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),jG({type:l,values:s})}function NG(e){if(e.type)return e;if("#"===e.charAt(0))return NG(zG(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,TG.formatMuiErrorMessage)(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function jG(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function FG(e){var t="hsl"===(e=NG(e)).type?NG(qG(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function $G(e,t){return e=NG(e),t=OG(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,jG(e)}function BG(e,t){if(e=NG(e),t=OG(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return jG(e)}function GG(e,t){if(e=NG(e),t=OG(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return jG(e)}var WG,HG,VG,YG={},UG={exports:{}},KG={exports:{}},XG={exports:{}};function JG(){return WG||(WG=1,function(e){var t=IG.default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(XG)),XG.exports}function ZG(){return HG||(HG=1,function(e){var t=IG.default,n=JG();e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(KG)),KG.exports}function QG(){return VG||(VG=1,function(e){var t=ZG();e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(UG)),UG.exports}var eW,tW={exports:{}};function nW(){return eW||(eW=1,function(e){var t=JS();e.exports=function(e,n){if(null==e)return{};var r,o,i=t(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],n.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(tW)),tW.exports}var rW,oW={};var iW,aW={};var lW,sW={},uW={};var dW,cW={};var pW,fW={};var mW,hW={};var gW,bW={};var vW,xW={};var _W,yW={};var SW,wW,CW={};function EW(){if(wW)return sW;wW=1;var e=nS;Object.defineProperty(sW,"__esModule",{value:!0}),sW.default=function(e){var g=e.primary,b=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,v=e.secondary,x=void 0===v?{light:l.default.A200,main:l.default.A400,dark:l.default.A700}:v,_=e.error,y=void 0===_?{light:s.default[300],main:s.default[500],dark:s.default[700]}:_,S=e.warning,w=void 0===S?{light:u.default[300],main:u.default[500],dark:u.default[700]}:S,C=e.info,E=void 0===C?{light:d.default[300],main:d.default[500],dark:d.default[700]}:C,R=e.success,k=void 0===R?{light:c.default[300],main:c.default[500],dark:c.default[700]}:R,L=e.type,A=void 0===L?"light":L,I=e.contrastThreshold,P=void 0===I?3:I,M=e.tonalOffset,D=void 0===M?.2:M,T=(0,n.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function O(e){return(0,p.getContrastRatio)(e,m.text.primary)>=P?m.text.primary:f.text.primary}var z=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[n]&&(e.main=e[n]),!e.main)throw new Error((0,r.formatMuiErrorMessage)(4,n));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return h(e,"light",o,D),h(e,"dark",i,D),e.contrastText||(e.contrastText=O(e.main)),e},q={dark:m,light:f},N=(0,r.deepmerge)((0,t.default)({common:o.default,type:A,primary:z(b),secondary:z(x,"A400","A200","A700"),error:z(y),warning:z(w),info:z(E),success:z(k),grey:i.default,contrastThreshold:P,getContrastText:O,augmentColor:z,tonalOffset:D},q[A]),T);return N},sW.dark=sW.light=void 0;var t=e(US()),n=e(nW()),r=DG,o=e(function(){if(lW)return uW;lW=1,Object.defineProperty(uW,"__esModule",{value:!0}),uW.default=void 0;var e={black:"#000",white:"#fff"};return uW.default=e,uW}()),i=e(function(){if(dW)return cW;dW=1,Object.defineProperty(cW,"__esModule",{value:!0}),cW.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return cW.default=e,cW}()),a=e(function(){if(pW)return fW;pW=1,Object.defineProperty(fW,"__esModule",{value:!0}),fW.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return fW.default=e,fW}()),l=e(function(){if(mW)return hW;mW=1,Object.defineProperty(hW,"__esModule",{value:!0}),hW.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return hW.default=e,hW}()),s=e(function(){if(gW)return bW;gW=1,Object.defineProperty(bW,"__esModule",{value:!0}),bW.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return bW.default=e,bW}()),u=e(function(){if(vW)return xW;vW=1,Object.defineProperty(xW,"__esModule",{value:!0}),xW.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return xW.default=e,xW}()),d=e(function(){if(_W)return yW;_W=1,Object.defineProperty(yW,"__esModule",{value:!0}),yW.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return yW.default=e,yW}()),c=e(function(){if(SW)return CW;SW=1,Object.defineProperty(CW,"__esModule",{value:!0}),CW.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return CW.default=e,CW}()),p=MG,f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};sW.light=f;var m={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function h(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return sW.dark=m,sW}var RW,kW={};var LW,AW={};var IW,PW={};var MW,DW={},TW=ee(bc);var OW,zW={};function qW(){if(OW)return zW;OW=1;var e=nS;Object.defineProperty(zW,"__esModule",{value:!0}),zW.default=zW.duration=zW.easing=void 0;var t=e(nW()),n={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};zW.easing=n;var r={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}zW.duration=r;var i={easing:n,duration:r,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,l=void 0===a?r.standard:a,s=i.easing,u=void 0===s?n.easeInOut:s,d=i.delay,c=void 0===d?0:d;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof l?l:o(l)," ").concat(u," ").concat("string"==typeof c?c:o(c))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return zW.default=i,zW}var NW,jW,FW={};function $W(){if(jW)return YG;jW=1;var e=nS;Object.defineProperty(YG,"__esModule",{value:!0}),YG.createMuiTheme=function(){return p.apply(void 0,arguments)},YG.default=void 0,e(QG());var t=e(nW()),n=DG,r=e(function(){if(rW)return oW;rW=1;var e=nS;Object.defineProperty(oW,"__esModule",{value:!0}),oW.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,l=void 0===a?"px":a,s=e.step,u=void 0===s?5:s,d=(0,n.default)(e,["values","unit","step"]);function c(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(l,")")}function p(e,t){var n=r.indexOf(t);return n===r.length-1?c(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(l,") and ")+"(max-width:".concat((-1!==n&&"number"==typeof i[r[n+1]]?i[r[n+1]]:t)-u/100).concat(l,")")}return(0,t.default)({keys:r,values:i,up:c,down:function(e){var t=r.indexOf(e)+1,n=i[r[t]];return t===r.length?c("xs"):"@media (max-width:".concat(("number"==typeof n&&t>0?n:e)-u/100).concat(l,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},d)},oW.keys=void 0;var t=e(US()),n=e(nW()),r=["xs","sm","md","lg","xl"];return oW.keys=r,oW}()),o=e(function(){if(iW)return aW;iW=1;var e=nS;Object.defineProperty(aW,"__esModule",{value:!0}),aW.default=function(e,r,o){var i;return(0,n.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,n.default)({paddingLeft:r(2),paddingRight:r(2)},o,(0,t.default)({},e.up("sm"),(0,n.default)({paddingLeft:r(3),paddingRight:r(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(QG()),n=e(US());return aW}()),i=e(EW()),a=e(function(){if(RW)return kW;RW=1;var e=nS;Object.defineProperty(kW,"__esModule",{value:!0}),kW.default=function(e,s){var u="function"==typeof s?s(e):s,d=u.fontFamily,c=void 0===d?l:d,p=u.fontSize,f=void 0===p?14:p,m=u.fontWeightLight,h=void 0===m?300:m,g=u.fontWeightRegular,b=void 0===g?400:g,v=u.fontWeightMedium,x=void 0===v?500:v,_=u.fontWeightBold,y=void 0===_?700:_,S=u.htmlFontSize,w=void 0===S?16:S,C=u.allVariants,E=u.pxToRem,R=(0,n.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),k=f/14,L=E||function(e){return"".concat(e/w*k,"rem")},A=function(e,n,r,i,a){return(0,t.default)({fontFamily:c,fontWeight:e,fontSize:L(n),lineHeight:r},c===l?{letterSpacing:"".concat(o(i/n),"em")}:{},a,C)},I={h1:A(h,96,1.167,-1.5),h2:A(h,60,1.2,-.5),h3:A(b,48,1.167,0),h4:A(b,34,1.235,.25),h5:A(b,24,1.334,0),h6:A(x,20,1.6,.15),subtitle1:A(b,16,1.75,.15),subtitle2:A(x,14,1.57,.1),body1:A(b,16,1.5,.15),body2:A(b,14,1.43,.15),button:A(x,14,1.75,.4,a),caption:A(b,12,1.66,.4),overline:A(b,12,2.66,1,a)};return(0,r.deepmerge)((0,t.default)({htmlFontSize:w,pxToRem:L,round:i,fontFamily:c,fontSize:f,fontWeightLight:h,fontWeightRegular:b,fontWeightMedium:x,fontWeightBold:y},I),R,{clone:!1})};var t=e(US()),n=e(nW()),r=DG;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},l='"Roboto", "Helvetica", "Arial", sans-serif';return kW}()),l=e(function(){if(LW)return AW;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}LW=1,Object.defineProperty(AW,"__esModule",{value:!0}),AW.default=void 0;var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return AW.default=t,AW}()),s=e(function(){if(IW)return PW;IW=1,Object.defineProperty(PW,"__esModule",{value:!0}),PW.default=void 0;var e={borderRadius:4};return PW.default=e,PW}()),u=e(function(){if(MW)return DW;MW=1,Object.defineProperty(DW,"__esModule",{value:!0}),DW.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var n=(0,e.createUnarySpacing)({spacing:t}),r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?n(1):1===t.length?n(t[0]):t.map((function(e){if("string"==typeof e)return e;var t=n(e);return"number"==typeof t?"".concat(t,"px"):t})).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return t}}),r.mui=!0,r};var e=TW;return DW}()),d=e(qW()),c=e(function(){if(NW)return FW;NW=1,Object.defineProperty(FW,"__esModule",{value:!0}),FW.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return FW.default=e,FW}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,m=e.mixins,h=void 0===m?{}:m,g=e.palette,b=void 0===g?{}:g,v=e.spacing,x=e.typography,_=void 0===x?{}:x,y=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),S=(0,i.default)(b),w=(0,r.default)(f),C=(0,u.default)(v),E=(0,n.deepmerge)({breakpoints:w,direction:"ltr",mixins:(0,o.default)(w,C,h),overrides:{},palette:S,props:{},shadows:l.default,typography:(0,a.default)(S,_),spacing:C,shape:s.default,transitions:d.default,zIndex:c.default},y),R=arguments.length,k=new Array(R>1?R-1:0),L=1;L<R;L++)k[L-1]=arguments[L];return E=k.reduce((function(e,t){return(0,n.deepmerge)(e,t)}),E)}var f=p;return YG.default=f,YG}var BW,GW={};var WW,HW={},VW=ee(bh);var YW,UW,KW={},XW={};function JW(){if(YW)return XW;YW=1;var e=nS;Object.defineProperty(XW,"__esModule",{value:!0}),XW.default=void 0;var t=(0,e($W()).default)();return XW.default=t,XW}var ZW,QW,eH={},tH={};function nH(){if(QW)return eH;QW=1;var e=nS;Object.defineProperty(eH,"__esModule",{value:!0}),eH.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,l=o.disableAlign,s=void 0!==l&&l,u=o.factor,d=void 0===u?2:u,c=o.variants,p=void 0===c?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:c,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var m=f.typography,h=(0,r.convertLength)(m.htmlFontSize),g=a.map((function(e){return f.breakpoints.values[e]}));return p.forEach((function(e){var o=m[e],i=parseFloat(h(o.fontSize,"rem"));if(!(i<=1)){var a=i,l=1+(a-1)/d,u=o.lineHeight;if(!(0,r.isUnitless)(u)&&!s)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(u)||(u=parseFloat(h(u,"rem"))/parseFloat(i));var c=null;s||(c=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:m.htmlFontSize})})}),m[e]=(0,t.default)({},o,(0,r.responsiveProperty)({cssProperty:"fontSize",min:l,max:a,unit:"rem",breakpoints:g,transform:c}))}})),f};var t=e(US()),n=DG,r=function(){if(ZW)return tH;ZW=1;var e=nS;Object.defineProperty(tH,"__esModule",{value:!0}),tH.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},tH.getUnit=n,tH.toUnitless=r,tH.convertLength=function(e){return function(t,o){var i=n(t);if(i===o)return t;var a=r(t);if("px"!==i)if("em"===i)a=r(t)*r(e);else if("rem"===i)return a=r(t)*r(e),t;var l=a;if("px"!==o)if("em"===o)l=a/r(e);else{if("rem"!==o)return t;l=a/r(e)}return parseFloat(l.toFixed(5))+o}},tH.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},tH.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},tH.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,l=e.breakpoints,s=void 0===l?[600,960,1280]:l,u=e.transform,d=void 0===u?null:u,c=(0,t.default)({},n,"".concat(r).concat(a)),p=(o-r)/s[s.length-1];return s.forEach((function(e){var o=r+p*e;null!==d&&(o=d(o)),c["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*o)/1e4).concat(a))})),c};var t=e(QG());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return tH}();return eH}var rH,oH={};var iH,aH={};var lH,sH={};var uH,dH={};!function(e){var t=nS,n=PG;Object.defineProperty(e,"__esModule",{value:!0});var r={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return a.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return g.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return g.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return g.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return g.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}});var o=MG;Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))}));var a=n($W()),l=t(function(){if(BW)return GW;BW=1;var e=nS;Object.defineProperty(GW,"__esModule",{value:!0}),GW.default=function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=DG,n=e($W());return GW}()),s=t(function(){if(WW)return HW;WW=1,Object.defineProperty(HW,"__esModule",{value:!0}),HW.default=function(t){return(0,e.createStyles)(t)};var e=VW;return HW}()),u=t(function(){if(UW)return KW;UW=1;var e=nS;Object.defineProperty(KW,"__esModule",{value:!0}),KW.default=void 0;var t=e(US()),n=VW,r=e(JW()),o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.makeStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return KW.default=o,KW}()),d=t(nH()),c=t(function(){if(rH)return oH;rH=1;var e=nS;Object.defineProperty(oH,"__esModule",{value:!0}),oH.default=void 0;var t=e(US()),n=VW,r=e(JW()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return oH.default=o,oH}()),p=qW();Object.keys(p).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[t]}}))}));var f=t(function(){if(iH)return aH;iH=1;var e=nS;Object.defineProperty(aH,"__esModule",{value:!0}),aH.default=function(){return(0,t.useTheme)()||n.default};var t=VW;e(i);var n=e(JW());return aH}()),m=t(function(){if(lH)return sH;lH=1;var e=nS;Object.defineProperty(sH,"__esModule",{value:!0}),sH.default=void 0;var t=e(US()),n=VW,r=e(JW()),o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return sH.default=o,sH}()),h=t(function(){if(uH)return dH;uH=1;var e=nS;Object.defineProperty(dH,"__esModule",{value:!0}),dH.default=void 0;var t=VW,n=e(JW()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return dH.default=r,dH}()),g=VW}(kG);var cH=Object.defineProperty,pH=(e,t)=>{for(var n in t)cH(e,n,{get:t[n],enumerable:!0})};pH({},{light:()=>fH});const fH={root:{backgroundColor:tG.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&$expanded":{margin:"0px"}}};pH({},{light:()=>mH});const mH={root:{backgroundColor:tG.WHITE}};pH({},{light:()=>hH});const hH={root:{padding:"0px 16px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${tG.GREYSCALE_0_15}`,"&$focused":{borderColor:tG.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${tG.MISC_FOCUS_BORDER}`,borderRadius:aG,backgroundColor:tG.GREYSCALE_0_03},"&$expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis"}};pH({},{light:()=>gH});const gH={root:{flex:"0 0 48px",flexDirection:"row",boxShadow:`inset 0 -1px 0 0 ${tG.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:tG.WHITE,color:tG.TEXT_PRIMARY}};pH({},{light:()=>bH});const bH={inputRoot:{boxSizing:"border-box",borderRadius:aG,"&&":{padding:0},"&&& input":{padding:"8px 4px"},"&&& $endAdornment":{right:4}},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:rG,height:"32px",'&[data-focus="true"]':{backgroundColor:tG.GREYSCALE_0_03}},endAdornment:{top:"auto",bottom:"4px",position:"absolute"},popupIndicator:{borderRadius:aG,border:`solid 1px ${tG.GREYSCALE_0_15}`,color:tG.GREYSCALE_0_60,marginRight:0,width:iG,height:iG,"& svg":{fontSize:"0.7em"},"& i":{lineHeight:"1 !important"}},paper:{marginTop:"5px",boxShadow:`0px 2px 4px 0px ${tG.GREYSCALE_0_15}`},clearIndicator:{"& svg":{fontSize:"0.5em",position:"absolute"},color:tG.GREYSCALE_25,width:oG,height:iG,borderRadius:aG,backgroundColor:"unset",marginRight:"4px","&&&&:hover":{backgroundColor:kG.alpha(tG.GREYSCALE_0,.05)}},popupIndicatorOpen:{backgroundColor:tG.GREYSCALE_0_10}};pH({},{light:()=>vH});const vH={badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}};pH({},{light:()=>xH});const xH={root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:aG,"& > $label > i:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:tG.GREYSCALE_0_10},"&$focusVisible":{boxShadow:`0 0 0 2px ${tG.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:tG.GREYSCALE_0_15,backgroundColor:tG.GREYSCALE_100_60,"&:active":{backgroundColor:tG.GREYSCALE_0_10},"&$focusVisible":{borderColor:tG.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${tG.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},containedPrimary:{"&:hover":{backgroundColor:tG.GREEN_PALE},"&:active":{backgroundColor:tG.GREEN_DARK},"&$focusVisible":{borderColor:tG.GREEN_PALE,boxShadow:`0 0 0 3px ${kG.alpha(tG.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:tG.BLUE_PALE},"&:active":{backgroundColor:tG.BLUE_DARK},"&$focusVisible":{borderColor:tG.BLUE_PALE,boxShadow:`0 0 0 3px ${kG.alpha(tG.BLUE_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > $label > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > $label > i:only-child":{marginLeft:"-10px",marginRight:"-10px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}};pH({},{light:()=>_H});const _H={root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:aG},groupedText:{padding:"8px 16px","&:active":{backgroundColor:tG.GREYSCALE_0_10},"&$focusVisible":{boxShadow:`0 0 0 2px ${tG.MISC_FOCUS_BORDER}`}},groupedOutlined:{padding:"7px 16px",borderColor:tG.GREYSCALE_0_15,backgroundColor:tG.GREYSCALE_100_60,"&:active":{backgroundColor:tG.GREYSCALE_0_10},"&$focusVisible":{borderColor:tG.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${tG.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:tG.GREEN_PALE},"&:active":{backgroundColor:tG.GREEN_DARK},"&$focusVisible":{borderColor:tG.GREEN_PALE,boxShadow:`0 0 0 3px ${kG.alpha(tG.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:tG.BLUE_PALE},"&:active":{backgroundColor:tG.BLUE_DARK},"&$focusVisible":{borderColor:tG.BLUE_PALE,boxShadow:`0 0 0 3px ${kG.alpha(tG.BLUE_PALE,.5)}`}}};pH({},{light:()=>yH});const yH={root:{height:"100%","& $focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:tG.GREYSCALE_0_03,"& $focusHighlight":{opacity:0}},"&:active":{backgroundColor:tG.GREYSCALE_95,boxShadow:"none"},"&$focusVisible":{borderRadius:aG,boxShadow:`inset 0 0 0 2px ${tG.MISC_FOCUS_BORDER}`,"& $focusHighlight":{opacity:0}}}};pH({},{light:()=>SH});const SH={root:{borderWidth:1,"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:3},"&:not($disabled)":{"&:not($checked)":{"&:not($indeterminate)":{"& span":{color:tG.WHITE}}}},"&$disabled":{"& span":{pointerEvents:"auto",cursor:"not-allowed",color:tG.GREYSCALE_0_25}}},colorPrimary:{"&.sprout-focus-visible i":{borderColor:tG.GREEN_PALE,boxShadow:`0 0 0 3px ${kG.alpha(tG.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible i":{borderColor:tG.BLUE_PALE,boxShadow:`0 0 0 3px ${kG.alpha(tG.BLUE_PALE,.5)}`}}};pH({},{light:()=>wH});const wH={root:{height:"24px",fontSize:nG,borderRadius:aG,color:tG.TEXT_PRIMARY,backgroundColor:tG.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:tG.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${tG.MISC_FOCUS_BORDER}`},"&$disabled":{backgroundColor:tG.GREYSCALE_0_05,color:tG.GREYSCALE_0_30,border:"none",opacity:1}},outlined:{border:`solid 1px ${tG.GREYSCALE_0_15}`,backgroundColor:tG.GREYSCALE_100_15,"$clickable&:active ":{boxSizing:"border-box",borderRadius:aG,boxShadow:"none",backgroundColor:tG.GREYSCALE_0_10},"& $deleteIconSmall":{height:13,color:"inherit"}},label:{fontFamily:cG.FONT_FAMILY,lineHeight:"16px"}};pH({},{light:()=>CH});const CH={root:{padding:"8px",backgroundColor:tG.GREYSCALE_98,borderTop:`1px ${tG.GREYSCALE_0_15} solid`}};pH({},{light:()=>EH});const EH={root:{padding:"24px"}};pH({},{light:()=>RH});const RH={root:{marginBottom:0}};pH({},{light:()=>kH});const kH={root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",height:"24px",padding:"12px 8px 12px 24px",fontSize:"16px",lineHeight:"24px",backgroundColor:tG.GREYSCALE_98,borderBottom:`1px ${tG.GREYSCALE_0_15} solid`}};pH({},{light:()=>LH});const LH={middle:{margin:"4px 8px"}};pH({},{light:()=>AH});const AH={root:{marginLeft:"-10px"},label:{fontSize:rG}};pH({},{light:()=>IH});const IH={root:{fontSize:nG,lineHeight:"16px",margin:"4px 0 0 0","&$error":{color:tG.RED}},contained:{marginLeft:0,marginRight:0}};pH({},{light:()=>PH});const PH={root:{color:tG.GREYSCALE_25,fontSize:nG,fontFamily:cG.FONT_FAMILY,fontWeight:uG,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&$focused":{color:tG.TEXT_PRIMARY},"&$error":{color:tG.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:tG.TEXT_SECONDARY,position:"absolute",content:"'(optional)'",fontWeight:sG,marginLeft:"4px"}}},asterisk:{visibility:"hidden",display:"inline-flex","&::after":{visibility:"visible",color:tG.TEXT_SECONDARY,position:"absolute",content:"'(required)'",fontWeight:sG,marginLeft:"4px"}}};pH({},{light:()=>MH});const MH={root:{padding:7,borderRadius:aG,border:"1px solid transparent","&.sprout-focus-visible":{borderColor:tG.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${tG.MISC_FOCUS_BORDER}`},"&&&:hover":{backgroundColor:"transparent"}}};pH({},{light:()=>DH});const DH={root:{padding:"4px 8px",color:tG.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}};pH({},{light:()=>TH});const TH={input:{padding:"8px 12px",lineHeight:"16px"}};pH({},{light:()=>OH});const OH={outlined:{fontSize:`${nG}px`,fontWeight:uG,color:tG.GREYSCALE_25,"&$shrink":{transform:"translate(0px, -8px)",fontWeight:uG}}};pH({},{light:()=>zH});const zH={root:{color:tG.MISC_FOCUS_BORDER}};pH({},{light:()=>qH});const qH={padding:{paddingTop:"0px",paddingBottom:"0px"}};pH({},{light:()=>NH});const NH={root:{minHeight:"32px",fontSize:rG,"&$selected":{backgroundColor:"unset","&:not($disabled)":{"&::after":{content:`url('${pG}')`,fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:tG.RED}}}},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:tG.GREYSCALE_0_03},"&:active":{backgroundColor:tG.GREYSCALE_0_05}}};pH({},{light:()=>jH});const jH={root:{color:tG.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}};pH({},{light:()=>FH});const FH={root:{fontSize:"12px"},primary:{fontSize:rG,color:tG.TEXT_PRIMARY,lineHeight:"16px"},secondary:{fontSize:nG,fontWeight:lG,lineHeight:"16px",color:tG.TEXT_SECONDARY}};pH({},{light:()=>$H});const $H={root:{'&[role="option"]':{color:tG.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:nG,borderBottom:`solid 1px ${tG.GREYSCALE_0_15}`,pointerEvents:"none"}}};pH({},{light:()=>BH});const BH={list:{paddingTop:4,paddingBottom:4},paper:{marginTop:4,marginBottom:4,background:tG.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15)",borderRadius:"2px"}};pH({},{light:()=>GH});const GH={root:{fontSize:rG,height:"32px",'[class*="MuiListSubheader-root"] ~ &[role="option"]':{paddingLeft:"20px"},"& div i":{color:tG.GREYSCALE_25}}};pH({},{light:()=>WH});const WH={root:{fontSize:rG,lineHeight:"16px",backgroundColor:tG.WHITE,borderRadius:aG,"&:not($focused):not($error):not($disabled):hover $notchedOutline":{border:`solid 1px ${tG.GREYSCALE_0_05}`,borderColor:tG.GREYSCALE_0_30},"&$focused:not($error) $notchedOutline":{border:`solid 1px ${tG.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${tG.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${tG.GREYSCALE_0_05}`},"&$focused$error $notchedOutline":{border:`solid 1px ${tG.RED}`,boxShadow:`0px 0px 0px 1px ${tG.RED}, inset 0 2px 0 0 ${tG.GREYSCALE_0_05}`},"&$disabled":{backgroundColor:"transparent"},"&$disabled $notchedOutline":{border:`solid 1px ${tG.GREYSCALE_0_10}`,borderColor:tG.GREYSCALE_0_10,backgroundColor:tG.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:tG.TEXT_PRIMARY,padding:"8px 12px","&$disabled":{opacity:.45}},notchedOutline:{borderColor:tG.GREYSCALE_0_15,borderRadius:aG,boxShadow:`inset 0 2px 0 0 ${tG.GREYSCALE_0_05}`},multiline:{padding:"8px 12px"}};pH({},{light:()=>HH});const HH={day:{"&&&:hover":{backgroundColor:tG.GREYSCALE_0_03}},daySelected:{"&&&:hover":{backgroundColor:tG.GREEN}}};pH({},{light:()=>VH});const VH={paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${tG.GREYSCALE_0_15}, 0px 0px 0px 1px ${tG.GREYSCALE_0_05}`}};pH({},{light:()=>YH});const YH={root:{fill:tG.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${tG.MISC_FOCUS_BORDER}`},"&$checked":{"&$colorPrimary":{"&.sprout-focus-visible i":{borderColor:tG.GREEN_PALE,boxShadow:`0 0 0 3px ${kG.alpha(tG.GREEN_PALE,.5)}`}},"&$colorSecondary":{"&.sprout-focus-visible i":{borderColor:tG.BLUE_PALE,boxShadow:`0 0 0 3px ${kG.alpha(tG.BLUE_PALE,.5)}`}},"&$disabled":{color:tG.GREYSCALE_0_20}},"&$disabled":{fill:tG.GREYSCALE_0_20,stroke:"none"}}};pH({},{light:()=>UH});const UH={root:{height:"32px",zIndex:1,borderRadius:"3px !important","& em":{color:tG.TEXT_SECONDARY,WebkitFontSmoothing:"antialiased","&::after":{content:""}},"& ~svg":{position:"absolute",top:"unset",right:"12px"},"&[aria-expanded=true]":{backgroundColor:tG.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:tG.GREYSCALE_0_03},"&:active":{backgroundColor:tG.GREYSCALE_0_10},"&:focus":{backgroundColor:tG.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${tG.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${tG.MISC_FOCUS_BORDER}`},"&$disabled":{opacity:"unset",color:tG.GREYSCALE_0_30,"&:hover":{backgroundColor:tG.GREYSCALE_0_0,borderColor:tG.GREYSCALE_0_15},"& ~svg":{color:tG.GREYSCALE_0_30}}},selectMenu:{height:"14px"},outlined:{border:`solid 1px ${tG.GREYSCALE_0_15}`}};pH({},{light:()=>KH});const KH={root:{color:tG.GREEN,height:"24px","&$disabled":{color:tG.GREYSCALE_0_15}},rail:{backgroundColor:tG.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${tG.GREYSCALE_0_05}`,borderRadius:aG,boxShadow:`inset 0px 0px 0px 1px ${tG.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${tG.GREYSCALE_0_05}`,borderRadius:aG},thumb:{height:"16px",width:"16px",borderRadius:aG,backgroundColor:tG.WHITE,boxShadow:`0px 1px 2px 0px ${tG.GREYSCALE_0_15}, 0px 0px 0px 1px ${tG.GREYSCALE_0_05}`,"&:hover":{borderRadius:aG,boxShadow:`0 2px 4px 0 ${tG.GREYSCALE_0_30}, 0 0 0 1px ${tG.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${tG.GREYSCALE_0_15}, 0 0 0 1px ${tG.GREYSCALE_0_06}, 0 0 0 2px ${tG.MISC_FOCUS_BORDER}`},"&$disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:tG.GREYSCALE_90},"& .bar":{height:"8px",width:"1px",backgroundColor:tG.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:tG.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:tG.GREYSCALE_0_15},markLabel:{color:tG.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:tG.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},active:{}};pH({},{light:()=>XH});const XH={root:{backgroundColor:tG.WHITE,color:tG.GREYSCALE_25}};pH({},{light:()=>JH});const JH={root:{padding:"10px",width:"60px",height:"40px"},switchBase:{padding:"11px","&$disabled":{"& $thumb":{backgroundColor:tG.GREYSCALE_100_50}},"&$checked + $track":{opacity:1},"&$disabled + $track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + $track":{borderColor:tG.GREEN_PALE,boxShadow:`0 0 0 3px ${kG.alpha(tG.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + $track":{borderColor:tG.BLUE_PALE,boxShadow:`0 0 0 3px ${kG.alpha(tG.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:tG.GREYSCALE_0_15,borderRadius:aG},thumb:{height:"16px",width:"16px",borderRadius:aG,backgroundColor:tG.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& $thumb":{height:"12px",width:"12px"},"& $switchBase":{padding:"9px 11px"}}};pH({},{light:()=>ZH});const ZH={root:{fontSize:rG,fontWeight:uG,textTransform:"none",minWidth:"auto",boxSizing:"border-box","&:hover":{borderBottom:`2px solid ${tG.GREYSCALE_80}`,paddingBottom:"4px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${tG.MISC_FOCUS_BORDER}`,paddingTop:"4px",backgroundColor:tG.GREYSCALE_0_03,borderRadius:aG,minHeight:"44px",paddingBottom:"4px",border:"none"},"&$disabled":{opacity:.3}},textColorPrimary:{color:tG.GREYSCALE_25,"&$selected":{color:tG.GREYSCALE_25}},textColorInherit:{opacity:"unset"},fullWidth:{"&.sprout-focus-visible":{paddingRight:12,paddingLeft:12}},wrapper:{alignItems:"initial"},labelIcon:{minWidth:"40px",minHeight:"48px","&.sprout-focus-visible":{minHeight:"auto",height:"30px",marginTop:9,marginBottom:9,flexDirection:"column",paddingRight:"12px",paddingBottom:"2px"},"& $wrapper":{display:"block"}}};pH({},{light:()=>QH});const QH={root:{borderLeft:`1px solid ${tG.GREYSCALE_85}`}};pH({},{light:()=>eV});const eV={root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${tG.GREYSCALE_85}`,borderRight:`1px solid ${tG.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:uG,backgroundColor:tG.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&$head":{height:"31px"},"&$paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:tG.GREYSCALE_98,borderBottom:`1px solid ${tG.GREYSCALE_85}`}};pH({},{light:()=>tV});const tV={root:{borderBottom:`1px solid ${tG.GREYSCALE_85}`,borderTop:`1px solid ${tG.GREYSCALE_85}`}};pH({},{light:()=>nV});const nV={root:{backgroundColor:tG.GREYSCALE_98}};pH({},{light:()=>rV});const rV={hover:{"&$selected":{backgroundColor:tG.GREYSCALE_0_05,"&:hover":{backgroundColor:tG.GREYSCALE_0_03}},"&&:hover":{backgroundColor:tG.GREYSCALE_0_03}}};pH({},{light:()=>oV});const oV={root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&$active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}};pH({},{light:()=>iV});const iV={scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},root:{fontSize:rG,fontWeight:"bold"},indicator:{height:2}};pH({},{light:()=>aV});const aV={root:{height:32,lineHeight:16,width:32,fontSize:rG,borderRadius:aG,padding:"7px 16px",border:`1px solid ${tG.GREYSCALE_0_15}`,backgroundColor:tG.GREYSCALE_100_60,color:tG.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:tG.GREYSCALE_0_10,border:`1px solid ${tG.GREYSCALE_0_30}`},"&:hover":{backgroundColor:tG.GREYSCALE_0_03,border:`1px solid ${tG.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:tG.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${tG.MISC_FOCUS_BORDER}`,border:`1px solid ${tG.MISC_FOCUS_BORDER}`,zIndex:2},"&$selected":{color:tG.GREYSCALE_25,backgroundColor:tG.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:tG.GREYSCALE_0_10,border:`1px solid ${tG.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:nG,height:24,width:24,padding:7},sizeLarge:{fontSize:oG,height:40,width:40,lineHeight:20}};pH({},{light:()=>lV});const lV={root:{height:"32px",lineHeight:"16px",fontSize:rG,borderRadius:aG}};pH({},{light:()=>sV});const sV={root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}};pH({},{light:()=>uV});const uV={arrow:{color:tG.GREYSCALE_20},tooltip:{backgroundColor:tG.GREYSCALE_20,fontSize:nG,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}};function dV(e){var t;const n=((e="light",t=!1)=>RG(e,t))();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),tD({...n,direction:e})}var cV,pV,fV,mV;!function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider"}(cV||(cV={})),function(e){e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2"}(pV||(pV={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(fV||(fV={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(mV||(mV={}));const hV=e=>e?`${parseInt(e,10)}px`:void 0,gV=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?RA.Transparent:n}},bV=(e,t)=>+(parseInt(e,10)*EA*t+8).toFixed(2),vV=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?wA:"normal",xV=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",_V=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",yV=document.createElement("textarea");function SV(e){yV.value=e,document.body.appendChild(yV),yV.select(),yV.setSelectionRange(0,yV.value.length),document.execCommand("copy"),document.body.removeChild(yV)}yV.style.position="absolute",yV.style.left="-9999px",yV.setAttribute("readonly","");function wV(e){null==P||P(((t,n)=>{const r=n.target,o=null==r?void 0:r.closest(`.${na}`);null!=o&&o.title&&t.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const n=e.title;n&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(n).catch((()=>{SV(n)})):SV(n))})(o)}}),null==e||e.forEach((e=>{e(t,n,o)}))}))}const CV=({model:e,layoutService:t,effectivePropertiesService:n,translator:r})=>YA(((o,i,a)=>{if(!e||n.qAlwaysFullyExpanded)return;const l=e,s=o.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group"}),{qEffectiveDimensionName:u,label:d}=((e,t)=>{const n=((e,t)=>{const n=null==e?void 0:e.getAttribute("data-dimension-info-index");if("string"==typeof n)return t.getDimensionInfo(+n)})(e,t);return"object"==typeof n?{qEffectiveDimensionName:n.qEffectiveDimensionName,label:n.qFallbackTitle}:{qEffectiveDimensionName:void 0,label:void 0}})(a,t);s.addItem((e=>({icon:"lui-icon lui-icon--plus",translation:"Object.PivotTable.ContextMenu.ExpandAll",tid:"expand-all",select:async()=>{try{await e.expandTop(sO,0,0,!0),await e.expandLeft(sO,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(l)),"string"==typeof u&&s.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:n,label:r,translator:o})=>({icon:"lui-icon lui-icon--plus",translation:o.get("SNPivotTable.ContextMenu.ExpandDimension",[null!=r?r:""]),tid:"expand-dimension",select:sB({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n,action:iB.Expand})}))({model:l,effectivePropertiesService:n,qEffectiveDimensionName:u,label:d,translator:r})),s.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(sO,0,0,!0),await e.collapseLeft(sO,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(l)),"string"==typeof u&&s.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:n,label:r,translator:o})=>({icon:"lui-icon lui-icon--minus",translation:o.get("SNPivotTable.ContextMenu.CollapseDimension",[null!=r?r:""]),tid:"collapse-dimension",select:sB({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n,action:iB.Collapse})}))({model:l,effectivePropertiesService:n,qEffectiveDimensionName:u,label:d,translator:r}))}),[e,t,n]),EV=(e,t)=>C((()=>(({layout:e,flags:t})=>{var n,r,o,i;const{qHyperCube:a,nullValueRepresentation:l,snapshotData:s}=e,{qNoOfLeftDims:u,qEffectiveInterColumnSortOrder:d,qMeasureInfo:c,qDimensionInfo:p}=a,f=!!s,m=null!==(n=null==s||null===(r=s.content)||void 0===r?void 0:r.rowsPerPage)&&void 0!==n?n:15e3,h={x:Math.min(e.qHyperCube.qSize.qcx,CA),y:Math.min(e.qHyperCube.qSize.qcy,m)},g=d.slice(0,u),b=e=>g.some((t=>t===e)),v=b(uO),x=new Map(d.map((e=>{var t;return[null!==(t=p[e])&&void 0!==t?t:uO,e]}))),_=c.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==l?void 0:l.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(v)return 0;const n=e%_.length;return t?n:c.findIndex((e=>e===_[n]))},getDimensionInfo:e=>e===uO?void 0:p.at(e),getDimensionInfoIndex:e=>{var t;return null!==(t=x.get(e))&&void 0!==t?t:-1},size:h,isSnapshot:f,hasLimitedData:!f&&h.x<e.qHyperCube.qSize.qcx,hasData:h.x>0&&h.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,hasPseudoDimOnLeft:v,leftDimensionInfoIndexes:g,isLeftDimension:b,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:_,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode),indentModeFeatures:{isImagesSupported:t.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES")},indentModeColumnWidth:null!==(o=e.qHyperCube.indentModeColumnWidth)&&void 0!==o?o:{type:aa.Auto,pixels:ia.PixelsDefault,percentage:ia.PercentageDefault},searchSortFromDimension:"inherit"===(null===(i=e.search)||void 0===i?void 0:i.sorting)}})({layout:e,flags:t})),[e,t]),RV=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=KA(e);return t.current=e,t})(jz(o));return tI((async()=>{const{qHyperCube:t}=i,{maxNumberOfVisibleRows:o,maxNumberOfVisibleColumns:u}=s.current;var d,c;if(a)return null!==(d=null===(c=i.snapshotData)||void 0===c||null===(c=c.content)||void 0===c?void 0:c.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(l,n,o,u)||((e,t,n,r)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:d}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(r,l.qcx)||d<Math.min(n,l.qcy)})(i,r,o,u))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,l=Math.min(a+r.rowsPerPage,n.qcy),s=Math.min(CA,n.qcx);if(n.qcy<a)return null;let u=0,d=a;if(e){u=t.gridColumnStartIndex,d=a+t.gridRowStartIndex;const e=d+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>l&&(d=Math.max(0,l-o)),n>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:d,qWidth:Math.min(s-u,i),qHeight:Math.min(l-d,o)}})(l,n,i.qHyperCube.qSize,r,o,u);return t?e.getHyperCubePivotData(sO,Fz(t)):[]}return t.qPivotDataPages}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},kV=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),LV=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:kV({rowsPerPage:n,totalRowCount:e,page:t})}),AV=15,IV=({layoutService:e,viewService:t,rect:n,model:r,pageInfo:o})=>{var i;return M((async e=>{const i=e;if(!i.snapshotData||!r||i.snapshotData.content)return i;if("getHyperCubePivotData"in r){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s}=t,u=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(r-AV,0),u=Math.max(l+o-AV,l,0),d=CA-s,c=l+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=jz(n);return{qLeft:s,qTop:u,qWidth:Math.min(d,e+30),qHeight:Math.min(c,t+30)}}return{qLeft:s,qTop:u,qWidth:Math.min(d,i+30),qHeight:Math.min(c,a+30)}})(t,o,n),d=Fz(u),c={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};i.snapshotData.content={qPivotDataPages:await r.getHyperCubePivotData(sO,[c,...d]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s,page:o.page,rowsPerPage:o.rowsPerPage},i.snapshotData.object.size.w=n.width,i.snapshotData.object.size.h=n.height}return i})),D((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,o)})),[t]),null!==(i=e.layout.snapshotData)&&void 0!==i&&i.content?{left:n.left,top:n.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:n};var PV={SNPivotTable_ContextMenu_CollapseDimension:{id:"SNPivotTable.ContextMenu.CollapseDimension",locale:{"de-DE":"{0} reduzieren","en-US":"Collapse {0}","es-ES":"Contraer {0}","fr-FR":"Réduire {0}","it-IT":"Comprimi {0}","ja-JP":"{0} を折りたたむ","ko-KR":"{0} 축소","nl-NL":"{0} samenvouwen","pl-PL":"Zwiń {0}","pt-BR":"Recolher {0}","ru-RU":"Свернуть {0}","sv-SE":"Dölj {0}","tr-TR":"{0} öğelerini daralt","zh-CN":"折叠 {0}","zh-TW":"收合 {0}"}},SNPivotTable_ContextMenu_ExpandDimension:{id:"SNPivotTable.ContextMenu.ExpandDimension",locale:{"de-DE":"{0} erweitern","en-US":"Expand {0}","es-ES":"Expandir {0}","fr-FR":"Développer {0}","it-IT":"Espandi {0}","ja-JP":"{0} を展開","ko-KR":"{0} 확장","nl-NL":"{0} uitvouwen","pl-PL":"Rozwiń {0}","pt-BR":"Expandir {0}","ru-RU":"Развернуть {0}","sv-SE":"Visa {0}","tr-TR":"{0} öğelerini genişlet","zh-CN":"展开 {0}","zh-TW":"展開 {0}"}},SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const MV=()=>{const e=T(),t=e.language();return C((()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(PV).forEach((t=>{e.add(PV[t])}))}(e)}),[e]),{translator:e,language:t}},DV=e=>{const{flags:t}=e,n=O(),r=(e=>{const t=C((()=>iI(e)),[e]);return L((()=>()=>{t.unmount()}),[t]),t})(n),o=z(),a=q(),l=N(),s=j(),u=F(),d=XA(),c=((e,t)=>{const[n]=tI((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}}),[e,t]),r=C((()=>{var e,t;const r=void 0!==(null==n?void 0:n.qHyperCubeDef.qSortbyYValue)&&1===Math.abs(n.qHyperCubeDef.qSortbyYValue),o=null!==(e=null==n?void 0:n.qHyperCubeDef.qDimensions.map((e=>e.qDef.qSortCriterias)))&&void 0!==e?e:[];return{qAlwaysFullyExpanded:null!==(t=null==n?void 0:n.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==t&&t,qExpansionState:null==n?void 0:n.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:r,getSortCriteriaForDimension:e=>o[e]}}),[n]);return r})(a,o),p=EV(o,t),f=(e=>{const t=I();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(p.isSnapshot),m=$(),h=eI(o,n),{translator:g,language:b}=MV(),{pageInfo:v,updatePageInfo:x}=((e,t)=>{const{size:n,layout:{qHyperCube:{qSize:r}}}=e,o=t.isDownloadedAsPDForImage||e.isSnapshot,i=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(e),[a,l]=k((()=>{const a=((e,t)=>{var n,r,o,i;return t.isDownloadedAsPDForImage?null!==(n=null===(r=t.viewState)||void 0===r?void 0:r.renderPage)&&void 0!==n?n:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(e,t);return{page:a,shouldShowPagination:r.qcy>n.y&&!o,...LV(r.qcy,a,i)}})),s=e.layout.qHyperCube.qSize.qcy;return L((()=>{l((t=>({...t,...LV(s,t.page,i),shouldShowPagination:s>e.size.y&&!o})))}),[s,e.size.y,l,o,i]),L((()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,n=kV({...a,page:e});l({...a,page:e,rowsOnCurrentPage:n})}}),[a]),{pageInfo:a,updatePageInfo:e=>{l({...a,...e,rowsOnCurrentPage:kV({...a,...e})})}}})(p,d),_=((e,t,n)=>C((()=>((e,t)=>{var n,r,o,i,a,l,s,u;if(e.isDownloadedAsPDForImage){var d,c,p,f;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(d=null==t?void 0:t.scrollTop)&&void 0!==d?d:0,scrollLeft:null!==(c=null==t?void 0:t.scrollLeft)&&void 0!==c?c:0,leftGridScrollLeft:null!==(p=null==t?void 0:t.leftGridScrollLeft)&&void 0!==p?p:0,topGridScrollTop:null!==(f=null==t?void 0:t.topGridScrollTop)&&void 0!==f?f:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.scrollTop)&&void 0!==n?n:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0,topGridScrollTop:null!==(s=null==t||null===(u=t.content)||void 0===u?void 0:u.topGridScrollTop)&&void 0!==s?s:0}})(n,t.snapshotData)),[n,e.page,t.snapshotData]))(v,o,d),y=IV({rect:B(),layoutService:p,viewService:_,model:a,pageInfo:v}),[S,w]=RV({model:a,layoutService:p,viewService:_,pageInfo:v,rect:y}),R=C((()=>((e,t,n)=>{var r,o,i,a,l,s,u,d,c,p,f,m,h,g,b,v,x,_,y,S,w,C,E,R,k,L,A,I,P,M,D,T,O,z,q,N,j,F,$,B,G,W,H,V,Y,U,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),J=null==X?void 0:X.header,Z=null==X?void 0:X.dimensionValues,Q=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,ne=null==X?void 0:X.nullValues,re=null==X?void 0:X.grid,oe=(t,n,r)=>e.getStyle(t,n,r),ie=+(null!==(o=null!==(i=null==re?void 0:re[cV.LineClamp])&&void 0!==i?i:oe(pV.Grid,fV.Grid,mV.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==re?void 0:re[cV.ColumnLineClamp])&&void 0!==l?l:oe(pV.Grid,fV.Grid,mV.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=gV(e,null==J?void 0:J[cV.Background]))&&void 0!==u?u:oe(pV.Dimension,fV.LabelName,mV.BackgroundColor))&&void 0!==s?s:RA.Transparent,se={header:{fontSize:null!==(d=null!==(c=hV(null==J?void 0:J[cV.FontSize]))&&void 0!==c?c:oe(pV.Dimension,fV.LabelName,mV.FontSize))&&void 0!==d?d:yA,fontFamily:null!==(p=null!==(f=null==J?void 0:J[cV.FontFamily])&&void 0!==f?f:oe(pV.Dimension,fV.LabelName,mV.FontFamily))&&void 0!==p?p:SA,fontWeight:vV(null==J?void 0:J[cV.FontStyle],wA),fontStyle:xV(null==J?void 0:J[cV.FontStyle]),textDecoration:_V(null==J?void 0:J[cV.FontStyle]),color:null!==(m=null!==(h=gV(e,null==J?void 0:J[cV.FontColor]))&&void 0!==h?h:oe(pV.Dimension,fV.LabelName,mV.FontColor))&&void 0!==m?m:Dk.TEXT,background:le,hoverBackground:uA(le,la),activeBackground:uA(le,sa)},dimensionValues:{fontSize:null!==(g=null!==(b=hV(null==Z?void 0:Z[cV.FontSize]))&&void 0!==b?b:oe(pV.Dimension,fV.LabelValue,mV.FontSize))&&void 0!==g?g:yA,fontFamily:null!==(v=null!==(x=null==Z?void 0:Z[cV.FontFamily])&&void 0!==x?x:oe(pV.Dimension,fV.LabelValue,mV.FontFamily))&&void 0!==v?v:SA,fontWeight:vV(null==Z?void 0:Z[cV.FontStyle],void 0),fontStyle:xV(null==Z?void 0:Z[cV.FontStyle]),textDecoration:_V(null==Z?void 0:Z[cV.FontStyle]),color:null!==(_=null!==(y=gV(e,null==Z?void 0:Z[cV.FontColor]))&&void 0!==y?y:oe(pV.Dimension,fV.LabelValue,mV.FontColor))&&void 0!==_?_:Dk.TEXT,background:null!==(S=null!==(w=gV(e,null==Z?void 0:Z[cV.Background]))&&void 0!==w?w:oe(pV.Dimension,fV.LabelValue,mV.BackgroundColor))&&void 0!==S?S:RA.Transparent},measureValues:{fontSize:null!==(C=null!==(E=hV(null==Q?void 0:Q[cV.FontSize]))&&void 0!==E?E:oe(pV.Measure,fV.LabelValue,mV.FontSize))&&void 0!==C?C:yA,fontFamily:null!==(R=null!==(k=null==Q?void 0:Q[cV.FontFamily])&&void 0!==k?k:oe(pV.Measure,fV.LabelValue,mV.FontFamily))&&void 0!==R?R:SA,fontWeight:vV(null==Q?void 0:Q[cV.FontStyle],"normal"),fontStyle:xV(null==Q?void 0:Q[cV.FontStyle]),textDecoration:_V(null==Q?void 0:Q[cV.FontStyle]),color:null!==(L=null!==(A=gV(e,null==Q?void 0:Q[cV.FontColor]))&&void 0!==A?A:oe(pV.Measure,fV.LabelValue,mV.FontColor))&&void 0!==L?L:RA.FontSecondary,background:null!==(I=null!==(P=gV(e,null==Q?void 0:Q[cV.Background]))&&void 0!==P?P:oe(pV.Measure,fV.LabelValue,mV.BackgroundColor))&&void 0!==I?I:RA.Transparent},measureLabels:{fontWeight:vV(null==ee?void 0:ee[cV.FontStyle],"normal"),fontStyle:xV(null==ee?void 0:ee[cV.FontStyle]),textDecoration:_V(null==ee?void 0:ee[cV.FontStyle]),color:null!==(M=null!==(D=gV(e,null==ee?void 0:ee[cV.FontColor]))&&void 0!==D?D:oe(pV.Measure,fV.LabelName,mV.FontColor))&&void 0!==M?M:RA.FontSecondary,background:null!==(T=null!==(O=gV(e,null==ee?void 0:ee[cV.Background]))&&void 0!==O?O:oe(pV.Measure,fV.LabelName,mV.BackgroundColor))&&void 0!==T?T:RA.Transparent},totalValues:{fontWeight:vV(null==te?void 0:te[cV.FontStyle],wA),fontStyle:xV(null==te?void 0:te[cV.FontStyle]),textDecoration:_V(null==te?void 0:te[cV.FontStyle]),color:null!==(z=null!==(q=gV(e,null==te?void 0:te[cV.FontColor]))&&void 0!==q?q:oe(pV.Total,fV.LabelValue,mV.FontColor))&&void 0!==z?z:Dk.TEXT,background:null!==(N=null!==(j=gV(e,null==te?void 0:te[cV.Background]))&&void 0!==j?j:oe(pV.Total,fV.LabelValue,mV.BackgroundColor))&&void 0!==N?N:RA.Transparent},nullValues:{fontWeight:vV(null==ne?void 0:ne[cV.FontStyle],"normal"),fontStyle:xV(null==ne?void 0:ne[cV.FontStyle]),textDecoration:_V(null==ne?void 0:ne[cV.FontStyle]),color:null!==(F=null!==($=gV(e,null==ne?void 0:ne[cV.FontColor]))&&void 0!==$?$:oe(pV.Null,fV.LabelValue,mV.FontColor))&&void 0!==F?F:Dk.TEXT,background:null!==(B=null!==(G=gV(e,null==ne?void 0:ne[cV.Background]))&&void 0!==G?G:oe(pV.Null,fV.LabelValue,mV.BackgroundColor))&&void 0!==B?B:RA.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(H=gV(e,null==re?void 0:re[cV.Border]))&&void 0!==H?H:oe(pV.Grid,fV.Grid,mV.BorderColor))&&void 0!==W?W:RA.DividerLight,divider:null!==(V=null!==(Y=gV(e,null==re?void 0:re[cV.Divider]))&&void 0!==Y?Y:oe(pV.Grid,fV.Divider,mV.BorderColor))&&void 0!==V?V:RA.DividerDark,background:null!==(U=null!==(K=gV(e,null==re?void 0:re[cV.Background]))&&void 0!==K?K:oe(pV.Grid,fV.Grid,mV.BackgroundColor))&&void 0!==U?U:RA.Transparent},selectedColors:sA(e)};return se.headerCellHeight=Math.max(bV(se.header.fontSize,ae),bV(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(bV(se.measureValues.fontSize,ie),bV(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=bV(se.dimensionValues.fontSize,1),se})(h,p,t)),[h,p,t]),A=((e,t,n)=>{const[,r,o]=tI((async()=>{var t;const r=Qk(n.flags),o=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),a=e.getStyle("object","label.value","fontFamily"),l=null!==(t=e.getStyle("","","fontFamilies"))&&void 0!==t?t:[];return Promise.all([...r,...l,o,i,a,lI].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,n]);return o?(console.warn("Failed to load fonts:",o),!0):!r})(h,o,e),P=E(),M=e.flags.isEnabled("CLIENT_IM_6225_PIVOT_TABLE_RTL")?P.direction:"ltr";wV([CV({model:a,layoutService:p,effectivePropertiesService:c,translator:g})]),L((()=>{!w&&a&&!!S&&A&&((e,{selections:t,baseObjects:n,coreServices:r,nebulaObjects:o})=>{const a=dV(n.direction);e.render(de.jsx(i.StrictMode,{children:de.jsx(AD,{theme:a,children:de.jsx(rO,{...o,children:de.jsx(eO,{...n,children:de.jsx(nj,{selections:t,children:de.jsx(aO,{...r,children:de.jsx(Vz,{children:de.jsx(eG,{})})})})})})})}))})(r,{selections:m,baseObjects:{rect:y,pageInfo:v,qPivotDataPages:S,updatePageInfo:x,direction:M},nebulaObjects:{env:e,app:l,model:a,embed:s,theme:h,keyboard:u,translator:g,interactions:f},coreServices:{styleService:R,viewService:_,layoutService:p,downloadService:d,effectivePropertiesService:c}})}),[a,l,y,f,m,_,p,d,w,S,R,r,A,g,b,v,x,c,s,u,h,e,M])},TV={version:"5.0.0",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]},OV=()=>({...TV,qHyperCubeDef:{...TV.qHyperCubeDef,qIndentMode:!1}})}}}));
187
+ `),tF.rippleVisible,sF,550,(({theme:e})=>e.transitions.easing.easeInOut),tF.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),tF.child,tF.childLeaving,uF,550,(({theme:e})=>e.transitions.easing.easeInOut),tF.childPulsate,dF,(({theme:e})=>e.transitions.easing.easeInOut)),fF=c.forwardRef((function(e,t){const n=Uj({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Ou(n,nF),[l,s]=c.useState([]),u=c.useRef(0),d=c.useRef(null);c.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const p=c.useRef(!1),f=Ly(),m=c.useRef(null),h=c.useRef(null),g=c.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,de.jsx(pF,{classes:{ripple:T_(o.ripple,tF.ripple),rippleVisible:T_(o.rippleVisible,tF.rippleVisible),ripplePulsate:T_(o.ripplePulsate,tF.ripplePulsate),child:T_(o.child,tF.child),childLeaving:T_(o.childLeaving,tF.childLeaving),childPulsate:T_(o.childPulsate,tF.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,d.current=a}),[o]),b=c.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,d,c;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),d=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),d=Math.round(n-s.top)}if(i)c=Math.sqrt((2*s.width**2+s.height**2)/3),c%2==0&&(c+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-d),d)+2;c=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===m.current&&(m.current=()=>{g({pulsate:o,rippleX:u,rippleY:d,rippleSize:c,cb:n})},f.start(80,(()=>{m.current&&(m.current(),m.current=null)}))):g({pulsate:o,rippleX:u,rippleY:d,rippleSize:c,cb:n})}),[r,g,f]),v=c.useCallback((()=>{b({},{pulsate:!0})}),[b]),x=c.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&m.current)return m.current(),m.current=null,void f.start(0,(()=>{x(e,t)}));m.current=null,s((e=>e.length>0?e.slice(1):e)),d.current=t}),[f]);return c.useImperativeHandle(t,(()=>({pulsate:v,start:b,stop:x})),[v,b,x]),de.jsx(cF,qs({className:T_(tF.root,o.root,i),ref:h},a,{children:de.jsx(Vw,{component:null,exit:!0,children:l})}))}));function mF(e){return q_("MuiButtonBase",e)}const hF=N_("MuiButtonBase",["root","disabled","focusVisible"]),gF=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],bF=kD("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${hF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),vF=c.forwardRef((function(e,t){const n=Uj({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:m,onClick:h,onContextMenu:g,onDragLeave:b,onFocus:v,onFocusVisible:x,onKeyDown:_,onKeyUp:y,onMouseDown:S,onMouseLeave:w,onMouseUp:C,onTouchEnd:E,onTouchMove:R,onTouchStart:k,tabIndex:L=0,TouchRippleProps:A,touchRippleRef:I,type:P}=n,M=Ou(n,gF),D=c.useRef(null),T=c.useRef(null),O=Cy(T,I),{isFocusVisibleRef:z,onFocus:q,onBlur:N,ref:j}=qy(),[F,$]=c.useState(!1);s&&F&&$(!1),c.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),D.current.focus()}})),[]);const[B,G]=c.useState(!1);c.useEffect((()=>{G(!0)}),[]);const W=B&&!u&&!s;function H(e,t,n=d){return wy((r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0}))}c.useEffect((()=>{F&&p&&!u&&B&&T.current.pulsate()}),[u,p,F,B]);const V=H("start",S),Y=H("stop",g),U=H("stop",b),K=H("stop",C),X=H("stop",(e=>{F&&e.preventDefault(),w&&w(e)})),J=H("start",k),Z=H("stop",E),Q=H("stop",R),ee=H("stop",(e=>{N(e),!1===z.current&&$(!1),m&&m(e)}),!1),te=wy((e=>{D.current||(D.current=e.currentTarget),q(e),!0===z.current&&($(!0),x&&x(e)),v&&v(e)})),ne=()=>{const e=D.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=c.useRef(!1),oe=wy((e=>{p&&!re.current&&F&&T.current&&" "===e.key&&(re.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),_&&_(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=wy((e=>{p&&" "===e.key&&T.current&&F&&!e.defaultPrevented&&(re.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),y&&y(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(M.href||M.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=s):(M.href||M.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Cy(t,j,D),ue=qs({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:L,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=jy({root:["root",t&&"disabled",n&&"focusVisible"]},mF,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return de.jsxs(bF,qs({as:ae,className:T_(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:L,type:P},le,M,{children:[i,W?de.jsx(fF,qs({ref:O,center:o},A)):null]}))}));function xF(e){return q_("MuiTypography",e)}N_("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const _F=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],yF=kD("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Rx(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>qs({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),SF={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},wF={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},CF=c.forwardRef((function(e,t){const n=Uj({props:e,name:"MuiTypography"}),r=(e=>wF[e]||e)(n.color),o=SP(qs({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:d=!1,variant:c="body1",variantMapping:p=SF}=o,f=Ou(o,_F),m=qs({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:d,variant:c,variantMapping:p}),h=l||(d?"p":p[c]||SF[c])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return jy({root:["root",i,"inherit"!==e.align&&`align${Rx(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},xF,a)})(m);return de.jsx(yF,qs({as:h,ref:t,ownerState:m,className:T_(g.root,a)},f))}));const EF=c.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=c.useState(null),l=Cy(c.isValidElement(n)?Hy(n):null,t);if(uy((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),uy((()=>{if(i&&!o)return vy(t,i),()=>{vy(t,null)}}),[t,i,o]),o){if(c.isValidElement(n)){const e={ref:l};return c.cloneElement(n,e)}return de.jsx(c.Fragment,{children:n})}return de.jsx(c.Fragment,{children:i?S.createPortal(n,i):i})})),RF=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],kF={entering:{opacity:1},entered:{opacity:1}},LF=c.forwardRef((function(e,t){const n=rD(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,style:g,timeout:b=r,TransitionComponent:v=Fw}=e,x=Ou(e,RF),_=c.useRef(null),y=Cy(_,Hy(a),t),S=e=>t=>{if(e){const n=_.current;void 0===t?e(n):e(n,t)}},w=S(p),C=S(((e,t)=>{Kj(e);const r=Xj({style:g,timeout:b,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),E=S(d),R=S(h),k=S((e=>{const t=Xj({style:g,timeout:b,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),L=S(m);return de.jsx(v,qs({appear:i,in:s,nodeRef:_,onEnter:C,onEntered:E,onEntering:w,onExit:k,onExited:L,onExiting:R,addEndListener:e=>{o&&o(_.current,e)},timeout:b},x,{children:(e,t)=>c.cloneElement(a,qs({style:qs({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},kF[e],g,a.props.style),ref:y},t))}))}));function AF(e){return q_("MuiBackdrop",e)}N_("MuiBackdrop",["root","invisible"]);const IF=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],PF=kD("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>qs({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),MF=c.forwardRef((function(e,t){var n,r,o;const i=Uj({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:d={},invisible:c=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=LF,transitionDuration:g}=i,b=Ou(i,IF),v=qs({},i,{component:s,invisible:c}),x=(e=>{const{classes:t,invisible:n}=e;return jy({root:["root",n&&"invisible"]},AF,t)})(v),_=null!=(n=f.root)?n:d.root;return de.jsx(h,qs({in:p,timeout:g},b,{children:de.jsx(PF,qs({"aria-hidden":!0},_,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:T_(x.root,l,null==_?void 0:_.className),ownerState:qs({},v,null==_?void 0:_.ownerState),classes:x,ref:t,children:a}))}))})),DF=N_("MuiBox",["root"]),TF=tD(),OF=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=cx("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(cP);return c.forwardRef((function(e,a){const l=vP(n),s=SP(e),{className:u,component:d="div"}=s,c=Ou(s,CP);return de.jsx(i,qs({as:d,ref:a,className:T_(u,o?o(r):r),theme:t&&l[t]||l},c))}))}({themeId:cI,defaultTheme:TF,defaultClassName:DF.root,generateClassName:M_.generate});function zF(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function qF(e){return parseInt(by(e).getComputedStyle(e).paddingRight,10)||0}function NF(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&zF(e,o)}))}function jF(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function FF(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=gy(e);return t.body===e?by(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Ny(gy(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${qF(r)+e}px`;const t=gy(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${qF(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=gy(r).body;else{const t=r.parentElement,n=by(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const $F=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function BF(e){const t=[],n=[];return Array.from(e.querySelectorAll($F)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function GF(){return!0}function WF(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=BF,isEnabled:a=GF,open:l}=e,s=c.useRef(!1),u=c.useRef(null),d=c.useRef(null),p=c.useRef(null),f=c.useRef(null),m=c.useRef(!1),h=c.useRef(null),g=Cy(Hy(t),h),b=c.useRef(null);c.useEffect((()=>{l&&h.current&&(m.current=!n)}),[n,l]),c.useEffect((()=>{if(!l||!h.current)return;const e=gy(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{o||(p.current&&p.current.focus&&(s.current=!0,p.current.focus()),p.current=null)}}),[l]),c.useEffect((()=>{if(!l||!h.current)return;const e=gy(h.current),t=t=>{b.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,d.current&&d.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==d.current||(n=i(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=b.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=b.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return de.jsxs(c.Fragment,{children:[de.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),de.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const HF=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&zF(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);NF(t,e.mount,e.modalRef,r,!0);const o=jF(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=jF(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=FF(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=jF(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&zF(e.modalRef,t),NF(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&zF(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function VF(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=HF,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:d,rootRef:p}=e,f=c.useRef({}),m=c.useRef(null),h=c.useRef(null),g=Cy(h,p),[b,v]=c.useState(!d),x=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let _=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(_=!1);const y=()=>(f.current.modalRef=h.current,f.current.mount=m.current,f.current),S=()=>{o.mount(y(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},w=wy((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||gy(m.current).body;o.add(y(),e),h.current&&S()})),C=c.useCallback((()=>o.isTopModal(y())),[o]),E=wy((e=>{m.current=e,e&&(d&&C()?S():h.current&&zF(h.current,_))})),R=c.useCallback((()=>{o.remove(y(),_)}),[_,o]);c.useEffect((()=>()=>{R()}),[R]),c.useEffect((()=>{d?w():x&&i||R()}),[d,R,x,i,w]);const k=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},L=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=$y(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=qs({},n,t);return qs({role:"presentation"},r,{onKeyDown:k(r),ref:g})},getBackdropProps:(e={})=>qs({"aria-hidden":!0},e,{onClick:L(e),open:d}),getTransitionProps:()=>({onEnter:my((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:my((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:g,portalRef:E,isTopModal:C,exited:b,hasTransition:x}}function YF(e){return q_("MuiModal",e)}N_("MuiModal",["root","hidden","backdrop"]);const UF=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],KF=kD("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>qs({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),XF=kD(MF,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),JF=c.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Uj({name:"MuiModal",props:e}),{BackdropComponent:u=XF,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:m,container:h,component:g,components:b={},componentsProps:v={},disableAutoFocus:x=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:y=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:C=!1,hideBackdrop:E=!1,keepMounted:R=!1,onBackdropClick:k,open:L,slotProps:A,slots:I}=s,P=Ou(s,UF),M=qs({},s,{closeAfterTransition:f,disableAutoFocus:x,disableEnforceFocus:_,disableEscapeKeyDown:y,disablePortal:S,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:E,keepMounted:R}),{getRootProps:D,getBackdropProps:T,getTransitionProps:O,portalRef:z,isTopModal:q,exited:N,hasTransition:j}=VF(qs({},M,{rootRef:t})),F=qs({},M,{exited:N}),$=(e=>{const{open:t,exited:n,classes:r}=e;return jy({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},YF,r)})(F),B={};if(void 0===m.props.tabIndex&&(B.tabIndex="-1"),j){const{onEnter:e,onExited:t}=O();B.onEnter=e,B.onExited=t}const G=null!=(n=null!=(r=null==I?void 0:I.root)?r:b.Root)?n:KF,W=null!=(o=null!=(i=null==I?void 0:I.backdrop)?i:b.Backdrop)?o:u,H=null!=(a=null==A?void 0:A.root)?a:v.root,V=null!=(l=null==A?void 0:A.backdrop)?l:v.backdrop,Y=Wy({elementType:G,externalSlotProps:H,externalForwardedProps:P,getSlotProps:D,additionalProps:{ref:t,as:g},ownerState:F,className:T_(p,null==H?void 0:H.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),U=Wy({elementType:W,externalSlotProps:V,additionalProps:d,getSlotProps:e=>T(qs({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:T_(null==V?void 0:V.className,null==d?void 0:d.className,null==$?void 0:$.backdrop),ownerState:F});return R||L||j&&!N?de.jsx(EF,{ref:z,container:h,disablePortal:S,children:de.jsxs(G,qs({},Y,{children:[!E&&u?de.jsx(W,qs({},U)):null,de.jsx(WF,{disableEnforceFocus:_,disableAutoFocus:x,disableRestoreFocus:w,isEnabled:q,open:L,children:c.cloneElement(m,B)})]}))}):null})),ZF=N_("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),QF=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function e$(e){return`scale(${e}, ${e**2})`}const t$={entering:{opacity:1,transform:e$(1)},entered:{opacity:1,transform:"none"}},n$="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),r$=c.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:d,onExited:p,onExiting:f,style:m,timeout:h="auto",TransitionComponent:g=Fw}=e,b=Ou(e,QF),v=Ly(),x=c.useRef(),_=rD(),y=c.useRef(null),S=Cy(y,Hy(o),t),w=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},C=w(u),E=w(((e,t)=>{Kj(e);const{duration:n,delay:r,easing:o}=Xj({style:m,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=_.transitions.getAutoHeightDuration(e.clientHeight),x.current=a):a=n,e.style.transition=[_.transitions.create("opacity",{duration:a,delay:r}),_.transitions.create("transform",{duration:n$?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=w(s),k=w(f),L=w((e=>{const{duration:t,delay:n,easing:r}=Xj({style:m,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=_.transitions.getAutoHeightDuration(e.clientHeight),x.current=o):o=t,e.style.transition=[_.transitions.create("opacity",{duration:o,delay:n}),_.transitions.create("transform",{duration:n$?o:.666*o,delay:n$?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=e$(.75),d&&d(e)})),A=w(p);return de.jsx(g,qs({appear:r,in:a,nodeRef:y,onEnter:E,onEntered:R,onEntering:C,onExit:L,onExited:A,onExiting:k,addEndListener:e=>{"auto"===h&&v.start(x.current||0,e),n&&n(y.current,e)},timeout:"auto"===h?null:h},b,{children:(e,t)=>c.cloneElement(o,qs({style:qs({opacity:0,transform:e$(.75),visibility:"exited"!==e||a?void 0:"hidden"},t$[e],m,o.props.style),ref:S},t))}))}));function o$(e){return q_("MuiLink",e)}r$.muiSupportAuto=!0;const i$=N_("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),a$={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},l$=({theme:e,ownerState:t})=>{const n=(e=>a$[e]||e)(t.color),r=_I(e,`palette.${n}`,!1)||t.color,o=_I(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:jP(r,.4)},s$=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],u$=kD(CF,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Rx(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>qs({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&qs({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:l$({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${i$.focusVisible}`]:{outline:"auto"}}))),d$=c.forwardRef((function(e,t){const n=Uj({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:d="inherit",sx:p}=n,f=Ou(n,s$),{isFocusVisibleRef:m,onBlur:h,onFocus:g,ref:b}=qy(),[v,x]=c.useState(!1),_=Cy(t,b),y=qs({},n,{color:o,component:i,focusVisible:v,underline:u,variant:d}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return jy({root:["root",`underline${Rx(o)}`,"button"===n&&"button",r&&"focusVisible"]},o$,t)})(y);return de.jsx(u$,qs({color:o,className:T_(S.root,r),classes:s,component:i,onBlur:e=>{h(e),!1===m.current&&x(!1),a&&a(e)},onFocus:e=>{g(e),!0===m.current&&x(!0),l&&l(e)},ref:_,ownerState:y,variant:d,sx:[...Object.keys(a$).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},f))})),c$=c.createContext({});function p$(e){return q_("MuiList",e)}N_("MuiList",["root","padding","dense","subheader"]);const f$=["children","className","component","dense","disablePadding","subheader"],m$=kD("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>qs({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),h$=c.forwardRef((function(e,t){const n=Uj({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Ou(n,f$),d=c.useMemo((()=>({dense:a})),[a]),p=qs({},n,{component:i,dense:a,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return jy({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},p$,t)})(p);return de.jsx(c$.Provider,{value:d,children:de.jsxs(m$,qs({as:i,className:T_(f.root,o),ref:t,ownerState:p},u,{children:[s,r]}))})})),g$=N_("MuiListItemIcon",["root","alignItemsFlexStart"]),b$=N_("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),v$=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function x$(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function _$(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function y$(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function S$(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&y$(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const w$=c.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:d="selectedMenu"}=e,p=Ou(e,v$),f=c.useRef(null),m=c.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});uy((()=>{r&&f.current.focus()}),[r]),c.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${Ny(gy(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}})),[]);const h=Cy(f,t);let g=-1;c.Children.forEach(i,((e,t)=>{c.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))):g===t&&(g+=1,g>=i.length&&(g=-1))}));const b=c.Children.map(i,((e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),c.cloneElement(e,t)}return e}));return de.jsx(h$,qs({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=f.current,n=e.key,r=gy(t).activeElement;if("ArrowDown"===n)e.preventDefault(),S$(t,r,s,l,x$);else if("ArrowUp"===n)e.preventDefault(),S$(t,r,s,l,_$);else if("Home"===n)e.preventDefault(),S$(t,null,s,l,x$);else if("End"===n)e.preventDefault(),S$(t,null,s,l,_$);else if(1===n.length){const o=m.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&y$(r,o);o.previousKeyMatched&&(s||S$(t,r,!1,l,x$,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},p,{children:b}))}));function C$(e){return q_("MuiPopover",e)}N_("MuiPopover",["root","paper"]);const E$=["onEntering"],R$=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],k$=["slotProps"];function L$(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function A$(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function I$(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function P$(e){return"function"==typeof e?e():e}const M$=kD(JF,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),D$=kD(eF,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),T$=c.forwardRef((function(e,t){var n,r,o;const i=Uj({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:p,className:f,container:m,elevation:h=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:x,slotProps:_,transformOrigin:y={vertical:"top",horizontal:"left"},TransitionComponent:S=r$,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:E=!1}=i,R=Ou(i.TransitionProps,E$),k=Ou(i,R$),L=null!=(n=null==_?void 0:_.paper)?n:v,A=c.useRef(),I=Cy(A,L.ref),P=qs({},i,{anchorOrigin:s,anchorReference:d,elevation:h,marginThreshold:g,externalPaperSlotProps:L,transformOrigin:y,TransitionComponent:S,transitionDuration:w,TransitionProps:R}),M=(e=>{const{classes:t}=e;return jy({root:["root"],paper:["paper"]},C$,t)})(P),D=c.useCallback((()=>{if("anchorPosition"===d)return u;const e=P$(l),t=(e&&1===e.nodeType?e:gy(A.current).body).getBoundingClientRect();return{top:t.top+L$(t,s.vertical),left:t.left+A$(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,d]),T=c.useCallback((e=>({vertical:L$(e,y.vertical),horizontal:A$(e,y.horizontal)})),[y.horizontal,y.vertical]),O=c.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===d)return{top:null,left:null,transformOrigin:I$(n)};const r=D();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=by(P$(l)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,n.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,n.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:I$(n)}}),[l,d,D,T,g]),[z,q]=c.useState(b),N=c.useCallback((()=>{const e=A.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,q(!0)}),[O]);c.useEffect((()=>(E&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N))),[l,E,N]);c.useEffect((()=>{b&&N()})),c.useImperativeHandle(a,(()=>b?{updatePosition:()=>{N()}}:null),[b,N]),c.useEffect((()=>{if(!b)return;const e=hy((()=>{N()})),t=by(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,b,N]);let j=w;"auto"!==w||S.muiSupportAuto||(j=void 0);const F=m||(l?gy(P$(l)).body:void 0),$=null!=(r=null==x?void 0:x.root)?r:M$,B=null!=(o=null==x?void 0:x.paper)?o:D$,G=Wy({elementType:B,externalSlotProps:qs({},L,{style:z?L.style:qs({},L.style,{opacity:0})}),additionalProps:{elevation:h,ref:I},ownerState:P,className:T_(M.paper,null==L?void 0:L.className)}),W=Wy({elementType:$,externalSlotProps:(null==_?void 0:_.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:b},ownerState:P,className:T_(M.root,f)}),{slotProps:H}=W,V=Ou(W,k$);return de.jsx($,qs({},V,!Fy($)&&{slotProps:H,disableScrollLock:E},{children:de.jsx(S,qs({appear:!0,in:b,onEntering:(e,t)=>{C&&C(e,t),N()},onExited:()=>{q(!1)},timeout:j},R,{children:de.jsx(B,qs({},G,{children:p}))}))}))}));function O$(e){return q_("MuiMenu",e)}N_("MuiMenu",["root","paper","list"]);const z$=["onEntering"],q$=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],N$={vertical:"top",horizontal:"right"},j$={vertical:"top",horizontal:"left"},F$=kD(T$,{shouldForwardProp:e=>RD(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$$=kD(D$,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),B$=kD(w$,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),G$=c.forwardRef((function(e,t){var n,r;const o=Uj({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:d,open:p,PaperProps:f={},PopoverClasses:m,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:v={},slotProps:x={}}=o,_=Ou(o.TransitionProps,z$),y=Ou(o,q$),S=(()=>{const e=c.useContext(LP);return null!=e&&e})(),w=qs({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:g,PaperProps:f,transitionDuration:h,TransitionProps:_,variant:b}),C=(e=>{const{classes:t}=e;return jy({root:["root"],paper:["paper"],list:["list"]},O$,t)})(w),E=i&&!s&&p,R=c.useRef(null);let k=-1;c.Children.map(a,((e,t)=>{c.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===k)&&(k=t))}));const L=null!=(n=v.paper)?n:$$,A=null!=(r=x.paper)?r:f,I=Wy({elementType:v.root,externalSlotProps:x.root,ownerState:w,className:[C.root,l]}),P=Wy({elementType:L,externalSlotProps:A,ownerState:w,className:C.paper});return de.jsx(F$,qs({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?N$:j$,slots:{paper:L,root:v.root},slotProps:{root:I,paper:P},open:p,ref:t,transitionDuration:h,TransitionProps:qs({onEntering:(e,t)=>{R.current&&R.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),g&&g(e,t)}},_),ownerState:w},y,{classes:m,children:de.jsx(B$,qs({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:R,autoFocus:i&&(-1===k||s),autoFocusItem:E,variant:b},u,{className:T_(C.list,u.className),children:a}))}))}));function W$(e){return q_("MuiMenuItem",e)}const H$=N_("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),V$=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Y$=kD(vF,{shouldForwardProp:e=>RD(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>qs({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${H$.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:jP(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${H$.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:jP(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${H$.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:jP(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:jP(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${H$.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${H$.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ZF.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ZF.inset}`]:{marginLeft:52},[`& .${b$.root}`]:{marginTop:0,marginBottom:0},[`& .${b$.inset}`]:{paddingLeft:36},[`& .${g$.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&qs({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${g$.root} svg`]:{fontSize:"1.25rem"}})))),U$=c.forwardRef((function(e,t){const n=Uj({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:d,className:p}=n,f=Ou(n,V$),m=c.useContext(c$),h=c.useMemo((()=>({dense:i||m.dense||!1,disableGutters:l})),[m.dense,i,l]),g=c.useRef(null);uy((()=>{r&&g.current&&g.current.focus()}),[r]);const b=qs({},n,{dense:h.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return qs({},a,jy({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},W$,a))})(n),x=Cy(g,t);let _;return n.disabled||(_=void 0!==d?d:-1),de.jsx(c$.Provider,{value:h,children:de.jsx(Y$,qs({ref:x,role:u,tabIndex:_,component:o,focusVisibleClassName:T_(v.focusVisible,s),className:T_(v.root,p)},f,{ownerState:b,classes:v}))})})),K$=kD(OF,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?n:t}}))),X$=kD("div",{shouldForwardProp:e=>!["direction"].includes(e)})((({direction:e})=>({position:"absolute",left:"rtl"!==e?0:void 0,bottom:0}))),J$=kD("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...LA,justifyContent:null!=e?e:LA.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),Z$=kD("div")((()=>({...LA}))),Q$=kD("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:o}))),eB=kD(G$)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),tB=kD(U$,{shouldForwardProp:e=>!["isActive"].includes(e)})((({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:e.spacing(.5),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:t?"rgba(0, 0, 0, 0.05)":"transparent","&:hover":{".indent-mode-dropdown-more":{opacity:1}}}))),nB=kD("span")({textOverflow:"ellipsis",overflow:"hidden"}),rB=kD("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:20,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),oB=kD("span",{shouldForwardProp:e=>!["padding","alignSelf"].includes(e)})((({padding:e,alignSelf:t})=>({padding:e,alignSelf:t,position:"sticky",top:0})));var iB;!function(e){e.Expand="Expand",e.Collapse="Collapse"}(iB||(iB={}));const aB=(e,t)=>({qExcludeList:t===iB.Expand,qPos:{qDimName:e,qElemNo:[]}}),lB=`${sO}/qExpansionState`,sB=({model:e,qExpansionState:t,qEffectiveDimensionName:n,action:r})=>async()=>{const o=(({qEffectiveDimensionName:e,oldExpansionState:t,action:n})=>{const r=null==t?void 0:t.findIndex((t=>{var n;return(null===(n=t.qPos)||void 0===n?void 0:n.qDimName)===e}));return{expansionData:aB(e,n),index:r}})({qEffectiveDimensionName:n,oldExpansionState:t,action:r});await(async({model:e,newExpansionState:t,errorMsg:n})=>{const{index:r,expansionData:o}=t;try{let t,n=lB,i="Add";void 0===r?t=JSON.stringify([o]):-1===r?(n=`${lB}/-`,t=JSON.stringify(o)):(n=`${lB}/${r}`,i="Replace",t=JSON.stringify(o)),await e.applyPatches([{qPath:n,qOp:i,qValue:t}],!0)}catch(e){console.error(n,e)}})({model:e,newExpansionState:o,errorMsg:`Failed to ${r} dimension`})},uB=({model:e,effectivePropertiesService:t,cell:n})=>{if(void 0===n.qEffectiveDimensionName)return;const r={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n.qEffectiveDimensionName};return{expandCallback:sB({...r,action:iB.Expand}),collapseCallback:sB({...r,action:iB.Collapse})}},dB={[vT.Sorting]:!0,[vT.Selections]:!0,[vT.Searching]:!0},cB=({cell:e,style:t,isFirstColumn:n,isLastColumn:r,isLastRow:o,changeSortOrder:i,iconsVisibilityStatus:a,columnWidth:l,overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:u,tableWidth:d})=>{var c;const p=m(null),{styleService:f,layoutService:h,effectivePropertiesService:g}=iO(),{app:b,interactions:v,embed:x,translator:_,model:y}=nO(),{fontSize:S,fontFamily:w,fontStyle:C,fontWeight:E,textDecoration:R,color:k,background:L,hoverBackground:A,activeBackground:I}=f.header,P=m(null),{shouldShowLockIcon:M,shouldShowMenuIcon:D}=a,{open:T,setOpen:O,handleOpenMenu:z,setIsAdjustingWidth:q}=Hj(),{direction:N}=QT(),j={sortFromMenu:async(t,n)=>{t.stopPropagation(),await i(e,n)}},F={embed:x,listboxRef:p,sortCriteria:h.searchSortFromDimension&&e.isDim?g.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},$={app:b,qStateName:h.layout.qStateName},{labelTextAlign:B}=null!==(c=h.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==c?c:{},G=Rj(B,"flex-start",N);return de.jsxs(K$,{className:na,title:e.label,interactions:v,background:T?I:L,hoverBackground:A,shouldShowMenuIcon:D,isDimension:e.isDim,style:{...t,...IA,...OA(e,o,n,r,f.grid.border,N),color:k},"data-testid":"title-cell",onClick:z,children:[de.jsxs(J$,{children:[M?de.jsx(Z$,{children:de.jsx(Gj,{height:12})}):null,de.jsx(Q$,{fontFamily:w,fontSize:S,fontStyle:C,fontWeight:E,textDecoration:R,justifyContent:G,children:de.jsx("span",{style:PA,children:e.label})})]}),e.isDim?de.jsxs(de.Fragment,{children:[de.jsx(yT,{headerData:e,translator:_,anchorRef:P,open:T,setOpen:O,interactions:v,menuAvailabilityFlags:dB,sortRelatedArgs:j,searchRelatedArgs:F,selectionRelatedArgs:$,expandOrCollapseArgs:uB({model:y,effectivePropertiesService:g,cell:e}),shouldShowMenuIcon:D,model:y&&"setActiveField"in y?y:void 0,direction:N}),de.jsx(X$,{ref:p,direction:N}),de.jsx(X$,{ref:P,direction:N})]}):null,de.jsx(Yj,{cellInfo:{...e,isLeftColumn:!0},columnWidth:l,isLastColumn:r,overrideLeftGridWidth:s,setIsAdjustingWidth:q,shouldApplyIndentModeColumnWidth:u,tableWidth:d})]})},pB=({rowSpan:e,columnSpan:t})=>{const{styleService:n}=iO(),{direction:r}=QT();return e>0&&t>0?de.jsx("div",{style:{...AA,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"rtl"===r?"0px 0px 0px 1px":"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null},fB=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}))),mB=u(((e,t)=>de.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[de.jsx("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),de.jsx("use",{fillRule:"evenodd"})]}))),hB=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:n})=>{const{direction:r}=QT(),{styleService:o}=iO(),{interactions:i,translator:a}=nO(),{isActive:l}=tj(),{dataModel:s}=Hz(),{setIsAdjustingWidth:u}=Wj([s]);if(!(!!i.active&&!l))return null;const d=Vj(o,{isLeftColumn:!0});return de.jsx(TD,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:d,columnWidth:t,updateWidthCallback:t=>{n(Math.min(t,e*Uz))},confirmWidthCallback:r=>{var o;if(r.type===aa.FitToContent)return void s.applyIndentModeColumnWidth({type:aa.Auto});const i=Math.min(null!==(o=r.pixels)&&void 0!==o?o:t,e*Uz);n(i),s.applyIndentModeColumnWidth({type:aa.Pixels,pixels:i})},setIsAdjustingWidth:u,accessibilityRelatedArgs:{translator:a,columnLabel:a.get("SNPivotTable.IndentMode.Rows")},direction:r})},gB=u(((e,t)=>de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:de.jsx("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})}))),bB=({cell:e,changeSortOrder:t})=>{const n=m(null),r=m(null),{app:o,interactions:i,embed:a,translator:l,model:s}=nO(),{layoutService:u,effectivePropertiesService:d}=iO(),{open:c,setOpen:p,handleOpenMenu:f}=Hj();return de.jsxs(tB,{onClick:f,isActive:c,children:[de.jsx(nB,{children:e.label}),de.jsxs(rB,{className:"indent-mode-dropdown-more",visible:c,children:[de.jsx(gB,{}),e.isDim?de.jsxs(de.Fragment,{children:[de.jsx(yT,{headerData:e,translator:l,anchorRef:n,open:c,setOpen:p,interactions:i,menuAvailabilityFlags:dB,sortRelatedArgs:{sortFromMenu:async(n,r)=>{n.stopPropagation(),await t(e,r)}},searchRelatedArgs:{embed:a,listboxRef:r},selectionRelatedArgs:{app:o,qStateName:u.layout.qStateName},expandOrCollapseArgs:uB({model:s,effectivePropertiesService:d,cell:e}),shouldShowMenuIcon:!1,model:s&&"setActiveField"in s?s:void 0}),de.jsx(X$,{ref:r}),de.jsx(X$,{ref:n})]}):null]})]})},vB=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{var o,i;const a=(null===(o=n.at(-1))||void 0===o?void 0:o.id)===dO,l=e+1<n.length&&(null===(i=n[e+1])||void 0===i?void 0:i.id)===dO;return!(r&&a&&l)&&((null==t?void 0:t.id)!==dO&&e<n.length-1)},xB=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:r,leftGridWidth:o,tableWidth:i})=>{const{styleService:a}=iO(),{interactions:l,translator:s}=nO(),{dataModel:u,gridSectionsData:{headersData:d}}=Hz(),[c,p]=n(!1),f=m(null),{headerCellHeight:h}=a,{color:g,background:b,hoverBackground:v,activeBackground:x,fontFamily:_,fontSize:y,fontStyle:S,fontWeight:w,textDecoration:C}=a.header,{isAdjustingWidth:E}=Wj([u]),R=e=>{e.stopPropagation()},k={height:h,gridColumn:`1 / span ${d.size.x}`,gridRow:d.size.y,zIndex:d.size.x-0};return de.jsxs(K$,{isDimension:!0,background:c?x:b,interactions:l,hoverBackground:v,style:{...k,...IA,color:g},onClick:e=>{!l.active||ZN(e)||E||p(!c)},"data-testid":"indentModeHeaderCellWrapper",children:[de.jsxs(J$,{justifyContent:"flex-start",children:[de.jsx(Q$,{fontFamily:_,fontSize:y,fontStyle:S,fontWeight:w,textDecoration:C,justifyContent:"flex-start",children:de.jsx("span",{style:PA,children:s.get("SNPivotTable.IndentMode.Rows")})}),c?de.jsx(mB,{}):de.jsx(fB,{}),de.jsx(X$,{ref:f})]}),de.jsx(eB,{open:c,anchorEl:f.current,disableEnforceFocus:!0,children:e.map(((n,r)=>[n&&n.id!==dO&&de.jsx("li",{role:"presentation",onClick:R,onKeyDown:R,children:de.jsx(bB,{cell:n,changeSortOrder:t})}),vB({idx:r,menu:n,menuItems:e,isOnlyOneRow:1===d.size.y})&&de.jsx(jD,{"data-testid":"group-divider",variant:"middle"})]))}),de.jsx(hB,{tableWidth:i,leftGridWidth:o,overrideLeftGridWidth:r})]})},_B=({layoutService:e,headersData:t,topRowIndex:n})=>e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y,yB={display:"grid",width:"fit-content"},SB=({tableWidth:e,leftGridWidth:t,columnWidths:n,rowHight:r,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:l})=>{const{layoutService:s}=iO(),{gridSectionsData:{headersData:u}}=Hz();return de.jsxs("div",{"data-testid":"HEADER_GRID",style:{...yB,gridTemplateColumns:n.map((e=>`${e}px`)).join(" "),gridTemplateRows:u.data.map((()=>`${r}px`)).join(" "),height:a},children:[u.size.y>1&&de.jsx(pB,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map(((a,d)=>{let c=[];if(_B({layoutService:s,headersData:u,topRowIndex:d})){const n=a.at(0);var p;if(Array.isArray(n))c.push(de.jsx(xB,{menuItems:n,changeSortOrder:o,overrideLeftGridWidth:l,leftGridWidth:t,tableWidth:e},null===(p=n.at(0))||void 0===p?void 0:p.id));return c}return c=a.reduce(((t,a,c)=>{if(a&&!Array.isArray(a)){const p=i(c,a.isLocked,a.label),f=s.isIndentModeEnabled&&1===u.size.x;t.push(de.jsx(cB,{style:{width:n[c],height:r,gridColumn:s.isIndentModeEnabled&&u.size.x>1?2:c+1,gridRow:d+1,zIndex:u.size.x-c},isLastRow:d===u.size.y-1,isFirstColumn:0===c,isLastColumn:c===u.size.x-1,changeSortOrder:o,cell:a,iconsVisibilityStatus:p,columnWidth:n[c],overrideLeftGridWidth:l,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t}),[]),c}))]})};var wB=_(SB);const CB=(e,t,n,r)=>{const{layoutService:o}=iO();d((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,n,r,o])},EB=(e,t)=>{sI((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},RB=(e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]},kB=(e,t,n,r,o)=>{var i,a;if(o)return;const l=e.representation,s=Xz({isLeftColumn:n,layoutService:t,representation:l}),u=n?"flex-start":"center",d=null===(i=e.representation.resolvedImagePosition)||void 0===i?void 0:i.horizontal;if(e.representation.type===gs.Image)return s&&d&&"center"!==d&&"rtl"===r?YN(d):null!=d?d:u;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var c;const{labelTextAlign:n}=null!==(c=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==c?c:{};return Rj(n,u,r)}const{textAlign:p}=null!==(a=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==a?a:{};return Rj(p,u,r)},LB=()=>{},AB=({children:e,reactWindowStyle:t,cell:n,data:r,showTotalCellDivider:o,isLastRow:i,isLastColumn:a,isLeftColumn:l,isCellSelected:s,isAdjustingWidth:u,index:d})=>{var c;const{styleService:p,layoutService:f}=iO(),{interactions:m}=nO(),{direction:h}=QT(),{isLocked:g,createMouseDownHandler:b,createMouseOverHandler:v}=tj(),{showLastBorder:x}=r,_=g(n)||n.isLockedByDimension,y=!(_||!m.active||!m.select||n.isEmpty||n.isNull||n.isPseudoDimension||n.isTotal||u),S=y?b(d,(e=>RB(e,r))):void 0,w=y?v(d):void 0,C=Xz({isLeftColumn:l,layoutService:f,representation:n.representation});return de.jsx("div",{className:na,title:m.passive?n.representation.text:void 0,style:{...t,...TA(i,a,p.grid.border,h,x),...zA({bottomDivider:o&&l,rightDivider:o&&!l,borderColor:p.grid.divider}),...IA,padding:"rtl"===h?"0px 0px 0px 4px":"0px 4px",cursor:fj(y),background:sj({styleService:p,isCellSelected:s,cell:n,isCellLocked:_}),zIndex:l?void 0:f.size.x-n.x,justifyContent:kB(n,f,l,h,C),display:"flex",...f.isIndentModeEnabled&&l&&{["rtl"===h?"paddingRight":"paddingLeft"]:Math.max(4,24*(null!==(c=n.indentLevel)&&void 0!==c?c:0))},textAlign:kj(n,f)},"aria-hidden":"true",onMouseDown:S,onMouseOver:w,onKeyUp:LB,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":n.x,"data-page-x":n.pageX,"data-y":n.y,"data-page-y":n.pageY,"data-cell-type":n.ref.qType,"data-dimension-info-index":n.dimensionInfoIndex,children:e})},IB=e=>{e.stopPropagation()},PB=({href:e,text:t,interactions:n,color:r})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:IB,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}}),MB=({href:e,text:t,interactions:n,color:r})=>i.createElement(oR,PB({href:e,text:t,interactions:n,color:r}),t),DB=W();DB.use(G),DB.renderer.prio(["canvas"]);const TB=(e,t)=>e&&"center"!==e&&"rtl"===t?YN(e):e,OB=({cell:e,representation:t,textStyle:n,imageContainerHorizontalAlignment:r})=>{var o,i;const{imageBox:a}=t,{styleService:{grid:{lineClamp:l}}}=iO(),{direction:s}=QT();return de.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${null!==(o=null==a?void 0:a.width)&&void 0!==o?o:24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",boxSizing:"border-box"},children:[de.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:oj(e),alignItems:TB(r,s),overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:null!==(i=null==a?void 0:a.width)&&void 0!==i?i:24,height:"100%"},children:de.jsx(Cj,{representation:t,textStyle:n})}),de.jsx(oB,{padding:4/(l<=2?2:1),alignSelf:oj(e,!0),children:!!t.labelStructure&&Sj(t.labelStructure)})]})},zB=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,qB=({href:e,text:t,labelStructure:n,interactions:r,color:o})=>de.jsxs("span",{children:[de.jsx(d$,{...PB({href:e,text:t,interactions:r,color:o}),children:null!=n&&n.maskedValue?n.maskedValue:null==n?void 0:n.originalValue}),!!n&&zB(n)]}),NB=({children:e,textStyle:t,shouldEnableStickyText:n})=>de.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box",...n&&{alignSelf:"flex-start",position:"sticky",top:0}},children:e}),jB=({cell:e,isCellSelected:t,isLeftColumn:n})=>{const{direction:r}=QT(),{isActive:o}=tj(),{layoutService:i,styleService:a}=iO(),{interactions:l}=nO(),s=i.isIndentModeEnabled&&i.indentModeFeatures.isImagesSupported,u=n&&s;let d=n&&!e.isNull?(e=>{const{representation:{text:t,labelStructure:n}}=e;if(!n||!n.originalValue)return t;const{originalValue:r,maskedValue:o,suffix:i,delimeter:a}=n;return`${0!==o.length?o:r} ${i?a:""} ${i}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const c=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...PA,...MA(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:uj({cell:e,styleService:t,isCellSelected:n}),fontWeight:dj({cell:e,styleService:t}),fontStyle:cj({cell:e,styleService:t}),textDecoration:pj({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:a,isCellSelected:t,isLeftColumn:n});if(e.representation.type===gs.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,o=n&&t&&t.suffix?OB:Ej;return de.jsx(o,{cell:e,representation:e.representation,leafCount:e.leafCount,textStyle:c,isLeftColumn:n,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:kB(e,i,n,r)})}if(e.representation.type===gs.Link&&!o&&!e.isTotal){const t=n&&e.representation.labelStructure?qB:MB;d=de.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:l,color:e.expressionColor.color})}return de.jsx(NB,{shouldEnableStickyText:u,textStyle:{...c,...e.representation.type===gs.Image&&e.isNull?{alignSelf:oj(e)}:{}},children:d})},FB=({index:e,style:t,data:n})=>{const{styleService:r,layoutService:o}=iO(),{isSelected:i}=tj(),{isLeftColumn:a=!1,showLastBorder:l,itemCount:s,isLast:u,totalDividerIndex:d}=n,{isAdjustingWidth:c,setIsAdjustingWidth:p}=Wj([n]),f=RB(e,n),m=a?e===s-1:u,h=a?u:e===s-1,g=bN(f,d,o.isIndentModeEnabled);if(void 0===f){const{background:n}=r.dimensionValues;return de.jsx(vN,{style:{...t,background:n},index:e,isLastRow:m,isLastColumn:h,showLastBorder:l,isLeftColumn:a,showTotalCellDivider:g})}const b=i(f);return de.jsxs(AB,{reactWindowStyle:t,isLeftColumn:a,isLastRow:m,isLastColumn:h,isCellSelected:b,showTotalCellDivider:g,cell:f,data:n,isAdjustingWidth:c,index:e,children:[de.jsxs(xN,{verticalAlign:oj(f),width:_N(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[de.jsx(gj,{isLeftColumn:a,isCellSelected:b,cell:f}),de.jsx(jB,{isLeftColumn:a,isCellSelected:b,cell:f})]}),de.jsx(Yj,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?ws.Measures:ws.Dimension},columnWidth:t.width,isLastColumn:h,setIsAdjustingWidth:p})]})};var $B=i.memo(FB,nN);const BB=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>o=>{var i;const a=n?e[o]:t.at(o);return a&&0===o&&a.x>0?(a.leafCount+a.x+a.distanceToNextCell)*r():!n&&a?(a.leafCount+a.distanceToNextCell)*r():r(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o)},GB=(e,t,n,r)=>{const o=Object.values(e);let i,a=o.length;return r&&(a=n,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},WB=(e,t)=>n=>{e.current&&(e.current[t]=n)},HB={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...AA},VB={overflow:"hidden",willChange:"auto",flexShrink:0},YB=({leftGridRef:e,width:t,height:n,columnWidths:r,showLastBorder:o})=>{const{pageInfo:i,direction:a}=QT(),{layoutService:l,styleService:{contentCellHeight:s,grid:{divider:u}}}=iO(),{qSize:d}=l.layout.qHyperCube,{gridSectionsData:{leftDimensionData:c},visibleDimensionsInfo:{visibleLeftDimensionInfo:p}}=Hz();EB(e,c),CB(e,t,n,s);const f=i.rowsOnCurrentPage*s,m={...HB,borderColor:u,width:r.reduce(((e,t)=>e+t),0)};return de.jsx("div",{style:m,"data-section-id":"LEFT_GRID",children:c.grid.map(((t,u)=>{const m=u===c.columnCount-1,h=bO(p[u]),{itemCount:g,estimatedItemSize:b,listValues:v}=GB(t,f,i.rowsOnCurrentPage,m),x=l.isIndentModeEnabled?()=>s:((e,t,n,r,o)=>i=>{const a=r?e[i]:t.at(i);if(a&&0===i&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if(a&&a.leafCount>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(t,v,s,m,d.qcy);return de.jsx(Zq,{ref:WB(e,u),style:{...VB,flexGrow:m?1:0,direction:a},height:n,width:r[u],itemCount:g,itemSize:x,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:m,itemCount:g,showLastBorder:o,listValues:v,totalDividerIndex:c.totalDividerIndex},itemKey:Nj,estimatedItemSize:b,children:$B},h)}))})};var UB=_(YB);const KB={overflow:"hidden",willChange:"auto"},XB=e=>({...AA,borderWidth:"rtl"===e?"0px 1px 0px 0px":"0px 0px 0px 1px"}),JB=({topGridRef:e,rowHightCallback:t,width:n,height:r,showLastBorder:o,getRightGridColumnWidth:i})=>{const{direction:a}=QT(),{layoutService:l,styleService:{grid:{divider:s},headerCellHeight:u}}=iO(),{gridSectionsData:{headersData:d,topDimensionData:c}}=Hz(),p={...XB(a),borderColor:s,height:r};EB(e,c),CB(e,n,r,u);const f=l.size.x*i();return 0===c.rowCount?de.jsx("div",{style:{width:n,height:r,...XB(a)}}):de.jsx("div",{style:p,"data-section-id":"TOP_GRID",children:c.grid.map(((r,s)=>{const u=s===c.rowCount-1,{itemCount:p,estimatedItemSize:m,listValues:h}=GB(r,f,l.size.x,u),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{const r=t.data.at(n);if(void 0===r)return;const o=t.size.x-1,i=_B({layoutService:e,headersData:t,topRowIndex:n})?0:o,a=r.at(i),l=Array.isArray(a)?a.at(o):a;return l?e.getDimensionInfo(l.dimensionInfoIndex):void 0})({layoutService:l,headersData:d,topRowIndex:s}),b=g?bO(g):`empty ${s}`;return de.jsx(Zq,{ref:WB(e,s),style:KB,height:t(),width:n,itemCount:p,itemSize:BB({list:r,listValues:h,isLastRow:u,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:r,isLast:u,itemCount:p,showLastBorder:o,listValues:h,totalDividerIndex:c.totalDividerIndex},itemKey:Nj,estimatedItemSize:m,direction:a,children:$B},b)}))})};var ZB=_(JB);const QB=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=iO(),n=bq(),o=(()=>{const{model:e}=nO(),t=h((async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(n===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:i,topGridWrapperRef:a,leftGridWrapperRef:l,dataGridWrapperRef:s},gridRefs:{topGridRef:u,leftGridRef:d,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:p,horizontalScrollDirection:f},scrollbarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:b}}=gq(),{leftGridWidth:v,leftGridFullWidth:x,leftGridColumnWidths:_,rightGridFullWidth:y,showLastRightBorder:S,getRightGridColumnWidth:w,getHeaderCellsIconsVisibilityStatus:C,overrideLeftGridWidth:E}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:n}){const{layoutService:o,styleService:i}=iO(),{gridSectionsData:{headersData:a}}=Hz(),{measureText:l}=oI(i.header),s=sq({tableWidth:e}),u=uq({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:s.leftGridWidth}),d=s.leftGridWidth+u.rightGridFullWidth+1<e,c=h(((e,t,n="")=>{let r=e;o.isIndentModeEnabled&&(r=1,1===a.size.x&&(r=0));const i=s.leftGridColumnWidths[r];let u=!1,d=!1,c=l(n)+Yz;return t&&c+20<=i&&(d=!0,c+=20),c+20<=i&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:d}}),[s.leftGridColumnWidths,l,o.isIndentModeEnabled,a.size.x]);return r((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=u.rightGridWidth===u.rightGridFullWidth;e&&t&&n()}),[n,s.leftGridWidth,s.leftGridFullWidth,u.rightGridWidth,u.rightGridFullWidth]),{...s,...u,showLastRightBorder:d,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:n.width,verticalScrollbarWidth:m,resetHorizontalScrollbarHeight:b}),{gridScaffoldDimensions:R,headerGridDims:k,topGridDims:L,leftGridDims:A,dataGridDims:I,metadata:{everyThingFitsInTableRectHeight:P,scrollbarsVisibilityStatus:M}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:n,leftGridOriginalWidth:r,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const l=bq(),{pageInfo:s}=QT(),{gridSectionsData:{headersData:u,topDimensionData:d}}=Hz(),c=Math.min(l.height*Uz,Math.max(l.height*Uz-25,l.height-t-a)),p=l.width*Uz,f=s.rowsOnCurrentPage*t,m=Math.max(u.size.y,d.rowCount,1),h=e*m,g=e*m,b=Math.min(p,n),v=l.width-p,x=Math.max(v,l.width-b),_=Math.min(c,h,g),{availableHeight:y,everyThingFitsInTableRectHeight:S,everyThingFitsInTableRectWidth:w}=((e,t,n)=>{const r=t+1+n+i<=l.width,o=e+1+f+a,s=o-l.height<a||o<=l.height;return{availableHeight:s?o:l.height,everyThingFitsInTableRectHeight:s,everyThingFitsInTableRectWidth:r}})(_,b,x),C=y-c,E=Math.max(C,y-_),R=Math.min(E,f),k=Math.min(E,f),L=h+1+f,{visibilityStatus:A,metadata:{hasLeftGridOverflowX:I,hasDataGridOverflowX:P}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:n},Y_AXIS:{topSectionHeight:r,bottomSectionHeight:o}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:i,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:l,bottomSectionFullHeight:s}}}=e,u=l>r,d=i>t,c=a>n,p=s>o;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:u?"scroll":"hidden"},leftGrid:{overflowX:d?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:c?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:u,hasLeftGridOverflowX:d,hasDataGridOverflowX:c,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:b,rightSectionWidth:x},Y_AXIS:{topSectionHeight:_,bottomSectionHeight:E}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:r,rightSectionFullWidth:o},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:L-g}}});return{gridScaffoldDimensions:{width:l.width,height:l.height,gridTemplateColumns:`${b}px ${x}px`,gridTemplateRows:`${_}px ${E}px`},headerGridDims:{width:-1,height:_},topGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:g},stickyWrapper:{width:x-1-i,height:-1},self:{width:Math.min(o,x)-(w?1:0)-i,height:g}},leftGridDims:{fullSizeWrapper:{width:b,height:L-g+(!I&&P?a:0)},stickyWrapper:{width:b,height:E-1-a},self:{width:b,height:Math.max(t,R-(S?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:L-g+(!P&&I?a:0)},stickyWrapper:{width:x-1-i,height:E-1-a},self:{width:Math.min(o,x)-(w?1:0)-i,height:Math.max(t,k-(S?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:S,scrollbarsVisibilityStatus:A}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:v,leftGridOriginalWidth:x,rightGridOriginalWidth:y},scrollBarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g}}),D=h((()=>e),[e]),T=h((()=>t),[t]);return(()=>{const{downloadService:e}=iO();r((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),de.jsxs(xq,{style:R,children:[de.jsx("div",{style:{overflow:"hidden"},ref:i,children:de.jsx(wB,{tableWidth:n.width,leftGridWidth:v,columnWidths:_,getHeaderCellsIconsVisibilityStatus:C,rowHight:e,height:k.height,changeSortOrder:o,overrideLeftGridWidth:E})}),de.jsx(Sq,{style:M.topGrid,origin:Es.TopGrid,ref:a,children:de.jsx(vq,{style:L.fullSizeWrapper,children:de.jsx(wq,{style:L.stickyWrapper,children:de.jsx(ZB,{topGridRef:u,rowHightCallback:D,...L.self,showLastBorder:{right:S,bottom:!1},getRightGridColumnWidth:w})})})}),de.jsx(Sq,{style:M.leftGrid,origin:Es.LeftGrid,ref:l,children:de.jsx(vq,{style:A.fullSizeWrapper,children:de.jsx(wq,{style:A.stickyWrapper,children:de.jsx(UB,{leftGridRef:d,...A.self,columnWidths:_,showLastBorder:{right:!1,bottom:P}})})})}),de.jsx(Sq,{style:M.dataGrid,origin:Es.DataGrid,ref:s,children:de.jsx(vq,{style:I.fullSizeWrapper,children:de.jsx(wq,{style:I.stickyWrapper,children:de.jsx(Bj,{dataGridRef:c,rowHightCallback:T,...I.self,showLastBorder:{right:S,bottom:P},getRightGridColumnWidth:w,verticalScrollDirection:p,horizontalScrollDirection:f})})})})]})},eG=()=>{const{keyboard:e,theme:t,interactions:n,translator:r}=nO(),{pageInfo:o,updatePageInfo:i,rect:a}=QT(),{layoutService:l}=iO(),{layout:s,hasData:u}=l;return de.jsxs(de.Fragment,{children:[u?de.jsx(QB,{}):null,de.jsx(lO,{}),de.jsx(JT,{paginationNeeded:o.shouldShowPagination,handleChangePage:e=>{i({page:e})},pageInfo:o,totalRowCount:o.totalRowCount,totalColumnCount:0,totalPages:o.totalPages,keyboard:e,translator:r,theme:t,interactions:n,rect:a,layout:s})]})},tG={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},nG=12,rG=14,oG=16,iG=24,aG=3,lG=300,sG=400,uG=600,dG=700,cG={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};var pG='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A';function fG(e){return de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:de.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var mG=function({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return de.jsx("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})};function hG(e={}){return de.jsx(mG,{...e,children:de.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[de.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),de.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function gG(e={}){return de.jsx(mG,{fontSize:"medium",...e,children:de.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[de.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),de.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function bG(e){return de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:de.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function vG(e={}){return de.jsx(mG,{...e,children:de.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:de.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[de.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),de.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function xG(e={}){return de.jsx(mG,{fontSize:"medium",...e,children:de.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:de.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:de.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function _G({className:e}){return de.jsx(mG,{fontSize:"small",className:e,children:de.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:de.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:de.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:de.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[de.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),de.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function yG(e={}){return de.jsx(mG,{...e,children:de.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:de.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:de.jsx("rect",{stroke:tG.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const SG={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:aG,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var wG=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:tG.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:tG.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:de.jsx(fG,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${tG.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:tG.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${tG.MISC_FOCUS_BORDER}`,borderRadius:aG,backgroundColor:tG.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${tG.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:tG.WHITE,color:tG.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:aG},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${tG.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:tG.GREYSCALE_0_15,backgroundColor:tG.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:tG.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${tG.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:tG.GREEN_PALE},"&:active":{backgroundColor:tG.GREEN_DARK},"&.Mui-focusVisible":{borderColor:tG.GREEN_PALE,boxShadow:`0 0 0 3px ${RP(tG.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:tG.BLUE_PALE},"&:active":{backgroundColor:tG.BLUE_DARK},"&.Mui-focusVisible":{borderColor:tG.BLUE_PALE,boxShadow:`0 0 0 3px ${RP(tG.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:aG,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:tG.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${tG.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:tG.GREYSCALE_0_15,backgroundColor:tG.GREYSCALE_100_60,"&:active":{backgroundColor:tG.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:tG.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${tG.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:tG.PURPLE,"&.Mui-focusVisible":{borderColor:tG.PURPLE,boxShadow:`0 0 0 3px ${RP(tG.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:tG.GREEN,"&.Mui-focusVisible":{borderColor:tG.GREEN,boxShadow:`0 0 0 3px ${RP(tG.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:tG.BLUE,"&.Mui-focusVisible":{borderColor:tG.BLUE,boxShadow:`0 0 0 3px ${RP(tG.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:tG.ORANGE,"&.Mui-focusVisible":{borderColor:tG.ORANGE,boxShadow:`0 0 0 3px ${RP(tG.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:tG.RED,"&.Mui-focusVisible":{borderColor:tG.RED,boxShadow:`0 0 0 3px ${RP(tG.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:tG.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:tG.PURPLE_PALE},"&:active":{backgroundColor:tG.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:tG.PURPLE_PALE,boxShadow:`0 0 0 3px ${RP(tG.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:tG.GREEN_PALE},"&:active":{backgroundColor:tG.GREEN_DARK},"&.Mui-focusVisible":{borderColor:tG.GREEN_PALE,boxShadow:`0 0 0 3px ${RP(tG.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:tG.BLUE_PALE},"&:active":{backgroundColor:tG.BLUE_DARK},"&.Mui-focusVisible":{borderColor:tG.BLUE_PALE,boxShadow:`0 0 0 3px ${RP(tG.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:tG.ORANGE_PALE},"&:active":{backgroundColor:tG.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:tG.ORANGE_PALE,boxShadow:`0 0 0 3px ${RP(tG.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:tG.RED_PALE},"&:active":{backgroundColor:tG.RED_DARK},"&.Mui-focusVisible":{borderColor:tG.RED_PALE,boxShadow:`0 0 0 3px ${RP(tG.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:tG.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:tG.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:aG,boxShadow:`inset 0 0 0 2px ${tG.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:de.jsx(bG,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:nG,borderRadius:aG,color:tG.TEXT_PRIMARY,backgroundColor:tG.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:tG.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${tG.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:tG.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:tG.GREYSCALE_0_05,color:tG.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:tG.GREEN,borderColor:tG.GREEN},"&.MuiChip-outlinedInfo":{color:tG.BLUE,borderColor:tG.BLUE},"&.MuiChip-outlinedWarning":{color:tG.ORANGE,borderColor:tG.ORANGE},"&.MuiChip-outlinedError":{color:tG.RED,borderColor:tG.RED}},outlined:{border:`solid 1px ${tG.GREYSCALE_0_15}`,backgroundColor:tG.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:aG,boxShadow:"none",backgroundColor:tG.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:tG.GREEN,borderColor:tG.GREEN},outlinedSecondary:{color:tG.BLUE,borderColor:tG.BLUE},label:{fontFamily:cG.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:de.jsx(bG,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:de.jsx(fG,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:aG},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:aG,fontSize:rG,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:tG.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${tG.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:tG.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:tG.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:tG.GREYSCALE_0_05}}},popupIndicator:{borderRadius:aG,border:`solid 1px ${tG.GREYSCALE_0_15}`,color:tG.GREYSCALE_0_60,marginRight:0,width:iG,height:iG},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${tG.GREYSCALE_0_15}`},clearIndicator:{borderRadius:aG,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:tG.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:rG}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:nG,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:tG.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:tG.GREYSCALE_25,fontSize:nG,fontFamily:cG.FONT_FAMILY,fontWeight:uG,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:tG.TEXT_PRIMARY},"&.Mui-error":{color:tG.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:tG.TEXT_SECONDARY,content:"'(optional)'",fontWeight:sG,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:tG.TEXT_SECONDARY,content:"'(required)'",fontWeight:sG,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:rG,lineHeight:"16px",backgroundColor:tG.WHITE,borderRadius:aG,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${tG.GREYSCALE_0_05}`,borderColor:tG.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${tG.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${tG.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${tG.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${tG.RED}`,boxShadow:`0px 0px 0px 1px ${tG.RED}, inset 0 2px 0 0 ${tG.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${tG.GREYSCALE_0_10}`,borderColor:tG.GREYSCALE_0_10,backgroundColor:tG.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:tG.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:tG.GREYSCALE_0_15,borderRadius:aG,boxShadow:`inset 0 2px 0 0 ${tG.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>de.jsx(fG,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:tG.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:tG.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:tG.GREYSCALE_0_03},"&:active":{backgroundColor:tG.GREYSCALE_0_10},"&:focus":{backgroundColor:tG.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${tG.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${tG.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:tG.GREYSCALE_0_30,"&:hover":{backgroundColor:tG.GREYSCALE_0_0,borderColor:tG.GREYSCALE_0_15},"& ~svg":{color:tG.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${tG.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:aG}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:tG.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${tG.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:tG.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:rG,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:nG,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:nG,fontWeight:uG,color:tG.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:uG}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${tG.GREYSCALE_0_15}, 0px 0px 0px 1px ${tG.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:de.jsx(xG,{}),checkedIcon:de.jsx(gG,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:tG.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${tG.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:tG.GREEN_PALE,boxShadow:`0 0 0 3px ${RP(tG.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:tG.BLUE_PALE,boxShadow:`0 0 0 3px ${RP(tG.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:tG.GREYSCALE_0_20}},"&.Mui-disabled":{fill:tG.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:de.jsx(yG,{}),checkedIcon:de.jsx(hG,{}),indeterminateIcon:de.jsx(vG,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:aG,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:tG.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:tG.GREYSCALE_0_55,color:tG.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:tG.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:tG.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:tG.GREYSCALE_0_55,"&:hover":{color:tG.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:tG.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:tG.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:rG,color:tG.TEXT_PRIMARY,lineHeight:"16px",fontWeight:uG},secondary:{fontSize:nG,color:tG.GREYSCALE_45,fontWeight:sG,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:rG,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:rG,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:tG.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:nG,borderBottom:`solid 1px ${tG.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:rG,color:tG.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:tG.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:tG.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:tG.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:`url('${pG}')`,fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:tG.RED}}},"&.Mui-focusVisible":{backgroundColor:tG.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:tG.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:tG.GREEN,height:"24px","&.Mui-disabled":{color:tG.GREYSCALE_0_15}},rail:{backgroundColor:tG.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${tG.GREYSCALE_0_05}`,borderRadius:aG,boxShadow:`inset 0px 0px 0px 1px ${tG.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${tG.GREYSCALE_0_05}`,borderRadius:aG},thumb:{height:"16px",width:"16px",borderRadius:aG,backgroundColor:tG.WHITE,boxShadow:`0px 1px 2px 0px ${tG.GREYSCALE_0_15}, 0px 0px 0px 1px ${tG.GREYSCALE_0_05}`,"&:hover":{borderRadius:aG,boxShadow:`0 2px 4px 0 ${tG.GREYSCALE_0_30}, 0 0 0 1px ${tG.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${tG.GREYSCALE_0_15}, 0 0 0 1px ${tG.GREYSCALE_0_06}, 0 0 0 2px ${tG.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${tG.GREYSCALE_0_15}, 0 0 0 1px ${tG.GREYSCALE_0_06}, 0 0 0 2px ${tG.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:tG.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:tG.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:tG.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:tG.GREYSCALE_0_15},markLabel:{color:tG.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:tG.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:tG.WHITE,color:tG.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:tG.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:tG.GREEN_PALE,boxShadow:`0 0 0 3px ${RP(tG.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:tG.BLUE_PALE,boxShadow:`0 0 0 3px ${RP(tG.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:tG.GREYSCALE_0_15,borderRadius:aG},thumb:{height:"16px",width:"16px",borderRadius:aG,backgroundColor:tG.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:rG,fontWeight:uG,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${tG.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${tG.MISC_FOCUS_BORDER}`,backgroundColor:tG.GREYSCALE_0_03,borderRadius:aG},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:tG.GREYSCALE_25,"&.Mui-selected":{color:tG.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:rG,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:aG,"&:hover":{backgroundColor:tG.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${tG.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${tG.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:aG,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:tG.GREYSCALE_0_05},"&:hover":{backgroundColor:tG.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${tG.GREYSCALE_85}`,borderRight:`1px solid ${tG.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:uG,backgroundColor:tG.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:tG.GREYSCALE_98,borderBottom:`1px solid ${tG.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${tG.GREYSCALE_85}`,borderTop:`1px solid ${tG.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:tG.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:tG.GREYSCALE_0_05,"&:hover":{backgroundColor:tG.GREYSCALE_0_03}},"&&:hover":{backgroundColor:tG.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>de.jsx(_G,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${tG.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:rG,borderRadius:aG,padding:"7px 16px",border:`1px solid ${tG.GREYSCALE_0_15}`,backgroundColor:tG.GREYSCALE_100_60,color:tG.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:tG.GREYSCALE_0_10,border:`1px solid ${tG.GREYSCALE_0_30}`},"&:hover":{backgroundColor:tG.GREYSCALE_0_03,border:`1px solid ${tG.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:tG.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${tG.MISC_FOCUS_BORDER}`,border:`1px solid ${tG.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:tG.GREYSCALE_25,backgroundColor:tG.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:tG.GREYSCALE_0_10,border:`1px solid ${tG.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:nG,height:24,width:24,padding:7},sizeLarge:{fontSize:oG,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:rG,borderRadius:aG}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:tG.GREYSCALE_20},tooltip:{backgroundColor:tG.GREYSCALE_20,fontSize:nG,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...SG}:{}});var CG=()=>({mode:"light",primary:{ultraLight:tG.GREEN_ULTRA_LIGHT,light:tG.GREEN_PALE,main:tG.GREEN,dark:tG.GREEN_DARK,extraDark:tG.GREEN_EXTRA_DARK,contrastText:tG.WHITE},secondary:{ultraLight:tG.BLUE_ULTRA_LIGHT,light:tG.BLUE_PALE,main:tG.BLUE,dark:tG.BLUE_DARK,extraDark:tG.BLUE_EXTRA_DARK,contrastText:tG.WHITE},error:{ultraLight:tG.RED_ULTRA_LIGHT,light:tG.RED_PALE,main:tG.RED,dark:tG.RED_DARK,extraDark:tG.RED_EXTRA_DARK,contrastText:tG.WHITE},warning:{ultraLight:tG.ORANGE_ULTRA_LIGHT,light:tG.ORANGE_PALE,main:tG.ORANGE,dark:tG.ORANGE_DARK,extraDark:tG.ORANGE_EXTRA_DARK,contrastText:tG.WHITE},success:{ultraLight:tG.GREEN_ULTRA_LIGHT,light:tG.GREEN_PALE,main:tG.GREEN,dark:tG.GREEN_DARK,extraDark:tG.GREEN_EXTRA_DARK,contrastText:tG.WHITE},info:{ultraLight:tG.BLUE_ULTRA_LIGHT,light:tG.BLUE_PALE,main:tG.BLUE,dark:tG.BLUE_DARK,extraDark:tG.BLUE_EXTRA_DARK,contrastText:tG.WHITE},text:{primary:tG.TEXT_PRIMARY,secondary:tG.TEXT_SECONDARY,disabled:tG.GREYSCALE_0_30},action:{hover:tG.GREYSCALE_0_03,hoverOpacity:.03,selected:tG.GREYSCALE_0_05,selectedOpacity:.05,focus:tG.MISC_FOCUS_BORDER},amethyst:{ultraLight:tG.WHITE,main:tG.PURPLE,light:tG.PURPLE_PALE,dark:tG.PURPLE_DARK,extraDark:tG.GREYSCALE_0_0,contrastText:tG.WHITE},background:{paper:tG.WHITE,default:tG.GREYSCALE_95},divider:tG.GREYSCALE_0_15});var EG=e=>CG();var RG=(e,t=!1)=>{const n=((e,t)=>wG(t))(0,t);return{components:n,palette:EG(e),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:rG,fontWeightLight:lG,fontWeightRegular:sG,fontWeightMedium:uG,fontWeightBold:dG,htmlFontSize:rG,fontFamily:cG.FONT_FAMILY,button:{fontWeight:uG,fontSize:rG,textTransform:"none"},body1:{fontSize:oG,lineHeight:"24px"},body2:{fontSize:rG,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:iG,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:oG,fontWeight:uG,lineHeight:"16px"},h6:{fontSize:rG,fontWeight:uG,lineHeight:"16px"},caption:{color:tG.TEXT_SECONDARY},subtitle1:{fontSize:rG,color:tG.TEXT_SECONDARY},subtitle2:{fontSize:nG,color:tG.TEXT_SECONDARY}},shape:{borderRadius:aG}}},kG={},LG={exports:{}},AG={exports:{}};!function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(AG);var IG=AG.exports;!function(e){var t=IG.default;function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}e.exports=function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=t(e)&&"function"!=typeof e)return{default:e};var o=n(r);if(o&&o.has(e))return o.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var s=a?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(i,l,s):i[l]=e[l]}return i.default=e,o&&o.set(e,i),i},e.exports.__esModule=!0,e.exports.default=e.exports}(LG);var PG=LG.exports,MG={},DG=ee(Mu);Object.defineProperty(MG,"__esModule",{value:!0}),MG.hexToRgb=zG,MG.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=NG(e),n=t.values;return"#".concat(n.map((function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)})).join(""))},MG.hslToRgb=qG,MG.decomposeColor=NG,MG.recomposeColor=jG,MG.getContrastRatio=function(e,t){var n=FG(e),r=FG(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},MG.getLuminance=FG,MG.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return FG(e)>.5?BG(e,t):GG(e,t)},MG.fade=function(e,t){return $G(e,t)},MG.alpha=$G,MG.darken=BG,MG.lighten=GG;var TG=DG;function OG(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function zG(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function qG(e){var t=(e=NG(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),jG({type:l,values:s})}function NG(e){if(e.type)return e;if("#"===e.charAt(0))return NG(zG(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,TG.formatMuiErrorMessage)(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function jG(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function FG(e){var t="hsl"===(e=NG(e)).type?NG(qG(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function $G(e,t){return e=NG(e),t=OG(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,jG(e)}function BG(e,t){if(e=NG(e),t=OG(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return jG(e)}function GG(e,t){if(e=NG(e),t=OG(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return jG(e)}var WG,HG,VG,YG={},UG={exports:{}},KG={exports:{}},XG={exports:{}};function JG(){return WG||(WG=1,function(e){var t=IG.default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(XG)),XG.exports}function ZG(){return HG||(HG=1,function(e){var t=IG.default,n=JG();e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(KG)),KG.exports}function QG(){return VG||(VG=1,function(e){var t=ZG();e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(UG)),UG.exports}var eW,tW={exports:{}};function nW(){return eW||(eW=1,function(e){var t=JS();e.exports=function(e,n){if(null==e)return{};var r,o,i=t(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],n.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(tW)),tW.exports}var rW,oW={};var iW,aW={};var lW,sW={},uW={};var dW,cW={};var pW,fW={};var mW,hW={};var gW,bW={};var vW,xW={};var _W,yW={};var SW,wW,CW={};function EW(){if(wW)return sW;wW=1;var e=nS;Object.defineProperty(sW,"__esModule",{value:!0}),sW.default=function(e){var g=e.primary,b=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,v=e.secondary,x=void 0===v?{light:l.default.A200,main:l.default.A400,dark:l.default.A700}:v,_=e.error,y=void 0===_?{light:s.default[300],main:s.default[500],dark:s.default[700]}:_,S=e.warning,w=void 0===S?{light:u.default[300],main:u.default[500],dark:u.default[700]}:S,C=e.info,E=void 0===C?{light:d.default[300],main:d.default[500],dark:d.default[700]}:C,R=e.success,k=void 0===R?{light:c.default[300],main:c.default[500],dark:c.default[700]}:R,L=e.type,A=void 0===L?"light":L,I=e.contrastThreshold,P=void 0===I?3:I,M=e.tonalOffset,D=void 0===M?.2:M,T=(0,n.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function O(e){return(0,p.getContrastRatio)(e,m.text.primary)>=P?m.text.primary:f.text.primary}var z=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[n]&&(e.main=e[n]),!e.main)throw new Error((0,r.formatMuiErrorMessage)(4,n));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return h(e,"light",o,D),h(e,"dark",i,D),e.contrastText||(e.contrastText=O(e.main)),e},q={dark:m,light:f},N=(0,r.deepmerge)((0,t.default)({common:o.default,type:A,primary:z(b),secondary:z(x,"A400","A200","A700"),error:z(y),warning:z(w),info:z(E),success:z(k),grey:i.default,contrastThreshold:P,getContrastText:O,augmentColor:z,tonalOffset:D},q[A]),T);return N},sW.dark=sW.light=void 0;var t=e(US()),n=e(nW()),r=DG,o=e(function(){if(lW)return uW;lW=1,Object.defineProperty(uW,"__esModule",{value:!0}),uW.default=void 0;var e={black:"#000",white:"#fff"};return uW.default=e,uW}()),i=e(function(){if(dW)return cW;dW=1,Object.defineProperty(cW,"__esModule",{value:!0}),cW.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return cW.default=e,cW}()),a=e(function(){if(pW)return fW;pW=1,Object.defineProperty(fW,"__esModule",{value:!0}),fW.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return fW.default=e,fW}()),l=e(function(){if(mW)return hW;mW=1,Object.defineProperty(hW,"__esModule",{value:!0}),hW.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return hW.default=e,hW}()),s=e(function(){if(gW)return bW;gW=1,Object.defineProperty(bW,"__esModule",{value:!0}),bW.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return bW.default=e,bW}()),u=e(function(){if(vW)return xW;vW=1,Object.defineProperty(xW,"__esModule",{value:!0}),xW.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return xW.default=e,xW}()),d=e(function(){if(_W)return yW;_W=1,Object.defineProperty(yW,"__esModule",{value:!0}),yW.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return yW.default=e,yW}()),c=e(function(){if(SW)return CW;SW=1,Object.defineProperty(CW,"__esModule",{value:!0}),CW.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return CW.default=e,CW}()),p=MG,f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};sW.light=f;var m={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function h(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return sW.dark=m,sW}var RW,kW={};var LW,AW={};var IW,PW={};var MW,DW={},TW=ee(bc);var OW,zW={};function qW(){if(OW)return zW;OW=1;var e=nS;Object.defineProperty(zW,"__esModule",{value:!0}),zW.default=zW.duration=zW.easing=void 0;var t=e(nW()),n={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};zW.easing=n;var r={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}zW.duration=r;var i={easing:n,duration:r,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,l=void 0===a?r.standard:a,s=i.easing,u=void 0===s?n.easeInOut:s,d=i.delay,c=void 0===d?0:d;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof l?l:o(l)," ").concat(u," ").concat("string"==typeof c?c:o(c))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return zW.default=i,zW}var NW,jW,FW={};function $W(){if(jW)return YG;jW=1;var e=nS;Object.defineProperty(YG,"__esModule",{value:!0}),YG.createMuiTheme=function(){return p.apply(void 0,arguments)},YG.default=void 0,e(QG());var t=e(nW()),n=DG,r=e(function(){if(rW)return oW;rW=1;var e=nS;Object.defineProperty(oW,"__esModule",{value:!0}),oW.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,l=void 0===a?"px":a,s=e.step,u=void 0===s?5:s,d=(0,n.default)(e,["values","unit","step"]);function c(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(l,")")}function p(e,t){var n=r.indexOf(t);return n===r.length-1?c(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(l,") and ")+"(max-width:".concat((-1!==n&&"number"==typeof i[r[n+1]]?i[r[n+1]]:t)-u/100).concat(l,")")}return(0,t.default)({keys:r,values:i,up:c,down:function(e){var t=r.indexOf(e)+1,n=i[r[t]];return t===r.length?c("xs"):"@media (max-width:".concat(("number"==typeof n&&t>0?n:e)-u/100).concat(l,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},d)},oW.keys=void 0;var t=e(US()),n=e(nW()),r=["xs","sm","md","lg","xl"];return oW.keys=r,oW}()),o=e(function(){if(iW)return aW;iW=1;var e=nS;Object.defineProperty(aW,"__esModule",{value:!0}),aW.default=function(e,r,o){var i;return(0,n.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,n.default)({paddingLeft:r(2),paddingRight:r(2)},o,(0,t.default)({},e.up("sm"),(0,n.default)({paddingLeft:r(3),paddingRight:r(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(QG()),n=e(US());return aW}()),i=e(EW()),a=e(function(){if(RW)return kW;RW=1;var e=nS;Object.defineProperty(kW,"__esModule",{value:!0}),kW.default=function(e,s){var u="function"==typeof s?s(e):s,d=u.fontFamily,c=void 0===d?l:d,p=u.fontSize,f=void 0===p?14:p,m=u.fontWeightLight,h=void 0===m?300:m,g=u.fontWeightRegular,b=void 0===g?400:g,v=u.fontWeightMedium,x=void 0===v?500:v,_=u.fontWeightBold,y=void 0===_?700:_,S=u.htmlFontSize,w=void 0===S?16:S,C=u.allVariants,E=u.pxToRem,R=(0,n.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),k=f/14,L=E||function(e){return"".concat(e/w*k,"rem")},A=function(e,n,r,i,a){return(0,t.default)({fontFamily:c,fontWeight:e,fontSize:L(n),lineHeight:r},c===l?{letterSpacing:"".concat(o(i/n),"em")}:{},a,C)},I={h1:A(h,96,1.167,-1.5),h2:A(h,60,1.2,-.5),h3:A(b,48,1.167,0),h4:A(b,34,1.235,.25),h5:A(b,24,1.334,0),h6:A(x,20,1.6,.15),subtitle1:A(b,16,1.75,.15),subtitle2:A(x,14,1.57,.1),body1:A(b,16,1.5,.15),body2:A(b,14,1.43,.15),button:A(x,14,1.75,.4,a),caption:A(b,12,1.66,.4),overline:A(b,12,2.66,1,a)};return(0,r.deepmerge)((0,t.default)({htmlFontSize:w,pxToRem:L,round:i,fontFamily:c,fontSize:f,fontWeightLight:h,fontWeightRegular:b,fontWeightMedium:x,fontWeightBold:y},I),R,{clone:!1})};var t=e(US()),n=e(nW()),r=DG;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},l='"Roboto", "Helvetica", "Arial", sans-serif';return kW}()),l=e(function(){if(LW)return AW;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}LW=1,Object.defineProperty(AW,"__esModule",{value:!0}),AW.default=void 0;var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return AW.default=t,AW}()),s=e(function(){if(IW)return PW;IW=1,Object.defineProperty(PW,"__esModule",{value:!0}),PW.default=void 0;var e={borderRadius:4};return PW.default=e,PW}()),u=e(function(){if(MW)return DW;MW=1,Object.defineProperty(DW,"__esModule",{value:!0}),DW.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var n=(0,e.createUnarySpacing)({spacing:t}),r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?n(1):1===t.length?n(t[0]):t.map((function(e){if("string"==typeof e)return e;var t=n(e);return"number"==typeof t?"".concat(t,"px"):t})).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return t}}),r.mui=!0,r};var e=TW;return DW}()),d=e(qW()),c=e(function(){if(NW)return FW;NW=1,Object.defineProperty(FW,"__esModule",{value:!0}),FW.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return FW.default=e,FW}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,m=e.mixins,h=void 0===m?{}:m,g=e.palette,b=void 0===g?{}:g,v=e.spacing,x=e.typography,_=void 0===x?{}:x,y=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),S=(0,i.default)(b),w=(0,r.default)(f),C=(0,u.default)(v),E=(0,n.deepmerge)({breakpoints:w,direction:"ltr",mixins:(0,o.default)(w,C,h),overrides:{},palette:S,props:{},shadows:l.default,typography:(0,a.default)(S,_),spacing:C,shape:s.default,transitions:d.default,zIndex:c.default},y),R=arguments.length,k=new Array(R>1?R-1:0),L=1;L<R;L++)k[L-1]=arguments[L];return E=k.reduce((function(e,t){return(0,n.deepmerge)(e,t)}),E)}var f=p;return YG.default=f,YG}var BW,GW={};var WW,HW={},VW=ee(bh);var YW,UW,KW={},XW={};function JW(){if(YW)return XW;YW=1;var e=nS;Object.defineProperty(XW,"__esModule",{value:!0}),XW.default=void 0;var t=(0,e($W()).default)();return XW.default=t,XW}var ZW,QW,eH={},tH={};function nH(){if(QW)return eH;QW=1;var e=nS;Object.defineProperty(eH,"__esModule",{value:!0}),eH.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,l=o.disableAlign,s=void 0!==l&&l,u=o.factor,d=void 0===u?2:u,c=o.variants,p=void 0===c?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:c,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var m=f.typography,h=(0,r.convertLength)(m.htmlFontSize),g=a.map((function(e){return f.breakpoints.values[e]}));return p.forEach((function(e){var o=m[e],i=parseFloat(h(o.fontSize,"rem"));if(!(i<=1)){var a=i,l=1+(a-1)/d,u=o.lineHeight;if(!(0,r.isUnitless)(u)&&!s)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(u)||(u=parseFloat(h(u,"rem"))/parseFloat(i));var c=null;s||(c=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:m.htmlFontSize})})}),m[e]=(0,t.default)({},o,(0,r.responsiveProperty)({cssProperty:"fontSize",min:l,max:a,unit:"rem",breakpoints:g,transform:c}))}})),f};var t=e(US()),n=DG,r=function(){if(ZW)return tH;ZW=1;var e=nS;Object.defineProperty(tH,"__esModule",{value:!0}),tH.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},tH.getUnit=n,tH.toUnitless=r,tH.convertLength=function(e){return function(t,o){var i=n(t);if(i===o)return t;var a=r(t);if("px"!==i)if("em"===i)a=r(t)*r(e);else if("rem"===i)return a=r(t)*r(e),t;var l=a;if("px"!==o)if("em"===o)l=a/r(e);else{if("rem"!==o)return t;l=a/r(e)}return parseFloat(l.toFixed(5))+o}},tH.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},tH.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},tH.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,l=e.breakpoints,s=void 0===l?[600,960,1280]:l,u=e.transform,d=void 0===u?null:u,c=(0,t.default)({},n,"".concat(r).concat(a)),p=(o-r)/s[s.length-1];return s.forEach((function(e){var o=r+p*e;null!==d&&(o=d(o)),c["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*o)/1e4).concat(a))})),c};var t=e(QG());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return tH}();return eH}var rH,oH={};var iH,aH={};var lH,sH={};var uH,dH={};!function(e){var t=nS,n=PG;Object.defineProperty(e,"__esModule",{value:!0});var r={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return a.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return g.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return g.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return g.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return g.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}});var o=MG;Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))}));var a=n($W()),l=t(function(){if(BW)return GW;BW=1;var e=nS;Object.defineProperty(GW,"__esModule",{value:!0}),GW.default=function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=DG,n=e($W());return GW}()),s=t(function(){if(WW)return HW;WW=1,Object.defineProperty(HW,"__esModule",{value:!0}),HW.default=function(t){return(0,e.createStyles)(t)};var e=VW;return HW}()),u=t(function(){if(UW)return KW;UW=1;var e=nS;Object.defineProperty(KW,"__esModule",{value:!0}),KW.default=void 0;var t=e(US()),n=VW,r=e(JW()),o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.makeStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return KW.default=o,KW}()),d=t(nH()),c=t(function(){if(rH)return oH;rH=1;var e=nS;Object.defineProperty(oH,"__esModule",{value:!0}),oH.default=void 0;var t=e(US()),n=VW,r=e(JW()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return oH.default=o,oH}()),p=qW();Object.keys(p).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[t]}}))}));var f=t(function(){if(iH)return aH;iH=1;var e=nS;Object.defineProperty(aH,"__esModule",{value:!0}),aH.default=function(){return(0,t.useTheme)()||n.default};var t=VW;e(i);var n=e(JW());return aH}()),m=t(function(){if(lH)return sH;lH=1;var e=nS;Object.defineProperty(sH,"__esModule",{value:!0}),sH.default=void 0;var t=e(US()),n=VW,r=e(JW()),o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return sH.default=o,sH}()),h=t(function(){if(uH)return dH;uH=1;var e=nS;Object.defineProperty(dH,"__esModule",{value:!0}),dH.default=void 0;var t=VW,n=e(JW()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return dH.default=r,dH}()),g=VW}(kG);var cH=Object.defineProperty,pH=(e,t)=>{for(var n in t)cH(e,n,{get:t[n],enumerable:!0})};pH({},{light:()=>fH});const fH={root:{backgroundColor:tG.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&$expanded":{margin:"0px"}}};pH({},{light:()=>mH});const mH={root:{backgroundColor:tG.WHITE}};pH({},{light:()=>hH});const hH={root:{padding:"0px 16px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${tG.GREYSCALE_0_15}`,"&$focused":{borderColor:tG.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${tG.MISC_FOCUS_BORDER}`,borderRadius:aG,backgroundColor:tG.GREYSCALE_0_03},"&$expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis"}};pH({},{light:()=>gH});const gH={root:{flex:"0 0 48px",flexDirection:"row",boxShadow:`inset 0 -1px 0 0 ${tG.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:tG.WHITE,color:tG.TEXT_PRIMARY}};pH({},{light:()=>bH});const bH={inputRoot:{boxSizing:"border-box",borderRadius:aG,"&&":{padding:0},"&&& input":{padding:"8px 4px"},"&&& $endAdornment":{right:4}},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:rG,height:"32px",'&[data-focus="true"]':{backgroundColor:tG.GREYSCALE_0_03}},endAdornment:{top:"auto",bottom:"4px",position:"absolute"},popupIndicator:{borderRadius:aG,border:`solid 1px ${tG.GREYSCALE_0_15}`,color:tG.GREYSCALE_0_60,marginRight:0,width:iG,height:iG,"& svg":{fontSize:"0.7em"},"& i":{lineHeight:"1 !important"}},paper:{marginTop:"5px",boxShadow:`0px 2px 4px 0px ${tG.GREYSCALE_0_15}`},clearIndicator:{"& svg":{fontSize:"0.5em",position:"absolute"},color:tG.GREYSCALE_25,width:oG,height:iG,borderRadius:aG,backgroundColor:"unset",marginRight:"4px","&&&&:hover":{backgroundColor:kG.alpha(tG.GREYSCALE_0,.05)}},popupIndicatorOpen:{backgroundColor:tG.GREYSCALE_0_10}};pH({},{light:()=>vH});const vH={badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}};pH({},{light:()=>xH});const xH={root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:aG,"& > $label > i:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:tG.GREYSCALE_0_10},"&$focusVisible":{boxShadow:`0 0 0 2px ${tG.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:tG.GREYSCALE_0_15,backgroundColor:tG.GREYSCALE_100_60,"&:active":{backgroundColor:tG.GREYSCALE_0_10},"&$focusVisible":{borderColor:tG.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${tG.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},containedPrimary:{"&:hover":{backgroundColor:tG.GREEN_PALE},"&:active":{backgroundColor:tG.GREEN_DARK},"&$focusVisible":{borderColor:tG.GREEN_PALE,boxShadow:`0 0 0 3px ${kG.alpha(tG.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:tG.BLUE_PALE},"&:active":{backgroundColor:tG.BLUE_DARK},"&$focusVisible":{borderColor:tG.BLUE_PALE,boxShadow:`0 0 0 3px ${kG.alpha(tG.BLUE_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > $label > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > $label > i:only-child":{marginLeft:"-10px",marginRight:"-10px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}};pH({},{light:()=>_H});const _H={root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:aG},groupedText:{padding:"8px 16px","&:active":{backgroundColor:tG.GREYSCALE_0_10},"&$focusVisible":{boxShadow:`0 0 0 2px ${tG.MISC_FOCUS_BORDER}`}},groupedOutlined:{padding:"7px 16px",borderColor:tG.GREYSCALE_0_15,backgroundColor:tG.GREYSCALE_100_60,"&:active":{backgroundColor:tG.GREYSCALE_0_10},"&$focusVisible":{borderColor:tG.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${tG.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:tG.GREEN_PALE},"&:active":{backgroundColor:tG.GREEN_DARK},"&$focusVisible":{borderColor:tG.GREEN_PALE,boxShadow:`0 0 0 3px ${kG.alpha(tG.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:tG.BLUE_PALE},"&:active":{backgroundColor:tG.BLUE_DARK},"&$focusVisible":{borderColor:tG.BLUE_PALE,boxShadow:`0 0 0 3px ${kG.alpha(tG.BLUE_PALE,.5)}`}}};pH({},{light:()=>yH});const yH={root:{height:"100%","& $focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:tG.GREYSCALE_0_03,"& $focusHighlight":{opacity:0}},"&:active":{backgroundColor:tG.GREYSCALE_95,boxShadow:"none"},"&$focusVisible":{borderRadius:aG,boxShadow:`inset 0 0 0 2px ${tG.MISC_FOCUS_BORDER}`,"& $focusHighlight":{opacity:0}}}};pH({},{light:()=>SH});const SH={root:{borderWidth:1,"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:3},"&:not($disabled)":{"&:not($checked)":{"&:not($indeterminate)":{"& span":{color:tG.WHITE}}}},"&$disabled":{"& span":{pointerEvents:"auto",cursor:"not-allowed",color:tG.GREYSCALE_0_25}}},colorPrimary:{"&.sprout-focus-visible i":{borderColor:tG.GREEN_PALE,boxShadow:`0 0 0 3px ${kG.alpha(tG.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible i":{borderColor:tG.BLUE_PALE,boxShadow:`0 0 0 3px ${kG.alpha(tG.BLUE_PALE,.5)}`}}};pH({},{light:()=>wH});const wH={root:{height:"24px",fontSize:nG,borderRadius:aG,color:tG.TEXT_PRIMARY,backgroundColor:tG.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:tG.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${tG.MISC_FOCUS_BORDER}`},"&$disabled":{backgroundColor:tG.GREYSCALE_0_05,color:tG.GREYSCALE_0_30,border:"none",opacity:1}},outlined:{border:`solid 1px ${tG.GREYSCALE_0_15}`,backgroundColor:tG.GREYSCALE_100_15,"$clickable&:active ":{boxSizing:"border-box",borderRadius:aG,boxShadow:"none",backgroundColor:tG.GREYSCALE_0_10},"& $deleteIconSmall":{height:13,color:"inherit"}},label:{fontFamily:cG.FONT_FAMILY,lineHeight:"16px"}};pH({},{light:()=>CH});const CH={root:{padding:"8px",backgroundColor:tG.GREYSCALE_98,borderTop:`1px ${tG.GREYSCALE_0_15} solid`}};pH({},{light:()=>EH});const EH={root:{padding:"24px"}};pH({},{light:()=>RH});const RH={root:{marginBottom:0}};pH({},{light:()=>kH});const kH={root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",height:"24px",padding:"12px 8px 12px 24px",fontSize:"16px",lineHeight:"24px",backgroundColor:tG.GREYSCALE_98,borderBottom:`1px ${tG.GREYSCALE_0_15} solid`}};pH({},{light:()=>LH});const LH={middle:{margin:"4px 8px"}};pH({},{light:()=>AH});const AH={root:{marginLeft:"-10px"},label:{fontSize:rG}};pH({},{light:()=>IH});const IH={root:{fontSize:nG,lineHeight:"16px",margin:"4px 0 0 0","&$error":{color:tG.RED}},contained:{marginLeft:0,marginRight:0}};pH({},{light:()=>PH});const PH={root:{color:tG.GREYSCALE_25,fontSize:nG,fontFamily:cG.FONT_FAMILY,fontWeight:uG,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&$focused":{color:tG.TEXT_PRIMARY},"&$error":{color:tG.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:tG.TEXT_SECONDARY,position:"absolute",content:"'(optional)'",fontWeight:sG,marginLeft:"4px"}}},asterisk:{visibility:"hidden",display:"inline-flex","&::after":{visibility:"visible",color:tG.TEXT_SECONDARY,position:"absolute",content:"'(required)'",fontWeight:sG,marginLeft:"4px"}}};pH({},{light:()=>MH});const MH={root:{padding:7,borderRadius:aG,border:"1px solid transparent","&.sprout-focus-visible":{borderColor:tG.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${tG.MISC_FOCUS_BORDER}`},"&&&:hover":{backgroundColor:"transparent"}}};pH({},{light:()=>DH});const DH={root:{padding:"4px 8px",color:tG.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}};pH({},{light:()=>TH});const TH={input:{padding:"8px 12px",lineHeight:"16px"}};pH({},{light:()=>OH});const OH={outlined:{fontSize:`${nG}px`,fontWeight:uG,color:tG.GREYSCALE_25,"&$shrink":{transform:"translate(0px, -8px)",fontWeight:uG}}};pH({},{light:()=>zH});const zH={root:{color:tG.MISC_FOCUS_BORDER}};pH({},{light:()=>qH});const qH={padding:{paddingTop:"0px",paddingBottom:"0px"}};pH({},{light:()=>NH});const NH={root:{minHeight:"32px",fontSize:rG,"&$selected":{backgroundColor:"unset","&:not($disabled)":{"&::after":{content:`url('${pG}')`,fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:tG.RED}}}},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:tG.GREYSCALE_0_03},"&:active":{backgroundColor:tG.GREYSCALE_0_05}}};pH({},{light:()=>jH});const jH={root:{color:tG.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}};pH({},{light:()=>FH});const FH={root:{fontSize:"12px"},primary:{fontSize:rG,color:tG.TEXT_PRIMARY,lineHeight:"16px"},secondary:{fontSize:nG,fontWeight:lG,lineHeight:"16px",color:tG.TEXT_SECONDARY}};pH({},{light:()=>$H});const $H={root:{'&[role="option"]':{color:tG.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:nG,borderBottom:`solid 1px ${tG.GREYSCALE_0_15}`,pointerEvents:"none"}}};pH({},{light:()=>BH});const BH={list:{paddingTop:4,paddingBottom:4},paper:{marginTop:4,marginBottom:4,background:tG.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15)",borderRadius:"2px"}};pH({},{light:()=>GH});const GH={root:{fontSize:rG,height:"32px",'[class*="MuiListSubheader-root"] ~ &[role="option"]':{paddingLeft:"20px"},"& div i":{color:tG.GREYSCALE_25}}};pH({},{light:()=>WH});const WH={root:{fontSize:rG,lineHeight:"16px",backgroundColor:tG.WHITE,borderRadius:aG,"&:not($focused):not($error):not($disabled):hover $notchedOutline":{border:`solid 1px ${tG.GREYSCALE_0_05}`,borderColor:tG.GREYSCALE_0_30},"&$focused:not($error) $notchedOutline":{border:`solid 1px ${tG.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${tG.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${tG.GREYSCALE_0_05}`},"&$focused$error $notchedOutline":{border:`solid 1px ${tG.RED}`,boxShadow:`0px 0px 0px 1px ${tG.RED}, inset 0 2px 0 0 ${tG.GREYSCALE_0_05}`},"&$disabled":{backgroundColor:"transparent"},"&$disabled $notchedOutline":{border:`solid 1px ${tG.GREYSCALE_0_10}`,borderColor:tG.GREYSCALE_0_10,backgroundColor:tG.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:tG.TEXT_PRIMARY,padding:"8px 12px","&$disabled":{opacity:.45}},notchedOutline:{borderColor:tG.GREYSCALE_0_15,borderRadius:aG,boxShadow:`inset 0 2px 0 0 ${tG.GREYSCALE_0_05}`},multiline:{padding:"8px 12px"}};pH({},{light:()=>HH});const HH={day:{"&&&:hover":{backgroundColor:tG.GREYSCALE_0_03}},daySelected:{"&&&:hover":{backgroundColor:tG.GREEN}}};pH({},{light:()=>VH});const VH={paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${tG.GREYSCALE_0_15}, 0px 0px 0px 1px ${tG.GREYSCALE_0_05}`}};pH({},{light:()=>YH});const YH={root:{fill:tG.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${tG.MISC_FOCUS_BORDER}`},"&$checked":{"&$colorPrimary":{"&.sprout-focus-visible i":{borderColor:tG.GREEN_PALE,boxShadow:`0 0 0 3px ${kG.alpha(tG.GREEN_PALE,.5)}`}},"&$colorSecondary":{"&.sprout-focus-visible i":{borderColor:tG.BLUE_PALE,boxShadow:`0 0 0 3px ${kG.alpha(tG.BLUE_PALE,.5)}`}},"&$disabled":{color:tG.GREYSCALE_0_20}},"&$disabled":{fill:tG.GREYSCALE_0_20,stroke:"none"}}};pH({},{light:()=>UH});const UH={root:{height:"32px",zIndex:1,borderRadius:"3px !important","& em":{color:tG.TEXT_SECONDARY,WebkitFontSmoothing:"antialiased","&::after":{content:""}},"& ~svg":{position:"absolute",top:"unset",right:"12px"},"&[aria-expanded=true]":{backgroundColor:tG.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:tG.GREYSCALE_0_03},"&:active":{backgroundColor:tG.GREYSCALE_0_10},"&:focus":{backgroundColor:tG.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${tG.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${tG.MISC_FOCUS_BORDER}`},"&$disabled":{opacity:"unset",color:tG.GREYSCALE_0_30,"&:hover":{backgroundColor:tG.GREYSCALE_0_0,borderColor:tG.GREYSCALE_0_15},"& ~svg":{color:tG.GREYSCALE_0_30}}},selectMenu:{height:"14px"},outlined:{border:`solid 1px ${tG.GREYSCALE_0_15}`}};pH({},{light:()=>KH});const KH={root:{color:tG.GREEN,height:"24px","&$disabled":{color:tG.GREYSCALE_0_15}},rail:{backgroundColor:tG.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${tG.GREYSCALE_0_05}`,borderRadius:aG,boxShadow:`inset 0px 0px 0px 1px ${tG.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${tG.GREYSCALE_0_05}`,borderRadius:aG},thumb:{height:"16px",width:"16px",borderRadius:aG,backgroundColor:tG.WHITE,boxShadow:`0px 1px 2px 0px ${tG.GREYSCALE_0_15}, 0px 0px 0px 1px ${tG.GREYSCALE_0_05}`,"&:hover":{borderRadius:aG,boxShadow:`0 2px 4px 0 ${tG.GREYSCALE_0_30}, 0 0 0 1px ${tG.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${tG.GREYSCALE_0_15}, 0 0 0 1px ${tG.GREYSCALE_0_06}, 0 0 0 2px ${tG.MISC_FOCUS_BORDER}`},"&$disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:tG.GREYSCALE_90},"& .bar":{height:"8px",width:"1px",backgroundColor:tG.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:tG.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:tG.GREYSCALE_0_15},markLabel:{color:tG.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:tG.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},active:{}};pH({},{light:()=>XH});const XH={root:{backgroundColor:tG.WHITE,color:tG.GREYSCALE_25}};pH({},{light:()=>JH});const JH={root:{padding:"10px",width:"60px",height:"40px"},switchBase:{padding:"11px","&$disabled":{"& $thumb":{backgroundColor:tG.GREYSCALE_100_50}},"&$checked + $track":{opacity:1},"&$disabled + $track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + $track":{borderColor:tG.GREEN_PALE,boxShadow:`0 0 0 3px ${kG.alpha(tG.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + $track":{borderColor:tG.BLUE_PALE,boxShadow:`0 0 0 3px ${kG.alpha(tG.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:tG.GREYSCALE_0_15,borderRadius:aG},thumb:{height:"16px",width:"16px",borderRadius:aG,backgroundColor:tG.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& $thumb":{height:"12px",width:"12px"},"& $switchBase":{padding:"9px 11px"}}};pH({},{light:()=>ZH});const ZH={root:{fontSize:rG,fontWeight:uG,textTransform:"none",minWidth:"auto",boxSizing:"border-box","&:hover":{borderBottom:`2px solid ${tG.GREYSCALE_80}`,paddingBottom:"4px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${tG.MISC_FOCUS_BORDER}`,paddingTop:"4px",backgroundColor:tG.GREYSCALE_0_03,borderRadius:aG,minHeight:"44px",paddingBottom:"4px",border:"none"},"&$disabled":{opacity:.3}},textColorPrimary:{color:tG.GREYSCALE_25,"&$selected":{color:tG.GREYSCALE_25}},textColorInherit:{opacity:"unset"},fullWidth:{"&.sprout-focus-visible":{paddingRight:12,paddingLeft:12}},wrapper:{alignItems:"initial"},labelIcon:{minWidth:"40px",minHeight:"48px","&.sprout-focus-visible":{minHeight:"auto",height:"30px",marginTop:9,marginBottom:9,flexDirection:"column",paddingRight:"12px",paddingBottom:"2px"},"& $wrapper":{display:"block"}}};pH({},{light:()=>QH});const QH={root:{borderLeft:`1px solid ${tG.GREYSCALE_85}`}};pH({},{light:()=>eV});const eV={root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${tG.GREYSCALE_85}`,borderRight:`1px solid ${tG.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:uG,backgroundColor:tG.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&$head":{height:"31px"},"&$paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:tG.GREYSCALE_98,borderBottom:`1px solid ${tG.GREYSCALE_85}`}};pH({},{light:()=>tV});const tV={root:{borderBottom:`1px solid ${tG.GREYSCALE_85}`,borderTop:`1px solid ${tG.GREYSCALE_85}`}};pH({},{light:()=>nV});const nV={root:{backgroundColor:tG.GREYSCALE_98}};pH({},{light:()=>rV});const rV={hover:{"&$selected":{backgroundColor:tG.GREYSCALE_0_05,"&:hover":{backgroundColor:tG.GREYSCALE_0_03}},"&&:hover":{backgroundColor:tG.GREYSCALE_0_03}}};pH({},{light:()=>oV});const oV={root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&$active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}};pH({},{light:()=>iV});const iV={scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},root:{fontSize:rG,fontWeight:"bold"},indicator:{height:2}};pH({},{light:()=>aV});const aV={root:{height:32,lineHeight:16,width:32,fontSize:rG,borderRadius:aG,padding:"7px 16px",border:`1px solid ${tG.GREYSCALE_0_15}`,backgroundColor:tG.GREYSCALE_100_60,color:tG.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:tG.GREYSCALE_0_10,border:`1px solid ${tG.GREYSCALE_0_30}`},"&:hover":{backgroundColor:tG.GREYSCALE_0_03,border:`1px solid ${tG.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:tG.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${tG.MISC_FOCUS_BORDER}`,border:`1px solid ${tG.MISC_FOCUS_BORDER}`,zIndex:2},"&$selected":{color:tG.GREYSCALE_25,backgroundColor:tG.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:tG.GREYSCALE_0_10,border:`1px solid ${tG.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:nG,height:24,width:24,padding:7},sizeLarge:{fontSize:oG,height:40,width:40,lineHeight:20}};pH({},{light:()=>lV});const lV={root:{height:"32px",lineHeight:"16px",fontSize:rG,borderRadius:aG}};pH({},{light:()=>sV});const sV={root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}};pH({},{light:()=>uV});const uV={arrow:{color:tG.GREYSCALE_20},tooltip:{backgroundColor:tG.GREYSCALE_20,fontSize:nG,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}};function dV(e){var t;const n=((e="light",t=!1)=>RG(e,t))();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),tD({...n,direction:e})}var cV,pV,fV,mV;!function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider"}(cV||(cV={})),function(e){e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2"}(pV||(pV={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(fV||(fV={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(mV||(mV={}));const hV=e=>e?`${parseInt(e,10)}px`:void 0,gV=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?RA.Transparent:n}},bV=(e,t)=>+(parseInt(e,10)*EA*t+8).toFixed(2),vV=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?wA:"normal",xV=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",_V=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",yV=document.createElement("textarea");function SV(e){yV.value=e,document.body.appendChild(yV),yV.select(),yV.setSelectionRange(0,yV.value.length),document.execCommand("copy"),document.body.removeChild(yV)}yV.style.position="absolute",yV.style.left="-9999px",yV.setAttribute("readonly","");function wV(e){null==P||P(((t,n)=>{const r=n.target,o=null==r?void 0:r.closest(`.${na}`);null!=o&&o.title&&t.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const n=e.title;n&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(n).catch((()=>{SV(n)})):SV(n))})(o)}}),null==e||e.forEach((e=>{e(t,n,o)}))}))}const CV=({model:e,layoutService:t,effectivePropertiesService:n,translator:r})=>YA(((o,i,a)=>{if(!e||n.qAlwaysFullyExpanded)return;const l=e,s=o.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group"}),{qEffectiveDimensionName:u,label:d}=((e,t)=>{const n=((e,t)=>{const n=null==e?void 0:e.getAttribute("data-dimension-info-index");if("string"==typeof n)return t.getDimensionInfo(+n)})(e,t);return"object"==typeof n?{qEffectiveDimensionName:n.qEffectiveDimensionName,label:n.qFallbackTitle}:{qEffectiveDimensionName:void 0,label:void 0}})(a,t);s.addItem((e=>({icon:"lui-icon lui-icon--plus",translation:"Object.PivotTable.ContextMenu.ExpandAll",tid:"expand-all",select:async()=>{try{await e.expandTop(sO,0,0,!0),await e.expandLeft(sO,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(l)),"string"==typeof u&&s.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:n,label:r,translator:o})=>({icon:"lui-icon lui-icon--plus",translation:o.get("SNPivotTable.ContextMenu.ExpandDimension",[null!=r?r:""]),tid:"expand-dimension",select:sB({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n,action:iB.Expand})}))({model:l,effectivePropertiesService:n,qEffectiveDimensionName:u,label:d,translator:r})),s.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(sO,0,0,!0),await e.collapseLeft(sO,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(l)),"string"==typeof u&&s.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:n,label:r,translator:o})=>({icon:"lui-icon lui-icon--minus",translation:o.get("SNPivotTable.ContextMenu.CollapseDimension",[null!=r?r:""]),tid:"collapse-dimension",select:sB({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n,action:iB.Collapse})}))({model:l,effectivePropertiesService:n,qEffectiveDimensionName:u,label:d,translator:r}))}),[e,t,n]),EV=(e,t)=>C((()=>(({layout:e,flags:t})=>{var n,r,o,i;const{qHyperCube:a,nullValueRepresentation:l,snapshotData:s}=e,{qNoOfLeftDims:u,qEffectiveInterColumnSortOrder:d,qMeasureInfo:c,qDimensionInfo:p}=a,f=!!s,m=null!==(n=null==s||null===(r=s.content)||void 0===r?void 0:r.rowsPerPage)&&void 0!==n?n:15e3,h={x:Math.min(e.qHyperCube.qSize.qcx,CA),y:Math.min(e.qHyperCube.qSize.qcy,m)},g=d.slice(0,u),b=e=>g.some((t=>t===e)),v=b(uO),x=new Map(d.map((e=>{var t;return[null!==(t=p[e])&&void 0!==t?t:uO,e]}))),_=c.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==l?void 0:l.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(v)return 0;const n=e%_.length;return t?n:c.findIndex((e=>e===_[n]))},getDimensionInfo:e=>e===uO?void 0:p.at(e),getDimensionInfoIndex:e=>{var t;return null!==(t=x.get(e))&&void 0!==t?t:-1},size:h,isSnapshot:f,hasLimitedData:!f&&h.x<e.qHyperCube.qSize.qcx,hasData:h.x>0&&h.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,hasPseudoDimOnLeft:v,leftDimensionInfoIndexes:g,isLeftDimension:b,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:_,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode),indentModeFeatures:{isImagesSupported:t.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES")},indentModeColumnWidth:null!==(o=e.qHyperCube.indentModeColumnWidth)&&void 0!==o?o:{type:aa.Auto,pixels:ia.PixelsDefault,percentage:ia.PercentageDefault},searchSortFromDimension:"inherit"===(null===(i=e.search)||void 0===i?void 0:i.sorting)}})({layout:e,flags:t})),[e,t]),RV=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=KA(e);return t.current=e,t})(jz(o));return tI((async()=>{const{qHyperCube:t}=i,{maxNumberOfVisibleRows:o,maxNumberOfVisibleColumns:u}=s.current;var d,c;if(a)return null!==(d=null===(c=i.snapshotData)||void 0===c||null===(c=c.content)||void 0===c?void 0:c.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(l,n,o,u)||((e,t,n,r)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:d}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(r,l.qcx)||d<Math.min(n,l.qcy)})(i,r,o,u))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,l=Math.min(a+r.rowsPerPage,n.qcy),s=Math.min(CA,n.qcx);if(n.qcy<a)return null;let u=0,d=a;if(e){u=t.gridColumnStartIndex,d=a+t.gridRowStartIndex;const e=d+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>l&&(d=Math.max(0,l-o)),n>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:d,qWidth:Math.min(s-u,i),qHeight:Math.min(l-d,o)}})(l,n,i.qHyperCube.qSize,r,o,u);return t?e.getHyperCubePivotData(sO,Fz(t)):[]}return t.qPivotDataPages}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},kV=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),LV=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:kV({rowsPerPage:n,totalRowCount:e,page:t})}),AV=15,IV=({layoutService:e,viewService:t,rect:n,model:r,pageInfo:o})=>{var i;return M((async e=>{const i=e;if(!i.snapshotData||!r||i.snapshotData.content)return i;if("getHyperCubePivotData"in r){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s}=t,u=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(r-AV,0),u=Math.max(l+o-AV,l,0),d=CA-s,c=l+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=jz(n);return{qLeft:s,qTop:u,qWidth:Math.min(d,e+30),qHeight:Math.min(c,t+30)}}return{qLeft:s,qTop:u,qWidth:Math.min(d,i+30),qHeight:Math.min(c,a+30)}})(t,o,n),d=Fz(u),c={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};i.snapshotData.content={qPivotDataPages:await r.getHyperCubePivotData(sO,[c,...d]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s,page:o.page,rowsPerPage:o.rowsPerPage},i.snapshotData.object.size.w=n.width,i.snapshotData.object.size.h=n.height}return i})),D((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,o)})),[t]),null!==(i=e.layout.snapshotData)&&void 0!==i&&i.content?{left:n.left,top:n.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:n};var PV={SNPivotTable_ContextMenu_CollapseDimension:{id:"SNPivotTable.ContextMenu.CollapseDimension",locale:{"de-DE":"{0} reduzieren","en-US":"Collapse {0}","es-ES":"Contraer {0}","fr-FR":"Réduire {0}","it-IT":"Comprimi {0}","ja-JP":"{0} を折りたたむ","ko-KR":"{0} 축소","nl-NL":"{0} samenvouwen","pl-PL":"Zwiń {0}","pt-BR":"Recolher {0}","ru-RU":"Свернуть {0}","sv-SE":"Dölj {0}","tr-TR":"{0} öğelerini daralt","zh-CN":"折叠 {0}","zh-TW":"收合 {0}"}},SNPivotTable_ContextMenu_ExpandDimension:{id:"SNPivotTable.ContextMenu.ExpandDimension",locale:{"de-DE":"{0} erweitern","en-US":"Expand {0}","es-ES":"Expandir {0}","fr-FR":"Développer {0}","it-IT":"Espandi {0}","ja-JP":"{0} を展開","ko-KR":"{0} 확장","nl-NL":"{0} uitvouwen","pl-PL":"Rozwiń {0}","pt-BR":"Expandir {0}","ru-RU":"Развернуть {0}","sv-SE":"Visa {0}","tr-TR":"{0} öğelerini genişlet","zh-CN":"展开 {0}","zh-TW":"展開 {0}"}},SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const MV=()=>{const e=T(),t=e.language();return C((()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(PV).forEach((t=>{e.add(PV[t])}))}(e)}),[e]),{translator:e,language:t}},DV=e=>{const{flags:t}=e,n=O(),r=(e=>{const t=C((()=>iI(e)),[e]);return L((()=>()=>{t.unmount()}),[t]),t})(n),o=z(),a=q(),l=N(),s=j(),u=F(),d=XA(),c=((e,t)=>{const[n]=tI((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}}),[e,t]),r=C((()=>{var e,t;const r=void 0!==(null==n?void 0:n.qHyperCubeDef.qSortbyYValue)&&1===Math.abs(n.qHyperCubeDef.qSortbyYValue),o=null!==(e=null==n?void 0:n.qHyperCubeDef.qDimensions.map((e=>e.qDef.qSortCriterias)))&&void 0!==e?e:[];return{qAlwaysFullyExpanded:null!==(t=null==n?void 0:n.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==t&&t,qExpansionState:null==n?void 0:n.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:r,getSortCriteriaForDimension:e=>o[e]}}),[n]);return r})(a,o),p=EV(o,t),f=(e=>{const t=I();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(p.isSnapshot),m=$(),h=eI(o,n),{translator:g,language:b}=MV(),{pageInfo:v,updatePageInfo:x}=((e,t)=>{const{size:n,layout:{qHyperCube:{qSize:r}}}=e,o=t.isDownloadedAsPDForImage||e.isSnapshot,i=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(e),[a,l]=k((()=>{const a=((e,t)=>{var n,r,o,i;return t.isDownloadedAsPDForImage?null!==(n=null===(r=t.viewState)||void 0===r?void 0:r.renderPage)&&void 0!==n?n:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(e,t);return{page:a,shouldShowPagination:r.qcy>n.y&&!o,...LV(r.qcy,a,i)}})),s=e.layout.qHyperCube.qSize.qcy;return L((()=>{l((t=>({...t,...LV(s,t.page,i),shouldShowPagination:s>e.size.y&&!o})))}),[s,e.size.y,l,o,i]),L((()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,n=kV({...a,page:e});l({...a,page:e,rowsOnCurrentPage:n})}}),[a]),{pageInfo:a,updatePageInfo:e=>{l({...a,...e,rowsOnCurrentPage:kV({...a,...e})})}}})(p,d),_=((e,t,n)=>C((()=>((e,t)=>{var n,r,o,i,a,l,s,u;if(e.isDownloadedAsPDForImage){var d,c,p,f;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(d=null==t?void 0:t.scrollTop)&&void 0!==d?d:0,scrollLeft:null!==(c=null==t?void 0:t.scrollLeft)&&void 0!==c?c:0,leftGridScrollLeft:null!==(p=null==t?void 0:t.leftGridScrollLeft)&&void 0!==p?p:0,topGridScrollTop:null!==(f=null==t?void 0:t.topGridScrollTop)&&void 0!==f?f:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.scrollTop)&&void 0!==n?n:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0,topGridScrollTop:null!==(s=null==t||null===(u=t.content)||void 0===u?void 0:u.topGridScrollTop)&&void 0!==s?s:0}})(n,t.snapshotData)),[n,e.page,t.snapshotData]))(v,o,d),y=IV({rect:B(),layoutService:p,viewService:_,model:a,pageInfo:v}),[S,w]=RV({model:a,layoutService:p,viewService:_,pageInfo:v,rect:y}),R=C((()=>((e,t,n)=>{var r,o,i,a,l,s,u,d,c,p,f,m,h,g,b,v,x,_,y,S,w,C,E,R,k,L,A,I,P,M,D,T,O,z,q,N,j,F,$,B,G,W,H,V,Y,U,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),J=null==X?void 0:X.header,Z=null==X?void 0:X.dimensionValues,Q=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,ne=null==X?void 0:X.nullValues,re=null==X?void 0:X.grid,oe=(t,n,r)=>e.getStyle(t,n,r),ie=+(null!==(o=null!==(i=null==re?void 0:re[cV.LineClamp])&&void 0!==i?i:oe(pV.Grid,fV.Grid,mV.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==re?void 0:re[cV.ColumnLineClamp])&&void 0!==l?l:oe(pV.Grid,fV.Grid,mV.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=gV(e,null==J?void 0:J[cV.Background]))&&void 0!==u?u:oe(pV.Dimension,fV.LabelName,mV.BackgroundColor))&&void 0!==s?s:RA.Transparent,se={header:{fontSize:null!==(d=null!==(c=hV(null==J?void 0:J[cV.FontSize]))&&void 0!==c?c:oe(pV.Dimension,fV.LabelName,mV.FontSize))&&void 0!==d?d:yA,fontFamily:null!==(p=null!==(f=null==J?void 0:J[cV.FontFamily])&&void 0!==f?f:oe(pV.Dimension,fV.LabelName,mV.FontFamily))&&void 0!==p?p:SA,fontWeight:vV(null==J?void 0:J[cV.FontStyle],wA),fontStyle:xV(null==J?void 0:J[cV.FontStyle]),textDecoration:_V(null==J?void 0:J[cV.FontStyle]),color:null!==(m=null!==(h=gV(e,null==J?void 0:J[cV.FontColor]))&&void 0!==h?h:oe(pV.Dimension,fV.LabelName,mV.FontColor))&&void 0!==m?m:Dk.TEXT,background:le,hoverBackground:uA(le,la),activeBackground:uA(le,sa)},dimensionValues:{fontSize:null!==(g=null!==(b=hV(null==Z?void 0:Z[cV.FontSize]))&&void 0!==b?b:oe(pV.Dimension,fV.LabelValue,mV.FontSize))&&void 0!==g?g:yA,fontFamily:null!==(v=null!==(x=null==Z?void 0:Z[cV.FontFamily])&&void 0!==x?x:oe(pV.Dimension,fV.LabelValue,mV.FontFamily))&&void 0!==v?v:SA,fontWeight:vV(null==Z?void 0:Z[cV.FontStyle],void 0),fontStyle:xV(null==Z?void 0:Z[cV.FontStyle]),textDecoration:_V(null==Z?void 0:Z[cV.FontStyle]),color:null!==(_=null!==(y=gV(e,null==Z?void 0:Z[cV.FontColor]))&&void 0!==y?y:oe(pV.Dimension,fV.LabelValue,mV.FontColor))&&void 0!==_?_:Dk.TEXT,background:null!==(S=null!==(w=gV(e,null==Z?void 0:Z[cV.Background]))&&void 0!==w?w:oe(pV.Dimension,fV.LabelValue,mV.BackgroundColor))&&void 0!==S?S:RA.Transparent},measureValues:{fontSize:null!==(C=null!==(E=hV(null==Q?void 0:Q[cV.FontSize]))&&void 0!==E?E:oe(pV.Measure,fV.LabelValue,mV.FontSize))&&void 0!==C?C:yA,fontFamily:null!==(R=null!==(k=null==Q?void 0:Q[cV.FontFamily])&&void 0!==k?k:oe(pV.Measure,fV.LabelValue,mV.FontFamily))&&void 0!==R?R:SA,fontWeight:vV(null==Q?void 0:Q[cV.FontStyle],"normal"),fontStyle:xV(null==Q?void 0:Q[cV.FontStyle]),textDecoration:_V(null==Q?void 0:Q[cV.FontStyle]),color:null!==(L=null!==(A=gV(e,null==Q?void 0:Q[cV.FontColor]))&&void 0!==A?A:oe(pV.Measure,fV.LabelValue,mV.FontColor))&&void 0!==L?L:RA.FontSecondary,background:null!==(I=null!==(P=gV(e,null==Q?void 0:Q[cV.Background]))&&void 0!==P?P:oe(pV.Measure,fV.LabelValue,mV.BackgroundColor))&&void 0!==I?I:RA.Transparent},measureLabels:{fontWeight:vV(null==ee?void 0:ee[cV.FontStyle],"normal"),fontStyle:xV(null==ee?void 0:ee[cV.FontStyle]),textDecoration:_V(null==ee?void 0:ee[cV.FontStyle]),color:null!==(M=null!==(D=gV(e,null==ee?void 0:ee[cV.FontColor]))&&void 0!==D?D:oe(pV.Measure,fV.LabelName,mV.FontColor))&&void 0!==M?M:RA.FontSecondary,background:null!==(T=null!==(O=gV(e,null==ee?void 0:ee[cV.Background]))&&void 0!==O?O:oe(pV.Measure,fV.LabelName,mV.BackgroundColor))&&void 0!==T?T:RA.Transparent},totalValues:{fontWeight:vV(null==te?void 0:te[cV.FontStyle],wA),fontStyle:xV(null==te?void 0:te[cV.FontStyle]),textDecoration:_V(null==te?void 0:te[cV.FontStyle]),color:null!==(z=null!==(q=gV(e,null==te?void 0:te[cV.FontColor]))&&void 0!==q?q:oe(pV.Total,fV.LabelValue,mV.FontColor))&&void 0!==z?z:Dk.TEXT,background:null!==(N=null!==(j=gV(e,null==te?void 0:te[cV.Background]))&&void 0!==j?j:oe(pV.Total,fV.LabelValue,mV.BackgroundColor))&&void 0!==N?N:RA.Transparent},nullValues:{fontWeight:vV(null==ne?void 0:ne[cV.FontStyle],"normal"),fontStyle:xV(null==ne?void 0:ne[cV.FontStyle]),textDecoration:_V(null==ne?void 0:ne[cV.FontStyle]),color:null!==(F=null!==($=gV(e,null==ne?void 0:ne[cV.FontColor]))&&void 0!==$?$:oe(pV.Null,fV.LabelValue,mV.FontColor))&&void 0!==F?F:Dk.TEXT,background:null!==(B=null!==(G=gV(e,null==ne?void 0:ne[cV.Background]))&&void 0!==G?G:oe(pV.Null,fV.LabelValue,mV.BackgroundColor))&&void 0!==B?B:RA.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(H=gV(e,null==re?void 0:re[cV.Border]))&&void 0!==H?H:oe(pV.Grid,fV.Grid,mV.BorderColor))&&void 0!==W?W:RA.DividerLight,divider:null!==(V=null!==(Y=gV(e,null==re?void 0:re[cV.Divider]))&&void 0!==Y?Y:oe(pV.Grid,fV.Divider,mV.BorderColor))&&void 0!==V?V:RA.DividerDark,background:null!==(U=null!==(K=gV(e,null==re?void 0:re[cV.Background]))&&void 0!==K?K:oe(pV.Grid,fV.Grid,mV.BackgroundColor))&&void 0!==U?U:RA.Transparent},selectedColors:sA(e)};return se.headerCellHeight=Math.max(bV(se.header.fontSize,ae),bV(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(bV(se.measureValues.fontSize,ie),bV(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=bV(se.dimensionValues.fontSize,1),se})(h,p,t)),[h,p,t]),A=((e,t,n)=>{const[,r,o]=tI((async()=>{var t;const r=Qk(n.flags),o=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),a=e.getStyle("object","label.value","fontFamily"),l=null!==(t=e.getStyle("","","fontFamilies"))&&void 0!==t?t:[];return Promise.all([...r,...l,o,i,a,lI].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,n]);return o?(console.warn("Failed to load fonts:",o),!0):!r})(h,o,e),P=E(),M=e.flags.isEnabled("CLIENT_IM_6225_PIVOT_TABLE_RTL")?P.direction:"ltr";wV([CV({model:a,layoutService:p,effectivePropertiesService:c,translator:g})]),L((()=>{!w&&a&&!!S&&A&&((e,{selections:t,baseObjects:n,coreServices:r,nebulaObjects:o})=>{const a=dV(n.direction);e.render(de.jsx(i.StrictMode,{children:de.jsx(AD,{theme:a,children:de.jsx(rO,{...o,children:de.jsx(eO,{...n,children:de.jsx(nj,{selections:t,children:de.jsx(aO,{...r,children:de.jsx(Vz,{children:de.jsx(eG,{})})})})})})})}))})(r,{selections:m,baseObjects:{rect:y,pageInfo:v,qPivotDataPages:S,updatePageInfo:x,direction:M},nebulaObjects:{env:e,app:l,model:a,embed:s,theme:h,keyboard:u,translator:g,interactions:f},coreServices:{styleService:R,viewService:_,layoutService:p,downloadService:d,effectivePropertiesService:c}})}),[a,l,y,f,m,_,p,d,w,S,R,r,A,g,b,v,x,c,s,u,h,e,M])},TV={version:"6.0.0",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]},OV=()=>({...TV,qHyperCubeDef:{...TV.qHyperCubeDef,qIndentMode:!1}})}}}));