@nebula.js/sn-table 6.5.0 → 6.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-table v6.5.
|
|
3
|
-
* Copyright (c)
|
|
2
|
+
* @nebula.js/sn-table v6.5.1
|
|
3
|
+
* Copyright (c) 2026 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -87,7 +87,7 @@ function Li(e,t){let r;return r=t?Pi(e).withConfig({displayName:t.label,shouldFo
|
|
|
87
87
|
animation-iteration-count: infinite;
|
|
88
88
|
animation-delay: 200ms;
|
|
89
89
|
}
|
|
90
|
-
`),_c.rippleVisible,Vc,550,(({theme:e})=>e.transitions.easing.easeInOut),_c.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),_c.child,_c.childLeaving,Uc,550,(({theme:e})=>e.transitions.easing.easeInOut),_c.childPulsate,Gc,(({theme:e})=>e.transitions.easing.easeInOut)),Xc=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Fr(r,zc),[s,l]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=y.useRef(!1),p=el(),f=y.useRef(null),h=y.useRef(null),m=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,tr.jsx(Kc,{classes:{ripple:as(o.ripple,_c.ripple),rippleVisible:as(o.rippleVisible,_c.rippleVisible),ripplePulsate:as(o.ripplePulsate,_c.ripplePulsate),child:as(o.child,_c.child),childLeaving:as(o.childLeaving,_c.childLeaving),childPulsate:as(o.childPulsate,_c.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,m,p]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,l((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),tr.jsx(Yc,zr({className:as(_c.root,o.root,i),ref:h},a,{children:tr.jsx(Dc,{component:null,exit:!0,children:s})}))}));function Jc(e){return us("MuiButtonBase",e)}const Zc=cs("MuiButtonBase",["root","disabled","focusVisible"]),Qc=["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"],ed=ac("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"},[`&.${Zc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),td=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:R,onTouchMove:P,onTouchStart:A,tabIndex:I=0,TouchRippleProps:k,touchRippleRef:M,type:D}=r,T=Fr(r,Qc),q=y.useRef(null),O=y.useRef(null),L=Xs(O,M),{isFocusVisibleRef:N,onFocus:j,onBlur:_,ref:z}=ul(),[F,H]=y.useState(!1);l&&F&&H(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),q.current.focus()}})),[]);const[$,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const W=$&&!u&&!l;function V(e,t,r=c){return Ks((n=>{t&&t(n);return!r&&O.current&&O.current[e](n),!0}))}y.useEffect((()=>{F&&d&&!u&&$&&O.current.pulsate()}),[u,d,F,$]);const U=V("start",w),G=V("stop",m),Y=V("stop",g),K=V("stop",E),X=V("stop",(e=>{F&&e.preventDefault(),C&&C(e)})),J=V("start",A),Z=V("stop",R),Q=V("stop",P),ee=V("stop",(e=>{_(e),!1===N.current&&H(!1),f&&f(e)}),!1),te=Ks((e=>{q.current||(q.current=e.currentTarget),j(e),!0===N.current&&(H(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=q.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=y.useRef(!1),oe=Ks((e=>{d&&!ne.current&&F&&O.current&&" "===e.key&&(ne.current=!0,O.current.stop(e,(()=>{O.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))})),ie=Ks((e=>{d&&" "===e.key&&O.current&&F&&!e.defaultPrevented&&(ne.current=!1,O.current.stop(e,(()=>{O.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(T.href||T.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===D?"button":D,se.disabled=l):(T.href||T.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=Xs(t,z,q),ue=zr({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=dl({root:["root",t&&"disabled",r&&"focusVisible"]},Jc,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return tr.jsxs(ed,zr({as:ae,className:as(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:I,type:D},se,T,{children:[i,W?tr.jsx(Xc,zr({ref:L,center:o},k)):null]}))}));function rd(e){return us("MuiIconButton",e)}const nd=cs("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),od=["edge","children","className","color","disabled","disableFocusRipple","size"],id=ac(td,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${Ji(r.color)}`],r.edge&&t[`edge${Ji(r.edge)}`],t[`size${Ji(r.size)}`]]}})((({theme:e,ownerState:t})=>zr({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Hl(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return zr({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&zr({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":zr({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Hl(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${nd.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),ad=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium"}=r,c=Fr(r,od),d=zr({},r,{edge:n,color:a,disabled:s,disableFocusRipple:l,size:u}),p=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e;return dl({root:["root",r&&"disabled","default"!==n&&`color${Ji(n)}`,o&&`edge${Ji(o)}`,`size${Ji(i)}`]},rd,t)})(d);return tr.jsx(id,zr({className:as(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))}));function sd(e){return us("MuiTypography",e)}cs("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ld=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ud=ac("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${Ji(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>zr({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}))),cd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},dd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},pd=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiTypography"}),n=(e=>dd[e]||e)(r.color),o=ts(zr({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=cd}=o,f=Fr(o,ld),h=zr({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||cd[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return dl({root:["root",i,"inherit"!==e.align&&`align${Ji(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},sd,a)})(h);return tr.jsx(ud,zr({as:m,ref:t,ownerState:h,className:as(g.root,a)},f))}));const fd=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),s=Xs(y.isValidElement(r)?bl(r):null,t);if(Ls((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),Ls((()=>{if(i&&!o)return Ws(t,i),()=>{Ws(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:s};return y.cloneElement(r,e)}return tr.jsx(y.Fragment,{children:r})}return tr.jsx(y.Fragment,{children:i?F.createPortal(r,i):i})})),hd=["onChange","maxRows","minRows","style","value"];function md(e){return parseInt(e,10)||0}const gd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function bd(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const vd=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Fr(e,hd),{current:l}=y.useRef(null!=a),u=y.useRef(null),c=Xs(t,u),d=y.useRef(null),p=y.useRef(null),f=y.useCallback((()=>{const t=u.current,r=p.current;if(!t||!r)return;const i=Bs(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=i.boxSizing,s=md(i.paddingBottom)+md(i.paddingTop),l=md(i.borderBottomWidth)+md(i.borderTopWidth),c=r.scrollHeight;r.value="x";const d=r.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*d,f)),n&&(f=Math.min(Number(n)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-c)<=1}}),[n,o,e.placeholder]),h=Ks((()=>{const e=u.current,t=f();if(!e||!t||bd(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r})),m=y.useCallback((()=>{const e=u.current,t=f();if(!e||!t||bd(t))return;const r=t.outerHeightStyle;d.current!==r&&(d.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""}),[f]),g=y.useRef(-1);Ls((()=>{const e=Hs(m),t=null==u?void 0:u.current;if(!t)return;const r=Bs(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver((()=>{h()&&(n.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame((()=>{n.observe(t)})))})),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),r.removeEventListener("resize",e),n&&n.disconnect()}}),[f,m,h]),Ls((()=>{m()}));return tr.jsxs(y.Fragment,{children:[tr.jsx("textarea",zr({value:a,onChange:e=>{l||m(),r&&r(e)},ref:c,rows:o,style:i},s)),tr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:zr({},gd,i,{paddingTop:0,paddingBottom:0})})]})}));function yd({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}const xd=y.createContext(void 0);function Sd(){return y.useContext(xd)}function wd(e){return tr.jsx(Qa,zr({},e,{defaultTheme:Eu,themeId:_r}))}function Cd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Ed(e,t=!1){return e&&(Cd(e.value)&&""!==e.value||t&&Cd(e.defaultValue)&&""!==e.defaultValue)}function Rd(e){return us("MuiInputBase",e)}const Pd=cs("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ad=["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"],Id=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Ji(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},kd=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Md=ac("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Id})((({theme:e,ownerState:t})=>zr({},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",[`&.${Pd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&zr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Dd=ac("input",{name:"MuiInputBase",slot:"Input",overridesResolver:kd})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=zr({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.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:r?.42:.5};return zr({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":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Pd.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},[`&.${Pd.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"})})),Td=tr.jsx(wd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),qd=y.forwardRef((function(e,t){var r;const n=cc({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:x,minRows:S,multiline:w=!1,name:C,onBlur:E,onChange:R,onClick:P,onFocus:A,onKeyDown:I,onKeyUp:k,placeholder:M,readOnly:D,renderSuffix:T,rows:q,slotProps:O={},slots:L={},startAdornment:N,type:j="text",value:_}=n,z=Fr(n,Ad),F=null!=b.value?b.value:_,{current:H}=y.useRef(null!=F),$=y.useRef(),B=y.useCallback((e=>{}),[]),W=Xs($,v,b.ref,B),[V,U]=y.useState(!1),G=Sd(),Y=yd({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=G?G.focused:V,y.useEffect((()=>{!G&&d&&V&&(U(!1),E&&E())}),[G,d,V,E]);const K=G&&G.onFilled,X=G&&G.onEmpty,J=y.useCallback((e=>{Ed(e)?K&&K():X&&X()}),[K,X]);Ls((()=>{H&&J({value:F})}),[F,J,H]);y.useEffect((()=>{J($.current)}),[]);let Z=g,Q=b;w&&"input"===Z&&(Q=zr(q?{type:void 0,minRows:q,maxRows:q}:{type:void 0,maxRows:x,minRows:S},Q),Z=vd);y.useEffect((()=>{G&&G.setAdornedStart(Boolean(N))}),[G,N]);const ee=zr({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:G,fullWidth:h,hiddenLabel:Y.hiddenLabel,multiline:w,size:Y.size,startAdornment:N,type:j}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return dl({root:["root",`color${Ji(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Ji(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Rd,t)})(ee),re=L.root||l.Root||Md,ne=O.root||u.root||{},oe=L.input||l.Input||Dd;return Q=zr({},Q,null!=(r=O.input)?r:u.input),tr.jsxs(y.Fragment,{children:[!p&&Td,tr.jsxs(re,zr({},ne,!pl(re)&&{ownerState:zr({},ee,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),P&&P(e)}},z,{className:as(te.root,ne.className,s,D&&"MuiInputBase-readOnly"),children:[N,tr.jsx(xd.Provider,{value:null,children:tr.jsx(oe,zr({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:C,placeholder:M,readOnly:D,required:Y.required,rows:q,value:F,onKeyDown:I,onKeyUp:k,type:j},Q,!pl(oe)&&{as:Z,ownerState:zr({},ee,Q.ownerState)},{ref:W,className:as(te.input,Q.className,D&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),b.onBlur&&b.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||$.current;if(null==t)throw new Error(Nr(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(A&&A(e),b.onFocus&&b.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,T?T(zr({},Y,{startAdornment:N})):null]}))]})}));function Od(e){return us("MuiInput",e)}const Ld=zr({},Pd,cs("MuiInput",["root","underline","input"]));function Nd(e){return us("MuiOutlinedInput",e)}const jd=zr({},Pd,cs("MuiOutlinedInput",["root","notchedOutline","input"]));function _d(e){return us("MuiFilledInput",e)}const zd=zr({},Pd,cs("MuiFilledInput",["root","underline","input"]));var Fd=function(e,t){function r(r,n){return tr.jsx(hc,zr({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=hc.muiName,y.memo(y.forwardRef(r))}(tr.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Hd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],$d={entering:{opacity:1},entered:{opacity:1}},Bd=y.forwardRef((function(e,t){const r=Ru(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=n,TransitionComponent:b=Ec}=e,v=Fr(e,Hd),x=y.useRef(null),S=Xs(x,bl(a),t),w=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=w(d),E=w(((e,t)=>{Tc(e);const n=qc({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=w(c),P=w(h),A=w((e=>{const t=qc({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),I=w(f);return tr.jsx(b,zr({appear:i,in:l,nodeRef:x,onEnter:E,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:P,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,zr({style:zr({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},$d[e],m,a.props.style),ref:S},t))}))}));function Wd(e){return us("MuiBackdrop",e)}cs("MuiBackdrop",["root","invisible"]);const Vd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ud=ac("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>zr({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"}))),Gd=y.forwardRef((function(e,t){var r,n,o;const i=cc({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Bd,transitionDuration:g}=i,b=Fr(i,Vd),v=zr({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return dl({root:["root",r&&"invisible"]},Wd,t)})(v),x=null!=(r=f.root)?r:c.root;return tr.jsx(m,zr({in:p,timeout:g},b,{children:tr.jsx(Ud,zr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:as(y.root,s,null==x?void 0:x.className),ownerState:zr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),Yd=cs("MuiBox",["root"]),Kd=Cu(),Xd=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Li("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Wa);return y.forwardRef((function(e,a){const s=Ja(r),l=ts(e),{className:u,component:c="div"}=l,d=Fr(l,ss);return tr.jsx(i,zr({as:c,ref:a,className:as(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:_r,defaultTheme:Kd,defaultClassName:Yd.root,generateClassName:os.generate});function Jd(e){return us("MuiButton",e)}const Zd=cs("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"]),Qd=y.createContext({}),ep=y.createContext(void 0),tp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],rp=e=>zr({},"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}}),np=ac(td,{shouldForwardProp:e=>ic(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Ji(r.color)}`],t[`size${Ji(r.size)}`],t[`${r.variant}Size${Ji(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;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 zr({},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":zr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Hl(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})`:Hl(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})`:Hl(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":zr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Zd.focusVisible}`]:zr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Zd.disabled}`]:zr({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 ${Hl(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,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"},[`&.${Zd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Zd.disabled}`]:{boxShadow:"none"}})),op=ac("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Ji(r.size)}`]]}})((({ownerState:e})=>zr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},rp(e)))),ip=ac("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Ji(r.size)}`]]}})((({ownerState:e})=>zr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},rp(e)))),ap=y.forwardRef((function(e,t){const r=y.useContext(Qd),n=y.useContext(ep),o=cc({props:Os(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,x=Fr(o,tp),S=zr({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),w=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return zr({},a,dl({root:["root",i,`${i}${Ji(t)}`,`size${Ji(o)}`,`${i}Size${Ji(o)}`,`color${Ji(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Ji(o)}`],endIcon:["icon","endIcon",`iconSize${Ji(o)}`]},Jd,a))})(S),C=g&&tr.jsx(op,{className:w.startIcon,ownerState:S,children:g}),E=p&&tr.jsx(ip,{className:w.endIcon,ownerState:S,children:p}),R=n||"";return tr.jsxs(np,zr({ownerState:S,className:as(r.className,w.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:as(w.focusVisible,f),ref:t,type:b},x,{classes:w,children:[C,i,E]}))}));function sp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function lp(e){return parseInt(Bs(e).getComputedStyle(e).paddingRight,10)||0}function up(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&sp(e,o)}))}function cp(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function dp(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=$s(e);return t.body===e?Bs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=cl($s(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${lp(n)+e}px`;const t=$s(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${lp(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=$s(n).body;else{const t=n.parentElement,r=Bs(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.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()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const pp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function fp(e){const t=[],r=[];return Array.from(e.querySelectorAll(pp)).forEach(((e,n)=>{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 r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function hp(){return!0}function mp(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=fp,isEnabled:a=hp,open:s}=e,l=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),h=y.useRef(null),m=Xs(bl(t),h),g=y.useRef(null);y.useEffect((()=>{s&&h.current&&(f.current=!r)}),[r,s]),y.useEffect((()=>{if(!s||!h.current)return;const e=$s(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),y.useEffect((()=>{if(!s||!h.current)return;const e=$s(h.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(h.current)),r.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return tr.jsxs(y.Fragment,{children:[tr.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),tr.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const gp=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&sp(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);up(t,e.mount,e.modalRef,n,!0);const o=cp(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=cp(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=dp(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=cp(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&sp(e.modalRef,t),up(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&sp(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function bp(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=gp,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),h=y.useRef(null),m=Xs(h,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),w=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},C=Ks((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||$s(f.current).body;o.add(S(),e),h.current&&w()})),E=y.useCallback((()=>o.isTopModal(S())),[o]),R=Ks((e=>{f.current=e,e&&(c&&E()?w():h.current&&sp(h.current,x))})),P=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{P()}),[P]),y.useEffect((()=>{c?C():v&&i||P()}),[c,P,v,i,C]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=fl(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=zr({},r,t);return zr({role:"presentation"},n,{onKeyDown:A(n),ref:m})},getBackdropProps:(e={})=>zr({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Fs((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:Fs((()=>{b(!0),s&&s(),i&&P()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:E,exited:g,hasTransition:v}}function vp(e){return us("MuiModal",e)}cs("MuiModal",["root","hidden","backdrop"]);const yp=["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"],xp=ac("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>zr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Sp=ac(Gd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),wp=y.forwardRef((function(e,t){var r,n,o,i,a,s;const l=cc({name:"MuiModal",props:e}),{BackdropComponent:u=Sp,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:P=!1,onBackdropClick:A,open:I,slotProps:k,slots:M}=l,D=Fr(l,yp),T=zr({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:R,keepMounted:P}),{getRootProps:q,getBackdropProps:O,getTransitionProps:L,portalRef:N,isTopModal:j,exited:_,hasTransition:z}=bp(zr({},T,{rootRef:t})),F=zr({},T,{exited:_}),H=(e=>{const{open:t,exited:r,classes:n}=e;return dl({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},vp,n)})(F),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),z){const{onEnter:e,onExited:t}=L();$.onEnter=e,$.onExited=t}const B=null!=(r=null!=(n=null==M?void 0:M.root)?n:g.Root)?r:xp,W=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==k?void 0:k.root)?a:b.root,U=null!=(s=null==k?void 0:k.backdrop)?s:b.backdrop,G=gl({elementType:B,externalSlotProps:V,externalForwardedProps:D,getSlotProps:q,additionalProps:{ref:t,as:m},ownerState:F,className:as(d,null==V?void 0:V.className,null==H?void 0:H.root,!F.open&&F.exited&&(null==H?void 0:H.hidden))}),Y=gl({elementType:W,externalSlotProps:U,additionalProps:c,getSlotProps:e=>O(zr({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:as(null==U?void 0:U.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:F});return P||I||z&&!_?tr.jsx(fd,{ref:N,container:h,disablePortal:w,children:tr.jsxs(B,zr({},G,{children:[!R&&u?tr.jsx(W,zr({},Y)):null,tr.jsx(mp,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:j,open:I,children:y.cloneElement(f,$)})]}))}):null}));function Cp(e){return us("MuiDivider",e)}const Ep=cs("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Rp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Pp=ac("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>zr({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)`:Hl(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})=>zr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>zr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>zr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>zr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Ap=ac("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>zr({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)`}))),Ip=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Fr(r,Rp),h=zr({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return dl({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Cp,n)})(h);return tr.jsx(Pp,zr({as:a,className:as(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?tr.jsx(Ap,{className:m.wrapper,ownerState:h,children:o}):null}))}));Ip.muiSkipListHighlight=!0;const kp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Mp=ac(Md,{shouldForwardProp:e=>ic(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Id(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return zr({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}},[`&.${zd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${zd.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.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"},[`&.${zd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zd.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(.${zd.disabled}, .${zd.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${zd.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&zr({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}))})),Dp=ac(Dd,{name:"MuiFilledInput",slot:"Input",overridesResolver:kd})((({theme:e,ownerState:t})=>zr({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}))),Tp=y.forwardRef((function(e,t){var r,n,o,i;const a=cc({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=Fr(a,kp),g=zr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return zr({},t,dl({root:["root",!r&&"underline"],input:["input"]},_d,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?Hi(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Mp,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Dp;return tr.jsx(qd,zr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));Tp.muiName="Input";const qp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Op(e){return`scale(${e}, ${e**2})`}const Lp={entering:{opacity:1,transform:Op(1)},entered:{opacity:1,transform:"none"}},Np="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),jp=y.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Ec}=e,g=Fr(e,qp),b=el(),v=y.useRef(),x=Ru(),S=y.useRef(null),w=Xs(S,bl(o),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},E=C(u),R=C(((e,t)=>{Tc(e);const{duration:r,delay:n,easing:o}=qc({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:Np?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)})),P=C(l),A=C(p),I=C((e=>{const{duration:t,delay:r,easing:n}=qc({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:Np?o:.666*o,delay:Np?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Op(.75),c&&c(e)})),k=C(d);return tr.jsx(m,zr({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:P,onEntering:E,onExit:I,onExited:k,onExiting:A,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),r&&r(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>y.cloneElement(o,zr({style:zr({opacity:0,transform:Op(.75),visibility:"exited"!==e||a?void 0:"hidden"},Lp[e],f,o.props.style),ref:w},t))}))}));jp.muiSupportAuto=!0;const _p=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],zp=ac(Md,{shouldForwardProp:e=>ic(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Id(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),zr({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"},[`&.${Ld.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ld.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ld.disabled}, .${Ld.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ld.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Fp=ac(Dd,{name:"MuiInput",slot:"Input",overridesResolver:kd})({}),Hp=y.forwardRef((function(e,t){var r,n,o,i;const a=cc({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=Fr(a,_p),b=(e=>{const{classes:t,disableUnderline:r}=e;return zr({},t,dl({root:["root",!r&&"underline"],input:["input"]},Od,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?Hi(null!=f?f:u,v):v,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:zp,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:Fp;return tr.jsx(qd,zr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));function $p(e){return us("MuiLink",e)}Hp.muiName="Input";const Bp=cs("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Wp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Vp=({theme:e,ownerState:t})=>{const r=(e=>Wp[e]||e)(t.color),n=Qi(e,`palette.${r}`,!1)||t.color,o=Qi(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Hl(n,.4)},Up=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Gp=ac(pd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Ji(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>zr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&zr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Vp({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"},[`&.${Bp.focusVisible}`]:{outline:"auto"}}))),Yp=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:u="always",variant:c="inherit",sx:d}=r,p=Fr(r,Up),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=ul(),[b,v]=y.useState(!1),x=Xs(t,g),S=zr({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return dl({root:["root",`underline${Ji(o)}`,"button"===r&&"button",n&&"focusVisible"]},$p,t)})(S);return tr.jsx(Gp,zr({color:o,className:as(w.root,n),classes:l,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),s&&s(e)},ref:x,ownerState:S,variant:c,sx:[...Object.keys(Wp).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))})),Kp=y.createContext({});function Xp(e){return us("MuiList",e)}cs("MuiList",["root","padding","dense","subheader"]);const Jp=["children","className","component","dense","disablePadding","subheader"],Zp=ac("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>zr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Qp=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=Fr(r,Jp),c=y.useMemo((()=>({dense:a})),[a]),d=zr({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return dl({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Xp,t)})(d);return tr.jsx(Kp.Provider,{value:c,children:tr.jsxs(Zp,zr({as:i,className:as(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})}));function ef(e){return us("MuiListItemIcon",e)}const tf=cs("MuiListItemIcon",["root","alignItemsFlexStart"]),rf=["className"],nf=ac("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>zr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),of=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Fr(r,rf),i=zr({},r,{alignItems:y.useContext(Kp).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return dl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},ef,r)})(i);return tr.jsx(nf,zr({className:as(a.root,n),ownerState:i,ref:t},o))})),af=cs("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),sf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function lf(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function uf(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function cf(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function df(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&cf(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const pf=y.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Fr(e,sf),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ls((()=>{n&&p.current.focus()}),[n]),y.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${cl($s(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const h=Xs(p,t);let m=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return tr.jsx(Qp,zr({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=$s(t).activeElement;if("ArrowDown"===r)e.preventDefault(),df(t,n,l,s,lf);else if("ArrowUp"===r)e.preventDefault(),df(t,n,l,s,uf);else if("Home"===r)e.preventDefault(),df(t,null,l,s,lf);else if("End"===r)e.preventDefault(),df(t,null,l,s,uf);else if(1===r.length){const o=f.current,i=r.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 l=n&&!o.repeating&&cf(n,o);o.previousKeyMatched&&(l||df(t,n,!1,s,lf,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function ff(e){return us("MuiPopover",e)}cs("MuiPopover",["root","paper"]);const hf=["onEntering"],mf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],gf=["slotProps"];function bf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function vf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function yf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function xf(e){return"function"==typeof e?e():e}const Sf=ac(wp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wf=ac(jc,{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}),Cf=y.forwardRef((function(e,t){var r,n,o;const i=cc({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=jp,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=i,P=Fr(i.TransitionProps,hf),A=Fr(i,mf),I=null!=(r=null==x?void 0:x.paper)?r:b,k=y.useRef(),M=Xs(k,I.ref),D=zr({},i,{anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:P}),T=(e=>{const{classes:t}=e;return dl({root:["root"],paper:["paper"]},ff,t)})(D),q=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=xf(s),t=(e&&1===e.nodeType?e:$s(k.current).body).getBoundingClientRect();return{top:t.top+bf(t,l.vertical),left:t.left+vf(t,l.horizontal)}}),[s,l.horizontal,l.vertical,u,c]),O=y.useCallback((e=>({vertical:bf(e,S.vertical),horizontal:vf(e,S.horizontal)})),[S.horizontal,S.vertical]),L=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=O(t);if("none"===c)return{top:null,left:null,transformOrigin:yf(r)};const n=q();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Bs(xf(s)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:yf(r)}}),[s,c,q,O,m]),[N,j]=y.useState(g),_=y.useCallback((()=>{const e=k.current;if(!e)return;const t=L(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,j(!0)}),[L]);y.useEffect((()=>(R&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_))),[s,R,_]);y.useEffect((()=>{g&&_()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{_()}}:null),[g,_]),y.useEffect((()=>{if(!g)return;const e=Hs((()=>{_()})),t=Bs(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,_]);let z=C;"auto"!==C||w.muiSupportAuto||(z=void 0);const F=f||(s?$s(xf(s)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:Sf,$=null!=(o=null==v?void 0:v.paper)?o:wf,B=gl({elementType:$,externalSlotProps:zr({},I,{style:N?I.style:zr({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:M},ownerState:D,className:as(T.paper,null==I?void 0:I.className)}),W=gl({elementType:H,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:D,className:as(T.root,p)}),{slotProps:V}=W,U=Fr(W,gf);return tr.jsx(H,zr({},U,!pl(H)&&{slotProps:V,disableScrollLock:R},{children:tr.jsx(w,zr({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),_()},onExited:()=>{j(!1)},timeout:z},P,{children:tr.jsx($,zr({},B,{children:d}))}))}))}));function Ef(e){return us("MuiMenu",e)}cs("MuiMenu",["root","paper","list"]);const Rf=["onEntering"],Pf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Af={vertical:"top",horizontal:"right"},If={vertical:"top",horizontal:"left"},kf=ac(Cf,{shouldForwardProp:e=>ic(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mf=ac(wf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Df=ac(pf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Tf=y.forwardRef((function(e,t){var r,n;const o=cc({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=Fr(o.TransitionProps,Rf),S=Fr(o,Pf),w=(()=>{const e=y.useContext(Cl);return null!=e&&e})(),C=zr({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:x,variant:g}),E=(e=>{const{classes:t}=e;return dl({root:["root"],paper:["paper"],list:["list"]},Ef,t)})(C),R=i&&!l&&d,P=y.useRef(null);let A=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))}));const I=null!=(r=b.paper)?r:Mf,k=null!=(n=v.paper)?n:p,M=gl({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[E.root,s]}),D=gl({elementType:I,externalSlotProps:k,ownerState:C,className:E.paper});return tr.jsx(kf,zr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Af:If,slots:{paper:I,root:b.root},slotProps:{root:M,paper:D},open:d,ref:t,transitionDuration:h,TransitionProps:zr({onEntering:(e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:C},S,{classes:f,children:tr.jsx(Df,zr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:P,autoFocus:i&&(-1===A||l),autoFocusItem:R,variant:g},u,{className:as(E.list,u.className),children:a}))}))}));function qf(e){return us("MuiMenuItem",e)}const Of=cs("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Lf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Nf=ac(td,{shouldForwardProp:e=>ic(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>zr({},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"}},[`&.${Of.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Hl(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Of.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Hl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Of.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Hl(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})`:Hl(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Of.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Of.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ep.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ep.inset}`]:{marginLeft:52},[`& .${af.root}`]:{marginTop:0,marginBottom:0},[`& .${af.inset}`]:{paddingLeft:36},[`& .${tf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&zr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${tf.root} svg`]:{fontSize:"1.25rem"}})))),jf=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=r,p=Fr(r,Lf),f=y.useContext(Kp),h=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),m=y.useRef(null);Ls((()=>{n&&m.current&&m.current.focus()}),[n]);const g=zr({},r,{dense:h.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return zr({},a,dl({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},qf,a))})(r),v=Xs(m,t);let x;return r.disabled||(x=void 0!==c?c:-1),tr.jsx(Kp.Provider,{value:h,children:tr.jsx(Nf,zr({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:as(b.focusVisible,l),className:as(b.root,d)},p,{ownerState:g,classes:b}))})}));function _f(e){return us("MuiNativeSelect",e)}const zf=cs("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ff=["className","disabled","error","IconComponent","inputRef","variant"],Hf=({ownerState:e,theme:t})=>zr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":zr({},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"},[`&.${zf.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}}),$f=ac("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ic,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${zf.multiple}`]:t.multiple}]}})(Hf),Bf=({ownerState:e,theme:t})=>zr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${zf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Wf=ac("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ji(r.variant)}`],r.open&&t.iconOpen]}})(Bf),Vf=y.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Fr(e,Ff),u=zr({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return dl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ji(r)}`,i&&"iconOpen",n&&"disabled"]},_f,t)})(u);return tr.jsxs(y.Fragment,{children:[tr.jsx($f,zr({ownerState:u,className:as(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:tr.jsx(Wf,{as:i,ownerState:u,className:c.icon})]})}));var Uf;const Gf=["children","classes","className","label","notched"],Yf=ac("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:ic})({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%"}),Kf=ac("legend",{name:"MuiNotchedOutlined",shouldForwardProp:ic})((({ownerState:e,theme:t})=>zr({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&&zr({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 Xf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Jf=ac(Md,{shouldForwardProp:e=>ic(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Id})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return zr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${jd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${jd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${jd.focused} .${jd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${jd.error} .${jd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${jd.disabled} .${jd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&zr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Zf=ac((function(e){const{className:t,label:r,notched:n}=e,o=Fr(e,Gf),i=null!=r&&""!==r,a=zr({},e,{notched:n,withLabel:i});return tr.jsx(Yf,zr({"aria-hidden":!0,className:t,ownerState:a},o,{children:tr.jsx(Kf,{ownerState:a,children:i?tr.jsx("span",{children:r}):Uf||(Uf=tr.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}})),Qf=ac(Dd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:kd})((({theme:e,ownerState:t})=>zr({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}))),eh=y.forwardRef((function(e,t){var r,n,o,i,a;const s=cc({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=s,g=Fr(s,Xf),b=(e=>{const{classes:t}=e;return zr({},t,dl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Nd,t))})(s),v=Sd(),x=yd({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=zr({},s,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:v,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:m}),w=null!=(r=null!=(n=h.root)?n:l.Root)?r:Jf,C=null!=(o=null!=(i=h.input)?i:l.Input)?o:Qf;return tr.jsx(qd,zr({slots:{root:w,input:C},renderSuffix:e=>tr.jsx(Zf,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=tr.jsxs(y.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:m},g,{classes:zr({},b,{notchedOutline:null})}))}));function th(e){return us("MuiSelect",e)}eh.muiName="Input";const rh=cs("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var nh;const oh=["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"],ih=ac("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${rh.select}`]:t.select},{[`&.${rh.select}`]:t[r.variant]},{[`&.${rh.error}`]:t.error},{[`&.${rh.multiple}`]:t.multiple}]}})(Hf,{[`&.${rh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ah=ac("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ji(r.variant)}`],r.open&&t.iconOpen]}})(Bf),sh=ac("input",{shouldForwardProp:e=>oc(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 lh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function uh(e){return null==e||"string"==typeof e&&!e.trim()}const ch=y.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:x,onBlur:S,onChange:w,onClose:C,onFocus:E,onOpen:R,open:P,readOnly:A,renderValue:I,SelectDisplayProps:k={},tabIndex:M,value:D,variant:T="standard"}=e,q=Fr(e,oh),[O,L]=Ys({controlled:D,default:c,name:"Select"}),[N,j]=Ys({controlled:P,default:u,name:"Select"}),_=y.useRef(null),z=y.useRef(null),[F,H]=y.useState(null),{current:$}=y.useRef(null!=P),[B,W]=y.useState(),V=Xs(t,m),U=y.useCallback((e=>{z.current=e,e&&H(e)}),[]),G=null==F?void 0:F.parentNode;y.useImperativeHandle(V,(()=>({focus:()=>{z.current.focus()},node:_.current,value:O})),[O]),y.useEffect((()=>{u&&N&&F&&!$&&(W(a?null:G.clientWidth),z.current.focus())}),[F,a]),y.useEffect((()=>{i&&z.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=$s(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?R&&R(t):C&&C(t),$||(W(a?null:G.clientWidth),j(e))},K=y.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(O)?O.slice():[];const t=O.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),O!==r&&(L(r),w)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),w(o,e)}v||Y(!1,t)}},J=null!==F&&N;let Z,Q;delete q["aria-invalid"];const ee=[];let te=!1;(Ed({value:O})||p)&&(I?Z=I(O):te=!0);const re=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(O))throw new Error(Nr(2));t=O.some((t=>lh(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=lh(O,e.props.value),t&&te&&(Q=e.props.children);return y.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=v?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=B;!a&&$&&F&&(oe=G.clientWidth),ne=void 0!==M?M:d?null:0;const ie=k.id||(x?`mui-component-select-${x}`:void 0),ae=zr({},e,{variant:T,value:O,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return dl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ji(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},th,t)})(ae),le=zr({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=Gs();return tr.jsxs(y.Fragment,{children:[tr.jsx(ih,zr({ref:U,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!A){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||A?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:O,name:x}}),S(e))},onFocus:E},k,{ownerState:ae,className:as(k.className,se.select,l),id:ie,children:uh(Z)?nh||(nh=tr.jsx("span",{className:"notranslate",children:""})):Z})),tr.jsx(sh,zr({"aria-invalid":f,value:Array.isArray(O)?O.join(","):O,name:x,ref:_,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(L(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},q)),tr.jsx(ah,{as:h,className:se.icon,ownerState:ae}),tr.jsx(Tf,zr({id:`menu-${x||""}`,anchorEl:G,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:zr({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:zr({},b.slotProps,{paper:zr({},le,{style:zr({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})})),dh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],ph=["root"],fh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ic(e)&&"variant"!==e,slot:"Root"},hh=ac(Hp,fh)(""),mh=ac(eh,fh)(""),gh=ac(Tp,fh)(""),bh=y.forwardRef((function(e,t){const r=cc({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=Fd,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:x,open:S,renderValue:w,SelectDisplayProps:C,variant:E="outlined"}=r,R=Fr(r,dh),P=b?Vf:ch,A=yd({props:r,muiFormControl:Sd(),states:["variant","error"]}),I=A.variant||E,k=zr({},r,{variant:I,classes:i}),M=(e=>{const{classes:t}=e;return t})(k),D=Fr(M,ph),T=d||{standard:tr.jsx(hh,{ownerState:k}),outlined:tr.jsx(mh,{label:f,ownerState:k}),filled:tr.jsx(gh,{ownerState:k})}[I],q=Xs(t,bl(T));return tr.jsx(y.Fragment,{children:y.cloneElement(T,zr({inputComponent:P,inputProps:zr({children:o,error:A.error,IconComponent:u,variant:I,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:h,MenuProps:m,onClose:v,onOpen:x,open:S,renderValue:w,SelectDisplayProps:zr({id:c},C)},p,{classes:p?Hi(D,p.classes):D},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===I?{notched:!0}:{},{ref:q,className:as(T.props.className,a,M.root)},!d&&{variant:I},R))})}));bh.muiName="Select";const vh=y.createContext();function yh(e){return us("MuiTable",e)}cs("MuiTable",["root","stickyHeader"]);const xh=["className","component","padding","size","stickyHeader"],Sh=ac("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>zr({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":zr({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),wh="table",Ch=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiTable"}),{className:n,component:o=wh,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=Fr(r,xh),u=zr({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return dl({root:["root",r&&"stickyHeader"]},yh,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return tr.jsx(vh.Provider,{value:d,children:tr.jsx(Sh,zr({as:o,role:o===wh?null:"table",ref:t,className:as(c.root,n),ownerState:u},l))})})),Eh=y.createContext();function Rh(e){return us("MuiTableBody",e)}cs("MuiTableBody",["root"]);const Ph=["className","component"],Ah=ac("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Ih={variant:"body"},kh="tbody",Mh=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiTableBody"}),{className:n,component:o=kh}=r,i=Fr(r,Ph),a=zr({},r,{component:o}),s=(e=>{const{classes:t}=e;return dl({root:["root"]},Rh,t)})(a);return tr.jsx(Eh.Provider,{value:Ih,children:tr.jsx(Ah,zr({className:as(s.root,n),as:o,ref:t,role:o===kh?null:"rowgroup",ownerState:a},i))})}));function Dh(e){return us("MuiTableCell",e)}const Th=cs("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),qh=["align","className","component","padding","scope","size","sortDirection","variant"],Oh=ac("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Ji(r.size)}`],"normal"!==r.padding&&t[`padding${Ji(r.padding)}`],"inherit"!==r.align&&t[`align${Ji(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>zr({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Wl(Hl(e.palette.divider,1),.88):$l(Hl(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${Th.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),Lh=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=Fr(r,qh),p=y.useContext(vh),f=y.useContext(Eh),h=f&&"head"===f.variant;let m;m=i||(h?"th":"td");let g=s;"td"===m?g=void 0:!g&&h&&(g="col");const b=c||f&&f.variant,v=zr({},r,{align:n,component:m,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),x=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return dl({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${Ji(n)}`,"normal"!==o&&`padding${Ji(o)}`,`size${Ji(i)}`]},Dh,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),tr.jsx(Oh,zr({as:m,ref:t,className:as(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));function Nh(e){return us("MuiTableContainer",e)}cs("MuiTableContainer",["root"]);const jh=["className","component"],_h=ac("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),zh=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Fr(r,jh),a=zr({},r,{component:o}),s=(e=>{const{classes:t}=e;return dl({root:["root"]},Nh,t)})(a);return tr.jsx(_h,zr({ref:t,as:o,className:as(s.root,n),ownerState:a},i))}));function Fh(e){return us("MuiTableHead",e)}cs("MuiTableHead",["root"]);const Hh=["className","component"],$h=ac("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Bh={variant:"head"},Wh="thead",Vh=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiTableHead"}),{className:n,component:o=Wh}=r,i=Fr(r,Hh),a=zr({},r,{component:o}),s=(e=>{const{classes:t}=e;return dl({root:["root"]},Fh,t)})(a);return tr.jsx(Eh.Provider,{value:Bh,children:tr.jsx($h,zr({as:o,className:as(s.root,n),ref:t,role:o===Wh?null:"rowgroup",ownerState:a},i))})}));function Uh(e){return us("MuiTableRow",e)}const Gh=cs("MuiTableRow",["root","selected","hover","head","footer"]),Yh=["className","component","hover","selected"],Kh=ac("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Gh.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Gh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Hl(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Hl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Xh="tr",Jh=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiTableRow"}),{className:n,component:o=Xh,hover:i=!1,selected:a=!1}=r,s=Fr(r,Yh),l=y.useContext(Eh),u=zr({},r,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return dl({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},Uh,t)})(u);return tr.jsx(Kh,zr({as:o,ref:t,className:as(c.root,n),role:o===Xh?null:"row",ownerState:u},s))}));function Zh(e){return tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:tr.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var Qh=function({fontSize:e="medium",children:t=null,className:r=""}={}){return tr.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})};function em(e={}){return tr.jsx(Qh,{...e,children:tr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[tr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),tr.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 tm(e={}){return tr.jsx(Qh,{fontSize:"medium",...e,children:tr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[tr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),tr.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 rm(e){return tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:tr.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 nm(e={}){return tr.jsx(Qh,{...e,children:tr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:tr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[tr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),tr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function om(e={}){return tr.jsx(Qh,{fontSize:"medium",...e,children:tr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:tr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:tr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function im({className:e}){return tr.jsx(Qh,{fontSize:"small",className:e,children:tr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:tr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:tr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:tr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[tr.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"}),tr.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 am(e={}){return tr.jsx(Qh,{...e,children:tr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:tr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:tr.jsx("rect",{stroke:qt.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const sm={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:_t,"& > 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 lm=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:qt.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:qt.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:tr.jsx(Zh,{"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 ${qt.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`,borderRadius:_t,backgroundColor:qt.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 ${qt.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:qt.WHITE,color:qt.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:_t},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:qt.GREYSCALE_0_15,backgroundColor:qt.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${qt.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:qt.GREEN_PALE},"&:active":{backgroundColor:qt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${zs(qt.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:qt.BLUE_PALE},"&:active":{backgroundColor:qt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${zs(qt.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:_t,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:qt.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:qt.GREYSCALE_0_15,backgroundColor:qt.GREYSCALE_100_60,"&:active":{backgroundColor:qt.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${qt.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:qt.PURPLE,"&.Mui-focusVisible":{borderColor:qt.PURPLE,boxShadow:`0 0 0 3px ${zs(qt.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:qt.GREEN,"&.Mui-focusVisible":{borderColor:qt.GREEN,boxShadow:`0 0 0 3px ${zs(qt.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:qt.BLUE,"&.Mui-focusVisible":{borderColor:qt.BLUE,boxShadow:`0 0 0 3px ${zs(qt.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:qt.ORANGE,"&.Mui-focusVisible":{borderColor:qt.ORANGE,boxShadow:`0 0 0 3px ${zs(qt.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:qt.RED,"&.Mui-focusVisible":{borderColor:qt.RED,boxShadow:`0 0 0 3px ${zs(qt.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:qt.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:qt.PURPLE_PALE},"&:active":{backgroundColor:qt.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:qt.PURPLE_PALE,boxShadow:`0 0 0 3px ${zs(qt.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:qt.GREEN_PALE},"&:active":{backgroundColor:qt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${zs(qt.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:qt.BLUE_PALE},"&:active":{backgroundColor:qt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${zs(qt.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:qt.ORANGE_PALE},"&:active":{backgroundColor:qt.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:qt.ORANGE_PALE,boxShadow:`0 0 0 3px ${zs(qt.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:qt.RED_PALE},"&:active":{backgroundColor:qt.RED_DARK},"&.Mui-focusVisible":{borderColor:qt.RED_PALE,boxShadow:`0 0 0 3px ${zs(qt.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:qt.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:qt.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:_t,boxShadow:`inset 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:tr.jsx(rm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Ot,borderRadius:_t,color:qt.TEXT_PRIMARY,backgroundColor:qt.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:qt.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:qt.GREYSCALE_0_05,color:qt.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:qt.GREEN,borderColor:qt.GREEN},"&.MuiChip-outlinedInfo":{color:qt.BLUE,borderColor:qt.BLUE},"&.MuiChip-outlinedWarning":{color:qt.ORANGE,borderColor:qt.ORANGE},"&.MuiChip-outlinedError":{color:qt.RED,borderColor:qt.RED}},outlined:{border:`solid 1px ${qt.GREYSCALE_0_15}`,backgroundColor:qt.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:_t,boxShadow:"none",backgroundColor:qt.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:qt.GREEN,borderColor:qt.GREEN},outlinedSecondary:{color:qt.BLUE,borderColor:qt.BLUE},label:{fontFamily:Bt.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:tr.jsx(rm,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:tr.jsx(Zh,{"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:_t},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:_t,fontSize:Lt,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:qt.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${qt.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:qt.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:qt.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:qt.GREYSCALE_0_05}}},popupIndicator:{borderRadius:_t,border:`solid 1px ${qt.GREYSCALE_0_15}`,color:qt.GREYSCALE_0_60,marginRight:0,width:jt,height:jt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${qt.GREYSCALE_0_15}`},clearIndicator:{borderRadius:_t,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:qt.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Lt}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Ot,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:qt.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:qt.GREYSCALE_25,fontSize:Ot,fontFamily:Bt.FONT_FAMILY,fontWeight:Ht,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:qt.TEXT_PRIMARY},"&.Mui-error":{color:qt.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:qt.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Ft,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:qt.TEXT_SECONDARY,content:"'(required)'",fontWeight:Ft,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Lt,lineHeight:"16px",backgroundColor:qt.WHITE,borderRadius:_t,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.GREYSCALE_0_05}`,borderColor:qt.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${qt.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${qt.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.RED}`,boxShadow:`0px 0px 0px 1px ${qt.RED}, inset 0 2px 0 0 ${qt.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.GREYSCALE_0_10}`,borderColor:qt.GREYSCALE_0_10,backgroundColor:qt.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:qt.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:qt.GREYSCALE_0_15,borderRadius:_t,boxShadow:`inset 0 2px 0 0 ${qt.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>tr.jsx(Zh,{...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:qt.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:qt.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:qt.GREYSCALE_0_03},"&:active":{backgroundColor:qt.GREYSCALE_0_10},"&:focus":{backgroundColor:qt.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${qt.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:qt.GREYSCALE_0_30,"&:hover":{backgroundColor:qt.GREYSCALE_0_0,borderColor:qt.GREYSCALE_0_15},"& ~svg":{color:qt.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${qt.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:_t}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:qt.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Lt,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Ot,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Ot,fontWeight:Ht,color:qt.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Ht}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${qt.GREYSCALE_0_15}, 0px 0px 0px 1px ${qt.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:tr.jsx(om,{}),checkedIcon:tr.jsx(tm,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:qt.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${zs(qt.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${zs(qt.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:qt.GREYSCALE_0_20}},"&.Mui-disabled":{fill:qt.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:tr.jsx(am,{}),checkedIcon:tr.jsx(em,{}),indeterminateIcon:tr.jsx(nm,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:_t,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:qt.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:qt.GREYSCALE_0_55,color:qt.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:qt.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:qt.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:qt.GREYSCALE_0_55,"&:hover":{color:qt.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:qt.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:qt.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Lt,color:qt.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Ht},secondary:{fontSize:Ot,color:qt.GREYSCALE_45,fontWeight:Ft,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Lt,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Lt,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:qt.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Ot,borderBottom:`solid 1px ${qt.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Lt,color:qt.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:qt.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:qt.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:qt.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'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\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:qt.RED}}},"&.Mui-focusVisible":{backgroundColor:qt.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:qt.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:qt.GREEN,height:"24px","&.Mui-disabled":{color:qt.GREYSCALE_0_15}},rail:{backgroundColor:qt.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${qt.GREYSCALE_0_05}`,borderRadius:_t,boxShadow:`inset 0px 0px 0px 1px ${qt.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${qt.GREYSCALE_0_05}`,borderRadius:_t},thumb:{height:"16px",width:"16px",borderRadius:_t,backgroundColor:qt.WHITE,boxShadow:`0px 1px 2px 0px ${qt.GREYSCALE_0_15}, 0px 0px 0px 1px ${qt.GREYSCALE_0_05}`,"&:hover":{borderRadius:_t,boxShadow:`0 2px 4px 0 ${qt.GREYSCALE_0_30}, 0 0 0 1px ${qt.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${qt.GREYSCALE_0_15}, 0 0 0 1px ${qt.GREYSCALE_0_06}, 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${qt.GREYSCALE_0_15}, 0 0 0 1px ${qt.GREYSCALE_0_06}, 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:qt.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:qt.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:qt.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:qt.GREYSCALE_0_15},markLabel:{color:qt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:qt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:qt.WHITE,color:qt.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:qt.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:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${zs(qt.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${zs(qt.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:qt.GREYSCALE_0_15,borderRadius:_t},thumb:{height:"16px",width:"16px",borderRadius:_t,backgroundColor:qt.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:Lt,fontWeight:Ht,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${qt.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`,backgroundColor:qt.GREYSCALE_0_03,borderRadius:_t},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:qt.GREYSCALE_25,"&.Mui-selected":{color:qt.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Lt,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:_t,"&:hover":{backgroundColor:qt.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 ${qt.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${qt.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:_t,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:qt.GREYSCALE_0_05},"&:hover":{backgroundColor:qt.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${qt.GREYSCALE_85}`,borderRight:`1px solid ${qt.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Ht,backgroundColor:qt.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:qt.GREYSCALE_98,borderBottom:`1px solid ${qt.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${qt.GREYSCALE_85}`,borderTop:`1px solid ${qt.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:qt.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:qt.GREYSCALE_0_05,"&:hover":{backgroundColor:qt.GREYSCALE_0_03}},"&&:hover":{backgroundColor:qt.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>tr.jsx(im,{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 ${qt.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Lt,borderRadius:_t,padding:"7px 16px",border:`1px solid ${qt.GREYSCALE_0_15}`,backgroundColor:qt.GREYSCALE_100_60,color:qt.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:qt.GREYSCALE_0_10,border:`1px solid ${qt.GREYSCALE_0_30}`},"&:hover":{backgroundColor:qt.GREYSCALE_0_03,border:`1px solid ${qt.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:qt.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${qt.MISC_FOCUS_BORDER}`,border:`1px solid ${qt.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:qt.GREYSCALE_25,backgroundColor:qt.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:qt.GREYSCALE_0_10,border:`1px solid ${qt.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Ot,height:24,width:24,padding:7},sizeLarge:{fontSize:Nt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Lt,borderRadius:_t}}},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:qt.GREYSCALE_20},tooltip:{backgroundColor:qt.GREYSCALE_20,fontSize:Ot,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...sm}:{}}),um=(e,t)=>lm(t);var cm=()=>({mode:"light",primary:{ultraLight:qt.GREEN_ULTRA_LIGHT,light:qt.GREEN_PALE,main:qt.GREEN,dark:qt.GREEN_DARK,extraDark:qt.GREEN_EXTRA_DARK,contrastText:qt.WHITE},secondary:{ultraLight:qt.BLUE_ULTRA_LIGHT,light:qt.BLUE_PALE,main:qt.BLUE,dark:qt.BLUE_DARK,extraDark:qt.BLUE_EXTRA_DARK,contrastText:qt.WHITE},error:{ultraLight:qt.RED_ULTRA_LIGHT,light:qt.RED_PALE,main:qt.RED,dark:qt.RED_DARK,extraDark:qt.RED_EXTRA_DARK,contrastText:qt.WHITE},warning:{ultraLight:qt.ORANGE_ULTRA_LIGHT,light:qt.ORANGE_PALE,main:qt.ORANGE,dark:qt.ORANGE_DARK,extraDark:qt.ORANGE_EXTRA_DARK,contrastText:qt.WHITE},success:{ultraLight:qt.GREEN_ULTRA_LIGHT,light:qt.GREEN_PALE,main:qt.GREEN,dark:qt.GREEN_DARK,extraDark:qt.GREEN_EXTRA_DARK,contrastText:qt.WHITE},info:{ultraLight:qt.BLUE_ULTRA_LIGHT,light:qt.BLUE_PALE,main:qt.BLUE,dark:qt.BLUE_DARK,extraDark:qt.BLUE_EXTRA_DARK,contrastText:qt.WHITE},text:{primary:qt.TEXT_PRIMARY,secondary:qt.TEXT_SECONDARY,disabled:qt.GREYSCALE_0_30},action:{hover:qt.GREYSCALE_0_03,hoverOpacity:.03,selected:qt.GREYSCALE_0_05,selectedOpacity:.05,focus:qt.MISC_FOCUS_BORDER},amethyst:{ultraLight:qt.WHITE,main:qt.PURPLE,light:qt.PURPLE_PALE,dark:qt.PURPLE_DARK,extraDark:qt.GREYSCALE_0_0,contrastText:qt.WHITE},background:{paper:qt.WHITE,default:qt.GREYSCALE_95},divider:qt.GREYSCALE_0_15});var dm=e=>cm();var pm=(e,t=!1)=>({components:um(0,t),palette:dm(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:Lt,fontWeightLight:zt,fontWeightRegular:Ft,fontWeightMedium:Ht,fontWeightBold:$t,htmlFontSize:Lt,fontFamily:Bt.FONT_FAMILY,button:{fontWeight:Ht,fontSize:Lt,textTransform:"none"},body1:{fontSize:Nt,lineHeight:"24px"},body2:{fontSize:Lt,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:jt,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Nt,fontWeight:Ht,lineHeight:"16px"},h6:{fontSize:Lt,fontWeight:Ht,lineHeight:"16px"},caption:{color:qt.TEXT_SECONDARY},subtitle1:{fontSize:Lt,color:qt.TEXT_SECONDARY},subtitle2:{fontSize:Ot,color:qt.TEXT_SECONDARY}},shape:{borderRadius:_t}});const fm={...Tt};var hm={},mm={exports:{}},gm={exports:{}};!function(e){function t(r){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(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(gm);var bm=gm.exports;!function(e){var t=bm.default;function r(n,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=r=function(e,r){if(!r&&e&&e.__esModule)return e;var n,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(n=r?a:i){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?n(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(n,o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(mm);var vm=mm.exports,ym={};function xm(e,t){return function(){return null}}function Sm(e){return e&&"object"===Dl(e)&&e.constructor===Object}function wm(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?zr({},e):e;return Sm(e)&&Sm(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Sm(t[o])&&o in e?n[o]=wm(e[o],t[o],r):n[o]=t[o])})),n}var Cm=(Ti.element,function(){return null});Cm.isRequired=(Ti.element.isRequired,function(){return null});var Em=function(){return null};var Rm={exports:{}},Pm={},Am=60103,Im=60106,km=60107,Mm=60108,Dm=60114,Tm=60109,qm=60110,Om=60112,Lm=60113,Nm=60120,jm=60115,_m=60116,zm=60121,Fm=60122,Hm=60117,$m=60129,Bm=60131;if("function"==typeof Symbol&&Symbol.for){var Wm=Symbol.for;Am=Wm("react.element"),Im=Wm("react.portal"),km=Wm("react.fragment"),Mm=Wm("react.strict_mode"),Dm=Wm("react.profiler"),Tm=Wm("react.provider"),qm=Wm("react.context"),Om=Wm("react.forward_ref"),Lm=Wm("react.suspense"),Nm=Wm("react.suspense_list"),jm=Wm("react.memo"),_m=Wm("react.lazy"),zm=Wm("react.block"),Fm=Wm("react.server.block"),Hm=Wm("react.fundamental"),$m=Wm("react.debug_trace_mode"),Bm=Wm("react.legacy_hidden")}function Vm(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Am:switch(e=e.type){case km:case Dm:case Mm:case Lm:case Nm:return e;default:switch(e=e&&e.$$typeof){case qm:case Om:case _m:case jm:case Tm:return e;default:return t}}case Im:return t}}}var Um=Tm,Gm=Am,Ym=Om,Km=km,Xm=_m,Jm=jm,Zm=Im,Qm=Dm,eg=Mm,tg=Lm;Pm.ContextConsumer=qm,Pm.ContextProvider=Um,Pm.Element=Gm,Pm.ForwardRef=Ym,Pm.Fragment=Km,Pm.Lazy=Xm,Pm.Memo=Jm,Pm.Portal=Zm,Pm.Profiler=Qm,Pm.StrictMode=eg,Pm.Suspense=tg,Pm.isAsyncMode=function(){return!1},Pm.isConcurrentMode=function(){return!1},Pm.isContextConsumer=function(e){return Vm(e)===qm},Pm.isContextProvider=function(e){return Vm(e)===Tm},Pm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Am},Pm.isForwardRef=function(e){return Vm(e)===Om},Pm.isFragment=function(e){return Vm(e)===km},Pm.isLazy=function(e){return Vm(e)===_m},Pm.isMemo=function(e){return Vm(e)===jm},Pm.isPortal=function(e){return Vm(e)===Im},Pm.isProfiler=function(e){return Vm(e)===Dm},Pm.isStrictMode=function(e){return Vm(e)===Mm},Pm.isSuspense=function(e){return Vm(e)===Lm},Pm.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===km||e===Dm||e===$m||e===Mm||e===Lm||e===Nm||e===Bm||"object"==typeof e&&null!==e&&(e.$$typeof===_m||e.$$typeof===jm||e.$$typeof===Tm||e.$$typeof===qm||e.$$typeof===Om||e.$$typeof===Hm||e.$$typeof===zm||e[0]===Fm)},Pm.typeOf=Vm,Rm.exports=Pm;var rg=Rm.exports,ng=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function og(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(ng);return t&&t[1]||""}(e)||t}function ig(e,t,r){var n=og(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var ag="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),sg=Ti.oneOfType([Ti.func,Ti.object]),lg=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:xm,deepmerge:wm,elementAcceptingRef:Cm,elementTypeAcceptingRef:Em,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return og(e,"Component");if("object"===Dl(e))switch(e.$$typeof){case rg.ForwardRef:return ig(e,e.render,"ForwardRef");case rg.Memo:return ig(e,e.type,"memo");default:return}}},ponyfillGlobal:ag,refType:sg}),ug=Vt(lg);Object.defineProperty(ym,"__esModule",{value:!0}),ym.hexToRgb=pg,ym.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=hg(e),r=t.values;return"#".concat(r.map((function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)})).join(""))},ym.hslToRgb=fg,ym.decomposeColor=hg,ym.recomposeColor=mg,ym.getContrastRatio=function(e,t){var r=gg(e),n=gg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},ym.getLuminance=gg,ym.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return gg(e)>.5?vg(e,t):yg(e,t)},ym.fade=function(e,t){return bg(e,t)},ym.alpha=bg,ym.darken=vg,ym.lighten=yg;var cg=ug;function dg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function pg(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function fg(e){var t=(e=hg(e)).values,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),mg({type:s,values:l})}function hg(e){if(e.type)return e;if("#"===e.charAt(0))return hg(pg(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,cg.formatMuiErrorMessage)(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function mg(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function gg(e){var t="hsl"===(e=hg(e)).type?hg(fg(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 bg(e,t){return e=hg(e),t=dg(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,mg(e)}function vg(e,t){if(e=hg(e),t=dg(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return mg(e)}function yg(e,t){if(e=hg(e),t=dg(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return mg(e)}var xg,Sg,wg,Cg={},Eg={exports:{}},Rg={exports:{}},Pg={exports:{}};function Ag(){return xg||(xg=1,function(e){var t=bm.default;e.exports=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(Pg)),Pg.exports}function Ig(){return Sg||(Sg=1,function(e){var t=bm.default,r=Ag();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Rg)),Rg.exports}function kg(){return wg||(wg=1,function(e){var t=Ig();e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(Eg)),Eg.exports}var Mg,Dg={exports:{}};function Tg(){return Mg||(Mg=1,function(e){var t=Tu();e.exports=function(e,r){if(null==e)return{};var n,o,i=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(Dg)),Dg.exports}var qg,Og={};var Lg,Ng={};var jg,_g={},zg={};var Fg,Hg={};var $g,Bg={};var Wg,Vg={};var Ug,Gg={};var Yg,Kg={};var Xg,Jg={};var Zg,Qg,eb={};function tb(){if(Qg)return _g;Qg=1;var e=jl;Object.defineProperty(_g,"__esModule",{value:!0}),_g.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,y=void 0===v?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:v,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,E=e.info,R=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,P=e.success,A=void 0===P?{light:d.default[300],main:d.default[500],dark:d.default[700]}:P,I=e.type,k=void 0===I?"light":I,M=e.contrastThreshold,D=void 0===M?3:M,T=e.tonalOffset,q=void 0===T?.2:T,O=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function L(e){return(0,p.getContrastRatio)(e,h.text.primary)>=D?h.text.primary:f.text.primary}var N=function(e){var r=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[r]&&(e.main=e[r]),!e.main)throw new Error((0,n.formatMuiErrorMessage)(4,r));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,q),m(e,"dark",i,q),e.contrastText||(e.contrastText=L(e.main)),e},j={dark:h,light:f},_=(0,n.deepmerge)((0,t.default)({common:o.default,type:k,primary:N(b),secondary:N(y,"A400","A200","A700"),error:N(S),warning:N(C),info:N(R),success:N(A),grey:i.default,contrastThreshold:D,getContrastText:L,augmentColor:N,tonalOffset:q},j[k]),O);return _},_g.dark=_g.light=void 0;var t=e(ku()),r=e(Tg()),n=ug,o=e(function(){if(jg)return zg;jg=1,Object.defineProperty(zg,"__esModule",{value:!0}),zg.default=void 0;var e={black:"#000",white:"#fff"};return zg.default=e,zg}()),i=e(function(){if(Fg)return Hg;Fg=1,Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.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 Hg.default=e,Hg}()),a=e(function(){if($g)return Bg;$g=1,Object.defineProperty(Bg,"__esModule",{value:!0}),Bg.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 Bg.default=e,Bg}()),s=e(function(){if(Wg)return Vg;Wg=1,Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.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 Vg.default=e,Vg}()),l=e(function(){if(Ug)return Gg;Ug=1,Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.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 Gg.default=e,Gg}()),u=e(function(){if(Yg)return Kg;Yg=1,Object.defineProperty(Kg,"__esModule",{value:!0}),Kg.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 Kg.default=e,Kg}()),c=e(function(){if(Xg)return Jg;Xg=1,Object.defineProperty(Jg,"__esModule",{value:!0}),Jg.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 Jg.default=e,Jg}()),d=e(function(){if(Zg)return eb;Zg=1,Object.defineProperty(eb,"__esModule",{value:!0}),eb.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 eb.default=e,eb}()),p=ym,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}};_g.light=f;var h={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 m(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return _g.dark=h,_g}var rb,nb={};var ob,ib={};var ab,sb={};var lb={};function ub(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function cb(e,t){if(e){if("string"==typeof e)return ub(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ub(e,t):void 0}}function db(e){return function(e){if(Array.isArray(e))return ub(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||cb(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pb(e,t){return t?wm(e,t,{clone:!1}):e}var fb={xs:0,sm:600,md:960,lg:1280,xl:1920},hb={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(fb[e],"px)")}};function mb(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||hb;return t.reduce((function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===Dl(t)){var o=e.theme.breakpoints||hb;return Object.keys(t).reduce((function(e,n){return e[o.up(n)]=r(t[n]),e}),{})}return r(t)}function gb(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function bb(e){var t=e.prop,r=e.cssProperty,n=void 0===r?e.prop:r,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var r=e[t],a=gb(e.theme,o)||{};return mb(e,r,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=gb(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=Tl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,t)}))};return a.propTypes={},a.filterProps=[t],a}function vb(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=function(e){return t.reduce((function(t,r){var n=r(e);return n?pb(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function yb(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var xb=bb({prop:"border",themeKey:"borders",transform:yb}),Sb=bb({prop:"borderTop",themeKey:"borders",transform:yb}),wb=bb({prop:"borderRight",themeKey:"borders",transform:yb}),Cb=bb({prop:"borderBottom",themeKey:"borders",transform:yb}),Eb=bb({prop:"borderLeft",themeKey:"borders",transform:yb}),Rb=bb({prop:"borderColor",themeKey:"palette"}),Pb=bb({prop:"borderRadius",themeKey:"shape"}),Ab=vb(xb,Sb,wb,Cb,Eb,Rb,Pb);function Ib(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function kb(e){var t=function(t){var r=e(t);return t.css?zr({},pb(r,e(zr({theme:t.theme},t.css))),Ib(t.css,[e.filterProps])):t.sx?zr({},pb(r,e(zr({theme:t.theme},t.sx))),Ib(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(db(e.filterProps)),t}var Mb=vb(bb({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),bb({prop:"display"}),bb({prop:"overflow"}),bb({prop:"textOverflow"}),bb({prop:"visibility"}),bb({prop:"whiteSpace"})),Db=bb({prop:"flexBasis"}),Tb=bb({prop:"flexDirection"}),qb=bb({prop:"flexWrap"}),Ob=bb({prop:"justifyContent"}),Lb=bb({prop:"alignItems"}),Nb=bb({prop:"alignContent"}),jb=bb({prop:"order"}),_b=bb({prop:"flex"}),zb=bb({prop:"flexGrow"}),Fb=bb({prop:"flexShrink"}),Hb=bb({prop:"alignSelf"}),$b=bb({prop:"justifyItems"}),Bb=bb({prop:"justifySelf"}),Wb=vb(Db,Tb,qb,Ob,Lb,Nb,jb,_b,zb,Fb,Hb,$b,Bb),Vb=bb({prop:"gridGap"}),Ub=bb({prop:"gridColumnGap"}),Gb=bb({prop:"gridRowGap"}),Yb=bb({prop:"gridColumn"}),Kb=bb({prop:"gridRow"}),Xb=bb({prop:"gridAutoFlow"}),Jb=bb({prop:"gridAutoColumns"}),Zb=bb({prop:"gridAutoRows"}),Qb=bb({prop:"gridTemplateColumns"}),ev=bb({prop:"gridTemplateRows"}),tv=bb({prop:"gridTemplateAreas"}),rv=bb({prop:"gridArea"}),nv=vb(Vb,Ub,Gb,Yb,Kb,Xb,Jb,Zb,Qb,ev,tv,rv),ov=bb({prop:"color",themeKey:"palette"}),iv=bb({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),av=vb(ov,iv),sv=bb({prop:"position"}),lv=bb({prop:"zIndex",themeKey:"zIndex"}),uv=bb({prop:"top"}),cv=bb({prop:"right"}),dv=bb({prop:"bottom"}),pv=bb({prop:"left"}),fv=vb(sv,lv,uv,cv,dv,pv),hv=bb({prop:"boxShadow",themeKey:"shadows"});function mv(e){return e<=1?"".concat(100*e,"%"):e}var gv=bb({prop:"width",transform:mv}),bv=bb({prop:"maxWidth",transform:mv}),vv=bb({prop:"minWidth",transform:mv}),yv=bb({prop:"height",transform:mv}),xv=bb({prop:"maxHeight",transform:mv}),Sv=bb({prop:"minHeight",transform:mv}),wv=bb({prop:"size",cssProperty:"width",transform:mv}),Cv=bb({prop:"size",cssProperty:"height",transform:mv}),Ev=bb({prop:"boxSizing"}),Rv=vb(gv,bv,vv,yv,xv,Sv,Ev);function Pv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||cb(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.")}()}var Av={m:"margin",p:"padding"},Iv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},kv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Mv=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){if(e.length>2){if(!kv[e])return[e];e=kv[e]}var t=Pv(e.split(""),2),r=t[0],n=t[1],o=Av[r],i=Iv[n]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),Dv=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function Tv(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function qv(e,t){return function(r){return e.reduce((function(e,n){return e[n]=function(e,t){if("string"==typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:"-".concat(r)}(t,r),e}),{})}}function Ov(e){var t=Tv(e.theme);return Object.keys(e).map((function(r){if(-1===Dv.indexOf(r))return null;var n=qv(Mv(r),t),o=e[r];return mb(e,o,n)})).reduce(pb,{})}Ov.propTypes={},Ov.filterProps=Dv;var Lv,Nv=bb({prop:"fontFamily",themeKey:"typography"}),jv=bb({prop:"fontSize",themeKey:"typography"}),_v=bb({prop:"fontStyle",themeKey:"typography"}),zv=bb({prop:"fontWeight",themeKey:"typography"}),Fv=bb({prop:"letterSpacing"}),Hv=bb({prop:"lineHeight"}),$v=bb({prop:"textAlign"}),Bv=vb(Nv,jv,_v,zv,Fv,Hv,$v),Wv=Object.freeze({__proto__:null,alignContent:Nb,alignItems:Lb,alignSelf:Hb,bgcolor:iv,border:xb,borderBottom:Cb,borderColor:Rb,borderLeft:Eb,borderRadius:Pb,borderRight:wb,borderTop:Sb,borders:Ab,bottom:dv,boxSizing:Ev,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||hb,o=n.keys.reduce((function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(zr({theme:t.theme},t[o]))),r}),null);return pb(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(db(e.filterProps)),t},color:ov,compose:vb,createUnarySpacing:Tv,css:function(e){return kb(e)},display:Mb,flex:_b,flexBasis:Db,flexDirection:Tb,flexGrow:zb,flexShrink:Fb,flexWrap:qb,flexbox:Wb,fontFamily:Nv,fontSize:jv,fontStyle:_v,fontWeight:zv,grid:nv,gridArea:rv,gridAutoColumns:Jb,gridAutoFlow:Xb,gridAutoRows:Zb,gridColumn:Yb,gridColumnGap:Ub,gridGap:Vb,gridRow:Kb,gridRowGap:Gb,gridTemplateAreas:tv,gridTemplateColumns:Qb,gridTemplateRows:ev,height:yv,justifyContent:Ob,justifyItems:$b,justifySelf:Bb,left:pv,letterSpacing:Fv,lineHeight:Hv,maxHeight:xv,maxWidth:bv,minHeight:Sv,minWidth:vv,order:jb,palette:av,position:sv,positions:fv,right:cv,shadows:hv,sizeHeight:Cv,sizeWidth:wv,sizing:Rv,spacing:Ov,style:bb,styleFunctionSx:kb,textAlign:$v,top:uv,typography:Bv,width:gv,zIndex:lv}),Vv=Vt(Wv);var Uv,Gv={};function Yv(){if(Uv)return Gv;Uv=1;var e=jl;Object.defineProperty(Gv,"__esModule",{value:!0}),Gv.default=Gv.duration=Gv.easing=void 0;var t=e(Tg()),r={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)"};Gv.easing=r;var n={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}Gv.duration=n;var i={easing:r,duration:n,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,s=void 0===a?n.standard:a,l=i.easing,u=void 0===l?r.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))})).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 Gv.default=i,Gv}var Kv,Xv,Jv={};function Zv(){if(Xv)return Cg;Xv=1;var e=jl;Object.defineProperty(Cg,"__esModule",{value:!0}),Cg.createMuiTheme=function(){return p.apply(void 0,arguments)},Cg.default=void 0,e(kg());var t=e(Tg()),r=ug,n=e(function(){if(qg)return Og;qg=1;var e=jl;Object.defineProperty(Og,"__esModule",{value:!0}),Og.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,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,r.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=n.indexOf(t);return r===n.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof i[n[r+1]]?i[n[r+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:n,values:i,up:d,down:function(e){var t=n.indexOf(e)+1,r=i[n[t]];return t===n.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},c)},Og.keys=void 0;var t=e(ku()),r=e(Tg()),n=["xs","sm","md","lg","xl"];return Og.keys=n,Og}()),o=e(function(){if(Lg)return Ng;Lg=1;var e=jl;Object.defineProperty(Ng,"__esModule",{value:!0}),Ng.default=function(e,n,o){var i;return(0,r.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,r.default)({paddingLeft:n(2),paddingRight:n(2)},o,(0,t.default)({},e.up("sm"),(0,r.default)({paddingLeft:n(3),paddingRight:n(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(kg()),r=e(ku());return Ng}()),i=e(tb()),a=e(function(){if(rb)return nb;rb=1;var e=jl;Object.defineProperty(nb,"__esModule",{value:!0}),nb.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,b=void 0===g?400:g,v=u.fontWeightMedium,y=void 0===v?500:v,x=u.fontWeightBold,S=void 0===x?700:x,w=u.htmlFontSize,C=void 0===w?16:w,E=u.allVariants,R=u.pxToRem,P=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),A=f/14,I=R||function(e){return"".concat(e/C*A,"rem")},k=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:I(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,E)},M={h1:k(m,96,1.167,-1.5),h2:k(m,60,1.2,-.5),h3:k(b,48,1.167,0),h4:k(b,34,1.235,.25),h5:k(b,24,1.334,0),h6:k(y,20,1.6,.15),subtitle1:k(b,16,1.75,.15),subtitle2:k(y,14,1.57,.1),body1:k(b,16,1.5,.15),body2:k(b,14,1.43,.15),button:k(y,14,1.75,.4,a),caption:k(b,12,1.66,.4),overline:k(b,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:I,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},M),P,{clone:!1})};var t=e(ku()),r=e(Tg()),n=ug;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return nb}()),s=e(function(){if(ob)return ib;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(",")}ob=1,Object.defineProperty(ib,"__esModule",{value:!0}),ib.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 ib.default=t,ib}()),l=e(function(){if(ab)return sb;ab=1,Object.defineProperty(sb,"__esModule",{value:!0}),sb.default=void 0;var e={borderRadius:4};return sb.default=e,sb}()),u=e(function(){if(Lv)return lb;Lv=1,Object.defineProperty(lb,"__esModule",{value:!0}),lb.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?r(1):1===t.length?r(t[0]):t.map((function(e){if("string"==typeof e)return e;var t=r(e);return"number"==typeof t?"".concat(t,"px"):t})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n};var e=Vv;return lb}()),c=e(Yv()),d=e(function(){if(Kv)return Jv;Kv=1,Object.defineProperty(Jv,"__esModule",{value:!0}),Jv.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return Jv.default=e,Jv}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,b=void 0===g?{}:g,v=e.spacing,y=e.typography,x=void 0===y?{}:y,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(b),C=(0,n.default)(f),E=(0,u.default)(v),R=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:c.default,zIndex:d.default},S),P=arguments.length,A=new Array(P>1?P-1:0),I=1;I<P;I++)A[I-1]=arguments[I];return R=A.reduce((function(e,t){return(0,r.deepmerge)(e,t)}),R)}var f=p;return Cg.default=f,Cg}var Qv,ey={};var ty={},ry="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",ny=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function oy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,r=void 0!==t&&t,n=e.productionPrefix,o=void 0===n?"jss":n,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var n=t.options.name;if(n&&0===n.indexOf("Mui")&&!t.options.link&&!r){if(-1!==ny.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[ry]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function iy(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var o,i=t.props[r];for(o in i)void 0===n[o]&&(n[o]=i[o]);return n}var ay="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},sy="object"===("undefined"==typeof window?"undefined":ay(window))&&"object"===("undefined"==typeof document?"undefined":ay(document))&&9===document.nodeType;function ly(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Tl(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var uy={}.constructor;function cy(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(cy);if(e.constructor!==uy)return e;var t={};for(var r in e)t[r]=cy(e[r]);return t}function dy(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=cy(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var py=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},fy=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=py(e[r]," ");else t=py(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function hy(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function my(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function gy(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var o=r.indent,i=void 0===o?0:o,a=t.fallbacks;!1===r.format&&(i=-1/0);var s=hy(r),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var f=d[p];null!=f&&(n&&(n+=l),n+=my(p+":"+u+fy(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=my(h+":"+u+fy(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=my(g+":"+u+fy(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),my(""+e+u+"{"+n,--i)+my("}",i)):n}var by=/([[\].#*$><+~=|^:(),"'`\s])/g,vy="undefined"!=typeof CSS&&CSS.escape,yy=function(e){return vy?vy(e):e.replace(by,"\\$1")},xy=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,o=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var o=t;r&&!1===r.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!n)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Sy=function(e){function t(t,r,n){var o;o=e.call(this,t,r,n)||this;var i=n.selector,a=n.scoped,s=n.sheet,l=n.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Pc(Pc(o)),s),o.selectorText="."+yy(o.id)),o}gc(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=fy(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?zr({},e,{allowEmpty:!0}):e;return gy(this.selectorText,this.style,r)},ly(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(xy),wy={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Sy(e,t,r)}},Cy={indent:1,children:!0},Ey=/@([\w-]+)/,Ry=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(Ey);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new Ky(zr({},r,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=Cy);var t=hy(e).linebreak;if(null==e.indent&&(e.indent=Cy.indent),null==e.children&&(e.children=Cy.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),Py=/@container|@media|@supports\s+/,Ay={onCreateRule:function(e,t,r){return Py.test(e)?new Ry(e,t,r):null}},Iy={indent:1,children:!0},ky=/@keyframes\s+([\w-]+)/,My=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(ky);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var o=r.scoped,i=r.sheet,a=r.generateId;for(var s in this.id=!1===o?this.name:yy(a(this,i)),this.rules=new Ky(zr({},r,{parent:this})),t)this.rules.add(s,t[s],zr({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Iy);var t=hy(e).linebreak;if(null==e.indent&&(e.indent=Iy.indent),null==e.children&&(e.children=Iy.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),Dy=/@keyframes\s+/,Ty=/\$([\w-]+)/g,qy=function(e,t){return"string"==typeof e?e.replace(Ty,(function(e,r){return r in t?t[r]:e})):e},Oy=function(e,t,r){var n=e[t],o=qy(n,r);o!==n&&(e[t]=o)},Ly={onCreateRule:function(e,t,r){return"string"==typeof e&&Dy.test(e)?new My(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Oy(e,"animation-name",r.keyframes),"animation"in e&&Oy(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return qy(e,n.keyframes);default:return e}}},Ny=function(e){function t(){return e.apply(this,arguments)||this}return gc(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?zr({},e,{allowEmpty:!0}):e;return gy(this.key,this.style,r)},t}(xy),jy={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Ny(e,t,r):null}},_y=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=hy(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=gy(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return gy(this.at,this.style,e)},e}(),zy=/@font-face/,Fy={onCreateRule:function(e,t,r){return zy.test(e)?new _y(e,t,r):null}},Hy=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return gy(this.key,this.style,e)},e}(),$y={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Hy(e,t,r):null}},By=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Wy={"@charset":!0,"@import":!0,"@namespace":!0},Vy={onCreateRule:function(e,t,r){return e in Wy?new By(e,t,r):null}},Uy=[wy,Ay,Ly,jy,Fy,$y,Vy],Gy={process:!0},Yy={force:!0,process:!0},Ky=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,o=n.parent,i=n.sheet,a=n.jss,s=n.Renderer,l=n.generateId,u=n.scoped,c=zr({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+yy(this.classes[d]));var p=dy(d,t,c);if(!p)return null;this.register(p);var f=void 0===c.index?this.index.length:c.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,r){var n=this.get(e),o=this.index.indexOf(n);n&&this.remove(n);var i=r;return-1!==o&&(i=zr({},r,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Sy?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof My&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Sy?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof My&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=Gy);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var s=t.style;if(i.onUpdate(r,t,a,n),n.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,Yy)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,Yy)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=hy(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||n)&&(t&&(t+=o),t+=a)}return t},e}(),Xy=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=zr({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Ky(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var o=this.rules.add(e,t,r);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(n?n.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var o=this.rules.replace(e,t,r);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?n.renderable&&this.renderer.replaceRule(n.renderable,o):this.renderer.deleteRule(n)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var o=this.addRule(n,e[n],t);o&&r.push(o)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),Jy=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var o=this.registry.onCreateRule[n](e,t,r);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,o=0;o<this.registry.onChangeValue.length;o++)n=this.registry.onChangeValue[o](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Zy=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=Fr(t,["attached"]),o=hy(n).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=r&&s.attached!==r||(i&&(i+=o),i+=s.toString(n))}return i},ly(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Qy=new Zy,ex="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),tx="2f1acc6c3a606b082e5eef5e54414ffb";null==ex[tx]&&(ex[tx]=0);var rx=ex[tx]++,nx=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var o="",i="";return n&&(n.options.classNamePrefix&&(i=n.options.classNamePrefix),null!=n.options.jss.id&&(o=String(n.options.jss.id))),e.minify?""+(i||"c")+rx+o+t:i+r.key+"-"+rx+(o?"-"+o:"")+"-"+t}},ox=function(e){var t;return function(){return t||(t=e()),t}},ix=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},ax=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=fy(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var o=n?n.indexOf("!important"):-1,i=o>-1?n.substr(0,o-1):n;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},sx=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},lx=function(e,t){return e.selectorText=t,e.selectorText===t},ux=ox((function(){return document.querySelector("head")}));function cx(e){var t=Qy.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var o=function(e){for(var t=ux(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var dx=ox((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),px=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},fx=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},hx=function(){function e(e){this.getPropertyValue=ix,this.setProperty=ax,this.removeProperty=sx,this.setSelector=lx,this.hasInsertedRules=!1,this.cssRules=[],e&&Qy.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var i=dx();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=cx(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else ux().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,o=r;if("conditional"===e.type||"keyframes"===e.type){var i=fx(r,t);if(!1===(o=px(r,n.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(n.rules,o),o}var a=e.toString();if(!a)return!1;var s=fx(r,t),l=px(r,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof Xy&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),mx=0,gx=function(){function e(e){this.id=mx++,this.version="10.10.0",this.plugins=new Jy,this.options={id:{minify:!1},createGenerateId:nx,Renderer:sy?hx:null,plugins:[]},this.generateId=nx({minify:!1});for(var t=0;t<Uy.length;t++)this.plugins.use(Uy[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=zr({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===Qy.index?0:Qy.index+1);var n=new Xy(e,zr({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),Qy.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=zr({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var o=dy(e,t,n);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){e.plugins.use(t)})),this},e}(),bx=function(e){return new gx(e)},vx="object"==typeof CSS&&null!=CSS&&"number"in CSS;function yx(e){var t=null;for(var r in e){var n=e[r],o=typeof n;if("function"===o)t||(t={}),t[r]=n;else if("object"===o&&null!==n&&!Array.isArray(n)){var i=yx(n);i&&(t||(t={}),t[r]=i)}}return t}
|
|
90
|
+
`),_c.rippleVisible,Vc,550,(({theme:e})=>e.transitions.easing.easeInOut),_c.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),_c.child,_c.childLeaving,Uc,550,(({theme:e})=>e.transitions.easing.easeInOut),_c.childPulsate,Gc,(({theme:e})=>e.transitions.easing.easeInOut)),Xc=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Fr(r,zc),[s,l]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=y.useRef(!1),p=el(),f=y.useRef(null),h=y.useRef(null),m=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,tr.jsx(Kc,{classes:{ripple:as(o.ripple,_c.ripple),rippleVisible:as(o.rippleVisible,_c.rippleVisible),ripplePulsate:as(o.ripplePulsate,_c.ripplePulsate),child:as(o.child,_c.child),childLeaving:as(o.childLeaving,_c.childLeaving),childPulsate:as(o.childPulsate,_c.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,m,p]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,l((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),tr.jsx(Yc,zr({className:as(_c.root,o.root,i),ref:h},a,{children:tr.jsx(Dc,{component:null,exit:!0,children:s})}))}));function Jc(e){return us("MuiButtonBase",e)}const Zc=cs("MuiButtonBase",["root","disabled","focusVisible"]),Qc=["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"],ed=ac("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"},[`&.${Zc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),td=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:R,onTouchMove:P,onTouchStart:A,tabIndex:I=0,TouchRippleProps:k,touchRippleRef:M,type:D}=r,T=Fr(r,Qc),q=y.useRef(null),O=y.useRef(null),L=Xs(O,M),{isFocusVisibleRef:N,onFocus:j,onBlur:_,ref:z}=ul(),[F,H]=y.useState(!1);l&&F&&H(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),q.current.focus()}})),[]);const[$,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const W=$&&!u&&!l;function V(e,t,r=c){return Ks((n=>{t&&t(n);return!r&&O.current&&O.current[e](n),!0}))}y.useEffect((()=>{F&&d&&!u&&$&&O.current.pulsate()}),[u,d,F,$]);const U=V("start",w),G=V("stop",m),Y=V("stop",g),K=V("stop",E),X=V("stop",(e=>{F&&e.preventDefault(),C&&C(e)})),J=V("start",A),Z=V("stop",R),Q=V("stop",P),ee=V("stop",(e=>{_(e),!1===N.current&&H(!1),f&&f(e)}),!1),te=Ks((e=>{q.current||(q.current=e.currentTarget),j(e),!0===N.current&&(H(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=q.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=y.useRef(!1),oe=Ks((e=>{d&&!ne.current&&F&&O.current&&" "===e.key&&(ne.current=!0,O.current.stop(e,(()=>{O.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))})),ie=Ks((e=>{d&&" "===e.key&&O.current&&F&&!e.defaultPrevented&&(ne.current=!1,O.current.stop(e,(()=>{O.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(T.href||T.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===D?"button":D,se.disabled=l):(T.href||T.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=Xs(t,z,q),ue=zr({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=dl({root:["root",t&&"disabled",r&&"focusVisible"]},Jc,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return tr.jsxs(ed,zr({as:ae,className:as(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:I,type:D},se,T,{children:[i,W?tr.jsx(Xc,zr({ref:L,center:o},k)):null]}))}));function rd(e){return us("MuiIconButton",e)}const nd=cs("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),od=["edge","children","className","color","disabled","disableFocusRipple","size"],id=ac(td,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${Ji(r.color)}`],r.edge&&t[`edge${Ji(r.edge)}`],t[`size${Ji(r.size)}`]]}})((({theme:e,ownerState:t})=>zr({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Hl(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return zr({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&zr({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":zr({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Hl(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${nd.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),ad=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium"}=r,c=Fr(r,od),d=zr({},r,{edge:n,color:a,disabled:s,disableFocusRipple:l,size:u}),p=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e;return dl({root:["root",r&&"disabled","default"!==n&&`color${Ji(n)}`,o&&`edge${Ji(o)}`,`size${Ji(i)}`]},rd,t)})(d);return tr.jsx(id,zr({className:as(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))}));function sd(e){return us("MuiTypography",e)}cs("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ld=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ud=ac("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${Ji(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>zr({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}))),cd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},dd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},pd=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiTypography"}),n=(e=>dd[e]||e)(r.color),o=ts(zr({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=cd}=o,f=Fr(o,ld),h=zr({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||cd[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return dl({root:["root",i,"inherit"!==e.align&&`align${Ji(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},sd,a)})(h);return tr.jsx(ud,zr({as:m,ref:t,ownerState:h,className:as(g.root,a)},f))}));const fd=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),s=Xs(y.isValidElement(r)?bl(r):null,t);if(Ls((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),Ls((()=>{if(i&&!o)return Ws(t,i),()=>{Ws(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:s};return y.cloneElement(r,e)}return tr.jsx(y.Fragment,{children:r})}return tr.jsx(y.Fragment,{children:i?F.createPortal(r,i):i})})),hd=["onChange","maxRows","minRows","style","value"];function md(e){return parseInt(e,10)||0}const gd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function bd(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const vd=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Fr(e,hd),{current:l}=y.useRef(null!=a),u=y.useRef(null),c=Xs(t,u),d=y.useRef(null),p=y.useRef(null),f=y.useCallback((()=>{const t=u.current,r=p.current;if(!t||!r)return;const i=Bs(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=i.boxSizing,s=md(i.paddingBottom)+md(i.paddingTop),l=md(i.borderBottomWidth)+md(i.borderTopWidth),c=r.scrollHeight;r.value="x";const d=r.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*d,f)),n&&(f=Math.min(Number(n)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-c)<=1}}),[n,o,e.placeholder]),h=Ks((()=>{const e=u.current,t=f();if(!e||!t||bd(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r})),m=y.useCallback((()=>{const e=u.current,t=f();if(!e||!t||bd(t))return;const r=t.outerHeightStyle;d.current!==r&&(d.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""}),[f]),g=y.useRef(-1);Ls((()=>{const e=Hs(m),t=null==u?void 0:u.current;if(!t)return;const r=Bs(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver((()=>{h()&&(n.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame((()=>{n.observe(t)})))})),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),r.removeEventListener("resize",e),n&&n.disconnect()}}),[f,m,h]),Ls((()=>{m()}));return tr.jsxs(y.Fragment,{children:[tr.jsx("textarea",zr({value:a,onChange:e=>{l||m(),r&&r(e)},ref:c,rows:o,style:i},s)),tr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:zr({},gd,i,{paddingTop:0,paddingBottom:0})})]})}));function yd({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}const xd=y.createContext(void 0);function Sd(){return y.useContext(xd)}function wd(e){return tr.jsx(Qa,zr({},e,{defaultTheme:Eu,themeId:_r}))}function Cd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Ed(e,t=!1){return e&&(Cd(e.value)&&""!==e.value||t&&Cd(e.defaultValue)&&""!==e.defaultValue)}function Rd(e){return us("MuiInputBase",e)}const Pd=cs("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ad=["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"],Id=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Ji(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},kd=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Md=ac("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Id})((({theme:e,ownerState:t})=>zr({},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",[`&.${Pd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&zr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Dd=ac("input",{name:"MuiInputBase",slot:"Input",overridesResolver:kd})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=zr({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.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:r?.42:.5};return zr({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":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Pd.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},[`&.${Pd.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"})})),Td=tr.jsx(wd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),qd=y.forwardRef((function(e,t){var r;const n=cc({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:x,minRows:S,multiline:w=!1,name:C,onBlur:E,onChange:R,onClick:P,onFocus:A,onKeyDown:I,onKeyUp:k,placeholder:M,readOnly:D,renderSuffix:T,rows:q,slotProps:O={},slots:L={},startAdornment:N,type:j="text",value:_}=n,z=Fr(n,Ad),F=null!=b.value?b.value:_,{current:H}=y.useRef(null!=F),$=y.useRef(),B=y.useCallback((e=>{}),[]),W=Xs($,v,b.ref,B),[V,U]=y.useState(!1),G=Sd(),Y=yd({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=G?G.focused:V,y.useEffect((()=>{!G&&d&&V&&(U(!1),E&&E())}),[G,d,V,E]);const K=G&&G.onFilled,X=G&&G.onEmpty,J=y.useCallback((e=>{Ed(e)?K&&K():X&&X()}),[K,X]);Ls((()=>{H&&J({value:F})}),[F,J,H]);y.useEffect((()=>{J($.current)}),[]);let Z=g,Q=b;w&&"input"===Z&&(Q=zr(q?{type:void 0,minRows:q,maxRows:q}:{type:void 0,maxRows:x,minRows:S},Q),Z=vd);y.useEffect((()=>{G&&G.setAdornedStart(Boolean(N))}),[G,N]);const ee=zr({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:G,fullWidth:h,hiddenLabel:Y.hiddenLabel,multiline:w,size:Y.size,startAdornment:N,type:j}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return dl({root:["root",`color${Ji(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Ji(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Rd,t)})(ee),re=L.root||l.Root||Md,ne=O.root||u.root||{},oe=L.input||l.Input||Dd;return Q=zr({},Q,null!=(r=O.input)?r:u.input),tr.jsxs(y.Fragment,{children:[!p&&Td,tr.jsxs(re,zr({},ne,!pl(re)&&{ownerState:zr({},ee,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),P&&P(e)}},z,{className:as(te.root,ne.className,s,D&&"MuiInputBase-readOnly"),children:[N,tr.jsx(xd.Provider,{value:null,children:tr.jsx(oe,zr({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:C,placeholder:M,readOnly:D,required:Y.required,rows:q,value:F,onKeyDown:I,onKeyUp:k,type:j},Q,!pl(oe)&&{as:Z,ownerState:zr({},ee,Q.ownerState)},{ref:W,className:as(te.input,Q.className,D&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),b.onBlur&&b.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||$.current;if(null==t)throw new Error(Nr(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(A&&A(e),b.onFocus&&b.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,T?T(zr({},Y,{startAdornment:N})):null]}))]})}));function Od(e){return us("MuiInput",e)}const Ld=zr({},Pd,cs("MuiInput",["root","underline","input"]));function Nd(e){return us("MuiOutlinedInput",e)}const jd=zr({},Pd,cs("MuiOutlinedInput",["root","notchedOutline","input"]));function _d(e){return us("MuiFilledInput",e)}const zd=zr({},Pd,cs("MuiFilledInput",["root","underline","input"]));var Fd=function(e,t){function r(r,n){return tr.jsx(hc,zr({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=hc.muiName,y.memo(y.forwardRef(r))}(tr.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Hd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],$d={entering:{opacity:1},entered:{opacity:1}},Bd=y.forwardRef((function(e,t){const r=Ru(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=n,TransitionComponent:b=Ec}=e,v=Fr(e,Hd),x=y.useRef(null),S=Xs(x,bl(a),t),w=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=w(d),E=w(((e,t)=>{Tc(e);const n=qc({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=w(c),P=w(h),A=w((e=>{const t=qc({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),I=w(f);return tr.jsx(b,zr({appear:i,in:l,nodeRef:x,onEnter:E,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:P,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,zr({style:zr({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},$d[e],m,a.props.style),ref:S},t))}))}));function Wd(e){return us("MuiBackdrop",e)}cs("MuiBackdrop",["root","invisible"]);const Vd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ud=ac("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>zr({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"}))),Gd=y.forwardRef((function(e,t){var r,n,o;const i=cc({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Bd,transitionDuration:g}=i,b=Fr(i,Vd),v=zr({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return dl({root:["root",r&&"invisible"]},Wd,t)})(v),x=null!=(r=f.root)?r:c.root;return tr.jsx(m,zr({in:p,timeout:g},b,{children:tr.jsx(Ud,zr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:as(y.root,s,null==x?void 0:x.className),ownerState:zr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),Yd=cs("MuiBox",["root"]),Kd=Cu(),Xd=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Li("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Wa);return y.forwardRef((function(e,a){const s=Ja(r),l=ts(e),{className:u,component:c="div"}=l,d=Fr(l,ss);return tr.jsx(i,zr({as:c,ref:a,className:as(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:_r,defaultTheme:Kd,defaultClassName:Yd.root,generateClassName:os.generate});function Jd(e){return us("MuiButton",e)}const Zd=cs("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"]),Qd=y.createContext({}),ep=y.createContext(void 0),tp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],rp=e=>zr({},"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}}),np=ac(td,{shouldForwardProp:e=>ic(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Ji(r.color)}`],t[`size${Ji(r.size)}`],t[`${r.variant}Size${Ji(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;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 zr({},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":zr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Hl(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})`:Hl(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})`:Hl(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":zr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Zd.focusVisible}`]:zr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Zd.disabled}`]:zr({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 ${Hl(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,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"},[`&.${Zd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Zd.disabled}`]:{boxShadow:"none"}})),op=ac("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Ji(r.size)}`]]}})((({ownerState:e})=>zr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},rp(e)))),ip=ac("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Ji(r.size)}`]]}})((({ownerState:e})=>zr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},rp(e)))),ap=y.forwardRef((function(e,t){const r=y.useContext(Qd),n=y.useContext(ep),o=cc({props:Os(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,x=Fr(o,tp),S=zr({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),w=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return zr({},a,dl({root:["root",i,`${i}${Ji(t)}`,`size${Ji(o)}`,`${i}Size${Ji(o)}`,`color${Ji(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Ji(o)}`],endIcon:["icon","endIcon",`iconSize${Ji(o)}`]},Jd,a))})(S),C=g&&tr.jsx(op,{className:w.startIcon,ownerState:S,children:g}),E=p&&tr.jsx(ip,{className:w.endIcon,ownerState:S,children:p}),R=n||"";return tr.jsxs(np,zr({ownerState:S,className:as(r.className,w.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:as(w.focusVisible,f),ref:t,type:b},x,{classes:w,children:[C,i,E]}))}));function sp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function lp(e){return parseInt(Bs(e).getComputedStyle(e).paddingRight,10)||0}function up(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&sp(e,o)}))}function cp(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function dp(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=$s(e);return t.body===e?Bs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=cl($s(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${lp(n)+e}px`;const t=$s(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${lp(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=$s(n).body;else{const t=n.parentElement,r=Bs(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.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()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const pp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function fp(e){const t=[],r=[];return Array.from(e.querySelectorAll(pp)).forEach(((e,n)=>{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 r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function hp(){return!0}function mp(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=fp,isEnabled:a=hp,open:s}=e,l=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),h=y.useRef(null),m=Xs(bl(t),h),g=y.useRef(null);y.useEffect((()=>{s&&h.current&&(f.current=!r)}),[r,s]),y.useEffect((()=>{if(!s||!h.current)return;const e=$s(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),y.useEffect((()=>{if(!s||!h.current)return;const e=$s(h.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(h.current)),r.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return tr.jsxs(y.Fragment,{children:[tr.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),tr.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const gp=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&sp(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);up(t,e.mount,e.modalRef,n,!0);const o=cp(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=cp(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=dp(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=cp(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&sp(e.modalRef,t),up(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&sp(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function bp(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=gp,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),h=y.useRef(null),m=Xs(h,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),w=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},C=Ks((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||$s(f.current).body;o.add(S(),e),h.current&&w()})),E=y.useCallback((()=>o.isTopModal(S())),[o]),R=Ks((e=>{f.current=e,e&&(c&&E()?w():h.current&&sp(h.current,x))})),P=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{P()}),[P]),y.useEffect((()=>{c?C():v&&i||P()}),[c,P,v,i,C]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=fl(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=zr({},r,t);return zr({role:"presentation"},n,{onKeyDown:A(n),ref:m})},getBackdropProps:(e={})=>zr({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Fs((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:Fs((()=>{b(!0),s&&s(),i&&P()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:E,exited:g,hasTransition:v}}function vp(e){return us("MuiModal",e)}cs("MuiModal",["root","hidden","backdrop"]);const yp=["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"],xp=ac("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>zr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Sp=ac(Gd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),wp=y.forwardRef((function(e,t){var r,n,o,i,a,s;const l=cc({name:"MuiModal",props:e}),{BackdropComponent:u=Sp,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:P=!1,onBackdropClick:A,open:I,slotProps:k,slots:M}=l,D=Fr(l,yp),T=zr({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:R,keepMounted:P}),{getRootProps:q,getBackdropProps:O,getTransitionProps:L,portalRef:N,isTopModal:j,exited:_,hasTransition:z}=bp(zr({},T,{rootRef:t})),F=zr({},T,{exited:_}),H=(e=>{const{open:t,exited:r,classes:n}=e;return dl({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},vp,n)})(F),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),z){const{onEnter:e,onExited:t}=L();$.onEnter=e,$.onExited=t}const B=null!=(r=null!=(n=null==M?void 0:M.root)?n:g.Root)?r:xp,W=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==k?void 0:k.root)?a:b.root,U=null!=(s=null==k?void 0:k.backdrop)?s:b.backdrop,G=gl({elementType:B,externalSlotProps:V,externalForwardedProps:D,getSlotProps:q,additionalProps:{ref:t,as:m},ownerState:F,className:as(d,null==V?void 0:V.className,null==H?void 0:H.root,!F.open&&F.exited&&(null==H?void 0:H.hidden))}),Y=gl({elementType:W,externalSlotProps:U,additionalProps:c,getSlotProps:e=>O(zr({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:as(null==U?void 0:U.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:F});return P||I||z&&!_?tr.jsx(fd,{ref:N,container:h,disablePortal:w,children:tr.jsxs(B,zr({},G,{children:[!R&&u?tr.jsx(W,zr({},Y)):null,tr.jsx(mp,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:j,open:I,children:y.cloneElement(f,$)})]}))}):null}));function Cp(e){return us("MuiDivider",e)}const Ep=cs("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Rp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Pp=ac("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>zr({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)`:Hl(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})=>zr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>zr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>zr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>zr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Ap=ac("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>zr({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)`}))),Ip=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Fr(r,Rp),h=zr({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return dl({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Cp,n)})(h);return tr.jsx(Pp,zr({as:a,className:as(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?tr.jsx(Ap,{className:m.wrapper,ownerState:h,children:o}):null}))}));Ip.muiSkipListHighlight=!0;const kp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Mp=ac(Md,{shouldForwardProp:e=>ic(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Id(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return zr({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}},[`&.${zd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${zd.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.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"},[`&.${zd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zd.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(.${zd.disabled}, .${zd.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${zd.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&zr({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}))})),Dp=ac(Dd,{name:"MuiFilledInput",slot:"Input",overridesResolver:kd})((({theme:e,ownerState:t})=>zr({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}))),Tp=y.forwardRef((function(e,t){var r,n,o,i;const a=cc({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=Fr(a,kp),g=zr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return zr({},t,dl({root:["root",!r&&"underline"],input:["input"]},_d,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?Hi(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Mp,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Dp;return tr.jsx(qd,zr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));Tp.muiName="Input";const qp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Op(e){return`scale(${e}, ${e**2})`}const Lp={entering:{opacity:1,transform:Op(1)},entered:{opacity:1,transform:"none"}},Np="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),jp=y.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Ec}=e,g=Fr(e,qp),b=el(),v=y.useRef(),x=Ru(),S=y.useRef(null),w=Xs(S,bl(o),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},E=C(u),R=C(((e,t)=>{Tc(e);const{duration:r,delay:n,easing:o}=qc({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:Np?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)})),P=C(l),A=C(p),I=C((e=>{const{duration:t,delay:r,easing:n}=qc({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:Np?o:.666*o,delay:Np?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Op(.75),c&&c(e)})),k=C(d);return tr.jsx(m,zr({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:P,onEntering:E,onExit:I,onExited:k,onExiting:A,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),r&&r(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>y.cloneElement(o,zr({style:zr({opacity:0,transform:Op(.75),visibility:"exited"!==e||a?void 0:"hidden"},Lp[e],f,o.props.style),ref:w},t))}))}));jp.muiSupportAuto=!0;const _p=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],zp=ac(Md,{shouldForwardProp:e=>ic(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Id(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),zr({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"},[`&.${Ld.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ld.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ld.disabled}, .${Ld.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ld.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Fp=ac(Dd,{name:"MuiInput",slot:"Input",overridesResolver:kd})({}),Hp=y.forwardRef((function(e,t){var r,n,o,i;const a=cc({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=Fr(a,_p),b=(e=>{const{classes:t,disableUnderline:r}=e;return zr({},t,dl({root:["root",!r&&"underline"],input:["input"]},Od,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?Hi(null!=f?f:u,v):v,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:zp,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:Fp;return tr.jsx(qd,zr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));function $p(e){return us("MuiLink",e)}Hp.muiName="Input";const Bp=cs("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Wp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Vp=({theme:e,ownerState:t})=>{const r=(e=>Wp[e]||e)(t.color),n=Qi(e,`palette.${r}`,!1)||t.color,o=Qi(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Hl(n,.4)},Up=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Gp=ac(pd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Ji(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>zr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&zr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Vp({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"},[`&.${Bp.focusVisible}`]:{outline:"auto"}}))),Yp=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:u="always",variant:c="inherit",sx:d}=r,p=Fr(r,Up),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=ul(),[b,v]=y.useState(!1),x=Xs(t,g),S=zr({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return dl({root:["root",`underline${Ji(o)}`,"button"===r&&"button",n&&"focusVisible"]},$p,t)})(S);return tr.jsx(Gp,zr({color:o,className:as(w.root,n),classes:l,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),s&&s(e)},ref:x,ownerState:S,variant:c,sx:[...Object.keys(Wp).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))})),Kp=y.createContext({});function Xp(e){return us("MuiList",e)}cs("MuiList",["root","padding","dense","subheader"]);const Jp=["children","className","component","dense","disablePadding","subheader"],Zp=ac("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>zr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Qp=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=Fr(r,Jp),c=y.useMemo((()=>({dense:a})),[a]),d=zr({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return dl({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Xp,t)})(d);return tr.jsx(Kp.Provider,{value:c,children:tr.jsxs(Zp,zr({as:i,className:as(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})}));function ef(e){return us("MuiListItemIcon",e)}const tf=cs("MuiListItemIcon",["root","alignItemsFlexStart"]),rf=["className"],nf=ac("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>zr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),of=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Fr(r,rf),i=zr({},r,{alignItems:y.useContext(Kp).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return dl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},ef,r)})(i);return tr.jsx(nf,zr({className:as(a.root,n),ownerState:i,ref:t},o))})),af=cs("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),sf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function lf(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function uf(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function cf(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function df(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&cf(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const pf=y.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Fr(e,sf),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ls((()=>{n&&p.current.focus()}),[n]),y.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${cl($s(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const h=Xs(p,t);let m=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return tr.jsx(Qp,zr({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=$s(t).activeElement;if("ArrowDown"===r)e.preventDefault(),df(t,n,l,s,lf);else if("ArrowUp"===r)e.preventDefault(),df(t,n,l,s,uf);else if("Home"===r)e.preventDefault(),df(t,null,l,s,lf);else if("End"===r)e.preventDefault(),df(t,null,l,s,uf);else if(1===r.length){const o=f.current,i=r.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 l=n&&!o.repeating&&cf(n,o);o.previousKeyMatched&&(l||df(t,n,!1,s,lf,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function ff(e){return us("MuiPopover",e)}cs("MuiPopover",["root","paper"]);const hf=["onEntering"],mf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],gf=["slotProps"];function bf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function vf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function yf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function xf(e){return"function"==typeof e?e():e}const Sf=ac(wp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wf=ac(jc,{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}),Cf=y.forwardRef((function(e,t){var r,n,o;const i=cc({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=jp,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=i,P=Fr(i.TransitionProps,hf),A=Fr(i,mf),I=null!=(r=null==x?void 0:x.paper)?r:b,k=y.useRef(),M=Xs(k,I.ref),D=zr({},i,{anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:P}),T=(e=>{const{classes:t}=e;return dl({root:["root"],paper:["paper"]},ff,t)})(D),q=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=xf(s),t=(e&&1===e.nodeType?e:$s(k.current).body).getBoundingClientRect();return{top:t.top+bf(t,l.vertical),left:t.left+vf(t,l.horizontal)}}),[s,l.horizontal,l.vertical,u,c]),O=y.useCallback((e=>({vertical:bf(e,S.vertical),horizontal:vf(e,S.horizontal)})),[S.horizontal,S.vertical]),L=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=O(t);if("none"===c)return{top:null,left:null,transformOrigin:yf(r)};const n=q();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Bs(xf(s)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:yf(r)}}),[s,c,q,O,m]),[N,j]=y.useState(g),_=y.useCallback((()=>{const e=k.current;if(!e)return;const t=L(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,j(!0)}),[L]);y.useEffect((()=>(R&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_))),[s,R,_]);y.useEffect((()=>{g&&_()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{_()}}:null),[g,_]),y.useEffect((()=>{if(!g)return;const e=Hs((()=>{_()})),t=Bs(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,_]);let z=C;"auto"!==C||w.muiSupportAuto||(z=void 0);const F=f||(s?$s(xf(s)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:Sf,$=null!=(o=null==v?void 0:v.paper)?o:wf,B=gl({elementType:$,externalSlotProps:zr({},I,{style:N?I.style:zr({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:M},ownerState:D,className:as(T.paper,null==I?void 0:I.className)}),W=gl({elementType:H,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:D,className:as(T.root,p)}),{slotProps:V}=W,U=Fr(W,gf);return tr.jsx(H,zr({},U,!pl(H)&&{slotProps:V,disableScrollLock:R},{children:tr.jsx(w,zr({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),_()},onExited:()=>{j(!1)},timeout:z},P,{children:tr.jsx($,zr({},B,{children:d}))}))}))}));function Ef(e){return us("MuiMenu",e)}cs("MuiMenu",["root","paper","list"]);const Rf=["onEntering"],Pf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Af={vertical:"top",horizontal:"right"},If={vertical:"top",horizontal:"left"},kf=ac(Cf,{shouldForwardProp:e=>ic(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mf=ac(wf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Df=ac(pf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Tf=y.forwardRef((function(e,t){var r,n;const o=cc({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=Fr(o.TransitionProps,Rf),S=Fr(o,Pf),w=(()=>{const e=y.useContext(Cl);return null!=e&&e})(),C=zr({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:x,variant:g}),E=(e=>{const{classes:t}=e;return dl({root:["root"],paper:["paper"],list:["list"]},Ef,t)})(C),R=i&&!l&&d,P=y.useRef(null);let A=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))}));const I=null!=(r=b.paper)?r:Mf,k=null!=(n=v.paper)?n:p,M=gl({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[E.root,s]}),D=gl({elementType:I,externalSlotProps:k,ownerState:C,className:E.paper});return tr.jsx(kf,zr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Af:If,slots:{paper:I,root:b.root},slotProps:{root:M,paper:D},open:d,ref:t,transitionDuration:h,TransitionProps:zr({onEntering:(e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:C},S,{classes:f,children:tr.jsx(Df,zr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:P,autoFocus:i&&(-1===A||l),autoFocusItem:R,variant:g},u,{className:as(E.list,u.className),children:a}))}))}));function qf(e){return us("MuiMenuItem",e)}const Of=cs("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Lf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Nf=ac(td,{shouldForwardProp:e=>ic(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>zr({},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"}},[`&.${Of.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Hl(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Of.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Hl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Of.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Hl(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})`:Hl(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Of.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Of.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ep.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ep.inset}`]:{marginLeft:52},[`& .${af.root}`]:{marginTop:0,marginBottom:0},[`& .${af.inset}`]:{paddingLeft:36},[`& .${tf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&zr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${tf.root} svg`]:{fontSize:"1.25rem"}})))),jf=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=r,p=Fr(r,Lf),f=y.useContext(Kp),h=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),m=y.useRef(null);Ls((()=>{n&&m.current&&m.current.focus()}),[n]);const g=zr({},r,{dense:h.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return zr({},a,dl({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},qf,a))})(r),v=Xs(m,t);let x;return r.disabled||(x=void 0!==c?c:-1),tr.jsx(Kp.Provider,{value:h,children:tr.jsx(Nf,zr({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:as(b.focusVisible,l),className:as(b.root,d)},p,{ownerState:g,classes:b}))})}));function _f(e){return us("MuiNativeSelect",e)}const zf=cs("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ff=["className","disabled","error","IconComponent","inputRef","variant"],Hf=({ownerState:e,theme:t})=>zr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":zr({},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"},[`&.${zf.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}}),$f=ac("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ic,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${zf.multiple}`]:t.multiple}]}})(Hf),Bf=({ownerState:e,theme:t})=>zr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${zf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Wf=ac("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ji(r.variant)}`],r.open&&t.iconOpen]}})(Bf),Vf=y.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Fr(e,Ff),u=zr({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return dl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ji(r)}`,i&&"iconOpen",n&&"disabled"]},_f,t)})(u);return tr.jsxs(y.Fragment,{children:[tr.jsx($f,zr({ownerState:u,className:as(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:tr.jsx(Wf,{as:i,ownerState:u,className:c.icon})]})}));var Uf;const Gf=["children","classes","className","label","notched"],Yf=ac("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:ic})({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%"}),Kf=ac("legend",{name:"MuiNotchedOutlined",shouldForwardProp:ic})((({ownerState:e,theme:t})=>zr({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&&zr({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 Xf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Jf=ac(Md,{shouldForwardProp:e=>ic(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Id})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return zr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${jd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${jd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${jd.focused} .${jd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${jd.error} .${jd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${jd.disabled} .${jd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&zr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Zf=ac((function(e){const{className:t,label:r,notched:n}=e,o=Fr(e,Gf),i=null!=r&&""!==r,a=zr({},e,{notched:n,withLabel:i});return tr.jsx(Yf,zr({"aria-hidden":!0,className:t,ownerState:a},o,{children:tr.jsx(Kf,{ownerState:a,children:i?tr.jsx("span",{children:r}):Uf||(Uf=tr.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}})),Qf=ac(Dd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:kd})((({theme:e,ownerState:t})=>zr({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}))),eh=y.forwardRef((function(e,t){var r,n,o,i,a;const s=cc({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=s,g=Fr(s,Xf),b=(e=>{const{classes:t}=e;return zr({},t,dl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Nd,t))})(s),v=Sd(),x=yd({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=zr({},s,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:v,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:m}),w=null!=(r=null!=(n=h.root)?n:l.Root)?r:Jf,C=null!=(o=null!=(i=h.input)?i:l.Input)?o:Qf;return tr.jsx(qd,zr({slots:{root:w,input:C},renderSuffix:e=>tr.jsx(Zf,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=tr.jsxs(y.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:m},g,{classes:zr({},b,{notchedOutline:null})}))}));function th(e){return us("MuiSelect",e)}eh.muiName="Input";const rh=cs("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var nh;const oh=["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"],ih=ac("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${rh.select}`]:t.select},{[`&.${rh.select}`]:t[r.variant]},{[`&.${rh.error}`]:t.error},{[`&.${rh.multiple}`]:t.multiple}]}})(Hf,{[`&.${rh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ah=ac("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ji(r.variant)}`],r.open&&t.iconOpen]}})(Bf),sh=ac("input",{shouldForwardProp:e=>oc(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 lh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function uh(e){return null==e||"string"==typeof e&&!e.trim()}const ch=y.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:x,onBlur:S,onChange:w,onClose:C,onFocus:E,onOpen:R,open:P,readOnly:A,renderValue:I,SelectDisplayProps:k={},tabIndex:M,value:D,variant:T="standard"}=e,q=Fr(e,oh),[O,L]=Ys({controlled:D,default:c,name:"Select"}),[N,j]=Ys({controlled:P,default:u,name:"Select"}),_=y.useRef(null),z=y.useRef(null),[F,H]=y.useState(null),{current:$}=y.useRef(null!=P),[B,W]=y.useState(),V=Xs(t,m),U=y.useCallback((e=>{z.current=e,e&&H(e)}),[]),G=null==F?void 0:F.parentNode;y.useImperativeHandle(V,(()=>({focus:()=>{z.current.focus()},node:_.current,value:O})),[O]),y.useEffect((()=>{u&&N&&F&&!$&&(W(a?null:G.clientWidth),z.current.focus())}),[F,a]),y.useEffect((()=>{i&&z.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=$s(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?R&&R(t):C&&C(t),$||(W(a?null:G.clientWidth),j(e))},K=y.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(O)?O.slice():[];const t=O.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),O!==r&&(L(r),w)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),w(o,e)}v||Y(!1,t)}},J=null!==F&&N;let Z,Q;delete q["aria-invalid"];const ee=[];let te=!1;(Ed({value:O})||p)&&(I?Z=I(O):te=!0);const re=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(O))throw new Error(Nr(2));t=O.some((t=>lh(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=lh(O,e.props.value),t&&te&&(Q=e.props.children);return y.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=v?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=B;!a&&$&&F&&(oe=G.clientWidth),ne=void 0!==M?M:d?null:0;const ie=k.id||(x?`mui-component-select-${x}`:void 0),ae=zr({},e,{variant:T,value:O,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return dl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ji(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},th,t)})(ae),le=zr({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=Gs();return tr.jsxs(y.Fragment,{children:[tr.jsx(ih,zr({ref:U,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!A){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||A?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:O,name:x}}),S(e))},onFocus:E},k,{ownerState:ae,className:as(k.className,se.select,l),id:ie,children:uh(Z)?nh||(nh=tr.jsx("span",{className:"notranslate",children:""})):Z})),tr.jsx(sh,zr({"aria-invalid":f,value:Array.isArray(O)?O.join(","):O,name:x,ref:_,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(L(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},q)),tr.jsx(ah,{as:h,className:se.icon,ownerState:ae}),tr.jsx(Tf,zr({id:`menu-${x||""}`,anchorEl:G,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:zr({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:zr({},b.slotProps,{paper:zr({},le,{style:zr({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})})),dh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],ph=["root"],fh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ic(e)&&"variant"!==e,slot:"Root"},hh=ac(Hp,fh)(""),mh=ac(eh,fh)(""),gh=ac(Tp,fh)(""),bh=y.forwardRef((function(e,t){const r=cc({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=Fd,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:x,open:S,renderValue:w,SelectDisplayProps:C,variant:E="outlined"}=r,R=Fr(r,dh),P=b?Vf:ch,A=yd({props:r,muiFormControl:Sd(),states:["variant","error"]}),I=A.variant||E,k=zr({},r,{variant:I,classes:i}),M=(e=>{const{classes:t}=e;return t})(k),D=Fr(M,ph),T=d||{standard:tr.jsx(hh,{ownerState:k}),outlined:tr.jsx(mh,{label:f,ownerState:k}),filled:tr.jsx(gh,{ownerState:k})}[I],q=Xs(t,bl(T));return tr.jsx(y.Fragment,{children:y.cloneElement(T,zr({inputComponent:P,inputProps:zr({children:o,error:A.error,IconComponent:u,variant:I,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:h,MenuProps:m,onClose:v,onOpen:x,open:S,renderValue:w,SelectDisplayProps:zr({id:c},C)},p,{classes:p?Hi(D,p.classes):D},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===I?{notched:!0}:{},{ref:q,className:as(T.props.className,a,M.root)},!d&&{variant:I},R))})}));bh.muiName="Select";const vh=y.createContext();function yh(e){return us("MuiTable",e)}cs("MuiTable",["root","stickyHeader"]);const xh=["className","component","padding","size","stickyHeader"],Sh=ac("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>zr({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":zr({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),wh="table",Ch=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiTable"}),{className:n,component:o=wh,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=Fr(r,xh),u=zr({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return dl({root:["root",r&&"stickyHeader"]},yh,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return tr.jsx(vh.Provider,{value:d,children:tr.jsx(Sh,zr({as:o,role:o===wh?null:"table",ref:t,className:as(c.root,n),ownerState:u},l))})})),Eh=y.createContext();function Rh(e){return us("MuiTableBody",e)}cs("MuiTableBody",["root"]);const Ph=["className","component"],Ah=ac("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Ih={variant:"body"},kh="tbody",Mh=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiTableBody"}),{className:n,component:o=kh}=r,i=Fr(r,Ph),a=zr({},r,{component:o}),s=(e=>{const{classes:t}=e;return dl({root:["root"]},Rh,t)})(a);return tr.jsx(Eh.Provider,{value:Ih,children:tr.jsx(Ah,zr({className:as(s.root,n),as:o,ref:t,role:o===kh?null:"rowgroup",ownerState:a},i))})}));function Dh(e){return us("MuiTableCell",e)}const Th=cs("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),qh=["align","className","component","padding","scope","size","sortDirection","variant"],Oh=ac("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Ji(r.size)}`],"normal"!==r.padding&&t[`padding${Ji(r.padding)}`],"inherit"!==r.align&&t[`align${Ji(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>zr({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Wl(Hl(e.palette.divider,1),.88):$l(Hl(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${Th.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),Lh=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=Fr(r,qh),p=y.useContext(vh),f=y.useContext(Eh),h=f&&"head"===f.variant;let m;m=i||(h?"th":"td");let g=s;"td"===m?g=void 0:!g&&h&&(g="col");const b=c||f&&f.variant,v=zr({},r,{align:n,component:m,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),x=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return dl({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${Ji(n)}`,"normal"!==o&&`padding${Ji(o)}`,`size${Ji(i)}`]},Dh,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),tr.jsx(Oh,zr({as:m,ref:t,className:as(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));function Nh(e){return us("MuiTableContainer",e)}cs("MuiTableContainer",["root"]);const jh=["className","component"],_h=ac("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),zh=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Fr(r,jh),a=zr({},r,{component:o}),s=(e=>{const{classes:t}=e;return dl({root:["root"]},Nh,t)})(a);return tr.jsx(_h,zr({ref:t,as:o,className:as(s.root,n),ownerState:a},i))}));function Fh(e){return us("MuiTableHead",e)}cs("MuiTableHead",["root"]);const Hh=["className","component"],$h=ac("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Bh={variant:"head"},Wh="thead",Vh=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiTableHead"}),{className:n,component:o=Wh}=r,i=Fr(r,Hh),a=zr({},r,{component:o}),s=(e=>{const{classes:t}=e;return dl({root:["root"]},Fh,t)})(a);return tr.jsx(Eh.Provider,{value:Bh,children:tr.jsx($h,zr({as:o,className:as(s.root,n),ref:t,role:o===Wh?null:"rowgroup",ownerState:a},i))})}));function Uh(e){return us("MuiTableRow",e)}const Gh=cs("MuiTableRow",["root","selected","hover","head","footer"]),Yh=["className","component","hover","selected"],Kh=ac("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Gh.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Gh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Hl(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Hl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Xh="tr",Jh=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiTableRow"}),{className:n,component:o=Xh,hover:i=!1,selected:a=!1}=r,s=Fr(r,Yh),l=y.useContext(Eh),u=zr({},r,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return dl({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},Uh,t)})(u);return tr.jsx(Kh,zr({as:o,ref:t,className:as(c.root,n),role:o===Xh?null:"row",ownerState:u},s))}));function Zh(e){return tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:tr.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var Qh=function({fontSize:e="medium",children:t=null,className:r=""}={}){return tr.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})};function em(e={}){return tr.jsx(Qh,{...e,children:tr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[tr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),tr.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 tm(e={}){return tr.jsx(Qh,{fontSize:"medium",...e,children:tr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[tr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),tr.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 rm(e){return tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:tr.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 nm(e={}){return tr.jsx(Qh,{...e,children:tr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:tr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[tr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),tr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function om(e={}){return tr.jsx(Qh,{fontSize:"medium",...e,children:tr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:tr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:tr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function im({className:e}){return tr.jsx(Qh,{fontSize:"small",className:e,children:tr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:tr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:tr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:tr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[tr.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"}),tr.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 am(e={}){return tr.jsx(Qh,{...e,children:tr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:tr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:tr.jsx("rect",{stroke:qt.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const sm={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:_t,"& > 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 lm=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:qt.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:qt.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:tr.jsx(Zh,{"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 ${qt.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`,borderRadius:_t,backgroundColor:qt.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 ${qt.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:qt.WHITE,color:qt.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:_t},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:qt.GREYSCALE_0_15,backgroundColor:qt.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${qt.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:qt.GREEN_PALE},"&:active":{backgroundColor:qt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${zs(qt.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:qt.BLUE_PALE},"&:active":{backgroundColor:qt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${zs(qt.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:_t,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:qt.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:qt.GREYSCALE_0_42,backgroundColor:qt.GREYSCALE_100_60,"&:active":{backgroundColor:qt.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${qt.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:qt.PURPLE,"&.Mui-focusVisible":{borderColor:qt.PURPLE,boxShadow:`0 0 0 3px ${zs(qt.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:qt.GREEN,"&.Mui-focusVisible":{borderColor:qt.GREEN,boxShadow:`0 0 0 3px ${zs(qt.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:qt.BLUE,"&.Mui-focusVisible":{borderColor:qt.BLUE,boxShadow:`0 0 0 3px ${zs(qt.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:qt.ORANGE,"&.Mui-focusVisible":{borderColor:qt.ORANGE,boxShadow:`0 0 0 3px ${zs(qt.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:qt.RED,"&.Mui-focusVisible":{borderColor:qt.RED,boxShadow:`0 0 0 3px ${zs(qt.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:qt.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:qt.PURPLE_PALE},"&:active":{backgroundColor:qt.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:qt.PURPLE_PALE,boxShadow:`0 0 0 3px ${zs(qt.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:qt.GREEN_PALE},"&:active":{backgroundColor:qt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${zs(qt.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:qt.BLUE_PALE},"&:active":{backgroundColor:qt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${zs(qt.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:qt.ORANGE_PALE},"&:active":{backgroundColor:qt.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:qt.ORANGE_PALE,boxShadow:`0 0 0 3px ${zs(qt.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:qt.RED_PALE},"&:active":{backgroundColor:qt.RED_DARK},"&.Mui-focusVisible":{borderColor:qt.RED_PALE,boxShadow:`0 0 0 3px ${zs(qt.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:qt.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:qt.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:_t,boxShadow:`inset 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:tr.jsx(rm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Ot,borderRadius:_t,color:qt.TEXT_PRIMARY,backgroundColor:qt.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:qt.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:qt.GREYSCALE_0_05,color:qt.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:qt.GREEN,borderColor:qt.GREEN},"&.MuiChip-outlinedInfo":{color:qt.BLUE,borderColor:qt.BLUE},"&.MuiChip-outlinedWarning":{color:qt.ORANGE,borderColor:qt.ORANGE},"&.MuiChip-outlinedError":{color:qt.RED,borderColor:qt.RED}},outlined:{border:`solid 1px ${qt.GREYSCALE_0_15}`,backgroundColor:qt.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:_t,boxShadow:"none",backgroundColor:qt.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:qt.GREEN,borderColor:qt.GREEN},outlinedSecondary:{color:qt.BLUE,borderColor:qt.BLUE},label:{fontFamily:Bt.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:tr.jsx(rm,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:tr.jsx(Zh,{"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:_t},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:_t,fontSize:Lt,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:qt.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${qt.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:qt.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:qt.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:qt.GREYSCALE_0_05}}},popupIndicator:{borderRadius:_t,border:`solid 1px ${qt.GREYSCALE_0_15}`,color:qt.GREYSCALE_0_60,marginRight:0,width:jt,height:jt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${qt.GREYSCALE_0_15}`},clearIndicator:{borderRadius:_t,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:qt.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Lt}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Ot,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:qt.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:qt.GREYSCALE_25,fontSize:Ot,fontFamily:Bt.FONT_FAMILY,fontWeight:Ht,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:qt.TEXT_PRIMARY},"&.Mui-error":{color:qt.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:qt.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Ft,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:qt.TEXT_SECONDARY,content:"'(required)'",fontWeight:Ft,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Lt,lineHeight:"16px",backgroundColor:qt.WHITE,borderRadius:_t,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.GREYSCALE_0_05}`,borderColor:qt.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${qt.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${qt.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.RED}`,boxShadow:`0px 0px 0px 1px ${qt.RED}, inset 0 2px 0 0 ${qt.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.GREYSCALE_0_10}`,borderColor:qt.GREYSCALE_0_10,backgroundColor:qt.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:qt.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:qt.GREYSCALE_0_15,borderRadius:_t,boxShadow:`inset 0 2px 0 0 ${qt.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>tr.jsx(Zh,{...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:qt.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:qt.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:qt.GREYSCALE_0_03},"&:active":{backgroundColor:qt.GREYSCALE_0_10},"&:focus":{backgroundColor:qt.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${qt.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:qt.GREYSCALE_0_30,"&:hover":{backgroundColor:qt.GREYSCALE_0_0,borderColor:qt.GREYSCALE_0_15},"& ~svg":{color:qt.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${qt.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:_t}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:qt.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Lt,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Ot,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Ot,fontWeight:Ht,color:qt.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Ht}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${qt.GREYSCALE_0_15}, 0px 0px 0px 1px ${qt.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:tr.jsx(om,{}),checkedIcon:tr.jsx(tm,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:qt.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${zs(qt.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${zs(qt.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:qt.GREYSCALE_0_20}},"&.Mui-disabled":{fill:qt.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:tr.jsx(am,{}),checkedIcon:tr.jsx(em,{}),indeterminateIcon:tr.jsx(nm,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:_t,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:qt.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:qt.GREYSCALE_0_55,color:qt.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:qt.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:qt.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:qt.GREYSCALE_0_55,"&:hover":{color:qt.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:qt.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:qt.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Lt,color:qt.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Ht},secondary:{fontSize:Ot,color:qt.GREYSCALE_45,fontWeight:Ft,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Lt,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Lt,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:qt.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Ot,borderBottom:`solid 1px ${qt.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Lt,color:qt.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:qt.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:qt.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:qt.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'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\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:qt.RED}}},"&.Mui-focusVisible":{backgroundColor:qt.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:qt.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:qt.GREEN,height:"24px","&.Mui-disabled":{color:qt.GREYSCALE_0_15}},rail:{backgroundColor:qt.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${qt.GREYSCALE_0_05}`,borderRadius:_t,boxShadow:`inset 0px 0px 0px 1px ${qt.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${qt.GREYSCALE_0_05}`,borderRadius:_t},thumb:{height:"16px",width:"16px",borderRadius:_t,backgroundColor:qt.WHITE,boxShadow:`0px 1px 2px 0px ${qt.GREYSCALE_0_15}, 0px 0px 0px 1px ${qt.GREYSCALE_0_05}`,"&:hover":{borderRadius:_t,boxShadow:`0 2px 4px 0 ${qt.GREYSCALE_0_30}, 0 0 0 1px ${qt.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${qt.GREYSCALE_0_15}, 0 0 0 1px ${qt.GREYSCALE_0_06}, 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${qt.GREYSCALE_0_15}, 0 0 0 1px ${qt.GREYSCALE_0_06}, 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:qt.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:qt.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:qt.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:qt.GREYSCALE_0_15},markLabel:{color:qt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:qt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:qt.WHITE,color:qt.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:qt.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:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${zs(qt.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${zs(qt.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:qt.GREYSCALE_0_15,borderRadius:_t},thumb:{height:"16px",width:"16px",borderRadius:_t,backgroundColor:qt.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:Lt,fontWeight:Ht,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${qt.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`,backgroundColor:qt.GREYSCALE_0_03,borderRadius:_t},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:qt.GREYSCALE_25,"&.Mui-selected":{color:qt.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Lt,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:_t,"&:hover":{backgroundColor:qt.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 ${qt.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${qt.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:_t,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:qt.GREYSCALE_0_05},"&:hover":{backgroundColor:qt.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${qt.GREYSCALE_85}`,borderRight:`1px solid ${qt.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Ht,backgroundColor:qt.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:qt.GREYSCALE_98,borderBottom:`1px solid ${qt.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${qt.GREYSCALE_85}`,borderTop:`1px solid ${qt.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:qt.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:qt.GREYSCALE_0_05,"&:hover":{backgroundColor:qt.GREYSCALE_0_03}},"&&:hover":{backgroundColor:qt.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>tr.jsx(im,{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 ${qt.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Lt,borderRadius:_t,padding:"7px 16px",border:`1px solid ${qt.GREYSCALE_0_15}`,backgroundColor:qt.GREYSCALE_100_60,color:qt.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:qt.GREYSCALE_0_10,border:`1px solid ${qt.GREYSCALE_0_30}`},"&:hover":{backgroundColor:qt.GREYSCALE_0_03,border:`1px solid ${qt.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:qt.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${qt.MISC_FOCUS_BORDER}`,border:`1px solid ${qt.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:qt.GREYSCALE_25,backgroundColor:qt.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:qt.GREYSCALE_0_10,border:`1px solid ${qt.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Ot,height:24,width:24,padding:7},sizeLarge:{fontSize:Nt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Lt,borderRadius:_t}}},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:qt.GREYSCALE_20},tooltip:{backgroundColor:qt.GREYSCALE_20,fontSize:Ot,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...sm}:{}}),um=(e,t)=>lm(t);var cm=()=>({mode:"light",primary:{ultraLight:qt.GREEN_ULTRA_LIGHT,light:qt.GREEN_PALE,main:qt.GREEN,dark:qt.GREEN_DARK,extraDark:qt.GREEN_EXTRA_DARK,contrastText:qt.WHITE},secondary:{ultraLight:qt.BLUE_ULTRA_LIGHT,light:qt.BLUE_PALE,main:qt.BLUE,dark:qt.BLUE_DARK,extraDark:qt.BLUE_EXTRA_DARK,contrastText:qt.WHITE},error:{ultraLight:qt.RED_ULTRA_LIGHT,light:qt.RED_PALE,main:qt.RED,dark:qt.RED_DARK,extraDark:qt.RED_EXTRA_DARK,contrastText:qt.WHITE},warning:{ultraLight:qt.ORANGE_ULTRA_LIGHT,light:qt.ORANGE_PALE,main:qt.ORANGE,dark:qt.ORANGE_DARK,extraDark:qt.ORANGE_EXTRA_DARK,contrastText:qt.WHITE},success:{ultraLight:qt.GREEN_ULTRA_LIGHT,light:qt.GREEN_PALE,main:qt.GREEN,dark:qt.GREEN_DARK,extraDark:qt.GREEN_EXTRA_DARK,contrastText:qt.WHITE},info:{ultraLight:qt.BLUE_ULTRA_LIGHT,light:qt.BLUE_PALE,main:qt.BLUE,dark:qt.BLUE_DARK,extraDark:qt.BLUE_EXTRA_DARK,contrastText:qt.WHITE},text:{primary:qt.TEXT_PRIMARY,secondary:qt.TEXT_SECONDARY,disabled:qt.GREYSCALE_0_30},action:{hover:qt.GREYSCALE_0_03,hoverOpacity:.03,selected:qt.GREYSCALE_0_05,selectedOpacity:.05,focus:qt.MISC_FOCUS_BORDER},amethyst:{ultraLight:qt.WHITE,main:qt.PURPLE,light:qt.PURPLE_PALE,dark:qt.PURPLE_DARK,extraDark:qt.GREYSCALE_0_0,contrastText:qt.WHITE},background:{paper:qt.WHITE,default:qt.GREYSCALE_95},divider:qt.GREYSCALE_0_15});var dm=e=>cm();var pm=(e,t=!1)=>({components:um(0,t),palette:dm(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:Lt,fontWeightLight:zt,fontWeightRegular:Ft,fontWeightMedium:Ht,fontWeightBold:$t,htmlFontSize:Lt,fontFamily:Bt.FONT_FAMILY,button:{fontWeight:Ht,fontSize:Lt,textTransform:"none"},body1:{fontSize:Nt,lineHeight:"24px"},body2:{fontSize:Lt,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:jt,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Nt,fontWeight:Ht,lineHeight:"16px"},h6:{fontSize:Lt,fontWeight:Ht,lineHeight:"16px"},caption:{color:qt.TEXT_SECONDARY},subtitle1:{fontSize:Lt,color:qt.TEXT_SECONDARY},subtitle2:{fontSize:Ot,color:qt.TEXT_SECONDARY}},shape:{borderRadius:_t}});const fm={...Tt};var hm={},mm={exports:{}},gm={exports:{}};!function(e){function t(r){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(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(gm);var bm=gm.exports;!function(e){var t=bm.default;function r(n,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=r=function(e,r){if(!r&&e&&e.__esModule)return e;var n,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(n=r?a:i){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?n(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(n,o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(mm);var vm=mm.exports,ym={};function xm(e,t){return function(){return null}}function Sm(e){return e&&"object"===Dl(e)&&e.constructor===Object}function wm(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?zr({},e):e;return Sm(e)&&Sm(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Sm(t[o])&&o in e?n[o]=wm(e[o],t[o],r):n[o]=t[o])})),n}var Cm=(Ti.element,function(){return null});Cm.isRequired=(Ti.element.isRequired,function(){return null});var Em=function(){return null};var Rm={exports:{}},Pm={},Am=60103,Im=60106,km=60107,Mm=60108,Dm=60114,Tm=60109,qm=60110,Om=60112,Lm=60113,Nm=60120,jm=60115,_m=60116,zm=60121,Fm=60122,Hm=60117,$m=60129,Bm=60131;if("function"==typeof Symbol&&Symbol.for){var Wm=Symbol.for;Am=Wm("react.element"),Im=Wm("react.portal"),km=Wm("react.fragment"),Mm=Wm("react.strict_mode"),Dm=Wm("react.profiler"),Tm=Wm("react.provider"),qm=Wm("react.context"),Om=Wm("react.forward_ref"),Lm=Wm("react.suspense"),Nm=Wm("react.suspense_list"),jm=Wm("react.memo"),_m=Wm("react.lazy"),zm=Wm("react.block"),Fm=Wm("react.server.block"),Hm=Wm("react.fundamental"),$m=Wm("react.debug_trace_mode"),Bm=Wm("react.legacy_hidden")}function Vm(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Am:switch(e=e.type){case km:case Dm:case Mm:case Lm:case Nm:return e;default:switch(e=e&&e.$$typeof){case qm:case Om:case _m:case jm:case Tm:return e;default:return t}}case Im:return t}}}var Um=Tm,Gm=Am,Ym=Om,Km=km,Xm=_m,Jm=jm,Zm=Im,Qm=Dm,eg=Mm,tg=Lm;Pm.ContextConsumer=qm,Pm.ContextProvider=Um,Pm.Element=Gm,Pm.ForwardRef=Ym,Pm.Fragment=Km,Pm.Lazy=Xm,Pm.Memo=Jm,Pm.Portal=Zm,Pm.Profiler=Qm,Pm.StrictMode=eg,Pm.Suspense=tg,Pm.isAsyncMode=function(){return!1},Pm.isConcurrentMode=function(){return!1},Pm.isContextConsumer=function(e){return Vm(e)===qm},Pm.isContextProvider=function(e){return Vm(e)===Tm},Pm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Am},Pm.isForwardRef=function(e){return Vm(e)===Om},Pm.isFragment=function(e){return Vm(e)===km},Pm.isLazy=function(e){return Vm(e)===_m},Pm.isMemo=function(e){return Vm(e)===jm},Pm.isPortal=function(e){return Vm(e)===Im},Pm.isProfiler=function(e){return Vm(e)===Dm},Pm.isStrictMode=function(e){return Vm(e)===Mm},Pm.isSuspense=function(e){return Vm(e)===Lm},Pm.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===km||e===Dm||e===$m||e===Mm||e===Lm||e===Nm||e===Bm||"object"==typeof e&&null!==e&&(e.$$typeof===_m||e.$$typeof===jm||e.$$typeof===Tm||e.$$typeof===qm||e.$$typeof===Om||e.$$typeof===Hm||e.$$typeof===zm||e[0]===Fm)},Pm.typeOf=Vm,Rm.exports=Pm;var rg=Rm.exports,ng=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function og(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(ng);return t&&t[1]||""}(e)||t}function ig(e,t,r){var n=og(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var ag="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),sg=Ti.oneOfType([Ti.func,Ti.object]),lg=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:xm,deepmerge:wm,elementAcceptingRef:Cm,elementTypeAcceptingRef:Em,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return og(e,"Component");if("object"===Dl(e))switch(e.$$typeof){case rg.ForwardRef:return ig(e,e.render,"ForwardRef");case rg.Memo:return ig(e,e.type,"memo");default:return}}},ponyfillGlobal:ag,refType:sg}),ug=Vt(lg);Object.defineProperty(ym,"__esModule",{value:!0}),ym.hexToRgb=pg,ym.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=hg(e),r=t.values;return"#".concat(r.map((function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)})).join(""))},ym.hslToRgb=fg,ym.decomposeColor=hg,ym.recomposeColor=mg,ym.getContrastRatio=function(e,t){var r=gg(e),n=gg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},ym.getLuminance=gg,ym.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return gg(e)>.5?vg(e,t):yg(e,t)},ym.fade=function(e,t){return bg(e,t)},ym.alpha=bg,ym.darken=vg,ym.lighten=yg;var cg=ug;function dg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function pg(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function fg(e){var t=(e=hg(e)).values,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),mg({type:s,values:l})}function hg(e){if(e.type)return e;if("#"===e.charAt(0))return hg(pg(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,cg.formatMuiErrorMessage)(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function mg(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function gg(e){var t="hsl"===(e=hg(e)).type?hg(fg(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 bg(e,t){return e=hg(e),t=dg(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,mg(e)}function vg(e,t){if(e=hg(e),t=dg(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return mg(e)}function yg(e,t){if(e=hg(e),t=dg(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return mg(e)}var xg,Sg,wg,Cg={},Eg={exports:{}},Rg={exports:{}},Pg={exports:{}};function Ag(){return xg||(xg=1,function(e){var t=bm.default;e.exports=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(Pg)),Pg.exports}function Ig(){return Sg||(Sg=1,function(e){var t=bm.default,r=Ag();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Rg)),Rg.exports}function kg(){return wg||(wg=1,function(e){var t=Ig();e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(Eg)),Eg.exports}var Mg,Dg={exports:{}};function Tg(){return Mg||(Mg=1,function(e){var t=Tu();e.exports=function(e,r){if(null==e)return{};var n,o,i=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(Dg)),Dg.exports}var qg,Og={};var Lg,Ng={};var jg,_g={},zg={};var Fg,Hg={};var $g,Bg={};var Wg,Vg={};var Ug,Gg={};var Yg,Kg={};var Xg,Jg={};var Zg,Qg,eb={};function tb(){if(Qg)return _g;Qg=1;var e=jl;Object.defineProperty(_g,"__esModule",{value:!0}),_g.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,y=void 0===v?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:v,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,E=e.info,R=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,P=e.success,A=void 0===P?{light:d.default[300],main:d.default[500],dark:d.default[700]}:P,I=e.type,k=void 0===I?"light":I,M=e.contrastThreshold,D=void 0===M?3:M,T=e.tonalOffset,q=void 0===T?.2:T,O=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function L(e){return(0,p.getContrastRatio)(e,h.text.primary)>=D?h.text.primary:f.text.primary}var N=function(e){var r=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[r]&&(e.main=e[r]),!e.main)throw new Error((0,n.formatMuiErrorMessage)(4,r));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,q),m(e,"dark",i,q),e.contrastText||(e.contrastText=L(e.main)),e},j={dark:h,light:f},_=(0,n.deepmerge)((0,t.default)({common:o.default,type:k,primary:N(b),secondary:N(y,"A400","A200","A700"),error:N(S),warning:N(C),info:N(R),success:N(A),grey:i.default,contrastThreshold:D,getContrastText:L,augmentColor:N,tonalOffset:q},j[k]),O);return _},_g.dark=_g.light=void 0;var t=e(ku()),r=e(Tg()),n=ug,o=e(function(){if(jg)return zg;jg=1,Object.defineProperty(zg,"__esModule",{value:!0}),zg.default=void 0;var e={black:"#000",white:"#fff"};return zg.default=e,zg}()),i=e(function(){if(Fg)return Hg;Fg=1,Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.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 Hg.default=e,Hg}()),a=e(function(){if($g)return Bg;$g=1,Object.defineProperty(Bg,"__esModule",{value:!0}),Bg.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 Bg.default=e,Bg}()),s=e(function(){if(Wg)return Vg;Wg=1,Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.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 Vg.default=e,Vg}()),l=e(function(){if(Ug)return Gg;Ug=1,Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.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 Gg.default=e,Gg}()),u=e(function(){if(Yg)return Kg;Yg=1,Object.defineProperty(Kg,"__esModule",{value:!0}),Kg.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 Kg.default=e,Kg}()),c=e(function(){if(Xg)return Jg;Xg=1,Object.defineProperty(Jg,"__esModule",{value:!0}),Jg.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 Jg.default=e,Jg}()),d=e(function(){if(Zg)return eb;Zg=1,Object.defineProperty(eb,"__esModule",{value:!0}),eb.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 eb.default=e,eb}()),p=ym,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}};_g.light=f;var h={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 m(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return _g.dark=h,_g}var rb,nb={};var ob,ib={};var ab,sb={};var lb={};function ub(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function cb(e,t){if(e){if("string"==typeof e)return ub(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ub(e,t):void 0}}function db(e){return function(e){if(Array.isArray(e))return ub(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||cb(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pb(e,t){return t?wm(e,t,{clone:!1}):e}var fb={xs:0,sm:600,md:960,lg:1280,xl:1920},hb={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(fb[e],"px)")}};function mb(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||hb;return t.reduce((function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===Dl(t)){var o=e.theme.breakpoints||hb;return Object.keys(t).reduce((function(e,n){return e[o.up(n)]=r(t[n]),e}),{})}return r(t)}function gb(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function bb(e){var t=e.prop,r=e.cssProperty,n=void 0===r?e.prop:r,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var r=e[t],a=gb(e.theme,o)||{};return mb(e,r,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=gb(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=Tl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,t)}))};return a.propTypes={},a.filterProps=[t],a}function vb(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=function(e){return t.reduce((function(t,r){var n=r(e);return n?pb(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function yb(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var xb=bb({prop:"border",themeKey:"borders",transform:yb}),Sb=bb({prop:"borderTop",themeKey:"borders",transform:yb}),wb=bb({prop:"borderRight",themeKey:"borders",transform:yb}),Cb=bb({prop:"borderBottom",themeKey:"borders",transform:yb}),Eb=bb({prop:"borderLeft",themeKey:"borders",transform:yb}),Rb=bb({prop:"borderColor",themeKey:"palette"}),Pb=bb({prop:"borderRadius",themeKey:"shape"}),Ab=vb(xb,Sb,wb,Cb,Eb,Rb,Pb);function Ib(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function kb(e){var t=function(t){var r=e(t);return t.css?zr({},pb(r,e(zr({theme:t.theme},t.css))),Ib(t.css,[e.filterProps])):t.sx?zr({},pb(r,e(zr({theme:t.theme},t.sx))),Ib(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(db(e.filterProps)),t}var Mb=vb(bb({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),bb({prop:"display"}),bb({prop:"overflow"}),bb({prop:"textOverflow"}),bb({prop:"visibility"}),bb({prop:"whiteSpace"})),Db=bb({prop:"flexBasis"}),Tb=bb({prop:"flexDirection"}),qb=bb({prop:"flexWrap"}),Ob=bb({prop:"justifyContent"}),Lb=bb({prop:"alignItems"}),Nb=bb({prop:"alignContent"}),jb=bb({prop:"order"}),_b=bb({prop:"flex"}),zb=bb({prop:"flexGrow"}),Fb=bb({prop:"flexShrink"}),Hb=bb({prop:"alignSelf"}),$b=bb({prop:"justifyItems"}),Bb=bb({prop:"justifySelf"}),Wb=vb(Db,Tb,qb,Ob,Lb,Nb,jb,_b,zb,Fb,Hb,$b,Bb),Vb=bb({prop:"gridGap"}),Ub=bb({prop:"gridColumnGap"}),Gb=bb({prop:"gridRowGap"}),Yb=bb({prop:"gridColumn"}),Kb=bb({prop:"gridRow"}),Xb=bb({prop:"gridAutoFlow"}),Jb=bb({prop:"gridAutoColumns"}),Zb=bb({prop:"gridAutoRows"}),Qb=bb({prop:"gridTemplateColumns"}),ev=bb({prop:"gridTemplateRows"}),tv=bb({prop:"gridTemplateAreas"}),rv=bb({prop:"gridArea"}),nv=vb(Vb,Ub,Gb,Yb,Kb,Xb,Jb,Zb,Qb,ev,tv,rv),ov=bb({prop:"color",themeKey:"palette"}),iv=bb({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),av=vb(ov,iv),sv=bb({prop:"position"}),lv=bb({prop:"zIndex",themeKey:"zIndex"}),uv=bb({prop:"top"}),cv=bb({prop:"right"}),dv=bb({prop:"bottom"}),pv=bb({prop:"left"}),fv=vb(sv,lv,uv,cv,dv,pv),hv=bb({prop:"boxShadow",themeKey:"shadows"});function mv(e){return e<=1?"".concat(100*e,"%"):e}var gv=bb({prop:"width",transform:mv}),bv=bb({prop:"maxWidth",transform:mv}),vv=bb({prop:"minWidth",transform:mv}),yv=bb({prop:"height",transform:mv}),xv=bb({prop:"maxHeight",transform:mv}),Sv=bb({prop:"minHeight",transform:mv}),wv=bb({prop:"size",cssProperty:"width",transform:mv}),Cv=bb({prop:"size",cssProperty:"height",transform:mv}),Ev=bb({prop:"boxSizing"}),Rv=vb(gv,bv,vv,yv,xv,Sv,Ev);function Pv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||cb(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.")}()}var Av={m:"margin",p:"padding"},Iv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},kv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Mv=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){if(e.length>2){if(!kv[e])return[e];e=kv[e]}var t=Pv(e.split(""),2),r=t[0],n=t[1],o=Av[r],i=Iv[n]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),Dv=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function Tv(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function qv(e,t){return function(r){return e.reduce((function(e,n){return e[n]=function(e,t){if("string"==typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:"-".concat(r)}(t,r),e}),{})}}function Ov(e){var t=Tv(e.theme);return Object.keys(e).map((function(r){if(-1===Dv.indexOf(r))return null;var n=qv(Mv(r),t),o=e[r];return mb(e,o,n)})).reduce(pb,{})}Ov.propTypes={},Ov.filterProps=Dv;var Lv,Nv=bb({prop:"fontFamily",themeKey:"typography"}),jv=bb({prop:"fontSize",themeKey:"typography"}),_v=bb({prop:"fontStyle",themeKey:"typography"}),zv=bb({prop:"fontWeight",themeKey:"typography"}),Fv=bb({prop:"letterSpacing"}),Hv=bb({prop:"lineHeight"}),$v=bb({prop:"textAlign"}),Bv=vb(Nv,jv,_v,zv,Fv,Hv,$v),Wv=Object.freeze({__proto__:null,alignContent:Nb,alignItems:Lb,alignSelf:Hb,bgcolor:iv,border:xb,borderBottom:Cb,borderColor:Rb,borderLeft:Eb,borderRadius:Pb,borderRight:wb,borderTop:Sb,borders:Ab,bottom:dv,boxSizing:Ev,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||hb,o=n.keys.reduce((function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(zr({theme:t.theme},t[o]))),r}),null);return pb(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(db(e.filterProps)),t},color:ov,compose:vb,createUnarySpacing:Tv,css:function(e){return kb(e)},display:Mb,flex:_b,flexBasis:Db,flexDirection:Tb,flexGrow:zb,flexShrink:Fb,flexWrap:qb,flexbox:Wb,fontFamily:Nv,fontSize:jv,fontStyle:_v,fontWeight:zv,grid:nv,gridArea:rv,gridAutoColumns:Jb,gridAutoFlow:Xb,gridAutoRows:Zb,gridColumn:Yb,gridColumnGap:Ub,gridGap:Vb,gridRow:Kb,gridRowGap:Gb,gridTemplateAreas:tv,gridTemplateColumns:Qb,gridTemplateRows:ev,height:yv,justifyContent:Ob,justifyItems:$b,justifySelf:Bb,left:pv,letterSpacing:Fv,lineHeight:Hv,maxHeight:xv,maxWidth:bv,minHeight:Sv,minWidth:vv,order:jb,palette:av,position:sv,positions:fv,right:cv,shadows:hv,sizeHeight:Cv,sizeWidth:wv,sizing:Rv,spacing:Ov,style:bb,styleFunctionSx:kb,textAlign:$v,top:uv,typography:Bv,width:gv,zIndex:lv}),Vv=Vt(Wv);var Uv,Gv={};function Yv(){if(Uv)return Gv;Uv=1;var e=jl;Object.defineProperty(Gv,"__esModule",{value:!0}),Gv.default=Gv.duration=Gv.easing=void 0;var t=e(Tg()),r={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)"};Gv.easing=r;var n={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}Gv.duration=n;var i={easing:r,duration:n,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,s=void 0===a?n.standard:a,l=i.easing,u=void 0===l?r.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))})).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 Gv.default=i,Gv}var Kv,Xv,Jv={};function Zv(){if(Xv)return Cg;Xv=1;var e=jl;Object.defineProperty(Cg,"__esModule",{value:!0}),Cg.createMuiTheme=function(){return p.apply(void 0,arguments)},Cg.default=void 0,e(kg());var t=e(Tg()),r=ug,n=e(function(){if(qg)return Og;qg=1;var e=jl;Object.defineProperty(Og,"__esModule",{value:!0}),Og.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,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,r.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=n.indexOf(t);return r===n.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof i[n[r+1]]?i[n[r+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:n,values:i,up:d,down:function(e){var t=n.indexOf(e)+1,r=i[n[t]];return t===n.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},c)},Og.keys=void 0;var t=e(ku()),r=e(Tg()),n=["xs","sm","md","lg","xl"];return Og.keys=n,Og}()),o=e(function(){if(Lg)return Ng;Lg=1;var e=jl;Object.defineProperty(Ng,"__esModule",{value:!0}),Ng.default=function(e,n,o){var i;return(0,r.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,r.default)({paddingLeft:n(2),paddingRight:n(2)},o,(0,t.default)({},e.up("sm"),(0,r.default)({paddingLeft:n(3),paddingRight:n(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(kg()),r=e(ku());return Ng}()),i=e(tb()),a=e(function(){if(rb)return nb;rb=1;var e=jl;Object.defineProperty(nb,"__esModule",{value:!0}),nb.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,b=void 0===g?400:g,v=u.fontWeightMedium,y=void 0===v?500:v,x=u.fontWeightBold,S=void 0===x?700:x,w=u.htmlFontSize,C=void 0===w?16:w,E=u.allVariants,R=u.pxToRem,P=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),A=f/14,I=R||function(e){return"".concat(e/C*A,"rem")},k=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:I(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,E)},M={h1:k(m,96,1.167,-1.5),h2:k(m,60,1.2,-.5),h3:k(b,48,1.167,0),h4:k(b,34,1.235,.25),h5:k(b,24,1.334,0),h6:k(y,20,1.6,.15),subtitle1:k(b,16,1.75,.15),subtitle2:k(y,14,1.57,.1),body1:k(b,16,1.5,.15),body2:k(b,14,1.43,.15),button:k(y,14,1.75,.4,a),caption:k(b,12,1.66,.4),overline:k(b,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:I,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},M),P,{clone:!1})};var t=e(ku()),r=e(Tg()),n=ug;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return nb}()),s=e(function(){if(ob)return ib;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(",")}ob=1,Object.defineProperty(ib,"__esModule",{value:!0}),ib.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 ib.default=t,ib}()),l=e(function(){if(ab)return sb;ab=1,Object.defineProperty(sb,"__esModule",{value:!0}),sb.default=void 0;var e={borderRadius:4};return sb.default=e,sb}()),u=e(function(){if(Lv)return lb;Lv=1,Object.defineProperty(lb,"__esModule",{value:!0}),lb.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?r(1):1===t.length?r(t[0]):t.map((function(e){if("string"==typeof e)return e;var t=r(e);return"number"==typeof t?"".concat(t,"px"):t})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n};var e=Vv;return lb}()),c=e(Yv()),d=e(function(){if(Kv)return Jv;Kv=1,Object.defineProperty(Jv,"__esModule",{value:!0}),Jv.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return Jv.default=e,Jv}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,b=void 0===g?{}:g,v=e.spacing,y=e.typography,x=void 0===y?{}:y,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(b),C=(0,n.default)(f),E=(0,u.default)(v),R=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:c.default,zIndex:d.default},S),P=arguments.length,A=new Array(P>1?P-1:0),I=1;I<P;I++)A[I-1]=arguments[I];return R=A.reduce((function(e,t){return(0,r.deepmerge)(e,t)}),R)}var f=p;return Cg.default=f,Cg}var Qv,ey={};var ty={},ry="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",ny=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function oy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,r=void 0!==t&&t,n=e.productionPrefix,o=void 0===n?"jss":n,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var n=t.options.name;if(n&&0===n.indexOf("Mui")&&!t.options.link&&!r){if(-1!==ny.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[ry]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function iy(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var o,i=t.props[r];for(o in i)void 0===n[o]&&(n[o]=i[o]);return n}var ay="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},sy="object"===("undefined"==typeof window?"undefined":ay(window))&&"object"===("undefined"==typeof document?"undefined":ay(document))&&9===document.nodeType;function ly(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Tl(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var uy={}.constructor;function cy(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(cy);if(e.constructor!==uy)return e;var t={};for(var r in e)t[r]=cy(e[r]);return t}function dy(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=cy(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var py=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},fy=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=py(e[r]," ");else t=py(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function hy(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function my(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function gy(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var o=r.indent,i=void 0===o?0:o,a=t.fallbacks;!1===r.format&&(i=-1/0);var s=hy(r),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var f=d[p];null!=f&&(n&&(n+=l),n+=my(p+":"+u+fy(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=my(h+":"+u+fy(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=my(g+":"+u+fy(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),my(""+e+u+"{"+n,--i)+my("}",i)):n}var by=/([[\].#*$><+~=|^:(),"'`\s])/g,vy="undefined"!=typeof CSS&&CSS.escape,yy=function(e){return vy?vy(e):e.replace(by,"\\$1")},xy=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,o=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var o=t;r&&!1===r.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!n)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Sy=function(e){function t(t,r,n){var o;o=e.call(this,t,r,n)||this;var i=n.selector,a=n.scoped,s=n.sheet,l=n.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Pc(Pc(o)),s),o.selectorText="."+yy(o.id)),o}gc(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=fy(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?zr({},e,{allowEmpty:!0}):e;return gy(this.selectorText,this.style,r)},ly(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(xy),wy={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Sy(e,t,r)}},Cy={indent:1,children:!0},Ey=/@([\w-]+)/,Ry=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(Ey);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new Ky(zr({},r,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=Cy);var t=hy(e).linebreak;if(null==e.indent&&(e.indent=Cy.indent),null==e.children&&(e.children=Cy.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),Py=/@container|@media|@supports\s+/,Ay={onCreateRule:function(e,t,r){return Py.test(e)?new Ry(e,t,r):null}},Iy={indent:1,children:!0},ky=/@keyframes\s+([\w-]+)/,My=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(ky);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var o=r.scoped,i=r.sheet,a=r.generateId;for(var s in this.id=!1===o?this.name:yy(a(this,i)),this.rules=new Ky(zr({},r,{parent:this})),t)this.rules.add(s,t[s],zr({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Iy);var t=hy(e).linebreak;if(null==e.indent&&(e.indent=Iy.indent),null==e.children&&(e.children=Iy.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),Dy=/@keyframes\s+/,Ty=/\$([\w-]+)/g,qy=function(e,t){return"string"==typeof e?e.replace(Ty,(function(e,r){return r in t?t[r]:e})):e},Oy=function(e,t,r){var n=e[t],o=qy(n,r);o!==n&&(e[t]=o)},Ly={onCreateRule:function(e,t,r){return"string"==typeof e&&Dy.test(e)?new My(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Oy(e,"animation-name",r.keyframes),"animation"in e&&Oy(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return qy(e,n.keyframes);default:return e}}},Ny=function(e){function t(){return e.apply(this,arguments)||this}return gc(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?zr({},e,{allowEmpty:!0}):e;return gy(this.key,this.style,r)},t}(xy),jy={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Ny(e,t,r):null}},_y=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=hy(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=gy(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return gy(this.at,this.style,e)},e}(),zy=/@font-face/,Fy={onCreateRule:function(e,t,r){return zy.test(e)?new _y(e,t,r):null}},Hy=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return gy(this.key,this.style,e)},e}(),$y={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Hy(e,t,r):null}},By=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Wy={"@charset":!0,"@import":!0,"@namespace":!0},Vy={onCreateRule:function(e,t,r){return e in Wy?new By(e,t,r):null}},Uy=[wy,Ay,Ly,jy,Fy,$y,Vy],Gy={process:!0},Yy={force:!0,process:!0},Ky=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,o=n.parent,i=n.sheet,a=n.jss,s=n.Renderer,l=n.generateId,u=n.scoped,c=zr({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+yy(this.classes[d]));var p=dy(d,t,c);if(!p)return null;this.register(p);var f=void 0===c.index?this.index.length:c.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,r){var n=this.get(e),o=this.index.indexOf(n);n&&this.remove(n);var i=r;return-1!==o&&(i=zr({},r,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Sy?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof My&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Sy?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof My&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=Gy);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var s=t.style;if(i.onUpdate(r,t,a,n),n.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,Yy)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,Yy)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=hy(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||n)&&(t&&(t+=o),t+=a)}return t},e}(),Xy=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=zr({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Ky(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var o=this.rules.add(e,t,r);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(n?n.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var o=this.rules.replace(e,t,r);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?n.renderable&&this.renderer.replaceRule(n.renderable,o):this.renderer.deleteRule(n)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var o=this.addRule(n,e[n],t);o&&r.push(o)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),Jy=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var o=this.registry.onCreateRule[n](e,t,r);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,o=0;o<this.registry.onChangeValue.length;o++)n=this.registry.onChangeValue[o](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Zy=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=Fr(t,["attached"]),o=hy(n).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=r&&s.attached!==r||(i&&(i+=o),i+=s.toString(n))}return i},ly(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Qy=new Zy,ex="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),tx="2f1acc6c3a606b082e5eef5e54414ffb";null==ex[tx]&&(ex[tx]=0);var rx=ex[tx]++,nx=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var o="",i="";return n&&(n.options.classNamePrefix&&(i=n.options.classNamePrefix),null!=n.options.jss.id&&(o=String(n.options.jss.id))),e.minify?""+(i||"c")+rx+o+t:i+r.key+"-"+rx+(o?"-"+o:"")+"-"+t}},ox=function(e){var t;return function(){return t||(t=e()),t}},ix=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},ax=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=fy(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var o=n?n.indexOf("!important"):-1,i=o>-1?n.substr(0,o-1):n;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},sx=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},lx=function(e,t){return e.selectorText=t,e.selectorText===t},ux=ox((function(){return document.querySelector("head")}));function cx(e){var t=Qy.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var o=function(e){for(var t=ux(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var dx=ox((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),px=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},fx=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},hx=function(){function e(e){this.getPropertyValue=ix,this.setProperty=ax,this.removeProperty=sx,this.setSelector=lx,this.hasInsertedRules=!1,this.cssRules=[],e&&Qy.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var i=dx();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=cx(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else ux().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,o=r;if("conditional"===e.type||"keyframes"===e.type){var i=fx(r,t);if(!1===(o=px(r,n.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(n.rules,o),o}var a=e.toString();if(!a)return!1;var s=fx(r,t),l=px(r,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof Xy&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),mx=0,gx=function(){function e(e){this.id=mx++,this.version="10.10.0",this.plugins=new Jy,this.options={id:{minify:!1},createGenerateId:nx,Renderer:sy?hx:null,plugins:[]},this.generateId=nx({minify:!1});for(var t=0;t<Uy.length;t++)this.plugins.use(Uy[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=zr({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===Qy.index?0:Qy.index+1);var n=new Xy(e,zr({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),Qy.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=zr({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var o=dy(e,t,n);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){e.plugins.use(t)})),this},e}(),bx=function(e){return new gx(e)},vx="object"==typeof CSS&&null!=CSS&&"number"in CSS;function yx(e){var t=null;for(var r in e){var n=e[r],o=typeof n;if("function"===o)t||(t={}),t[r]=n;else if("object"===o&&null!==n&&!Array.isArray(n)){var i=yx(n);i&&(t||(t={}),t[r]=i)}}return t}
|
|
91
91
|
/**
|
|
92
92
|
* A better abstraction over CSS.
|
|
93
93
|
*
|
|
@@ -118,4 +118,4 @@ function Li(e,t){let r;return r=t?Pi(e).withConfig({displayName:t.label,shouldFo
|
|
|
118
118
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
119
119
|
* See the License for the specific language governing permissions and
|
|
120
120
|
* limitations under the License.
|
|
121
|
-
*/!function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="direction\\s*:\\s*",a="['\"]?\\s*",s="(^|[^a-zA-Z])",l="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="(?:[_a-z0-9-]|"+r+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+r+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",h="(?:[!#$%&*-~]|"+r+"|"+u+")*?",m="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+h+a+"\\))",v="(?="+h+a+"\\))",y="(\\s*(?:!important\\s*)?[;}])",x=/`TMP`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),w=new RegExp("("+l+g+"[^;}]+;?)","gi"),C=new RegExp("("+l+"[^\\}]*?})","gi"),E=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),P=new RegExp(s+"(left)"+m+b+g,"gi"),A=new RegExp(s+"(right)"+m+b+g,"gi"),I=new RegExp(s+"(left)"+v,"gi"),k=new RegExp(s+"(right)"+v,"gi"),M=new RegExp(s+"(ltr)"+v,"gi"),D=new RegExp(s+"(rtl)"+v,"gi"),T=new RegExp(s+"([ns]?)e-resize","gi"),q=new RegExp(s+"([ns]?)w-resize","gi"),O=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),L=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),N=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),j=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),_=new RegExp("(border-radius\\s*:\\s*)"+p+"(?:(?:\\s+"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?)?(?:(?:(?:\\s*\\/\\s*)"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?(?:\\s+"+p+")?)?"+y,"gi"),z=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+p,"gi"),F=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),$=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),B=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),W=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function V(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function U(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function G(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter((function(e){return e})),o=r.slice(6,10).filter((function(e){return e})),i=r[10]||"";return t+(o.length?U(n)+" / "+U(o):U(n))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,r){return t+Y(r)}function X(e,t,r,n,o){return t+r+Y(n)+o}function J(e,t,r,n,o){return t+r+n+Y(o)}return{transform:function(r,o){var i=new n(w,"`NOFLIP_SINGLE`"),a=new n(C,"`NOFLIP_CLASS`"),s=new n(S,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(M,"$1"+e).replace(D,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(I,"$1"+e).replace(k,"$1left").replace(x,"right")),r=r.replace(E,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(P,"$1"+e).replace(A,"$1left").replace(x,"right").replace(T,"$1$2"+e).replace(q,"$1$2e-resize").replace(x,"w-resize").replace(_,G).replace(z,K).replace(F,J).replace(H,J).replace($,K).replace(B,X).replace(W,X).replace(O,"$1$2$3$8$5$6$7$4$9").replace(L,"$1$2$3$8$5$6$7$4$9").replace(N,V).replace(j,V),r=i.detokenize(a.detokenize(s.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}(jP,jP.exports);var _P=Wt(jP.exports),zP="comm",FP="rule",HP="decl",$P=Math.abs,BP=String.fromCharCode;function WP(e){return e.trim()}function VP(e,t,r){return e.replace(t,r)}function UP(e,t,r){return e.indexOf(t,r)}function GP(e,t){return 0|e.charCodeAt(t)}function YP(e,t,r){return e.slice(t,r)}function KP(e){return e.length}function XP(e,t){return t.push(e),e}var JP=1,ZP=1,QP=0,eA=0,tA=0,rA="";function nA(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:JP,column:ZP,length:a,return:"",siblings:s}}function oA(){return tA=eA>0?GP(rA,--eA):0,ZP--,10===tA&&(ZP=1,JP--),tA}function iA(){return tA=eA<QP?GP(rA,eA++):0,ZP++,10===tA&&(ZP=1,JP++),tA}function aA(){return GP(rA,eA)}function sA(){return eA}function lA(e,t){return YP(rA,e,t)}function uA(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function cA(e){return WP(lA(eA-1,fA(91===e?e+2:40===e?e+1:e)))}function dA(e){for(;(tA=aA())&&tA<33;)iA();return uA(e)>2||uA(tA)>3?"":" "}function pA(e,t){for(;--t&&iA()&&!(tA<48||tA>102||tA>57&&tA<65||tA>70&&tA<97););return lA(e,sA()+(t<6&&32==aA()&&32==iA()))}function fA(e){for(;iA();)switch(tA){case e:return eA;case 34:case 39:34!==e&&39!==e&&fA(tA);break;case 40:41===e&&fA(e);break;case 92:iA()}return eA}function hA(e,t){for(;iA()&&e+tA!==57&&(e+tA!==84||47!==aA()););return"/*"+lA(t,eA-1)+"*"+BP(47===e?e:iA())}function mA(e){for(;!uA(aA());)iA();return lA(e,eA)}function gA(e){return function(e){return rA="",e}(bA("",null,null,null,[""],e=function(e){return JP=ZP=1,QP=KP(rA=e),eA=0,[]}(e),0,[0],e))}function bA(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,w=n,C=y;g;)switch(h=v,v=iA()){case 40:if(108!=h&&58==GP(C,d-1)){-1!=UP(C+=VP(cA(v),"&","&\f"),"&\f",$P(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=cA(v);break;case 9:case 10:case 13:case 32:C+=dA(h);break;case 92:C+=pA(sA()-1,7);continue;case 47:switch(aA()){case 42:case 47:XP(yA(hA(iA(),sA()),t,r,l),l),5!=uA(h||1)&&5!=uA(aA()||1)||!KP(C)||" "===YP(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[u++]=KP(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=VP(C,/\f/g,"")),f>0&&(KP(C)-d||0===m&&47===h)&&XP(f>32?xA(C+";",n,r,d-1,l):xA(VP(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(XP(w=vA(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)bA(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===GP(C,3))break;case 108:if(97===GP(C,2))break;default:c=0;case 100:case 109:case 115:}c?bA(e,w,w,n&&XP(vA(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):bA(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+KP(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==oA())continue;switch(C+=BP(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(KP(C)-1)*b,b=1;break;case 64:45===aA()&&(C+=cA(iA())),p=aA(),c=d=KP(y=C+=mA(sA())),v++;break;case 45:45===h&&2==KP(C)&&(m=0)}}return i}function vA(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=function(e){return e.length}(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=YP(e,p+1,p=$P(g=a[m])),x=e;v<h;++v)(x=WP(g>0?f[v]+" "+y:VP(y,/&\f/g,f[v])))&&(l[b++]=x);return nA(e,t,r,0===o?FP:s,l,u,c,d)}function yA(e,t,r,n){return nA(e,t,r,zP,BP(tA),YP(e,2,-2),0,n)}function xA(e,t,r,n,o){return nA(e,t,r,HP,YP(e,0,n),YP(e,n+1,-1),n,o)}function SA(e,t,r){switch(e.type){case"@import":case HP:case zP:return e.return=e.return||e.value;case FP:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===zP&&(e.children=e.value)}))}var n=function(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}(Array.prototype.concat(e.children),SA);return KP(n)?e.return=e.value+"{"+n+"}":""}function wA(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===FP&&(!e.parent||"@media"===e.parent.type||e.parent.type===FP)){var o=_P.transform(SA(e));e.children=o?gA(o)[0].children:[],e.return=""}}Object.defineProperty(wA,"name",{value:"stylisRTLPlugin"});let CA=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),EA=function(e){return e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows",e}({}),RA=function(e){return e.A="ascending",e.D="descending",e}({}),PA=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const AA=[0,0],IA=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),kA=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},MA=(e,t,r)=>{const n={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 r=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return s&&re(e.localPaletteColors[t].color).blend(re(s.color),s.t)},DA=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort(((e,t)=>e.value-t.value)),e.limits=r.map((e=>({...e,value:IA(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:kA(n,t,r)})))),n},TA=(e,t,r,n)=>{const o=DA(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=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>=n&&t<i){r=MA(e,a,t);break}n=i}return r})(o,t);return a},qA=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!DR(e)));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!DR(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},OA=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=qA(e,t),o=Math.abs(t);return{min:r??t-o,max:n??t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!DR(t))return 0;let a=r&&DR(r)?Math.min(r,t):0;const s=n.sort(((e,t)=>e.value-t.value)),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}},LA=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=OA(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,r.limitPaletteColorIndex))return kA(o,r.limitPaletteColorIndex,n);const a=IA(r.limitRange,t);return TA(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},NA=(xC().palette.primary.light,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),jA=4/3,_A="12px",zA="600",FA="Source Sans Pro, sans-serif",HA={height:"auto",fontSize:_A,lineHeight:"unset",padding:"4px",borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},$A={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:zA},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},BA=(e,t)=>"rtl"===e&&"center"!==t.resolvedImagePosition?.horizontal?t.resolvedImagePosition?.horizontal&&(e=>"flex-start"===e?"flex-end":"flex-start")(t.resolvedImagePosition?.horizontal):t.resolvedImagePosition?.horizontal,WA=(e,t)=>e.representation.type===qE.Image&&"fitHeight"===e.representation.imageSize?BA(t,e.representation):e.align,VA=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",UA=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},GA=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,YA=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",KA=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",XA=24,JA=ac("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),ZA=ac(Xd,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})((({textAlign:e,theme:t,direction:r,isPagination:n})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===r?VA(e,n):void 0}))),QA=ac(Xd,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})((({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${YC}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${YC}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),eI=ac(Xd,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"}))),tI=ac(Xd,{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"}))),rI=ac(ad,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})((({hoverBackground:e,activeBackground:t,isActive:r,order:n})=>({padding:"4px !important",width:"fit-content",height:"auto",background:r?t:void 0,"&:hover":{background:e},color:"inherit",order:n}))),nI=25e4,oI=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:u},label:c,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{n[a]=Math.min(eE.PixelsMax,Math.max(eE.PixelsMin,f)),i-=n[a]};switch(s){case tE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?eE.PixelsDefault:+e)(l),h();break;case tE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?eE.PercentageDefault:+e)(u)/100*t,h();break;case tE.FitToContent:e.representation?.type===qE.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case tE.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}})),o.length){const e=i/o.length;o.forEach((t=>{n[t]=Math.max(eE.AutoMinTable,e)}))}return n},iI=(e,t,r)=>{const n=r.size,o=n>=t.size;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},aI=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},sI=e=>e.ctrlKey||e.metaKey,lI=e=>e.shiftKey&&sI(e),uI=e=>[ZC.Left,ZC.Right,ZC.Up,ZC.Down].includes(e),cI=e=>e.shiftKey&&uI(e.key),dI=e=>(e=>uI(e)||[ZC.Home,ZC.End,ZC.PageUp,ZC.PageDown].includes(e))(e.key)&&!lI(e),pI=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)r?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(n)}return l=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?(new Map).set(n,o):(e.has(n)?e.delete(n):e.set(n,o),new Map(e))})(l,i,s),iI(a,n,l),l.size?(r?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(r?.cancel(),{...e,rows:l,colIdx:-1})},fI=(e,t)=>{const{api:r,rows:n,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:u}=t;if(!(a||"key"in u&&cI(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&cI(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===ZC.Down?1:-1,o=e[r.pageRowIdx+t][r.pageColIdx];return i.set(o.qElemNumber,r.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),s=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=s;t++){const r=e[t][o.pageColIdx];i.set(r.qElemNumber,r.rowIdx)}return i})(i,n,s,u,a);return iI(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},hI=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},mI=(e,t)=>{switch(t.type){case EA.Select:return pI(e,t.payload);case EA.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case EA.SelectMouseUp:return((e,t)=>hI(e.isSelectMultiValues||e.firstCell!==t.cell?e:pI(e,t)))(e,t.payload);case EA.SelectMultiAdd:return fI(e,t.payload);case EA.SelectMultiEnd:return hI(e);case EA.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case EA.Clear:return e.rows.size?{...e,rows:new Map}:e;case EA.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},gI=4/3,bI=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function vI(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const yI=(e,t)=>e?{borderBottomColor:wC.DARK_MODE_BORDER,borderRightColor:wC.DARK_MODE_BORDER,borderLeftColor:wC.DARK_MODE_BORDER,borderTopColor:wC.DARK_MODE_BORDER}:{borderLeftColor:wC.BORDER_MEDIUM,borderRightColor:wC.BORDER_MEDIUM,borderTopColor:wC.BORDER_HEAVY,borderBottomColor:t?wC.BORDER_HEAVY:wC.BORDER_LIGHT},xI=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*gI+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},SI=e=>e.components?.find((e=>"theme"===e.key)),wI=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:bI(r?.fontColor)?vI(wC.TEXT,t,r?.fontColor):i||wC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...yI(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function CI(e,t,r){const n=SI(e)?.header,o=wI("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=re(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=RC(o.background??wC.WHITE,rE),o.activeBackground=RC(o.background??wC.WHITE,nE),o}const EI=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach((e=>(e=>e in $A)(e)&&Object.assign(t,$A[e]))),t};function RI(e,t,r){const n={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach(((e,t)=>{const i=e.qText,a=i&&AC(i);a&&"none"!==a&&(n[r[t]]=a),o=i?EI(i,o):o})),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=CC(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const PI=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},AI=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=PI(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},II=(e,t,r,n=wC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=AI(e,t,r);return TC(i,o,a,n)??n},kI=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return _A}},MI=e=>e?.some((e=>"italic"===e))?"italic":"normal",DI=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?zA:"normal",TI=e=>!1===e?1:3,qI=e=>parseInt(e??HA.fontSize,10)*jA,OI=e=>e?.some((e=>"underline"===e))?"underline":"none",LI=(e,t,r,n,o)=>{const{header:i,dimensionValues:a,measureValues:s,totalValues:l,nullValues:u,grid:c,content:d}=SI(t)??{},p=NP(t,o)?wC.WHITE:wC.TRANSPARENT,f=II(n,i,"object.straightTableV2.dimension.label.name.backgroundColor",p),h=o.viewState?.maxLineCount??d?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),m={header:{fontFamily:i?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??r.head.fontFamily??FA,fontSize:kI(i?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??r.head.fontSize),fontStyle:MI(i?.fontStyle),fontWeight:DI(i?.fontStyle,zA),textDecoration:OI(i?.fontStyle),color:PI(n,i?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??r.head.color??wC.TEXT,background:f},headerMenuHoverBackground:RC(f,rE),headerMenuActiveBackground:RC(f,nE),dimension:{values:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??r.body.fontFamily??FA,fontSize:kI(a?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??r.body.fontSize),fontStyle:MI(a?.fontStyle),fontWeight:DI(a?.fontStyle,"normal"),textDecoration:OI(a?.fontStyle),color:PI(n,a?.fontColor)??PI(n,d?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??r.body.color??wC.TEXT,background:AI(n,a,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??r.body.background??wC.TRANSPARENT}},measure:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??r.body.fontFamily??FA,fontSize:kI(s?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??r.body.fontSize),fontStyle:MI(s?.fontStyle),fontWeight:DI(s?.fontStyle,"normal"),textDecoration:OI(s?.fontStyle),color:PI(n,s?.fontColor)??PI(n,d?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??r.body.color??wC.TEXT,background:AI(n,s,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??r.body.background??wC.TRANSPARENT}},totalRow:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??r.totals.fontFamily??FA,fontSize:kI(l?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??r.totals.fontSize),fontStyle:MI(l?.fontStyle),fontWeight:DI(l?.fontStyle,zA),textDecoration:OI(l?.fontStyle),color:PI(n,l?.fontColor)??PI(n,d?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??r.totals.color??wC.TEXT,background:II(n,l,"object.straightTableV2.total.label.value.backgroundColor",p)},nullValues:{fontStyle:MI(u?.fontStyle),fontWeight:DI(u?.fontStyle,"normal"),textDecoration:OI(u?.fontStyle),color:PI(n,u?.fontColor)??PI(n,d?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??r.body.color??wC.TEXT,background:PI(n,u?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??wC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:h??TI(t.multiline?.wrapTextInCells),headerLineClamp:TI(t.multiline?.wrapTextInHeaders),border:PI(n,c?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?wC.DARK_MODE_BORDER:wC.BORDER_MEDIUM),divider:PI(n,c?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??wC.BORDER_HEAVY,hoverColors:{color:PI(n,d?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??r.body.hoverColors?.color,background:PI(n,d?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??r.body.hoverColors?.background},zebraStripes:{show:!!c?.zebraStripes?.show,odd:{color:PI(n,c?.zebraStripes?.color?.odd),background:PI(n,c?.zebraStripes?.background?.odd)},even:{color:PI(n,c?.zebraStripes?.color?.even),background:PI(n,c?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===PI(n,u?.background),overrideNullValueColor:void 0===PI(n,u?.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:EC(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:h},{headerMinRowHeight:g,totalRowLineHeight:b,totalRowMinHeight:v,contentLineHeight:y,contentMinRowHeight:x}=(e=>{const t=Math.max(qI(e.header.fontSize)+8,32),r=qI(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(qI(e.dimension.values.fontSize),qI(e.measure.values.fontSize)),i=(e.contentStaticLineCount||1)*o;return{headerMinRowHeight:t,totalRowLineHeight:r,totalRowMinHeight:n,contentLineHeight:o,contentMinRowHeight:Math.max(i+8+1,24)}})(m);return m.headerMinRowHeight=g,m.totalRowLineHeight=b,m.totalRowMinHeight=v,m.contentLineHeight=y,m.contentMinRowHeight=x,m},NI=(e,t,r,n)=>{const o=C((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){const o=SI(e)?.content,i=wI("content",t,o);i.background=t.background.color;const a=xI(i.fontSize,r,n),s=o?.hoverColor,l=o?.hoverFontColor,u=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),c=t.getStyle("object","","straightTableV2.content.hover.color"),d=bI(l)||!!c,p=bI(s)||!!u,f=d||p;let h;h=bI(s)?vI(wC.HOVER,t,s):u||(d?"":wC.HOVER);const m=f?vI(CC(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(e,t,r.rows.length,n),a=CI(e,t,!o),s=function(e,t,r){const n=SI(e)?.content,o=wI("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=CI(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(e,t,o);return{body:i,head:a,totals:s}}),[e,t,r,n]);return o},jI=new Map;const _I=M({}),zI=function(e){const t=M([()=>{},new Set]);return jI.set(e,t),({children:r,value:n})=>{const o=D(n),i=D(new Set);E((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=T((()=>o.current),[o]),s=C((()=>[a,i.current]),[a]);return tr.jsx(e.Provider,{value:n,children:tr.jsx(t.Provider,{value:s,children:r})})}}(_I),FI={rows:[],columns:[],totalsPosition:{}},HI=({app:e,children:t,tableData:r=FI,selectionsAPI:n,cellCoordMock:o,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:h,setPage:m,pageInfo:g,initialDataPages:b,rect:v,viewService:y,downloadService:x,env:S,direction:E})=>{const[R,P]=w(0),[A,I]=w(o||AA),[M,D]=((e,t)=>{const[r,n]=k(mI,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[T,q]=w(-1),O=NI(i,u,r,d),L=((e,t,r,n,o)=>C((()=>LI(0,t,r,n,o)),[t,r,e,n,o]))(S,i,O,u,y),[N,j,_,z,F,H]=((e,t,r,n,o=!0)=>{const i=t.atBottom||t.atTop,a=zC({...n.header,fontWeight:zA},{maxNbrLinesOfText:3}).measureText,s=zC({...n.totalRow,fontWeight:zA},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=zC(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:u}=zC(n.measure.values,{maxNbrLinesOfText:3}),c=C((()=>(e,t,r,n,c,d,p)=>{let f=0;if(o){const t=4;let r=25;r+=t+24,n&&(r+=20+t),c&&(r+=20),f=a(e)+r}else{let t=9;t+=16,p&&(t+=XA),t+=XA,t+=XA,f=a(e)+t}const h=d?l:u;return Math.max(f,i?s(t)+24+1:0,h(r))}),[l,u,a,s,i,o]),[d,p]=w(0),[f,h]=w(!1),[m,g]=w((()=>oI(e,r,c)));BC((()=>{g(oI(e,r-d,c)),h(!1)}),[e,r,d,c]);const b=C((()=>((e,t,r)=>e.length>0&&e.reduce(((e,t)=>e+t))+t<r)(m,d,r)),[m,d,r]);return[m,g,p,b,f,h]})(r.columns,r.totalsPosition,v.width,L,i.accessibleHeader),$=C((()=>({app:e,selectionsAPI:n,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:h,rect:v,viewService:y,styleService:L,direction:E,downloadService:x})),[e,n,i,a,s,l,u,c.active,d,p,f,h,v,y,L,E,x]);return tr.jsx(zI,{value:{headRowHeight:R,setHeadRowHeight:P,focusedCellCoord:A,setFocusedCellCoord:I,selectionState:M,selectionDispatch:D,hoverIndex:T,setHoverIndex:q,columnWidths:N,setColumnWidths:j,baseProps:$,tableData:r,setYScrollbarWidth:_,setPage:m,pageInfo:g,initialDataPages:b,showRightBorder:z,env:S,isAdjustingWidth:F,setIsAdjustingWidth:H},children:t})};function $I(e,t){const r=function(e){return jI.get(e)}(e),[n,o]=S(r),[,i]=k((e=>e+1),0),a=D(t),s=D(),l=n();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const u=C((()=>t(l)),[l,t]);return E((()=>{a.current=t,s.current=u}),[l,u,t]),E((()=>{const e=e=>{a.current(e)!==s.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function BI(e){const t=xC();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Cu({...t,direction:e})}const WI={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},VI={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},UI=ac("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-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":{...WI},"&::-moz-range-track":{...WI},"&::-ms-track":{...WI},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...VI},"&::-moz-range-thumb":{...VI},"&::-ms-thumb":{...VI},"&: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"}}))),GI=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:u,accessibilityRelatedArgs:c,direction:d="ltr"})=>{const p=VC({translator:c.translator}),f=D({initWidth:e,columnWidth:e,initX:0}),h=r?0:1,m=n&&!u,g=()=>m?f.current.columnWidth-h:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:t??f.current.initX}};BC((()=>{m&&v()}),[e]);const y=e=>{const t=Math.max(e,eE.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:tE.Pixels,pixels:f.current.columnWidth};a(e)}else l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{kC(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),x()},C=e=>{const t="rtl"===d?f.current.initWidth+-f.current.initX-e.touches[0].clientX:f.current.initWidth+e.touches[0].clientX-f.current.initX;y(t)},E=e=>{kC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===ZC.Left||e.key===ZC.Right){kC(e);const t=5,r=e.key===ZC.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===ZC.Space||e.key===ZC.Enter?(kC(e),s(e),l?.(!1),x()):e.key===ZC.Esc&&(kC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,P=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return tr.jsx(UI,{style:b,hoverColor:o,isLastColumn:r,className:QC,"data-testid":QC,onMouseDown:e=>{kC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:tE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(kC(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":P,"aria-valuemin":eE.PixelsMin,"aria-valuemax":eE.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},YI=q(((e,t)=>tr.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:tr.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),KI=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const r=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",r,t)}catch(e){console.error(e)}}}return null},XI=ac(Xd,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})((({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:r})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:r?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:r?"100%":void 0,alignItems:"center",justifyContent:"center"}))),JI=ac(YI,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),ZI=ac(Tf)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),QI=ac(Ip)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),ek=ac(jf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),tk=ac(jf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({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:r?"rgba(0, 0, 0, 0.05)":"transparent"}))),rk=ac("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),nk=ac("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),ok=ac(pd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),ik=ac(of,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0}))),ak=q(((e,t)=>tr.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:tr.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),sk=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?sk(t):t:e.parentElement?.children?.[0]},lk=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?lk(t):t},uk=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===ZC.Down||t===ZC.Up){const r=e=>t===ZC.Down?sk(e):lk(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},ck=(e,t)=>e.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((({onClick:e,...r})=>({...r,...e?{onClick:async r=>{Object.entries(t).forEach((([,e])=>{e(!1)})),await e(r)}}:{}})))})))));let dk={};const pk=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:u,isPagination:c})=>{const[d,p]=w(!1),f=x.useRef(null),h=T((e=>{e.stopPropagation(),p(!1)}),[p]);return tr.jsxs(tr.Fragment,{children:[tr.jsxs(tk,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),dk={}),a?.length&&(p(!0),dk[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:uk,children:[l?tr.jsx(rk,{direction:u,isPagination:c}):null,tr.jsxs(nk,{children:[tr.jsx(ik,{direction:u,isPagination:c,children:tr.jsx(o,{})}),tr.jsx(ok,{variant:"body2",children:n})]}),a?.length?tr.jsx(ak,{}):null]},t),a?.length?tr.jsx(gk,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:ck(a,dk),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},fk=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&tr.jsx(ek,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>tr.jsx(pk,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),hk=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[fk({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?tr.jsx(QI,{"data-testid":"group-divider",variant:"middle"}):void 0])),mk={appear:0,enter:0,exit:0},gk=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?tr.jsx(ZI,{className:KC,open:t,anchorEl:e,onClose:r,transitionDuration:mk,MenuListProps:{id:XC},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:hk({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,bk=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>T((()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:o,onPopoverClose:i})}}),[e,t,r,n?.qStateName,o,i]),vk=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),yk=(e,t)=>e.some((e=>t[e]>0)),xk={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},Sk=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=w(null),[a,s]=w(xk);return BC((()=>{e||(s(xk),i(null))}),[e]),E((()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=vk(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};o=c.qInfo?.qId,a?l():(i(u),d&&s((e=>({canSelectAll:yk(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:yk(["qSelected"],e),canSelectPossible:yk(["qOption"],e),canSelectAlternative:yk(["qAlternative"],e),canSelectExcluded:yk(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},wk=q(((e,t)=>tr.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:tr.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"})}))),Ck=q(((e,t)=>tr.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:tr.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"})}))),Ek=q(((e,t)=>tr.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:tr.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"})}))),Rk=q(((e,t)=>tr.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:tr.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"})}))),Pk=q(((e,t)=>tr.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:tr.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})}))),Ak=q(((e,t)=>tr.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:tr.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"})}))),Ik=q(((e,t)=>tr.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:tr.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"})}))),kk=q(((e,t)=>tr.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:tr.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"})}))),Mk=q(((e,t)=>tr.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:tr.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"})}))),Dk=q(((e,t)=>tr.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:tr.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"})}))),Tk=q(((e,t)=>tr.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:tr.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"})}))),qk=q(((e,t)=>tr.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:tr.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"})}))),Ok=q(((e,t)=>tr.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:tr.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"})}))),Lk=q(((e,t)=>tr.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:tr.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 Nk=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const jk="/qListObjectDef",_k=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[Nk.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(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(o?.(e,"A")),n(!1)},icon:wk,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),n(!1)},icon:Rk,enabled:s,isActive:!!r&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:kk,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:Pk,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[Nk.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:Mk,enabled:!0}]}]),!e.isLocked&&r[Nk.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:Lk,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(jk))},icon:Dk,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(jk))},icon:Ok,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(jk))},icon:Tk,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(jk))},icon:qk,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(jk))},icon:Ck,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:Ik,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:Ak,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[Nk.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:Ek,enabled:!0}]}]),f},zk=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:u,selectionRelatedArgs:c,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:b=UC})=>{const v=D(null),y=VC({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=Sk({open:e,headerData:n,app:C,qStateName:c?.qStateName}),P=KI({model:f,headerData:n}),A=bk({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),I=T((e=>{e.stopPropagation(),t(!1)}),[t]),k=T((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?tr.jsxs(XI,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:YC,onClick:!1===g?k:void 0,ref:v,isAccessibleHeader:g,children:[s?tr.jsx(JI,{height:b,className:GC,"data-testid":GC,isInteractionsActive:i.active??!1,children:tr.jsx(YI,{})}):null,tr.jsx(gk,{open:e,anchorEl:!1===g?v.current:r.current,onClose:I,menuGroups:_k({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:A,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:P,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},Fk=e=>e.isDark?{background:e.color,borderColor:wC.DARK_MODE_BORDER,color:wC.DARK_MODE_TEXT,disabledColor:wC.DARK_MODE_DISABLED,iconColor:wC.DARK_MODE_TEXT}:{background:e.color,borderColor:wC.BORDER_MEDIUM,color:wC.TEXT,disabledColor:wC.DISABLED},Hk=ac(Xd,{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}`}))),$k=ac(bh,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),Bk=ac(ap,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)}))),Wk=ac(pd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),Vk=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=C((()=>Fk(n.background)),[n]);if(!r.active)return null;const a=o?tr.jsx(Hk,{footerStyle:i,children:e}):null;return t?H.createPortal(e,t):a},Uk=M({}),Gk=()=>S(Uk),Yk=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const b=(e=>!e.enabled||e.active)(c)?0:-1,v=C((()=>Fk(p.background)),[p]),y=o?o.getBoundingClientRect().width:h.width,x=VC({translator:d}),S=C((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:v,tabIndex:b,width:y,visibilityThreshold:g})),[t,r,n,o,i,a,s,l,u,c,x,p,f,h,m,v,b,y,g]);return tr.jsx(Uk.Provider,{value:S,children:e})};let Kk=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),Xk=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 Jk=q(((e,t)=>tr.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:tr.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),Zk=q(((e,t)=>tr.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:tr.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),Qk=q(((e,t)=>tr.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:tr.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),eM={FirstPage:Zk,PreviousPage:Jk,NextPage:ak,LastPage:Qk,FirstPageRTL:Qk,PreviousPageRTL:ak,NextPageRTL:Jk,LastPageRTL:Zk},tM=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=Gk(),u=r.concat("rtl"===n?"RTL":""),c=eM[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:l,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},rM=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=Gk(),o=0===e.page,{IconComponent:i,styledProps:a}=tM({type:Kk.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||Xk.FirstPage)?null:tr.jsx(Bk,{...a,disabled:!r.active,children:tr.jsx(i,{height:UC})})},nM=(e,t,r=!1)=>{r&&e.key===ZC.Tab&&!e.shiftKey&&(kC(e),IC(e.target,t,!1))},oM=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=Gk(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=tM({type:Kk.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{nM(e,t,n)}:void 0;return o<=(a?.lastPage||Xk.LastPage)?null:tr.jsx(Bk,{...u,onKeyDown:c,disabled:!i.active,children:tr.jsx(l,{height:UC})})},iM=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=Gk(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=tM({type:Kk.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>Xk.FirstPage&&o>Xk.LastPage)&&t.enabled?e=>{nM(e,t,n)}:void 0;return tr.jsx(Bk,{...l,onKeyDown:u,disabled:!i.active,children:tr.jsx(s,{height:UC})})},aM=()=>{const{pageInfo:e,interactions:t}=Gk(),r=0===e.page,{IconComponent:n,styledProps:o}=tM({type:Kk.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return tr.jsx(Bk,{...o,disabled:!t.active,children:tr.jsx(n,{height:UC})})},sM=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=Gk(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||Xk.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return tr.jsx(Wk,{variant:"caption",dir:"ltr",children:s})},lM=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=Gk(),u=o.qInfo.qId,c=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return tr.jsxs(tr.Fragment,{children:[tr.jsxs(Wk,{variant:"caption",id:p,children:[c,":"]}),tr.jsx($k,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},uM=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=Gk();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||Xk.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=tr.jsx(tr.Fragment,{children:e.rowsPerPageOptions.map((e=>tr.jsx("option",{value:e,children:e},e)))});return tr.jsx(lM,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},cM=1e3,dM="…",pM=({totalPages:e,page:t})=>{const r=Math.min(e,cM),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-cM):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return tr.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(tr.jsx("option",{value:dM,disabled:!0,children:dM},"startMoreOptions")),o<e-1&&a.push(tr.jsx("option",{value:dM,disabled:!0,children:dM},"endMoreOptions")),tr.jsx(tr.Fragment,{children:a})},fM=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=Gk(),{page:i}=e;if(t<=(o?.selectPage||Xk.SelectPage))return null;const a=tr.jsx(pM,{totalPages:r,page:i});return tr.jsx(lM,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var hM=O((e=>tr.jsxs(Yk,{...e,children:[tr.jsx(uM,{}),tr.jsx(fM,{}),tr.jsx(sM,{}),tr.jsx(rM,{}),tr.jsx(aM,{}),tr.jsx(iM,{}),tr.jsx(oM,{})]})));const mM=e=>tr.jsx(Vk,{...e,children:tr.jsx(hM,{...e})});var gM=Symbol.for("preact-signals");function bM(){if(wM>1)wM--;else{for(var e,t=!1;void 0!==SM;){var r=SM;for(SM=void 0,CM++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&IM(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(CM=0,wM--,t)throw e}}function vM(e){if(wM>0)return e();wM++;try{return e()}finally{bM()}}var yM=void 0;function xM(e){var t=yM;yM=void 0;try{return e()}finally{yM=t}}var SM=void 0,wM=0,CM=0,EM=0;function RM(e){if(void 0!==yM){var t=e.n;if(void 0===t||t.t!==yM)return t={i:0,S:e,p:yM.s,n:void 0,t:yM,e:void 0,x:void 0,r:t},void 0!==yM.s&&(yM.s.n=t),yM.s=t,e.n=t,32&yM.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=yM.s,t.n=void 0,yM.s.n=t,yM.s=t),t}}function PM(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function AM(e,t){return new PM(e,t)}function IM(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function kM(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function MM(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function DM(e,t){PM.call(this,void 0),this.x=e,this.s=void 0,this.g=EM-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function TM(e,t){return new DM(e,t)}function qM(e){var t=e.u;if(e.u=void 0,"function"==typeof t){wM++;var r=yM;yM=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,OM(e),t}finally{yM=r,bM()}}}function OM(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,qM(e)}function LM(e){if(yM!==this)throw new Error("Out-of-order effect");MM(this),yM=e,this.f&=-2,8&this.f&&OM(this),bM()}function NM(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=null==t?void 0:t.name}function jM(e,t){var r=new NM(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}PM.prototype.brand=gM,PM.prototype.h=function(){return!0},PM.prototype.S=function(e){var t=this,r=this.t;r!==e&&void 0===e.e&&(e.x=r,this.t=e,void 0!==r?r.e=e:xM((function(){var e;null==(e=t.W)||e.call(t)})))},PM.prototype.U=function(e){var t=this;if(void 0!==this.t){var r=e.e,n=e.x;void 0!==r&&(r.x=n,e.e=void 0),void 0!==n&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&xM((function(){var e;null==(e=t.Z)||e.call(t)})))}},PM.prototype.subscribe=function(e){var t=this;return jM((function(){var r=t.value,n=yM;yM=void 0;try{e(r)}finally{yM=n}}),{name:"sub"})},PM.prototype.valueOf=function(){return this.value},PM.prototype.toString=function(){return this.value+""},PM.prototype.toJSON=function(){return this.value},PM.prototype.peek=function(){var e=yM;yM=void 0;try{return this.value}finally{yM=e}},Object.defineProperty(PM.prototype,"value",{get:function(){var e=RM(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(CM>100)throw new Error("Cycle detected");this.v=e,this.i++,EM++,wM++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{bM()}}}}),DM.prototype=new PM,DM.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===EM)return!0;if(this.g=EM,this.f|=1,this.i>0&&!IM(this))return this.f&=-2,!0;var e=yM;try{kM(this),yM=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return yM=e,MM(this),this.f&=-2,!0},DM.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}PM.prototype.S.call(this,e)},DM.prototype.U=function(e){if(void 0!==this.t&&(PM.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},DM.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(DM.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=RM(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),NM.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},NM.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,qM(this),kM(this),wM++;var e=yM;return yM=this,LM.bind(this,e)},NM.prototype.N=function(){2&this.f||(this.f|=2,this.o=SM,SM=this)},NM.prototype.d=function(){this.f|=8,1&this.f||OM(this)},NM.prototype.dispose=function(){this.d()};var _M,zM,FM,HM,$M,BM,WM,VM,UM,GM,YM,KM,XM,JM,ZM,QM,eD,tD,rD,nD,oD=Object.create,iD=Object.defineProperty,aD=Object.defineProperties,sD=Object.getOwnPropertyDescriptor,lD=Object.getOwnPropertyDescriptors,uD=Object.getOwnPropertySymbols,cD=Object.prototype.hasOwnProperty,dD=Object.prototype.propertyIsEnumerable,pD=e=>{throw TypeError(e)},fD=(e,t,r)=>t in e?iD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hD=(e,t)=>iD(e,"name",{value:t,configurable:!0}),mD=["class","method","getter","setter","accessor","field","value","get","set"],gD=e=>void 0!==e&&"function"!=typeof e?pD("Function expected"):e,bD=(e,t,r,n,o)=>({kind:mD[e],name:t,metadata:n,addInitializer:e=>r._?pD("Already initialized"):o.push(gD(e||null))}),vD=(e,t)=>{return fD(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},yD=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},xD=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=mD[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&sD(d<4?o:{get[r](){return CD(this,i)},set[r](e){return RD(this,i,e)}},r));d?f&&d<4&&hD(i,(d>2?"set ":d>1?"get ":"")+r):hD(o,r);for(var y=n.length-1;y>=0;y--)u=bD(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>wD(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?CD:PD)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>RD(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?gD(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?pD("Object expected"):(gD(a=s.get)&&(v.get=a),gD(a=s.set)&&(v.set=a),gD(a=s.init)&&g.unshift(a));return d||vD(e,o),v&&iD(o,r,v),f?4^d?i:v:o},SD=(e,t,r)=>t.has(e)||pD("Cannot "+r),wD=(e,t)=>Object(t)!==t?pD('Cannot use the "in" operator on this value'):e.has(t),CD=(e,t,r)=>(SD(e,t,"read from private field"),r?r.call(e):t.get(e)),ED=(e,t,r)=>t.has(e)?pD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),RD=(e,t,r,n)=>(SD(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),PD=(e,t,r)=>(SD(e,t,"access private method"),r);function AD(e,t){if(t){let r;return TM((()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)}))}return TM(e)}function ID(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some(((e,r)=>!ID(e,t[r])))}if("object"==typeof e&&"object"==typeof t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=r.some((r=>!ID(e[r],t[r])));return!o}return!1}function kD({get:e},t){return{init:e=>AM(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function MD(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=AD(e.bind(this)),r.set(this,t)),t.value}}function DD(e=!0){return function(t,r){r.addInitializer((function(){const t="field"===r.kind||r.static?this:Object.getPrototypeOf(this),n=Object.getOwnPropertyDescriptor(t,r.name);n&&Object.defineProperty(t,r.name,((e,t)=>aD(e,lD(t)))(((e,t)=>{for(var r in t||(t={}))cD.call(t,r)&&fD(e,r,t[r]);if(uD)for(var r of uD(t))dD.call(t,r)&&fD(e,r,t[r]);return e})({},n),{enumerable:e}))}))}}function TD(...e){const t=e.map((e=>jM(e)));return()=>t.forEach((e=>e()))}BM=[kD],$M=[kD],HM=[kD],FM=[DD()],zM=[DD()],_M=[DD()];var qD,OD=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,yD(WM,5,this),ED(this,KM),ED(this,VM,yD(WM,8,this)),yD(WM,11,this),ED(this,XM,yD(WM,12,this)),yD(WM,15,this),ED(this,eD,yD(WM,16,this)),yD(WM,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return CD(this,KM,rD)}get initial(){return CD(this,KM,GM)}get previous(){return CD(this,KM,ZM)}set current(e){const t=xM((()=>CD(this,KM,rD)));e&&t&&this.equals(t,e)||vM((()=>{CD(this,KM,GM)||RD(this,KM,e,YM),RD(this,KM,t,QM),RD(this,KM,e,nD)}))}reset(e=this.defaultValue){vM((()=>{RD(this,KM,void 0,QM),RD(this,KM,e,YM),RD(this,KM,e,nD)}))}};function LD(e){return xM((()=>{const t={};for(const r in e)t[r]=e[r];return t}))}WM=[,,,oD(null)],VM=new WeakMap,KM=new WeakSet,XM=new WeakMap,eD=new WeakMap,UM=xD(WM,20,"#initial",BM,KM,VM),GM=UM.get,YM=UM.set,JM=xD(WM,20,"#previous",$M,KM,XM),ZM=JM.get,QM=JM.set,tD=xD(WM,20,"#current",HM,KM,eD),rD=tD.get,nD=tD.set,xD(WM,2,"current",FM,OD),xD(WM,2,"initial",zM,OD),xD(WM,2,"previous",_M,OD),vD(WM,OD);qD=new WeakMap;var ND,jD,_D,zD,FD,HD=Object.create,$D=Object.defineProperty,BD=Object.getOwnPropertyDescriptor,WD=Object.getOwnPropertySymbols,VD=Object.prototype.hasOwnProperty,UD=Object.prototype.propertyIsEnumerable,GD=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),YD=e=>{throw TypeError(e)},KD=Math.pow,XD=(e,t,r)=>t in e?$D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,JD=["class","method","getter","setter","accessor","field","value","get","set"],ZD=e=>void 0!==e&&"function"!=typeof e?YD("Function expected"):e,QD=(e,t,r,n,o)=>({kind:JD[e],name:t,metadata:n,addInitializer:e=>r._?YD("Already initialized"):o.push(ZD(e||null))}),eT=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=JD[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,BD(o,r)),h=n.length-1;h>=0;h--)(l=QD(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,ZD(a)&&(f[d]=a);return f&&$D(o,r,f),o},tT=(e,t,r)=>t.has(e)||YD("Cannot "+r),rT=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},nT=class e{constructor(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,r){const{top:n,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,n+r,i,a);return l.scale=((e,t)=>{for(var r in t||(t={}))VD.call(t,r)&&XD(e,r,t[r]);if(WD)for(var r of WD(t))UD.call(t,r)&&XD(e,r,t[r]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:r,top:n,right:o,bottom:i}=this;return{width:e,height:t,left:r,top:n,right:o,bottom:i}}get center(){const{left:e,top:t,right:r,bottom:n}=this;return new rT((e+r)/2,(t+n)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:r,top:n,width:o,height:i}=this;return r===t.left&&n===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:r,bottom:n,right:o}=this;return t<=e.y&&e.y<=n&&r<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-n,s=i-r;if(n<o&&r<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,r=this.intersectionArea(e);return r/(e.area+t-r)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:r,width:n,height:o}){return new e(r,t,n,o)}static delta(e,t,r={x:"center",y:"center"}){const n=(e,t)=>{const n=r[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==n?o:"end"==n?o+i:o+i/2};return rT.delta({x:n(e,"x"),y:n(e,"y")},{x:n(t,"x"),y:n(t,"y")})}static intersectionRatio(t,r){return e.from(t).intersectionRatio(e.from(r))}};var oT,iT=class extends(_D=OD,jD=[MD],ND=[MD],_D){constructor(e){var t,r,n;super(rT.from(e),((e,t)=>rT.equals(e,t))),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(FD,5,this),t=this,n=0,(r=zD).has(t)?YD("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return rT.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=rT.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(tT(a=this,s=zD,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);vM((()=>{((e,t,r)=>{tT(e,t,"write to private field"),t.set(e,r)})(this,zD,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(rT.from(e)),this.velocity={x:0,y:0}}};function aT({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(KD(n,2)+KD(o,2))>r:"x"in r&&"y"in r?n>r.x&&o>r.y:"x"in r?n>r.x:"y"in r&&o>r.y}FD=(e=>{var t;return[,,,HD(null!=(t=null==e?void 0:e[GD("metadata")])?t:null)]})(_D),zD=new WeakMap,eT(FD,2,"delta",jD,iT),eT(FD,2,"direction",ND,iT),oT=FD,XD(iT,GD("metadata"),oT[3]);var sT,lT,uT,cT,dT=(e=>(e.Horizontal="x",e.Vertical="y",e))(dT||{}),pT=Object.values(dT),fT=Object.create,hT=Object.defineProperty,mT=Object.defineProperties,gT=Object.getOwnPropertyDescriptor,bT=Object.getOwnPropertyDescriptors,vT=Object.getOwnPropertySymbols,yT=Object.prototype.hasOwnProperty,xT=Object.prototype.propertyIsEnumerable,ST=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),wT=e=>{throw TypeError(e)},CT=(e,t,r)=>t in e?hT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ET=(e,t)=>{for(var r in t||(t={}))yT.call(t,r)&&CT(e,r,t[r]);if(vT)for(var r of vT(t))xT.call(t,r)&&CT(e,r,t[r]);return e},RT=(e,t)=>mT(e,bT(t)),PT=(e,t)=>hT(e,"name",{value:t,configurable:!0}),AT=(e,t)=>{var r={};for(var n in e)yT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&vT)for(var n of vT(e))t.indexOf(n)<0&&xT.call(e,n)&&(r[n]=e[n]);return r},IT=e=>{var t;return[,,,fT(null!=(t=null==e?void 0:e[ST("metadata")])?t:null)]},kT=["class","method","getter","setter","accessor","field","value","get","set"],MT=e=>void 0!==e&&"function"!=typeof e?wT("Function expected"):e,DT=(e,t,r,n,o)=>({kind:kT[e],name:t,metadata:n,addInitializer:e=>r._?wT("Already initialized"):o.push(MT(e||null))}),TT=(e,t)=>CT(t,ST("metadata"),e[3]),qT=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},OT=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=kT[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&gT(d<4?o:{get[r](){return jT(this,i)},set[r](e){return zT(this,i,e)}},r));d?f&&d<4&&PT(i,(d>2?"set ":d>1?"get ":"")+r):PT(o,r);for(var y=n.length-1;y>=0;y--)u=DT(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>NT(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?jT:FT)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>zT(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?MT(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?wT("Object expected"):(MT(a=s.get)&&(v.get=a),MT(a=s.set)&&(v.set=a),MT(a=s.init)&&g.unshift(a));return d||TT(e,o),v&&hT(o,r,v),f?4^d?i:v:o},LT=(e,t,r)=>t.has(e)||wT("Cannot "+r),NT=(e,t)=>Object(t)!==t?wT('Cannot use the "in" operator on this value'):e.has(t),jT=(e,t,r)=>(LT(e,t,"read from private field"),r?r.call(e):t.get(e)),_T=(e,t,r)=>t.has(e)?wT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),zT=(e,t,r,n)=>(LT(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),FT=(e,t,r)=>(LT(e,t,"access private method"),r);function HT(e,t){return{plugin:e,options:t}}function $T(e){return t=>HT(e,t)}function BT(e){return"function"==typeof e?{plugin:e,options:void 0}:e}sT=[kD];var WT=class{constructor(e,t){this.manager=e,this.options=t,_T(this,uT,qT(lT,8,this,!1)),qT(lT,11,this),_T(this,cT,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return xM((()=>this.disabled))}configure(e){this.options=e}registerEffect(e){const t=jM(e.bind(this));return jT(this,cT).add(t),t}destroy(){jT(this,cT).forEach((e=>e()))}static configure(e){return HT(this,e)}};lT=IT(null),uT=new WeakMap,cT=new WeakMap,OT(lT,4,"disabled",sT,WT,uT),TT(lT,WT);var VT,UT=class extends WT{},GT=class{constructor(e){this.manager=e,this.instances=new Map,_T(this,VT,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(BT).reduceRight(((e,t)=>e.some((({plugin:e})=>e===t.plugin))?e:[t,...e]),[]),r=t.map((({plugin:e})=>e));for(const e of jT(this,VT))if(!r.includes(e)){if(e.prototype instanceof UT)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);zT(this,VT,r)}get(e){return this.instances.get(e)}register(e,t){const r=this.instances.get(e);if(r)return r.options!==t&&(r.options=t),r;const n=new e(this.manager,t);return this.instances.set(e,n),n}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function YT(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}VT=new WeakMap;var KT,XT,JT=[],ZT=class extends WT{constructor(e){super(e),_T(this,KT),_T(this,XT),this.computeCollisions=this.computeCollisions.bind(this),zT(this,XT,AM(JT)),this.destroy=TD((()=>{const e=this.computeCollisions(),t=xM((()=>this.manager.dragOperation.position.current));if(e!==JT){const e=jT(this,KT);if(zT(this,KT,t),e&&t.x==e.x&&t.y==e.y)return}else zT(this,KT,void 0);jT(this,XT).value=e}),(()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()}))}forceUpdate(e=!0){xM((()=>{e?jT(this,XT).value=this.computeCollisions():zT(this,KT,void 0)}))}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return JT;const s=[],l=[];for(const i of null!=e?e:r.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const r=xM((()=>e({droppable:i,dragOperation:n})));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?JT:(s.sort(YT),s)}get collisions(){return jT(this,XT).value}};KT=new WeakMap,XT=new WeakMap;var QT=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));return n.add(t),r.set(e,n),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));n.delete(t),r.set(e,n)}dispatch(e,...t){const{registry:r}=this,n=r.get(e);if(n)for(const e of n)e(...t)}},eq=class extends QT{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function tq(e,t=!0){let r=!1;return RT(ET({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var rq,nq,oq,iq,aq,sq,lq,uq,cq,dq=class extends UT{constructor(e){super(e);let t=[];this.destroy=TD((()=>{const{dragOperation:r,collisionObserver:n}=e;r.status.initializing&&(t=[],n.enable())}),(()=>{const{collisionObserver:r,monitor:n}=e,{collisions:o}=r;if(r.isDisabled())return;const i=tq({collisions:o});if(n.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map((({id:e})=>e)).join("")===t.map((({id:e})=>e)).join(""))(o,t))return;t=o;const[a]=o;xM((()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(r.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then((()=>{r.enable()})))}))}))}},pq=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(pq||{}),fq=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(fq||{});lq=[kD],sq=[MD],aq=[MD],iq=[MD],oq=[MD],nq=[MD],rq=[MD];var hq=class{constructor(){qT(uq,5,this),_T(this,cq,qT(uq,8,this,"idle")),qT(uq,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};uq=IT(null),cq=new WeakMap,OT(uq,4,"value",lq,hq,cq),OT(uq,2,"current",sq,hq),OT(uq,2,"idle",aq,hq),OT(uq,2,"initializing",iq,hq),OT(uq,2,"initialized",oq,hq),OT(uq,2,"dragging",nq,hq),OT(uq,2,"dropped",rq,hq),TT(uq,hq);var mq,gq,bq,vq,yq,xq,Sq,wq,Cq,Eq=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return xM((()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=tq({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then((()=>n.defaultPrevented))}))}start(e){return xM((()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const r=new AbortController,{event:n,coordinates:o}=e;vM((()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)}));const i=tq({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then((()=>{if(r.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&(t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:n,operation:t.snapshot(),cancelable:!1}))})),r)}))}move(e){return xM((()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=tq({nativeEvent:e.event,operation:n.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(r=e.propagate)||r)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask((()=>{var t,r,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:n.position.current.x+(null!=(r=null==(t=e.by)?void 0:t.x)?r:0),y:n.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};n.position.current=l}))}))}stop(e={}){return xM((()=>{var t,r;const{dragOperation:n}=this.manager,{controller:o}=n;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then((()=>{n.status.set("dropped");const e=xM((()=>{var e;return"dropping"===(null==(e=n.source)?void 0:e.status)})),t=()=>{n.controller===o&&(n.controller=void 0),n.reset()};if(e){const{source:e}=n,r=jM((()=>{"idle"===(null==e?void 0:e.status)&&(r(),t())}))}else this.manager.renderer.rendering.then(t)}))};n.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:n.snapshot(),canceled:null!=(r=e.canceled)&&r,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise(((t,r)=>{e.resume=t,e.abort=r})),e}}),i?i.then(a).catch((()=>n.reset())):a()}))}};vq=[kD],bq=[kD],gq=[kD],mq=[kD];var Rq=class{constructor(e,t){_T(this,xq,qT(yq,8,this)),qT(yq,11,this),_T(this,Sq,qT(yq,12,this)),qT(yq,15,this),_T(this,wq,qT(yq,16,this)),qT(yq,19,this),_T(this,Cq,qT(yq,20,this)),qT(yq,23,this);const{effects:r,id:n,data:o={},disabled:i=!1,register:a=!0}=e;let s=n;this.manager=t,this.id=n,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==r?void 0:r())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};yq=IT(null),xq=new WeakMap,Sq=new WeakMap,wq=new WeakMap,Cq=new WeakMap,OT(yq,4,"manager",vq,Rq,xq),OT(yq,4,"id",bq,Rq,Sq),OT(yq,4,"data",gq,Rq,wq),OT(yq,4,"disabled",mq,Rq,Cq),TT(yq,Rq);var Pq,Aq,Iq,kq,Mq,Dq,Tq,qq,Oq,Lq,Nq,jq,_q,zq,Fq,Hq,$q,Bq,Wq,Vq,Uq,Gq,Yq,Kq,Xq=class{constructor(){this.map=AM(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const r=this.map.peek(),n=r.get(e),o=()=>this.unregister(e,t);if(n===t)return o;if(n){const e=this.cleanupFunctions.get(n);null==e||e(),this.cleanupFunctions.delete(n)}const i=new Map(r);i.set(e,t),this.map.value=i;const a=TD(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const r=this.map.peek();if(r.get(e)!==t)return;const n=this.cleanupFunctions.get(t);null==n||n(),this.cleanupFunctions.delete(t);const o=new Map(r);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},Jq=class extends(Tq=Rq,Dq=[kD],Mq=[kD],kq=[kD],Iq=[MD],Aq=[MD],Pq=[MD],Tq){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=AT(r,["modifiers","type","sensors"]);super(a,t),qT(qq,5,this),_T(this,Oq,qT(qq,8,this)),qT(qq,11,this),_T(this,Lq,qT(qq,12,this)),qT(qq,15,this),_T(this,Nq,qT(qq,16,this,this.isDragSource?"dragging":"idle")),qT(qq,19,this),this.type=o,this.sensors=i,this.modifiers=n,this.alignment=a.alignment}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};qq=IT(Tq),Oq=new WeakMap,Lq=new WeakMap,Nq=new WeakMap,OT(qq,4,"type",Dq,Jq,Oq),OT(qq,4,"modifiers",Mq,Jq,Lq),OT(qq,4,"status",kq,Jq,Nq),OT(qq,2,"isDropping",Iq,Jq),OT(qq,2,"isDragging",Aq,Jq),OT(qq,2,"isDragSource",Pq,Jq),TT(qq,Jq);var Zq=class extends(Bq=Rq,$q=[kD],Hq=[kD],Fq=[kD],zq=[kD],_q=[kD],jq=[MD],Bq){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(AT(r,["accept","collisionDetector","collisionPriority","type"]),t),qT(Wq,5,this),_T(this,Vq,qT(Wq,8,this)),qT(Wq,11,this),_T(this,Uq,qT(Wq,12,this)),qT(Wq,15,this),_T(this,Gq,qT(Wq,16,this)),qT(Wq,19,this),_T(this,Yq,qT(Wq,20,this)),qT(Wq,23,this),_T(this,Kq,qT(Wq,24,this)),qT(Wq,27,this),this.accept=n,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};Wq=IT(Bq),Vq=new WeakMap,Uq=new WeakMap,Gq=new WeakMap,Yq=new WeakMap,Kq=new WeakMap,OT(Wq,4,"accept",$q,Zq,Vq),OT(Wq,4,"type",Hq,Zq,Uq),OT(Wq,4,"collisionDetector",Fq,Zq,Gq),OT(Wq,4,"collisionPriority",zq,Zq,Yq),OT(Wq,4,"shape",_q,Zq,Kq),OT(Wq,2,"isDropTarget",jq,Zq),TT(Wq,Zq);var Qq,eO=class extends WT{constructor(e,t){super(e,t),this.manager=e,this.options=t}},tO=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},rO=class{constructor(e){this.options=e,_T(this,Qq)}set controller(e){zT(this,Qq,e),e.signal.addEventListener("abort",(()=>this.abort()))}activate(e){var t;null==(t=jT(this,Qq))||t.activate(e)}};Qq=new WeakMap;var nO,oO,iO,aO,sO,lO,uO,cO,dO,pO,fO,hO,mO,gO,bO,vO,yO,xO,SO,wO=class extends WT{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},CO=class{constructor(e){this.draggables=new Xq,this.droppables=new Xq,this.plugins=new GT(e),this.sensors=new GT(e),this.modifiers=new GT(e)}register(e,t){if(e instanceof Jq)return this.draggables.register(e.id,e);if(e instanceof Zq)return this.droppables.register(e.id,e);if(e.prototype instanceof wO)return this.modifiers.register(e,t);if(e.prototype instanceof eO)return this.sensors.register(e,t);if(e.prototype instanceof WT)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof Rq)return e instanceof Jq?this.draggables.unregister(e.id,e):e instanceof Zq?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof wO)return this.modifiers.unregister(e);if(e.prototype instanceof eO)return this.sensors.unregister(e);if(e.prototype instanceof WT)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};dO=[MD],cO=[kD],uO=[kD],lO=[kD],sO=[kD],aO=[kD],iO=[MD],oO=[MD],nO=[MD];var EO=class{constructor(e){qT(mO,5,this),_T(this,pO),_T(this,fO),_T(this,hO,new OD(void 0,((e,t)=>e&&t?e.equals(t):e===t))),this.status=new hq,_T(this,gO,qT(mO,8,this,!1)),qT(mO,11,this),_T(this,bO,qT(mO,12,this,null)),qT(mO,15,this),_T(this,vO,qT(mO,16,this,null)),qT(mO,19,this),_T(this,yO,qT(mO,20,this,null)),qT(mO,23,this),_T(this,xO,qT(mO,24,this,[])),qT(mO,27,this),this.position=new iT({x:0,y:0}),_T(this,SO,{x:0,y:0}),zT(this,pO,e)}get shape(){const{current:e,initial:t,previous:r}=jT(this,hO);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?jT(this,hO).current=e:jT(this,hO).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=jT(this,pO).registry.draggables.get(t);return r&&zT(this,fO,r),null!=(e=null!=r?r:jT(this,fO))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=jT(this,pO).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let r={x:e,y:t};for(const e of this.modifiers)r=e.apply(RT(ET({},this.snapshot()),{transform:r}));return zT(this,SO,r),r}snapshot(){return xM((()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:jT(this,SO),shape:this.shape?LD(this.shape):null,position:LD(this.position),status:LD(this.status),canceled:this.canceled})))}reset(){vM((()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,jT(this,hO).reset(),this.position.reset({x:0,y:0}),zT(this,SO,{x:0,y:0}),this.modifiers=[]}))}};mO=IT(null),pO=new WeakMap,fO=new WeakMap,hO=new WeakMap,gO=new WeakMap,bO=new WeakMap,vO=new WeakMap,yO=new WeakMap,xO=new WeakMap,SO=new WeakMap,OT(mO,2,"shape",dO,EO),OT(mO,4,"canceled",cO,EO,gO),OT(mO,4,"activatorEvent",uO,EO,bO),OT(mO,4,"sourceIdentifier",lO,EO,vO),OT(mO,4,"targetIdentifier",sO,EO,yO),OT(mO,4,"modifiers",aO,EO,xO),OT(mO,2,"source",iO,EO),OT(mO,2,"target",oO,EO),OT(mO,2,"transform",nO,EO),TT(mO,EO);var RO={get rendering(){return Promise.resolve()}},PO=class{constructor(e){this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach((e=>e.destroy())),this.registry.destroy(),this.collisionObserver.destroy()};const{plugins:t=[],sensors:r=[],modifiers:n=[],renderer:o=RO}=null!=e?e:{},i=new eq(this),a=new CO(this);this.registry=a,this.monitor=i,this.renderer=o,this.actions=new Eq(this),this.dragOperation=new EO(this),this.collisionObserver=new ZT(this),this.plugins=[dq,...t],this.modifiers=n,this.sensors=r;const{destroy:s}=this,l=TD((()=>{var e,t,r;const n=xM((()=>this.dragOperation.modifiers)),o=this.modifiers;n!==o&&n.forEach((e=>e.destroy())),this.dragOperation.modifiers=null!=(r=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map((e=>{const{plugin:t,options:r}=BT(e);return new t(this,r)})))?r:o}));this.destroy=()=>{l(),s()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},AO=e=>{throw TypeError(e)},IO=(e,t,r)=>t.has(e)||AO("Cannot "+r),kO=(e,t,r)=>(IO(e,t,"read from private field"),t.get(e)),MO=(e,t,r)=>t.has(e)?AO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),DO=(e,t,r,n)=>(IO(e,t,"write to private field"),t.set(e,r),r),TO=(e,t,r)=>(IO(e,t,"access private method"),r);function qO(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function OO(e,t){const r=e.getAnimations();if(r.length>0)for(const e of r){if("running"!==e.playState)continue;const{effect:r}=e,n=(qO(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function LO(e){const{width:t,height:r,top:n,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:r,top:n,left:o,bottom:i,right:a}}function NO(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function jO(e){return"nodeType"in e}function _O(e){var t,r,n;return e?NO(e)?e:jO(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(n=null==(r=e.ownerDocument)?void 0:r.defaultView)?n:window:window:window}function zO(e){const{Document:t}=_O(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function FO(e){return!(!e||NO(e))&&(e instanceof _O(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function HO(e){return e instanceof _O(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function $O(e){return e?NO(e)?e.document:jO(e)?zO(e)?e:FO(e)||HO(e)?e.ownerDocument:document:document:document}function BO(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(e);return"visible"===r&&"visible"===n&&"visible"===o}function WO(e,t=e.getBoundingClientRect(),r=0){var n;let o=t;const{ownerDocument:i}=e,a=null!=(n=i.defaultView)?n:window;let s=e.parentElement;for(;s&&s!==i.documentElement;){if(!BO(s)){const e=s.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),i=r*(e.bottom-e.top),a=r*(e.right-e.left);o={top:Math.max(o.top,e.top-t),right:Math.min(o.right,e.right+n),bottom:Math.min(o.bottom,e.bottom+i),left:Math.max(o.left,e.left-a),width:0,height:0},o.width=o.right-o.left,o.height=o.bottom-o.top}s=s.parentElement}const l=a.innerWidth,u=a.innerHeight,c=r*u,d=r*l;return o={top:Math.max(o.top,0-c),right:Math.min(o.right,l+d),bottom:Math.min(o.bottom,u+c),left:Math.max(o.left,0-d),width:0,height:0},o.width=o.right-o.left,o.height=o.bottom-o.top,o.width<0&&(o.width=0),o.height<0&&(o.height=0),o}function VO(e){return{x:e.clientX,y:e.clientY}}var UO="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function GO(e=document,t=new Set){if(t.has(e))return[];t.add(e);const r=[e];for(const n of Array.from(e.querySelectorAll("iframe, frame")))try{const e=n.contentDocument;e&&!t.has(e)&&r.push(...GO(e,t))}catch(e){}try{const n=e.defaultView;if(n&&n!==window.top){const o=n.parent;o&&o.document&&o.document!==e&&r.push(...GO(o.document,t))}}catch(e){}return r}function YO(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function KO(e){return"value"in e}function XO(e){return"CANVAS"===e.tagName}function JO(e,{x:t,y:r}){const n=e.elementFromPoint(t,r);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(n)){const{contentDocument:e}=n;if(e){const{left:o,top:i}=n.getBoundingClientRect();return JO(e,{x:t-o,y:r-i})}}return n}var ZO=new WeakMap;var QO=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:r,listener:n,options:o}]=e;t.removeEventListener(r,n,o)}this.entries.clear()}}bind(e,t){const r=Array.isArray(e)?e:[e],n=Array.isArray(t)?t:[t],o=[];for(const e of r)for(const t of n){const{type:r,listener:n,options:i}=t,a=[e,t];e.addEventListener(r,n,i),this.entries.add(a),o.push(a)}return function(){for(const[e,{type:t,listener:r,options:n}]of o)e.removeEventListener(t,r,n)}}};function eL(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function tL(e,t){const r=()=>performance.now();let n,o;return function(...i){const a=this;o?(null==n||n(),n=function(e,t){const r=setTimeout(e,t);return()=>clearTimeout(r)}((()=>{e.apply(a,i),o=r()}),t-(r()-o))):(e.apply(a,i),o=r())}}var rL,nL=UO?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},oL=class extends nL{constructor(e){super((t=>{kO(this,rL)?e(t,this):DO(this,rL,!0)})),MO(this,rL,!1)}};rL=new WeakMap;var iL,aL,sL,lL,uL,cL,dL,pL,fL,hL,mL,gL=Array.from({length:100},((e,t)=>t/100)),bL=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,MO(this,fL),this.disconnect=()=>{var e,t,r;DO(this,dL,!0),null==(e=kO(this,sL))||e.disconnect(),null==(t=kO(this,lL))||t.disconnect(),kO(this,uL).disconnect(),null==(r=kO(this,cL))||r.remove()},MO(this,iL,!0),MO(this,aL),MO(this,sL),MO(this,lL),MO(this,uL),MO(this,cL),MO(this,dL,!1),MO(this,pL,tL((()=>{var e,t,r;const{element:n}=this;if(null==(e=kO(this,lL))||e.disconnect(),kO(this,dL)||!kO(this,iL)||!n.isConnected)return;const o=null!=(t=n.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(r=o.defaultView)?r:window,s=n.getBoundingClientRect(),l=WO(n,s),{top:u,left:c,bottom:d,right:p}=l,f=-Math.floor(u),h=-Math.floor(c),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,DO(this,lL,new IntersectionObserver((e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:nT.intersectionRatio(r,WO(n)))&&kO(this,pL).call(this)}),{threshold:gL,rootMargin:m,root:o})),kO(this,lL).observe(n),TO(this,fL,hL).call(this)}),75)),this.boundingClientRect=e.getBoundingClientRect(),DO(this,iL,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=WO(e,t);return r>0&&n>0}(e,this.boundingClientRect));let n=!0;this.callback=e=>{n&&(n=!1,r.skipInitial)||t(e)};const o=e.ownerDocument;(null==r?void 0:r.debug)&&(DO(this,cL,document.createElement("div")),kO(this,cL).style.background="rgba(0,0,0,0.15)",kO(this,cL).style.position="fixed",kO(this,cL).style.pointerEvents="none",o.body.appendChild(kO(this,cL))),DO(this,uL,new IntersectionObserver((t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=kO(this,iL);DO(this,iL,a),(s||l)&&(u&&!a?(null==(r=kO(this,lL))||r.disconnect(),this.callback(null),null==(n=kO(this,sL))||n.disconnect(),DO(this,sL,void 0),kO(this,cL)&&(kO(this,cL).style.visibility="hidden")):kO(this,pL).call(this),a&&!kO(this,sL)&&(DO(this,sL,new oL(kO(this,pL))),kO(this,sL).observe(e)))}),{threshold:gL,root:o})),kO(this,iL)&&!r.skipInitial&&this.callback(this.boundingClientRect),kO(this,uL).observe(e)}};iL=new WeakMap,aL=new WeakMap,sL=new WeakMap,lL=new WeakMap,uL=new WeakMap,cL=new WeakMap,dL=new WeakMap,pL=new WeakMap,fL=new WeakSet,hL=function(){kO(this,dL)||(TO(this,fL,mL).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,kO(this,aL))||(this.callback(this.boundingClientRect),DO(this,aL,this.boundingClientRect)))},mL=function(){if(kO(this,cL)){const{top:e,left:t,width:r,height:n}=WO(this.element);kO(this,cL).style.overflow="hidden",kO(this,cL).style.visibility="visible",kO(this,cL).style.top=`${Math.floor(e)}px`,kO(this,cL).style.left=`${Math.floor(t)}px`,kO(this,cL).style.width=`${Math.floor(r)}px`,kO(this,cL).style.height=`${Math.floor(n)}px`}};var vL,yL,xL,SL,wL=new WeakMap,CL=new WeakMap;function EL(e,t){let r=wL.get(e);if(!r){const t=new bL(e,(t=>{const r=wL.get(e);r&&r.callbacks.forEach((e=>e(t)))}),{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),wL.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(wL.delete(e),r.disconnect())}}var RL=class{constructor(e,t,r){this.callback=t,MO(this,vL),MO(this,yL,!1),MO(this,xL),MO(this,SL,tL((e=>{if(!kO(this,yL)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of kO(this,xL))if(e.target.contains(t)){this.callback(kO(this,vL).boundingClientRect);break}}),75));const n=function(e){const t=new Set;let r=eL(e);for(;r;)t.add(r),r=eL(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=EL(n,t);r.add(e)}return()=>r.forEach((e=>e()))}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!CL.has(n)){const e=new AbortController,t=new Set;document.addEventListener("scroll",(e=>t.forEach((t=>t(e)))),{capture:!0,passive:!0,signal:e.signal}),CL.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=CL.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),CL.delete(n))}):()=>{}}(e,kO(this,SL));DO(this,xL,n),DO(this,vL,new bL(e,t,r)),this.disconnect=()=>{kO(this,yL)||(DO(this,yL,!0),o(),i(),kO(this,vL).disconnect())}}};function PL(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function AL(e){try{PL(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function IL(e){return!(!UO||!e)&&e===$O(e).scrollingElement}function kL(e){const t=_O(e),r=IL(e)?function(e){const{documentElement:t}=$O(e),r=t.clientWidth,n=t.clientHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}(e):LO(e),n=IL(e)?{height:t.innerHeight,width:t.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-n.width,y:e.scrollHeight-n.height}};return{rect:r,position:o,isTop:o.current.y<=0,isLeft:o.current.x<=0,isBottom:o.current.y>=o.max.y,isRight:o.current.x>=o.max.x}}function ML(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=kL(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!r&&a.current.y+l>0,c=!n&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}vL=new WeakMap,yL=new WeakMap,xL=new WeakMap,SL=new WeakMap;var DL=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise((e=>this.resolvers.add(e)))}},TL=new DL((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),qL=new DL((e=>setTimeout(e,50))),OL=new Map,LL=OL.clear.bind(OL);function NL(e,t=!1){if(!t)return jL(e);let r=OL.get(e);return r||(r=jL(e),OL.set(e,r),qL.schedule(LL),r)}function jL(e){return _O(e).getComputedStyle(e)}var _L={excludeElement:!0};function zL(e,t=_L){const{limit:r,excludeElement:n}=t,o=new Set;return e?function t(i){if(null!=r&&o.size>=r)return o;if(!i)return o;if(zO(i)&&null!=i.scrollingElement&&!o.has(i.scrollingElement))return o.add(i.scrollingElement),o;if(!FO(i))return HO(i)?t(i.parentElement):o;if(o.has(i))return o;const a=NL(i,!0);if(n&&i===e||function(e,t=NL(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const n=t[e];return"string"==typeof n&&r.test(n)}))}(i,a)&&o.add(i),function(e,t=NL(e,!0)){return"fixed"===t.position||"sticky"===t.position}(i,a)){const{scrollingElement:e}=i.ownerDocument;return e&&o.add(e),o}return t(i.parentNode)}(e):o}function FL(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=eL(e);for(;n;){if(n===t)return r;const e=LO(n),{x:o,y:i}=HL(n,e);r.x=r.x+e.left,r.y=r.y+e.top,r.scaleX=r.scaleX*o,r.scaleY=r.scaleY*i,n=eL(n)}return r}function HL(e,t=LO(e)){const r=Math.round(t.width),n=Math.round(t.height);if(FO(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=NL(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function $L(e){if("none"===e)return null;const[t,r,n="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(r),z:parseInt(n,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function BL(e){var t,r,n,o,i,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),r=parseFloat(t[0]),n=parseFloat(t[1]);return isNaN(r)&&isNaN(n)?null:{x:isNaN(r)?n:r,y:isNaN(n)?r:n}}(c),h=$L(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,b=null!=(r=null==f?void 0:f.y)?r:1,v=null!=(n=null==h?void 0:h.x)?n:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:v+x,y:y+S,z:null!=(u=null==h?void 0:h.z)?u:0,scaleX:g*w,scaleY:b*C}}var WL=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(WL||{}),VL={x:.2,y:.2},UL={x:10,y:10};function GL(e,t,r,n=25,o=VL,i=UL){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=kL(e),f=FL(e),h=BL(NL(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new nT(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),v={x:0,y:0},y={x:0,y:0},x=b.height*o.y,S=b.width*o.x;return(!u||g&&!c)&&s<=b.top+x&&1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x?(v.y=g?1:-1,y.y=n*Math.abs((b.top+x-s)/x)):(!c||g&&!u)&&s>=b.bottom-x&&-1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x&&(v.y=g?-1:1,y.y=n*Math.abs((b.bottom-x-s)/x)),(!p||m&&!d)&&a>=b.right-S&&-1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y?(v.x=m?-1:1,y.x=n*Math.abs((b.right-S-a)/S)):(!d||m&&!p)&&a<=b.left+S&&1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y&&(v.x=m?1:-1,y.x=n*Math.abs((b.left+S-a)/S)),{direction:v,speed:y}}function YL(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!FO(e))return e.scrollIntoView();var n=function(e){const[t]=zL(e,{limit:1});return null!=t?t:null}(e);if(!FO(n))return;const o=NL(n,!0),i=parseInt(o.getPropertyValue("border-top-width")),a=parseInt(o.getPropertyValue("border-left-width")),s=e.offsetTop-n.offsetTop<n.scrollTop,l=e.offsetTop-n.offsetTop+e.clientHeight-i>n.scrollTop+n.clientHeight,u=e.offsetLeft-n.offsetLeft<n.scrollLeft,c=e.offsetLeft-n.offsetLeft+e.clientWidth-a>n.scrollLeft+n.clientWidth,d=s&&!l;(s||l)&&t&&(n.scrollTop=e.offsetTop-n.offsetTop-n.clientHeight/2-i+e.clientHeight/2),(u||c)&&t&&(n.scrollLeft=e.offsetLeft-n.offsetLeft-n.clientWidth/2-a+e.clientWidth/2),(s||l||u||c)&&!t&&e.scrollIntoView(d)}function KL({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function XL(e,t=NL(e).translate,r=!0){if(r){const t=OO(e,(e=>"translate"in e));if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=$L(e);if(t)return t}}}if(t){const e=$L(t);if(e)return e}return{x:0,y:0,z:0}}var JL=new DL((e=>setTimeout(e,0))),ZL=new Map,QL=ZL.clear.bind(ZL);function eN(e,t){const r=function(e){const t=e.ownerDocument;let r=ZL.get(t);if(r)return r;r=t.getAnimations(),ZL.set(t,r),JL.schedule(QL);const n=r.filter((t=>qO(t.effect)&&t.effect.target===e));return ZL.set(e,n),r}(e).filter((e=>{var r,n;if(qO(e.effect)){const{target:o}=e.effect;if(null==(n=o&&(null==(r=t.isValidTarget)?void 0:r.call(t,o)))||n)return e.effect.getKeyframes().some((e=>{for(const r of t.properties)if(e[r])return!0}))}})).map((e=>{const{effect:t,currentTime:r}=e,n=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof n&&"number"==typeof r&&r<n?(e.currentTime=n,()=>{e.currentTime=r}):void 0}));if(r.length>0)return()=>r.forEach((e=>null==e?void 0:e()))}var tN=class extends nT{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=FL(e),ignoreTransforms:s,getBoundingClientRect:l=LO}=t,u=eN(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||YO())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=NL(e),b=BL(g),v={x:null!=(r=null==b?void 0:b.scaleX)?r:1,y:null!=(n=null==b?void 0:b.scaleY)?n:1},y=function(e,t){var r;const n=e.getAnimations();let o=null;if(!n.length)return null;for(const e of n){if("running"!==e.playState)continue;const n=qO(e.effect)?e.effect.getKeyframes():[],i=n[n.length-1];if(!i)continue;const{transform:a,translate:s,scale:l}=i;if(a||s||l){const e=BL({transform:"string"==typeof a&&a?a:t.transform,translate:"string"==typeof s&&s?s:t.translate,scale:"string"==typeof l&&l?l:t.scale});e&&(o=o?{x:o.x+e.x,y:o.y+e.y,z:null!=(r=o.z)?r:e.z,scaleX:o.scaleX*e.scaleX,scaleY:o.scaleY*e.scaleY}:e)}}return o}(e,g);null==u||u(),b&&(d=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-n)*parseFloat(r),l=e.top-a-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width/n:e.width,c=o?e.height/o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(c,b,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-n)*parseFloat(r),l=e.top+a+(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width*n:e.width,c=o?e.height*o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,v.x=y.scaleX,v.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=v,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function rN(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var nN=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(rN(r))for(const[n,o]of Object.entries(e)){const e=`${t}${n}`;this.initial.has(e)||this.initial.set(e,r.style.getPropertyValue(e)),r.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:r}=this;if(rN(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(rN(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function oN(e){return!!e&&(e instanceof _O(e).Element||jO(e)&&e.nodeType===Node.ELEMENT_NODE)}function iN(e){if(!e)return!1;const{KeyboardEvent:t}=_O(e.target);return e instanceof t}var aN={};function sN(e){const t=null==aN[e]?0:aN[e]+1;return aN[e]=t,`${e}-${t}`}var lN=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/rT.distance(t.shape.center,r),type:fq.PointerIntersection,priority:pq.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=rT.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:fq.ShapeIntersection,priority:pq.Normal}}return null})(e)},uN=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?nT.from(n.current.boundingRectangle).corners:void 0,a=nT.from(r.shape.boundingRectangle).corners.reduce(((e,t,r)=>{var n;return e+rT.distance(rT.from(t),null!=(n=null==i?void 0:i[r])?n:o.current)}),0),s=a/4;return{id:r.id,value:1/s,type:fq.Collision,priority:pq.Normal}},cN=Object.create,dN=Object.defineProperty,pN=Object.defineProperties,fN=Object.getOwnPropertyDescriptor,hN=Object.getOwnPropertyDescriptors,mN=Object.getOwnPropertySymbols,gN=Object.prototype.hasOwnProperty,bN=Object.prototype.propertyIsEnumerable,vN=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),yN=e=>{throw TypeError(e)},xN=(e,t,r)=>t in e?dN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,SN=(e,t)=>{for(var r in t||(t={}))gN.call(t,r)&&xN(e,r,t[r]);if(mN)for(var r of mN(t))bN.call(t,r)&&xN(e,r,t[r]);return e},wN=(e,t)=>pN(e,hN(t)),CN=(e,t)=>dN(e,"name",{value:t,configurable:!0}),EN=(e,t)=>{var r={};for(var n in e)gN.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&mN)for(var n of mN(e))t.indexOf(n)<0&&bN.call(e,n)&&(r[n]=e[n]);return r},RN=e=>{var t;return[,,,cN(null!=(t=null==e?void 0:e[vN("metadata")])?t:null)]},PN=["class","method","getter","setter","accessor","field","value","get","set"],AN=e=>void 0!==e&&"function"!=typeof e?yN("Function expected"):e,IN=(e,t,r,n,o)=>({kind:PN[e],name:t,metadata:n,addInitializer:e=>r._?yN("Already initialized"):o.push(AN(e||null))}),kN=(e,t)=>xN(t,vN("metadata"),e[3]),MN=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},DN=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=PN[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&fN(d<4?o:{get[r](){return ON(this,i)},set[r](e){return NN(this,i,e)}},r));d?f&&d<4&&CN(i,(d>2?"set ":d>1?"get ":"")+r):CN(o,r);for(var y=n.length-1;y>=0;y--)u=IN(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>qN(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?ON:jN)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>NN(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?AN(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?yN("Object expected"):(AN(a=s.get)&&(v.get=a),AN(a=s.set)&&(v.set=a),AN(a=s.init)&&g.unshift(a));return d||kN(e,o),v&&dN(o,r,v),f?4^d?i:v:o},TN=(e,t,r)=>t.has(e)||yN("Cannot "+r),qN=(e,t)=>Object(t)!==t?yN('Cannot use the "in" operator on this value'):e.has(t),ON=(e,t,r)=>(TN(e,t,"read from private field"),r?r.call(e):t.get(e)),LN=(e,t,r)=>t.has(e)?yN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),NN=(e,t,r,n)=>(TN(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),jN=(e,t,r)=>(TN(e,t,"access private method"),r),_N="button",zN="draggable",FN="dnd-kit-description",HN="dnd-kit-announcement",$N={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},BN={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:r}){if(e)return r?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function WN(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var VN=["dragover","dragmove"],UN=class extends WT{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=FN,announcement:o=HN}={},announcements:i=BN,screenReaderInstructions:a=$N,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:sN(n),u=r?`${o}-${r}`:sN(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>TL.schedule(h),g=function(e,t){let r;const n=()=>{clearTimeout(r),r=setTimeout(e,t)};return n.cancel=()=>clearTimeout(r),n}(m,s),b=Object.entries(i).map((([e,t])=>this.manager.monitor.addEventListener(e,((r,n)=>{const o=p;if(!o)return;const i=null==t?void 0:t(r,n);i&&o.nodeValue!==i&&(f=i,VN.includes(e)?g():(m(),g.cancel()))})))),v=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const r=document.createElement("div");return r.id=e,r.style.setProperty("display","none"),r.textContent=t,r}(l,a.draggable),e.push(c)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(u),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect((()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const r=null!=(e=t.handle)?e:t.element;if(r){c&&d||y.add(v),WN(r)&&!YO()||r.hasAttribute("tabindex")||y.add((()=>r.setAttribute("tabindex","0"))),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add((()=>r.setAttribute("role",_N))),r.hasAttribute("aria-roledescription")||y.add((()=>r.setAttribute("aria-roledescription",zN))),r.hasAttribute("aria-describedby")||y.add((()=>r.setAttribute("aria-describedby",l)));for(const e of["aria-pressed","aria-grabbed"]){const n=String(t.isDragging);r.getAttribute(e)!==n&&y.add((()=>r.setAttribute(e,n)))}const e=String(t.disabled);r.getAttribute("aria-disabled")!==e&&y.add((()=>r.setAttribute("aria-disabled",e)))}}y.size>0&&TL.schedule(x)})),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),b.forEach((e=>e()))}}};var GN="data-dnd-",YN=`${GN}dropping`,KN="--dnd-",XN=`${GN}dragging`,JN=`${GN}placeholder`,ZN=[XN,JN,"popover","aria-pressed","aria-grabbing"],QN=["view-transition-name"],ej=`\n :root [${XN}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${KN}top, 0px) !important;\n left: var(${KN}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${KN}width, auto);\n max-width: var(${KN}width, auto);\n height: var(${KN}height, auto);\n max-height: var(${KN}height, auto);\n transition: var(${KN}transition) !important;\n }\n\n :root [${JN}] {\n transition: none;\n }\n\n :root [${JN}='hidden'] {\n visibility: hidden;\n }\n\n [${XN}] * {\n pointer-events: none !important;\n }\n\n [${XN}]:not([${YN}]) {\n translate: var(${KN}translate) !important;\n }\n\n [${XN}][style*='${KN}scale'] {\n scale: var(${KN}scale) !important;\n transform-origin: var(${KN}transform-origin) !important;\n }\n\n @layer {\n :where([${XN}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${XN}]::backdrop, [${GN}overlay]:not([${XN}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function tj(e,t="hidden"){return xM((()=>{const{element:r,manager:n}=e;if(!r||!n)return;const o=function(e,t){const r=new Map;for(const n of t)if(n.element&&(e===n.element||e.contains(n.element))){const e=`${GN}${sN("dom-id")}`;n.element.setAttribute(e,""),r.set(n,e)}return r}(r,n.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",r=e.cloneNode(!0),n=Array.from(e.querySelectorAll(t));return Array.from(r.querySelectorAll(t)).forEach(((e,t)=>{const r=n[t];if(KO(e)&&KO(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),XO(e)&&XO(r)&&r.width>0&&r.height>0){const t=e.getContext("2d");null==t||t.drawImage(r,0,0)}})),r}(r),{remove:s}=a;return function(e,t,r){for(const[n,o]of e){if(!n.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(n.element.removeAttribute(o),!i)continue;const a=n.element;n.proxy=i,i.removeAttribute(o),ZO.set(a,i),r.push((()=>{ZO.delete(a),n.proxy=void 0}))}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(JN,t)}(a,t),a.remove=()=>{i.forEach((e=>e())),s.call(a)},a}))}function rj(e,t){return e===t||eL(e)===eL(t)}function nj(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&oN(t)&&t.hasAttribute("popover")&&requestAnimationFrame((()=>AL(t)))}function oj(e){return"TR"===e.tagName}var ij,aj,sj,lj,uj,cj,dj,pj=new Map,fj=class extends(aj=WT,ij=[kD],aj){constructor(e,t){super(e,t),LN(this,uj),LN(this,lj,MN(sj,8,this)),MN(sj,11,this),this.state={initial:{},current:{}},this.registerEffect(jN(this,uj,dj)),this.registerEffect(jN(this,uj,cj))}destroy(){super.destroy();for(const[e,t]of pj.entries())t.instances.has(this)&&(t.instances.delete(this),0===t.instances.size&&(t.cleanup(),pj.delete(e)))}};sj=RN(aj),lj=new WeakMap,uj=new WeakSet,cj=function(){var e,t,r;const{state:n,manager:o,options:i}=this,{dragOperation:a}=o,{position:s,source:l,status:u}=a;if(u.idle)return n.current={},void(n.initial={});if(!l)return;const{element:c,feedback:d}=l;if(!c||"none"===d||!u.initialized||u.initializing)return;const{initial:p}=n,f=null!=(e=this.overlay)?e:c,h=FL(f),m=FL(c),g=!rj(c,f),b=new tN(c,{frameTransform:g?m:null,ignoreTransforms:!g}),v=m.scaleX/h.scaleX,y=m.scaleY/h.scaleY;let x,S,{width:w,height:C,top:E,left:R}=b;g&&(w/=v,C/=y);const P=new nN(f),{transition:A,translate:I,boxSizing:k,paddingBlockStart:M,paddingBlockEnd:D,paddingInlineStart:T,paddingInlineEnd:q,borderInlineStartWidth:O,borderInlineEndWidth:L,borderBlockStartWidth:N,borderBlockEndWidth:j}=NL(c),_="clone"===d,z="content-box"===k,F=z?parseInt(T)+parseInt(q)+parseInt(O)+parseInt(L):0,H=z?parseInt(M)+parseInt(D)+parseInt(N)+parseInt(j):0,$="move"===d||this.overlay?null:tj(l,_?"clone":"hidden"),B=xM((()=>iN(o.dragOperation.activatorEvent)));if("none"!==I){const e=$L(I);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=xM((()=>s.current));p.transformOrigin={x:(e.x-R*h.scaleX-h.x)/(w*h.scaleX),y:(e.y-E*h.scaleY-h.y)/(C*h.scaleY)}}const{transformOrigin:W}=p,V=E*h.scaleY+h.y,U=R*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:U,y:V},1!==v||1!==y)){const{scaleX:e,scaleY:t}=m,{x:r,y:n}=W;p.coordinates.x+=(w*e-w)*r,p.coordinates.y+=(C*t-C)*n}p.dimensions||(p.dimensions={width:w,height:C}),p.frameTransform||(p.frameTransform=h);const G=p.coordinates.x-U,Y=p.coordinates.y-V,K=(p.dimensions.width*p.frameTransform.scaleX-w*h.scaleX)*W.x,X=(p.dimensions.height*p.frameTransform.scaleY-C*h.scaleY)*W.y,J=G/h.scaleX+K,Z=Y/h.scaleY+X,Q={left:R+J,top:E+Z};f.setAttribute(XN,"true");const ee=xM((()=>a.transform)),te=null!=(t=p.translate)?t:{x:0,y:0},re=`${ee.x*h.scaleX+te.x}px ${ee.y*h.scaleY+te.y}px 0`,ne=A?`${A}, translate 0ms linear`:"";if(P.set({width:w-F,height:C-H,top:Q.top,left:Q.left,translate:re,transition:ne,scale:g?`${v} ${y}`:"","transform-origin":`${100*W.x}% ${100*W.y}%`},KN),$&&(c.insertAdjacentElement("afterend",$),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}PL(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),AL(f),f.addEventListener("beforetoggle",nj));const oe=new ResizeObserver((()=>{if(!$)return;const e=new tN($,{frameTransform:h,ignoreTransforms:!0}),t=null!=W?W:{x:1,y:1},r=(w-e.width)*t.x+J,n=(C-e.height)*t.y+Z;if(P.set({width:e.width-F,height:e.height-H,top:E+n,left:R+r},KN),null==x||x.takeRecords(),oj(c)&&oj($)){const e=Array.from(c.cells),t=Array.from($.cells);for(const[r,n]of e.entries()){const e=t[r];n.style.width=`${e.offsetWidth}px`}}a.shape=new tN(f)})),ie=new tN(f);xM((()=>a.shape=ie));const ae=_O(f),se=e=>{this.manager.actions.stop({event:e})};B&&ae.addEventListener("resize",se),"idle"===xM((()=>l.status))&&requestAnimationFrame((()=>l.status="dragging")),$&&(oe.observe($),x=new MutationObserver((e=>{let t=!1;for(const r of e){if(r.target!==c){t=!0;continue}if("attributes"!==r.type)continue;const e=r.attributeName;if(e.startsWith("aria-")||ZN.includes(e))continue;const n=c.getAttribute(e);if("style"===e){if(rN(c)&&rN($)){const e=c.style;for(const t of Array.from($.style))""===e.getPropertyValue(t)&&$.style.removeProperty(t);for(const t of Array.from(e)){if(QN.includes(t)||t.startsWith(KN))continue;const r=e.getPropertyValue(t);$.style.setProperty(t,r)}}}else null!==n?$.setAttribute(e,n):$.removeAttribute(e)}t&&_&&($.innerHTML=c.innerHTML)})),x.observe(c,{attributes:!0,subtree:!0,childList:!0}),S=new MutationObserver((e=>{for(const t of e)if(0!==t.addedNodes.length)for(const e of Array.from(t.addedNodes)){if(e.contains(c)&&c.nextElementSibling!==$)return c.insertAdjacentElement("afterend",$),void AL(f);if(e.contains($)&&$.previousElementSibling!==c)return $.insertAdjacentElement("beforebegin",c),void AL(f)}})),S.observe(c.ownerDocument.body,{childList:!0,subtree:!0}));const le=null==(r=o.dragOperation.source)?void 0:r.id,ue=()=>{var e;if(!B||null==le)return;const t=o.registry.draggables.get(le),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;FO(r)&&r.focus()},ce=()=>{null==x||x.disconnect(),null==S||S.disconnect(),oe.disconnect(),ae.removeEventListener("resize",se),PL(f)&&(f.removeEventListener("beforetoggle",nj),f.removeAttribute("popover")),f.removeAttribute(XN),P.reset(),l.status="idle";const e=null!=n.current.translate;$&&(e||$.parentElement!==f.parentElement)&&f.isConnected&&$.replaceWith(f),null==$||$.remove()},de=TD((()=>{var e;const{transform:t,status:r}=a;if((t.x||t.y||n.current.translate)&&r.dragging){const r=null!=(e=p.translate)?e:{x:0,y:0},o={x:t.x/h.scaleX+r.x,y:t.y/h.scaleY+r.y},i=n.current.translate,s=xM((()=>a.modifiers)),l=xM((()=>{var e;return null==(e=a.shape)?void 0:e.current})),u=B?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(P.set({transition:`${A}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},KN),null==x||x.takeRecords(),l&&l!==ie&&i&&!s.length){const e=rT.delta(o,i);a.shape=nT.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new tN(f);n.current.translate=o}}),(function(){if(a.status.dropped){this.dispose(),l.status="dropping";let e=n.current.translate;const t=null!=e;if(e||c===f||(e={x:0,y:0}),!e)return void ce();const r=()=>{var r,n;{AL(f);const[,o]=null!=(r=OO(f,(e=>"translate"in e)))?r:[];null==o||o.pause();const i=null!=$?$:c,a={frameTransform:rj(f,i)?null:void 0},s=new tN(f,a),u=null!=(n=$L(NL(f).translate))?n:e,d=new tN(i,a),p=nT.delta(s,d,l.alignment),h={x:u.x-p.x,y:u.y-p.y},m=Math.round(s.intrinsicHeight)!==Math.round(d.intrinsicHeight)?{minHeight:[`${s.intrinsicHeight}px`,`${d.intrinsicHeight}px`],maxHeight:[`${s.intrinsicHeight}px`,`${d.intrinsicHeight}px`]}:{},g=Math.round(s.intrinsicWidth)!==Math.round(d.intrinsicWidth)?{minWidth:[`${s.intrinsicWidth}px`,`${d.intrinsicWidth}px`],maxWidth:[`${s.intrinsicWidth}px`,`${d.intrinsicWidth}px`]}:{};P.set({transition:A},KN),f.setAttribute(YN,""),null==x||x.takeRecords(),KL({element:f,keyframes:wN(SN(SN({},m),g),{translate:[`${u.x}px ${u.y}px 0`,`${h.x}px ${h.y}px 0`]}),options:{duration:t||f!==c?250:0,easing:"ease"}}).then((()=>{f.removeAttribute(YN),null==o||o.finish(),ce(),requestAnimationFrame(ue)}))}};o.renderer.rendering.then(r)}}));return()=>{ce(),de()}},dj=function(){var e,t,r;const{status:n,source:o,target:i}=this.manager.dragOperation,{nonce:a}=null!=(e=this.options)?e:{};if(n.initializing){const e=$O(null!=(t=null==o?void 0:o.element)?t:null),n=$O(null!=(r=null==i?void 0:i.element)?r:null),s=new Set([e,n]);for(const e of s){let t=pj.get(e);if(!t){const r=document.createElement("style");r.textContent=ej,a&&r.setAttribute("nonce",a),e.head.prepend(r);const n=new MutationObserver((t=>{for(const n of t)if("childList"===n.type){const t=Array.from(n.removedNodes);t.length>0&&t.includes(r)&&e.head.prepend(r)}}));n.observe(e.head,{childList:!0}),t={cleanup:()=>{n.disconnect(),r.remove()},instances:new Set},pj.set(e,t)}t.instances.add(this)}}},DN(sj,4,"overlay",ij,fj,lj),kN(sj,fj),fj.configure=$T(fj);var hj,mj,gj,bj,vj,yj,xj,Sj=fj,wj=!0;gj=[kD],bj=WL.Forward,hj=[kD],mj=WL.Reverse;var Cj=class{constructor(){LN(this,yj,MN(vj,8,this,wj)),MN(vj,11,this),LN(this,xj,MN(vj,12,this,wj)),MN(vj,15,this)}isLocked(e){return e!==WL.Idle&&(null==e?this[WL.Forward]===wj&&this[WL.Reverse]===wj:this[e]===wj)}unlock(e){e!==WL.Idle&&(this[e]=false)}};vj=RN(null),yj=new WeakMap,xj=new WeakMap,DN(vj,4,bj,gj,Cj,yj),DN(vj,4,mj,hj,Cj,xj),kN(vj,Cj);var Ej,Rj,Pj,Aj,Ij,kj,Mj=[WL.Forward,WL.Reverse],Dj=class{constructor(){this.x=new Cj,this.y=new Cj}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},Tj=class extends WT{constructor(e){super(e);const t=AM(new Dj);let r=null;this.signal=t,jM((()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new Dj);const{delta:o}=e.dragOperation.position;if(r){const e={x:qj(o.x,r.x),y:qj(o.y,r.y)},n=t.peek();vM((()=>{for(const t of pT)for(const r of Mj)e[t]===r&&n[t].unlock(r);t.value=n}))}r=o}))}get current(){return this.signal.peek()}};function qj(e,t){return Math.sign(e-t)}var Oj=class extends(Rj=UT,Ej=[kD],Rj){constructor(e){super(e),LN(this,Aj,MN(Pj,8,this,!1)),MN(Pj,11,this),LN(this,Ij),LN(this,kj,(()=>{if(!ON(this,Ij))return;const{element:e,by:t}=ON(this,Ij);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)})),this.scroll=e=>{var t;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return NN(this,Ij,void 0),!1;const{position:n}=this.manager.dragOperation,o=null==n?void 0:n.current;if(o){const{by:n}=null!=e?e:{},i=n?{x:Lj(n.x),y:Lj(n.y)}:void 0,a=i?void 0:this.scrollIntentTracker.current;if(null==a?void 0:a.isLocked())return!1;for(const e of r){const r=ML(e,n);if(r.x||r.y){const{speed:r,direction:s}=GL(e,o,i);if(a)for(const e of pT)a[e].isLocked(s[e])&&(r[e]=0,s[e]=0);if(s.x||s.y){const{x:o,y:i}=null!=n?n:s,a=o*r.x,l=i*r.y;if(a||l){const r=null==(t=ON(this,Ij))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return NN(this,Ij,{element:e,by:{x:a,y:l}}),TL.schedule(ON(this,kj)),!0}}}}}return NN(this,Ij,void 0),!1};let t=null,r=null;const n=AD((()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=JO($O(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t})),o=AD((()=>{const t=n.value,{documentElement:o}=$O(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=zL(n,{excludeElement:!1});return r=e,e}}if(t){const e=zL(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null}),ID);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new Tj(e),this.destroy=e.monitor.addEventListener("dragmove",(t=>{!this.disabled&&!t.defaultPrevented&&iN(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()}))}};function Lj(e){return e>0?WL.Forward:e<0?WL.Reverse:WL.Idle}Pj=RN(Rj),Aj=new WeakMap,Ij=new WeakMap,kj=new WeakMap,DN(Pj,4,"autoScrolling",Ej,Oj,Aj),kN(Pj,Oj);var Nj,jj=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise((e=>this.resolvers.add(e)))}}((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),_j=class extends WT{constructor(e,t){super(e);const r=e.registry.plugins.get(Oj);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=jM((()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval((()=>jj.schedule(r.scroll)),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}}))}},zj={capture:!0,passive:!0},Fj=class extends UT{constructor(e){super(e),LN(this,Nj),this.handleScroll=()=>{null==ON(this,Nj)&&NN(this,Nj,setTimeout((()=>{this.manager.collisionObserver.forceUpdate(!1),NN(this,Nj,void 0)}),50))};const{dragOperation:t}=this.manager;this.destroy=jM((()=>{var e,r,n;if(t.status.dragging){const o=null!=(n=null==(r=null==(e=t.source)?void 0:e.element)?void 0:r.ownerDocument)?n:document;return o.addEventListener("scroll",this.handleScroll,zj),()=>{o.removeEventListener("scroll",this.handleScroll,zj)}}}))}};Nj=new WeakMap;function Hj(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var $j,Bj=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var r;const n=null!=(r=t.handle)?r:t.element;return e.target===n}}),Wj=class extends eO{constructor(e,t){super(e),this.manager=e,this.options=t,LN(this,$j,[]),this.listeners=new QO,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!oN(e.target))return;if(t.disabled)return;const{keyboardCodes:n=Bj.keyboardCodes,preventActivation:o=Bj.preventActivation}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,r))}}bind(e,t=this.options){const r=jM((()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{iN(r)&&this.handleSourceKeyDown(r,e,t)};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}}));return r}handleStart(e,t,r){const{element:n}=t;if(!n)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),YL(n);const{center:o}=new tN(n);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=$O(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];ON(this,$j).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=Bj.keyboardCodes}=null!=r?r:{};if(Gj(e,[...n.end,...n.cancel])){e.preventDefault();const t=Gj(e,n.cancel);this.handleEnd(e,t)}else Gj(e,n.up)?this.handleMove("up",e):Gj(e,n.down)&&this.handleMove("down",e),Gj(e,n.left)?this.handleMove("left",e):Gj(e,n.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var r,n;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(n=null==(r=this.options)?void 0:r.offset)?n:Bj.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(_j);!1===(null==e?void 0:e.disabled)&&(e.disable(),ON(this,$j).push((()=>{e.enable()})))}cleanup(){ON(this,$j).forEach((e=>e())),NN(this,$j,[])}destroy(){this.cleanup(),this.listeners.clear()}};$j=new WeakMap,Wj.configure=$T(Wj),Wj.defaults=Bj;var Vj,Uj=Wj;function Gj(e,t){return t.includes(e.code)}var Yj,Kj;Vj=new WeakMap;Yj=new WeakMap,Kj=new WeakMap;var Xj=class{};Xj.Delay=class extends rO{constructor(){super(...arguments),LN(this,Yj),LN(this,Kj)}onEvent(e){switch(e.type){case"pointerdown":NN(this,Kj,VO(e)),NN(this,Yj,setTimeout((()=>this.activate(e)),this.options.value));break;case"pointermove":if(!ON(this,Kj))return;const{x:t,y:r}=VO(e);aT({x:t-ON(this,Kj).x,y:r-ON(this,Kj).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){ON(this,Yj)&&(clearTimeout(ON(this,Yj)),NN(this,Kj,void 0),NN(this,Yj,void 0))}},Xj.Distance=class extends rO{constructor(){super(...arguments),LN(this,Vj)}onEvent(e){switch(e.type){case"pointerdown":NN(this,Vj,VO(e));break;case"pointermove":if(!ON(this,Vj))return;const{x:t,y:r}=VO(e),n={x:t-ON(this,Vj).x,y:r-ON(this,Vj).y},{tolerance:o}=this.options;if(o&&aT(n,o))return void this.abort();aT(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){NN(this,Vj,void 0)}};var Jj,Zj=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!oN(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new Xj.Delay({value:250,tolerance:5})]:function(e){if(!oN(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(r=e).hasAttribute("contenteditable")&&"false"!==r.getAttribute("contenteditable");var r}(o)&&!e.defaultPrevented?[new Xj.Delay({value:200,tolerance:0})]:[new Xj.Delay({value:200,tolerance:10}),new Xj.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!oN(n)&&(!(null==(r=t.handle)?void 0:r.contains(n))&&Boolean(n.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),Qj=class extends eO{constructor(e,t){super(e),this.manager=e,this.options=t,LN(this,Jj,new Set),this.listeners=new QO,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t){var r;const{activationConstraints:n=Zj.activationConstraints}=null!=(r=this.options)?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=jM((()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=_O(e.target);return e instanceof t})(r)&&this.handlePointerDown(r,e,t)};let a=[null!=(r=e.handle)?r:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(o_(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>n.abort()}));return r}handlePointerDown(e,t,r){if(this.disabled||!e.isPrimary||0!==e.button||!oN(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=Zj.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=FO(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=FL(t.element),{x:s,y:l}=VO(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t);e.sensor=this;const c=new tO(u,(e=>this.handleStart(t,e)));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=GO(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"dragstart",listener:i?this.handleCancel:t_,options:{capture:!0}}]);ON(this,Jj).add((()=>{p(),this.initialCoordinates=void 0}))}handlePointerMove(e,t){var r,n;if(!1!==(null==(r=this.controller)?void 0:r.activated)){if(this.manager.dragOperation.status.dragging){const r=VO(e),n=FL(t.element);r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,TL.schedule(this.handleMove)}}else null==(n=this.controller)||n.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const r=!t.initialized;this.manager.actions.stop({event:e,canceled:r})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:r,initialCoordinates:n}=this;if(!n||!r.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(r.actions.start({coordinates:n,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=$O(t.target);o.body.setPointerCapture(t.pointerId);const i=oN(t.target)?[t.target,o.body]:o.body,a=this.listeners.bind(i,[{type:"touchmove",listener:t_,options:{passive:!1}},{type:"click",listener:t_},{type:"contextmenu",listener:t_},{type:"keydown",listener:this.handleKeyDown}]);ON(this,Jj).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){this.latest={event:void 0,coordinates:void 0},ON(this,Jj).forEach((e=>e())),ON(this,Jj).clear()}destroy(){this.cleanup(),this.listeners.clear()}};Jj=new WeakMap,Qj.configure=$T(Qj),Qj.defaults=Zj;var e_=Qj;function t_(e){e.preventDefault()}function r_(){}var n_=new WeakSet;function o_(e){e&&!n_.has(e)&&(e.addEventListener("touchmove",r_,{capture:!1,passive:!1}),n_.add(e))}var i_,a_,s_,l_,u_,c_,d_,p_,f_,h_,m_,g_,b_,v_,y_,x_,S_,w_,C_={modifiers:[],plugins:[UN,_j,class extends WT{constructor(e,t){super(e,t),this.manager=e;const r=AD((()=>{var e;return $O(null==(e=this.manager.dragOperation.source)?void 0:e.element)}));this.destroy=jM((()=>{var e;const{dragOperation:t}=this.manager,{cursor:n="grabbing",nonce:o}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=r.value,t=e.createElement("style");return o&&t.setAttribute("nonce",o),t.textContent=`* { cursor: ${n} !important; }`,e.head.appendChild(t),()=>t.remove()}}))}},Sj,class extends WT{constructor(e,t){super(e,t),this.manager=e,this.destroy=jM((()=>{var e;const{dragOperation:t}=this.manager,{nonce:r}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=document.createElement("style");return r&&e.setAttribute("nonce",r),e.textContent="* { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(e),Hj(),document.addEventListener("selectionchange",Hj,{capture:!0}),()=>{document.removeEventListener("selectionchange",Hj,{capture:!0}),e.remove()}}}))}}],sensors:[e_,Uj]},E_=class extends PO{constructor(e={}){const{plugins:t=C_.plugins,sensors:r=C_.sensors,modifiers:n=[]}=e;super(wN(SN({},e),{plugins:[Fj,Oj,...t],sensors:r,modifiers:n}))}},R_=class extends(l_=Jq,s_=[kD],a_=[kD],i_=[kD],l_){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=EN(r,["element","effects","handle","feedback"]);super(SN({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(BT))?t:[...r.sensors]).map((e=>{const t=e instanceof eO?e:r.registry.register(e.plugin),n=e instanceof eO?void 0:e.options;return t.bind(this,n)}));return function(){n.forEach((e=>e()))}}]},s),t),LN(this,c_,MN(u_,8,this)),MN(u_,11,this),LN(this,d_,MN(u_,12,this)),MN(u_,15,this),LN(this,p_,MN(u_,16,this)),MN(u_,19,this),this.element=n,this.handle=i,this.feedback=a}};u_=RN(l_),c_=new WeakMap,d_=new WeakMap,p_=new WeakMap,DN(u_,4,"handle",s_,R_,c_),DN(u_,4,"element",a_,R_,d_),DN(u_,4,"feedback",i_,R_,p_),kN(u_,R_);var P_=class extends(m_=Zq,h_=[kD],f_=[kD],m_){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=EN(r,["element","effects"]);const{collisionDetector:a=lN}=i,s=e=>{const{manager:t,element:r}=this;if(!r||null===e)return void(this.shape=void 0);if(!t)return;const n=new tN(r),o=xM((()=>this.shape));return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=AM(!1);super(wN(SN({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:r}=t,{source:n}=r;l.value=Boolean(n&&r.status.initialized&&e&&!this.disabled&&this.accepts(n))},()=>{const{element:e}=this;if(l.value&&e){const t=new RL(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),LN(this,S_),LN(this,b_,MN(g_,8,this)),MN(g_,11,this),LN(this,w_,MN(g_,12,this)),MN(g_,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){NN(this,S_,e,x_)}get element(){var e;return null!=(e=this.proxy)?e:ON(this,S_,y_)}};function A_(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}g_=RN(m_),b_=new WeakMap,S_=new WeakSet,w_=new WeakMap,v_=DN(g_,20,"#element",h_,S_,b_),y_=v_.get,x_=v_.set,DN(g_,4,"proxy",f_,P_,w_),kN(g_,P_);var I_="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?L:E;function k_(){const e=w(0)[1];return T((()=>{e((e=>e+1))}),[e])}function M_(e,t=[],r=!1){const n=D(e);return n.current=e,function(e,t=!1){const r=D(e.peek()),n=D(!1),o=k_();return I_((()=>jM((()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?$(o):o()}}))),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(C((()=>AD((()=>n.current()))),t),r)}function D_(e,t){const r=D(new Map),n=k_();return I_((()=>{if(e)return jM((()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=xM((()=>n[1])),u=e[s];l!==u&&(i=!0,r.current.set(s,u),a=null!=(o=null==t?void 0:t(s,l,u))&&o)}i&&(a?$(n):n())}));r.current.clear()}),[e]),C((()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e),[e])}function T_(e,t){e()}function q_(e){const t=D(e);return I_((()=>{t.current=e}),[e]),t}function O_(e,t,r=E,n=Object.is){const o=D(e);r((()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))}),[t,e])}function L_(e,t){const r=D(A_(e));I_((()=>{const n=A_(e);n!==r.current&&(r.current=n,t(n))}))}var N_=Object.getOwnPropertySymbols,j_=Object.prototype.hasOwnProperty,__=Object.prototype.propertyIsEnumerable,z_=new E_,F_=M(z_),H_=O(q((({children:e},t)=>{const[r,n]=w(0),o=D(null),i=D(null),a=C((()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise((e=>{i.current=e}))),j((()=>{e(),n((e=>e+1))}))}})),[]);return I_((()=>{var e;null==(e=i.current)||e.call(i),o.current=null}),[e,r]),_(t,(()=>a)),null}))),$_=[void 0,ID];function B_(e){var t=e,{children:r,onCollision:n,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,u=((e,t)=>{var r={};for(var n in e)j_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&N_)for(var n of N_(e))t.indexOf(n)<0&&__.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const c=D(null),{plugins:d,modifiers:p,sensors:f}=u,h=q_(o),m=q_(i),g=q_(s),b=q_(a),v=q_(l),y=q_(n),x=function(e){const t=D(null);t.current||(t.current=e());return N((()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()}),[]),t.current}((()=>{var e;return null!=(e=u.manager)?e:new E_(u)}));return E((()=>{if(!c.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=c.current,{monitor:r}=x;x.renderer=e;const n=[r.addEventListener("beforedragstart",(e=>{const r=h.current;r&&t((()=>r(e,x)))})),r.addEventListener("dragstart",(e=>{var t;return null==(t=m.current)?void 0:t.call(m,e,x)})),r.addEventListener("dragover",(e=>{const r=g.current;r&&t((()=>r(e,x)))})),r.addEventListener("dragmove",(e=>{const r=b.current;r&&t((()=>r(e,x)))})),r.addEventListener("dragend",(e=>{const r=v.current;r&&t((()=>r(e,x)))})),r.addEventListener("collision",(e=>{var t;return null==(t=y.current)?void 0:t.call(y,e,x)}))];return()=>n.forEach((e=>e()))}),[x]),O_(d,(()=>x&&(x.plugins=null!=d?d:C_.plugins)),...$_),O_(f,(()=>x&&(x.sensors=null!=f?f:C_.sensors)),...$_),O_(p,(()=>x&&(x.modifiers=null!=p?p:C_.modifiers)),...$_),tr.jsxs(F_.Provider,{value:x,children:[tr.jsx(H_,{ref:c,children:r}),r]})}function W_(){return S(F_)}function V_({children:e,className:t,style:r,tag:n,disabled:o}){var i;const a=D(null),s=W_(),l=null!=(i=M_((()=>null==s?void 0:s.dragOperation.source),[s]).value)?i:null,u="function"==typeof o?o(l):o;E((()=>{if(!a.current||!s||u)return;const e=s.plugins.find((e=>e instanceof Sj));return e?(e.overlay=a.current,()=>{e.overlay=void 0}):void 0}),[s,u]);const c=C((()=>{if(!s)return null;const e=new Proxy(s.registry,{get:(e,t)=>"register"===t||"unregister"===t?U_:e[t]});return new Proxy(s,{get:(t,r)=>"registry"===r?e:t[r]})}),[s]);return tr.jsx(F_.Provider,{value:c,children:R(n||"div",{ref:a,className:t,style:r,"data-dnd-overlay":!0},function(){if(!l||u)return null;if("function"==typeof e)return tr.jsx(G_,{source:l,children:e});return e}())})}function U_(){return()=>{}}function G_({children:e,source:t}){return e(D_(t))}var Y_,K_,X_,J_,Z_,Q_=Object.create,ez=Object.defineProperty,tz=Object.getOwnPropertyDescriptor,rz=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),nz=e=>{throw TypeError(e)},oz=["class","method","getter","setter","accessor","field","value","get","set"],iz=e=>void 0!==e&&"function"!=typeof e?nz("Function expected"):e,az=(e,t,r,n,o)=>({kind:oz[e],name:t,metadata:n,addInitializer:e=>r._?nz("Already initialized"):o.push(iz(e||null))}),sz=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=oz[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,tz(o,r)),h=n.length-1;h>=0;h--)(l=az(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,iz(a)&&(f[d]=a);return f&&ez(o,r,f),o},lz=(e,t,r)=>t.has(e)||nz("Cannot "+r),uz=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},cz=class extends(X_=OD,K_=[MD],Y_=[MD],X_){constructor(e){var t,r,n;super(uz.from(e),((e,t)=>uz.equals(e,t))),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(Z_,5,this),t=this,n=0,(r=J_).has(t)?nz("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return uz.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=uz.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(lz(a=this,s=J_,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);vM((()=>{((e,t,r)=>{lz(e,t,"write to private field"),t.set(e,r)})(this,J_,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(uz.from(e)),this.velocity={x:0,y:0}}};Z_=(e=>{var t;return[,,,Q_(null!=(t=null==e?void 0:e[rz("metadata")])?t:null)]})(X_),J_=new WeakMap,sz(Z_,2,"delta",K_,cz),sz(Z_,2,"direction",Y_,cz),((e,t)=>{((e,t,r)=>{t in e?ez(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,rz("metadata"),e[3])})(Z_,cz);var dz=(e=>(e.Horizontal="x",e.Vertical="y",e))(dz||{});function pz(e){const t=W_();E((()=>{if(!t)return;const r=Object.entries(e).reduce(((e,[r,n])=>{if(n){const o=r.replace(/^on/,"").toLowerCase(),i=t.monitor.addEventListener(o,n);e.push(i)}return e}),[]);return()=>r.forEach((e=>null==e?void 0:e()))}),[t,e])}Object.values(dz);const fz=()=>{const[e,t]=w(!1);return pz({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?tr.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},hz=()=>{const{flags:e}=$I(_I,(e=>e.env)),t=$I(_I,(e=>e.baseProps.layout));return!e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")||void 0===t.accessibleHeader||t.accessibleHeader},mz=(e,{atTop:t,atBottom:r},n)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!n&&r?e.grid.divider:e.grid.border,borderBottomColor:n&&!t||!n&&t?e.grid.divider:e.grid.border}),gz=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),bz=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),vz=e=>e.atTop?2:1,yz=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],xz=e=>e?.setAttribute("tabIndex","0"),Sz=e=>e?.setAttribute("tabIndex","-1"),wz=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(Sz)},Cz=e=>{e?.focus(),xz(e)},Ez=e=>{setTimeout((()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${QC}`);Cz(t)}),0)},Rz=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{wz(t);const a=((e,t,r,n,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,s=t.getElementsByClassName("sn-table-row").length-1-o.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[u,c]=r;switch(e.key){case ZC.Down:u<s&&u++;break;case ZC.Up:u>a&&u--;break;case ZC.Right:if(i)break;[u,c]="rtl"===n?gz({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):bz({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case ZC.Left:if(i)break;[u,c]="rtl"===n?bz({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):gz({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case ZC.Home:(sI(e)||i)&&(u=a),i||(c=0);break;case ZC.End:(sI(e)||i)&&(u=s),i||(c=l);break;case ZC.PageDown:u=Math.min(s,u+10);break;case ZC.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=yz(t,a);return Cz(s),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(!r?.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[n].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-i.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),n(a),{nextCell:s,nextCellCoord:a}},Pz=(e,t,r,n)=>{wz(t),r(e),n.enabled&&!n.active?n.focus?.():Cz(yz(t,e))},Az=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${KC}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${PA.First}`),r=e.querySelector(`.${PA.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},Iz=q(((e,t)=>tr.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:tr.jsx("path",{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10M3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0zM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0"})}))),kz=ac(Lh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...HA,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}}))),Mz=ac("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:_A,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),Dz=parseInt(_A,10)/2,Tz=ac("div")({position:"absolute",bottom:-Dz,left:`calc(50% - ${Dz}px)`}),qz={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},Oz=ac(Xd)({height:"100%"}),Lz=ac("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e})((({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1})=>n||1===e&&!t?{...qz,whiteSpace:"nowrap",display:r?"block":void 0}:{...qz,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"})),Nz=ac("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),jz="cell-text",_z=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=$I(_I,(e=>e.baseProps));return o?tr.jsx(Lz,{"data-testid":jz,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):tr.jsx(Lz,{"data-testid":jz,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},zz=x.forwardRef(((e,t)=>{const{column:r,isInteractionEnabled:n,open:o,setOpen:i,isPagination:a,forwardRef:s}=e,{translator:l,changeSortOrder:u,interactions:c,embed:d,app:p,styleService:f,layout:h,direction:m}=$I(_I,(e=>e.baseProps)),g=$I(_I,(e=>e.columnWidths[r.pageColIdx])),b=$I(_I,(e=>e.baseProps.model)),v=D(null),y=D(null),x=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=zC({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:zA});let o=!1,i=!1,a=!1;const s=t.isLocked,l=t.isActivelySorted,u=r-25,c=s?20:0,d=l?20:0;let p=n(t.label);return s&&p+c<=u&&(a=!0,p+=c,l&&p+d<=u&&(i=!0,p+=d)),!s&&l&&p+d<=u&&(i=!0,p+=d),p+24<=u&&(o=!0,p+=24),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({styleService:f,column:r,columnWidth:g}),{StartIcon:S,EndIcon:w,LockIcon:C}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?tr.jsx(wk,{height:_A,"data-testid":"head-cell-sort-ascending-icon"}):tr.jsx(Rk,{height:_A,"data-testid":"head-cell-sort-descending-icon"}),a=r?tr.jsx(Mz,{align:t,dir:o,children:i}):void 0,s=n?tr.jsx(eI,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:tr.jsx(Iz,{height:_A,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(r,x,m);return tr.jsxs(QA,{ref:t,shouldShowMenuIcon:x.shouldShowMenuIcon,shouldShowLockIcon:x.shouldShowLockIcon,alignment:UA(r,a,m),children:[C,tr.jsxs(ZA,{className:"sn-table-head-label",textAlign:r.headTextAlign,direction:m,isPagination:a,children:[S,tr.jsx(_z,{forwardRef:s,isPagination:a,isHeadCell:!0,children:r.label}),w]}),n?tr.jsxs(tr.Fragment,{children:[tr.jsx(zk,{headerData:{...r,dimensionInfoIndex:r.colIdx},translator:l,anchorRef:v,menuAvailabilityFlags:{[Nk.Sorting]:!0,[Nk.Searching]:!0,[Nk.Selections]:!0,[Nk.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:c,sortRelatedArgs:{sortFromMenu:(e,t)=>(e.stopPropagation(),u(r,t))},searchRelatedArgs:{embed:d,listboxRef:y},selectionRelatedArgs:{app:p,qStateName:h.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:Ez},shouldShowMenuIcon:x.shouldShowMenuIcon,model:b,direction:m,isPagination:a,isAccessibleHeader:!0}),tr.jsx(JA,{ref:y,direction:m,isPagination:a}),tr.jsx(JA,{ref:v,direction:m})]}):null]})})),Fz=q(((e,t)=>tr.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:tr.jsx("path",{d:"M6 2h10V1H6zm5 5h5V6h-5zm5 5h-5v-1h5zM5 10h1v2.663a3.5 3.5 0 1 0-2.922.036l-.406.914A4.501 4.501 0 1 1 7.329 13H9v1H5z"})}))),Hz=(e,t)=>e.isCyclic&&t,$z=({column:e})=>{const{direction:t,model:r,styleService:n}=$I(_I,(e=>e.baseProps)),o=x.useRef(null),[i,a]=x.useState(!1),s=KI({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return tr.jsxs(tr.Fragment,{children:[tr.jsx(rI,{hoverBackground:n.headerMenuHoverBackground,activeBackground:n.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:tr.jsx(Fz,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),tr.jsx(gk,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),a(!1),s?.(r)},enabled:!0,icon:Pk,isActive:e.groupDimensionPos===r})))}]],anchorEl:o.current,direction:t,isPagination:!1})]})},Bz=e=>e.isLocked,Wz=({column:e})=>{const t=$I(_I,(e=>e.baseProps.app)),r=$I(_I,(e=>e.baseProps.layout.qStateName)),n=$I(_I,(e=>e.baseProps.styleService));return tr.jsx(rI,{tabIndex:-1,hoverBackground:n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=vk(t??"$",r);let o;try{const t=await(e?.createSessionObject(n));o=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){console.error("Failed to unlock field from table header",e)}finally{o&&(await(e?.destroySessionObject(o))||console.error("Failed to destroy session object when unlocking field from table header"))}})(t,r,e)},children:tr.jsx(Iz,{height:16,"data-testid":"head-cell-lock-icon"})})},Vz=({column:e,open:t,setOpen:r,isPagination:n})=>{const{translator:o,interactions:i,app:a,layout:s,direction:l,changeSortOrder:u,embed:c,styleService:d}=$I(_I,(e=>e.baseProps)),p=$I(_I,(e=>e.baseProps.model)),f=x.useRef(null),h=x.useRef(null);return tr.jsxs(rI,{tabIndex:-1,hoverBackground:d.headerMenuHoverBackground,activeBackground:d.headerMenuActiveBackground,isActive:t,order:e.isDim?void 0:-1,children:[tr.jsx(zk,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:o,anchorRef:f,menuAvailabilityFlags:{[Nk.Sorting]:!0,[Nk.Searching]:!0,[Nk.Selections]:!0,[Nk.AdjusterHeaderSize]:!0},open:t,setOpen:r,interactions:i,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),u(e,r))},searchRelatedArgs:{embed:c,listboxRef:h},selectionRelatedArgs:{app:a,qStateName:s.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:Ez},shouldShowMenuIcon:!0,model:p,direction:l,isPagination:n,isAccessibleHeader:!1,iconSize:16}),tr.jsx(JA,{ref:h,direction:l,isPagination:n}),tr.jsx(JA,{ref:f,direction:l})]})},Uz=e=>e.at(0)?.contentBoxSize.at(0)?.blockSize,Gz=(e,t)=>{const r=D(t);r.current=t,L((()=>{if(!e.current)return()=>{};const t=new ResizeObserver((e=>{r.current(e)}));return t.observe(e.current),()=>{t.disconnect()}}),[e])},Yz=ac(Xd)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),Kz=x.forwardRef((({children:e},t)=>{const r=x.useRef(null),[n,o]=w((()=>new Set(e.filter((({props:e})=>void 0!==e.prio&&e.children)).map((({key:e})=>e))))),i=C((()=>Array.from(e).sort(((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)))),[e]),a=T((e=>{const t=new Set,r=e.at(0)?.contentBoxSize.at(0)?.inlineSize??0;let n=0;i.forEach((e=>{if(e.props.ignore||!e.props.children)return;const o=e.props.minWidth+1;void 0===e.props.prio||n+o<=r?n+=o:t.add(e.key)})),o((e=>e.size===t.size&&[...e].every((e=>t.has(e)))?e:t))}),[i]);Gz(r,a);const s=T((e=>{r.current=e,"function"==typeof t?t(e):t&&(t.current=e)}),[r,t]);return tr.jsx(Yz,{ref:s,"data-testid":"responsive-container",children:e.filter((e=>!n.has(e.key)))})})),Xz=({children:e})=>e,Jz=(e,t)=>!e.isLocked&&e.isDim&&t,Zz=({column:e,open:t,setOpen:r})=>{const{embed:n,app:o,direction:i,layout:a,styleService:s}=$I(_I,(e=>e.baseProps)),l=x.useRef(null),u=T((()=>{r(!1)}),[r]),c=bk({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:n,listboxRef:l},selectionRelatedArgs:{qStateName:a.qStateName},direction:i,onPopoverClose:u});return tr.jsx(rI,{tabIndex:-1,hoverBackground:s.headerMenuHoverBackground,activeBackground:s.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),c(),r(!0)},children:tr.jsx(Mk,{ref:l,height:16,"data-testid":"head-cell-search-icon"})})},Qz=q(((e,t)=>tr.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:tr.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"})}))),eF=q(((e,t)=>tr.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:tr.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"})}))),tF=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?tr.jsx(eF,{height:_A,"data-testid":"head-cell-sort-ascending-icon"}):tr.jsx(Qz,{height:_A,"data-testid":"head-cell-sort-descending-icon"});return r?tr.jsx(Tz,{children:n}):void 0},rF=0,nF=1,oF=2,iF=3,aF=x.forwardRef(((e,t)=>{const{column:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,{styleService:s}=$I(_I,(e=>e.baseProps)),l=(()=>{const e=$I(_I,(e=>e.baseProps.interactions.active)),t=$I(_I,(e=>e.baseProps.selectionsAPI?.isModal()));return!!e&&!t})(),{measureText:u}=zC(s.header),[c,d]=x.useState(!1);return tr.jsxs(Kz,{ref:t,children:[tr.jsx(Xz,{prio:oF,minWidth:XA,children:Bz(r)?tr.jsx(Wz,{column:r}):null},"Lock"),tr.jsx(Xz,{prio:nF,minWidth:XA,children:Hz(r,l)?tr.jsx($z,{column:r}):null},"Cyclic"),tr.jsx(Xz,{ignore:!0,children:tr.jsx(tF,{column:r})},"Sort"),tr.jsx(Xz,{minWidth:u(r.label)+8,children:tr.jsx(tI,{justifyContent:r.headTextAlign,children:tr.jsx(_z,{forwardRef:a,isPagination:i,isHeadCell:!0,children:r.label})})},"Text"),tr.jsx(Xz,{prio:rF,minWidth:XA,children:c||Jz(r,l)?tr.jsx(Zz,{open:c,setOpen:d,column:r}):null},"Search"),tr.jsx(Xz,{prio:iF,minWidth:XA,children:l?tr.jsx(Vz,{column:r,open:n,setOpen:o,isPagination:i}):null},"Menu")]})})),sF=ac("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e})((({background:e,applicableStyle:t})=>({...t,background:e}))),lF=()=>{},uF=({column:e,isPagination:t})=>{const{styleService:r,direction:n}=$I(_I,(e=>e.baseProps)),o=$I(_I,(e=>e.showRightBorder)),i=$I(_I,(e=>e.tableData.totalsPosition)),a=!1,s=hz()?zz:aF;return tr.jsx(sF,{className:"sn-table-cell",applicableStyle:{...r.header,...mz(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:YA(n,a,o),borderLeftWidth:KA(n,a,o),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:e.headTextAlign,boxSizing:"border-box",flexDirection:"right"===e.headTextAlign?"row-reverse":"row",userSelect:"none",width:"100%"},background:r.header.background,children:tr.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:lF})})},cF=({isPagination:e})=>{const{columns:t}=$I(_I,(e=>e.tableData)),[r,n]=w();pz({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find((e=>e.id===r)):void 0;return o?tr.jsx(V_,{children:tr.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:tr.jsx(uF,{column:o,isPagination:e})})}):null},dF=C_.sensors.filter((e=>e!==Uj)),pF=C_.plugins.filter((e=>e!==UN)),fF=({children:e})=>{const{model:t}=$I(_I,(e=>e.baseProps)),{columns:r}=$I(_I,(e=>e.tableData));return tr.jsx(B_,{onDragOver:e=>{const n=e.operation.source?.id,o=e.operation.target?.id;void 0!==o&&n!==o&&(async(e,t,r,n)=>{if(!e||!("getEffectiveProperties"in e))return;const o=t.findIndex((e=>e.id===r)),i=t.findIndex((e=>e.id===n)),a=[...t],[s]=a.splice(o,1);a.splice(i,0,s);const l=[{qPath:"/qHyperCubeDef/qColumnOrder",qOp:"Replace",qValue:`[${a.map((e=>e.colIdx)).join(",")}]`}];e.applyPatches(l,!0)})(t,r,n,o)},sensors:dF,plugins:pF,children:e})};function hF(e,t){const r=D(!1);E((()=>{r.current?e():r.current=!0}),t)}const mF=()=>{const{downloadService:e}=$I(_I,(e=>e.baseProps));E((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))},gF=(e,t,r)=>{const{rootElement:n,keyboard:o}=$I(_I,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:s,totalsPosition:l}=$I(_I,(e=>e.tableData)),u=$I(_I,(e=>e.focusedCellCoord)),c=$I(_I,(e=>e.setFocusedCellCoord)),d=$I(_I,(e=>e.baseProps.selectionsAPI?.isModal()));hF((()=>{const r=((e,t,r=!1)=>{const n=[vz(t),e[1]];return r?n:AA})(u,l,d);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(wz(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=yz(t,e);r.current?(Cz(s),r.current=!1):xz(s),n&&(a({keys:[s?.textContent??""]}),aI(a,s,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[s.length,a,i,r])},bF=(e,t,r)=>{E((()=>{const n=e.current;if(!n)return;const o=e=>{((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n)},i=e=>{r.scrollLeft=e.currentTarget?.scrollLeft||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,t,r])},vF=e=>{kC(e),sI(e)&&sE(e.currentTarget)},yF=e=>{dI(e.evt)&&(kC(e.evt),Rz(e))},xF=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!dI(t))return;kC(t);const i=((e,t)=>[e.pageRowIdx+vz(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?vz(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=Rz({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:r,selectionDispatch:n,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&r.isSelectable?n({type:EA.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):aI(o,a,i)})({...e,nextCell:s})},SF=e=>{const{evt:t}=e;lI(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{kC(e);const a=Math.ceil(t/r)-1;e.key===ZC.Right&&n<a?(o(),i(n+1)):e.key===ZC.Left&&n>0&&(o(),i(n-1))})(e):t.key===ZC.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(kC(e),t.blur?.(!0))})(e):uI(t.key)&&kC(t)},wF=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(CA.Disabled))return void kC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case ZC.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{kC(e),t.isSelectable&&r&&n({type:EA.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case ZC.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{kC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case ZC.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(kC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case ZC.C:vF(t);break;case ZC.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(kC(e),IC(e.currentTarget,t,e.shiftKey))})(n);break;default:xF(n)}},CF=e=>{const[t,r]=w(0),[n,o]=w(0),i=$I(_I,(e=>e.isAdjustingWidth));return Gz(e,(t=>{if(e.current&&!i){const e=t.at(0)?.borderBoxSize.at(0)?.inlineSize??0,n=t.at(0)?.borderBoxSize.at(0)?.blockSize??0,i=t.at(0)?.contentBoxSize.at(0)?.inlineSize??0,a=n-(t.at(0)?.contentBoxSize.at(0)?.blockSize??0);o(e-i),r(a)}})),{xScrollbarWidth:t,yScrollbarWidth:n}},EF=ac("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),RF=ac(zh,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),PF=ac(Ch,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),AF=()=>tr.jsxs(tr.Fragment,{children:[tr.jsx(EF,{className:PA.First,"data-testid":PA.First,"aria-live":"polite","aria-atomic":"true"}),tr.jsx(EF,{className:PA.Second,"data-testid":PA.Second,"aria-live":"polite","aria-atomic":"true"})]}),IF=e=>{const t=D(new Map),r=D(null);E((()=>{r.current=e(t.current),t.current.forEach(((e,t)=>{r.current?.observe(t)}));const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}}),[e,r,t]);const n=T(((e,n)=>{t.current.set(e,n),r.current?.observe(e)}),[t,r]),o=T((e=>{t.current.delete(e),r.current?.unobserve(e)}),[r,t]);return C((()=>({addTask:n,removeTask:o})),[n,o])},kF=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);r?.(t)}))})),MF=()=>IF(kF),DF=({selectionsAPI:e,selectionDispatch:t,updateShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{E((()=>{const i=()=>{t({type:EA.Reset})},a=()=>{t({type:EA.Clear})},s=()=>{o.current?.contains(document.activeElement)?r():n.enabled&&n.blur?.(!0),i()};return e?.on("deactivated",i),e?.on("canceled",i),e?.on("confirmed",s),e?.on("cleared",a),()=>{e?.removeListener("deactivated",i),e?.removeListener("canceled",i),e?.removeListener("confirmed",s),e?.removeListener("cleared",a)}}),[e,n,t,r,o])},TF=e=>{e.stopPropagation()},qF=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:TF,color:wC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),OF=({href:e,text:t,interactions:r,color:n})=>tr.jsx(Yp,{...qF({href:e,text:t,interactions:r,color:n}),children:t}),LF=window.requestIdleCallback??(e=>setTimeout((()=>{e({})}),0)),NF=window.cancelIdleCallback??(e=>{clearTimeout(e)}),jF="qDimensionInfo/0",_F="qMeasureInfo/0",zF="x",FF="y",HF=e=>({key:"bars",type:"box",data:{extract:{field:jF,props:{start:0,end:{field:_F}}}},settings:{major:{scale:zF},minor:{scale:FF},box:{maxWidthPx:8,fill:{fn:e}}}}),$F=e=>({key:"p",type:"point",data:{extract:{field:jF,props:{y:{field:_F}}}},settings:{x:{scale:zF},y:{scale:FF},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),BF=({qNum:e})=>void 0===e?0:Math.sign(e),WF=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=PC(e,t?.negative,r),a=PC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:jF,props:{start:0,end:{field:_F,value:BF}}}},settings:{major:{scale:zF},minor:{scale:FF},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?n:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},VF=(e,{type:t,showDots:r,colors:n,colorMin:o,colorMax:i})=>{const a=((e,t,r,n)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=PC(e,t?.main,o),l=PC(e,t?.max,s),u=PC(e,t?.min,s),c=PC(e,t?.first,s),d=PC(e,t?.last,s);return e=>{const t=FF in e.datum?FF:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=n?l:e.datum[t].value<=r?u:e.data.items.at(0)===e.datum?c:e.data.items.at(-1)===e.datum?d:s}})(e,n,o,i);switch(t){case"bars":return[HF(a)];case"dots":return[$F(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:jF,props:{v:{field:_F}}}},settings:{coordinates:{major:{scale:zF},minor:{scale:FF,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(PC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,$F(a)]:[t]}case"posNeg":return[WF(e,n)];default:return[]}},UF=e=>({qDimensionInfo:[{qFallbackTitle:"",qCardinal:1}],qMeasureInfo:[{qFallbackTitle:""}],qDataPages:[{qArea:{qTop:0,qLeft:0,qHeight:e.length,qWidth:2},qMatrix:e}],qEffectiveInterColumnSortOrder:[0,1],qSize:{qcx:2,qcy:e.length},qMode:"S"}),GF=(e,t,r,n)=>({y:{data:{field:_F},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:jF}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),YF=W();YF.use(B),YF.renderer.prio(["canvas"]);const KF={resolve:()=>{},promise:{}},XF=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=D(e.isDownloadedAsPDForImage?It():KF);return{addChartPromiseToQueue:T((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:T((()=>{if(null===t.current||null!==e.current)return;u();r.current=LF((()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:r,miniChartData:n,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:u}=n;return YF.chart({element:e,data:{type:"q",key:"qHyperCube",data:UF(s)},settings:{scales:GF(a,l,u,i),components:VF(t,n),strategy:r?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))}),{timeout:2e3})}),[t,e,u,r,n,o,a,i,l]),safeCancelIdleCallback:T((()=>{null!==r.current&&NF(r.current),r.current=null,l()}),[r,l])}},JF=e=>{const t=D(null),r=D(!1);return T((n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(NF(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=LF((()=>{e.current?.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},ZF=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=D(null),l=D(null),u=D(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=XF({element:s,chart:l,requestId:u,theme:r,isSnapshot:n,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=T((e=>{e.isIntersecting?n():r()}),[n,r]);E((()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{t.removeTask(n),r(),o.current?.destroy(),o.current=null}}),[o,e,t,r,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionObserverTaskScheduler:n})=>{E((()=>n?()=>{}:(e(),()=>{t(),r.current?.destroy(),r.current=null})),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=JF(t);E((()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}}),[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},QF=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=ZF({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return tr.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},eH=e=>{let t="center",r="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?r="left":"flex-end"===e?.horizontal&&(r="right"),`${r} ${t}`},tH=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},rH=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{direction:o}=$I(_I,(e=>e.baseProps)),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=tr.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:tH(s),objectPosition:eH(l),overflow:"hidden"}});return n?tr.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?BA(o,e):void 0},children:c}):c},nH=q(((e,t)=>tr.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:tr.jsx("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})}))),oH=q(((e,t)=>tr.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:tr.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"})}))),iH=q(((e,t)=>tr.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:[tr.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"}),tr.jsx("use",{fillRule:"evenodd"})]}))),aH=q(((e,t)=>tr.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:tr.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"})}))),sH=q(((e,t)=>tr.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:tr.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"})}))),lH=q(((e,t)=>tr.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:tr.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"})}))),uH=q(((e,t)=>tr.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:tr.jsx("path",{d:"M2 7h12v2H2z"})}))),cH=q(((e,t)=>tr.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:tr.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"})}))),dH=q(((e,t)=>tr.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:tr.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"})}))),pH=q(((e,t)=>tr.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:tr.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"})}))),fH=q(((e,t)=>tr.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:tr.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"})}))),hH={m:q(((e,t)=>tr.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:tr.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),"ï":pH,R:eF,S:Qz,T:q(((e,t)=>tr.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:tr.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"})}))),U:q(((e,t)=>tr.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:tr.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"})}))),P:dH,Q:lH,"è":q(((e,t)=>tr.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:tr.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"})}))),"¢":aH,"©":iH,"23F4":sH,2013:fH,"&":cH,add:nH,"minus-2":uH,dot:oH},mH=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&hH[t];return o&&tr.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:tr.jsx(o,{style:{height:e}})})},gH=({representation:e,cellValue:t,paginationCellAlign:r})=>{const{styleService:n,theme:o,direction:i}=$I(_I,(e=>e.baseProps)),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=LA(e,t,i,o),d=(e=>parseInt(e||_A,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?tr.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:r??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:u?p:void 0},children:["left"===h&&mH({size:d,iconKey:f,color:p}),tr.jsx(_z,{isNumeric:!0,children:a}),"right"===h&&mH({size:d,iconKey:f,color:p})]}):mH({size:d,iconKey:f,color:p})},bH=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,vH=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const{interactions:l,styleService:u,theme:c,layout:d,downloadService:p,direction:f}=$I(_I,(e=>e.baseProps)),h=$I(_I,(e=>e.selectionState.api?.isActive()));let m=t.representation.text;if(t.representation.type!==qE.Link||h||(m=tr.jsx(OF,{href:t.representation.url,text:t.representation.text,interactions:l,color:r.cellForegroundColor})),t.representation.type===qE.Image)return tr.jsx(rH,{representation:t.representation,textStyle:r,maxImageHeight:bH(u,o),wrapInContainer:!n});const g="string"==typeof(b=t.qIsNull?t.representation.text:t.qNum)&&b.length>0||"number"==typeof b?+b:NaN;var b;return t.representation.type!==qE.Indicator||Number.isNaN(g)?t.representation.type===qE.MiniChart&&t.representation.miniChart&&!t.isNull?tr.jsx(QF,{height:bH(u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:c,isSnapshot:!!d.snapshotData,direction:f,downloadService:p}):tr.jsx(_z,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):tr.jsx(gH,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},yH=()=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:tr.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),xH=ac("div")({"& path":{stroke:"none !important"}}),SH=({children:e,cellSelectionState:t})=>t===CA.Selected?tr.jsxs(Nz,{children:[e,tr.jsx(xH,{children:tr.jsx(yH,{})})]}):e,wH=e=>{const t=function(){const e=W_(),t=M_((()=>null==e?void 0:e.dragOperation.source),[e]),r=M_((()=>null==e?void 0:e.dragOperation.target),[e]);return{get source(){return t.value},get target(){return r.value}}}();return t.source&&t.source.id!==e?.5:1},CH=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:EA.SelectMultiEnd})};r({type:EA.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:EA.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:EA.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),EH=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=$I(_I,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:s,direction:l}=$I(_I,(e=>e.baseProps)),u=$I(_I,(e=>e.setFocusedCellCoord)),c=$I(_I,(e=>e.selectionDispatch)),d=!!s.active&&!!s.select,p=s=>{wF({evt:s,rootElement:i,selectionsAPI:o,cell:e,selectionDispatch:c,isSelectionsEnabled:d,setFocusedCellCoord:u,announce:t,keyboard:a,paginationNeeded:r,totalsPosition:n,direction:l})},f=e=>{((e,t)=>{e.key===ZC.Shift&&t({type:EA.SelectMultiEnd})})(e,c)},h=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;Pz([s,a],t,r,n)})(e,i,u,a,n)};if(!d)return{onKeyDown:p,onKeyUp:f,onMouseDown:h};const{handleMouseDown:m,handleMouseOver:g,handleMouseUp:b}=CH(h,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:m,onMouseUp:b,onMouseOver:g}},RH=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=CA.Inactive;return o?.isModal()&&(i=r!==e.selectionColIdx?CA.Disabled:n.has(e.qElemNumber)?CA.Selected:CA.Possible),i},PH=(e,t,r)=>{if(!r.isNull)return e;const n={...e,...t.nullValues};return t.grid.zebraStripes.show?(t.grid.zebraStripes.overrideNullValueColor&&(n.color=e.color),t.grid.zebraStripes.overrideNullValueBackground&&(n.background=e.background),n):n},AH=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},IH=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return AH(t,e,n?"even":"odd")}return e},kH=(e,t)=>{const{styleService:r}=$I(_I,(e=>e.baseProps)),n=$I(_I,(t=>RH(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=IH(o,r,e),o=PH(o,r,e);const i=RI(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===CA.Selected?{...e,...r}:t===CA.Disabled?{...e,background:`${NA}, ${e.background}`}:e}(C((()=>e.isNull?o:RI(o,e.qAttrExps,t.qAttrExprInfoIDs)),[o,e.qAttrExps,e.isNull,t.qAttrExprInfoIDs]),n,r.selectedColors);return{cellStyle:{...a,borderColor:r.grid.border},representationStyle:i,cellSelectionState:n}},MH=ac(Mh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),DH=ac(Jh,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})((({hover:e,hoverColors:t,height:r})=>({height:r,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),TH=ac(Lh,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...HA,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"}))),qH=ac(Lh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...HA,...e,fontWeight:zA,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0}))),OH=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const{interactions:a,direction:s}=$I(_I,(e=>e.baseProps)),{onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=EH(e,t),{cellStyle:f,representationStyle:h,cellSelectionState:m}=kH(e,r),g=wH(r.id);return tr.jsx(TH,{cellStyle:{...f,opacity:g},scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${m} ${JC}`,title:a.passive?e.representation.text:void 0,onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:tr.jsx(SH,{cellSelectionState:m,children:tr.jsx(vH,{cell:e,style:h,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:GA(s,e.align)})})})},LH=({column:e,headRowHeight:t,totalsPosition:r,onKeyDown:n,onMouseDown:o})=>{const{styleService:i,interactions:a}=$I(_I,(e=>e.baseProps)),s=wH(e.id);return tr.jsx(qH,{totalsStyle:{...i.totalRow,...mz(i,r,!1),opacity:s},headRowHeight:t,atTop:r.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${JC}`,tabIndex:-1,title:a.passive?e.totalInfo:void 0,onKeyDown:n,onMouseDown:o,children:tr.jsx(_z,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},NH=()=>{const{columns:e,totalsPosition:t,rows:r}=$I(_I,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,interactions:a,direction:s}=$I(_I,(e=>e.baseProps)),l=$I(_I,(e=>e.headRowHeight)),u=$I(_I,(e=>e.setFocusedCellCoord)),c=!!o?.isModal(),d=!!a.active;return tr.jsx(Jh,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,o)=>{const a=[t.atTop?1:r.length+1,o];return tr.jsx(LH,{column:e,headRowHeight:l,totalsPosition:t,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case ZC.C:vF(r);break;case ZC.Space:r.preventDefault();break;default:yF(e)}else kC(r)})({evt:e,rootElement:n,cellCoord:a,setFocusedCellCoord:u,isSelectionMode:c,isInteractionEnabled:d,direction:s})},onMouseDown:()=>{Pz(a,n,u,i)}},e.id)}))})};var jH=O(NH);const _H=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{const{rows:n,columns:o,totalsPosition:i}=$I(_I,(e=>e.tableData)),{selectionsAPI:a,keyboard:s,layout:l,styleService:u}=$I(_I,(e=>e.baseProps)),c=$I(_I,(e=>e.selectionDispatch)),d=!!SI(l)?.content?.hoverEffect;DF({keyboard:s,selectionDispatch:c,selectionsAPI:a,updateShouldRefocus:e,tableWrapperRef:t});const p=(e=>{const t=T((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);r?.(e)}))}),{root:e.current})),[e]);return IF(t)})(t),f=MF();return tr.jsxs(MH,{lastRowBottomBorder:u.grid.lastRowBottomBorder,children:[i.atTop?tr.jsx(jH,{}):void 0,n.map(((e,t)=>tr.jsx(DH,{hoverColors:u.grid.hoverColors,hover:d,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:u.contentMinRowHeight,children:o.map(((t,n)=>{const{id:o}=t,i=e[n];return tr.jsx(OH,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:p,resizeObserverTaskScheduler:f},o)}))},`row-${t}`))),i.atBottom?tr.jsx(jH,{}):void 0]})};var zH=O(_H);const FH=(e,t)=>!!e.viewState?.skipHeader||!!t.hideHeader,HH=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:s,translator:l,direction:u}=$I(_I,(e=>e.baseProps)),c=$I(_I,(e=>e.columnWidths)),d=$I(_I,(e=>e.setColumnWidths));if(!s.active)return null;return tr.jsx(GI,{columnWidth:c[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{r?.();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a(t,e)},handleBlur:e=>{(e=>{Sz(e);const t=e.closest(".sn-table-cell");Cz(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:l,columnLabel:i},direction:u})},$H=e=>e.target?.getAttribute("class")?.includes(QC),BH=({isInteractionEnabled:e,column:t})=>{const[r,n]=w(!1),{changeSortOrder:o}=$I(_I,(e=>e.baseProps)),i=$I(_I,(e=>e.isAdjustingWidth)),a=$I(_I,(e=>e.setIsAdjustingWidth));return{open:r,setOpen:n,handleOpenMenu:t=>{!e||$H(t)||i||n(!0)},setIsAdjustingWidth:a,toggleSortOrder:r=>{e&&!$H(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o(t,"A"===t.sortDirection?"D":"A"))}}};var WH=Object.defineProperty,VH=Object.defineProperties,UH=Object.getOwnPropertyDescriptors,GH=Object.getOwnPropertySymbols,YH=Object.prototype.hasOwnProperty,KH=Object.prototype.propertyIsEnumerable,XH=(e,t,r)=>t in e?WH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,JH=(e,t)=>{for(var r in t||(t={}))YH.call(t,r)&&XH(e,r,t[r]);if(GH)for(var r of GH(t))KH.call(t,r)&&XH(e,r,t[r]);return e},ZH=(e,t)=>VH(e,UH(t)),QH=class extends wO{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return ZH(JH({},e),{[t]:r})}};QH.configure=$T(QH);var e$=QH;e$.configure({axis:"x",value:0});var t$=e$.configure({axis:"y",value:0}),r$=class extends wO{apply({transform:e}){var t;const{size:r=20}=null!=(t=this.options)?t:{},n="number"==typeof r?r:r.x,o="number"==typeof r?r:r.y;return ZH(JH({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};r$.configure=$T(r$);var n$=Object.create,o$=Object.defineProperty,i$=Object.defineProperties,a$=Object.getOwnPropertyDescriptor,s$=Object.getOwnPropertyDescriptors,l$=Object.getOwnPropertySymbols,u$=Object.prototype.hasOwnProperty,c$=Object.prototype.propertyIsEnumerable,d$=e=>{throw TypeError(e)},p$=(e,t,r)=>t in e?o$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f$=["class","method","getter","setter","accessor","field","value","get","set"],h$=e=>void 0!==e&&"function"!=typeof e?d$("Function expected"):e,m$=(e,t,r,n,o)=>({kind:f$[e],name:t,metadata:n,addInitializer:e=>r._?d$("Already initialized"):o.push(h$(e||null))}),g$=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},b$=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=f$[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,a$({get[r](){return y$(this,i)},set[r](e){return S$(this,i,e)}},r)),b=n.length-1;b>=0;b--)(u=m$(d,r,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>r in e},c.get=e=>e[r],c.set=(e,t)=>e[r]=t,s=(0,n[b])({get:g.get,set:g.set},u),l._=1,void 0===s?h$(s)&&(g[f]=s):"object"!=typeof s||null===s?d$("Object expected"):(h$(a=s.get)&&(g.get=a),h$(a=s.set)&&(g.set=a),h$(a=s.init)&&h.unshift(a));return g&&o$(o,r,g),o},v$=(e,t,r)=>t.has(e)||d$("Cannot "+r),y$=(e,t,r)=>(v$(e,t,"read from private field"),t.get(e)),x$=(e,t,r)=>t.has(e)?d$("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),S$=(e,t,r,n)=>(v$(e,t,"write to private field"),t.set(e,r),r);function w$(e){return e instanceof J$||e instanceof X$}var C$=Object.defineProperty,E$=Object.defineProperties,R$=Object.getOwnPropertyDescriptors,P$=Object.getOwnPropertySymbols,A$=Object.prototype.hasOwnProperty,I$=Object.prototype.propertyIsEnumerable,k$=(e,t,r)=>t in e?C$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M$=(e,t)=>{for(var r in t||(t={}))A$.call(t,r)&&k$(e,r,t[r]);if(P$)for(var r of P$(t))I$.call(t,r)&&k$(e,r,t[r]);return e},D$=(e,t)=>E$(e,R$(t));function T$(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function q$(e,t){return function(e,t,r){var n,o;const{source:i,target:a,canceled:s}=t.operation;if(!i||!a||s)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const t=e.findIndex((e=>l(e,i.id))),n=e.findIndex((e=>l(e,a.id)));if(-1===t||-1===n)return e;if(!s&&"index"in i&&"number"==typeof i.index){const n=i.index;if(n!==t)return r(e,t,n)}return r(e,t,n)}const u=Object.entries(e);let c,d,p=-1,f=-1;for(const[e,t]of u)if(-1===p&&(p=t.findIndex((e=>l(e,i.id))),-1!==p&&(c=e)),-1===f&&(f=t.findIndex((e=>l(e,a.id))),-1!==f&&(d=e)),-1!==p&&-1!==f)break;if(!i.manager)return e;const{dragOperation:h}=i.manager,m=null!=(o=null==(n=h.shape)?void 0:n.current.center)?o:h.position.current;if(null==d&&a.id in e){const t=a.shape&&m.y>a.shape.center.y?e[a.id].length:0;d=a.id,f=t}if(null==c||null==d||c===d&&p===f)return"preventDefault"in t&&t.preventDefault(),e;if(c===d)return D$(M$({},e),{[c]:r(e[c],p,f)});const g=a.shape&&Math.round(m.y)>Math.round(a.shape.center.y)?1:0,b=e[c][p];return D$(M$({},e),{[c]:[...e[c].slice(0,p),...e[c].slice(p+1)],[d]:[...e[d].slice(0,f+g),b,...e[d].slice(f+g)]})}(e,t,T$)}var O$="__default__";function L$(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function N$(e,t){return e.index-t.index}function j$(e){return Array.from(e).sort(N$)}var _$,z$,F$,H$,$$,B$,W$,V$,U$=[class extends WT{constructor(e){super(e);const t=jM((()=>{const{dragOperation:t}=e;if(iN(t.activatorEvent)&&w$(t.source)&&t.status.initialized){const t=e.registry.plugins.get(Oj);if(t)return t.disable(),()=>t.enable()}})),r=e.monitor.addEventListener("dragmove",((e,t)=>{queueMicrotask((()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:r}=t;if(!iN(e.nativeEvent))return;if(!w$(r.source))return;if(!r.shape)return;const{actions:n,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:r}=e;if(t>0)return"right";if(t<0)return"left";if(r>0)return"down";if(r<0)return"up"}(a),{source:l,target:u}=r,{center:c}=r.shape.current,d=[],p=[];vM((()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&w$(e)||!e.element)continue;let r=e.shape;const n=new tN(e.element,{getBoundingClientRect:e=>WO(e,void 0,.2)});n.height&&n.width&&(("down"==s&&c.y+10<n.center.y||"up"==s&&c.y-10>n.center.y||"left"==s&&c.x-10>n.center.x||"right"==s&&c.x+10<n.center.x)&&(d.push(e),e.shape=n,p.push((()=>e.shape=r))))}})),e.preventDefault(),o.disable();const f=o.computeCollisions(d,uN);vM((()=>p.forEach((e=>e()))));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:b}=l.sortable;n.setDropTarget(m).then((()=>{const{source:e,target:t,shape:i}=r;if(!e||!w$(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,u=g!==a||b!==s,c=u?l:null==t?void 0:t.element;if(!c)return;YL(c);const d=new tN(c);if(!d)return;const p=nT.delta(d,nT.from(i.current.boundingRectangle),e.alignment);n.move({by:p}),u?n.setDropTarget(e.id).then((()=>o.enable())):o.enable()}))}))}));this.destroy=()=>{r(),t()}}},class extends WT{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof J$){const{sortable:e}=r,{group:n}=e;let o=t.get(n);o||(o=new Set,t.set(n,o)),o.add(e)}for(const[e,r]of t)t.set(e,new Set(j$(r)));return t},r=[e.monitor.addEventListener("dragover",((e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!w$(o)||!w$(i))return;if(o.sortable===i.sortable)return;const a=t(),s=o.sortable.group===i.sortable.group,l=a.get(o.sortable.group),u=s?l:a.get(i.sortable.group);l&&u&&queueMicrotask((()=>{e.defaultPrevented||r.renderer.rendering.then((()=>{var n,c,d;const p=t();for(const[e,t]of a.entries()){const r=Array.from(t).entries();for(const[t,o]of r)if(o.index!==t||o.group!==e||!(null==(n=p.get(e))?void 0:n.has(o)))return}const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!s&&i.id===o.sortable.group)return;const m=j$(l),g=s?m:j$(u),b=null!=(c=o.sortable.group)?c:O$,v=null!=(d=i.sortable.group)?d:O$,y={[b]:m,[v]:g},x=q$(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);r.collisionObserver.disable(),L$(f,S,h,w),vM((()=>{for(const[e,t]of x[b].entries())t.index=e;if(!s)for(const[e,t]of x[v].entries())t.group=i.sortable.group,t.index=e})),r.actions.setDropTarget(o.id).then((()=>r.collisionObserver.enable()))}))}))})),e.monitor.addEventListener("dragend",((e,r)=>{if(!e.canceled)return;const{dragOperation:n}=r,{source:o}=n;w$(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask((()=>{const e=t(),n=e.get(o.sortable.initialGroup);n&&r.renderer.rendering.then((()=>{for(const[t,r]of e.entries()){const e=Array.from(r).entries();for(const[r,n]of e)if(n.index!==r||n.group!==t)return}const t=j$(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(L$(r,i.index,a,o.index),vM((()=>{for(const[t,r]of e.entries()){const e=Array.from(r).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}})))}))})))}))];this.destroy=()=>{for(const e of r)e()}}}],G$={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},Y$=new class{constructor(){ED(this,qD,new WeakMap)}get(e,t){var r;return e?null==(r=CD(this,qD).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return CD(this,qD).has(e)||CD(this,qD).set(e,new Map),null==(n=CD(this,qD).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=CD(this,qD).get(e))?void 0:t.clear():void 0}};z$=[kD],_$=[kD];var K$=class{constructor(e,t){x$(this,H$,g$(F$,8,this)),g$(F$,11,this),x$(this,$$),x$(this,B$),x$(this,W$,g$(F$,12,this)),g$(F$,15,this),x$(this,V$),this.register=()=>(vM((()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)})),()=>this.unregister()),this.unregister=()=>{vM((()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)}))},this.destroy=()=>{vM((()=>{this.droppable.destroy(),this.draggable.destroy()}))};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=G$,plugins:u=U$}=r,c=((e,t)=>{var r={};for(var n in e)u$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&l$)for(var n of l$(e))t.indexOf(n)<0&&c$.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new J$(c,t,this),this.draggable=new X$(((e,t)=>i$(e,s$(t)))(((e,t)=>{for(var r in t||(t={}))u$.call(t,r)&&p$(e,r,t[r]);if(l$)for(var r of l$(t))c$.call(t,r)&&p$(e,r,t[r]);return e})({},c),{effects:()=>[()=>{var e,t,r;const n=null==(e=this.manager)?void 0:e.dragOperation.status;(null==n?void 0:n.initializing)&&this.id===(null==(r=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:r.id)&&Y$.clear(this.manager),(null==n?void 0:n.dragging)&&Y$.set(this.manager,this.id,xM((()=>({initialIndex:this.index,initialGroup:this.group}))))},()=>{const{index:e,group:t,manager:r}=this,n=y$(this,B$),o=y$(this,$$);e===n&&t===o||(S$(this,B$,e),S$(this,$$,t),this.animate())},()=>{const{target:e}=this,{feedback:t,isDragSource:r}=this.draggable;"move"==t&&r&&(this.droppable.disabled=!e)},()=>{const{manager:e}=this;for(const t of u)null==e||e.registry.register(t)},...n()],type:s,sensors:a}),t,this),S$(this,V$,c.element),this.manager=t,this.index=i,S$(this,B$,i),this.group=o,S$(this,$$,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=Y$.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=Y$.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){xM((()=>{const{manager:e,transition:t}=this,{shape:r}=this.droppable;if(!e)return;const{idle:n}=e.dragOperation.status;r&&t&&(!n||t.idle)&&e.renderer.rendering.then((()=>{const{element:n}=this;if(!n)return;const o=this.refreshShape();if(!o)return;const i=r.boundingRectangle.left-o.boundingRectangle.left,a=r.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=NL(n),l=XL(n,s,!1),u=XL(n,s);(i||a)&&KL({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:t}).then((()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)}))}))}))}get manager(){return this.draggable.manager}set manager(e){vM((()=>{this.draggable.manager=e,this.droppable.manager=e}))}set element(e){vM((()=>{const t=y$(this,V$),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),S$(this,V$,e)}))}get element(){var e,t;const r=y$(this,V$);if(r)return null!=(t=null!=(e=ZO.get(r))?e:r)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set feedback(e){this.draggable.feedback=e}set disabled(e){vM((()=>{this.droppable.disabled=e,this.draggable.disabled=e}))}set data(e){vM((()=>{this.droppable.data=e,this.draggable.data=e}))}set handle(e){this.draggable.handle=e}set id(e){vM((()=>{this.droppable.id=e,this.draggable.id=e}))}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:lN}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){vM((()=>{this.droppable.type=e,this.draggable.type=e}))}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};F$=[,,,n$(null)],H$=new WeakMap,$$=new WeakMap,B$=new WeakMap,W$=new WeakMap,V$=new WeakMap,b$(F$,4,"index",z$,K$,H$),b$(F$,4,"group",_$,K$,W$),((e,t)=>{return p$(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(F$,K$);var X$=class extends R_{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}},J$=class extends P_{constructor(e,t,r){super(e,t),this.sortable=r}},Z$=Object.defineProperty,Q$=Object.defineProperties,eB=Object.getOwnPropertyDescriptors,tB=Object.getOwnPropertySymbols,rB=Object.prototype.hasOwnProperty,nB=Object.prototype.propertyIsEnumerable,oB=(e,t,r)=>t in e?Z$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,iB=(e,t)=>{for(var r in t||(t={}))rB.call(t,r)&&oB(e,r,t[r]);if(tB)for(var r of tB(t))nB.call(t,r)&&oB(e,r,t[r]);return e};function aB(e){const{accept:t,collisionDetector:r,collisionPriority:n,id:o,data:i,element:a,handle:s,index:l,group:u,disabled:c,feedback:d,modifiers:p,sensors:f,target:h,type:m}=e,g=iB(iB({},G$),e.transition),b=function(e){var t;const r=null!=(t=W_())?t:void 0,[n]=w((()=>e(r)));return n.manager!==r&&(n.manager=r),I_(n.register,[r,n]),n}((t=>new K$(((e,t)=>Q$(e,eB(t)))(iB({},e),{transition:g,register:!1,handle:A_(s),element:A_(a),target:A_(h),feedback:d}),t))),v=D_(b,sB);return O_(o,(()=>b.id=o)),I_((()=>{vM((()=>{b.group=u,b.index=l}))}),[b,u,l]),O_(m,(()=>b.type=m)),O_(t,(()=>b.accept=t),void 0,ID),O_(i,(()=>i&&(b.data=i))),O_(l,(()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()}),T_),L_(s,(e=>b.handle=e)),L_(a,(e=>b.element=e)),L_(h,(e=>b.target=e)),O_(c,(()=>b.disabled=!0===c)),O_(f,(()=>b.sensors=f)),O_(r,(()=>b.collisionDetector=r)),O_(n,(()=>b.collisionPriority=n)),O_(d,(()=>b.feedback=null!=d?d:"default")),O_(g,(()=>b.transition=g),void 0,ID),O_(p,(()=>b.modifiers=p),void 0,ID),O_(e.alignment,(()=>b.alignment=e.alignment)),{sortable:v,get isDragging(){return v.isDragging},get isDropping(){return v.isDropping},get isDragSource(){return v.isDragSource},get isDropTarget(){return v.isDropTarget},handleRef:T((e=>{b.handle=null!=e?e:void 0}),[b]),ref:T((e=>{var t,r;(e||!(null==(t=b.element)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.element=null!=e?e:void 0)}),[b]),sourceRef:T((e=>{var t,r;(e||!(null==(t=b.source)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.source=null!=e?e:void 0)}),[b]),targetRef:T((e=>{var t,r;(e||!(null==(t=b.target)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.target=null!=e?e:void 0)}),[b])}}function sB(e,t,r){return!("isDragSource"!==e||r||!t)}const lB=({invert:e})=>({dragOperation:t,droppable:r})=>{if(!r.shape)return null;const{shape:n}=t;if(!n)return null;const o=function(e){return e.sortable?.index}(r);if(void 0===o)return null;const i=function(e){return e.source.index}(t);if(void 0===i)return null;if(i===o)return null;const a=i<o!==e?"right":"left",{center:s,boundingRectangle:l}=n.current;return"left"===a&&l.left+.3*l.width<=r.shape.center.x||"right"===a&&l.right-.3*l.width>=r.shape.center.x?{id:r.id,value:1/rT.distance(r.shape.center,s),type:fq.Collision,priority:pq.Normal}:null},uB=(e,t)=>{const{interactions:r,direction:n}=$I(_I,(e=>e.baseProps)),{flags:o}=$I(_I,(e=>e.env)),i=!r.active||!o.isEnabled("TLV-1531_DRAG_AND_DROP_COLUMNS");return aB({id:e.id,disabled:i,index:t,type:"item",accept:"item",group:"column",modifiers:[t$],data:e,feedback:"clone",collisionDetector:lB({invert:"rtl"===n})})},cB=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a,direction:s}=$I(_I,(e=>e.baseProps)),{columns:l,totalsPosition:u}=$I(_I,(e=>e.tableData)),c=$I(_I,(e=>e.columnWidths[t])),d=$I(_I,(e=>e.baseProps.selectionsAPI?.isModal())),p=$I(_I,(e=>e.setFocusedCellCoord)),f=$I(_I,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),h=!!n.active&&!d,{open:m,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v,toggleSortOrder:y}=BH({isInteractionEnabled:h,column:e}),{ref:x,handleRef:S,isDragging:w}=uB(e,t),C=wH(e.id),E=hz(),R=E?zz:aF,P=e.isActivelySorted?RA[e.sortDirection]:void 0,A=m?XC:void 0,I=m?"true":void 0,k=t===r-1,M=[0,e.pageColIdx],D={width:c,zIndex:l.length-t},T=f&&0===t&&!i.enabled&&h?0:-1;return tr.jsxs(kz,{"data-dragging":w,ref:x,headerStyle:{...a.header,...mz(a,u,!0),opacity:C},background:E&&m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:D,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${JC}`,tabIndex:T,title:n.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case ZC.C:vF(r);break;case ZC.Enter:case ZC.Space:n?.(r);break;default:yF(e)}else kC(r)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:p,isInteractionEnabled:h,handleOpenMenu:b,direction:s})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&Pz(r,t,n,o)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:p,keyboard:i,isInteractionEnabled:h})},onClick:E?b:y,"aria-sort":P,"aria-controls":A,"aria-expanded":I,"aria-haspopup":"true",children:[tr.jsx(R,{ref:S,column:e,isInteractionEnabled:h,open:m,setOpen:g,isPagination:!0}),tr.jsx(HH,{column:e,isLastColumn:k,setIsAdjustingWidth:v})]},e.id)},dB=()=>{const{columns:e}=$I(_I,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=$I(_I,(e=>e.baseProps)),o=$I(_I,(e=>e.setHeadRowHeight)),i=$I(_I,(e=>e.columnWidths)),a=D(null),s=FH(r,n);return E((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),tr.jsx(Vh,{style:{visibility:s?"collapse":void 0},children:tr.jsx(Jh,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map(((t,r)=>tr.jsx(cB,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var pB=O(dB);const fB=e=>{const{pageInfo:t,setPageInfo:r,footerContainer:n,announce:o}=e,{page:i,rowsPerPage:a}=t,{totalColumnCount:s,totalRowCount:l,totalPages:u,paginationNeeded:c,rows:d,columns:p}=$I(_I,(e=>e.tableData)),{rootElement:f,keyboard:h,translator:m,theme:g,interactions:b,styleService:v,viewService:y,layout:x,rect:S,direction:w}=$I(_I,(e=>e.baseProps)),C=$I(_I,(e=>e.setYScrollbarWidth)),R=$I(_I,(e=>e.showRightBorder)),P=$I(_I,(e=>e.selectionDispatch)),A=$I(_I,(e=>e.baseProps.selectionsAPI?.isModal())),I=D(!1),k=D(null),M=D(null),{yScrollbarWidth:q}=CF(k),O=`${m.get("SNTable.Accessibility.RowsAndColumns",[String(d.length),String(p.length)])} ${m.get("SNTable.Accessibility.NavigationInstructions")}`,L=LP(x,y),N=L?y.scrollLeft??0:0,j=L?y.rowPartialHeight??0:0,_=T((()=>{I.current=f.getElementsByTagName("table")[0].contains(document.activeElement)}),[f]),z=T((e=>{r({...t,page:e}),o({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),u.toString()]],politeness:"assertive"})}),[t,r,u,o]),F=T((e=>{r({...t,page:0,rowsPerPage:e}),o({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[o,t,r]);return bF(k,w,y),((e,t)=>{const{keyboard:r}=$I(_I,(e=>e.baseProps));E((()=>{const n=e.current;if(!n)return;const o=e=>{Az(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(M,I),(()=>{const{rootElement:e,keyboard:t}=$I(_I,(e=>e.baseProps)),r=$I(_I,(e=>e.focusedCellCoord));BC((()=>{const n=yz(e,r);t.active?Cz(n):(n?.blur(),wz(e))}),[t.active,e])})(),gF(I,o,i),E((()=>{const e=k.current;e&&(e.scrollLeft=N,e.scrollTop=j)}),[t,l,N,j]),hF((()=>{C(q)}),[q]),hF((()=>{P({type:EA.UpdatePageRows,payload:{pageRows:d}})}),[d]),mF(),tr.jsxs(fF,{children:[tr.jsxs(Oz,{ref:M,dir:w,onKeyDown:e=>{SF({evt:e,totalRowCount:l,page:i,rowsPerPage:a,handleChangePage:z,updateShouldRefocus:_,keyboard:h,isSelectionMode:A})},"data-testid":"sn-table",children:[tr.jsx(AF,{}),tr.jsxs(RF,{ref:k,className:"sn-table-container",fullHeight:!!n||!b.active||!c,interactions:b,tabIndex:-1,role:"application","data-testid":"table-container",children:[tr.jsxs(PF,{stickyHeader:!0,"aria-label":O,borderRight:R?`1px solid ${v.grid.border}`:void 0,children:[tr.jsx(pB,{}),tr.jsx(zH,{...e,updateShouldRefocus:_,tableWrapperRef:M})]}),tr.jsx(fz,{})]}),tr.jsx(mM,{footerContainer:n,pageInfo:t,paginationNeeded:c,theme:g,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:h,translator:m,interactions:b,rect:S,layout:x,handleChangePage:z,handleChangeRowsPerPage:F,isSelectionMode:A,direction:w})]}),tr.jsx(cF,{isPagination:!0})]})};var hB=O(fB);function mB(){return mB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mB.apply(null,arguments)}function gB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bB(e,t){return bB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bB(e,t)}function vB(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bB(e,t)}var yB=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function xB(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||yB(n)&&yB(o)))return!1;var n,o;return!0}function SB(e,t){var r;void 0===t&&(t=xB);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}function wB(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}var CB="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function EB(e){cancelAnimationFrame(e.id)}function RB(e,t){var r=CB();var n={id:requestAnimationFrame((function o(){CB()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var PB=-1;function AB(e){if(void 0===e&&(e=!1),-1===PB||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),PB=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return PB}var IB=null;function kB(e){if(void 0===e&&(e=!1),null===IB||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?IB="positive-descending":(t.scrollLeft=1,IB=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),IB}return IB}var MB=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function DB(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,gB(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:gB(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=SB((function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=SB((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=n._getItemStyleCache(m&&s,m&&l,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=SB((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(kB()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&EB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=RB(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}vB(t,e),t.getDerivedStateFromProps=function(e,t){return TB(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=AB();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?l(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(kB()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&EB(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?MB:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],C=S[1],E=this._getVerticalRangeToRender(),P=E[0],A=E[1],I=[];if(n>0&&g)for(var k=P;k<=A;k++)for(var M=w;M<=C;M++)I.push(R(t,{columnIndex:M,data:d,isScrolling:v?x:void 0,key:f({columnIndex:M,data:d,rowIndex:k}),rowIndex:k,style:this._getItemStyle(k,M)}));var D=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return R(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:mB({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(u||c||"div",{children:I,ref:l,style:{height:D,pointerEvents:x?"none":void 0,width:T}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(z),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var TB=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},qB=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},OB=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},LB=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},NB=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?jB(e,t,r,i,0,n):_B(e,t,r,Math.max(0,i),n)},jB=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=LB(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},_B=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&LB(e,t,n,r).offset<o;)n+=a,a*=2;return jB(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},zB=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=LB(e,t,r,i),u="column"===e?OB(t,i):qB(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},FB=DB({getColumnOffset:function(e,t,r){return LB("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return NB("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=LB("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=LB("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:qB,getEstimatedTotalWidth:OB,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return zB("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return zB("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return LB("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return NB("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=LB("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=LB("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),HB=function(e,t){return e};function $B(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,gB(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:gB(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=SB((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=SB((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,c=n._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=SB((function(e,t,r){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(kB()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&EB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=RB(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}vB(t,e),t.getDerivedStateFromProps=function(e,t){return BB(e,t),c(e),null};var d=t.prototype;return d.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)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?AB():0:l.scrollHeight>l.clientHeight?AB():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(kB()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&EB(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?HB:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),C=w[0],E=w[1],P=[];if(u>0)for(var A=C;A<=E;A++)P.push(R(t,{data:c,key:p(A,c),index:A,isScrolling:b?y:void 0,style:this._getItemStyle(A)}));var I=n(this.props,this._instanceProps);return R(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:mB({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(s||l||"div",{children:P,ref:a,style:{height:x?"100%":I,pointerEvents:y?"none":void 0,width:x?I:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(z),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var BB=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},WB=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=n(l);o[l]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},VB=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=WB(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},UB=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&WB(e,r,t).offset<n;)r+=i,i*=2;return VB(e,t,Math.min(r,o-1),Math.floor(r/2),n)},GB=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},YB=$B({getItemOffset:function(e,t,r){return WB(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:GB,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=WB(e,t,o),p=GB(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?VB(e,t,o,0,r):UB(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=WB(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=WB(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function KB(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var XB=["style"],JB=["style"];function ZB(e,t){var r=e.style,n=wB(e,XB),o=t.style,i=wB(t,JB);return!KB(r,o)&&!KB(n,i)}const QB=({style:e})=>tr.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var eW=x.memo(QB,ZB);const tW=()=>{},rW=e=>{e.preventDefault()};const nW=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=$I(_I,(e=>e.hoverIndex===t)),d=$I(_I,(e=>e.setHoverIndex)),{interactions:p,styleService:f,direction:h}=$I(_I,(e=>e.baseProps)),m=$I(_I,(e=>e.showRightBorder)),g=o[t]?.[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=$I(_I,(e=>e.baseProps)),r=$I(_I,(e=>e.selectionDispatch)),n="object"==typeof e,o=$I(_I,(t=>n?RH(e,t.selectionState):CA.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=CH(rW,e,r,tW);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=D(null),i=r&&!r.isNumeric,a=T((r=>{const o=Uz(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return Gz(o,a),o})(t,e,g,s),w=i[e]?.isDim?f.dimension.values:f.measure.values,C=wH(i[e].id);if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=IH(o,i,e);a=PH(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?RI(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===CA.Selected?{...s,...i.selectedColors}:n===CA.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${NA}, ${r?i.grid.hoverColors?.background:s.background}`}:r?{...s,...i.grid.hoverColors}:s})(g,i[e],a&&c,x,w,f),o={rowindex:t,columnindex:e};return tr.jsx("div",{className:`sn-table-cell ${x} ${JC}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:f.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:YA(h,g.isLastColumn,m),borderLeftWidth:KA(h,g.isLastColumn,m),justifyContent:WA(g,h),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:g.align,opacity:C},onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:a?()=>{d(t)}:void 0,onMouseLeave:a?()=>{d(-1)}:void 0,title:p.passive?g.representation.text:void 0,...o,children:tr.jsx(SH,{cellSelectionState:x,children:tr.jsx(vH,{forwardRef:f.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return tr.jsx(eW,{style:{...r,...w,borderColor:f.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:C}})};var oW=O(nW,ZB);const iW=e=>{const t=D(e);return t.current=e,t},aW=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,sW=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if(t?.rowIdx!==o)return!0}return!1},lW=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},uW=(e,t,r,n,o,i,a,s)=>{e.forEach((e=>{e.qMatrix.forEach(((l,u)=>{const c=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,s,l,u)=>{const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=e[p]??[];return t.forEach(((e,t)=>{const r=t+n.qLeft;if(f.at(r))return;const{colIdx:o,isDim:h,isLocked:m,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],w=PP(h,e,a),C=!h&&e.qIsNull,E=C?qR(w):TR(e);f[r]={id:kR(),...e,align:qP(E,g,u),rowIdx:d,colIdx:o,isSelectable:h&&!m,pageRowIdx:p,pageColIdx:r,selectionColIdx:b,isLastRow:d===c.qcy-1,isLastColumn:r===c.qcx-1,isNumeric:E,isNull:(!C||!E)&&RP(e,h),representation:EP({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[qE.Image]:!0,[qE.Indicator]:!0,[qE.MiniChart]:!0}})},l(f[r],d,r)})),{row:f,pageRowIdx:p}})(r,l,u,e.qArea,c,n,o,i,a,s);r[p]=d}))}))},cW=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:s,columns:l,gridState:u,setEstimatedCellHeight:c})=>{const d=$I(_I,(e=>e.env)),{direction:p}=$I(_I,(e=>e.baseProps)),f=D([]),h=T(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return uW(t,o,n,l,e,d,c,p),f.current=n,n}),[i,o,l,e,d,c,p]),[m,g]=w((()=>h(n??[])));BC((()=>{g(h(n??[]))}),[n,p]);const b=((e,t)=>{const r=D(new Set),n=D(new Set),o=D(new Set),i=iW(e),a=iW(t),s=C((()=>({enqueue:e=>{const t=aW(e);o.current.has(t)||(r.current.add(e),o.current.add(t),1===r.current.size&&setTimeout((async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),n.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),r=await i.current(t);n.current.has(e)&&a.current(r)}catch(t){e.forEach((e=>{o.current.delete(aW(e))})),console.error("Failed to fetch pages",t)}finally{n.current.delete(e)}}}),75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}})),[i,a]);return s})((e=>t&&"getHyperCubeData"in t?t.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([])),(e=>{g((t=>h(e,t)))})),v=T(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(lW(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[f,b]),y=T(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(sW(f.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[f,b,o]);return E((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=u.current.overscanRowStartIndex,i=u.current.overscanColumnStartIndex,l=n+o.page*o.rowsPerPage,c=t-i,d=o.rowsPerPage-n,p=Math.min(100,c,t,s+5),f=Math.min(100,d,r,a+25);return y(i,l,p,f),()=>{b.clear()}}),[e,a,s,o,b,y,u,r]),{rowsInPage:m,loadRows:y,loadColumns:v}},dW=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},pW=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,fW=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=$I(_I,(e=>e.baseProps.styleService)),i=$I(_I,(e=>e.columnWidths)),{estimateLineCount:a}=zC(o.dimension.values),s=qI(o.dimension.values.fontSize),l=e||t||1===r;return T(((e,t,o)=>{if(l||e.representation.type===qE.Image||e.isNumeric)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(r,Math.max(1,c));n(d*s,t,o)}),[l,i,a,r,s,n])},hW=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0,viewService:o})=>{L((()=>{const i=e?n:(e=>{let t=0;e.forEach((e=>{t+=e}));const r=0===e.size?0:t/e.size;return Math.ceil(r)})(r.rowHeights);o.estimatedRowHeight=Math.max(i,t)}),[e,t,r,n,o])},mW=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=$I(_I,(e=>e.baseProps)),[a,s]=w({rowHeights:new Map,cellHeightsInGrid:new Map}),l=i.contentLineHeight,u=i.contentMinRowHeight,c=!!i.contentStaticLineCount,d=Math.max(8e6/e,u)-9,p=d+9,f=Math.max(1,Math.min(i.grid.contentLineClamp,Math.round(d/l))),h=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:f,lineHeight:l,isStaticNbrOfLines:c});(({gridRef:e,setState:t,pageInfo:r})=>{const{layout:n}=$I(_I,(e=>e.baseProps)),o=$I(_I,(e=>e.columnWidths)),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;BC((()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[n.qHyperCube.qSize.qcx,n.qHyperCube.qSize.qcy,r.page,i,a]),BC((()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[o])})({gridRef:n,setState:s,pageInfo:o});const m=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>T(((o,i,a)=>{j((()=>{e((e=>{const s=Math.max(r,o+9),l=Math.min(t,s),u=e.cellHeightsInGrid.get(i)??e.cellHeightsInGrid.set(i,new Map).get(i);if(!pW(u.get(a),l))return e;const c={...e};return u.set(a,l),c.rowHeights.set(i,dW(u)),n.current?.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),c}))}))}),[e,r,t,n]))({maxCellHeight:p,minRowHeight:u,setState:s,gridRef:n}),g=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>T(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),b=fW({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),v=T((e=>c?h??u:a.rowHeights.get(e)??u),[c,u,a.rowHeights,h]);return hW({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:h,viewService:r}),{setMeasuredCellHeight:g,setEstimatedCellHeight:b,getRowHeight:v,lineClamp:f}},gW=(e,t)=>{L((()=>()=>{t(0)}),[e,t]);const r=T((e=>{const r=Uz(e);void 0!==r&&t(r)}),[t]);Gz(e,r)};let bW=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const vW=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>T((({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=bW.None,i=bW.None;return o=n>t?bW.Down:n<t?bW.Up:bW.None,i=r>e?bW.Right:r<e?bW.Left:bW.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(i.current,s,u);if(i.current.overscanColumnStartIndex=s,i.current.overscanColumnStopIndex=l,i.current.overscanRowStartIndex=u,i.current.overscanRowStopIndex=c,u>n)return;const b=s,v=u+o.page*o.rowsPerPage,y=l-s+1,x=c-u+1;if(a.visibleLeft=d,a.visibleWidth=p-d+1,a.visibleTop=f+o.page*o.rowsPerPage,a.visibleHeight=h-f+1,a.page=o.page,a.rowsPerPage=o.rowsPerPage,m===bW.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(m===bW.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===bW.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===bW.Left){const t=Math.max(0,b-5),n=Math.min(e.qHyperCube.qSize.qcx,y+5);r(t,v,n,x)}}),[i,n,o.page,o.rowsPerPage,a,t,e.qHyperCube.qSize.qcx,r]),yW={enabled:!1},xW=()=>{},SW={current:null};const wW=(e,t,r,n,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(r.height/o)),s=C((()=>n.reduce(((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[r,n]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:s}},CW=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},EW={overflow:"hidden",willChange:"auto"};var RW=O(q(((e,t)=>{const{rect:r,columns:n,pageInfo:o,headerAndTotalsHeight:i,setInnerBodyHeight:a}=e,{layout:s,model:l,theme:u,viewService:c,styleService:d,direction:p}=$I(_I,(e=>e.baseProps)),f=$I(_I,(e=>e.columnWidths)),h=$I(_I,(e=>e.initialDataPages)),m=D(null),g=D(null),b=D({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),v=D(0),y=!!SI(s)?.content?.hoverEffect,{rowCount:x,visibleRowCount:S,visibleColumnCount:w}=wW(s,o,r,f,d.contentMinRowHeight),{setMeasuredCellHeight:R,setEstimatedCellHeight:P,getRowHeight:A,lineClamp:I}=mW({rowCount:x,isSnapshot:!!s.snapshotData,viewService:c,gridRef:m,pageInfo:o}),{rowsInPage:k,loadRows:M,loadColumns:T}=cW({layout:s,model:l,theme:u,initialDataPages:h,pageInfo:o,rowCount:x,visibleRowCount:S,visibleColumnCount:w,columns:n,gridState:b,setEstimatedCellHeight:P}),q=vW({layout:s,loadRows:M,loadColumns:T,rowCount:x,pageInfo:o,gridState:b,viewService:c}),O=MF(),N=C((()=>({rowsInPage:k,columns:n,isHoverEnabled:y,lineClamp:I,setMeasuredCellHeight:R,resizeObserverTaskScheduler:O})),[k,n,y,I,R,O]),j=((e,t)=>e.height-t)(r,i);return L((()=>{1===v.current&&m.current?.scrollToItem({rowIndex:x-1,align:"start"})})),function(e){const{selectionsAPI:t}=$I(_I,(e=>e.baseProps)),r=$I(_I,(e=>e.selectionDispatch));E((()=>{r({type:EA.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),DF({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:xW,keyboard:yW,tableWrapperRef:SW})}(k),_(t,(()=>({interpolatedScrollTo:(e,t)=>{const r=(g.current?.clientHeight??j)-j,n=Math.round(r*e);v.current=e,1===v.current?(m.current?.scrollToItem({rowIndex:x-1,align:"start"}),m.current?.scrollTo({scrollLeft:t})):m.current?.scrollTo({scrollTop:n,scrollLeft:t})}})),[g,j,x]),gW(g,a),tr.jsx(FB,{"data-key":"body",ref:m,innerRef:g,style:EW,columnCount:s.qHyperCube.qSize.qcx,columnWidth:e=>f[e],height:j,rowCount:x,rowHeight:A,estimatedRowHeight:c.estimatedRowHeight,width:r.width,itemData:N,onItemsRendered:q,itemKey:CW,className:"sn-table-body",direction:p,children:oW})})));const PW=({width:e,height:t,children:r})=>tr.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),AW=(e,t)=>{const r=D(null),n=$I(_I,(e=>e.columnWidths));L((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=T((r=>{const n=Uz(r);n&&t(n+9,e)}),[e,t]);return Gz(r,o),r},IW=ac("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:r,applicableStyle:n})=>({...n,background:r,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}}))),kW=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,{interactions:a,styleService:s,direction:l}=$I(_I,(e=>e.baseProps)),u=$I(_I,(e=>e.baseProps.selectionsAPI?.isModal())),c=$I(_I,(e=>e.showRightBorder)),d=$I(_I,(e=>e.tableData.totalsPosition)),p=!!a.active&&!u,f=n[e],{open:h,setOpen:m,handleOpenMenu:g,setIsAdjustingWidth:b,toggleSortOrder:v}=BH({isInteractionEnabled:p,column:f}),y=hz(),x=AW(e,i),S=n.length-1===e,w=y?zz:aF,{ref:C,handleRef:E,isDragging:R}=uB(f,e),P=wH(f.id);return tr.jsxs(IW,{"data-dragging":R,ref:C,className:`sn-table-cell ${JC}`,title:a.passive?f.label:void 0,onClick:y?g:v,applicableStyle:{...s.header,...mz(s,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:YA(l,S,c),borderLeftWidth:KA(l,S,c),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:f.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===f.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:P},interactions:a,hoverBackground:s.headerMenuHoverBackground,background:y&&h?s.headerMenuActiveBackground:s.header.background,children:[tr.jsx(w,{ref:E,forwardRef:x,column:f,isInteractionEnabled:p,open:h,setOpen:m}),tr.jsx(HH,{column:f,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:b})]})},MW=e=>{const[t,r]=w(new Map);BC((()=>{r(new Map)}),[e.length]);const n=T(((e,t)=>{r((r=>pW(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:C((()=>dW(t)),[t]),setMeasuredCellHeight:n}},DW=(e,t)=>{_(e,(()=>({scrollTo:e=>t.current?.scrollTo(e)})),[t])},TW=(e,t,r,n,o)=>{BC((()=>{e.current?.resetAfterIndex(0,!1)}),[t,r,e,n,o])},qW={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},OW=q(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,setHeaderRowHeight:a}=e,s=x.useRef(null),l=D(null),{layout:u,theme:c,styleService:d,direction:p,viewService:f}=$I(_I,(e=>e.baseProps)),h=$I(_I,(e=>e.columnWidths)),{rowHeight:m,setMeasuredCellHeight:g}=MW(n),b=FH(f,u);return DW(t,s),TW(s,u,o,h,c),gW(l,a),tr.jsx(YB,{ref:s,outerRef:l,layout:"horizontal",style:{...qW,...b?{display:"none"}:void 0},itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>h[e],height:Math.max(m+8,d.headerMinRowHeight),width:r.width,itemKey:e=>n[e].id,itemData:{columns:n,columResizeHandler:i,setMeasuredCellHeight:g},direction:p,children:kW})}));var LW=O(OW);const NW=q(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:s}=$I(_I,(e=>e.baseProps));return tr.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:s,tabIndex:-1,children:r})})),jW=({children:e,rect:t})=>{const{direction:r}=$I(_I,(e=>e.baseProps));return tr.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==r?"0px":void 0,right:"rtl"===r?"0px":void 0,width:t.width,height:t.height},children:e})},_W=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:s,styleService:l,direction:u}=$I(_I,(e=>e.baseProps)),c=$I(_I,(e=>e.showRightBorder)),d=AW(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=a.qHyperCube.qSize.qcx-1===e,g=wH(n[e].id);return tr.jsx("div",{className:`sn-table-cell ${JC}`,title:s.passive?p:void 0,style:{...t,...l.totalRow,...mz(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:YA(u,m,c),borderLeftWidth:KA(u,m,c),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,textAlign:f,boxSizing:"border-box",cursor:"default",opacity:g},children:tr.jsx(_z,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},zW=q(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,s=D(null),l=D(null),{layout:u,theme:c,styleService:d,direction:p}=$I(_I,(e=>e.baseProps)),f=$I(_I,(e=>e.columnWidths)),{rowHeight:h,setMeasuredCellHeight:m}=MW(i);return DW(t,s),TW(s,u,n,f,c),gW(l,a),tr.jsx(YB,{ref:s,outerRef:l,layout:"horizontal",style:qW,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>f[e],height:Math.max(h,d.totalRowMinHeight),width:r.width,itemData:{columns:i,totals:o,setMeasuredCellHeight:m},direction:p,children:_W})}));var FW=O(zW);const HW=(e,t,r,n,o)=>T((i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,u=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,o),c=Math.max(0,Math.min(1,l/(a-s)));n.scrollTopRatio=c,n.scrollLeft=u,r.current?.interpolatedScrollTo(Number.isNaN(c)?0:c,u),e.current?.scrollTo(u),t.current?.scrollTo(u)}),[n,r,e,t,o]),$W=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=$I(_I,(e=>e.tableData)),{layout:i,theme:a,rect:s,viewService:l,direction:u}=$I(_I,(e=>e.baseProps)),c=$I(_I,(e=>e.columnWidths)),d=$I(_I,(e=>e.setYScrollbarWidth)),p=D(null),f=D(null),h=D(null),m=D(null),{xScrollbarWidth:g,yScrollbarWidth:b}=CF(p),v=C((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,o)),[s,o]),y=C((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(v,g,b)),[v,g,b]),{rowCount:x}=wW(i,t,y,c,0),{headerAndTotalsHeight:S,innerBodyHeight:E,setHeaderRowHeight:R,setTotalsRowHeight:P,setInnerBodyHeight:A}=(()=>{const[e,t]=w(0),[r,n]=w(0),[o,i]=w(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:I,height:k}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=$I(_I,(e=>e.baseProps)),a=e+t,s=r*i.contentMinRowHeight+t;let l=s;return s<n.height&&a>n.height&&(l=a),{width:o.reduce(((e,t)=>e+t),0),height:l}})({innerBodyHeight:E,headerAndTotalsHeight:S,rowCount:x,stickyContainerRect:y,columnWidths:c}),M=HW(f,h,m,l,u),q=T((()=>{p.current&&(p.current.scrollTop=0)}),[p]);mF(),L((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[n.length]),L((()=>{p.current&&(p.current.scrollTop=0)}),[t,x,a]),hF((()=>{d(b)}),[b]);const O=tr.jsx(FW,{rect:y,pageInfo:t,columns:n,ref:h,totals:r,setTotalsRowHeight:P},"totals");return tr.jsxs(fF,{children:[tr.jsx(NW,{ref:p,width:v.width,height:v.height,onScroll:M,children:tr.jsxs(PW,{width:I,height:k,children:[tr.jsxs(jW,{rect:y,children:[tr.jsx(LW,{rect:y,pageInfo:t,columns:n,ref:f,columResizeHandler:q,setHeaderRowHeight:R}),r.atTop?O:null,tr.jsx(RW,{ref:m,rect:y,pageInfo:t,columns:n,headerAndTotalsHeight:S,setInnerBodyHeight:A}),r.atBottom?O:null]}),tr.jsx(fz,{})]})}),tr.jsx(cF,{isPagination:!1})]})};var BW=O($W);const WW=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=$I(_I,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:s,totalColumnCount:l,totalPages:u}=$I(_I,(e=>e.tableData)),c=$I(_I,(e=>e.pageInfo)),d=$I(_I,(e=>e.setPage));return tr.jsxs(Oz,{"data-testid":"sn-table",children:[tr.jsx(BW,{pageInfo:c}),tr.jsx(mM,{paginationNeeded:a,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:t,translator:r,theme:e,interactions:n,rect:o,layout:i})]})};var VW=O(WW);var UW={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.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":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um zwischen den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerelementen zu wechseln. Drücken Sie die Leertaste in den Kopfzellen, um das Spaltenmenü zu öffnen, und drücken Sie die Leertaste in den Körperzellen, um eine Auswahl zu treffen. Duch die Auswahl wird der Seiteninhalt aktualisiert. Die vollständige Liste der Navigationssteuerungen finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate between table cells and tab to move to pagination controls. Press space on header cells to open the column menu, press space on body cells to make selections. Selections will cause content on the page to be updated. The full list of navigation controls can be found in the documentation.","es-ES":"Utilice las teclas de flecha para desplazarse entre las celdas de la tabla y la pestaña a fin de pasar a los controles de paginación. Pulse la barra espaciadora en las celdas del encabezado para abrir el menú de columnas; pulse la barra espaciadora en las celdas del cuerpo para realizar selecciones. Las selecciones harán que se actualice el contenido de la página. Encontrará la lista completa de controles de navegación en la documentación.","fr-FR":"Utilisez les touches fléchées pour naviguer parmi les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Appuyez sur la touche Espace dans les cellules d'en-tête pour ouvrir le menu de la colonne. Appuyez sur Espace dans les cellules de corps pour effectuer une sélection. Les sélections actualiseront le contenu de la page. Vous pouvez consulter la liste complète des commandes de navigation dans la documentation.","it-IT":"Utilizzare i tasti freccia per navigare tra le celle della tabella e il tasto TAB per passare ai controlli di paginazione. Premere lo spazio nelle celle dell'intestazione per aprire il menu della colonna; premere lo spazio nelle celle del corpo per effettuare selezioni. Le selezioni determineranno l'aggiornamento del contenuto della pagina. È possibile trovare l'elenco completo dei controlli di navigazione nella documentazione.","ja-JP":"矢印キーで表のセル間を移動し、タブ キーでページネーション コントロールに移動します。ヘッダー セルでスペースを押すと列メニューが開き、ボディ セルでスペースを押すと選択ができます。選択によって、ページのコンテンツが更新されます。ナビゲーション コントロールの全リストは、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 표 셀 사이를 탐색하고, 탭을 사용하여 페이지 번호 컨트롤로 이동하십시오. 헤더 셀에서 스페이스바를 눌러 열 메뉴를 열고, 본문 셀에서 스페이스바를 눌러 선택하십시오. 선택하면 페이지의 콘텐츠가 업데이트됩니다. 전체 탐색 컨트롤 목록은 설명서에서 확인할 수 있습니다.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren tussen tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Druk op de spatietoets in koptekstcellen om het kolommenu te openen, druk op de spatietoets in hoofdtekstcellen om selecties te maken. Door selecties te maken, wordt de inhoud op de pagina bijgewerkt. De volledige lijst met besturingselementen voor navigatie vindt u in de documentatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się między komórkami tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Naciśnij klawisz spacji na komórkach nagłówka, aby otworzyć menu kolumny i naciśnij go na komórkach treści, aby dokonać wyborów. Wybory będą powodować aktualizację zawartości na stronie. Pełną listę nawigacyjnych elementów sterujących można znaleźć w dokumentacji.","pt-BR":"Use as teclas de seta para navegar entre as células da tabela e a tecla Tab para mover para os controles de paginação. Pressione espaço nas células do cabeçalho para abrir o menu da coluna, pressione espaço nas células do corpo para fazer seleções. As seleções farão com que o conteúdo da página seja atualizado. A lista completa de controles de navegação pode ser encontrada na documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения между ячейками таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Нажмите пробел на ячейках заголовка, чтобы открыть меню столбца; нажмите пробел на ячейках тела, чтобы сделать выборки. Выборки приведут к обновлению содержимого страницы. Полный перечень элементов управления навигацией см. в документации.","sv-SE":"Använd piltangenterna för att navigera mellan tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Tryck på mellanslag på rubrikceller för att öppna kolumnmenyn och tryck på mellanslag på innehållsceller för att göra urval. Med urval kommer innehåll på sidan att uppdateras. Den fullständiga listan med navigeringsreglage.","tr-TR":"Tablo hücreleri arasında gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Sütun menüsünü açmak için başlık hücrelerinde boşluğa basın, seçim yapmak için gövde hücrelerinde boşluğa basın. Seçimler, sayfadaki içeriğin güncellenmesine neden olur. Navigasyon kontrollerinin tam listesi belgede bulunabilir.","zh-CN":"使用箭头键在表格单元格之间导航,使用 tab 键移动到分页控件。按标题单元格上的空间打开列菜单,按正文单元格上的空间进行选择。选择将导致页面上的内容更新。导航控件的完整列表可以在文档中找到。","zh-TW":"使用方向鍵以在表格儲存格之間導覽,並使用 Tab 以前往分頁控制。按下標頭儲存格的空白處可開啟欄功能表,按下正文儲存格的空白處可進行選取。選項將會造成更新頁面上的內容。導覽控制的完整清單可見於文件中。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.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":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl 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":"Selecties 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":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.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":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.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":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.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":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.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":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.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":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.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":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri 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":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri 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":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.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":"{1}의 {0}","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}"}},SNTable_Pagination_FirstPage:{id:"SNTable.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":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.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":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.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":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.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":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.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":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.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":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};const GW=(t,r)=>e((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(UW).forEach((t=>{e.add(UW[t])}))}(r),((e,t)=>{let r;return({keys:n,politeness:o="polite"})=>{const i=n.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),a=e.querySelector(`.${PA.First}`),s=e.querySelector(`.${PA.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===PA.First?(l=s,r=PA.Second):(l=a,r=PA.First),l.innerHTML=l.innerHTML.endsWith(" ")?i:`${i} `,l.setAttribute("aria-live",o)}})(t,r))),[t,r.language()]),YW={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},KW=e=>{const{app:r,model:i,rootElement:a,layout:s,translator:l,reactRoot:u,isFontLoaded:c,viewService:d,env:p}=e,{direction:f,footerContainer:h}=t(),m=NP(s,d),g=GW(a,l),[b,v]=n(((e,t)=>LP(e,t)?{page:t.page||YW.page,rowsPerPage:t.rowsPerPage||YW.rowsPerPage,rowsPerPageOptions:YW.rowsPerPageOptions}:YW)(s,d)),[y,x]=NC((async()=>m?async function(e,t,r,n,o,i,a,s){const{page:l,rowsPerPage:u,rowsPerPageOptions:c}=r,d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/u),h=o.visibleTop??l*u,m=o.visibleHeight??Math.min(u,p-h);if(l>0&&h>=p)return n({...r,page:0}),null;if(m*d>AP)return n({...r,rowsPerPage:IP(d,c),page:0}),null;const g=p>10,b=kP(t,o),v=OP(t,a,s),y=!!t.snapshotData,x=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=n?.qArea;return n&&o?.qLeft===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(e,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});y||(o.qTop=h,o.qHeight=m,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const S=x.at(0)?.qMatrix.map(((e,r)=>{const n=[];return v.forEach(((o,l)=>{const u=e[l],c=PP(o.isDim,u,t),d=!o.isDim&&u.qIsNull,p=d?qR(c):TR(u);n[l]={id:kR(),...u,align:qP(p,o.bodyTextAlign,s,a),rowIdx:r+h,colIdx:o.colIdx,pageRowIdx:r,pageColIdx:l,selectionColIdx:o.selectionColIdx,isSelectable:o.isDim&&!o.isLocked,isLastRow:r===m-1,isNumeric:p,isNull:(!d||!p)&&RP(u,o.isDim),representation:EP({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:s,enabledFeatures:{[qE.Image]:!0,[qE.Indicator]:!0,[qE.MiniChart]:!0}})}})),n}))??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(i,s,b,v,d,p,!0,f):null),[s,b,i,m,f]);o((()=>{m&&e.model&&e.changeSortOrder&&y&&c&&!x&&function(e,t){const{direction:r,...n}=e,o=BI(r);t.render(tr.jsx(li,{stylisPlugins:"rtl"===r?[wA]:void 0,children:tr.jsx(lc,{theme:o,children:tr.jsx(HI,{...e,children:tr.jsx(hB,{...n})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:y,pageInfo:b,setPageInfo:v,direction:f,footerContainer:h,announce:g},u)}),[g,r,f,h,c,b,u,e,m,y,x])},XW=(t,r)=>e((()=>((e,t)=>{if(t)return async(r,n)=>{if(!("getEffectiveProperties"in t))return;const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=r,u=o?i:i-e,c=await t.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){const e=c.qHyperCubeDef.qMeasures.at(u)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(p,!0)}})(t.qDimensionInfo.length,r)),[t.qDimensionInfo.length,r]);const JW=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=NC((async()=>{if(r&&e)return(async(e,t,r)=>{const{qDataPages:n}=t.qHyperCube;if(0!==r||0===n.length){const n=r*Math.min(nI,t.qHyperCube.qSize.qcy);if(e&&"getHyperCubeData"in e)return e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:n,qWidth:50,qHeight:100}])}return[...n]})(e,t,n)}),[e,t,n]);return{initialDataPages:o,isLoading:i}},ZW=t=>{const{layout:r,model:i,keyboard:a,interactions:s,reactRoot:l,isFontLoaded:u,viewService:c,direction:d}=t,p=!NP(r,c),[f,h]=n(!1);f&&h(!1);const m=e((()=>function(e,t,r,n,o){const i=OP(e,o,n),a=kP(e,r),s=e.qHyperCube.qSize.qcy,l=Math.min(nI,s),u=s>nI&&!!t.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:u}}(r,s,c,d,f)),[r,s,c,d,f]),{pageInfo:g,setPage:b}=((t,r)=>{const[o,i]=n(0),a=Math.min(nI,t.qHyperCube.qSize.qcy),s=e((()=>({page:o,rowsPerPage:a,rowsPerPageOptions:[]})),[a,o]);if(r){const e=Math.floor(t.qHyperCube.qSize.qcy/nI);e<o&&i(e)}return{pageInfo:s,setPage:i}})(r,p),{initialDataPages:v,isLoading:y}=JW({model:i,layout:r,page:g.page,shouldRender:p});o((()=>{p&&a.active&&a.blur?.(!1)}),[a,p]),o((()=>{p&&t.model&&t.changeSortOrder&&v&&!y&&u&&function(e,t){const{direction:r}=e,n=BI(r);t.render(tr.jsx(x.StrictMode,{children:tr.jsx(lc,{theme:n,children:tr.jsx(HI,{...e,children:tr.jsx(VW,{})})})}))}({...t,model:t.model,changeSortOrder:t.changeSortOrder,tableData:m,pageInfo:g,setPage:b,initialDataPages:v},l)}),[v,u,y,g,l,t,b,p,m])},QW={version:JSON.stringify("6.5.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};function eV(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=r.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},c=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(l,u),d=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(l,u),p=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(l,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const tV=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},rV=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const nV=(e,t,r,n)=>{if(e<0)return 0;const o=r.qHyperCube.qSize.qcy,i=n.rowsPerPage||YW.rowsPerPage,a=n.viewState?.isMultiPage?0:3;return Math.min(o,i,e-t+1+a)},oV=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=kP(e,t);if(NP(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=eV(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:nV(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=r?.getBoundingClientRect(),o=r?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=tV(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(rV(h,m,g)?d:d+1)+c;let v=p+c;const y=tV(p,o),x=y?.getBoundingClientRect();return y&&x&&(rV(x,m,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:nV(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},iV=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),aV=e=>e.getStyle("object","straightTableV2","backgroundColor");function sV(r){return{qae:{properties:{initial:QW},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>PE({...e}),exportProperties:xE,exploration:AE},ext:SR(r),component(){const n=c(),i=(t=>{const r=e((()=>FC(t)),[t]);return o((()=>()=>{r.unmount()}),[r]),r})(n),y=d(),x=p(),S=f(),w=(e=>{const t=a();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(!!y.snapshotData),C=h(),E=m(),R=g(),P=t(),{freeResize:A}=P,I=b(),k=e((()=>y.snapshotData?.content&&!A?{...I,...y.snapshotData.content.size}:I),[I,A,y.snapshotData?.content]),M=(r=>{const{viewState:n}=t();return e((()=>((e,t)=>({qTop:0,qHeight:0,rowPartialHeight:t?.content?.rowPartialHeight??0,visibleTop:t?.content?.visibleTop??e?.visibleTop,visibleHeight:t?.content?.visibleHeight??e?.visibleHeight,scrollLeft:t?.content?.scrollLeft??e?.scrollLeft??0,scrollTopRatio:t?.content?.scrollTopRatio??e?.scrollTopRatio,rowsPerPage:t?.content?.rowsPerPage??e?.rowsPerPage,page:t?.content?.page??e?.page,viewState:e,estimatedRowHeight:t?.content?.estimatedRowHeight??0}))(n,r.snapshotData)),[n,r.snapshotData,r.usePagination])})(y),D=v(),T=LC(y,n,iV,aV),q=P.direction,O=XW(y.qHyperCube,S),L=wR(y.qHyperCube,S),N=((e,t,r)=>{const[,n,o]=NC((async()=>{const t=ve(r.flags),n=e.getStyle("","","fontFamily"),o=e.getStyle("object","label.name","fontFamily"),i=e.getStyle("object","label.value","fontFamily"),a=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...a,n,o,i,$C].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n})(T,y,r),j=Dt(),_={app:x,layout:y,model:S,rect:k,theme:T,keyboard:R,translator:C,interactions:w,selectionsAPI:E,changeSortOrder:O,rootElement:n,embed:D,reactRoot:i,applyColumnWidths:L,isFontLoaded:N,downloadService:j,viewService:M,direction:q,env:r};s?.(((e,t)=>{const r=t.target,n=r?.closest(`.${JC}`);n?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{sE(n)}})})),(({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{l((async i=>{const a=i;if(!a.snapshotData||!r||a.snapshotData.content)return a;if("getHyperCubeData"in r){const{rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:h}=oV(e,t,n);a.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:d,qWidth:e.qHyperCube.qSize.qcx,qHeight:p}]),a.snapshotData.content={rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:h,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return a})),u((()=>({getViewState:()=>oV(e,t,n)})),[e,t,n])})({layout:y,viewService:M,model:S,rootElement:n,contentRect:I}),ZW(_),KW(_)}}}export{sV as default};
|
|
121
|
+
*/!function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="direction\\s*:\\s*",a="['\"]?\\s*",s="(^|[^a-zA-Z])",l="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="(?:[_a-z0-9-]|"+r+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+r+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",h="(?:[!#$%&*-~]|"+r+"|"+u+")*?",m="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+h+a+"\\))",v="(?="+h+a+"\\))",y="(\\s*(?:!important\\s*)?[;}])",x=/`TMP`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),w=new RegExp("("+l+g+"[^;}]+;?)","gi"),C=new RegExp("("+l+"[^\\}]*?})","gi"),E=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),P=new RegExp(s+"(left)"+m+b+g,"gi"),A=new RegExp(s+"(right)"+m+b+g,"gi"),I=new RegExp(s+"(left)"+v,"gi"),k=new RegExp(s+"(right)"+v,"gi"),M=new RegExp(s+"(ltr)"+v,"gi"),D=new RegExp(s+"(rtl)"+v,"gi"),T=new RegExp(s+"([ns]?)e-resize","gi"),q=new RegExp(s+"([ns]?)w-resize","gi"),O=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),L=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),N=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),j=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),_=new RegExp("(border-radius\\s*:\\s*)"+p+"(?:(?:\\s+"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?)?(?:(?:(?:\\s*\\/\\s*)"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?(?:\\s+"+p+")?)?"+y,"gi"),z=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+p,"gi"),F=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),$=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),B=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),W=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function V(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function U(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function G(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter((function(e){return e})),o=r.slice(6,10).filter((function(e){return e})),i=r[10]||"";return t+(o.length?U(n)+" / "+U(o):U(n))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,r){return t+Y(r)}function X(e,t,r,n,o){return t+r+Y(n)+o}function J(e,t,r,n,o){return t+r+n+Y(o)}return{transform:function(r,o){var i=new n(w,"`NOFLIP_SINGLE`"),a=new n(C,"`NOFLIP_CLASS`"),s=new n(S,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(M,"$1"+e).replace(D,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(I,"$1"+e).replace(k,"$1left").replace(x,"right")),r=r.replace(E,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(P,"$1"+e).replace(A,"$1left").replace(x,"right").replace(T,"$1$2"+e).replace(q,"$1$2e-resize").replace(x,"w-resize").replace(_,G).replace(z,K).replace(F,J).replace(H,J).replace($,K).replace(B,X).replace(W,X).replace(O,"$1$2$3$8$5$6$7$4$9").replace(L,"$1$2$3$8$5$6$7$4$9").replace(N,V).replace(j,V),r=i.detokenize(a.detokenize(s.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}(jP,jP.exports);var _P=Wt(jP.exports),zP="comm",FP="rule",HP="decl",$P=Math.abs,BP=String.fromCharCode;function WP(e){return e.trim()}function VP(e,t,r){return e.replace(t,r)}function UP(e,t,r){return e.indexOf(t,r)}function GP(e,t){return 0|e.charCodeAt(t)}function YP(e,t,r){return e.slice(t,r)}function KP(e){return e.length}function XP(e,t){return t.push(e),e}var JP=1,ZP=1,QP=0,eA=0,tA=0,rA="";function nA(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:JP,column:ZP,length:a,return:"",siblings:s}}function oA(){return tA=eA>0?GP(rA,--eA):0,ZP--,10===tA&&(ZP=1,JP--),tA}function iA(){return tA=eA<QP?GP(rA,eA++):0,ZP++,10===tA&&(ZP=1,JP++),tA}function aA(){return GP(rA,eA)}function sA(){return eA}function lA(e,t){return YP(rA,e,t)}function uA(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function cA(e){return WP(lA(eA-1,fA(91===e?e+2:40===e?e+1:e)))}function dA(e){for(;(tA=aA())&&tA<33;)iA();return uA(e)>2||uA(tA)>3?"":" "}function pA(e,t){for(;--t&&iA()&&!(tA<48||tA>102||tA>57&&tA<65||tA>70&&tA<97););return lA(e,sA()+(t<6&&32==aA()&&32==iA()))}function fA(e){for(;iA();)switch(tA){case e:return eA;case 34:case 39:34!==e&&39!==e&&fA(tA);break;case 40:41===e&&fA(e);break;case 92:iA()}return eA}function hA(e,t){for(;iA()&&e+tA!==57&&(e+tA!==84||47!==aA()););return"/*"+lA(t,eA-1)+"*"+BP(47===e?e:iA())}function mA(e){for(;!uA(aA());)iA();return lA(e,eA)}function gA(e){return function(e){return rA="",e}(bA("",null,null,null,[""],e=function(e){return JP=ZP=1,QP=KP(rA=e),eA=0,[]}(e),0,[0],e))}function bA(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,w=n,C=y;g;)switch(h=v,v=iA()){case 40:if(108!=h&&58==GP(C,d-1)){-1!=UP(C+=VP(cA(v),"&","&\f"),"&\f",$P(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=cA(v);break;case 9:case 10:case 13:case 32:C+=dA(h);break;case 92:C+=pA(sA()-1,7);continue;case 47:switch(aA()){case 42:case 47:XP(yA(hA(iA(),sA()),t,r,l),l),5!=uA(h||1)&&5!=uA(aA()||1)||!KP(C)||" "===YP(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[u++]=KP(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=VP(C,/\f/g,"")),f>0&&(KP(C)-d||0===m&&47===h)&&XP(f>32?xA(C+";",n,r,d-1,l):xA(VP(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(XP(w=vA(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)bA(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===GP(C,3))break;case 108:if(97===GP(C,2))break;default:c=0;case 100:case 109:case 115:}c?bA(e,w,w,n&&XP(vA(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):bA(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+KP(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==oA())continue;switch(C+=BP(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(KP(C)-1)*b,b=1;break;case 64:45===aA()&&(C+=cA(iA())),p=aA(),c=d=KP(y=C+=mA(sA())),v++;break;case 45:45===h&&2==KP(C)&&(m=0)}}return i}function vA(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=function(e){return e.length}(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=YP(e,p+1,p=$P(g=a[m])),x=e;v<h;++v)(x=WP(g>0?f[v]+" "+y:VP(y,/&\f/g,f[v])))&&(l[b++]=x);return nA(e,t,r,0===o?FP:s,l,u,c,d)}function yA(e,t,r,n){return nA(e,t,r,zP,BP(tA),YP(e,2,-2),0,n)}function xA(e,t,r,n,o){return nA(e,t,r,HP,YP(e,0,n),YP(e,n+1,-1),n,o)}function SA(e,t,r){switch(e.type){case"@import":case HP:case zP:return e.return=e.return||e.value;case FP:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===zP&&(e.children=e.value)}))}var n=function(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}(Array.prototype.concat(e.children),SA);return KP(n)?e.return=e.value+"{"+n+"}":""}function wA(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===FP&&(!e.parent||"@media"===e.parent.type||e.parent.type===FP)){var o=_P.transform(SA(e));e.children=o?gA(o)[0].children:[],e.return=""}}Object.defineProperty(wA,"name",{value:"stylisRTLPlugin"});let CA=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),EA=function(e){return e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows",e}({}),RA=function(e){return e.A="ascending",e.D="descending",e}({}),PA=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const AA=[0,0],IA=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),kA=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},MA=(e,t,r)=>{const n={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 r=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return s&&re(e.localPaletteColors[t].color).blend(re(s.color),s.t)},DA=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort(((e,t)=>e.value-t.value)),e.limits=r.map((e=>({...e,value:IA(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:kA(n,t,r)})))),n},TA=(e,t,r,n)=>{const o=DA(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=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>=n&&t<i){r=MA(e,a,t);break}n=i}return r})(o,t);return a},qA=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!DR(e)));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!DR(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},OA=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=qA(e,t),o=Math.abs(t);return{min:r??t-o,max:n??t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!DR(t))return 0;let a=r&&DR(r)?Math.min(r,t):0;const s=n.sort(((e,t)=>e.value-t.value)),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}},LA=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=OA(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,r.limitPaletteColorIndex))return kA(o,r.limitPaletteColorIndex,n);const a=IA(r.limitRange,t);return TA(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},NA=(xC().palette.primary.light,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),jA=4/3,_A="12px",zA="600",FA="Source Sans Pro, sans-serif",HA={height:"auto",fontSize:_A,lineHeight:"unset",padding:"4px",borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},$A={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:zA},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},BA=(e,t)=>"rtl"===e&&"center"!==t.resolvedImagePosition?.horizontal?t.resolvedImagePosition?.horizontal&&(e=>"flex-start"===e?"flex-end":"flex-start")(t.resolvedImagePosition?.horizontal):t.resolvedImagePosition?.horizontal,WA=(e,t)=>e.representation.type===qE.Image&&"fitHeight"===e.representation.imageSize?BA(t,e.representation):e.align,VA=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",UA=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},GA=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,YA=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",KA=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",XA=24,JA=ac("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),ZA=ac(Xd,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})((({textAlign:e,theme:t,direction:r,isPagination:n})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===r?VA(e,n):void 0}))),QA=ac(Xd,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})((({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${YC}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${YC}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),eI=ac(Xd,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"}))),tI=ac(Xd,{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"}))),rI=ac(ad,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})((({hoverBackground:e,activeBackground:t,isActive:r,order:n})=>({padding:"4px !important",width:"fit-content",height:"auto",background:r?t:void 0,"&:hover":{background:e},color:"inherit",order:n}))),nI=25e4,oI=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:u},label:c,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{n[a]=Math.min(eE.PixelsMax,Math.max(eE.PixelsMin,f)),i-=n[a]};switch(s){case tE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?eE.PixelsDefault:+e)(l),h();break;case tE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?eE.PercentageDefault:+e)(u)/100*t,h();break;case tE.FitToContent:e.representation?.type===qE.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case tE.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}})),o.length){const e=i/o.length;o.forEach((t=>{n[t]=Math.max(eE.AutoMinTable,e)}))}return n},iI=(e,t,r)=>{const n=r.size,o=n>=t.size;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},aI=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},sI=e=>e.ctrlKey||e.metaKey,lI=e=>e.shiftKey&&sI(e),uI=e=>[ZC.Left,ZC.Right,ZC.Up,ZC.Down].includes(e),cI=e=>e.shiftKey&&uI(e.key),dI=e=>(e=>uI(e)||[ZC.Home,ZC.End,ZC.PageUp,ZC.PageDown].includes(e))(e.key)&&!lI(e),pI=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)r?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(n)}return l=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?(new Map).set(n,o):(e.has(n)?e.delete(n):e.set(n,o),new Map(e))})(l,i,s),iI(a,n,l),l.size?(r?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(r?.cancel(),{...e,rows:l,colIdx:-1})},fI=(e,t)=>{const{api:r,rows:n,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:u}=t;if(!(a||"key"in u&&cI(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&cI(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===ZC.Down?1:-1,o=e[r.pageRowIdx+t][r.pageColIdx];return i.set(o.qElemNumber,r.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),s=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=s;t++){const r=e[t][o.pageColIdx];i.set(r.qElemNumber,r.rowIdx)}return i})(i,n,s,u,a);return iI(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},hI=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},mI=(e,t)=>{switch(t.type){case EA.Select:return pI(e,t.payload);case EA.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case EA.SelectMouseUp:return((e,t)=>hI(e.isSelectMultiValues||e.firstCell!==t.cell?e:pI(e,t)))(e,t.payload);case EA.SelectMultiAdd:return fI(e,t.payload);case EA.SelectMultiEnd:return hI(e);case EA.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case EA.Clear:return e.rows.size?{...e,rows:new Map}:e;case EA.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},gI=4/3,bI=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function vI(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const yI=(e,t)=>e?{borderBottomColor:wC.DARK_MODE_BORDER,borderRightColor:wC.DARK_MODE_BORDER,borderLeftColor:wC.DARK_MODE_BORDER,borderTopColor:wC.DARK_MODE_BORDER}:{borderLeftColor:wC.BORDER_MEDIUM,borderRightColor:wC.BORDER_MEDIUM,borderTopColor:wC.BORDER_HEAVY,borderBottomColor:t?wC.BORDER_HEAVY:wC.BORDER_LIGHT},xI=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*gI+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},SI=e=>e.components?.find((e=>"theme"===e.key)),wI=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:bI(r?.fontColor)?vI(wC.TEXT,t,r?.fontColor):i||wC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...yI(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function CI(e,t,r){const n=SI(e)?.header,o=wI("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=re(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=RC(o.background??wC.WHITE,rE),o.activeBackground=RC(o.background??wC.WHITE,nE),o}const EI=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach((e=>(e=>e in $A)(e)&&Object.assign(t,$A[e]))),t};function RI(e,t,r){const n={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach(((e,t)=>{const i=e.qText,a=i&&AC(i);a&&"none"!==a&&(n[r[t]]=a),o=i?EI(i,o):o})),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=CC(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const PI=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},AI=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=PI(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},II=(e,t,r,n=wC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=AI(e,t,r);return TC(i,o,a,n)??n},kI=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return _A}},MI=e=>e?.some((e=>"italic"===e))?"italic":"normal",DI=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?zA:"normal",TI=e=>!1===e?1:3,qI=e=>parseInt(e??HA.fontSize,10)*jA,OI=e=>e?.some((e=>"underline"===e))?"underline":"none",LI=(e,t,r,n,o)=>{const{header:i,dimensionValues:a,measureValues:s,totalValues:l,nullValues:u,grid:c,content:d}=SI(t)??{},p=NP(t,o)?wC.WHITE:wC.TRANSPARENT,f=II(n,i,"object.straightTableV2.dimension.label.name.backgroundColor",p),h=o.viewState?.maxLineCount??d?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),m={header:{fontFamily:i?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??r.head.fontFamily??FA,fontSize:kI(i?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??r.head.fontSize),fontStyle:MI(i?.fontStyle),fontWeight:DI(i?.fontStyle,zA),textDecoration:OI(i?.fontStyle),color:PI(n,i?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??r.head.color??wC.TEXT,background:f},headerMenuHoverBackground:RC(f,rE),headerMenuActiveBackground:RC(f,nE),dimension:{values:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??r.body.fontFamily??FA,fontSize:kI(a?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??r.body.fontSize),fontStyle:MI(a?.fontStyle),fontWeight:DI(a?.fontStyle,"normal"),textDecoration:OI(a?.fontStyle),color:PI(n,a?.fontColor)??PI(n,d?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??r.body.color??wC.TEXT,background:AI(n,a,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??r.body.background??wC.TRANSPARENT}},measure:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??r.body.fontFamily??FA,fontSize:kI(s?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??r.body.fontSize),fontStyle:MI(s?.fontStyle),fontWeight:DI(s?.fontStyle,"normal"),textDecoration:OI(s?.fontStyle),color:PI(n,s?.fontColor)??PI(n,d?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??r.body.color??wC.TEXT,background:AI(n,s,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??r.body.background??wC.TRANSPARENT}},totalRow:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??r.totals.fontFamily??FA,fontSize:kI(l?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??r.totals.fontSize),fontStyle:MI(l?.fontStyle),fontWeight:DI(l?.fontStyle,zA),textDecoration:OI(l?.fontStyle),color:PI(n,l?.fontColor)??PI(n,d?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??r.totals.color??wC.TEXT,background:II(n,l,"object.straightTableV2.total.label.value.backgroundColor",p)},nullValues:{fontStyle:MI(u?.fontStyle),fontWeight:DI(u?.fontStyle,"normal"),textDecoration:OI(u?.fontStyle),color:PI(n,u?.fontColor)??PI(n,d?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??r.body.color??wC.TEXT,background:PI(n,u?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??wC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:h??TI(t.multiline?.wrapTextInCells),headerLineClamp:TI(t.multiline?.wrapTextInHeaders),border:PI(n,c?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?wC.DARK_MODE_BORDER:wC.BORDER_MEDIUM),divider:PI(n,c?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??wC.BORDER_HEAVY,hoverColors:{color:PI(n,d?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??r.body.hoverColors?.color,background:PI(n,d?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??r.body.hoverColors?.background},zebraStripes:{show:!!c?.zebraStripes?.show,odd:{color:PI(n,c?.zebraStripes?.color?.odd),background:PI(n,c?.zebraStripes?.background?.odd)},even:{color:PI(n,c?.zebraStripes?.color?.even),background:PI(n,c?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===PI(n,u?.background),overrideNullValueColor:void 0===PI(n,u?.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:EC(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:h},{headerMinRowHeight:g,totalRowLineHeight:b,totalRowMinHeight:v,contentLineHeight:y,contentMinRowHeight:x}=(e=>{const t=Math.max(qI(e.header.fontSize)+8,32),r=qI(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(qI(e.dimension.values.fontSize),qI(e.measure.values.fontSize)),i=(e.contentStaticLineCount||1)*o;return{headerMinRowHeight:t,totalRowLineHeight:r,totalRowMinHeight:n,contentLineHeight:o,contentMinRowHeight:Math.max(i+8+1,24)}})(m);return m.headerMinRowHeight=g,m.totalRowLineHeight=b,m.totalRowMinHeight=v,m.contentLineHeight=y,m.contentMinRowHeight=x,m},NI=(e,t,r,n)=>{const o=C((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){const o=SI(e)?.content,i=wI("content",t,o);i.background=t.background.color;const a=xI(i.fontSize,r,n),s=o?.hoverColor,l=o?.hoverFontColor,u=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),c=t.getStyle("object","","straightTableV2.content.hover.color"),d=bI(l)||!!c,p=bI(s)||!!u,f=d||p;let h;h=bI(s)?vI(wC.HOVER,t,s):u||(d?"":wC.HOVER);const m=f?vI(CC(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(e,t,r.rows.length,n),a=CI(e,t,!o),s=function(e,t,r){const n=SI(e)?.content,o=wI("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=CI(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(e,t,o);return{body:i,head:a,totals:s}}),[e,t,r,n]);return o},jI=new Map;const _I=M({}),zI=function(e){const t=M([()=>{},new Set]);return jI.set(e,t),({children:r,value:n})=>{const o=D(n),i=D(new Set);E((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=T((()=>o.current),[o]),s=C((()=>[a,i.current]),[a]);return tr.jsx(e.Provider,{value:n,children:tr.jsx(t.Provider,{value:s,children:r})})}}(_I),FI={rows:[],columns:[],totalsPosition:{}},HI=({app:e,children:t,tableData:r=FI,selectionsAPI:n,cellCoordMock:o,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:h,setPage:m,pageInfo:g,initialDataPages:b,rect:v,viewService:y,downloadService:x,env:S,direction:E})=>{const[R,P]=w(0),[A,I]=w(o||AA),[M,D]=((e,t)=>{const[r,n]=k(mI,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[T,q]=w(-1),O=NI(i,u,r,d),L=((e,t,r,n,o)=>C((()=>LI(0,t,r,n,o)),[t,r,e,n,o]))(S,i,O,u,y),[N,j,_,z,F,H]=((e,t,r,n,o=!0)=>{const i=t.atBottom||t.atTop,a=zC({...n.header,fontWeight:zA},{maxNbrLinesOfText:3}).measureText,s=zC({...n.totalRow,fontWeight:zA},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=zC(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:u}=zC(n.measure.values,{maxNbrLinesOfText:3}),c=C((()=>(e,t,r,n,c,d,p)=>{let f=0;if(o){const t=4;let r=25;r+=t+24,n&&(r+=20+t),c&&(r+=20),f=a(e)+r}else{let t=9;t+=16,p&&(t+=XA),t+=XA,t+=XA,f=a(e)+t}const h=d?l:u;return Math.max(f,i?s(t)+24+1:0,h(r))}),[l,u,a,s,i,o]),[d,p]=w(0),[f,h]=w(!1),[m,g]=w((()=>oI(e,r,c)));BC((()=>{g(oI(e,r-d,c)),h(!1)}),[e,r,d,c]);const b=C((()=>((e,t,r)=>e.length>0&&e.reduce(((e,t)=>e+t))+t<r)(m,d,r)),[m,d,r]);return[m,g,p,b,f,h]})(r.columns,r.totalsPosition,v.width,L,i.accessibleHeader),$=C((()=>({app:e,selectionsAPI:n,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:h,rect:v,viewService:y,styleService:L,direction:E,downloadService:x})),[e,n,i,a,s,l,u,c.active,d,p,f,h,v,y,L,E,x]);return tr.jsx(zI,{value:{headRowHeight:R,setHeadRowHeight:P,focusedCellCoord:A,setFocusedCellCoord:I,selectionState:M,selectionDispatch:D,hoverIndex:T,setHoverIndex:q,columnWidths:N,setColumnWidths:j,baseProps:$,tableData:r,setYScrollbarWidth:_,setPage:m,pageInfo:g,initialDataPages:b,showRightBorder:z,env:S,isAdjustingWidth:F,setIsAdjustingWidth:H},children:t})};function $I(e,t){const r=function(e){return jI.get(e)}(e),[n,o]=S(r),[,i]=k((e=>e+1),0),a=D(t),s=D(),l=n();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const u=C((()=>t(l)),[l,t]);return E((()=>{a.current=t,s.current=u}),[l,u,t]),E((()=>{const e=e=>{a.current(e)!==s.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function BI(e){const t=xC();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Cu({...t,direction:e})}const WI={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},VI={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},UI=ac("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-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":{...WI},"&::-moz-range-track":{...WI},"&::-ms-track":{...WI},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...VI},"&::-moz-range-thumb":{...VI},"&::-ms-thumb":{...VI},"&: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"}}))),GI=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:u,accessibilityRelatedArgs:c,direction:d="ltr"})=>{const p=VC({translator:c.translator}),f=D({initWidth:e,columnWidth:e,initX:0}),h=r?0:1,m=n&&!u,g=()=>m?f.current.columnWidth-h:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:t??f.current.initX}};BC((()=>{m&&v()}),[e]);const y=e=>{const t=Math.max(e,eE.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:tE.Pixels,pixels:f.current.columnWidth};a(e)}else l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{kC(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),x()},C=e=>{const t="rtl"===d?f.current.initWidth+-f.current.initX-e.touches[0].clientX:f.current.initWidth+e.touches[0].clientX-f.current.initX;y(t)},E=e=>{kC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===ZC.Left||e.key===ZC.Right){kC(e);const t=5,r=e.key===ZC.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===ZC.Space||e.key===ZC.Enter?(kC(e),s(e),l?.(!1),x()):e.key===ZC.Esc&&(kC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,P=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return tr.jsx(UI,{style:b,hoverColor:o,isLastColumn:r,className:QC,"data-testid":QC,onMouseDown:e=>{kC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:tE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(kC(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":P,"aria-valuemin":eE.PixelsMin,"aria-valuemax":eE.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},YI=q(((e,t)=>tr.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:tr.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),KI=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const r=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",r,t)}catch(e){console.error(e)}}}return null},XI=ac(Xd,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})((({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:r})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:r?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:r?"100%":void 0,alignItems:"center",justifyContent:"center"}))),JI=ac(YI,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),ZI=ac(Tf)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),QI=ac(Ip)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),ek=ac(jf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),tk=ac(jf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({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:r?"rgba(0, 0, 0, 0.05)":"transparent"}))),rk=ac("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),nk=ac("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),ok=ac(pd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),ik=ac(of,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0}))),ak=q(((e,t)=>tr.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:tr.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),sk=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?sk(t):t:e.parentElement?.children?.[0]},lk=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?lk(t):t},uk=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===ZC.Down||t===ZC.Up){const r=e=>t===ZC.Down?sk(e):lk(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},ck=(e,t)=>e.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((({onClick:e,...r})=>({...r,...e?{onClick:async r=>{Object.entries(t).forEach((([,e])=>{e(!1)})),await e(r)}}:{}})))})))));let dk={};const pk=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:u,isPagination:c})=>{const[d,p]=w(!1),f=x.useRef(null),h=T((e=>{e.stopPropagation(),p(!1)}),[p]);return tr.jsxs(tr.Fragment,{children:[tr.jsxs(tk,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),dk={}),a?.length&&(p(!0),dk[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:uk,children:[l?tr.jsx(rk,{direction:u,isPagination:c}):null,tr.jsxs(nk,{children:[tr.jsx(ik,{direction:u,isPagination:c,children:tr.jsx(o,{})}),tr.jsx(ok,{variant:"body2",children:n})]}),a?.length?tr.jsx(ak,{}):null]},t),a?.length?tr.jsx(gk,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:ck(a,dk),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},fk=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&tr.jsx(ek,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>tr.jsx(pk,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),hk=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[fk({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?tr.jsx(QI,{"data-testid":"group-divider",variant:"middle"}):void 0])),mk={appear:0,enter:0,exit:0},gk=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?tr.jsx(ZI,{className:KC,open:t,anchorEl:e,onClose:r,transitionDuration:mk,MenuListProps:{id:XC},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:hk({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,bk=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>T((()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:o,onPopoverClose:i})}}),[e,t,r,n?.qStateName,o,i]),vk=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),yk=(e,t)=>e.some((e=>t[e]>0)),xk={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},Sk=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=w(null),[a,s]=w(xk);return BC((()=>{e||(s(xk),i(null))}),[e]),E((()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=vk(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};o=c.qInfo?.qId,a?l():(i(u),d&&s((e=>({canSelectAll:yk(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:yk(["qSelected"],e),canSelectPossible:yk(["qOption"],e),canSelectAlternative:yk(["qAlternative"],e),canSelectExcluded:yk(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},wk=q(((e,t)=>tr.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:tr.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"})}))),Ck=q(((e,t)=>tr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:[tr.jsx("g",{clipPath:"url(#clear_selections_svg__clip0_482_2951)",children:tr.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})}),tr.jsx("defs",{children:tr.jsx("clipPath",{id:"clear_selections_svg__clip0_482_2951",children:tr.jsx("path",{d:"M0 0h16v16H0z"})})})]}))),Ek=q(((e,t)=>tr.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:tr.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"})}))),Rk=q(((e,t)=>tr.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:tr.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"})}))),Pk=q(((e,t)=>tr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:[tr.jsx("g",{clipPath:"url(#dimension_svg__clip0_482_3308)",children:tr.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})}),tr.jsx("defs",{children:tr.jsx("clipPath",{id:"dimension_svg__clip0_482_3308",children:tr.jsx("path",{d:"M0 0h16v16H0z"})})})]}))),Ak=q(((e,t)=>tr.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:tr.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"})}))),Ik=q(((e,t)=>tr.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:tr.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"})}))),kk=q(((e,t)=>tr.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:tr.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"})}))),Mk=q(((e,t)=>tr.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:tr.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"})}))),Dk=q(((e,t)=>tr.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:tr.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"})}))),Tk=q(((e,t)=>tr.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:tr.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"})}))),qk=q(((e,t)=>tr.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:tr.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"})}))),Ok=q(((e,t)=>tr.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:tr.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"})}))),Lk=q(((e,t)=>tr.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:tr.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 Nk=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const jk="/qListObjectDef",_k=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[Nk.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(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(o?.(e,"A")),n(!1)},icon:wk,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),n(!1)},icon:Rk,enabled:s,isActive:!!r&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:kk,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:Pk,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[Nk.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:Mk,enabled:!0}]}]),!e.isLocked&&r[Nk.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:Lk,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(jk))},icon:Dk,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(jk))},icon:Ok,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(jk))},icon:Tk,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(jk))},icon:qk,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(jk))},icon:Ck,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:Ik,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:Ak,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[Nk.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:Ek,enabled:!0}]}]),f},zk=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:u,selectionRelatedArgs:c,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:b=UC})=>{const v=D(null),y=VC({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=Sk({open:e,headerData:n,app:C,qStateName:c?.qStateName}),P=KI({model:f,headerData:n}),A=bk({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),I=T((e=>{e.stopPropagation(),t(!1)}),[t]),k=T((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?tr.jsxs(XI,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:YC,onClick:!1===g?k:void 0,ref:v,isAccessibleHeader:g,children:[s?tr.jsx(JI,{height:b,className:GC,"data-testid":GC,isInteractionsActive:i.active??!1,children:tr.jsx(YI,{})}):null,tr.jsx(gk,{open:e,anchorEl:!1===g?v.current:r.current,onClose:I,menuGroups:_k({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:A,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:P,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},Fk=e=>e.isDark?{background:e.color,borderColor:wC.DARK_MODE_BORDER,color:wC.DARK_MODE_TEXT,disabledColor:wC.DARK_MODE_DISABLED,iconColor:wC.DARK_MODE_TEXT}:{background:e.color,borderColor:wC.BORDER_MEDIUM,color:wC.TEXT,disabledColor:wC.DISABLED},Hk=ac(Xd,{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}`}))),$k=ac(bh,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),Bk=ac(ap,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)}))),Wk=ac(pd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),Vk=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=C((()=>Fk(n.background)),[n]);if(!r.active)return null;const a=o?tr.jsx(Hk,{footerStyle:i,children:e}):null;return t?H.createPortal(e,t):a},Uk=M({}),Gk=()=>S(Uk),Yk=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const b=(e=>!e.enabled||e.active)(c)?0:-1,v=C((()=>Fk(p.background)),[p]),y=o?o.getBoundingClientRect().width:h.width,x=VC({translator:d}),S=C((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:v,tabIndex:b,width:y,visibilityThreshold:g})),[t,r,n,o,i,a,s,l,u,c,x,p,f,h,m,v,b,y,g]);return tr.jsx(Uk.Provider,{value:S,children:e})};let Kk=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),Xk=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 Jk=q(((e,t)=>tr.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:tr.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),Zk=q(((e,t)=>tr.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:tr.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),Qk=q(((e,t)=>tr.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:tr.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),eM={FirstPage:Zk,PreviousPage:Jk,NextPage:ak,LastPage:Qk,FirstPageRTL:Qk,PreviousPageRTL:ak,NextPageRTL:Jk,LastPageRTL:Zk},tM=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=Gk(),u=r.concat("rtl"===n?"RTL":""),c=eM[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:l,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},rM=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=Gk(),o=0===e.page,{IconComponent:i,styledProps:a}=tM({type:Kk.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||Xk.FirstPage)?null:tr.jsx(Bk,{...a,disabled:!r.active,children:tr.jsx(i,{height:UC})})},nM=(e,t,r=!1)=>{r&&e.key===ZC.Tab&&!e.shiftKey&&(kC(e),IC(e.target,t,!1))},oM=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=Gk(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=tM({type:Kk.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{nM(e,t,n)}:void 0;return o<=(a?.lastPage||Xk.LastPage)?null:tr.jsx(Bk,{...u,onKeyDown:c,disabled:!i.active,children:tr.jsx(l,{height:UC})})},iM=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=Gk(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=tM({type:Kk.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>Xk.FirstPage&&o>Xk.LastPage)&&t.enabled?e=>{nM(e,t,n)}:void 0;return tr.jsx(Bk,{...l,onKeyDown:u,disabled:!i.active,children:tr.jsx(s,{height:UC})})},aM=()=>{const{pageInfo:e,interactions:t}=Gk(),r=0===e.page,{IconComponent:n,styledProps:o}=tM({type:Kk.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return tr.jsx(Bk,{...o,disabled:!t.active,children:tr.jsx(n,{height:UC})})},sM=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=Gk(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||Xk.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return tr.jsx(Wk,{variant:"caption",dir:"ltr",children:s})},lM=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=Gk(),u=o.qInfo.qId,c=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return tr.jsxs(tr.Fragment,{children:[tr.jsxs(Wk,{variant:"caption",id:p,children:[c,":"]}),tr.jsx($k,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},uM=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=Gk();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||Xk.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=tr.jsx(tr.Fragment,{children:e.rowsPerPageOptions.map((e=>tr.jsx("option",{value:e,children:e},e)))});return tr.jsx(lM,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},cM=1e3,dM="…",pM=({totalPages:e,page:t})=>{const r=Math.min(e,cM),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-cM):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return tr.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(tr.jsx("option",{value:dM,disabled:!0,children:dM},"startMoreOptions")),o<e-1&&a.push(tr.jsx("option",{value:dM,disabled:!0,children:dM},"endMoreOptions")),tr.jsx(tr.Fragment,{children:a})},fM=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=Gk(),{page:i}=e;if(t<=(o?.selectPage||Xk.SelectPage))return null;const a=tr.jsx(pM,{totalPages:r,page:i});return tr.jsx(lM,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var hM=O((e=>tr.jsxs(Yk,{...e,children:[tr.jsx(uM,{}),tr.jsx(fM,{}),tr.jsx(sM,{}),tr.jsx(rM,{}),tr.jsx(aM,{}),tr.jsx(iM,{}),tr.jsx(oM,{})]})));const mM=e=>tr.jsx(Vk,{...e,children:tr.jsx(hM,{...e})});var gM=Symbol.for("preact-signals");function bM(){if(wM>1)wM--;else{for(var e,t=!1;void 0!==SM;){var r=SM;for(SM=void 0,CM++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&IM(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(CM=0,wM--,t)throw e}}function vM(e){if(wM>0)return e();wM++;try{return e()}finally{bM()}}var yM=void 0;function xM(e){var t=yM;yM=void 0;try{return e()}finally{yM=t}}var SM=void 0,wM=0,CM=0,EM=0;function RM(e){if(void 0!==yM){var t=e.n;if(void 0===t||t.t!==yM)return t={i:0,S:e,p:yM.s,n:void 0,t:yM,e:void 0,x:void 0,r:t},void 0!==yM.s&&(yM.s.n=t),yM.s=t,e.n=t,32&yM.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=yM.s,t.n=void 0,yM.s.n=t,yM.s=t),t}}function PM(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function AM(e,t){return new PM(e,t)}function IM(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function kM(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function MM(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function DM(e,t){PM.call(this,void 0),this.x=e,this.s=void 0,this.g=EM-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function TM(e,t){return new DM(e,t)}function qM(e){var t=e.u;if(e.u=void 0,"function"==typeof t){wM++;var r=yM;yM=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,OM(e),t}finally{yM=r,bM()}}}function OM(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,qM(e)}function LM(e){if(yM!==this)throw new Error("Out-of-order effect");MM(this),yM=e,this.f&=-2,8&this.f&&OM(this),bM()}function NM(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=null==t?void 0:t.name}function jM(e,t){var r=new NM(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}PM.prototype.brand=gM,PM.prototype.h=function(){return!0},PM.prototype.S=function(e){var t=this,r=this.t;r!==e&&void 0===e.e&&(e.x=r,this.t=e,void 0!==r?r.e=e:xM((function(){var e;null==(e=t.W)||e.call(t)})))},PM.prototype.U=function(e){var t=this;if(void 0!==this.t){var r=e.e,n=e.x;void 0!==r&&(r.x=n,e.e=void 0),void 0!==n&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&xM((function(){var e;null==(e=t.Z)||e.call(t)})))}},PM.prototype.subscribe=function(e){var t=this;return jM((function(){var r=t.value,n=yM;yM=void 0;try{e(r)}finally{yM=n}}),{name:"sub"})},PM.prototype.valueOf=function(){return this.value},PM.prototype.toString=function(){return this.value+""},PM.prototype.toJSON=function(){return this.value},PM.prototype.peek=function(){var e=yM;yM=void 0;try{return this.value}finally{yM=e}},Object.defineProperty(PM.prototype,"value",{get:function(){var e=RM(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(CM>100)throw new Error("Cycle detected");this.v=e,this.i++,EM++,wM++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{bM()}}}}),DM.prototype=new PM,DM.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===EM)return!0;if(this.g=EM,this.f|=1,this.i>0&&!IM(this))return this.f&=-2,!0;var e=yM;try{kM(this),yM=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return yM=e,MM(this),this.f&=-2,!0},DM.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}PM.prototype.S.call(this,e)},DM.prototype.U=function(e){if(void 0!==this.t&&(PM.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},DM.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(DM.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=RM(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),NM.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},NM.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,qM(this),kM(this),wM++;var e=yM;return yM=this,LM.bind(this,e)},NM.prototype.N=function(){2&this.f||(this.f|=2,this.o=SM,SM=this)},NM.prototype.d=function(){this.f|=8,1&this.f||OM(this)},NM.prototype.dispose=function(){this.d()};var _M,zM,FM,HM,$M,BM,WM,VM,UM,GM,YM,KM,XM,JM,ZM,QM,eD,tD,rD,nD,oD=Object.create,iD=Object.defineProperty,aD=Object.defineProperties,sD=Object.getOwnPropertyDescriptor,lD=Object.getOwnPropertyDescriptors,uD=Object.getOwnPropertySymbols,cD=Object.prototype.hasOwnProperty,dD=Object.prototype.propertyIsEnumerable,pD=e=>{throw TypeError(e)},fD=(e,t,r)=>t in e?iD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hD=(e,t)=>iD(e,"name",{value:t,configurable:!0}),mD=["class","method","getter","setter","accessor","field","value","get","set"],gD=e=>void 0!==e&&"function"!=typeof e?pD("Function expected"):e,bD=(e,t,r,n,o)=>({kind:mD[e],name:t,metadata:n,addInitializer:e=>r._?pD("Already initialized"):o.push(gD(e||null))}),vD=(e,t)=>{return fD(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},yD=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},xD=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=mD[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&sD(d<4?o:{get[r](){return CD(this,i)},set[r](e){return RD(this,i,e)}},r));d?f&&d<4&&hD(i,(d>2?"set ":d>1?"get ":"")+r):hD(o,r);for(var y=n.length-1;y>=0;y--)u=bD(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>wD(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?CD:PD)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>RD(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?gD(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?pD("Object expected"):(gD(a=s.get)&&(v.get=a),gD(a=s.set)&&(v.set=a),gD(a=s.init)&&g.unshift(a));return d||vD(e,o),v&&iD(o,r,v),f?4^d?i:v:o},SD=(e,t,r)=>t.has(e)||pD("Cannot "+r),wD=(e,t)=>Object(t)!==t?pD('Cannot use the "in" operator on this value'):e.has(t),CD=(e,t,r)=>(SD(e,t,"read from private field"),r?r.call(e):t.get(e)),ED=(e,t,r)=>t.has(e)?pD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),RD=(e,t,r,n)=>(SD(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),PD=(e,t,r)=>(SD(e,t,"access private method"),r);function AD(e,t){if(t){let r;return TM((()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)}))}return TM(e)}function ID(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some(((e,r)=>!ID(e,t[r])))}if("object"==typeof e&&"object"==typeof t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=r.some((r=>!ID(e[r],t[r])));return!o}return!1}function kD({get:e},t){return{init:e=>AM(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function MD(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=AD(e.bind(this)),r.set(this,t)),t.value}}function DD(e=!0){return function(t,r){r.addInitializer((function(){const t="field"===r.kind||r.static?this:Object.getPrototypeOf(this),n=Object.getOwnPropertyDescriptor(t,r.name);n&&Object.defineProperty(t,r.name,((e,t)=>aD(e,lD(t)))(((e,t)=>{for(var r in t||(t={}))cD.call(t,r)&&fD(e,r,t[r]);if(uD)for(var r of uD(t))dD.call(t,r)&&fD(e,r,t[r]);return e})({},n),{enumerable:e}))}))}}function TD(...e){const t=e.map((e=>jM(e)));return()=>t.forEach((e=>e()))}BM=[kD],$M=[kD],HM=[kD],FM=[DD()],zM=[DD()],_M=[DD()];var qD,OD=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,yD(WM,5,this),ED(this,KM),ED(this,VM,yD(WM,8,this)),yD(WM,11,this),ED(this,XM,yD(WM,12,this)),yD(WM,15,this),ED(this,eD,yD(WM,16,this)),yD(WM,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return CD(this,KM,rD)}get initial(){return CD(this,KM,GM)}get previous(){return CD(this,KM,ZM)}set current(e){const t=xM((()=>CD(this,KM,rD)));e&&t&&this.equals(t,e)||vM((()=>{CD(this,KM,GM)||RD(this,KM,e,YM),RD(this,KM,t,QM),RD(this,KM,e,nD)}))}reset(e=this.defaultValue){vM((()=>{RD(this,KM,void 0,QM),RD(this,KM,e,YM),RD(this,KM,e,nD)}))}};function LD(e){return xM((()=>{const t={};for(const r in e)t[r]=e[r];return t}))}WM=[,,,oD(null)],VM=new WeakMap,KM=new WeakSet,XM=new WeakMap,eD=new WeakMap,UM=xD(WM,20,"#initial",BM,KM,VM),GM=UM.get,YM=UM.set,JM=xD(WM,20,"#previous",$M,KM,XM),ZM=JM.get,QM=JM.set,tD=xD(WM,20,"#current",HM,KM,eD),rD=tD.get,nD=tD.set,xD(WM,2,"current",FM,OD),xD(WM,2,"initial",zM,OD),xD(WM,2,"previous",_M,OD),vD(WM,OD);qD=new WeakMap;var ND,jD,_D,zD,FD,HD=Object.create,$D=Object.defineProperty,BD=Object.getOwnPropertyDescriptor,WD=Object.getOwnPropertySymbols,VD=Object.prototype.hasOwnProperty,UD=Object.prototype.propertyIsEnumerable,GD=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),YD=e=>{throw TypeError(e)},KD=Math.pow,XD=(e,t,r)=>t in e?$D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,JD=["class","method","getter","setter","accessor","field","value","get","set"],ZD=e=>void 0!==e&&"function"!=typeof e?YD("Function expected"):e,QD=(e,t,r,n,o)=>({kind:JD[e],name:t,metadata:n,addInitializer:e=>r._?YD("Already initialized"):o.push(ZD(e||null))}),eT=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=JD[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,BD(o,r)),h=n.length-1;h>=0;h--)(l=QD(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,ZD(a)&&(f[d]=a);return f&&$D(o,r,f),o},tT=(e,t,r)=>t.has(e)||YD("Cannot "+r),rT=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},nT=class e{constructor(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,r){const{top:n,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,n+r,i,a);return l.scale=((e,t)=>{for(var r in t||(t={}))VD.call(t,r)&&XD(e,r,t[r]);if(WD)for(var r of WD(t))UD.call(t,r)&&XD(e,r,t[r]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:r,top:n,right:o,bottom:i}=this;return{width:e,height:t,left:r,top:n,right:o,bottom:i}}get center(){const{left:e,top:t,right:r,bottom:n}=this;return new rT((e+r)/2,(t+n)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:r,top:n,width:o,height:i}=this;return r===t.left&&n===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:r,bottom:n,right:o}=this;return t<=e.y&&e.y<=n&&r<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-n,s=i-r;if(n<o&&r<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,r=this.intersectionArea(e);return r/(e.area+t-r)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:r,width:n,height:o}){return new e(r,t,n,o)}static delta(e,t,r={x:"center",y:"center"}){const n=(e,t)=>{const n=r[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==n?o:"end"==n?o+i:o+i/2};return rT.delta({x:n(e,"x"),y:n(e,"y")},{x:n(t,"x"),y:n(t,"y")})}static intersectionRatio(t,r){return e.from(t).intersectionRatio(e.from(r))}};var oT,iT=class extends(_D=OD,jD=[MD],ND=[MD],_D){constructor(e){var t,r,n;super(rT.from(e),((e,t)=>rT.equals(e,t))),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(FD,5,this),t=this,n=0,(r=zD).has(t)?YD("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return rT.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=rT.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(tT(a=this,s=zD,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);vM((()=>{((e,t,r)=>{tT(e,t,"write to private field"),t.set(e,r)})(this,zD,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(rT.from(e)),this.velocity={x:0,y:0}}};function aT({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(KD(n,2)+KD(o,2))>r:"x"in r&&"y"in r?n>r.x&&o>r.y:"x"in r?n>r.x:"y"in r&&o>r.y}FD=(e=>{var t;return[,,,HD(null!=(t=null==e?void 0:e[GD("metadata")])?t:null)]})(_D),zD=new WeakMap,eT(FD,2,"delta",jD,iT),eT(FD,2,"direction",ND,iT),oT=FD,XD(iT,GD("metadata"),oT[3]);var sT,lT,uT,cT,dT=(e=>(e.Horizontal="x",e.Vertical="y",e))(dT||{}),pT=Object.values(dT),fT=Object.create,hT=Object.defineProperty,mT=Object.defineProperties,gT=Object.getOwnPropertyDescriptor,bT=Object.getOwnPropertyDescriptors,vT=Object.getOwnPropertySymbols,yT=Object.prototype.hasOwnProperty,xT=Object.prototype.propertyIsEnumerable,ST=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),wT=e=>{throw TypeError(e)},CT=(e,t,r)=>t in e?hT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ET=(e,t)=>{for(var r in t||(t={}))yT.call(t,r)&&CT(e,r,t[r]);if(vT)for(var r of vT(t))xT.call(t,r)&&CT(e,r,t[r]);return e},RT=(e,t)=>mT(e,bT(t)),PT=(e,t)=>hT(e,"name",{value:t,configurable:!0}),AT=(e,t)=>{var r={};for(var n in e)yT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&vT)for(var n of vT(e))t.indexOf(n)<0&&xT.call(e,n)&&(r[n]=e[n]);return r},IT=e=>{var t;return[,,,fT(null!=(t=null==e?void 0:e[ST("metadata")])?t:null)]},kT=["class","method","getter","setter","accessor","field","value","get","set"],MT=e=>void 0!==e&&"function"!=typeof e?wT("Function expected"):e,DT=(e,t,r,n,o)=>({kind:kT[e],name:t,metadata:n,addInitializer:e=>r._?wT("Already initialized"):o.push(MT(e||null))}),TT=(e,t)=>CT(t,ST("metadata"),e[3]),qT=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},OT=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=kT[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&gT(d<4?o:{get[r](){return jT(this,i)},set[r](e){return zT(this,i,e)}},r));d?f&&d<4&&PT(i,(d>2?"set ":d>1?"get ":"")+r):PT(o,r);for(var y=n.length-1;y>=0;y--)u=DT(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>NT(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?jT:FT)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>zT(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?MT(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?wT("Object expected"):(MT(a=s.get)&&(v.get=a),MT(a=s.set)&&(v.set=a),MT(a=s.init)&&g.unshift(a));return d||TT(e,o),v&&hT(o,r,v),f?4^d?i:v:o},LT=(e,t,r)=>t.has(e)||wT("Cannot "+r),NT=(e,t)=>Object(t)!==t?wT('Cannot use the "in" operator on this value'):e.has(t),jT=(e,t,r)=>(LT(e,t,"read from private field"),r?r.call(e):t.get(e)),_T=(e,t,r)=>t.has(e)?wT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),zT=(e,t,r,n)=>(LT(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),FT=(e,t,r)=>(LT(e,t,"access private method"),r);function HT(e,t){return{plugin:e,options:t}}function $T(e){return t=>HT(e,t)}function BT(e){return"function"==typeof e?{plugin:e,options:void 0}:e}sT=[kD];var WT=class{constructor(e,t){this.manager=e,this.options=t,_T(this,uT,qT(lT,8,this,!1)),qT(lT,11,this),_T(this,cT,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return xM((()=>this.disabled))}configure(e){this.options=e}registerEffect(e){const t=jM(e.bind(this));return jT(this,cT).add(t),t}destroy(){jT(this,cT).forEach((e=>e()))}static configure(e){return HT(this,e)}};lT=IT(null),uT=new WeakMap,cT=new WeakMap,OT(lT,4,"disabled",sT,WT,uT),TT(lT,WT);var VT,UT=class extends WT{},GT=class{constructor(e){this.manager=e,this.instances=new Map,_T(this,VT,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(BT).reduceRight(((e,t)=>e.some((({plugin:e})=>e===t.plugin))?e:[t,...e]),[]),r=t.map((({plugin:e})=>e));for(const e of jT(this,VT))if(!r.includes(e)){if(e.prototype instanceof UT)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);zT(this,VT,r)}get(e){return this.instances.get(e)}register(e,t){const r=this.instances.get(e);if(r)return r.options!==t&&(r.options=t),r;const n=new e(this.manager,t);return this.instances.set(e,n),n}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function YT(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}VT=new WeakMap;var KT,XT,JT=[],ZT=class extends WT{constructor(e){super(e),_T(this,KT),_T(this,XT),this.computeCollisions=this.computeCollisions.bind(this),zT(this,XT,AM(JT)),this.destroy=TD((()=>{const e=this.computeCollisions(),t=xM((()=>this.manager.dragOperation.position.current));if(e!==JT){const e=jT(this,KT);if(zT(this,KT,t),e&&t.x==e.x&&t.y==e.y)return}else zT(this,KT,void 0);jT(this,XT).value=e}),(()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()}))}forceUpdate(e=!0){xM((()=>{e?jT(this,XT).value=this.computeCollisions():zT(this,KT,void 0)}))}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return JT;const s=[],l=[];for(const i of null!=e?e:r.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const r=xM((()=>e({droppable:i,dragOperation:n})));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?JT:(s.sort(YT),s)}get collisions(){return jT(this,XT).value}};KT=new WeakMap,XT=new WeakMap;var QT=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));return n.add(t),r.set(e,n),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));n.delete(t),r.set(e,n)}dispatch(e,...t){const{registry:r}=this,n=r.get(e);if(n)for(const e of n)e(...t)}},eq=class extends QT{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function tq(e,t=!0){let r=!1;return RT(ET({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var rq,nq,oq,iq,aq,sq,lq,uq,cq,dq=class extends UT{constructor(e){super(e);let t=[];this.destroy=TD((()=>{const{dragOperation:r,collisionObserver:n}=e;r.status.initializing&&(t=[],n.enable())}),(()=>{const{collisionObserver:r,monitor:n}=e,{collisions:o}=r;if(r.isDisabled())return;const i=tq({collisions:o});if(n.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map((({id:e})=>e)).join("")===t.map((({id:e})=>e)).join(""))(o,t))return;t=o;const[a]=o;xM((()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(r.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then((()=>{r.enable()})))}))}))}},pq=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(pq||{}),fq=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(fq||{});lq=[kD],sq=[MD],aq=[MD],iq=[MD],oq=[MD],nq=[MD],rq=[MD];var hq=class{constructor(){qT(uq,5,this),_T(this,cq,qT(uq,8,this,"idle")),qT(uq,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};uq=IT(null),cq=new WeakMap,OT(uq,4,"value",lq,hq,cq),OT(uq,2,"current",sq,hq),OT(uq,2,"idle",aq,hq),OT(uq,2,"initializing",iq,hq),OT(uq,2,"initialized",oq,hq),OT(uq,2,"dragging",nq,hq),OT(uq,2,"dropped",rq,hq),TT(uq,hq);var mq,gq,bq,vq,yq,xq,Sq,wq,Cq,Eq=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return xM((()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=tq({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then((()=>n.defaultPrevented))}))}start(e){return xM((()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const r=new AbortController,{event:n,coordinates:o}=e;vM((()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)}));const i=tq({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then((()=>{if(r.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&(t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:n,operation:t.snapshot(),cancelable:!1}))})),r)}))}move(e){return xM((()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=tq({nativeEvent:e.event,operation:n.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(r=e.propagate)||r)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask((()=>{var t,r,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:n.position.current.x+(null!=(r=null==(t=e.by)?void 0:t.x)?r:0),y:n.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};n.position.current=l}))}))}stop(e={}){return xM((()=>{var t,r;const{dragOperation:n}=this.manager,{controller:o}=n;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then((()=>{n.status.set("dropped");const e=xM((()=>{var e;return"dropping"===(null==(e=n.source)?void 0:e.status)})),t=()=>{n.controller===o&&(n.controller=void 0),n.reset()};if(e){const{source:e}=n,r=jM((()=>{"idle"===(null==e?void 0:e.status)&&(r(),t())}))}else this.manager.renderer.rendering.then(t)}))};n.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:n.snapshot(),canceled:null!=(r=e.canceled)&&r,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise(((t,r)=>{e.resume=t,e.abort=r})),e}}),i?i.then(a).catch((()=>n.reset())):a()}))}};vq=[kD],bq=[kD],gq=[kD],mq=[kD];var Rq=class{constructor(e,t){_T(this,xq,qT(yq,8,this)),qT(yq,11,this),_T(this,Sq,qT(yq,12,this)),qT(yq,15,this),_T(this,wq,qT(yq,16,this)),qT(yq,19,this),_T(this,Cq,qT(yq,20,this)),qT(yq,23,this);const{effects:r,id:n,data:o={},disabled:i=!1,register:a=!0}=e;let s=n;this.manager=t,this.id=n,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==r?void 0:r())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};yq=IT(null),xq=new WeakMap,Sq=new WeakMap,wq=new WeakMap,Cq=new WeakMap,OT(yq,4,"manager",vq,Rq,xq),OT(yq,4,"id",bq,Rq,Sq),OT(yq,4,"data",gq,Rq,wq),OT(yq,4,"disabled",mq,Rq,Cq),TT(yq,Rq);var Pq,Aq,Iq,kq,Mq,Dq,Tq,qq,Oq,Lq,Nq,jq,_q,zq,Fq,Hq,$q,Bq,Wq,Vq,Uq,Gq,Yq,Kq,Xq=class{constructor(){this.map=AM(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const r=this.map.peek(),n=r.get(e),o=()=>this.unregister(e,t);if(n===t)return o;if(n){const e=this.cleanupFunctions.get(n);null==e||e(),this.cleanupFunctions.delete(n)}const i=new Map(r);i.set(e,t),this.map.value=i;const a=TD(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const r=this.map.peek();if(r.get(e)!==t)return;const n=this.cleanupFunctions.get(t);null==n||n(),this.cleanupFunctions.delete(t);const o=new Map(r);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},Jq=class extends(Tq=Rq,Dq=[kD],Mq=[kD],kq=[kD],Iq=[MD],Aq=[MD],Pq=[MD],Tq){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=AT(r,["modifiers","type","sensors"]);super(a,t),qT(qq,5,this),_T(this,Oq,qT(qq,8,this)),qT(qq,11,this),_T(this,Lq,qT(qq,12,this)),qT(qq,15,this),_T(this,Nq,qT(qq,16,this,this.isDragSource?"dragging":"idle")),qT(qq,19,this),this.type=o,this.sensors=i,this.modifiers=n,this.alignment=a.alignment}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};qq=IT(Tq),Oq=new WeakMap,Lq=new WeakMap,Nq=new WeakMap,OT(qq,4,"type",Dq,Jq,Oq),OT(qq,4,"modifiers",Mq,Jq,Lq),OT(qq,4,"status",kq,Jq,Nq),OT(qq,2,"isDropping",Iq,Jq),OT(qq,2,"isDragging",Aq,Jq),OT(qq,2,"isDragSource",Pq,Jq),TT(qq,Jq);var Zq=class extends(Bq=Rq,$q=[kD],Hq=[kD],Fq=[kD],zq=[kD],_q=[kD],jq=[MD],Bq){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(AT(r,["accept","collisionDetector","collisionPriority","type"]),t),qT(Wq,5,this),_T(this,Vq,qT(Wq,8,this)),qT(Wq,11,this),_T(this,Uq,qT(Wq,12,this)),qT(Wq,15,this),_T(this,Gq,qT(Wq,16,this)),qT(Wq,19,this),_T(this,Yq,qT(Wq,20,this)),qT(Wq,23,this),_T(this,Kq,qT(Wq,24,this)),qT(Wq,27,this),this.accept=n,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};Wq=IT(Bq),Vq=new WeakMap,Uq=new WeakMap,Gq=new WeakMap,Yq=new WeakMap,Kq=new WeakMap,OT(Wq,4,"accept",$q,Zq,Vq),OT(Wq,4,"type",Hq,Zq,Uq),OT(Wq,4,"collisionDetector",Fq,Zq,Gq),OT(Wq,4,"collisionPriority",zq,Zq,Yq),OT(Wq,4,"shape",_q,Zq,Kq),OT(Wq,2,"isDropTarget",jq,Zq),TT(Wq,Zq);var Qq,eO=class extends WT{constructor(e,t){super(e,t),this.manager=e,this.options=t}},tO=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},rO=class{constructor(e){this.options=e,_T(this,Qq)}set controller(e){zT(this,Qq,e),e.signal.addEventListener("abort",(()=>this.abort()))}activate(e){var t;null==(t=jT(this,Qq))||t.activate(e)}};Qq=new WeakMap;var nO,oO,iO,aO,sO,lO,uO,cO,dO,pO,fO,hO,mO,gO,bO,vO,yO,xO,SO,wO=class extends WT{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},CO=class{constructor(e){this.draggables=new Xq,this.droppables=new Xq,this.plugins=new GT(e),this.sensors=new GT(e),this.modifiers=new GT(e)}register(e,t){if(e instanceof Jq)return this.draggables.register(e.id,e);if(e instanceof Zq)return this.droppables.register(e.id,e);if(e.prototype instanceof wO)return this.modifiers.register(e,t);if(e.prototype instanceof eO)return this.sensors.register(e,t);if(e.prototype instanceof WT)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof Rq)return e instanceof Jq?this.draggables.unregister(e.id,e):e instanceof Zq?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof wO)return this.modifiers.unregister(e);if(e.prototype instanceof eO)return this.sensors.unregister(e);if(e.prototype instanceof WT)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};dO=[MD],cO=[kD],uO=[kD],lO=[kD],sO=[kD],aO=[kD],iO=[MD],oO=[MD],nO=[MD];var EO=class{constructor(e){qT(mO,5,this),_T(this,pO),_T(this,fO),_T(this,hO,new OD(void 0,((e,t)=>e&&t?e.equals(t):e===t))),this.status=new hq,_T(this,gO,qT(mO,8,this,!1)),qT(mO,11,this),_T(this,bO,qT(mO,12,this,null)),qT(mO,15,this),_T(this,vO,qT(mO,16,this,null)),qT(mO,19,this),_T(this,yO,qT(mO,20,this,null)),qT(mO,23,this),_T(this,xO,qT(mO,24,this,[])),qT(mO,27,this),this.position=new iT({x:0,y:0}),_T(this,SO,{x:0,y:0}),zT(this,pO,e)}get shape(){const{current:e,initial:t,previous:r}=jT(this,hO);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?jT(this,hO).current=e:jT(this,hO).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=jT(this,pO).registry.draggables.get(t);return r&&zT(this,fO,r),null!=(e=null!=r?r:jT(this,fO))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=jT(this,pO).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let r={x:e,y:t};for(const e of this.modifiers)r=e.apply(RT(ET({},this.snapshot()),{transform:r}));return zT(this,SO,r),r}snapshot(){return xM((()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:jT(this,SO),shape:this.shape?LD(this.shape):null,position:LD(this.position),status:LD(this.status),canceled:this.canceled})))}reset(){vM((()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,jT(this,hO).reset(),this.position.reset({x:0,y:0}),zT(this,SO,{x:0,y:0}),this.modifiers=[]}))}};mO=IT(null),pO=new WeakMap,fO=new WeakMap,hO=new WeakMap,gO=new WeakMap,bO=new WeakMap,vO=new WeakMap,yO=new WeakMap,xO=new WeakMap,SO=new WeakMap,OT(mO,2,"shape",dO,EO),OT(mO,4,"canceled",cO,EO,gO),OT(mO,4,"activatorEvent",uO,EO,bO),OT(mO,4,"sourceIdentifier",lO,EO,vO),OT(mO,4,"targetIdentifier",sO,EO,yO),OT(mO,4,"modifiers",aO,EO,xO),OT(mO,2,"source",iO,EO),OT(mO,2,"target",oO,EO),OT(mO,2,"transform",nO,EO),TT(mO,EO);var RO={get rendering(){return Promise.resolve()}},PO=class{constructor(e){this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach((e=>e.destroy())),this.registry.destroy(),this.collisionObserver.destroy()};const{plugins:t=[],sensors:r=[],modifiers:n=[],renderer:o=RO}=null!=e?e:{},i=new eq(this),a=new CO(this);this.registry=a,this.monitor=i,this.renderer=o,this.actions=new Eq(this),this.dragOperation=new EO(this),this.collisionObserver=new ZT(this),this.plugins=[dq,...t],this.modifiers=n,this.sensors=r;const{destroy:s}=this,l=TD((()=>{var e,t,r;const n=xM((()=>this.dragOperation.modifiers)),o=this.modifiers;n!==o&&n.forEach((e=>e.destroy())),this.dragOperation.modifiers=null!=(r=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map((e=>{const{plugin:t,options:r}=BT(e);return new t(this,r)})))?r:o}));this.destroy=()=>{l(),s()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},AO=e=>{throw TypeError(e)},IO=(e,t,r)=>t.has(e)||AO("Cannot "+r),kO=(e,t,r)=>(IO(e,t,"read from private field"),t.get(e)),MO=(e,t,r)=>t.has(e)?AO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),DO=(e,t,r,n)=>(IO(e,t,"write to private field"),t.set(e,r),r),TO=(e,t,r)=>(IO(e,t,"access private method"),r);function qO(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function OO(e,t){const r=e.getAnimations();if(r.length>0)for(const e of r){if("running"!==e.playState)continue;const{effect:r}=e,n=(qO(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function LO(e){const{width:t,height:r,top:n,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:r,top:n,left:o,bottom:i,right:a}}function NO(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function jO(e){return"nodeType"in e}function _O(e){var t,r,n;return e?NO(e)?e:jO(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(n=null==(r=e.ownerDocument)?void 0:r.defaultView)?n:window:window:window}function zO(e){const{Document:t}=_O(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function FO(e){return!(!e||NO(e))&&(e instanceof _O(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function HO(e){return e instanceof _O(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function $O(e){return e?NO(e)?e.document:jO(e)?zO(e)?e:FO(e)||HO(e)?e.ownerDocument:document:document:document}function BO(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(e);return"visible"===r&&"visible"===n&&"visible"===o}function WO(e,t=e.getBoundingClientRect(),r=0){var n;let o=t;const{ownerDocument:i}=e,a=null!=(n=i.defaultView)?n:window;let s=e.parentElement;for(;s&&s!==i.documentElement;){if(!BO(s)){const e=s.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),i=r*(e.bottom-e.top),a=r*(e.right-e.left);o={top:Math.max(o.top,e.top-t),right:Math.min(o.right,e.right+n),bottom:Math.min(o.bottom,e.bottom+i),left:Math.max(o.left,e.left-a),width:0,height:0},o.width=o.right-o.left,o.height=o.bottom-o.top}s=s.parentElement}const l=a.innerWidth,u=a.innerHeight,c=r*u,d=r*l;return o={top:Math.max(o.top,0-c),right:Math.min(o.right,l+d),bottom:Math.min(o.bottom,u+c),left:Math.max(o.left,0-d),width:0,height:0},o.width=o.right-o.left,o.height=o.bottom-o.top,o.width<0&&(o.width=0),o.height<0&&(o.height=0),o}function VO(e){return{x:e.clientX,y:e.clientY}}var UO="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function GO(e=document,t=new Set){if(t.has(e))return[];t.add(e);const r=[e];for(const n of Array.from(e.querySelectorAll("iframe, frame")))try{const e=n.contentDocument;e&&!t.has(e)&&r.push(...GO(e,t))}catch(e){}try{const n=e.defaultView;if(n&&n!==window.top){const o=n.parent;o&&o.document&&o.document!==e&&r.push(...GO(o.document,t))}}catch(e){}return r}function YO(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function KO(e){return"value"in e}function XO(e){return"CANVAS"===e.tagName}function JO(e,{x:t,y:r}){const n=e.elementFromPoint(t,r);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(n)){const{contentDocument:e}=n;if(e){const{left:o,top:i}=n.getBoundingClientRect();return JO(e,{x:t-o,y:r-i})}}return n}var ZO=new WeakMap;var QO=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:r,listener:n,options:o}]=e;t.removeEventListener(r,n,o)}this.entries.clear()}}bind(e,t){const r=Array.isArray(e)?e:[e],n=Array.isArray(t)?t:[t],o=[];for(const e of r)for(const t of n){const{type:r,listener:n,options:i}=t,a=[e,t];e.addEventListener(r,n,i),this.entries.add(a),o.push(a)}return function(){for(const[e,{type:t,listener:r,options:n}]of o)e.removeEventListener(t,r,n)}}};function eL(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function tL(e,t){const r=()=>performance.now();let n,o;return function(...i){const a=this;o?(null==n||n(),n=function(e,t){const r=setTimeout(e,t);return()=>clearTimeout(r)}((()=>{e.apply(a,i),o=r()}),t-(r()-o))):(e.apply(a,i),o=r())}}var rL,nL=UO?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},oL=class extends nL{constructor(e){super((t=>{kO(this,rL)?e(t,this):DO(this,rL,!0)})),MO(this,rL,!1)}};rL=new WeakMap;var iL,aL,sL,lL,uL,cL,dL,pL,fL,hL,mL,gL=Array.from({length:100},((e,t)=>t/100)),bL=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,MO(this,fL),this.disconnect=()=>{var e,t,r;DO(this,dL,!0),null==(e=kO(this,sL))||e.disconnect(),null==(t=kO(this,lL))||t.disconnect(),kO(this,uL).disconnect(),null==(r=kO(this,cL))||r.remove()},MO(this,iL,!0),MO(this,aL),MO(this,sL),MO(this,lL),MO(this,uL),MO(this,cL),MO(this,dL,!1),MO(this,pL,tL((()=>{var e,t,r;const{element:n}=this;if(null==(e=kO(this,lL))||e.disconnect(),kO(this,dL)||!kO(this,iL)||!n.isConnected)return;const o=null!=(t=n.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(r=o.defaultView)?r:window,s=n.getBoundingClientRect(),l=WO(n,s),{top:u,left:c,bottom:d,right:p}=l,f=-Math.floor(u),h=-Math.floor(c),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,DO(this,lL,new IntersectionObserver((e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:nT.intersectionRatio(r,WO(n)))&&kO(this,pL).call(this)}),{threshold:gL,rootMargin:m,root:o})),kO(this,lL).observe(n),TO(this,fL,hL).call(this)}),75)),this.boundingClientRect=e.getBoundingClientRect(),DO(this,iL,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=WO(e,t);return r>0&&n>0}(e,this.boundingClientRect));let n=!0;this.callback=e=>{n&&(n=!1,r.skipInitial)||t(e)};const o=e.ownerDocument;(null==r?void 0:r.debug)&&(DO(this,cL,document.createElement("div")),kO(this,cL).style.background="rgba(0,0,0,0.15)",kO(this,cL).style.position="fixed",kO(this,cL).style.pointerEvents="none",o.body.appendChild(kO(this,cL))),DO(this,uL,new IntersectionObserver((t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=kO(this,iL);DO(this,iL,a),(s||l)&&(u&&!a?(null==(r=kO(this,lL))||r.disconnect(),this.callback(null),null==(n=kO(this,sL))||n.disconnect(),DO(this,sL,void 0),kO(this,cL)&&(kO(this,cL).style.visibility="hidden")):kO(this,pL).call(this),a&&!kO(this,sL)&&(DO(this,sL,new oL(kO(this,pL))),kO(this,sL).observe(e)))}),{threshold:gL,root:o})),kO(this,iL)&&!r.skipInitial&&this.callback(this.boundingClientRect),kO(this,uL).observe(e)}};iL=new WeakMap,aL=new WeakMap,sL=new WeakMap,lL=new WeakMap,uL=new WeakMap,cL=new WeakMap,dL=new WeakMap,pL=new WeakMap,fL=new WeakSet,hL=function(){kO(this,dL)||(TO(this,fL,mL).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,kO(this,aL))||(this.callback(this.boundingClientRect),DO(this,aL,this.boundingClientRect)))},mL=function(){if(kO(this,cL)){const{top:e,left:t,width:r,height:n}=WO(this.element);kO(this,cL).style.overflow="hidden",kO(this,cL).style.visibility="visible",kO(this,cL).style.top=`${Math.floor(e)}px`,kO(this,cL).style.left=`${Math.floor(t)}px`,kO(this,cL).style.width=`${Math.floor(r)}px`,kO(this,cL).style.height=`${Math.floor(n)}px`}};var vL,yL,xL,SL,wL=new WeakMap,CL=new WeakMap;function EL(e,t){let r=wL.get(e);if(!r){const t=new bL(e,(t=>{const r=wL.get(e);r&&r.callbacks.forEach((e=>e(t)))}),{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),wL.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(wL.delete(e),r.disconnect())}}var RL=class{constructor(e,t,r){this.callback=t,MO(this,vL),MO(this,yL,!1),MO(this,xL),MO(this,SL,tL((e=>{if(!kO(this,yL)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of kO(this,xL))if(e.target.contains(t)){this.callback(kO(this,vL).boundingClientRect);break}}),75));const n=function(e){const t=new Set;let r=eL(e);for(;r;)t.add(r),r=eL(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=EL(n,t);r.add(e)}return()=>r.forEach((e=>e()))}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!CL.has(n)){const e=new AbortController,t=new Set;document.addEventListener("scroll",(e=>t.forEach((t=>t(e)))),{capture:!0,passive:!0,signal:e.signal}),CL.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=CL.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),CL.delete(n))}):()=>{}}(e,kO(this,SL));DO(this,xL,n),DO(this,vL,new bL(e,t,r)),this.disconnect=()=>{kO(this,yL)||(DO(this,yL,!0),o(),i(),kO(this,vL).disconnect())}}};function PL(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function AL(e){try{PL(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function IL(e){return!(!UO||!e)&&e===$O(e).scrollingElement}function kL(e){const t=_O(e),r=IL(e)?function(e){const{documentElement:t}=$O(e),r=t.clientWidth,n=t.clientHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}(e):LO(e),n=IL(e)?{height:t.innerHeight,width:t.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-n.width,y:e.scrollHeight-n.height}};return{rect:r,position:o,isTop:o.current.y<=0,isLeft:o.current.x<=0,isBottom:o.current.y>=o.max.y,isRight:o.current.x>=o.max.x}}function ML(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=kL(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!r&&a.current.y+l>0,c=!n&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}vL=new WeakMap,yL=new WeakMap,xL=new WeakMap,SL=new WeakMap;var DL=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise((e=>this.resolvers.add(e)))}},TL=new DL((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),qL=new DL((e=>setTimeout(e,50))),OL=new Map,LL=OL.clear.bind(OL);function NL(e,t=!1){if(!t)return jL(e);let r=OL.get(e);return r||(r=jL(e),OL.set(e,r),qL.schedule(LL),r)}function jL(e){return _O(e).getComputedStyle(e)}var _L={excludeElement:!0};function zL(e,t=_L){const{limit:r,excludeElement:n}=t,o=new Set;return e?function t(i){if(null!=r&&o.size>=r)return o;if(!i)return o;if(zO(i)&&null!=i.scrollingElement&&!o.has(i.scrollingElement))return o.add(i.scrollingElement),o;if(!FO(i))return HO(i)?t(i.parentElement):o;if(o.has(i))return o;const a=NL(i,!0);if(n&&i===e||function(e,t=NL(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const n=t[e];return"string"==typeof n&&r.test(n)}))}(i,a)&&o.add(i),function(e,t=NL(e,!0)){return"fixed"===t.position||"sticky"===t.position}(i,a)){const{scrollingElement:e}=i.ownerDocument;return e&&o.add(e),o}return t(i.parentNode)}(e):o}function FL(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=eL(e);for(;n;){if(n===t)return r;const e=LO(n),{x:o,y:i}=HL(n,e);r.x=r.x+e.left,r.y=r.y+e.top,r.scaleX=r.scaleX*o,r.scaleY=r.scaleY*i,n=eL(n)}return r}function HL(e,t=LO(e)){const r=Math.round(t.width),n=Math.round(t.height);if(FO(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=NL(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function $L(e){if("none"===e)return null;const[t,r,n="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(r),z:parseInt(n,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function BL(e){var t,r,n,o,i,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),r=parseFloat(t[0]),n=parseFloat(t[1]);return isNaN(r)&&isNaN(n)?null:{x:isNaN(r)?n:r,y:isNaN(n)?r:n}}(c),h=$L(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,b=null!=(r=null==f?void 0:f.y)?r:1,v=null!=(n=null==h?void 0:h.x)?n:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:v+x,y:y+S,z:null!=(u=null==h?void 0:h.z)?u:0,scaleX:g*w,scaleY:b*C}}var WL=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(WL||{}),VL={x:.2,y:.2},UL={x:10,y:10};function GL(e,t,r,n=25,o=VL,i=UL){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=kL(e),f=FL(e),h=BL(NL(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new nT(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),v={x:0,y:0},y={x:0,y:0},x=b.height*o.y,S=b.width*o.x;return(!u||g&&!c)&&s<=b.top+x&&1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x?(v.y=g?1:-1,y.y=n*Math.abs((b.top+x-s)/x)):(!c||g&&!u)&&s>=b.bottom-x&&-1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x&&(v.y=g?-1:1,y.y=n*Math.abs((b.bottom-x-s)/x)),(!p||m&&!d)&&a>=b.right-S&&-1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y?(v.x=m?-1:1,y.x=n*Math.abs((b.right-S-a)/S)):(!d||m&&!p)&&a<=b.left+S&&1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y&&(v.x=m?1:-1,y.x=n*Math.abs((b.left+S-a)/S)),{direction:v,speed:y}}function YL(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!FO(e))return e.scrollIntoView();var n=function(e){const[t]=zL(e,{limit:1});return null!=t?t:null}(e);if(!FO(n))return;const o=NL(n,!0),i=parseInt(o.getPropertyValue("border-top-width")),a=parseInt(o.getPropertyValue("border-left-width")),s=e.offsetTop-n.offsetTop<n.scrollTop,l=e.offsetTop-n.offsetTop+e.clientHeight-i>n.scrollTop+n.clientHeight,u=e.offsetLeft-n.offsetLeft<n.scrollLeft,c=e.offsetLeft-n.offsetLeft+e.clientWidth-a>n.scrollLeft+n.clientWidth,d=s&&!l;(s||l)&&t&&(n.scrollTop=e.offsetTop-n.offsetTop-n.clientHeight/2-i+e.clientHeight/2),(u||c)&&t&&(n.scrollLeft=e.offsetLeft-n.offsetLeft-n.clientWidth/2-a+e.clientWidth/2),(s||l||u||c)&&!t&&e.scrollIntoView(d)}function KL({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function XL(e,t=NL(e).translate,r=!0){if(r){const t=OO(e,(e=>"translate"in e));if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=$L(e);if(t)return t}}}if(t){const e=$L(t);if(e)return e}return{x:0,y:0,z:0}}var JL=new DL((e=>setTimeout(e,0))),ZL=new Map,QL=ZL.clear.bind(ZL);function eN(e,t){const r=function(e){const t=e.ownerDocument;let r=ZL.get(t);if(r)return r;r=t.getAnimations(),ZL.set(t,r),JL.schedule(QL);const n=r.filter((t=>qO(t.effect)&&t.effect.target===e));return ZL.set(e,n),r}(e).filter((e=>{var r,n;if(qO(e.effect)){const{target:o}=e.effect;if(null==(n=o&&(null==(r=t.isValidTarget)?void 0:r.call(t,o)))||n)return e.effect.getKeyframes().some((e=>{for(const r of t.properties)if(e[r])return!0}))}})).map((e=>{const{effect:t,currentTime:r}=e,n=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof n&&"number"==typeof r&&r<n?(e.currentTime=n,()=>{e.currentTime=r}):void 0}));if(r.length>0)return()=>r.forEach((e=>null==e?void 0:e()))}var tN=class extends nT{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=FL(e),ignoreTransforms:s,getBoundingClientRect:l=LO}=t,u=eN(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||YO())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=NL(e),b=BL(g),v={x:null!=(r=null==b?void 0:b.scaleX)?r:1,y:null!=(n=null==b?void 0:b.scaleY)?n:1},y=function(e,t){var r;const n=e.getAnimations();let o=null;if(!n.length)return null;for(const e of n){if("running"!==e.playState)continue;const n=qO(e.effect)?e.effect.getKeyframes():[],i=n[n.length-1];if(!i)continue;const{transform:a,translate:s,scale:l}=i;if(a||s||l){const e=BL({transform:"string"==typeof a&&a?a:t.transform,translate:"string"==typeof s&&s?s:t.translate,scale:"string"==typeof l&&l?l:t.scale});e&&(o=o?{x:o.x+e.x,y:o.y+e.y,z:null!=(r=o.z)?r:e.z,scaleX:o.scaleX*e.scaleX,scaleY:o.scaleY*e.scaleY}:e)}}return o}(e,g);null==u||u(),b&&(d=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-n)*parseFloat(r),l=e.top-a-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width/n:e.width,c=o?e.height/o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(c,b,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-n)*parseFloat(r),l=e.top+a+(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width*n:e.width,c=o?e.height*o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,v.x=y.scaleX,v.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=v,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function rN(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var nN=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(rN(r))for(const[n,o]of Object.entries(e)){const e=`${t}${n}`;this.initial.has(e)||this.initial.set(e,r.style.getPropertyValue(e)),r.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:r}=this;if(rN(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(rN(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function oN(e){return!!e&&(e instanceof _O(e).Element||jO(e)&&e.nodeType===Node.ELEMENT_NODE)}function iN(e){if(!e)return!1;const{KeyboardEvent:t}=_O(e.target);return e instanceof t}var aN={};function sN(e){const t=null==aN[e]?0:aN[e]+1;return aN[e]=t,`${e}-${t}`}var lN=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/rT.distance(t.shape.center,r),type:fq.PointerIntersection,priority:pq.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=rT.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:fq.ShapeIntersection,priority:pq.Normal}}return null})(e)},uN=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?nT.from(n.current.boundingRectangle).corners:void 0,a=nT.from(r.shape.boundingRectangle).corners.reduce(((e,t,r)=>{var n;return e+rT.distance(rT.from(t),null!=(n=null==i?void 0:i[r])?n:o.current)}),0),s=a/4;return{id:r.id,value:1/s,type:fq.Collision,priority:pq.Normal}},cN=Object.create,dN=Object.defineProperty,pN=Object.defineProperties,fN=Object.getOwnPropertyDescriptor,hN=Object.getOwnPropertyDescriptors,mN=Object.getOwnPropertySymbols,gN=Object.prototype.hasOwnProperty,bN=Object.prototype.propertyIsEnumerable,vN=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),yN=e=>{throw TypeError(e)},xN=(e,t,r)=>t in e?dN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,SN=(e,t)=>{for(var r in t||(t={}))gN.call(t,r)&&xN(e,r,t[r]);if(mN)for(var r of mN(t))bN.call(t,r)&&xN(e,r,t[r]);return e},wN=(e,t)=>pN(e,hN(t)),CN=(e,t)=>dN(e,"name",{value:t,configurable:!0}),EN=(e,t)=>{var r={};for(var n in e)gN.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&mN)for(var n of mN(e))t.indexOf(n)<0&&bN.call(e,n)&&(r[n]=e[n]);return r},RN=e=>{var t;return[,,,cN(null!=(t=null==e?void 0:e[vN("metadata")])?t:null)]},PN=["class","method","getter","setter","accessor","field","value","get","set"],AN=e=>void 0!==e&&"function"!=typeof e?yN("Function expected"):e,IN=(e,t,r,n,o)=>({kind:PN[e],name:t,metadata:n,addInitializer:e=>r._?yN("Already initialized"):o.push(AN(e||null))}),kN=(e,t)=>xN(t,vN("metadata"),e[3]),MN=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},DN=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=PN[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&fN(d<4?o:{get[r](){return ON(this,i)},set[r](e){return NN(this,i,e)}},r));d?f&&d<4&&CN(i,(d>2?"set ":d>1?"get ":"")+r):CN(o,r);for(var y=n.length-1;y>=0;y--)u=IN(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>qN(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?ON:jN)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>NN(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?AN(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?yN("Object expected"):(AN(a=s.get)&&(v.get=a),AN(a=s.set)&&(v.set=a),AN(a=s.init)&&g.unshift(a));return d||kN(e,o),v&&dN(o,r,v),f?4^d?i:v:o},TN=(e,t,r)=>t.has(e)||yN("Cannot "+r),qN=(e,t)=>Object(t)!==t?yN('Cannot use the "in" operator on this value'):e.has(t),ON=(e,t,r)=>(TN(e,t,"read from private field"),r?r.call(e):t.get(e)),LN=(e,t,r)=>t.has(e)?yN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),NN=(e,t,r,n)=>(TN(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),jN=(e,t,r)=>(TN(e,t,"access private method"),r),_N="button",zN="draggable",FN="dnd-kit-description",HN="dnd-kit-announcement",$N={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},BN={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:r}){if(e)return r?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function WN(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var VN=["dragover","dragmove"],UN=class extends WT{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=FN,announcement:o=HN}={},announcements:i=BN,screenReaderInstructions:a=$N,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:sN(n),u=r?`${o}-${r}`:sN(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>TL.schedule(h),g=function(e,t){let r;const n=()=>{clearTimeout(r),r=setTimeout(e,t)};return n.cancel=()=>clearTimeout(r),n}(m,s),b=Object.entries(i).map((([e,t])=>this.manager.monitor.addEventListener(e,((r,n)=>{const o=p;if(!o)return;const i=null==t?void 0:t(r,n);i&&o.nodeValue!==i&&(f=i,VN.includes(e)?g():(m(),g.cancel()))})))),v=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const r=document.createElement("div");return r.id=e,r.style.setProperty("display","none"),r.textContent=t,r}(l,a.draggable),e.push(c)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(u),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect((()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const r=null!=(e=t.handle)?e:t.element;if(r){c&&d||y.add(v),WN(r)&&!YO()||r.hasAttribute("tabindex")||y.add((()=>r.setAttribute("tabindex","0"))),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add((()=>r.setAttribute("role",_N))),r.hasAttribute("aria-roledescription")||y.add((()=>r.setAttribute("aria-roledescription",zN))),r.hasAttribute("aria-describedby")||y.add((()=>r.setAttribute("aria-describedby",l)));for(const e of["aria-pressed","aria-grabbed"]){const n=String(t.isDragging);r.getAttribute(e)!==n&&y.add((()=>r.setAttribute(e,n)))}const e=String(t.disabled);r.getAttribute("aria-disabled")!==e&&y.add((()=>r.setAttribute("aria-disabled",e)))}}y.size>0&&TL.schedule(x)})),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),b.forEach((e=>e()))}}};var GN="data-dnd-",YN=`${GN}dropping`,KN="--dnd-",XN=`${GN}dragging`,JN=`${GN}placeholder`,ZN=[XN,JN,"popover","aria-pressed","aria-grabbing"],QN=["view-transition-name"],ej=`\n :root [${XN}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${KN}top, 0px) !important;\n left: var(${KN}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${KN}width, auto);\n max-width: var(${KN}width, auto);\n height: var(${KN}height, auto);\n max-height: var(${KN}height, auto);\n transition: var(${KN}transition) !important;\n }\n\n :root [${JN}] {\n transition: none;\n }\n\n :root [${JN}='hidden'] {\n visibility: hidden;\n }\n\n [${XN}] * {\n pointer-events: none !important;\n }\n\n [${XN}]:not([${YN}]) {\n translate: var(${KN}translate) !important;\n }\n\n [${XN}][style*='${KN}scale'] {\n scale: var(${KN}scale) !important;\n transform-origin: var(${KN}transform-origin) !important;\n }\n\n @layer {\n :where([${XN}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${XN}]::backdrop, [${GN}overlay]:not([${XN}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function tj(e,t="hidden"){return xM((()=>{const{element:r,manager:n}=e;if(!r||!n)return;const o=function(e,t){const r=new Map;for(const n of t)if(n.element&&(e===n.element||e.contains(n.element))){const e=`${GN}${sN("dom-id")}`;n.element.setAttribute(e,""),r.set(n,e)}return r}(r,n.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",r=e.cloneNode(!0),n=Array.from(e.querySelectorAll(t));return Array.from(r.querySelectorAll(t)).forEach(((e,t)=>{const r=n[t];if(KO(e)&&KO(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),XO(e)&&XO(r)&&r.width>0&&r.height>0){const t=e.getContext("2d");null==t||t.drawImage(r,0,0)}})),r}(r),{remove:s}=a;return function(e,t,r){for(const[n,o]of e){if(!n.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(n.element.removeAttribute(o),!i)continue;const a=n.element;n.proxy=i,i.removeAttribute(o),ZO.set(a,i),r.push((()=>{ZO.delete(a),n.proxy=void 0}))}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(JN,t)}(a,t),a.remove=()=>{i.forEach((e=>e())),s.call(a)},a}))}function rj(e,t){return e===t||eL(e)===eL(t)}function nj(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&oN(t)&&t.hasAttribute("popover")&&requestAnimationFrame((()=>AL(t)))}function oj(e){return"TR"===e.tagName}var ij,aj,sj,lj,uj,cj,dj,pj=new Map,fj=class extends(aj=WT,ij=[kD],aj){constructor(e,t){super(e,t),LN(this,uj),LN(this,lj,MN(sj,8,this)),MN(sj,11,this),this.state={initial:{},current:{}},this.registerEffect(jN(this,uj,dj)),this.registerEffect(jN(this,uj,cj))}destroy(){super.destroy();for(const[e,t]of pj.entries())t.instances.has(this)&&(t.instances.delete(this),0===t.instances.size&&(t.cleanup(),pj.delete(e)))}};sj=RN(aj),lj=new WeakMap,uj=new WeakSet,cj=function(){var e,t,r;const{state:n,manager:o,options:i}=this,{dragOperation:a}=o,{position:s,source:l,status:u}=a;if(u.idle)return n.current={},void(n.initial={});if(!l)return;const{element:c,feedback:d}=l;if(!c||"none"===d||!u.initialized||u.initializing)return;const{initial:p}=n,f=null!=(e=this.overlay)?e:c,h=FL(f),m=FL(c),g=!rj(c,f),b=new tN(c,{frameTransform:g?m:null,ignoreTransforms:!g}),v=m.scaleX/h.scaleX,y=m.scaleY/h.scaleY;let x,S,{width:w,height:C,top:E,left:R}=b;g&&(w/=v,C/=y);const P=new nN(f),{transition:A,translate:I,boxSizing:k,paddingBlockStart:M,paddingBlockEnd:D,paddingInlineStart:T,paddingInlineEnd:q,borderInlineStartWidth:O,borderInlineEndWidth:L,borderBlockStartWidth:N,borderBlockEndWidth:j}=NL(c),_="clone"===d,z="content-box"===k,F=z?parseInt(T)+parseInt(q)+parseInt(O)+parseInt(L):0,H=z?parseInt(M)+parseInt(D)+parseInt(N)+parseInt(j):0,$="move"===d||this.overlay?null:tj(l,_?"clone":"hidden"),B=xM((()=>iN(o.dragOperation.activatorEvent)));if("none"!==I){const e=$L(I);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=xM((()=>s.current));p.transformOrigin={x:(e.x-R*h.scaleX-h.x)/(w*h.scaleX),y:(e.y-E*h.scaleY-h.y)/(C*h.scaleY)}}const{transformOrigin:W}=p,V=E*h.scaleY+h.y,U=R*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:U,y:V},1!==v||1!==y)){const{scaleX:e,scaleY:t}=m,{x:r,y:n}=W;p.coordinates.x+=(w*e-w)*r,p.coordinates.y+=(C*t-C)*n}p.dimensions||(p.dimensions={width:w,height:C}),p.frameTransform||(p.frameTransform=h);const G=p.coordinates.x-U,Y=p.coordinates.y-V,K=(p.dimensions.width*p.frameTransform.scaleX-w*h.scaleX)*W.x,X=(p.dimensions.height*p.frameTransform.scaleY-C*h.scaleY)*W.y,J=G/h.scaleX+K,Z=Y/h.scaleY+X,Q={left:R+J,top:E+Z};f.setAttribute(XN,"true");const ee=xM((()=>a.transform)),te=null!=(t=p.translate)?t:{x:0,y:0},re=`${ee.x*h.scaleX+te.x}px ${ee.y*h.scaleY+te.y}px 0`,ne=A?`${A}, translate 0ms linear`:"";if(P.set({width:w-F,height:C-H,top:Q.top,left:Q.left,translate:re,transition:ne,scale:g?`${v} ${y}`:"","transform-origin":`${100*W.x}% ${100*W.y}%`},KN),$&&(c.insertAdjacentElement("afterend",$),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}PL(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),AL(f),f.addEventListener("beforetoggle",nj));const oe=new ResizeObserver((()=>{if(!$)return;const e=new tN($,{frameTransform:h,ignoreTransforms:!0}),t=null!=W?W:{x:1,y:1},r=(w-e.width)*t.x+J,n=(C-e.height)*t.y+Z;if(P.set({width:e.width-F,height:e.height-H,top:E+n,left:R+r},KN),null==x||x.takeRecords(),oj(c)&&oj($)){const e=Array.from(c.cells),t=Array.from($.cells);for(const[r,n]of e.entries()){const e=t[r];n.style.width=`${e.offsetWidth}px`}}a.shape=new tN(f)})),ie=new tN(f);xM((()=>a.shape=ie));const ae=_O(f),se=e=>{this.manager.actions.stop({event:e})};B&&ae.addEventListener("resize",se),"idle"===xM((()=>l.status))&&requestAnimationFrame((()=>l.status="dragging")),$&&(oe.observe($),x=new MutationObserver((e=>{let t=!1;for(const r of e){if(r.target!==c){t=!0;continue}if("attributes"!==r.type)continue;const e=r.attributeName;if(e.startsWith("aria-")||ZN.includes(e))continue;const n=c.getAttribute(e);if("style"===e){if(rN(c)&&rN($)){const e=c.style;for(const t of Array.from($.style))""===e.getPropertyValue(t)&&$.style.removeProperty(t);for(const t of Array.from(e)){if(QN.includes(t)||t.startsWith(KN))continue;const r=e.getPropertyValue(t);$.style.setProperty(t,r)}}}else null!==n?$.setAttribute(e,n):$.removeAttribute(e)}t&&_&&($.innerHTML=c.innerHTML)})),x.observe(c,{attributes:!0,subtree:!0,childList:!0}),S=new MutationObserver((e=>{for(const t of e)if(0!==t.addedNodes.length)for(const e of Array.from(t.addedNodes)){if(e.contains(c)&&c.nextElementSibling!==$)return c.insertAdjacentElement("afterend",$),void AL(f);if(e.contains($)&&$.previousElementSibling!==c)return $.insertAdjacentElement("beforebegin",c),void AL(f)}})),S.observe(c.ownerDocument.body,{childList:!0,subtree:!0}));const le=null==(r=o.dragOperation.source)?void 0:r.id,ue=()=>{var e;if(!B||null==le)return;const t=o.registry.draggables.get(le),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;FO(r)&&r.focus()},ce=()=>{null==x||x.disconnect(),null==S||S.disconnect(),oe.disconnect(),ae.removeEventListener("resize",se),PL(f)&&(f.removeEventListener("beforetoggle",nj),f.removeAttribute("popover")),f.removeAttribute(XN),P.reset(),l.status="idle";const e=null!=n.current.translate;$&&(e||$.parentElement!==f.parentElement)&&f.isConnected&&$.replaceWith(f),null==$||$.remove()},de=TD((()=>{var e;const{transform:t,status:r}=a;if((t.x||t.y||n.current.translate)&&r.dragging){const r=null!=(e=p.translate)?e:{x:0,y:0},o={x:t.x/h.scaleX+r.x,y:t.y/h.scaleY+r.y},i=n.current.translate,s=xM((()=>a.modifiers)),l=xM((()=>{var e;return null==(e=a.shape)?void 0:e.current})),u=B?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(P.set({transition:`${A}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},KN),null==x||x.takeRecords(),l&&l!==ie&&i&&!s.length){const e=rT.delta(o,i);a.shape=nT.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new tN(f);n.current.translate=o}}),(function(){if(a.status.dropped){this.dispose(),l.status="dropping";let e=n.current.translate;const t=null!=e;if(e||c===f||(e={x:0,y:0}),!e)return void ce();const r=()=>{var r,n;{AL(f);const[,o]=null!=(r=OO(f,(e=>"translate"in e)))?r:[];null==o||o.pause();const i=null!=$?$:c,a={frameTransform:rj(f,i)?null:void 0},s=new tN(f,a),u=null!=(n=$L(NL(f).translate))?n:e,d=new tN(i,a),p=nT.delta(s,d,l.alignment),h={x:u.x-p.x,y:u.y-p.y},m=Math.round(s.intrinsicHeight)!==Math.round(d.intrinsicHeight)?{minHeight:[`${s.intrinsicHeight}px`,`${d.intrinsicHeight}px`],maxHeight:[`${s.intrinsicHeight}px`,`${d.intrinsicHeight}px`]}:{},g=Math.round(s.intrinsicWidth)!==Math.round(d.intrinsicWidth)?{minWidth:[`${s.intrinsicWidth}px`,`${d.intrinsicWidth}px`],maxWidth:[`${s.intrinsicWidth}px`,`${d.intrinsicWidth}px`]}:{};P.set({transition:A},KN),f.setAttribute(YN,""),null==x||x.takeRecords(),KL({element:f,keyframes:wN(SN(SN({},m),g),{translate:[`${u.x}px ${u.y}px 0`,`${h.x}px ${h.y}px 0`]}),options:{duration:t||f!==c?250:0,easing:"ease"}}).then((()=>{f.removeAttribute(YN),null==o||o.finish(),ce(),requestAnimationFrame(ue)}))}};o.renderer.rendering.then(r)}}));return()=>{ce(),de()}},dj=function(){var e,t,r;const{status:n,source:o,target:i}=this.manager.dragOperation,{nonce:a}=null!=(e=this.options)?e:{};if(n.initializing){const e=$O(null!=(t=null==o?void 0:o.element)?t:null),n=$O(null!=(r=null==i?void 0:i.element)?r:null),s=new Set([e,n]);for(const e of s){let t=pj.get(e);if(!t){const r=document.createElement("style");r.textContent=ej,a&&r.setAttribute("nonce",a),e.head.prepend(r);const n=new MutationObserver((t=>{for(const n of t)if("childList"===n.type){const t=Array.from(n.removedNodes);t.length>0&&t.includes(r)&&e.head.prepend(r)}}));n.observe(e.head,{childList:!0}),t={cleanup:()=>{n.disconnect(),r.remove()},instances:new Set},pj.set(e,t)}t.instances.add(this)}}},DN(sj,4,"overlay",ij,fj,lj),kN(sj,fj),fj.configure=$T(fj);var hj,mj,gj,bj,vj,yj,xj,Sj=fj,wj=!0;gj=[kD],bj=WL.Forward,hj=[kD],mj=WL.Reverse;var Cj=class{constructor(){LN(this,yj,MN(vj,8,this,wj)),MN(vj,11,this),LN(this,xj,MN(vj,12,this,wj)),MN(vj,15,this)}isLocked(e){return e!==WL.Idle&&(null==e?this[WL.Forward]===wj&&this[WL.Reverse]===wj:this[e]===wj)}unlock(e){e!==WL.Idle&&(this[e]=false)}};vj=RN(null),yj=new WeakMap,xj=new WeakMap,DN(vj,4,bj,gj,Cj,yj),DN(vj,4,mj,hj,Cj,xj),kN(vj,Cj);var Ej,Rj,Pj,Aj,Ij,kj,Mj=[WL.Forward,WL.Reverse],Dj=class{constructor(){this.x=new Cj,this.y=new Cj}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},Tj=class extends WT{constructor(e){super(e);const t=AM(new Dj);let r=null;this.signal=t,jM((()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new Dj);const{delta:o}=e.dragOperation.position;if(r){const e={x:qj(o.x,r.x),y:qj(o.y,r.y)},n=t.peek();vM((()=>{for(const t of pT)for(const r of Mj)e[t]===r&&n[t].unlock(r);t.value=n}))}r=o}))}get current(){return this.signal.peek()}};function qj(e,t){return Math.sign(e-t)}var Oj=class extends(Rj=UT,Ej=[kD],Rj){constructor(e){super(e),LN(this,Aj,MN(Pj,8,this,!1)),MN(Pj,11,this),LN(this,Ij),LN(this,kj,(()=>{if(!ON(this,Ij))return;const{element:e,by:t}=ON(this,Ij);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)})),this.scroll=e=>{var t;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return NN(this,Ij,void 0),!1;const{position:n}=this.manager.dragOperation,o=null==n?void 0:n.current;if(o){const{by:n}=null!=e?e:{},i=n?{x:Lj(n.x),y:Lj(n.y)}:void 0,a=i?void 0:this.scrollIntentTracker.current;if(null==a?void 0:a.isLocked())return!1;for(const e of r){const r=ML(e,n);if(r.x||r.y){const{speed:r,direction:s}=GL(e,o,i);if(a)for(const e of pT)a[e].isLocked(s[e])&&(r[e]=0,s[e]=0);if(s.x||s.y){const{x:o,y:i}=null!=n?n:s,a=o*r.x,l=i*r.y;if(a||l){const r=null==(t=ON(this,Ij))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return NN(this,Ij,{element:e,by:{x:a,y:l}}),TL.schedule(ON(this,kj)),!0}}}}}return NN(this,Ij,void 0),!1};let t=null,r=null;const n=AD((()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=JO($O(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t})),o=AD((()=>{const t=n.value,{documentElement:o}=$O(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=zL(n,{excludeElement:!1});return r=e,e}}if(t){const e=zL(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null}),ID);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new Tj(e),this.destroy=e.monitor.addEventListener("dragmove",(t=>{!this.disabled&&!t.defaultPrevented&&iN(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()}))}};function Lj(e){return e>0?WL.Forward:e<0?WL.Reverse:WL.Idle}Pj=RN(Rj),Aj=new WeakMap,Ij=new WeakMap,kj=new WeakMap,DN(Pj,4,"autoScrolling",Ej,Oj,Aj),kN(Pj,Oj);var Nj,jj=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise((e=>this.resolvers.add(e)))}}((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),_j=class extends WT{constructor(e,t){super(e);const r=e.registry.plugins.get(Oj);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=jM((()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval((()=>jj.schedule(r.scroll)),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}}))}},zj={capture:!0,passive:!0},Fj=class extends UT{constructor(e){super(e),LN(this,Nj),this.handleScroll=()=>{null==ON(this,Nj)&&NN(this,Nj,setTimeout((()=>{this.manager.collisionObserver.forceUpdate(!1),NN(this,Nj,void 0)}),50))};const{dragOperation:t}=this.manager;this.destroy=jM((()=>{var e,r,n;if(t.status.dragging){const o=null!=(n=null==(r=null==(e=t.source)?void 0:e.element)?void 0:r.ownerDocument)?n:document;return o.addEventListener("scroll",this.handleScroll,zj),()=>{o.removeEventListener("scroll",this.handleScroll,zj)}}}))}};Nj=new WeakMap;function Hj(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var $j,Bj=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var r;const n=null!=(r=t.handle)?r:t.element;return e.target===n}}),Wj=class extends eO{constructor(e,t){super(e),this.manager=e,this.options=t,LN(this,$j,[]),this.listeners=new QO,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!oN(e.target))return;if(t.disabled)return;const{keyboardCodes:n=Bj.keyboardCodes,preventActivation:o=Bj.preventActivation}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,r))}}bind(e,t=this.options){const r=jM((()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{iN(r)&&this.handleSourceKeyDown(r,e,t)};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}}));return r}handleStart(e,t,r){const{element:n}=t;if(!n)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),YL(n);const{center:o}=new tN(n);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=$O(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];ON(this,$j).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=Bj.keyboardCodes}=null!=r?r:{};if(Gj(e,[...n.end,...n.cancel])){e.preventDefault();const t=Gj(e,n.cancel);this.handleEnd(e,t)}else Gj(e,n.up)?this.handleMove("up",e):Gj(e,n.down)&&this.handleMove("down",e),Gj(e,n.left)?this.handleMove("left",e):Gj(e,n.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var r,n;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(n=null==(r=this.options)?void 0:r.offset)?n:Bj.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(_j);!1===(null==e?void 0:e.disabled)&&(e.disable(),ON(this,$j).push((()=>{e.enable()})))}cleanup(){ON(this,$j).forEach((e=>e())),NN(this,$j,[])}destroy(){this.cleanup(),this.listeners.clear()}};$j=new WeakMap,Wj.configure=$T(Wj),Wj.defaults=Bj;var Vj,Uj=Wj;function Gj(e,t){return t.includes(e.code)}var Yj,Kj;Vj=new WeakMap;Yj=new WeakMap,Kj=new WeakMap;var Xj=class{};Xj.Delay=class extends rO{constructor(){super(...arguments),LN(this,Yj),LN(this,Kj)}onEvent(e){switch(e.type){case"pointerdown":NN(this,Kj,VO(e)),NN(this,Yj,setTimeout((()=>this.activate(e)),this.options.value));break;case"pointermove":if(!ON(this,Kj))return;const{x:t,y:r}=VO(e);aT({x:t-ON(this,Kj).x,y:r-ON(this,Kj).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){ON(this,Yj)&&(clearTimeout(ON(this,Yj)),NN(this,Kj,void 0),NN(this,Yj,void 0))}},Xj.Distance=class extends rO{constructor(){super(...arguments),LN(this,Vj)}onEvent(e){switch(e.type){case"pointerdown":NN(this,Vj,VO(e));break;case"pointermove":if(!ON(this,Vj))return;const{x:t,y:r}=VO(e),n={x:t-ON(this,Vj).x,y:r-ON(this,Vj).y},{tolerance:o}=this.options;if(o&&aT(n,o))return void this.abort();aT(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){NN(this,Vj,void 0)}};var Jj,Zj=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!oN(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new Xj.Delay({value:250,tolerance:5})]:function(e){if(!oN(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(r=e).hasAttribute("contenteditable")&&"false"!==r.getAttribute("contenteditable");var r}(o)&&!e.defaultPrevented?[new Xj.Delay({value:200,tolerance:0})]:[new Xj.Delay({value:200,tolerance:10}),new Xj.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!oN(n)&&(!(null==(r=t.handle)?void 0:r.contains(n))&&Boolean(n.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),Qj=class extends eO{constructor(e,t){super(e),this.manager=e,this.options=t,LN(this,Jj,new Set),this.listeners=new QO,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t){var r;const{activationConstraints:n=Zj.activationConstraints}=null!=(r=this.options)?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=jM((()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=_O(e.target);return e instanceof t})(r)&&this.handlePointerDown(r,e,t)};let a=[null!=(r=e.handle)?r:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(o_(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>n.abort()}));return r}handlePointerDown(e,t,r){if(this.disabled||!e.isPrimary||0!==e.button||!oN(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=Zj.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=FO(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=FL(t.element),{x:s,y:l}=VO(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t);e.sensor=this;const c=new tO(u,(e=>this.handleStart(t,e)));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=GO(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"dragstart",listener:i?this.handleCancel:t_,options:{capture:!0}}]);ON(this,Jj).add((()=>{p(),this.initialCoordinates=void 0}))}handlePointerMove(e,t){var r,n;if(!1!==(null==(r=this.controller)?void 0:r.activated)){if(this.manager.dragOperation.status.dragging){const r=VO(e),n=FL(t.element);r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,TL.schedule(this.handleMove)}}else null==(n=this.controller)||n.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const r=!t.initialized;this.manager.actions.stop({event:e,canceled:r})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:r,initialCoordinates:n}=this;if(!n||!r.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(r.actions.start({coordinates:n,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=$O(t.target);o.body.setPointerCapture(t.pointerId);const i=oN(t.target)?[t.target,o.body]:o.body,a=this.listeners.bind(i,[{type:"touchmove",listener:t_,options:{passive:!1}},{type:"click",listener:t_},{type:"contextmenu",listener:t_},{type:"keydown",listener:this.handleKeyDown}]);ON(this,Jj).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){this.latest={event:void 0,coordinates:void 0},ON(this,Jj).forEach((e=>e())),ON(this,Jj).clear()}destroy(){this.cleanup(),this.listeners.clear()}};Jj=new WeakMap,Qj.configure=$T(Qj),Qj.defaults=Zj;var e_=Qj;function t_(e){e.preventDefault()}function r_(){}var n_=new WeakSet;function o_(e){e&&!n_.has(e)&&(e.addEventListener("touchmove",r_,{capture:!1,passive:!1}),n_.add(e))}var i_,a_,s_,l_,u_,c_,d_,p_,f_,h_,m_,g_,b_,v_,y_,x_,S_,w_,C_={modifiers:[],plugins:[UN,_j,class extends WT{constructor(e,t){super(e,t),this.manager=e;const r=AD((()=>{var e;return $O(null==(e=this.manager.dragOperation.source)?void 0:e.element)}));this.destroy=jM((()=>{var e;const{dragOperation:t}=this.manager,{cursor:n="grabbing",nonce:o}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=r.value,t=e.createElement("style");return o&&t.setAttribute("nonce",o),t.textContent=`* { cursor: ${n} !important; }`,e.head.appendChild(t),()=>t.remove()}}))}},Sj,class extends WT{constructor(e,t){super(e,t),this.manager=e,this.destroy=jM((()=>{var e;const{dragOperation:t}=this.manager,{nonce:r}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=document.createElement("style");return r&&e.setAttribute("nonce",r),e.textContent="* { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(e),Hj(),document.addEventListener("selectionchange",Hj,{capture:!0}),()=>{document.removeEventListener("selectionchange",Hj,{capture:!0}),e.remove()}}}))}}],sensors:[e_,Uj]},E_=class extends PO{constructor(e={}){const{plugins:t=C_.plugins,sensors:r=C_.sensors,modifiers:n=[]}=e;super(wN(SN({},e),{plugins:[Fj,Oj,...t],sensors:r,modifiers:n}))}},R_=class extends(l_=Jq,s_=[kD],a_=[kD],i_=[kD],l_){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=EN(r,["element","effects","handle","feedback"]);super(SN({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(BT))?t:[...r.sensors]).map((e=>{const t=e instanceof eO?e:r.registry.register(e.plugin),n=e instanceof eO?void 0:e.options;return t.bind(this,n)}));return function(){n.forEach((e=>e()))}}]},s),t),LN(this,c_,MN(u_,8,this)),MN(u_,11,this),LN(this,d_,MN(u_,12,this)),MN(u_,15,this),LN(this,p_,MN(u_,16,this)),MN(u_,19,this),this.element=n,this.handle=i,this.feedback=a}};u_=RN(l_),c_=new WeakMap,d_=new WeakMap,p_=new WeakMap,DN(u_,4,"handle",s_,R_,c_),DN(u_,4,"element",a_,R_,d_),DN(u_,4,"feedback",i_,R_,p_),kN(u_,R_);var P_=class extends(m_=Zq,h_=[kD],f_=[kD],m_){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=EN(r,["element","effects"]);const{collisionDetector:a=lN}=i,s=e=>{const{manager:t,element:r}=this;if(!r||null===e)return void(this.shape=void 0);if(!t)return;const n=new tN(r),o=xM((()=>this.shape));return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=AM(!1);super(wN(SN({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:r}=t,{source:n}=r;l.value=Boolean(n&&r.status.initialized&&e&&!this.disabled&&this.accepts(n))},()=>{const{element:e}=this;if(l.value&&e){const t=new RL(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),LN(this,S_),LN(this,b_,MN(g_,8,this)),MN(g_,11,this),LN(this,w_,MN(g_,12,this)),MN(g_,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){NN(this,S_,e,x_)}get element(){var e;return null!=(e=this.proxy)?e:ON(this,S_,y_)}};function A_(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}g_=RN(m_),b_=new WeakMap,S_=new WeakSet,w_=new WeakMap,v_=DN(g_,20,"#element",h_,S_,b_),y_=v_.get,x_=v_.set,DN(g_,4,"proxy",f_,P_,w_),kN(g_,P_);var I_="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?L:E;function k_(){const e=w(0)[1];return T((()=>{e((e=>e+1))}),[e])}function M_(e,t=[],r=!1){const n=D(e);return n.current=e,function(e,t=!1){const r=D(e.peek()),n=D(!1),o=k_();return I_((()=>jM((()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?$(o):o()}}))),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(C((()=>AD((()=>n.current()))),t),r)}function D_(e,t){const r=D(new Map),n=k_();return I_((()=>{if(e)return jM((()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=xM((()=>n[1])),u=e[s];l!==u&&(i=!0,r.current.set(s,u),a=null!=(o=null==t?void 0:t(s,l,u))&&o)}i&&(a?$(n):n())}));r.current.clear()}),[e]),C((()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e),[e])}function T_(e,t){e()}function q_(e){const t=D(e);return I_((()=>{t.current=e}),[e]),t}function O_(e,t,r=E,n=Object.is){const o=D(e);r((()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))}),[t,e])}function L_(e,t){const r=D(A_(e));I_((()=>{const n=A_(e);n!==r.current&&(r.current=n,t(n))}))}var N_=Object.getOwnPropertySymbols,j_=Object.prototype.hasOwnProperty,__=Object.prototype.propertyIsEnumerable,z_=new E_,F_=M(z_),H_=O(q((({children:e},t)=>{const[r,n]=w(0),o=D(null),i=D(null),a=C((()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise((e=>{i.current=e}))),j((()=>{e(),n((e=>e+1))}))}})),[]);return I_((()=>{var e;null==(e=i.current)||e.call(i),o.current=null}),[e,r]),_(t,(()=>a)),null}))),$_=[void 0,ID];function B_(e){var t=e,{children:r,onCollision:n,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,u=((e,t)=>{var r={};for(var n in e)j_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&N_)for(var n of N_(e))t.indexOf(n)<0&&__.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const c=D(null),{plugins:d,modifiers:p,sensors:f}=u,h=q_(o),m=q_(i),g=q_(s),b=q_(a),v=q_(l),y=q_(n),x=function(e){const t=D(null);t.current||(t.current=e());return N((()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()}),[]),t.current}((()=>{var e;return null!=(e=u.manager)?e:new E_(u)}));return E((()=>{if(!c.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=c.current,{monitor:r}=x;x.renderer=e;const n=[r.addEventListener("beforedragstart",(e=>{const r=h.current;r&&t((()=>r(e,x)))})),r.addEventListener("dragstart",(e=>{var t;return null==(t=m.current)?void 0:t.call(m,e,x)})),r.addEventListener("dragover",(e=>{const r=g.current;r&&t((()=>r(e,x)))})),r.addEventListener("dragmove",(e=>{const r=b.current;r&&t((()=>r(e,x)))})),r.addEventListener("dragend",(e=>{const r=v.current;r&&t((()=>r(e,x)))})),r.addEventListener("collision",(e=>{var t;return null==(t=y.current)?void 0:t.call(y,e,x)}))];return()=>n.forEach((e=>e()))}),[x]),O_(d,(()=>x&&(x.plugins=null!=d?d:C_.plugins)),...$_),O_(f,(()=>x&&(x.sensors=null!=f?f:C_.sensors)),...$_),O_(p,(()=>x&&(x.modifiers=null!=p?p:C_.modifiers)),...$_),tr.jsxs(F_.Provider,{value:x,children:[tr.jsx(H_,{ref:c,children:r}),r]})}function W_(){return S(F_)}function V_({children:e,className:t,style:r,tag:n,disabled:o}){var i;const a=D(null),s=W_(),l=null!=(i=M_((()=>null==s?void 0:s.dragOperation.source),[s]).value)?i:null,u="function"==typeof o?o(l):o;E((()=>{if(!a.current||!s||u)return;const e=s.plugins.find((e=>e instanceof Sj));return e?(e.overlay=a.current,()=>{e.overlay=void 0}):void 0}),[s,u]);const c=C((()=>{if(!s)return null;const e=new Proxy(s.registry,{get:(e,t)=>"register"===t||"unregister"===t?U_:e[t]});return new Proxy(s,{get:(t,r)=>"registry"===r?e:t[r]})}),[s]);return tr.jsx(F_.Provider,{value:c,children:R(n||"div",{ref:a,className:t,style:r,"data-dnd-overlay":!0},function(){if(!l||u)return null;if("function"==typeof e)return tr.jsx(G_,{source:l,children:e});return e}())})}function U_(){return()=>{}}function G_({children:e,source:t}){return e(D_(t))}var Y_,K_,X_,J_,Z_,Q_=Object.create,ez=Object.defineProperty,tz=Object.getOwnPropertyDescriptor,rz=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),nz=e=>{throw TypeError(e)},oz=["class","method","getter","setter","accessor","field","value","get","set"],iz=e=>void 0!==e&&"function"!=typeof e?nz("Function expected"):e,az=(e,t,r,n,o)=>({kind:oz[e],name:t,metadata:n,addInitializer:e=>r._?nz("Already initialized"):o.push(iz(e||null))}),sz=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=oz[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,tz(o,r)),h=n.length-1;h>=0;h--)(l=az(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,iz(a)&&(f[d]=a);return f&&ez(o,r,f),o},lz=(e,t,r)=>t.has(e)||nz("Cannot "+r),uz=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},cz=class extends(X_=OD,K_=[MD],Y_=[MD],X_){constructor(e){var t,r,n;super(uz.from(e),((e,t)=>uz.equals(e,t))),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(Z_,5,this),t=this,n=0,(r=J_).has(t)?nz("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return uz.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=uz.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(lz(a=this,s=J_,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);vM((()=>{((e,t,r)=>{lz(e,t,"write to private field"),t.set(e,r)})(this,J_,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(uz.from(e)),this.velocity={x:0,y:0}}};Z_=(e=>{var t;return[,,,Q_(null!=(t=null==e?void 0:e[rz("metadata")])?t:null)]})(X_),J_=new WeakMap,sz(Z_,2,"delta",K_,cz),sz(Z_,2,"direction",Y_,cz),((e,t)=>{((e,t,r)=>{t in e?ez(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,rz("metadata"),e[3])})(Z_,cz);var dz=(e=>(e.Horizontal="x",e.Vertical="y",e))(dz||{});function pz(e){const t=W_();E((()=>{if(!t)return;const r=Object.entries(e).reduce(((e,[r,n])=>{if(n){const o=r.replace(/^on/,"").toLowerCase(),i=t.monitor.addEventListener(o,n);e.push(i)}return e}),[]);return()=>r.forEach((e=>null==e?void 0:e()))}),[t,e])}Object.values(dz);const fz=()=>{const[e,t]=w(!1);return pz({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?tr.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},hz=()=>{const{flags:e}=$I(_I,(e=>e.env)),t=$I(_I,(e=>e.baseProps.layout));return!e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")||void 0===t.accessibleHeader||t.accessibleHeader},mz=(e,{atTop:t,atBottom:r},n)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!n&&r?e.grid.divider:e.grid.border,borderBottomColor:n&&!t||!n&&t?e.grid.divider:e.grid.border}),gz=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),bz=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),vz=e=>e.atTop?2:1,yz=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],xz=e=>e?.setAttribute("tabIndex","0"),Sz=e=>e?.setAttribute("tabIndex","-1"),wz=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(Sz)},Cz=e=>{e?.focus(),xz(e)},Ez=e=>{setTimeout((()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${QC}`);Cz(t)}),0)},Rz=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{wz(t);const a=((e,t,r,n,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,s=t.getElementsByClassName("sn-table-row").length-1-o.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[u,c]=r;switch(e.key){case ZC.Down:u<s&&u++;break;case ZC.Up:u>a&&u--;break;case ZC.Right:if(i)break;[u,c]="rtl"===n?gz({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):bz({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case ZC.Left:if(i)break;[u,c]="rtl"===n?bz({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):gz({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case ZC.Home:(sI(e)||i)&&(u=a),i||(c=0);break;case ZC.End:(sI(e)||i)&&(u=s),i||(c=l);break;case ZC.PageDown:u=Math.min(s,u+10);break;case ZC.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=yz(t,a);return Cz(s),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(!r?.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[n].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-i.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),n(a),{nextCell:s,nextCellCoord:a}},Pz=(e,t,r,n)=>{wz(t),r(e),n.enabled&&!n.active?n.focus?.():Cz(yz(t,e))},Az=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${KC}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${PA.First}`),r=e.querySelector(`.${PA.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},Iz=q(((e,t)=>tr.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:tr.jsx("path",{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10M3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0zM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0"})}))),kz=ac(Lh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...HA,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}}))),Mz=ac("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:_A,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),Dz=parseInt(_A,10)/2,Tz=ac("div")({position:"absolute",bottom:-Dz,left:`calc(50% - ${Dz}px)`}),qz={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},Oz=ac(Xd)({height:"100%"}),Lz=ac("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e})((({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1})=>n||1===e&&!t?{...qz,whiteSpace:"nowrap",display:r?"block":void 0}:{...qz,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"})),Nz=ac("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),jz="cell-text",_z=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=$I(_I,(e=>e.baseProps));return o?tr.jsx(Lz,{"data-testid":jz,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):tr.jsx(Lz,{"data-testid":jz,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},zz=x.forwardRef(((e,t)=>{const{column:r,isInteractionEnabled:n,open:o,setOpen:i,isPagination:a,forwardRef:s}=e,{translator:l,changeSortOrder:u,interactions:c,embed:d,app:p,styleService:f,layout:h,direction:m}=$I(_I,(e=>e.baseProps)),g=$I(_I,(e=>e.columnWidths[r.pageColIdx])),b=$I(_I,(e=>e.baseProps.model)),v=D(null),y=D(null),x=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=zC({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:zA});let o=!1,i=!1,a=!1;const s=t.isLocked,l=t.isActivelySorted,u=r-25,c=s?20:0,d=l?20:0;let p=n(t.label);return s&&p+c<=u&&(a=!0,p+=c,l&&p+d<=u&&(i=!0,p+=d)),!s&&l&&p+d<=u&&(i=!0,p+=d),p+24<=u&&(o=!0,p+=24),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({styleService:f,column:r,columnWidth:g}),{StartIcon:S,EndIcon:w,LockIcon:C}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?tr.jsx(wk,{height:_A,"data-testid":"head-cell-sort-ascending-icon"}):tr.jsx(Rk,{height:_A,"data-testid":"head-cell-sort-descending-icon"}),a=r?tr.jsx(Mz,{align:t,dir:o,children:i}):void 0,s=n?tr.jsx(eI,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:tr.jsx(Iz,{height:_A,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(r,x,m);return tr.jsxs(QA,{ref:t,shouldShowMenuIcon:x.shouldShowMenuIcon,shouldShowLockIcon:x.shouldShowLockIcon,alignment:UA(r,a,m),children:[C,tr.jsxs(ZA,{className:"sn-table-head-label",textAlign:r.headTextAlign,direction:m,isPagination:a,children:[S,tr.jsx(_z,{forwardRef:s,isPagination:a,isHeadCell:!0,children:r.label}),w]}),n?tr.jsxs(tr.Fragment,{children:[tr.jsx(zk,{headerData:{...r,dimensionInfoIndex:r.colIdx},translator:l,anchorRef:v,menuAvailabilityFlags:{[Nk.Sorting]:!0,[Nk.Searching]:!0,[Nk.Selections]:!0,[Nk.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:c,sortRelatedArgs:{sortFromMenu:(e,t)=>(e.stopPropagation(),u(r,t))},searchRelatedArgs:{embed:d,listboxRef:y},selectionRelatedArgs:{app:p,qStateName:h.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:Ez},shouldShowMenuIcon:x.shouldShowMenuIcon,model:b,direction:m,isPagination:a,isAccessibleHeader:!0}),tr.jsx(JA,{ref:y,direction:m,isPagination:a}),tr.jsx(JA,{ref:v,direction:m})]}):null]})})),Fz=q(((e,t)=>tr.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:tr.jsx("path",{d:"M6 2h10V1H6zm5 5h5V6h-5zm5 5h-5v-1h5zM5 10h1v2.663a3.5 3.5 0 1 0-2.922.036l-.406.914A4.501 4.501 0 1 1 7.329 13H9v1H5z"})}))),Hz=(e,t)=>e.isCyclic&&t,$z=({column:e})=>{const{direction:t,model:r,styleService:n}=$I(_I,(e=>e.baseProps)),o=x.useRef(null),[i,a]=x.useState(!1),s=KI({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return tr.jsxs(tr.Fragment,{children:[tr.jsx(rI,{hoverBackground:n.headerMenuHoverBackground,activeBackground:n.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:tr.jsx(Fz,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),tr.jsx(gk,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),a(!1),s?.(r)},enabled:!0,icon:Pk,isActive:e.groupDimensionPos===r})))}]],anchorEl:o.current,direction:t,isPagination:!1})]})},Bz=e=>e.isLocked,Wz=({column:e})=>{const t=$I(_I,(e=>e.baseProps.app)),r=$I(_I,(e=>e.baseProps.layout.qStateName)),n=$I(_I,(e=>e.baseProps.styleService));return tr.jsx(rI,{tabIndex:-1,hoverBackground:n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=vk(t??"$",r);let o;try{const t=await(e?.createSessionObject(n));o=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){console.error("Failed to unlock field from table header",e)}finally{o&&(await(e?.destroySessionObject(o))||console.error("Failed to destroy session object when unlocking field from table header"))}})(t,r,e)},children:tr.jsx(Iz,{height:16,"data-testid":"head-cell-lock-icon"})})},Vz=({column:e,open:t,setOpen:r,isPagination:n})=>{const{translator:o,interactions:i,app:a,layout:s,direction:l,changeSortOrder:u,embed:c,styleService:d}=$I(_I,(e=>e.baseProps)),p=$I(_I,(e=>e.baseProps.model)),f=x.useRef(null),h=x.useRef(null);return tr.jsxs(rI,{tabIndex:-1,hoverBackground:d.headerMenuHoverBackground,activeBackground:d.headerMenuActiveBackground,isActive:t,order:e.isDim?void 0:-1,children:[tr.jsx(zk,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:o,anchorRef:f,menuAvailabilityFlags:{[Nk.Sorting]:!0,[Nk.Searching]:!0,[Nk.Selections]:!0,[Nk.AdjusterHeaderSize]:!0},open:t,setOpen:r,interactions:i,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),u(e,r))},searchRelatedArgs:{embed:c,listboxRef:h},selectionRelatedArgs:{app:a,qStateName:s.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:Ez},shouldShowMenuIcon:!0,model:p,direction:l,isPagination:n,isAccessibleHeader:!1,iconSize:16}),tr.jsx(JA,{ref:h,direction:l,isPagination:n}),tr.jsx(JA,{ref:f,direction:l})]})},Uz=e=>e.at(0)?.contentBoxSize.at(0)?.blockSize,Gz=(e,t)=>{const r=D(t);r.current=t,L((()=>{if(!e.current)return()=>{};const t=new ResizeObserver((e=>{r.current(e)}));return t.observe(e.current),()=>{t.disconnect()}}),[e])},Yz=ac(Xd)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),Kz=x.forwardRef((({children:e},t)=>{const r=x.useRef(null),[n,o]=w((()=>new Set(e.filter((({props:e})=>void 0!==e.prio&&e.children)).map((({key:e})=>e))))),i=C((()=>Array.from(e).sort(((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)))),[e]),a=T((e=>{const t=new Set,r=e.at(0)?.contentBoxSize.at(0)?.inlineSize??0;let n=0;i.forEach((e=>{if(e.props.ignore||!e.props.children)return;const o=e.props.minWidth+1;void 0===e.props.prio||n+o<=r?n+=o:t.add(e.key)})),o((e=>e.size===t.size&&[...e].every((e=>t.has(e)))?e:t))}),[i]);Gz(r,a);const s=T((e=>{r.current=e,"function"==typeof t?t(e):t&&(t.current=e)}),[r,t]);return tr.jsx(Yz,{ref:s,"data-testid":"responsive-container",children:e.filter((e=>!n.has(e.key)))})})),Xz=({children:e})=>e,Jz=(e,t)=>!e.isLocked&&e.isDim&&t,Zz=({column:e,open:t,setOpen:r})=>{const{embed:n,app:o,direction:i,layout:a,styleService:s}=$I(_I,(e=>e.baseProps)),l=x.useRef(null),u=T((()=>{r(!1)}),[r]),c=bk({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:n,listboxRef:l},selectionRelatedArgs:{qStateName:a.qStateName},direction:i,onPopoverClose:u});return tr.jsx(rI,{tabIndex:-1,hoverBackground:s.headerMenuHoverBackground,activeBackground:s.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),c(),r(!0)},children:tr.jsx(Mk,{ref:l,height:16,"data-testid":"head-cell-search-icon"})})},Qz=q(((e,t)=>tr.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:tr.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"})}))),eF=q(((e,t)=>tr.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:tr.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"})}))),tF=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?tr.jsx(eF,{height:_A,"data-testid":"head-cell-sort-ascending-icon"}):tr.jsx(Qz,{height:_A,"data-testid":"head-cell-sort-descending-icon"});return r?tr.jsx(Tz,{children:n}):void 0},rF=0,nF=1,oF=2,iF=3,aF=x.forwardRef(((e,t)=>{const{column:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,{styleService:s}=$I(_I,(e=>e.baseProps)),l=(()=>{const e=$I(_I,(e=>e.baseProps.interactions.active)),t=$I(_I,(e=>e.baseProps.selectionsAPI?.isModal()));return!!e&&!t})(),{measureText:u}=zC(s.header),[c,d]=x.useState(!1);return tr.jsxs(Kz,{ref:t,children:[tr.jsx(Xz,{prio:oF,minWidth:XA,children:Bz(r)?tr.jsx(Wz,{column:r}):null},"Lock"),tr.jsx(Xz,{prio:nF,minWidth:XA,children:Hz(r,l)?tr.jsx($z,{column:r}):null},"Cyclic"),tr.jsx(Xz,{ignore:!0,children:tr.jsx(tF,{column:r})},"Sort"),tr.jsx(Xz,{minWidth:u(r.label)+8,children:tr.jsx(tI,{justifyContent:r.headTextAlign,children:tr.jsx(_z,{forwardRef:a,isPagination:i,isHeadCell:!0,children:r.label})})},"Text"),tr.jsx(Xz,{prio:rF,minWidth:XA,children:c||Jz(r,l)?tr.jsx(Zz,{open:c,setOpen:d,column:r}):null},"Search"),tr.jsx(Xz,{prio:iF,minWidth:XA,children:l?tr.jsx(Vz,{column:r,open:n,setOpen:o,isPagination:i}):null},"Menu")]})})),sF=ac("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e})((({background:e,applicableStyle:t})=>({...t,background:e}))),lF=()=>{},uF=({column:e,isPagination:t})=>{const{styleService:r,direction:n}=$I(_I,(e=>e.baseProps)),o=$I(_I,(e=>e.showRightBorder)),i=$I(_I,(e=>e.tableData.totalsPosition)),a=!1,s=hz()?zz:aF;return tr.jsx(sF,{className:"sn-table-cell",applicableStyle:{...r.header,...mz(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:YA(n,a,o),borderLeftWidth:KA(n,a,o),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:e.headTextAlign,boxSizing:"border-box",flexDirection:"right"===e.headTextAlign?"row-reverse":"row",userSelect:"none",width:"100%"},background:r.header.background,children:tr.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:lF})})},cF=({isPagination:e})=>{const{columns:t}=$I(_I,(e=>e.tableData)),[r,n]=w();pz({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find((e=>e.id===r)):void 0;return o?tr.jsx(V_,{children:tr.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:tr.jsx(uF,{column:o,isPagination:e})})}):null},dF=C_.sensors.filter((e=>e!==Uj)),pF=C_.plugins.filter((e=>e!==UN)),fF=({children:e})=>{const{model:t}=$I(_I,(e=>e.baseProps)),{columns:r}=$I(_I,(e=>e.tableData));return tr.jsx(B_,{onDragOver:e=>{const n=e.operation.source?.id,o=e.operation.target?.id;void 0!==o&&n!==o&&(async(e,t,r,n)=>{if(!e||!("getEffectiveProperties"in e))return;const o=t.findIndex((e=>e.id===r)),i=t.findIndex((e=>e.id===n)),a=[...t],[s]=a.splice(o,1);a.splice(i,0,s);const l=[{qPath:"/qHyperCubeDef/qColumnOrder",qOp:"Replace",qValue:`[${a.map((e=>e.colIdx)).join(",")}]`}];e.applyPatches(l,!0)})(t,r,n,o)},sensors:dF,plugins:pF,children:e})};function hF(e,t){const r=D(!1);E((()=>{r.current?e():r.current=!0}),t)}const mF=()=>{const{downloadService:e}=$I(_I,(e=>e.baseProps));E((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))},gF=(e,t,r)=>{const{rootElement:n,keyboard:o}=$I(_I,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:s,totalsPosition:l}=$I(_I,(e=>e.tableData)),u=$I(_I,(e=>e.focusedCellCoord)),c=$I(_I,(e=>e.setFocusedCellCoord)),d=$I(_I,(e=>e.baseProps.selectionsAPI?.isModal()));hF((()=>{const r=((e,t,r=!1)=>{const n=[vz(t),e[1]];return r?n:AA})(u,l,d);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(wz(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=yz(t,e);r.current?(Cz(s),r.current=!1):xz(s),n&&(a({keys:[s?.textContent??""]}),aI(a,s,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[s.length,a,i,r])},bF=(e,t,r)=>{E((()=>{const n=e.current;if(!n)return;const o=e=>{((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n)},i=e=>{r.scrollLeft=e.currentTarget?.scrollLeft||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,t,r])},vF=e=>{kC(e),sI(e)&&sE(e.currentTarget)},yF=e=>{dI(e.evt)&&(kC(e.evt),Rz(e))},xF=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!dI(t))return;kC(t);const i=((e,t)=>[e.pageRowIdx+vz(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?vz(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=Rz({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:r,selectionDispatch:n,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&r.isSelectable?n({type:EA.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):aI(o,a,i)})({...e,nextCell:s})},SF=e=>{const{evt:t}=e;lI(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{kC(e);const a=Math.ceil(t/r)-1;e.key===ZC.Right&&n<a?(o(),i(n+1)):e.key===ZC.Left&&n>0&&(o(),i(n-1))})(e):t.key===ZC.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(kC(e),t.blur?.(!0))})(e):uI(t.key)&&kC(t)},wF=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(CA.Disabled))return void kC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case ZC.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{kC(e),t.isSelectable&&r&&n({type:EA.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case ZC.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{kC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case ZC.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(kC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case ZC.C:vF(t);break;case ZC.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(kC(e),IC(e.currentTarget,t,e.shiftKey))})(n);break;default:xF(n)}},CF=e=>{const[t,r]=w(0),[n,o]=w(0),i=$I(_I,(e=>e.isAdjustingWidth));return Gz(e,(t=>{if(e.current&&!i){const e=t.at(0)?.borderBoxSize.at(0)?.inlineSize??0,n=t.at(0)?.borderBoxSize.at(0)?.blockSize??0,i=t.at(0)?.contentBoxSize.at(0)?.inlineSize??0,a=n-(t.at(0)?.contentBoxSize.at(0)?.blockSize??0);o(e-i),r(a)}})),{xScrollbarWidth:t,yScrollbarWidth:n}},EF=ac("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),RF=ac(zh,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),PF=ac(Ch,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),AF=()=>tr.jsxs(tr.Fragment,{children:[tr.jsx(EF,{className:PA.First,"data-testid":PA.First,"aria-live":"polite","aria-atomic":"true"}),tr.jsx(EF,{className:PA.Second,"data-testid":PA.Second,"aria-live":"polite","aria-atomic":"true"})]}),IF=e=>{const t=D(new Map),r=D(null);E((()=>{r.current=e(t.current),t.current.forEach(((e,t)=>{r.current?.observe(t)}));const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}}),[e,r,t]);const n=T(((e,n)=>{t.current.set(e,n),r.current?.observe(e)}),[t,r]),o=T((e=>{t.current.delete(e),r.current?.unobserve(e)}),[r,t]);return C((()=>({addTask:n,removeTask:o})),[n,o])},kF=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);r?.(t)}))})),MF=()=>IF(kF),DF=({selectionsAPI:e,selectionDispatch:t,updateShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{E((()=>{const i=()=>{t({type:EA.Reset})},a=()=>{t({type:EA.Clear})},s=()=>{o.current?.contains(document.activeElement)?r():n.enabled&&n.blur?.(!0),i()};return e?.on("deactivated",i),e?.on("canceled",i),e?.on("confirmed",s),e?.on("cleared",a),()=>{e?.removeListener("deactivated",i),e?.removeListener("canceled",i),e?.removeListener("confirmed",s),e?.removeListener("cleared",a)}}),[e,n,t,r,o])},TF=e=>{e.stopPropagation()},qF=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:TF,color:wC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),OF=({href:e,text:t,interactions:r,color:n})=>tr.jsx(Yp,{...qF({href:e,text:t,interactions:r,color:n}),children:t}),LF=window.requestIdleCallback??(e=>setTimeout((()=>{e({})}),0)),NF=window.cancelIdleCallback??(e=>{clearTimeout(e)}),jF="qDimensionInfo/0",_F="qMeasureInfo/0",zF="x",FF="y",HF=e=>({key:"bars",type:"box",data:{extract:{field:jF,props:{start:0,end:{field:_F}}}},settings:{major:{scale:zF},minor:{scale:FF},box:{maxWidthPx:8,fill:{fn:e}}}}),$F=e=>({key:"p",type:"point",data:{extract:{field:jF,props:{y:{field:_F}}}},settings:{x:{scale:zF},y:{scale:FF},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),BF=({qNum:e})=>void 0===e?0:Math.sign(e),WF=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=PC(e,t?.negative,r),a=PC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:jF,props:{start:0,end:{field:_F,value:BF}}}},settings:{major:{scale:zF},minor:{scale:FF},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?n:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},VF=(e,{type:t,showDots:r,colors:n,colorMin:o,colorMax:i})=>{const a=((e,t,r,n)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=PC(e,t?.main,o),l=PC(e,t?.max,s),u=PC(e,t?.min,s),c=PC(e,t?.first,s),d=PC(e,t?.last,s);return e=>{const t=FF in e.datum?FF:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=n?l:e.datum[t].value<=r?u:e.data.items.at(0)===e.datum?c:e.data.items.at(-1)===e.datum?d:s}})(e,n,o,i);switch(t){case"bars":return[HF(a)];case"dots":return[$F(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:jF,props:{v:{field:_F}}}},settings:{coordinates:{major:{scale:zF},minor:{scale:FF,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(PC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,$F(a)]:[t]}case"posNeg":return[WF(e,n)];default:return[]}},UF=e=>({qDimensionInfo:[{qFallbackTitle:"",qCardinal:1}],qMeasureInfo:[{qFallbackTitle:""}],qDataPages:[{qArea:{qTop:0,qLeft:0,qHeight:e.length,qWidth:2},qMatrix:e}],qEffectiveInterColumnSortOrder:[0,1],qSize:{qcx:2,qcy:e.length},qMode:"S"}),GF=(e,t,r,n)=>({y:{data:{field:_F},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:jF}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),YF=W();YF.use(B),YF.renderer.prio(["canvas"]);const KF={resolve:()=>{},promise:{}},XF=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=D(e.isDownloadedAsPDForImage?It():KF);return{addChartPromiseToQueue:T((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:T((()=>{if(null===t.current||null!==e.current)return;u();r.current=LF((()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:r,miniChartData:n,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:u}=n;return YF.chart({element:e,data:{type:"q",key:"qHyperCube",data:UF(s)},settings:{scales:GF(a,l,u,i),components:VF(t,n),strategy:r?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))}),{timeout:2e3})}),[t,e,u,r,n,o,a,i,l]),safeCancelIdleCallback:T((()=>{null!==r.current&&NF(r.current),r.current=null,l()}),[r,l])}},JF=e=>{const t=D(null),r=D(!1);return T((n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(NF(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=LF((()=>{e.current?.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},ZF=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=D(null),l=D(null),u=D(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=XF({element:s,chart:l,requestId:u,theme:r,isSnapshot:n,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=T((e=>{e.isIntersecting?n():r()}),[n,r]);E((()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{t.removeTask(n),r(),o.current?.destroy(),o.current=null}}),[o,e,t,r,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionObserverTaskScheduler:n})=>{E((()=>n?()=>{}:(e(),()=>{t(),r.current?.destroy(),r.current=null})),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=JF(t);E((()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}}),[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},QF=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=ZF({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return tr.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},eH=e=>{let t="center",r="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?r="left":"flex-end"===e?.horizontal&&(r="right"),`${r} ${t}`},tH=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},rH=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{direction:o}=$I(_I,(e=>e.baseProps)),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=tr.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:tH(s),objectPosition:eH(l),overflow:"hidden"}});return n?tr.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?BA(o,e):void 0},children:c}):c},nH=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:tr.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})}))),oH=q(((e,t)=>tr.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:tr.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"})}))),iH=q(((e,t)=>tr.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:[tr.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"}),tr.jsx("use",{fillRule:"evenodd"})]}))),aH=q(((e,t)=>tr.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:tr.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"})}))),sH=q(((e,t)=>tr.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:tr.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"})}))),lH=q(((e,t)=>tr.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:tr.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"})}))),uH=q(((e,t)=>tr.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:tr.jsx("path",{d:"M2 7h12v2H2z"})}))),cH=q(((e,t)=>tr.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:tr.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"})}))),dH=q(((e,t)=>tr.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:tr.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"})}))),pH=q(((e,t)=>tr.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:tr.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"})}))),fH=q(((e,t)=>tr.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:tr.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"})}))),hH={m:q(((e,t)=>tr.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:tr.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),"ï":pH,R:eF,S:Qz,T:q(((e,t)=>tr.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:tr.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"})}))),U:q(((e,t)=>tr.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:tr.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"})}))),P:dH,Q:lH,"è":q(((e,t)=>tr.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:tr.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"})}))),"¢":aH,"©":iH,"23F4":sH,2013:fH,"&":cH,add:nH,"minus-2":uH,dot:oH},mH=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&hH[t];return o&&tr.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:tr.jsx(o,{style:{height:e}})})},gH=({representation:e,cellValue:t,paginationCellAlign:r})=>{const{styleService:n,theme:o,direction:i}=$I(_I,(e=>e.baseProps)),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=LA(e,t,i,o),d=(e=>parseInt(e||_A,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?tr.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:r??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:u?p:void 0},children:["left"===h&&mH({size:d,iconKey:f,color:p}),tr.jsx(_z,{isNumeric:!0,children:a}),"right"===h&&mH({size:d,iconKey:f,color:p})]}):mH({size:d,iconKey:f,color:p})},bH=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,vH=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const{interactions:l,styleService:u,theme:c,layout:d,downloadService:p,direction:f}=$I(_I,(e=>e.baseProps)),h=$I(_I,(e=>e.selectionState.api?.isActive()));let m=t.representation.text;if(t.representation.type!==qE.Link||h||(m=tr.jsx(OF,{href:t.representation.url,text:t.representation.text,interactions:l,color:r.cellForegroundColor})),t.representation.type===qE.Image)return tr.jsx(rH,{representation:t.representation,textStyle:r,maxImageHeight:bH(u,o),wrapInContainer:!n});const g="string"==typeof(b=t.qIsNull?t.representation.text:t.qNum)&&b.length>0||"number"==typeof b?+b:NaN;var b;return t.representation.type!==qE.Indicator||Number.isNaN(g)?t.representation.type===qE.MiniChart&&t.representation.miniChart&&!t.isNull?tr.jsx(QF,{height:bH(u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:c,isSnapshot:!!d.snapshotData,direction:f,downloadService:p}):tr.jsx(_z,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):tr.jsx(gH,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},yH=()=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:tr.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),xH=ac("div")({"& path":{stroke:"none !important"}}),SH=({children:e,cellSelectionState:t})=>t===CA.Selected?tr.jsxs(Nz,{children:[e,tr.jsx(xH,{children:tr.jsx(yH,{})})]}):e,wH=e=>{const t=function(){const e=W_(),t=M_((()=>null==e?void 0:e.dragOperation.source),[e]),r=M_((()=>null==e?void 0:e.dragOperation.target),[e]);return{get source(){return t.value},get target(){return r.value}}}();return t.source&&t.source.id!==e?.5:1},CH=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:EA.SelectMultiEnd})};r({type:EA.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:EA.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:EA.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),EH=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=$I(_I,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:s,direction:l}=$I(_I,(e=>e.baseProps)),u=$I(_I,(e=>e.setFocusedCellCoord)),c=$I(_I,(e=>e.selectionDispatch)),d=!!s.active&&!!s.select,p=s=>{wF({evt:s,rootElement:i,selectionsAPI:o,cell:e,selectionDispatch:c,isSelectionsEnabled:d,setFocusedCellCoord:u,announce:t,keyboard:a,paginationNeeded:r,totalsPosition:n,direction:l})},f=e=>{((e,t)=>{e.key===ZC.Shift&&t({type:EA.SelectMultiEnd})})(e,c)},h=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;Pz([s,a],t,r,n)})(e,i,u,a,n)};if(!d)return{onKeyDown:p,onKeyUp:f,onMouseDown:h};const{handleMouseDown:m,handleMouseOver:g,handleMouseUp:b}=CH(h,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:m,onMouseUp:b,onMouseOver:g}},RH=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=CA.Inactive;return o?.isModal()&&(i=r!==e.selectionColIdx?CA.Disabled:n.has(e.qElemNumber)?CA.Selected:CA.Possible),i},PH=(e,t,r)=>{if(!r.isNull)return e;const n={...e,...t.nullValues};return t.grid.zebraStripes.show?(t.grid.zebraStripes.overrideNullValueColor&&(n.color=e.color),t.grid.zebraStripes.overrideNullValueBackground&&(n.background=e.background),n):n},AH=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},IH=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return AH(t,e,n?"even":"odd")}return e},kH=(e,t)=>{const{styleService:r}=$I(_I,(e=>e.baseProps)),n=$I(_I,(t=>RH(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=IH(o,r,e),o=PH(o,r,e);const i=RI(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===CA.Selected?{...e,...r}:t===CA.Disabled?{...e,background:`${NA}, ${e.background}`}:e}(C((()=>e.isNull?o:RI(o,e.qAttrExps,t.qAttrExprInfoIDs)),[o,e.qAttrExps,e.isNull,t.qAttrExprInfoIDs]),n,r.selectedColors);return{cellStyle:{...a,borderColor:r.grid.border},representationStyle:i,cellSelectionState:n}},MH=ac(Mh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),DH=ac(Jh,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})((({hover:e,hoverColors:t,height:r})=>({height:r,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),TH=ac(Lh,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...HA,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"}))),qH=ac(Lh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...HA,...e,fontWeight:zA,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0}))),OH=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const{interactions:a,direction:s}=$I(_I,(e=>e.baseProps)),{onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=EH(e,t),{cellStyle:f,representationStyle:h,cellSelectionState:m}=kH(e,r),g=wH(r.id);return tr.jsx(TH,{cellStyle:{...f,opacity:g},scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${m} ${JC}`,title:a.passive?e.representation.text:void 0,onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:tr.jsx(SH,{cellSelectionState:m,children:tr.jsx(vH,{cell:e,style:h,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:GA(s,e.align)})})})},LH=({column:e,headRowHeight:t,totalsPosition:r,onKeyDown:n,onMouseDown:o})=>{const{styleService:i,interactions:a}=$I(_I,(e=>e.baseProps)),s=wH(e.id);return tr.jsx(qH,{totalsStyle:{...i.totalRow,...mz(i,r,!1),opacity:s},headRowHeight:t,atTop:r.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${JC}`,tabIndex:-1,title:a.passive?e.totalInfo:void 0,onKeyDown:n,onMouseDown:o,children:tr.jsx(_z,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},NH=()=>{const{columns:e,totalsPosition:t,rows:r}=$I(_I,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,interactions:a,direction:s}=$I(_I,(e=>e.baseProps)),l=$I(_I,(e=>e.headRowHeight)),u=$I(_I,(e=>e.setFocusedCellCoord)),c=!!o?.isModal(),d=!!a.active;return tr.jsx(Jh,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,o)=>{const a=[t.atTop?1:r.length+1,o];return tr.jsx(LH,{column:e,headRowHeight:l,totalsPosition:t,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case ZC.C:vF(r);break;case ZC.Space:r.preventDefault();break;default:yF(e)}else kC(r)})({evt:e,rootElement:n,cellCoord:a,setFocusedCellCoord:u,isSelectionMode:c,isInteractionEnabled:d,direction:s})},onMouseDown:()=>{Pz(a,n,u,i)}},e.id)}))})};var jH=O(NH);const _H=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{const{rows:n,columns:o,totalsPosition:i}=$I(_I,(e=>e.tableData)),{selectionsAPI:a,keyboard:s,layout:l,styleService:u}=$I(_I,(e=>e.baseProps)),c=$I(_I,(e=>e.selectionDispatch)),d=!!SI(l)?.content?.hoverEffect;DF({keyboard:s,selectionDispatch:c,selectionsAPI:a,updateShouldRefocus:e,tableWrapperRef:t});const p=(e=>{const t=T((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);r?.(e)}))}),{root:e.current})),[e]);return IF(t)})(t),f=MF();return tr.jsxs(MH,{lastRowBottomBorder:u.grid.lastRowBottomBorder,children:[i.atTop?tr.jsx(jH,{}):void 0,n.map(((e,t)=>tr.jsx(DH,{hoverColors:u.grid.hoverColors,hover:d,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:u.contentMinRowHeight,children:o.map(((t,n)=>{const{id:o}=t,i=e[n];return tr.jsx(OH,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:p,resizeObserverTaskScheduler:f},o)}))},`row-${t}`))),i.atBottom?tr.jsx(jH,{}):void 0]})};var zH=O(_H);const FH=(e,t)=>!!e.viewState?.skipHeader||!!t.hideHeader,HH=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:s,translator:l,direction:u}=$I(_I,(e=>e.baseProps)),c=$I(_I,(e=>e.columnWidths)),d=$I(_I,(e=>e.setColumnWidths));if(!s.active)return null;return tr.jsx(GI,{columnWidth:c[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{r?.();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a(t,e)},handleBlur:e=>{(e=>{Sz(e);const t=e.closest(".sn-table-cell");Cz(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:l,columnLabel:i},direction:u})},$H=e=>e.target?.getAttribute("class")?.includes(QC),BH=({isInteractionEnabled:e,column:t})=>{const[r,n]=w(!1),{changeSortOrder:o}=$I(_I,(e=>e.baseProps)),i=$I(_I,(e=>e.isAdjustingWidth)),a=$I(_I,(e=>e.setIsAdjustingWidth));return{open:r,setOpen:n,handleOpenMenu:t=>{!e||$H(t)||i||n(!0)},setIsAdjustingWidth:a,toggleSortOrder:r=>{e&&!$H(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o(t,"A"===t.sortDirection?"D":"A"))}}};var WH=Object.defineProperty,VH=Object.defineProperties,UH=Object.getOwnPropertyDescriptors,GH=Object.getOwnPropertySymbols,YH=Object.prototype.hasOwnProperty,KH=Object.prototype.propertyIsEnumerable,XH=(e,t,r)=>t in e?WH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,JH=(e,t)=>{for(var r in t||(t={}))YH.call(t,r)&&XH(e,r,t[r]);if(GH)for(var r of GH(t))KH.call(t,r)&&XH(e,r,t[r]);return e},ZH=(e,t)=>VH(e,UH(t)),QH=class extends wO{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return ZH(JH({},e),{[t]:r})}};QH.configure=$T(QH);var e$=QH;e$.configure({axis:"x",value:0});var t$=e$.configure({axis:"y",value:0}),r$=class extends wO{apply({transform:e}){var t;const{size:r=20}=null!=(t=this.options)?t:{},n="number"==typeof r?r:r.x,o="number"==typeof r?r:r.y;return ZH(JH({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};r$.configure=$T(r$);var n$=Object.create,o$=Object.defineProperty,i$=Object.defineProperties,a$=Object.getOwnPropertyDescriptor,s$=Object.getOwnPropertyDescriptors,l$=Object.getOwnPropertySymbols,u$=Object.prototype.hasOwnProperty,c$=Object.prototype.propertyIsEnumerable,d$=e=>{throw TypeError(e)},p$=(e,t,r)=>t in e?o$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f$=["class","method","getter","setter","accessor","field","value","get","set"],h$=e=>void 0!==e&&"function"!=typeof e?d$("Function expected"):e,m$=(e,t,r,n,o)=>({kind:f$[e],name:t,metadata:n,addInitializer:e=>r._?d$("Already initialized"):o.push(h$(e||null))}),g$=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},b$=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=f$[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,a$({get[r](){return y$(this,i)},set[r](e){return S$(this,i,e)}},r)),b=n.length-1;b>=0;b--)(u=m$(d,r,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>r in e},c.get=e=>e[r],c.set=(e,t)=>e[r]=t,s=(0,n[b])({get:g.get,set:g.set},u),l._=1,void 0===s?h$(s)&&(g[f]=s):"object"!=typeof s||null===s?d$("Object expected"):(h$(a=s.get)&&(g.get=a),h$(a=s.set)&&(g.set=a),h$(a=s.init)&&h.unshift(a));return g&&o$(o,r,g),o},v$=(e,t,r)=>t.has(e)||d$("Cannot "+r),y$=(e,t,r)=>(v$(e,t,"read from private field"),t.get(e)),x$=(e,t,r)=>t.has(e)?d$("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),S$=(e,t,r,n)=>(v$(e,t,"write to private field"),t.set(e,r),r);function w$(e){return e instanceof J$||e instanceof X$}var C$=Object.defineProperty,E$=Object.defineProperties,R$=Object.getOwnPropertyDescriptors,P$=Object.getOwnPropertySymbols,A$=Object.prototype.hasOwnProperty,I$=Object.prototype.propertyIsEnumerable,k$=(e,t,r)=>t in e?C$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M$=(e,t)=>{for(var r in t||(t={}))A$.call(t,r)&&k$(e,r,t[r]);if(P$)for(var r of P$(t))I$.call(t,r)&&k$(e,r,t[r]);return e},D$=(e,t)=>E$(e,R$(t));function T$(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function q$(e,t){return function(e,t,r){var n,o;const{source:i,target:a,canceled:s}=t.operation;if(!i||!a||s)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const t=e.findIndex((e=>l(e,i.id))),n=e.findIndex((e=>l(e,a.id)));if(-1===t||-1===n)return e;if(!s&&"index"in i&&"number"==typeof i.index){const n=i.index;if(n!==t)return r(e,t,n)}return r(e,t,n)}const u=Object.entries(e);let c,d,p=-1,f=-1;for(const[e,t]of u)if(-1===p&&(p=t.findIndex((e=>l(e,i.id))),-1!==p&&(c=e)),-1===f&&(f=t.findIndex((e=>l(e,a.id))),-1!==f&&(d=e)),-1!==p&&-1!==f)break;if(!i.manager)return e;const{dragOperation:h}=i.manager,m=null!=(o=null==(n=h.shape)?void 0:n.current.center)?o:h.position.current;if(null==d&&a.id in e){const t=a.shape&&m.y>a.shape.center.y?e[a.id].length:0;d=a.id,f=t}if(null==c||null==d||c===d&&p===f)return"preventDefault"in t&&t.preventDefault(),e;if(c===d)return D$(M$({},e),{[c]:r(e[c],p,f)});const g=a.shape&&Math.round(m.y)>Math.round(a.shape.center.y)?1:0,b=e[c][p];return D$(M$({},e),{[c]:[...e[c].slice(0,p),...e[c].slice(p+1)],[d]:[...e[d].slice(0,f+g),b,...e[d].slice(f+g)]})}(e,t,T$)}var O$="__default__";function L$(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function N$(e,t){return e.index-t.index}function j$(e){return Array.from(e).sort(N$)}var _$,z$,F$,H$,$$,B$,W$,V$,U$=[class extends WT{constructor(e){super(e);const t=jM((()=>{const{dragOperation:t}=e;if(iN(t.activatorEvent)&&w$(t.source)&&t.status.initialized){const t=e.registry.plugins.get(Oj);if(t)return t.disable(),()=>t.enable()}})),r=e.monitor.addEventListener("dragmove",((e,t)=>{queueMicrotask((()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:r}=t;if(!iN(e.nativeEvent))return;if(!w$(r.source))return;if(!r.shape)return;const{actions:n,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:r}=e;if(t>0)return"right";if(t<0)return"left";if(r>0)return"down";if(r<0)return"up"}(a),{source:l,target:u}=r,{center:c}=r.shape.current,d=[],p=[];vM((()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&w$(e)||!e.element)continue;let r=e.shape;const n=new tN(e.element,{getBoundingClientRect:e=>WO(e,void 0,.2)});n.height&&n.width&&(("down"==s&&c.y+10<n.center.y||"up"==s&&c.y-10>n.center.y||"left"==s&&c.x-10>n.center.x||"right"==s&&c.x+10<n.center.x)&&(d.push(e),e.shape=n,p.push((()=>e.shape=r))))}})),e.preventDefault(),o.disable();const f=o.computeCollisions(d,uN);vM((()=>p.forEach((e=>e()))));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:b}=l.sortable;n.setDropTarget(m).then((()=>{const{source:e,target:t,shape:i}=r;if(!e||!w$(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,u=g!==a||b!==s,c=u?l:null==t?void 0:t.element;if(!c)return;YL(c);const d=new tN(c);if(!d)return;const p=nT.delta(d,nT.from(i.current.boundingRectangle),e.alignment);n.move({by:p}),u?n.setDropTarget(e.id).then((()=>o.enable())):o.enable()}))}))}));this.destroy=()=>{r(),t()}}},class extends WT{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof J$){const{sortable:e}=r,{group:n}=e;let o=t.get(n);o||(o=new Set,t.set(n,o)),o.add(e)}for(const[e,r]of t)t.set(e,new Set(j$(r)));return t},r=[e.monitor.addEventListener("dragover",((e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!w$(o)||!w$(i))return;if(o.sortable===i.sortable)return;const a=t(),s=o.sortable.group===i.sortable.group,l=a.get(o.sortable.group),u=s?l:a.get(i.sortable.group);l&&u&&queueMicrotask((()=>{e.defaultPrevented||r.renderer.rendering.then((()=>{var n,c,d;const p=t();for(const[e,t]of a.entries()){const r=Array.from(t).entries();for(const[t,o]of r)if(o.index!==t||o.group!==e||!(null==(n=p.get(e))?void 0:n.has(o)))return}const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!s&&i.id===o.sortable.group)return;const m=j$(l),g=s?m:j$(u),b=null!=(c=o.sortable.group)?c:O$,v=null!=(d=i.sortable.group)?d:O$,y={[b]:m,[v]:g},x=q$(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);r.collisionObserver.disable(),L$(f,S,h,w),vM((()=>{for(const[e,t]of x[b].entries())t.index=e;if(!s)for(const[e,t]of x[v].entries())t.group=i.sortable.group,t.index=e})),r.actions.setDropTarget(o.id).then((()=>r.collisionObserver.enable()))}))}))})),e.monitor.addEventListener("dragend",((e,r)=>{if(!e.canceled)return;const{dragOperation:n}=r,{source:o}=n;w$(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask((()=>{const e=t(),n=e.get(o.sortable.initialGroup);n&&r.renderer.rendering.then((()=>{for(const[t,r]of e.entries()){const e=Array.from(r).entries();for(const[r,n]of e)if(n.index!==r||n.group!==t)return}const t=j$(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(L$(r,i.index,a,o.index),vM((()=>{for(const[t,r]of e.entries()){const e=Array.from(r).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}})))}))})))}))];this.destroy=()=>{for(const e of r)e()}}}],G$={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},Y$=new class{constructor(){ED(this,qD,new WeakMap)}get(e,t){var r;return e?null==(r=CD(this,qD).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return CD(this,qD).has(e)||CD(this,qD).set(e,new Map),null==(n=CD(this,qD).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=CD(this,qD).get(e))?void 0:t.clear():void 0}};z$=[kD],_$=[kD];var K$=class{constructor(e,t){x$(this,H$,g$(F$,8,this)),g$(F$,11,this),x$(this,$$),x$(this,B$),x$(this,W$,g$(F$,12,this)),g$(F$,15,this),x$(this,V$),this.register=()=>(vM((()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)})),()=>this.unregister()),this.unregister=()=>{vM((()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)}))},this.destroy=()=>{vM((()=>{this.droppable.destroy(),this.draggable.destroy()}))};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=G$,plugins:u=U$}=r,c=((e,t)=>{var r={};for(var n in e)u$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&l$)for(var n of l$(e))t.indexOf(n)<0&&c$.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new J$(c,t,this),this.draggable=new X$(((e,t)=>i$(e,s$(t)))(((e,t)=>{for(var r in t||(t={}))u$.call(t,r)&&p$(e,r,t[r]);if(l$)for(var r of l$(t))c$.call(t,r)&&p$(e,r,t[r]);return e})({},c),{effects:()=>[()=>{var e,t,r;const n=null==(e=this.manager)?void 0:e.dragOperation.status;(null==n?void 0:n.initializing)&&this.id===(null==(r=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:r.id)&&Y$.clear(this.manager),(null==n?void 0:n.dragging)&&Y$.set(this.manager,this.id,xM((()=>({initialIndex:this.index,initialGroup:this.group}))))},()=>{const{index:e,group:t,manager:r}=this,n=y$(this,B$),o=y$(this,$$);e===n&&t===o||(S$(this,B$,e),S$(this,$$,t),this.animate())},()=>{const{target:e}=this,{feedback:t,isDragSource:r}=this.draggable;"move"==t&&r&&(this.droppable.disabled=!e)},()=>{const{manager:e}=this;for(const t of u)null==e||e.registry.register(t)},...n()],type:s,sensors:a}),t,this),S$(this,V$,c.element),this.manager=t,this.index=i,S$(this,B$,i),this.group=o,S$(this,$$,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=Y$.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=Y$.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){xM((()=>{const{manager:e,transition:t}=this,{shape:r}=this.droppable;if(!e)return;const{idle:n}=e.dragOperation.status;r&&t&&(!n||t.idle)&&e.renderer.rendering.then((()=>{const{element:n}=this;if(!n)return;const o=this.refreshShape();if(!o)return;const i=r.boundingRectangle.left-o.boundingRectangle.left,a=r.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=NL(n),l=XL(n,s,!1),u=XL(n,s);(i||a)&&KL({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:t}).then((()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)}))}))}))}get manager(){return this.draggable.manager}set manager(e){vM((()=>{this.draggable.manager=e,this.droppable.manager=e}))}set element(e){vM((()=>{const t=y$(this,V$),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),S$(this,V$,e)}))}get element(){var e,t;const r=y$(this,V$);if(r)return null!=(t=null!=(e=ZO.get(r))?e:r)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set feedback(e){this.draggable.feedback=e}set disabled(e){vM((()=>{this.droppable.disabled=e,this.draggable.disabled=e}))}set data(e){vM((()=>{this.droppable.data=e,this.draggable.data=e}))}set handle(e){this.draggable.handle=e}set id(e){vM((()=>{this.droppable.id=e,this.draggable.id=e}))}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:lN}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){vM((()=>{this.droppable.type=e,this.draggable.type=e}))}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};F$=[,,,n$(null)],H$=new WeakMap,$$=new WeakMap,B$=new WeakMap,W$=new WeakMap,V$=new WeakMap,b$(F$,4,"index",z$,K$,H$),b$(F$,4,"group",_$,K$,W$),((e,t)=>{return p$(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(F$,K$);var X$=class extends R_{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}},J$=class extends P_{constructor(e,t,r){super(e,t),this.sortable=r}},Z$=Object.defineProperty,Q$=Object.defineProperties,eB=Object.getOwnPropertyDescriptors,tB=Object.getOwnPropertySymbols,rB=Object.prototype.hasOwnProperty,nB=Object.prototype.propertyIsEnumerable,oB=(e,t,r)=>t in e?Z$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,iB=(e,t)=>{for(var r in t||(t={}))rB.call(t,r)&&oB(e,r,t[r]);if(tB)for(var r of tB(t))nB.call(t,r)&&oB(e,r,t[r]);return e};function aB(e){const{accept:t,collisionDetector:r,collisionPriority:n,id:o,data:i,element:a,handle:s,index:l,group:u,disabled:c,feedback:d,modifiers:p,sensors:f,target:h,type:m}=e,g=iB(iB({},G$),e.transition),b=function(e){var t;const r=null!=(t=W_())?t:void 0,[n]=w((()=>e(r)));return n.manager!==r&&(n.manager=r),I_(n.register,[r,n]),n}((t=>new K$(((e,t)=>Q$(e,eB(t)))(iB({},e),{transition:g,register:!1,handle:A_(s),element:A_(a),target:A_(h),feedback:d}),t))),v=D_(b,sB);return O_(o,(()=>b.id=o)),I_((()=>{vM((()=>{b.group=u,b.index=l}))}),[b,u,l]),O_(m,(()=>b.type=m)),O_(t,(()=>b.accept=t),void 0,ID),O_(i,(()=>i&&(b.data=i))),O_(l,(()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()}),T_),L_(s,(e=>b.handle=e)),L_(a,(e=>b.element=e)),L_(h,(e=>b.target=e)),O_(c,(()=>b.disabled=!0===c)),O_(f,(()=>b.sensors=f)),O_(r,(()=>b.collisionDetector=r)),O_(n,(()=>b.collisionPriority=n)),O_(d,(()=>b.feedback=null!=d?d:"default")),O_(g,(()=>b.transition=g),void 0,ID),O_(p,(()=>b.modifiers=p),void 0,ID),O_(e.alignment,(()=>b.alignment=e.alignment)),{sortable:v,get isDragging(){return v.isDragging},get isDropping(){return v.isDropping},get isDragSource(){return v.isDragSource},get isDropTarget(){return v.isDropTarget},handleRef:T((e=>{b.handle=null!=e?e:void 0}),[b]),ref:T((e=>{var t,r;(e||!(null==(t=b.element)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.element=null!=e?e:void 0)}),[b]),sourceRef:T((e=>{var t,r;(e||!(null==(t=b.source)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.source=null!=e?e:void 0)}),[b]),targetRef:T((e=>{var t,r;(e||!(null==(t=b.target)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.target=null!=e?e:void 0)}),[b])}}function sB(e,t,r){return!("isDragSource"!==e||r||!t)}const lB=({invert:e})=>({dragOperation:t,droppable:r})=>{if(!r.shape)return null;const{shape:n}=t;if(!n)return null;const o=function(e){return e.sortable?.index}(r);if(void 0===o)return null;const i=function(e){return e.source.index}(t);if(void 0===i)return null;if(i===o)return null;const a=i<o!==e?"right":"left",{center:s,boundingRectangle:l}=n.current;return"left"===a&&l.left+.3*l.width<=r.shape.center.x||"right"===a&&l.right-.3*l.width>=r.shape.center.x?{id:r.id,value:1/rT.distance(r.shape.center,s),type:fq.Collision,priority:pq.Normal}:null},uB=(e,t)=>{const{interactions:r,direction:n}=$I(_I,(e=>e.baseProps)),{flags:o}=$I(_I,(e=>e.env)),i=!r.active||!o.isEnabled("TLV-1531_DRAG_AND_DROP_COLUMNS");return aB({id:e.id,disabled:i,index:t,type:"item",accept:"item",group:"column",modifiers:[t$],data:e,feedback:"clone",collisionDetector:lB({invert:"rtl"===n})})},cB=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a,direction:s}=$I(_I,(e=>e.baseProps)),{columns:l,totalsPosition:u}=$I(_I,(e=>e.tableData)),c=$I(_I,(e=>e.columnWidths[t])),d=$I(_I,(e=>e.baseProps.selectionsAPI?.isModal())),p=$I(_I,(e=>e.setFocusedCellCoord)),f=$I(_I,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),h=!!n.active&&!d,{open:m,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v,toggleSortOrder:y}=BH({isInteractionEnabled:h,column:e}),{ref:x,handleRef:S,isDragging:w}=uB(e,t),C=wH(e.id),E=hz(),R=E?zz:aF,P=e.isActivelySorted?RA[e.sortDirection]:void 0,A=m?XC:void 0,I=m?"true":void 0,k=t===r-1,M=[0,e.pageColIdx],D={width:c,zIndex:l.length-t},T=f&&0===t&&!i.enabled&&h?0:-1;return tr.jsxs(kz,{"data-dragging":w,ref:x,headerStyle:{...a.header,...mz(a,u,!0),opacity:C},background:E&&m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:D,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${JC}`,tabIndex:T,title:n.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case ZC.C:vF(r);break;case ZC.Enter:case ZC.Space:n?.(r);break;default:yF(e)}else kC(r)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:p,isInteractionEnabled:h,handleOpenMenu:b,direction:s})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&Pz(r,t,n,o)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:p,keyboard:i,isInteractionEnabled:h})},onClick:E?b:y,"aria-sort":P,"aria-controls":A,"aria-expanded":I,"aria-haspopup":"true",children:[tr.jsx(R,{ref:S,column:e,isInteractionEnabled:h,open:m,setOpen:g,isPagination:!0}),tr.jsx(HH,{column:e,isLastColumn:k,setIsAdjustingWidth:v})]},e.id)},dB=()=>{const{columns:e}=$I(_I,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=$I(_I,(e=>e.baseProps)),o=$I(_I,(e=>e.setHeadRowHeight)),i=$I(_I,(e=>e.columnWidths)),a=D(null),s=FH(r,n);return E((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),tr.jsx(Vh,{style:{visibility:s?"collapse":void 0},children:tr.jsx(Jh,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map(((t,r)=>tr.jsx(cB,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var pB=O(dB);const fB=e=>{const{pageInfo:t,setPageInfo:r,footerContainer:n,announce:o}=e,{page:i,rowsPerPage:a}=t,{totalColumnCount:s,totalRowCount:l,totalPages:u,paginationNeeded:c,rows:d,columns:p}=$I(_I,(e=>e.tableData)),{rootElement:f,keyboard:h,translator:m,theme:g,interactions:b,styleService:v,viewService:y,layout:x,rect:S,direction:w}=$I(_I,(e=>e.baseProps)),C=$I(_I,(e=>e.setYScrollbarWidth)),R=$I(_I,(e=>e.showRightBorder)),P=$I(_I,(e=>e.selectionDispatch)),A=$I(_I,(e=>e.baseProps.selectionsAPI?.isModal())),I=D(!1),k=D(null),M=D(null),{yScrollbarWidth:q}=CF(k),O=`${m.get("SNTable.Accessibility.RowsAndColumns",[String(d.length),String(p.length)])} ${m.get("SNTable.Accessibility.NavigationInstructions")}`,L=LP(x,y),N=L?y.scrollLeft??0:0,j=L?y.rowPartialHeight??0:0,_=T((()=>{I.current=f.getElementsByTagName("table")[0].contains(document.activeElement)}),[f]),z=T((e=>{r({...t,page:e}),o({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),u.toString()]],politeness:"assertive"})}),[t,r,u,o]),F=T((e=>{r({...t,page:0,rowsPerPage:e}),o({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[o,t,r]);return bF(k,w,y),((e,t)=>{const{keyboard:r}=$I(_I,(e=>e.baseProps));E((()=>{const n=e.current;if(!n)return;const o=e=>{Az(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(M,I),(()=>{const{rootElement:e,keyboard:t}=$I(_I,(e=>e.baseProps)),r=$I(_I,(e=>e.focusedCellCoord));BC((()=>{const n=yz(e,r);t.active?Cz(n):(n?.blur(),wz(e))}),[t.active,e])})(),gF(I,o,i),E((()=>{const e=k.current;e&&(e.scrollLeft=N,e.scrollTop=j)}),[t,l,N,j]),hF((()=>{C(q)}),[q]),hF((()=>{P({type:EA.UpdatePageRows,payload:{pageRows:d}})}),[d]),mF(),tr.jsxs(fF,{children:[tr.jsxs(Oz,{ref:M,dir:w,onKeyDown:e=>{SF({evt:e,totalRowCount:l,page:i,rowsPerPage:a,handleChangePage:z,updateShouldRefocus:_,keyboard:h,isSelectionMode:A})},"data-testid":"sn-table",children:[tr.jsx(AF,{}),tr.jsxs(RF,{ref:k,className:"sn-table-container",fullHeight:!!n||!b.active||!c,interactions:b,tabIndex:-1,role:"application","data-testid":"table-container",children:[tr.jsxs(PF,{stickyHeader:!0,"aria-label":O,borderRight:R?`1px solid ${v.grid.border}`:void 0,children:[tr.jsx(pB,{}),tr.jsx(zH,{...e,updateShouldRefocus:_,tableWrapperRef:M})]}),tr.jsx(fz,{})]}),tr.jsx(mM,{footerContainer:n,pageInfo:t,paginationNeeded:c,theme:g,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:h,translator:m,interactions:b,rect:S,layout:x,handleChangePage:z,handleChangeRowsPerPage:F,isSelectionMode:A,direction:w})]}),tr.jsx(cF,{isPagination:!0})]})};var hB=O(fB);function mB(){return mB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mB.apply(null,arguments)}function gB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bB(e,t){return bB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bB(e,t)}function vB(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bB(e,t)}var yB=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function xB(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||yB(n)&&yB(o)))return!1;var n,o;return!0}function SB(e,t){var r;void 0===t&&(t=xB);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}function wB(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}var CB="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function EB(e){cancelAnimationFrame(e.id)}function RB(e,t){var r=CB();var n={id:requestAnimationFrame((function o(){CB()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var PB=-1;function AB(e){if(void 0===e&&(e=!1),-1===PB||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),PB=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return PB}var IB=null;function kB(e){if(void 0===e&&(e=!1),null===IB||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?IB="positive-descending":(t.scrollLeft=1,IB=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),IB}return IB}var MB=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function DB(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,gB(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:gB(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=SB((function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=SB((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=n._getItemStyleCache(m&&s,m&&l,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=SB((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(kB()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&EB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=RB(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}vB(t,e),t.getDerivedStateFromProps=function(e,t){return TB(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=AB();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?l(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(kB()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&EB(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?MB:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],C=S[1],E=this._getVerticalRangeToRender(),P=E[0],A=E[1],I=[];if(n>0&&g)for(var k=P;k<=A;k++)for(var M=w;M<=C;M++)I.push(R(t,{columnIndex:M,data:d,isScrolling:v?x:void 0,key:f({columnIndex:M,data:d,rowIndex:k}),rowIndex:k,style:this._getItemStyle(k,M)}));var D=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return R(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:mB({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(u||c||"div",{children:I,ref:l,style:{height:D,pointerEvents:x?"none":void 0,width:T}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(z),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var TB=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},qB=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},OB=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},LB=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},NB=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?jB(e,t,r,i,0,n):_B(e,t,r,Math.max(0,i),n)},jB=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=LB(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},_B=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&LB(e,t,n,r).offset<o;)n+=a,a*=2;return jB(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},zB=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=LB(e,t,r,i),u="column"===e?OB(t,i):qB(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},FB=DB({getColumnOffset:function(e,t,r){return LB("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return NB("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=LB("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=LB("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:qB,getEstimatedTotalWidth:OB,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return zB("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return zB("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return LB("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return NB("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=LB("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=LB("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),HB=function(e,t){return e};function $B(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,gB(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:gB(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=SB((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=SB((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,c=n._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=SB((function(e,t,r){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(kB()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&EB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=RB(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}vB(t,e),t.getDerivedStateFromProps=function(e,t){return BB(e,t),c(e),null};var d=t.prototype;return d.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)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?AB():0:l.scrollHeight>l.clientHeight?AB():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(kB()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&EB(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?HB:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),C=w[0],E=w[1],P=[];if(u>0)for(var A=C;A<=E;A++)P.push(R(t,{data:c,key:p(A,c),index:A,isScrolling:b?y:void 0,style:this._getItemStyle(A)}));var I=n(this.props,this._instanceProps);return R(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:mB({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(s||l||"div",{children:P,ref:a,style:{height:x?"100%":I,pointerEvents:y?"none":void 0,width:x?I:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(z),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var BB=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},WB=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=n(l);o[l]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},VB=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=WB(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},UB=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&WB(e,r,t).offset<n;)r+=i,i*=2;return VB(e,t,Math.min(r,o-1),Math.floor(r/2),n)},GB=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},YB=$B({getItemOffset:function(e,t,r){return WB(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:GB,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=WB(e,t,o),p=GB(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?VB(e,t,o,0,r):UB(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=WB(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=WB(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function KB(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var XB=["style"],JB=["style"];function ZB(e,t){var r=e.style,n=wB(e,XB),o=t.style,i=wB(t,JB);return!KB(r,o)&&!KB(n,i)}const QB=({style:e})=>tr.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var eW=x.memo(QB,ZB);const tW=()=>{},rW=e=>{e.preventDefault()};const nW=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=$I(_I,(e=>e.hoverIndex===t)),d=$I(_I,(e=>e.setHoverIndex)),{interactions:p,styleService:f,direction:h}=$I(_I,(e=>e.baseProps)),m=$I(_I,(e=>e.showRightBorder)),g=o[t]?.[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=$I(_I,(e=>e.baseProps)),r=$I(_I,(e=>e.selectionDispatch)),n="object"==typeof e,o=$I(_I,(t=>n?RH(e,t.selectionState):CA.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=CH(rW,e,r,tW);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=D(null),i=r&&!r.isNumeric,a=T((r=>{const o=Uz(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return Gz(o,a),o})(t,e,g,s),w=i[e]?.isDim?f.dimension.values:f.measure.values,C=wH(i[e].id);if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=IH(o,i,e);a=PH(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?RI(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===CA.Selected?{...s,...i.selectedColors}:n===CA.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${NA}, ${r?i.grid.hoverColors?.background:s.background}`}:r?{...s,...i.grid.hoverColors}:s})(g,i[e],a&&c,x,w,f),o={rowindex:t,columnindex:e};return tr.jsx("div",{className:`sn-table-cell ${x} ${JC}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:f.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:YA(h,g.isLastColumn,m),borderLeftWidth:KA(h,g.isLastColumn,m),justifyContent:WA(g,h),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:g.align,opacity:C},onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:a?()=>{d(t)}:void 0,onMouseLeave:a?()=>{d(-1)}:void 0,title:p.passive?g.representation.text:void 0,...o,children:tr.jsx(SH,{cellSelectionState:x,children:tr.jsx(vH,{forwardRef:f.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return tr.jsx(eW,{style:{...r,...w,borderColor:f.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:C}})};var oW=O(nW,ZB);const iW=e=>{const t=D(e);return t.current=e,t},aW=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,sW=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if(t?.rowIdx!==o)return!0}return!1},lW=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},uW=(e,t,r,n,o,i,a,s)=>{e.forEach((e=>{e.qMatrix.forEach(((l,u)=>{const c=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,s,l,u)=>{const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=e[p]??[];return t.forEach(((e,t)=>{const r=t+n.qLeft;if(f.at(r))return;const{colIdx:o,isDim:h,isLocked:m,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],w=PP(h,e,a),C=!h&&e.qIsNull,E=C?qR(w):TR(e);f[r]={id:kR(),...e,align:qP(E,g,u),rowIdx:d,colIdx:o,isSelectable:h&&!m,pageRowIdx:p,pageColIdx:r,selectionColIdx:b,isLastRow:d===c.qcy-1,isLastColumn:r===c.qcx-1,isNumeric:E,isNull:(!C||!E)&&RP(e,h),representation:EP({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[qE.Image]:!0,[qE.Indicator]:!0,[qE.MiniChart]:!0}})},l(f[r],d,r)})),{row:f,pageRowIdx:p}})(r,l,u,e.qArea,c,n,o,i,a,s);r[p]=d}))}))},cW=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:s,columns:l,gridState:u,setEstimatedCellHeight:c})=>{const d=$I(_I,(e=>e.env)),{direction:p}=$I(_I,(e=>e.baseProps)),f=D([]),h=T(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return uW(t,o,n,l,e,d,c,p),f.current=n,n}),[i,o,l,e,d,c,p]),[m,g]=w((()=>h(n??[])));BC((()=>{g(h(n??[]))}),[n,p]);const b=((e,t)=>{const r=D(new Set),n=D(new Set),o=D(new Set),i=iW(e),a=iW(t),s=C((()=>({enqueue:e=>{const t=aW(e);o.current.has(t)||(r.current.add(e),o.current.add(t),1===r.current.size&&setTimeout((async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),n.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),r=await i.current(t);n.current.has(e)&&a.current(r)}catch(t){e.forEach((e=>{o.current.delete(aW(e))})),console.error("Failed to fetch pages",t)}finally{n.current.delete(e)}}}),75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}})),[i,a]);return s})((e=>t&&"getHyperCubeData"in t?t.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([])),(e=>{g((t=>h(e,t)))})),v=T(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(lW(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[f,b]),y=T(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(sW(f.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[f,b,o]);return E((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=u.current.overscanRowStartIndex,i=u.current.overscanColumnStartIndex,l=n+o.page*o.rowsPerPage,c=t-i,d=o.rowsPerPage-n,p=Math.min(100,c,t,s+5),f=Math.min(100,d,r,a+25);return y(i,l,p,f),()=>{b.clear()}}),[e,a,s,o,b,y,u,r]),{rowsInPage:m,loadRows:y,loadColumns:v}},dW=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},pW=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,fW=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=$I(_I,(e=>e.baseProps.styleService)),i=$I(_I,(e=>e.columnWidths)),{estimateLineCount:a}=zC(o.dimension.values),s=qI(o.dimension.values.fontSize),l=e||t||1===r;return T(((e,t,o)=>{if(l||e.representation.type===qE.Image||e.isNumeric)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(r,Math.max(1,c));n(d*s,t,o)}),[l,i,a,r,s,n])},hW=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0,viewService:o})=>{L((()=>{const i=e?n:(e=>{let t=0;e.forEach((e=>{t+=e}));const r=0===e.size?0:t/e.size;return Math.ceil(r)})(r.rowHeights);o.estimatedRowHeight=Math.max(i,t)}),[e,t,r,n,o])},mW=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=$I(_I,(e=>e.baseProps)),[a,s]=w({rowHeights:new Map,cellHeightsInGrid:new Map}),l=i.contentLineHeight,u=i.contentMinRowHeight,c=!!i.contentStaticLineCount,d=Math.max(8e6/e,u)-9,p=d+9,f=Math.max(1,Math.min(i.grid.contentLineClamp,Math.round(d/l))),h=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:f,lineHeight:l,isStaticNbrOfLines:c});(({gridRef:e,setState:t,pageInfo:r})=>{const{layout:n}=$I(_I,(e=>e.baseProps)),o=$I(_I,(e=>e.columnWidths)),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;BC((()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[n.qHyperCube.qSize.qcx,n.qHyperCube.qSize.qcy,r.page,i,a]),BC((()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[o])})({gridRef:n,setState:s,pageInfo:o});const m=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>T(((o,i,a)=>{j((()=>{e((e=>{const s=Math.max(r,o+9),l=Math.min(t,s),u=e.cellHeightsInGrid.get(i)??e.cellHeightsInGrid.set(i,new Map).get(i);if(!pW(u.get(a),l))return e;const c={...e};return u.set(a,l),c.rowHeights.set(i,dW(u)),n.current?.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),c}))}))}),[e,r,t,n]))({maxCellHeight:p,minRowHeight:u,setState:s,gridRef:n}),g=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>T(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),b=fW({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),v=T((e=>c?h??u:a.rowHeights.get(e)??u),[c,u,a.rowHeights,h]);return hW({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:h,viewService:r}),{setMeasuredCellHeight:g,setEstimatedCellHeight:b,getRowHeight:v,lineClamp:f}},gW=(e,t)=>{L((()=>()=>{t(0)}),[e,t]);const r=T((e=>{const r=Uz(e);void 0!==r&&t(r)}),[t]);Gz(e,r)};let bW=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const vW=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>T((({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=bW.None,i=bW.None;return o=n>t?bW.Down:n<t?bW.Up:bW.None,i=r>e?bW.Right:r<e?bW.Left:bW.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(i.current,s,u);if(i.current.overscanColumnStartIndex=s,i.current.overscanColumnStopIndex=l,i.current.overscanRowStartIndex=u,i.current.overscanRowStopIndex=c,u>n)return;const b=s,v=u+o.page*o.rowsPerPage,y=l-s+1,x=c-u+1;if(a.visibleLeft=d,a.visibleWidth=p-d+1,a.visibleTop=f+o.page*o.rowsPerPage,a.visibleHeight=h-f+1,a.page=o.page,a.rowsPerPage=o.rowsPerPage,m===bW.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(m===bW.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===bW.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===bW.Left){const t=Math.max(0,b-5),n=Math.min(e.qHyperCube.qSize.qcx,y+5);r(t,v,n,x)}}),[i,n,o.page,o.rowsPerPage,a,t,e.qHyperCube.qSize.qcx,r]),yW={enabled:!1},xW=()=>{},SW={current:null};const wW=(e,t,r,n,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(r.height/o)),s=C((()=>n.reduce(((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[r,n]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:s}},CW=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},EW={overflow:"hidden",willChange:"auto"};var RW=O(q(((e,t)=>{const{rect:r,columns:n,pageInfo:o,headerAndTotalsHeight:i,setInnerBodyHeight:a}=e,{layout:s,model:l,theme:u,viewService:c,styleService:d,direction:p}=$I(_I,(e=>e.baseProps)),f=$I(_I,(e=>e.columnWidths)),h=$I(_I,(e=>e.initialDataPages)),m=D(null),g=D(null),b=D({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),v=D(0),y=!!SI(s)?.content?.hoverEffect,{rowCount:x,visibleRowCount:S,visibleColumnCount:w}=wW(s,o,r,f,d.contentMinRowHeight),{setMeasuredCellHeight:R,setEstimatedCellHeight:P,getRowHeight:A,lineClamp:I}=mW({rowCount:x,isSnapshot:!!s.snapshotData,viewService:c,gridRef:m,pageInfo:o}),{rowsInPage:k,loadRows:M,loadColumns:T}=cW({layout:s,model:l,theme:u,initialDataPages:h,pageInfo:o,rowCount:x,visibleRowCount:S,visibleColumnCount:w,columns:n,gridState:b,setEstimatedCellHeight:P}),q=vW({layout:s,loadRows:M,loadColumns:T,rowCount:x,pageInfo:o,gridState:b,viewService:c}),O=MF(),N=C((()=>({rowsInPage:k,columns:n,isHoverEnabled:y,lineClamp:I,setMeasuredCellHeight:R,resizeObserverTaskScheduler:O})),[k,n,y,I,R,O]),j=((e,t)=>e.height-t)(r,i);return L((()=>{1===v.current&&m.current?.scrollToItem({rowIndex:x-1,align:"start"})})),function(e){const{selectionsAPI:t}=$I(_I,(e=>e.baseProps)),r=$I(_I,(e=>e.selectionDispatch));E((()=>{r({type:EA.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),DF({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:xW,keyboard:yW,tableWrapperRef:SW})}(k),_(t,(()=>({interpolatedScrollTo:(e,t)=>{const r=(g.current?.clientHeight??j)-j,n=Math.round(r*e);v.current=e,1===v.current?(m.current?.scrollToItem({rowIndex:x-1,align:"start"}),m.current?.scrollTo({scrollLeft:t})):m.current?.scrollTo({scrollTop:n,scrollLeft:t})}})),[g,j,x]),gW(g,a),tr.jsx(FB,{"data-key":"body",ref:m,innerRef:g,style:EW,columnCount:s.qHyperCube.qSize.qcx,columnWidth:e=>f[e],height:j,rowCount:x,rowHeight:A,estimatedRowHeight:c.estimatedRowHeight,width:r.width,itemData:N,onItemsRendered:q,itemKey:CW,className:"sn-table-body",direction:p,children:oW})})));const PW=({width:e,height:t,children:r})=>tr.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),AW=(e,t)=>{const r=D(null),n=$I(_I,(e=>e.columnWidths));L((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=T((r=>{const n=Uz(r);n&&t(n+9,e)}),[e,t]);return Gz(r,o),r},IW=ac("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:r,applicableStyle:n})=>({...n,background:r,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}}))),kW=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,{interactions:a,styleService:s,direction:l}=$I(_I,(e=>e.baseProps)),u=$I(_I,(e=>e.baseProps.selectionsAPI?.isModal())),c=$I(_I,(e=>e.showRightBorder)),d=$I(_I,(e=>e.tableData.totalsPosition)),p=!!a.active&&!u,f=n[e],{open:h,setOpen:m,handleOpenMenu:g,setIsAdjustingWidth:b,toggleSortOrder:v}=BH({isInteractionEnabled:p,column:f}),y=hz(),x=AW(e,i),S=n.length-1===e,w=y?zz:aF,{ref:C,handleRef:E,isDragging:R}=uB(f,e),P=wH(f.id);return tr.jsxs(IW,{"data-dragging":R,ref:C,className:`sn-table-cell ${JC}`,title:a.passive?f.label:void 0,onClick:y?g:v,applicableStyle:{...s.header,...mz(s,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:YA(l,S,c),borderLeftWidth:KA(l,S,c),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:f.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===f.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:P},interactions:a,hoverBackground:s.headerMenuHoverBackground,background:y&&h?s.headerMenuActiveBackground:s.header.background,children:[tr.jsx(w,{ref:E,forwardRef:x,column:f,isInteractionEnabled:p,open:h,setOpen:m}),tr.jsx(HH,{column:f,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:b})]})},MW=e=>{const[t,r]=w(new Map);BC((()=>{r(new Map)}),[e.length]);const n=T(((e,t)=>{r((r=>pW(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:C((()=>dW(t)),[t]),setMeasuredCellHeight:n}},DW=(e,t)=>{_(e,(()=>({scrollTo:e=>t.current?.scrollTo(e)})),[t])},TW=(e,t,r,n,o)=>{BC((()=>{e.current?.resetAfterIndex(0,!1)}),[t,r,e,n,o])},qW={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},OW=q(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,setHeaderRowHeight:a}=e,s=x.useRef(null),l=D(null),{layout:u,theme:c,styleService:d,direction:p,viewService:f}=$I(_I,(e=>e.baseProps)),h=$I(_I,(e=>e.columnWidths)),{rowHeight:m,setMeasuredCellHeight:g}=MW(n),b=FH(f,u);return DW(t,s),TW(s,u,o,h,c),gW(l,a),tr.jsx(YB,{ref:s,outerRef:l,layout:"horizontal",style:{...qW,...b?{display:"none"}:void 0},itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>h[e],height:Math.max(m+8,d.headerMinRowHeight),width:r.width,itemKey:e=>n[e].id,itemData:{columns:n,columResizeHandler:i,setMeasuredCellHeight:g},direction:p,children:kW})}));var LW=O(OW);const NW=q(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:s}=$I(_I,(e=>e.baseProps));return tr.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:s,tabIndex:-1,children:r})})),jW=({children:e,rect:t})=>{const{direction:r}=$I(_I,(e=>e.baseProps));return tr.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==r?"0px":void 0,right:"rtl"===r?"0px":void 0,width:t.width,height:t.height},children:e})},_W=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:s,styleService:l,direction:u}=$I(_I,(e=>e.baseProps)),c=$I(_I,(e=>e.showRightBorder)),d=AW(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=a.qHyperCube.qSize.qcx-1===e,g=wH(n[e].id);return tr.jsx("div",{className:`sn-table-cell ${JC}`,title:s.passive?p:void 0,style:{...t,...l.totalRow,...mz(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:YA(u,m,c),borderLeftWidth:KA(u,m,c),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,textAlign:f,boxSizing:"border-box",cursor:"default",opacity:g},children:tr.jsx(_z,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},zW=q(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,s=D(null),l=D(null),{layout:u,theme:c,styleService:d,direction:p}=$I(_I,(e=>e.baseProps)),f=$I(_I,(e=>e.columnWidths)),{rowHeight:h,setMeasuredCellHeight:m}=MW(i);return DW(t,s),TW(s,u,n,f,c),gW(l,a),tr.jsx(YB,{ref:s,outerRef:l,layout:"horizontal",style:qW,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>f[e],height:Math.max(h,d.totalRowMinHeight),width:r.width,itemData:{columns:i,totals:o,setMeasuredCellHeight:m},direction:p,children:_W})}));var FW=O(zW);const HW=(e,t,r,n,o)=>T((i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,u=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,o),c=Math.max(0,Math.min(1,l/(a-s)));n.scrollTopRatio=c,n.scrollLeft=u,r.current?.interpolatedScrollTo(Number.isNaN(c)?0:c,u),e.current?.scrollTo(u),t.current?.scrollTo(u)}),[n,r,e,t,o]),$W=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=$I(_I,(e=>e.tableData)),{layout:i,theme:a,rect:s,viewService:l,direction:u}=$I(_I,(e=>e.baseProps)),c=$I(_I,(e=>e.columnWidths)),d=$I(_I,(e=>e.setYScrollbarWidth)),p=D(null),f=D(null),h=D(null),m=D(null),{xScrollbarWidth:g,yScrollbarWidth:b}=CF(p),v=C((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,o)),[s,o]),y=C((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(v,g,b)),[v,g,b]),{rowCount:x}=wW(i,t,y,c,0),{headerAndTotalsHeight:S,innerBodyHeight:E,setHeaderRowHeight:R,setTotalsRowHeight:P,setInnerBodyHeight:A}=(()=>{const[e,t]=w(0),[r,n]=w(0),[o,i]=w(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:I,height:k}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=$I(_I,(e=>e.baseProps)),a=e+t,s=r*i.contentMinRowHeight+t;let l=s;return s<n.height&&a>n.height&&(l=a),{width:o.reduce(((e,t)=>e+t),0),height:l}})({innerBodyHeight:E,headerAndTotalsHeight:S,rowCount:x,stickyContainerRect:y,columnWidths:c}),M=HW(f,h,m,l,u),q=T((()=>{p.current&&(p.current.scrollTop=0)}),[p]);mF(),L((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[n.length]),L((()=>{p.current&&(p.current.scrollTop=0)}),[t,x,a]),hF((()=>{d(b)}),[b]);const O=tr.jsx(FW,{rect:y,pageInfo:t,columns:n,ref:h,totals:r,setTotalsRowHeight:P},"totals");return tr.jsxs(fF,{children:[tr.jsx(NW,{ref:p,width:v.width,height:v.height,onScroll:M,children:tr.jsxs(PW,{width:I,height:k,children:[tr.jsxs(jW,{rect:y,children:[tr.jsx(LW,{rect:y,pageInfo:t,columns:n,ref:f,columResizeHandler:q,setHeaderRowHeight:R}),r.atTop?O:null,tr.jsx(RW,{ref:m,rect:y,pageInfo:t,columns:n,headerAndTotalsHeight:S,setInnerBodyHeight:A}),r.atBottom?O:null]}),tr.jsx(fz,{})]})}),tr.jsx(cF,{isPagination:!1})]})};var BW=O($W);const WW=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=$I(_I,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:s,totalColumnCount:l,totalPages:u}=$I(_I,(e=>e.tableData)),c=$I(_I,(e=>e.pageInfo)),d=$I(_I,(e=>e.setPage));return tr.jsxs(Oz,{"data-testid":"sn-table",children:[tr.jsx(BW,{pageInfo:c}),tr.jsx(mM,{paginationNeeded:a,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:t,translator:r,theme:e,interactions:n,rect:o,layout:i})]})};var VW=O(WW);var UW={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.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":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um zwischen den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerelementen zu wechseln. Drücken Sie die Leertaste in den Kopfzellen, um das Spaltenmenü zu öffnen, und drücken Sie die Leertaste in den Körperzellen, um eine Auswahl zu treffen. Duch die Auswahl wird der Seiteninhalt aktualisiert. Die vollständige Liste der Navigationssteuerungen finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate between table cells and tab to move to pagination controls. Press space on header cells to open the column menu, press space on body cells to make selections. Selections will cause content on the page to be updated. The full list of navigation controls can be found in the documentation.","es-ES":"Utilice las teclas de flecha para desplazarse entre las celdas de la tabla y la pestaña a fin de pasar a los controles de paginación. Pulse la barra espaciadora en las celdas del encabezado para abrir el menú de columnas; pulse la barra espaciadora en las celdas del cuerpo para realizar selecciones. Las selecciones harán que se actualice el contenido de la página. Encontrará la lista completa de controles de navegación en la documentación.","fr-FR":"Utilisez les touches fléchées pour naviguer parmi les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Appuyez sur la touche Espace dans les cellules d'en-tête pour ouvrir le menu de la colonne. Appuyez sur Espace dans les cellules de corps pour effectuer une sélection. Les sélections actualiseront le contenu de la page. Vous pouvez consulter la liste complète des commandes de navigation dans la documentation.","it-IT":"Utilizzare i tasti freccia per navigare tra le celle della tabella e il tasto TAB per passare ai controlli di paginazione. Premere lo spazio nelle celle dell'intestazione per aprire il menu della colonna; premere lo spazio nelle celle del corpo per effettuare selezioni. Le selezioni determineranno l'aggiornamento del contenuto della pagina. È possibile trovare l'elenco completo dei controlli di navigazione nella documentazione.","ja-JP":"矢印キーで表のセル間を移動し、タブ キーでページネーション コントロールに移動します。ヘッダー セルでスペースを押すと列メニューが開き、ボディ セルでスペースを押すと選択ができます。選択によって、ページのコンテンツが更新されます。ナビゲーション コントロールの全リストは、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 표 셀 사이를 탐색하고, 탭을 사용하여 페이지 번호 컨트롤로 이동하십시오. 헤더 셀에서 스페이스바를 눌러 열 메뉴를 열고, 본문 셀에서 스페이스바를 눌러 선택하십시오. 선택하면 페이지의 콘텐츠가 업데이트됩니다. 전체 탐색 컨트롤 목록은 설명서에서 확인할 수 있습니다.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren tussen tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Druk op de spatietoets in koptekstcellen om het kolommenu te openen, druk op de spatietoets in hoofdtekstcellen om selecties te maken. Door selecties te maken, wordt de inhoud op de pagina bijgewerkt. De volledige lijst met besturingselementen voor navigatie vindt u in de documentatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się między komórkami tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Naciśnij klawisz spacji na komórkach nagłówka, aby otworzyć menu kolumny i naciśnij go na komórkach treści, aby dokonać wyborów. Wybory będą powodować aktualizację zawartości na stronie. Pełną listę nawigacyjnych elementów sterujących można znaleźć w dokumentacji.","pt-BR":"Use as teclas de seta para navegar entre as células da tabela e a tecla Tab para mover para os controles de paginação. Pressione espaço nas células do cabeçalho para abrir o menu da coluna, pressione espaço nas células do corpo para fazer seleções. As seleções farão com que o conteúdo da página seja atualizado. A lista completa de controles de navegação pode ser encontrada na documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения между ячейками таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Нажмите пробел на ячейках заголовка, чтобы открыть меню столбца; нажмите пробел на ячейках тела, чтобы сделать выборки. Выборки приведут к обновлению содержимого страницы. Полный перечень элементов управления навигацией см. в документации.","sv-SE":"Använd piltangenterna för att navigera mellan tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Tryck på mellanslag på rubrikceller för att öppna kolumnmenyn och tryck på mellanslag på innehållsceller för att göra urval. Med urval kommer innehåll på sidan att uppdateras. Den fullständiga listan med navigeringsreglage.","tr-TR":"Tablo hücreleri arasında gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Sütun menüsünü açmak için başlık hücrelerinde boşluğa basın, seçim yapmak için gövde hücrelerinde boşluğa basın. Seçimler, sayfadaki içeriğin güncellenmesine neden olur. Navigasyon kontrollerinin tam listesi belgede bulunabilir.","zh-CN":"使用箭头键在表格单元格之间导航,使用 tab 键移动到分页控件。按标题单元格上的空间打开列菜单,按正文单元格上的空间进行选择。选择将导致页面上的内容更新。导航控件的完整列表可以在文档中找到。","zh-TW":"使用方向鍵以在表格儲存格之間導覽,並使用 Tab 以前往分頁控制。按下標頭儲存格的空白處可開啟欄功能表,按下正文儲存格的空白處可進行選取。選項將會造成更新頁面上的內容。導覽控制的完整清單可見於文件中。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.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":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl 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":"Selecties 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":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.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":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.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":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.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":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.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":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.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":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.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":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri 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":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri 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":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.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":"{1}의 {0}","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}"}},SNTable_Pagination_FirstPage:{id:"SNTable.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":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.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":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.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":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.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":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.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":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.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":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};const GW=(t,r)=>e((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(UW).forEach((t=>{e.add(UW[t])}))}(r),((e,t)=>{let r;return({keys:n,politeness:o="polite"})=>{const i=n.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),a=e.querySelector(`.${PA.First}`),s=e.querySelector(`.${PA.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===PA.First?(l=s,r=PA.Second):(l=a,r=PA.First),l.innerHTML=l.innerHTML.endsWith(" ")?i:`${i} `,l.setAttribute("aria-live",o)}})(t,r))),[t,r.language()]),YW={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},KW=e=>{const{app:r,model:i,rootElement:a,layout:s,translator:l,reactRoot:u,isFontLoaded:c,viewService:d,env:p}=e,{direction:f,footerContainer:h}=t(),m=NP(s,d),g=GW(a,l),[b,v]=n(((e,t)=>LP(e,t)?{page:t.page||YW.page,rowsPerPage:t.rowsPerPage||YW.rowsPerPage,rowsPerPageOptions:YW.rowsPerPageOptions}:YW)(s,d)),[y,x]=NC((async()=>m?async function(e,t,r,n,o,i,a,s){const{page:l,rowsPerPage:u,rowsPerPageOptions:c}=r,d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/u),h=o.visibleTop??l*u,m=o.visibleHeight??Math.min(u,p-h);if(l>0&&h>=p)return n({...r,page:0}),null;if(m*d>AP)return n({...r,rowsPerPage:IP(d,c),page:0}),null;const g=p>10,b=kP(t,o),v=OP(t,a,s),y=!!t.snapshotData,x=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=n?.qArea;return n&&o?.qLeft===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(e,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});y||(o.qTop=h,o.qHeight=m,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const S=x.at(0)?.qMatrix.map(((e,r)=>{const n=[];return v.forEach(((o,l)=>{const u=e[l],c=PP(o.isDim,u,t),d=!o.isDim&&u.qIsNull,p=d?qR(c):TR(u);n[l]={id:kR(),...u,align:qP(p,o.bodyTextAlign,s,a),rowIdx:r+h,colIdx:o.colIdx,pageRowIdx:r,pageColIdx:l,selectionColIdx:o.selectionColIdx,isSelectable:o.isDim&&!o.isLocked,isLastRow:r===m-1,isNumeric:p,isNull:(!d||!p)&&RP(u,o.isDim),representation:EP({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:s,enabledFeatures:{[qE.Image]:!0,[qE.Indicator]:!0,[qE.MiniChart]:!0}})}})),n}))??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(i,s,b,v,d,p,!0,f):null),[s,b,i,m,f]);o((()=>{m&&e.model&&e.changeSortOrder&&y&&c&&!x&&function(e,t){const{direction:r,...n}=e,o=BI(r);t.render(tr.jsx(li,{stylisPlugins:"rtl"===r?[wA]:void 0,children:tr.jsx(lc,{theme:o,children:tr.jsx(HI,{...e,children:tr.jsx(hB,{...n})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:y,pageInfo:b,setPageInfo:v,direction:f,footerContainer:h,announce:g},u)}),[g,r,f,h,c,b,u,e,m,y,x])},XW=(t,r)=>e((()=>((e,t)=>{if(t)return async(r,n)=>{if(!("getEffectiveProperties"in t))return;const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=r,u=o?i:i-e,c=await t.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){const e=c.qHyperCubeDef.qMeasures.at(u)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(p,!0)}})(t.qDimensionInfo.length,r)),[t.qDimensionInfo.length,r]);const JW=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=NC((async()=>{if(r&&e)return(async(e,t,r)=>{const{qDataPages:n}=t.qHyperCube;if(0!==r||0===n.length){const n=r*Math.min(nI,t.qHyperCube.qSize.qcy);if(e&&"getHyperCubeData"in e)return e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:n,qWidth:50,qHeight:100}])}return[...n]})(e,t,n)}),[e,t,n]);return{initialDataPages:o,isLoading:i}},ZW=t=>{const{layout:r,model:i,keyboard:a,interactions:s,reactRoot:l,isFontLoaded:u,viewService:c,direction:d}=t,p=!NP(r,c),[f,h]=n(!1);f&&h(!1);const m=e((()=>function(e,t,r,n,o){const i=OP(e,o,n),a=kP(e,r),s=e.qHyperCube.qSize.qcy,l=Math.min(nI,s),u=s>nI&&!!t.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:u}}(r,s,c,d,f)),[r,s,c,d,f]),{pageInfo:g,setPage:b}=((t,r)=>{const[o,i]=n(0),a=Math.min(nI,t.qHyperCube.qSize.qcy),s=e((()=>({page:o,rowsPerPage:a,rowsPerPageOptions:[]})),[a,o]);if(r){const e=Math.floor(t.qHyperCube.qSize.qcy/nI);e<o&&i(e)}return{pageInfo:s,setPage:i}})(r,p),{initialDataPages:v,isLoading:y}=JW({model:i,layout:r,page:g.page,shouldRender:p});o((()=>{p&&a.active&&a.blur?.(!1)}),[a,p]),o((()=>{p&&t.model&&t.changeSortOrder&&v&&!y&&u&&function(e,t){const{direction:r}=e,n=BI(r);t.render(tr.jsx(x.StrictMode,{children:tr.jsx(lc,{theme:n,children:tr.jsx(HI,{...e,children:tr.jsx(VW,{})})})}))}({...t,model:t.model,changeSortOrder:t.changeSortOrder,tableData:m,pageInfo:g,setPage:b,initialDataPages:v},l)}),[v,u,y,g,l,t,b,p,m])},QW={version:JSON.stringify("6.5.1"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};function eV(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=r.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},c=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(l,u),d=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(l,u),p=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(l,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const tV=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},rV=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const nV=(e,t,r,n)=>{if(e<0)return 0;const o=r.qHyperCube.qSize.qcy,i=n.rowsPerPage||YW.rowsPerPage,a=n.viewState?.isMultiPage?0:3;return Math.min(o,i,e-t+1+a)},oV=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=kP(e,t);if(NP(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=eV(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:nV(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=r?.getBoundingClientRect(),o=r?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=tV(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(rV(h,m,g)?d:d+1)+c;let v=p+c;const y=tV(p,o),x=y?.getBoundingClientRect();return y&&x&&(rV(x,m,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:nV(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},iV=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),aV=e=>e.getStyle("object","straightTableV2","backgroundColor");function sV(r){return{qae:{properties:{initial:QW},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>PE({...e}),exportProperties:xE,exploration:AE},ext:SR(r),component(){const n=c(),i=(t=>{const r=e((()=>FC(t)),[t]);return o((()=>()=>{r.unmount()}),[r]),r})(n),y=d(),x=p(),S=f(),w=(e=>{const t=a();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(!!y.snapshotData),C=h(),E=m(),R=g(),P=t(),{freeResize:A}=P,I=b(),k=e((()=>y.snapshotData?.content&&!A?{...I,...y.snapshotData.content.size}:I),[I,A,y.snapshotData?.content]),M=(r=>{const{viewState:n}=t();return e((()=>((e,t)=>({qTop:0,qHeight:0,rowPartialHeight:t?.content?.rowPartialHeight??0,visibleTop:t?.content?.visibleTop??e?.visibleTop,visibleHeight:t?.content?.visibleHeight??e?.visibleHeight,scrollLeft:t?.content?.scrollLeft??e?.scrollLeft??0,scrollTopRatio:t?.content?.scrollTopRatio??e?.scrollTopRatio,rowsPerPage:t?.content?.rowsPerPage??e?.rowsPerPage,page:t?.content?.page??e?.page,viewState:e,estimatedRowHeight:t?.content?.estimatedRowHeight??0}))(n,r.snapshotData)),[n,r.snapshotData,r.usePagination])})(y),D=v(),T=LC(y,n,iV,aV),q=P.direction,O=XW(y.qHyperCube,S),L=wR(y.qHyperCube,S),N=((e,t,r)=>{const[,n,o]=NC((async()=>{const t=ve(r.flags),n=e.getStyle("","","fontFamily"),o=e.getStyle("object","label.name","fontFamily"),i=e.getStyle("object","label.value","fontFamily"),a=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...a,n,o,i,$C].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n})(T,y,r),j=Dt(),_={app:x,layout:y,model:S,rect:k,theme:T,keyboard:R,translator:C,interactions:w,selectionsAPI:E,changeSortOrder:O,rootElement:n,embed:D,reactRoot:i,applyColumnWidths:L,isFontLoaded:N,downloadService:j,viewService:M,direction:q,env:r};s?.(((e,t)=>{const r=t.target,n=r?.closest(`.${JC}`);n?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{sE(n)}})})),(({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{l((async i=>{const a=i;if(!a.snapshotData||!r||a.snapshotData.content)return a;if("getHyperCubeData"in r){const{rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:h}=oV(e,t,n);a.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:d,qWidth:e.qHyperCube.qSize.qcx,qHeight:p}]),a.snapshotData.content={rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:h,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return a})),u((()=>({getViewState:()=>oV(e,t,n)})),[e,t,n])})({layout:y,viewService:M,model:S,rootElement:n,contentRect:I}),ZW(_),KW(_)}}}export{sV as default};
|