@nebula.js/sn-table 6.4.1 → 6.4.2
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,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-table v6.4.
|
|
2
|
+
* @nebula.js/sn-table v6.4.2
|
|
3
3
|
* Copyright (c) 2025 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -118,4 +118,4 @@ function qi(e,t){let r;return r=t?Ri(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"),O=new RegExp(s+"([ns]?)w-resize","gi"),q=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(O,"$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(q,"$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)}(NP,NP.exports);var jP=Bt(NP.exports),_P="comm",zP="rule",FP="decl",HP=Math.abs,$P=String.fromCharCode;function BP(e){return e.trim()}function WP(e,t,r){return e.replace(t,r)}function VP(e,t,r){return e.indexOf(t,r)}function UP(e,t){return 0|e.charCodeAt(t)}function GP(e,t,r){return e.slice(t,r)}function YP(e){return e.length}function KP(e,t){return t.push(e),e}var XP=1,JP=1,ZP=0,QP=0,eA=0,tA="";function rA(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:XP,column:JP,length:a,return:"",siblings:s}}function nA(){return eA=QP>0?UP(tA,--QP):0,JP--,10===eA&&(JP=1,XP--),eA}function oA(){return eA=QP<ZP?UP(tA,QP++):0,JP++,10===eA&&(JP=1,XP++),eA}function iA(){return UP(tA,QP)}function aA(){return QP}function sA(e,t){return GP(tA,e,t)}function lA(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 uA(e){return BP(sA(QP-1,pA(91===e?e+2:40===e?e+1:e)))}function cA(e){for(;(eA=iA())&&eA<33;)oA();return lA(e)>2||lA(eA)>3?"":" "}function dA(e,t){for(;--t&&oA()&&!(eA<48||eA>102||eA>57&&eA<65||eA>70&&eA<97););return sA(e,aA()+(t<6&&32==iA()&&32==oA()))}function pA(e){for(;oA();)switch(eA){case e:return QP;case 34:case 39:34!==e&&39!==e&&pA(eA);break;case 40:41===e&&pA(e);break;case 92:oA()}return QP}function fA(e,t){for(;oA()&&e+eA!==57&&(e+eA!==84||47!==iA()););return"/*"+sA(t,QP-1)+"*"+$P(47===e?e:oA())}function hA(e){for(;!lA(iA());)oA();return sA(e,QP)}function mA(e){return function(e){return tA="",e}(gA("",null,null,null,[""],e=function(e){return XP=JP=1,ZP=YP(tA=e),QP=0,[]}(e),0,[0],e))}function gA(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=oA()){case 40:if(108!=h&&58==UP(C,d-1)){-1!=VP(C+=WP(uA(v),"&","&\f"),"&\f",HP(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=uA(v);break;case 9:case 10:case 13:case 32:C+=cA(h);break;case 92:C+=dA(aA()-1,7);continue;case 47:switch(iA()){case 42:case 47:KP(vA(fA(oA(),aA()),t,r,l),l),5!=lA(h||1)&&5!=lA(iA()||1)||!YP(C)||" "===GP(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[u++]=YP(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=WP(C,/\f/g,"")),f>0&&(YP(C)-d||0===m&&47===h)&&KP(f>32?yA(C+";",n,r,d-1,l):yA(WP(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(KP(w=bA(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)gA(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===UP(C,3))break;case 108:if(97===UP(C,2))break;default:c=0;case 100:case 109:case 115:}c?gA(e,w,w,n&&KP(bA(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):gA(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+YP(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==nA())continue;switch(C+=$P(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(YP(C)-1)*b,b=1;break;case 64:45===iA()&&(C+=uA(oA())),p=iA(),c=d=YP(y=C+=hA(aA())),v++;break;case 45:45===h&&2==YP(C)&&(m=0)}}return i}function bA(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=GP(e,p+1,p=HP(g=a[m])),x=e;v<h;++v)(x=BP(g>0?f[v]+" "+y:WP(y,/&\f/g,f[v])))&&(l[b++]=x);return rA(e,t,r,0===o?zP:s,l,u,c,d)}function vA(e,t,r,n){return rA(e,t,r,_P,$P(eA),GP(e,2,-2),0,n)}function yA(e,t,r,n,o){return rA(e,t,r,FP,GP(e,0,n),GP(e,n+1,-1),n,o)}function xA(e,t,r){switch(e.type){case"@import":case FP:case _P:return e.return=e.return||e.value;case zP:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===_P&&(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),xA);return YP(n)?e.return=e.value+"{"+n+"}":""}function SA(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===zP&&(!e.parent||"@media"===e.parent.type||e.parent.type===zP)){var o=jP.transform(xA(e));e.children=o?mA(o)[0].children:[],e.return=""}}Object.defineProperty(SA,"name",{value:"stylisRTLPlugin"});let wA=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),CA=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}({}),EA=function(e){return e.A="ascending",e.D="descending",e}({}),RA=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const PA=[0,0],AA=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),IA=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},kA=(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&&te(e.localPaletteColors[t].color).blend(te(s.color),s.t)},MA=(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:AA(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:IA(n,t,r)})))),n},DA=(e,t,r,n)=>{const o=MA(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=kA(e,a,t);break}n=i}return r})(o,t);return a},TA=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!MR(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||!MR(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}=TA(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||!MR(t))return 0;let a=r&&MR(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}},qA=(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 IA(o,r.limitPaletteColorIndex,n);const a=AA(r.limitRange,t);return DA(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}},LA=(yC().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)"),NA=4/3,jA="12px",_A="600",zA="Source Sans Pro, sans-serif",FA={height:"auto",fontSize:jA,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"}},HA={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:_A},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},$A=(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,BA=(e,t)=>e.representation.type===TE.Image&&"fitHeight"===e.representation.imageSize?$A(t,e.representation):e.align,WA=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",VA=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},UA=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,GA=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",YA=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",KA=24,XA=ic("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),JA=ic(Kd,{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?WA(e,n):void 0}))),ZA=ic(Kd,{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},[`& .${GC}`]:{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"},[`& .${GC}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),QA=ic(Kd,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"}))),eI=ic(Kd,{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"}))),tI=ic(id,{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}))),rI=25e4,nI=(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(QC.PixelsMax,Math.max(QC.PixelsMin,f)),i-=n[a]};switch(s){case eE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?QC.PixelsDefault:+e)(l),h();break;case eE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?QC.PercentageDefault:+e)(u)/100*t,h();break;case eE.FitToContent:e.representation?.type===TE.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case eE.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(QC.AutoMinTable,e)}))}return n},oI=(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"]})},iI=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},aI=e=>e.ctrlKey||e.metaKey,sI=e=>e.shiftKey&&aI(e),lI=e=>[JC.Left,JC.Right,JC.Up,JC.Down].includes(e),uI=e=>e.shiftKey&&lI(e.key),cI=e=>(e=>lI(e)||[JC.Home,JC.End,JC.PageUp,JC.PageDown].includes(e))(e.key)&&!sI(e),dI=(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),oI(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})},pI=(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&&uI(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&uI(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===JC.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 oI(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},fI=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}},hI=(e,t)=>{switch(t.type){case CA.Select:return dI(e,t.payload);case CA.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 CA.SelectMouseUp:return((e,t)=>fI(e.isSelectMultiValues||e.firstCell!==t.cell?e:dI(e,t)))(e,t.payload);case CA.SelectMultiAdd:return pI(e,t.payload);case CA.SelectMultiEnd:return fI(e);case CA.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case CA.Clear:return e.rows.size?{...e,rows:new Map}:e;case CA.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},mI=4/3,gI=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function bI(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const vI=(e,t)=>e?{borderBottomColor:SC.DARK_MODE_BORDER,borderRightColor:SC.DARK_MODE_BORDER,borderLeftColor:SC.DARK_MODE_BORDER,borderTopColor:SC.DARK_MODE_BORDER}:{borderLeftColor:SC.BORDER_MEDIUM,borderRightColor:SC.BORDER_MEDIUM,borderTopColor:SC.BORDER_HEAVY,borderBottomColor:t?SC.BORDER_HEAVY:SC.BORDER_LIGHT},yI=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*mI+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},xI=e=>e.components?.find((e=>"theme"===e.key)),SI=(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:gI(r?.fontColor)?bI(SC.TEXT,t,r?.fontColor):i||SC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...vI(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function wI(e,t,r){const n=xI(e)?.header,o=SI("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=te(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=EC(o.background??SC.WHITE,tE),o.activeBackground=EC(o.background??SC.WHITE,rE),o}const CI=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach((e=>(e=>e in HA)(e)&&Object.assign(t,HA[e]))),t};function EI(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&&PC(i);a&&"none"!==a&&(n[r[t]]=a),o=i?CI(i,o):o})),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=wC(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const RI=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},PI=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=RI(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},AI=(e,t,r,n=SC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=PI(e,t,r);return DC(i,o,a,n)??n},II=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return jA}},kI=e=>e?.some((e=>"italic"===e))?"italic":"normal",MI=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?_A:"normal",DI=e=>!1===e?1:3,TI=e=>parseInt(e??FA.fontSize,10)*NA,OI=e=>e?.some((e=>"underline"===e))?"underline":"none",qI=(e,t,r,n,o)=>{const{header:i,dimensionValues:a,measureValues:s,totalValues:l,nullValues:u,grid:c,content:d}=xI(t)??{},p=LP(t,o)?SC.WHITE:SC.TRANSPARENT,f=AI(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??zA,fontSize:II(i?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??r.head.fontSize),fontStyle:kI(i?.fontStyle),fontWeight:MI(i?.fontStyle,_A),textDecoration:OI(i?.fontStyle),color:RI(n,i?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??r.head.color??SC.TEXT,background:f},headerMenuHoverBackground:EC(f,tE),headerMenuActiveBackground:EC(f,rE),dimension:{values:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??r.body.fontFamily??zA,fontSize:II(a?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??r.body.fontSize),fontStyle:kI(a?.fontStyle),fontWeight:MI(a?.fontStyle,"normal"),textDecoration:OI(a?.fontStyle),color:RI(n,a?.fontColor)??RI(n,d?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??r.body.color??SC.TEXT,background:PI(n,a,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??r.body.background??SC.TRANSPARENT}},measure:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??r.body.fontFamily??zA,fontSize:II(s?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??r.body.fontSize),fontStyle:kI(s?.fontStyle),fontWeight:MI(s?.fontStyle,"normal"),textDecoration:OI(s?.fontStyle),color:RI(n,s?.fontColor)??RI(n,d?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??r.body.color??SC.TEXT,background:PI(n,s,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??r.body.background??SC.TRANSPARENT}},totalRow:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??r.totals.fontFamily??zA,fontSize:II(l?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??r.totals.fontSize),fontStyle:kI(l?.fontStyle),fontWeight:MI(l?.fontStyle,_A),textDecoration:OI(l?.fontStyle),color:RI(n,l?.fontColor)??RI(n,d?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??r.totals.color??SC.TEXT,background:AI(n,l,"object.straightTableV2.total.label.value.backgroundColor",p)},nullValues:{fontStyle:kI(u?.fontStyle),fontWeight:MI(u?.fontStyle,"normal"),textDecoration:OI(u?.fontStyle),color:RI(n,u?.fontColor)??RI(n,d?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??r.body.color??SC.TEXT,background:RI(n,u?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??SC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:h??DI(t.multiline?.wrapTextInCells),headerLineClamp:DI(t.multiline?.wrapTextInHeaders),border:RI(n,c?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?SC.DARK_MODE_BORDER:SC.BORDER_MEDIUM),divider:RI(n,c?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??SC.BORDER_HEAVY,hoverColors:{color:RI(n,d?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??r.body.hoverColors?.color,background:RI(n,d?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??r.body.hoverColors?.background},zebraStripes:{show:!!c?.zebraStripes?.show,odd:{color:RI(n,c?.zebraStripes?.color?.odd),background:RI(n,c?.zebraStripes?.background?.odd)},even:{color:RI(n,c?.zebraStripes?.color?.even),background:RI(n,c?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===RI(n,u?.background),overrideNullValueColor:void 0===RI(n,u?.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:CC(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(TI(e.header.fontSize)+8,32),r=TI(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(TI(e.dimension.values.fontSize),TI(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},LI=(e,t,r,n)=>{const o=C((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){const o=xI(e)?.content,i=SI("content",t,o);i.background=t.background.color;const a=yI(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=gI(l)||!!c,p=gI(s)||!!u,f=d||p;let h;h=gI(s)?bI(SC.HOVER,t,s):u||(d?"":SC.HOVER);const m=f?bI(wC(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(e,t,r.rows.length,n),a=wI(e,t,!o),s=function(e,t,r){const n=xI(e)?.content,o=SI("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=wI(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},NI=new Map;const jI=M({}),_I=function(e){const t=M([()=>{},new Set]);return NI.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 er.jsx(e.Provider,{value:n,children:er.jsx(t.Provider,{value:s,children:r})})}}(jI),zI={rows:[],columns:[],totalsPosition:{}},FI=({app:e,children:t,tableData:r=zI,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||PA),[M,D]=((e,t)=>{const[r,n]=k(hI,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[T,O]=w(-1),q=LI(i,u,r,d),L=((e,t,r,n,o)=>C((()=>qI(0,t,r,n,o)),[t,r,e,n,o]))(S,i,q,u,y),[N,j,_,z,F,H]=((e,t,r,n,o=!0)=>{const i=t.atBottom||t.atTop,a=_C({...n.header,fontWeight:_A},{maxNbrLinesOfText:3}).measureText,s=_C({...n.totalRow,fontWeight:_A},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=_C(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:u}=_C(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+=KA),t+=KA,t+=KA,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((()=>nI(e,r,c)));$C((()=>{g(nI(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 er.jsx(_I,{value:{headRowHeight:R,setHeadRowHeight:P,focusedCellCoord:A,setFocusedCellCoord:I,selectionState:M,selectionDispatch:D,hoverIndex:T,setHoverIndex:O,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 HI(e,t){const r=function(e){return NI.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 $I(e){const t=yC();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),wu({...t,direction:e})}const BI={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},WI={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},VI=ic("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":{...BI},"&::-moz-range-track":{...BI},"&::-ms-track":{...BI},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...WI},"&::-moz-range-thumb":{...WI},"&::-ms-thumb":{...WI},"&: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"}}))),UI=({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=WC({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}};$C((()=>{m&&v()}),[e]);const y=e=>{const t=Math.max(e,QC.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:eE.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=>{IC(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=>{IC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===JC.Left||e.key===JC.Right){IC(e);const t=5,r=e.key===JC.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===JC.Space||e.key===JC.Enter?(IC(e),s(e),l?.(!1),x()):e.key===JC.Esc&&(IC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,P=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return er.jsx(VI,{style:b,hoverColor:o,isLastColumn:r,className:ZC,"data-testid":ZC,onMouseDown:e=>{IC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:eE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(IC(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":QC.PixelsMin,"aria-valuemax":QC.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},GI=O(((e,t)=>er.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:er.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),YI=({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},KI=ic(Kd,{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"}))),XI=ic(GI,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),JI=ic(Df)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),ZI=ic(Ap)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),QI=ic(Nf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),ek=ic(Nf,{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"}))),tk=ic("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"}))),rk=ic("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),nk=ic(dd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),ok=ic(nf,{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}))),ik=O(((e,t)=>er.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:er.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),ak=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?ak(t):t:e.parentElement?.children?.[0]},sk=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?sk(t):t},lk=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===JC.Down||t===JC.Up){const r=e=>t===JC.Down?ak(e):sk(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},uk=(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 ck={};const dk=({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 er.jsxs(er.Fragment,{children:[er.jsxs(ek,{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),ck={}),a?.length&&(p(!0),ck[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:lk,children:[l?er.jsx(tk,{direction:u,isPagination:c}):null,er.jsxs(rk,{children:[er.jsx(ok,{direction:u,isPagination:c,children:er.jsx(o,{})}),er.jsx(nk,{variant:"body2",children:n})]}),a?.length?er.jsx(ik,{}):null]},t),a?.length?er.jsx(mk,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:uk(a,ck),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},pk=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&er.jsx(QI,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>er.jsx(dk,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),fk=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[pk({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?er.jsx(ZI,{"data-testid":"group-divider",variant:"middle"}):void 0])),hk={appear:0,enter:0,exit:0},mk=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?er.jsx(JI,{className:YC,open:t,anchorEl:e,onClose:r,transitionDuration:hk,MenuListProps:{id:KC},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:fk({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,gk=({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]),bk=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),vk=(e,t)=>e.some((e=>t[e]>0)),yk={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},xk=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=w(null),[a,s]=w(yk);return $C((()=>{e||(s(yk),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=bk(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:vk(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:vk(["qSelected"],e),canSelectPossible:vk(["qOption"],e),canSelectAlternative:vk(["qAlternative"],e),canSelectExcluded:vk(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},Sk=O(((e,t)=>er.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:er.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"})}))),wk=O(((e,t)=>er.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:er.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"})}))),Ck=O(((e,t)=>er.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:er.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"})}))),Ek=O(((e,t)=>er.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:er.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"})}))),Rk=O(((e,t)=>er.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:er.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"})}))),Pk=O(((e,t)=>er.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:er.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"})}))),Ak=O(((e,t)=>er.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:er.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"})}))),Ik=O(((e,t)=>er.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:er.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"})}))),kk=O(((e,t)=>er.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:er.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"})}))),Mk=O(((e,t)=>er.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:er.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"})}))),Dk=O(((e,t)=>er.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:er.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"})}))),Tk=O(((e,t)=>er.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:er.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=O(((e,t)=>er.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:er.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"})}))),qk=O(((e,t)=>er.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:er.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 Lk=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const Nk="/qListObjectDef",jk=({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[Lk.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:Sk,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:Ek,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:Ik,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:Rk,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[Lk.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:kk,enabled:!0}]}]),!e.isLocked&&r[Lk.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:qk,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(Nk))},icon:Mk,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(Nk))},icon:Ok,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(Nk))},icon:Dk,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(Nk))},icon:Tk,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(Nk))},icon:wk,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:Ak,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:Pk,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[Lk.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:Ck,enabled:!0}]}]),f},_k=({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=VC})=>{const v=D(null),y=WC({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=xk({open:e,headerData:n,app:C,qStateName:c?.qStateName}),P=YI({model:f,headerData:n}),A=gk({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?er.jsxs(KI,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:GC,onClick:!1===g?k:void 0,ref:v,isAccessibleHeader:g,children:[s?er.jsx(XI,{height:b,className:UC,"data-testid":UC,isInteractionsActive:i.active??!1,children:er.jsx(GI,{})}):null,er.jsx(mk,{open:e,anchorEl:!1===g?v.current:r.current,onClose:I,menuGroups:jk({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},zk=e=>e.isDark?{background:e.color,borderColor:SC.DARK_MODE_BORDER,color:SC.DARK_MODE_TEXT,disabledColor:SC.DARK_MODE_DISABLED,iconColor:SC.DARK_MODE_TEXT}:{background:e.color,borderColor:SC.BORDER_MEDIUM,color:SC.TEXT,disabledColor:SC.DISABLED},Fk=ic(Kd,{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}`}))),Hk=ic(gh,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),$k=ic(ip,{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)}))),Bk=ic(dd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),Wk=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=C((()=>zk(n.background)),[n]);if(!r.active)return null;const a=o?er.jsx(Fk,{footerStyle:i,children:e}):null;return t?F.createPortal(e,t):a},Vk=M({}),Uk=()=>S(Vk),Gk=({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((()=>zk(p.background)),[p]),y=o?o.getBoundingClientRect().width:h.width,x=WC({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 er.jsx(Vk.Provider,{value:S,children:e})};let Yk=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),Kk=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 Xk=O(((e,t)=>er.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:er.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),Jk=O(((e,t)=>er.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:er.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),Zk=O(((e,t)=>er.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:er.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),Qk={FirstPage:Jk,PreviousPage:Xk,NextPage:ik,LastPage:Zk,FirstPageRTL:Zk,PreviousPageRTL:ik,NextPageRTL:Xk,LastPageRTL:Jk},eM=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=Uk(),u=r.concat("rtl"===n?"RTL":""),c=Qk[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}},tM=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=Uk(),o=0===e.page,{IconComponent:i,styledProps:a}=eM({type:Yk.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||Kk.FirstPage)?null:er.jsx($k,{...a,disabled:!r.active,children:er.jsx(i,{height:VC})})},rM=(e,t,r=!1)=>{r&&e.key===JC.Tab&&!e.shiftKey&&(IC(e),AC(e.target,t,!1))},nM=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=Uk(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=eM({type:Yk.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{rM(e,t,n)}:void 0;return o<=(a?.lastPage||Kk.LastPage)?null:er.jsx($k,{...u,onKeyDown:c,disabled:!i.active,children:er.jsx(l,{height:VC})})},oM=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=Uk(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=eM({type:Yk.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>Kk.FirstPage&&o>Kk.LastPage)&&t.enabled?e=>{rM(e,t,n)}:void 0;return er.jsx($k,{...l,onKeyDown:u,disabled:!i.active,children:er.jsx(s,{height:VC})})},iM=()=>{const{pageInfo:e,interactions:t}=Uk(),r=0===e.page,{IconComponent:n,styledProps:o}=eM({type:Yk.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return er.jsx($k,{...o,disabled:!t.active,children:er.jsx(n,{height:VC})})},aM=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=Uk(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||Kk.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return er.jsx(Bk,{variant:"caption",dir:"ltr",children:s})},sM=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=Uk(),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 er.jsxs(er.Fragment,{children:[er.jsxs(Bk,{variant:"caption",id:p,children:[c,":"]}),er.jsx(Hk,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},lM=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=Uk();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||Kk.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=er.jsx(er.Fragment,{children:e.rowsPerPageOptions.map((e=>er.jsx("option",{value:e,children:e},e)))});return er.jsx(sM,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},uM=1e3,cM="…",dM=({totalPages:e,page:t})=>{const r=Math.min(e,uM),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-uM):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return er.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(er.jsx("option",{value:cM,disabled:!0,children:cM},"startMoreOptions")),o<e-1&&a.push(er.jsx("option",{value:cM,disabled:!0,children:cM},"endMoreOptions")),er.jsx(er.Fragment,{children:a})},pM=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=Uk(),{page:i}=e;if(t<=(o?.selectPage||Kk.SelectPage))return null;const a=er.jsx(dM,{totalPages:r,page:i});return er.jsx(sM,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var fM=q((e=>er.jsxs(Gk,{...e,children:[er.jsx(lM,{}),er.jsx(pM,{}),er.jsx(aM,{}),er.jsx(tM,{}),er.jsx(iM,{}),er.jsx(oM,{}),er.jsx(nM,{})]})));const hM=e=>er.jsx(Wk,{...e,children:er.jsx(fM,{...e})});var mM=Symbol.for("preact-signals");function gM(){if(SM>1)SM--;else{for(var e,t=!1;void 0!==xM;){var r=xM;for(xM=void 0,wM++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&AM(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(wM=0,SM--,t)throw e}}function bM(e){if(SM>0)return e();SM++;try{return e()}finally{gM()}}var vM=void 0;function yM(e){var t=vM;vM=void 0;try{return e()}finally{vM=t}}var xM=void 0,SM=0,wM=0,CM=0;function EM(e){if(void 0!==vM){var t=e.n;if(void 0===t||t.t!==vM)return t={i:0,S:e,p:vM.s,n:void 0,t:vM,e:void 0,x:void 0,r:t},void 0!==vM.s&&(vM.s.n=t),vM.s=t,e.n=t,32&vM.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=vM.s,t.n=void 0,vM.s.n=t,vM.s=t),t}}function RM(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 PM(e,t){return new RM(e,t)}function AM(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 IM(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 kM(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 MM(e,t){RM.call(this,void 0),this.x=e,this.s=void 0,this.g=CM-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 DM(e,t){return new MM(e,t)}function TM(e){var t=e.u;if(e.u=void 0,"function"==typeof t){SM++;var r=vM;vM=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,OM(e),t}finally{vM=r,gM()}}}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,TM(e)}function qM(e){if(vM!==this)throw new Error("Out-of-order effect");kM(this),vM=e,this.f&=-2,8&this.f&&OM(this),gM()}function LM(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 NM(e,t){var r=new LM(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}RM.prototype.brand=mM,RM.prototype.h=function(){return!0},RM.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:yM((function(){var e;null==(e=t.W)||e.call(t)})))},RM.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&&yM((function(){var e;null==(e=t.Z)||e.call(t)})))}},RM.prototype.subscribe=function(e){var t=this;return NM((function(){var r=t.value,n=vM;vM=void 0;try{e(r)}finally{vM=n}}),{name:"sub"})},RM.prototype.valueOf=function(){return this.value},RM.prototype.toString=function(){return this.value+""},RM.prototype.toJSON=function(){return this.value},RM.prototype.peek=function(){var e=vM;vM=void 0;try{return this.value}finally{vM=e}},Object.defineProperty(RM.prototype,"value",{get:function(){var e=EM(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(wM>100)throw new Error("Cycle detected");this.v=e,this.i++,CM++,SM++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{gM()}}}}),MM.prototype=new RM,MM.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===CM)return!0;if(this.g=CM,this.f|=1,this.i>0&&!AM(this))return this.f&=-2,!0;var e=vM;try{IM(this),vM=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 vM=e,kM(this),this.f&=-2,!0},MM.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)}RM.prototype.S.call(this,e)},MM.prototype.U=function(e){if(void 0!==this.t&&(RM.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)}},MM.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(MM.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=EM(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),LM.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()}},LM.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,TM(this),IM(this),SM++;var e=vM;return vM=this,qM.bind(this,e)},LM.prototype.N=function(){2&this.f||(this.f|=2,this.o=xM,xM=this)},LM.prototype.d=function(){this.f|=8,1&this.f||OM(this)},LM.prototype.dispose=function(){this.d()};var jM,_M,zM,FM,HM,$M,BM,WM,VM,UM,GM,YM,KM,XM,JM,ZM,QM,eD,tD,rD,nD=Object.create,oD=Object.defineProperty,iD=Object.defineProperties,aD=Object.getOwnPropertyDescriptor,sD=Object.getOwnPropertyDescriptors,lD=Object.getOwnPropertySymbols,uD=Object.prototype.hasOwnProperty,cD=Object.prototype.propertyIsEnumerable,dD=e=>{throw TypeError(e)},pD=(e,t,r)=>t in e?oD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fD=(e,t)=>oD(e,"name",{value:t,configurable:!0}),hD=["class","method","getter","setter","accessor","field","value","get","set"],mD=e=>void 0!==e&&"function"!=typeof e?dD("Function expected"):e,gD=(e,t,r,n,o)=>({kind:hD[e],name:t,metadata:n,addInitializer:e=>r._?dD("Already initialized"):o.push(mD(e||null))}),bD=(e,t)=>{return pD(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},vD=(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},yD=(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=hD[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)&&aD(d<4?o:{get[r](){return wD(this,i)},set[r](e){return ED(this,i,e)}},r));d?f&&d<4&&fD(i,(d>2?"set ":d>1?"get ":"")+r):fD(o,r);for(var y=n.length-1;y>=0;y--)u=gD(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>SD(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?wD:RD)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>ED(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?mD(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?dD("Object expected"):(mD(a=s.get)&&(v.get=a),mD(a=s.set)&&(v.set=a),mD(a=s.init)&&g.unshift(a));return d||bD(e,o),v&&oD(o,r,v),f?4^d?i:v:o},xD=(e,t,r)=>t.has(e)||dD("Cannot "+r),SD=(e,t)=>Object(t)!==t?dD('Cannot use the "in" operator on this value'):e.has(t),wD=(e,t,r)=>(xD(e,t,"read from private field"),r?r.call(e):t.get(e)),CD=(e,t,r)=>t.has(e)?dD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ED=(e,t,r,n)=>(xD(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),RD=(e,t,r)=>(xD(e,t,"access private method"),r);function PD(e,t){if(t){let r;return DM((()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)}))}return DM(e)}function AD(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)=>!AD(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=>!AD(e[r],t[r])));return!o}return!1}function ID({get:e},t){return{init:e=>PM(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function kD(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=PD(e.bind(this)),r.set(this,t)),t.value}}function MD(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)=>iD(e,sD(t)))(((e,t)=>{for(var r in t||(t={}))uD.call(t,r)&&pD(e,r,t[r]);if(lD)for(var r of lD(t))cD.call(t,r)&&pD(e,r,t[r]);return e})({},n),{enumerable:e}))}))}}function DD(...e){const t=e.map(NM);return()=>t.forEach((e=>e()))}$M=[ID],HM=[ID],FM=[ID],zM=[MD()],_M=[MD()],jM=[MD()];var TD,OD=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,vD(BM,5,this),CD(this,YM),CD(this,WM,vD(BM,8,this)),vD(BM,11,this),CD(this,KM,vD(BM,12,this)),vD(BM,15,this),CD(this,QM,vD(BM,16,this)),vD(BM,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return wD(this,YM,tD)}get initial(){return wD(this,YM,UM)}get previous(){return wD(this,YM,JM)}set current(e){const t=yM((()=>wD(this,YM,tD)));e&&t&&this.equals(t,e)||bM((()=>{wD(this,YM,UM)||ED(this,YM,e,GM),ED(this,YM,t,ZM),ED(this,YM,e,rD)}))}reset(e=this.defaultValue){bM((()=>{ED(this,YM,void 0,ZM),ED(this,YM,e,GM),ED(this,YM,e,rD)}))}};function qD(e){return yM((()=>{const t={};for(const r in e)t[r]=e[r];return t}))}BM=[,,,nD(null)],WM=new WeakMap,YM=new WeakSet,KM=new WeakMap,QM=new WeakMap,VM=yD(BM,20,"#initial",$M,YM,WM),UM=VM.get,GM=VM.set,XM=yD(BM,20,"#previous",HM,YM,KM),JM=XM.get,ZM=XM.set,eD=yD(BM,20,"#current",FM,YM,QM),tD=eD.get,rD=eD.set,yD(BM,2,"current",zM,OD),yD(BM,2,"initial",_M,OD),yD(BM,2,"previous",jM,OD),bD(BM,OD);TD=new WeakMap;var LD,ND,jD,_D,zD,FD=Object.create,HD=Object.defineProperty,$D=Object.getOwnPropertyDescriptor,BD=Object.getOwnPropertySymbols,WD=Object.prototype.hasOwnProperty,VD=Object.prototype.propertyIsEnumerable,UD=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),GD=e=>{throw TypeError(e)},YD=Math.pow,KD=(e,t,r)=>t in e?HD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,XD=["class","method","getter","setter","accessor","field","value","get","set"],JD=e=>void 0!==e&&"function"!=typeof e?GD("Function expected"):e,ZD=(e,t,r,n,o)=>({kind:XD[e],name:t,metadata:n,addInitializer:e=>r._?GD("Already initialized"):o.push(JD(e||null))}),QD=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=XD[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,$D(o,r)),h=n.length-1;h>=0;h--)(l=ZD(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,JD(a)&&(f[d]=a);return f&&HD(o,r,f),o},eT=(e,t,r)=>t.has(e)||GD("Cannot "+r),tT=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)}},rT=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={}))WD.call(t,r)&&KD(e,r,t[r]);if(BD)for(var r of BD(t))VD.call(t,r)&&KD(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 tT((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 tT.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 nT,oT=class extends(jD=OD,ND=[kD],LD=[kD],jD){constructor(e){var t,r,n;super(tT.from(e),((e,t)=>tT.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)})(zD,5,this),t=this,n=0,(r=_D).has(t)?GD("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 tT.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=tT.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(eT(a=this,s=_D,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);bM((()=>{((e,t,r)=>{eT(e,t,"write to private field"),t.set(e,r)})(this,_D,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(tT.from(e)),this.velocity={x:0,y:0}}};function iT({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(YD(n,2)+YD(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}zD=(e=>{var t;return[,,,FD(null!=(t=null==e?void 0:e[UD("metadata")])?t:null)]})(jD),_D=new WeakMap,QD(zD,2,"delta",ND,oT),QD(zD,2,"direction",LD,oT),nT=zD,KD(oT,UD("metadata"),nT[3]);var aT,sT,lT,uT,cT=(e=>(e.Horizontal="x",e.Vertical="y",e))(cT||{}),dT=Object.values(cT),pT=Object.create,fT=Object.defineProperty,hT=Object.defineProperties,mT=Object.getOwnPropertyDescriptor,gT=Object.getOwnPropertyDescriptors,bT=Object.getOwnPropertySymbols,vT=Object.prototype.hasOwnProperty,yT=Object.prototype.propertyIsEnumerable,xT=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ST=e=>{throw TypeError(e)},wT=(e,t,r)=>t in e?fT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,CT=(e,t)=>{for(var r in t||(t={}))vT.call(t,r)&&wT(e,r,t[r]);if(bT)for(var r of bT(t))yT.call(t,r)&&wT(e,r,t[r]);return e},ET=(e,t)=>hT(e,gT(t)),RT=(e,t)=>fT(e,"name",{value:t,configurable:!0}),PT=(e,t)=>{var r={};for(var n in e)vT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&bT)for(var n of bT(e))t.indexOf(n)<0&&yT.call(e,n)&&(r[n]=e[n]);return r},AT=e=>{var t;return[,,,pT(null!=(t=null==e?void 0:e[xT("metadata")])?t:null)]},IT=["class","method","getter","setter","accessor","field","value","get","set"],kT=e=>void 0!==e&&"function"!=typeof e?ST("Function expected"):e,MT=(e,t,r,n,o)=>({kind:IT[e],name:t,metadata:n,addInitializer:e=>r._?ST("Already initialized"):o.push(kT(e||null))}),DT=(e,t)=>wT(t,xT("metadata"),e[3]),TT=(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=IT[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)&&mT(d<4?o:{get[r](){return NT(this,i)},set[r](e){return _T(this,i,e)}},r));d?f&&d<4&&RT(i,(d>2?"set ":d>1?"get ":"")+r):RT(o,r);for(var y=n.length-1;y>=0;y--)u=MT(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>LT(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?NT:zT)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>_T(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?kT(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?ST("Object expected"):(kT(a=s.get)&&(v.get=a),kT(a=s.set)&&(v.set=a),kT(a=s.init)&&g.unshift(a));return d||DT(e,o),v&&fT(o,r,v),f?4^d?i:v:o},qT=(e,t,r)=>t.has(e)||ST("Cannot "+r),LT=(e,t)=>Object(t)!==t?ST('Cannot use the "in" operator on this value'):e.has(t),NT=(e,t,r)=>(qT(e,t,"read from private field"),r?r.call(e):t.get(e)),jT=(e,t,r)=>t.has(e)?ST("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),_T=(e,t,r,n)=>(qT(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),zT=(e,t,r)=>(qT(e,t,"access private method"),r);function FT(e,t){return{plugin:e,options:t}}function HT(e){return t=>FT(e,t)}function $T(e){return"function"==typeof e?{plugin:e,options:void 0}:e}aT=[ID];var BT=class{constructor(e,t){this.manager=e,this.options=t,jT(this,lT,TT(sT,8,this,!1)),TT(sT,11,this),jT(this,uT,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return yM((()=>this.disabled))}configure(e){this.options=e}registerEffect(e){const t=NM(e.bind(this));return NT(this,uT).add(t),t}destroy(){NT(this,uT).forEach((e=>e()))}static configure(e){return FT(this,e)}};sT=AT(null),lT=new WeakMap,uT=new WeakMap,OT(sT,4,"disabled",aT,BT,lT),DT(sT,BT);var WT,VT=class extends BT{},UT=class{constructor(e){this.manager=e,this.instances=new Map,jT(this,WT,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map($T).reduceRight(((e,t)=>e.some((({plugin:e})=>e===t.plugin))?e:[t,...e]),[]),r=t.map((({plugin:e})=>e));for(const e of NT(this,WT))if(!r.includes(e)){if(e.prototype instanceof VT)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);_T(this,WT,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 GT(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}WT=new WeakMap;var YT,KT,XT=[],JT=class extends BT{constructor(e){super(e),jT(this,YT),jT(this,KT),this.computeCollisions=this.computeCollisions.bind(this),_T(this,KT,PM(XT)),this.destroy=DD((()=>{const e=this.computeCollisions(),t=yM((()=>this.manager.dragOperation.position.current));if(e!==XT){const e=NT(this,YT);if(_T(this,YT,t),e&&t.x==e.x&&t.y==e.y)return}else _T(this,YT,void 0);NT(this,KT).value=e}),(()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()}))}forceUpdate(e=!0){yM((()=>{e?NT(this,KT).value=this.computeCollisions():_T(this,YT,void 0)}))}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return XT;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=yM((()=>e({droppable:i,dragOperation:n})));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?XT:(s.sort(GT),s)}get collisions(){return NT(this,KT).value}};YT=new WeakMap,KT=new WeakMap;var ZT=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)}},QT=class extends ZT{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function eO(e,t=!0){let r=!1;return ET(CT({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var tO,rO,nO,oO,iO,aO,sO,lO,uO,cO=class extends VT{constructor(e){super(e);let t=[];this.destroy=DD((()=>{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=eO({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;yM((()=>{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()})))}))}))}},dO=(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))(dO||{}),pO=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(pO||{});sO=[ID],aO=[kD],iO=[kD],oO=[kD],nO=[kD],rO=[kD],tO=[kD];var fO=class{constructor(){TT(lO,5,this),jT(this,uO,TT(lO,8,this,"idle")),TT(lO,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}};lO=AT(null),uO=new WeakMap,OT(lO,4,"value",sO,fO,uO),OT(lO,2,"current",aO,fO),OT(lO,2,"idle",iO,fO),OT(lO,2,"initializing",oO,fO),OT(lO,2,"initialized",nO,fO),OT(lO,2,"dragging",rO,fO),OT(lO,2,"dropped",tO,fO),DT(lO,fO);var hO,mO,gO,bO,vO,yO,xO,SO,wO,CO=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 yM((()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=eO({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then((()=>n.defaultPrevented))}))}start(e){return yM((()=>{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;bM((()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)}));const i=eO({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 yM((()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=eO({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 yM((()=>{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=yM((()=>{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=NM((()=>{"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()}))}};bO=[ID],gO=[ID],mO=[ID],hO=[ID];var EO=class{constructor(e,t){jT(this,yO,TT(vO,8,this)),TT(vO,11,this),jT(this,xO,TT(vO,12,this)),TT(vO,15,this),jT(this,SO,TT(vO,16,this)),TT(vO,19,this),jT(this,wO,TT(vO,20,this)),TT(vO,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)}};vO=AT(null),yO=new WeakMap,xO=new WeakMap,SO=new WeakMap,wO=new WeakMap,OT(vO,4,"manager",bO,EO,yO),OT(vO,4,"id",gO,EO,xO),OT(vO,4,"data",mO,EO,SO),OT(vO,4,"disabled",hO,EO,wO),DT(vO,EO);var RO,PO,AO,IO,kO,MO,DO,TO,OO,qO,LO,NO,jO,_O,zO,FO,HO,$O,BO,WO,VO,UO,GO,YO,KO=class{constructor(){this.map=PM(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=DD(...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}},XO=class extends(DO=EO,MO=[ID],kO=[ID],IO=[ID],AO=[kD],PO=[kD],RO=[kD],DO){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=PT(r,["modifiers","type","sensors"]);super(a,t),TT(TO,5,this),jT(this,OO,TT(TO,8,this)),TT(TO,11,this),jT(this,qO,TT(TO,12,this)),TT(TO,15,this),jT(this,LO,TT(TO,16,this,this.isDragSource?"dragging":"idle")),TT(TO,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}};TO=AT(DO),OO=new WeakMap,qO=new WeakMap,LO=new WeakMap,OT(TO,4,"type",MO,XO,OO),OT(TO,4,"modifiers",kO,XO,qO),OT(TO,4,"status",IO,XO,LO),OT(TO,2,"isDropping",AO,XO),OT(TO,2,"isDragging",PO,XO),OT(TO,2,"isDragSource",RO,XO),DT(TO,XO);var JO=class extends($O=EO,HO=[ID],FO=[ID],zO=[ID],_O=[ID],jO=[ID],NO=[kD],$O){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(PT(r,["accept","collisionDetector","collisionPriority","type"]),t),TT(BO,5,this),jT(this,WO,TT(BO,8,this)),TT(BO,11,this),jT(this,VO,TT(BO,12,this)),TT(BO,15,this),jT(this,UO,TT(BO,16,this)),TT(BO,19,this),jT(this,GO,TT(BO,20,this)),TT(BO,23,this),jT(this,YO,TT(BO,24,this)),TT(BO,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}};BO=AT($O),WO=new WeakMap,VO=new WeakMap,UO=new WeakMap,GO=new WeakMap,YO=new WeakMap,OT(BO,4,"accept",HO,JO,WO),OT(BO,4,"type",FO,JO,VO),OT(BO,4,"collisionDetector",zO,JO,UO),OT(BO,4,"collisionPriority",_O,JO,GO),OT(BO,4,"shape",jO,JO,YO),OT(BO,2,"isDropTarget",NO,JO),DT(BO,JO);var ZO,QO,eq,tq,rq,nq,oq,iq,aq,sq,lq,uq,cq,dq,pq,fq,hq,mq,gq,bq=class extends BT{constructor(e,t){super(e,t),this.manager=e,this.options=t}},vq=class extends BT{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},yq=class{constructor(e){this.draggables=new KO,this.droppables=new KO,this.plugins=new UT(e),this.sensors=new UT(e),this.modifiers=new UT(e)}register(e,t){if(e instanceof XO)return this.draggables.register(e.id,e);if(e instanceof JO)return this.droppables.register(e.id,e);if(e.prototype instanceof vq)return this.modifiers.register(e,t);if(e.prototype instanceof bq)return this.sensors.register(e,t);if(e.prototype instanceof BT)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof EO)return e instanceof XO?this.draggables.unregister(e.id,e):e instanceof JO?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof vq)return this.modifiers.unregister(e);if(e.prototype instanceof bq)return this.sensors.unregister(e);if(e.prototype instanceof BT)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()}};aq=[kD],iq=[ID],oq=[ID],nq=[ID],rq=[ID],tq=[ID],eq=[kD],QO=[kD],ZO=[kD];var xq=class{constructor(e){TT(cq,5,this),jT(this,sq),jT(this,lq),jT(this,uq,new OD(void 0,((e,t)=>e&&t?e.equals(t):e===t))),this.status=new fO,jT(this,dq,TT(cq,8,this,!1)),TT(cq,11,this),jT(this,pq,TT(cq,12,this,null)),TT(cq,15,this),jT(this,fq,TT(cq,16,this,null)),TT(cq,19,this),jT(this,hq,TT(cq,20,this,null)),TT(cq,23,this),jT(this,mq,TT(cq,24,this,[])),TT(cq,27,this),this.position=new oT({x:0,y:0}),jT(this,gq,{x:0,y:0}),_T(this,sq,e)}get shape(){const{current:e,initial:t,previous:r}=NT(this,uq);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?NT(this,uq).current=e:NT(this,uq).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=NT(this,sq).registry.draggables.get(t);return r&&_T(this,lq,r),null!=(e=null!=r?r:NT(this,lq))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=NT(this,sq).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(ET(CT({},this.snapshot()),{transform:r}));return _T(this,gq,r),r}snapshot(){return yM((()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:NT(this,gq),shape:this.shape?qD(this.shape):null,position:qD(this.position),status:qD(this.status),canceled:this.canceled})))}reset(){bM((()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,NT(this,uq).reset(),this.position.reset({x:0,y:0}),_T(this,gq,{x:0,y:0}),this.modifiers=[]}))}};cq=AT(null),sq=new WeakMap,lq=new WeakMap,uq=new WeakMap,dq=new WeakMap,pq=new WeakMap,fq=new WeakMap,hq=new WeakMap,mq=new WeakMap,gq=new WeakMap,OT(cq,2,"shape",aq,xq),OT(cq,4,"canceled",iq,xq,dq),OT(cq,4,"activatorEvent",oq,xq,pq),OT(cq,4,"sourceIdentifier",nq,xq,fq),OT(cq,4,"targetIdentifier",rq,xq,hq),OT(cq,4,"modifiers",tq,xq,mq),OT(cq,2,"source",eq,xq),OT(cq,2,"target",QO,xq),OT(cq,2,"transform",ZO,xq),DT(cq,xq);var Sq={get rendering(){return Promise.resolve()}},wq=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=Sq}=null!=e?e:{},i=new QT(this),a=new yq(this);this.registry=a,this.monitor=i,this.renderer=o,this.actions=new CO(this),this.dragOperation=new xq(this),this.collisionObserver=new JT(this),this.plugins=[cO,...t],this.modifiers=n,this.sensors=r;const{destroy:s}=this,l=DD((()=>{var e,t,r;const n=yM((()=>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}=$T(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}},Cq=e=>{throw TypeError(e)},Eq=(e,t,r)=>t.has(e)||Cq("Cannot "+r),Rq=(e,t,r)=>(Eq(e,t,"read from private field"),t.get(e)),Pq=(e,t,r)=>t.has(e)?Cq("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Aq=(e,t,r,n)=>(Eq(e,t,"write to private field"),t.set(e,r),r),Iq=(e,t,r)=>(Eq(e,t,"access private method"),r);function kq(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function Mq(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=(kq(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function Dq(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}}var Tq="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Oq(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function qq(e){return"nodeType"in e}function Lq(e){var t,r,n;return e?Oq(e)?e:qq(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 Nq(e){const{Document:t}=Lq(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function jq(e){return!(!e||Oq(e))&&(e instanceof Lq(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function _q(e){return e instanceof Lq(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function zq(e){return e?Oq(e)?e.document:qq(e)?Nq(e)?e:jq(e)||_q(e)?e.ownerDocument:document:document:document}function Fq(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 Hq(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(!Fq(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 $q(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function Bq(e){return"value"in e}function Wq(e){return"CANVAS"===e.tagName}function Vq(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 Vq(e,{x:t-o,y:r-i})}}return n}var Uq=new WeakMap,Gq=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(t)?t:[t],n=[];for(const t of r){const{type:r,listener:o,options:i}=t,a=[e,t];e.addEventListener(r,o,i),this.entries.add(a),n.push(a)}return function(){for(const[e,{type:t,listener:r,options:o}]of n)e.removeEventListener(t,r,o)}}};function Yq(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function Kq(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 Xq,Jq=Tq?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},Zq=class extends Jq{constructor(e){super((t=>{Rq(this,Xq)?e(t,this):Aq(this,Xq,!0)})),Pq(this,Xq,!1)}};Xq=new WeakMap;var Qq,eL,tL,rL,nL,oL,iL,aL,sL,lL,uL,cL=Array.from({length:100},((e,t)=>t/100)),dL=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,Pq(this,sL),this.disconnect=()=>{var e,t,r;Aq(this,iL,!0),null==(e=Rq(this,tL))||e.disconnect(),null==(t=Rq(this,rL))||t.disconnect(),Rq(this,nL).disconnect(),null==(r=Rq(this,oL))||r.remove()},Pq(this,Qq,!0),Pq(this,eL),Pq(this,tL),Pq(this,rL),Pq(this,nL),Pq(this,oL),Pq(this,iL,!1),Pq(this,aL,Kq((()=>{var e,t,r;const{element:n}=this;if(null==(e=Rq(this,rL))||e.disconnect(),Rq(this,iL)||!Rq(this,Qq)||!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=Hq(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,Aq(this,rL,new IntersectionObserver((e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:rT.intersectionRatio(r,Hq(n)))&&Rq(this,aL).call(this)}),{threshold:cL,rootMargin:m,root:o})),Rq(this,rL).observe(n),Iq(this,sL,lL).call(this)}),75)),this.boundingClientRect=e.getBoundingClientRect(),Aq(this,Qq,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=Hq(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)&&(Aq(this,oL,document.createElement("div")),Rq(this,oL).style.background="rgba(0,0,0,0.15)",Rq(this,oL).style.position="fixed",Rq(this,oL).style.pointerEvents="none",o.body.appendChild(Rq(this,oL))),Aq(this,nL,new IntersectionObserver((t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=Rq(this,Qq);Aq(this,Qq,a),(s||l)&&(u&&!a?(null==(r=Rq(this,rL))||r.disconnect(),this.callback(null),null==(n=Rq(this,tL))||n.disconnect(),Aq(this,tL,void 0),Rq(this,oL)&&(Rq(this,oL).style.visibility="hidden")):Rq(this,aL).call(this),a&&!Rq(this,tL)&&(Aq(this,tL,new Zq(Rq(this,aL))),Rq(this,tL).observe(e)))}),{threshold:cL,root:o})),Rq(this,Qq)&&!r.skipInitial&&this.callback(this.boundingClientRect),Rq(this,nL).observe(e)}};Qq=new WeakMap,eL=new WeakMap,tL=new WeakMap,rL=new WeakMap,nL=new WeakMap,oL=new WeakMap,iL=new WeakMap,aL=new WeakMap,sL=new WeakSet,lL=function(){Rq(this,iL)||(Iq(this,sL,uL).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,Rq(this,eL))||(this.callback(this.boundingClientRect),Aq(this,eL,this.boundingClientRect)))},uL=function(){if(Rq(this,oL)){const{top:e,left:t,width:r,height:n}=Hq(this.element);Rq(this,oL).style.overflow="hidden",Rq(this,oL).style.visibility="visible",Rq(this,oL).style.top=`${Math.floor(e)}px`,Rq(this,oL).style.left=`${Math.floor(t)}px`,Rq(this,oL).style.width=`${Math.floor(r)}px`,Rq(this,oL).style.height=`${Math.floor(n)}px`}};var pL,fL,hL,mL,gL=new WeakMap,bL=new WeakMap;function vL(e,t){let r=gL.get(e);if(!r){const t=new dL(e,(t=>{const r=gL.get(e);r&&r.callbacks.forEach((e=>e(t)))}),{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),gL.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(gL.delete(e),r.disconnect())}}var yL=class{constructor(e,t,r){this.callback=t,Pq(this,pL),Pq(this,fL,!1),Pq(this,hL),Pq(this,mL,Kq((e=>{if(!Rq(this,fL)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of Rq(this,hL))if(e.target.contains(t)){this.callback(Rq(this,pL).boundingClientRect);break}}),75));const n=function(e){const t=new Set;let r=Yq(e);for(;r;)t.add(r),r=Yq(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=vL(n,t);r.add(e)}return()=>r.forEach((e=>e()))}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!bL.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}),bL.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=bL.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),bL.delete(n))}):()=>{}}(e,Rq(this,mL));Aq(this,hL,n),Aq(this,pL,new dL(e,t,r)),this.disconnect=()=>{Rq(this,fL)||(Aq(this,fL,!0),o(),i(),Rq(this,pL).disconnect())}}};function xL(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function SL(e){try{xL(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function wL(e){return!(!Tq||!e)&&e===zq(e).scrollingElement}function CL(e){const t=Lq(e),r=wL(e)?function(e){const{documentElement:t}=zq(e),r=t.clientWidth,n=t.clientHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}(e):Dq(e),n=wL(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 EL(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=CL(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}}pL=new WeakMap,fL=new WeakMap,hL=new WeakMap,mL=new WeakMap;var RL=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)))}},PL=new RL((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),AL=new RL((e=>setTimeout(e,50))),IL=new Map,kL=IL.clear.bind(IL);function ML(e,t=!1){if(!t)return DL(e);let r=IL.get(e);return r||(r=DL(e),IL.set(e,r),AL.schedule(kL),r)}function DL(e){return Lq(e).getComputedStyle(e)}var TL={excludeElement:!0};function OL(e,t=TL){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(Nq(i)&&null!=i.scrollingElement&&!o.has(i.scrollingElement))return o.add(i.scrollingElement),o;if(!jq(i))return _q(i)?t(i.parentElement):o;if(o.has(i))return o;const a=ML(i,!0);if(n&&i===e||function(e,t=ML(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=ML(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 qL(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=Yq(e);for(;n;){if(n===t)return r;const e=Dq(n),{x:o,y:i}=LL(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=Yq(n)}return r}function LL(e,t=Dq(e)){const r=Math.round(t.width),n=Math.round(t.height);if(jq(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=ML(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function NL(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 jL(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=NL(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 _L=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(_L||{}),zL={x:.2,y:.2},FL={x:10,y:10};function HL(e,t,r,n=25,o=zL,i=FL){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=CL(e),f=qL(e),h=jL(ML(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new rT(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 $L(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!jq(e))return e.scrollIntoView();var n=function(e){const[t]=OL(e,{limit:1});return null!=t?t:null}(e);if(!jq(n))return;const o=ML(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 BL({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function WL(e,t=ML(e).translate,r=!0){if(r){const t=Mq(e,(e=>"translate"in e));if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=NL(e);if(t)return t}}}if(t){const e=NL(t);if(e)return e}return{x:0,y:0,z:0}}var VL=new RL((e=>setTimeout(e,0))),UL=new Map,GL=UL.clear.bind(UL);function YL(e,t){const r=function(e){const t=e.ownerDocument;let r=UL.get(t);if(r)return r;r=t.getAnimations(),UL.set(t,r),VL.schedule(GL);const n=r.filter((t=>kq(t.effect)&&t.effect.target===e));return UL.set(e,n),r}(e).filter((e=>{var r,n;if(kq(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 KL=class extends rT{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=qL(e),ignoreTransforms:s,getBoundingClientRect:l=Dq}=t,u=YL(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||$q())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=ML(e),b=jL(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=kq(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=jL({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 XL(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 JL=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(XL(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(XL(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(XL(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function ZL(e){return!!e&&(e instanceof Lq(e).Element||qq(e)&&e.nodeType===Node.ELEMENT_NODE)}function QL(e){if(!e)return!1;const{KeyboardEvent:t}=Lq(e.target);return e instanceof t}var eN={};function tN(e){const t=null==eN[e]?0:eN[e]+1;return eN[e]=t,`${e}-${t}`}var rN=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/tT.distance(t.shape.center,r),type:pO.PointerIntersection,priority:dO.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=tT.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:pO.ShapeIntersection,priority:dO.Normal}}return null})(e)},nN=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?rT.from(n.current.boundingRectangle).corners:void 0,a=rT.from(r.shape.boundingRectangle).corners.reduce(((e,t,r)=>{var n;return e+tT.distance(tT.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:pO.Collision,priority:dO.Normal}},oN=Object.create,iN=Object.defineProperty,aN=Object.defineProperties,sN=Object.getOwnPropertyDescriptor,lN=Object.getOwnPropertyDescriptors,uN=Object.getOwnPropertySymbols,cN=Object.prototype.hasOwnProperty,dN=Object.prototype.propertyIsEnumerable,pN=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),fN=e=>{throw TypeError(e)},hN=(e,t,r)=>t in e?iN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mN=(e,t)=>{for(var r in t||(t={}))cN.call(t,r)&&hN(e,r,t[r]);if(uN)for(var r of uN(t))dN.call(t,r)&&hN(e,r,t[r]);return e},gN=(e,t)=>aN(e,lN(t)),bN=(e,t)=>iN(e,"name",{value:t,configurable:!0}),vN=(e,t)=>{var r={};for(var n in e)cN.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&uN)for(var n of uN(e))t.indexOf(n)<0&&dN.call(e,n)&&(r[n]=e[n]);return r},yN=e=>{var t;return[,,,oN(null!=(t=null==e?void 0:e[pN("metadata")])?t:null)]},xN=["class","method","getter","setter","accessor","field","value","get","set"],SN=e=>void 0!==e&&"function"!=typeof e?fN("Function expected"):e,wN=(e,t,r,n,o)=>({kind:xN[e],name:t,metadata:n,addInitializer:e=>r._?fN("Already initialized"):o.push(SN(e||null))}),CN=(e,t)=>hN(t,pN("metadata"),e[3]),EN=(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},RN=(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=xN[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)&&sN(d<4?o:{get[r](){return IN(this,i)},set[r](e){return MN(this,i,e)}},r));d?f&&d<4&&bN(i,(d>2?"set ":d>1?"get ":"")+r):bN(o,r);for(var y=n.length-1;y>=0;y--)u=wN(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>AN(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?IN:DN)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>MN(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?SN(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?fN("Object expected"):(SN(a=s.get)&&(v.get=a),SN(a=s.set)&&(v.set=a),SN(a=s.init)&&g.unshift(a));return d||CN(e,o),v&&iN(o,r,v),f?4^d?i:v:o},PN=(e,t,r)=>t.has(e)||fN("Cannot "+r),AN=(e,t)=>Object(t)!==t?fN('Cannot use the "in" operator on this value'):e.has(t),IN=(e,t,r)=>(PN(e,t,"read from private field"),r?r.call(e):t.get(e)),kN=(e,t,r)=>t.has(e)?fN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),MN=(e,t,r,n)=>(PN(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),DN=(e,t,r)=>(PN(e,t,"access private method"),r),TN="button",ON="draggable",qN="dnd-kit-description",LN="dnd-kit-announcement",NN={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."},jN={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 _N(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var zN=["dragover","dragmove"],FN=class extends BT{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=qN,announcement:o=LN}={},announcements:i=jN,screenReaderInstructions:a=NN,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:tN(n),u=r?`${o}-${r}`:tN(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>PL.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,zN.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),_N(r)&&!$q()||r.hasAttribute("tabindex")||y.add((()=>r.setAttribute("tabindex","0"))),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add((()=>r.setAttribute("role",TN))),r.hasAttribute("aria-roledescription")||y.add((()=>r.setAttribute("aria-roledescription",ON))),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&&PL.schedule(x)})),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),b.forEach((e=>e()))}}};var HN="data-dnd-",$N=`${HN}dropping`,BN="--dnd-",WN=`${HN}dragging`,VN=`${HN}placeholder`,UN=[WN,VN,"popover","aria-pressed","aria-grabbing"],GN=["view-transition-name"],YN=`\n :root [${WN}] {\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(${BN}top, 0px) !important;\n left: var(${BN}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${BN}width, auto);\n max-width: var(${BN}width, auto);\n height: var(${BN}height, auto);\n max-height: var(${BN}height, auto);\n transition: var(${BN}transition) !important;\n }\n\n :root [${VN}] {\n transition: none;\n }\n\n :root [${VN}='hidden'] {\n visibility: hidden;\n }\n\n [${WN}] * {\n pointer-events: none !important;\n }\n\n [${WN}]:not([${$N}]) {\n translate: var(${BN}translate) !important;\n }\n\n [${WN}][style*='${BN}scale'] {\n scale: var(${BN}scale) !important;\n transform-origin: var(${BN}transform-origin) !important;\n }\n\n @layer {\n :where([${WN}][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 [${WN}]::backdrop, [${HN}overlay]:not([${WN}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function KN(e,t="hidden"){return yM((()=>{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=`${HN}${tN("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(Bq(e)&&Bq(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),Wq(e)&&Wq(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),Uq.set(a,i),r.push((()=>{Uq.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(VN,t)}(a,t),a.remove=()=>{i.forEach((e=>e())),s.call(a)},a}))}function XN(e,t){return e===t||Yq(e)===Yq(t)}function JN(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&ZL(t)&&t.hasAttribute("popover")&&requestAnimationFrame((()=>SL(t)))}function ZN(e){return"TR"===e.tagName}var QN,ej,tj,rj,nj,oj,ij,aj=new Map,sj=class extends(ej=BT,QN=[ID],ej){constructor(e,t){super(e,t),kN(this,nj),kN(this,rj,EN(tj,8,this)),EN(tj,11,this),this.state={initial:{},current:{}},this.registerEffect(DN(this,nj,ij)),this.registerEffect(DN(this,nj,oj))}destroy(){super.destroy();for(const[e,t]of aj.entries())t.instances.has(this)&&(t.instances.delete(this),0===t.instances.size&&(t.cleanup(),aj.delete(e)))}};tj=yN(ej),rj=new WeakMap,nj=new WeakSet,oj=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=qL(f),m=qL(c),g=!XN(c,f),b=new KL(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 JL(f),{transition:A,translate:I,boxSizing:k,paddingBlockStart:M,paddingBlockEnd:D,paddingInlineStart:T,paddingInlineEnd:O,borderInlineStartWidth:q,borderInlineEndWidth:L,borderBlockStartWidth:N,borderBlockEndWidth:j}=ML(c),_="clone"===d,z="content-box"===k,F=z?parseInt(T)+parseInt(O)+parseInt(q)+parseInt(L):0,H=z?parseInt(M)+parseInt(D)+parseInt(N)+parseInt(j):0,$="move"===d||this.overlay?null:KN(l,_?"clone":"hidden"),B=yM((()=>QL(o.dragOperation.activatorEvent)));if("none"!==I){const e=NL(I);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=yM((()=>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(WN,"true");const ee=yM((()=>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}%`},BN),$&&(c.insertAdjacentElement("afterend",$),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}xL(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),SL(f),f.addEventListener("beforetoggle",JN));const oe=new ResizeObserver((()=>{if(!$)return;const e=new KL($,{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},BN),null==x||x.takeRecords(),ZN(c)&&ZN($)){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 KL(f)})),ie=new KL(f);yM((()=>a.shape=ie));const ae=Lq(f),se=e=>{this.manager.actions.stop({event:e})};B&&ae.addEventListener("resize",se),"idle"===yM((()=>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-")||UN.includes(e))continue;const n=c.getAttribute(e);if("style"===e){if(XL(c)&&XL($)){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(GN.includes(t)||t.startsWith(BN))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 SL(f);if(e.contains($)&&$.previousElementSibling!==c)return $.insertAdjacentElement("beforebegin",c),void SL(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;jq(r)&&r.focus()},ce=()=>{null==x||x.disconnect(),null==S||S.disconnect(),oe.disconnect(),ae.removeEventListener("resize",se),xL(f)&&(f.removeEventListener("beforetoggle",JN),f.removeAttribute("popover")),f.removeAttribute(WN),P.reset(),l.status="idle";const e=null!=n.current.translate;$&&(e||$.parentElement!==f.parentElement)&&f.isConnected&&$.replaceWith(f),null==$||$.remove()},de=DD((()=>{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=yM((()=>a.modifiers)),l=yM((()=>{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`},BN),null==x||x.takeRecords(),l&&l!==ie&&i&&!s.length){const e=tT.delta(o,i);a.shape=rT.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new KL(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;{SL(f);const[,o]=null!=(r=Mq(f,(e=>"translate"in e)))?r:[];null==o||o.pause();const i=null!=$?$:c,a={frameTransform:XN(f,i)?null:void 0},s=new KL(f,a),u=null!=(n=NL(ML(f).translate))?n:e,d=new KL(i,a),p=rT.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},BN),f.setAttribute($N,""),null==x||x.takeRecords(),BL({element:f,keyframes:gN(mN(mN({},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($N),null==o||o.finish(),ce(),requestAnimationFrame(ue)}))}};o.renderer.rendering.then(r)}}));return()=>{ce(),de()}},ij=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=zq(null!=(t=null==o?void 0:o.element)?t:null),n=zq(null!=(r=null==i?void 0:i.element)?r:null),s=new Set([e,n]);for(const e of s){let t=aj.get(e);if(!t){const r=document.createElement("style");r.textContent=YN,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},aj.set(e,t)}t.instances.add(this)}}},RN(tj,4,"overlay",QN,sj,rj),CN(tj,sj),sj.configure=HT(sj);var lj,uj,cj,dj,pj,fj,hj,mj=sj,gj=!0;cj=[ID],dj=_L.Forward,lj=[ID],uj=_L.Reverse;var bj=class{constructor(){kN(this,fj,EN(pj,8,this,gj)),EN(pj,11,this),kN(this,hj,EN(pj,12,this,gj)),EN(pj,15,this)}isLocked(e){return e!==_L.Idle&&(null==e?this[_L.Forward]===gj&&this[_L.Reverse]===gj:this[e]===gj)}unlock(e){e!==_L.Idle&&(this[e]=false)}};pj=yN(null),fj=new WeakMap,hj=new WeakMap,RN(pj,4,dj,cj,bj,fj),RN(pj,4,uj,lj,bj,hj),CN(pj,bj);var vj,yj,xj,Sj,wj,Cj,Ej=[_L.Forward,_L.Reverse],Rj=class{constructor(){this.x=new bj,this.y=new bj}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},Pj=class extends BT{constructor(e){super(e);const t=PM(new Rj);let r=null;this.signal=t,NM((()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new Rj);const{delta:o}=e.dragOperation.position;if(r){const e={x:Aj(o.x,r.x),y:Aj(o.y,r.y)},n=t.peek();bM((()=>{for(const t of dT)for(const r of Ej)e[t]===r&&n[t].unlock(r);t.value=n}))}r=o}))}get current(){return this.signal.peek()}};function Aj(e,t){return Math.sign(e-t)}var Ij=class extends(yj=VT,vj=[ID],yj){constructor(e){super(e),kN(this,Sj,EN(xj,8,this,!1)),EN(xj,11,this),kN(this,wj),kN(this,Cj,(()=>{if(!IN(this,wj))return;const{element:e,by:t}=IN(this,wj);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 MN(this,wj,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:kj(n.x),y:kj(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=EL(e,n);if(r.x||r.y){const{speed:r,direction:s}=HL(e,o,i);if(a)for(const e of dT)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=IN(this,wj))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return MN(this,wj,{element:e,by:{x:a,y:l}}),PL.schedule(IN(this,Cj)),!0}}}}}return MN(this,wj,void 0),!1};let t=null,r=null;const n=PD((()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=Vq(zq(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t})),o=PD((()=>{const t=n.value,{documentElement:o}=zq(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=OL(n,{excludeElement:!1});return r=e,e}}if(t){const e=OL(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null}),AD);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new Pj(e),this.destroy=e.monitor.addEventListener("dragmove",(t=>{!this.disabled&&!t.defaultPrevented&&QL(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()}))}};function kj(e){return e>0?_L.Forward:e<0?_L.Reverse:_L.Idle}xj=yN(yj),Sj=new WeakMap,wj=new WeakMap,Cj=new WeakMap,RN(xj,4,"autoScrolling",vj,Ij,Sj),CN(xj,Ij);var Mj,Dj=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()})),Tj=class extends BT{constructor(e,t){super(e);const r=e.registry.plugins.get(Ij);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=NM((()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval((()=>Dj.schedule(r.scroll)),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}}))}},Oj={capture:!0,passive:!0},qj=class extends VT{constructor(e){super(e),kN(this,Mj),this.handleScroll=()=>{null==IN(this,Mj)&&MN(this,Mj,setTimeout((()=>{this.manager.collisionObserver.forceUpdate(!1),MN(this,Mj,void 0)}),50))};const{dragOperation:t}=this.manager;this.destroy=NM((()=>{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,Oj),()=>{o.removeEventListener("scroll",this.handleScroll,Oj)}}}))}};Mj=new WeakMap;function Lj(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var Nj,jj=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},shouldActivate(e){var t;const{event:r,source:n}=e,o=null!=(t=n.handle)?t:n.element;return r.target===o}}),_j=class extends bq{constructor(e,t){super(e),this.manager=e,this.options=t,kN(this,Nj,[]),this.listeners=new Gq,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!ZL(e.target))return;if(t.disabled)return;const{keyboardCodes:n=jj.keyboardCodes,shouldActivate:o=jj.shouldActivate}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&o({event:e,source:t,manager:this.manager})&&this.handleStart(e,t,r)}}bind(e,t=this.options){const r=NM((()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{QL(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(),$L(n);const{center:o}=new KL(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=zq(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];IN(this,Nj).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=jj.keyboardCodes}=null!=r?r:{};if(Fj(e,[...n.end,...n.cancel])){e.preventDefault();const t=Fj(e,n.cancel);this.handleEnd(e,t)}else Fj(e,n.up)?this.handleMove("up",e):Fj(e,n.down)&&this.handleMove("down",e),Fj(e,n.left)?this.handleMove("left",e):Fj(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:jj.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(Tj);!1===(null==e?void 0:e.disabled)&&(e.disable(),IN(this,Nj).push((()=>{e.enable()})))}cleanup(){IN(this,Nj).forEach((e=>e())),MN(this,Nj,[])}destroy(){this.cleanup(),this.listeners.clear()}};Nj=new WeakMap,_j.configure=HT(_j),_j.defaults=jj;var zj=_j;function Fj(e,t){return t.includes(e.code)}var Hj,$j,Bj=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!ZL(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?{delay:{value:250,tolerance:5}}:function(e){if(!ZL(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?{delay:{value:200,tolerance:0}}:{delay:{value:200,tolerance:10},distance:{value:5}}}}),Wj=class extends bq{constructor(e,t){super(e),this.manager=e,this.options=t,kN(this,Hj,new Set),kN(this,$j),this.listeners=new Gq,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=Bj.activationConstraints}=null!=(r=this.options)?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=NM((()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=Lq(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&&(Kj(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||!ZL(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{target:n}=e,o=jq(n)&&n.draggable&&"true"===n.getAttribute("draggable"),i=qL(t.element);this.initialCoordinates={x:e.clientX*i.scaleX+i.x,y:e.clientY*i.scaleY+i.y};const a=this.activationConstraints(e,t);if(e.sensor=this,(null==a?void 0:a.delay)||(null==a?void 0:a.distance)){const{delay:r}=a;if(r){const n=setTimeout((()=>this.handleStart(t,e)),r.value);MN(this,$j,(()=>{clearTimeout(n),MN(this,$j,void 0)}))}}else this.handleStart(t,e);const s=zq(e.target),l=this.listeners.bind(s,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"dragstart",listener:o?this.handleCancel:Uj,options:{capture:!0}}]);IN(this,Hj).add((()=>{var e;l(),null==(e=IN(this,$j))||e.call(this),this.initialCoordinates=void 0}))}handlePointerMove(e,t){const r={x:e.clientX,y:e.clientY},n=qL(t.element);if(r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,this.manager.dragOperation.status.dragging)return e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,void PL.schedule(this.handleMove);if(!this.initialCoordinates)return;const o={x:r.x-this.initialCoordinates.x,y:r.y-this.initialCoordinates.y},i=this.activationConstraints(e,t),{distance:a,delay:s}=null!=i?i:{};if(a){if(null!=a.tolerance&&iT(o,a.tolerance))return this.handleCancel(e);if(iT(o,a.value))return this.handleStart(t,e)}return s&&iT(o,s.tolerance)?this.handleCancel(e):void 0}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){var r;const{manager:n,initialCoordinates:o}=this;if(null==(r=IN(this,$j))||r.call(this),!o||!n.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(n.actions.start({coordinates:o,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const i=zq(t.target),a=i.body;a.setPointerCapture(t.pointerId);const s=this.listeners.bind(i,[{type:"touchmove",listener:Uj,options:{passive:!1}},{type:"click",listener:Uj},{type:"contextmenu",listener:Uj},{type:"keydown",listener:this.handleKeyDown},{type:"lostpointercapture",listener:e=>{e.target===a&&this.handlePointerUp(e)}}]);IN(this,Hj).add(s)}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},IN(this,Hj).forEach((e=>e())),IN(this,Hj).clear()}destroy(){this.cleanup(),this.listeners.clear()}};Hj=new WeakMap,$j=new WeakMap,Wj.configure=HT(Wj),Wj.defaults=Bj;var Vj=Wj;function Uj(e){e.preventDefault()}function Gj(){}var Yj=new WeakSet;function Kj(e){e&&!Yj.has(e)&&(e.addEventListener("touchmove",Gj,{capture:!1,passive:!1}),Yj.add(e))}var Xj,Jj,Zj,Qj,e_,t_,r_,n_,o_,i_,a_,s_,l_,u_,c_,d_,p_,f_,h_={modifiers:[],plugins:[FN,Tj,class extends BT{constructor(e,t){super(e,t),this.manager=e;const r=PD((()=>{var e;return zq(null==(e=this.manager.dragOperation.source)?void 0:e.element)}));this.destroy=NM((()=>{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()}}))}},mj,class extends BT{constructor(e,t){super(e,t),this.manager=e,this.destroy=NM((()=>{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),Lj(),document.addEventListener("selectionchange",Lj,{capture:!0}),()=>{document.removeEventListener("selectionchange",Lj,{capture:!0}),e.remove()}}}))}}],sensors:[Vj,zj]},m_=class extends wq{constructor(e={}){const{plugins:t=h_.plugins,sensors:r=h_.sensors,modifiers:n=[]}=e;super(gN(mN({},e),{plugins:[qj,Ij,...t],sensors:r,modifiers:n}))}},g_=class extends(Qj=XO,Zj=[ID],Jj=[ID],Xj=[ID],Qj){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=vN(r,["element","effects","handle","feedback"]);super(mN({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map($T))?t:[...r.sensors]).map((e=>{const t=e instanceof bq?e:r.registry.register(e.plugin),n=e instanceof bq?void 0:e.options;return t.bind(this,n)}));return function(){n.forEach((e=>e()))}}]},s),t),kN(this,t_,EN(e_,8,this)),EN(e_,11,this),kN(this,r_,EN(e_,12,this)),EN(e_,15,this),kN(this,n_,EN(e_,16,this)),EN(e_,19,this),this.element=n,this.handle=i,this.feedback=a}};e_=yN(Qj),t_=new WeakMap,r_=new WeakMap,n_=new WeakMap,RN(e_,4,"handle",Zj,g_,t_),RN(e_,4,"element",Jj,g_,r_),RN(e_,4,"feedback",Xj,g_,n_),CN(e_,g_);var b_=class extends(a_=JO,i_=[ID],o_=[ID],a_){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=vN(r,["element","effects"]);const{collisionDetector:a=rN}=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 KL(r),o=yM((()=>this.shape));return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=PM(!1);super(gN(mN({},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 yL(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),kN(this,p_),kN(this,l_,EN(s_,8,this)),EN(s_,11,this),kN(this,f_,EN(s_,12,this)),EN(s_,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){MN(this,p_,e,d_)}get element(){var e;return null!=(e=this.proxy)?e:IN(this,p_,c_)}};function v_(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}s_=yN(a_),l_=new WeakMap,p_=new WeakSet,f_=new WeakMap,u_=RN(s_,20,"#element",i_,p_,l_),c_=u_.get,d_=u_.set,RN(s_,4,"proxy",o_,b_,f_),CN(s_,b_);var y_="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?L:E;function x_(){const e=w(0)[1];return T((()=>{e((e=>e+1))}),[e])}function S_(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=x_();return y_((()=>NM((()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?H(o):o()}}))),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(C((()=>PD((()=>n.current()))),t),r)}function w_(e,t){const r=D(new Map),n=x_();return y_((()=>{if(e)return NM((()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=yM((()=>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?H(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 C_(e,t){e()}function E_(e){const t=D(e);return y_((()=>{t.current=e}),[e]),t}function R_(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 P_(e,t){const r=D(v_(e));y_((()=>{const n=v_(e);n!==r.current&&(r.current=n,t(n))}))}var A_=Object.getOwnPropertySymbols,I_=Object.prototype.hasOwnProperty,k_=Object.prototype.propertyIsEnumerable,M_=new m_,D_=M(M_),T_=q(O((({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}))),N((()=>{e(),n((e=>e+1))}))}})),[]);return y_((()=>{var e;null==(e=i.current)||e.call(i),o.current=null}),[e,r]),j(t,(()=>a)),null}))),O_=[void 0,AD];function q_(e){var t,r=e,{children:n,onCollision:o,onBeforeDragStart:i,onDragStart:a,onDragMove:s,onDragOver:l,onDragEnd:u}=r,c=((e,t)=>{var r={};for(var n in e)I_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&A_)for(var n of A_(e))t.indexOf(n)<0&&k_.call(e,n)&&(r[n]=e[n]);return r})(r,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const d=D(null),[p,f]=w(null!=(t=c.manager)?t:null),{plugins:h,modifiers:m,sensors:g}=c,b=E_(i),v=E_(a),y=E_(l),x=E_(s),S=E_(u),C=E_(o);return E((()=>{var e;if(!d.current)throw new Error("Renderer not found");const{renderer:t,trackRendering:r}=d.current,n=null!=(e=c.manager)?e:new m_(c);return n.renderer=t,n.monitor.addEventListener("beforedragstart",(e=>{const t=b.current;t&&r((()=>t(e,n)))})),n.monitor.addEventListener("dragstart",(e=>{var t;return null==(t=v.current)?void 0:t.call(v,e,n)})),n.monitor.addEventListener("dragover",(e=>{const t=y.current;t&&r((()=>t(e,n)))})),n.monitor.addEventListener("dragmove",(e=>{const t=x.current;t&&r((()=>t(e,n)))})),n.monitor.addEventListener("dragend",(e=>{const t=S.current;t&&r((()=>t(e,n)))})),n.monitor.addEventListener("collision",(e=>{var t;return null==(t=C.current)?void 0:t.call(C,e,n)})),N((()=>f(n))),n.destroy}),[c.manager]),R_(h,(()=>p&&(p.plugins=null!=h?h:h_.plugins)),...O_),R_(g,(()=>p&&(p.sensors=null!=g?g:h_.sensors)),...O_),R_(m,(()=>p&&(p.modifiers=null!=m?m:h_.modifiers)),...O_),er.jsxs(D_.Provider,{value:p,children:[er.jsx(T_,{ref:d,children:n}),n]})}function L_(){return S(D_)}function N_({children:e,className:t,style:r,tag:n,disabled:o}){var i;const a=D(null),s=L_(),l=null!=(i=S_((()=>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 mj));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?j_:e[t]});return new Proxy(s,{get:(t,r)=>"registry"===r?e:t[r]})}),[s]);return er.jsx(D_.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 er.jsx(__,{source:l,children:e});return e}())})}function j_(){return()=>{}}function __({children:e,source:t}){return e(w_(t))}var z_,F_,H_,$_,B_,W_=Object.create,V_=Object.defineProperty,U_=Object.getOwnPropertyDescriptor,G_=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Y_=e=>{throw TypeError(e)},K_=["class","method","getter","setter","accessor","field","value","get","set"],X_=e=>void 0!==e&&"function"!=typeof e?Y_("Function expected"):e,J_=(e,t,r,n,o)=>({kind:K_[e],name:t,metadata:n,addInitializer:e=>r._?Y_("Already initialized"):o.push(X_(e||null))}),Z_=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=K_[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,U_(o,r)),h=n.length-1;h>=0;h--)(l=J_(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,X_(a)&&(f[d]=a);return f&&V_(o,r,f),o},Q_=(e,t,r)=>t.has(e)||Y_("Cannot "+r),ez=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)}},tz=class extends(H_=OD,F_=[kD],z_=[kD],H_){constructor(e){var t,r,n;super(ez.from(e),((e,t)=>ez.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)})(B_,5,this),t=this,n=0,(r=$_).has(t)?Y_("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 ez.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=ez.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(Q_(a=this,s=$_,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);bM((()=>{((e,t,r)=>{Q_(e,t,"write to private field"),t.set(e,r)})(this,$_,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(ez.from(e)),this.velocity={x:0,y:0}}};B_=(e=>{var t;return[,,,W_(null!=(t=null==e?void 0:e[G_("metadata")])?t:null)]})(H_),$_=new WeakMap,Z_(B_,2,"delta",F_,tz),Z_(B_,2,"direction",z_,tz),((e,t)=>{((e,t,r)=>{t in e?V_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,G_("metadata"),e[3])})(B_,tz);var rz=(e=>(e.Horizontal="x",e.Vertical="y",e))(rz||{});Object.values(rz);const nz=()=>{const{flags:e}=HI(jI,(e=>e.env)),t=HI(jI,(e=>e.baseProps.layout));return!e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")||void 0===t.accessibleHeader||t.accessibleHeader},oz=(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}),iz=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),az=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),sz=e=>e.atTop?2:1,lz=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],uz=e=>e?.setAttribute("tabIndex","0"),cz=e=>e?.setAttribute("tabIndex","-1"),dz=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(cz)},pz=e=>{e?.focus(),uz(e)},fz=e=>{setTimeout((()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${ZC}`);pz(t)}),0)},hz=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{dz(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 JC.Down:u<s&&u++;break;case JC.Up:u>a&&u--;break;case JC.Right:if(i)break;[u,c]="rtl"===n?iz({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):az({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case JC.Left:if(i)break;[u,c]="rtl"===n?az({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):iz({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case JC.Home:(aI(e)||i)&&(u=a),i||(c=0);break;case JC.End:(aI(e)||i)&&(u=s),i||(c=l);break;case JC.PageDown:u=Math.min(s,u+10);break;case JC.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=lz(t,a);return pz(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}},mz=(e,t,r,n)=>{dz(t),r(e),n.enabled&&!n.active?n.focus?.():pz(lz(t,e))},gz=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${YC}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${RA.First}`),r=e.querySelector(`.${RA.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},bz=O(((e,t)=>er.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:er.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"})}))),vz=ic(qh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...FA,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}}))),yz=ic("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:jA,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),xz=parseInt(jA,10)/2,Sz=ic("div")({position:"absolute",bottom:-xz,left:`calc(50% - ${xz}px)`}),wz={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},Cz=ic(Kd)({height:"100%"}),Ez=ic("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?{...wz,whiteSpace:"nowrap",display:r?"block":void 0}:{...wz,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"})),Rz=ic("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),Pz="cell-text",Az=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=HI(jI,(e=>e.baseProps));return o?er.jsx(Ez,{"data-testid":Pz,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):er.jsx(Ez,{"data-testid":Pz,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},Iz=({column:e,isInteractionEnabled:t,open:r,setOpen:n,isPagination:o,forwardRef:i})=>{const{translator:a,changeSortOrder:s,interactions:l,embed:u,app:c,styleService:d,layout:p,direction:f}=HI(jI,(e=>e.baseProps)),h=HI(jI,(t=>t.columnWidths[e.pageColIdx])),m=HI(jI,(e=>e.baseProps.model)),g=D(null),b=D(null),v=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=_C({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:_A});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:d,column:e,columnWidth:h}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?er.jsx(Sk,{height:jA,"data-testid":"head-cell-sort-ascending-icon"}):er.jsx(Ek,{height:jA,"data-testid":"head-cell-sort-descending-icon"}),a=r?er.jsx(yz,{align:t,dir:o,children:i}):void 0,s=n?er.jsx(QA,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:er.jsx(bz,{height:jA,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(e,v,f);return er.jsxs(ZA,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:VA(e,o,f),children:[S,er.jsxs(JA,{className:"sn-table-head-label",textAlign:e.headTextAlign,direction:f,isPagination:o,children:[y,er.jsx(Az,{forwardRef:i,isPagination:o,isHeadCell:!0,children:e.label}),x]}),t?er.jsxs(er.Fragment,{children:[er.jsx(_k,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:a,anchorRef:g,menuAvailabilityFlags:{[Lk.Sorting]:!0,[Lk.Searching]:!0,[Lk.Selections]:!0,[Lk.AdjusterHeaderSize]:!0},open:r,setOpen:n,interactions:l,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),s(e,r))},searchRelatedArgs:{embed:u,listboxRef:b},selectionRelatedArgs:{app:c,qStateName:p.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:fz},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:f,isPagination:o,isAccessibleHeader:!0}),er.jsx(XA,{ref:b,direction:f,isPagination:o}),er.jsx(XA,{ref:g,direction:f})]}):null]})},kz=O(((e,t)=>er.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:er.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"})}))),Mz=(e,t)=>e.isCyclic&&t,Dz=({column:e})=>{const{direction:t,model:r,styleService:n}=HI(jI,(e=>e.baseProps)),o=x.useRef(null),[i,a]=x.useState(!1),s=YI({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return er.jsxs(er.Fragment,{children:[er.jsx(tI,{hoverBackground:n.headerMenuHoverBackground,activeBackground:n.headerMenuActiveBackground,isActive:i,onClick:e=>{e.stopPropagation(),a(!0)},children:er.jsx(kz,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),er.jsx(mk,{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:Rk,isActive:e.groupDimensionPos===r})))}]],anchorEl:o.current,direction:t,isPagination:!1})]})},Tz=e=>e.isLocked,Oz=({column:e})=>{const t=HI(jI,(e=>e.baseProps.app)),r=HI(jI,(e=>e.baseProps.layout.qStateName)),n=HI(jI,(e=>e.baseProps.styleService));return er.jsx(tI,{hoverBackground:n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=bk(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:er.jsx(bz,{height:16,"data-testid":"head-cell-lock-icon"})})},qz=({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}=HI(jI,(e=>e.baseProps)),p=HI(jI,(e=>e.baseProps.model)),f=x.useRef(null),h=x.useRef(null);return er.jsxs(tI,{hoverBackground:d.headerMenuHoverBackground,activeBackground:d.headerMenuActiveBackground,isActive:t,order:e.isDim?void 0:-1,children:[er.jsx(_k,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:o,anchorRef:f,menuAvailabilityFlags:{[Lk.Sorting]:!0,[Lk.Searching]:!0,[Lk.Selections]:!0,[Lk.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:fz},shouldShowMenuIcon:!0,model:p,direction:l,isPagination:n,isAccessibleHeader:!1,iconSize:16}),er.jsx(XA,{ref:h,direction:l,isPagination:n}),er.jsx(XA,{ref:f,direction:l})]})},Lz=e=>e.at(0)?.contentBoxSize.at(0)?.blockSize,Nz=(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])},jz=ic(Kd)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),_z=({children:e})=>{const t=x.useRef(null),[r,n]=w((()=>new Set(e.filter((({props:e})=>void 0!==e.prio&&e.children)).map((({key:e})=>e))))),o=C((()=>Array.from(e).sort(((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)))),[e]),i=T((e=>{const t=new Set,r=e.at(0)?.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach((e=>{if(e.props.ignore||!e.props.children)return;const n=e.props.minWidth+1;void 0===e.props.prio||i+n<=r?i+=n:t.add(e.key)})),n((e=>e.size===t.size&&[...e].every((e=>t.has(e)))?e:t))}),[o]);return Nz(t,i),er.jsx(jz,{ref:t,"data-testid":"responsive-container",children:e.filter((e=>!r.has(e.key)))})};_z.Item=({children:e})=>e;const zz=(e,t)=>!e.isLocked&&e.isDim&&t,Fz=({column:e,open:t,setOpen:r})=>{const{embed:n,app:o,direction:i,layout:a,styleService:s}=HI(jI,(e=>e.baseProps)),l=x.useRef(null),u=T((()=>{r(!1)}),[r]),c=gk({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:n,listboxRef:l},selectionRelatedArgs:{qStateName:a.qStateName},direction:i,onPopoverClose:u});return er.jsx(tI,{hoverBackground:s.headerMenuHoverBackground,activeBackground:s.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),c(),r(!0)},children:er.jsx(kk,{ref:l,height:16,"data-testid":"head-cell-search-icon"})})},Hz=O(((e,t)=>er.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:er.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"})}))),$z=O(((e,t)=>er.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:er.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"})}))),Bz=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?er.jsx($z,{height:jA,"data-testid":"head-cell-sort-ascending-icon"}):er.jsx(Hz,{height:jA,"data-testid":"head-cell-sort-descending-icon"});return r?er.jsx(Sz,{children:n}):void 0},Wz=0,Vz=1,Uz=2,Gz=3,Yz=({column:e,open:t,setOpen:r,isPagination:n,forwardRef:o})=>{const{styleService:i}=HI(jI,(e=>e.baseProps)),a=(()=>{const e=HI(jI,(e=>e.baseProps.interactions.active)),t=HI(jI,(e=>e.baseProps.selectionsAPI?.isModal()));return!!e&&!t})(),{measureText:s}=_C(i.header),[l,u]=x.useState(!1);return er.jsxs(_z,{children:[er.jsx(_z.Item,{prio:Uz,minWidth:KA,children:Tz(e)?er.jsx(Oz,{column:e}):null},"Lock"),er.jsx(_z.Item,{prio:Vz,minWidth:KA,children:Mz(e,a)?er.jsx(Dz,{column:e}):null},"Cyclic"),er.jsx(_z.Item,{ignore:!0,children:er.jsx(Bz,{column:e})},"Sort"),er.jsx(_z.Item,{minWidth:s(e.label)+8,children:er.jsx(eI,{justifyContent:e.headTextAlign,children:er.jsx(Az,{forwardRef:o,isPagination:n,isHeadCell:!0,children:e.label})})},"Text"),er.jsx(_z.Item,{prio:Wz,minWidth:KA,children:l||zz(e,a)?er.jsx(Fz,{open:l,setOpen:u,column:e}):null},"Search"),er.jsx(_z.Item,{prio:Gz,minWidth:KA,children:a?er.jsx(qz,{column:e,open:t,setOpen:r,isPagination:n}):null},"Menu")]})},Kz=ic("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e})((({background:e,applicableStyle:t})=>({...t,background:e}))),Xz=()=>{},Jz=({column:e,isPagination:t})=>{const{styleService:r,direction:n}=HI(jI,(e=>e.baseProps)),o=HI(jI,(e=>e.showRightBorder)),i=HI(jI,(e=>e.tableData.totalsPosition)),a=!1,s=nz()?Iz:Yz;return er.jsx(Kz,{className:"sn-table-cell",applicableStyle:{...r.header,...oz(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:GA(n,a,o),borderLeftWidth:YA(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:er.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:Xz})})},Zz=({isPagination:e})=>{const{columns:t}=HI(jI,(e=>e.tableData)),[r,n]=w();!function(e){const t=L_();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])}({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find((e=>e.id===r)):void 0,i=e?"calc(100% + 9px)":"100%";return o?er.jsx(N_,{children:er.jsx("div",{style:{background:"white",height:i,display:"flex",position:"relative"},children:er.jsx(Jz,{column:o,isPagination:e})})}):null},Qz=h_.sensors.filter((e=>e!==zj)),eF=h_.plugins.filter((e=>e!==FN)),tF=({children:e})=>{const{model:t}=HI(jI,(e=>e.baseProps)),{columns:r}=HI(jI,(e=>e.tableData));return er.jsx(q_,{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:Qz,plugins:eF,children:e})};function rF(e,t){const r=D(!1);E((()=>{r.current?e():r.current=!0}),t)}const nF=()=>{const{downloadService:e}=HI(jI,(e=>e.baseProps));E((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))},oF=(e,t,r)=>{const{rootElement:n,keyboard:o}=HI(jI,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:s,totalsPosition:l}=HI(jI,(e=>e.tableData)),u=HI(jI,(e=>e.focusedCellCoord)),c=HI(jI,(e=>e.setFocusedCellCoord)),d=HI(jI,(e=>e.baseProps.selectionsAPI?.isModal()));rF((()=>{const r=((e,t,r=!1)=>{const n=[sz(t),e[1]];return r?n:PA})(u,l,d);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(dz(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=lz(t,e);r.current?(pz(s),r.current=!1):uz(s),n&&(a({keys:[s?.textContent??""]}),iI(a,s,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[s.length,a,i,r])},iF=(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])},aF=e=>{IC(e),aI(e)&&aE(e.currentTarget)},sF=e=>{cI(e.evt)&&(IC(e.evt),hz(e))},lF=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!cI(t))return;IC(t);const i=((e,t)=>[e.pageRowIdx+sz(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?sz(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=hz({...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:CA.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):iI(o,a,i)})({...e,nextCell:s})},uF=e=>{const{evt:t}=e;sI(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{IC(e);const a=Math.ceil(t/r)-1;e.key===JC.Right&&n<a?(o(),i(n+1)):e.key===JC.Left&&n>0&&(o(),i(n-1))})(e):t.key===JC.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(IC(e),t.blur?.(!0))})(e):lI(t.key)&&IC(t)},cF=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(wA.Disabled))return void IC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case JC.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{IC(e),t.isSelectable&&r&&n({type:CA.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case JC.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{IC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case JC.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(IC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case JC.C:aF(t);break;case JC.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(IC(e),AC(e.currentTarget,t,e.shiftKey))})(n);break;default:lF(n)}},dF=e=>{const[t,r]=w(0),[n,o]=w(0),i=HI(jI,(e=>e.isAdjustingWidth));return Nz(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}},pF=ic("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),fF=ic(_h,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),hF=ic(wh,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),mF=()=>er.jsxs(er.Fragment,{children:[er.jsx(pF,{className:RA.First,"data-testid":RA.First,"aria-live":"polite","aria-atomic":"true"}),er.jsx(pF,{className:RA.Second,"data-testid":RA.Second,"aria-live":"polite","aria-atomic":"true"})]}),gF=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])},bF=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);r?.(t)}))})),vF=()=>gF(bF),yF=({selectionsAPI:e,selectionDispatch:t,updateShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{E((()=>{const i=()=>{t({type:CA.Reset})},a=()=>{t({type:CA.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])},xF=e=>{e.stopPropagation()},SF=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:xF,color:SC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),wF=({href:e,text:t,interactions:r,color:n})=>er.jsx(Gp,{...SF({href:e,text:t,interactions:r,color:n}),children:t}),CF=window.requestIdleCallback??(e=>setTimeout((()=>{e({})}),0)),EF=window.cancelIdleCallback??(e=>{clearTimeout(e)}),RF="qDimensionInfo/0",PF="qMeasureInfo/0",AF="x",IF="y",kF=e=>({key:"bars",type:"box",data:{extract:{field:RF,props:{start:0,end:{field:PF}}}},settings:{major:{scale:AF},minor:{scale:IF},box:{maxWidthPx:8,fill:{fn:e}}}}),MF=e=>({key:"p",type:"point",data:{extract:{field:RF,props:{y:{field:PF}}}},settings:{x:{scale:AF},y:{scale:IF},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),DF=({qNum:e})=>void 0===e?0:Math.sign(e),TF=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=RC(e,t?.negative,r),a=RC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:RF,props:{start:0,end:{field:PF,value:DF}}}},settings:{major:{scale:AF},minor:{scale:IF},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}}}}},OF=(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=RC(e,t?.main,o),l=RC(e,t?.max,s),u=RC(e,t?.min,s),c=RC(e,t?.first,s),d=RC(e,t?.last,s);return e=>{const t=IF in e.datum?IF:"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[kF(a)];case"dots":return[MF(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:RF,props:{v:{field:PF}}}},settings:{coordinates:{major:{scale:AF},minor:{scale:IF,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(RC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,MF(a)]:[t]}case"posNeg":return[TF(e,n)];default:return[]}},qF=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"}),LF=(e,t,r,n)=>({y:{data:{field:PF},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:RF}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),NF=B();NF.use($),NF.renderer.prio(["canvas"]);const jF={resolve:()=>{},promise:{}},_F=({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?At():jF);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=CF((()=>{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 NF.chart({element:e,data:{type:"q",key:"qHyperCube",data:qF(s)},settings:{scales:LF(a,l,u,i),components:OF(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&&EF(r.current),r.current=null,l()}),[r,l])}},zF=e=>{const t=D(null),r=D(!1);return T((n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(EF(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=CF((()=>{e.current?.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},FF=({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}=_F({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=zF(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},HF=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=FF({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return er.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},$F=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}`},BF=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},WF=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{direction:o}=HI(jI,(e=>e.baseProps)),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=er.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:BF(s),objectPosition:$F(l),overflow:"hidden"}});return n?er.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?$A(o,e):void 0},children:c}):c},VF=O(((e,t)=>er.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:er.jsx("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})}))),UF=O(((e,t)=>er.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:er.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"})}))),GF=O(((e,t)=>er.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:[er.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"}),er.jsx("use",{fillRule:"evenodd"})]}))),YF=O(((e,t)=>er.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:er.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"})}))),KF=O(((e,t)=>er.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:er.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"})}))),XF=O(((e,t)=>er.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:er.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"})}))),JF=O(((e,t)=>er.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:er.jsx("path",{d:"M2 7h12v2H2z"})}))),ZF=O(((e,t)=>er.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:er.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"})}))),QF=O(((e,t)=>er.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:er.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"})}))),eH=O(((e,t)=>er.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:er.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"})}))),tH=O(((e,t)=>er.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:er.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"})}))),rH={m:O(((e,t)=>er.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:er.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),"ï":eH,R:$z,S:Hz,T:O(((e,t)=>er.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:er.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:O(((e,t)=>er.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:er.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:QF,Q:XF,"è":O(((e,t)=>er.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:er.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"})}))),"¢":YF,"©":GF,"23F4":KF,2013:tH,"&":ZF,add:VF,"minus-2":JF,dot:UF},nH=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&rH[t];return o&&er.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:er.jsx(o,{style:{height:e}})})},oH=({representation:e,cellValue:t,paginationCellAlign:r})=>{const{styleService:n,theme:o,direction:i}=HI(jI,(e=>e.baseProps)),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=qA(e,t,i,o),d=(e=>parseInt(e||jA,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?er.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&&nH({size:d,iconKey:f,color:p}),er.jsx(Az,{isNumeric:!0,children:a}),"right"===h&&nH({size:d,iconKey:f,color:p})]}):nH({size:d,iconKey:f,color:p})},iH=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,aH=({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}=HI(jI,(e=>e.baseProps)),h=HI(jI,(e=>e.selectionState.api?.isActive()));let m=t.representation.text;if(t.representation.type!==TE.Link||h||(m=er.jsx(wF,{href:t.representation.url,text:t.representation.text,interactions:l,color:r.cellForegroundColor})),t.representation.type===TE.Image)return er.jsx(WF,{representation:t.representation,textStyle:r,maxImageHeight:iH(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!==TE.Indicator||Number.isNaN(g)?t.representation.type===TE.MiniChart&&t.representation.miniChart&&!t.isNull?er.jsx(HF,{height:iH(u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:c,isSnapshot:!!d.snapshotData,direction:f,downloadService:p}):er.jsx(Az,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):er.jsx(oH,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},sH=()=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:er.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),lH=ic("div")({"& path":{stroke:"none !important"}}),uH=({children:e,cellSelectionState:t})=>t===wA.Selected?er.jsxs(Rz,{children:[e,er.jsx(lH,{children:er.jsx(sH,{})})]}):e,cH=e=>{const t=function(){const e=L_(),t=S_((()=>null==e?void 0:e.dragOperation.source),[e]),r=S_((()=>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},dH=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:CA.SelectMultiEnd})};r({type:CA.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:CA.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:CA.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),pH=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=HI(jI,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:s,direction:l}=HI(jI,(e=>e.baseProps)),u=HI(jI,(e=>e.setFocusedCellCoord)),c=HI(jI,(e=>e.selectionDispatch)),d=!!s.active&&!!s.select,p=s=>{cF({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===JC.Shift&&t({type:CA.SelectMultiEnd})})(e,c)},h=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;mz([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}=dH(h,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:m,onMouseUp:b,onMouseOver:g}},fH=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=wA.Inactive;return o?.isModal()&&(i=r!==e.selectionColIdx?wA.Disabled:n.has(e.qElemNumber)?wA.Selected:wA.Possible),i},hH=(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},mH=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},gH=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return mH(t,e,n?"even":"odd")}return e},bH=(e,t)=>{const{styleService:r}=HI(jI,(e=>e.baseProps)),n=HI(jI,(t=>fH(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=gH(o,r,e),o=hH(o,r,e);const i=EI(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===wA.Selected?{...e,...r}:t===wA.Disabled?{...e,background:`${LA}, ${e.background}`}:e}(C((()=>e.isNull?o:EI(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}},vH=ic(kh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),yH=ic(Xh,{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}}}))),xH=ic(qh,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...FA,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),SH=ic(qh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...FA,...e,fontWeight:_A,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",zIndex:t?1:void 0}))),wH=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const{interactions:a,direction:s}=HI(jI,(e=>e.baseProps)),{onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=pH(e,t),{cellStyle:f,representationStyle:h,cellSelectionState:m}=bH(e,r),g=cH(r.id);return er.jsx(xH,{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} ${XC}`,title:a.passive?e.representation.text:void 0,onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:er.jsx(uH,{cellSelectionState:m,children:er.jsx(aH,{cell:e,style:h,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:UA(s,e.align)})})})},CH=({column:e,headRowHeight:t,totalsPosition:r,onKeyDown:n,onMouseDown:o})=>{const{styleService:i,interactions:a}=HI(jI,(e=>e.baseProps)),s=cH(e.id);return er.jsx(SH,{totalsStyle:{...i.totalRow,...oz(i,r,!1),opacity:s},headRowHeight:t,atTop:r.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${XC}`,tabIndex:-1,title:a.passive?e.totalInfo:void 0,onKeyDown:n,onMouseDown:o,children:er.jsx(Az,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},EH=()=>{const{columns:e,totalsPosition:t,rows:r}=HI(jI,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,interactions:a,direction:s}=HI(jI,(e=>e.baseProps)),l=HI(jI,(e=>e.headRowHeight)),u=HI(jI,(e=>e.setFocusedCellCoord)),c=!!o?.isModal(),d=!!a.active;return er.jsx(Xh,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,o)=>{const a=[t.atTop?1:r.length+1,o];return er.jsx(CH,{column:e,headRowHeight:l,totalsPosition:t,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case JC.C:aF(r);break;case JC.Space:r.preventDefault();break;default:sF(e)}else IC(r)})({evt:e,rootElement:n,cellCoord:a,setFocusedCellCoord:u,isSelectionMode:c,isInteractionEnabled:d,direction:s})},onMouseDown:()=>{mz(a,n,u,i)}},e.id)}))})};var RH=q(EH);const PH=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{const{rows:n,columns:o,totalsPosition:i}=HI(jI,(e=>e.tableData)),{selectionsAPI:a,keyboard:s,layout:l,styleService:u}=HI(jI,(e=>e.baseProps)),c=HI(jI,(e=>e.selectionDispatch)),d=!!xI(l)?.content?.hoverEffect;yF({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 gF(t)})(t),f=vF();return er.jsxs(vH,{lastRowBottomBorder:u.grid.lastRowBottomBorder,children:[i.atTop?er.jsx(RH,{}):void 0,n.map(((e,t)=>er.jsx(yH,{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 er.jsx(wH,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:p,resizeObserverTaskScheduler:f},o)}))},`row-${t}`))),i.atBottom?er.jsx(RH,{}):void 0]})};var AH=q(PH);const IH=(e,t)=>!!e.viewState?.skipHeader||!!t.hideHeader,kH=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:s,translator:l,direction:u}=HI(jI,(e=>e.baseProps)),c=HI(jI,(e=>e.columnWidths)),d=HI(jI,(e=>e.setColumnWidths));if(!s.active)return null;return er.jsx(UI,{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=>{cz(e);const t=e.closest(".sn-table-cell");pz(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:l,columnLabel:i},direction:u})},MH=e=>e.target?.getAttribute("class")?.includes(ZC),DH=({isInteractionEnabled:e,column:t})=>{const[r,n]=w(!1),{changeSortOrder:o}=HI(jI,(e=>e.baseProps)),i=HI(jI,(e=>e.isAdjustingWidth)),a=HI(jI,(e=>e.setIsAdjustingWidth));return{open:r,setOpen:n,handleOpenMenu:t=>{!e||MH(t)||i||n(!0)},setIsAdjustingWidth:a,toggleSortOrder:r=>{e&&!MH(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o(t,"A"===t.sortDirection?"D":"A"))}}};var TH=Object.defineProperty,OH=Object.defineProperties,qH=Object.getOwnPropertyDescriptors,LH=Object.getOwnPropertySymbols,NH=Object.prototype.hasOwnProperty,jH=Object.prototype.propertyIsEnumerable,_H=(e,t,r)=>t in e?TH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zH=(e,t)=>{for(var r in t||(t={}))NH.call(t,r)&&_H(e,r,t[r]);if(LH)for(var r of LH(t))jH.call(t,r)&&_H(e,r,t[r]);return e},FH=(e,t)=>OH(e,qH(t)),HH=class extends vq{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return FH(zH({},e),{[t]:r})}};HH.configure=HT(HH);var $H=HH;$H.configure({axis:"x",value:0});var BH=$H.configure({axis:"y",value:0}),WH=class extends vq{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 FH(zH({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};WH.configure=HT(WH);var VH=Object.create,UH=Object.defineProperty,GH=Object.defineProperties,YH=Object.getOwnPropertyDescriptor,KH=Object.getOwnPropertyDescriptors,XH=Object.getOwnPropertySymbols,JH=Object.prototype.hasOwnProperty,ZH=Object.prototype.propertyIsEnumerable,QH=e=>{throw TypeError(e)},e$=(e,t,r)=>t in e?UH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,t$=["class","method","getter","setter","accessor","field","value","get","set"],r$=e=>void 0!==e&&"function"!=typeof e?QH("Function expected"):e,n$=(e,t,r,n,o)=>({kind:t$[e],name:t,metadata:n,addInitializer:e=>r._?QH("Already initialized"):o.push(r$(e||null))}),o$=(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},i$=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=t$[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,YH({get[r](){return s$(this,i)},set[r](e){return u$(this,i,e)}},r)),b=n.length-1;b>=0;b--)(u=n$(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?r$(s)&&(g[f]=s):"object"!=typeof s||null===s?QH("Object expected"):(r$(a=s.get)&&(g.get=a),r$(a=s.set)&&(g.set=a),r$(a=s.init)&&h.unshift(a));return g&&UH(o,r,g),o},a$=(e,t,r)=>t.has(e)||QH("Cannot "+r),s$=(e,t,r)=>(a$(e,t,"read from private field"),t.get(e)),l$=(e,t,r)=>t.has(e)?QH("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),u$=(e,t,r,n)=>(a$(e,t,"write to private field"),t.set(e,r),r);function c$(e){return e instanceof z$||e instanceof _$}var d$=Object.defineProperty,p$=Object.defineProperties,f$=Object.getOwnPropertyDescriptors,h$=Object.getOwnPropertySymbols,m$=Object.prototype.hasOwnProperty,g$=Object.prototype.propertyIsEnumerable,b$=(e,t,r)=>t in e?d$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,v$=(e,t)=>{for(var r in t||(t={}))m$.call(t,r)&&b$(e,r,t[r]);if(h$)for(var r of h$(t))g$.call(t,r)&&b$(e,r,t[r]);return e},y$=(e,t)=>p$(e,f$(t));function x$(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function S$(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 y$(v$({},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 y$(v$({},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,x$)}var w$="__default__";function C$(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function E$(e,t){return e.index-t.index}function R$(e){return Array.from(e).sort(E$)}var P$,A$,I$,k$,M$,D$,T$,O$,q$=[class extends BT{constructor(e){super(e);const t=NM((()=>{const{dragOperation:t}=e;if(QL(t.activatorEvent)&&c$(t.source)&&t.status.initialized){const t=e.registry.plugins.get(Ij);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(!QL(e.nativeEvent))return;if(!c$(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=[];bM((()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&c$(e)||!e.element)continue;let r=e.shape;const n=new KL(e.element,{getBoundingClientRect:e=>Hq(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,nN);bM((()=>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||!c$(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;$L(c);const d=new KL(c);if(!d)return;const p=rT.delta(d,rT.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 BT{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof z$){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(R$(r)));return t},r=[e.monitor.addEventListener("dragover",((e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!c$(o)||!c$(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=R$(l),g=s?m:R$(u),b=null!=(c=o.sortable.group)?c:w$,v=null!=(d=i.sortable.group)?d:w$,y={[b]:m,[v]:g},x=S$(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);r.collisionObserver.disable(),C$(f,S,h,w),bM((()=>{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;c$(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=R$(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(C$(r,i.index,a,o.index),bM((()=>{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()}}}],L$={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},N$=new class{constructor(){CD(this,TD,new WeakMap)}get(e,t){var r;return e?null==(r=wD(this,TD).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return wD(this,TD).has(e)||wD(this,TD).set(e,new Map),null==(n=wD(this,TD).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=wD(this,TD).get(e))?void 0:t.clear():void 0}};A$=[ID],P$=[ID];var j$=class{constructor(e,t){l$(this,k$,o$(I$,8,this)),o$(I$,11,this),l$(this,M$),l$(this,D$),l$(this,T$,o$(I$,12,this)),o$(I$,15,this),l$(this,O$),this.register=()=>(bM((()=>{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=()=>{bM((()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)}))},this.destroy=()=>{bM((()=>{this.droppable.destroy(),this.draggable.destroy()}))};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=L$,plugins:u=q$}=r,c=((e,t)=>{var r={};for(var n in e)JH.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&XH)for(var n of XH(e))t.indexOf(n)<0&&ZH.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new z$(c,t,this),this.draggable=new _$(((e,t)=>GH(e,KH(t)))(((e,t)=>{for(var r in t||(t={}))JH.call(t,r)&&e$(e,r,t[r]);if(XH)for(var r of XH(t))ZH.call(t,r)&&e$(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)&&N$.clear(this.manager),(null==n?void 0:n.dragging)&&N$.set(this.manager,this.id,yM((()=>({initialIndex:this.index,initialGroup:this.group}))))},()=>{const{index:e,group:t,manager:r}=this,n=s$(this,D$),o=s$(this,M$);e===n&&t===o||(u$(this,D$,e),u$(this,M$,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),u$(this,O$,c.element),this.manager=t,this.index=i,u$(this,D$,i),this.group=o,u$(this,M$,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=N$.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=N$.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){yM((()=>{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}=ML(n),l=WL(n,s,!1),u=WL(n,s);(i||a)&&BL({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){bM((()=>{this.draggable.manager=e,this.droppable.manager=e}))}set element(e){bM((()=>{const t=s$(this,O$),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),u$(this,O$,e)}))}get element(){var e,t;const r=s$(this,O$);if(r)return null!=(t=null!=(e=Uq.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){bM((()=>{this.droppable.disabled=e,this.draggable.disabled=e}))}set data(e){bM((()=>{this.droppable.data=e,this.draggable.data=e}))}set handle(e){this.draggable.handle=e}set id(e){bM((()=>{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:rN}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){bM((()=>{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)}};I$=[,,,VH(null)],k$=new WeakMap,M$=new WeakMap,D$=new WeakMap,T$=new WeakMap,O$=new WeakMap,i$(I$,4,"index",A$,j$,k$),i$(I$,4,"group",P$,j$,T$),((e,t)=>{return e$(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(I$,j$);var _$=class extends g_{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}},z$=class extends b_{constructor(e,t,r){super(e,t),this.sortable=r}},F$=Object.defineProperty,H$=Object.defineProperties,$$=Object.getOwnPropertyDescriptors,B$=Object.getOwnPropertySymbols,W$=Object.prototype.hasOwnProperty,V$=Object.prototype.propertyIsEnumerable,U$=(e,t,r)=>t in e?F$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,G$=(e,t)=>{for(var r in t||(t={}))W$.call(t,r)&&U$(e,r,t[r]);if(B$)for(var r of B$(t))V$.call(t,r)&&U$(e,r,t[r]);return e};function Y$(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=G$(G$({},L$),e.transition),b=function(e){var t;const r=null!=(t=L_())?t:void 0,[n]=w((()=>e(r)));return n.manager!==r&&(n.manager=r),y_(n.register,[r,n]),n}((t=>new j$(((e,t)=>H$(e,$$(t)))(G$({},e),{transition:g,register:!1,handle:v_(s),element:v_(a),target:v_(h),feedback:d}),t))),v=w_(b,K$);return R_(o,(()=>b.id=o)),y_((()=>{bM((()=>{b.group=u,b.index=l}))}),[b,u,l]),R_(m,(()=>b.type=m)),R_(t,(()=>b.accept=t),void 0,AD),R_(i,(()=>i&&(b.data=i))),R_(l,(()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()}),C_),P_(s,(e=>b.handle=e)),P_(a,(e=>b.element=e)),P_(h,(e=>b.target=e)),R_(c,(()=>b.disabled=!0===c)),R_(f,(()=>b.sensors=f)),R_(r,(()=>b.collisionDetector=r)),R_(n,(()=>b.collisionPriority=n)),R_(d,(()=>b.feedback=null!=d?d:"default")),R_(g,(()=>b.transition=g),void 0,AD),R_(p,(()=>b.modifiers=p),void 0,AD),R_(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 K$(e,t,r){return!("isDragSource"!==e||r||!t)}const X$=({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/tT.distance(r.shape.center,s),type:pO.Collision,priority:dO.Normal}:null},J$=(e,t)=>{const{interactions:r,direction:n}=HI(jI,(e=>e.baseProps)),{flags:o}=HI(jI,(e=>e.env)),i=!r.active||!o.isEnabled("TLV-1531_DRAG_AND_DROP_COLUMNS");return Y$({id:e.id,disabled:i,index:t,type:"item",accept:"item",group:"column",modifiers:[BH],data:e,feedback:"clone",collisionDetector:X$({invert:"rtl"===n})})},Z$=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a,direction:s}=HI(jI,(e=>e.baseProps)),{columns:l,totalsPosition:u}=HI(jI,(e=>e.tableData)),c=HI(jI,(e=>e.columnWidths[t])),d=HI(jI,(e=>e.baseProps.selectionsAPI?.isModal())),p=HI(jI,(e=>e.setFocusedCellCoord)),f=HI(jI,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),h=!!n.active&&!d,{open:m,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v,toggleSortOrder:y}=DH({isInteractionEnabled:h,column:e}),{ref:x,isDragging:S}=J$(e,t),w=cH(e.id),C=nz(),E=C?Iz:Yz,R=e.isActivelySorted?EA[e.sortDirection]:void 0,P=m?KC:void 0,A=m?"true":void 0,I=t===r-1,k=[0,e.pageColIdx],M={width:c-(I?8:9),zIndex:l.length-t},D=f&&0===t&&!i.enabled&&h?0:-1;return er.jsxs(vz,{"data-dragging":S,ref:x,headerStyle:{...a.header,...oz(a,u,!0),opacity:w},background:C&&m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:M,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${XC}`,tabIndex:D,title:n.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case JC.C:aF(r);break;case JC.Enter:case JC.Space:n?.(r);break;default:sF(e)}else IC(r)})({evt:e,rootElement:o,cellCoord:k,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&&mz(r,t,n,o)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:p,keyboard:i,isInteractionEnabled:h})},onClick:C?b:y,"aria-sort":R,"aria-controls":P,"aria-expanded":A,"aria-haspopup":"true",children:[er.jsx(E,{column:e,isInteractionEnabled:h,open:m,setOpen:g,isPagination:!0}),er.jsx(kH,{column:e,isLastColumn:I,setIsAdjustingWidth:v})]},e.id)},Q$=()=>{const{columns:e}=HI(jI,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=HI(jI,(e=>e.baseProps)),o=HI(jI,(e=>e.setHeadRowHeight)),i=HI(jI,(e=>e.columnWidths)),a=D(null),s=IH(r,n);return E((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),er.jsx(Wh,{style:{visibility:s?"collapse":void 0},children:er.jsx(Xh,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map(((t,r)=>er.jsx(Z$,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var eB=q(Q$);const tB=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}=HI(jI,(e=>e.tableData)),{rootElement:f,keyboard:h,translator:m,theme:g,interactions:b,styleService:v,viewService:y,layout:x,rect:S,direction:w}=HI(jI,(e=>e.baseProps)),C=HI(jI,(e=>e.setYScrollbarWidth)),R=HI(jI,(e=>e.showRightBorder)),P=HI(jI,(e=>e.selectionDispatch)),A=HI(jI,(e=>e.baseProps.selectionsAPI?.isModal())),I=D(!1),k=D(null),M=D(null),{yScrollbarWidth:O}=dF(k),q=`${m.get("SNTable.Accessibility.RowsAndColumns",[String(d.length),String(p.length)])} ${m.get("SNTable.Accessibility.NavigationInstructions")}`,L=qP(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 iF(k,w,y),((e,t)=>{const{keyboard:r}=HI(jI,(e=>e.baseProps));E((()=>{const n=e.current;if(!n)return;const o=e=>{gz(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(M,I),(()=>{const{rootElement:e,keyboard:t}=HI(jI,(e=>e.baseProps)),r=HI(jI,(e=>e.focusedCellCoord));$C((()=>{const n=lz(e,r);t.active?pz(n):(n?.blur(),dz(e))}),[t.active,e])})(),oF(I,o,i),E((()=>{const e=k.current;e&&(e.scrollLeft=N,e.scrollTop=j)}),[t,l,N,j]),rF((()=>{C(O)}),[O]),rF((()=>{P({type:CA.UpdatePageRows,payload:{pageRows:d}})}),[d]),nF(),er.jsxs(tF,{children:[er.jsxs(Cz,{ref:M,dir:w,onKeyDown:e=>{uF({evt:e,totalRowCount:l,page:i,rowsPerPage:a,handleChangePage:z,updateShouldRefocus:_,keyboard:h,isSelectionMode:A})},"data-testid":"sn-table",children:[er.jsx(mF,{}),er.jsx(fF,{ref:k,className:"sn-table-container",fullHeight:!!n||!b.active||!c,interactions:b,tabIndex:-1,role:"application","data-testid":"table-container",children:er.jsxs(hF,{stickyHeader:!0,"aria-label":q,borderRight:R?`1px solid ${v.grid.border}`:void 0,children:[er.jsx(eB,{}),er.jsx(AH,{...e,updateShouldRefocus:_,tableWrapperRef:M})]})}),er.jsx(hM,{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})]}),er.jsx(Zz,{isPagination:!0})]})};var rB=q(tB);function nB(){return nB=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},nB.apply(null,arguments)}function oB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iB(e,t){return iB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},iB(e,t)}function aB(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,iB(e,t)}var sB=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function lB(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||sB(n)&&sB(o)))return!1;var n,o;return!0}function uB(e,t){var r;void 0===t&&(t=lB);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 cB(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 dB="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function pB(e){cancelAnimationFrame(e.id)}function fB(e,t){var r=dB();var n={id:requestAnimationFrame((function o(){dB()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var hB=-1;function mB(e){if(void 0===e&&(e=!1),-1===hB||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),hB=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return hB}var gB=null;function bB(e){if(void 0===e&&(e=!1),null===gB||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?gB="positive-descending":(t.scrollLeft=1,gB=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),gB}return gB}var vB=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function yB(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,oB(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:oB(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=uB((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=uB((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=uB((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(bB()){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&&pB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=fB(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}aB(t,e),t.getDerivedStateFromProps=function(e,t){return xB(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=mB();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(bB()){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&&pB(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?vB: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:nB({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}(_),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var xB=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},SB=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},wB=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},CB=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]},EB=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?RB(e,t,r,i,0,n):PB(e,t,r,Math.max(0,i),n)},RB=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=CB(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},PB=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&CB(e,t,n,r).offset<o;)n+=a,a*=2;return RB(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},AB=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=CB(e,t,r,i),u="column"===e?wB(t,i):SB(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}},IB=yB({getColumnOffset:function(e,t,r){return CB("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return EB("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=CB("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=CB("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:SB,getEstimatedTotalWidth:wB,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return AB("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return AB("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return CB("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return EB("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=CB("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=CB("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}}),kB=function(e,t){return e};function MB(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,oB(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:oB(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=uB((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=uB((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=uB((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(bB()){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&&pB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=fB(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}aB(t,e),t.getDerivedStateFromProps=function(e,t){return DB(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?mB():0:l.scrollHeight>l.clientHeight?mB():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(bB()){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&&pB(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?kB: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:nB({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}(_),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var DB=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},TB=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]},OB=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=TB(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},qB=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&TB(e,r,t).offset<n;)r+=i,i*=2;return OB(e,t,Math.min(r,o-1),Math.floor(r/2),n)},LB=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},NB=MB({getItemOffset:function(e,t,r){return TB(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:LB,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=TB(e,t,o),p=LB(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?OB(e,t,o,0,r):qB(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=TB(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=TB(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 jB(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 _B=["style"],zB=["style"];function FB(e,t){var r=e.style,n=cB(e,_B),o=t.style,i=cB(t,zB);return!jB(r,o)&&!jB(n,i)}const HB=({style:e})=>er.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var $B=x.memo(HB,FB);const BB=()=>{},WB=e=>{e.preventDefault()};const VB=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=HI(jI,(e=>e.hoverIndex===t)),d=HI(jI,(e=>e.setHoverIndex)),{interactions:p,styleService:f,direction:h}=HI(jI,(e=>e.baseProps)),m=HI(jI,(e=>e.showRightBorder)),g=o[t]?.[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=HI(jI,(e=>e.baseProps)),r=HI(jI,(e=>e.selectionDispatch)),n="object"==typeof e,o=HI(jI,(t=>n?fH(e,t.selectionState):wA.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=dH(WB,e,r,BB);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=Lz(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return Nz(o,a),o})(t,e,g,s),w=i[e]?.isDim?f.dimension.values:f.measure.values,C=cH(i[e].id);if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=gH(o,i,e);a=hH(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?EI(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===wA.Selected?{...s,...i.selectedColors}:n===wA.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${LA}, ${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 er.jsx("div",{className:`sn-table-cell ${x} ${XC}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:f.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:GA(h,g.isLastColumn,m),borderLeftWidth:YA(h,g.isLastColumn,m),justifyContent:BA(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:er.jsx(uH,{cellSelectionState:x,children:er.jsx(aH,{forwardRef:f.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return er.jsx($B,{style:{...r,...w,borderColor:f.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:C}})};var UB=q(VB,FB);const GB=e=>{const t=D(e);return t.current=e,t},YB=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,KB=(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},XB=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},JB=(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=RP(h,e,a),C=!h&&e.qIsNull,E=C?TR(w):DR(e);f[r]={id:IR(),...e,align:TP(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)&&EP(e,h),representation:CP({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[TE.Image]:!0,[TE.Indicator]:!0,[TE.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}))}))},ZB=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:s,columns:l,gridState:u,setEstimatedCellHeight:c})=>{const d=HI(jI,(e=>e.env)),{direction:p}=HI(jI,(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 JB(t,o,n,l,e,d,c,p),f.current=n,n}),[i,o,l,e,d,c,p]),[m,g]=w((()=>h(n??[])));$C((()=>{g(h(n??[]))}),[n,p]);const b=((e,t)=>{const r=D(new Set),n=D(new Set),o=D(new Set),i=GB(e),a=GB(t),s=C((()=>({enqueue:e=>{const t=YB(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(YB(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(XB(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(KB(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}},QB=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},eW=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,tW=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=HI(jI,(e=>e.baseProps.styleService)),i=HI(jI,(e=>e.columnWidths)),{estimateLineCount:a}=_C(o.dimension.values),s=TI(o.dimension.values.fontSize),l=e||t||1===r;return T(((e,t,o)=>{if(l||e.representation.type===TE.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])},rW=({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])},nW=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=HI(jI,(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}=HI(jI,(e=>e.baseProps)),o=HI(jI,(e=>e.columnWidths)),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;$C((()=>{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]),$C((()=>{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)=>{N((()=>{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(!eW(u.get(a),l))return e;const c={...e};return u.set(a,l),c.rowHeights.set(i,QB(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=tW({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 rW({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:h,viewService:r}),{setMeasuredCellHeight:g,setEstimatedCellHeight:b,getRowHeight:v,lineClamp:f}},oW=(e,t)=>{L((()=>()=>{t(0)}),[e,t]);const r=T((e=>{const r=Lz(e);void 0!==r&&t(r)}),[t]);Nz(e,r)};let iW=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const aW=({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=iW.None,i=iW.None;return o=n>t?iW.Down:n<t?iW.Up:iW.None,i=r>e?iW.Right:r<e?iW.Left:iW.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===iW.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(m===iW.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===iW.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===iW.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]),sW={enabled:!1},lW=()=>{},uW={current:null};const cW=(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}},dW=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},pW={overflow:"hidden",willChange:"auto"};var fW=q(O(((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}=HI(jI,(e=>e.baseProps)),f=HI(jI,(e=>e.columnWidths)),h=HI(jI,(e=>e.initialDataPages)),m=D(null),g=D(null),b=D({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),v=D(0),y=!!xI(s)?.content?.hoverEffect,{rowCount:x,visibleRowCount:S,visibleColumnCount:w}=cW(s,o,r,f,d.contentMinRowHeight),{setMeasuredCellHeight:R,setEstimatedCellHeight:P,getRowHeight:A,lineClamp:I}=nW({rowCount:x,isSnapshot:!!s.snapshotData,viewService:c,gridRef:m,pageInfo:o}),{rowsInPage:k,loadRows:M,loadColumns:T}=ZB({layout:s,model:l,theme:u,initialDataPages:h,pageInfo:o,rowCount:x,visibleRowCount:S,visibleColumnCount:w,columns:n,gridState:b,setEstimatedCellHeight:P}),O=aW({layout:s,loadRows:M,loadColumns:T,rowCount:x,pageInfo:o,gridState:b,viewService:c}),q=vF(),N=C((()=>({rowsInPage:k,columns:n,isHoverEnabled:y,lineClamp:I,setMeasuredCellHeight:R,resizeObserverTaskScheduler:q})),[k,n,y,I,R,q]),_=((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}=HI(jI,(e=>e.baseProps)),r=HI(jI,(e=>e.selectionDispatch));E((()=>{r({type:CA.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),yF({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:lW,keyboard:sW,tableWrapperRef:uW})}(k),j(t,(()=>({interpolatedScrollTo:(e,t)=>{const r=(g.current?.clientHeight??_)-_,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,_,x]),oW(g,a),er.jsx(IB,{"data-key":"body",ref:m,innerRef:g,style:pW,columnCount:s.qHyperCube.qSize.qcx,columnWidth:e=>f[e],height:_,rowCount:x,rowHeight:A,estimatedRowHeight:c.estimatedRowHeight,width:r.width,itemData:N,onItemsRendered:O,itemKey:dW,className:"sn-table-body",direction:p,children:UB})})));const hW=({width:e,height:t,children:r})=>er.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),mW=(e,t)=>{const r=D(null),n=HI(jI,(e=>e.columnWidths));L((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=T((r=>{const n=Lz(r);n&&t(n+9,e)}),[e,t]);return Nz(r,o),r},gW=ic("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}}))),bW=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,{interactions:a,styleService:s,direction:l}=HI(jI,(e=>e.baseProps)),u=HI(jI,(e=>e.baseProps.selectionsAPI?.isModal())),c=HI(jI,(e=>e.showRightBorder)),d=HI(jI,(e=>e.tableData.totalsPosition)),p=!!a.active&&!u,f=n[e],{open:h,setOpen:m,handleOpenMenu:g,setIsAdjustingWidth:b,toggleSortOrder:v}=DH({isInteractionEnabled:p,column:f}),y=nz(),x=mW(e,i),S=n.length-1===e,w=y?Iz:Yz,{ref:C,isDragging:E}=J$(f,e),R=cH(f.id);return er.jsxs(gW,{"data-dragging":E,ref:C,className:`sn-table-cell ${XC}`,title:a.passive?f.label:void 0,onClick:y?g:v,applicableStyle:{...s.header,...oz(s,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:GA(l,S,c),borderLeftWidth:YA(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:R},interactions:a,hoverBackground:s.headerMenuHoverBackground,background:y&&h?s.headerMenuActiveBackground:s.header.background,children:[er.jsx(w,{forwardRef:x,column:f,isInteractionEnabled:p,open:h,setOpen:m}),er.jsx(kH,{column:f,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:b})]})},vW=e=>{const[t,r]=w(new Map);$C((()=>{r(new Map)}),[e.length]);const n=T(((e,t)=>{r((r=>eW(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:C((()=>QB(t)),[t]),setMeasuredCellHeight:n}},yW=(e,t)=>{j(e,(()=>({scrollTo:e=>t.current?.scrollTo(e)})),[t])},xW=(e,t,r,n,o)=>{$C((()=>{e.current?.resetAfterIndex(0,!1)}),[t,r,e,n,o])},SW={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},wW=O(((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}=HI(jI,(e=>e.baseProps)),h=HI(jI,(e=>e.columnWidths)),{rowHeight:m,setMeasuredCellHeight:g}=vW(n),b=IH(f,u);return yW(t,s),xW(s,u,o,h,c),oW(l,a),er.jsx(NB,{ref:s,outerRef:l,layout:"horizontal",style:{...SW,...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:bW})}));var CW=q(wW);const EW=O(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:s}=HI(jI,(e=>e.baseProps));return er.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:s,children:r})})),RW=({children:e,rect:t})=>{const{direction:r}=HI(jI,(e=>e.baseProps));return er.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})},PW=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:s,styleService:l,direction:u}=HI(jI,(e=>e.baseProps)),c=HI(jI,(e=>e.showRightBorder)),d=mW(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=a.qHyperCube.qSize.qcx-1===e,g=cH(n[e].id);return er.jsx("div",{className:`sn-table-cell ${XC}`,title:s.passive?p:void 0,style:{...t,...l.totalRow,...oz(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:GA(u,m,c),borderLeftWidth:YA(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:er.jsx(Az,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},AW=O(((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}=HI(jI,(e=>e.baseProps)),f=HI(jI,(e=>e.columnWidths)),{rowHeight:h,setMeasuredCellHeight:m}=vW(i);return yW(t,s),xW(s,u,n,f,c),oW(l,a),er.jsx(NB,{ref:s,outerRef:l,layout:"horizontal",style:SW,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:PW})}));var IW=q(AW);const kW=(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]),MW=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=HI(jI,(e=>e.tableData)),{layout:i,theme:a,rect:s,viewService:l,direction:u}=HI(jI,(e=>e.baseProps)),c=HI(jI,(e=>e.columnWidths)),d=HI(jI,(e=>e.setYScrollbarWidth)),p=D(null),f=D(null),h=D(null),m=D(null),{xScrollbarWidth:g,yScrollbarWidth:b}=dF(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}=cW(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}=HI(jI,(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=kW(f,h,m,l,u),O=T((()=>{p.current&&(p.current.scrollTop=0)}),[p]);nF(),L((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[n.length]),L((()=>{p.current&&(p.current.scrollTop=0)}),[t,x,a]),rF((()=>{d(b)}),[b]);const q=er.jsx(IW,{rect:y,pageInfo:t,columns:n,ref:h,totals:r,setTotalsRowHeight:P},"totals");return er.jsxs(tF,{children:[er.jsx(EW,{ref:p,width:v.width,height:v.height,onScroll:M,children:er.jsx(hW,{width:I,height:k,children:er.jsxs(RW,{rect:y,children:[er.jsx(CW,{rect:y,pageInfo:t,columns:n,ref:f,columResizeHandler:O,setHeaderRowHeight:R}),r.atTop?q:null,er.jsx(fW,{ref:m,rect:y,pageInfo:t,columns:n,headerAndTotalsHeight:S,setInnerBodyHeight:A}),r.atBottom?q:null]})})}),er.jsx(Zz,{isPagination:!1})]})};var DW=q(MW);const TW=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=HI(jI,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:s,totalColumnCount:l,totalPages:u}=HI(jI,(e=>e.tableData)),c=HI(jI,(e=>e.pageInfo)),d=HI(jI,(e=>e.setPage));return er.jsxs(Cz,{"data-testid":"sn-table",children:[er.jsx(DW,{pageInfo:c}),er.jsx(hM,{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 OW=q(TW);var qW={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 LW=(t,r)=>e((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(qW).forEach((t=>{e.add(qW[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(`.${RA.First}`),s=e.querySelector(`.${RA.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===RA.First?(l=s,r=RA.Second):(l=a,r=RA.First),l.innerHTML=l.innerHTML.endsWith(" ")?i:`${i} `,l.setAttribute("aria-live",o)}})(t,r))),[t,r.language()]),NW={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},jW=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=LP(s,d),g=LW(a,l),[b,v]=n(((e,t)=>qP(e,t)?{page:t.page||NW.page,rowsPerPage:t.rowsPerPage||NW.rowsPerPage,rowsPerPageOptions:NW.rowsPerPageOptions}:NW)(s,d)),[y,x]=LC((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>PP)return n({...r,rowsPerPage:AP(d,c),page:0}),null;const g=p>10,b=IP(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=RP(o.isDim,u,t),d=!o.isDim&&u.qIsNull,p=d?TR(c):DR(u);n[l]={id:IR(),...u,align:TP(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)&&EP(u,o.isDim),representation:CP({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:s,enabledFeatures:{[TE.Image]:!0,[TE.Indicator]:!0,[TE.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=$I(r);t.render(er.jsx(si,{stylisPlugins:"rtl"===r?[SA]:void 0,children:er.jsx(sc,{theme:o,children:er.jsx(FI,{...e,children:er.jsx(rB,{...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])},_W=(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 zW=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=LC((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(rI,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}},FW=t=>{const{layout:r,model:i,keyboard:a,interactions:s,reactRoot:l,isFontLoaded:u,viewService:c,direction:d}=t,p=!LP(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=IP(e,r),s=e.qHyperCube.qSize.qcy,l=Math.min(rI,s),u=s>rI&&!!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(rI,t.qHyperCube.qSize.qcy),s=e((()=>({page:o,rowsPerPage:a,rowsPerPageOptions:[]})),[a,o]);if(r){const e=Math.floor(t.qHyperCube.qSize.qcy/rI);e<o&&i(e)}return{pageInfo:s,setPage:i}})(r,p),{initialDataPages:v,isLoading:y}=zW({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=$I(r);t.render(er.jsx(x.StrictMode,{children:er.jsx(sc,{theme:n,children:er.jsx(FI,{...e,children:er.jsx(OW,{})})})}))}({...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])},HW={version:JSON.stringify("6.4.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 $W(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 BW=(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]}},WW=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const VW=(e,t,r,n)=>{if(e<0)return 0;const o=r.qHyperCube.qSize.qcy,i=n.rowsPerPage||NW.rowsPerPage,a=n.viewState?.isMultiPage?0:3;return Math.min(o,i,e-t+1+a)},UW=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=IP(e,t);if(LP(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=$W(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:VW(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=BW(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=(WW(h,m,g)?d:d+1)+c;let v=p+c;const y=BW(p,o),x=y?.getBoundingClientRect();return y&&x&&(WW(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:VW(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},GW=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),YW=e=>e.getStyle("object","straightTableV2","backgroundColor");function KW(r){return{qae:{properties:{initial:HW},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>RE({...e}),exportProperties:yE,exploration:PE},ext:xR(r),component(){const n=c(),i=(t=>{const r=e((()=>zC(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=qC(y,n,GW,YW),O=P.direction,q=_W(y.qHyperCube,S),L=SR(y.qHyperCube,S),N=((e,t,r)=>{const[,n,o]=LC((async()=>{const t=be(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,HC].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=Mt(),_={app:x,layout:y,model:S,rect:k,theme:T,keyboard:R,translator:C,interactions:w,selectionsAPI:E,changeSortOrder:q,rootElement:n,embed:D,reactRoot:i,applyColumnWidths:L,isFontLoaded:N,downloadService:j,viewService:M,direction:O,env:r};s?.(((e,t)=>{const r=t.target,n=r?.closest(`.${XC}`);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()=>{aE(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}=UW(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:()=>UW(e,t,n)})),[e,t,n])})({layout:y,viewService:M,model:S,rootElement:n,contentRect:I}),FW(_),jW(_)}}}export{KW 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"),O=new RegExp(s+"([ns]?)w-resize","gi"),q=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(O,"$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(q,"$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)}(NP,NP.exports);var jP=Bt(NP.exports),_P="comm",zP="rule",FP="decl",HP=Math.abs,$P=String.fromCharCode;function BP(e){return e.trim()}function WP(e,t,r){return e.replace(t,r)}function VP(e,t,r){return e.indexOf(t,r)}function UP(e,t){return 0|e.charCodeAt(t)}function GP(e,t,r){return e.slice(t,r)}function YP(e){return e.length}function KP(e,t){return t.push(e),e}var XP=1,JP=1,ZP=0,QP=0,eA=0,tA="";function rA(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:XP,column:JP,length:a,return:"",siblings:s}}function nA(){return eA=QP>0?UP(tA,--QP):0,JP--,10===eA&&(JP=1,XP--),eA}function oA(){return eA=QP<ZP?UP(tA,QP++):0,JP++,10===eA&&(JP=1,XP++),eA}function iA(){return UP(tA,QP)}function aA(){return QP}function sA(e,t){return GP(tA,e,t)}function lA(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 uA(e){return BP(sA(QP-1,pA(91===e?e+2:40===e?e+1:e)))}function cA(e){for(;(eA=iA())&&eA<33;)oA();return lA(e)>2||lA(eA)>3?"":" "}function dA(e,t){for(;--t&&oA()&&!(eA<48||eA>102||eA>57&&eA<65||eA>70&&eA<97););return sA(e,aA()+(t<6&&32==iA()&&32==oA()))}function pA(e){for(;oA();)switch(eA){case e:return QP;case 34:case 39:34!==e&&39!==e&&pA(eA);break;case 40:41===e&&pA(e);break;case 92:oA()}return QP}function fA(e,t){for(;oA()&&e+eA!==57&&(e+eA!==84||47!==iA()););return"/*"+sA(t,QP-1)+"*"+$P(47===e?e:oA())}function hA(e){for(;!lA(iA());)oA();return sA(e,QP)}function mA(e){return function(e){return tA="",e}(gA("",null,null,null,[""],e=function(e){return XP=JP=1,ZP=YP(tA=e),QP=0,[]}(e),0,[0],e))}function gA(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=oA()){case 40:if(108!=h&&58==UP(C,d-1)){-1!=VP(C+=WP(uA(v),"&","&\f"),"&\f",HP(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=uA(v);break;case 9:case 10:case 13:case 32:C+=cA(h);break;case 92:C+=dA(aA()-1,7);continue;case 47:switch(iA()){case 42:case 47:KP(vA(fA(oA(),aA()),t,r,l),l),5!=lA(h||1)&&5!=lA(iA()||1)||!YP(C)||" "===GP(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[u++]=YP(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=WP(C,/\f/g,"")),f>0&&(YP(C)-d||0===m&&47===h)&&KP(f>32?yA(C+";",n,r,d-1,l):yA(WP(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(KP(w=bA(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)gA(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===UP(C,3))break;case 108:if(97===UP(C,2))break;default:c=0;case 100:case 109:case 115:}c?gA(e,w,w,n&&KP(bA(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):gA(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+YP(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==nA())continue;switch(C+=$P(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(YP(C)-1)*b,b=1;break;case 64:45===iA()&&(C+=uA(oA())),p=iA(),c=d=YP(y=C+=hA(aA())),v++;break;case 45:45===h&&2==YP(C)&&(m=0)}}return i}function bA(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=GP(e,p+1,p=HP(g=a[m])),x=e;v<h;++v)(x=BP(g>0?f[v]+" "+y:WP(y,/&\f/g,f[v])))&&(l[b++]=x);return rA(e,t,r,0===o?zP:s,l,u,c,d)}function vA(e,t,r,n){return rA(e,t,r,_P,$P(eA),GP(e,2,-2),0,n)}function yA(e,t,r,n,o){return rA(e,t,r,FP,GP(e,0,n),GP(e,n+1,-1),n,o)}function xA(e,t,r){switch(e.type){case"@import":case FP:case _P:return e.return=e.return||e.value;case zP:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===_P&&(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),xA);return YP(n)?e.return=e.value+"{"+n+"}":""}function SA(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===zP&&(!e.parent||"@media"===e.parent.type||e.parent.type===zP)){var o=jP.transform(xA(e));e.children=o?mA(o)[0].children:[],e.return=""}}Object.defineProperty(SA,"name",{value:"stylisRTLPlugin"});let wA=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),CA=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}({}),EA=function(e){return e.A="ascending",e.D="descending",e}({}),RA=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const PA=[0,0],AA=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),IA=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},kA=(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&&te(e.localPaletteColors[t].color).blend(te(s.color),s.t)},MA=(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:AA(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:IA(n,t,r)})))),n},DA=(e,t,r,n)=>{const o=MA(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=kA(e,a,t);break}n=i}return r})(o,t);return a},TA=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!MR(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||!MR(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}=TA(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||!MR(t))return 0;let a=r&&MR(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}},qA=(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 IA(o,r.limitPaletteColorIndex,n);const a=AA(r.limitRange,t);return DA(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}},LA=(yC().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)"),NA=4/3,jA="12px",_A="600",zA="Source Sans Pro, sans-serif",FA={height:"auto",fontSize:jA,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"}},HA={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:_A},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},$A=(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,BA=(e,t)=>e.representation.type===TE.Image&&"fitHeight"===e.representation.imageSize?$A(t,e.representation):e.align,WA=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",VA=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},UA=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,GA=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",YA=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",KA=24,XA=ic("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),JA=ic(Kd,{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?WA(e,n):void 0}))),ZA=ic(Kd,{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},[`& .${GC}`]:{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"},[`& .${GC}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),QA=ic(Kd,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"}))),eI=ic(Kd,{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"}))),tI=ic(id,{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}))),rI=25e4,nI=(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(QC.PixelsMax,Math.max(QC.PixelsMin,f)),i-=n[a]};switch(s){case eE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?QC.PixelsDefault:+e)(l),h();break;case eE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?QC.PercentageDefault:+e)(u)/100*t,h();break;case eE.FitToContent:e.representation?.type===TE.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case eE.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(QC.AutoMinTable,e)}))}return n},oI=(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"]})},iI=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},aI=e=>e.ctrlKey||e.metaKey,sI=e=>e.shiftKey&&aI(e),lI=e=>[JC.Left,JC.Right,JC.Up,JC.Down].includes(e),uI=e=>e.shiftKey&&lI(e.key),cI=e=>(e=>lI(e)||[JC.Home,JC.End,JC.PageUp,JC.PageDown].includes(e))(e.key)&&!sI(e),dI=(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),oI(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})},pI=(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&&uI(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&uI(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===JC.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 oI(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},fI=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}},hI=(e,t)=>{switch(t.type){case CA.Select:return dI(e,t.payload);case CA.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 CA.SelectMouseUp:return((e,t)=>fI(e.isSelectMultiValues||e.firstCell!==t.cell?e:dI(e,t)))(e,t.payload);case CA.SelectMultiAdd:return pI(e,t.payload);case CA.SelectMultiEnd:return fI(e);case CA.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case CA.Clear:return e.rows.size?{...e,rows:new Map}:e;case CA.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},mI=4/3,gI=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function bI(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const vI=(e,t)=>e?{borderBottomColor:SC.DARK_MODE_BORDER,borderRightColor:SC.DARK_MODE_BORDER,borderLeftColor:SC.DARK_MODE_BORDER,borderTopColor:SC.DARK_MODE_BORDER}:{borderLeftColor:SC.BORDER_MEDIUM,borderRightColor:SC.BORDER_MEDIUM,borderTopColor:SC.BORDER_HEAVY,borderBottomColor:t?SC.BORDER_HEAVY:SC.BORDER_LIGHT},yI=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*mI+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},xI=e=>e.components?.find((e=>"theme"===e.key)),SI=(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:gI(r?.fontColor)?bI(SC.TEXT,t,r?.fontColor):i||SC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...vI(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function wI(e,t,r){const n=xI(e)?.header,o=SI("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=te(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=EC(o.background??SC.WHITE,tE),o.activeBackground=EC(o.background??SC.WHITE,rE),o}const CI=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach((e=>(e=>e in HA)(e)&&Object.assign(t,HA[e]))),t};function EI(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&&PC(i);a&&"none"!==a&&(n[r[t]]=a),o=i?CI(i,o):o})),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=wC(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const RI=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},PI=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=RI(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},AI=(e,t,r,n=SC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=PI(e,t,r);return DC(i,o,a,n)??n},II=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return jA}},kI=e=>e?.some((e=>"italic"===e))?"italic":"normal",MI=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?_A:"normal",DI=e=>!1===e?1:3,TI=e=>parseInt(e??FA.fontSize,10)*NA,OI=e=>e?.some((e=>"underline"===e))?"underline":"none",qI=(e,t,r,n,o)=>{const{header:i,dimensionValues:a,measureValues:s,totalValues:l,nullValues:u,grid:c,content:d}=xI(t)??{},p=LP(t,o)?SC.WHITE:SC.TRANSPARENT,f=AI(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??zA,fontSize:II(i?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??r.head.fontSize),fontStyle:kI(i?.fontStyle),fontWeight:MI(i?.fontStyle,_A),textDecoration:OI(i?.fontStyle),color:RI(n,i?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??r.head.color??SC.TEXT,background:f},headerMenuHoverBackground:EC(f,tE),headerMenuActiveBackground:EC(f,rE),dimension:{values:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??r.body.fontFamily??zA,fontSize:II(a?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??r.body.fontSize),fontStyle:kI(a?.fontStyle),fontWeight:MI(a?.fontStyle,"normal"),textDecoration:OI(a?.fontStyle),color:RI(n,a?.fontColor)??RI(n,d?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??r.body.color??SC.TEXT,background:PI(n,a,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??r.body.background??SC.TRANSPARENT}},measure:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??r.body.fontFamily??zA,fontSize:II(s?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??r.body.fontSize),fontStyle:kI(s?.fontStyle),fontWeight:MI(s?.fontStyle,"normal"),textDecoration:OI(s?.fontStyle),color:RI(n,s?.fontColor)??RI(n,d?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??r.body.color??SC.TEXT,background:PI(n,s,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??r.body.background??SC.TRANSPARENT}},totalRow:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??r.totals.fontFamily??zA,fontSize:II(l?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??r.totals.fontSize),fontStyle:kI(l?.fontStyle),fontWeight:MI(l?.fontStyle,_A),textDecoration:OI(l?.fontStyle),color:RI(n,l?.fontColor)??RI(n,d?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??r.totals.color??SC.TEXT,background:AI(n,l,"object.straightTableV2.total.label.value.backgroundColor",p)},nullValues:{fontStyle:kI(u?.fontStyle),fontWeight:MI(u?.fontStyle,"normal"),textDecoration:OI(u?.fontStyle),color:RI(n,u?.fontColor)??RI(n,d?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??r.body.color??SC.TEXT,background:RI(n,u?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??SC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:h??DI(t.multiline?.wrapTextInCells),headerLineClamp:DI(t.multiline?.wrapTextInHeaders),border:RI(n,c?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?SC.DARK_MODE_BORDER:SC.BORDER_MEDIUM),divider:RI(n,c?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??SC.BORDER_HEAVY,hoverColors:{color:RI(n,d?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??r.body.hoverColors?.color,background:RI(n,d?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??r.body.hoverColors?.background},zebraStripes:{show:!!c?.zebraStripes?.show,odd:{color:RI(n,c?.zebraStripes?.color?.odd),background:RI(n,c?.zebraStripes?.background?.odd)},even:{color:RI(n,c?.zebraStripes?.color?.even),background:RI(n,c?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===RI(n,u?.background),overrideNullValueColor:void 0===RI(n,u?.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:CC(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(TI(e.header.fontSize)+8,32),r=TI(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(TI(e.dimension.values.fontSize),TI(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},LI=(e,t,r,n)=>{const o=C((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){const o=xI(e)?.content,i=SI("content",t,o);i.background=t.background.color;const a=yI(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=gI(l)||!!c,p=gI(s)||!!u,f=d||p;let h;h=gI(s)?bI(SC.HOVER,t,s):u||(d?"":SC.HOVER);const m=f?bI(wC(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(e,t,r.rows.length,n),a=wI(e,t,!o),s=function(e,t,r){const n=xI(e)?.content,o=SI("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=wI(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},NI=new Map;const jI=M({}),_I=function(e){const t=M([()=>{},new Set]);return NI.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 er.jsx(e.Provider,{value:n,children:er.jsx(t.Provider,{value:s,children:r})})}}(jI),zI={rows:[],columns:[],totalsPosition:{}},FI=({app:e,children:t,tableData:r=zI,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||PA),[M,D]=((e,t)=>{const[r,n]=k(hI,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[T,O]=w(-1),q=LI(i,u,r,d),L=((e,t,r,n,o)=>C((()=>qI(0,t,r,n,o)),[t,r,e,n,o]))(S,i,q,u,y),[N,j,_,z,F,H]=((e,t,r,n,o=!0)=>{const i=t.atBottom||t.atTop,a=_C({...n.header,fontWeight:_A},{maxNbrLinesOfText:3}).measureText,s=_C({...n.totalRow,fontWeight:_A},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=_C(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:u}=_C(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+=KA),t+=KA,t+=KA,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((()=>nI(e,r,c)));$C((()=>{g(nI(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 er.jsx(_I,{value:{headRowHeight:R,setHeadRowHeight:P,focusedCellCoord:A,setFocusedCellCoord:I,selectionState:M,selectionDispatch:D,hoverIndex:T,setHoverIndex:O,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 HI(e,t){const r=function(e){return NI.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 $I(e){const t=yC();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),wu({...t,direction:e})}const BI={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},WI={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},VI=ic("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":{...BI},"&::-moz-range-track":{...BI},"&::-ms-track":{...BI},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...WI},"&::-moz-range-thumb":{...WI},"&::-ms-thumb":{...WI},"&: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"}}))),UI=({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=WC({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}};$C((()=>{m&&v()}),[e]);const y=e=>{const t=Math.max(e,QC.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:eE.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=>{IC(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=>{IC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===JC.Left||e.key===JC.Right){IC(e);const t=5,r=e.key===JC.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===JC.Space||e.key===JC.Enter?(IC(e),s(e),l?.(!1),x()):e.key===JC.Esc&&(IC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,P=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return er.jsx(VI,{style:b,hoverColor:o,isLastColumn:r,className:ZC,"data-testid":ZC,onMouseDown:e=>{IC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:eE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(IC(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":QC.PixelsMin,"aria-valuemax":QC.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},GI=O(((e,t)=>er.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:er.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),YI=({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},KI=ic(Kd,{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"}))),XI=ic(GI,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),JI=ic(Df)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),ZI=ic(Ap)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),QI=ic(Nf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),ek=ic(Nf,{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"}))),tk=ic("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"}))),rk=ic("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),nk=ic(dd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),ok=ic(nf,{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}))),ik=O(((e,t)=>er.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:er.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),ak=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?ak(t):t:e.parentElement?.children?.[0]},sk=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?sk(t):t},lk=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===JC.Down||t===JC.Up){const r=e=>t===JC.Down?ak(e):sk(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},uk=(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 ck={};const dk=({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 er.jsxs(er.Fragment,{children:[er.jsxs(ek,{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),ck={}),a?.length&&(p(!0),ck[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:lk,children:[l?er.jsx(tk,{direction:u,isPagination:c}):null,er.jsxs(rk,{children:[er.jsx(ok,{direction:u,isPagination:c,children:er.jsx(o,{})}),er.jsx(nk,{variant:"body2",children:n})]}),a?.length?er.jsx(ik,{}):null]},t),a?.length?er.jsx(mk,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:uk(a,ck),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},pk=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&er.jsx(QI,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>er.jsx(dk,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),fk=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[pk({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?er.jsx(ZI,{"data-testid":"group-divider",variant:"middle"}):void 0])),hk={appear:0,enter:0,exit:0},mk=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?er.jsx(JI,{className:YC,open:t,anchorEl:e,onClose:r,transitionDuration:hk,MenuListProps:{id:KC},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:fk({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,gk=({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]),bk=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),vk=(e,t)=>e.some((e=>t[e]>0)),yk={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},xk=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=w(null),[a,s]=w(yk);return $C((()=>{e||(s(yk),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=bk(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:vk(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:vk(["qSelected"],e),canSelectPossible:vk(["qOption"],e),canSelectAlternative:vk(["qAlternative"],e),canSelectExcluded:vk(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},Sk=O(((e,t)=>er.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:er.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"})}))),wk=O(((e,t)=>er.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:er.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"})}))),Ck=O(((e,t)=>er.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:er.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"})}))),Ek=O(((e,t)=>er.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:er.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"})}))),Rk=O(((e,t)=>er.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:er.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"})}))),Pk=O(((e,t)=>er.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:er.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"})}))),Ak=O(((e,t)=>er.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:er.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"})}))),Ik=O(((e,t)=>er.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:er.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"})}))),kk=O(((e,t)=>er.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:er.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"})}))),Mk=O(((e,t)=>er.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:er.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"})}))),Dk=O(((e,t)=>er.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:er.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"})}))),Tk=O(((e,t)=>er.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:er.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=O(((e,t)=>er.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:er.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"})}))),qk=O(((e,t)=>er.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:er.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 Lk=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const Nk="/qListObjectDef",jk=({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[Lk.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:Sk,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:Ek,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:Ik,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:Rk,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[Lk.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:kk,enabled:!0}]}]),!e.isLocked&&r[Lk.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:qk,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(Nk))},icon:Mk,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(Nk))},icon:Ok,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(Nk))},icon:Dk,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(Nk))},icon:Tk,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(Nk))},icon:wk,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:Ak,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:Pk,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[Lk.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:Ck,enabled:!0}]}]),f},_k=({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=VC})=>{const v=D(null),y=WC({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=xk({open:e,headerData:n,app:C,qStateName:c?.qStateName}),P=YI({model:f,headerData:n}),A=gk({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?er.jsxs(KI,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:GC,onClick:!1===g?k:void 0,ref:v,isAccessibleHeader:g,children:[s?er.jsx(XI,{height:b,className:UC,"data-testid":UC,isInteractionsActive:i.active??!1,children:er.jsx(GI,{})}):null,er.jsx(mk,{open:e,anchorEl:!1===g?v.current:r.current,onClose:I,menuGroups:jk({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},zk=e=>e.isDark?{background:e.color,borderColor:SC.DARK_MODE_BORDER,color:SC.DARK_MODE_TEXT,disabledColor:SC.DARK_MODE_DISABLED,iconColor:SC.DARK_MODE_TEXT}:{background:e.color,borderColor:SC.BORDER_MEDIUM,color:SC.TEXT,disabledColor:SC.DISABLED},Fk=ic(Kd,{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}`}))),Hk=ic(gh,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),$k=ic(ip,{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)}))),Bk=ic(dd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),Wk=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=C((()=>zk(n.background)),[n]);if(!r.active)return null;const a=o?er.jsx(Fk,{footerStyle:i,children:e}):null;return t?F.createPortal(e,t):a},Vk=M({}),Uk=()=>S(Vk),Gk=({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((()=>zk(p.background)),[p]),y=o?o.getBoundingClientRect().width:h.width,x=WC({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 er.jsx(Vk.Provider,{value:S,children:e})};let Yk=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),Kk=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 Xk=O(((e,t)=>er.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:er.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),Jk=O(((e,t)=>er.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:er.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),Zk=O(((e,t)=>er.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:er.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),Qk={FirstPage:Jk,PreviousPage:Xk,NextPage:ik,LastPage:Zk,FirstPageRTL:Zk,PreviousPageRTL:ik,NextPageRTL:Xk,LastPageRTL:Jk},eM=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=Uk(),u=r.concat("rtl"===n?"RTL":""),c=Qk[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}},tM=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=Uk(),o=0===e.page,{IconComponent:i,styledProps:a}=eM({type:Yk.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||Kk.FirstPage)?null:er.jsx($k,{...a,disabled:!r.active,children:er.jsx(i,{height:VC})})},rM=(e,t,r=!1)=>{r&&e.key===JC.Tab&&!e.shiftKey&&(IC(e),AC(e.target,t,!1))},nM=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=Uk(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=eM({type:Yk.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{rM(e,t,n)}:void 0;return o<=(a?.lastPage||Kk.LastPage)?null:er.jsx($k,{...u,onKeyDown:c,disabled:!i.active,children:er.jsx(l,{height:VC})})},oM=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=Uk(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=eM({type:Yk.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>Kk.FirstPage&&o>Kk.LastPage)&&t.enabled?e=>{rM(e,t,n)}:void 0;return er.jsx($k,{...l,onKeyDown:u,disabled:!i.active,children:er.jsx(s,{height:VC})})},iM=()=>{const{pageInfo:e,interactions:t}=Uk(),r=0===e.page,{IconComponent:n,styledProps:o}=eM({type:Yk.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return er.jsx($k,{...o,disabled:!t.active,children:er.jsx(n,{height:VC})})},aM=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=Uk(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||Kk.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return er.jsx(Bk,{variant:"caption",dir:"ltr",children:s})},sM=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=Uk(),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 er.jsxs(er.Fragment,{children:[er.jsxs(Bk,{variant:"caption",id:p,children:[c,":"]}),er.jsx(Hk,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},lM=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=Uk();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||Kk.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=er.jsx(er.Fragment,{children:e.rowsPerPageOptions.map((e=>er.jsx("option",{value:e,children:e},e)))});return er.jsx(sM,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},uM=1e3,cM="…",dM=({totalPages:e,page:t})=>{const r=Math.min(e,uM),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-uM):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return er.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(er.jsx("option",{value:cM,disabled:!0,children:cM},"startMoreOptions")),o<e-1&&a.push(er.jsx("option",{value:cM,disabled:!0,children:cM},"endMoreOptions")),er.jsx(er.Fragment,{children:a})},pM=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=Uk(),{page:i}=e;if(t<=(o?.selectPage||Kk.SelectPage))return null;const a=er.jsx(dM,{totalPages:r,page:i});return er.jsx(sM,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var fM=q((e=>er.jsxs(Gk,{...e,children:[er.jsx(lM,{}),er.jsx(pM,{}),er.jsx(aM,{}),er.jsx(tM,{}),er.jsx(iM,{}),er.jsx(oM,{}),er.jsx(nM,{})]})));const hM=e=>er.jsx(Wk,{...e,children:er.jsx(fM,{...e})});var mM=Symbol.for("preact-signals");function gM(){if(SM>1)SM--;else{for(var e,t=!1;void 0!==xM;){var r=xM;for(xM=void 0,wM++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&AM(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(wM=0,SM--,t)throw e}}function bM(e){if(SM>0)return e();SM++;try{return e()}finally{gM()}}var vM=void 0;function yM(e){var t=vM;vM=void 0;try{return e()}finally{vM=t}}var xM=void 0,SM=0,wM=0,CM=0;function EM(e){if(void 0!==vM){var t=e.n;if(void 0===t||t.t!==vM)return t={i:0,S:e,p:vM.s,n:void 0,t:vM,e:void 0,x:void 0,r:t},void 0!==vM.s&&(vM.s.n=t),vM.s=t,e.n=t,32&vM.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=vM.s,t.n=void 0,vM.s.n=t,vM.s=t),t}}function RM(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 PM(e,t){return new RM(e,t)}function AM(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 IM(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 kM(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 MM(e,t){RM.call(this,void 0),this.x=e,this.s=void 0,this.g=CM-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 DM(e,t){return new MM(e,t)}function TM(e){var t=e.u;if(e.u=void 0,"function"==typeof t){SM++;var r=vM;vM=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,OM(e),t}finally{vM=r,gM()}}}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,TM(e)}function qM(e){if(vM!==this)throw new Error("Out-of-order effect");kM(this),vM=e,this.f&=-2,8&this.f&&OM(this),gM()}function LM(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 NM(e,t){var r=new LM(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}RM.prototype.brand=mM,RM.prototype.h=function(){return!0},RM.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:yM((function(){var e;null==(e=t.W)||e.call(t)})))},RM.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&&yM((function(){var e;null==(e=t.Z)||e.call(t)})))}},RM.prototype.subscribe=function(e){var t=this;return NM((function(){var r=t.value,n=vM;vM=void 0;try{e(r)}finally{vM=n}}),{name:"sub"})},RM.prototype.valueOf=function(){return this.value},RM.prototype.toString=function(){return this.value+""},RM.prototype.toJSON=function(){return this.value},RM.prototype.peek=function(){var e=vM;vM=void 0;try{return this.value}finally{vM=e}},Object.defineProperty(RM.prototype,"value",{get:function(){var e=EM(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(wM>100)throw new Error("Cycle detected");this.v=e,this.i++,CM++,SM++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{gM()}}}}),MM.prototype=new RM,MM.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===CM)return!0;if(this.g=CM,this.f|=1,this.i>0&&!AM(this))return this.f&=-2,!0;var e=vM;try{IM(this),vM=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 vM=e,kM(this),this.f&=-2,!0},MM.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)}RM.prototype.S.call(this,e)},MM.prototype.U=function(e){if(void 0!==this.t&&(RM.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)}},MM.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(MM.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=EM(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),LM.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()}},LM.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,TM(this),IM(this),SM++;var e=vM;return vM=this,qM.bind(this,e)},LM.prototype.N=function(){2&this.f||(this.f|=2,this.o=xM,xM=this)},LM.prototype.d=function(){this.f|=8,1&this.f||OM(this)},LM.prototype.dispose=function(){this.d()};var jM,_M,zM,FM,HM,$M,BM,WM,VM,UM,GM,YM,KM,XM,JM,ZM,QM,eD,tD,rD,nD=Object.create,oD=Object.defineProperty,iD=Object.defineProperties,aD=Object.getOwnPropertyDescriptor,sD=Object.getOwnPropertyDescriptors,lD=Object.getOwnPropertySymbols,uD=Object.prototype.hasOwnProperty,cD=Object.prototype.propertyIsEnumerable,dD=e=>{throw TypeError(e)},pD=(e,t,r)=>t in e?oD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fD=(e,t)=>oD(e,"name",{value:t,configurable:!0}),hD=["class","method","getter","setter","accessor","field","value","get","set"],mD=e=>void 0!==e&&"function"!=typeof e?dD("Function expected"):e,gD=(e,t,r,n,o)=>({kind:hD[e],name:t,metadata:n,addInitializer:e=>r._?dD("Already initialized"):o.push(mD(e||null))}),bD=(e,t)=>{return pD(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},vD=(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},yD=(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=hD[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)&&aD(d<4?o:{get[r](){return wD(this,i)},set[r](e){return ED(this,i,e)}},r));d?f&&d<4&&fD(i,(d>2?"set ":d>1?"get ":"")+r):fD(o,r);for(var y=n.length-1;y>=0;y--)u=gD(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>SD(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?wD:RD)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>ED(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?mD(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?dD("Object expected"):(mD(a=s.get)&&(v.get=a),mD(a=s.set)&&(v.set=a),mD(a=s.init)&&g.unshift(a));return d||bD(e,o),v&&oD(o,r,v),f?4^d?i:v:o},xD=(e,t,r)=>t.has(e)||dD("Cannot "+r),SD=(e,t)=>Object(t)!==t?dD('Cannot use the "in" operator on this value'):e.has(t),wD=(e,t,r)=>(xD(e,t,"read from private field"),r?r.call(e):t.get(e)),CD=(e,t,r)=>t.has(e)?dD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ED=(e,t,r,n)=>(xD(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),RD=(e,t,r)=>(xD(e,t,"access private method"),r);function PD(e,t){if(t){let r;return DM((()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)}))}return DM(e)}function AD(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)=>!AD(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=>!AD(e[r],t[r])));return!o}return!1}function ID({get:e},t){return{init:e=>PM(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function kD(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=PD(e.bind(this)),r.set(this,t)),t.value}}function MD(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)=>iD(e,sD(t)))(((e,t)=>{for(var r in t||(t={}))uD.call(t,r)&&pD(e,r,t[r]);if(lD)for(var r of lD(t))cD.call(t,r)&&pD(e,r,t[r]);return e})({},n),{enumerable:e}))}))}}function DD(...e){const t=e.map(NM);return()=>t.forEach((e=>e()))}$M=[ID],HM=[ID],FM=[ID],zM=[MD()],_M=[MD()],jM=[MD()];var TD,OD=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,vD(BM,5,this),CD(this,YM),CD(this,WM,vD(BM,8,this)),vD(BM,11,this),CD(this,KM,vD(BM,12,this)),vD(BM,15,this),CD(this,QM,vD(BM,16,this)),vD(BM,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return wD(this,YM,tD)}get initial(){return wD(this,YM,UM)}get previous(){return wD(this,YM,JM)}set current(e){const t=yM((()=>wD(this,YM,tD)));e&&t&&this.equals(t,e)||bM((()=>{wD(this,YM,UM)||ED(this,YM,e,GM),ED(this,YM,t,ZM),ED(this,YM,e,rD)}))}reset(e=this.defaultValue){bM((()=>{ED(this,YM,void 0,ZM),ED(this,YM,e,GM),ED(this,YM,e,rD)}))}};function qD(e){return yM((()=>{const t={};for(const r in e)t[r]=e[r];return t}))}BM=[,,,nD(null)],WM=new WeakMap,YM=new WeakSet,KM=new WeakMap,QM=new WeakMap,VM=yD(BM,20,"#initial",$M,YM,WM),UM=VM.get,GM=VM.set,XM=yD(BM,20,"#previous",HM,YM,KM),JM=XM.get,ZM=XM.set,eD=yD(BM,20,"#current",FM,YM,QM),tD=eD.get,rD=eD.set,yD(BM,2,"current",zM,OD),yD(BM,2,"initial",_M,OD),yD(BM,2,"previous",jM,OD),bD(BM,OD);TD=new WeakMap;var LD,ND,jD,_D,zD,FD=Object.create,HD=Object.defineProperty,$D=Object.getOwnPropertyDescriptor,BD=Object.getOwnPropertySymbols,WD=Object.prototype.hasOwnProperty,VD=Object.prototype.propertyIsEnumerable,UD=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),GD=e=>{throw TypeError(e)},YD=Math.pow,KD=(e,t,r)=>t in e?HD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,XD=["class","method","getter","setter","accessor","field","value","get","set"],JD=e=>void 0!==e&&"function"!=typeof e?GD("Function expected"):e,ZD=(e,t,r,n,o)=>({kind:XD[e],name:t,metadata:n,addInitializer:e=>r._?GD("Already initialized"):o.push(JD(e||null))}),QD=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=XD[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,$D(o,r)),h=n.length-1;h>=0;h--)(l=ZD(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,JD(a)&&(f[d]=a);return f&&HD(o,r,f),o},eT=(e,t,r)=>t.has(e)||GD("Cannot "+r),tT=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)}},rT=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={}))WD.call(t,r)&&KD(e,r,t[r]);if(BD)for(var r of BD(t))VD.call(t,r)&&KD(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 tT((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 tT.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 nT,oT=class extends(jD=OD,ND=[kD],LD=[kD],jD){constructor(e){var t,r,n;super(tT.from(e),((e,t)=>tT.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)})(zD,5,this),t=this,n=0,(r=_D).has(t)?GD("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 tT.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=tT.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(eT(a=this,s=_D,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);bM((()=>{((e,t,r)=>{eT(e,t,"write to private field"),t.set(e,r)})(this,_D,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(tT.from(e)),this.velocity={x:0,y:0}}};function iT({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(YD(n,2)+YD(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}zD=(e=>{var t;return[,,,FD(null!=(t=null==e?void 0:e[UD("metadata")])?t:null)]})(jD),_D=new WeakMap,QD(zD,2,"delta",ND,oT),QD(zD,2,"direction",LD,oT),nT=zD,KD(oT,UD("metadata"),nT[3]);var aT,sT,lT,uT,cT=(e=>(e.Horizontal="x",e.Vertical="y",e))(cT||{}),dT=Object.values(cT),pT=Object.create,fT=Object.defineProperty,hT=Object.defineProperties,mT=Object.getOwnPropertyDescriptor,gT=Object.getOwnPropertyDescriptors,bT=Object.getOwnPropertySymbols,vT=Object.prototype.hasOwnProperty,yT=Object.prototype.propertyIsEnumerable,xT=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ST=e=>{throw TypeError(e)},wT=(e,t,r)=>t in e?fT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,CT=(e,t)=>{for(var r in t||(t={}))vT.call(t,r)&&wT(e,r,t[r]);if(bT)for(var r of bT(t))yT.call(t,r)&&wT(e,r,t[r]);return e},ET=(e,t)=>hT(e,gT(t)),RT=(e,t)=>fT(e,"name",{value:t,configurable:!0}),PT=(e,t)=>{var r={};for(var n in e)vT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&bT)for(var n of bT(e))t.indexOf(n)<0&&yT.call(e,n)&&(r[n]=e[n]);return r},AT=e=>{var t;return[,,,pT(null!=(t=null==e?void 0:e[xT("metadata")])?t:null)]},IT=["class","method","getter","setter","accessor","field","value","get","set"],kT=e=>void 0!==e&&"function"!=typeof e?ST("Function expected"):e,MT=(e,t,r,n,o)=>({kind:IT[e],name:t,metadata:n,addInitializer:e=>r._?ST("Already initialized"):o.push(kT(e||null))}),DT=(e,t)=>wT(t,xT("metadata"),e[3]),TT=(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=IT[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)&&mT(d<4?o:{get[r](){return NT(this,i)},set[r](e){return _T(this,i,e)}},r));d?f&&d<4&&RT(i,(d>2?"set ":d>1?"get ":"")+r):RT(o,r);for(var y=n.length-1;y>=0;y--)u=MT(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>LT(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?NT:zT)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>_T(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?kT(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?ST("Object expected"):(kT(a=s.get)&&(v.get=a),kT(a=s.set)&&(v.set=a),kT(a=s.init)&&g.unshift(a));return d||DT(e,o),v&&fT(o,r,v),f?4^d?i:v:o},qT=(e,t,r)=>t.has(e)||ST("Cannot "+r),LT=(e,t)=>Object(t)!==t?ST('Cannot use the "in" operator on this value'):e.has(t),NT=(e,t,r)=>(qT(e,t,"read from private field"),r?r.call(e):t.get(e)),jT=(e,t,r)=>t.has(e)?ST("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),_T=(e,t,r,n)=>(qT(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),zT=(e,t,r)=>(qT(e,t,"access private method"),r);function FT(e,t){return{plugin:e,options:t}}function HT(e){return t=>FT(e,t)}function $T(e){return"function"==typeof e?{plugin:e,options:void 0}:e}aT=[ID];var BT=class{constructor(e,t){this.manager=e,this.options=t,jT(this,lT,TT(sT,8,this,!1)),TT(sT,11,this),jT(this,uT,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return yM((()=>this.disabled))}configure(e){this.options=e}registerEffect(e){const t=NM(e.bind(this));return NT(this,uT).add(t),t}destroy(){NT(this,uT).forEach((e=>e()))}static configure(e){return FT(this,e)}};sT=AT(null),lT=new WeakMap,uT=new WeakMap,OT(sT,4,"disabled",aT,BT,lT),DT(sT,BT);var WT,VT=class extends BT{},UT=class{constructor(e){this.manager=e,this.instances=new Map,jT(this,WT,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map($T).reduceRight(((e,t)=>e.some((({plugin:e})=>e===t.plugin))?e:[t,...e]),[]),r=t.map((({plugin:e})=>e));for(const e of NT(this,WT))if(!r.includes(e)){if(e.prototype instanceof VT)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);_T(this,WT,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 GT(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}WT=new WeakMap;var YT,KT,XT=[],JT=class extends BT{constructor(e){super(e),jT(this,YT),jT(this,KT),this.computeCollisions=this.computeCollisions.bind(this),_T(this,KT,PM(XT)),this.destroy=DD((()=>{const e=this.computeCollisions(),t=yM((()=>this.manager.dragOperation.position.current));if(e!==XT){const e=NT(this,YT);if(_T(this,YT,t),e&&t.x==e.x&&t.y==e.y)return}else _T(this,YT,void 0);NT(this,KT).value=e}),(()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()}))}forceUpdate(e=!0){yM((()=>{e?NT(this,KT).value=this.computeCollisions():_T(this,YT,void 0)}))}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return XT;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=yM((()=>e({droppable:i,dragOperation:n})));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?XT:(s.sort(GT),s)}get collisions(){return NT(this,KT).value}};YT=new WeakMap,KT=new WeakMap;var ZT=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)}},QT=class extends ZT{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function eO(e,t=!0){let r=!1;return ET(CT({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var tO,rO,nO,oO,iO,aO,sO,lO,uO,cO=class extends VT{constructor(e){super(e);let t=[];this.destroy=DD((()=>{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=eO({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;yM((()=>{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()})))}))}))}},dO=(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))(dO||{}),pO=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(pO||{});sO=[ID],aO=[kD],iO=[kD],oO=[kD],nO=[kD],rO=[kD],tO=[kD];var fO=class{constructor(){TT(lO,5,this),jT(this,uO,TT(lO,8,this,"idle")),TT(lO,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}};lO=AT(null),uO=new WeakMap,OT(lO,4,"value",sO,fO,uO),OT(lO,2,"current",aO,fO),OT(lO,2,"idle",iO,fO),OT(lO,2,"initializing",oO,fO),OT(lO,2,"initialized",nO,fO),OT(lO,2,"dragging",rO,fO),OT(lO,2,"dropped",tO,fO),DT(lO,fO);var hO,mO,gO,bO,vO,yO,xO,SO,wO,CO=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 yM((()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=eO({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then((()=>n.defaultPrevented))}))}start(e){return yM((()=>{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;bM((()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)}));const i=eO({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 yM((()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=eO({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 yM((()=>{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=yM((()=>{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=NM((()=>{"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()}))}};bO=[ID],gO=[ID],mO=[ID],hO=[ID];var EO=class{constructor(e,t){jT(this,yO,TT(vO,8,this)),TT(vO,11,this),jT(this,xO,TT(vO,12,this)),TT(vO,15,this),jT(this,SO,TT(vO,16,this)),TT(vO,19,this),jT(this,wO,TT(vO,20,this)),TT(vO,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)}};vO=AT(null),yO=new WeakMap,xO=new WeakMap,SO=new WeakMap,wO=new WeakMap,OT(vO,4,"manager",bO,EO,yO),OT(vO,4,"id",gO,EO,xO),OT(vO,4,"data",mO,EO,SO),OT(vO,4,"disabled",hO,EO,wO),DT(vO,EO);var RO,PO,AO,IO,kO,MO,DO,TO,OO,qO,LO,NO,jO,_O,zO,FO,HO,$O,BO,WO,VO,UO,GO,YO,KO=class{constructor(){this.map=PM(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=DD(...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}},XO=class extends(DO=EO,MO=[ID],kO=[ID],IO=[ID],AO=[kD],PO=[kD],RO=[kD],DO){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=PT(r,["modifiers","type","sensors"]);super(a,t),TT(TO,5,this),jT(this,OO,TT(TO,8,this)),TT(TO,11,this),jT(this,qO,TT(TO,12,this)),TT(TO,15,this),jT(this,LO,TT(TO,16,this,this.isDragSource?"dragging":"idle")),TT(TO,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}};TO=AT(DO),OO=new WeakMap,qO=new WeakMap,LO=new WeakMap,OT(TO,4,"type",MO,XO,OO),OT(TO,4,"modifiers",kO,XO,qO),OT(TO,4,"status",IO,XO,LO),OT(TO,2,"isDropping",AO,XO),OT(TO,2,"isDragging",PO,XO),OT(TO,2,"isDragSource",RO,XO),DT(TO,XO);var JO=class extends($O=EO,HO=[ID],FO=[ID],zO=[ID],_O=[ID],jO=[ID],NO=[kD],$O){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(PT(r,["accept","collisionDetector","collisionPriority","type"]),t),TT(BO,5,this),jT(this,WO,TT(BO,8,this)),TT(BO,11,this),jT(this,VO,TT(BO,12,this)),TT(BO,15,this),jT(this,UO,TT(BO,16,this)),TT(BO,19,this),jT(this,GO,TT(BO,20,this)),TT(BO,23,this),jT(this,YO,TT(BO,24,this)),TT(BO,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}};BO=AT($O),WO=new WeakMap,VO=new WeakMap,UO=new WeakMap,GO=new WeakMap,YO=new WeakMap,OT(BO,4,"accept",HO,JO,WO),OT(BO,4,"type",FO,JO,VO),OT(BO,4,"collisionDetector",zO,JO,UO),OT(BO,4,"collisionPriority",_O,JO,GO),OT(BO,4,"shape",jO,JO,YO),OT(BO,2,"isDropTarget",NO,JO),DT(BO,JO);var ZO,QO,eq,tq,rq,nq,oq,iq,aq,sq,lq,uq,cq,dq,pq,fq,hq,mq,gq,bq=class extends BT{constructor(e,t){super(e,t),this.manager=e,this.options=t}},vq=class extends BT{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},yq=class{constructor(e){this.draggables=new KO,this.droppables=new KO,this.plugins=new UT(e),this.sensors=new UT(e),this.modifiers=new UT(e)}register(e,t){if(e instanceof XO)return this.draggables.register(e.id,e);if(e instanceof JO)return this.droppables.register(e.id,e);if(e.prototype instanceof vq)return this.modifiers.register(e,t);if(e.prototype instanceof bq)return this.sensors.register(e,t);if(e.prototype instanceof BT)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof EO)return e instanceof XO?this.draggables.unregister(e.id,e):e instanceof JO?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof vq)return this.modifiers.unregister(e);if(e.prototype instanceof bq)return this.sensors.unregister(e);if(e.prototype instanceof BT)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()}};aq=[kD],iq=[ID],oq=[ID],nq=[ID],rq=[ID],tq=[ID],eq=[kD],QO=[kD],ZO=[kD];var xq=class{constructor(e){TT(cq,5,this),jT(this,sq),jT(this,lq),jT(this,uq,new OD(void 0,((e,t)=>e&&t?e.equals(t):e===t))),this.status=new fO,jT(this,dq,TT(cq,8,this,!1)),TT(cq,11,this),jT(this,pq,TT(cq,12,this,null)),TT(cq,15,this),jT(this,fq,TT(cq,16,this,null)),TT(cq,19,this),jT(this,hq,TT(cq,20,this,null)),TT(cq,23,this),jT(this,mq,TT(cq,24,this,[])),TT(cq,27,this),this.position=new oT({x:0,y:0}),jT(this,gq,{x:0,y:0}),_T(this,sq,e)}get shape(){const{current:e,initial:t,previous:r}=NT(this,uq);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?NT(this,uq).current=e:NT(this,uq).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=NT(this,sq).registry.draggables.get(t);return r&&_T(this,lq,r),null!=(e=null!=r?r:NT(this,lq))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=NT(this,sq).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(ET(CT({},this.snapshot()),{transform:r}));return _T(this,gq,r),r}snapshot(){return yM((()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:NT(this,gq),shape:this.shape?qD(this.shape):null,position:qD(this.position),status:qD(this.status),canceled:this.canceled})))}reset(){bM((()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,NT(this,uq).reset(),this.position.reset({x:0,y:0}),_T(this,gq,{x:0,y:0}),this.modifiers=[]}))}};cq=AT(null),sq=new WeakMap,lq=new WeakMap,uq=new WeakMap,dq=new WeakMap,pq=new WeakMap,fq=new WeakMap,hq=new WeakMap,mq=new WeakMap,gq=new WeakMap,OT(cq,2,"shape",aq,xq),OT(cq,4,"canceled",iq,xq,dq),OT(cq,4,"activatorEvent",oq,xq,pq),OT(cq,4,"sourceIdentifier",nq,xq,fq),OT(cq,4,"targetIdentifier",rq,xq,hq),OT(cq,4,"modifiers",tq,xq,mq),OT(cq,2,"source",eq,xq),OT(cq,2,"target",QO,xq),OT(cq,2,"transform",ZO,xq),DT(cq,xq);var Sq={get rendering(){return Promise.resolve()}},wq=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=Sq}=null!=e?e:{},i=new QT(this),a=new yq(this);this.registry=a,this.monitor=i,this.renderer=o,this.actions=new CO(this),this.dragOperation=new xq(this),this.collisionObserver=new JT(this),this.plugins=[cO,...t],this.modifiers=n,this.sensors=r;const{destroy:s}=this,l=DD((()=>{var e,t,r;const n=yM((()=>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}=$T(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}},Cq=e=>{throw TypeError(e)},Eq=(e,t,r)=>t.has(e)||Cq("Cannot "+r),Rq=(e,t,r)=>(Eq(e,t,"read from private field"),t.get(e)),Pq=(e,t,r)=>t.has(e)?Cq("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Aq=(e,t,r,n)=>(Eq(e,t,"write to private field"),t.set(e,r),r),Iq=(e,t,r)=>(Eq(e,t,"access private method"),r);function kq(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function Mq(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=(kq(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function Dq(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}}var Tq="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Oq(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function qq(e){return"nodeType"in e}function Lq(e){var t,r,n;return e?Oq(e)?e:qq(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 Nq(e){const{Document:t}=Lq(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function jq(e){return!(!e||Oq(e))&&(e instanceof Lq(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function _q(e){return e instanceof Lq(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function zq(e){return e?Oq(e)?e.document:qq(e)?Nq(e)?e:jq(e)||_q(e)?e.ownerDocument:document:document:document}function Fq(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 Hq(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(!Fq(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 $q(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function Bq(e){return"value"in e}function Wq(e){return"CANVAS"===e.tagName}function Vq(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 Vq(e,{x:t-o,y:r-i})}}return n}var Uq=new WeakMap,Gq=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(t)?t:[t],n=[];for(const t of r){const{type:r,listener:o,options:i}=t,a=[e,t];e.addEventListener(r,o,i),this.entries.add(a),n.push(a)}return function(){for(const[e,{type:t,listener:r,options:o}]of n)e.removeEventListener(t,r,o)}}};function Yq(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function Kq(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 Xq,Jq=Tq?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},Zq=class extends Jq{constructor(e){super((t=>{Rq(this,Xq)?e(t,this):Aq(this,Xq,!0)})),Pq(this,Xq,!1)}};Xq=new WeakMap;var Qq,eL,tL,rL,nL,oL,iL,aL,sL,lL,uL,cL=Array.from({length:100},((e,t)=>t/100)),dL=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,Pq(this,sL),this.disconnect=()=>{var e,t,r;Aq(this,iL,!0),null==(e=Rq(this,tL))||e.disconnect(),null==(t=Rq(this,rL))||t.disconnect(),Rq(this,nL).disconnect(),null==(r=Rq(this,oL))||r.remove()},Pq(this,Qq,!0),Pq(this,eL),Pq(this,tL),Pq(this,rL),Pq(this,nL),Pq(this,oL),Pq(this,iL,!1),Pq(this,aL,Kq((()=>{var e,t,r;const{element:n}=this;if(null==(e=Rq(this,rL))||e.disconnect(),Rq(this,iL)||!Rq(this,Qq)||!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=Hq(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,Aq(this,rL,new IntersectionObserver((e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:rT.intersectionRatio(r,Hq(n)))&&Rq(this,aL).call(this)}),{threshold:cL,rootMargin:m,root:o})),Rq(this,rL).observe(n),Iq(this,sL,lL).call(this)}),75)),this.boundingClientRect=e.getBoundingClientRect(),Aq(this,Qq,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=Hq(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)&&(Aq(this,oL,document.createElement("div")),Rq(this,oL).style.background="rgba(0,0,0,0.15)",Rq(this,oL).style.position="fixed",Rq(this,oL).style.pointerEvents="none",o.body.appendChild(Rq(this,oL))),Aq(this,nL,new IntersectionObserver((t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=Rq(this,Qq);Aq(this,Qq,a),(s||l)&&(u&&!a?(null==(r=Rq(this,rL))||r.disconnect(),this.callback(null),null==(n=Rq(this,tL))||n.disconnect(),Aq(this,tL,void 0),Rq(this,oL)&&(Rq(this,oL).style.visibility="hidden")):Rq(this,aL).call(this),a&&!Rq(this,tL)&&(Aq(this,tL,new Zq(Rq(this,aL))),Rq(this,tL).observe(e)))}),{threshold:cL,root:o})),Rq(this,Qq)&&!r.skipInitial&&this.callback(this.boundingClientRect),Rq(this,nL).observe(e)}};Qq=new WeakMap,eL=new WeakMap,tL=new WeakMap,rL=new WeakMap,nL=new WeakMap,oL=new WeakMap,iL=new WeakMap,aL=new WeakMap,sL=new WeakSet,lL=function(){Rq(this,iL)||(Iq(this,sL,uL).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,Rq(this,eL))||(this.callback(this.boundingClientRect),Aq(this,eL,this.boundingClientRect)))},uL=function(){if(Rq(this,oL)){const{top:e,left:t,width:r,height:n}=Hq(this.element);Rq(this,oL).style.overflow="hidden",Rq(this,oL).style.visibility="visible",Rq(this,oL).style.top=`${Math.floor(e)}px`,Rq(this,oL).style.left=`${Math.floor(t)}px`,Rq(this,oL).style.width=`${Math.floor(r)}px`,Rq(this,oL).style.height=`${Math.floor(n)}px`}};var pL,fL,hL,mL,gL=new WeakMap,bL=new WeakMap;function vL(e,t){let r=gL.get(e);if(!r){const t=new dL(e,(t=>{const r=gL.get(e);r&&r.callbacks.forEach((e=>e(t)))}),{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),gL.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(gL.delete(e),r.disconnect())}}var yL=class{constructor(e,t,r){this.callback=t,Pq(this,pL),Pq(this,fL,!1),Pq(this,hL),Pq(this,mL,Kq((e=>{if(!Rq(this,fL)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of Rq(this,hL))if(e.target.contains(t)){this.callback(Rq(this,pL).boundingClientRect);break}}),75));const n=function(e){const t=new Set;let r=Yq(e);for(;r;)t.add(r),r=Yq(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=vL(n,t);r.add(e)}return()=>r.forEach((e=>e()))}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!bL.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}),bL.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=bL.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),bL.delete(n))}):()=>{}}(e,Rq(this,mL));Aq(this,hL,n),Aq(this,pL,new dL(e,t,r)),this.disconnect=()=>{Rq(this,fL)||(Aq(this,fL,!0),o(),i(),Rq(this,pL).disconnect())}}};function xL(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function SL(e){try{xL(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function wL(e){return!(!Tq||!e)&&e===zq(e).scrollingElement}function CL(e){const t=Lq(e),r=wL(e)?function(e){const{documentElement:t}=zq(e),r=t.clientWidth,n=t.clientHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}(e):Dq(e),n=wL(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 EL(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=CL(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}}pL=new WeakMap,fL=new WeakMap,hL=new WeakMap,mL=new WeakMap;var RL=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)))}},PL=new RL((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),AL=new RL((e=>setTimeout(e,50))),IL=new Map,kL=IL.clear.bind(IL);function ML(e,t=!1){if(!t)return DL(e);let r=IL.get(e);return r||(r=DL(e),IL.set(e,r),AL.schedule(kL),r)}function DL(e){return Lq(e).getComputedStyle(e)}var TL={excludeElement:!0};function OL(e,t=TL){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(Nq(i)&&null!=i.scrollingElement&&!o.has(i.scrollingElement))return o.add(i.scrollingElement),o;if(!jq(i))return _q(i)?t(i.parentElement):o;if(o.has(i))return o;const a=ML(i,!0);if(n&&i===e||function(e,t=ML(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=ML(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 qL(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=Yq(e);for(;n;){if(n===t)return r;const e=Dq(n),{x:o,y:i}=LL(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=Yq(n)}return r}function LL(e,t=Dq(e)){const r=Math.round(t.width),n=Math.round(t.height);if(jq(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=ML(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function NL(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 jL(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=NL(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 _L=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(_L||{}),zL={x:.2,y:.2},FL={x:10,y:10};function HL(e,t,r,n=25,o=zL,i=FL){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=CL(e),f=qL(e),h=jL(ML(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new rT(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 $L(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!jq(e))return e.scrollIntoView();var n=function(e){const[t]=OL(e,{limit:1});return null!=t?t:null}(e);if(!jq(n))return;const o=ML(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 BL({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function WL(e,t=ML(e).translate,r=!0){if(r){const t=Mq(e,(e=>"translate"in e));if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=NL(e);if(t)return t}}}if(t){const e=NL(t);if(e)return e}return{x:0,y:0,z:0}}var VL=new RL((e=>setTimeout(e,0))),UL=new Map,GL=UL.clear.bind(UL);function YL(e,t){const r=function(e){const t=e.ownerDocument;let r=UL.get(t);if(r)return r;r=t.getAnimations(),UL.set(t,r),VL.schedule(GL);const n=r.filter((t=>kq(t.effect)&&t.effect.target===e));return UL.set(e,n),r}(e).filter((e=>{var r,n;if(kq(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 KL=class extends rT{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=qL(e),ignoreTransforms:s,getBoundingClientRect:l=Dq}=t,u=YL(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||$q())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=ML(e),b=jL(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=kq(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=jL({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 XL(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 JL=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(XL(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(XL(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(XL(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function ZL(e){return!!e&&(e instanceof Lq(e).Element||qq(e)&&e.nodeType===Node.ELEMENT_NODE)}function QL(e){if(!e)return!1;const{KeyboardEvent:t}=Lq(e.target);return e instanceof t}var eN={};function tN(e){const t=null==eN[e]?0:eN[e]+1;return eN[e]=t,`${e}-${t}`}var rN=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/tT.distance(t.shape.center,r),type:pO.PointerIntersection,priority:dO.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=tT.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:pO.ShapeIntersection,priority:dO.Normal}}return null})(e)},nN=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?rT.from(n.current.boundingRectangle).corners:void 0,a=rT.from(r.shape.boundingRectangle).corners.reduce(((e,t,r)=>{var n;return e+tT.distance(tT.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:pO.Collision,priority:dO.Normal}},oN=Object.create,iN=Object.defineProperty,aN=Object.defineProperties,sN=Object.getOwnPropertyDescriptor,lN=Object.getOwnPropertyDescriptors,uN=Object.getOwnPropertySymbols,cN=Object.prototype.hasOwnProperty,dN=Object.prototype.propertyIsEnumerable,pN=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),fN=e=>{throw TypeError(e)},hN=(e,t,r)=>t in e?iN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mN=(e,t)=>{for(var r in t||(t={}))cN.call(t,r)&&hN(e,r,t[r]);if(uN)for(var r of uN(t))dN.call(t,r)&&hN(e,r,t[r]);return e},gN=(e,t)=>aN(e,lN(t)),bN=(e,t)=>iN(e,"name",{value:t,configurable:!0}),vN=(e,t)=>{var r={};for(var n in e)cN.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&uN)for(var n of uN(e))t.indexOf(n)<0&&dN.call(e,n)&&(r[n]=e[n]);return r},yN=e=>{var t;return[,,,oN(null!=(t=null==e?void 0:e[pN("metadata")])?t:null)]},xN=["class","method","getter","setter","accessor","field","value","get","set"],SN=e=>void 0!==e&&"function"!=typeof e?fN("Function expected"):e,wN=(e,t,r,n,o)=>({kind:xN[e],name:t,metadata:n,addInitializer:e=>r._?fN("Already initialized"):o.push(SN(e||null))}),CN=(e,t)=>hN(t,pN("metadata"),e[3]),EN=(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},RN=(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=xN[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)&&sN(d<4?o:{get[r](){return IN(this,i)},set[r](e){return MN(this,i,e)}},r));d?f&&d<4&&bN(i,(d>2?"set ":d>1?"get ":"")+r):bN(o,r);for(var y=n.length-1;y>=0;y--)u=wN(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>AN(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?IN:DN)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>MN(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?SN(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?fN("Object expected"):(SN(a=s.get)&&(v.get=a),SN(a=s.set)&&(v.set=a),SN(a=s.init)&&g.unshift(a));return d||CN(e,o),v&&iN(o,r,v),f?4^d?i:v:o},PN=(e,t,r)=>t.has(e)||fN("Cannot "+r),AN=(e,t)=>Object(t)!==t?fN('Cannot use the "in" operator on this value'):e.has(t),IN=(e,t,r)=>(PN(e,t,"read from private field"),r?r.call(e):t.get(e)),kN=(e,t,r)=>t.has(e)?fN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),MN=(e,t,r,n)=>(PN(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),DN=(e,t,r)=>(PN(e,t,"access private method"),r),TN="button",ON="draggable",qN="dnd-kit-description",LN="dnd-kit-announcement",NN={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."},jN={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 _N(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var zN=["dragover","dragmove"],FN=class extends BT{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=qN,announcement:o=LN}={},announcements:i=jN,screenReaderInstructions:a=NN,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:tN(n),u=r?`${o}-${r}`:tN(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>PL.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,zN.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),_N(r)&&!$q()||r.hasAttribute("tabindex")||y.add((()=>r.setAttribute("tabindex","0"))),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add((()=>r.setAttribute("role",TN))),r.hasAttribute("aria-roledescription")||y.add((()=>r.setAttribute("aria-roledescription",ON))),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&&PL.schedule(x)})),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),b.forEach((e=>e()))}}};var HN="data-dnd-",$N=`${HN}dropping`,BN="--dnd-",WN=`${HN}dragging`,VN=`${HN}placeholder`,UN=[WN,VN,"popover","aria-pressed","aria-grabbing"],GN=["view-transition-name"],YN=`\n :root [${WN}] {\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(${BN}top, 0px) !important;\n left: var(${BN}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${BN}width, auto);\n max-width: var(${BN}width, auto);\n height: var(${BN}height, auto);\n max-height: var(${BN}height, auto);\n transition: var(${BN}transition) !important;\n }\n\n :root [${VN}] {\n transition: none;\n }\n\n :root [${VN}='hidden'] {\n visibility: hidden;\n }\n\n [${WN}] * {\n pointer-events: none !important;\n }\n\n [${WN}]:not([${$N}]) {\n translate: var(${BN}translate) !important;\n }\n\n [${WN}][style*='${BN}scale'] {\n scale: var(${BN}scale) !important;\n transform-origin: var(${BN}transform-origin) !important;\n }\n\n @layer {\n :where([${WN}][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 [${WN}]::backdrop, [${HN}overlay]:not([${WN}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function KN(e,t="hidden"){return yM((()=>{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=`${HN}${tN("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(Bq(e)&&Bq(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),Wq(e)&&Wq(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),Uq.set(a,i),r.push((()=>{Uq.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(VN,t)}(a,t),a.remove=()=>{i.forEach((e=>e())),s.call(a)},a}))}function XN(e,t){return e===t||Yq(e)===Yq(t)}function JN(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&ZL(t)&&t.hasAttribute("popover")&&requestAnimationFrame((()=>SL(t)))}function ZN(e){return"TR"===e.tagName}var QN,ej,tj,rj,nj,oj,ij,aj=new Map,sj=class extends(ej=BT,QN=[ID],ej){constructor(e,t){super(e,t),kN(this,nj),kN(this,rj,EN(tj,8,this)),EN(tj,11,this),this.state={initial:{},current:{}},this.registerEffect(DN(this,nj,ij)),this.registerEffect(DN(this,nj,oj))}destroy(){super.destroy();for(const[e,t]of aj.entries())t.instances.has(this)&&(t.instances.delete(this),0===t.instances.size&&(t.cleanup(),aj.delete(e)))}};tj=yN(ej),rj=new WeakMap,nj=new WeakSet,oj=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=qL(f),m=qL(c),g=!XN(c,f),b=new KL(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 JL(f),{transition:A,translate:I,boxSizing:k,paddingBlockStart:M,paddingBlockEnd:D,paddingInlineStart:T,paddingInlineEnd:O,borderInlineStartWidth:q,borderInlineEndWidth:L,borderBlockStartWidth:N,borderBlockEndWidth:j}=ML(c),_="clone"===d,z="content-box"===k,F=z?parseInt(T)+parseInt(O)+parseInt(q)+parseInt(L):0,H=z?parseInt(M)+parseInt(D)+parseInt(N)+parseInt(j):0,$="move"===d||this.overlay?null:KN(l,_?"clone":"hidden"),B=yM((()=>QL(o.dragOperation.activatorEvent)));if("none"!==I){const e=NL(I);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=yM((()=>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(WN,"true");const ee=yM((()=>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}%`},BN),$&&(c.insertAdjacentElement("afterend",$),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}xL(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),SL(f),f.addEventListener("beforetoggle",JN));const oe=new ResizeObserver((()=>{if(!$)return;const e=new KL($,{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},BN),null==x||x.takeRecords(),ZN(c)&&ZN($)){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 KL(f)})),ie=new KL(f);yM((()=>a.shape=ie));const ae=Lq(f),se=e=>{this.manager.actions.stop({event:e})};B&&ae.addEventListener("resize",se),"idle"===yM((()=>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-")||UN.includes(e))continue;const n=c.getAttribute(e);if("style"===e){if(XL(c)&&XL($)){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(GN.includes(t)||t.startsWith(BN))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 SL(f);if(e.contains($)&&$.previousElementSibling!==c)return $.insertAdjacentElement("beforebegin",c),void SL(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;jq(r)&&r.focus()},ce=()=>{null==x||x.disconnect(),null==S||S.disconnect(),oe.disconnect(),ae.removeEventListener("resize",se),xL(f)&&(f.removeEventListener("beforetoggle",JN),f.removeAttribute("popover")),f.removeAttribute(WN),P.reset(),l.status="idle";const e=null!=n.current.translate;$&&(e||$.parentElement!==f.parentElement)&&f.isConnected&&$.replaceWith(f),null==$||$.remove()},de=DD((()=>{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=yM((()=>a.modifiers)),l=yM((()=>{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`},BN),null==x||x.takeRecords(),l&&l!==ie&&i&&!s.length){const e=tT.delta(o,i);a.shape=rT.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new KL(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;{SL(f);const[,o]=null!=(r=Mq(f,(e=>"translate"in e)))?r:[];null==o||o.pause();const i=null!=$?$:c,a={frameTransform:XN(f,i)?null:void 0},s=new KL(f,a),u=null!=(n=NL(ML(f).translate))?n:e,d=new KL(i,a),p=rT.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},BN),f.setAttribute($N,""),null==x||x.takeRecords(),BL({element:f,keyframes:gN(mN(mN({},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($N),null==o||o.finish(),ce(),requestAnimationFrame(ue)}))}};o.renderer.rendering.then(r)}}));return()=>{ce(),de()}},ij=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=zq(null!=(t=null==o?void 0:o.element)?t:null),n=zq(null!=(r=null==i?void 0:i.element)?r:null),s=new Set([e,n]);for(const e of s){let t=aj.get(e);if(!t){const r=document.createElement("style");r.textContent=YN,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},aj.set(e,t)}t.instances.add(this)}}},RN(tj,4,"overlay",QN,sj,rj),CN(tj,sj),sj.configure=HT(sj);var lj,uj,cj,dj,pj,fj,hj,mj=sj,gj=!0;cj=[ID],dj=_L.Forward,lj=[ID],uj=_L.Reverse;var bj=class{constructor(){kN(this,fj,EN(pj,8,this,gj)),EN(pj,11,this),kN(this,hj,EN(pj,12,this,gj)),EN(pj,15,this)}isLocked(e){return e!==_L.Idle&&(null==e?this[_L.Forward]===gj&&this[_L.Reverse]===gj:this[e]===gj)}unlock(e){e!==_L.Idle&&(this[e]=false)}};pj=yN(null),fj=new WeakMap,hj=new WeakMap,RN(pj,4,dj,cj,bj,fj),RN(pj,4,uj,lj,bj,hj),CN(pj,bj);var vj,yj,xj,Sj,wj,Cj,Ej=[_L.Forward,_L.Reverse],Rj=class{constructor(){this.x=new bj,this.y=new bj}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},Pj=class extends BT{constructor(e){super(e);const t=PM(new Rj);let r=null;this.signal=t,NM((()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new Rj);const{delta:o}=e.dragOperation.position;if(r){const e={x:Aj(o.x,r.x),y:Aj(o.y,r.y)},n=t.peek();bM((()=>{for(const t of dT)for(const r of Ej)e[t]===r&&n[t].unlock(r);t.value=n}))}r=o}))}get current(){return this.signal.peek()}};function Aj(e,t){return Math.sign(e-t)}var Ij=class extends(yj=VT,vj=[ID],yj){constructor(e){super(e),kN(this,Sj,EN(xj,8,this,!1)),EN(xj,11,this),kN(this,wj),kN(this,Cj,(()=>{if(!IN(this,wj))return;const{element:e,by:t}=IN(this,wj);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 MN(this,wj,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:kj(n.x),y:kj(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=EL(e,n);if(r.x||r.y){const{speed:r,direction:s}=HL(e,o,i);if(a)for(const e of dT)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=IN(this,wj))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return MN(this,wj,{element:e,by:{x:a,y:l}}),PL.schedule(IN(this,Cj)),!0}}}}}return MN(this,wj,void 0),!1};let t=null,r=null;const n=PD((()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=Vq(zq(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t})),o=PD((()=>{const t=n.value,{documentElement:o}=zq(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=OL(n,{excludeElement:!1});return r=e,e}}if(t){const e=OL(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null}),AD);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new Pj(e),this.destroy=e.monitor.addEventListener("dragmove",(t=>{!this.disabled&&!t.defaultPrevented&&QL(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()}))}};function kj(e){return e>0?_L.Forward:e<0?_L.Reverse:_L.Idle}xj=yN(yj),Sj=new WeakMap,wj=new WeakMap,Cj=new WeakMap,RN(xj,4,"autoScrolling",vj,Ij,Sj),CN(xj,Ij);var Mj,Dj=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()})),Tj=class extends BT{constructor(e,t){super(e);const r=e.registry.plugins.get(Ij);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=NM((()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval((()=>Dj.schedule(r.scroll)),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}}))}},Oj={capture:!0,passive:!0},qj=class extends VT{constructor(e){super(e),kN(this,Mj),this.handleScroll=()=>{null==IN(this,Mj)&&MN(this,Mj,setTimeout((()=>{this.manager.collisionObserver.forceUpdate(!1),MN(this,Mj,void 0)}),50))};const{dragOperation:t}=this.manager;this.destroy=NM((()=>{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,Oj),()=>{o.removeEventListener("scroll",this.handleScroll,Oj)}}}))}};Mj=new WeakMap;function Lj(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var Nj,jj=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},shouldActivate(e){var t;const{event:r,source:n}=e,o=null!=(t=n.handle)?t:n.element;return r.target===o}}),_j=class extends bq{constructor(e,t){super(e),this.manager=e,this.options=t,kN(this,Nj,[]),this.listeners=new Gq,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!ZL(e.target))return;if(t.disabled)return;const{keyboardCodes:n=jj.keyboardCodes,shouldActivate:o=jj.shouldActivate}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&o({event:e,source:t,manager:this.manager})&&this.handleStart(e,t,r)}}bind(e,t=this.options){const r=NM((()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{QL(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(),$L(n);const{center:o}=new KL(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=zq(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];IN(this,Nj).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=jj.keyboardCodes}=null!=r?r:{};if(Fj(e,[...n.end,...n.cancel])){e.preventDefault();const t=Fj(e,n.cancel);this.handleEnd(e,t)}else Fj(e,n.up)?this.handleMove("up",e):Fj(e,n.down)&&this.handleMove("down",e),Fj(e,n.left)?this.handleMove("left",e):Fj(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:jj.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(Tj);!1===(null==e?void 0:e.disabled)&&(e.disable(),IN(this,Nj).push((()=>{e.enable()})))}cleanup(){IN(this,Nj).forEach((e=>e())),MN(this,Nj,[])}destroy(){this.cleanup(),this.listeners.clear()}};Nj=new WeakMap,_j.configure=HT(_j),_j.defaults=jj;var zj=_j;function Fj(e,t){return t.includes(e.code)}var Hj,$j,Bj=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!ZL(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?{delay:{value:250,tolerance:5}}:function(e){if(!ZL(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?{delay:{value:200,tolerance:0}}:{delay:{value:200,tolerance:10},distance:{value:5}}}}),Wj=class extends bq{constructor(e,t){super(e),this.manager=e,this.options=t,kN(this,Hj,new Set),kN(this,$j),this.listeners=new Gq,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=Bj.activationConstraints}=null!=(r=this.options)?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=NM((()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=Lq(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&&(Kj(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||!ZL(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{target:n}=e,o=jq(n)&&n.draggable&&"true"===n.getAttribute("draggable"),i=qL(t.element);this.initialCoordinates={x:e.clientX*i.scaleX+i.x,y:e.clientY*i.scaleY+i.y};const a=this.activationConstraints(e,t);if(e.sensor=this,(null==a?void 0:a.delay)||(null==a?void 0:a.distance)){const{delay:r}=a;if(r){const n=setTimeout((()=>this.handleStart(t,e)),r.value);MN(this,$j,(()=>{clearTimeout(n),MN(this,$j,void 0)}))}}else this.handleStart(t,e);const s=zq(e.target),l=this.listeners.bind(s,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"dragstart",listener:o?this.handleCancel:Uj,options:{capture:!0}}]);IN(this,Hj).add((()=>{var e;l(),null==(e=IN(this,$j))||e.call(this),this.initialCoordinates=void 0}))}handlePointerMove(e,t){const r={x:e.clientX,y:e.clientY},n=qL(t.element);if(r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,this.manager.dragOperation.status.dragging)return e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,void PL.schedule(this.handleMove);if(!this.initialCoordinates)return;const o={x:r.x-this.initialCoordinates.x,y:r.y-this.initialCoordinates.y},i=this.activationConstraints(e,t),{distance:a,delay:s}=null!=i?i:{};if(a){if(null!=a.tolerance&&iT(o,a.tolerance))return this.handleCancel(e);if(iT(o,a.value))return this.handleStart(t,e)}return s&&iT(o,s.tolerance)?this.handleCancel(e):void 0}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){var r;const{manager:n,initialCoordinates:o}=this;if(null==(r=IN(this,$j))||r.call(this),!o||!n.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(n.actions.start({coordinates:o,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const i=zq(t.target),a=i.body;a.setPointerCapture(t.pointerId);const s=this.listeners.bind(i,[{type:"touchmove",listener:Uj,options:{passive:!1}},{type:"click",listener:Uj},{type:"contextmenu",listener:Uj},{type:"keydown",listener:this.handleKeyDown},{type:"lostpointercapture",listener:e=>{e.target===a&&this.handlePointerUp(e)}}]);IN(this,Hj).add(s)}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},IN(this,Hj).forEach((e=>e())),IN(this,Hj).clear()}destroy(){this.cleanup(),this.listeners.clear()}};Hj=new WeakMap,$j=new WeakMap,Wj.configure=HT(Wj),Wj.defaults=Bj;var Vj=Wj;function Uj(e){e.preventDefault()}function Gj(){}var Yj=new WeakSet;function Kj(e){e&&!Yj.has(e)&&(e.addEventListener("touchmove",Gj,{capture:!1,passive:!1}),Yj.add(e))}var Xj,Jj,Zj,Qj,e_,t_,r_,n_,o_,i_,a_,s_,l_,u_,c_,d_,p_,f_,h_={modifiers:[],plugins:[FN,Tj,class extends BT{constructor(e,t){super(e,t),this.manager=e;const r=PD((()=>{var e;return zq(null==(e=this.manager.dragOperation.source)?void 0:e.element)}));this.destroy=NM((()=>{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()}}))}},mj,class extends BT{constructor(e,t){super(e,t),this.manager=e,this.destroy=NM((()=>{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),Lj(),document.addEventListener("selectionchange",Lj,{capture:!0}),()=>{document.removeEventListener("selectionchange",Lj,{capture:!0}),e.remove()}}}))}}],sensors:[Vj,zj]},m_=class extends wq{constructor(e={}){const{plugins:t=h_.plugins,sensors:r=h_.sensors,modifiers:n=[]}=e;super(gN(mN({},e),{plugins:[qj,Ij,...t],sensors:r,modifiers:n}))}},g_=class extends(Qj=XO,Zj=[ID],Jj=[ID],Xj=[ID],Qj){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=vN(r,["element","effects","handle","feedback"]);super(mN({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map($T))?t:[...r.sensors]).map((e=>{const t=e instanceof bq?e:r.registry.register(e.plugin),n=e instanceof bq?void 0:e.options;return t.bind(this,n)}));return function(){n.forEach((e=>e()))}}]},s),t),kN(this,t_,EN(e_,8,this)),EN(e_,11,this),kN(this,r_,EN(e_,12,this)),EN(e_,15,this),kN(this,n_,EN(e_,16,this)),EN(e_,19,this),this.element=n,this.handle=i,this.feedback=a}};e_=yN(Qj),t_=new WeakMap,r_=new WeakMap,n_=new WeakMap,RN(e_,4,"handle",Zj,g_,t_),RN(e_,4,"element",Jj,g_,r_),RN(e_,4,"feedback",Xj,g_,n_),CN(e_,g_);var b_=class extends(a_=JO,i_=[ID],o_=[ID],a_){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=vN(r,["element","effects"]);const{collisionDetector:a=rN}=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 KL(r),o=yM((()=>this.shape));return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=PM(!1);super(gN(mN({},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 yL(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),kN(this,p_),kN(this,l_,EN(s_,8,this)),EN(s_,11,this),kN(this,f_,EN(s_,12,this)),EN(s_,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){MN(this,p_,e,d_)}get element(){var e;return null!=(e=this.proxy)?e:IN(this,p_,c_)}};function v_(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}s_=yN(a_),l_=new WeakMap,p_=new WeakSet,f_=new WeakMap,u_=RN(s_,20,"#element",i_,p_,l_),c_=u_.get,d_=u_.set,RN(s_,4,"proxy",o_,b_,f_),CN(s_,b_);var y_="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?L:E;function x_(){const e=w(0)[1];return T((()=>{e((e=>e+1))}),[e])}function S_(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=x_();return y_((()=>NM((()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?H(o):o()}}))),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(C((()=>PD((()=>n.current()))),t),r)}function w_(e,t){const r=D(new Map),n=x_();return y_((()=>{if(e)return NM((()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=yM((()=>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?H(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 C_(e,t){e()}function E_(e){const t=D(e);return y_((()=>{t.current=e}),[e]),t}function R_(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 P_(e,t){const r=D(v_(e));y_((()=>{const n=v_(e);n!==r.current&&(r.current=n,t(n))}))}var A_=Object.getOwnPropertySymbols,I_=Object.prototype.hasOwnProperty,k_=Object.prototype.propertyIsEnumerable,M_=new m_,D_=M(M_),T_=q(O((({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}))),N((()=>{e(),n((e=>e+1))}))}})),[]);return y_((()=>{var e;null==(e=i.current)||e.call(i),o.current=null}),[e,r]),j(t,(()=>a)),null}))),O_=[void 0,AD];function q_(e){var t,r=e,{children:n,onCollision:o,onBeforeDragStart:i,onDragStart:a,onDragMove:s,onDragOver:l,onDragEnd:u}=r,c=((e,t)=>{var r={};for(var n in e)I_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&A_)for(var n of A_(e))t.indexOf(n)<0&&k_.call(e,n)&&(r[n]=e[n]);return r})(r,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const d=D(null),[p,f]=w(null!=(t=c.manager)?t:null),{plugins:h,modifiers:m,sensors:g}=c,b=E_(i),v=E_(a),y=E_(l),x=E_(s),S=E_(u),C=E_(o);return E((()=>{var e;if(!d.current)throw new Error("Renderer not found");const{renderer:t,trackRendering:r}=d.current,n=null!=(e=c.manager)?e:new m_(c);return n.renderer=t,n.monitor.addEventListener("beforedragstart",(e=>{const t=b.current;t&&r((()=>t(e,n)))})),n.monitor.addEventListener("dragstart",(e=>{var t;return null==(t=v.current)?void 0:t.call(v,e,n)})),n.monitor.addEventListener("dragover",(e=>{const t=y.current;t&&r((()=>t(e,n)))})),n.monitor.addEventListener("dragmove",(e=>{const t=x.current;t&&r((()=>t(e,n)))})),n.monitor.addEventListener("dragend",(e=>{const t=S.current;t&&r((()=>t(e,n)))})),n.monitor.addEventListener("collision",(e=>{var t;return null==(t=C.current)?void 0:t.call(C,e,n)})),N((()=>f(n))),n.destroy}),[c.manager]),R_(h,(()=>p&&(p.plugins=null!=h?h:h_.plugins)),...O_),R_(g,(()=>p&&(p.sensors=null!=g?g:h_.sensors)),...O_),R_(m,(()=>p&&(p.modifiers=null!=m?m:h_.modifiers)),...O_),er.jsxs(D_.Provider,{value:p,children:[er.jsx(T_,{ref:d,children:n}),n]})}function L_(){return S(D_)}function N_({children:e,className:t,style:r,tag:n,disabled:o}){var i;const a=D(null),s=L_(),l=null!=(i=S_((()=>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 mj));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?j_:e[t]});return new Proxy(s,{get:(t,r)=>"registry"===r?e:t[r]})}),[s]);return er.jsx(D_.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 er.jsx(__,{source:l,children:e});return e}())})}function j_(){return()=>{}}function __({children:e,source:t}){return e(w_(t))}var z_,F_,H_,$_,B_,W_=Object.create,V_=Object.defineProperty,U_=Object.getOwnPropertyDescriptor,G_=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Y_=e=>{throw TypeError(e)},K_=["class","method","getter","setter","accessor","field","value","get","set"],X_=e=>void 0!==e&&"function"!=typeof e?Y_("Function expected"):e,J_=(e,t,r,n,o)=>({kind:K_[e],name:t,metadata:n,addInitializer:e=>r._?Y_("Already initialized"):o.push(X_(e||null))}),Z_=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=K_[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,U_(o,r)),h=n.length-1;h>=0;h--)(l=J_(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,X_(a)&&(f[d]=a);return f&&V_(o,r,f),o},Q_=(e,t,r)=>t.has(e)||Y_("Cannot "+r),ez=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)}},tz=class extends(H_=OD,F_=[kD],z_=[kD],H_){constructor(e){var t,r,n;super(ez.from(e),((e,t)=>ez.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)})(B_,5,this),t=this,n=0,(r=$_).has(t)?Y_("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 ez.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=ez.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(Q_(a=this,s=$_,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);bM((()=>{((e,t,r)=>{Q_(e,t,"write to private field"),t.set(e,r)})(this,$_,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(ez.from(e)),this.velocity={x:0,y:0}}};B_=(e=>{var t;return[,,,W_(null!=(t=null==e?void 0:e[G_("metadata")])?t:null)]})(H_),$_=new WeakMap,Z_(B_,2,"delta",F_,tz),Z_(B_,2,"direction",z_,tz),((e,t)=>{((e,t,r)=>{t in e?V_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,G_("metadata"),e[3])})(B_,tz);var rz=(e=>(e.Horizontal="x",e.Vertical="y",e))(rz||{});function nz(e){const t=L_();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(rz);const oz=()=>{const[e,t]=w(!1);return nz({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?er.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},iz=()=>{const{flags:e}=HI(jI,(e=>e.env)),t=HI(jI,(e=>e.baseProps.layout));return!e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")||void 0===t.accessibleHeader||t.accessibleHeader},az=(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}),sz=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),lz=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),uz=e=>e.atTop?2:1,cz=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],dz=e=>e?.setAttribute("tabIndex","0"),pz=e=>e?.setAttribute("tabIndex","-1"),fz=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(pz)},hz=e=>{e?.focus(),dz(e)},mz=e=>{setTimeout((()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${ZC}`);hz(t)}),0)},gz=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{fz(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 JC.Down:u<s&&u++;break;case JC.Up:u>a&&u--;break;case JC.Right:if(i)break;[u,c]="rtl"===n?sz({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):lz({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case JC.Left:if(i)break;[u,c]="rtl"===n?lz({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):sz({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case JC.Home:(aI(e)||i)&&(u=a),i||(c=0);break;case JC.End:(aI(e)||i)&&(u=s),i||(c=l);break;case JC.PageDown:u=Math.min(s,u+10);break;case JC.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=cz(t,a);return hz(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}},bz=(e,t,r,n)=>{fz(t),r(e),n.enabled&&!n.active?n.focus?.():hz(cz(t,e))},vz=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${YC}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${RA.First}`),r=e.querySelector(`.${RA.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},yz=O(((e,t)=>er.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:er.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"})}))),xz=ic(qh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...FA,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}}))),Sz=ic("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:jA,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),wz=parseInt(jA,10)/2,Cz=ic("div")({position:"absolute",bottom:-wz,left:`calc(50% - ${wz}px)`}),Ez={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},Rz=ic(Kd)({height:"100%"}),Pz=ic("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?{...Ez,whiteSpace:"nowrap",display:r?"block":void 0}:{...Ez,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"})),Az=ic("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),Iz="cell-text",kz=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=HI(jI,(e=>e.baseProps));return o?er.jsx(Pz,{"data-testid":Iz,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):er.jsx(Pz,{"data-testid":Iz,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},Mz=({column:e,isInteractionEnabled:t,open:r,setOpen:n,isPagination:o,forwardRef:i})=>{const{translator:a,changeSortOrder:s,interactions:l,embed:u,app:c,styleService:d,layout:p,direction:f}=HI(jI,(e=>e.baseProps)),h=HI(jI,(t=>t.columnWidths[e.pageColIdx])),m=HI(jI,(e=>e.baseProps.model)),g=D(null),b=D(null),v=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=_C({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:_A});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:d,column:e,columnWidth:h}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?er.jsx(Sk,{height:jA,"data-testid":"head-cell-sort-ascending-icon"}):er.jsx(Ek,{height:jA,"data-testid":"head-cell-sort-descending-icon"}),a=r?er.jsx(Sz,{align:t,dir:o,children:i}):void 0,s=n?er.jsx(QA,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:er.jsx(yz,{height:jA,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(e,v,f);return er.jsxs(ZA,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:VA(e,o,f),children:[S,er.jsxs(JA,{className:"sn-table-head-label",textAlign:e.headTextAlign,direction:f,isPagination:o,children:[y,er.jsx(kz,{forwardRef:i,isPagination:o,isHeadCell:!0,children:e.label}),x]}),t?er.jsxs(er.Fragment,{children:[er.jsx(_k,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:a,anchorRef:g,menuAvailabilityFlags:{[Lk.Sorting]:!0,[Lk.Searching]:!0,[Lk.Selections]:!0,[Lk.AdjusterHeaderSize]:!0},open:r,setOpen:n,interactions:l,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),s(e,r))},searchRelatedArgs:{embed:u,listboxRef:b},selectionRelatedArgs:{app:c,qStateName:p.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:mz},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:f,isPagination:o,isAccessibleHeader:!0}),er.jsx(XA,{ref:b,direction:f,isPagination:o}),er.jsx(XA,{ref:g,direction:f})]}):null]})},Dz=O(((e,t)=>er.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:er.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"})}))),Tz=(e,t)=>e.isCyclic&&t,Oz=({column:e})=>{const{direction:t,model:r,styleService:n}=HI(jI,(e=>e.baseProps)),o=x.useRef(null),[i,a]=x.useState(!1),s=YI({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return er.jsxs(er.Fragment,{children:[er.jsx(tI,{hoverBackground:n.headerMenuHoverBackground,activeBackground:n.headerMenuActiveBackground,isActive:i,onClick:e=>{e.stopPropagation(),a(!0)},children:er.jsx(Dz,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),er.jsx(mk,{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:Rk,isActive:e.groupDimensionPos===r})))}]],anchorEl:o.current,direction:t,isPagination:!1})]})},qz=e=>e.isLocked,Lz=({column:e})=>{const t=HI(jI,(e=>e.baseProps.app)),r=HI(jI,(e=>e.baseProps.layout.qStateName)),n=HI(jI,(e=>e.baseProps.styleService));return er.jsx(tI,{hoverBackground:n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=bk(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:er.jsx(yz,{height:16,"data-testid":"head-cell-lock-icon"})})},Nz=({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}=HI(jI,(e=>e.baseProps)),p=HI(jI,(e=>e.baseProps.model)),f=x.useRef(null),h=x.useRef(null);return er.jsxs(tI,{hoverBackground:d.headerMenuHoverBackground,activeBackground:d.headerMenuActiveBackground,isActive:t,order:e.isDim?void 0:-1,children:[er.jsx(_k,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:o,anchorRef:f,menuAvailabilityFlags:{[Lk.Sorting]:!0,[Lk.Searching]:!0,[Lk.Selections]:!0,[Lk.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:mz},shouldShowMenuIcon:!0,model:p,direction:l,isPagination:n,isAccessibleHeader:!1,iconSize:16}),er.jsx(XA,{ref:h,direction:l,isPagination:n}),er.jsx(XA,{ref:f,direction:l})]})},jz=e=>e.at(0)?.contentBoxSize.at(0)?.blockSize,_z=(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])},zz=ic(Kd)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),Fz=({children:e})=>{const t=x.useRef(null),[r,n]=w((()=>new Set(e.filter((({props:e})=>void 0!==e.prio&&e.children)).map((({key:e})=>e))))),o=C((()=>Array.from(e).sort(((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)))),[e]),i=T((e=>{const t=new Set,r=e.at(0)?.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach((e=>{if(e.props.ignore||!e.props.children)return;const n=e.props.minWidth+1;void 0===e.props.prio||i+n<=r?i+=n:t.add(e.key)})),n((e=>e.size===t.size&&[...e].every((e=>t.has(e)))?e:t))}),[o]);return _z(t,i),er.jsx(zz,{ref:t,"data-testid":"responsive-container",children:e.filter((e=>!r.has(e.key)))})};Fz.Item=({children:e})=>e;const Hz=(e,t)=>!e.isLocked&&e.isDim&&t,$z=({column:e,open:t,setOpen:r})=>{const{embed:n,app:o,direction:i,layout:a,styleService:s}=HI(jI,(e=>e.baseProps)),l=x.useRef(null),u=T((()=>{r(!1)}),[r]),c=gk({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:n,listboxRef:l},selectionRelatedArgs:{qStateName:a.qStateName},direction:i,onPopoverClose:u});return er.jsx(tI,{hoverBackground:s.headerMenuHoverBackground,activeBackground:s.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),c(),r(!0)},children:er.jsx(kk,{ref:l,height:16,"data-testid":"head-cell-search-icon"})})},Bz=O(((e,t)=>er.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:er.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"})}))),Wz=O(((e,t)=>er.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:er.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"})}))),Vz=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?er.jsx(Wz,{height:jA,"data-testid":"head-cell-sort-ascending-icon"}):er.jsx(Bz,{height:jA,"data-testid":"head-cell-sort-descending-icon"});return r?er.jsx(Cz,{children:n}):void 0},Uz=0,Gz=1,Yz=2,Kz=3,Xz=({column:e,open:t,setOpen:r,isPagination:n,forwardRef:o})=>{const{styleService:i}=HI(jI,(e=>e.baseProps)),a=(()=>{const e=HI(jI,(e=>e.baseProps.interactions.active)),t=HI(jI,(e=>e.baseProps.selectionsAPI?.isModal()));return!!e&&!t})(),{measureText:s}=_C(i.header),[l,u]=x.useState(!1);return er.jsxs(Fz,{children:[er.jsx(Fz.Item,{prio:Yz,minWidth:KA,children:qz(e)?er.jsx(Lz,{column:e}):null},"Lock"),er.jsx(Fz.Item,{prio:Gz,minWidth:KA,children:Tz(e,a)?er.jsx(Oz,{column:e}):null},"Cyclic"),er.jsx(Fz.Item,{ignore:!0,children:er.jsx(Vz,{column:e})},"Sort"),er.jsx(Fz.Item,{minWidth:s(e.label)+8,children:er.jsx(eI,{justifyContent:e.headTextAlign,children:er.jsx(kz,{forwardRef:o,isPagination:n,isHeadCell:!0,children:e.label})})},"Text"),er.jsx(Fz.Item,{prio:Uz,minWidth:KA,children:l||Hz(e,a)?er.jsx($z,{open:l,setOpen:u,column:e}):null},"Search"),er.jsx(Fz.Item,{prio:Kz,minWidth:KA,children:a?er.jsx(Nz,{column:e,open:t,setOpen:r,isPagination:n}):null},"Menu")]})},Jz=ic("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e})((({background:e,applicableStyle:t})=>({...t,background:e}))),Zz=()=>{},Qz=({column:e,isPagination:t})=>{const{styleService:r,direction:n}=HI(jI,(e=>e.baseProps)),o=HI(jI,(e=>e.showRightBorder)),i=HI(jI,(e=>e.tableData.totalsPosition)),a=!1,s=iz()?Mz:Xz;return er.jsx(Jz,{className:"sn-table-cell",applicableStyle:{...r.header,...az(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:GA(n,a,o),borderLeftWidth:YA(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:er.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:Zz})})},eF=({isPagination:e})=>{const{columns:t}=HI(jI,(e=>e.tableData)),[r,n]=w();nz({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find((e=>e.id===r)):void 0,i=e?"calc(100% + 9px)":"100%";return o?er.jsx(N_,{children:er.jsx("div",{style:{background:"white",height:i,display:"flex",position:"relative"},children:er.jsx(Qz,{column:o,isPagination:e})})}):null},tF=h_.sensors.filter((e=>e!==zj)),rF=h_.plugins.filter((e=>e!==FN)),nF=({children:e})=>{const{model:t}=HI(jI,(e=>e.baseProps)),{columns:r}=HI(jI,(e=>e.tableData));return er.jsx(q_,{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:tF,plugins:rF,children:e})};function oF(e,t){const r=D(!1);E((()=>{r.current?e():r.current=!0}),t)}const iF=()=>{const{downloadService:e}=HI(jI,(e=>e.baseProps));E((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))},aF=(e,t,r)=>{const{rootElement:n,keyboard:o}=HI(jI,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:s,totalsPosition:l}=HI(jI,(e=>e.tableData)),u=HI(jI,(e=>e.focusedCellCoord)),c=HI(jI,(e=>e.setFocusedCellCoord)),d=HI(jI,(e=>e.baseProps.selectionsAPI?.isModal()));oF((()=>{const r=((e,t,r=!1)=>{const n=[uz(t),e[1]];return r?n:PA})(u,l,d);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(fz(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=cz(t,e);r.current?(hz(s),r.current=!1):dz(s),n&&(a({keys:[s?.textContent??""]}),iI(a,s,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[s.length,a,i,r])},sF=(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])},lF=e=>{IC(e),aI(e)&&aE(e.currentTarget)},uF=e=>{cI(e.evt)&&(IC(e.evt),gz(e))},cF=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!cI(t))return;IC(t);const i=((e,t)=>[e.pageRowIdx+uz(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?uz(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=gz({...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:CA.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):iI(o,a,i)})({...e,nextCell:s})},dF=e=>{const{evt:t}=e;sI(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{IC(e);const a=Math.ceil(t/r)-1;e.key===JC.Right&&n<a?(o(),i(n+1)):e.key===JC.Left&&n>0&&(o(),i(n-1))})(e):t.key===JC.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(IC(e),t.blur?.(!0))})(e):lI(t.key)&&IC(t)},pF=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(wA.Disabled))return void IC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case JC.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{IC(e),t.isSelectable&&r&&n({type:CA.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case JC.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{IC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case JC.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(IC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case JC.C:lF(t);break;case JC.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(IC(e),AC(e.currentTarget,t,e.shiftKey))})(n);break;default:cF(n)}},fF=e=>{const[t,r]=w(0),[n,o]=w(0),i=HI(jI,(e=>e.isAdjustingWidth));return _z(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}},hF=ic("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),mF=ic(_h,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),gF=ic(wh,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),bF=()=>er.jsxs(er.Fragment,{children:[er.jsx(hF,{className:RA.First,"data-testid":RA.First,"aria-live":"polite","aria-atomic":"true"}),er.jsx(hF,{className:RA.Second,"data-testid":RA.Second,"aria-live":"polite","aria-atomic":"true"})]}),vF=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])},yF=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);r?.(t)}))})),xF=()=>vF(yF),SF=({selectionsAPI:e,selectionDispatch:t,updateShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{E((()=>{const i=()=>{t({type:CA.Reset})},a=()=>{t({type:CA.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])},wF=e=>{e.stopPropagation()},CF=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:wF,color:SC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),EF=({href:e,text:t,interactions:r,color:n})=>er.jsx(Gp,{...CF({href:e,text:t,interactions:r,color:n}),children:t}),RF=window.requestIdleCallback??(e=>setTimeout((()=>{e({})}),0)),PF=window.cancelIdleCallback??(e=>{clearTimeout(e)}),AF="qDimensionInfo/0",IF="qMeasureInfo/0",kF="x",MF="y",DF=e=>({key:"bars",type:"box",data:{extract:{field:AF,props:{start:0,end:{field:IF}}}},settings:{major:{scale:kF},minor:{scale:MF},box:{maxWidthPx:8,fill:{fn:e}}}}),TF=e=>({key:"p",type:"point",data:{extract:{field:AF,props:{y:{field:IF}}}},settings:{x:{scale:kF},y:{scale:MF},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),OF=({qNum:e})=>void 0===e?0:Math.sign(e),qF=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=RC(e,t?.negative,r),a=RC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:AF,props:{start:0,end:{field:IF,value:OF}}}},settings:{major:{scale:kF},minor:{scale:MF},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}}}}},LF=(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=RC(e,t?.main,o),l=RC(e,t?.max,s),u=RC(e,t?.min,s),c=RC(e,t?.first,s),d=RC(e,t?.last,s);return e=>{const t=MF in e.datum?MF:"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[DF(a)];case"dots":return[TF(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:AF,props:{v:{field:IF}}}},settings:{coordinates:{major:{scale:kF},minor:{scale:MF,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(RC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,TF(a)]:[t]}case"posNeg":return[qF(e,n)];default:return[]}},NF=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"}),jF=(e,t,r,n)=>({y:{data:{field:IF},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:AF}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),_F=B();_F.use($),_F.renderer.prio(["canvas"]);const zF={resolve:()=>{},promise:{}},FF=({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?At():zF);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=RF((()=>{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 _F.chart({element:e,data:{type:"q",key:"qHyperCube",data:NF(s)},settings:{scales:jF(a,l,u,i),components:LF(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&&PF(r.current),r.current=null,l()}),[r,l])}},HF=e=>{const t=D(null),r=D(!1);return T((n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(PF(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=RF((()=>{e.current?.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},$F=({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}=FF({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=HF(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},BF=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=$F({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return er.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},WF=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}`},VF=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},UF=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{direction:o}=HI(jI,(e=>e.baseProps)),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=er.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:VF(s),objectPosition:WF(l),overflow:"hidden"}});return n?er.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?$A(o,e):void 0},children:c}):c},GF=O(((e,t)=>er.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:er.jsx("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})}))),YF=O(((e,t)=>er.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:er.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"})}))),KF=O(((e,t)=>er.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:[er.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"}),er.jsx("use",{fillRule:"evenodd"})]}))),XF=O(((e,t)=>er.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:er.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"})}))),JF=O(((e,t)=>er.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:er.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"})}))),ZF=O(((e,t)=>er.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:er.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"})}))),QF=O(((e,t)=>er.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:er.jsx("path",{d:"M2 7h12v2H2z"})}))),eH=O(((e,t)=>er.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:er.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"})}))),tH=O(((e,t)=>er.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:er.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"})}))),rH=O(((e,t)=>er.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:er.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"})}))),nH=O(((e,t)=>er.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:er.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"})}))),oH={m:O(((e,t)=>er.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:er.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),"ï":rH,R:Wz,S:Bz,T:O(((e,t)=>er.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:er.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:O(((e,t)=>er.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:er.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:tH,Q:ZF,"è":O(((e,t)=>er.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:er.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"})}))),"¢":XF,"©":KF,"23F4":JF,2013:nH,"&":eH,add:GF,"minus-2":QF,dot:YF},iH=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&oH[t];return o&&er.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:er.jsx(o,{style:{height:e}})})},aH=({representation:e,cellValue:t,paginationCellAlign:r})=>{const{styleService:n,theme:o,direction:i}=HI(jI,(e=>e.baseProps)),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=qA(e,t,i,o),d=(e=>parseInt(e||jA,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?er.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&&iH({size:d,iconKey:f,color:p}),er.jsx(kz,{isNumeric:!0,children:a}),"right"===h&&iH({size:d,iconKey:f,color:p})]}):iH({size:d,iconKey:f,color:p})},sH=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,lH=({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}=HI(jI,(e=>e.baseProps)),h=HI(jI,(e=>e.selectionState.api?.isActive()));let m=t.representation.text;if(t.representation.type!==TE.Link||h||(m=er.jsx(EF,{href:t.representation.url,text:t.representation.text,interactions:l,color:r.cellForegroundColor})),t.representation.type===TE.Image)return er.jsx(UF,{representation:t.representation,textStyle:r,maxImageHeight:sH(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!==TE.Indicator||Number.isNaN(g)?t.representation.type===TE.MiniChart&&t.representation.miniChart&&!t.isNull?er.jsx(BF,{height:sH(u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:c,isSnapshot:!!d.snapshotData,direction:f,downloadService:p}):er.jsx(kz,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):er.jsx(aH,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},uH=()=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:er.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),cH=ic("div")({"& path":{stroke:"none !important"}}),dH=({children:e,cellSelectionState:t})=>t===wA.Selected?er.jsxs(Az,{children:[e,er.jsx(cH,{children:er.jsx(uH,{})})]}):e,pH=e=>{const t=function(){const e=L_(),t=S_((()=>null==e?void 0:e.dragOperation.source),[e]),r=S_((()=>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},fH=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:CA.SelectMultiEnd})};r({type:CA.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:CA.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:CA.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),hH=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=HI(jI,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:s,direction:l}=HI(jI,(e=>e.baseProps)),u=HI(jI,(e=>e.setFocusedCellCoord)),c=HI(jI,(e=>e.selectionDispatch)),d=!!s.active&&!!s.select,p=s=>{pF({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===JC.Shift&&t({type:CA.SelectMultiEnd})})(e,c)},h=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;bz([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}=fH(h,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:m,onMouseUp:b,onMouseOver:g}},mH=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=wA.Inactive;return o?.isModal()&&(i=r!==e.selectionColIdx?wA.Disabled:n.has(e.qElemNumber)?wA.Selected:wA.Possible),i},gH=(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},bH=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},vH=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return bH(t,e,n?"even":"odd")}return e},yH=(e,t)=>{const{styleService:r}=HI(jI,(e=>e.baseProps)),n=HI(jI,(t=>mH(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=vH(o,r,e),o=gH(o,r,e);const i=EI(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===wA.Selected?{...e,...r}:t===wA.Disabled?{...e,background:`${LA}, ${e.background}`}:e}(C((()=>e.isNull?o:EI(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}},xH=ic(kh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),SH=ic(Xh,{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}}}))),wH=ic(qh,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...FA,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),CH=ic(qh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...FA,...e,fontWeight:_A,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",zIndex:t?1:void 0}))),EH=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const{interactions:a,direction:s}=HI(jI,(e=>e.baseProps)),{onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=hH(e,t),{cellStyle:f,representationStyle:h,cellSelectionState:m}=yH(e,r),g=pH(r.id);return er.jsx(wH,{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} ${XC}`,title:a.passive?e.representation.text:void 0,onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:er.jsx(dH,{cellSelectionState:m,children:er.jsx(lH,{cell:e,style:h,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:UA(s,e.align)})})})},RH=({column:e,headRowHeight:t,totalsPosition:r,onKeyDown:n,onMouseDown:o})=>{const{styleService:i,interactions:a}=HI(jI,(e=>e.baseProps)),s=pH(e.id);return er.jsx(CH,{totalsStyle:{...i.totalRow,...az(i,r,!1),opacity:s},headRowHeight:t,atTop:r.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${XC}`,tabIndex:-1,title:a.passive?e.totalInfo:void 0,onKeyDown:n,onMouseDown:o,children:er.jsx(kz,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},PH=()=>{const{columns:e,totalsPosition:t,rows:r}=HI(jI,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,interactions:a,direction:s}=HI(jI,(e=>e.baseProps)),l=HI(jI,(e=>e.headRowHeight)),u=HI(jI,(e=>e.setFocusedCellCoord)),c=!!o?.isModal(),d=!!a.active;return er.jsx(Xh,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,o)=>{const a=[t.atTop?1:r.length+1,o];return er.jsx(RH,{column:e,headRowHeight:l,totalsPosition:t,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case JC.C:lF(r);break;case JC.Space:r.preventDefault();break;default:uF(e)}else IC(r)})({evt:e,rootElement:n,cellCoord:a,setFocusedCellCoord:u,isSelectionMode:c,isInteractionEnabled:d,direction:s})},onMouseDown:()=>{bz(a,n,u,i)}},e.id)}))})};var AH=q(PH);const IH=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{const{rows:n,columns:o,totalsPosition:i}=HI(jI,(e=>e.tableData)),{selectionsAPI:a,keyboard:s,layout:l,styleService:u}=HI(jI,(e=>e.baseProps)),c=HI(jI,(e=>e.selectionDispatch)),d=!!xI(l)?.content?.hoverEffect;SF({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 vF(t)})(t),f=xF();return er.jsxs(xH,{lastRowBottomBorder:u.grid.lastRowBottomBorder,children:[i.atTop?er.jsx(AH,{}):void 0,n.map(((e,t)=>er.jsx(SH,{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 er.jsx(EH,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:p,resizeObserverTaskScheduler:f},o)}))},`row-${t}`))),i.atBottom?er.jsx(AH,{}):void 0]})};var kH=q(IH);const MH=(e,t)=>!!e.viewState?.skipHeader||!!t.hideHeader,DH=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:s,translator:l,direction:u}=HI(jI,(e=>e.baseProps)),c=HI(jI,(e=>e.columnWidths)),d=HI(jI,(e=>e.setColumnWidths));if(!s.active)return null;return er.jsx(UI,{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=>{pz(e);const t=e.closest(".sn-table-cell");hz(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:l,columnLabel:i},direction:u})},TH=e=>e.target?.getAttribute("class")?.includes(ZC),OH=({isInteractionEnabled:e,column:t})=>{const[r,n]=w(!1),{changeSortOrder:o}=HI(jI,(e=>e.baseProps)),i=HI(jI,(e=>e.isAdjustingWidth)),a=HI(jI,(e=>e.setIsAdjustingWidth));return{open:r,setOpen:n,handleOpenMenu:t=>{!e||TH(t)||i||n(!0)},setIsAdjustingWidth:a,toggleSortOrder:r=>{e&&!TH(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o(t,"A"===t.sortDirection?"D":"A"))}}};var qH=Object.defineProperty,LH=Object.defineProperties,NH=Object.getOwnPropertyDescriptors,jH=Object.getOwnPropertySymbols,_H=Object.prototype.hasOwnProperty,zH=Object.prototype.propertyIsEnumerable,FH=(e,t,r)=>t in e?qH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,HH=(e,t)=>{for(var r in t||(t={}))_H.call(t,r)&&FH(e,r,t[r]);if(jH)for(var r of jH(t))zH.call(t,r)&&FH(e,r,t[r]);return e},$H=(e,t)=>LH(e,NH(t)),BH=class extends vq{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return $H(HH({},e),{[t]:r})}};BH.configure=HT(BH);var WH=BH;WH.configure({axis:"x",value:0});var VH=WH.configure({axis:"y",value:0}),UH=class extends vq{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 $H(HH({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};UH.configure=HT(UH);var GH=Object.create,YH=Object.defineProperty,KH=Object.defineProperties,XH=Object.getOwnPropertyDescriptor,JH=Object.getOwnPropertyDescriptors,ZH=Object.getOwnPropertySymbols,QH=Object.prototype.hasOwnProperty,e$=Object.prototype.propertyIsEnumerable,t$=e=>{throw TypeError(e)},r$=(e,t,r)=>t in e?YH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,n$=["class","method","getter","setter","accessor","field","value","get","set"],o$=e=>void 0!==e&&"function"!=typeof e?t$("Function expected"):e,i$=(e,t,r,n,o)=>({kind:n$[e],name:t,metadata:n,addInitializer:e=>r._?t$("Already initialized"):o.push(o$(e||null))}),a$=(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},s$=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=n$[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,XH({get[r](){return u$(this,i)},set[r](e){return d$(this,i,e)}},r)),b=n.length-1;b>=0;b--)(u=i$(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?o$(s)&&(g[f]=s):"object"!=typeof s||null===s?t$("Object expected"):(o$(a=s.get)&&(g.get=a),o$(a=s.set)&&(g.set=a),o$(a=s.init)&&h.unshift(a));return g&&YH(o,r,g),o},l$=(e,t,r)=>t.has(e)||t$("Cannot "+r),u$=(e,t,r)=>(l$(e,t,"read from private field"),t.get(e)),c$=(e,t,r)=>t.has(e)?t$("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),d$=(e,t,r,n)=>(l$(e,t,"write to private field"),t.set(e,r),r);function p$(e){return e instanceof H$||e instanceof F$}var f$=Object.defineProperty,h$=Object.defineProperties,m$=Object.getOwnPropertyDescriptors,g$=Object.getOwnPropertySymbols,b$=Object.prototype.hasOwnProperty,v$=Object.prototype.propertyIsEnumerable,y$=(e,t,r)=>t in e?f$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x$=(e,t)=>{for(var r in t||(t={}))b$.call(t,r)&&y$(e,r,t[r]);if(g$)for(var r of g$(t))v$.call(t,r)&&y$(e,r,t[r]);return e},S$=(e,t)=>h$(e,m$(t));function w$(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function C$(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 S$(x$({},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 S$(x$({},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,w$)}var E$="__default__";function R$(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function P$(e,t){return e.index-t.index}function A$(e){return Array.from(e).sort(P$)}var I$,k$,M$,D$,T$,O$,q$,L$,N$=[class extends BT{constructor(e){super(e);const t=NM((()=>{const{dragOperation:t}=e;if(QL(t.activatorEvent)&&p$(t.source)&&t.status.initialized){const t=e.registry.plugins.get(Ij);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(!QL(e.nativeEvent))return;if(!p$(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=[];bM((()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&p$(e)||!e.element)continue;let r=e.shape;const n=new KL(e.element,{getBoundingClientRect:e=>Hq(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,nN);bM((()=>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||!p$(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;$L(c);const d=new KL(c);if(!d)return;const p=rT.delta(d,rT.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 BT{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof H$){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(A$(r)));return t},r=[e.monitor.addEventListener("dragover",((e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!p$(o)||!p$(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=A$(l),g=s?m:A$(u),b=null!=(c=o.sortable.group)?c:E$,v=null!=(d=i.sortable.group)?d:E$,y={[b]:m,[v]:g},x=C$(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);r.collisionObserver.disable(),R$(f,S,h,w),bM((()=>{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;p$(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=A$(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(R$(r,i.index,a,o.index),bM((()=>{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()}}}],j$={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},_$=new class{constructor(){CD(this,TD,new WeakMap)}get(e,t){var r;return e?null==(r=wD(this,TD).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return wD(this,TD).has(e)||wD(this,TD).set(e,new Map),null==(n=wD(this,TD).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=wD(this,TD).get(e))?void 0:t.clear():void 0}};k$=[ID],I$=[ID];var z$=class{constructor(e,t){c$(this,D$,a$(M$,8,this)),a$(M$,11,this),c$(this,T$),c$(this,O$),c$(this,q$,a$(M$,12,this)),a$(M$,15,this),c$(this,L$),this.register=()=>(bM((()=>{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=()=>{bM((()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)}))},this.destroy=()=>{bM((()=>{this.droppable.destroy(),this.draggable.destroy()}))};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=j$,plugins:u=N$}=r,c=((e,t)=>{var r={};for(var n in e)QH.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&ZH)for(var n of ZH(e))t.indexOf(n)<0&&e$.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new H$(c,t,this),this.draggable=new F$(((e,t)=>KH(e,JH(t)))(((e,t)=>{for(var r in t||(t={}))QH.call(t,r)&&r$(e,r,t[r]);if(ZH)for(var r of ZH(t))e$.call(t,r)&&r$(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)&&_$.clear(this.manager),(null==n?void 0:n.dragging)&&_$.set(this.manager,this.id,yM((()=>({initialIndex:this.index,initialGroup:this.group}))))},()=>{const{index:e,group:t,manager:r}=this,n=u$(this,O$),o=u$(this,T$);e===n&&t===o||(d$(this,O$,e),d$(this,T$,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),d$(this,L$,c.element),this.manager=t,this.index=i,d$(this,O$,i),this.group=o,d$(this,T$,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=_$.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=_$.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){yM((()=>{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}=ML(n),l=WL(n,s,!1),u=WL(n,s);(i||a)&&BL({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){bM((()=>{this.draggable.manager=e,this.droppable.manager=e}))}set element(e){bM((()=>{const t=u$(this,L$),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),d$(this,L$,e)}))}get element(){var e,t;const r=u$(this,L$);if(r)return null!=(t=null!=(e=Uq.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){bM((()=>{this.droppable.disabled=e,this.draggable.disabled=e}))}set data(e){bM((()=>{this.droppable.data=e,this.draggable.data=e}))}set handle(e){this.draggable.handle=e}set id(e){bM((()=>{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:rN}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){bM((()=>{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)}};M$=[,,,GH(null)],D$=new WeakMap,T$=new WeakMap,O$=new WeakMap,q$=new WeakMap,L$=new WeakMap,s$(M$,4,"index",k$,z$,D$),s$(M$,4,"group",I$,z$,q$),((e,t)=>{return r$(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(M$,z$);var F$=class extends g_{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}},H$=class extends b_{constructor(e,t,r){super(e,t),this.sortable=r}},$$=Object.defineProperty,B$=Object.defineProperties,W$=Object.getOwnPropertyDescriptors,V$=Object.getOwnPropertySymbols,U$=Object.prototype.hasOwnProperty,G$=Object.prototype.propertyIsEnumerable,Y$=(e,t,r)=>t in e?$$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,K$=(e,t)=>{for(var r in t||(t={}))U$.call(t,r)&&Y$(e,r,t[r]);if(V$)for(var r of V$(t))G$.call(t,r)&&Y$(e,r,t[r]);return e};function X$(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=K$(K$({},j$),e.transition),b=function(e){var t;const r=null!=(t=L_())?t:void 0,[n]=w((()=>e(r)));return n.manager!==r&&(n.manager=r),y_(n.register,[r,n]),n}((t=>new z$(((e,t)=>B$(e,W$(t)))(K$({},e),{transition:g,register:!1,handle:v_(s),element:v_(a),target:v_(h),feedback:d}),t))),v=w_(b,J$);return R_(o,(()=>b.id=o)),y_((()=>{bM((()=>{b.group=u,b.index=l}))}),[b,u,l]),R_(m,(()=>b.type=m)),R_(t,(()=>b.accept=t),void 0,AD),R_(i,(()=>i&&(b.data=i))),R_(l,(()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()}),C_),P_(s,(e=>b.handle=e)),P_(a,(e=>b.element=e)),P_(h,(e=>b.target=e)),R_(c,(()=>b.disabled=!0===c)),R_(f,(()=>b.sensors=f)),R_(r,(()=>b.collisionDetector=r)),R_(n,(()=>b.collisionPriority=n)),R_(d,(()=>b.feedback=null!=d?d:"default")),R_(g,(()=>b.transition=g),void 0,AD),R_(p,(()=>b.modifiers=p),void 0,AD),R_(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 J$(e,t,r){return!("isDragSource"!==e||r||!t)}const Z$=({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/tT.distance(r.shape.center,s),type:pO.Collision,priority:dO.Normal}:null},Q$=(e,t)=>{const{interactions:r,direction:n}=HI(jI,(e=>e.baseProps)),{flags:o}=HI(jI,(e=>e.env)),i=!r.active||!o.isEnabled("TLV-1531_DRAG_AND_DROP_COLUMNS");return X$({id:e.id,disabled:i,index:t,type:"item",accept:"item",group:"column",modifiers:[VH],data:e,feedback:"clone",collisionDetector:Z$({invert:"rtl"===n})})},eB=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a,direction:s}=HI(jI,(e=>e.baseProps)),{columns:l,totalsPosition:u}=HI(jI,(e=>e.tableData)),c=HI(jI,(e=>e.columnWidths[t])),d=HI(jI,(e=>e.baseProps.selectionsAPI?.isModal())),p=HI(jI,(e=>e.setFocusedCellCoord)),f=HI(jI,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),h=!!n.active&&!d,{open:m,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v,toggleSortOrder:y}=OH({isInteractionEnabled:h,column:e}),{ref:x,isDragging:S}=Q$(e,t),w=pH(e.id),C=iz(),E=C?Mz:Xz,R=e.isActivelySorted?EA[e.sortDirection]:void 0,P=m?KC:void 0,A=m?"true":void 0,I=t===r-1,k=[0,e.pageColIdx],M={width:c-(I?8:9),zIndex:l.length-t},D=f&&0===t&&!i.enabled&&h?0:-1;return er.jsxs(xz,{"data-dragging":S,ref:x,headerStyle:{...a.header,...az(a,u,!0),opacity:w},background:C&&m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:M,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${XC}`,tabIndex:D,title:n.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case JC.C:lF(r);break;case JC.Enter:case JC.Space:n?.(r);break;default:uF(e)}else IC(r)})({evt:e,rootElement:o,cellCoord:k,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&&bz(r,t,n,o)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:p,keyboard:i,isInteractionEnabled:h})},onClick:C?b:y,"aria-sort":R,"aria-controls":P,"aria-expanded":A,"aria-haspopup":"true",children:[er.jsx(E,{column:e,isInteractionEnabled:h,open:m,setOpen:g,isPagination:!0}),er.jsx(DH,{column:e,isLastColumn:I,setIsAdjustingWidth:v})]},e.id)},tB=()=>{const{columns:e}=HI(jI,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=HI(jI,(e=>e.baseProps)),o=HI(jI,(e=>e.setHeadRowHeight)),i=HI(jI,(e=>e.columnWidths)),a=D(null),s=MH(r,n);return E((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),er.jsx(Wh,{style:{visibility:s?"collapse":void 0},children:er.jsx(Xh,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map(((t,r)=>er.jsx(eB,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var rB=q(tB);const nB=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}=HI(jI,(e=>e.tableData)),{rootElement:f,keyboard:h,translator:m,theme:g,interactions:b,styleService:v,viewService:y,layout:x,rect:S,direction:w}=HI(jI,(e=>e.baseProps)),C=HI(jI,(e=>e.setYScrollbarWidth)),R=HI(jI,(e=>e.showRightBorder)),P=HI(jI,(e=>e.selectionDispatch)),A=HI(jI,(e=>e.baseProps.selectionsAPI?.isModal())),I=D(!1),k=D(null),M=D(null),{yScrollbarWidth:O}=fF(k),q=`${m.get("SNTable.Accessibility.RowsAndColumns",[String(d.length),String(p.length)])} ${m.get("SNTable.Accessibility.NavigationInstructions")}`,L=qP(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 sF(k,w,y),((e,t)=>{const{keyboard:r}=HI(jI,(e=>e.baseProps));E((()=>{const n=e.current;if(!n)return;const o=e=>{vz(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(M,I),(()=>{const{rootElement:e,keyboard:t}=HI(jI,(e=>e.baseProps)),r=HI(jI,(e=>e.focusedCellCoord));$C((()=>{const n=cz(e,r);t.active?hz(n):(n?.blur(),fz(e))}),[t.active,e])})(),aF(I,o,i),E((()=>{const e=k.current;e&&(e.scrollLeft=N,e.scrollTop=j)}),[t,l,N,j]),oF((()=>{C(O)}),[O]),oF((()=>{P({type:CA.UpdatePageRows,payload:{pageRows:d}})}),[d]),iF(),er.jsxs(nF,{children:[er.jsxs(Rz,{ref:M,dir:w,onKeyDown:e=>{dF({evt:e,totalRowCount:l,page:i,rowsPerPage:a,handleChangePage:z,updateShouldRefocus:_,keyboard:h,isSelectionMode:A})},"data-testid":"sn-table",children:[er.jsx(bF,{}),er.jsxs(mF,{ref:k,className:"sn-table-container",fullHeight:!!n||!b.active||!c,interactions:b,tabIndex:-1,role:"application","data-testid":"table-container",children:[er.jsxs(gF,{stickyHeader:!0,"aria-label":q,borderRight:R?`1px solid ${v.grid.border}`:void 0,children:[er.jsx(rB,{}),er.jsx(kH,{...e,updateShouldRefocus:_,tableWrapperRef:M})]}),er.jsx(oz,{})]}),er.jsx(hM,{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})]}),er.jsx(eF,{isPagination:!0})]})};var oB=q(nB);function iB(){return iB=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},iB.apply(null,arguments)}function aB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sB(e,t){return sB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sB(e,t)}function lB(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,sB(e,t)}var uB=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function cB(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||uB(n)&&uB(o)))return!1;var n,o;return!0}function dB(e,t){var r;void 0===t&&(t=cB);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 pB(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 fB="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function hB(e){cancelAnimationFrame(e.id)}function mB(e,t){var r=fB();var n={id:requestAnimationFrame((function o(){fB()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var gB=-1;function bB(e){if(void 0===e&&(e=!1),-1===gB||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),gB=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return gB}var vB=null;function yB(e){if(void 0===e&&(e=!1),null===vB||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?vB="positive-descending":(t.scrollLeft=1,vB=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),vB}return vB}var xB=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function SB(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,aB(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:aB(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=dB((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=dB((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=dB((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(yB()){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&&hB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=mB(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}lB(t,e),t.getDerivedStateFromProps=function(e,t){return wB(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=bB();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(yB()){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&&hB(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?xB: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:iB({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}(_),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var wB=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},CB=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},EB=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},RB=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]},PB=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?AB(e,t,r,i,0,n):IB(e,t,r,Math.max(0,i),n)},AB=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=RB(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},IB=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&RB(e,t,n,r).offset<o;)n+=a,a*=2;return AB(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},kB=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=RB(e,t,r,i),u="column"===e?EB(t,i):CB(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}},MB=SB({getColumnOffset:function(e,t,r){return RB("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return PB("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=RB("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=RB("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:CB,getEstimatedTotalWidth:EB,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return kB("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return kB("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return RB("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return PB("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=RB("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=RB("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}}),DB=function(e,t){return e};function TB(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,aB(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:aB(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=dB((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=dB((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=dB((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(yB()){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&&hB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=mB(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}lB(t,e),t.getDerivedStateFromProps=function(e,t){return OB(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?bB():0:l.scrollHeight>l.clientHeight?bB():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(yB()){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&&hB(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?DB: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:iB({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}(_),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var OB=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},qB=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]},LB=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=qB(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},NB=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&qB(e,r,t).offset<n;)r+=i,i*=2;return LB(e,t,Math.min(r,o-1),Math.floor(r/2),n)},jB=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},_B=TB({getItemOffset:function(e,t,r){return qB(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:jB,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=qB(e,t,o),p=jB(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?LB(e,t,o,0,r):NB(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=qB(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=qB(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 zB(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 FB=["style"],HB=["style"];function $B(e,t){var r=e.style,n=pB(e,FB),o=t.style,i=pB(t,HB);return!zB(r,o)&&!zB(n,i)}const BB=({style:e})=>er.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var WB=x.memo(BB,$B);const VB=()=>{},UB=e=>{e.preventDefault()};const GB=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=HI(jI,(e=>e.hoverIndex===t)),d=HI(jI,(e=>e.setHoverIndex)),{interactions:p,styleService:f,direction:h}=HI(jI,(e=>e.baseProps)),m=HI(jI,(e=>e.showRightBorder)),g=o[t]?.[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=HI(jI,(e=>e.baseProps)),r=HI(jI,(e=>e.selectionDispatch)),n="object"==typeof e,o=HI(jI,(t=>n?mH(e,t.selectionState):wA.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=fH(UB,e,r,VB);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=jz(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return _z(o,a),o})(t,e,g,s),w=i[e]?.isDim?f.dimension.values:f.measure.values,C=pH(i[e].id);if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=vH(o,i,e);a=gH(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?EI(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===wA.Selected?{...s,...i.selectedColors}:n===wA.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${LA}, ${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 er.jsx("div",{className:`sn-table-cell ${x} ${XC}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:f.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:GA(h,g.isLastColumn,m),borderLeftWidth:YA(h,g.isLastColumn,m),justifyContent:BA(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:er.jsx(dH,{cellSelectionState:x,children:er.jsx(lH,{forwardRef:f.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return er.jsx(WB,{style:{...r,...w,borderColor:f.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:C}})};var YB=q(GB,$B);const KB=e=>{const t=D(e);return t.current=e,t},XB=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,JB=(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},ZB=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},QB=(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=RP(h,e,a),C=!h&&e.qIsNull,E=C?TR(w):DR(e);f[r]={id:IR(),...e,align:TP(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)&&EP(e,h),representation:CP({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[TE.Image]:!0,[TE.Indicator]:!0,[TE.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}))}))},eW=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:s,columns:l,gridState:u,setEstimatedCellHeight:c})=>{const d=HI(jI,(e=>e.env)),{direction:p}=HI(jI,(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 QB(t,o,n,l,e,d,c,p),f.current=n,n}),[i,o,l,e,d,c,p]),[m,g]=w((()=>h(n??[])));$C((()=>{g(h(n??[]))}),[n,p]);const b=((e,t)=>{const r=D(new Set),n=D(new Set),o=D(new Set),i=KB(e),a=KB(t),s=C((()=>({enqueue:e=>{const t=XB(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(XB(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(ZB(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(JB(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}},tW=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},rW=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,nW=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=HI(jI,(e=>e.baseProps.styleService)),i=HI(jI,(e=>e.columnWidths)),{estimateLineCount:a}=_C(o.dimension.values),s=TI(o.dimension.values.fontSize),l=e||t||1===r;return T(((e,t,o)=>{if(l||e.representation.type===TE.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])},oW=({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])},iW=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=HI(jI,(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}=HI(jI,(e=>e.baseProps)),o=HI(jI,(e=>e.columnWidths)),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;$C((()=>{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]),$C((()=>{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)=>{N((()=>{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(!rW(u.get(a),l))return e;const c={...e};return u.set(a,l),c.rowHeights.set(i,tW(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=nW({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 oW({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:h,viewService:r}),{setMeasuredCellHeight:g,setEstimatedCellHeight:b,getRowHeight:v,lineClamp:f}},aW=(e,t)=>{L((()=>()=>{t(0)}),[e,t]);const r=T((e=>{const r=jz(e);void 0!==r&&t(r)}),[t]);_z(e,r)};let sW=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const lW=({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=sW.None,i=sW.None;return o=n>t?sW.Down:n<t?sW.Up:sW.None,i=r>e?sW.Right:r<e?sW.Left:sW.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===sW.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(m===sW.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===sW.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===sW.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]),uW={enabled:!1},cW=()=>{},dW={current:null};const pW=(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}},fW=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},hW={overflow:"hidden",willChange:"auto"};var mW=q(O(((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}=HI(jI,(e=>e.baseProps)),f=HI(jI,(e=>e.columnWidths)),h=HI(jI,(e=>e.initialDataPages)),m=D(null),g=D(null),b=D({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),v=D(0),y=!!xI(s)?.content?.hoverEffect,{rowCount:x,visibleRowCount:S,visibleColumnCount:w}=pW(s,o,r,f,d.contentMinRowHeight),{setMeasuredCellHeight:R,setEstimatedCellHeight:P,getRowHeight:A,lineClamp:I}=iW({rowCount:x,isSnapshot:!!s.snapshotData,viewService:c,gridRef:m,pageInfo:o}),{rowsInPage:k,loadRows:M,loadColumns:T}=eW({layout:s,model:l,theme:u,initialDataPages:h,pageInfo:o,rowCount:x,visibleRowCount:S,visibleColumnCount:w,columns:n,gridState:b,setEstimatedCellHeight:P}),O=lW({layout:s,loadRows:M,loadColumns:T,rowCount:x,pageInfo:o,gridState:b,viewService:c}),q=xF(),N=C((()=>({rowsInPage:k,columns:n,isHoverEnabled:y,lineClamp:I,setMeasuredCellHeight:R,resizeObserverTaskScheduler:q})),[k,n,y,I,R,q]),_=((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}=HI(jI,(e=>e.baseProps)),r=HI(jI,(e=>e.selectionDispatch));E((()=>{r({type:CA.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),SF({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:cW,keyboard:uW,tableWrapperRef:dW})}(k),j(t,(()=>({interpolatedScrollTo:(e,t)=>{const r=(g.current?.clientHeight??_)-_,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,_,x]),aW(g,a),er.jsx(MB,{"data-key":"body",ref:m,innerRef:g,style:hW,columnCount:s.qHyperCube.qSize.qcx,columnWidth:e=>f[e],height:_,rowCount:x,rowHeight:A,estimatedRowHeight:c.estimatedRowHeight,width:r.width,itemData:N,onItemsRendered:O,itemKey:fW,className:"sn-table-body",direction:p,children:YB})})));const gW=({width:e,height:t,children:r})=>er.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),bW=(e,t)=>{const r=D(null),n=HI(jI,(e=>e.columnWidths));L((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=T((r=>{const n=jz(r);n&&t(n+9,e)}),[e,t]);return _z(r,o),r},vW=ic("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}}))),yW=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,{interactions:a,styleService:s,direction:l}=HI(jI,(e=>e.baseProps)),u=HI(jI,(e=>e.baseProps.selectionsAPI?.isModal())),c=HI(jI,(e=>e.showRightBorder)),d=HI(jI,(e=>e.tableData.totalsPosition)),p=!!a.active&&!u,f=n[e],{open:h,setOpen:m,handleOpenMenu:g,setIsAdjustingWidth:b,toggleSortOrder:v}=OH({isInteractionEnabled:p,column:f}),y=iz(),x=bW(e,i),S=n.length-1===e,w=y?Mz:Xz,{ref:C,isDragging:E}=Q$(f,e),R=pH(f.id);return er.jsxs(vW,{"data-dragging":E,ref:C,className:`sn-table-cell ${XC}`,title:a.passive?f.label:void 0,onClick:y?g:v,applicableStyle:{...s.header,...az(s,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:GA(l,S,c),borderLeftWidth:YA(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:R},interactions:a,hoverBackground:s.headerMenuHoverBackground,background:y&&h?s.headerMenuActiveBackground:s.header.background,children:[er.jsx(w,{forwardRef:x,column:f,isInteractionEnabled:p,open:h,setOpen:m}),er.jsx(DH,{column:f,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:b})]})},xW=e=>{const[t,r]=w(new Map);$C((()=>{r(new Map)}),[e.length]);const n=T(((e,t)=>{r((r=>rW(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:C((()=>tW(t)),[t]),setMeasuredCellHeight:n}},SW=(e,t)=>{j(e,(()=>({scrollTo:e=>t.current?.scrollTo(e)})),[t])},wW=(e,t,r,n,o)=>{$C((()=>{e.current?.resetAfterIndex(0,!1)}),[t,r,e,n,o])},CW={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},EW=O(((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}=HI(jI,(e=>e.baseProps)),h=HI(jI,(e=>e.columnWidths)),{rowHeight:m,setMeasuredCellHeight:g}=xW(n),b=MH(f,u);return SW(t,s),wW(s,u,o,h,c),aW(l,a),er.jsx(_B,{ref:s,outerRef:l,layout:"horizontal",style:{...CW,...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:yW})}));var RW=q(EW);const PW=O(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:s}=HI(jI,(e=>e.baseProps));return er.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:s,children:r})})),AW=({children:e,rect:t})=>{const{direction:r}=HI(jI,(e=>e.baseProps));return er.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})},IW=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:s,styleService:l,direction:u}=HI(jI,(e=>e.baseProps)),c=HI(jI,(e=>e.showRightBorder)),d=bW(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=a.qHyperCube.qSize.qcx-1===e,g=pH(n[e].id);return er.jsx("div",{className:`sn-table-cell ${XC}`,title:s.passive?p:void 0,style:{...t,...l.totalRow,...az(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:GA(u,m,c),borderLeftWidth:YA(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:er.jsx(kz,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},kW=O(((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}=HI(jI,(e=>e.baseProps)),f=HI(jI,(e=>e.columnWidths)),{rowHeight:h,setMeasuredCellHeight:m}=xW(i);return SW(t,s),wW(s,u,n,f,c),aW(l,a),er.jsx(_B,{ref:s,outerRef:l,layout:"horizontal",style:CW,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:IW})}));var MW=q(kW);const DW=(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]),TW=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=HI(jI,(e=>e.tableData)),{layout:i,theme:a,rect:s,viewService:l,direction:u}=HI(jI,(e=>e.baseProps)),c=HI(jI,(e=>e.columnWidths)),d=HI(jI,(e=>e.setYScrollbarWidth)),p=D(null),f=D(null),h=D(null),m=D(null),{xScrollbarWidth:g,yScrollbarWidth:b}=fF(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}=pW(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}=HI(jI,(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=DW(f,h,m,l,u),O=T((()=>{p.current&&(p.current.scrollTop=0)}),[p]);iF(),L((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[n.length]),L((()=>{p.current&&(p.current.scrollTop=0)}),[t,x,a]),oF((()=>{d(b)}),[b]);const q=er.jsx(MW,{rect:y,pageInfo:t,columns:n,ref:h,totals:r,setTotalsRowHeight:P},"totals");return er.jsxs(nF,{children:[er.jsx(PW,{ref:p,width:v.width,height:v.height,onScroll:M,children:er.jsxs(gW,{width:I,height:k,children:[er.jsxs(AW,{rect:y,children:[er.jsx(RW,{rect:y,pageInfo:t,columns:n,ref:f,columResizeHandler:O,setHeaderRowHeight:R}),r.atTop?q:null,er.jsx(mW,{ref:m,rect:y,pageInfo:t,columns:n,headerAndTotalsHeight:S,setInnerBodyHeight:A}),r.atBottom?q:null]}),er.jsx(oz,{})]})}),er.jsx(eF,{isPagination:!1})]})};var OW=q(TW);const qW=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=HI(jI,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:s,totalColumnCount:l,totalPages:u}=HI(jI,(e=>e.tableData)),c=HI(jI,(e=>e.pageInfo)),d=HI(jI,(e=>e.setPage));return er.jsxs(Rz,{"data-testid":"sn-table",children:[er.jsx(OW,{pageInfo:c}),er.jsx(hM,{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 LW=q(qW);var NW={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 jW=(t,r)=>e((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(NW).forEach((t=>{e.add(NW[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(`.${RA.First}`),s=e.querySelector(`.${RA.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===RA.First?(l=s,r=RA.Second):(l=a,r=RA.First),l.innerHTML=l.innerHTML.endsWith(" ")?i:`${i} `,l.setAttribute("aria-live",o)}})(t,r))),[t,r.language()]),_W={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},zW=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=LP(s,d),g=jW(a,l),[b,v]=n(((e,t)=>qP(e,t)?{page:t.page||_W.page,rowsPerPage:t.rowsPerPage||_W.rowsPerPage,rowsPerPageOptions:_W.rowsPerPageOptions}:_W)(s,d)),[y,x]=LC((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>PP)return n({...r,rowsPerPage:AP(d,c),page:0}),null;const g=p>10,b=IP(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=RP(o.isDim,u,t),d=!o.isDim&&u.qIsNull,p=d?TR(c):DR(u);n[l]={id:IR(),...u,align:TP(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)&&EP(u,o.isDim),representation:CP({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:s,enabledFeatures:{[TE.Image]:!0,[TE.Indicator]:!0,[TE.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=$I(r);t.render(er.jsx(si,{stylisPlugins:"rtl"===r?[SA]:void 0,children:er.jsx(sc,{theme:o,children:er.jsx(FI,{...e,children:er.jsx(oB,{...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])},FW=(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 HW=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=LC((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(rI,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}},$W=t=>{const{layout:r,model:i,keyboard:a,interactions:s,reactRoot:l,isFontLoaded:u,viewService:c,direction:d}=t,p=!LP(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=IP(e,r),s=e.qHyperCube.qSize.qcy,l=Math.min(rI,s),u=s>rI&&!!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(rI,t.qHyperCube.qSize.qcy),s=e((()=>({page:o,rowsPerPage:a,rowsPerPageOptions:[]})),[a,o]);if(r){const e=Math.floor(t.qHyperCube.qSize.qcy/rI);e<o&&i(e)}return{pageInfo:s,setPage:i}})(r,p),{initialDataPages:v,isLoading:y}=HW({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=$I(r);t.render(er.jsx(x.StrictMode,{children:er.jsx(sc,{theme:n,children:er.jsx(FI,{...e,children:er.jsx(LW,{})})})}))}({...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])},BW={version:JSON.stringify("6.4.2"),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 WW(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 VW=(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]}},UW=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const GW=(e,t,r,n)=>{if(e<0)return 0;const o=r.qHyperCube.qSize.qcy,i=n.rowsPerPage||_W.rowsPerPage,a=n.viewState?.isMultiPage?0:3;return Math.min(o,i,e-t+1+a)},YW=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=IP(e,t);if(LP(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=WW(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:GW(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=VW(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=(UW(h,m,g)?d:d+1)+c;let v=p+c;const y=VW(p,o),x=y?.getBoundingClientRect();return y&&x&&(UW(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:GW(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},KW=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),XW=e=>e.getStyle("object","straightTableV2","backgroundColor");function JW(r){return{qae:{properties:{initial:BW},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>RE({...e}),exportProperties:yE,exploration:PE},ext:xR(r),component(){const n=c(),i=(t=>{const r=e((()=>zC(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=qC(y,n,KW,XW),O=P.direction,q=FW(y.qHyperCube,S),L=SR(y.qHyperCube,S),N=((e,t,r)=>{const[,n,o]=LC((async()=>{const t=be(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,HC].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=Mt(),_={app:x,layout:y,model:S,rect:k,theme:T,keyboard:R,translator:C,interactions:w,selectionsAPI:E,changeSortOrder:q,rootElement:n,embed:D,reactRoot:i,applyColumnWidths:L,isFontLoaded:N,downloadService:j,viewService:M,direction:O,env:r};s?.(((e,t)=>{const r=t.target,n=r?.closest(`.${XC}`);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()=>{aE(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}=YW(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:()=>YW(e,t,n)})),[e,t,n])})({layout:y,viewService:M,model:S,rootElement:n,contentRect:I}),$W(_),zW(_)}}}export{JW as default};
|